generated.go 5.8 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315723167231772318723197232072321723227232372324723257232672327723287232972330723317233272333723347233572336723377233872339723407234172342723437234472345723467234772348723497235072351723527235372354723557235672357723587235972360723617236272363723647236572366723677236872369723707237172372723737237472375723767237772378723797238072381723827238372384723857238672387723887238972390723917239272393723947239572396723977239872399724007240172402724037240472405724067240772408724097241072411724127241372414724157241672417724187241972420724217242272423724247242572426724277242872429724307243172432724337243472435724367243772438724397244072441724427244372444724457244672447724487244972450724517245272453724547245572456724577245872459724607246172462724637246472465724667246772468724697247072471724727247372474724757247672477724787247972480724817248272483724847248572486724877248872489724907249172492724937249472495724967249772498724997250072501725027250372504725057250672507725087250972510725117251272513725147251572516725177251872519725207252172522725237252472525725267252772528725297253072531725327253372534725357253672537725387253972540725417254272543725447254572546725477254872549725507255172552725537255472555725567255772558725597256072561725627256372564725657256672567725687256972570725717257272573725747257572576725777257872579725807258172582725837258472585725867258772588725897259072591725927259372594725957259672597725987259972600726017260272603726047260572606726077260872609726107261172612726137261472615726167261772618726197262072621726227262372624726257262672627726287262972630726317263272633726347263572636726377263872639726407264172642726437264472645726467264772648726497265072651726527265372654726557265672657726587265972660726617266272663726647266572666726677266872669726707267172672726737267472675726767267772678726797268072681726827268372684726857268672687726887268972690726917269272693726947269572696726977269872699727007270172702727037270472705727067270772708727097271072711727127271372714727157271672717727187271972720727217272272723727247272572726727277272872729727307273172732727337273472735727367273772738727397274072741727427274372744727457274672747727487274972750727517275272753727547275572756727577275872759727607276172762727637276472765727667276772768727697277072771727727277372774727757277672777727787277972780727817278272783727847278572786727877278872789727907279172792727937279472795727967279772798727997280072801728027280372804728057280672807728087280972810728117281272813728147281572816728177281872819728207282172822728237282472825728267282772828728297283072831728327283372834728357283672837728387283972840728417284272843728447284572846728477284872849728507285172852728537285472855728567285772858728597286072861728627286372864728657286672867728687286972870728717287272873728747287572876728777287872879728807288172882728837288472885728867288772888728897289072891728927289372894728957289672897728987289972900729017290272903729047290572906729077290872909729107291172912729137291472915729167291772918729197292072921729227292372924729257292672927729287292972930729317293272933729347293572936729377293872939729407294172942729437294472945729467294772948729497295072951729527295372954729557295672957729587295972960729617296272963729647296572966729677296872969729707297172972729737297472975729767297772978729797298072981729827298372984729857298672987729887298972990729917299272993729947299572996729977299872999730007300173002730037300473005730067300773008730097301073011730127301373014730157301673017730187301973020730217302273023730247302573026730277302873029730307303173032730337303473035730367303773038730397304073041730427304373044730457304673047730487304973050730517305273053730547305573056730577305873059730607306173062730637306473065730667306773068730697307073071730727307373074730757307673077730787307973080730817308273083730847308573086730877308873089730907309173092730937309473095730967309773098730997310073101731027310373104731057310673107731087310973110731117311273113731147311573116731177311873119731207312173122731237312473125731267312773128731297313073131731327313373134731357313673137731387313973140731417314273143731447314573146731477314873149731507315173152731537315473155731567315773158731597316073161731627316373164731657316673167731687316973170731717317273173731747317573176731777317873179731807318173182731837318473185731867318773188731897319073191731927319373194731957319673197731987319973200732017320273203732047320573206732077320873209732107321173212732137321473215732167321773218732197322073221732227322373224732257322673227732287322973230732317323273233732347323573236732377323873239732407324173242732437324473245732467324773248732497325073251732527325373254732557325673257732587325973260732617326273263732647326573266732677326873269732707327173272732737327473275732767327773278732797328073281732827328373284732857328673287732887328973290732917329273293732947329573296732977329873299733007330173302733037330473305733067330773308733097331073311733127331373314733157331673317733187331973320733217332273323733247332573326733277332873329733307333173332733337333473335733367333773338733397334073341733427334373344733457334673347733487334973350733517335273353733547335573356733577335873359733607336173362733637336473365733667336773368733697337073371733727337373374733757337673377733787337973380733817338273383733847338573386733877338873389733907339173392733937339473395733967339773398733997340073401734027340373404734057340673407734087340973410734117341273413734147341573416734177341873419734207342173422734237342473425734267342773428734297343073431734327343373434734357343673437734387343973440734417344273443734447344573446734477344873449734507345173452734537345473455734567345773458734597346073461734627346373464734657346673467734687346973470734717347273473734747347573476734777347873479734807348173482734837348473485734867348773488734897349073491734927349373494734957349673497734987349973500735017350273503735047350573506735077350873509735107351173512735137351473515735167351773518735197352073521735227352373524735257352673527735287352973530735317353273533735347353573536735377353873539735407354173542735437354473545735467354773548735497355073551735527355373554735557355673557735587355973560735617356273563735647356573566735677356873569735707357173572735737357473575735767357773578735797358073581735827358373584735857358673587735887358973590735917359273593735947359573596735977359873599736007360173602736037360473605736067360773608736097361073611736127361373614736157361673617736187361973620736217362273623736247362573626736277362873629736307363173632736337363473635736367363773638736397364073641736427364373644736457364673647736487364973650736517365273653736547365573656736577365873659736607366173662736637366473665736667366773668736697367073671736727367373674736757367673677736787367973680736817368273683736847368573686736877368873689736907369173692736937369473695736967369773698736997370073701737027370373704737057370673707737087370973710737117371273713737147371573716737177371873719737207372173722737237372473725737267372773728737297373073731737327373373734737357373673737737387373973740737417374273743737447374573746737477374873749737507375173752737537375473755737567375773758737597376073761737627376373764737657376673767737687376973770737717377273773737747377573776737777377873779737807378173782737837378473785737867378773788737897379073791737927379373794737957379673797737987379973800738017380273803738047380573806738077380873809738107381173812738137381473815738167381773818738197382073821738227382373824738257382673827738287382973830738317383273833738347383573836738377383873839738407384173842738437384473845738467384773848738497385073851738527385373854738557385673857738587385973860738617386273863738647386573866738677386873869738707387173872738737387473875738767387773878738797388073881738827388373884738857388673887738887388973890738917389273893738947389573896738977389873899739007390173902739037390473905739067390773908739097391073911739127391373914739157391673917739187391973920739217392273923739247392573926739277392873929739307393173932739337393473935739367393773938739397394073941739427394373944739457394673947739487394973950739517395273953739547395573956739577395873959739607396173962739637396473965739667396773968739697397073971739727397373974739757397673977739787397973980739817398273983739847398573986739877398873989739907399173992739937399473995739967399773998739997400074001740027400374004740057400674007740087400974010740117401274013740147401574016740177401874019740207402174022740237402474025740267402774028740297403074031740327403374034740357403674037740387403974040740417404274043740447404574046740477404874049740507405174052740537405474055740567405774058740597406074061740627406374064740657406674067740687406974070740717407274073740747407574076740777407874079740807408174082740837408474085740867408774088740897409074091740927409374094740957409674097740987409974100741017410274103741047410574106741077410874109741107411174112741137411474115741167411774118741197412074121741227412374124741257412674127741287412974130741317413274133741347413574136741377413874139741407414174142741437414474145741467414774148741497415074151741527415374154741557415674157741587415974160741617416274163741647416574166741677416874169741707417174172741737417474175741767417774178741797418074181741827418374184741857418674187741887418974190741917419274193741947419574196741977419874199742007420174202742037420474205742067420774208742097421074211742127421374214742157421674217742187421974220742217422274223742247422574226742277422874229742307423174232742337423474235742367423774238742397424074241742427424374244742457424674247742487424974250742517425274253742547425574256742577425874259742607426174262742637426474265742667426774268742697427074271742727427374274742757427674277742787427974280742817428274283742847428574286742877428874289742907429174292742937429474295742967429774298742997430074301743027430374304743057430674307743087430974310743117431274313743147431574316743177431874319743207432174322743237432474325743267432774328743297433074331743327433374334743357433674337743387433974340743417434274343743447434574346743477434874349743507435174352743537435474355743567435774358743597436074361743627436374364743657436674367743687436974370743717437274373743747437574376743777437874379743807438174382743837438474385743867438774388743897439074391743927439374394743957439674397743987439974400744017440274403744047440574406744077440874409744107441174412744137441474415744167441774418744197442074421744227442374424744257442674427744287442974430744317443274433744347443574436744377443874439744407444174442744437444474445744467444774448744497445074451744527445374454744557445674457744587445974460744617446274463744647446574466744677446874469744707447174472744737447474475744767447774478744797448074481744827448374484744857448674487744887448974490744917449274493744947449574496744977449874499745007450174502745037450474505745067450774508745097451074511745127451374514745157451674517745187451974520745217452274523745247452574526745277452874529745307453174532745337453474535745367453774538745397454074541745427454374544745457454674547745487454974550745517455274553745547455574556745577455874559745607456174562745637456474565745667456774568745697457074571745727457374574745757457674577745787457974580745817458274583745847458574586745877458874589745907459174592745937459474595745967459774598745997460074601746027460374604746057460674607746087460974610746117461274613746147461574616746177461874619746207462174622746237462474625746267462774628746297463074631746327463374634746357463674637746387463974640746417464274643746447464574646746477464874649746507465174652746537465474655746567465774658746597466074661746627466374664746657466674667746687466974670746717467274673746747467574676746777467874679746807468174682746837468474685746867468774688746897469074691746927469374694746957469674697746987469974700747017470274703747047470574706747077470874709747107471174712747137471474715747167471774718747197472074721747227472374724747257472674727747287472974730747317473274733747347473574736747377473874739747407474174742747437474474745747467474774748747497475074751747527475374754747557475674757747587475974760747617476274763747647476574766747677476874769747707477174772747737477474775747767477774778747797478074781747827478374784747857478674787747887478974790747917479274793747947479574796747977479874799748007480174802748037480474805748067480774808748097481074811748127481374814748157481674817748187481974820748217482274823748247482574826748277482874829748307483174832748337483474835748367483774838748397484074841748427484374844748457484674847748487484974850748517485274853748547485574856748577485874859748607486174862748637486474865748667486774868748697487074871748727487374874748757487674877748787487974880748817488274883748847488574886748877488874889748907489174892748937489474895748967489774898748997490074901749027490374904749057490674907749087490974910749117491274913749147491574916749177491874919749207492174922749237492474925749267492774928749297493074931749327493374934749357493674937749387493974940749417494274943749447494574946749477494874949749507495174952749537495474955749567495774958749597496074961749627496374964749657496674967749687496974970749717497274973749747497574976749777497874979749807498174982749837498474985749867498774988749897499074991749927499374994749957499674997749987499975000750017500275003750047500575006750077500875009750107501175012750137501475015750167501775018750197502075021750227502375024750257502675027750287502975030750317503275033750347503575036750377503875039750407504175042750437504475045750467504775048750497505075051750527505375054750557505675057750587505975060750617506275063750647506575066750677506875069750707507175072750737507475075750767507775078750797508075081750827508375084750857508675087750887508975090750917509275093750947509575096750977509875099751007510175102751037510475105751067510775108751097511075111751127511375114751157511675117751187511975120751217512275123751247512575126751277512875129751307513175132751337513475135751367513775138751397514075141751427514375144751457514675147751487514975150751517515275153751547515575156751577515875159751607516175162751637516475165751667516775168751697517075171751727517375174751757517675177751787517975180751817518275183751847518575186751877518875189751907519175192751937519475195751967519775198751997520075201752027520375204752057520675207752087520975210752117521275213752147521575216752177521875219752207522175222752237522475225752267522775228752297523075231752327523375234752357523675237752387523975240752417524275243752447524575246752477524875249752507525175252752537525475255752567525775258752597526075261752627526375264752657526675267752687526975270752717527275273752747527575276752777527875279752807528175282752837528475285752867528775288752897529075291752927529375294752957529675297752987529975300753017530275303753047530575306753077530875309753107531175312753137531475315753167531775318753197532075321753227532375324753257532675327753287532975330753317533275333753347533575336753377533875339753407534175342753437534475345753467534775348753497535075351753527535375354753557535675357753587535975360753617536275363753647536575366753677536875369753707537175372753737537475375753767537775378753797538075381753827538375384753857538675387753887538975390753917539275393753947539575396753977539875399754007540175402754037540475405754067540775408754097541075411754127541375414754157541675417754187541975420754217542275423754247542575426754277542875429754307543175432754337543475435754367543775438754397544075441754427544375444754457544675447754487544975450754517545275453754547545575456754577545875459754607546175462754637546475465754667546775468754697547075471754727547375474754757547675477754787547975480754817548275483754847548575486754877548875489754907549175492754937549475495754967549775498754997550075501755027550375504755057550675507755087550975510755117551275513755147551575516755177551875519755207552175522755237552475525755267552775528755297553075531755327553375534755357553675537755387553975540755417554275543755447554575546755477554875549755507555175552755537555475555755567555775558755597556075561755627556375564755657556675567755687556975570755717557275573755747557575576755777557875579755807558175582755837558475585755867558775588755897559075591755927559375594755957559675597755987559975600756017560275603756047560575606756077560875609756107561175612756137561475615756167561775618756197562075621756227562375624756257562675627756287562975630756317563275633756347563575636756377563875639756407564175642756437564475645756467564775648756497565075651756527565375654756557565675657756587565975660756617566275663756647566575666756677566875669756707567175672756737567475675756767567775678756797568075681756827568375684756857568675687756887568975690756917569275693756947569575696756977569875699757007570175702757037570475705757067570775708757097571075711757127571375714757157571675717757187571975720757217572275723757247572575726757277572875729757307573175732757337573475735757367573775738757397574075741757427574375744757457574675747757487574975750757517575275753757547575575756757577575875759757607576175762757637576475765757667576775768757697577075771757727577375774757757577675777757787577975780757817578275783757847578575786757877578875789757907579175792757937579475795757967579775798757997580075801758027580375804758057580675807758087580975810758117581275813758147581575816758177581875819758207582175822758237582475825758267582775828758297583075831758327583375834758357583675837758387583975840758417584275843758447584575846758477584875849758507585175852758537585475855758567585775858758597586075861758627586375864758657586675867758687586975870758717587275873758747587575876758777587875879758807588175882758837588475885758867588775888758897589075891758927589375894758957589675897758987589975900759017590275903759047590575906759077590875909759107591175912759137591475915759167591775918759197592075921759227592375924759257592675927759287592975930759317593275933759347593575936759377593875939759407594175942759437594475945759467594775948759497595075951759527595375954759557595675957759587595975960759617596275963759647596575966759677596875969759707597175972759737597475975759767597775978759797598075981759827598375984759857598675987759887598975990759917599275993759947599575996759977599875999760007600176002760037600476005760067600776008760097601076011760127601376014760157601676017760187601976020760217602276023760247602576026760277602876029760307603176032760337603476035760367603776038760397604076041760427604376044760457604676047760487604976050760517605276053760547605576056760577605876059760607606176062760637606476065760667606776068760697607076071760727607376074760757607676077760787607976080760817608276083760847608576086760877608876089760907609176092760937609476095760967609776098760997610076101761027610376104761057610676107761087610976110761117611276113761147611576116761177611876119761207612176122761237612476125761267612776128761297613076131761327613376134761357613676137761387613976140761417614276143761447614576146761477614876149761507615176152761537615476155761567615776158761597616076161761627616376164761657616676167761687616976170761717617276173761747617576176761777617876179761807618176182761837618476185761867618776188761897619076191761927619376194761957619676197761987619976200762017620276203762047620576206762077620876209762107621176212762137621476215762167621776218762197622076221762227622376224762257622676227762287622976230762317623276233762347623576236762377623876239762407624176242762437624476245762467624776248762497625076251762527625376254762557625676257762587625976260762617626276263762647626576266762677626876269762707627176272762737627476275762767627776278762797628076281762827628376284762857628676287762887628976290762917629276293762947629576296762977629876299763007630176302763037630476305763067630776308763097631076311763127631376314763157631676317763187631976320763217632276323763247632576326763277632876329763307633176332763337633476335763367633776338763397634076341763427634376344763457634676347763487634976350763517635276353763547635576356763577635876359763607636176362763637636476365763667636776368763697637076371763727637376374763757637676377763787637976380763817638276383763847638576386763877638876389763907639176392763937639476395763967639776398763997640076401764027640376404764057640676407764087640976410764117641276413764147641576416764177641876419764207642176422764237642476425764267642776428764297643076431764327643376434764357643676437764387643976440764417644276443764447644576446764477644876449764507645176452764537645476455764567645776458764597646076461764627646376464764657646676467764687646976470764717647276473764747647576476764777647876479764807648176482764837648476485764867648776488764897649076491764927649376494764957649676497764987649976500765017650276503765047650576506765077650876509765107651176512765137651476515765167651776518765197652076521765227652376524765257652676527765287652976530765317653276533765347653576536765377653876539765407654176542765437654476545765467654776548765497655076551765527655376554765557655676557765587655976560765617656276563765647656576566765677656876569765707657176572765737657476575765767657776578765797658076581765827658376584765857658676587765887658976590765917659276593765947659576596765977659876599766007660176602766037660476605766067660776608766097661076611766127661376614766157661676617766187661976620766217662276623766247662576626766277662876629766307663176632766337663476635766367663776638766397664076641766427664376644766457664676647766487664976650766517665276653766547665576656766577665876659766607666176662766637666476665766667666776668766697667076671766727667376674766757667676677766787667976680766817668276683766847668576686766877668876689766907669176692766937669476695766967669776698766997670076701767027670376704767057670676707767087670976710767117671276713767147671576716767177671876719767207672176722767237672476725767267672776728767297673076731767327673376734767357673676737767387673976740767417674276743767447674576746767477674876749767507675176752767537675476755767567675776758767597676076761767627676376764767657676676767767687676976770767717677276773767747677576776767777677876779767807678176782767837678476785767867678776788767897679076791767927679376794767957679676797767987679976800768017680276803768047680576806768077680876809768107681176812768137681476815768167681776818768197682076821768227682376824768257682676827768287682976830768317683276833768347683576836768377683876839768407684176842768437684476845768467684776848768497685076851768527685376854768557685676857768587685976860768617686276863768647686576866768677686876869768707687176872768737687476875768767687776878768797688076881768827688376884768857688676887768887688976890768917689276893768947689576896768977689876899769007690176902769037690476905769067690776908769097691076911769127691376914769157691676917769187691976920769217692276923769247692576926769277692876929769307693176932769337693476935769367693776938769397694076941769427694376944769457694676947769487694976950769517695276953769547695576956769577695876959769607696176962769637696476965769667696776968769697697076971769727697376974769757697676977769787697976980769817698276983769847698576986769877698876989769907699176992769937699476995769967699776998769997700077001770027700377004770057700677007770087700977010770117701277013770147701577016770177701877019770207702177022770237702477025770267702777028770297703077031770327703377034770357703677037770387703977040770417704277043770447704577046770477704877049770507705177052770537705477055770567705777058770597706077061770627706377064770657706677067770687706977070770717707277073770747707577076770777707877079770807708177082770837708477085770867708777088770897709077091770927709377094770957709677097770987709977100771017710277103771047710577106771077710877109771107711177112771137711477115771167711777118771197712077121771227712377124771257712677127771287712977130771317713277133771347713577136771377713877139771407714177142771437714477145771467714777148771497715077151771527715377154771557715677157771587715977160771617716277163771647716577166771677716877169771707717177172771737717477175771767717777178771797718077181771827718377184771857718677187771887718977190771917719277193771947719577196771977719877199772007720177202772037720477205772067720777208772097721077211772127721377214772157721677217772187721977220772217722277223772247722577226772277722877229772307723177232772337723477235772367723777238772397724077241772427724377244772457724677247772487724977250772517725277253772547725577256772577725877259772607726177262772637726477265772667726777268772697727077271772727727377274772757727677277772787727977280772817728277283772847728577286772877728877289772907729177292772937729477295772967729777298772997730077301773027730377304773057730677307773087730977310773117731277313773147731577316773177731877319773207732177322773237732477325773267732777328773297733077331773327733377334773357733677337773387733977340773417734277343773447734577346773477734877349773507735177352773537735477355773567735777358773597736077361773627736377364773657736677367773687736977370773717737277373773747737577376773777737877379773807738177382773837738477385773867738777388773897739077391773927739377394773957739677397773987739977400774017740277403774047740577406774077740877409774107741177412774137741477415774167741777418774197742077421774227742377424774257742677427774287742977430774317743277433774347743577436774377743877439774407744177442774437744477445774467744777448774497745077451774527745377454774557745677457774587745977460774617746277463774647746577466774677746877469774707747177472774737747477475774767747777478774797748077481774827748377484774857748677487774887748977490774917749277493774947749577496774977749877499775007750177502775037750477505775067750777508775097751077511775127751377514775157751677517775187751977520775217752277523775247752577526775277752877529775307753177532775337753477535775367753777538775397754077541775427754377544775457754677547775487754977550775517755277553775547755577556775577755877559775607756177562775637756477565775667756777568775697757077571775727757377574775757757677577775787757977580775817758277583775847758577586775877758877589775907759177592775937759477595775967759777598775997760077601776027760377604776057760677607776087760977610776117761277613776147761577616776177761877619776207762177622776237762477625776267762777628776297763077631776327763377634776357763677637776387763977640776417764277643776447764577646776477764877649776507765177652776537765477655776567765777658776597766077661776627766377664776657766677667776687766977670776717767277673776747767577676776777767877679776807768177682776837768477685776867768777688776897769077691776927769377694776957769677697776987769977700777017770277703777047770577706777077770877709777107771177712777137771477715777167771777718777197772077721777227772377724777257772677727777287772977730777317773277733777347773577736777377773877739777407774177742777437774477745777467774777748777497775077751777527775377754777557775677757777587775977760777617776277763777647776577766777677776877769777707777177772777737777477775777767777777778777797778077781777827778377784777857778677787777887778977790777917779277793777947779577796777977779877799778007780177802778037780477805778067780777808778097781077811778127781377814778157781677817778187781977820778217782277823778247782577826778277782877829778307783177832778337783477835778367783777838778397784077841778427784377844778457784677847778487784977850778517785277853778547785577856778577785877859778607786177862778637786477865778667786777868778697787077871778727787377874778757787677877778787787977880778817788277883778847788577886778877788877889778907789177892778937789477895778967789777898778997790077901779027790377904779057790677907779087790977910779117791277913779147791577916779177791877919779207792177922779237792477925779267792777928779297793077931779327793377934779357793677937779387793977940779417794277943779447794577946779477794877949779507795177952779537795477955779567795777958779597796077961779627796377964779657796677967779687796977970779717797277973779747797577976779777797877979779807798177982779837798477985779867798777988779897799077991779927799377994779957799677997779987799978000780017800278003780047800578006780077800878009780107801178012780137801478015780167801778018780197802078021780227802378024780257802678027780287802978030780317803278033780347803578036780377803878039780407804178042780437804478045780467804778048780497805078051780527805378054780557805678057780587805978060780617806278063780647806578066780677806878069780707807178072780737807478075780767807778078780797808078081780827808378084780857808678087780887808978090780917809278093780947809578096780977809878099781007810178102781037810478105781067810778108781097811078111781127811378114781157811678117781187811978120781217812278123781247812578126781277812878129781307813178132781337813478135781367813778138781397814078141781427814378144781457814678147781487814978150781517815278153781547815578156781577815878159781607816178162781637816478165781667816778168781697817078171781727817378174781757817678177781787817978180781817818278183781847818578186781877818878189781907819178192781937819478195781967819778198781997820078201782027820378204782057820678207782087820978210782117821278213782147821578216782177821878219782207822178222782237822478225782267822778228782297823078231782327823378234782357823678237782387823978240782417824278243782447824578246782477824878249782507825178252782537825478255782567825778258782597826078261782627826378264782657826678267782687826978270782717827278273782747827578276782777827878279782807828178282782837828478285782867828778288782897829078291782927829378294782957829678297782987829978300783017830278303783047830578306783077830878309783107831178312783137831478315783167831778318783197832078321783227832378324783257832678327783287832978330783317833278333783347833578336783377833878339783407834178342783437834478345783467834778348783497835078351783527835378354783557835678357783587835978360783617836278363783647836578366783677836878369783707837178372783737837478375783767837778378783797838078381783827838378384783857838678387783887838978390783917839278393783947839578396783977839878399784007840178402784037840478405784067840778408784097841078411784127841378414784157841678417784187841978420784217842278423784247842578426784277842878429784307843178432784337843478435784367843778438784397844078441784427844378444784457844678447784487844978450784517845278453784547845578456784577845878459784607846178462784637846478465784667846778468784697847078471784727847378474784757847678477784787847978480784817848278483784847848578486784877848878489784907849178492784937849478495784967849778498784997850078501785027850378504785057850678507785087850978510785117851278513785147851578516785177851878519785207852178522785237852478525785267852778528785297853078531785327853378534785357853678537785387853978540785417854278543785447854578546785477854878549785507855178552785537855478555785567855778558785597856078561785627856378564785657856678567785687856978570785717857278573785747857578576785777857878579785807858178582785837858478585785867858778588785897859078591785927859378594785957859678597785987859978600786017860278603786047860578606786077860878609786107861178612786137861478615786167861778618786197862078621786227862378624786257862678627786287862978630786317863278633786347863578636786377863878639786407864178642786437864478645786467864778648786497865078651786527865378654786557865678657786587865978660786617866278663786647866578666786677866878669786707867178672786737867478675786767867778678786797868078681786827868378684786857868678687786887868978690786917869278693786947869578696786977869878699787007870178702787037870478705787067870778708787097871078711787127871378714787157871678717787187871978720787217872278723787247872578726787277872878729787307873178732787337873478735787367873778738787397874078741787427874378744787457874678747787487874978750787517875278753787547875578756787577875878759787607876178762787637876478765787667876778768787697877078771787727877378774787757877678777787787877978780787817878278783787847878578786787877878878789787907879178792787937879478795787967879778798787997880078801788027880378804788057880678807788087880978810788117881278813788147881578816788177881878819788207882178822788237882478825788267882778828788297883078831788327883378834788357883678837788387883978840788417884278843788447884578846788477884878849788507885178852788537885478855788567885778858788597886078861788627886378864788657886678867788687886978870788717887278873788747887578876788777887878879788807888178882788837888478885788867888778888788897889078891788927889378894788957889678897788987889978900789017890278903789047890578906789077890878909789107891178912789137891478915789167891778918789197892078921789227892378924789257892678927789287892978930789317893278933789347893578936789377893878939789407894178942789437894478945789467894778948789497895078951789527895378954789557895678957789587895978960789617896278963789647896578966789677896878969789707897178972789737897478975789767897778978789797898078981789827898378984789857898678987789887898978990789917899278993789947899578996789977899878999790007900179002790037900479005790067900779008790097901079011790127901379014790157901679017790187901979020790217902279023790247902579026790277902879029790307903179032790337903479035790367903779038790397904079041790427904379044790457904679047790487904979050790517905279053790547905579056790577905879059790607906179062790637906479065790667906779068790697907079071790727907379074790757907679077790787907979080790817908279083790847908579086790877908879089790907909179092790937909479095790967909779098790997910079101791027910379104791057910679107791087910979110791117911279113791147911579116791177911879119791207912179122791237912479125791267912779128791297913079131791327913379134791357913679137791387913979140791417914279143791447914579146791477914879149791507915179152791537915479155791567915779158791597916079161791627916379164791657916679167791687916979170791717917279173791747917579176791777917879179791807918179182791837918479185791867918779188791897919079191791927919379194791957919679197791987919979200792017920279203792047920579206792077920879209792107921179212792137921479215792167921779218792197922079221792227922379224792257922679227792287922979230792317923279233792347923579236792377923879239792407924179242792437924479245792467924779248792497925079251792527925379254792557925679257792587925979260792617926279263792647926579266792677926879269792707927179272792737927479275792767927779278792797928079281792827928379284792857928679287792887928979290792917929279293792947929579296792977929879299793007930179302793037930479305793067930779308793097931079311793127931379314793157931679317793187931979320793217932279323793247932579326793277932879329793307933179332793337933479335793367933779338793397934079341793427934379344793457934679347793487934979350793517935279353793547935579356793577935879359793607936179362793637936479365793667936779368793697937079371793727937379374793757937679377793787937979380793817938279383793847938579386793877938879389793907939179392793937939479395793967939779398793997940079401794027940379404794057940679407794087940979410794117941279413794147941579416794177941879419794207942179422794237942479425794267942779428794297943079431794327943379434794357943679437794387943979440794417944279443794447944579446794477944879449794507945179452794537945479455794567945779458794597946079461794627946379464794657946679467794687946979470794717947279473794747947579476794777947879479794807948179482794837948479485794867948779488794897949079491794927949379494794957949679497794987949979500795017950279503795047950579506795077950879509795107951179512795137951479515795167951779518795197952079521795227952379524795257952679527795287952979530795317953279533795347953579536795377953879539795407954179542795437954479545795467954779548795497955079551795527955379554795557955679557795587955979560795617956279563795647956579566795677956879569795707957179572795737957479575795767957779578795797958079581795827958379584795857958679587795887958979590795917959279593795947959579596795977959879599796007960179602796037960479605796067960779608796097961079611796127961379614796157961679617796187961979620796217962279623796247962579626796277962879629796307963179632796337963479635796367963779638796397964079641796427964379644796457964679647796487964979650796517965279653796547965579656796577965879659796607966179662796637966479665796667966779668796697967079671796727967379674796757967679677796787967979680796817968279683796847968579686796877968879689796907969179692796937969479695796967969779698796997970079701797027970379704797057970679707797087970979710797117971279713797147971579716797177971879719797207972179722797237972479725797267972779728797297973079731797327973379734797357973679737797387973979740797417974279743797447974579746797477974879749797507975179752797537975479755797567975779758797597976079761797627976379764797657976679767797687976979770797717977279773797747977579776797777977879779797807978179782797837978479785797867978779788797897979079791797927979379794797957979679797797987979979800798017980279803798047980579806798077980879809798107981179812798137981479815798167981779818798197982079821798227982379824798257982679827798287982979830798317983279833798347983579836798377983879839798407984179842798437984479845798467984779848798497985079851798527985379854798557985679857798587985979860798617986279863798647986579866798677986879869798707987179872798737987479875798767987779878798797988079881798827988379884798857988679887798887988979890798917989279893798947989579896798977989879899799007990179902799037990479905799067990779908799097991079911799127991379914799157991679917799187991979920799217992279923799247992579926799277992879929799307993179932799337993479935799367993779938799397994079941799427994379944799457994679947799487994979950799517995279953799547995579956799577995879959799607996179962799637996479965799667996779968799697997079971799727997379974799757997679977799787997979980799817998279983799847998579986799877998879989799907999179992799937999479995799967999779998799998000080001800028000380004800058000680007800088000980010800118001280013800148001580016800178001880019800208002180022800238002480025800268002780028800298003080031800328003380034800358003680037800388003980040800418004280043800448004580046800478004880049800508005180052800538005480055800568005780058800598006080061800628006380064800658006680067800688006980070800718007280073800748007580076800778007880079800808008180082800838008480085800868008780088800898009080091800928009380094800958009680097800988009980100801018010280103801048010580106801078010880109801108011180112801138011480115801168011780118801198012080121801228012380124801258012680127801288012980130801318013280133801348013580136801378013880139801408014180142801438014480145801468014780148801498015080151801528015380154801558015680157801588015980160801618016280163801648016580166801678016880169801708017180172801738017480175801768017780178801798018080181801828018380184801858018680187801888018980190801918019280193801948019580196801978019880199802008020180202802038020480205802068020780208802098021080211802128021380214802158021680217802188021980220802218022280223802248022580226802278022880229802308023180232802338023480235802368023780238802398024080241802428024380244802458024680247802488024980250802518025280253802548025580256802578025880259802608026180262802638026480265802668026780268802698027080271802728027380274802758027680277802788027980280802818028280283802848028580286802878028880289802908029180292802938029480295802968029780298802998030080301803028030380304803058030680307803088030980310803118031280313803148031580316803178031880319803208032180322803238032480325803268032780328803298033080331803328033380334803358033680337803388033980340803418034280343803448034580346803478034880349803508035180352803538035480355803568035780358803598036080361803628036380364803658036680367803688036980370803718037280373803748037580376803778037880379803808038180382803838038480385803868038780388803898039080391803928039380394803958039680397803988039980400804018040280403804048040580406804078040880409804108041180412804138041480415804168041780418804198042080421804228042380424804258042680427804288042980430804318043280433804348043580436804378043880439804408044180442804438044480445804468044780448804498045080451804528045380454804558045680457804588045980460804618046280463804648046580466804678046880469804708047180472804738047480475804768047780478804798048080481804828048380484804858048680487804888048980490804918049280493804948049580496804978049880499805008050180502805038050480505805068050780508805098051080511805128051380514805158051680517805188051980520805218052280523805248052580526805278052880529805308053180532805338053480535805368053780538805398054080541805428054380544805458054680547805488054980550805518055280553805548055580556805578055880559805608056180562805638056480565805668056780568805698057080571805728057380574805758057680577805788057980580805818058280583805848058580586805878058880589805908059180592805938059480595805968059780598805998060080601806028060380604806058060680607806088060980610806118061280613806148061580616806178061880619806208062180622806238062480625806268062780628806298063080631806328063380634806358063680637806388063980640806418064280643806448064580646806478064880649806508065180652806538065480655806568065780658806598066080661806628066380664806658066680667806688066980670806718067280673806748067580676806778067880679806808068180682806838068480685806868068780688806898069080691806928069380694806958069680697806988069980700807018070280703807048070580706807078070880709807108071180712807138071480715807168071780718807198072080721807228072380724807258072680727807288072980730807318073280733807348073580736807378073880739807408074180742807438074480745807468074780748807498075080751807528075380754807558075680757807588075980760807618076280763807648076580766807678076880769807708077180772807738077480775807768077780778807798078080781807828078380784807858078680787807888078980790807918079280793807948079580796807978079880799808008080180802808038080480805808068080780808808098081080811808128081380814808158081680817808188081980820808218082280823808248082580826808278082880829808308083180832808338083480835808368083780838808398084080841808428084380844808458084680847808488084980850808518085280853808548085580856808578085880859808608086180862808638086480865808668086780868808698087080871808728087380874808758087680877808788087980880808818088280883808848088580886808878088880889808908089180892808938089480895808968089780898808998090080901809028090380904809058090680907809088090980910809118091280913809148091580916809178091880919809208092180922809238092480925809268092780928809298093080931809328093380934809358093680937809388093980940809418094280943809448094580946809478094880949809508095180952809538095480955809568095780958809598096080961809628096380964809658096680967809688096980970809718097280973809748097580976809778097880979809808098180982809838098480985809868098780988809898099080991809928099380994809958099680997809988099981000810018100281003810048100581006810078100881009810108101181012810138101481015810168101781018810198102081021810228102381024810258102681027810288102981030810318103281033810348103581036810378103881039810408104181042810438104481045810468104781048810498105081051810528105381054810558105681057810588105981060810618106281063810648106581066810678106881069810708107181072810738107481075810768107781078810798108081081810828108381084810858108681087810888108981090810918109281093810948109581096810978109881099811008110181102811038110481105811068110781108811098111081111811128111381114811158111681117811188111981120811218112281123811248112581126811278112881129811308113181132811338113481135811368113781138811398114081141811428114381144811458114681147811488114981150811518115281153811548115581156811578115881159811608116181162811638116481165811668116781168811698117081171811728117381174811758117681177811788117981180811818118281183811848118581186811878118881189811908119181192811938119481195811968119781198811998120081201812028120381204812058120681207812088120981210812118121281213812148121581216812178121881219812208122181222812238122481225812268122781228812298123081231812328123381234812358123681237812388123981240812418124281243812448124581246812478124881249812508125181252812538125481255812568125781258812598126081261812628126381264812658126681267812688126981270812718127281273812748127581276812778127881279812808128181282812838128481285812868128781288812898129081291812928129381294812958129681297812988129981300813018130281303813048130581306813078130881309813108131181312813138131481315813168131781318813198132081321813228132381324813258132681327813288132981330813318133281333813348133581336813378133881339813408134181342813438134481345813468134781348813498135081351813528135381354813558135681357813588135981360813618136281363813648136581366813678136881369813708137181372813738137481375813768137781378813798138081381813828138381384813858138681387813888138981390813918139281393813948139581396813978139881399814008140181402814038140481405814068140781408814098141081411814128141381414814158141681417814188141981420814218142281423814248142581426814278142881429814308143181432814338143481435814368143781438814398144081441814428144381444814458144681447814488144981450814518145281453814548145581456814578145881459814608146181462814638146481465814668146781468814698147081471814728147381474814758147681477814788147981480814818148281483814848148581486814878148881489814908149181492814938149481495814968149781498814998150081501815028150381504815058150681507815088150981510815118151281513815148151581516815178151881519815208152181522815238152481525815268152781528815298153081531815328153381534815358153681537815388153981540815418154281543815448154581546815478154881549815508155181552815538155481555815568155781558815598156081561815628156381564815658156681567815688156981570815718157281573815748157581576815778157881579815808158181582815838158481585815868158781588815898159081591815928159381594815958159681597815988159981600816018160281603816048160581606816078160881609816108161181612816138161481615816168161781618816198162081621816228162381624816258162681627816288162981630816318163281633816348163581636816378163881639816408164181642816438164481645816468164781648816498165081651816528165381654816558165681657816588165981660816618166281663816648166581666816678166881669816708167181672816738167481675816768167781678816798168081681816828168381684816858168681687816888168981690816918169281693816948169581696816978169881699817008170181702817038170481705817068170781708817098171081711817128171381714817158171681717817188171981720817218172281723817248172581726817278172881729817308173181732817338173481735817368173781738817398174081741817428174381744817458174681747817488174981750817518175281753817548175581756817578175881759817608176181762817638176481765817668176781768817698177081771817728177381774817758177681777817788177981780817818178281783817848178581786817878178881789817908179181792817938179481795817968179781798817998180081801818028180381804818058180681807818088180981810818118181281813818148181581816818178181881819818208182181822818238182481825818268182781828818298183081831818328183381834818358183681837818388183981840818418184281843818448184581846818478184881849818508185181852818538185481855818568185781858818598186081861818628186381864818658186681867818688186981870818718187281873818748187581876818778187881879818808188181882818838188481885818868188781888818898189081891818928189381894818958189681897818988189981900819018190281903819048190581906819078190881909819108191181912819138191481915819168191781918819198192081921819228192381924819258192681927819288192981930819318193281933819348193581936819378193881939819408194181942819438194481945819468194781948819498195081951819528195381954819558195681957819588195981960819618196281963819648196581966819678196881969819708197181972819738197481975819768197781978819798198081981819828198381984819858198681987819888198981990819918199281993819948199581996819978199881999820008200182002820038200482005820068200782008820098201082011820128201382014820158201682017820188201982020820218202282023820248202582026820278202882029820308203182032820338203482035820368203782038820398204082041820428204382044820458204682047820488204982050820518205282053820548205582056820578205882059820608206182062820638206482065820668206782068820698207082071820728207382074820758207682077820788207982080820818208282083820848208582086820878208882089820908209182092820938209482095820968209782098820998210082101821028210382104821058210682107821088210982110821118211282113821148211582116821178211882119821208212182122821238212482125821268212782128821298213082131821328213382134821358213682137821388213982140821418214282143821448214582146821478214882149821508215182152821538215482155821568215782158821598216082161821628216382164821658216682167821688216982170821718217282173821748217582176821778217882179821808218182182821838218482185821868218782188821898219082191821928219382194821958219682197821988219982200822018220282203822048220582206822078220882209822108221182212822138221482215822168221782218822198222082221822228222382224822258222682227822288222982230822318223282233822348223582236822378223882239822408224182242822438224482245822468224782248822498225082251822528225382254822558225682257822588225982260822618226282263822648226582266822678226882269822708227182272822738227482275822768227782278822798228082281822828228382284822858228682287822888228982290822918229282293822948229582296822978229882299823008230182302823038230482305823068230782308823098231082311823128231382314823158231682317823188231982320823218232282323823248232582326823278232882329823308233182332823338233482335823368233782338823398234082341823428234382344823458234682347823488234982350823518235282353823548235582356823578235882359823608236182362823638236482365823668236782368823698237082371823728237382374823758237682377823788237982380823818238282383823848238582386823878238882389823908239182392823938239482395823968239782398823998240082401824028240382404824058240682407824088240982410824118241282413824148241582416824178241882419824208242182422824238242482425824268242782428824298243082431824328243382434824358243682437824388243982440824418244282443824448244582446824478244882449824508245182452824538245482455824568245782458824598246082461824628246382464824658246682467824688246982470824718247282473824748247582476824778247882479824808248182482824838248482485824868248782488824898249082491824928249382494824958249682497824988249982500825018250282503825048250582506825078250882509825108251182512825138251482515825168251782518825198252082521825228252382524825258252682527825288252982530825318253282533825348253582536825378253882539825408254182542825438254482545825468254782548825498255082551825528255382554825558255682557825588255982560825618256282563825648256582566825678256882569825708257182572825738257482575825768257782578825798258082581825828258382584825858258682587825888258982590825918259282593825948259582596825978259882599826008260182602826038260482605826068260782608826098261082611826128261382614826158261682617826188261982620826218262282623826248262582626826278262882629826308263182632826338263482635826368263782638826398264082641826428264382644826458264682647826488264982650826518265282653826548265582656826578265882659826608266182662826638266482665826668266782668826698267082671826728267382674826758267682677826788267982680826818268282683826848268582686826878268882689826908269182692826938269482695826968269782698826998270082701827028270382704827058270682707827088270982710827118271282713827148271582716827178271882719827208272182722827238272482725827268272782728827298273082731827328273382734827358273682737827388273982740827418274282743827448274582746827478274882749827508275182752827538275482755827568275782758827598276082761827628276382764827658276682767827688276982770827718277282773827748277582776827778277882779827808278182782827838278482785827868278782788827898279082791827928279382794827958279682797827988279982800828018280282803828048280582806828078280882809828108281182812828138281482815828168281782818828198282082821828228282382824828258282682827828288282982830828318283282833828348283582836828378283882839828408284182842828438284482845828468284782848828498285082851828528285382854828558285682857828588285982860828618286282863828648286582866828678286882869828708287182872828738287482875828768287782878828798288082881828828288382884828858288682887828888288982890828918289282893828948289582896828978289882899829008290182902829038290482905829068290782908829098291082911829128291382914829158291682917829188291982920829218292282923829248292582926829278292882929829308293182932829338293482935829368293782938829398294082941829428294382944829458294682947829488294982950829518295282953829548295582956829578295882959829608296182962829638296482965829668296782968829698297082971829728297382974829758297682977829788297982980829818298282983829848298582986829878298882989829908299182992829938299482995829968299782998829998300083001830028300383004830058300683007830088300983010830118301283013830148301583016830178301883019830208302183022830238302483025830268302783028830298303083031830328303383034830358303683037830388303983040830418304283043830448304583046830478304883049830508305183052830538305483055830568305783058830598306083061830628306383064830658306683067830688306983070830718307283073830748307583076830778307883079830808308183082830838308483085830868308783088830898309083091830928309383094830958309683097830988309983100831018310283103831048310583106831078310883109831108311183112831138311483115831168311783118831198312083121831228312383124831258312683127831288312983130831318313283133831348313583136831378313883139831408314183142831438314483145831468314783148831498315083151831528315383154831558315683157831588315983160831618316283163831648316583166831678316883169831708317183172831738317483175831768317783178831798318083181831828318383184831858318683187831888318983190831918319283193831948319583196831978319883199832008320183202832038320483205832068320783208832098321083211832128321383214832158321683217832188321983220832218322283223832248322583226832278322883229832308323183232832338323483235832368323783238832398324083241832428324383244832458324683247832488324983250832518325283253832548325583256832578325883259832608326183262832638326483265832668326783268832698327083271832728327383274832758327683277832788327983280832818328283283832848328583286832878328883289832908329183292832938329483295832968329783298832998330083301833028330383304833058330683307833088330983310833118331283313833148331583316833178331883319833208332183322833238332483325833268332783328833298333083331833328333383334833358333683337833388333983340833418334283343833448334583346833478334883349833508335183352833538335483355833568335783358833598336083361833628336383364833658336683367833688336983370833718337283373833748337583376833778337883379833808338183382833838338483385833868338783388833898339083391833928339383394833958339683397833988339983400834018340283403834048340583406834078340883409834108341183412834138341483415834168341783418834198342083421834228342383424834258342683427834288342983430834318343283433834348343583436834378343883439834408344183442834438344483445834468344783448834498345083451834528345383454834558345683457834588345983460834618346283463834648346583466834678346883469834708347183472834738347483475834768347783478834798348083481834828348383484834858348683487834888348983490834918349283493834948349583496834978349883499835008350183502835038350483505835068350783508835098351083511835128351383514835158351683517835188351983520835218352283523835248352583526835278352883529835308353183532835338353483535835368353783538835398354083541835428354383544835458354683547835488354983550835518355283553835548355583556835578355883559835608356183562835638356483565835668356783568835698357083571835728357383574835758357683577835788357983580835818358283583835848358583586835878358883589835908359183592835938359483595835968359783598835998360083601836028360383604836058360683607836088360983610836118361283613836148361583616836178361883619836208362183622836238362483625836268362783628836298363083631836328363383634836358363683637836388363983640836418364283643836448364583646836478364883649836508365183652836538365483655836568365783658836598366083661836628366383664836658366683667836688366983670836718367283673836748367583676836778367883679836808368183682836838368483685836868368783688836898369083691836928369383694836958369683697836988369983700837018370283703837048370583706837078370883709837108371183712837138371483715837168371783718837198372083721837228372383724837258372683727837288372983730837318373283733837348373583736837378373883739837408374183742837438374483745837468374783748837498375083751837528375383754837558375683757837588375983760837618376283763837648376583766837678376883769837708377183772837738377483775837768377783778837798378083781837828378383784837858378683787837888378983790837918379283793837948379583796837978379883799838008380183802838038380483805838068380783808838098381083811838128381383814838158381683817838188381983820838218382283823838248382583826838278382883829838308383183832838338383483835838368383783838838398384083841838428384383844838458384683847838488384983850838518385283853838548385583856838578385883859838608386183862838638386483865838668386783868838698387083871838728387383874838758387683877838788387983880838818388283883838848388583886838878388883889838908389183892838938389483895838968389783898838998390083901839028390383904839058390683907839088390983910839118391283913839148391583916839178391883919839208392183922839238392483925839268392783928839298393083931839328393383934839358393683937839388393983940839418394283943839448394583946839478394883949839508395183952839538395483955839568395783958839598396083961839628396383964839658396683967839688396983970839718397283973839748397583976839778397883979839808398183982839838398483985839868398783988839898399083991839928399383994839958399683997839988399984000840018400284003840048400584006840078400884009840108401184012840138401484015840168401784018840198402084021840228402384024840258402684027840288402984030840318403284033840348403584036840378403884039840408404184042840438404484045840468404784048840498405084051840528405384054840558405684057840588405984060840618406284063840648406584066840678406884069840708407184072840738407484075840768407784078840798408084081840828408384084840858408684087840888408984090840918409284093840948409584096840978409884099841008410184102841038410484105841068410784108841098411084111841128411384114841158411684117841188411984120841218412284123841248412584126841278412884129841308413184132841338413484135841368413784138841398414084141841428414384144841458414684147841488414984150841518415284153841548415584156841578415884159841608416184162841638416484165841668416784168841698417084171841728417384174841758417684177841788417984180841818418284183841848418584186841878418884189841908419184192841938419484195841968419784198841998420084201842028420384204842058420684207842088420984210842118421284213842148421584216842178421884219842208422184222842238422484225842268422784228842298423084231842328423384234842358423684237842388423984240842418424284243842448424584246842478424884249842508425184252842538425484255842568425784258842598426084261842628426384264842658426684267842688426984270842718427284273842748427584276842778427884279842808428184282842838428484285842868428784288842898429084291842928429384294842958429684297842988429984300843018430284303843048430584306843078430884309843108431184312843138431484315843168431784318843198432084321843228432384324843258432684327843288432984330843318433284333843348433584336843378433884339843408434184342843438434484345843468434784348843498435084351843528435384354843558435684357843588435984360843618436284363843648436584366843678436884369843708437184372843738437484375843768437784378843798438084381843828438384384843858438684387843888438984390843918439284393843948439584396843978439884399844008440184402844038440484405844068440784408844098441084411844128441384414844158441684417844188441984420844218442284423844248442584426844278442884429844308443184432844338443484435844368443784438844398444084441844428444384444844458444684447844488444984450844518445284453844548445584456844578445884459844608446184462844638446484465844668446784468844698447084471844728447384474844758447684477844788447984480844818448284483844848448584486844878448884489844908449184492844938449484495844968449784498844998450084501845028450384504845058450684507845088450984510845118451284513845148451584516845178451884519845208452184522845238452484525845268452784528845298453084531845328453384534845358453684537845388453984540845418454284543845448454584546845478454884549845508455184552845538455484555845568455784558845598456084561845628456384564845658456684567845688456984570845718457284573845748457584576845778457884579845808458184582845838458484585845868458784588845898459084591845928459384594845958459684597845988459984600846018460284603846048460584606846078460884609846108461184612846138461484615846168461784618846198462084621846228462384624846258462684627846288462984630846318463284633846348463584636846378463884639846408464184642846438464484645846468464784648846498465084651846528465384654846558465684657846588465984660846618466284663846648466584666846678466884669846708467184672846738467484675846768467784678846798468084681846828468384684846858468684687846888468984690846918469284693846948469584696846978469884699847008470184702847038470484705847068470784708847098471084711847128471384714847158471684717847188471984720847218472284723847248472584726847278472884729847308473184732847338473484735847368473784738847398474084741847428474384744847458474684747847488474984750847518475284753847548475584756847578475884759847608476184762847638476484765847668476784768847698477084771847728477384774847758477684777847788477984780847818478284783847848478584786847878478884789847908479184792847938479484795847968479784798847998480084801848028480384804848058480684807848088480984810848118481284813848148481584816848178481884819848208482184822848238482484825848268482784828848298483084831848328483384834848358483684837848388483984840848418484284843848448484584846848478484884849848508485184852848538485484855848568485784858848598486084861848628486384864848658486684867848688486984870848718487284873848748487584876848778487884879848808488184882848838488484885848868488784888848898489084891848928489384894848958489684897848988489984900849018490284903849048490584906849078490884909849108491184912849138491484915849168491784918849198492084921849228492384924849258492684927849288492984930849318493284933849348493584936849378493884939849408494184942849438494484945849468494784948849498495084951849528495384954849558495684957849588495984960849618496284963849648496584966849678496884969849708497184972849738497484975849768497784978849798498084981849828498384984849858498684987849888498984990849918499284993849948499584996849978499884999850008500185002850038500485005850068500785008850098501085011850128501385014850158501685017850188501985020850218502285023850248502585026850278502885029850308503185032850338503485035850368503785038850398504085041850428504385044850458504685047850488504985050850518505285053850548505585056850578505885059850608506185062850638506485065850668506785068850698507085071850728507385074850758507685077850788507985080850818508285083850848508585086850878508885089850908509185092850938509485095850968509785098850998510085101851028510385104851058510685107851088510985110851118511285113851148511585116851178511885119851208512185122851238512485125851268512785128851298513085131851328513385134851358513685137851388513985140851418514285143851448514585146851478514885149851508515185152851538515485155851568515785158851598516085161851628516385164851658516685167851688516985170851718517285173851748517585176851778517885179851808518185182851838518485185851868518785188851898519085191851928519385194851958519685197851988519985200852018520285203852048520585206852078520885209852108521185212852138521485215852168521785218852198522085221852228522385224852258522685227852288522985230852318523285233852348523585236852378523885239852408524185242852438524485245852468524785248852498525085251852528525385254852558525685257852588525985260852618526285263852648526585266852678526885269852708527185272852738527485275852768527785278852798528085281852828528385284852858528685287852888528985290852918529285293852948529585296852978529885299853008530185302853038530485305853068530785308853098531085311853128531385314853158531685317853188531985320853218532285323853248532585326853278532885329853308533185332853338533485335853368533785338853398534085341853428534385344853458534685347853488534985350853518535285353853548535585356853578535885359853608536185362853638536485365853668536785368853698537085371853728537385374853758537685377853788537985380853818538285383853848538585386853878538885389853908539185392853938539485395853968539785398853998540085401854028540385404854058540685407854088540985410854118541285413854148541585416854178541885419854208542185422854238542485425854268542785428854298543085431854328543385434854358543685437854388543985440854418544285443854448544585446854478544885449854508545185452854538545485455854568545785458854598546085461854628546385464854658546685467854688546985470854718547285473854748547585476854778547885479854808548185482854838548485485854868548785488854898549085491854928549385494854958549685497854988549985500855018550285503855048550585506855078550885509855108551185512855138551485515855168551785518855198552085521855228552385524855258552685527855288552985530855318553285533855348553585536855378553885539855408554185542855438554485545855468554785548855498555085551855528555385554855558555685557855588555985560855618556285563855648556585566855678556885569855708557185572855738557485575855768557785578855798558085581855828558385584855858558685587855888558985590855918559285593855948559585596855978559885599856008560185602856038560485605856068560785608856098561085611856128561385614856158561685617856188561985620856218562285623856248562585626856278562885629856308563185632856338563485635856368563785638856398564085641856428564385644856458564685647856488564985650856518565285653856548565585656856578565885659856608566185662856638566485665856668566785668856698567085671856728567385674856758567685677856788567985680856818568285683856848568585686856878568885689856908569185692856938569485695856968569785698856998570085701857028570385704857058570685707857088570985710857118571285713857148571585716857178571885719857208572185722857238572485725857268572785728857298573085731857328573385734857358573685737857388573985740857418574285743857448574585746857478574885749857508575185752857538575485755857568575785758857598576085761857628576385764857658576685767857688576985770857718577285773857748577585776857778577885779857808578185782857838578485785857868578785788857898579085791857928579385794857958579685797857988579985800858018580285803858048580585806858078580885809858108581185812858138581485815858168581785818858198582085821858228582385824858258582685827858288582985830858318583285833858348583585836858378583885839858408584185842858438584485845858468584785848858498585085851858528585385854858558585685857858588585985860858618586285863858648586585866858678586885869858708587185872858738587485875858768587785878858798588085881858828588385884858858588685887858888588985890858918589285893858948589585896858978589885899859008590185902859038590485905859068590785908859098591085911859128591385914859158591685917859188591985920859218592285923859248592585926859278592885929859308593185932859338593485935859368593785938859398594085941859428594385944859458594685947859488594985950859518595285953859548595585956859578595885959859608596185962859638596485965859668596785968859698597085971859728597385974859758597685977859788597985980859818598285983859848598585986859878598885989859908599185992859938599485995859968599785998859998600086001860028600386004860058600686007860088600986010860118601286013860148601586016860178601886019860208602186022860238602486025860268602786028860298603086031860328603386034860358603686037860388603986040860418604286043860448604586046860478604886049860508605186052860538605486055860568605786058860598606086061860628606386064860658606686067860688606986070860718607286073860748607586076860778607886079860808608186082860838608486085860868608786088860898609086091860928609386094860958609686097860988609986100861018610286103861048610586106861078610886109861108611186112861138611486115861168611786118861198612086121861228612386124861258612686127861288612986130861318613286133861348613586136861378613886139861408614186142861438614486145861468614786148861498615086151861528615386154861558615686157861588615986160861618616286163861648616586166861678616886169861708617186172861738617486175861768617786178861798618086181861828618386184861858618686187861888618986190861918619286193861948619586196861978619886199862008620186202862038620486205862068620786208862098621086211862128621386214862158621686217862188621986220862218622286223862248622586226862278622886229862308623186232862338623486235862368623786238862398624086241862428624386244862458624686247862488624986250862518625286253862548625586256862578625886259862608626186262862638626486265862668626786268862698627086271862728627386274862758627686277862788627986280862818628286283862848628586286862878628886289862908629186292862938629486295862968629786298862998630086301863028630386304863058630686307863088630986310863118631286313863148631586316863178631886319863208632186322863238632486325863268632786328863298633086331863328633386334863358633686337863388633986340863418634286343863448634586346863478634886349863508635186352863538635486355863568635786358863598636086361863628636386364863658636686367863688636986370863718637286373863748637586376863778637886379863808638186382863838638486385863868638786388863898639086391863928639386394863958639686397863988639986400864018640286403864048640586406864078640886409864108641186412864138641486415864168641786418864198642086421864228642386424864258642686427864288642986430864318643286433864348643586436864378643886439864408644186442864438644486445864468644786448864498645086451864528645386454864558645686457864588645986460864618646286463864648646586466864678646886469864708647186472864738647486475864768647786478864798648086481864828648386484864858648686487864888648986490864918649286493864948649586496864978649886499865008650186502865038650486505865068650786508865098651086511865128651386514865158651686517865188651986520865218652286523865248652586526865278652886529865308653186532865338653486535865368653786538865398654086541865428654386544865458654686547865488654986550865518655286553865548655586556865578655886559865608656186562865638656486565865668656786568865698657086571865728657386574865758657686577865788657986580865818658286583865848658586586865878658886589865908659186592865938659486595865968659786598865998660086601866028660386604866058660686607866088660986610866118661286613866148661586616866178661886619866208662186622866238662486625866268662786628866298663086631866328663386634866358663686637866388663986640866418664286643866448664586646866478664886649866508665186652866538665486655866568665786658866598666086661866628666386664866658666686667866688666986670866718667286673866748667586676866778667886679866808668186682866838668486685866868668786688866898669086691866928669386694866958669686697866988669986700867018670286703867048670586706867078670886709867108671186712867138671486715867168671786718867198672086721867228672386724867258672686727867288672986730867318673286733867348673586736867378673886739867408674186742867438674486745867468674786748867498675086751867528675386754867558675686757867588675986760867618676286763867648676586766867678676886769867708677186772867738677486775867768677786778867798678086781867828678386784867858678686787867888678986790867918679286793867948679586796867978679886799868008680186802868038680486805868068680786808868098681086811868128681386814868158681686817868188681986820868218682286823868248682586826868278682886829868308683186832868338683486835868368683786838868398684086841868428684386844868458684686847868488684986850868518685286853868548685586856868578685886859868608686186862868638686486865868668686786868868698687086871868728687386874868758687686877868788687986880868818688286883868848688586886868878688886889868908689186892868938689486895868968689786898868998690086901869028690386904869058690686907869088690986910869118691286913869148691586916869178691886919869208692186922869238692486925869268692786928869298693086931869328693386934869358693686937869388693986940869418694286943869448694586946869478694886949869508695186952869538695486955869568695786958869598696086961869628696386964869658696686967869688696986970869718697286973869748697586976869778697886979869808698186982869838698486985869868698786988869898699086991869928699386994869958699686997869988699987000870018700287003870048700587006870078700887009870108701187012870138701487015870168701787018870198702087021870228702387024870258702687027870288702987030870318703287033870348703587036870378703887039870408704187042870438704487045870468704787048870498705087051870528705387054870558705687057870588705987060870618706287063870648706587066870678706887069870708707187072870738707487075870768707787078870798708087081870828708387084870858708687087870888708987090870918709287093870948709587096870978709887099871008710187102871038710487105871068710787108871098711087111871128711387114871158711687117871188711987120871218712287123871248712587126871278712887129871308713187132871338713487135871368713787138871398714087141871428714387144871458714687147871488714987150871518715287153871548715587156871578715887159871608716187162871638716487165871668716787168871698717087171871728717387174871758717687177871788717987180871818718287183871848718587186871878718887189871908719187192871938719487195871968719787198871998720087201872028720387204872058720687207872088720987210872118721287213872148721587216872178721887219872208722187222872238722487225872268722787228872298723087231872328723387234872358723687237872388723987240872418724287243872448724587246872478724887249872508725187252872538725487255872568725787258872598726087261872628726387264872658726687267872688726987270872718727287273872748727587276872778727887279872808728187282872838728487285872868728787288872898729087291872928729387294872958729687297872988729987300873018730287303873048730587306873078730887309873108731187312873138731487315873168731787318873198732087321873228732387324873258732687327873288732987330873318733287333873348733587336873378733887339873408734187342873438734487345873468734787348873498735087351873528735387354873558735687357873588735987360873618736287363873648736587366873678736887369873708737187372873738737487375873768737787378873798738087381873828738387384873858738687387873888738987390873918739287393873948739587396873978739887399874008740187402874038740487405874068740787408874098741087411874128741387414874158741687417874188741987420874218742287423874248742587426874278742887429874308743187432874338743487435874368743787438874398744087441874428744387444874458744687447874488744987450874518745287453874548745587456874578745887459874608746187462874638746487465874668746787468874698747087471874728747387474874758747687477874788747987480874818748287483874848748587486874878748887489874908749187492874938749487495874968749787498874998750087501875028750387504875058750687507875088750987510875118751287513875148751587516875178751887519875208752187522875238752487525875268752787528875298753087531875328753387534875358753687537875388753987540875418754287543875448754587546875478754887549875508755187552875538755487555875568755787558875598756087561875628756387564875658756687567875688756987570875718757287573875748757587576875778757887579875808758187582875838758487585875868758787588875898759087591875928759387594875958759687597875988759987600876018760287603876048760587606876078760887609876108761187612876138761487615876168761787618876198762087621876228762387624876258762687627876288762987630876318763287633876348763587636876378763887639876408764187642876438764487645876468764787648876498765087651876528765387654876558765687657876588765987660876618766287663876648766587666876678766887669876708767187672876738767487675876768767787678876798768087681876828768387684876858768687687876888768987690876918769287693876948769587696876978769887699877008770187702877038770487705877068770787708877098771087711877128771387714877158771687717877188771987720877218772287723877248772587726877278772887729877308773187732877338773487735877368773787738877398774087741877428774387744877458774687747877488774987750877518775287753877548775587756877578775887759877608776187762877638776487765877668776787768877698777087771877728777387774877758777687777877788777987780877818778287783877848778587786877878778887789877908779187792877938779487795877968779787798877998780087801878028780387804878058780687807878088780987810878118781287813878148781587816878178781887819878208782187822878238782487825878268782787828878298783087831878328783387834878358783687837878388783987840878418784287843878448784587846878478784887849878508785187852878538785487855878568785787858878598786087861878628786387864878658786687867878688786987870878718787287873878748787587876878778787887879878808788187882878838788487885878868788787888878898789087891878928789387894878958789687897878988789987900879018790287903879048790587906879078790887909879108791187912879138791487915879168791787918879198792087921879228792387924879258792687927879288792987930879318793287933879348793587936879378793887939879408794187942879438794487945879468794787948879498795087951879528795387954879558795687957879588795987960879618796287963879648796587966879678796887969879708797187972879738797487975879768797787978879798798087981879828798387984879858798687987879888798987990879918799287993879948799587996879978799887999880008800188002880038800488005880068800788008880098801088011880128801388014880158801688017880188801988020880218802288023880248802588026880278802888029880308803188032880338803488035880368803788038880398804088041880428804388044880458804688047880488804988050880518805288053880548805588056880578805888059880608806188062880638806488065880668806788068880698807088071880728807388074880758807688077880788807988080880818808288083880848808588086880878808888089880908809188092880938809488095880968809788098880998810088101881028810388104881058810688107881088810988110881118811288113881148811588116881178811888119881208812188122881238812488125881268812788128881298813088131881328813388134881358813688137881388813988140881418814288143881448814588146881478814888149881508815188152881538815488155881568815788158881598816088161881628816388164881658816688167881688816988170881718817288173881748817588176881778817888179881808818188182881838818488185881868818788188881898819088191881928819388194881958819688197881988819988200882018820288203882048820588206882078820888209882108821188212882138821488215882168821788218882198822088221882228822388224882258822688227882288822988230882318823288233882348823588236882378823888239882408824188242882438824488245882468824788248882498825088251882528825388254882558825688257882588825988260882618826288263882648826588266882678826888269882708827188272882738827488275882768827788278882798828088281882828828388284882858828688287882888828988290882918829288293882948829588296882978829888299883008830188302883038830488305883068830788308883098831088311883128831388314883158831688317883188831988320883218832288323883248832588326883278832888329883308833188332883338833488335883368833788338883398834088341883428834388344883458834688347883488834988350883518835288353883548835588356883578835888359883608836188362883638836488365883668836788368883698837088371883728837388374883758837688377883788837988380883818838288383883848838588386883878838888389883908839188392883938839488395883968839788398883998840088401884028840388404884058840688407884088840988410884118841288413884148841588416884178841888419884208842188422884238842488425884268842788428884298843088431884328843388434884358843688437884388843988440884418844288443884448844588446884478844888449884508845188452884538845488455884568845788458884598846088461884628846388464884658846688467884688846988470884718847288473884748847588476884778847888479884808848188482884838848488485884868848788488884898849088491884928849388494884958849688497884988849988500885018850288503885048850588506885078850888509885108851188512885138851488515885168851788518885198852088521885228852388524885258852688527885288852988530885318853288533885348853588536885378853888539885408854188542885438854488545885468854788548885498855088551885528855388554885558855688557885588855988560885618856288563885648856588566885678856888569885708857188572885738857488575885768857788578885798858088581885828858388584885858858688587885888858988590885918859288593885948859588596885978859888599886008860188602886038860488605886068860788608886098861088611886128861388614886158861688617886188861988620886218862288623886248862588626886278862888629886308863188632886338863488635886368863788638886398864088641886428864388644886458864688647886488864988650886518865288653886548865588656886578865888659886608866188662886638866488665886668866788668886698867088671886728867388674886758867688677886788867988680886818868288683886848868588686886878868888689886908869188692886938869488695886968869788698886998870088701887028870388704887058870688707887088870988710887118871288713887148871588716887178871888719887208872188722887238872488725887268872788728887298873088731887328873388734887358873688737887388873988740887418874288743887448874588746887478874888749887508875188752887538875488755887568875788758887598876088761887628876388764887658876688767887688876988770887718877288773887748877588776887778877888779887808878188782887838878488785887868878788788887898879088791887928879388794887958879688797887988879988800888018880288803888048880588806888078880888809888108881188812888138881488815888168881788818888198882088821888228882388824888258882688827888288882988830888318883288833888348883588836888378883888839888408884188842888438884488845888468884788848888498885088851888528885388854888558885688857888588885988860888618886288863888648886588866888678886888869888708887188872888738887488875888768887788878888798888088881888828888388884888858888688887888888888988890888918889288893888948889588896888978889888899889008890188902889038890488905889068890788908889098891088911889128891388914889158891688917889188891988920889218892288923889248892588926889278892888929889308893188932889338893488935889368893788938889398894088941889428894388944889458894688947889488894988950889518895288953889548895588956889578895888959889608896188962889638896488965889668896788968889698897088971889728897388974889758897688977889788897988980889818898288983889848898588986889878898888989889908899188992889938899488995889968899788998889998900089001890028900389004890058900689007890088900989010890118901289013890148901589016890178901889019890208902189022890238902489025890268902789028890298903089031890328903389034890358903689037890388903989040890418904289043890448904589046890478904889049890508905189052890538905489055890568905789058890598906089061890628906389064890658906689067890688906989070890718907289073890748907589076890778907889079890808908189082890838908489085890868908789088890898909089091890928909389094890958909689097890988909989100891018910289103891048910589106891078910889109891108911189112891138911489115891168911789118891198912089121891228912389124891258912689127891288912989130891318913289133891348913589136891378913889139891408914189142891438914489145891468914789148891498915089151891528915389154891558915689157891588915989160891618916289163891648916589166891678916889169891708917189172891738917489175891768917789178891798918089181891828918389184891858918689187891888918989190891918919289193891948919589196891978919889199892008920189202892038920489205892068920789208892098921089211892128921389214892158921689217892188921989220892218922289223892248922589226892278922889229892308923189232892338923489235892368923789238892398924089241892428924389244892458924689247892488924989250892518925289253892548925589256892578925889259892608926189262892638926489265892668926789268892698927089271892728927389274892758927689277892788927989280892818928289283892848928589286892878928889289892908929189292892938929489295892968929789298892998930089301893028930389304893058930689307893088930989310893118931289313893148931589316893178931889319893208932189322893238932489325893268932789328893298933089331893328933389334893358933689337893388933989340893418934289343893448934589346893478934889349893508935189352893538935489355893568935789358893598936089361893628936389364893658936689367893688936989370893718937289373893748937589376893778937889379893808938189382893838938489385893868938789388893898939089391893928939389394893958939689397893988939989400894018940289403894048940589406894078940889409894108941189412894138941489415894168941789418894198942089421894228942389424894258942689427894288942989430894318943289433894348943589436894378943889439894408944189442894438944489445894468944789448894498945089451894528945389454894558945689457894588945989460894618946289463894648946589466894678946889469894708947189472894738947489475894768947789478894798948089481894828948389484894858948689487894888948989490894918949289493894948949589496894978949889499895008950189502895038950489505895068950789508895098951089511895128951389514895158951689517895188951989520895218952289523895248952589526895278952889529895308953189532895338953489535895368953789538895398954089541895428954389544895458954689547895488954989550895518955289553895548955589556895578955889559895608956189562895638956489565895668956789568895698957089571895728957389574895758957689577895788957989580895818958289583895848958589586895878958889589895908959189592895938959489595895968959789598895998960089601896028960389604896058960689607896088960989610896118961289613896148961589616896178961889619896208962189622896238962489625896268962789628896298963089631896328963389634896358963689637896388963989640896418964289643896448964589646896478964889649896508965189652896538965489655896568965789658896598966089661896628966389664896658966689667896688966989670896718967289673896748967589676896778967889679896808968189682896838968489685896868968789688896898969089691896928969389694896958969689697896988969989700897018970289703897048970589706897078970889709897108971189712897138971489715897168971789718897198972089721897228972389724897258972689727897288972989730897318973289733897348973589736897378973889739897408974189742897438974489745897468974789748897498975089751897528975389754897558975689757897588975989760897618976289763897648976589766897678976889769897708977189772897738977489775897768977789778897798978089781897828978389784897858978689787897888978989790897918979289793897948979589796897978979889799898008980189802898038980489805898068980789808898098981089811898128981389814898158981689817898188981989820898218982289823898248982589826898278982889829898308983189832898338983489835898368983789838898398984089841898428984389844898458984689847898488984989850898518985289853898548985589856898578985889859898608986189862898638986489865898668986789868898698987089871898728987389874898758987689877898788987989880898818988289883898848988589886898878988889889898908989189892898938989489895898968989789898898998990089901899028990389904899058990689907899088990989910899118991289913899148991589916899178991889919899208992189922899238992489925899268992789928899298993089931899328993389934899358993689937899388993989940899418994289943899448994589946899478994889949899508995189952899538995489955899568995789958899598996089961899628996389964899658996689967899688996989970899718997289973899748997589976899778997889979899808998189982899838998489985899868998789988899898999089991899928999389994899958999689997899988999990000900019000290003900049000590006900079000890009900109001190012900139001490015900169001790018900199002090021900229002390024900259002690027900289002990030900319003290033900349003590036900379003890039900409004190042900439004490045900469004790048900499005090051900529005390054900559005690057900589005990060900619006290063900649006590066900679006890069900709007190072900739007490075900769007790078900799008090081900829008390084900859008690087900889008990090900919009290093900949009590096900979009890099901009010190102901039010490105901069010790108901099011090111901129011390114901159011690117901189011990120901219012290123901249012590126901279012890129901309013190132901339013490135901369013790138901399014090141901429014390144901459014690147901489014990150901519015290153901549015590156901579015890159901609016190162901639016490165901669016790168901699017090171901729017390174901759017690177901789017990180901819018290183901849018590186901879018890189901909019190192901939019490195901969019790198901999020090201902029020390204902059020690207902089020990210902119021290213902149021590216902179021890219902209022190222902239022490225902269022790228902299023090231902329023390234902359023690237902389023990240902419024290243902449024590246902479024890249902509025190252902539025490255902569025790258902599026090261902629026390264902659026690267902689026990270902719027290273902749027590276902779027890279902809028190282902839028490285902869028790288902899029090291902929029390294902959029690297902989029990300903019030290303903049030590306903079030890309903109031190312903139031490315903169031790318903199032090321903229032390324903259032690327903289032990330903319033290333903349033590336903379033890339903409034190342903439034490345903469034790348903499035090351903529035390354903559035690357903589035990360903619036290363903649036590366903679036890369903709037190372903739037490375903769037790378903799038090381903829038390384903859038690387903889038990390903919039290393903949039590396903979039890399904009040190402904039040490405904069040790408904099041090411904129041390414904159041690417904189041990420904219042290423904249042590426904279042890429904309043190432904339043490435904369043790438904399044090441904429044390444904459044690447904489044990450904519045290453904549045590456904579045890459904609046190462904639046490465904669046790468904699047090471904729047390474904759047690477904789047990480904819048290483904849048590486904879048890489904909049190492904939049490495904969049790498904999050090501905029050390504905059050690507905089050990510905119051290513905149051590516905179051890519905209052190522905239052490525905269052790528905299053090531905329053390534905359053690537905389053990540905419054290543905449054590546905479054890549905509055190552905539055490555905569055790558905599056090561905629056390564905659056690567905689056990570905719057290573905749057590576905779057890579905809058190582905839058490585905869058790588905899059090591905929059390594905959059690597905989059990600906019060290603906049060590606906079060890609906109061190612906139061490615906169061790618906199062090621906229062390624906259062690627906289062990630906319063290633906349063590636906379063890639906409064190642906439064490645906469064790648906499065090651906529065390654906559065690657906589065990660906619066290663906649066590666906679066890669906709067190672906739067490675906769067790678906799068090681906829068390684906859068690687906889068990690906919069290693906949069590696906979069890699907009070190702907039070490705907069070790708907099071090711907129071390714907159071690717907189071990720907219072290723907249072590726907279072890729907309073190732907339073490735907369073790738907399074090741907429074390744907459074690747907489074990750907519075290753907549075590756907579075890759907609076190762907639076490765907669076790768907699077090771907729077390774907759077690777907789077990780907819078290783907849078590786907879078890789907909079190792907939079490795907969079790798907999080090801908029080390804908059080690807908089080990810908119081290813908149081590816908179081890819908209082190822908239082490825908269082790828908299083090831908329083390834908359083690837908389083990840908419084290843908449084590846908479084890849908509085190852908539085490855908569085790858908599086090861908629086390864908659086690867908689086990870908719087290873908749087590876908779087890879908809088190882908839088490885908869088790888908899089090891908929089390894908959089690897908989089990900909019090290903909049090590906909079090890909909109091190912909139091490915909169091790918909199092090921909229092390924909259092690927909289092990930909319093290933909349093590936909379093890939909409094190942909439094490945909469094790948909499095090951909529095390954909559095690957909589095990960909619096290963909649096590966909679096890969909709097190972909739097490975909769097790978909799098090981909829098390984909859098690987909889098990990909919099290993909949099590996909979099890999910009100191002910039100491005910069100791008910099101091011910129101391014910159101691017910189101991020910219102291023910249102591026910279102891029910309103191032910339103491035910369103791038910399104091041910429104391044910459104691047910489104991050910519105291053910549105591056910579105891059910609106191062910639106491065910669106791068910699107091071910729107391074910759107691077910789107991080910819108291083910849108591086910879108891089910909109191092910939109491095910969109791098910999110091101911029110391104911059110691107911089110991110911119111291113911149111591116911179111891119911209112191122911239112491125911269112791128911299113091131911329113391134911359113691137911389113991140911419114291143911449114591146911479114891149911509115191152911539115491155911569115791158911599116091161911629116391164911659116691167911689116991170911719117291173911749117591176911779117891179911809118191182911839118491185911869118791188911899119091191911929119391194911959119691197911989119991200912019120291203912049120591206912079120891209912109121191212912139121491215912169121791218912199122091221912229122391224912259122691227912289122991230912319123291233912349123591236912379123891239912409124191242912439124491245912469124791248912499125091251912529125391254912559125691257912589125991260912619126291263912649126591266912679126891269912709127191272912739127491275912769127791278912799128091281912829128391284912859128691287912889128991290912919129291293912949129591296912979129891299913009130191302913039130491305913069130791308913099131091311913129131391314913159131691317913189131991320913219132291323913249132591326913279132891329913309133191332913339133491335913369133791338913399134091341913429134391344913459134691347913489134991350913519135291353913549135591356913579135891359913609136191362913639136491365913669136791368913699137091371913729137391374913759137691377913789137991380913819138291383913849138591386913879138891389913909139191392913939139491395913969139791398913999140091401914029140391404914059140691407914089140991410914119141291413914149141591416914179141891419914209142191422914239142491425914269142791428914299143091431914329143391434914359143691437914389143991440914419144291443914449144591446914479144891449914509145191452914539145491455914569145791458914599146091461914629146391464914659146691467914689146991470914719147291473914749147591476914779147891479914809148191482914839148491485914869148791488914899149091491914929149391494914959149691497914989149991500915019150291503915049150591506915079150891509915109151191512915139151491515915169151791518915199152091521915229152391524915259152691527915289152991530915319153291533915349153591536915379153891539915409154191542915439154491545915469154791548915499155091551915529155391554915559155691557915589155991560915619156291563915649156591566915679156891569915709157191572915739157491575915769157791578915799158091581915829158391584915859158691587915889158991590915919159291593915949159591596915979159891599916009160191602916039160491605916069160791608916099161091611916129161391614916159161691617916189161991620916219162291623916249162591626916279162891629916309163191632916339163491635916369163791638916399164091641916429164391644916459164691647916489164991650916519165291653916549165591656916579165891659916609166191662916639166491665916669166791668916699167091671916729167391674916759167691677916789167991680916819168291683916849168591686916879168891689916909169191692916939169491695916969169791698916999170091701917029170391704917059170691707917089170991710917119171291713917149171591716917179171891719917209172191722917239172491725917269172791728917299173091731917329173391734917359173691737917389173991740917419174291743917449174591746917479174891749917509175191752917539175491755917569175791758917599176091761917629176391764917659176691767917689176991770917719177291773917749177591776917779177891779917809178191782917839178491785917869178791788917899179091791917929179391794917959179691797917989179991800918019180291803918049180591806918079180891809918109181191812918139181491815918169181791818918199182091821918229182391824918259182691827918289182991830918319183291833918349183591836918379183891839918409184191842918439184491845918469184791848918499185091851918529185391854918559185691857918589185991860918619186291863918649186591866918679186891869918709187191872918739187491875918769187791878918799188091881918829188391884918859188691887918889188991890918919189291893918949189591896918979189891899919009190191902919039190491905919069190791908919099191091911919129191391914919159191691917919189191991920919219192291923919249192591926919279192891929919309193191932919339193491935919369193791938919399194091941919429194391944919459194691947919489194991950919519195291953919549195591956919579195891959919609196191962919639196491965919669196791968919699197091971919729197391974919759197691977919789197991980919819198291983919849198591986919879198891989919909199191992919939199491995919969199791998919999200092001920029200392004920059200692007920089200992010920119201292013920149201592016920179201892019920209202192022920239202492025920269202792028920299203092031920329203392034920359203692037920389203992040920419204292043920449204592046920479204892049920509205192052920539205492055920569205792058920599206092061920629206392064920659206692067920689206992070920719207292073920749207592076920779207892079920809208192082920839208492085920869208792088920899209092091920929209392094920959209692097920989209992100921019210292103921049210592106921079210892109921109211192112921139211492115921169211792118921199212092121921229212392124921259212692127921289212992130921319213292133921349213592136921379213892139921409214192142921439214492145921469214792148921499215092151921529215392154921559215692157921589215992160921619216292163921649216592166921679216892169921709217192172921739217492175921769217792178921799218092181921829218392184921859218692187921889218992190921919219292193921949219592196921979219892199922009220192202922039220492205922069220792208922099221092211922129221392214922159221692217922189221992220922219222292223922249222592226922279222892229922309223192232922339223492235922369223792238922399224092241922429224392244922459224692247922489224992250922519225292253922549225592256922579225892259922609226192262922639226492265922669226792268922699227092271922729227392274922759227692277922789227992280922819228292283922849228592286922879228892289922909229192292922939229492295922969229792298922999230092301923029230392304923059230692307923089230992310923119231292313923149231592316923179231892319923209232192322923239232492325923269232792328923299233092331923329233392334923359233692337923389233992340923419234292343923449234592346923479234892349923509235192352923539235492355923569235792358923599236092361923629236392364923659236692367923689236992370923719237292373923749237592376923779237892379923809238192382923839238492385923869238792388923899239092391923929239392394923959239692397923989239992400924019240292403924049240592406924079240892409924109241192412924139241492415924169241792418924199242092421924229242392424924259242692427924289242992430924319243292433924349243592436924379243892439924409244192442924439244492445924469244792448924499245092451924529245392454924559245692457924589245992460924619246292463924649246592466924679246892469924709247192472924739247492475924769247792478924799248092481924829248392484924859248692487924889248992490924919249292493924949249592496924979249892499925009250192502925039250492505925069250792508925099251092511925129251392514925159251692517925189251992520925219252292523925249252592526925279252892529925309253192532925339253492535925369253792538925399254092541925429254392544925459254692547925489254992550925519255292553925549255592556925579255892559925609256192562925639256492565925669256792568925699257092571925729257392574925759257692577925789257992580925819258292583925849258592586925879258892589925909259192592925939259492595925969259792598925999260092601926029260392604926059260692607926089260992610926119261292613926149261592616926179261892619926209262192622926239262492625926269262792628926299263092631926329263392634926359263692637926389263992640926419264292643926449264592646926479264892649926509265192652926539265492655926569265792658926599266092661926629266392664926659266692667926689266992670926719267292673926749267592676926779267892679926809268192682926839268492685926869268792688926899269092691926929269392694926959269692697926989269992700927019270292703927049270592706927079270892709927109271192712927139271492715927169271792718927199272092721927229272392724927259272692727927289272992730927319273292733927349273592736927379273892739927409274192742927439274492745927469274792748927499275092751927529275392754927559275692757927589275992760927619276292763927649276592766927679276892769927709277192772927739277492775927769277792778927799278092781927829278392784927859278692787927889278992790927919279292793927949279592796927979279892799928009280192802928039280492805928069280792808928099281092811928129281392814928159281692817928189281992820928219282292823928249282592826928279282892829928309283192832928339283492835928369283792838928399284092841928429284392844928459284692847928489284992850928519285292853928549285592856928579285892859928609286192862928639286492865928669286792868928699287092871928729287392874928759287692877928789287992880928819288292883928849288592886928879288892889928909289192892928939289492895928969289792898928999290092901929029290392904929059290692907929089290992910929119291292913929149291592916929179291892919929209292192922929239292492925929269292792928929299293092931929329293392934929359293692937929389293992940929419294292943929449294592946929479294892949929509295192952929539295492955929569295792958929599296092961929629296392964929659296692967929689296992970929719297292973929749297592976929779297892979929809298192982929839298492985929869298792988929899299092991929929299392994929959299692997929989299993000930019300293003930049300593006930079300893009930109301193012930139301493015930169301793018930199302093021930229302393024930259302693027930289302993030930319303293033930349303593036930379303893039930409304193042930439304493045930469304793048930499305093051930529305393054930559305693057930589305993060930619306293063930649306593066930679306893069930709307193072930739307493075930769307793078930799308093081930829308393084930859308693087930889308993090930919309293093930949309593096930979309893099931009310193102931039310493105931069310793108931099311093111931129311393114931159311693117931189311993120931219312293123931249312593126931279312893129931309313193132931339313493135931369313793138931399314093141931429314393144931459314693147931489314993150931519315293153931549315593156931579315893159931609316193162931639316493165931669316793168931699317093171931729317393174931759317693177931789317993180931819318293183931849318593186931879318893189931909319193192931939319493195931969319793198931999320093201932029320393204932059320693207932089320993210932119321293213932149321593216932179321893219932209322193222932239322493225932269322793228932299323093231932329323393234932359323693237932389323993240932419324293243932449324593246932479324893249932509325193252932539325493255932569325793258932599326093261932629326393264932659326693267932689326993270932719327293273932749327593276932779327893279932809328193282932839328493285932869328793288932899329093291932929329393294932959329693297932989329993300933019330293303933049330593306933079330893309933109331193312933139331493315933169331793318933199332093321933229332393324933259332693327933289332993330933319333293333933349333593336933379333893339933409334193342933439334493345933469334793348933499335093351933529335393354933559335693357933589335993360933619336293363933649336593366933679336893369933709337193372933739337493375933769337793378933799338093381933829338393384933859338693387933889338993390933919339293393933949339593396933979339893399934009340193402934039340493405934069340793408934099341093411934129341393414934159341693417934189341993420934219342293423934249342593426934279342893429934309343193432934339343493435934369343793438934399344093441934429344393444934459344693447934489344993450934519345293453934549345593456934579345893459934609346193462934639346493465934669346793468934699347093471934729347393474934759347693477934789347993480934819348293483934849348593486934879348893489934909349193492934939349493495934969349793498934999350093501935029350393504935059350693507935089350993510935119351293513935149351593516935179351893519935209352193522935239352493525935269352793528935299353093531935329353393534935359353693537935389353993540935419354293543935449354593546935479354893549935509355193552935539355493555935569355793558935599356093561935629356393564935659356693567935689356993570935719357293573935749357593576935779357893579935809358193582935839358493585935869358793588935899359093591935929359393594935959359693597935989359993600936019360293603936049360593606936079360893609936109361193612936139361493615936169361793618936199362093621936229362393624936259362693627936289362993630936319363293633936349363593636936379363893639936409364193642936439364493645936469364793648936499365093651936529365393654936559365693657936589365993660936619366293663936649366593666936679366893669936709367193672936739367493675936769367793678936799368093681936829368393684936859368693687936889368993690936919369293693936949369593696936979369893699937009370193702937039370493705937069370793708937099371093711937129371393714937159371693717937189371993720937219372293723937249372593726937279372893729937309373193732937339373493735937369373793738937399374093741937429374393744937459374693747937489374993750937519375293753937549375593756937579375893759937609376193762937639376493765937669376793768937699377093771937729377393774937759377693777937789377993780937819378293783937849378593786937879378893789937909379193792937939379493795937969379793798937999380093801938029380393804938059380693807938089380993810938119381293813938149381593816938179381893819938209382193822938239382493825938269382793828938299383093831938329383393834938359383693837938389383993840938419384293843938449384593846938479384893849938509385193852938539385493855938569385793858938599386093861938629386393864938659386693867938689386993870938719387293873938749387593876938779387893879938809388193882938839388493885938869388793888938899389093891938929389393894938959389693897938989389993900939019390293903939049390593906939079390893909939109391193912939139391493915939169391793918939199392093921939229392393924939259392693927939289392993930939319393293933939349393593936939379393893939939409394193942939439394493945939469394793948939499395093951939529395393954939559395693957939589395993960939619396293963939649396593966939679396893969939709397193972939739397493975939769397793978939799398093981939829398393984939859398693987939889398993990939919399293993939949399593996939979399893999940009400194002940039400494005940069400794008940099401094011940129401394014940159401694017940189401994020940219402294023940249402594026940279402894029940309403194032940339403494035940369403794038940399404094041940429404394044940459404694047940489404994050940519405294053940549405594056940579405894059940609406194062940639406494065940669406794068940699407094071940729407394074940759407694077940789407994080940819408294083940849408594086940879408894089940909409194092940939409494095940969409794098940999410094101941029410394104941059410694107941089410994110941119411294113941149411594116941179411894119941209412194122941239412494125941269412794128941299413094131941329413394134941359413694137941389413994140941419414294143941449414594146941479414894149941509415194152941539415494155941569415794158941599416094161941629416394164941659416694167941689416994170941719417294173941749417594176941779417894179941809418194182941839418494185941869418794188941899419094191941929419394194941959419694197941989419994200942019420294203942049420594206942079420894209942109421194212942139421494215942169421794218942199422094221942229422394224942259422694227942289422994230942319423294233942349423594236942379423894239942409424194242942439424494245942469424794248942499425094251942529425394254942559425694257942589425994260942619426294263942649426594266942679426894269942709427194272942739427494275942769427794278942799428094281942829428394284942859428694287942889428994290942919429294293942949429594296942979429894299943009430194302943039430494305943069430794308943099431094311943129431394314943159431694317943189431994320943219432294323943249432594326943279432894329943309433194332943339433494335943369433794338943399434094341943429434394344943459434694347943489434994350943519435294353943549435594356943579435894359943609436194362943639436494365943669436794368943699437094371943729437394374943759437694377943789437994380943819438294383943849438594386943879438894389943909439194392943939439494395943969439794398943999440094401944029440394404944059440694407944089440994410944119441294413944149441594416944179441894419944209442194422944239442494425944269442794428944299443094431944329443394434944359443694437944389443994440944419444294443944449444594446944479444894449944509445194452944539445494455944569445794458944599446094461944629446394464944659446694467944689446994470944719447294473944749447594476944779447894479944809448194482944839448494485944869448794488944899449094491944929449394494944959449694497944989449994500945019450294503945049450594506945079450894509945109451194512945139451494515945169451794518945199452094521945229452394524945259452694527945289452994530945319453294533945349453594536945379453894539945409454194542945439454494545945469454794548945499455094551945529455394554945559455694557945589455994560945619456294563945649456594566945679456894569945709457194572945739457494575945769457794578945799458094581945829458394584945859458694587945889458994590945919459294593945949459594596945979459894599946009460194602946039460494605946069460794608946099461094611946129461394614946159461694617946189461994620946219462294623946249462594626946279462894629946309463194632946339463494635946369463794638946399464094641946429464394644946459464694647946489464994650946519465294653946549465594656946579465894659946609466194662946639466494665946669466794668946699467094671946729467394674946759467694677946789467994680946819468294683946849468594686946879468894689946909469194692946939469494695946969469794698946999470094701947029470394704947059470694707947089470994710947119471294713947149471594716947179471894719947209472194722947239472494725947269472794728947299473094731947329473394734947359473694737947389473994740947419474294743947449474594746947479474894749947509475194752947539475494755947569475794758947599476094761947629476394764947659476694767947689476994770947719477294773947749477594776947779477894779947809478194782947839478494785947869478794788947899479094791947929479394794947959479694797947989479994800948019480294803948049480594806948079480894809948109481194812948139481494815948169481794818948199482094821948229482394824948259482694827948289482994830948319483294833948349483594836948379483894839948409484194842948439484494845948469484794848948499485094851948529485394854948559485694857948589485994860948619486294863948649486594866948679486894869948709487194872948739487494875948769487794878948799488094881948829488394884948859488694887948889488994890948919489294893948949489594896948979489894899949009490194902949039490494905949069490794908949099491094911949129491394914949159491694917949189491994920949219492294923949249492594926949279492894929949309493194932949339493494935949369493794938949399494094941949429494394944949459494694947949489494994950949519495294953949549495594956949579495894959949609496194962949639496494965949669496794968949699497094971949729497394974949759497694977949789497994980949819498294983949849498594986949879498894989949909499194992949939499494995949969499794998949999500095001950029500395004950059500695007950089500995010950119501295013950149501595016950179501895019950209502195022950239502495025950269502795028950299503095031950329503395034950359503695037950389503995040950419504295043950449504595046950479504895049950509505195052950539505495055950569505795058950599506095061950629506395064950659506695067950689506995070950719507295073950749507595076950779507895079950809508195082950839508495085950869508795088950899509095091950929509395094950959509695097950989509995100951019510295103951049510595106951079510895109951109511195112951139511495115951169511795118951199512095121951229512395124951259512695127951289512995130951319513295133951349513595136951379513895139951409514195142951439514495145951469514795148951499515095151951529515395154951559515695157951589515995160951619516295163951649516595166951679516895169951709517195172951739517495175951769517795178951799518095181951829518395184951859518695187951889518995190951919519295193951949519595196951979519895199952009520195202952039520495205952069520795208952099521095211952129521395214952159521695217952189521995220952219522295223952249522595226952279522895229952309523195232952339523495235952369523795238952399524095241952429524395244952459524695247952489524995250952519525295253952549525595256952579525895259952609526195262952639526495265952669526795268952699527095271952729527395274952759527695277952789527995280952819528295283952849528595286952879528895289952909529195292952939529495295952969529795298952999530095301953029530395304953059530695307953089530995310953119531295313953149531595316953179531895319953209532195322953239532495325953269532795328953299533095331953329533395334953359533695337953389533995340953419534295343953449534595346953479534895349953509535195352953539535495355953569535795358953599536095361953629536395364953659536695367953689536995370953719537295373953749537595376953779537895379953809538195382953839538495385953869538795388953899539095391953929539395394953959539695397953989539995400954019540295403954049540595406954079540895409954109541195412954139541495415954169541795418954199542095421954229542395424954259542695427954289542995430954319543295433954349543595436954379543895439954409544195442954439544495445954469544795448954499545095451954529545395454954559545695457954589545995460954619546295463954649546595466954679546895469954709547195472954739547495475954769547795478954799548095481954829548395484954859548695487954889548995490954919549295493954949549595496954979549895499955009550195502955039550495505955069550795508955099551095511955129551395514955159551695517955189551995520955219552295523955249552595526955279552895529955309553195532955339553495535955369553795538955399554095541955429554395544955459554695547955489554995550955519555295553955549555595556955579555895559955609556195562955639556495565955669556795568955699557095571955729557395574955759557695577955789557995580955819558295583955849558595586955879558895589955909559195592955939559495595955969559795598955999560095601956029560395604956059560695607956089560995610956119561295613956149561595616956179561895619956209562195622956239562495625956269562795628956299563095631956329563395634956359563695637956389563995640956419564295643956449564595646956479564895649956509565195652956539565495655956569565795658956599566095661956629566395664956659566695667956689566995670956719567295673956749567595676956779567895679956809568195682956839568495685956869568795688956899569095691956929569395694956959569695697956989569995700957019570295703957049570595706957079570895709957109571195712957139571495715957169571795718957199572095721957229572395724957259572695727957289572995730957319573295733957349573595736957379573895739957409574195742957439574495745957469574795748957499575095751957529575395754957559575695757957589575995760957619576295763957649576595766957679576895769957709577195772957739577495775957769577795778957799578095781957829578395784957859578695787957889578995790957919579295793957949579595796957979579895799958009580195802958039580495805958069580795808958099581095811958129581395814958159581695817958189581995820958219582295823958249582595826958279582895829958309583195832958339583495835958369583795838958399584095841958429584395844958459584695847958489584995850958519585295853958549585595856958579585895859958609586195862958639586495865958669586795868958699587095871958729587395874958759587695877958789587995880958819588295883958849588595886958879588895889958909589195892958939589495895958969589795898958999590095901959029590395904959059590695907959089590995910959119591295913959149591595916959179591895919959209592195922959239592495925959269592795928959299593095931959329593395934959359593695937959389593995940959419594295943959449594595946959479594895949959509595195952959539595495955959569595795958959599596095961959629596395964959659596695967959689596995970959719597295973959749597595976959779597895979959809598195982959839598495985959869598795988959899599095991959929599395994959959599695997959989599996000960019600296003960049600596006960079600896009960109601196012960139601496015960169601796018960199602096021960229602396024960259602696027960289602996030960319603296033960349603596036960379603896039960409604196042960439604496045960469604796048960499605096051960529605396054960559605696057960589605996060960619606296063960649606596066960679606896069960709607196072960739607496075960769607796078960799608096081960829608396084960859608696087960889608996090960919609296093960949609596096960979609896099961009610196102961039610496105961069610796108961099611096111961129611396114961159611696117961189611996120961219612296123961249612596126961279612896129961309613196132961339613496135961369613796138961399614096141961429614396144961459614696147961489614996150961519615296153961549615596156961579615896159961609616196162961639616496165961669616796168961699617096171961729617396174961759617696177961789617996180961819618296183961849618596186961879618896189961909619196192961939619496195961969619796198961999620096201962029620396204962059620696207962089620996210962119621296213962149621596216962179621896219962209622196222962239622496225962269622796228962299623096231962329623396234962359623696237962389623996240962419624296243962449624596246962479624896249962509625196252962539625496255962569625796258962599626096261962629626396264962659626696267962689626996270962719627296273962749627596276962779627896279962809628196282962839628496285962869628796288962899629096291962929629396294962959629696297962989629996300963019630296303963049630596306963079630896309963109631196312963139631496315963169631796318963199632096321963229632396324963259632696327963289632996330963319633296333963349633596336963379633896339963409634196342963439634496345963469634796348963499635096351963529635396354963559635696357963589635996360963619636296363963649636596366963679636896369963709637196372963739637496375963769637796378963799638096381963829638396384963859638696387963889638996390963919639296393963949639596396963979639896399964009640196402964039640496405964069640796408964099641096411964129641396414964159641696417964189641996420964219642296423964249642596426964279642896429964309643196432964339643496435964369643796438964399644096441964429644396444964459644696447964489644996450964519645296453964549645596456964579645896459964609646196462964639646496465964669646796468964699647096471964729647396474964759647696477964789647996480964819648296483964849648596486964879648896489964909649196492964939649496495964969649796498964999650096501965029650396504965059650696507965089650996510965119651296513965149651596516965179651896519965209652196522965239652496525965269652796528965299653096531965329653396534965359653696537965389653996540965419654296543965449654596546965479654896549965509655196552965539655496555965569655796558965599656096561965629656396564965659656696567965689656996570965719657296573965749657596576965779657896579965809658196582965839658496585965869658796588965899659096591965929659396594965959659696597965989659996600966019660296603966049660596606966079660896609966109661196612966139661496615966169661796618966199662096621966229662396624966259662696627966289662996630966319663296633966349663596636966379663896639966409664196642966439664496645966469664796648966499665096651966529665396654966559665696657966589665996660966619666296663966649666596666966679666896669966709667196672966739667496675966769667796678966799668096681966829668396684966859668696687966889668996690966919669296693966949669596696966979669896699967009670196702967039670496705967069670796708967099671096711967129671396714967159671696717967189671996720967219672296723967249672596726967279672896729967309673196732967339673496735967369673796738967399674096741967429674396744967459674696747967489674996750967519675296753967549675596756967579675896759967609676196762967639676496765967669676796768967699677096771967729677396774967759677696777967789677996780967819678296783967849678596786967879678896789967909679196792967939679496795967969679796798967999680096801968029680396804968059680696807968089680996810968119681296813968149681596816968179681896819968209682196822968239682496825968269682796828968299683096831968329683396834968359683696837968389683996840968419684296843968449684596846968479684896849968509685196852968539685496855968569685796858968599686096861968629686396864968659686696867968689686996870968719687296873968749687596876968779687896879968809688196882968839688496885968869688796888968899689096891968929689396894968959689696897968989689996900969019690296903969049690596906969079690896909969109691196912969139691496915969169691796918969199692096921969229692396924969259692696927969289692996930969319693296933969349693596936969379693896939969409694196942969439694496945969469694796948969499695096951969529695396954969559695696957969589695996960969619696296963969649696596966969679696896969969709697196972969739697496975969769697796978969799698096981969829698396984969859698696987969889698996990969919699296993969949699596996969979699896999970009700197002970039700497005970069700797008970099701097011970129701397014970159701697017970189701997020970219702297023970249702597026970279702897029970309703197032970339703497035970369703797038970399704097041970429704397044970459704697047970489704997050970519705297053970549705597056970579705897059970609706197062970639706497065970669706797068970699707097071970729707397074970759707697077970789707997080970819708297083970849708597086970879708897089970909709197092970939709497095970969709797098970999710097101971029710397104971059710697107971089710997110971119711297113971149711597116971179711897119971209712197122971239712497125971269712797128971299713097131971329713397134971359713697137971389713997140971419714297143971449714597146971479714897149971509715197152971539715497155971569715797158971599716097161971629716397164971659716697167971689716997170971719717297173971749717597176971779717897179971809718197182971839718497185971869718797188971899719097191971929719397194971959719697197971989719997200972019720297203972049720597206972079720897209972109721197212972139721497215972169721797218972199722097221972229722397224972259722697227972289722997230972319723297233972349723597236972379723897239972409724197242972439724497245972469724797248972499725097251972529725397254972559725697257972589725997260972619726297263972649726597266972679726897269972709727197272972739727497275972769727797278972799728097281972829728397284972859728697287972889728997290972919729297293972949729597296972979729897299973009730197302973039730497305973069730797308973099731097311973129731397314973159731697317973189731997320973219732297323973249732597326973279732897329973309733197332973339733497335973369733797338973399734097341973429734397344973459734697347973489734997350973519735297353973549735597356973579735897359973609736197362973639736497365973669736797368973699737097371973729737397374973759737697377973789737997380973819738297383973849738597386973879738897389973909739197392973939739497395973969739797398973999740097401974029740397404974059740697407974089740997410974119741297413974149741597416974179741897419974209742197422974239742497425974269742797428974299743097431974329743397434974359743697437974389743997440974419744297443974449744597446974479744897449974509745197452974539745497455974569745797458974599746097461974629746397464974659746697467974689746997470974719747297473974749747597476974779747897479974809748197482974839748497485974869748797488974899749097491974929749397494974959749697497974989749997500975019750297503975049750597506975079750897509975109751197512975139751497515975169751797518975199752097521975229752397524975259752697527975289752997530975319753297533975349753597536975379753897539975409754197542975439754497545975469754797548975499755097551975529755397554975559755697557975589755997560975619756297563975649756597566975679756897569975709757197572975739757497575975769757797578975799758097581975829758397584975859758697587975889758997590975919759297593975949759597596975979759897599976009760197602976039760497605976069760797608976099761097611976129761397614976159761697617976189761997620976219762297623976249762597626976279762897629976309763197632976339763497635976369763797638976399764097641976429764397644976459764697647976489764997650976519765297653976549765597656976579765897659976609766197662976639766497665976669766797668976699767097671976729767397674976759767697677976789767997680976819768297683976849768597686976879768897689976909769197692976939769497695976969769797698976999770097701977029770397704977059770697707977089770997710977119771297713977149771597716977179771897719977209772197722977239772497725977269772797728977299773097731977329773397734977359773697737977389773997740977419774297743977449774597746977479774897749977509775197752977539775497755977569775797758977599776097761977629776397764977659776697767977689776997770977719777297773977749777597776977779777897779977809778197782977839778497785977869778797788977899779097791977929779397794977959779697797977989779997800978019780297803978049780597806978079780897809978109781197812978139781497815978169781797818978199782097821978229782397824978259782697827978289782997830978319783297833978349783597836978379783897839978409784197842978439784497845978469784797848978499785097851978529785397854978559785697857978589785997860978619786297863978649786597866978679786897869978709787197872978739787497875978769787797878978799788097881978829788397884978859788697887978889788997890978919789297893978949789597896978979789897899979009790197902979039790497905979069790797908979099791097911979129791397914979159791697917979189791997920979219792297923979249792597926979279792897929979309793197932979339793497935979369793797938979399794097941979429794397944979459794697947979489794997950979519795297953979549795597956979579795897959979609796197962979639796497965979669796797968979699797097971979729797397974979759797697977979789797997980979819798297983979849798597986979879798897989979909799197992979939799497995979969799797998979999800098001980029800398004980059800698007980089800998010980119801298013980149801598016980179801898019980209802198022980239802498025980269802798028980299803098031980329803398034980359803698037980389803998040980419804298043980449804598046980479804898049980509805198052980539805498055980569805798058980599806098061980629806398064980659806698067980689806998070980719807298073980749807598076980779807898079980809808198082980839808498085980869808798088980899809098091980929809398094980959809698097980989809998100981019810298103981049810598106981079810898109981109811198112981139811498115981169811798118981199812098121981229812398124981259812698127981289812998130981319813298133981349813598136981379813898139981409814198142981439814498145981469814798148981499815098151981529815398154981559815698157981589815998160981619816298163981649816598166981679816898169981709817198172981739817498175981769817798178981799818098181981829818398184981859818698187981889818998190981919819298193981949819598196981979819898199982009820198202982039820498205982069820798208982099821098211982129821398214982159821698217982189821998220982219822298223982249822598226982279822898229982309823198232982339823498235982369823798238982399824098241982429824398244982459824698247982489824998250982519825298253982549825598256982579825898259982609826198262982639826498265982669826798268982699827098271982729827398274982759827698277982789827998280982819828298283982849828598286982879828898289982909829198292982939829498295982969829798298982999830098301983029830398304983059830698307983089830998310983119831298313983149831598316983179831898319983209832198322983239832498325983269832798328983299833098331983329833398334983359833698337983389833998340983419834298343983449834598346983479834898349983509835198352983539835498355983569835798358983599836098361983629836398364983659836698367983689836998370983719837298373983749837598376983779837898379983809838198382983839838498385983869838798388983899839098391983929839398394983959839698397983989839998400984019840298403984049840598406984079840898409984109841198412984139841498415984169841798418984199842098421984229842398424984259842698427984289842998430984319843298433984349843598436984379843898439984409844198442984439844498445984469844798448984499845098451984529845398454984559845698457984589845998460984619846298463984649846598466984679846898469984709847198472984739847498475984769847798478984799848098481984829848398484984859848698487984889848998490984919849298493984949849598496984979849898499985009850198502985039850498505985069850798508985099851098511985129851398514985159851698517985189851998520985219852298523985249852598526985279852898529985309853198532985339853498535985369853798538985399854098541985429854398544985459854698547985489854998550985519855298553985549855598556985579855898559985609856198562985639856498565985669856798568985699857098571985729857398574985759857698577985789857998580985819858298583985849858598586985879858898589985909859198592985939859498595985969859798598985999860098601986029860398604986059860698607986089860998610986119861298613986149861598616986179861898619986209862198622986239862498625986269862798628986299863098631986329863398634986359863698637986389863998640986419864298643986449864598646986479864898649986509865198652986539865498655986569865798658986599866098661986629866398664986659866698667986689866998670986719867298673986749867598676986779867898679986809868198682986839868498685986869868798688986899869098691986929869398694986959869698697986989869998700987019870298703987049870598706987079870898709987109871198712987139871498715987169871798718987199872098721987229872398724987259872698727987289872998730987319873298733987349873598736987379873898739987409874198742987439874498745987469874798748987499875098751987529875398754987559875698757987589875998760987619876298763987649876598766987679876898769987709877198772987739877498775987769877798778987799878098781987829878398784987859878698787987889878998790987919879298793987949879598796987979879898799988009880198802988039880498805988069880798808988099881098811988129881398814988159881698817988189881998820988219882298823988249882598826988279882898829988309883198832988339883498835988369883798838988399884098841988429884398844988459884698847988489884998850988519885298853988549885598856988579885898859988609886198862988639886498865988669886798868988699887098871988729887398874988759887698877988789887998880988819888298883988849888598886988879888898889988909889198892988939889498895988969889798898988999890098901989029890398904989059890698907989089890998910989119891298913989149891598916989179891898919989209892198922989239892498925989269892798928989299893098931989329893398934989359893698937989389893998940989419894298943989449894598946989479894898949989509895198952989539895498955989569895798958989599896098961989629896398964989659896698967989689896998970989719897298973989749897598976989779897898979989809898198982989839898498985989869898798988989899899098991989929899398994989959899698997989989899999000990019900299003990049900599006990079900899009990109901199012990139901499015990169901799018990199902099021990229902399024990259902699027990289902999030990319903299033990349903599036990379903899039990409904199042990439904499045990469904799048990499905099051990529905399054990559905699057990589905999060990619906299063990649906599066990679906899069990709907199072990739907499075990769907799078990799908099081990829908399084990859908699087990889908999090990919909299093990949909599096990979909899099991009910199102991039910499105991069910799108991099911099111991129911399114991159911699117991189911999120991219912299123991249912599126991279912899129991309913199132991339913499135991369913799138991399914099141991429914399144991459914699147991489914999150991519915299153991549915599156991579915899159991609916199162991639916499165991669916799168991699917099171991729917399174991759917699177991789917999180991819918299183991849918599186991879918899189991909919199192991939919499195991969919799198991999920099201992029920399204992059920699207992089920999210992119921299213992149921599216992179921899219992209922199222992239922499225992269922799228992299923099231992329923399234992359923699237992389923999240992419924299243992449924599246992479924899249992509925199252992539925499255992569925799258992599926099261992629926399264992659926699267992689926999270992719927299273992749927599276992779927899279992809928199282992839928499285992869928799288992899929099291992929929399294992959929699297992989929999300993019930299303993049930599306993079930899309993109931199312993139931499315993169931799318993199932099321993229932399324993259932699327993289932999330993319933299333993349933599336993379933899339993409934199342993439934499345993469934799348993499935099351993529935399354993559935699357993589935999360993619936299363993649936599366993679936899369993709937199372993739937499375993769937799378993799938099381993829938399384993859938699387993889938999390993919939299393993949939599396993979939899399994009940199402994039940499405994069940799408994099941099411994129941399414994159941699417994189941999420994219942299423994249942599426994279942899429994309943199432994339943499435994369943799438994399944099441994429944399444994459944699447994489944999450994519945299453994549945599456994579945899459994609946199462994639946499465994669946799468994699947099471994729947399474994759947699477994789947999480994819948299483994849948599486994879948899489994909949199492994939949499495994969949799498994999950099501995029950399504995059950699507995089950999510995119951299513995149951599516995179951899519995209952199522995239952499525995269952799528995299953099531995329953399534995359953699537995389953999540995419954299543995449954599546995479954899549995509955199552995539955499555995569955799558995599956099561995629956399564995659956699567995689956999570995719957299573995749957599576995779957899579995809958199582995839958499585995869958799588995899959099591995929959399594995959959699597995989959999600996019960299603996049960599606996079960899609996109961199612996139961499615996169961799618996199962099621996229962399624996259962699627996289962999630996319963299633996349963599636996379963899639996409964199642996439964499645996469964799648996499965099651996529965399654996559965699657996589965999660996619966299663996649966599666996679966899669996709967199672996739967499675996769967799678996799968099681996829968399684996859968699687996889968999690996919969299693996949969599696996979969899699997009970199702997039970499705997069970799708997099971099711997129971399714997159971699717997189971999720997219972299723997249972599726997279972899729997309973199732997339973499735997369973799738997399974099741997429974399744997459974699747997489974999750997519975299753997549975599756997579975899759997609976199762997639976499765997669976799768997699977099771997729977399774997759977699777997789977999780997819978299783997849978599786997879978899789997909979199792997939979499795997969979799798997999980099801998029980399804998059980699807998089980999810998119981299813998149981599816998179981899819998209982199822998239982499825998269982799828998299983099831998329983399834998359983699837998389983999840998419984299843998449984599846998479984899849998509985199852998539985499855998569985799858998599986099861998629986399864998659986699867998689986999870998719987299873998749987599876998779987899879998809988199882998839988499885998869988799888998899989099891998929989399894998959989699897998989989999900999019990299903999049990599906999079990899909999109991199912999139991499915999169991799918999199992099921999229992399924999259992699927999289992999930999319993299933999349993599936999379993899939999409994199942999439994499945999469994799948999499995099951999529995399954999559995699957999589995999960999619996299963999649996599966999679996899969999709997199972999739997499975999769997799978999799998099981999829998399984999859998699987999889998999990999919999299993999949999599996999979999899999100000100001100002100003100004100005100006100007100008100009100010100011100012100013100014100015100016100017100018100019100020100021100022100023100024100025100026100027100028100029100030100031100032100033100034100035100036100037100038100039100040100041100042100043100044100045100046100047100048100049100050100051100052100053100054100055100056100057100058100059100060100061100062100063100064100065100066100067100068100069100070100071100072100073100074100075100076100077100078100079100080100081100082100083100084100085100086100087100088100089100090100091100092100093100094100095100096100097100098100099100100100101100102100103100104100105100106100107100108100109100110100111100112100113100114100115100116100117100118100119100120100121100122100123100124100125100126100127100128100129100130100131100132100133100134100135100136100137100138100139100140100141100142100143100144100145100146100147100148100149100150100151100152100153100154100155100156100157100158100159100160100161100162100163100164100165100166100167100168100169100170100171100172100173100174100175100176100177100178100179100180100181100182100183100184100185100186100187100188100189100190100191100192100193100194100195100196100197100198100199100200100201100202100203100204100205100206100207100208100209100210100211100212100213100214100215100216100217100218100219100220100221100222100223100224100225100226100227100228100229100230100231100232100233100234100235100236100237100238100239100240100241100242100243100244100245100246100247100248100249100250100251100252100253100254100255100256100257100258100259100260100261100262100263100264100265100266100267100268100269100270100271100272100273100274100275100276100277100278100279100280100281100282100283100284100285100286100287100288100289100290100291100292100293100294100295100296100297100298100299100300100301100302100303100304100305100306100307100308100309100310100311100312100313100314100315100316100317100318100319100320100321100322100323100324100325100326100327100328100329100330100331100332100333100334100335100336100337100338100339100340100341100342100343100344100345100346100347100348100349100350100351100352100353100354100355100356100357100358100359100360100361100362100363100364100365100366100367100368100369100370100371100372100373100374100375100376100377100378100379100380100381100382100383100384100385100386100387100388100389100390100391100392100393100394100395100396100397100398100399100400100401100402100403100404100405100406100407100408100409100410100411100412100413100414100415100416100417100418100419100420100421100422100423100424100425100426100427100428100429100430100431100432100433100434100435100436100437100438100439100440100441100442100443100444100445100446100447100448100449100450100451100452100453100454100455100456100457100458100459100460100461100462100463100464100465100466100467100468100469100470100471100472100473100474100475100476100477100478100479100480100481100482100483100484100485100486100487100488100489100490100491100492100493100494100495100496100497100498100499100500100501100502100503100504100505100506100507100508100509100510100511100512100513100514100515100516100517100518100519100520100521100522100523100524100525100526100527100528100529100530100531100532100533100534100535100536100537100538100539100540100541100542100543100544100545100546100547100548100549100550100551100552100553100554100555100556100557100558100559100560100561100562100563100564100565100566100567100568100569100570100571100572100573100574100575100576100577100578100579100580100581100582100583100584100585100586100587100588100589100590100591100592100593100594100595100596100597100598100599100600100601100602100603100604100605100606100607100608100609100610100611100612100613100614100615100616100617100618100619100620100621100622100623100624100625100626100627100628100629100630100631100632100633100634100635100636100637100638100639100640100641100642100643100644100645100646100647100648100649100650100651100652100653100654100655100656100657100658100659100660100661100662100663100664100665100666100667100668100669100670100671100672100673100674100675100676100677100678100679100680100681100682100683100684100685100686100687100688100689100690100691100692100693100694100695100696100697100698100699100700100701100702100703100704100705100706100707100708100709100710100711100712100713100714100715100716100717100718100719100720100721100722100723100724100725100726100727100728100729100730100731100732100733100734100735100736100737100738100739100740100741100742100743100744100745100746100747100748100749100750100751100752100753100754100755100756100757100758100759100760100761100762100763100764100765100766100767100768100769100770100771100772100773100774100775100776100777100778100779100780100781100782100783100784100785100786100787100788100789100790100791100792100793100794100795100796100797100798100799100800100801100802100803100804100805100806100807100808100809100810100811100812100813100814100815100816100817100818100819100820100821100822100823100824100825100826100827100828100829100830100831100832100833100834100835100836100837100838100839100840100841100842100843100844100845100846100847100848100849100850100851100852100853100854100855100856100857100858100859100860100861100862100863100864100865100866100867100868100869100870100871100872100873100874100875100876100877100878100879100880100881100882100883100884100885100886100887100888100889100890100891100892100893100894100895100896100897100898100899100900100901100902100903100904100905100906100907100908100909100910100911100912100913100914100915100916100917100918100919100920100921100922100923100924100925100926100927100928100929100930100931100932100933100934100935100936100937100938100939100940100941100942100943100944100945100946100947100948100949100950100951100952100953100954100955100956100957100958100959100960100961100962100963100964100965100966100967100968100969100970100971100972100973100974100975100976100977100978100979100980100981100982100983100984100985100986100987100988100989100990100991100992100993100994100995100996100997100998100999101000101001101002101003101004101005101006101007101008101009101010101011101012101013101014101015101016101017101018101019101020101021101022101023101024101025101026101027101028101029101030101031101032101033101034101035101036101037101038101039101040101041101042101043101044101045101046101047101048101049101050101051101052101053101054101055101056101057101058101059101060101061101062101063101064101065101066101067101068101069101070101071101072101073101074101075101076101077101078101079101080101081101082101083101084101085101086101087101088101089101090101091101092101093101094101095101096101097101098101099101100101101101102101103101104101105101106101107101108101109101110101111101112101113101114101115101116101117101118101119101120101121101122101123101124101125101126101127101128101129101130101131101132101133101134101135101136101137101138101139101140101141101142101143101144101145101146101147101148101149101150101151101152101153101154101155101156101157101158101159101160101161101162101163101164101165101166101167101168101169101170101171101172101173101174101175101176101177101178101179101180101181101182101183101184101185101186101187101188101189101190101191101192101193101194101195101196101197101198101199101200101201101202101203101204101205101206101207101208101209101210101211101212101213101214101215101216101217101218101219101220101221101222101223101224101225101226101227101228101229101230101231101232101233101234101235101236101237101238101239101240101241101242101243101244101245101246101247101248101249101250101251101252101253101254101255101256101257101258101259101260101261101262101263101264101265101266101267101268101269101270101271101272101273101274101275101276101277101278101279101280101281101282101283101284101285101286101287101288101289101290101291101292101293101294101295101296101297101298101299101300101301101302101303101304101305101306101307101308101309101310101311101312101313101314101315101316101317101318101319101320101321101322101323101324101325101326101327101328101329101330101331101332101333101334101335101336101337101338101339101340101341101342101343101344101345101346101347101348101349101350101351101352101353101354101355101356101357101358101359101360101361101362101363101364101365101366101367101368101369101370101371101372101373101374101375101376101377101378101379101380101381101382101383101384101385101386101387101388101389101390101391101392101393101394101395101396101397101398101399101400101401101402101403101404101405101406101407101408101409101410101411101412101413101414101415101416101417101418101419101420101421101422101423101424101425101426101427101428101429101430101431101432101433101434101435101436101437101438101439101440101441101442101443101444101445101446101447101448101449101450101451101452101453101454101455101456101457101458101459101460101461101462101463101464101465101466101467101468101469101470101471101472101473101474101475101476101477101478101479101480101481101482101483101484101485101486101487101488101489101490101491101492101493101494101495101496101497101498101499101500101501101502101503101504101505101506101507101508101509101510101511101512101513101514101515101516101517101518101519101520101521101522101523101524101525101526101527101528101529101530101531101532101533101534101535101536101537101538101539101540101541101542101543101544101545101546101547101548101549101550101551101552101553101554101555101556101557101558101559101560101561101562101563101564101565101566101567101568101569101570101571101572101573101574101575101576101577101578101579101580101581101582101583101584101585101586101587101588101589101590101591101592101593101594101595101596101597101598101599101600101601101602101603101604101605101606101607101608101609101610101611101612101613101614101615101616101617101618101619101620101621101622101623101624101625101626101627101628101629101630101631101632101633101634101635101636101637101638101639101640101641101642101643101644101645101646101647101648101649101650101651101652101653101654101655101656101657101658101659101660101661101662101663101664101665101666101667101668101669101670101671101672101673101674101675101676101677101678101679101680101681101682101683101684101685101686101687101688101689101690101691101692101693101694101695101696101697101698101699101700101701101702101703101704101705101706101707101708101709101710101711101712101713101714101715101716101717101718101719101720101721101722101723101724101725101726101727101728101729101730101731101732101733101734101735101736101737101738101739101740101741101742101743101744101745101746101747101748101749101750101751101752101753101754101755101756101757101758101759101760101761101762101763101764101765101766101767101768101769101770101771101772101773101774101775101776101777101778101779101780101781101782101783101784101785101786101787101788101789101790101791101792101793101794101795101796101797101798101799101800101801101802101803101804101805101806101807101808101809101810101811101812101813101814101815101816101817101818101819101820101821101822101823101824101825101826101827101828101829101830101831101832101833101834101835101836101837101838101839101840101841101842101843101844101845101846101847101848101849101850101851101852101853101854101855101856101857101858101859101860101861101862101863101864101865101866101867101868101869101870101871101872101873101874101875101876101877101878101879101880101881101882101883101884101885101886101887101888101889101890101891101892101893101894101895101896101897101898101899101900101901101902101903101904101905101906101907101908101909101910101911101912101913101914101915101916101917101918101919101920101921101922101923101924101925101926101927101928101929101930101931101932101933101934101935101936101937101938101939101940101941101942101943101944101945101946101947101948101949101950101951101952101953101954101955101956101957101958101959101960101961101962101963101964101965101966101967101968101969101970101971101972101973101974101975101976101977101978101979101980101981101982101983101984101985101986101987101988101989101990101991101992101993101994101995101996101997101998101999102000102001102002102003102004102005102006102007102008102009102010102011102012102013102014102015102016102017102018102019102020102021102022102023102024102025102026102027102028102029102030102031102032102033102034102035102036102037102038102039102040102041102042102043102044102045102046102047102048102049102050102051102052102053102054102055102056102057102058102059102060102061102062102063102064102065102066102067102068102069102070102071102072102073102074102075102076102077102078102079102080102081102082102083102084102085102086102087102088102089102090102091102092102093102094102095102096102097102098102099102100102101102102102103102104102105102106102107102108102109102110102111102112102113102114102115102116102117102118102119102120102121102122102123102124102125102126102127102128102129102130102131102132102133102134102135102136102137102138102139102140102141102142102143102144102145102146102147102148102149102150102151102152102153102154102155102156102157102158102159102160102161102162102163102164102165102166102167102168102169102170102171102172102173102174102175102176102177102178102179102180102181102182102183102184102185102186102187102188102189102190102191102192102193102194102195102196102197102198102199102200102201102202102203102204102205102206102207102208102209102210102211102212102213102214102215102216102217102218102219102220102221102222102223102224102225102226102227102228102229102230102231102232102233102234102235102236102237102238102239102240102241102242102243102244102245102246102247102248102249102250102251102252102253102254102255102256102257102258102259102260102261102262102263102264102265102266102267102268102269102270102271102272102273102274102275102276102277102278102279102280102281102282102283102284102285102286102287102288102289102290102291102292102293102294102295102296102297102298102299102300102301102302102303102304102305102306102307102308102309102310102311102312102313102314102315102316102317102318102319102320102321102322102323102324102325102326102327102328102329102330102331102332102333102334102335102336102337102338102339102340102341102342102343102344102345102346102347102348102349102350102351102352102353102354102355102356102357102358102359102360102361102362102363102364102365102366102367102368102369102370102371102372102373102374102375102376102377102378102379102380102381102382102383102384102385102386102387102388102389102390102391102392102393102394102395102396102397102398102399102400102401102402102403102404102405102406102407102408102409102410102411102412102413102414102415102416102417102418102419102420102421102422102423102424102425102426102427102428102429102430102431102432102433102434102435102436102437102438102439102440102441102442102443102444102445102446102447102448102449102450102451102452102453102454102455102456102457102458102459102460102461102462102463102464102465102466102467102468102469102470102471102472102473102474102475102476102477102478102479102480102481102482102483102484102485102486102487102488102489102490102491102492102493102494102495102496102497102498102499102500102501102502102503102504102505102506102507102508102509102510102511102512102513102514102515102516102517102518102519102520102521102522102523102524102525102526102527102528102529102530102531102532102533102534102535102536102537102538102539102540102541102542102543102544102545102546102547102548102549102550102551102552102553102554102555102556102557102558102559102560102561102562102563102564102565102566102567102568102569102570102571102572102573102574102575102576102577102578102579102580102581102582102583102584102585102586102587102588102589102590102591102592102593102594102595102596102597102598102599102600102601102602102603102604102605102606102607102608102609102610102611102612102613102614102615102616102617102618102619102620102621102622102623102624102625102626102627102628102629102630102631102632102633102634102635102636102637102638102639102640102641102642102643102644102645102646102647102648102649102650102651102652102653102654102655102656102657102658102659102660102661102662102663102664102665102666102667102668102669102670102671102672102673102674102675102676102677102678102679102680102681102682102683102684102685102686102687102688102689102690102691102692102693102694102695102696102697102698102699102700102701102702102703102704102705102706102707102708102709102710102711102712102713102714102715102716102717102718102719102720102721102722102723102724102725102726102727102728102729102730102731102732102733102734102735102736102737102738102739102740102741102742102743102744102745102746102747102748102749102750102751102752102753102754102755102756102757102758102759102760102761102762102763102764102765102766102767102768102769102770102771102772102773102774102775102776102777102778102779102780102781102782102783102784102785102786102787102788102789102790102791102792102793102794102795102796102797102798102799102800102801102802102803102804102805102806102807102808102809102810102811102812102813102814102815102816102817102818102819102820102821102822102823102824102825102826102827102828102829102830102831102832102833102834102835102836102837102838102839102840102841102842102843102844102845102846102847102848102849102850102851102852102853102854102855102856102857102858102859102860102861102862102863102864102865102866102867102868102869102870102871102872102873102874102875102876102877102878102879102880102881102882102883102884102885102886102887102888102889102890102891102892102893102894102895102896102897102898102899102900102901102902102903102904102905102906102907102908102909102910102911102912102913102914102915102916102917102918102919102920102921102922102923102924102925102926102927102928102929102930102931102932102933102934102935102936102937102938102939102940102941102942102943102944102945102946102947102948102949102950102951102952102953102954102955102956102957102958102959102960102961102962102963102964102965102966102967102968102969102970102971102972102973102974102975102976102977102978102979102980102981102982102983102984102985102986102987102988102989102990102991102992102993102994102995102996102997102998102999103000103001103002103003103004103005103006103007103008103009103010103011103012103013103014103015103016103017103018103019103020103021103022103023103024103025103026103027103028103029103030103031103032103033103034103035103036103037103038103039103040103041103042103043103044103045103046103047103048103049103050103051103052103053103054103055103056103057103058103059103060103061103062103063103064103065103066103067103068103069103070103071103072103073103074103075103076103077103078103079103080103081103082103083103084103085103086103087103088103089103090103091103092103093103094103095103096103097103098103099103100103101103102103103103104103105103106103107103108103109103110103111103112103113103114103115103116103117103118103119103120103121103122103123103124103125103126103127103128103129103130103131103132103133103134103135103136103137103138103139103140103141103142103143103144103145103146103147103148103149103150103151103152103153103154103155103156103157103158103159103160103161103162103163103164103165103166103167103168103169103170103171103172103173103174103175103176103177103178103179103180103181103182103183103184103185103186103187103188103189103190103191103192103193103194103195103196103197103198103199103200103201103202103203103204103205103206103207103208103209103210103211103212103213103214103215103216103217103218103219103220103221103222103223103224103225103226103227103228103229103230103231103232103233103234103235103236103237103238103239103240103241103242103243103244103245103246103247103248103249103250103251103252103253103254103255103256103257103258103259103260103261103262103263103264103265103266103267103268103269103270103271103272103273103274103275103276103277103278103279103280103281103282103283103284103285103286103287103288103289103290103291103292103293103294103295103296103297103298103299103300103301103302103303103304103305103306103307103308103309103310103311103312103313103314103315103316103317103318103319103320103321103322103323103324103325103326103327103328103329103330103331103332103333103334103335103336103337103338103339103340103341103342103343103344103345103346103347103348103349103350103351103352103353103354103355103356103357103358103359103360103361103362103363103364103365103366103367103368103369103370103371103372103373103374103375103376103377103378103379103380103381103382103383103384103385103386103387103388103389103390103391103392103393103394103395103396103397103398103399103400103401103402103403103404103405103406103407103408103409103410103411103412103413103414103415103416103417103418103419103420103421103422103423103424103425103426103427103428103429103430103431103432103433103434103435103436103437103438103439103440103441103442103443103444103445103446103447103448103449103450103451103452103453103454103455103456103457103458103459103460103461103462103463103464103465103466103467103468103469103470103471103472103473103474103475103476103477103478103479103480103481103482103483103484103485103486103487103488103489103490103491103492103493103494103495103496103497103498103499103500103501103502103503103504103505103506103507103508103509103510103511103512103513103514103515103516103517103518103519103520103521103522103523103524103525103526103527103528103529103530103531103532103533103534103535103536103537103538103539103540103541103542103543103544103545103546103547103548103549103550103551103552103553103554103555103556103557103558103559103560103561103562103563103564103565103566103567103568103569103570103571103572103573103574103575103576103577103578103579103580103581103582103583103584103585103586103587103588103589103590103591103592103593103594103595103596103597103598103599103600103601103602103603103604103605103606103607103608103609103610103611103612103613103614103615103616103617103618103619103620103621103622103623103624103625103626103627103628103629103630103631103632103633103634103635103636103637103638103639103640103641103642103643103644103645103646103647103648103649103650103651103652103653103654103655103656103657103658103659103660103661103662103663103664103665103666103667103668103669103670103671103672103673103674103675103676103677103678103679103680103681103682103683103684103685103686103687103688103689103690103691103692103693103694103695103696103697103698103699103700103701103702103703103704103705103706103707103708103709103710103711103712103713103714103715103716103717103718103719103720103721103722103723103724103725103726103727103728103729103730103731103732103733103734103735103736103737103738103739103740103741103742103743103744103745103746103747103748103749103750103751103752103753103754103755103756103757103758103759103760103761103762103763103764103765103766103767103768103769103770103771103772103773103774103775103776103777103778103779103780103781103782103783103784103785103786103787103788103789103790103791103792103793103794103795103796103797103798103799103800103801103802103803103804103805103806103807103808103809103810103811103812103813103814103815103816103817103818103819103820103821103822103823103824103825103826103827103828103829103830103831103832103833103834103835103836103837103838103839103840103841103842103843103844103845103846103847103848103849103850103851103852103853103854103855103856103857103858103859103860103861103862103863103864103865103866103867103868103869103870103871103872103873103874103875103876103877103878103879103880103881103882103883103884103885103886103887103888103889103890103891103892103893103894103895103896103897103898103899103900103901103902103903103904103905103906103907103908103909103910103911103912103913103914103915103916103917103918103919103920103921103922103923103924103925103926103927103928103929103930103931103932103933103934103935103936103937103938103939103940103941103942103943103944103945103946103947103948103949103950103951103952103953103954103955103956103957103958103959103960103961103962103963103964103965103966103967103968103969103970103971103972103973103974103975103976103977103978103979103980103981103982103983103984103985103986103987103988103989103990103991103992103993103994103995103996103997103998103999104000104001104002104003104004104005104006104007104008104009104010104011104012104013104014104015104016104017104018104019104020104021104022104023104024104025104026104027104028104029104030104031104032104033104034104035104036104037104038104039104040104041104042104043104044104045104046104047104048104049104050104051104052104053104054104055104056104057104058104059104060104061104062104063104064104065104066104067104068104069104070104071104072104073104074104075104076104077104078104079104080104081104082104083104084104085104086104087104088104089104090104091104092104093104094104095104096104097104098104099104100104101104102104103104104104105104106104107104108104109104110104111104112104113104114104115104116104117104118104119104120104121104122104123104124104125104126104127104128104129104130104131104132104133104134104135104136104137104138104139104140104141104142104143104144104145104146104147104148104149104150104151104152104153104154104155104156104157104158104159104160104161104162104163104164104165104166104167104168104169104170104171104172104173104174104175104176104177104178104179104180104181104182104183104184104185104186104187104188104189104190104191104192104193104194104195104196104197104198104199104200104201104202104203104204104205104206104207104208104209104210104211104212104213104214104215104216104217104218104219104220104221104222104223104224104225104226104227104228104229104230104231104232104233104234104235104236104237104238104239104240104241104242104243104244104245104246104247104248104249104250104251104252104253104254104255104256104257104258104259104260104261104262104263104264104265104266104267104268104269104270104271104272104273104274104275104276104277104278104279104280104281104282104283104284104285104286104287104288104289104290104291104292104293104294104295104296104297104298104299104300104301104302104303104304104305104306104307104308104309104310104311104312104313104314104315104316104317104318104319104320104321104322104323104324104325104326104327104328104329104330104331104332104333104334104335104336104337104338104339104340104341104342104343104344104345104346104347104348104349104350104351104352104353104354104355104356104357104358104359104360104361104362104363104364104365104366104367104368104369104370104371104372104373104374104375104376104377104378104379104380104381104382104383104384104385104386104387104388104389104390104391104392104393104394104395104396104397104398104399104400104401104402104403104404104405104406104407104408104409104410104411104412104413104414104415104416104417104418104419104420104421104422104423104424104425104426104427104428104429104430104431104432104433104434104435104436104437104438104439104440104441104442104443104444104445104446104447104448104449104450104451104452104453104454104455104456104457104458104459104460104461104462104463104464104465104466104467104468104469104470104471104472104473104474104475104476104477104478104479104480104481104482104483104484104485104486104487104488104489104490104491104492104493104494104495104496104497104498104499104500104501104502104503104504104505104506104507104508104509104510104511104512104513104514104515104516104517104518104519104520104521104522104523104524104525104526104527104528104529104530104531104532104533104534104535104536104537104538104539104540104541104542104543104544104545104546104547104548104549104550104551104552104553104554104555104556104557104558104559104560104561104562104563104564104565104566104567104568104569104570104571104572104573104574104575104576104577104578104579104580104581104582104583104584104585104586104587104588104589104590104591104592104593104594104595104596104597104598104599104600104601104602104603104604104605104606104607104608104609104610104611104612104613104614104615104616104617104618104619104620104621104622104623104624104625104626104627104628104629104630104631104632104633104634104635104636104637104638104639104640104641104642104643104644104645104646104647104648104649104650104651104652104653104654104655104656104657104658104659104660104661104662104663104664104665104666104667104668104669104670104671104672104673104674104675104676104677104678104679104680104681104682104683104684104685104686104687104688104689104690104691104692104693104694104695104696104697104698104699104700104701104702104703104704104705104706104707104708104709104710104711104712104713104714104715104716104717104718104719104720104721104722104723104724104725104726104727104728104729104730104731104732104733104734104735104736104737104738104739104740104741104742104743104744104745104746104747104748104749104750104751104752104753104754104755104756104757104758104759104760104761104762104763104764104765104766104767104768104769104770104771104772104773104774104775104776104777104778104779104780104781104782104783104784104785104786104787104788104789104790104791104792104793104794104795104796104797104798104799104800104801104802104803104804104805104806104807104808104809104810104811104812104813104814104815104816104817104818104819104820104821104822104823104824104825104826104827104828104829104830104831104832104833104834104835104836104837104838104839104840104841104842104843104844104845104846104847104848104849104850104851104852104853104854104855104856104857104858104859104860104861104862104863104864104865104866104867104868104869104870104871104872104873104874104875104876104877104878104879104880104881104882104883104884104885104886104887104888104889104890104891104892104893104894104895104896104897104898104899104900104901104902104903104904104905104906104907104908104909104910104911104912104913104914104915104916104917104918104919104920104921104922104923104924104925104926104927104928104929104930104931104932104933104934104935104936104937104938104939104940104941104942104943104944104945104946104947104948104949104950104951104952104953104954104955104956104957104958104959104960104961104962104963104964104965104966104967104968104969104970104971104972104973104974104975104976104977104978104979104980104981104982104983104984104985104986104987104988104989104990104991104992104993104994104995104996104997104998104999105000105001105002105003105004105005105006105007105008105009105010105011105012105013105014105015105016105017105018105019105020105021105022105023105024105025105026105027105028105029105030105031105032105033105034105035105036105037105038105039105040105041105042105043105044105045105046105047105048105049105050105051105052105053105054105055105056105057105058105059105060105061105062105063105064105065105066105067105068105069105070105071105072105073105074105075105076105077105078105079105080105081105082105083105084105085105086105087105088105089105090105091105092105093105094105095105096105097105098105099105100105101105102105103105104105105105106105107105108105109105110105111105112105113105114105115105116105117105118105119105120105121105122105123105124105125105126105127105128105129105130105131105132105133105134105135105136105137105138105139105140105141105142105143105144105145105146105147105148105149105150105151105152105153105154105155105156105157105158105159105160105161105162105163105164105165105166105167105168105169105170105171105172105173105174105175105176105177105178105179105180105181105182105183105184105185105186105187105188105189105190105191105192105193105194105195105196105197105198105199105200105201105202105203105204105205105206105207105208105209105210105211105212105213105214105215105216105217105218105219105220105221105222105223105224105225105226105227105228105229105230105231105232105233105234105235105236105237105238105239105240105241105242105243105244105245105246105247105248105249105250105251105252105253105254105255105256105257105258105259105260105261105262105263105264105265105266105267105268105269105270105271105272105273105274105275105276105277105278105279105280105281105282105283105284105285105286105287105288105289105290105291105292105293105294105295105296105297105298105299105300105301105302105303105304105305105306105307105308105309105310105311105312105313105314105315105316105317105318105319105320105321105322105323105324105325105326105327105328105329105330105331105332105333105334105335105336105337105338105339105340105341105342105343105344105345105346105347105348105349105350105351105352105353105354105355105356105357105358105359105360105361105362105363105364105365105366105367105368105369105370105371105372105373105374105375105376105377105378105379105380105381105382105383105384105385105386105387105388105389105390105391105392105393105394105395105396105397105398105399105400105401105402105403105404105405105406105407105408105409105410105411105412105413105414105415105416105417105418105419105420105421105422105423105424105425105426105427105428105429105430105431105432105433105434105435105436105437105438105439105440105441105442105443105444105445105446105447105448105449105450105451105452105453105454105455105456105457105458105459105460105461105462105463105464105465105466105467105468105469105470105471105472105473105474105475105476105477105478105479105480105481105482105483105484105485105486105487105488105489105490105491105492105493105494105495105496105497105498105499105500105501105502105503105504105505105506105507105508105509105510105511105512105513105514105515105516105517105518105519105520105521105522105523105524105525105526105527105528105529105530105531105532105533105534105535105536105537105538105539105540105541105542105543105544105545105546105547105548105549105550105551105552105553105554105555105556105557105558105559105560105561105562105563105564105565105566105567105568105569105570105571105572105573105574105575105576105577105578105579105580105581105582105583105584105585105586105587105588105589105590105591105592105593105594105595105596105597105598105599105600105601105602105603105604105605105606105607105608105609105610105611105612105613105614105615105616105617105618105619105620105621105622105623105624105625105626105627105628105629105630105631105632105633105634105635105636105637105638105639105640105641105642105643105644105645105646105647105648105649105650105651105652105653105654105655105656105657105658105659105660105661105662105663105664105665105666105667105668105669105670105671105672105673105674105675105676105677105678105679105680105681105682105683105684105685105686105687105688105689105690105691105692105693105694105695105696105697105698105699105700105701105702105703105704105705105706105707105708105709105710105711105712105713105714105715105716105717105718105719105720105721105722105723105724105725105726105727105728105729105730105731105732105733105734105735105736105737105738105739105740105741105742105743105744105745105746105747105748105749105750105751105752105753105754105755105756105757105758105759105760105761105762105763105764105765105766105767105768105769105770105771105772105773105774105775105776105777105778105779105780105781105782105783105784105785105786105787105788105789105790105791105792105793105794105795105796105797105798105799105800105801105802105803105804105805105806105807105808105809105810105811105812105813105814105815105816105817105818105819105820105821105822105823105824105825105826105827105828105829105830105831105832105833105834105835105836105837105838105839105840105841105842105843105844105845105846105847105848105849105850105851105852105853105854105855105856105857105858105859105860105861105862105863105864105865105866105867105868105869105870105871105872105873105874105875105876105877105878105879105880105881105882105883105884105885105886105887105888105889105890105891105892105893105894105895105896105897105898105899105900105901105902105903105904105905105906105907105908105909105910105911105912105913105914105915105916105917105918105919105920105921105922105923105924105925105926105927105928105929105930105931105932105933105934105935105936105937105938105939105940105941105942105943105944105945105946105947105948105949105950105951105952105953105954105955105956105957105958105959105960105961105962105963105964105965105966105967105968105969105970105971105972105973105974105975105976105977105978105979105980105981105982105983105984105985105986105987105988105989105990105991105992105993105994105995105996105997105998105999106000106001106002106003106004106005106006106007106008106009106010106011106012106013106014106015106016106017106018106019106020106021106022106023106024106025106026106027106028106029106030106031106032106033106034106035106036106037106038106039106040106041106042106043106044106045106046106047106048106049106050106051106052106053106054106055106056106057106058106059106060106061106062106063106064106065106066106067106068106069106070106071106072106073106074106075106076106077106078106079106080106081106082106083106084106085106086106087106088106089106090106091106092106093106094106095106096106097106098106099106100106101106102106103106104106105106106106107106108106109106110106111106112106113106114106115106116106117106118106119106120106121106122106123106124106125106126106127106128106129106130106131106132106133106134106135106136106137106138106139106140106141106142106143106144106145106146106147106148106149106150106151106152106153106154106155106156106157106158106159106160106161106162106163106164106165106166106167106168106169106170106171106172106173106174106175106176106177106178106179106180106181106182106183106184106185106186106187106188106189106190106191106192106193106194106195106196106197106198106199106200106201106202106203106204106205106206106207106208106209106210106211106212106213106214106215106216106217106218106219106220106221106222106223106224106225106226106227106228106229106230106231106232106233106234106235106236106237106238106239106240106241106242106243106244106245106246106247106248106249106250106251106252106253106254106255106256106257106258106259106260106261106262106263106264106265106266106267106268106269106270106271106272106273106274106275106276106277106278106279106280106281106282106283106284106285106286106287106288106289106290106291106292106293106294106295106296106297106298106299106300106301106302106303106304106305106306106307106308106309106310106311106312106313106314106315106316106317106318106319106320106321106322106323106324106325106326106327106328106329106330106331106332106333106334106335106336106337106338106339106340106341106342106343106344106345106346106347106348106349106350106351106352106353106354106355106356106357106358106359106360106361106362106363106364106365106366106367106368106369106370106371106372106373106374106375106376106377106378106379106380106381106382106383106384106385106386106387106388106389106390106391106392106393106394106395106396106397106398106399106400106401106402106403106404106405106406106407106408106409106410106411106412106413106414106415106416106417106418106419106420106421106422106423106424106425106426106427106428106429106430106431106432106433106434106435106436106437106438106439106440106441106442106443106444106445106446106447106448106449106450106451106452106453106454106455106456106457106458106459106460106461106462106463106464106465106466106467106468106469106470106471106472106473106474106475106476106477106478106479106480106481106482106483106484106485106486106487106488106489106490106491106492106493106494106495106496106497106498106499106500106501106502106503106504106505106506106507106508106509106510106511106512106513106514106515106516106517106518106519106520106521106522106523106524106525106526106527106528106529106530106531106532106533106534106535106536106537106538106539106540106541106542106543106544106545106546106547106548106549106550106551106552106553106554106555106556106557106558106559106560106561106562106563106564106565106566106567106568106569106570106571106572106573106574106575106576106577106578106579106580106581106582106583106584106585106586106587106588106589106590106591106592106593106594106595106596106597106598106599106600106601106602106603106604106605106606106607106608106609106610106611106612106613106614106615106616106617106618106619106620106621106622106623106624106625106626106627106628106629106630106631106632106633106634106635106636106637106638106639106640106641106642106643106644106645106646106647106648106649106650106651106652106653106654106655106656106657106658106659106660106661106662106663106664106665106666106667106668106669106670106671106672106673106674106675106676106677106678106679106680106681106682106683106684106685106686106687106688106689106690106691106692106693106694106695106696106697106698106699106700106701106702106703106704106705106706106707106708106709106710106711106712106713106714106715106716106717106718106719106720106721106722106723106724106725106726106727106728106729106730106731106732106733106734106735106736106737106738106739106740106741106742106743106744106745106746106747106748106749106750106751106752106753106754106755106756106757106758106759106760106761106762106763106764106765106766106767106768106769106770106771106772106773106774106775106776106777106778106779106780106781106782106783106784106785106786106787106788106789106790106791106792106793106794106795106796106797106798106799106800106801106802106803106804106805106806106807106808106809106810106811106812106813106814106815106816106817106818106819106820106821106822106823106824106825106826106827106828106829106830106831106832106833106834106835106836106837106838106839106840106841106842106843106844106845106846106847106848106849106850106851106852106853106854106855106856106857106858106859106860106861106862106863106864106865106866106867106868106869106870106871106872106873106874106875106876106877106878106879106880106881106882106883106884106885106886106887106888106889106890106891106892106893106894106895106896106897106898106899106900106901106902106903106904106905106906106907106908106909106910106911106912106913106914106915106916106917106918106919106920106921106922106923106924106925106926106927106928106929106930106931106932106933106934106935106936106937106938106939106940106941106942106943106944106945106946106947106948106949106950106951106952106953106954106955106956106957106958106959106960106961106962106963106964106965106966106967106968106969106970106971106972106973106974106975106976106977106978106979106980106981106982106983106984106985106986106987106988106989106990106991106992106993106994106995106996106997106998106999107000107001107002107003107004107005107006107007107008107009107010107011107012107013107014107015107016107017107018107019107020107021107022107023107024107025107026107027107028107029107030107031107032107033107034107035107036107037107038107039107040107041107042107043107044107045107046107047107048107049107050107051107052107053107054107055107056107057107058107059107060107061107062107063107064107065107066107067107068107069107070107071107072107073107074107075107076107077107078107079107080107081107082107083107084107085107086107087107088107089107090107091107092107093107094107095107096107097107098107099107100107101107102107103107104107105107106107107107108107109107110107111107112107113107114107115107116107117107118107119107120107121107122107123107124107125107126107127107128107129107130107131107132107133107134107135107136107137107138107139107140107141107142107143107144107145107146107147107148107149107150107151107152107153107154107155107156107157107158107159107160107161107162107163107164107165107166107167107168107169107170107171107172107173107174107175107176107177107178107179107180107181107182107183107184107185107186107187107188107189107190107191107192107193107194107195107196107197107198107199107200107201107202107203107204107205107206107207107208107209107210107211107212107213107214107215107216107217107218107219107220107221107222107223107224107225107226107227107228107229107230107231107232107233107234107235107236107237107238107239107240107241107242107243107244107245107246107247107248107249107250107251107252107253107254107255107256107257107258107259107260107261107262107263107264107265107266107267107268107269107270107271107272107273107274107275107276107277107278107279107280107281107282107283107284107285107286107287107288107289107290107291107292107293107294107295107296107297107298107299107300107301107302107303107304107305107306107307107308107309107310107311107312107313107314107315107316107317107318107319107320107321107322107323107324107325107326107327107328107329107330107331107332107333107334107335107336107337107338107339107340107341107342107343107344107345107346107347107348107349107350107351107352107353107354107355107356107357107358107359107360107361107362107363107364107365107366107367107368107369107370107371107372107373107374107375107376107377107378107379107380107381107382107383107384107385107386107387107388107389107390107391107392107393107394107395107396107397107398107399107400107401107402107403107404107405107406107407107408107409107410107411107412107413107414107415107416107417107418107419107420107421107422107423107424107425107426107427107428107429107430107431107432107433107434107435107436107437107438107439107440107441107442107443107444107445107446107447107448107449107450107451107452107453107454107455107456107457107458107459107460107461107462107463107464107465107466107467107468107469107470107471107472107473107474107475107476107477107478107479107480107481107482107483107484107485107486107487107488107489107490107491107492107493107494107495107496107497107498107499107500107501107502107503107504107505107506107507107508107509107510107511107512107513107514107515107516107517107518107519107520107521107522107523107524107525107526107527107528107529107530107531107532107533107534107535107536107537107538107539107540107541107542107543107544107545107546107547107548107549107550107551107552107553107554107555107556107557107558107559107560107561107562107563107564107565107566107567107568107569107570107571107572107573107574107575107576107577107578107579107580107581107582107583107584107585107586107587107588107589107590107591107592107593107594107595107596107597107598107599107600107601107602107603107604107605107606107607107608107609107610107611107612107613107614107615107616107617107618107619107620107621107622107623107624107625107626107627107628107629107630107631107632107633107634107635107636107637107638107639107640107641107642107643107644107645107646107647107648107649107650107651107652107653107654107655107656107657107658107659107660107661107662107663107664107665107666107667107668107669107670107671107672107673107674107675107676107677107678107679107680107681107682107683107684107685107686107687107688107689107690107691107692107693107694107695107696107697107698107699107700107701107702107703107704107705107706107707107708107709107710107711107712107713107714107715107716107717107718107719107720107721107722107723107724107725107726107727107728107729107730107731107732107733107734107735107736107737107738107739107740107741107742107743107744107745107746107747107748107749107750107751107752107753107754107755107756107757107758107759107760107761107762107763107764107765107766107767107768107769107770107771107772107773107774107775107776107777107778107779107780107781107782107783107784107785107786107787107788107789107790107791107792107793107794107795107796107797107798107799107800107801107802107803107804107805107806107807107808107809107810107811107812107813107814107815107816107817107818107819107820107821107822107823107824107825107826107827107828107829107830107831107832107833107834107835107836107837107838107839107840107841107842107843107844107845107846107847107848107849107850107851107852107853107854107855107856107857107858107859107860107861107862107863107864107865107866107867107868107869107870107871107872107873107874107875107876107877107878107879107880107881107882107883107884107885107886107887107888107889107890107891107892107893107894107895107896107897107898107899107900107901107902107903107904107905107906107907107908107909107910107911107912107913107914107915107916107917107918107919107920107921107922107923107924107925107926107927107928107929107930107931107932107933107934107935107936107937107938107939107940107941107942107943107944107945107946107947107948107949107950107951107952107953107954107955107956107957107958107959107960107961107962107963107964107965107966107967107968107969107970107971107972107973107974107975107976107977107978107979107980107981107982107983107984107985107986107987107988107989107990107991107992107993107994107995107996107997107998107999108000108001108002108003108004108005108006108007108008108009108010108011108012108013108014108015108016108017108018108019108020108021108022108023108024108025108026108027108028108029108030108031108032108033108034108035108036108037108038108039108040108041108042108043108044108045108046108047108048108049108050108051108052108053108054108055108056108057108058108059108060108061108062108063108064108065108066108067108068108069108070108071108072108073108074108075108076108077108078108079108080108081108082108083108084108085108086108087108088108089108090108091108092108093108094108095108096108097108098108099108100108101108102108103108104108105108106108107108108108109108110108111108112108113108114108115108116108117108118108119108120108121108122108123108124108125108126108127108128108129108130108131108132108133108134108135108136108137108138108139108140108141108142108143108144108145108146108147108148108149108150108151108152108153108154108155108156108157108158108159108160108161108162108163108164108165108166108167108168108169108170108171108172108173108174108175108176108177108178108179108180108181108182108183108184108185108186108187108188108189108190108191108192108193108194108195108196108197108198108199108200108201108202108203108204108205108206108207108208108209108210108211108212108213108214108215108216108217108218108219108220108221108222108223108224108225108226108227108228108229108230108231108232108233108234108235108236108237108238108239108240108241108242108243108244108245108246108247108248108249108250108251108252108253108254108255108256108257108258108259108260108261108262108263108264108265108266108267108268108269108270108271108272108273108274108275108276108277108278108279108280108281108282108283108284108285108286108287108288108289108290108291108292108293108294108295108296108297108298108299108300108301108302108303108304108305108306108307108308108309108310108311108312108313108314108315108316108317108318108319108320108321108322108323108324108325108326108327108328108329108330108331108332108333108334108335108336108337108338108339108340108341108342108343108344108345108346108347108348108349108350108351108352108353108354108355108356108357108358108359108360108361108362108363108364108365108366108367108368108369108370108371108372108373108374108375108376108377108378108379108380108381108382108383108384108385108386108387108388108389108390108391108392108393108394108395108396108397108398108399108400108401108402108403108404108405108406108407108408108409108410108411108412108413108414108415108416108417108418108419108420108421108422108423108424108425108426108427108428108429108430108431108432108433108434108435108436108437108438108439108440108441108442108443108444108445108446108447108448108449108450108451108452108453108454108455108456108457108458108459108460108461108462108463108464108465108466108467108468108469108470108471108472108473108474108475108476108477108478108479108480108481108482108483108484108485108486108487108488108489108490108491108492108493108494108495108496108497108498108499108500108501108502108503108504108505108506108507108508108509108510108511108512108513108514108515108516108517108518108519108520108521108522108523108524108525108526108527108528108529108530108531108532108533108534108535108536108537108538108539108540108541108542108543108544108545108546108547108548108549108550108551108552108553108554108555108556108557108558108559108560108561108562108563108564108565108566108567108568108569108570108571108572108573108574108575108576108577108578108579108580108581108582108583108584108585108586108587108588108589108590108591108592108593108594108595108596108597108598108599108600108601108602108603108604108605108606108607108608108609108610108611108612108613108614108615108616108617108618108619108620108621108622108623108624108625108626108627108628108629108630108631108632108633108634108635108636108637108638108639108640108641108642108643108644108645108646108647108648108649108650108651108652108653108654108655108656108657108658108659108660108661108662108663108664108665108666108667108668108669108670108671108672108673108674108675108676108677108678108679108680108681108682108683108684108685108686108687108688108689108690108691108692108693108694108695108696108697108698108699108700108701108702108703108704108705108706108707108708108709108710108711108712108713108714108715108716108717108718108719108720108721108722108723108724108725108726108727108728108729108730108731108732108733108734108735108736108737108738108739108740108741108742108743108744108745108746108747108748108749108750108751108752108753108754108755108756108757108758108759108760108761108762108763108764108765108766108767108768108769108770108771108772108773108774108775108776108777108778108779108780108781108782108783108784108785108786108787108788108789108790108791108792108793108794108795108796108797108798108799108800108801108802108803108804108805108806108807108808108809108810108811108812108813108814108815108816108817108818108819108820108821108822108823108824108825108826108827108828108829108830108831108832108833108834108835108836108837108838108839108840108841108842108843108844108845108846108847108848108849108850108851108852108853108854108855108856108857108858108859108860108861108862108863108864108865108866108867108868108869108870108871108872108873108874108875108876108877108878108879108880108881108882108883108884108885108886108887108888108889108890108891108892108893108894108895108896108897108898108899108900108901108902108903108904108905108906108907108908108909108910108911108912108913108914108915108916108917108918108919108920108921108922108923108924108925108926108927108928108929108930108931108932108933108934108935108936108937108938108939108940108941108942108943108944108945108946108947108948108949108950108951108952108953108954108955108956108957108958108959108960108961108962108963108964108965108966108967108968108969108970108971108972108973108974108975108976108977108978108979108980108981108982108983108984108985108986108987108988108989108990108991108992108993108994108995108996108997108998108999109000109001109002109003109004109005109006109007109008109009109010109011109012109013109014109015109016109017109018109019109020109021109022109023109024109025109026109027109028109029109030109031109032109033109034109035109036109037109038109039109040109041109042109043109044109045109046109047109048109049109050109051109052109053109054109055109056109057109058109059109060109061109062109063109064109065109066109067109068109069109070109071109072109073109074109075109076109077109078109079109080109081109082109083109084109085109086109087109088109089109090109091109092109093109094109095109096109097109098109099109100109101109102109103109104109105109106109107109108109109109110109111109112109113109114109115109116109117109118109119109120109121109122109123109124109125109126109127109128109129109130109131109132109133109134109135109136109137109138109139109140109141109142109143109144109145109146109147109148109149109150109151109152109153109154109155109156109157109158109159109160109161109162109163109164109165109166109167109168109169109170109171109172109173109174109175109176109177109178109179109180109181109182109183109184109185109186109187109188109189109190109191109192109193109194109195109196109197109198109199109200109201109202109203109204109205109206109207109208109209109210109211109212109213109214109215109216109217109218109219109220109221109222109223109224109225109226109227109228109229109230109231109232109233109234109235109236109237109238109239109240109241109242109243109244109245109246109247109248109249109250109251109252109253109254109255109256109257109258109259109260109261109262109263109264109265109266109267109268109269109270109271109272109273109274109275109276109277109278109279109280109281109282109283109284109285109286109287109288109289109290109291109292109293109294109295109296109297109298109299109300109301109302109303109304109305109306109307109308109309109310109311109312109313109314109315109316109317109318109319109320109321109322109323109324109325109326109327109328109329109330109331109332109333109334109335109336109337109338109339109340109341109342109343109344109345109346109347109348109349109350109351109352109353109354109355109356109357109358109359109360109361109362109363109364109365109366109367109368109369109370109371109372109373109374109375109376109377109378109379109380109381109382109383109384109385109386109387109388109389109390109391109392109393109394109395109396109397109398109399109400109401109402109403109404109405109406109407109408109409109410109411109412109413109414109415109416109417109418109419109420109421109422109423109424109425109426109427109428109429109430109431109432109433109434109435109436109437109438109439109440109441109442109443109444109445109446109447109448109449109450109451109452109453109454109455109456109457109458109459109460109461109462109463109464109465109466109467109468109469109470109471109472109473109474109475109476109477109478109479109480109481109482109483109484109485109486109487109488109489109490109491109492109493109494109495109496109497109498109499109500109501109502109503109504109505109506109507109508109509109510109511109512109513109514109515109516109517109518109519109520109521109522109523109524109525109526109527109528109529109530109531109532109533109534109535109536109537109538109539109540109541109542109543109544109545109546109547109548109549109550109551109552109553109554109555109556109557109558109559109560109561109562109563109564109565109566109567109568109569109570109571109572109573109574109575109576109577109578109579109580109581109582109583109584109585109586109587109588109589109590109591109592109593109594109595109596109597109598109599109600109601109602109603109604109605109606109607109608109609109610109611109612109613109614109615109616109617109618109619109620109621109622109623109624109625109626109627109628109629109630109631109632109633109634109635109636109637109638109639109640109641109642109643109644109645109646109647109648109649109650109651109652109653109654109655109656109657109658109659109660109661109662109663109664109665109666109667109668109669109670109671109672109673109674109675109676109677109678109679109680109681109682109683109684109685109686109687109688109689109690109691109692109693109694109695109696109697109698109699109700109701109702109703109704109705109706109707109708109709109710109711109712109713109714109715109716109717109718109719109720109721109722109723109724109725109726109727109728109729109730109731109732109733109734109735109736109737109738109739109740109741109742109743109744109745109746109747109748109749109750109751109752109753109754109755109756109757109758109759109760109761109762109763109764109765109766109767109768109769109770109771109772109773109774109775109776109777109778109779109780109781109782109783109784109785109786109787109788109789109790109791109792109793109794109795109796109797109798109799109800109801109802109803109804109805109806109807109808109809109810109811109812109813109814109815109816109817109818109819109820109821109822109823109824109825109826109827109828109829109830109831109832109833109834109835109836109837109838109839109840109841109842109843109844109845109846109847109848109849109850109851109852109853109854109855109856109857109858109859109860109861109862109863109864109865109866109867109868109869109870109871109872109873109874109875109876109877109878109879109880109881109882109883109884109885109886109887109888109889109890109891109892109893109894109895109896109897109898109899109900109901109902109903109904109905109906109907109908109909109910109911109912109913109914109915109916109917109918109919109920109921109922109923109924109925109926109927109928109929109930109931109932109933109934109935109936109937109938109939109940109941109942109943109944109945109946109947109948109949109950109951109952109953109954109955109956109957109958109959109960109961109962109963109964109965109966109967109968109969109970109971109972109973109974109975109976109977109978109979109980109981109982109983109984109985109986109987109988109989109990109991109992109993109994109995109996109997109998109999110000110001110002110003110004110005110006110007110008110009110010110011110012110013110014110015110016110017110018110019110020110021110022110023110024110025110026110027110028110029110030110031110032110033110034110035110036110037110038110039110040110041110042110043110044110045110046110047110048110049110050110051110052110053110054110055110056110057110058110059110060110061110062110063110064110065110066110067110068110069110070110071110072110073110074110075110076110077110078110079110080110081110082110083110084110085110086110087110088110089110090110091110092110093110094110095110096110097110098110099110100110101110102110103110104110105110106110107110108110109110110110111110112110113110114110115110116110117110118110119110120110121110122110123110124110125110126110127110128110129110130110131110132110133110134110135110136110137110138110139110140110141110142110143110144110145110146110147110148110149110150110151110152110153110154110155110156110157110158110159110160110161110162110163110164110165110166110167110168110169110170110171110172110173110174110175110176110177110178110179110180110181110182110183110184110185110186110187110188110189110190110191110192110193110194110195110196110197110198110199110200110201110202110203110204110205110206110207110208110209110210110211110212110213110214110215110216110217110218110219110220110221110222110223110224110225110226110227110228110229110230110231110232110233110234110235110236110237110238110239110240110241110242110243110244110245110246110247110248110249110250110251110252110253110254110255110256110257110258110259110260110261110262110263110264110265110266110267110268110269110270110271110272110273110274110275110276110277110278110279110280110281110282110283110284110285110286110287110288110289110290110291110292110293110294110295110296110297110298110299110300110301110302110303110304110305110306110307110308110309110310110311110312110313110314110315110316110317110318110319110320110321110322110323110324110325110326110327110328110329110330110331110332110333110334110335110336110337110338110339110340110341110342110343110344110345110346110347110348110349110350110351110352110353110354110355110356110357110358110359110360110361110362110363110364110365110366110367110368110369110370110371110372110373110374110375110376110377110378110379110380110381110382110383110384110385110386110387110388110389110390110391110392110393110394110395110396110397110398110399110400110401110402110403110404110405110406110407110408110409110410110411110412110413110414110415110416110417110418110419110420110421110422110423110424110425110426110427110428110429110430110431110432110433110434110435110436110437110438110439110440110441110442110443110444110445110446110447110448110449110450110451110452110453110454110455110456110457110458110459110460110461110462110463110464110465110466110467110468110469110470110471110472110473110474110475110476110477110478110479110480110481110482110483110484110485110486110487110488110489110490110491110492110493110494110495110496110497110498110499110500110501110502110503110504110505110506110507110508110509110510110511110512110513110514110515110516110517110518110519110520110521110522110523110524110525110526110527110528110529110530110531110532110533110534110535110536110537110538110539110540110541110542110543110544110545110546110547110548110549110550110551110552110553110554110555110556110557110558110559110560110561110562110563110564110565110566110567110568110569110570110571110572110573110574110575110576110577110578110579110580110581110582110583110584110585110586110587110588110589110590110591110592110593110594110595110596110597110598110599110600110601110602110603110604110605110606110607110608110609110610110611110612110613110614110615110616110617110618110619110620110621110622110623110624110625110626110627110628110629110630110631110632110633110634110635110636110637110638110639110640110641110642110643110644110645110646110647110648110649110650110651110652110653110654110655110656110657110658110659110660110661110662110663110664110665110666110667110668110669110670110671110672110673110674110675110676110677110678110679110680110681110682110683110684110685110686110687110688110689110690110691110692110693110694110695110696110697110698110699110700110701110702110703110704110705110706110707110708110709110710110711110712110713110714110715110716110717110718110719110720110721110722110723110724110725110726110727110728110729110730110731110732110733110734110735110736110737110738110739110740110741110742110743110744110745110746110747110748110749110750110751110752110753110754110755110756110757110758110759110760110761110762110763110764110765110766110767110768110769110770110771110772110773110774110775110776110777110778110779110780110781110782110783110784110785110786110787110788110789110790110791110792110793110794110795110796110797110798110799110800110801110802110803110804110805110806110807110808110809110810110811110812110813110814110815110816110817110818110819110820110821110822110823110824110825110826110827110828110829110830110831110832110833110834110835110836110837110838110839110840110841110842110843110844110845110846110847110848110849110850110851110852110853110854110855110856110857110858110859110860110861110862110863110864110865110866110867110868110869110870110871110872110873110874110875110876110877110878110879110880110881110882110883110884110885110886110887110888110889110890110891110892110893110894110895110896110897110898110899110900110901110902110903110904110905110906110907110908110909110910110911110912110913110914110915110916110917110918110919110920110921110922110923110924110925110926110927110928110929110930110931110932110933110934110935110936110937110938110939110940110941110942110943110944110945110946110947110948110949110950110951110952110953110954110955110956110957110958110959110960110961110962110963110964110965110966110967110968110969110970110971110972110973110974110975110976110977110978110979110980110981110982110983110984110985110986110987110988110989110990110991110992110993110994110995110996110997110998110999111000111001111002111003111004111005111006111007111008111009111010111011111012111013111014111015111016111017111018111019111020111021111022111023111024111025111026111027111028111029111030111031111032111033111034111035111036111037111038111039111040111041111042111043111044111045111046111047111048111049111050111051111052111053111054111055111056111057111058111059111060111061111062111063111064111065111066111067111068111069111070111071111072111073111074111075111076111077111078111079111080111081111082111083111084111085111086111087111088111089111090111091111092111093111094111095111096111097111098111099111100111101111102111103111104111105111106111107111108111109111110111111111112111113111114111115111116111117111118111119111120111121111122111123111124111125111126111127111128111129111130111131111132111133111134111135111136111137111138111139111140111141111142111143111144111145111146111147111148111149111150111151111152111153111154111155111156111157111158111159111160111161111162111163111164111165111166111167111168111169111170111171111172111173111174111175111176111177111178111179111180111181111182111183111184111185111186111187111188111189111190111191111192111193111194111195111196111197111198111199111200111201111202111203111204111205111206111207111208111209111210111211111212111213111214111215111216111217111218111219111220111221111222111223111224111225111226111227111228111229111230111231111232111233111234111235111236111237111238111239111240111241111242111243111244111245111246111247111248111249111250111251111252111253111254111255111256111257111258111259111260111261111262111263111264111265111266111267111268111269111270111271111272111273111274111275111276111277111278111279111280111281111282111283111284111285111286111287111288111289111290111291111292111293111294111295111296111297111298111299111300111301111302111303111304111305111306111307111308111309111310111311111312111313111314111315111316111317111318111319111320111321111322111323111324111325111326111327111328111329111330111331111332111333111334111335111336111337111338111339111340111341111342111343111344111345111346111347111348111349111350111351111352111353111354111355111356111357111358111359111360111361111362111363111364111365111366111367111368111369111370111371111372111373111374111375111376111377111378111379111380111381111382111383111384111385111386111387111388111389111390111391111392111393111394111395111396111397111398111399111400111401111402111403111404111405111406111407111408111409111410111411111412111413111414111415111416111417111418111419111420111421111422111423111424111425111426111427111428111429111430111431111432111433111434111435111436111437111438111439111440111441111442111443111444111445111446111447111448111449111450111451111452111453111454111455111456111457111458111459111460111461111462111463111464111465111466111467111468111469111470111471111472111473111474111475111476111477111478111479111480111481111482111483111484111485111486111487111488111489111490111491111492111493111494111495111496111497111498111499111500111501111502111503111504111505111506111507111508111509111510111511111512111513111514111515111516111517111518111519111520111521111522111523111524111525111526111527111528111529111530111531111532111533111534111535111536111537111538111539111540111541111542111543111544111545111546111547111548111549111550111551111552111553111554111555111556111557111558111559111560111561111562111563111564111565111566111567111568111569111570111571111572111573111574111575111576111577111578111579111580111581111582111583111584111585111586111587111588111589111590111591111592111593111594111595111596111597111598111599111600111601111602111603111604111605111606111607111608111609111610111611111612111613111614111615111616111617111618111619111620111621111622111623111624111625111626111627111628111629111630111631111632111633111634111635111636111637111638111639111640111641111642111643111644111645111646111647111648111649111650111651111652111653111654111655111656111657111658111659111660111661111662111663111664111665111666111667111668111669111670111671111672111673111674111675111676111677111678111679111680111681111682111683111684111685111686111687111688111689111690111691111692111693111694111695111696111697111698111699111700111701111702111703111704111705111706111707111708111709111710111711111712111713111714111715111716111717111718111719111720111721111722111723111724111725111726111727111728111729111730111731111732111733111734111735111736111737111738111739111740111741111742111743111744111745111746111747111748111749111750111751111752111753111754111755111756111757111758111759111760111761111762111763111764111765111766111767111768111769111770111771111772111773111774111775111776111777111778111779111780111781111782111783111784111785111786111787111788111789111790111791111792111793111794111795111796111797111798111799111800111801111802111803111804111805111806111807111808111809111810111811111812111813111814111815111816111817111818111819111820111821111822111823111824111825111826111827111828111829111830111831111832111833111834111835111836111837111838111839111840111841111842111843111844111845111846111847111848111849111850111851111852111853111854111855111856111857111858111859111860111861111862111863111864111865111866111867111868111869111870111871111872111873111874111875111876111877111878111879111880111881111882111883111884111885111886111887111888111889111890111891111892111893111894111895111896111897111898111899111900111901111902111903111904111905111906111907111908111909111910111911111912111913111914111915111916111917111918111919111920111921111922111923111924111925111926111927111928111929111930111931111932111933111934111935111936111937111938111939111940111941111942111943111944111945111946111947111948111949111950111951111952111953111954111955111956111957111958111959111960111961111962111963111964111965111966111967111968111969111970111971111972111973111974111975111976111977111978111979111980111981111982111983111984111985111986111987111988111989111990111991111992111993111994111995111996111997111998111999112000112001112002112003112004112005112006112007112008112009112010112011112012112013112014112015112016112017112018112019112020112021112022112023112024112025112026112027112028112029112030112031112032112033112034112035112036112037112038112039112040112041112042112043112044112045112046112047112048112049112050112051112052112053112054112055112056112057112058112059112060112061112062112063112064112065112066112067112068112069112070112071112072112073112074112075112076112077112078112079112080112081112082112083112084112085112086112087112088112089112090112091112092112093112094112095112096112097112098112099112100112101112102112103112104112105112106112107112108112109112110112111112112112113112114112115112116112117112118112119112120112121112122112123112124112125112126112127112128112129112130112131112132112133112134112135112136112137112138112139112140112141112142112143112144112145112146112147112148112149112150112151112152112153112154112155112156112157112158112159112160112161112162112163112164112165112166112167112168112169112170112171112172112173112174112175112176112177112178112179112180112181112182112183112184112185112186112187112188112189112190112191112192112193112194112195112196112197112198112199112200112201112202112203112204112205112206112207112208112209112210112211112212112213112214112215112216112217112218112219112220112221112222112223112224112225112226112227112228112229112230112231112232112233112234112235112236112237112238112239112240112241112242112243112244112245112246112247112248112249112250112251112252112253112254112255112256112257112258112259112260112261112262112263112264112265112266112267112268112269112270112271112272112273112274112275112276112277112278112279112280112281112282112283112284112285112286112287112288112289112290112291112292112293112294112295112296112297112298112299112300112301112302112303112304112305112306112307112308112309112310112311112312112313112314112315112316112317112318112319112320112321112322112323112324112325112326112327112328112329112330112331112332112333112334112335112336112337112338112339112340112341112342112343112344112345112346112347112348112349112350112351112352112353112354112355112356112357112358112359112360112361112362112363112364112365112366112367112368112369112370112371112372112373112374112375112376112377112378112379112380112381112382112383112384112385112386112387112388112389112390112391112392112393112394112395112396112397112398112399112400112401112402112403112404112405112406112407112408112409112410112411112412112413112414112415112416112417112418112419112420112421112422112423112424112425112426112427112428112429112430112431112432112433112434112435112436112437112438112439112440112441112442112443112444112445112446112447112448112449112450112451112452112453112454112455112456112457112458112459112460112461112462112463112464112465112466112467112468112469112470112471112472112473112474112475112476112477112478112479112480112481112482112483112484112485112486112487112488112489112490112491112492112493112494112495112496112497112498112499112500112501112502112503112504112505112506112507112508112509112510112511112512112513112514112515112516112517112518112519112520112521112522112523112524112525112526112527112528112529112530112531112532112533112534112535112536112537112538112539112540112541112542112543112544112545112546112547112548112549112550112551112552112553112554112555112556112557112558112559112560112561112562112563112564112565112566112567112568112569112570112571112572112573112574112575112576112577112578112579112580112581112582112583112584112585112586112587112588112589112590112591112592112593112594112595112596112597112598112599112600112601112602112603112604112605112606112607112608112609112610112611112612112613112614112615112616112617112618112619112620112621112622112623112624112625112626112627112628112629112630112631112632112633112634112635112636112637112638112639112640112641112642112643112644112645112646112647112648112649112650112651112652112653112654112655112656112657112658112659112660112661112662112663112664112665112666112667112668112669112670112671112672112673112674112675112676112677112678112679112680112681112682112683112684112685112686112687112688112689112690112691112692112693112694112695112696112697112698112699112700112701112702112703112704112705112706112707112708112709112710112711112712112713112714112715112716112717112718112719112720112721112722112723112724112725112726112727112728112729112730112731112732112733112734112735112736112737112738112739112740112741112742112743112744112745112746112747112748112749112750112751112752112753112754112755112756112757112758112759112760112761112762112763112764112765112766112767112768112769112770112771112772112773112774112775112776112777112778112779112780112781112782112783112784112785112786112787112788112789112790112791112792112793112794112795112796112797112798112799112800112801112802112803112804112805112806112807112808112809112810112811112812112813112814112815112816112817112818112819112820112821112822112823112824112825112826112827112828112829112830112831112832112833112834112835112836112837112838112839112840112841112842112843112844112845112846112847112848112849112850112851112852112853112854112855112856112857112858112859112860112861112862112863112864112865112866112867112868112869112870112871112872112873112874112875112876112877112878112879112880112881112882112883112884112885112886112887112888112889112890112891112892112893112894112895112896112897112898112899112900112901112902112903112904112905112906112907112908112909112910112911112912112913112914112915112916112917112918112919112920112921112922112923112924112925112926112927112928112929112930112931112932112933112934112935112936112937112938112939112940112941112942112943112944112945112946112947112948112949112950112951112952112953112954112955112956112957112958112959112960112961112962112963112964112965112966112967112968112969112970112971112972112973112974112975112976112977112978112979112980112981112982112983112984112985112986112987112988112989112990112991112992112993112994112995112996112997112998112999113000113001113002113003113004113005113006113007113008113009113010113011113012113013113014113015113016113017113018113019113020113021113022113023113024113025113026113027113028113029113030113031113032113033113034113035113036113037113038113039113040113041113042113043113044113045113046113047113048113049113050113051113052113053113054113055113056113057113058113059113060113061113062113063113064113065113066113067113068113069113070113071113072113073113074113075113076113077113078113079113080113081113082113083113084113085113086113087113088113089113090113091113092113093113094113095113096113097113098113099113100113101113102113103113104113105113106113107113108113109113110113111113112113113113114113115113116113117113118113119113120113121113122113123113124113125113126113127113128113129113130113131113132113133113134113135113136113137113138113139113140113141113142113143113144113145113146113147113148113149113150113151113152113153113154113155113156113157113158113159113160113161113162113163113164113165113166113167113168113169113170113171113172113173113174113175113176113177113178113179113180113181113182113183113184113185113186113187113188113189113190113191113192113193113194113195113196113197113198113199113200113201113202113203113204113205113206113207113208113209113210113211113212113213113214113215113216113217113218113219113220113221113222113223113224113225113226113227113228113229113230113231113232113233113234113235113236113237113238113239113240113241113242113243113244113245113246113247113248113249113250113251113252113253113254113255113256113257113258113259113260113261113262113263113264113265113266113267113268113269113270113271113272113273113274113275113276113277113278113279113280113281113282113283113284113285113286113287113288113289113290113291113292113293113294113295113296113297113298113299113300113301113302113303113304113305113306113307113308113309113310113311113312113313113314113315113316113317113318113319113320113321113322113323113324113325113326113327113328113329113330113331113332113333113334113335113336113337113338113339113340113341113342113343113344113345113346113347113348113349113350113351113352113353113354113355113356113357113358113359113360113361113362113363113364113365113366113367113368113369113370113371113372113373113374113375113376113377113378113379113380113381113382113383113384113385113386113387113388113389113390113391113392113393113394113395113396113397113398113399113400113401113402113403113404113405113406113407113408113409113410113411113412113413113414113415113416113417113418113419113420113421113422113423113424113425113426113427113428113429113430113431113432113433113434113435113436113437113438113439113440113441113442113443113444113445113446113447113448113449113450113451113452113453113454113455113456113457113458113459113460113461113462113463113464113465113466113467113468113469113470113471113472113473113474113475113476113477113478113479113480113481113482113483113484113485113486113487113488113489113490113491113492113493113494113495113496113497113498113499113500113501113502113503113504113505113506113507113508113509113510113511113512113513113514113515113516113517113518113519113520113521113522113523113524113525113526113527113528113529113530113531113532113533113534113535113536113537113538113539113540113541113542113543113544113545113546113547113548113549113550113551113552113553113554113555113556113557113558113559113560113561113562113563113564113565113566113567113568113569113570113571113572113573113574113575113576113577113578113579113580113581113582113583113584113585113586113587113588113589113590113591113592113593113594113595113596113597113598113599113600113601113602113603113604113605113606113607113608113609113610113611113612113613113614113615113616113617113618113619113620113621113622113623113624113625113626113627113628113629113630113631113632113633113634113635113636113637113638113639113640113641113642113643113644113645113646113647113648113649113650113651113652113653113654113655113656113657113658113659113660113661113662113663113664113665113666113667113668113669113670113671113672113673113674113675113676113677113678113679113680113681113682113683113684113685113686113687113688113689113690113691113692113693113694113695113696113697113698113699113700113701113702113703113704113705113706113707113708113709113710113711113712113713113714113715113716113717113718113719113720113721113722113723113724113725113726113727113728113729113730113731113732113733113734113735113736113737113738113739113740113741113742113743113744113745113746113747113748113749113750113751113752113753113754113755113756113757113758113759113760113761113762113763113764113765113766113767113768113769113770113771113772113773113774113775113776113777113778113779113780113781113782113783113784113785113786113787113788113789113790113791113792113793113794113795113796113797113798113799113800113801113802113803113804113805113806113807113808113809113810113811113812113813113814113815113816113817113818113819113820113821113822113823113824113825113826113827113828113829113830113831113832113833113834113835113836113837113838113839113840113841113842113843113844113845113846113847113848113849113850113851113852113853113854113855113856113857113858113859113860113861113862113863113864113865113866113867113868113869113870113871113872113873113874113875113876113877113878113879113880113881113882113883113884113885113886113887113888113889113890113891113892113893113894113895113896113897113898113899113900113901113902113903113904113905113906113907113908113909113910113911113912113913113914113915113916113917113918113919113920113921113922113923113924113925113926113927113928113929113930113931113932113933113934113935113936113937113938113939113940113941113942113943113944113945113946113947113948113949113950113951113952113953113954113955113956113957113958113959113960113961113962113963113964113965113966113967113968113969113970113971113972113973113974113975113976113977113978113979113980113981113982113983113984113985113986113987113988113989113990113991113992113993113994113995113996113997113998113999114000114001114002114003114004114005114006114007114008114009114010114011114012114013114014114015114016114017114018114019114020114021114022114023114024114025114026114027114028114029114030114031114032114033114034114035114036114037114038114039114040114041114042114043114044114045114046114047114048114049114050114051114052114053114054114055114056114057114058114059114060114061114062114063114064114065114066114067114068114069114070114071114072114073114074114075114076114077114078114079114080114081114082114083114084114085114086114087114088114089114090114091114092114093114094114095114096114097114098114099114100114101114102114103114104114105114106114107114108114109114110114111114112114113114114114115114116114117114118114119114120114121114122114123114124114125114126114127114128114129114130114131114132114133114134114135114136114137114138114139114140114141114142114143114144114145114146114147114148114149114150114151114152114153114154114155114156114157114158114159114160114161114162114163114164114165114166114167114168114169114170114171114172114173114174114175114176114177114178114179114180114181114182114183114184114185114186114187114188114189114190114191114192114193114194114195114196114197114198114199114200114201114202114203114204114205114206114207114208114209114210114211114212114213114214114215114216114217114218114219114220114221114222114223114224114225114226114227114228114229114230114231114232114233114234114235114236114237114238114239114240114241114242114243114244114245114246114247114248114249114250114251114252114253114254114255114256114257114258114259114260114261114262114263114264114265114266114267114268114269114270114271114272114273114274114275114276114277114278114279114280114281114282114283114284114285114286114287114288114289114290114291114292114293114294114295114296114297114298114299114300114301114302114303114304114305114306114307114308114309114310114311114312114313114314114315114316114317114318114319114320114321114322114323114324114325114326114327114328114329114330114331114332114333114334114335114336114337114338114339114340114341114342114343114344114345114346114347114348114349114350114351114352114353114354114355114356114357114358114359114360114361114362114363114364114365114366114367114368114369114370114371114372114373114374114375114376114377114378114379114380114381114382114383114384114385114386114387114388114389114390114391114392114393114394114395114396114397114398114399114400114401114402114403114404114405114406114407114408114409114410114411114412114413114414114415114416114417114418114419114420114421114422114423114424114425114426114427114428114429114430114431114432114433114434114435114436114437114438114439114440114441114442114443114444114445114446114447114448114449114450114451114452114453114454114455114456114457114458114459114460114461114462114463114464114465114466114467114468114469114470114471114472114473114474114475114476114477114478114479114480114481114482114483114484114485114486114487114488114489114490114491114492114493114494114495114496114497114498114499114500114501114502114503114504114505114506114507114508114509114510114511114512114513114514114515114516114517114518114519114520114521114522114523114524114525114526114527114528114529114530114531114532114533114534114535114536114537114538114539114540114541114542114543114544114545114546114547114548114549114550114551114552114553114554114555114556114557114558114559114560114561114562114563114564114565114566114567114568114569114570114571114572114573114574114575114576114577114578114579114580114581114582114583114584114585114586114587114588114589114590114591114592114593114594114595114596114597114598114599114600114601114602114603114604114605114606114607114608114609114610114611114612114613114614114615114616114617114618114619114620114621114622114623114624114625114626114627114628114629114630114631114632114633114634114635114636114637114638114639114640114641114642114643114644114645114646114647114648114649114650114651114652114653114654114655114656114657114658114659114660114661114662114663114664114665114666114667114668114669114670114671114672114673114674114675114676114677114678114679114680114681114682114683114684114685114686114687114688114689114690114691114692114693114694114695114696114697114698114699114700114701114702114703114704114705114706114707114708114709114710114711114712114713114714114715114716114717114718114719114720114721114722114723114724114725114726114727114728114729114730114731114732114733114734114735114736114737114738114739114740114741114742114743114744114745114746114747114748114749114750114751114752114753114754114755114756114757114758114759114760114761114762114763114764114765114766114767114768114769114770114771114772114773114774114775114776114777114778114779114780114781114782114783114784114785114786114787114788114789114790114791114792114793114794114795114796114797114798114799114800114801114802114803114804114805114806114807114808114809114810114811114812114813114814114815114816114817114818114819114820114821114822114823114824114825114826114827114828114829114830114831114832114833114834114835114836114837114838114839114840114841114842114843114844114845114846114847114848114849114850114851114852114853114854114855114856114857114858114859114860114861114862114863114864114865114866114867114868114869114870114871114872114873114874114875114876114877114878114879114880114881114882114883114884114885114886114887114888114889114890114891114892114893114894114895114896114897114898114899114900114901114902114903114904114905114906114907114908114909114910114911114912114913114914114915114916114917114918114919114920114921114922114923114924114925114926114927114928114929114930114931114932114933114934114935114936114937114938114939114940114941114942114943114944114945114946114947114948114949114950114951114952114953114954114955114956114957114958114959114960114961114962114963114964114965114966114967114968114969114970114971114972114973114974114975114976114977114978114979114980114981114982114983114984114985114986114987114988114989114990114991114992114993114994114995114996114997114998114999115000115001115002115003115004115005115006115007115008115009115010115011115012115013115014115015115016115017115018115019115020115021115022115023115024115025115026115027115028115029115030115031115032115033115034115035115036115037115038115039115040115041115042115043115044115045115046115047115048115049115050115051115052115053115054115055115056115057115058115059115060115061115062115063115064115065115066115067115068115069115070115071115072115073115074115075115076115077115078115079115080115081115082115083115084115085115086115087115088115089115090115091115092115093115094115095115096115097115098115099115100115101115102115103115104115105115106115107115108115109115110115111115112115113115114115115115116115117115118115119115120115121115122115123115124115125115126115127115128115129115130115131115132115133115134115135115136115137115138115139115140115141115142115143115144115145115146115147115148115149115150115151115152115153115154115155115156115157115158115159115160115161115162115163115164115165115166115167115168115169115170115171115172115173115174115175115176115177115178115179115180115181115182115183115184115185115186115187115188115189115190115191115192115193115194115195115196115197115198115199115200115201115202115203115204115205115206115207115208115209115210115211115212115213115214115215115216115217115218115219115220115221115222115223115224115225115226115227115228115229115230115231115232115233115234115235115236115237115238115239115240115241115242115243115244115245115246115247115248115249115250115251115252115253115254115255115256115257115258115259115260115261115262115263115264115265115266115267115268115269115270115271115272115273115274115275115276115277115278115279115280115281115282115283115284115285115286115287115288115289115290115291115292115293115294115295115296115297115298115299115300115301115302115303115304115305115306115307115308115309115310115311115312115313115314115315115316115317115318115319115320115321115322115323115324115325115326115327115328115329115330115331115332115333115334115335115336115337115338115339115340115341115342115343115344115345115346115347115348115349115350115351115352115353115354115355115356115357115358115359115360115361115362115363115364115365115366115367115368115369115370115371115372115373115374115375115376115377115378115379115380115381115382115383115384115385115386115387115388115389115390115391115392115393115394115395115396115397115398115399115400115401115402115403115404115405115406115407115408115409115410115411115412115413115414115415115416115417115418115419115420115421115422115423115424115425115426115427115428115429115430115431115432115433115434115435115436115437115438115439115440115441115442115443115444115445115446115447115448115449115450115451115452115453115454115455115456115457115458115459115460115461115462115463115464115465115466115467115468115469115470115471115472115473115474115475115476115477115478115479115480115481115482115483115484115485115486115487115488115489115490115491115492115493115494115495115496115497115498115499115500115501115502115503115504115505115506115507115508115509115510115511115512115513115514115515115516115517115518115519115520115521115522115523115524115525115526115527115528115529115530115531115532115533115534115535115536115537115538115539115540115541115542115543115544115545115546115547115548115549115550115551115552115553115554115555115556115557115558115559115560115561115562115563115564115565115566115567115568115569115570115571115572115573115574115575115576115577115578115579115580115581115582115583115584115585115586115587115588115589115590115591115592115593115594115595115596115597115598115599115600115601115602115603115604115605115606115607115608115609115610115611115612115613115614115615115616115617115618115619115620115621115622115623115624115625115626115627115628115629115630115631115632115633115634115635115636115637115638115639115640115641115642115643115644115645115646115647115648115649115650115651115652115653115654115655115656115657115658115659115660115661115662115663115664115665115666115667115668115669115670115671115672115673115674115675115676115677115678115679115680115681115682115683115684115685115686115687115688115689115690115691115692115693115694115695115696115697115698115699115700115701115702115703115704115705115706115707115708115709115710115711115712115713115714115715115716115717115718115719115720115721115722115723115724115725115726115727115728115729115730115731115732115733115734115735115736115737115738115739115740115741115742115743115744115745115746115747115748115749115750115751115752115753115754115755115756115757115758115759115760115761115762115763115764115765115766115767115768115769115770115771115772115773115774115775115776115777115778115779115780115781115782115783115784115785115786115787115788115789115790115791115792115793115794115795115796115797115798115799115800115801115802115803115804115805115806115807115808115809115810115811115812115813115814115815115816115817115818115819115820115821115822115823115824115825115826115827115828115829115830115831115832115833115834115835115836115837115838115839115840115841115842115843115844115845115846115847115848115849115850115851115852115853115854115855115856115857115858115859115860115861115862115863115864115865115866115867115868115869115870115871115872115873115874115875115876115877115878115879115880115881115882115883115884115885115886115887115888115889115890115891115892115893115894115895115896115897115898115899115900115901115902115903115904115905115906115907115908115909115910115911115912115913115914115915115916115917115918115919115920115921115922115923115924115925115926115927115928115929115930115931115932115933115934115935115936115937115938115939115940115941115942115943115944115945115946115947115948115949115950115951115952115953115954115955115956115957115958115959115960115961115962115963115964115965115966115967115968115969115970115971115972115973115974115975115976115977115978115979115980115981115982115983115984115985115986115987115988115989115990115991115992115993115994115995115996115997115998115999116000116001116002116003116004116005116006116007116008116009116010116011116012116013116014116015116016116017116018116019116020116021116022116023116024116025116026116027116028116029116030116031116032116033116034116035116036116037116038116039116040116041116042116043116044116045116046116047116048116049116050116051116052116053116054116055116056116057116058116059116060116061116062116063116064116065116066116067116068116069116070116071116072116073116074116075116076116077116078116079116080116081116082116083116084116085116086116087116088116089116090116091116092116093116094116095116096116097116098116099116100116101116102116103116104116105116106116107116108116109116110116111116112116113116114116115116116116117116118116119116120116121116122116123116124116125116126116127116128116129116130116131116132116133116134116135116136116137116138116139116140116141116142116143116144116145116146116147116148116149116150116151116152116153116154116155116156116157116158116159116160116161116162116163116164116165116166116167116168116169116170116171116172116173116174116175116176116177116178116179116180116181116182116183116184116185116186116187116188116189116190116191116192116193116194116195116196116197116198116199116200116201116202116203116204116205116206116207116208116209116210116211116212116213116214116215116216116217116218116219116220116221116222116223116224116225116226116227116228116229116230116231116232116233116234116235116236116237116238116239116240116241116242116243116244116245116246116247116248116249116250116251116252116253116254116255116256116257116258116259116260116261116262116263116264116265116266116267116268116269116270116271116272116273116274116275116276116277116278116279116280116281116282116283116284116285116286116287116288116289116290116291116292116293116294116295116296116297116298116299116300116301116302116303116304116305116306116307116308116309116310116311116312116313116314116315116316116317116318116319116320116321116322116323116324116325116326116327116328116329116330116331116332116333116334116335116336116337116338116339116340116341116342116343116344116345116346116347116348116349116350116351116352116353116354116355116356116357116358116359116360116361116362116363116364116365116366116367116368116369116370116371116372116373116374116375116376116377116378116379116380116381116382116383116384116385116386116387116388116389116390116391116392116393116394116395116396116397116398116399116400116401116402116403116404116405116406116407116408116409116410116411116412116413116414116415116416116417116418116419116420116421116422116423116424116425116426116427116428116429116430116431116432116433116434116435116436116437116438116439116440116441116442116443116444116445116446116447116448116449116450116451116452116453116454116455116456116457116458116459116460116461116462116463116464116465116466116467116468116469116470116471116472116473116474116475116476116477116478116479116480116481116482116483116484116485116486116487116488116489116490116491116492116493116494116495116496116497116498116499116500116501116502116503116504116505116506116507116508116509116510116511116512116513116514116515116516116517116518116519116520116521116522116523116524116525116526116527116528116529116530116531116532116533116534116535116536116537116538116539116540116541116542116543116544116545116546116547116548116549116550116551116552116553116554116555116556116557116558116559116560116561116562116563116564116565116566116567116568116569116570116571116572116573116574116575116576116577116578116579116580116581116582116583116584116585116586116587116588116589116590116591116592116593116594116595116596116597116598116599116600116601116602116603116604116605116606116607116608116609116610116611116612116613116614116615116616116617116618116619116620116621116622116623116624116625116626116627116628116629116630116631116632116633116634116635116636116637116638116639116640116641116642116643116644116645116646116647116648116649116650116651116652116653116654116655116656116657116658116659116660116661116662116663116664116665116666116667116668116669116670116671116672116673116674116675116676116677116678116679116680116681116682116683116684116685116686116687116688116689116690116691116692116693116694116695116696116697116698116699116700116701116702116703116704116705116706116707116708116709116710116711116712116713116714116715116716116717116718116719116720116721116722116723116724116725116726116727116728116729116730116731116732116733116734116735116736116737116738116739116740116741116742116743116744116745116746116747116748116749116750116751116752116753116754116755116756116757116758116759116760116761116762116763116764116765116766116767116768116769116770116771116772116773116774116775116776116777116778116779116780116781116782116783116784116785116786116787116788116789116790116791116792116793116794116795116796116797116798116799116800116801116802116803116804116805116806116807116808116809116810116811116812116813116814116815116816116817116818116819116820116821116822116823116824116825116826116827116828116829116830116831116832116833116834116835116836116837116838116839116840116841116842116843116844116845116846116847116848116849116850116851116852116853116854116855116856116857116858116859116860116861116862116863116864116865116866116867116868116869116870116871116872116873116874116875116876116877116878116879116880116881116882116883116884116885116886116887116888116889116890116891116892116893116894116895116896116897116898116899116900116901116902116903116904116905116906116907116908116909116910116911116912116913116914116915116916116917116918116919116920116921116922116923116924116925116926116927116928116929116930116931116932116933116934116935116936116937116938116939116940116941116942116943116944116945116946116947116948116949116950116951116952116953116954116955116956116957116958116959116960116961116962116963116964116965116966116967116968116969116970116971116972116973116974116975116976116977116978116979116980116981116982116983116984116985116986116987116988116989116990116991116992116993116994116995116996116997116998116999117000117001117002117003117004117005117006117007117008117009117010117011117012117013117014117015117016117017117018117019117020117021117022117023117024117025117026117027117028117029117030117031117032117033117034117035117036117037117038117039117040117041117042117043117044117045117046117047117048117049117050117051117052117053117054117055117056117057117058117059117060117061117062117063117064117065117066117067117068117069117070117071117072117073117074117075117076117077117078117079117080117081117082117083117084117085117086117087117088117089117090117091117092117093117094117095117096117097117098117099117100117101117102117103117104117105117106117107117108117109117110117111117112117113117114117115117116117117117118117119117120117121117122117123117124117125117126117127117128117129117130117131117132117133117134117135117136117137117138117139117140117141117142117143117144117145117146117147117148117149117150117151117152117153117154117155117156117157117158117159117160117161117162117163117164117165117166117167117168117169117170117171117172117173117174117175117176117177117178117179117180117181117182117183117184117185117186117187117188117189117190117191117192117193117194117195117196117197117198117199117200117201117202117203117204117205117206117207117208117209117210117211117212117213117214117215117216117217117218117219117220117221117222117223117224117225117226117227117228117229117230117231117232117233117234117235117236117237117238117239117240117241117242117243117244117245117246117247117248117249117250117251117252117253117254117255117256117257117258117259117260117261117262117263117264117265117266117267117268117269117270117271117272117273117274117275117276117277117278117279117280117281117282117283117284117285117286117287117288117289117290117291117292117293117294117295117296117297117298117299117300117301117302117303117304117305117306117307117308117309117310117311117312117313117314117315117316117317117318117319117320117321117322117323117324117325117326117327117328117329117330117331117332117333117334117335117336117337117338117339117340117341117342117343117344117345117346117347117348117349117350117351117352117353117354117355117356117357117358117359117360117361117362117363117364117365117366117367117368117369117370117371117372117373117374117375117376117377117378117379117380117381117382117383117384117385117386117387117388117389117390117391117392117393117394117395117396117397117398117399117400117401117402117403117404117405117406117407117408117409117410117411117412117413117414117415117416117417117418117419117420117421117422117423117424117425117426117427117428117429117430117431117432117433117434117435117436117437117438117439117440117441117442117443117444117445117446117447117448117449117450117451117452117453117454117455117456117457117458117459117460117461117462117463117464117465117466117467117468117469117470117471117472117473117474117475117476117477117478117479117480117481117482117483117484117485117486117487117488117489117490117491117492117493117494117495117496117497117498117499117500117501117502117503117504117505117506117507117508117509117510117511117512117513117514117515117516117517117518117519117520117521117522117523117524117525117526117527117528117529117530117531117532117533117534117535117536117537117538117539117540117541117542117543117544117545117546117547117548117549117550117551117552117553117554117555117556117557117558117559117560117561117562117563117564117565117566117567117568117569117570117571117572117573117574117575117576117577117578117579117580117581117582117583117584117585117586117587117588117589117590117591117592117593117594117595117596117597117598117599117600117601117602117603117604117605117606117607117608117609117610117611117612117613117614117615117616117617117618117619117620117621117622117623117624117625117626117627117628117629117630117631117632117633117634117635117636117637117638117639117640117641117642117643117644117645117646117647117648117649117650117651117652117653117654117655117656117657117658117659117660117661117662117663117664117665117666117667117668117669117670117671117672117673117674117675117676117677117678117679117680117681117682117683117684117685117686117687117688117689117690117691117692117693117694117695117696117697117698117699117700117701117702117703117704117705117706117707117708117709117710117711117712117713117714117715117716117717117718117719117720117721117722117723117724117725117726117727117728117729117730117731117732117733117734117735117736117737117738117739117740117741117742117743117744117745117746117747117748117749117750117751117752117753117754117755117756117757117758117759117760117761117762117763117764117765117766117767117768117769117770117771117772117773117774117775117776117777117778117779117780117781117782117783117784117785117786117787117788117789117790117791117792117793117794117795117796117797117798117799117800117801117802117803117804117805117806117807117808117809117810117811117812117813117814117815117816117817117818117819117820117821117822117823117824117825117826117827117828117829117830117831117832117833117834117835117836117837117838117839117840117841117842117843117844117845117846117847117848117849117850117851117852117853117854117855117856117857117858117859117860117861117862117863117864117865117866117867117868117869117870117871117872117873117874117875117876117877117878117879117880117881117882117883117884117885117886117887117888117889117890117891117892117893117894117895117896117897117898117899117900117901117902117903117904117905117906117907117908117909117910117911117912117913117914117915117916117917117918117919117920117921117922117923117924117925117926117927117928117929117930117931117932117933117934117935117936117937117938117939117940117941117942117943117944117945117946117947117948117949117950117951117952117953117954117955117956117957117958117959117960117961117962117963117964117965117966117967117968117969117970117971117972117973117974117975117976117977117978117979117980117981117982117983117984117985117986117987117988117989117990117991117992117993117994117995117996117997117998117999118000118001118002118003118004118005118006118007118008118009118010118011118012118013118014118015118016118017118018118019118020118021118022118023118024118025118026118027118028118029118030118031118032118033118034118035118036118037118038118039118040118041118042118043118044118045118046118047118048118049118050118051118052118053118054118055118056118057118058118059118060118061118062118063118064118065118066118067118068118069118070118071118072118073118074118075118076118077118078118079118080118081118082118083118084118085118086118087118088118089118090118091118092118093118094118095118096118097118098118099118100118101118102118103118104118105118106118107118108118109118110118111118112118113118114118115118116118117118118118119118120118121118122118123118124118125118126118127118128118129118130118131118132118133118134118135118136118137118138118139118140118141118142118143118144118145118146118147118148118149118150118151118152118153118154118155118156118157118158118159118160118161118162118163118164118165118166118167118168118169118170118171118172118173118174118175118176118177118178118179118180118181118182118183118184118185118186118187118188118189118190118191118192118193118194118195118196118197118198118199118200118201118202118203118204118205118206118207118208118209118210118211118212118213118214118215118216118217118218118219118220118221118222118223118224118225118226118227118228118229118230118231118232118233118234118235118236118237118238118239118240118241118242118243118244118245118246118247118248118249118250118251118252118253118254118255118256118257118258118259118260118261118262118263118264118265118266118267118268118269118270118271118272118273118274118275118276118277118278118279118280118281118282118283118284118285118286118287118288118289118290118291118292118293118294118295118296118297118298118299118300118301118302118303118304118305118306118307118308118309118310118311118312118313118314118315118316118317118318118319118320118321118322118323118324118325118326118327118328118329118330118331118332118333118334118335118336118337118338118339118340118341118342118343118344118345118346118347118348118349118350118351118352118353118354118355118356118357118358118359118360118361118362118363118364118365118366118367118368118369118370118371118372118373118374118375118376118377118378118379118380118381118382118383118384118385118386118387118388118389118390118391118392118393118394118395118396118397118398118399118400118401118402118403118404118405118406118407118408118409118410118411118412118413118414118415118416118417118418118419118420118421118422118423118424118425118426118427118428118429118430118431118432118433118434118435118436118437118438118439118440118441118442118443118444118445118446118447118448118449118450118451118452118453118454118455118456118457118458118459118460118461118462118463118464118465118466118467118468118469118470118471118472118473118474118475118476118477118478118479118480118481118482118483118484118485118486118487118488118489118490118491118492118493118494118495118496118497118498118499118500118501118502118503118504118505118506118507118508118509118510118511118512118513118514118515118516118517118518118519118520118521118522118523118524118525118526118527118528118529118530118531118532118533118534118535118536118537118538118539118540118541118542118543118544118545118546118547118548118549118550118551118552118553118554118555118556118557118558118559118560118561118562118563118564118565118566118567118568118569118570118571118572118573118574118575118576118577118578118579118580118581118582118583118584118585118586118587118588118589118590118591118592118593118594118595118596118597118598118599118600118601118602118603118604118605118606118607118608118609118610118611118612118613118614118615118616118617118618118619118620118621118622118623118624118625118626118627118628118629118630118631118632118633118634118635118636118637118638118639118640118641118642118643118644118645118646118647118648118649118650118651118652118653118654118655118656118657118658118659118660118661118662118663118664118665118666118667118668118669118670118671118672118673118674118675118676118677118678118679118680118681118682118683118684118685118686118687118688118689118690118691118692118693118694118695118696118697118698118699118700118701118702118703118704118705118706118707118708118709118710118711118712118713118714118715118716118717118718118719118720118721118722118723118724118725118726118727118728118729118730118731118732118733118734118735118736118737118738118739118740118741118742118743118744118745118746118747118748118749118750118751118752118753118754118755118756118757118758118759118760118761118762118763118764118765118766118767118768118769118770118771118772118773118774118775118776118777118778118779118780118781118782118783118784118785118786118787118788118789118790118791118792118793118794118795118796118797118798118799118800118801118802118803118804118805118806118807118808118809118810118811118812118813118814118815118816118817118818118819118820118821118822118823118824118825118826118827118828118829118830118831118832118833118834118835118836118837118838118839118840118841118842118843118844118845118846118847118848118849118850118851118852118853118854118855118856118857118858118859118860118861118862118863118864118865118866118867118868118869118870118871118872118873118874118875118876118877118878118879118880118881118882118883118884118885118886118887118888118889118890118891118892118893118894118895118896118897118898118899118900118901118902118903118904118905118906118907118908118909118910118911118912118913118914118915118916118917118918118919118920118921118922118923118924118925118926118927118928118929118930118931118932118933118934118935118936118937118938118939118940118941118942118943118944118945118946118947118948118949118950118951118952118953118954118955118956118957118958118959118960118961118962118963118964118965118966118967118968118969118970118971118972118973118974118975118976118977118978118979118980118981118982118983118984118985118986118987118988118989118990118991118992118993118994118995118996118997118998118999119000119001119002119003119004119005119006119007119008119009119010119011119012119013119014119015119016119017119018119019119020119021119022119023119024119025119026119027119028119029119030119031119032119033119034119035119036119037119038119039119040119041119042119043119044119045119046119047119048119049119050119051119052119053119054119055119056119057119058119059119060119061119062119063119064119065119066119067119068119069119070119071119072119073119074119075119076119077119078119079119080119081119082119083119084119085119086119087119088119089119090119091119092119093119094119095119096119097119098119099119100119101119102119103119104119105119106119107119108119109119110119111119112119113119114119115119116119117119118119119119120119121119122119123119124119125119126119127119128119129119130119131119132119133119134119135119136119137119138119139119140119141119142119143119144119145119146119147119148119149119150119151119152119153119154119155119156119157119158119159119160119161119162119163119164119165119166119167119168119169119170119171119172119173119174119175119176119177119178119179119180119181119182119183119184119185119186119187119188119189119190119191119192119193119194119195119196119197119198119199119200119201119202119203119204119205119206119207119208119209119210119211119212119213119214119215119216119217119218119219119220119221119222119223119224119225119226119227119228119229119230119231119232119233119234119235119236119237119238119239119240119241119242119243119244119245119246119247119248119249119250119251119252119253119254119255119256119257119258119259119260119261119262119263119264119265119266119267119268119269119270119271119272119273119274119275119276119277119278119279119280119281119282119283119284119285119286119287119288119289119290119291119292119293119294119295119296119297119298119299119300119301119302119303119304119305119306119307119308119309119310119311119312119313119314119315119316119317119318119319119320119321119322119323119324119325119326119327119328119329119330119331119332119333119334119335119336119337119338119339119340119341119342119343119344119345119346119347119348119349119350119351119352119353119354119355119356119357119358119359119360119361119362119363119364119365119366119367119368119369119370119371119372119373119374119375119376119377119378119379119380119381119382119383119384119385119386119387119388119389119390119391119392119393119394119395119396119397119398119399119400119401119402119403119404119405119406119407119408119409119410119411119412119413119414119415119416119417119418119419119420119421119422119423119424119425119426119427119428119429119430119431119432119433119434119435119436119437119438119439119440119441119442119443119444119445119446119447119448119449119450119451119452119453119454119455119456119457119458119459119460119461119462119463119464119465119466119467119468119469119470119471119472119473119474119475119476119477119478119479119480119481119482119483119484119485119486119487119488119489119490119491119492119493119494119495119496119497119498119499119500119501119502119503119504119505119506119507119508119509119510119511119512119513119514119515119516119517119518119519119520119521119522119523119524119525119526119527119528119529119530119531119532119533119534119535119536119537119538119539119540119541119542119543119544119545119546119547119548119549119550119551119552119553119554119555119556119557119558119559119560119561119562119563119564119565119566119567119568119569119570119571119572119573119574119575119576119577119578119579119580119581119582119583119584119585119586119587119588119589119590119591119592119593119594119595119596119597119598119599119600119601119602119603119604119605119606119607119608119609119610119611119612119613119614119615119616119617119618119619119620119621119622119623119624119625119626119627119628119629119630119631119632119633119634119635119636119637119638119639119640119641119642119643119644119645119646119647119648119649119650119651119652119653119654119655119656119657119658119659119660119661119662119663119664119665119666119667119668119669119670119671119672119673119674119675119676119677119678119679119680119681119682119683119684119685119686119687119688119689119690119691119692119693119694119695119696119697119698119699119700119701119702119703119704119705119706119707119708119709119710119711119712119713119714119715119716119717119718119719119720119721119722119723119724119725119726119727119728119729119730119731119732119733119734119735119736119737119738119739119740119741119742119743119744119745119746119747119748119749119750119751119752119753119754119755119756119757119758119759119760119761119762119763119764119765119766119767119768119769119770119771119772119773119774119775119776119777119778119779119780119781119782119783119784119785119786119787119788119789119790119791119792119793119794119795119796119797119798119799119800119801119802119803119804119805119806119807119808119809119810119811119812119813119814119815119816119817119818119819119820119821119822119823119824119825119826119827119828119829119830119831119832119833119834119835119836119837119838119839119840119841119842119843119844119845119846119847119848119849119850119851119852119853119854119855119856119857119858119859119860119861119862119863119864119865119866119867119868119869119870119871119872119873119874119875119876119877119878119879119880119881119882119883119884119885119886119887119888119889119890119891119892119893119894119895119896119897119898119899119900119901119902119903119904119905119906119907119908119909119910119911119912119913119914119915119916119917119918119919119920119921119922119923119924119925119926119927119928119929119930119931119932119933119934119935119936119937119938119939119940119941119942119943119944119945119946119947119948119949119950119951119952119953119954119955119956119957119958119959119960119961119962119963119964119965119966119967119968119969119970119971119972119973119974119975119976119977119978119979119980119981119982119983119984119985119986119987119988119989119990119991119992119993119994119995119996119997119998119999120000120001120002120003120004120005120006120007120008120009120010120011120012120013120014120015120016120017120018120019120020120021120022120023120024120025120026120027120028120029120030120031120032120033120034120035120036120037120038120039120040120041120042120043120044120045120046120047120048120049120050120051120052120053120054120055120056120057120058120059120060120061120062120063120064120065120066120067120068120069120070120071120072120073120074120075120076120077120078120079120080120081120082120083120084120085120086120087120088120089120090120091120092120093120094120095120096120097120098120099120100120101120102120103120104120105120106120107120108120109120110120111120112120113120114120115120116120117120118120119120120120121120122120123120124120125120126120127120128120129120130120131120132120133120134120135120136120137120138120139120140120141120142120143120144120145120146120147120148120149120150120151120152120153120154120155120156120157120158120159120160120161120162120163120164120165120166120167120168120169120170120171120172120173120174120175120176120177120178120179120180120181120182120183120184120185120186120187120188120189120190120191120192120193120194120195120196120197120198120199120200120201120202120203120204120205120206120207120208120209120210120211120212120213120214120215120216120217120218120219120220120221120222120223120224120225120226120227120228120229120230120231120232120233120234120235120236120237120238120239120240120241120242120243120244120245120246120247120248120249120250120251120252120253120254120255120256120257120258120259120260120261120262120263120264120265120266120267120268120269120270120271120272120273120274120275120276120277120278120279120280120281120282120283120284120285120286120287120288120289120290120291120292120293120294120295120296120297120298120299120300120301120302120303120304120305120306120307120308120309120310120311120312120313120314120315120316120317120318120319120320120321120322120323120324120325120326120327120328120329120330120331120332120333120334120335120336120337120338120339120340120341120342120343120344120345120346120347120348120349120350120351120352120353120354120355120356120357120358120359120360120361120362120363120364120365120366120367120368120369120370120371120372120373120374120375120376120377120378120379120380120381120382120383120384120385120386120387120388120389120390120391120392120393120394120395120396120397120398120399120400120401120402120403120404120405120406120407120408120409120410120411120412120413120414120415120416120417120418120419120420120421120422120423120424120425120426120427120428120429120430120431120432120433120434120435120436120437120438120439120440120441120442120443120444120445120446120447120448120449120450120451120452120453120454120455120456120457120458120459120460120461120462120463120464120465120466120467120468120469120470120471120472120473120474120475120476120477120478120479120480120481120482120483120484120485120486120487120488120489120490120491120492120493120494120495120496120497120498120499120500120501120502120503120504120505120506120507120508120509120510120511120512120513120514120515120516120517120518120519120520120521120522120523120524120525120526120527120528120529120530120531120532120533120534120535120536120537120538120539120540120541120542120543120544120545120546120547120548120549120550120551120552120553120554120555120556120557120558120559120560120561120562120563120564120565120566120567120568120569120570120571120572120573120574120575120576120577120578120579120580120581120582120583120584120585120586120587120588120589120590120591120592120593120594120595120596120597120598120599120600120601120602120603120604120605120606120607120608120609120610120611120612120613120614120615120616120617120618120619120620120621120622120623120624120625120626120627120628120629120630120631120632120633120634120635120636120637120638120639120640120641120642120643120644120645120646120647120648120649120650120651120652120653120654120655120656120657120658120659120660120661120662120663120664120665120666120667120668120669120670120671120672120673120674120675120676120677120678120679120680120681120682120683120684120685120686120687120688120689120690120691120692120693120694120695120696120697120698120699120700120701120702120703120704120705120706120707120708120709120710120711120712120713120714120715120716120717120718120719120720120721120722120723120724120725120726120727120728120729120730120731120732120733120734120735120736120737120738120739120740120741120742120743120744120745120746120747120748120749120750120751120752120753120754120755120756120757120758120759120760120761120762120763120764120765120766120767120768120769120770120771120772120773120774120775120776120777120778120779120780120781120782120783120784120785120786120787120788120789120790120791120792120793120794120795120796120797120798120799120800120801120802120803120804120805120806120807120808120809120810120811120812120813120814120815120816120817120818120819120820120821120822120823120824120825120826120827120828120829120830120831120832120833120834120835120836120837120838120839120840120841120842120843120844120845120846120847120848120849120850120851120852120853120854120855120856120857120858120859120860120861120862120863120864120865120866120867120868120869120870120871120872120873120874120875120876120877120878120879120880120881120882120883120884120885120886120887120888120889120890120891120892120893120894120895120896120897120898120899120900120901120902120903120904120905120906120907120908120909120910120911120912120913120914120915120916120917120918120919120920120921120922120923120924120925120926120927120928120929120930120931120932120933120934120935120936120937120938120939120940120941120942120943120944120945120946120947120948120949120950120951120952120953120954120955120956120957120958120959120960120961120962120963120964120965120966120967120968120969120970120971120972120973120974120975120976120977120978120979120980120981120982120983120984120985120986120987120988120989120990120991120992120993120994120995120996120997120998120999121000121001121002121003121004121005121006121007121008121009121010121011121012121013121014121015121016121017121018121019121020121021121022121023121024121025121026121027121028121029121030121031121032121033121034121035121036121037121038121039121040121041121042121043121044121045121046121047121048121049121050121051121052121053121054121055121056121057121058121059121060121061121062121063121064121065121066121067121068121069121070121071121072121073121074121075121076121077121078121079121080121081121082121083121084121085121086121087121088121089121090121091121092121093121094121095121096121097121098121099121100121101121102121103121104121105121106121107121108121109121110121111121112121113121114121115121116121117121118121119121120121121121122121123121124121125121126121127121128121129121130121131121132121133121134121135121136121137121138121139121140121141121142121143121144121145121146121147121148121149121150121151121152121153121154121155121156121157121158121159121160121161121162121163121164121165121166121167121168121169121170121171121172121173121174121175121176121177121178121179121180121181121182121183121184121185121186121187121188121189121190121191121192121193121194121195121196121197121198121199121200121201121202121203121204121205121206121207121208121209121210121211121212121213121214121215121216121217121218121219121220121221121222121223121224121225121226121227121228121229121230121231121232121233121234121235121236121237121238121239121240121241121242121243121244121245121246121247121248121249121250121251121252121253121254121255121256121257121258121259121260121261121262121263121264121265121266121267121268121269121270121271121272121273121274121275121276121277121278121279121280121281121282121283121284121285121286121287121288121289121290121291121292121293121294121295121296121297121298121299121300121301121302121303121304121305121306121307121308121309121310121311121312121313121314121315121316121317121318121319121320121321121322121323121324121325121326121327121328121329121330121331121332121333121334121335121336121337121338121339121340121341121342121343121344121345121346121347121348121349121350121351121352121353121354121355121356121357121358121359121360121361121362121363121364121365121366121367121368121369121370121371121372121373121374121375121376121377121378121379121380121381121382121383121384121385121386121387121388121389121390121391121392121393121394121395121396121397121398121399121400121401121402121403121404121405121406121407121408121409121410121411121412121413121414121415121416121417121418121419121420121421121422121423121424121425121426121427121428121429121430121431121432121433121434121435121436121437121438121439121440121441121442121443121444121445121446121447121448121449121450121451121452121453121454121455121456121457121458121459121460121461121462121463121464121465121466121467121468121469121470121471121472121473121474121475121476121477121478121479121480121481121482121483121484121485121486121487121488121489121490121491121492121493121494121495121496121497121498121499121500121501121502121503121504121505121506121507121508121509121510121511121512121513121514121515121516121517121518121519121520121521121522121523121524121525121526121527121528121529121530121531121532121533121534121535121536121537121538121539121540121541121542121543121544121545121546121547121548121549121550121551121552121553121554121555121556121557121558121559121560121561121562121563121564121565121566121567121568121569121570121571121572121573121574121575121576121577121578121579121580121581121582121583121584121585121586121587121588121589121590121591121592121593121594121595121596121597121598121599121600121601121602121603121604121605121606121607121608121609121610121611121612121613121614121615121616121617121618121619121620121621121622121623121624121625121626121627121628121629121630121631121632121633121634121635121636121637121638121639121640121641121642121643121644121645121646121647121648121649121650121651121652121653121654121655121656121657121658121659121660121661121662121663121664121665121666121667121668121669121670121671121672121673121674121675121676121677121678121679121680121681121682121683121684121685121686121687121688121689121690121691121692121693121694121695121696121697121698121699121700121701121702121703121704121705121706121707121708121709121710121711121712121713121714121715121716121717121718121719121720121721121722121723121724121725121726121727121728121729121730121731121732121733121734121735121736121737121738121739121740121741121742121743121744121745121746121747121748121749121750121751121752121753121754121755121756121757121758121759121760121761121762121763121764121765121766121767121768121769121770121771121772121773121774121775121776121777121778121779121780121781121782121783121784121785121786121787121788121789121790121791121792121793121794121795121796121797121798121799121800121801121802121803121804121805121806121807121808121809121810121811121812121813121814121815121816121817121818121819121820121821121822121823121824121825121826121827121828121829121830121831121832121833121834121835121836121837121838121839121840121841121842121843121844121845121846121847121848121849121850121851121852121853121854121855121856121857121858121859121860121861121862121863121864121865121866121867121868121869121870121871121872121873121874121875121876121877121878121879121880121881121882121883121884121885121886121887121888121889121890121891121892121893121894121895121896121897121898121899121900121901121902121903121904121905121906121907121908121909121910121911121912121913121914121915121916121917121918121919121920121921121922121923121924121925121926121927121928121929121930121931121932121933121934121935121936121937121938121939121940121941121942121943121944121945121946121947121948121949121950121951121952121953121954121955121956121957121958121959121960121961121962121963121964121965121966121967121968121969121970121971121972121973121974121975121976121977121978121979121980121981121982121983121984121985121986121987121988121989121990121991121992121993121994121995121996121997121998121999122000122001122002122003122004122005122006122007122008122009122010122011122012122013122014122015122016122017122018122019122020122021122022122023122024122025122026122027122028122029122030122031122032122033122034122035122036122037122038122039122040122041122042122043122044122045122046122047122048122049122050122051122052122053122054122055122056122057122058122059122060122061122062122063122064122065122066122067122068122069122070122071122072122073122074122075122076122077122078122079122080122081122082122083122084122085122086122087122088122089122090122091122092122093122094122095122096122097122098122099122100122101122102122103122104122105122106122107122108122109122110122111122112122113122114122115122116122117122118122119122120122121122122122123122124122125122126122127122128122129122130122131122132122133122134122135122136122137122138122139122140122141122142122143122144122145122146122147122148122149122150122151122152122153122154122155122156122157122158122159122160122161122162122163122164122165122166122167122168122169122170122171122172122173122174122175122176122177122178122179122180122181122182122183122184122185122186122187122188122189122190122191122192122193122194122195122196122197122198122199122200122201122202122203122204122205122206122207122208122209122210122211122212122213122214122215122216122217122218122219122220122221122222122223122224122225122226122227122228122229122230122231122232122233122234122235122236122237122238122239122240122241122242122243122244122245122246122247122248122249122250122251122252122253122254122255122256122257122258122259122260122261122262122263122264122265122266122267122268122269122270122271122272122273122274122275122276122277122278122279122280122281122282122283122284122285122286122287122288122289122290122291122292122293122294122295122296122297122298122299122300122301122302122303122304122305122306122307122308122309122310122311122312122313122314122315122316122317122318122319122320122321122322122323122324122325122326122327122328122329122330122331122332122333122334122335122336122337122338122339122340122341122342122343122344122345122346122347122348122349122350122351122352122353122354122355122356122357122358122359122360122361122362122363122364122365122366122367122368122369122370122371122372122373122374122375122376122377122378122379122380122381122382122383122384122385122386122387122388122389122390122391122392122393122394122395122396122397122398122399122400122401122402122403122404122405122406122407122408122409122410122411122412122413122414122415122416122417122418122419122420122421122422122423122424122425122426122427122428122429122430122431122432122433122434122435122436122437122438122439122440122441122442122443122444122445122446122447122448122449122450122451122452122453122454122455122456122457122458122459122460122461122462122463122464122465122466122467122468122469122470122471122472122473122474122475122476122477122478122479122480122481122482122483122484122485122486122487122488122489122490122491122492122493122494122495122496122497122498122499122500122501122502122503122504122505122506122507122508122509122510122511122512122513122514122515122516122517122518122519122520122521122522122523122524122525122526122527122528122529122530122531122532122533122534122535122536122537122538122539122540122541122542122543122544122545122546122547122548122549122550122551122552122553122554122555122556122557122558122559122560122561122562122563122564122565122566122567122568122569122570122571122572122573122574122575122576122577122578122579122580122581122582122583122584122585122586122587122588122589122590122591122592122593122594122595122596122597122598122599122600122601122602122603122604122605122606122607122608122609122610122611122612122613122614122615122616122617122618122619122620122621122622122623122624122625122626122627122628122629122630122631122632122633122634122635122636122637122638122639122640122641122642122643122644122645122646122647122648122649122650122651122652122653122654122655122656122657122658122659122660122661122662122663122664122665122666122667122668122669122670122671122672122673122674122675122676122677122678122679122680122681122682122683122684122685122686122687122688122689122690122691122692122693122694122695122696122697122698122699122700122701122702122703122704122705122706122707122708122709122710122711122712122713122714122715122716122717122718122719122720122721122722122723122724122725122726122727122728122729122730122731122732122733122734122735122736122737122738122739122740122741122742122743122744122745122746122747122748122749122750122751122752122753122754122755122756122757122758122759122760122761122762122763122764122765122766122767122768122769122770122771122772122773122774122775122776122777122778122779122780122781122782122783122784122785122786122787122788122789122790122791122792122793122794122795122796122797122798122799122800122801122802122803122804122805122806122807122808122809122810122811122812122813122814122815122816122817122818122819122820122821122822122823122824122825122826122827122828122829122830122831122832122833122834122835122836122837122838122839122840122841122842122843122844122845122846122847122848122849122850122851122852122853122854122855122856122857122858122859122860122861122862122863122864122865122866122867122868122869122870122871122872122873122874122875122876122877122878122879122880122881122882122883122884122885122886122887122888122889122890122891122892122893122894122895122896122897122898122899122900122901122902122903122904122905122906122907122908122909122910122911122912122913122914122915122916122917122918122919122920122921122922122923122924122925122926122927122928122929122930122931122932122933122934122935122936122937122938122939122940122941122942122943122944122945122946122947122948122949122950122951122952122953122954122955122956122957122958122959122960122961122962122963122964122965122966122967122968122969122970122971122972122973122974122975122976122977122978122979122980122981122982122983122984122985122986122987122988122989122990122991122992122993122994122995122996122997122998122999123000123001123002123003123004123005123006123007123008123009123010123011123012123013123014123015123016123017123018123019123020123021123022123023123024123025123026123027123028123029123030123031123032123033123034123035123036123037123038123039123040123041123042123043123044123045123046123047123048123049123050123051123052123053123054123055123056123057123058123059123060123061123062123063123064123065123066123067123068123069123070123071123072123073123074123075123076123077123078123079123080123081123082123083123084123085123086123087123088123089123090123091123092123093123094123095123096123097123098123099123100123101123102123103123104123105123106123107123108123109123110123111123112123113123114123115123116123117123118123119123120123121123122123123123124123125123126123127123128123129123130123131123132123133123134123135123136123137123138123139123140123141123142123143123144123145123146123147123148123149123150123151123152123153123154123155123156123157123158123159123160123161123162123163123164123165123166123167123168123169123170123171123172123173123174123175123176123177123178123179123180123181123182123183123184123185123186123187123188123189123190123191123192123193123194123195123196123197123198123199123200123201123202123203123204123205123206123207123208123209123210123211123212123213123214123215123216123217123218123219123220123221123222123223123224123225123226123227123228123229123230123231123232123233123234123235123236123237123238123239123240123241123242123243123244123245123246123247123248123249123250123251123252123253123254123255123256123257123258123259123260123261123262123263123264123265123266123267123268123269123270123271123272123273123274123275123276123277123278123279123280123281123282123283123284123285123286123287123288123289123290123291123292123293123294123295123296123297123298123299123300123301123302123303123304123305123306123307123308123309123310123311123312123313123314123315123316123317123318123319123320123321123322123323123324123325123326123327123328123329123330123331123332123333123334123335123336123337123338123339123340123341123342123343123344123345123346123347123348123349123350123351123352123353123354123355123356123357123358123359123360123361123362123363123364123365123366123367123368123369123370123371123372123373123374123375123376123377123378123379123380123381123382123383123384123385123386123387123388123389123390123391123392123393123394123395123396123397123398123399123400123401123402123403123404123405123406123407123408123409123410123411123412123413123414123415123416123417123418123419123420123421123422123423123424123425123426123427123428123429123430123431123432123433123434123435123436123437123438123439123440123441123442123443123444123445123446123447123448123449123450123451123452123453123454123455123456123457123458123459123460123461123462123463123464123465123466123467123468123469123470123471123472123473123474123475123476123477123478123479123480123481123482123483123484123485123486123487123488123489123490123491123492123493123494123495123496123497123498123499123500123501123502123503123504123505123506123507123508123509123510123511123512123513123514123515123516123517123518123519123520123521123522123523123524123525123526123527123528123529123530123531123532123533123534123535123536123537123538123539123540123541123542123543123544123545123546123547123548123549123550123551123552123553123554123555123556123557123558123559123560123561123562123563123564123565123566123567123568123569123570123571123572123573123574123575123576123577123578123579123580123581123582123583123584123585123586123587123588123589123590123591123592123593123594123595123596123597123598123599123600123601123602123603123604123605123606123607123608123609123610123611123612123613123614123615123616123617123618123619123620123621123622123623123624123625123626123627123628123629123630123631123632123633123634123635123636123637123638123639123640123641123642123643123644123645123646123647123648123649123650123651123652123653123654123655123656123657123658123659123660123661123662123663123664123665123666123667123668123669123670123671123672123673123674123675123676123677123678123679123680123681123682123683123684123685123686123687123688123689123690123691123692123693123694123695123696123697123698123699123700123701123702123703123704123705123706123707123708123709123710123711123712123713123714123715123716123717123718123719123720123721123722123723123724123725123726123727123728123729123730123731123732123733123734123735123736123737123738123739123740123741123742123743123744123745123746123747123748123749123750123751123752123753123754123755123756123757123758123759123760123761123762123763123764123765123766123767123768123769123770123771123772123773123774123775123776123777123778123779123780123781123782123783123784123785123786123787123788123789123790123791123792123793123794123795123796123797123798123799123800123801123802123803123804123805123806123807123808123809123810123811123812123813123814123815123816123817123818123819123820123821123822123823123824123825123826123827123828123829123830123831123832123833123834123835123836123837123838123839123840123841123842123843123844123845123846123847123848123849123850123851123852123853123854123855123856123857123858123859123860123861123862123863123864123865123866123867123868123869123870123871123872123873123874123875123876123877123878123879123880123881123882123883123884123885123886123887123888123889123890123891123892123893123894123895123896123897123898123899123900123901123902123903123904123905123906123907123908123909123910123911123912123913123914123915123916123917123918123919123920123921123922123923123924123925123926123927123928123929123930123931123932123933123934123935123936123937123938123939123940123941123942123943123944123945123946123947123948123949123950123951123952123953123954123955123956123957123958123959123960123961123962123963123964123965123966123967123968123969123970123971123972123973123974123975123976123977123978123979123980123981123982123983123984123985123986123987123988123989123990123991123992123993123994123995123996123997123998123999124000124001124002124003124004124005124006124007124008124009124010124011124012124013124014124015124016124017124018124019124020124021124022124023124024124025124026124027124028124029124030124031124032124033124034124035124036124037124038124039124040124041124042124043124044124045124046124047124048124049124050124051124052124053124054124055124056124057124058124059124060124061124062124063124064124065124066124067124068124069124070124071124072124073124074124075124076124077124078124079124080124081124082124083124084124085124086124087124088124089124090124091124092124093124094124095124096124097124098124099124100124101124102124103124104124105124106124107124108124109124110124111124112124113124114124115124116124117124118124119124120124121124122124123124124124125124126124127124128124129124130124131124132124133124134124135124136124137124138124139124140124141124142124143124144124145124146124147124148124149124150124151124152124153124154124155124156124157124158124159124160124161124162124163124164124165124166124167124168124169124170124171124172124173124174124175124176124177124178124179124180124181124182124183124184124185124186124187124188124189124190124191124192124193124194124195124196124197124198124199124200124201124202124203124204124205124206124207124208124209124210124211124212124213124214124215124216124217124218124219124220124221124222124223124224124225124226124227124228124229124230124231124232124233124234124235124236124237124238124239124240124241124242124243124244124245124246124247124248124249124250124251124252124253124254124255124256124257124258124259124260124261124262124263124264124265124266124267124268124269124270124271124272124273124274124275124276124277124278124279124280124281124282124283124284124285124286124287124288124289124290124291124292124293124294124295124296124297124298124299124300124301124302124303124304124305124306124307124308124309124310124311124312124313124314124315124316124317124318124319124320124321124322124323124324124325124326124327124328124329124330124331124332124333124334124335124336124337124338124339124340124341124342124343124344124345124346124347124348124349124350124351124352124353124354124355124356124357124358124359124360124361124362124363124364124365124366124367124368124369124370124371124372124373124374124375124376124377124378124379124380124381124382124383124384124385124386124387124388124389124390124391124392124393124394124395124396124397124398124399124400124401124402124403124404124405124406124407124408124409124410124411124412124413124414124415124416124417124418124419124420124421124422124423124424124425124426124427124428124429124430124431124432124433124434124435124436124437124438124439124440124441124442124443124444124445124446124447124448124449124450124451124452124453124454124455124456124457124458124459124460124461124462124463124464124465124466124467124468124469124470124471124472124473124474124475124476124477124478124479124480124481124482124483124484124485124486124487124488124489124490124491124492124493124494124495124496124497124498124499124500124501124502124503124504124505124506124507124508124509124510124511124512124513124514124515124516124517124518124519124520124521124522124523124524124525124526124527124528124529124530124531124532124533124534124535124536124537124538124539124540124541124542124543124544124545124546124547124548124549124550124551124552124553124554124555124556124557124558124559124560124561124562124563124564124565124566124567124568124569124570124571124572124573124574124575124576124577124578124579124580124581124582124583124584124585124586124587124588124589124590124591124592124593124594124595124596124597124598124599124600124601124602124603124604124605124606124607124608124609124610124611124612124613124614124615124616124617124618124619124620124621124622124623124624124625124626124627124628124629124630124631124632124633124634124635124636124637124638124639124640124641124642124643124644124645124646124647124648124649124650124651124652124653124654124655124656124657124658124659124660124661124662124663124664124665124666124667124668124669124670124671124672124673124674124675124676124677124678124679124680124681124682124683124684124685124686124687124688124689124690124691124692124693124694124695124696124697124698124699124700124701124702124703124704124705124706124707124708124709124710124711124712124713124714124715124716124717124718124719124720124721124722124723124724124725124726124727124728124729124730124731124732124733124734124735124736124737124738124739124740124741124742124743124744124745124746124747124748124749124750124751124752124753124754124755124756124757124758124759124760124761124762124763124764124765124766124767124768124769124770124771124772124773124774124775124776124777124778124779124780124781124782124783124784124785124786124787124788124789124790124791124792124793124794124795124796124797124798124799124800124801124802124803124804124805124806124807124808124809124810124811124812124813124814124815124816124817124818124819124820124821124822124823124824124825124826124827124828124829124830124831124832124833124834124835124836124837124838124839124840124841124842124843124844124845124846124847124848124849124850124851124852124853124854124855124856124857124858124859124860124861124862124863124864124865124866124867124868124869124870124871124872124873124874124875124876124877124878124879124880124881124882124883124884124885124886124887124888124889124890124891124892124893124894124895124896124897124898124899124900124901124902124903124904124905124906124907124908124909124910124911124912124913124914124915124916124917124918124919124920124921124922124923124924124925124926124927124928124929124930124931124932124933124934124935124936124937124938124939124940124941124942124943124944124945124946124947124948124949124950124951124952124953124954124955124956124957124958124959124960124961124962124963124964124965124966124967124968124969124970124971124972124973124974124975124976124977124978124979124980124981124982124983124984124985124986124987124988124989124990124991124992124993124994124995124996124997124998124999125000125001125002125003125004125005125006125007125008125009125010125011125012125013125014125015125016125017125018125019125020125021125022125023125024125025125026125027125028125029125030125031125032125033125034125035125036125037125038125039125040125041125042125043125044125045125046125047125048125049125050125051125052125053125054125055125056125057125058125059125060125061125062125063125064125065125066125067125068125069125070125071125072125073125074125075125076125077125078125079125080125081125082125083125084125085125086125087125088125089125090125091125092125093125094125095125096125097125098125099125100125101125102125103125104125105125106125107125108125109125110125111125112125113125114125115125116125117125118125119125120125121125122125123125124125125125126125127125128125129125130125131125132125133125134125135125136125137125138125139125140125141125142125143125144125145125146125147125148125149125150125151125152125153125154125155125156125157125158125159125160125161125162125163125164125165125166125167125168125169125170125171125172125173125174125175125176125177125178125179125180125181125182125183125184125185125186125187125188125189125190125191125192125193125194125195125196125197125198125199125200125201125202125203125204125205125206125207125208125209125210125211125212125213125214125215125216125217125218125219125220125221125222125223125224125225125226125227125228125229125230125231125232125233125234125235125236125237125238125239125240125241125242125243125244125245125246125247125248125249125250125251125252125253125254125255125256125257125258125259125260125261125262125263125264125265125266125267125268125269125270125271125272125273125274125275125276125277125278125279125280125281125282125283125284125285125286125287125288125289125290125291125292125293125294125295125296125297125298125299125300125301125302125303125304125305125306125307125308125309125310125311125312125313125314125315125316125317125318125319125320125321125322125323125324125325125326125327125328125329125330125331125332125333125334125335125336125337125338125339125340125341125342125343125344125345125346125347125348125349125350125351125352125353125354125355125356125357125358125359125360125361125362125363125364125365125366125367125368125369125370125371125372125373125374125375125376125377125378125379125380125381125382125383125384125385125386125387125388125389125390125391125392125393125394125395125396125397125398125399125400125401125402125403125404125405125406125407125408125409125410125411125412125413125414125415125416125417125418125419125420125421125422125423125424125425125426125427125428125429125430125431125432125433125434125435125436125437125438125439125440125441125442125443125444125445125446125447125448125449125450125451125452125453125454125455125456125457125458125459125460125461125462125463125464125465125466125467125468125469125470125471125472125473125474125475125476125477125478125479125480125481125482125483125484125485125486125487125488125489125490125491125492125493125494125495125496125497125498125499125500125501125502125503125504125505125506125507125508125509125510125511125512125513125514125515125516125517125518125519125520125521125522125523125524125525125526125527125528125529125530125531125532125533125534125535125536125537125538125539125540125541125542125543125544125545125546125547125548125549125550125551125552125553125554125555125556125557125558125559125560125561125562125563125564125565125566125567125568125569125570125571125572125573125574125575125576125577125578125579125580125581125582125583125584125585125586125587125588125589125590125591125592125593125594125595125596125597125598125599125600125601125602125603125604125605125606125607125608125609125610125611125612125613125614125615125616125617125618125619125620125621125622125623125624125625125626125627125628125629125630125631125632125633125634125635125636125637125638125639125640125641125642125643125644125645125646125647125648125649125650125651125652125653125654125655125656125657125658125659125660125661125662125663125664125665125666125667125668125669125670125671125672125673125674125675125676125677125678125679125680125681125682125683125684125685125686125687125688125689125690125691125692125693125694125695125696125697125698125699125700125701125702125703125704125705125706125707125708125709125710125711125712125713125714125715125716125717125718125719125720125721125722125723125724125725125726125727125728125729125730125731125732125733125734125735125736125737125738125739125740125741125742125743125744125745125746125747125748125749125750125751125752125753125754125755125756125757125758125759125760125761125762125763125764125765125766125767125768125769125770125771125772125773125774125775125776125777125778125779125780125781125782125783125784125785125786125787125788125789125790125791125792125793125794125795125796125797125798125799125800125801125802125803125804125805125806125807125808125809125810125811125812125813125814125815125816125817125818125819125820125821125822125823125824125825125826125827125828125829125830125831125832125833125834125835125836125837125838125839125840125841125842125843125844125845125846125847125848125849125850125851125852125853125854125855125856125857125858125859125860125861125862125863125864125865125866125867125868125869125870125871125872125873125874125875125876125877125878125879125880125881125882125883125884125885125886125887125888125889125890125891125892125893125894125895125896125897125898125899125900125901125902125903125904125905125906125907125908125909125910125911125912125913125914125915125916125917125918125919125920125921125922125923125924125925125926125927125928125929125930125931125932125933125934125935125936125937125938125939125940125941125942125943125944125945125946125947125948125949125950125951125952125953125954125955125956125957125958125959125960125961125962125963125964125965125966125967125968125969125970125971125972125973125974125975125976125977125978125979125980125981125982125983125984125985125986125987125988125989125990125991125992125993125994125995125996125997125998125999126000126001126002126003126004126005126006126007126008126009126010126011126012126013126014126015126016126017126018126019126020126021126022126023126024126025126026126027126028126029126030126031126032126033126034126035126036126037126038126039126040126041126042126043126044126045126046126047126048126049126050126051126052126053126054126055126056126057126058126059126060126061126062126063126064126065126066126067126068126069126070126071126072126073126074126075126076126077126078126079126080126081126082126083126084126085126086126087126088126089126090126091126092126093126094126095126096126097126098126099126100126101126102126103126104126105126106126107126108126109126110126111126112126113126114126115126116126117126118126119126120126121126122126123126124126125126126126127126128126129126130126131126132126133126134126135126136126137126138126139126140126141126142126143126144126145126146126147126148126149126150126151126152126153126154126155126156126157126158126159126160126161126162126163126164126165126166126167126168126169126170126171126172126173126174126175126176126177126178126179126180126181126182126183126184126185126186126187126188126189126190126191126192126193126194126195126196126197126198126199126200126201126202126203126204126205126206126207126208126209126210126211126212126213126214126215126216126217126218126219126220126221126222126223126224126225126226126227126228126229126230126231126232126233126234126235126236126237126238126239126240126241126242126243126244126245126246126247126248126249126250126251126252126253126254126255126256126257126258126259126260126261126262126263126264126265126266126267126268126269126270126271126272126273126274126275126276126277126278126279126280126281126282126283126284126285126286126287126288126289126290126291126292126293126294126295126296126297126298126299126300126301126302126303126304126305126306126307126308126309126310126311126312126313126314126315126316126317126318126319126320126321126322126323126324126325126326126327126328126329126330126331126332126333126334126335126336126337126338126339126340126341126342126343126344126345126346126347126348126349126350126351126352126353126354126355126356126357126358126359126360126361126362126363126364126365126366126367126368126369126370126371126372126373126374126375126376126377126378126379126380126381126382126383126384126385126386126387126388126389126390126391126392126393126394126395126396126397126398126399126400126401126402126403126404126405126406126407126408126409126410126411126412126413126414126415126416126417126418126419126420126421126422126423126424126425126426126427126428126429126430126431126432126433126434126435126436126437126438126439126440126441126442126443126444126445126446126447126448126449126450126451126452126453126454126455126456126457126458126459126460126461126462126463126464126465126466126467126468126469126470126471126472126473126474126475126476126477126478126479126480126481126482126483126484126485126486126487126488126489126490126491126492126493126494126495126496126497126498126499126500126501126502126503126504126505126506126507126508126509126510126511126512126513126514126515126516126517126518126519126520126521126522126523126524126525126526126527126528126529126530126531126532126533126534126535126536126537126538126539126540126541126542126543126544126545126546126547126548126549126550126551126552126553126554126555126556126557126558126559126560126561126562126563126564126565126566126567126568126569126570126571126572126573126574126575126576126577126578126579126580126581126582126583126584126585126586126587126588126589126590126591126592126593126594126595126596126597126598126599126600126601126602126603126604126605126606126607126608126609126610126611126612126613126614126615126616126617126618126619126620126621126622126623126624126625126626126627126628126629126630126631126632126633126634126635126636126637126638126639126640126641126642126643126644126645126646126647126648126649126650126651126652126653126654126655126656126657126658126659126660126661126662126663126664126665126666126667126668126669126670126671126672126673126674126675126676126677126678126679126680126681126682126683126684126685126686126687126688126689126690126691126692126693126694126695126696126697126698126699126700126701126702126703126704126705126706126707126708126709126710126711126712126713126714126715126716126717126718126719126720126721126722126723126724126725126726126727126728126729126730126731126732126733126734126735126736126737126738126739126740126741126742126743126744126745126746126747126748126749126750126751126752126753126754126755126756126757126758126759126760126761126762126763126764126765126766126767126768126769126770126771126772126773126774126775126776126777126778126779126780126781126782126783126784126785126786126787126788126789126790126791126792126793126794126795126796126797126798126799126800126801126802126803126804126805126806126807126808126809126810126811126812126813126814126815126816126817126818126819126820126821126822126823126824126825126826126827126828126829126830126831126832126833126834126835126836126837126838126839126840126841126842126843126844126845126846126847126848126849126850126851126852126853126854126855126856126857126858126859126860126861126862126863126864126865126866126867126868126869126870126871126872126873126874126875126876126877126878126879126880126881126882126883126884126885126886126887126888126889126890126891126892126893126894126895126896126897126898126899126900126901126902126903126904126905126906126907126908126909126910126911126912126913126914126915126916126917126918126919126920126921126922126923126924126925126926126927126928126929126930126931126932126933126934126935126936126937126938126939126940126941126942126943126944126945126946126947126948126949126950126951126952126953126954126955126956126957126958126959126960126961126962126963126964126965126966126967126968126969126970126971126972126973126974126975126976126977126978126979126980126981126982126983126984126985126986126987126988126989126990126991126992126993126994126995126996126997126998126999127000127001127002127003127004127005127006127007127008127009127010127011127012127013127014127015127016127017127018127019127020127021127022127023127024127025127026127027127028127029127030127031127032127033127034127035127036127037127038127039127040127041127042127043127044127045127046127047127048127049127050127051127052127053127054127055127056127057127058127059127060127061127062127063127064127065127066127067127068127069127070127071127072127073127074127075127076127077127078127079127080127081127082127083127084127085127086127087127088127089127090127091127092127093127094127095127096127097127098127099127100127101127102127103127104127105127106127107127108127109127110127111127112127113127114127115127116127117127118127119127120127121127122127123127124127125127126127127127128127129127130127131127132127133127134127135127136127137127138127139127140127141127142127143127144127145127146127147127148127149127150127151127152127153127154127155127156127157127158127159127160127161127162127163127164127165127166127167127168127169127170127171127172127173127174127175127176127177127178127179127180127181127182127183127184127185127186127187127188127189127190127191127192127193127194127195127196127197127198127199127200127201127202127203127204127205127206127207127208127209127210127211127212127213127214127215127216127217127218127219127220127221127222127223127224127225127226127227127228127229127230127231127232127233127234127235127236127237127238127239127240127241127242127243127244127245127246127247127248127249127250127251127252127253127254127255127256127257127258127259127260127261127262127263127264127265127266127267127268127269127270127271127272127273127274127275127276127277127278127279127280127281127282127283127284127285127286127287127288127289127290127291127292127293127294127295127296127297127298127299127300127301127302127303127304127305127306127307127308127309127310127311127312127313127314127315127316127317127318127319127320127321127322127323127324127325127326127327127328127329127330127331127332127333127334127335127336127337127338127339127340127341127342127343127344127345127346127347127348127349127350127351127352127353127354127355127356127357127358127359127360127361127362127363127364127365127366127367127368127369127370127371127372127373127374127375127376127377127378127379127380127381127382127383127384127385127386127387127388127389127390127391127392127393127394127395127396127397127398127399127400127401127402127403127404127405127406127407127408127409127410127411127412127413127414127415127416127417127418127419127420127421127422127423127424127425127426127427127428127429127430127431127432127433127434127435127436127437127438127439127440127441127442127443127444127445127446127447127448127449127450127451127452127453127454127455127456127457127458127459127460127461127462127463127464127465127466127467127468127469127470127471127472127473127474127475127476127477127478127479127480127481127482127483127484127485127486127487127488127489127490127491127492127493127494127495127496127497127498127499127500127501127502127503127504127505127506127507127508127509127510127511127512127513127514127515127516127517127518127519127520127521127522127523127524127525127526127527127528127529127530127531127532127533127534127535127536127537127538127539127540127541127542127543127544127545127546127547127548127549127550127551127552127553127554127555127556127557127558127559127560127561127562127563127564127565127566127567127568127569127570127571127572127573127574127575127576127577127578127579127580127581127582127583127584127585127586127587127588127589127590127591127592127593127594127595127596127597127598127599127600127601127602127603127604127605127606127607127608127609127610127611127612127613127614127615127616127617127618127619127620127621127622127623127624127625127626127627127628127629127630127631127632127633127634127635127636127637127638127639127640127641127642127643127644127645127646127647127648127649127650127651127652127653127654127655127656127657127658127659127660127661127662127663127664127665127666127667127668127669127670127671127672127673127674127675127676127677127678127679127680127681127682127683127684127685127686127687127688127689127690127691127692127693127694127695127696127697127698127699127700127701127702127703127704127705127706127707127708127709127710127711127712127713127714127715127716127717127718127719127720127721127722127723127724127725127726127727127728127729127730127731127732127733127734127735127736127737127738127739127740127741127742127743127744127745127746127747127748127749127750127751127752127753127754127755127756127757127758127759127760127761127762127763127764127765127766127767127768127769127770127771127772127773127774127775127776127777127778127779127780127781127782127783127784127785127786127787127788127789127790127791127792127793127794127795127796127797127798127799127800127801127802127803127804127805127806127807127808127809127810127811127812127813127814127815127816127817127818127819127820127821127822127823127824127825127826127827127828127829127830127831127832127833127834127835127836127837127838127839127840127841127842127843127844127845127846127847127848127849127850127851127852127853127854127855127856127857127858127859127860127861127862127863127864127865127866127867127868127869127870127871127872127873127874127875127876127877127878127879127880127881127882127883127884127885127886127887127888127889127890127891127892127893127894127895127896127897127898127899127900127901127902127903127904127905127906127907127908127909127910127911127912127913127914127915127916127917127918127919127920127921127922127923127924127925127926127927127928127929127930127931127932127933127934127935127936127937127938127939127940127941127942127943127944127945127946127947127948127949127950127951127952127953127954127955127956127957127958127959127960127961127962127963127964127965127966127967127968127969127970127971127972127973127974127975127976127977127978127979127980127981127982127983127984127985127986127987127988127989127990127991127992127993127994127995127996127997127998127999128000128001128002128003128004128005128006128007128008128009128010128011128012128013128014128015128016128017128018128019128020128021128022128023128024128025128026128027128028128029128030128031128032128033128034128035128036128037128038128039128040128041128042128043128044128045128046128047128048128049128050128051128052128053128054128055128056128057128058128059128060128061128062128063128064128065128066128067128068128069128070128071128072128073128074128075128076128077128078128079128080128081128082128083128084128085128086128087128088128089128090128091128092128093128094128095128096128097128098128099128100128101128102128103128104128105128106128107128108128109128110128111128112128113128114128115128116128117128118128119128120128121128122128123128124128125128126128127128128128129128130128131128132128133128134128135128136128137128138128139128140128141128142128143128144128145128146128147128148128149128150128151128152128153128154128155128156128157128158128159128160128161128162128163128164128165128166128167128168128169128170128171128172128173128174128175128176128177128178128179128180128181128182128183128184128185128186128187128188128189128190128191128192128193128194128195128196128197128198128199128200128201128202128203128204128205128206128207128208128209128210128211128212128213128214128215128216128217128218128219128220128221128222128223128224128225128226128227128228128229128230128231128232128233128234128235128236128237128238128239128240128241128242128243128244128245128246128247128248128249128250128251128252128253128254128255128256128257128258128259128260128261128262128263128264128265128266128267128268128269128270128271128272128273128274128275128276128277128278128279128280128281128282128283128284128285128286128287128288128289128290128291128292128293128294128295128296128297128298128299128300128301128302128303128304128305128306128307128308128309128310128311128312128313128314128315128316128317128318128319128320128321128322128323128324128325128326128327128328128329128330128331128332128333128334128335128336128337128338128339128340128341128342128343128344128345128346128347128348128349128350128351128352128353128354128355128356128357128358128359128360128361128362128363128364128365128366128367128368128369128370128371128372128373128374128375128376128377128378128379128380128381128382128383128384128385128386128387128388128389128390128391128392128393128394128395128396128397128398128399128400128401128402128403128404128405128406128407128408128409128410128411128412128413128414128415128416128417128418128419128420128421128422128423128424128425128426128427128428128429128430128431128432128433128434128435128436128437128438128439128440128441128442128443128444128445128446128447128448128449128450128451128452128453128454128455128456128457128458128459128460128461128462128463128464128465128466128467128468128469128470128471128472128473128474128475128476128477128478128479128480128481128482128483128484128485128486128487128488128489128490128491128492128493128494128495128496128497128498128499128500128501128502128503128504128505128506128507128508128509128510128511128512128513128514128515128516128517128518128519128520128521128522128523128524128525128526128527128528128529128530128531128532128533128534128535128536128537128538128539128540128541128542128543128544128545128546128547128548128549128550128551128552128553128554128555128556128557128558128559128560128561128562128563128564128565128566128567128568128569128570128571128572128573128574128575128576128577128578128579128580128581128582128583128584128585128586128587128588128589128590128591128592128593128594128595128596128597128598128599128600128601128602128603128604128605128606128607128608128609128610128611128612128613128614128615128616128617128618128619128620128621128622128623128624128625128626128627128628128629128630128631128632128633128634128635128636128637128638128639128640128641128642128643128644128645128646128647128648128649128650128651128652128653128654128655128656128657128658128659128660128661128662128663128664128665128666128667128668128669128670128671128672128673128674128675128676128677128678128679128680128681128682128683128684128685128686128687128688128689128690128691128692128693128694128695128696128697128698128699128700128701128702128703128704128705128706128707128708128709128710128711128712128713128714128715128716128717128718128719128720128721128722128723128724128725128726128727128728128729128730128731128732128733128734128735128736128737128738128739128740128741128742128743128744128745128746128747128748128749128750128751128752128753128754128755128756128757128758128759128760128761128762128763128764128765128766128767128768128769128770128771128772128773128774128775128776128777128778128779128780128781128782128783128784128785128786128787128788128789128790128791128792128793128794128795128796128797128798128799128800128801128802128803128804128805128806128807128808128809128810128811128812128813128814128815128816128817128818128819128820128821128822128823128824128825128826128827128828128829128830128831128832128833128834128835128836128837128838128839128840128841128842128843128844128845128846128847128848128849128850128851128852128853128854128855128856128857128858128859128860128861128862128863128864128865128866128867128868128869128870128871128872128873128874128875128876128877128878128879128880128881128882128883128884128885128886128887128888128889128890128891128892128893128894128895128896128897128898128899128900128901128902128903128904128905128906128907128908128909128910128911128912128913128914128915128916128917128918128919128920128921128922128923128924128925128926128927128928128929128930128931128932128933128934128935128936128937128938128939128940128941128942128943128944128945128946128947128948128949128950128951128952128953128954128955128956128957128958128959128960128961128962128963128964128965128966128967128968128969128970128971128972128973128974128975128976128977128978128979128980128981128982128983128984128985128986128987128988128989128990128991128992128993128994128995128996128997128998128999129000129001129002129003129004129005129006129007129008129009129010129011129012129013129014129015129016129017129018129019129020129021129022129023129024129025129026129027129028129029129030129031129032129033129034129035129036129037129038129039129040129041129042129043129044129045129046129047129048129049129050129051129052129053129054129055129056129057129058129059129060129061129062129063129064129065129066129067129068129069129070129071129072129073129074129075129076129077129078129079129080129081129082129083129084129085129086129087129088129089129090129091129092129093129094129095129096129097129098129099129100129101129102129103129104129105129106129107129108129109129110129111129112129113129114129115129116129117129118129119129120129121129122129123129124129125129126129127129128129129129130129131129132129133129134129135129136129137129138129139129140129141129142129143129144129145129146129147129148129149129150129151129152129153129154129155129156129157129158129159129160129161129162129163129164129165129166129167129168129169129170129171129172129173129174129175129176129177129178129179129180129181129182129183129184129185129186129187129188129189129190129191129192129193129194129195129196129197129198129199129200129201129202129203129204129205129206129207129208129209129210129211129212129213129214129215129216129217129218129219129220129221129222129223129224129225129226129227129228129229129230129231129232129233129234129235129236129237129238129239129240129241129242129243129244129245129246129247129248129249129250129251129252129253129254129255129256129257129258129259129260129261129262129263129264129265129266129267129268129269129270129271129272129273129274129275129276129277129278129279129280129281129282129283129284129285129286129287129288129289129290129291129292129293129294129295129296129297129298129299129300129301129302129303129304129305129306129307129308129309129310129311129312129313129314129315129316129317129318129319129320129321129322129323129324129325129326129327129328129329129330129331129332129333129334129335129336129337129338129339129340129341129342129343129344129345129346129347129348129349129350129351129352129353129354129355129356129357129358129359129360129361129362129363129364129365129366129367129368129369129370129371129372129373129374129375129376129377129378129379129380129381129382129383129384129385129386129387129388129389129390129391129392129393129394129395129396129397129398129399129400129401129402129403129404129405129406129407129408129409129410129411129412129413129414129415129416129417129418129419129420129421129422129423129424129425129426129427129428129429129430129431129432129433129434129435129436129437129438129439129440129441129442129443129444129445129446129447129448129449129450129451129452129453129454129455129456129457129458129459129460129461129462129463129464129465129466129467129468129469129470129471129472129473129474129475129476129477129478129479129480129481129482129483129484129485129486129487129488129489129490129491129492129493129494129495129496129497129498129499129500129501129502129503129504129505129506129507129508129509129510129511129512129513129514129515129516129517129518129519129520129521129522129523129524129525129526129527129528129529129530129531129532129533129534129535129536129537129538129539129540129541129542129543129544129545129546129547129548129549129550129551129552129553129554129555129556129557129558129559129560129561129562129563129564129565129566129567129568129569129570129571129572129573129574129575129576129577129578129579129580129581129582129583129584129585129586129587129588129589129590129591129592129593129594129595129596129597129598129599129600129601129602129603129604129605129606129607129608129609129610129611129612129613129614129615129616129617129618129619129620129621129622129623129624129625129626129627129628129629129630129631129632129633129634129635129636129637129638129639129640129641129642129643129644129645129646129647129648129649129650129651129652129653129654129655129656129657129658129659129660129661129662129663129664129665129666129667129668129669129670129671129672129673129674129675129676129677129678129679129680129681129682129683129684129685129686129687129688129689129690129691129692129693129694129695129696129697129698129699129700129701129702129703129704129705129706129707129708129709129710129711129712129713129714129715129716129717129718129719129720129721129722129723129724129725129726129727129728129729129730129731129732129733129734129735129736129737129738129739129740129741129742129743129744129745129746129747129748129749129750129751129752129753129754129755129756129757129758129759129760129761129762129763129764129765129766129767129768129769129770129771129772129773129774129775129776129777129778129779129780129781129782129783129784129785129786129787129788129789129790129791129792129793129794129795129796129797129798129799129800129801129802129803129804129805129806129807129808129809129810129811129812129813129814129815129816129817129818129819129820129821129822129823129824129825129826129827129828129829129830129831129832129833129834129835129836129837129838129839129840129841129842129843129844129845129846129847129848129849129850129851129852129853129854129855129856129857129858129859129860129861129862129863129864129865129866129867129868129869129870129871129872129873129874129875129876129877129878129879129880129881129882129883129884129885129886129887129888129889129890129891129892129893129894129895129896129897129898129899129900129901129902129903129904129905129906129907129908129909129910129911129912129913129914129915129916129917129918129919129920129921129922129923129924129925129926129927129928129929129930129931129932129933129934129935129936129937129938129939129940129941129942129943129944129945129946129947129948129949129950129951129952129953129954129955129956129957129958129959129960129961129962129963129964129965129966129967129968129969129970129971129972129973129974129975129976129977129978129979129980129981129982129983129984129985129986129987129988129989129990129991129992129993129994129995129996129997129998129999130000130001130002130003130004130005130006130007130008130009130010130011130012130013130014130015130016130017130018130019130020130021130022130023130024130025130026130027130028130029130030130031130032130033130034130035130036130037130038130039130040130041130042130043130044130045130046130047130048130049130050130051130052130053130054130055130056130057130058130059130060130061130062130063130064130065130066130067130068130069130070130071130072130073130074130075130076130077130078130079130080130081130082130083130084130085130086130087130088130089130090130091130092130093130094130095130096130097130098130099130100130101130102130103130104130105130106130107130108130109130110130111130112130113130114130115130116130117130118130119130120130121130122130123130124130125130126130127130128130129130130130131130132130133130134130135130136130137130138130139130140130141130142130143130144130145130146130147130148130149130150130151130152130153130154130155130156130157130158130159130160130161130162130163130164130165130166130167130168130169130170130171130172130173130174130175130176130177130178130179130180130181130182130183130184130185130186130187130188130189130190130191130192130193130194130195130196130197130198130199130200130201130202130203130204130205130206130207130208130209130210130211130212130213130214130215130216130217130218130219130220130221130222130223130224130225130226130227130228130229130230130231130232130233130234130235130236130237130238130239130240130241130242130243130244130245130246130247130248130249130250130251130252130253130254130255130256130257130258130259130260130261130262130263130264130265130266130267130268130269130270130271130272130273130274130275130276130277130278130279130280130281130282130283130284130285130286130287130288130289130290130291130292130293130294130295130296130297130298130299130300130301130302130303130304130305130306130307130308130309130310130311130312130313130314130315130316130317130318130319130320130321130322130323130324130325130326130327130328130329130330130331130332130333130334130335130336130337130338130339130340130341130342130343130344130345130346130347130348130349130350130351130352130353130354130355130356130357130358130359130360130361130362130363130364130365130366130367130368130369130370130371130372130373130374130375130376130377130378130379130380130381130382130383130384130385130386130387130388130389130390130391130392130393130394130395130396130397130398130399130400130401130402130403130404130405130406130407130408130409130410130411130412130413130414130415130416130417130418130419130420130421130422130423130424130425130426130427130428130429130430130431130432130433130434130435130436130437130438130439130440130441130442130443130444130445130446130447130448130449130450130451130452130453130454130455130456130457130458130459130460130461130462130463130464130465130466130467130468130469130470130471130472130473130474130475130476130477130478130479130480130481130482130483130484130485130486130487130488130489130490130491130492130493130494130495130496130497130498130499130500130501130502130503130504130505130506130507130508130509130510130511130512130513130514130515130516130517130518130519130520130521130522130523130524130525130526130527130528130529130530130531130532130533130534130535130536130537130538130539130540130541130542130543130544130545130546130547130548130549130550130551130552130553130554130555130556130557130558130559130560130561130562130563130564130565130566130567130568130569130570130571130572130573130574130575130576130577130578130579130580130581130582130583130584130585130586130587130588130589130590130591130592130593130594130595130596130597130598130599130600130601130602130603130604130605130606130607130608130609130610130611130612130613130614130615130616130617130618130619130620130621130622130623130624130625130626130627130628130629130630130631130632130633130634130635130636130637130638130639130640130641130642130643130644130645130646130647130648130649130650130651130652130653130654130655130656130657130658130659130660130661130662130663130664130665130666130667130668130669130670130671130672130673130674130675130676130677130678130679130680130681130682130683130684130685130686130687130688130689130690130691130692130693130694130695130696130697130698130699130700130701130702130703130704130705130706130707130708130709130710130711130712130713130714130715130716130717130718130719130720130721130722130723130724130725130726130727130728130729130730130731130732130733130734130735130736130737130738130739130740130741130742130743130744130745130746130747130748130749130750130751130752130753130754130755130756130757130758130759130760130761130762130763130764130765130766130767130768130769130770130771130772130773130774130775130776130777130778130779130780130781130782130783130784130785130786130787130788130789130790130791130792130793130794130795130796130797130798130799130800130801130802130803130804130805130806130807130808130809130810130811130812130813130814130815130816130817130818130819130820130821130822130823130824130825130826130827130828130829130830130831130832130833130834130835130836130837130838130839130840130841130842130843130844130845130846130847130848130849130850130851130852130853130854130855130856130857130858130859130860130861130862130863130864130865130866130867130868130869130870130871130872130873130874130875130876130877130878130879130880130881130882130883130884130885130886130887130888130889130890130891130892130893130894130895130896130897130898130899130900130901130902130903130904130905130906130907130908130909130910130911130912130913130914130915130916130917130918130919130920130921130922130923130924130925130926130927130928130929130930130931130932130933130934130935130936130937130938130939130940130941130942130943130944130945130946130947130948130949130950130951130952130953130954130955130956130957130958130959130960130961130962130963130964130965130966130967130968130969130970130971130972130973130974130975130976130977130978130979130980130981130982130983130984130985130986130987130988130989130990130991130992130993130994130995130996130997130998130999131000131001131002131003131004131005131006131007131008131009131010131011131012131013131014131015131016131017131018131019131020131021131022131023131024131025131026131027131028131029131030131031131032131033131034131035131036131037131038131039131040131041131042131043131044131045131046131047131048131049131050131051131052131053131054131055131056131057131058131059131060131061131062131063131064131065131066131067131068131069131070131071131072131073131074131075131076131077131078131079131080131081131082131083131084131085131086131087131088131089131090131091131092131093131094131095131096131097131098131099131100131101131102131103131104131105131106131107131108131109131110131111131112131113131114131115131116131117131118131119131120131121131122131123131124131125131126131127131128131129131130131131131132131133131134131135131136131137131138131139131140131141131142131143131144131145131146131147131148131149131150131151131152131153131154131155131156131157131158131159131160131161131162131163131164131165131166131167131168131169131170131171131172131173131174131175131176131177131178131179131180131181131182131183131184131185131186131187131188131189131190131191131192131193131194131195131196131197131198131199131200131201131202131203131204131205131206131207131208131209131210131211131212131213131214131215131216131217131218131219131220131221131222131223131224131225131226131227131228131229131230131231131232131233131234131235131236131237131238131239131240131241131242131243131244131245131246131247131248131249131250131251131252131253131254131255131256131257131258131259131260131261131262131263131264131265131266131267131268131269131270131271131272131273131274131275131276131277131278131279131280131281131282131283131284131285131286131287131288131289131290131291131292131293131294131295131296131297131298131299131300131301131302131303131304131305131306131307131308131309131310131311131312131313131314131315131316131317131318131319131320131321131322131323131324131325131326131327131328131329131330131331131332131333131334131335131336131337131338131339131340131341131342131343131344131345131346131347131348131349131350131351131352131353131354131355131356131357131358131359131360131361131362131363131364131365131366131367131368131369131370131371131372131373131374131375131376131377131378131379131380131381131382131383131384131385131386131387131388131389131390131391131392131393131394131395131396131397131398131399131400131401131402131403131404131405131406131407131408131409131410131411131412131413131414131415131416131417131418131419131420131421131422131423131424131425131426131427131428131429131430131431131432131433131434131435131436131437131438131439131440131441131442131443131444131445131446131447131448131449131450131451131452131453131454131455131456131457131458131459131460131461131462131463131464131465131466131467131468131469131470131471131472131473131474131475131476131477131478131479131480131481131482131483131484131485131486131487131488131489131490131491131492131493131494131495131496131497131498131499131500131501131502131503131504131505131506131507131508131509131510131511131512131513131514131515131516131517131518131519131520131521131522131523131524131525131526131527131528131529131530131531131532131533131534131535131536131537131538131539131540131541131542131543131544131545131546131547131548131549131550131551131552131553131554131555131556131557131558131559131560131561131562131563131564131565131566131567131568131569131570131571131572131573131574131575131576131577131578131579131580131581131582131583131584131585131586131587131588131589131590131591131592131593131594131595131596131597131598131599131600131601131602131603131604131605131606131607131608131609131610131611131612131613131614131615131616131617131618131619131620131621131622131623131624131625131626131627131628131629131630131631131632131633131634131635131636131637131638131639131640131641131642131643131644131645131646131647131648131649131650131651131652131653131654131655131656131657131658131659131660131661131662131663131664131665131666131667131668131669131670131671131672131673131674131675131676131677131678131679131680131681131682131683131684131685131686131687131688131689131690131691131692131693131694131695131696131697131698131699131700131701131702131703131704131705131706131707131708131709131710131711131712131713131714131715131716131717131718131719131720131721131722131723131724131725131726131727131728131729131730131731131732131733131734131735131736131737131738131739131740131741131742131743131744131745131746131747131748131749131750131751131752131753131754131755131756131757131758131759131760131761131762131763131764131765131766131767131768131769131770131771131772131773131774131775131776131777131778131779131780131781131782131783131784131785131786131787131788131789131790131791131792131793131794131795131796131797131798131799131800131801131802131803131804131805131806131807131808131809131810131811131812131813131814131815131816131817131818131819131820131821131822131823131824131825131826131827131828131829131830131831131832131833131834131835131836131837131838131839131840131841131842131843131844131845131846131847131848131849131850131851131852131853131854131855131856131857131858131859131860131861131862131863131864131865131866131867131868131869131870131871131872131873131874131875131876131877131878131879131880131881131882131883131884131885131886131887131888131889131890131891131892131893131894131895131896131897131898131899131900131901131902131903131904131905131906131907131908131909131910131911131912131913131914131915131916131917131918131919131920131921131922131923131924131925131926131927131928131929131930131931131932131933131934131935131936131937131938131939131940131941131942131943131944131945131946131947131948131949131950131951131952131953131954131955131956131957131958131959131960131961131962131963131964131965131966131967131968131969131970131971131972131973131974131975131976131977131978131979131980131981131982131983131984131985131986131987131988131989131990131991131992131993131994131995131996131997131998131999132000132001132002132003132004132005132006132007132008132009132010132011132012132013132014132015132016132017132018132019132020132021132022132023132024132025132026132027132028132029132030132031132032132033132034132035132036132037132038132039132040132041132042132043132044132045132046132047132048132049132050132051132052132053132054132055132056132057132058132059132060132061132062132063132064132065132066132067132068132069132070132071132072132073132074132075132076132077132078132079132080132081132082132083132084132085132086132087132088132089132090132091132092132093132094132095132096132097132098132099132100132101132102132103132104132105132106132107132108132109132110132111132112132113132114132115132116132117132118132119132120132121132122132123132124132125132126132127132128132129132130132131132132132133132134132135132136132137132138132139132140132141132142132143132144132145132146132147132148132149132150132151132152132153132154132155132156132157132158132159132160132161132162132163132164132165132166132167132168132169132170132171132172132173132174132175132176132177132178132179132180132181132182132183132184132185132186132187132188132189132190132191132192132193132194132195132196132197132198132199132200132201132202132203132204132205132206132207132208132209132210132211132212132213132214132215132216132217132218132219132220132221132222132223132224132225132226132227132228132229132230132231132232132233132234132235132236132237132238132239132240132241132242132243132244132245132246132247132248132249132250132251132252132253132254132255132256132257132258132259132260132261132262132263132264132265132266132267132268132269132270132271132272132273132274132275132276132277132278132279132280132281132282132283132284132285132286132287132288132289132290132291132292132293132294132295132296132297132298132299132300132301132302132303132304132305132306132307132308132309132310132311132312132313132314132315132316132317132318132319132320132321132322132323132324132325132326132327132328132329132330132331132332132333132334132335132336132337132338132339132340132341132342132343132344132345132346132347132348132349132350132351132352132353132354132355132356132357132358132359132360132361132362132363132364132365132366132367132368132369132370132371132372132373132374132375132376132377132378132379132380132381132382132383132384132385132386132387132388132389132390132391132392132393132394132395132396132397132398132399132400132401132402132403132404132405132406132407132408132409132410132411132412132413132414132415132416132417132418132419132420132421132422132423132424132425132426132427132428132429132430132431132432132433132434132435132436132437132438132439132440132441132442132443132444132445132446132447132448132449132450132451132452132453132454132455132456132457132458132459132460132461132462132463132464132465132466132467132468132469132470132471132472132473132474132475132476132477132478132479132480132481132482132483132484132485132486132487132488132489132490132491132492132493132494132495132496132497132498132499132500132501132502132503132504132505132506132507132508132509132510132511132512132513132514132515132516132517132518132519132520132521132522132523132524132525132526132527132528132529132530132531132532132533132534132535132536132537132538132539132540132541132542132543132544132545132546132547132548132549132550132551132552132553132554132555132556132557132558132559132560132561132562132563132564132565132566132567132568132569132570132571132572132573132574132575132576132577132578132579132580132581132582132583132584132585132586132587132588132589132590132591132592132593132594132595132596132597132598132599132600132601132602132603132604132605132606132607132608132609132610132611132612132613132614132615132616132617132618132619132620132621132622132623132624132625132626132627132628132629132630132631132632132633132634132635132636132637132638132639132640132641132642132643132644132645132646132647132648132649132650132651132652132653132654132655132656132657132658132659132660132661132662132663132664132665132666132667132668132669132670132671132672132673132674132675132676132677132678132679132680132681132682132683132684132685132686132687132688132689132690132691132692132693132694132695132696132697132698132699132700132701132702132703132704132705132706132707132708132709132710132711132712132713132714132715132716132717132718132719132720132721132722132723132724132725132726132727132728132729132730132731132732132733132734132735132736132737132738132739132740132741132742132743132744132745132746132747132748132749132750132751132752132753132754132755132756132757132758132759132760132761132762132763132764132765132766132767132768132769132770132771132772132773132774132775132776132777132778132779132780132781132782132783132784132785132786132787132788132789132790132791132792132793132794132795132796132797132798132799132800132801132802132803132804132805132806132807132808132809132810132811132812132813132814132815132816132817132818132819132820132821132822132823132824132825132826132827132828132829132830132831132832132833132834132835132836132837132838132839132840132841132842132843132844132845132846132847132848132849132850132851132852132853132854132855132856132857132858132859132860132861132862132863132864132865132866132867132868132869132870132871132872132873132874132875132876132877132878132879132880132881132882132883132884132885132886132887132888132889132890132891132892132893132894132895132896132897132898132899132900132901132902132903132904132905132906132907132908132909132910132911132912132913132914132915132916132917132918132919132920132921132922132923132924132925132926132927132928132929132930132931132932132933132934132935132936132937132938132939132940132941132942132943132944132945132946132947132948132949132950132951132952132953132954132955132956132957132958132959132960132961132962132963132964132965132966132967132968132969132970132971132972132973132974132975132976132977132978132979132980132981132982132983132984132985132986132987132988132989132990132991132992132993132994132995132996132997132998132999133000133001133002133003133004133005133006133007133008133009133010133011133012133013133014133015133016133017133018133019133020133021133022133023133024133025133026133027133028133029133030133031133032133033133034133035133036133037133038133039133040133041133042133043133044133045133046133047133048133049133050133051133052133053133054133055133056133057133058133059133060133061133062133063133064133065133066133067133068133069133070133071133072133073133074133075133076133077133078133079133080133081133082133083133084133085133086133087133088133089133090133091133092133093133094133095133096133097133098133099133100133101133102133103133104133105133106133107133108133109133110133111133112133113133114133115133116133117133118133119133120133121133122133123133124133125133126133127133128133129133130133131133132133133133134133135133136133137133138133139133140133141133142133143133144133145133146133147133148133149133150133151133152133153133154133155133156133157133158133159133160133161133162133163133164133165133166133167133168133169133170133171133172133173133174133175133176133177133178133179133180133181133182133183133184133185133186133187133188133189133190133191133192133193133194133195133196133197133198133199133200133201133202133203133204133205133206133207133208133209133210133211133212133213133214133215133216133217133218133219133220133221133222133223133224133225133226133227133228133229133230133231133232133233133234133235133236133237133238133239133240133241133242133243133244133245133246133247133248133249133250133251133252133253133254133255133256133257133258133259133260133261133262133263133264133265133266133267133268133269133270133271133272133273133274133275133276133277133278133279133280133281133282133283133284133285133286133287133288133289133290133291133292133293133294133295133296133297133298133299133300133301133302133303133304133305133306133307133308133309133310133311133312133313133314133315133316133317133318133319133320133321133322133323133324133325133326133327133328133329133330133331133332133333133334133335133336133337133338133339133340133341133342133343133344133345133346133347133348133349133350133351133352133353133354133355133356133357133358133359133360133361133362133363133364133365133366133367133368133369133370133371133372133373133374133375133376133377133378133379133380133381133382133383133384133385133386133387133388133389133390133391133392133393133394133395133396133397133398133399133400133401133402133403133404133405133406133407133408133409133410133411133412133413133414133415133416133417133418133419133420133421133422133423133424133425133426133427133428133429133430133431133432133433133434133435133436133437133438133439133440133441133442133443133444133445133446133447133448133449133450133451133452133453133454133455133456133457133458133459133460133461133462133463133464133465133466133467133468133469133470133471133472133473133474133475133476133477133478133479133480133481133482133483133484133485133486133487133488133489133490133491133492133493133494133495133496133497133498133499133500133501133502133503133504133505133506133507133508133509133510133511133512133513133514133515133516133517133518133519133520133521133522133523133524133525133526133527133528133529133530133531133532133533133534133535133536133537133538133539133540133541133542133543133544133545133546133547133548133549133550133551133552133553133554133555133556133557133558133559133560133561133562133563133564133565133566133567133568133569133570133571133572133573133574133575133576133577133578133579133580133581133582133583133584133585133586133587133588133589133590133591133592133593133594133595133596133597133598133599133600133601133602133603133604133605133606133607133608133609133610133611133612133613133614133615133616133617133618133619133620133621133622133623133624133625133626133627133628133629133630133631133632133633133634133635133636133637133638133639133640133641133642133643133644133645133646133647133648133649133650133651133652133653133654133655133656133657133658133659133660133661133662133663133664133665133666133667133668133669133670133671133672133673133674133675133676133677133678133679133680133681133682133683133684133685133686133687133688133689133690133691133692133693133694133695133696133697133698133699133700133701133702133703133704133705133706133707133708133709133710133711133712133713133714133715133716133717133718133719133720133721133722133723133724133725133726133727133728133729133730133731133732133733133734133735133736133737133738133739133740133741133742133743133744133745133746133747133748133749133750133751133752133753133754133755133756133757133758133759133760133761133762133763133764133765133766133767133768133769133770133771133772133773133774133775133776133777133778133779133780133781133782133783133784133785133786133787133788133789133790133791133792133793133794133795133796133797133798133799133800133801133802133803133804133805133806133807133808133809133810133811133812133813133814133815133816133817133818133819133820133821133822133823133824133825133826133827133828133829133830133831133832133833133834133835133836133837133838133839133840133841133842133843133844133845133846133847133848133849133850133851133852133853133854133855133856133857133858133859133860133861133862133863133864133865133866133867133868133869133870133871133872133873133874133875133876133877133878133879133880133881133882133883133884133885133886133887133888133889133890133891133892133893133894133895133896133897133898133899133900133901133902133903133904133905133906133907133908133909133910133911133912133913133914133915133916133917133918133919133920133921133922133923133924133925133926133927133928133929133930133931133932133933133934133935133936133937133938133939133940133941133942133943133944133945133946133947133948133949133950133951133952133953133954133955133956133957133958133959133960133961133962133963133964133965133966133967133968133969133970133971133972133973133974133975133976133977133978133979133980133981133982133983133984133985133986133987133988133989133990133991133992133993133994133995133996133997133998133999134000134001134002134003134004134005134006134007134008134009134010134011134012134013134014134015134016134017134018134019134020134021134022134023134024134025134026134027134028134029134030134031134032134033134034134035134036134037134038134039134040134041134042134043134044134045134046134047134048134049134050134051134052134053134054134055134056134057134058134059134060134061134062134063134064134065134066134067134068134069134070134071134072134073134074134075134076134077134078134079134080134081134082134083134084134085134086134087134088134089134090134091134092134093134094134095134096134097134098134099134100134101134102134103134104134105134106134107134108134109134110134111134112134113134114134115134116134117134118134119134120134121134122134123134124134125134126134127134128134129134130134131134132134133134134134135134136134137134138134139134140134141134142134143134144134145134146134147134148134149134150134151134152134153134154134155134156134157134158134159134160134161134162134163134164134165134166134167134168134169134170134171134172134173134174134175134176134177134178134179134180134181134182134183134184134185134186134187134188134189134190134191134192134193134194134195134196134197134198134199134200134201134202134203134204134205134206134207134208134209134210134211134212134213134214134215134216134217134218134219134220134221134222134223134224134225134226134227134228134229134230134231134232134233134234134235134236134237134238134239134240134241134242134243134244134245134246134247134248134249134250134251134252134253134254134255134256134257134258134259134260134261134262134263134264134265134266134267134268134269134270134271134272134273134274134275134276134277134278134279134280134281134282134283134284134285134286134287134288134289134290134291134292134293134294134295134296134297134298134299134300134301134302134303134304134305134306134307134308134309134310134311134312134313134314134315134316134317134318134319134320134321134322134323134324134325134326134327134328134329134330134331134332134333134334134335134336134337134338134339134340134341134342134343134344134345134346134347134348134349134350134351134352134353134354134355134356134357134358134359134360134361134362134363134364134365134366134367134368134369134370134371134372134373134374134375134376134377134378134379134380134381134382134383134384134385134386134387134388134389134390134391134392134393134394134395134396134397134398134399134400134401134402134403134404134405134406134407134408134409134410134411134412134413134414134415134416134417134418134419134420134421134422134423134424134425134426134427134428134429134430134431134432134433134434134435134436134437134438134439134440134441134442134443134444134445134446134447134448134449134450134451134452134453134454134455134456134457134458134459134460134461134462134463134464134465134466134467134468134469134470134471134472134473134474134475134476134477134478134479134480134481134482134483134484134485134486134487134488134489134490134491134492134493134494134495134496134497134498134499134500134501134502134503134504134505134506134507134508134509134510134511134512134513134514134515134516134517134518134519134520134521134522134523134524134525134526134527134528134529134530134531134532134533134534134535134536134537134538134539134540134541134542134543134544134545134546134547134548134549134550134551134552134553134554134555134556134557134558134559134560134561134562134563134564134565134566134567134568134569134570134571134572134573134574134575134576134577134578134579134580134581134582134583134584134585134586134587134588134589134590134591134592134593134594134595134596134597134598134599134600134601134602134603134604134605134606134607134608134609134610134611134612134613134614134615134616134617134618134619134620134621134622134623134624134625134626134627134628134629134630134631134632134633134634134635134636134637134638134639134640134641134642134643134644134645134646134647134648134649134650134651134652134653134654134655134656134657134658134659134660134661134662134663134664134665134666134667134668134669134670134671134672134673134674134675134676134677134678134679134680134681134682134683134684134685134686134687134688134689134690134691134692134693134694134695134696134697134698134699134700134701134702134703134704134705134706134707134708134709134710134711134712134713134714134715134716134717134718134719134720134721134722134723134724134725134726134727134728134729134730134731134732134733134734134735134736134737134738134739134740134741134742134743134744134745134746134747134748134749134750134751134752134753134754134755134756134757134758134759134760134761134762134763134764134765134766134767134768134769134770134771134772134773134774134775134776134777134778134779134780134781134782134783134784134785134786134787134788134789134790134791134792134793134794134795134796134797134798134799134800134801134802134803134804134805134806134807134808134809134810134811134812134813134814134815134816134817134818134819134820134821134822134823134824134825134826134827134828134829134830134831134832134833134834134835134836134837134838134839134840134841134842134843134844134845134846134847134848134849134850134851134852134853134854134855134856134857134858134859134860134861134862134863134864134865134866134867134868134869134870134871134872134873134874134875134876134877134878134879134880134881134882134883134884134885134886134887134888134889134890134891134892134893134894134895134896134897134898134899134900134901134902134903134904134905134906134907134908134909134910134911134912134913134914134915134916134917134918134919134920134921134922134923134924134925134926134927134928134929134930134931134932134933134934134935134936134937134938134939134940134941134942134943134944134945134946134947134948134949134950134951134952134953134954134955134956134957134958134959134960134961134962134963134964134965134966134967134968134969134970134971134972134973134974134975134976134977134978134979134980134981134982134983134984134985134986134987134988134989134990134991134992134993134994134995134996134997134998134999135000135001135002135003135004135005135006135007135008135009135010135011135012135013135014135015135016135017135018135019135020135021135022135023135024135025135026135027135028135029135030135031135032135033135034135035135036135037135038135039135040135041135042135043135044135045135046135047135048135049135050135051135052135053135054135055135056135057135058135059135060135061135062135063135064135065135066135067135068135069135070135071135072135073135074135075135076135077135078135079135080135081135082135083135084135085135086135087135088135089135090135091135092135093135094135095135096135097135098135099135100135101135102135103135104135105135106135107135108135109135110135111135112135113135114135115135116135117135118135119135120135121135122135123135124135125135126135127135128135129135130135131135132135133135134135135135136135137135138135139135140135141135142135143135144135145135146135147135148135149135150135151135152135153135154135155135156135157135158135159135160135161135162135163135164135165135166135167135168135169135170135171135172135173135174135175135176135177135178135179135180135181135182135183135184135185135186135187135188135189135190135191135192135193135194135195135196135197135198135199135200135201135202135203135204135205135206135207135208135209135210135211135212135213135214135215135216135217135218135219135220135221135222135223135224135225135226135227135228135229135230135231135232135233135234135235135236135237135238135239135240135241135242135243135244135245135246135247135248135249135250135251135252135253135254135255135256135257135258135259135260135261135262135263135264135265135266135267135268135269135270135271135272135273135274135275135276135277135278135279135280135281135282135283135284135285135286135287135288135289135290135291135292135293135294135295135296135297135298135299135300135301135302135303135304135305135306135307135308135309135310135311135312135313135314135315135316135317135318135319135320135321135322135323135324135325135326135327135328135329135330135331135332135333135334135335135336135337135338135339135340135341135342135343135344135345135346135347135348135349135350135351135352135353135354135355135356135357135358135359135360135361135362135363135364135365135366135367135368135369135370135371135372135373135374135375135376135377135378135379135380135381135382135383135384135385135386135387135388135389135390135391135392135393135394135395135396135397135398135399135400135401135402135403135404135405135406135407135408135409135410135411135412135413135414135415135416135417135418135419135420135421135422135423135424135425135426135427135428135429135430135431135432135433135434135435135436135437135438135439135440135441135442135443135444135445135446135447135448135449135450135451135452135453135454135455135456135457135458135459135460135461135462135463135464135465135466135467135468135469135470135471135472135473135474135475135476135477135478135479135480135481135482135483135484135485135486135487135488135489135490135491135492135493135494135495135496135497135498135499135500135501135502135503135504135505135506135507135508135509135510135511135512135513135514135515135516135517135518135519135520135521135522135523135524135525135526135527135528135529135530135531135532135533135534135535135536135537135538135539135540135541135542135543135544135545135546135547135548135549135550135551135552135553135554135555135556135557135558135559135560135561135562135563135564135565135566135567135568135569135570135571135572135573135574135575135576135577135578135579135580135581135582135583135584135585135586135587135588135589135590135591135592135593135594135595135596135597135598135599135600135601135602135603135604135605135606135607135608135609135610135611135612135613135614135615135616135617135618135619135620135621135622135623135624135625135626135627135628135629135630135631135632135633135634135635135636135637135638135639135640135641135642135643135644135645135646135647135648135649135650135651135652135653135654135655135656135657135658135659135660135661135662135663135664135665135666135667135668135669135670135671135672135673135674135675135676135677135678135679135680135681135682135683135684135685135686135687135688135689135690135691135692135693135694135695135696135697135698135699135700135701135702135703135704135705135706135707135708135709135710135711135712135713135714135715135716135717135718135719135720135721135722135723135724135725135726135727135728135729135730135731135732135733135734135735135736135737135738135739135740135741135742135743135744135745135746135747135748135749135750135751135752135753135754135755135756135757135758135759135760135761135762135763135764135765135766135767135768135769135770135771135772135773135774135775135776135777135778135779135780135781135782135783135784135785135786135787135788135789135790135791135792135793135794135795135796135797135798135799135800135801135802135803135804135805135806135807135808135809135810135811135812135813135814135815135816135817135818135819135820135821135822135823135824135825135826135827135828135829135830135831135832135833135834135835135836135837135838135839135840135841135842135843135844135845135846135847135848135849135850135851135852135853135854135855135856135857135858135859135860135861135862135863135864135865135866135867135868135869135870135871135872135873135874135875135876135877135878135879135880135881135882135883135884135885135886135887135888135889135890135891135892135893135894135895135896135897135898135899135900135901135902135903135904135905135906135907135908135909135910135911135912135913135914135915135916135917135918135919135920135921135922135923135924135925135926135927135928135929135930135931135932135933135934135935135936135937135938135939135940135941135942135943135944135945135946135947135948135949135950135951135952135953135954135955135956135957135958135959135960135961135962135963135964135965135966135967135968135969135970135971135972135973135974135975135976135977135978135979135980135981135982135983135984135985135986135987135988135989135990135991135992135993135994135995135996135997135998135999136000136001136002136003136004136005136006136007136008136009136010136011136012136013136014136015136016136017136018136019136020136021136022136023136024136025136026136027136028136029136030136031136032136033136034136035136036136037136038136039136040136041136042136043136044136045136046136047136048136049136050136051136052136053136054136055136056136057136058136059136060136061136062136063136064136065136066136067136068136069136070136071136072136073136074136075136076136077136078136079136080136081136082136083136084136085136086136087136088136089136090136091136092136093136094136095136096136097136098136099136100136101136102136103136104136105136106136107136108136109136110136111136112136113136114136115136116136117136118136119136120136121136122136123136124136125136126136127136128136129136130136131136132136133136134136135136136136137136138136139136140136141136142136143136144136145136146136147136148136149136150136151136152136153136154136155136156136157136158136159136160136161136162136163136164136165136166136167136168136169136170136171136172136173136174136175136176136177136178136179136180136181136182136183136184136185136186136187136188136189136190136191136192136193136194136195136196136197136198136199136200136201136202136203136204136205136206136207136208136209136210136211136212136213136214136215136216136217136218136219136220136221136222136223136224136225136226136227136228136229136230136231136232136233136234136235136236136237136238136239136240136241136242136243136244136245136246136247136248136249136250136251136252136253136254136255136256136257136258136259136260136261136262136263136264136265136266136267136268136269136270136271136272136273136274136275136276136277136278136279136280136281136282136283136284136285136286136287136288136289136290136291136292136293136294136295136296136297136298136299136300136301136302136303136304136305136306136307136308136309136310136311136312136313136314136315136316136317136318136319136320136321136322136323136324136325136326136327136328136329136330136331136332136333136334136335136336136337136338136339136340136341136342136343136344136345136346136347136348136349136350136351136352136353136354136355136356136357136358136359136360136361136362136363136364136365136366136367136368136369136370136371136372136373136374136375136376136377136378136379136380136381136382136383136384136385136386136387136388136389136390136391136392136393136394136395136396136397136398136399136400136401136402136403136404136405136406136407136408136409136410136411136412136413136414136415136416136417136418136419136420136421136422136423136424136425136426136427136428136429136430136431136432136433136434136435136436136437136438136439136440136441136442136443136444136445136446136447136448136449136450136451136452136453136454136455136456136457136458136459136460136461136462136463136464136465136466136467136468136469136470136471136472136473136474136475136476136477136478136479136480136481136482136483136484136485136486136487136488136489136490136491136492136493136494136495136496136497136498136499136500136501136502136503136504136505136506136507136508136509136510136511136512136513136514136515136516136517136518136519136520136521136522136523136524136525136526136527136528136529136530136531136532136533136534136535136536136537136538136539136540136541136542136543136544136545136546136547136548136549136550136551136552136553136554136555136556136557136558136559136560136561136562136563136564136565136566136567136568136569136570136571136572136573136574136575136576136577136578136579136580136581136582136583136584136585136586136587136588136589136590136591136592136593136594136595136596136597136598136599136600136601136602136603136604136605136606136607136608136609136610136611136612136613136614136615136616136617136618136619136620136621136622136623136624136625136626136627136628136629136630136631136632136633136634136635136636136637136638136639136640136641136642136643136644136645136646136647136648136649136650136651136652136653136654136655136656136657136658136659136660136661136662136663136664136665136666136667136668136669136670136671136672136673136674136675136676136677136678136679136680136681136682136683136684136685136686136687136688136689136690136691136692136693136694136695136696136697136698136699136700136701136702136703136704136705136706136707136708136709136710136711136712136713136714136715136716136717136718136719136720136721136722136723136724136725136726136727136728136729136730136731136732136733136734136735136736136737136738136739136740136741136742136743136744136745136746136747136748136749136750136751136752136753136754136755136756136757136758136759136760136761136762136763136764136765136766136767136768136769136770136771136772136773136774136775136776136777136778136779136780136781136782136783136784136785136786136787136788136789136790136791136792136793136794136795136796136797136798136799136800136801136802136803136804136805136806136807136808136809136810136811136812136813136814136815136816136817136818136819136820136821136822136823136824136825136826136827136828136829136830136831136832136833136834136835136836136837136838136839136840136841136842136843136844136845136846136847136848136849136850136851136852136853136854136855136856136857136858136859136860136861136862136863136864136865136866136867136868136869136870136871136872136873136874136875136876136877136878136879136880136881136882136883136884136885136886136887136888136889136890136891136892136893136894136895136896136897136898136899136900136901136902136903136904136905136906136907136908136909136910136911136912136913136914136915136916136917136918136919136920136921136922136923136924136925136926136927136928136929136930136931136932136933136934136935136936136937136938136939136940136941136942136943136944136945136946136947136948136949136950136951136952136953136954136955136956136957136958136959136960136961136962136963136964136965136966136967136968136969136970136971136972136973136974136975136976136977136978136979136980136981136982136983136984136985136986136987136988136989136990136991136992136993136994136995136996136997136998136999137000137001137002137003137004137005137006137007137008137009137010137011137012137013137014137015137016137017137018137019137020137021137022137023137024137025137026137027137028137029137030137031137032137033137034137035137036137037137038137039137040137041137042137043137044137045137046137047137048137049137050137051137052137053137054137055137056137057137058137059137060137061137062137063137064137065137066137067137068137069137070137071137072137073137074137075137076137077137078137079137080137081137082137083137084137085137086137087137088137089137090137091137092137093137094137095137096137097137098137099137100137101137102137103137104137105137106137107137108137109137110137111137112137113137114137115137116137117137118137119137120137121137122137123137124137125137126137127137128137129137130137131137132137133137134137135137136137137137138137139137140137141137142137143137144137145137146137147137148137149137150137151137152137153137154137155137156137157137158137159137160137161137162137163137164137165137166137167137168137169137170137171137172137173137174137175137176137177137178137179137180137181137182137183137184137185137186137187137188137189137190137191137192137193137194137195137196137197137198137199137200137201137202137203137204137205137206137207137208137209137210137211137212137213137214137215137216137217137218137219137220137221137222137223137224137225137226137227137228137229137230137231137232137233137234137235137236137237137238137239137240137241137242137243137244137245137246137247137248137249137250137251137252137253137254137255137256137257137258137259137260137261137262137263137264137265137266137267137268137269137270137271137272137273137274137275137276137277137278137279137280137281137282137283137284137285137286137287137288137289137290137291137292137293137294137295137296137297137298137299137300137301137302137303137304137305137306137307137308137309137310137311137312137313137314137315137316137317137318137319137320137321137322137323137324137325137326137327137328137329137330137331137332137333137334137335137336137337137338137339137340137341137342137343137344137345137346137347137348137349137350137351137352137353137354137355137356137357137358137359137360137361137362137363137364137365137366137367137368137369137370137371137372137373137374137375137376137377137378137379137380137381137382137383137384137385137386137387137388137389137390137391137392137393137394137395137396137397137398137399137400137401137402137403137404137405137406137407137408137409137410137411137412137413137414137415137416137417137418137419137420137421137422137423137424137425137426137427137428137429137430137431137432137433137434137435137436137437137438137439137440137441137442137443137444137445137446137447137448137449137450137451137452137453137454137455137456137457137458137459137460137461137462137463137464137465137466137467137468137469137470137471137472137473137474137475137476137477137478137479137480137481137482137483137484137485137486137487137488137489137490137491137492137493137494137495137496137497137498137499137500137501137502137503137504137505137506137507137508137509137510137511137512137513137514137515137516137517137518137519137520137521137522137523137524137525137526137527137528137529137530137531137532137533137534137535137536137537137538137539137540137541137542137543137544137545137546137547137548137549137550137551137552137553137554137555137556137557137558137559137560137561137562137563137564137565137566137567137568137569137570137571137572137573137574137575137576137577137578137579137580137581137582137583137584137585137586137587137588137589137590137591137592137593137594137595137596137597137598137599137600137601137602137603137604137605137606137607137608137609137610137611137612137613137614137615137616137617137618137619137620137621137622137623137624137625137626137627137628137629137630137631137632137633137634137635137636137637137638137639137640137641137642137643137644137645137646137647137648137649137650137651137652137653137654137655137656137657137658137659137660137661137662137663137664137665137666137667137668137669137670137671137672137673137674137675137676137677137678137679137680137681137682137683137684137685137686137687137688137689137690137691137692137693137694137695137696137697137698137699137700137701137702137703137704137705137706137707137708137709137710137711137712137713137714137715137716137717137718137719137720137721137722137723137724137725137726137727137728137729137730137731137732137733137734137735137736137737137738137739137740137741137742137743137744137745137746137747137748137749137750137751137752137753137754137755137756137757137758137759137760137761137762137763137764137765137766137767137768137769137770137771137772137773137774137775137776137777137778137779137780137781137782137783137784137785137786137787137788137789137790137791137792137793137794137795137796137797137798137799137800137801137802137803137804137805137806137807137808137809137810137811137812137813137814137815137816137817137818137819137820137821137822137823137824137825137826137827137828137829137830137831137832137833137834137835137836137837137838137839137840137841137842137843137844137845137846137847137848137849137850137851137852137853137854137855137856137857137858137859137860137861137862137863137864137865137866137867137868137869137870137871137872137873137874137875137876137877137878137879137880137881137882137883137884137885137886137887137888137889137890137891137892137893137894137895137896137897137898137899137900137901137902137903137904137905137906137907137908137909137910137911137912137913137914137915137916137917137918137919137920137921137922137923137924137925137926137927137928137929137930137931137932137933137934137935137936137937137938137939137940137941137942137943137944137945137946137947137948137949137950137951137952137953137954137955137956137957137958137959137960137961137962137963137964137965137966137967137968137969137970137971137972137973137974137975137976137977137978137979137980137981137982137983137984137985137986137987137988137989137990137991137992137993137994137995137996137997137998137999138000138001138002138003138004138005138006138007138008138009138010138011138012138013138014138015138016138017138018138019138020138021138022138023138024138025138026138027138028138029138030138031138032138033138034138035138036138037138038138039138040138041138042138043138044138045138046138047138048138049138050138051138052138053138054138055138056138057138058138059138060138061138062138063138064138065138066138067138068138069138070138071138072138073138074138075138076138077138078138079138080138081138082138083138084138085138086138087138088138089138090138091138092138093138094138095138096138097138098138099138100138101138102138103138104138105138106138107138108138109138110138111138112138113138114138115138116138117138118138119138120138121138122138123138124138125138126138127138128138129138130138131138132138133138134138135138136138137138138138139138140138141138142138143138144138145138146138147138148138149138150138151138152138153138154138155138156138157138158138159138160138161138162138163138164138165138166138167138168138169138170138171138172138173138174138175138176138177138178138179138180138181138182138183138184138185138186138187138188138189138190138191138192138193138194138195138196138197138198138199138200138201138202138203138204138205138206138207138208138209138210138211138212138213138214138215138216138217138218138219138220138221138222138223138224138225138226138227138228138229138230138231138232138233138234138235138236138237138238138239138240138241138242138243138244138245138246138247138248138249138250138251138252138253138254138255138256138257138258138259138260138261138262138263138264138265138266138267138268138269138270138271138272138273138274138275138276138277138278138279138280138281138282138283138284138285138286138287138288138289138290138291138292138293138294138295138296138297138298138299138300138301138302138303138304138305138306138307138308138309138310138311138312138313138314138315138316138317138318138319138320138321138322138323138324138325138326138327138328138329138330138331138332138333138334138335138336138337138338138339138340138341138342138343138344138345138346138347138348138349138350138351138352138353138354138355138356138357138358138359138360138361138362138363138364138365138366138367138368138369138370138371138372138373138374138375138376138377138378138379138380138381138382138383138384138385138386138387138388138389138390138391138392138393138394138395138396138397138398138399138400138401138402138403138404138405138406138407138408138409138410138411138412138413138414138415138416138417138418138419138420138421138422138423138424138425138426138427138428138429138430138431138432138433138434138435138436138437138438138439138440138441138442138443138444138445138446138447138448138449138450138451138452138453138454138455138456138457138458138459138460138461138462138463138464138465138466138467138468138469138470138471138472138473138474138475138476138477138478138479138480138481138482138483138484138485138486138487138488138489138490138491138492138493138494138495138496138497138498138499138500138501138502138503138504138505138506138507138508138509138510138511138512138513138514138515138516138517138518138519138520138521138522138523138524138525138526138527138528138529138530138531138532138533138534138535138536138537138538138539138540138541138542138543138544138545138546138547138548138549138550138551138552138553138554138555138556138557138558138559138560138561138562138563138564138565138566138567138568138569138570138571138572138573138574138575138576138577138578138579138580138581138582138583138584138585138586138587138588138589138590138591138592138593138594138595138596138597138598138599138600138601138602138603138604138605138606138607138608138609138610138611138612138613138614138615138616138617138618138619138620138621138622138623138624138625138626138627138628138629138630138631138632138633138634138635138636138637138638138639138640138641138642138643138644138645138646138647138648138649138650138651138652138653138654138655138656138657138658138659138660138661138662138663138664138665138666138667138668138669138670138671138672138673138674138675138676138677138678138679138680138681138682138683138684138685138686138687138688138689138690138691138692138693138694138695138696138697138698138699138700138701138702138703138704138705138706138707138708138709138710138711138712138713138714138715138716138717138718138719138720138721138722138723138724138725138726138727138728138729138730138731138732138733138734138735138736138737138738138739138740138741138742138743138744138745138746138747138748138749138750138751138752138753138754138755138756138757138758138759138760138761138762138763138764138765138766138767138768138769138770138771138772138773138774138775138776138777138778138779138780138781138782138783138784138785138786138787138788138789138790138791138792138793138794138795138796138797138798138799138800138801138802138803138804138805138806138807138808138809138810138811138812138813138814138815138816138817138818138819138820138821138822138823138824138825138826138827138828138829138830138831138832138833138834138835138836138837138838138839138840138841138842138843138844138845138846138847138848138849138850138851138852138853138854138855138856138857138858138859138860138861138862138863138864138865138866138867138868138869138870138871138872138873138874138875138876138877138878138879138880138881138882138883138884138885138886138887138888138889138890138891138892138893138894138895138896138897138898138899138900138901138902138903138904138905138906138907138908138909138910138911138912138913138914138915138916138917138918138919138920138921138922138923138924138925138926138927138928138929138930138931138932138933138934138935138936138937138938138939138940138941138942138943138944138945138946138947138948138949138950138951138952138953138954138955138956138957138958138959138960138961138962138963138964138965138966138967138968138969138970138971138972138973138974138975138976138977138978138979138980138981138982138983138984138985138986138987138988138989138990138991138992138993138994138995138996138997138998138999139000139001139002139003139004139005139006139007139008139009139010139011139012139013139014139015139016139017139018139019139020139021139022139023139024139025139026139027139028139029139030139031139032139033139034139035139036139037139038139039139040139041139042139043139044139045139046139047139048139049139050139051139052139053139054139055139056139057139058139059139060139061139062139063139064139065139066139067139068139069139070139071139072139073139074139075139076139077139078139079139080139081139082139083139084139085139086139087139088139089139090139091139092139093139094139095139096139097139098139099139100139101139102139103139104139105139106139107139108139109139110139111139112139113139114139115139116139117139118139119139120139121139122139123139124139125139126139127139128139129139130139131139132139133139134139135139136139137139138139139139140139141139142139143139144139145139146139147139148139149139150139151139152139153139154139155139156139157139158139159139160139161139162139163139164139165139166139167139168139169139170139171139172139173139174139175139176139177139178139179139180139181139182139183139184139185139186139187139188139189139190139191139192139193139194139195139196139197139198139199139200139201139202139203139204139205139206139207139208139209139210139211139212139213139214139215139216139217139218139219139220139221139222139223139224139225139226139227139228139229139230139231139232139233139234139235139236139237139238139239139240139241139242139243139244139245139246139247139248139249139250139251139252139253139254139255139256139257139258139259139260139261139262139263139264139265139266139267139268139269139270139271139272139273139274139275139276139277139278139279139280139281139282139283139284139285139286139287139288139289139290139291139292139293139294139295139296139297139298139299139300139301139302139303139304139305139306139307139308139309139310139311139312139313139314139315139316139317139318139319139320139321139322139323139324139325139326139327139328139329139330139331139332139333139334139335139336139337139338139339139340139341139342139343139344139345139346139347139348139349139350139351139352139353139354139355139356139357139358139359139360139361139362139363139364139365139366139367139368139369139370139371139372139373139374139375139376139377139378139379139380139381139382139383139384139385139386139387139388139389139390139391139392139393139394139395139396139397139398139399139400139401139402139403139404139405139406139407139408139409139410139411139412139413139414139415139416139417139418139419139420139421139422139423139424139425139426139427139428139429139430139431139432139433139434139435139436139437139438139439139440139441139442139443139444139445139446139447139448139449139450139451139452139453139454139455139456139457139458139459139460139461139462139463139464139465139466139467139468139469139470139471139472139473139474139475139476139477139478139479139480139481139482139483139484139485139486139487139488139489139490139491139492139493139494139495139496139497139498139499139500139501139502139503139504139505139506139507139508139509139510139511139512139513139514139515139516139517139518139519139520139521139522139523139524139525139526139527139528139529139530139531139532139533139534139535139536139537139538139539139540139541139542139543139544139545139546139547139548139549139550139551139552139553139554139555139556139557139558139559139560139561139562139563139564139565139566139567139568139569139570139571139572139573139574139575139576139577139578139579139580139581139582139583139584139585139586139587139588139589139590139591139592139593139594139595139596139597139598139599139600139601139602139603139604139605139606139607139608139609139610139611139612139613139614139615139616139617139618139619139620139621139622139623139624139625139626139627139628139629139630139631139632139633139634139635139636139637139638139639139640139641139642139643139644139645139646139647139648139649139650139651139652139653139654139655139656139657139658139659139660139661139662139663139664139665139666139667139668139669139670139671139672139673139674139675139676139677139678139679139680139681139682139683139684139685139686139687139688139689139690139691139692139693139694139695139696139697139698139699139700139701139702139703139704139705139706139707139708139709139710139711139712139713139714139715139716139717139718139719139720139721139722139723139724139725139726139727139728139729139730139731139732139733139734139735139736139737139738139739139740139741139742139743139744139745139746139747139748139749139750139751139752139753139754139755139756139757139758139759139760139761139762139763139764139765139766139767139768139769139770139771139772139773139774139775139776139777139778139779139780139781139782139783139784139785139786139787139788139789139790139791139792139793139794139795139796139797139798139799139800139801139802139803139804139805139806139807139808139809139810139811139812139813139814139815139816139817139818139819139820139821139822139823139824139825139826139827139828139829139830139831139832139833139834139835139836139837139838139839139840139841139842139843139844139845139846139847139848139849139850139851139852139853139854139855139856139857139858139859139860139861139862139863139864139865139866139867139868139869139870139871139872139873139874139875139876139877139878139879139880139881139882139883139884139885139886139887139888139889139890139891139892139893139894139895139896139897139898139899139900139901139902139903139904139905139906139907139908139909139910139911139912139913139914139915139916139917139918139919139920139921139922139923139924139925139926139927139928139929139930139931139932139933139934139935139936139937139938139939139940139941139942139943139944139945139946139947139948139949139950139951139952139953139954139955139956139957139958139959139960139961139962139963139964139965139966139967139968139969139970139971139972139973139974139975139976139977139978139979139980139981139982139983139984139985139986139987139988139989139990139991139992139993139994139995139996139997139998139999140000140001140002140003140004140005140006140007140008140009140010140011140012140013140014140015140016140017140018140019140020140021140022140023140024140025140026140027140028140029140030140031140032140033140034140035140036140037140038140039140040140041140042140043140044140045140046140047140048140049140050140051140052140053140054140055140056140057140058140059140060140061140062140063140064140065140066140067140068140069140070140071140072140073140074140075140076140077140078140079140080140081140082140083140084140085140086140087140088140089140090140091140092140093140094140095140096140097140098140099140100140101140102140103140104140105140106140107140108140109140110140111140112140113140114140115140116140117140118140119140120140121140122140123140124140125140126140127140128140129140130140131140132140133140134140135140136140137140138140139140140140141140142140143140144140145140146140147140148140149140150140151140152140153140154140155140156140157140158140159140160140161140162140163140164140165140166140167140168140169140170140171140172140173140174140175140176140177140178140179140180140181140182140183140184140185140186140187140188140189140190140191140192140193140194140195140196140197140198140199140200140201140202140203140204140205140206140207140208140209140210140211140212140213140214140215140216140217140218140219140220140221140222140223140224140225140226140227140228140229140230140231140232140233140234140235140236140237140238140239140240140241140242140243140244140245140246140247140248140249140250140251140252140253140254140255140256140257140258140259140260140261140262140263140264140265140266140267140268140269140270140271140272140273140274140275140276140277140278140279140280140281140282140283140284140285140286140287140288140289140290140291140292140293140294140295140296140297140298140299140300140301140302140303140304140305140306140307140308140309140310140311140312140313140314140315140316140317140318140319140320140321140322140323140324140325140326140327140328140329140330140331140332140333140334140335140336140337140338140339140340140341140342140343140344140345140346140347140348140349140350140351140352140353140354140355140356140357140358140359140360140361140362140363140364140365140366140367140368140369140370140371140372140373140374140375140376140377140378140379140380140381140382140383140384140385140386140387140388140389140390140391140392140393140394140395140396140397140398140399140400140401140402140403140404140405140406140407140408140409140410140411140412140413140414140415140416140417140418140419140420140421140422140423140424140425140426140427140428140429140430140431140432140433140434140435140436140437140438140439140440140441140442140443140444140445140446140447140448140449140450140451140452140453140454140455140456140457140458140459140460140461140462140463140464140465140466140467140468140469140470140471140472140473140474140475140476140477140478140479140480140481140482140483140484140485140486140487140488140489140490140491140492140493140494140495140496140497140498140499140500140501140502140503140504140505140506140507140508140509140510140511140512140513140514140515140516140517140518140519140520140521140522140523140524140525140526140527140528140529140530140531140532140533140534140535140536140537140538140539140540140541140542140543140544140545140546140547140548140549140550140551140552140553140554140555140556140557140558140559140560140561140562140563140564140565140566140567140568140569140570140571140572140573140574140575140576140577140578140579140580140581140582140583140584140585140586140587140588140589140590140591140592140593140594140595140596140597140598140599140600140601140602140603140604140605140606140607140608140609140610140611140612140613140614140615140616140617140618140619140620140621140622140623140624140625140626140627140628140629140630140631140632140633140634140635140636140637140638140639140640140641140642140643140644140645140646140647140648140649140650140651140652140653140654140655140656140657140658140659140660140661140662140663140664140665140666140667140668140669140670140671140672140673140674140675140676140677140678140679140680140681140682140683140684140685140686140687140688140689140690140691140692140693140694140695140696140697140698140699140700140701140702140703140704140705140706140707140708140709140710140711140712140713140714140715140716140717140718140719140720140721140722140723140724140725140726140727140728140729140730140731140732140733140734140735140736140737140738140739140740140741140742140743140744140745140746140747140748140749140750140751140752140753140754140755140756140757140758140759140760140761140762140763140764140765140766140767140768140769140770140771140772140773140774140775140776140777140778140779140780140781140782140783140784140785140786140787140788140789140790140791140792140793140794140795140796140797140798140799140800140801140802140803140804140805140806140807140808140809140810140811140812140813140814140815140816140817140818140819140820140821140822140823140824140825140826140827140828140829140830140831140832140833140834140835140836140837140838140839140840140841140842140843140844140845140846140847140848140849140850140851140852140853140854140855140856140857140858140859140860140861140862140863140864140865140866140867140868140869140870140871140872140873140874140875140876140877140878140879140880140881140882140883140884140885140886140887140888140889140890140891140892140893140894140895140896140897140898140899140900140901140902140903140904140905140906140907140908140909140910140911140912140913140914140915140916140917140918140919140920140921140922140923140924140925140926140927140928140929140930140931140932140933140934140935140936140937140938140939140940140941140942140943140944140945140946140947140948140949140950140951140952140953140954140955140956140957140958140959140960140961140962140963140964140965140966140967140968140969140970140971140972140973140974140975140976140977140978140979140980140981140982140983140984140985140986140987140988140989140990140991140992140993140994140995140996140997140998140999141000141001141002141003141004141005141006141007141008141009141010141011141012141013141014141015141016141017141018141019141020141021141022141023141024141025141026141027141028141029141030141031141032141033141034141035141036141037141038141039141040141041141042141043141044141045141046141047141048141049141050141051141052141053141054141055141056141057141058141059141060141061141062141063141064141065141066141067141068141069141070141071141072141073141074141075141076141077141078141079141080141081141082141083141084141085141086141087141088141089141090141091141092141093141094141095141096141097141098141099141100141101141102141103141104141105141106141107141108141109141110141111141112141113141114141115141116141117141118141119141120141121141122141123141124141125141126141127141128141129141130141131141132141133141134141135141136141137141138141139141140141141141142141143141144141145141146141147141148141149141150141151141152141153141154141155141156141157141158141159141160141161141162141163141164141165141166141167141168141169141170141171141172141173141174141175141176141177141178141179141180141181141182141183141184141185141186141187141188141189141190141191141192141193141194141195141196141197141198141199141200141201141202141203141204141205141206141207141208141209141210141211141212141213141214141215141216141217141218141219141220141221141222141223141224141225141226141227141228141229141230141231141232141233141234141235141236141237141238141239141240141241141242141243141244141245141246141247141248141249141250141251141252141253141254141255141256141257141258141259141260141261141262141263141264141265141266141267141268141269141270141271141272141273141274141275141276141277141278141279141280141281141282141283141284141285141286141287141288141289141290141291141292141293141294141295141296141297141298141299141300141301141302141303141304141305141306141307141308141309141310141311141312141313141314141315141316141317141318141319141320141321141322141323141324141325141326141327141328141329141330141331141332141333141334141335141336141337141338141339141340141341141342141343141344141345141346141347141348141349141350141351141352141353141354141355141356141357141358141359141360141361141362141363141364141365141366141367141368141369141370141371141372141373141374141375141376141377141378141379141380141381141382141383141384141385141386141387141388141389141390141391141392141393141394141395141396141397141398141399141400141401141402141403141404141405141406141407141408141409141410141411141412141413141414141415141416141417141418141419141420141421141422141423141424141425141426141427141428141429141430141431141432141433141434141435141436141437141438141439141440141441141442141443141444141445141446141447141448141449141450141451141452141453141454141455141456141457141458141459141460141461141462141463141464141465141466141467141468141469141470141471141472141473141474141475141476141477141478141479141480141481141482141483141484141485141486141487141488141489141490141491141492141493141494141495141496141497141498141499141500141501141502141503141504141505141506141507141508141509141510141511141512141513141514141515141516141517141518141519141520141521141522141523141524141525141526141527141528141529141530141531141532141533141534141535141536141537141538141539141540141541141542141543141544141545141546141547141548141549141550141551141552141553141554141555141556141557141558141559141560141561141562141563141564141565141566141567141568141569141570141571141572141573141574141575141576141577141578141579141580141581141582141583141584141585141586141587141588141589141590141591141592141593141594141595141596141597141598141599141600141601141602141603141604141605141606141607141608141609141610141611141612141613141614141615141616141617141618141619141620141621141622141623141624141625141626141627141628141629141630141631141632141633141634141635141636141637141638141639141640141641141642141643141644141645141646141647141648141649141650141651141652141653141654141655141656141657141658141659141660141661141662141663141664141665141666141667141668141669141670141671141672141673141674141675141676141677141678141679141680141681141682141683141684141685141686141687141688141689141690141691141692141693141694141695141696141697141698141699141700141701141702141703141704141705141706141707141708141709141710141711141712141713141714141715141716141717141718141719141720141721141722141723141724141725141726141727141728141729141730141731141732141733141734141735141736141737141738141739141740141741141742141743141744141745141746141747141748141749141750141751141752141753141754141755141756141757141758141759141760141761141762141763141764141765141766141767141768141769141770141771141772141773141774141775141776141777141778141779141780141781141782141783141784141785141786141787141788141789141790141791141792141793141794141795141796141797141798141799141800141801141802141803141804141805141806141807141808141809141810141811141812141813141814141815141816141817141818141819141820141821141822141823141824141825141826141827141828141829141830141831141832141833141834141835141836141837141838141839141840141841141842141843141844141845141846141847141848141849141850141851141852141853141854141855141856141857141858141859141860141861141862141863141864141865141866141867141868141869141870141871141872141873141874141875141876141877141878141879141880141881141882141883141884141885141886141887141888141889141890141891141892141893141894141895141896141897141898141899141900141901141902141903141904141905141906141907141908141909141910141911141912141913141914141915141916141917141918141919141920141921141922141923141924141925141926141927141928141929141930141931141932141933141934141935141936141937141938141939141940141941141942141943141944141945141946141947141948141949141950141951141952141953141954141955141956141957141958141959141960141961141962141963141964141965141966141967141968141969141970141971141972141973141974141975141976141977141978141979141980141981141982141983141984141985141986141987141988141989141990141991141992141993141994141995141996141997141998141999142000142001142002142003142004142005142006142007142008142009142010142011142012142013142014142015142016142017142018142019142020142021142022142023142024142025142026142027142028142029142030142031142032142033142034142035142036142037142038142039142040142041142042142043142044142045142046142047142048142049142050142051142052142053142054142055142056142057142058142059142060142061142062142063142064142065142066142067142068142069142070142071142072142073142074142075142076142077142078142079142080142081142082142083142084142085142086142087142088142089142090142091142092142093142094142095142096142097142098142099142100142101142102142103142104142105142106142107142108142109142110142111142112142113142114142115142116142117142118142119142120142121142122142123142124142125142126142127142128142129142130142131142132142133142134142135142136142137142138142139142140142141142142142143142144142145142146142147142148142149142150142151142152142153142154142155142156142157142158142159142160142161142162142163142164142165142166142167142168142169142170142171142172142173142174142175142176142177142178142179142180142181142182142183142184142185142186142187142188142189142190142191142192142193142194142195142196142197142198142199142200142201142202142203142204142205142206142207142208142209142210142211142212142213142214142215142216142217142218142219142220142221142222142223142224142225142226142227142228142229142230142231142232142233142234142235142236142237142238142239142240142241142242142243142244142245142246142247142248142249142250142251142252142253142254142255142256142257142258142259142260142261142262142263142264142265142266142267142268142269142270142271142272142273142274142275142276142277142278142279142280142281142282142283142284142285142286142287142288142289142290142291142292142293142294142295142296142297142298142299142300142301142302142303142304142305142306142307142308142309142310142311142312142313142314142315142316142317142318142319142320142321142322142323142324142325142326142327142328142329142330142331142332142333142334142335142336142337142338142339142340142341142342142343142344142345142346142347142348142349142350142351142352142353142354142355142356142357142358142359142360142361142362142363142364142365142366142367142368142369142370142371142372142373142374142375142376142377142378142379142380142381142382142383142384142385142386142387142388142389142390142391142392142393142394142395142396142397142398142399142400142401142402142403142404142405142406142407142408142409142410142411142412142413142414142415142416142417142418142419142420142421142422142423142424142425142426142427142428142429142430142431142432142433142434142435142436142437142438142439142440142441142442142443142444142445142446142447142448142449142450142451142452142453142454142455142456142457142458142459142460142461142462142463142464142465142466142467142468142469142470142471142472142473142474142475142476142477142478142479142480142481142482142483142484142485142486142487142488142489142490142491142492142493142494142495142496142497142498142499142500142501142502142503142504142505142506142507142508142509142510142511142512142513142514142515142516142517142518142519142520142521142522142523142524142525142526142527142528142529142530142531142532142533142534142535142536142537142538142539142540142541142542142543142544142545142546142547142548142549142550142551142552142553142554142555142556142557142558142559142560142561142562142563142564142565142566142567142568142569142570142571142572142573142574142575142576142577142578142579142580142581142582142583142584142585142586142587142588142589142590142591142592142593142594142595142596142597142598142599142600142601142602142603142604142605142606142607142608142609142610142611142612142613142614142615142616142617142618142619142620142621142622142623142624142625142626142627142628142629142630142631142632142633142634142635142636142637142638142639142640142641142642142643142644142645142646142647142648142649142650142651142652142653142654142655142656142657142658142659142660142661142662142663142664142665142666142667142668142669142670142671142672142673142674142675142676142677142678142679142680142681142682142683142684142685142686142687142688142689142690142691142692142693142694142695142696142697142698142699142700142701142702142703142704142705142706142707142708142709142710142711142712142713142714142715142716142717142718142719142720142721142722142723142724142725142726142727142728142729142730142731142732142733142734142735142736142737142738142739142740142741142742142743142744142745142746142747142748142749142750142751142752142753142754142755142756142757142758142759142760142761142762142763142764142765142766142767142768142769142770142771142772142773142774142775142776142777142778142779142780142781142782142783142784142785142786142787142788142789142790142791142792142793142794142795142796142797142798142799142800142801142802142803142804142805142806142807142808142809142810142811142812142813142814142815142816142817142818142819142820142821142822142823142824142825142826142827142828142829142830142831142832142833142834142835142836142837142838142839142840142841142842142843142844142845142846142847142848142849142850142851142852142853142854142855142856142857142858142859142860142861142862142863142864142865142866142867142868142869142870142871142872142873142874142875142876142877142878142879142880142881142882142883142884142885142886142887142888142889142890142891142892142893142894142895142896142897142898142899142900142901142902142903142904142905142906142907142908142909142910142911142912142913142914142915142916142917142918142919142920142921142922142923142924142925142926142927142928142929142930142931142932142933142934142935142936142937142938142939142940142941142942142943142944142945142946142947142948142949142950142951142952142953142954142955142956142957142958142959142960142961142962142963142964142965142966142967142968142969142970142971142972142973142974142975142976142977142978142979142980142981142982142983142984142985142986142987142988142989142990142991142992142993142994142995142996142997142998142999143000143001143002143003143004143005143006143007143008143009143010143011143012143013143014143015143016143017143018143019143020143021143022143023143024143025143026143027143028143029143030143031143032143033143034143035143036143037143038143039143040143041143042143043143044143045143046143047143048143049143050143051143052143053143054143055143056143057143058143059143060143061143062143063143064143065143066143067143068143069143070143071143072143073143074143075143076143077143078143079143080143081143082143083143084143085143086143087143088143089143090143091143092143093143094143095143096143097143098143099143100143101143102143103143104143105143106143107143108143109143110143111143112143113143114143115143116143117143118143119143120143121143122143123143124143125143126143127143128143129143130143131143132143133143134143135143136143137143138143139143140143141143142143143143144143145143146143147143148143149143150143151143152143153143154143155143156143157143158143159143160143161143162143163143164143165143166143167143168143169143170143171143172143173143174143175143176143177143178143179143180143181143182143183143184143185143186143187143188143189143190143191143192143193143194143195143196143197143198143199143200143201143202143203143204143205143206143207143208143209143210143211143212143213143214143215143216143217143218143219143220143221143222143223143224143225143226143227143228143229143230143231143232143233143234143235143236143237143238143239143240143241143242143243143244143245143246143247143248143249143250143251143252143253143254143255143256143257143258143259143260143261143262143263143264143265143266143267143268143269143270143271143272143273143274143275143276143277143278143279143280143281143282143283143284143285143286143287143288143289143290143291143292143293143294143295143296143297143298143299143300143301143302143303143304143305143306143307143308143309143310143311143312143313143314143315143316143317143318143319143320143321143322143323143324143325143326143327143328143329143330143331143332143333143334143335143336143337143338143339143340143341143342143343143344143345143346143347143348143349143350143351143352143353143354143355143356143357143358143359143360143361143362143363143364143365143366143367143368143369143370143371143372143373143374143375143376143377143378143379143380143381143382143383143384143385143386143387143388143389143390143391143392143393143394143395143396143397143398143399143400143401143402143403143404143405143406143407143408143409143410143411143412143413143414143415143416143417143418143419143420143421143422143423143424143425143426143427143428143429143430143431143432143433143434143435143436143437143438143439143440143441143442143443143444143445143446143447143448143449143450143451143452143453143454143455143456143457143458143459143460143461143462143463143464143465143466143467143468143469143470143471143472143473143474143475143476143477143478143479143480143481143482143483143484143485143486143487143488143489143490143491143492143493143494143495143496143497143498143499143500143501143502143503143504143505143506143507143508143509143510143511143512143513143514143515143516143517143518143519143520143521143522143523143524143525143526143527143528143529143530143531143532143533143534143535143536143537143538143539143540143541143542143543143544143545143546143547143548143549143550143551143552143553143554143555143556143557143558143559143560143561143562143563143564143565143566143567143568143569143570143571143572143573143574143575143576143577143578143579143580143581143582143583143584143585143586143587143588143589143590143591143592143593143594143595143596143597143598143599143600143601143602143603143604143605143606143607143608143609143610143611143612143613143614143615143616143617143618143619143620143621143622143623143624143625143626143627143628143629143630143631143632143633143634143635143636143637143638143639143640143641143642143643143644143645143646143647143648143649143650143651143652143653143654143655143656143657143658143659143660143661143662143663143664143665143666143667143668143669143670143671143672143673143674143675143676143677143678143679143680143681143682143683143684143685143686143687143688143689143690143691143692143693143694143695143696143697143698143699143700143701143702143703143704143705143706143707143708143709143710143711143712143713143714143715143716143717143718143719143720143721143722143723143724143725143726143727143728143729143730143731143732143733143734143735143736143737143738143739143740143741143742143743143744143745143746143747143748143749143750143751143752143753143754143755143756143757143758143759143760143761143762143763143764143765143766143767143768143769143770143771143772143773143774143775143776143777143778143779143780143781143782143783143784143785143786143787143788143789143790143791143792143793143794143795143796143797143798143799143800143801143802143803143804143805143806143807143808143809143810143811143812143813143814143815143816143817143818143819143820143821143822143823143824143825143826143827143828143829143830143831143832143833143834143835143836143837143838143839143840143841143842143843143844143845143846143847143848143849143850143851143852143853143854143855143856143857143858143859143860143861143862143863143864143865143866143867143868143869143870143871143872143873143874143875143876143877143878143879143880143881143882143883143884143885143886143887143888143889143890143891143892143893143894143895143896143897143898143899143900143901143902143903143904143905143906143907143908143909143910143911143912143913143914143915143916143917143918143919143920143921143922143923143924143925143926143927143928143929143930143931143932143933143934143935143936143937143938143939143940143941143942143943143944143945143946143947143948143949143950143951143952143953143954143955143956143957143958143959143960143961143962143963143964143965143966143967143968143969143970143971143972143973143974143975143976143977143978143979143980143981143982143983143984143985143986143987143988143989143990143991143992143993143994143995143996143997143998143999144000144001144002144003144004144005144006144007144008144009144010144011144012144013144014144015144016144017144018144019144020144021144022144023144024144025144026144027144028144029144030144031144032144033144034144035144036144037144038144039144040144041144042144043144044144045144046144047144048144049144050144051144052144053144054144055144056144057144058144059144060144061144062144063144064144065144066144067144068144069144070144071144072144073144074144075144076144077144078144079144080144081144082144083144084144085144086144087144088144089144090144091144092144093144094144095144096144097144098144099144100144101144102144103144104144105144106144107144108144109144110144111144112144113144114144115144116144117144118144119144120144121144122144123144124144125144126144127144128144129144130144131144132144133144134144135144136144137144138144139144140144141144142144143144144144145144146144147144148144149144150144151144152144153144154144155144156144157144158144159144160144161144162144163144164144165144166144167144168144169144170144171144172144173144174144175144176144177144178144179144180144181144182144183144184144185144186144187144188144189144190144191144192144193144194144195144196144197144198144199144200144201144202144203144204144205144206144207144208144209144210144211144212144213144214144215144216144217144218144219144220144221144222144223144224144225144226144227144228144229144230144231144232144233144234144235144236144237144238144239144240144241144242144243144244144245144246144247144248144249144250144251144252144253144254144255144256144257144258144259144260144261144262144263144264144265144266144267144268144269144270144271144272144273144274144275144276144277144278144279144280144281144282144283144284144285144286144287144288144289144290144291144292144293144294144295144296144297144298144299144300144301144302144303144304144305144306144307144308144309144310144311144312144313144314144315144316144317144318144319144320144321144322144323144324144325144326144327144328144329144330144331144332144333144334144335144336144337144338144339144340144341144342144343144344144345144346144347144348144349144350144351144352144353144354144355144356144357144358144359144360144361144362144363144364144365144366144367144368144369144370144371144372144373144374144375144376144377144378144379144380144381144382144383144384144385144386144387144388144389144390144391144392144393144394144395144396144397144398144399144400144401144402144403144404144405144406144407144408144409144410144411144412144413144414144415144416144417144418144419144420144421144422144423144424144425144426144427144428144429144430144431144432144433144434144435144436144437144438144439144440144441144442144443144444144445144446144447144448144449144450144451144452144453144454144455144456144457144458144459144460144461144462144463144464144465144466144467144468144469144470144471144472144473144474144475144476144477144478144479144480144481144482144483144484144485144486144487144488144489144490144491144492144493144494144495144496144497144498144499144500144501144502144503144504144505144506144507144508144509144510144511144512144513144514144515144516144517144518144519144520144521144522144523144524144525144526144527144528144529144530144531144532144533144534144535144536144537144538144539144540144541144542144543144544144545144546144547144548144549144550144551144552144553144554144555144556144557144558144559144560144561144562144563144564144565144566144567144568144569144570144571144572144573144574144575144576144577144578144579144580144581144582144583144584144585144586144587144588144589144590144591144592144593144594144595144596144597144598144599144600144601144602144603144604144605144606144607144608144609144610144611144612144613144614144615144616144617144618144619144620144621144622144623144624144625144626144627144628144629144630144631144632144633144634144635144636144637144638144639144640144641144642144643144644144645144646144647144648144649144650144651144652144653144654144655144656144657144658144659144660144661144662144663144664144665144666144667144668144669144670144671144672144673144674144675144676144677144678144679144680144681144682144683144684144685144686144687144688144689144690144691144692144693144694144695144696144697144698144699144700144701144702144703144704144705144706144707144708144709144710144711144712144713144714144715144716144717144718144719144720144721144722144723144724144725144726144727144728144729144730144731144732144733144734144735144736144737144738144739144740144741144742144743144744144745144746144747144748144749144750144751144752144753144754144755144756144757144758144759144760144761144762144763144764144765144766144767144768144769144770144771144772144773144774144775144776144777144778144779144780144781144782144783144784144785144786144787144788144789144790144791144792144793144794144795144796144797144798144799144800144801144802144803144804144805144806144807144808144809144810144811144812144813144814144815144816144817144818144819144820144821144822144823144824144825144826144827144828144829144830144831144832144833144834144835144836144837144838144839144840144841144842144843144844144845144846144847144848144849144850144851144852144853144854144855144856144857144858144859144860144861144862144863144864144865144866144867144868144869144870144871144872144873144874144875144876144877144878144879144880144881144882144883144884144885144886144887144888144889144890144891144892144893144894144895144896144897144898144899144900144901144902144903144904144905144906144907144908144909144910144911144912144913144914144915144916144917144918144919144920144921144922144923144924144925144926144927144928144929144930144931144932144933144934144935144936144937144938144939144940144941144942144943144944144945144946144947144948144949144950144951144952144953144954144955144956144957144958144959144960144961144962144963144964144965144966144967144968144969144970144971144972144973144974144975144976144977144978144979144980144981144982144983144984144985144986144987144988144989144990144991144992144993144994144995144996144997144998144999145000145001145002145003145004145005145006145007145008145009145010145011145012145013145014145015145016145017145018145019145020145021145022145023145024145025145026145027145028145029145030145031145032145033145034145035145036145037145038145039145040145041145042145043145044145045145046145047145048145049145050145051145052145053145054145055145056145057145058145059145060145061145062145063145064145065145066145067145068145069145070145071145072145073145074145075145076145077145078145079145080145081145082145083145084145085145086145087145088145089145090145091145092145093145094145095145096145097145098145099145100145101145102145103145104145105145106145107145108145109145110145111145112145113145114145115145116145117145118145119145120145121145122145123145124145125145126145127145128145129145130145131145132145133145134145135145136145137145138145139145140145141145142145143145144145145145146145147145148145149145150145151145152145153145154145155145156145157145158145159145160145161145162145163145164145165145166145167145168145169145170145171145172145173145174145175145176145177145178145179145180145181145182145183145184145185145186145187145188145189145190145191145192145193145194145195145196145197145198145199145200145201145202145203145204145205145206145207145208145209145210145211145212145213145214145215145216145217145218145219145220145221145222145223145224145225145226145227145228145229145230145231145232145233145234145235145236145237145238145239145240145241145242145243145244145245145246145247145248145249145250145251145252145253145254145255145256145257145258145259145260145261145262145263145264145265145266145267145268145269145270145271145272145273145274145275145276145277145278145279145280145281145282145283145284145285145286145287145288145289145290145291145292145293145294145295145296145297145298145299145300145301145302145303145304145305145306145307145308145309145310145311145312145313145314145315145316145317145318145319145320145321145322145323145324145325145326145327145328145329145330145331145332145333145334145335145336145337145338145339145340145341145342145343145344145345145346145347145348145349145350145351145352145353145354145355145356145357145358145359145360145361145362145363145364145365145366145367145368145369145370145371145372145373145374145375145376145377145378145379145380145381145382145383145384145385145386145387145388145389145390145391145392145393145394145395145396145397145398145399145400145401145402145403145404145405145406145407145408145409145410145411145412145413145414145415145416145417145418145419145420145421145422145423145424145425145426145427145428145429145430145431145432145433145434145435145436145437145438145439145440145441145442145443145444145445145446145447145448145449145450145451145452145453145454145455145456145457145458145459145460145461145462145463145464145465145466145467145468145469145470145471145472145473145474145475145476145477145478145479145480145481145482145483145484145485145486145487145488145489145490145491145492145493145494145495145496145497145498145499145500145501145502145503145504145505145506145507145508145509145510145511145512145513145514145515145516145517145518145519145520145521145522145523145524145525145526145527145528145529145530145531145532145533145534145535145536145537145538145539145540145541145542145543145544145545145546145547145548145549145550145551145552145553145554145555145556145557145558145559145560145561145562145563145564145565145566145567145568145569145570145571145572145573145574145575145576145577145578145579145580145581145582145583145584145585145586145587145588145589145590145591145592145593145594145595145596145597145598145599145600145601145602145603145604145605145606145607145608145609145610145611145612145613145614145615145616145617145618145619145620145621145622145623145624145625145626145627145628145629145630145631145632145633145634145635145636145637145638145639145640145641145642145643145644145645145646145647145648145649145650145651145652145653145654145655145656145657145658145659145660145661145662145663145664145665145666145667145668145669145670145671145672145673145674145675145676145677145678145679145680145681145682145683145684145685145686145687145688145689145690145691145692145693145694145695145696145697145698145699145700145701145702145703145704145705145706145707145708145709145710145711145712145713145714145715145716145717145718145719145720145721145722145723145724145725145726145727145728145729145730145731145732145733145734145735145736145737145738145739145740145741145742145743145744145745145746145747145748145749145750145751145752145753145754145755145756145757145758145759145760145761145762145763145764145765145766145767145768145769145770145771145772145773145774145775145776145777145778145779145780145781145782145783145784145785145786145787145788145789145790145791145792145793145794145795145796145797145798145799145800145801145802145803145804145805145806145807145808145809145810145811145812145813145814145815145816145817145818145819145820145821145822145823145824145825145826145827145828145829145830145831145832145833145834145835145836145837145838145839145840145841145842145843145844145845145846145847145848145849145850145851145852145853145854145855145856145857145858145859145860145861145862145863145864145865145866145867145868145869145870145871145872145873145874145875145876145877145878145879145880145881145882145883145884145885145886145887145888145889145890145891145892145893145894145895145896145897145898145899145900145901145902145903145904145905145906145907145908145909145910145911145912145913145914145915145916145917145918145919145920145921145922145923145924145925145926145927145928145929145930145931145932145933145934145935145936145937145938145939145940145941145942145943145944145945145946145947145948145949145950145951145952145953145954145955145956145957145958145959145960145961145962145963145964145965145966145967145968145969145970145971145972145973145974145975145976145977145978145979145980145981145982145983145984145985145986145987145988145989145990145991145992145993145994145995145996145997145998145999146000146001146002146003146004146005146006146007146008146009146010146011146012146013146014146015146016146017146018146019146020146021146022146023146024146025146026146027146028146029146030146031146032146033146034146035146036146037146038146039146040146041146042146043146044146045146046146047146048146049146050146051146052146053146054146055146056146057146058146059146060146061146062146063146064146065146066146067146068146069146070146071146072146073146074146075146076146077146078146079146080146081146082146083146084146085146086146087146088146089146090146091146092146093146094146095146096146097146098146099146100146101146102146103146104146105146106146107146108146109146110146111146112146113146114146115146116146117146118146119146120146121146122146123146124146125146126146127146128146129146130146131146132146133146134146135146136146137146138146139146140146141146142146143146144146145146146146147146148146149146150146151146152146153146154146155146156146157146158146159146160146161146162146163146164146165146166146167146168146169146170146171146172146173146174146175146176146177146178146179146180146181146182146183146184146185146186146187146188146189146190146191146192146193146194146195146196146197146198146199146200146201146202146203146204146205146206146207146208146209146210146211146212146213146214146215146216146217146218146219146220146221146222146223146224146225146226146227146228146229146230146231146232146233146234146235146236146237146238146239146240146241146242146243146244146245146246146247146248146249146250146251146252146253146254146255146256146257146258146259146260146261146262146263146264146265146266146267146268146269146270146271146272146273146274146275146276146277146278146279146280146281146282146283146284146285146286146287146288146289146290146291146292146293146294146295146296146297146298146299146300146301146302146303146304146305146306146307146308146309146310146311146312146313146314146315146316146317146318146319146320146321146322146323146324146325146326146327146328146329146330146331146332146333146334146335146336146337146338146339146340146341146342146343146344146345146346146347146348146349146350146351146352146353146354146355146356146357146358146359146360146361146362146363146364146365146366146367146368146369146370146371146372146373146374146375146376146377146378146379146380146381146382146383146384146385146386146387146388146389146390146391146392146393146394146395146396146397146398146399146400146401146402146403146404146405146406146407146408146409146410146411146412146413146414146415146416146417146418146419146420146421146422146423146424146425146426146427146428146429146430146431146432146433146434146435146436146437146438146439146440146441146442146443146444146445146446146447146448146449146450146451146452146453146454146455146456146457146458146459146460146461146462146463146464146465146466146467146468146469146470146471146472146473146474146475146476146477146478146479146480146481146482146483146484146485146486146487146488146489146490146491146492146493146494146495146496146497146498146499146500146501146502146503146504146505146506146507146508146509146510146511146512146513146514146515146516146517146518146519146520146521146522146523146524146525146526146527146528146529146530146531146532146533146534146535146536146537146538146539146540146541146542146543146544146545146546146547146548146549146550146551146552146553146554146555146556146557146558146559146560146561146562146563146564146565146566146567146568146569146570146571146572146573146574146575146576146577146578146579146580146581146582146583146584146585146586146587146588146589146590146591146592146593146594146595146596146597146598146599146600146601146602146603146604146605146606146607146608146609146610146611146612146613146614146615146616146617146618146619146620146621146622146623146624146625146626146627146628146629146630146631146632146633146634146635146636146637146638146639146640146641146642146643146644146645146646146647146648146649146650146651146652146653146654146655146656146657146658146659146660146661146662146663146664146665146666146667146668146669146670146671146672146673146674146675146676146677146678146679146680146681146682146683146684146685146686146687146688146689146690146691146692146693146694146695146696146697146698146699146700146701146702146703146704146705146706146707146708146709146710146711146712146713146714146715146716146717146718146719146720146721146722146723146724146725146726146727146728146729146730146731146732146733146734146735146736146737146738146739146740146741146742146743146744146745146746146747146748146749146750146751146752146753146754146755146756146757146758146759146760146761146762146763146764146765146766146767146768146769146770146771146772146773146774146775146776146777146778146779146780146781146782146783146784146785146786146787146788146789146790146791146792146793146794146795146796146797146798146799146800146801146802146803146804146805146806146807146808146809146810146811146812146813146814146815146816146817146818146819146820146821146822146823146824146825146826146827146828146829146830146831146832146833146834146835146836146837146838146839146840146841146842146843146844146845146846146847146848146849146850146851146852146853146854146855146856146857146858146859146860146861146862146863146864146865146866146867146868146869146870146871146872146873146874146875146876146877146878146879146880146881146882146883146884146885146886146887146888146889146890146891146892146893146894146895146896146897146898146899146900146901146902146903146904146905146906146907146908146909146910146911146912146913146914146915146916146917146918146919146920146921146922146923146924146925146926146927146928146929146930146931146932146933146934146935146936146937146938146939146940146941146942146943146944146945146946146947146948146949146950146951146952146953146954146955146956146957146958146959146960146961146962146963146964146965146966146967146968146969146970146971146972146973146974146975146976146977146978146979146980146981146982146983146984146985146986146987146988146989146990146991146992146993146994146995146996146997146998146999147000147001147002147003147004147005147006147007147008147009147010147011147012147013147014147015147016147017147018147019147020147021147022147023147024147025147026147027147028147029147030147031147032147033147034147035147036147037147038147039147040147041147042147043147044147045147046147047147048147049147050147051147052147053147054147055147056147057147058147059147060147061147062147063147064147065147066147067147068147069147070147071147072147073147074147075147076147077147078147079147080147081147082147083147084147085147086147087147088147089147090147091147092147093147094147095147096147097147098147099147100147101147102147103147104147105147106147107147108147109147110147111147112147113147114147115147116147117147118147119147120147121147122147123147124147125147126147127147128147129147130147131147132147133147134147135147136147137147138147139147140147141147142147143147144147145147146147147147148147149147150147151147152147153147154147155147156147157147158147159147160147161147162147163147164147165147166147167147168147169147170147171147172147173147174147175147176147177147178147179147180147181147182147183147184147185147186147187147188147189147190147191147192147193147194147195147196147197147198147199147200147201147202147203147204147205147206147207147208147209147210147211147212147213147214147215147216147217147218147219147220147221147222147223147224147225147226147227147228147229147230147231147232147233147234147235147236147237147238147239147240147241147242147243147244147245147246147247147248147249147250147251147252147253147254147255147256147257147258147259147260147261147262147263147264147265147266147267147268147269147270147271147272147273147274147275147276147277147278147279147280147281147282147283147284147285147286147287147288147289147290147291147292147293147294147295147296147297147298147299147300147301147302147303147304147305147306147307147308147309147310147311147312147313147314147315147316147317147318147319147320147321147322147323147324147325147326147327147328147329147330147331147332147333147334147335147336147337147338147339147340147341147342147343147344147345147346147347147348147349147350147351147352147353147354147355147356147357147358147359147360147361147362147363147364147365147366147367147368147369147370147371147372147373147374147375147376147377147378147379147380147381147382147383147384147385147386147387147388147389147390147391147392147393147394147395147396147397147398147399147400147401147402147403147404147405147406147407147408147409147410147411147412147413147414147415147416147417147418147419147420147421147422147423147424147425147426147427147428147429147430147431147432147433147434147435147436147437147438147439147440147441147442147443147444147445147446147447147448147449147450147451147452147453147454147455147456147457147458147459147460147461147462147463147464147465147466147467147468147469147470147471147472147473147474147475147476147477147478147479147480147481147482147483147484147485147486147487147488147489147490147491147492147493147494147495147496147497147498147499147500147501147502147503147504147505147506147507147508147509147510147511147512147513147514147515147516147517147518147519147520147521147522147523147524147525147526147527147528147529147530147531147532147533147534147535147536147537147538147539147540147541147542147543147544147545147546147547147548147549147550147551147552147553147554147555147556147557147558147559147560147561147562147563147564147565147566147567147568147569147570147571147572147573147574147575147576147577147578147579147580147581147582147583147584147585147586147587147588147589147590147591147592147593147594147595147596147597147598147599147600147601147602147603147604147605147606147607147608147609147610147611147612147613147614147615147616147617147618147619147620147621147622147623147624147625147626147627147628147629147630147631147632147633147634147635147636147637147638147639147640147641147642147643147644147645147646147647147648147649147650147651147652147653147654147655147656147657147658147659147660147661147662147663147664147665147666147667147668147669147670147671147672147673147674147675147676147677147678147679147680147681147682147683147684147685147686147687147688147689147690147691147692147693147694147695147696147697147698147699147700147701147702147703147704147705147706147707147708147709147710147711147712147713147714147715147716147717147718147719147720147721147722147723147724147725147726147727147728147729147730147731147732147733147734147735147736147737147738147739147740147741147742147743147744147745147746147747147748147749147750147751147752147753147754147755147756147757147758147759147760147761147762147763147764147765147766147767147768147769147770147771147772147773147774147775147776147777147778147779147780147781147782147783147784147785147786147787147788147789147790147791147792147793147794147795147796147797147798147799147800147801147802147803147804147805147806147807147808147809147810147811147812147813147814147815147816147817147818147819147820147821147822147823147824147825147826147827147828147829147830147831147832147833147834147835147836147837147838147839147840147841147842147843147844147845147846147847147848147849147850147851147852147853147854147855147856147857147858147859147860147861147862147863147864147865147866147867147868147869147870147871147872147873147874147875147876147877147878147879147880147881147882147883147884147885147886147887147888147889147890147891147892147893147894147895147896147897147898147899147900147901147902147903147904147905147906147907147908147909147910147911147912147913147914147915147916147917147918147919147920147921147922147923147924147925147926147927147928147929147930147931147932147933147934147935147936147937147938147939147940147941147942147943147944147945147946147947147948147949147950147951147952147953147954147955147956147957147958147959147960147961147962147963147964147965147966147967147968147969147970147971147972147973147974147975147976147977147978147979147980147981147982147983147984147985147986147987147988147989147990147991147992147993147994147995147996147997147998147999148000148001148002148003148004148005148006148007148008148009148010148011148012148013148014148015148016148017148018148019148020148021148022148023148024148025148026148027148028148029148030148031148032148033148034148035148036148037148038148039148040148041148042148043148044148045148046148047148048148049148050148051148052148053148054148055148056148057148058148059148060148061148062148063148064148065148066148067148068148069148070148071148072148073148074148075148076148077148078148079148080148081148082148083148084148085148086148087148088148089148090148091148092148093148094148095148096148097148098148099148100148101148102148103148104148105148106148107148108148109148110148111148112148113148114148115148116148117148118148119148120148121148122148123148124148125148126148127148128148129148130148131148132148133148134148135148136148137148138148139148140148141148142148143148144148145148146148147148148148149148150148151148152148153148154148155148156148157148158148159148160148161148162148163148164148165148166148167148168148169148170148171148172148173148174148175148176148177148178148179148180148181148182148183148184148185148186148187148188148189148190148191148192148193148194148195148196148197148198148199148200148201148202148203148204148205148206148207148208148209148210148211148212148213148214148215148216148217148218148219148220148221148222148223148224148225148226148227148228148229148230148231148232148233148234148235148236148237148238148239148240148241148242148243148244148245148246148247148248148249148250148251148252148253148254148255148256148257148258148259148260148261148262148263148264148265148266148267148268148269148270148271148272148273148274148275148276148277148278148279148280148281148282148283148284148285148286148287148288148289148290148291148292148293148294148295148296148297148298148299148300148301148302148303148304148305148306148307148308148309148310148311148312148313148314148315148316148317148318148319148320148321148322148323148324148325148326148327148328148329148330148331148332148333148334148335148336148337148338148339148340148341148342148343148344148345148346148347148348148349148350148351148352148353148354148355148356148357148358148359148360148361148362148363148364148365148366148367148368148369148370148371148372148373148374148375148376148377148378148379148380148381148382148383148384148385148386148387148388148389148390148391148392148393148394148395148396148397148398148399148400148401148402148403148404148405148406148407148408148409148410148411148412148413148414148415148416148417148418148419148420148421148422148423148424148425148426148427148428148429148430148431148432148433148434148435148436148437148438148439148440148441148442148443148444148445148446148447148448148449148450148451148452148453148454148455148456148457148458148459148460148461148462148463148464148465148466148467148468148469148470148471148472148473148474148475148476148477148478148479148480148481148482148483148484148485148486148487148488148489148490148491148492148493148494148495148496148497148498148499148500148501148502148503148504148505148506148507148508148509148510148511148512148513148514148515148516148517148518148519148520148521148522148523148524148525148526148527148528148529148530148531148532148533148534148535148536148537148538148539148540148541148542148543148544148545148546148547148548148549148550148551148552148553148554148555148556148557148558148559148560148561148562148563148564148565148566148567148568148569148570148571148572148573148574148575148576148577148578148579148580148581148582148583148584148585148586148587148588148589148590148591148592148593148594148595148596148597148598148599148600148601148602148603148604148605148606148607148608148609148610148611148612148613148614148615148616148617148618148619148620148621148622148623148624148625148626148627148628148629148630148631148632148633148634148635148636148637148638148639148640148641148642148643148644148645148646148647148648148649148650148651148652148653148654148655148656148657148658148659148660148661148662148663148664148665148666148667148668148669148670148671148672148673148674148675148676148677148678148679148680148681148682148683148684148685148686148687148688148689148690148691148692148693148694148695148696148697148698148699148700148701148702148703148704148705148706148707148708148709148710148711148712148713148714148715148716148717148718148719148720148721148722148723148724148725148726148727148728148729148730148731148732148733148734148735148736148737148738148739148740148741148742148743148744148745148746148747148748148749148750148751148752148753148754148755148756148757148758148759148760148761148762148763148764148765148766148767148768148769148770148771148772148773148774148775148776148777148778148779148780148781148782148783148784148785148786148787148788148789148790148791148792148793148794148795148796148797148798148799148800148801148802148803148804148805148806148807148808148809148810148811148812148813148814148815148816148817148818148819148820148821148822148823148824148825148826148827148828148829148830148831148832148833148834148835148836148837148838148839148840148841148842148843148844148845148846148847148848148849148850148851148852148853148854148855148856148857148858148859148860148861148862148863148864148865148866148867148868148869148870148871148872148873148874148875148876148877148878148879148880148881148882148883148884148885148886148887148888148889148890148891148892148893148894148895148896148897148898148899148900148901148902148903148904148905148906148907148908148909148910148911148912148913148914148915148916148917148918148919148920148921148922148923148924148925148926148927148928148929148930148931148932148933148934148935148936148937148938148939148940148941148942148943148944148945148946148947148948148949148950148951148952148953148954148955148956148957148958148959148960148961148962148963148964148965148966148967148968148969148970148971148972148973148974148975148976148977148978148979148980148981148982148983148984148985148986148987148988148989148990148991148992148993148994148995148996148997148998148999149000149001149002149003149004149005149006149007149008149009149010149011149012149013149014149015149016149017149018149019149020149021149022149023149024149025149026149027149028149029149030149031149032149033149034149035149036149037149038149039149040149041149042149043149044149045149046149047149048149049149050149051149052149053149054149055149056149057149058149059149060149061149062149063149064149065149066149067149068149069149070149071149072149073149074149075149076149077149078149079149080149081149082149083149084149085149086149087149088149089149090149091149092149093149094149095149096149097149098149099149100149101149102149103149104149105149106149107149108149109149110149111149112149113149114149115149116149117149118149119149120149121149122149123149124149125149126149127149128149129149130149131149132149133149134149135149136149137149138149139149140149141149142149143149144149145149146149147149148149149149150149151149152149153149154149155149156149157149158149159149160149161149162149163149164149165149166149167149168149169149170149171149172149173149174149175149176149177149178149179149180149181149182149183149184149185149186149187149188149189149190149191149192149193149194149195149196149197149198149199149200149201149202149203149204149205149206149207149208149209149210149211149212149213149214149215149216149217149218149219149220149221149222149223149224149225149226149227149228149229149230149231149232149233149234149235149236149237149238149239149240149241149242149243149244149245149246149247149248149249149250149251149252149253149254149255149256149257149258149259149260149261149262149263149264149265149266149267149268149269149270149271149272149273149274149275149276149277149278149279149280149281149282149283149284149285149286149287149288149289149290149291149292149293149294149295149296149297149298149299149300149301149302149303149304149305149306149307149308149309149310149311149312149313149314149315149316149317149318149319149320149321149322149323149324149325149326149327149328149329149330149331149332149333149334149335149336149337149338149339149340149341149342149343149344149345149346149347149348149349149350149351149352149353149354149355149356149357149358149359149360149361149362149363149364149365149366149367149368149369149370149371149372149373149374149375149376149377149378149379149380149381149382149383149384149385149386149387149388149389149390149391149392149393149394149395149396149397149398149399149400149401149402149403149404149405149406149407149408149409149410149411149412149413149414149415149416149417149418149419149420149421149422149423149424149425149426149427149428149429149430149431149432149433149434149435149436149437149438149439149440149441149442149443149444149445149446149447149448149449149450149451149452149453149454149455149456149457149458149459149460149461149462149463149464149465149466149467149468149469149470149471149472149473149474149475149476149477149478149479149480149481149482149483149484149485149486149487149488149489149490149491149492149493149494149495149496149497149498149499149500149501149502149503149504149505149506149507149508149509149510149511149512149513149514149515149516149517149518149519149520149521149522149523149524149525149526149527149528149529149530149531149532149533149534149535149536149537149538149539149540149541149542149543149544149545149546149547149548149549149550149551149552149553149554149555149556149557149558149559149560149561149562149563149564149565149566149567149568149569149570149571149572149573149574149575149576149577149578149579149580149581149582149583149584149585149586149587149588149589149590149591149592149593149594149595149596149597149598149599149600149601149602149603149604149605149606149607149608149609149610149611149612149613149614149615149616149617149618149619149620149621149622149623149624149625149626149627149628149629149630149631149632149633149634149635149636149637149638149639149640149641149642149643149644149645149646149647149648149649149650149651149652149653149654149655149656149657149658149659149660149661149662149663149664149665149666149667149668149669149670149671149672149673149674149675149676149677149678149679149680149681149682149683149684149685149686149687149688149689149690149691149692149693149694149695149696149697149698149699149700149701149702149703149704149705149706149707149708149709149710149711149712149713149714149715149716149717149718149719149720149721149722149723149724149725149726149727149728149729149730149731149732149733149734149735149736149737149738149739149740149741149742149743149744149745149746149747149748149749149750149751149752149753149754149755149756149757149758149759149760149761149762149763149764149765149766149767149768149769149770149771149772149773149774149775149776149777149778149779149780149781149782149783149784149785149786149787149788149789149790149791149792149793149794149795149796149797149798149799149800149801149802149803149804149805149806149807149808149809149810149811149812149813149814149815149816149817149818149819149820149821149822149823149824149825149826149827149828149829149830149831149832149833149834149835149836149837149838149839149840149841149842149843149844149845149846149847149848149849149850149851149852149853149854149855149856149857149858149859149860149861149862149863149864149865149866149867149868149869149870149871149872149873149874149875149876149877149878149879149880149881149882149883149884149885149886149887149888149889149890149891149892149893149894149895149896149897149898149899149900149901149902149903149904149905149906149907149908149909149910149911149912149913149914149915149916149917149918149919149920149921149922149923149924149925149926149927149928149929149930149931149932149933149934149935149936149937149938149939149940149941149942149943149944149945149946149947149948149949149950149951149952149953149954149955149956149957149958149959149960149961149962149963149964149965149966149967149968149969149970149971149972149973149974149975149976149977149978149979149980149981149982149983149984149985149986149987149988149989149990149991149992149993149994149995149996149997149998149999150000150001150002150003150004150005150006150007150008150009150010150011150012150013150014150015150016150017150018150019150020150021150022150023150024150025150026150027150028150029150030150031150032150033150034150035150036150037150038150039150040150041150042150043150044150045150046150047150048150049150050150051150052150053150054150055150056150057150058150059150060150061150062150063150064150065150066150067150068150069150070150071150072150073150074150075150076150077150078150079150080150081150082150083150084150085150086150087150088150089150090150091150092150093150094150095150096150097150098150099150100150101150102150103150104150105150106150107150108150109150110150111150112150113150114150115150116150117150118150119150120150121150122150123150124150125150126150127150128150129150130150131150132150133150134150135150136150137150138150139150140150141150142150143150144150145150146150147150148150149150150150151150152150153150154150155150156150157150158150159150160150161150162150163150164150165150166150167150168150169150170150171150172150173150174150175150176150177150178150179150180150181150182150183150184150185150186150187150188150189150190150191150192150193150194150195150196150197150198150199150200150201150202150203150204150205150206150207150208150209150210150211150212150213150214150215150216150217150218150219150220150221150222150223150224150225150226150227150228150229150230150231150232150233150234150235150236150237150238150239150240150241150242150243150244150245150246150247150248150249150250150251150252150253150254150255150256150257150258150259150260150261150262150263150264150265150266150267150268150269150270150271150272150273150274150275150276150277150278150279150280150281150282150283150284150285150286150287150288150289150290150291150292150293150294150295150296150297150298150299150300150301150302150303150304150305150306150307150308150309150310150311150312150313150314150315150316150317150318150319150320150321150322150323150324150325150326150327150328150329150330150331150332150333150334150335150336150337150338150339150340150341150342150343150344150345150346150347150348150349150350150351150352150353150354150355150356150357150358150359150360150361150362150363150364150365150366150367150368150369150370150371150372150373150374150375150376150377150378150379150380150381150382150383150384150385150386150387150388150389150390150391150392150393150394150395150396150397150398150399150400150401150402150403150404150405150406150407150408150409150410150411150412150413150414150415150416150417150418150419150420150421150422150423150424150425150426150427150428150429150430150431150432150433150434150435150436150437150438150439150440150441150442150443150444150445150446150447150448150449150450150451150452150453150454150455150456150457150458150459150460150461150462150463150464150465150466150467150468150469150470150471150472150473150474150475150476150477150478150479150480150481150482150483150484150485150486150487150488150489150490150491150492150493150494150495150496150497150498150499150500150501150502150503150504150505150506150507150508150509150510150511150512150513150514150515150516150517150518150519150520150521150522150523150524150525150526150527150528150529150530150531150532150533150534150535150536150537150538150539150540150541150542150543150544150545150546150547150548150549150550150551150552150553150554150555150556150557150558150559150560150561150562150563150564150565150566150567150568150569150570150571150572150573150574150575150576150577150578150579150580150581150582150583150584150585150586150587150588150589150590150591150592150593150594150595150596150597150598150599150600150601150602150603150604150605150606150607150608150609150610150611150612150613150614150615150616150617150618150619150620150621150622150623150624150625150626150627150628150629150630150631150632150633150634150635150636150637150638150639150640150641150642150643150644150645150646150647150648150649150650150651150652150653150654150655150656150657150658150659150660150661150662150663150664150665150666150667150668150669150670150671150672150673150674150675150676150677150678150679150680150681150682150683150684150685150686150687150688150689150690150691150692150693150694150695150696150697150698150699150700150701150702150703150704150705150706150707150708150709150710150711150712150713150714150715150716150717150718150719150720150721150722150723150724150725150726150727150728150729150730150731150732150733150734150735150736150737150738150739150740150741150742150743150744150745150746150747150748150749150750150751150752150753150754150755150756150757150758150759150760150761150762150763150764150765150766150767150768150769150770150771150772150773150774150775150776150777150778150779150780150781150782150783150784150785150786150787150788150789150790150791150792150793150794150795150796150797150798150799150800150801150802150803150804150805150806150807150808150809150810150811150812150813150814150815150816150817150818150819150820150821150822150823150824150825150826150827150828150829150830150831150832150833150834150835150836150837150838150839150840150841150842150843150844150845150846150847150848150849150850150851150852150853150854150855150856150857150858150859150860150861150862150863150864150865150866150867150868150869150870150871150872150873150874150875150876150877150878150879150880150881150882150883150884150885150886150887150888150889150890150891150892150893150894150895150896150897150898150899150900150901150902150903150904150905150906150907150908150909150910150911150912150913150914150915150916150917150918150919150920150921150922150923150924150925150926150927150928150929150930150931150932150933150934150935150936150937150938150939150940150941150942150943150944150945150946150947150948150949150950150951150952150953150954150955150956150957150958150959150960150961150962150963150964150965150966150967150968150969150970150971150972150973150974150975150976150977150978150979150980150981150982150983150984150985150986150987150988150989150990150991150992150993150994150995150996150997150998150999151000151001151002151003151004151005151006151007151008151009151010151011151012151013151014151015151016151017151018151019151020151021151022151023151024151025151026151027151028151029151030151031151032151033151034151035151036151037151038151039151040151041151042151043151044151045151046151047151048151049151050151051151052151053151054151055151056151057151058151059151060151061151062151063151064151065151066151067151068151069151070151071151072151073151074151075151076151077151078151079151080151081151082151083151084151085151086151087151088151089151090151091151092151093151094151095151096151097151098151099151100151101151102151103151104151105151106151107151108151109151110151111151112151113151114151115151116151117151118151119151120151121151122151123151124151125151126151127151128151129151130151131151132151133151134151135151136151137151138151139151140151141151142151143151144151145151146151147151148151149151150151151151152151153151154151155151156151157151158151159151160151161151162151163151164151165151166151167151168151169151170151171151172151173151174151175151176151177151178151179151180151181151182151183151184151185151186151187151188151189151190151191151192151193151194151195151196151197151198151199151200151201151202151203151204151205151206151207151208151209151210151211151212151213151214151215151216151217151218151219151220151221151222151223151224151225151226151227151228151229151230151231151232151233151234151235151236151237151238151239151240151241151242151243151244151245151246151247151248151249151250151251151252151253151254151255151256151257151258151259151260151261151262151263151264151265151266151267151268151269151270151271151272151273151274151275151276151277151278151279151280151281151282151283151284151285151286151287151288151289151290151291151292151293151294151295151296151297151298151299151300151301151302151303151304151305151306151307151308151309151310151311151312151313151314151315151316151317151318151319151320151321151322151323151324151325151326151327151328151329151330151331151332151333151334151335151336151337151338151339151340151341151342151343151344151345151346151347151348151349151350151351151352151353151354151355151356151357151358151359151360151361151362151363151364151365151366151367151368151369151370151371151372151373151374151375151376151377151378151379151380151381151382151383151384151385151386151387151388151389151390151391151392151393151394151395151396151397151398151399151400151401151402151403151404151405151406151407151408151409151410151411151412151413151414151415151416151417151418151419151420151421151422151423151424151425151426151427151428151429151430151431151432151433151434151435151436151437151438151439151440151441151442151443151444151445151446151447151448151449151450151451151452151453151454151455151456151457151458151459151460151461151462151463151464151465151466151467151468151469151470151471151472151473151474151475151476151477151478151479151480151481151482151483151484151485151486151487151488151489151490151491151492151493151494151495151496151497151498151499151500151501151502151503151504151505151506151507151508151509151510151511151512151513151514151515151516151517151518151519151520151521151522151523151524151525151526151527151528151529151530151531151532151533151534151535151536151537151538151539151540151541151542151543151544151545151546151547151548151549151550151551151552151553151554151555151556151557151558151559151560151561151562151563151564151565151566151567151568151569151570151571151572151573151574151575151576151577151578151579151580151581151582151583151584151585151586151587151588151589151590151591151592151593151594151595151596151597151598151599151600151601151602151603151604151605151606151607151608151609151610151611151612151613151614151615151616151617151618151619151620151621151622151623151624151625151626151627151628151629151630151631151632151633151634151635151636151637151638151639151640151641151642151643151644151645151646151647151648151649151650151651151652151653151654151655151656151657151658151659151660151661151662151663151664151665151666151667151668151669151670151671151672151673151674151675151676151677151678151679151680151681151682151683151684151685151686151687151688151689151690151691151692151693151694151695151696151697151698151699151700151701151702151703151704151705151706151707151708151709151710151711151712151713151714151715151716151717151718151719151720151721151722151723151724151725151726151727151728151729151730151731151732151733151734151735151736151737151738151739151740151741151742151743151744151745151746151747151748151749151750151751151752151753151754151755151756151757151758151759151760151761151762151763151764151765151766151767151768151769151770151771151772151773151774151775151776151777151778151779151780151781151782151783151784151785151786151787151788151789151790151791151792151793151794151795151796151797151798151799151800151801151802151803151804151805151806151807151808151809151810151811151812151813151814151815151816151817151818151819151820151821151822151823151824151825151826151827151828151829151830151831151832151833151834151835151836151837151838151839151840151841151842151843151844151845151846151847151848151849151850151851151852151853151854151855151856151857151858151859151860151861151862151863151864151865151866151867151868151869151870151871151872151873151874151875151876151877151878151879151880151881151882151883151884151885151886151887151888151889151890151891151892151893151894151895151896151897151898151899151900151901151902151903151904151905151906151907151908151909151910151911151912151913151914151915151916151917151918151919151920151921151922151923151924151925151926151927151928151929151930151931151932151933151934151935151936151937151938151939151940151941151942151943151944151945151946151947151948151949151950151951151952151953151954151955151956151957151958151959151960151961151962151963151964151965151966151967151968151969151970151971151972151973151974151975151976151977151978151979151980151981151982151983151984151985151986151987151988151989151990151991151992151993151994151995151996151997151998151999152000152001152002152003152004152005152006152007152008152009152010152011152012152013152014152015152016152017152018152019152020152021152022152023152024152025152026152027152028152029152030152031152032152033152034152035152036152037152038152039152040152041152042152043152044152045152046152047152048152049152050152051152052152053152054152055152056152057152058152059152060152061152062152063152064152065152066152067152068152069152070152071152072152073152074152075152076152077152078152079152080152081152082152083152084152085152086152087152088152089152090152091152092152093152094152095152096152097152098152099152100152101152102152103152104152105152106152107152108152109152110152111152112152113152114152115152116152117152118152119152120152121152122152123152124152125152126152127152128152129152130152131152132152133152134152135152136152137152138152139152140152141152142152143152144152145152146152147152148152149152150152151152152152153152154152155152156152157152158152159152160152161152162152163152164152165152166152167152168152169152170152171152172152173152174152175152176152177152178152179152180152181152182152183152184152185152186152187152188152189152190152191152192152193152194152195152196152197152198152199152200152201152202152203152204152205152206152207152208152209152210152211152212152213152214152215152216152217152218152219152220152221152222152223152224152225152226152227152228152229152230152231152232152233152234152235152236152237152238152239152240152241152242152243152244152245152246152247152248152249152250152251152252152253152254152255152256152257152258152259152260152261152262152263152264152265152266152267152268152269152270152271152272152273152274152275152276152277152278152279152280152281152282152283152284152285152286152287152288152289152290152291152292152293152294152295152296152297152298152299152300152301152302152303152304152305152306152307152308152309152310152311152312152313152314152315152316152317152318152319152320152321152322152323152324152325152326152327152328152329152330152331152332152333152334152335152336152337152338152339152340152341152342152343152344152345152346152347152348152349152350152351152352152353152354152355152356152357152358152359152360152361152362152363152364152365152366152367152368152369152370152371152372152373152374152375152376152377152378152379152380152381152382152383152384152385152386152387152388152389152390152391152392152393152394152395152396152397152398152399152400152401152402152403152404152405152406152407152408152409152410152411152412152413152414152415152416152417152418152419152420152421152422152423152424152425152426152427152428152429152430152431152432152433152434152435152436152437152438152439152440152441152442152443152444152445152446152447152448152449152450152451152452152453152454152455152456152457152458152459152460152461152462152463152464152465152466152467152468152469152470152471152472152473152474152475152476152477152478152479152480152481152482152483152484152485152486152487152488152489152490152491152492152493152494152495152496152497152498152499152500152501152502152503152504152505152506152507152508152509152510152511152512152513152514152515152516152517152518152519152520152521152522152523152524152525152526152527152528152529152530152531152532152533152534152535152536152537152538152539152540152541152542152543152544152545152546152547152548152549152550152551152552152553152554152555152556152557152558152559152560152561152562152563152564152565152566152567152568152569152570152571152572152573152574152575152576152577152578152579152580152581152582152583152584152585152586152587152588152589152590152591152592152593152594152595152596152597152598152599152600152601152602152603152604152605152606152607152608152609152610152611152612152613152614152615152616152617152618152619152620152621152622152623152624152625152626152627152628152629152630152631152632152633152634152635152636152637152638152639152640152641152642152643152644152645152646152647152648152649152650152651152652152653152654152655152656152657152658152659152660152661152662152663152664152665152666152667152668152669152670152671152672152673152674152675152676152677152678152679152680152681152682152683152684152685152686152687152688152689152690152691152692152693152694152695152696152697152698152699152700152701152702152703152704152705152706152707152708152709152710152711152712152713152714152715152716152717152718152719152720152721152722152723152724152725152726152727152728152729152730152731152732152733152734152735152736152737152738152739152740152741152742152743152744152745152746152747152748152749152750152751152752152753152754152755152756152757152758152759152760152761152762152763152764152765152766152767152768152769152770152771152772152773152774152775152776152777152778152779152780152781152782152783152784152785152786152787152788152789152790152791152792152793152794152795152796152797152798152799152800152801152802152803152804152805152806152807152808152809152810152811152812152813152814152815152816152817152818152819152820152821152822152823152824152825152826152827152828152829152830152831152832152833152834152835152836152837152838152839152840152841152842152843152844152845152846152847152848152849152850152851152852152853152854152855152856152857152858152859152860152861152862152863152864152865152866152867152868152869152870152871152872152873152874152875152876152877152878152879152880152881152882152883152884152885152886152887152888152889152890152891152892152893152894152895152896152897152898152899152900152901152902152903152904152905152906152907152908152909152910152911152912152913152914152915152916152917152918152919152920152921152922152923152924152925152926152927152928152929152930152931152932152933152934152935152936152937152938152939152940152941152942152943152944152945152946152947152948152949152950152951152952152953152954152955152956152957152958152959152960152961152962152963152964152965152966152967152968152969152970152971152972152973152974152975152976152977152978152979152980152981152982152983152984152985152986152987152988152989152990152991152992152993152994152995152996152997152998152999153000153001153002153003153004153005153006153007153008153009153010153011153012153013153014153015153016153017153018153019153020153021153022153023153024153025153026153027153028153029153030153031153032153033153034153035153036153037153038153039153040153041153042153043153044153045153046153047153048153049153050153051153052153053153054153055153056153057153058153059153060153061153062153063153064153065153066153067153068153069153070153071153072153073153074153075153076153077153078153079153080153081153082153083153084153085153086153087153088153089153090153091153092153093153094153095153096153097153098153099153100153101153102153103153104153105153106153107153108153109153110153111153112153113153114153115153116153117153118153119153120153121153122153123153124153125153126153127153128153129153130153131153132153133153134153135153136153137153138153139153140153141153142153143153144153145153146153147153148153149153150153151153152153153153154153155153156153157153158153159153160153161153162153163153164153165153166153167153168153169153170153171153172153173153174153175153176153177153178153179153180153181153182153183153184153185153186153187153188153189153190153191153192153193153194153195153196153197153198153199153200153201153202153203153204153205153206153207153208153209153210153211153212153213153214153215153216153217153218153219153220153221153222153223153224153225153226153227153228153229153230153231153232153233153234153235153236153237153238153239153240153241153242153243153244153245153246153247153248153249153250153251153252153253153254153255153256153257153258153259153260153261153262153263153264153265153266153267153268153269153270153271153272153273153274153275153276153277153278153279153280153281153282153283153284153285153286153287153288153289153290153291153292153293153294153295153296153297153298153299153300153301153302153303153304153305153306153307153308153309153310153311153312153313153314153315153316153317153318153319153320153321153322153323153324153325153326153327153328153329153330153331153332153333153334153335153336153337153338153339153340153341153342153343153344153345153346153347153348153349153350153351153352153353153354153355153356153357153358153359153360153361153362153363153364153365153366153367153368153369153370153371153372153373153374153375153376153377153378153379153380153381153382153383153384153385153386153387153388153389153390153391153392153393153394153395153396153397153398153399153400153401153402153403153404153405153406153407153408153409153410153411153412153413153414153415153416153417153418153419153420153421153422153423153424153425153426153427153428153429153430153431153432153433153434153435153436153437153438153439153440153441153442153443153444153445153446153447153448153449153450153451153452153453153454153455153456153457153458153459153460153461153462153463153464153465153466153467153468153469153470153471153472153473153474153475153476153477153478153479153480153481153482153483153484153485153486153487153488153489153490153491153492153493153494153495153496153497153498153499153500153501153502153503153504153505153506153507153508153509153510153511153512153513153514153515153516153517153518153519153520153521153522153523153524153525153526153527153528153529153530153531153532153533153534153535153536153537153538153539153540153541153542153543153544153545153546153547153548153549153550153551153552153553153554153555153556153557153558153559153560153561153562153563153564153565153566153567153568153569153570153571153572153573153574153575153576153577153578153579153580153581153582153583153584153585153586153587153588153589153590153591153592153593153594153595153596153597153598153599153600153601153602153603153604153605153606153607153608153609153610153611153612153613153614153615153616153617153618153619153620153621153622153623153624153625153626153627153628153629153630153631153632153633153634153635153636153637153638153639153640153641153642153643153644153645153646153647153648153649153650153651153652153653153654153655153656153657153658153659153660153661153662153663153664153665153666153667153668153669153670153671153672153673153674153675153676153677153678153679153680153681153682153683153684153685153686153687153688153689153690153691153692153693153694153695153696153697153698153699153700153701153702153703153704153705153706153707153708153709153710153711153712153713153714153715153716153717153718153719153720153721153722153723153724153725153726153727153728153729153730153731153732153733153734153735153736153737153738153739153740153741153742153743153744153745153746153747153748153749153750153751153752153753153754153755153756153757153758153759153760153761153762153763153764153765153766153767153768153769153770153771153772153773153774153775153776153777153778153779153780153781153782153783153784153785153786153787153788153789153790153791153792153793153794153795153796153797153798153799153800153801153802153803153804153805153806153807153808153809153810153811153812153813153814153815153816153817153818153819153820153821153822153823153824153825153826153827153828153829153830153831153832153833153834153835153836153837153838153839153840153841153842153843153844153845153846153847153848153849153850153851153852153853153854153855153856153857153858153859153860153861153862153863153864153865153866153867153868153869153870153871153872153873153874153875153876153877153878153879153880153881153882153883153884153885153886153887153888153889153890153891153892153893153894153895153896153897153898153899153900153901153902153903153904153905153906153907153908153909153910153911153912153913153914153915153916153917153918153919153920153921153922153923153924153925153926153927153928153929153930153931153932153933153934153935153936153937153938153939153940153941153942153943153944153945153946153947153948153949153950153951153952153953153954153955153956153957153958153959153960153961153962153963153964153965153966153967153968153969153970153971153972153973153974153975153976153977153978153979153980153981153982153983153984153985153986153987153988153989153990153991153992153993153994153995153996153997153998153999154000154001154002154003154004154005154006154007154008154009154010154011154012154013154014154015154016154017154018154019154020154021154022154023154024154025154026154027154028154029154030154031154032154033154034154035154036154037154038154039154040154041154042154043154044154045154046154047154048154049154050154051154052154053154054154055154056154057154058154059154060154061154062154063154064154065154066154067154068154069154070154071154072154073154074154075154076154077154078154079154080154081154082154083154084154085154086154087154088154089154090154091154092154093154094154095154096154097154098154099154100154101154102154103154104154105154106154107154108154109154110154111154112154113154114154115154116154117154118154119154120154121154122154123154124154125154126154127154128154129154130154131154132154133154134154135154136154137154138154139154140154141154142154143154144154145154146154147154148154149154150154151154152154153154154154155154156154157154158154159154160154161154162154163154164154165154166154167154168154169154170154171154172154173154174154175154176154177154178154179154180154181154182154183154184154185154186154187154188154189154190154191154192154193154194154195154196154197154198154199154200154201154202154203154204154205154206154207154208154209154210154211154212154213154214154215154216154217154218154219154220154221154222154223154224154225154226154227154228154229154230154231154232154233154234154235154236154237154238154239154240154241154242154243154244154245154246154247154248154249154250154251154252154253154254154255154256154257154258154259154260154261154262154263154264154265154266154267154268154269154270154271154272154273154274154275154276154277154278154279154280154281154282154283154284154285154286154287154288154289154290154291154292154293154294154295154296154297154298154299154300154301154302154303154304154305154306154307154308154309154310154311154312154313154314154315154316154317154318154319154320154321154322154323154324154325154326154327154328154329154330154331154332154333154334154335154336154337154338154339154340154341154342154343154344154345154346154347154348154349154350154351154352154353154354154355154356154357154358154359154360154361154362154363154364154365154366154367154368154369154370154371154372154373154374154375154376154377154378154379154380154381154382154383154384154385154386154387154388154389154390154391154392154393154394154395154396154397154398154399154400154401154402154403154404154405154406154407154408154409154410154411154412154413154414154415154416154417154418154419154420154421154422154423154424154425154426154427154428154429154430154431154432154433154434154435154436154437154438154439154440154441154442154443154444154445154446154447154448154449154450154451154452154453154454154455154456154457154458154459154460154461154462154463154464154465154466154467154468154469154470154471154472154473154474154475154476154477154478154479154480154481154482154483154484154485154486154487154488154489154490154491154492154493154494154495154496154497154498154499154500154501154502154503154504154505154506154507154508154509154510154511154512154513154514154515154516154517154518154519154520154521154522154523154524154525154526154527154528154529154530154531154532154533154534154535154536154537154538154539154540154541154542154543154544154545154546154547154548154549154550154551154552154553154554154555154556154557154558154559154560154561154562154563154564154565154566154567154568154569154570154571154572154573154574154575154576154577154578154579154580154581154582154583154584154585154586154587154588154589154590154591154592154593154594154595154596154597154598154599154600154601154602154603154604154605154606154607154608154609154610154611154612154613154614154615154616154617154618154619154620154621154622154623154624154625154626154627154628154629154630154631154632154633154634154635154636154637154638154639154640154641154642154643154644154645154646154647154648154649154650154651154652154653154654154655154656154657154658154659154660154661154662154663154664154665154666154667154668154669154670154671154672154673154674154675154676154677154678154679154680154681154682154683154684154685154686154687154688154689154690154691154692154693154694154695154696154697154698154699154700154701154702154703154704154705154706154707154708154709154710154711154712154713154714154715154716154717154718154719154720154721154722154723154724154725154726154727154728154729154730154731154732154733154734154735154736154737154738154739154740154741154742154743154744154745154746154747154748154749154750154751154752154753154754154755154756154757154758154759154760154761154762154763154764154765154766154767154768154769154770154771154772154773154774154775154776154777154778154779154780154781154782154783154784154785154786154787154788154789154790154791154792154793154794154795154796154797154798154799154800154801154802154803154804154805154806154807154808154809154810154811154812154813154814154815154816154817154818154819154820154821154822154823154824154825154826154827154828154829154830154831154832154833154834154835154836154837154838154839154840154841154842154843154844154845154846154847154848154849154850154851154852154853154854154855154856154857154858154859154860154861154862154863154864154865154866154867154868154869154870154871154872154873154874154875154876154877154878154879154880154881154882154883154884154885154886154887154888154889154890154891154892154893154894154895154896154897154898154899154900154901154902154903154904154905154906154907154908154909154910154911154912154913154914154915154916154917154918154919154920154921154922154923154924154925154926154927154928154929154930154931154932154933154934154935154936154937154938154939154940154941154942154943154944154945154946154947154948154949154950154951154952154953154954154955154956154957154958154959154960154961154962154963154964154965154966154967154968154969154970154971154972154973154974154975154976154977154978154979154980154981154982154983154984154985154986154987154988154989154990154991154992154993154994154995154996154997154998154999155000155001155002155003155004155005155006155007155008155009155010155011155012155013155014155015155016155017155018155019155020155021155022155023155024155025155026155027155028155029155030155031155032155033155034155035155036155037155038155039155040155041155042155043155044155045155046155047155048155049155050155051155052155053155054155055155056155057155058155059155060155061155062155063155064155065155066155067155068155069155070155071155072155073155074155075155076155077155078155079155080155081155082155083155084155085155086155087155088155089155090155091155092155093155094155095155096155097155098155099155100155101155102155103155104155105155106155107155108155109155110155111155112155113155114155115155116155117155118155119155120155121155122155123155124155125155126155127155128155129155130155131155132155133155134155135155136155137155138155139155140155141155142155143155144155145155146155147155148155149155150155151155152155153155154155155155156155157155158155159155160155161155162155163155164155165155166155167155168155169155170155171155172155173155174155175155176155177155178155179155180155181155182155183155184155185155186155187155188155189155190155191155192155193155194155195155196155197155198155199155200155201155202155203155204155205155206155207155208155209155210155211155212155213155214155215155216155217155218155219155220155221155222155223155224155225155226155227155228155229155230155231155232155233155234155235155236155237155238155239155240155241155242155243155244155245155246155247155248155249155250155251155252155253155254155255155256155257155258155259155260155261155262155263155264155265155266155267155268155269155270155271155272155273155274155275155276155277155278155279155280155281155282155283155284155285155286155287155288155289155290155291155292155293155294155295155296155297155298155299155300155301155302155303155304155305155306155307155308155309155310155311155312155313155314155315155316155317155318155319155320155321155322155323155324155325155326155327155328155329155330155331155332155333155334155335155336155337155338155339155340155341155342155343155344155345155346155347155348155349155350155351155352155353155354155355155356155357155358155359155360155361155362155363155364155365155366155367155368155369155370155371155372155373155374155375155376155377155378155379155380155381155382155383155384155385155386155387155388155389155390155391155392155393155394155395155396155397155398155399155400155401155402155403155404155405155406155407155408155409155410155411155412155413155414155415155416155417155418155419155420155421155422155423155424155425155426155427155428155429155430155431155432155433155434155435155436155437155438155439155440155441155442155443155444155445155446155447155448155449155450155451155452155453155454155455155456155457155458155459155460155461155462155463155464155465155466155467155468155469155470155471155472155473155474155475155476155477155478155479155480155481155482155483155484155485155486155487155488155489155490155491155492155493155494155495155496155497155498155499155500155501155502155503155504155505155506155507155508155509155510155511155512155513155514155515155516155517155518155519155520155521155522155523155524155525155526155527155528155529155530155531155532155533155534155535155536155537155538155539155540155541155542155543155544155545155546155547155548155549155550155551155552155553155554155555155556155557155558155559155560155561155562155563155564155565155566155567155568155569155570155571155572155573155574155575155576155577155578155579155580155581155582155583155584155585155586155587155588155589155590155591155592155593155594155595155596155597155598155599155600155601155602155603155604155605155606155607155608155609155610155611155612155613155614155615155616155617155618155619155620155621155622155623155624155625155626155627155628155629155630155631155632155633155634155635155636155637155638155639155640155641155642155643155644155645155646155647155648155649155650155651155652155653155654155655155656155657155658155659155660155661155662155663155664155665155666155667155668155669155670155671155672155673155674155675155676155677155678155679155680155681155682155683155684155685155686155687155688155689155690155691155692155693155694155695155696155697155698155699155700155701155702155703155704155705155706155707155708155709155710155711155712155713155714155715155716155717155718155719155720155721155722155723155724155725155726155727155728155729155730155731155732155733155734155735155736155737155738155739155740155741155742155743155744155745155746155747155748155749155750155751155752155753155754155755155756155757155758155759155760155761155762155763155764155765155766155767155768155769155770155771155772155773155774155775155776155777155778155779155780155781155782155783155784155785155786155787155788155789155790155791155792155793155794155795155796155797155798155799155800155801155802155803155804155805155806155807155808155809155810155811155812155813155814155815155816155817155818155819155820155821155822155823155824155825155826155827155828155829155830155831155832155833155834155835155836155837155838155839155840155841155842155843155844155845155846155847155848155849155850155851155852155853155854155855155856155857155858155859155860155861155862155863155864155865155866155867155868155869155870155871155872155873155874155875155876155877155878155879155880155881155882155883155884155885155886155887155888155889155890155891155892155893155894155895155896155897155898155899155900155901155902155903155904155905155906155907155908155909155910155911155912155913155914155915155916155917155918155919155920155921155922155923155924155925155926155927155928155929155930155931155932155933155934155935155936155937155938155939155940155941155942155943155944155945155946155947155948155949155950155951155952155953155954155955155956155957155958155959155960155961155962155963155964155965155966155967155968155969155970155971155972155973155974155975155976155977155978155979155980155981155982155983155984155985155986155987155988155989155990155991155992155993155994155995155996155997155998155999156000156001156002156003156004156005156006156007156008156009156010156011156012156013156014156015156016156017156018156019156020156021156022156023156024156025156026156027156028156029156030156031156032156033156034156035156036156037156038156039156040156041156042156043156044156045156046156047156048156049156050156051156052156053156054156055156056156057156058156059156060156061156062156063156064156065156066156067156068156069156070156071156072156073156074156075156076156077156078156079156080156081156082156083156084156085156086156087156088156089156090156091156092156093156094156095156096156097156098156099156100156101156102156103156104156105156106156107156108156109156110156111156112156113156114156115156116156117156118156119156120156121156122156123156124156125156126156127156128156129156130156131156132156133156134156135156136156137156138156139156140156141156142156143156144156145156146156147156148156149156150156151156152156153156154156155156156156157156158156159156160156161156162156163156164156165156166156167156168156169156170156171156172156173156174156175156176156177156178156179156180156181156182156183156184156185156186156187156188156189156190156191156192156193156194156195156196156197156198156199156200156201156202156203156204156205156206156207156208156209156210156211156212156213156214156215156216156217156218156219156220156221156222156223156224156225156226156227156228156229156230156231156232156233156234156235156236156237156238156239156240156241156242156243156244156245156246156247156248156249156250156251156252156253156254156255156256156257156258156259156260156261156262156263156264156265156266156267156268156269156270156271156272156273156274156275156276156277156278156279156280156281156282156283156284156285156286156287156288156289156290156291156292156293156294156295156296156297156298156299156300156301156302156303156304156305156306156307156308156309156310156311156312156313156314156315156316156317156318156319156320156321156322156323156324156325156326156327156328156329156330156331156332156333156334156335156336156337156338156339156340156341156342156343156344156345156346156347156348156349156350156351156352156353156354156355156356156357156358156359156360156361156362156363156364156365156366156367156368156369156370156371156372156373156374156375156376156377156378156379156380156381156382156383156384156385156386156387156388156389156390156391156392156393156394156395156396156397156398156399156400156401156402156403156404156405156406156407156408156409156410156411156412156413156414156415156416156417156418156419156420156421156422156423156424156425156426156427156428156429156430156431156432156433156434156435156436156437156438156439156440156441156442156443156444156445156446156447156448156449156450156451156452156453156454156455156456156457156458156459156460156461156462156463156464156465156466156467156468156469156470156471156472156473156474156475156476156477156478156479156480156481156482156483156484156485156486156487156488156489156490156491156492156493156494156495156496156497156498156499156500156501156502156503156504156505156506156507156508156509156510156511156512156513156514156515156516156517156518156519156520156521156522156523156524156525156526156527156528156529156530156531156532156533156534156535156536156537156538156539156540156541156542156543156544156545156546156547156548156549156550156551156552156553156554156555156556156557156558156559156560156561156562156563156564156565156566156567156568156569156570156571156572156573156574156575156576156577156578156579156580156581156582156583156584156585156586156587156588156589156590156591156592156593156594156595156596156597156598156599156600156601156602156603156604156605156606156607156608156609156610156611156612156613156614156615156616156617156618156619156620156621156622156623156624156625156626156627156628156629156630156631156632156633156634156635156636156637156638156639156640156641156642156643156644156645156646156647156648156649156650156651156652156653156654156655156656156657156658156659156660156661156662156663156664156665156666156667156668156669156670156671156672156673156674156675156676156677156678156679156680156681156682156683156684156685156686156687156688156689156690156691156692156693156694156695156696156697156698156699156700156701156702156703156704156705156706156707156708156709156710156711156712156713156714156715156716156717156718156719156720156721156722156723156724156725156726156727156728156729156730156731156732156733156734156735156736156737156738156739156740156741156742156743156744156745156746156747156748156749156750156751156752156753156754156755156756156757156758156759156760156761156762156763156764156765156766156767156768156769156770156771156772156773156774156775156776156777156778156779156780156781156782156783156784156785156786156787156788156789156790156791156792156793156794156795156796156797156798156799156800156801156802156803156804156805156806156807156808156809156810156811156812156813156814156815156816156817156818156819156820156821156822156823156824156825156826156827156828156829156830156831156832156833156834156835156836156837156838156839156840156841156842156843156844156845156846156847156848156849156850156851156852156853156854156855156856156857156858156859156860156861156862156863156864156865156866156867156868156869156870156871156872156873156874156875156876156877156878156879156880156881156882156883156884156885156886156887156888156889156890156891156892156893156894156895156896156897156898156899156900156901156902156903156904156905156906156907156908156909156910156911156912156913156914156915156916156917156918156919156920156921156922156923156924156925156926156927156928156929156930156931156932156933156934156935156936156937156938156939156940156941156942156943156944156945156946156947156948156949156950156951156952156953156954156955156956156957156958156959156960156961156962156963156964156965156966156967156968156969156970156971156972156973156974156975156976156977156978156979156980156981156982156983156984156985156986156987156988156989156990156991156992156993156994156995156996156997156998156999157000157001157002157003157004157005157006157007157008157009157010157011157012157013157014157015157016157017157018157019157020157021157022157023157024157025157026157027157028157029157030157031157032157033157034157035157036157037157038157039157040157041157042157043157044157045157046157047157048157049157050157051157052157053157054157055157056157057157058157059157060157061157062157063157064157065157066157067157068157069157070157071157072157073157074157075157076157077157078157079157080157081157082157083157084157085157086157087157088157089157090157091157092157093157094157095157096157097157098157099157100157101157102157103157104157105157106157107157108157109157110157111157112157113157114157115157116157117157118157119157120157121157122157123157124157125157126157127157128157129157130157131157132157133157134157135157136157137157138157139157140157141157142157143157144157145157146157147157148157149157150157151157152157153157154157155157156157157157158157159157160157161157162157163157164157165157166157167157168157169157170157171157172157173157174157175157176157177157178157179157180157181157182157183157184157185157186157187157188157189157190157191157192157193157194157195157196157197157198157199157200157201157202157203157204157205157206157207157208157209157210157211157212157213157214157215157216157217157218157219157220157221157222157223157224157225157226157227157228157229157230157231157232157233157234157235157236157237157238157239157240157241157242157243157244157245157246157247157248157249157250157251157252157253157254157255157256157257157258157259157260157261157262157263157264157265157266157267157268157269157270157271157272157273157274157275157276157277157278157279157280157281157282157283157284157285157286157287157288157289157290157291157292157293157294157295157296157297157298157299157300157301157302157303157304157305157306157307157308157309157310157311157312157313157314157315157316157317157318157319157320157321157322157323157324157325157326157327157328157329157330157331157332157333157334157335157336157337157338157339157340157341157342157343157344157345157346157347157348157349157350157351157352157353157354157355157356157357157358157359157360157361157362157363157364157365157366157367157368157369157370157371157372157373157374157375157376157377157378157379157380157381157382157383157384157385157386157387157388157389157390157391157392157393157394157395157396157397157398157399157400157401157402157403157404157405157406157407157408157409157410157411157412157413157414157415157416157417157418157419157420157421157422157423157424157425157426157427157428157429157430157431157432157433157434157435157436157437157438157439157440157441157442157443157444157445157446157447157448157449157450157451157452157453157454157455157456157457157458157459157460157461157462157463157464157465157466157467157468157469157470157471157472157473157474157475157476157477157478157479157480157481157482157483157484157485157486157487157488157489157490157491157492157493157494157495157496157497157498157499157500157501157502157503157504157505157506157507157508157509157510157511157512157513157514157515157516157517157518157519157520157521157522157523157524157525157526157527157528157529157530157531157532157533157534157535157536157537157538157539157540157541157542157543157544157545157546157547157548157549157550157551157552157553157554157555157556157557157558157559157560157561157562157563157564157565157566157567157568157569157570157571157572157573157574157575157576157577157578157579157580157581157582157583157584157585157586157587157588157589157590157591157592157593157594157595157596157597157598157599157600157601157602157603157604157605157606157607157608157609157610157611157612157613157614157615157616157617157618157619157620157621157622157623157624157625157626157627157628157629157630157631157632157633157634157635157636157637157638157639157640157641157642157643157644157645157646157647157648157649157650157651157652157653157654157655157656157657157658157659157660157661157662157663157664157665157666157667157668157669157670157671157672157673157674157675157676157677157678157679157680157681157682157683157684157685157686157687157688157689157690157691157692157693157694157695157696157697157698157699157700157701157702157703157704157705157706157707157708157709157710157711157712157713157714157715157716157717157718157719157720157721157722157723157724157725157726157727157728157729157730157731157732157733157734157735157736157737157738157739157740157741157742157743157744157745157746157747157748157749157750157751157752157753157754157755157756157757157758157759157760157761157762157763157764157765157766157767157768157769157770157771157772157773157774157775157776157777157778157779157780157781157782157783157784157785157786157787157788157789157790157791157792157793157794157795157796157797157798157799157800157801157802157803157804157805157806157807157808157809157810157811157812157813157814157815157816157817157818157819157820157821157822157823157824157825157826157827157828157829157830157831157832157833157834157835157836157837157838157839157840157841157842157843157844157845157846157847157848157849157850157851157852157853157854157855157856157857157858157859157860157861157862157863157864157865157866157867157868157869157870157871157872157873157874157875157876157877157878157879157880157881157882157883157884157885157886157887157888157889157890157891157892157893157894157895157896157897157898157899157900157901157902157903157904157905157906157907157908157909157910157911157912157913157914157915157916157917157918157919157920157921157922157923157924157925157926157927157928157929157930157931157932157933157934157935157936157937157938157939157940157941157942157943157944157945157946157947157948157949157950157951157952157953157954157955157956157957157958157959157960157961157962157963157964157965157966157967157968157969157970157971157972157973157974157975157976157977157978157979157980157981157982157983157984157985157986157987157988157989157990157991157992157993157994157995157996157997157998157999158000158001158002158003158004158005158006158007158008158009158010158011158012158013158014158015158016158017158018158019158020158021158022158023158024158025158026158027158028158029158030158031158032158033158034158035158036158037158038158039158040158041158042158043158044158045158046158047158048158049158050158051158052158053158054158055158056158057158058158059158060158061158062158063158064158065158066158067158068158069158070158071158072158073158074158075158076158077158078158079158080158081158082158083158084158085158086158087158088158089158090158091158092158093158094158095158096158097158098158099158100158101158102158103158104158105158106158107158108158109158110158111158112158113158114158115158116158117158118158119158120158121158122158123158124158125158126158127158128158129158130158131158132158133158134158135158136158137158138158139158140158141158142158143158144158145158146158147158148158149158150158151158152158153158154158155158156158157158158158159158160158161158162158163158164158165158166158167158168158169158170158171158172158173158174158175158176158177158178158179158180158181158182158183158184158185158186158187158188158189158190158191158192158193158194158195158196158197158198158199158200158201158202158203158204158205158206158207158208158209158210158211158212158213158214158215158216158217158218158219158220158221158222158223158224158225158226158227158228158229158230158231158232158233158234158235158236158237158238158239158240158241158242158243158244158245158246158247158248158249158250158251158252158253158254158255158256158257158258158259158260158261158262158263158264158265158266158267158268158269158270158271158272158273158274158275158276158277158278158279158280158281158282158283158284158285158286158287158288158289158290158291158292158293158294158295158296158297158298158299158300158301158302158303158304158305158306158307158308158309158310158311158312158313158314158315158316158317158318158319158320158321158322158323158324158325158326158327158328158329158330158331158332158333158334158335158336158337158338158339158340158341158342158343158344158345158346158347158348158349158350158351158352158353158354158355158356158357158358158359158360158361158362158363158364158365158366158367158368158369158370158371158372158373158374158375158376158377158378158379158380158381158382158383158384158385158386158387158388158389158390158391158392158393158394158395158396158397158398158399158400158401158402158403158404158405158406158407158408158409158410158411158412158413158414158415158416158417158418158419158420158421158422158423158424158425158426158427158428158429158430158431158432158433158434158435158436158437158438158439158440158441158442158443158444158445158446158447158448158449158450158451158452158453158454158455158456158457158458158459158460158461158462158463158464158465158466158467158468158469158470158471158472158473158474158475158476158477158478158479158480158481158482158483158484158485158486158487158488158489158490158491158492158493158494158495158496158497158498158499158500158501158502158503158504158505158506158507158508158509158510158511158512158513158514158515158516158517158518158519158520158521158522158523158524158525158526158527158528158529158530158531158532158533158534158535158536158537158538158539158540158541158542158543158544158545158546158547158548158549158550158551158552158553158554158555158556158557158558158559158560158561158562158563158564158565158566158567158568158569158570158571158572158573158574158575158576158577158578158579158580158581158582158583158584158585158586158587158588158589158590158591158592158593158594158595158596158597158598158599158600158601158602158603158604158605158606158607158608158609158610158611158612158613158614158615158616158617158618158619158620158621158622158623158624158625158626158627158628158629158630158631158632158633158634158635158636158637158638158639158640158641158642158643158644158645158646158647158648158649158650158651158652158653158654158655158656158657158658158659158660158661158662158663158664158665158666158667158668158669158670158671158672158673158674158675158676158677158678158679158680158681158682158683158684158685158686158687158688158689158690158691158692158693158694158695158696158697158698158699158700158701158702158703158704158705158706158707158708158709158710158711158712158713158714158715158716158717158718158719158720158721158722158723158724158725158726158727158728158729158730158731158732158733158734158735158736158737158738158739158740158741158742158743158744158745158746158747158748158749158750158751158752158753158754158755158756158757158758158759158760158761158762158763158764158765158766158767158768158769158770158771158772158773158774158775158776158777158778158779158780158781158782158783158784158785158786158787158788158789158790158791158792158793158794158795158796158797158798158799158800158801158802158803158804158805158806158807158808158809158810158811158812158813158814158815158816158817158818158819158820158821158822158823158824158825158826158827158828158829158830158831158832158833158834158835158836158837158838158839158840158841158842158843158844158845158846158847158848158849158850158851158852158853158854158855158856158857158858158859158860158861158862158863158864158865158866158867158868158869158870158871158872158873158874158875158876158877158878158879158880158881158882158883158884158885158886158887158888158889158890158891158892158893158894158895158896158897158898158899158900158901158902158903158904158905158906158907158908158909158910158911158912158913158914158915158916158917158918158919158920158921158922158923158924158925158926158927158928158929158930158931158932158933158934158935158936158937158938158939158940158941158942158943158944158945158946158947158948158949158950158951158952158953158954158955158956158957158958158959158960158961158962158963158964158965158966158967158968158969158970158971158972158973158974158975158976158977158978158979158980158981158982158983158984158985158986158987158988158989158990158991158992158993158994158995158996158997158998158999159000159001159002159003159004159005159006159007159008159009159010159011159012159013159014159015159016159017159018159019159020159021159022159023159024159025159026159027159028159029159030159031159032159033159034159035159036159037159038159039159040159041159042159043159044159045159046159047159048159049159050159051159052159053159054159055159056159057159058159059159060159061159062159063159064159065159066159067159068159069159070159071159072159073159074159075159076159077159078159079159080159081159082159083159084159085159086159087159088159089159090159091159092159093159094159095159096159097159098159099159100159101159102159103159104159105159106159107159108159109159110159111159112159113159114159115159116159117159118159119159120159121159122159123159124159125159126159127159128159129159130159131159132159133159134159135159136159137159138159139159140159141159142159143159144159145159146159147159148159149159150159151159152159153159154159155159156159157159158159159159160159161159162159163159164159165159166159167159168159169159170159171159172159173159174159175159176159177159178159179159180159181159182159183159184159185159186159187159188159189159190159191159192159193159194159195159196159197159198159199159200159201159202159203159204159205159206159207159208159209159210159211159212159213159214159215159216159217159218159219159220159221159222159223159224159225159226159227159228159229159230159231159232159233159234159235159236159237159238159239159240159241159242159243159244159245159246159247159248159249159250159251159252159253159254159255159256159257159258159259159260159261159262159263159264159265159266159267159268159269159270159271159272159273159274159275159276159277159278159279159280159281159282159283159284159285159286159287159288159289159290159291159292159293159294159295159296159297159298159299159300159301159302159303159304159305159306159307159308159309159310159311159312159313159314159315159316159317159318159319159320159321159322159323159324159325159326159327159328159329159330159331159332159333159334159335159336159337159338159339159340159341159342159343159344159345159346159347159348159349159350159351159352159353159354159355159356159357159358159359159360159361159362159363159364159365159366159367159368159369159370159371159372159373159374159375159376159377159378159379159380159381159382159383159384159385159386159387159388159389159390159391159392159393159394159395159396159397159398159399159400159401159402159403159404159405159406159407159408159409159410159411159412159413159414159415159416159417159418159419159420159421159422159423159424159425159426159427159428159429159430159431159432159433159434159435159436159437159438159439159440159441159442159443159444159445159446159447159448159449159450159451159452159453159454159455159456159457159458159459159460159461159462159463159464159465159466159467159468159469159470159471159472159473159474159475159476159477159478159479159480159481159482159483159484159485159486159487159488159489159490159491159492159493159494159495159496159497159498159499159500159501159502159503159504159505159506159507159508159509159510159511159512159513159514159515159516159517159518159519159520159521159522159523159524159525159526159527159528159529159530159531159532159533159534159535159536159537159538159539159540159541159542159543159544159545159546159547159548159549159550159551159552159553159554159555159556159557159558159559159560159561159562159563159564159565159566159567159568159569159570159571159572159573159574159575159576159577159578159579159580159581159582159583159584159585159586159587159588159589159590159591159592159593159594159595159596159597159598159599159600159601159602159603159604159605159606159607159608159609159610159611159612159613159614159615159616159617159618159619159620159621159622159623159624159625159626159627159628159629159630159631159632159633159634159635159636159637159638159639159640159641159642159643159644159645159646159647159648159649159650159651159652159653159654159655159656159657159658159659159660159661159662159663159664159665159666159667159668159669159670159671159672159673159674159675159676159677159678159679159680159681159682159683159684159685159686159687159688159689159690159691159692159693159694159695159696159697159698159699159700159701159702159703159704159705159706159707159708159709159710159711159712159713159714159715159716159717159718159719159720159721159722159723159724159725159726159727159728159729159730159731159732159733159734159735159736159737159738159739159740159741159742159743159744159745159746159747159748159749159750159751159752159753159754159755159756159757159758159759159760159761159762159763159764159765159766159767159768159769159770159771159772159773159774159775159776159777159778159779159780159781159782159783159784159785159786159787159788159789159790159791159792159793159794159795159796159797159798159799159800159801159802159803159804159805159806159807159808159809159810159811159812159813159814159815159816159817159818159819159820159821159822159823159824159825159826159827159828159829159830159831159832159833159834159835159836159837159838159839159840159841159842159843159844159845159846159847159848159849159850159851159852159853159854159855159856159857159858159859159860159861159862159863159864159865159866159867159868159869159870159871159872159873159874159875159876159877159878159879159880159881159882159883159884159885159886159887159888159889159890159891159892159893159894159895159896159897159898159899159900159901159902159903159904159905159906159907159908159909159910159911159912159913159914159915159916159917159918159919159920159921159922159923159924159925159926159927159928159929159930159931159932159933159934159935159936159937159938159939159940159941159942159943159944159945159946159947159948159949159950159951159952159953159954159955159956159957159958159959159960159961159962159963159964159965159966159967159968159969159970159971159972159973159974159975159976159977159978159979159980159981159982159983159984159985159986159987159988159989159990159991159992159993159994159995159996159997159998159999160000160001160002160003160004160005160006160007160008160009160010160011160012160013160014160015160016160017160018160019160020160021160022160023160024160025160026160027160028160029160030160031160032160033160034160035160036160037160038160039160040160041160042160043160044160045160046160047160048160049160050160051160052160053160054160055160056160057160058160059160060160061160062160063160064160065160066160067160068160069160070160071160072160073160074160075160076160077160078160079160080160081160082160083160084160085160086160087160088160089160090160091160092160093160094160095160096160097160098160099160100160101160102160103160104160105160106160107160108160109160110160111160112160113160114160115160116160117160118160119160120160121160122160123160124160125160126160127160128160129160130160131160132160133160134160135160136160137160138160139160140160141160142160143160144160145160146160147160148160149160150160151160152160153160154160155160156160157160158160159160160160161160162160163160164160165160166160167160168160169160170160171160172160173160174160175160176160177160178160179160180160181160182160183160184160185160186160187160188160189160190160191160192160193160194160195160196160197160198160199160200160201160202160203160204160205160206160207160208160209160210160211160212160213160214160215160216160217160218160219160220160221160222160223160224160225160226160227160228160229160230160231160232160233160234160235160236160237160238160239160240160241160242160243160244160245160246160247160248160249160250160251160252160253160254160255160256160257160258160259160260160261160262160263160264160265160266160267160268160269160270160271160272160273160274160275160276160277160278160279160280160281160282160283160284160285160286160287160288160289160290160291160292160293160294160295160296160297160298160299160300160301160302160303160304160305160306160307160308160309160310160311160312160313160314160315160316160317160318160319160320160321160322160323160324160325160326160327160328160329160330160331160332160333160334160335160336160337160338160339160340160341160342160343160344160345160346160347160348160349160350160351160352160353160354160355160356160357160358160359160360160361160362160363160364160365160366160367160368160369160370160371160372160373160374160375160376160377160378160379160380160381160382160383160384160385160386160387160388160389160390160391160392160393160394160395160396160397160398160399160400160401160402160403160404160405160406160407160408160409160410160411160412160413160414160415160416160417160418160419160420160421160422160423160424160425160426160427160428160429160430160431160432160433160434160435160436160437160438160439160440160441160442160443160444160445160446160447160448160449160450160451160452160453160454160455160456160457160458160459160460160461160462160463160464160465160466160467160468160469160470160471160472160473160474160475160476160477160478160479160480160481160482160483160484160485160486160487160488160489160490160491160492160493160494160495160496160497160498160499160500160501160502160503160504160505160506160507160508160509160510160511160512160513160514160515160516160517160518160519160520160521160522160523160524160525160526160527160528160529160530160531160532160533160534160535160536160537160538160539160540160541160542160543160544160545160546160547160548160549160550160551160552160553160554160555160556160557160558160559160560160561160562160563160564160565160566160567160568160569160570160571160572160573160574160575160576160577160578160579160580160581160582160583160584160585160586160587160588160589160590160591160592160593160594160595160596160597160598160599160600160601160602160603160604160605160606160607160608160609160610160611160612160613160614160615160616160617160618160619160620160621160622160623160624160625160626160627160628160629160630160631160632160633160634160635160636160637160638160639160640160641160642160643160644160645160646160647160648160649160650160651160652160653160654160655160656160657160658160659160660160661160662160663160664160665160666160667160668160669160670160671160672160673160674160675160676160677160678160679160680160681160682160683160684160685160686160687160688160689160690160691160692160693160694160695160696160697160698160699160700160701160702160703160704160705160706160707160708160709160710160711160712160713160714160715160716160717160718160719160720160721160722160723160724160725160726160727160728160729160730160731160732160733160734160735160736160737160738160739160740160741160742160743160744160745160746160747160748160749160750160751160752160753160754160755160756160757160758160759160760160761160762160763160764160765160766160767160768160769160770160771160772160773160774160775160776160777160778160779160780160781160782160783160784160785160786160787160788160789160790160791160792160793160794160795160796160797160798160799160800160801160802160803160804160805160806160807160808160809160810160811160812160813160814160815160816160817160818160819160820160821160822160823160824160825160826160827160828160829160830160831160832160833160834160835160836160837160838160839160840160841160842160843160844160845160846160847160848160849160850160851160852160853160854160855160856160857160858160859160860160861160862160863160864160865160866160867160868160869160870160871160872160873160874160875160876160877160878160879160880160881160882160883160884160885160886160887160888160889160890160891160892160893160894160895160896160897160898160899160900160901160902160903160904160905160906160907160908160909160910160911160912160913160914160915160916160917160918160919160920160921160922160923160924160925160926160927160928160929160930160931160932160933160934160935160936160937160938160939160940160941160942160943160944160945160946160947160948160949160950160951160952160953160954160955160956160957160958160959160960160961160962160963160964160965160966160967160968160969160970160971160972160973160974160975160976160977160978160979160980160981160982160983160984160985160986160987160988160989160990160991160992160993160994160995160996160997160998160999161000161001161002161003161004161005161006161007161008161009161010161011161012161013161014161015161016161017161018161019161020161021161022161023161024161025161026161027161028161029161030161031161032161033161034161035161036161037161038161039161040161041161042161043161044161045161046161047161048161049161050161051161052161053161054161055161056161057161058161059161060161061161062161063161064161065161066161067161068161069161070161071161072161073161074161075161076161077161078161079161080161081161082161083161084161085161086161087161088161089161090161091161092161093161094161095161096161097161098161099161100161101161102161103161104161105161106161107161108161109161110161111161112161113161114161115161116161117161118161119161120161121161122161123161124161125161126161127161128161129161130161131161132161133161134161135161136161137161138161139161140161141161142161143161144161145161146161147161148161149161150161151161152161153161154161155161156161157161158161159161160161161161162161163161164161165161166161167161168161169161170161171161172161173161174161175161176161177161178161179161180161181161182161183161184161185161186161187161188161189161190161191161192161193161194161195161196161197161198161199161200161201161202161203161204161205161206161207161208161209161210161211161212161213161214161215161216161217161218161219161220161221161222161223161224161225161226161227161228161229161230161231161232161233161234161235161236161237161238161239161240161241161242161243161244161245161246161247161248161249161250161251161252161253161254161255161256161257161258161259161260161261161262161263161264161265161266161267161268161269161270161271161272161273161274161275161276161277161278161279161280161281161282161283161284161285161286161287161288161289161290161291161292161293161294161295161296161297161298161299161300161301161302161303161304161305161306161307161308161309161310161311161312161313161314161315161316161317161318161319161320161321161322161323161324161325161326161327161328161329161330161331161332161333161334161335161336161337161338161339161340161341161342161343161344161345161346161347161348161349161350161351161352161353161354161355161356161357161358161359161360161361161362161363161364161365161366161367161368161369161370161371161372161373161374161375161376161377161378161379161380161381161382161383161384161385161386161387161388161389161390161391161392161393161394161395161396161397161398161399161400161401161402161403161404161405161406161407161408161409161410161411161412161413161414161415161416161417161418161419161420161421161422161423161424161425161426161427161428161429161430161431161432161433161434161435161436161437161438161439161440161441161442161443161444161445161446161447161448161449161450161451161452161453161454161455161456161457161458161459161460161461161462161463161464161465161466161467161468161469161470161471161472161473161474161475161476161477161478161479161480161481161482161483161484161485161486161487161488161489161490161491161492161493161494161495161496161497161498161499161500161501161502161503161504161505161506161507161508161509161510161511161512161513161514161515161516161517161518161519161520161521161522161523161524161525161526161527161528161529161530161531161532161533161534161535161536161537161538161539161540161541161542161543161544161545161546161547161548161549161550161551161552161553161554161555161556161557161558161559161560161561161562161563161564161565161566161567161568161569161570161571161572161573161574161575161576161577161578161579161580161581161582161583161584161585161586161587161588161589161590161591161592161593161594161595161596161597161598161599161600161601161602161603161604161605161606161607161608161609161610161611161612161613161614161615161616161617161618161619161620161621161622161623161624161625161626161627161628161629161630161631161632161633161634161635161636161637161638161639161640161641161642161643161644161645161646161647161648161649161650161651161652161653161654161655161656161657161658161659161660161661161662161663161664161665161666161667161668161669161670161671161672161673161674161675161676161677161678161679161680161681161682161683161684161685161686161687161688161689161690161691161692161693161694161695161696161697161698161699161700161701161702161703161704161705161706161707161708161709161710161711161712161713161714161715161716161717161718161719161720161721161722161723161724161725161726161727161728161729161730161731161732161733161734161735161736161737161738161739161740161741161742161743161744161745161746161747161748161749161750161751161752161753161754161755161756161757161758161759161760161761161762161763161764161765161766161767161768161769161770161771161772161773161774161775161776161777161778161779161780161781161782161783161784161785161786161787161788161789161790161791161792161793161794161795161796161797161798161799161800161801161802161803161804161805161806161807161808161809161810161811161812161813161814161815161816161817161818161819161820161821161822161823161824161825161826161827161828161829161830161831161832161833161834161835161836161837161838161839161840161841161842161843161844161845161846161847161848161849161850161851161852161853161854161855161856161857161858161859161860161861161862161863161864161865161866161867161868161869161870161871161872161873161874161875161876161877161878161879161880161881161882161883161884161885161886161887161888161889161890161891161892161893161894161895161896161897161898161899161900161901161902161903161904161905161906161907161908161909161910161911161912161913161914161915161916161917161918161919161920161921161922161923161924161925161926161927161928161929161930161931161932161933161934161935161936161937161938161939161940161941161942161943161944161945161946161947161948161949161950161951161952161953161954161955161956161957161958161959161960161961161962161963161964161965161966161967161968161969161970161971161972161973161974161975161976161977161978161979161980161981161982161983161984161985161986161987161988161989161990161991161992161993161994161995161996161997161998161999162000162001162002162003162004162005162006162007162008162009162010162011162012162013162014162015162016162017162018162019162020162021162022162023162024162025162026162027162028162029162030162031162032162033162034162035162036162037162038162039162040162041162042162043162044162045162046162047162048162049162050162051162052162053162054162055162056162057162058162059162060162061162062162063162064162065162066162067162068162069162070162071162072162073162074162075162076162077162078162079162080162081162082162083162084162085162086162087162088162089162090162091162092162093162094162095162096162097162098162099162100162101162102162103162104162105162106162107162108162109162110162111162112162113162114162115162116162117162118162119162120162121162122162123162124162125162126162127162128162129162130162131162132162133162134162135162136162137162138162139162140162141162142162143162144162145162146162147162148162149162150162151162152162153162154162155162156162157162158162159162160162161162162162163162164162165162166162167162168162169162170162171162172162173162174162175162176162177162178162179162180162181162182162183162184162185162186162187162188162189162190162191162192162193162194162195162196162197162198162199162200162201162202162203162204162205162206162207162208162209162210162211162212162213162214162215162216162217162218162219162220162221162222162223162224162225162226162227162228162229162230162231162232162233162234162235162236162237162238162239162240162241162242162243162244162245162246162247162248162249162250162251162252162253162254162255162256162257162258162259162260162261162262162263162264162265162266162267162268162269162270162271162272162273162274162275162276162277162278162279162280162281162282162283162284162285162286162287162288162289162290162291162292162293162294162295162296162297162298162299162300162301162302162303162304162305162306162307162308162309162310162311162312162313162314162315162316162317162318162319162320162321162322162323162324162325162326162327162328162329162330162331162332162333162334162335162336162337162338162339162340162341162342162343162344162345162346162347162348162349162350162351162352162353162354162355162356162357162358162359162360162361162362162363162364162365162366162367162368162369162370162371162372162373162374162375162376162377162378162379162380162381162382162383162384162385162386162387162388162389162390162391162392162393162394162395162396162397162398162399162400162401162402162403162404162405162406162407162408162409162410162411162412162413162414162415162416162417162418162419162420162421162422162423162424162425162426162427162428162429162430162431162432162433162434162435162436162437162438162439162440162441162442162443162444162445162446162447162448162449162450162451162452162453162454162455162456162457162458162459162460162461162462162463162464162465162466162467162468162469162470162471162472162473162474162475162476162477162478162479162480162481162482162483162484162485162486162487162488162489162490162491162492162493162494162495162496162497162498162499162500162501162502162503162504162505162506162507162508162509162510162511162512162513162514162515162516162517162518162519162520162521162522162523162524162525162526162527162528162529162530162531162532162533162534162535162536162537162538162539162540162541162542162543162544162545162546162547162548162549162550162551162552162553162554162555162556162557162558162559162560162561162562162563162564162565162566162567162568162569162570162571162572162573162574162575162576162577162578162579162580162581162582162583162584162585162586162587162588162589162590162591162592162593162594162595162596162597162598162599162600162601162602162603162604162605162606162607162608162609162610162611162612162613162614162615162616162617162618162619162620162621162622162623162624162625162626162627162628162629162630162631162632162633162634162635162636162637162638162639162640162641162642162643162644162645162646162647162648162649162650162651162652162653162654162655162656162657162658162659162660162661162662162663162664162665162666162667162668162669162670162671162672162673162674162675162676162677162678162679162680162681162682162683162684162685162686162687162688162689162690162691162692162693162694162695162696162697162698162699162700162701162702162703162704162705162706162707162708162709162710162711162712162713162714162715162716162717162718162719162720162721162722162723162724162725162726162727162728162729162730162731162732162733162734162735162736162737162738162739162740162741162742162743162744162745162746162747162748162749162750162751162752162753162754162755162756162757162758162759162760162761162762162763162764162765162766162767162768162769162770162771162772162773162774162775162776162777162778162779162780162781162782162783162784162785162786162787162788162789162790162791162792162793162794162795162796162797162798162799162800162801162802162803162804162805162806162807162808162809162810162811162812162813162814162815162816162817162818162819162820162821162822162823162824162825162826162827162828162829162830162831162832162833162834162835162836162837162838162839162840162841162842162843162844162845162846162847162848162849162850162851162852162853162854162855162856162857162858162859162860162861162862162863162864162865162866162867162868162869162870162871162872162873162874162875162876162877162878162879162880162881162882162883162884162885162886162887162888162889162890162891162892162893162894162895162896162897162898162899162900162901162902162903162904162905162906162907162908162909162910162911162912162913162914162915162916162917162918162919162920162921162922162923162924162925162926162927162928162929162930162931162932162933162934162935162936162937162938162939162940162941162942162943162944162945162946162947162948162949162950162951162952162953162954162955162956162957162958162959162960162961162962162963162964162965162966162967162968162969162970162971162972162973162974162975162976162977162978162979162980162981162982162983162984162985162986162987162988162989162990162991162992162993162994162995162996162997162998162999163000163001163002163003163004163005163006163007163008163009163010163011163012163013163014163015163016163017163018163019163020163021163022163023163024163025163026163027163028163029163030163031163032163033163034163035163036163037163038163039163040163041163042163043163044163045163046163047163048163049163050163051163052163053163054163055163056163057163058163059163060163061163062163063163064163065163066163067163068163069163070163071163072163073163074163075163076163077163078163079163080163081163082163083163084163085163086163087163088163089163090163091163092163093163094163095163096163097163098163099163100163101163102163103163104163105163106163107163108163109163110163111163112163113163114163115163116163117163118163119163120163121163122163123163124163125163126163127163128163129163130163131163132163133163134163135163136163137163138163139163140163141163142163143163144163145163146163147163148163149163150163151163152163153163154163155163156163157163158163159163160163161163162163163163164163165163166163167163168163169163170163171163172163173163174163175163176163177163178163179163180163181163182163183163184163185163186163187163188163189163190163191163192163193163194163195163196163197163198163199163200163201163202163203163204163205163206163207163208163209163210163211163212163213163214163215163216163217163218163219163220163221163222163223163224163225163226163227163228163229163230163231163232163233163234163235163236163237163238163239163240163241163242163243163244163245163246163247163248163249163250163251163252163253163254163255163256163257163258163259163260163261163262163263163264163265163266163267163268163269163270163271163272163273163274163275163276163277163278163279163280163281163282163283163284163285163286163287163288163289163290163291163292163293163294163295163296163297163298163299163300163301163302163303163304163305163306163307163308163309163310163311163312163313163314163315163316163317163318163319163320163321163322163323163324163325163326163327163328163329163330163331163332163333163334163335163336163337163338163339163340163341163342163343163344163345163346163347163348163349163350163351163352163353163354163355163356163357163358163359163360163361163362163363163364163365163366163367163368163369163370163371163372163373163374163375163376163377163378163379163380163381163382163383163384163385163386163387163388163389163390163391163392163393163394163395163396163397163398163399163400163401163402163403163404163405163406163407163408163409163410163411163412163413163414163415163416163417163418163419163420163421163422163423163424163425163426163427163428163429163430163431163432163433163434163435163436163437163438163439163440163441163442163443163444163445163446163447163448163449163450163451163452163453163454163455163456163457163458163459163460163461163462163463163464163465163466163467163468163469163470163471163472163473163474163475163476163477163478163479163480163481163482163483163484163485163486163487163488163489163490163491163492163493163494163495163496163497163498163499163500163501163502163503163504163505163506163507163508163509163510163511163512163513163514163515163516163517163518163519163520163521163522163523163524163525163526163527163528163529163530163531163532163533163534163535163536163537163538163539163540163541163542163543163544163545163546163547163548163549163550163551163552163553163554163555163556163557163558163559163560163561163562163563163564163565163566163567163568163569163570163571163572163573163574163575163576163577163578163579163580163581163582163583163584163585163586163587163588163589163590163591163592163593163594163595163596163597163598163599163600163601163602163603163604163605163606163607163608163609163610163611163612163613163614163615163616163617163618163619163620163621163622163623163624163625163626163627163628163629163630163631163632163633163634163635163636163637163638163639163640163641163642163643163644163645163646163647163648163649163650163651163652163653163654163655163656163657163658163659163660163661163662163663163664163665163666163667163668163669163670163671163672163673163674163675163676163677163678163679163680163681163682163683163684163685163686163687163688163689163690163691163692163693163694163695163696163697163698163699163700163701163702163703163704163705163706163707163708163709163710163711163712163713163714163715163716163717163718163719163720163721163722163723163724163725163726163727163728163729163730163731163732163733163734163735163736163737163738163739163740163741163742163743163744163745163746163747163748163749163750163751163752163753163754163755163756163757163758163759163760163761163762163763163764163765163766163767163768163769163770163771163772163773163774163775163776163777163778163779163780163781163782163783163784163785163786163787163788163789163790163791163792163793163794163795163796163797163798163799163800163801163802163803163804163805163806163807163808163809163810163811163812163813163814163815163816163817163818163819163820163821163822163823163824163825163826163827163828163829163830163831163832163833163834163835163836163837163838163839163840163841163842163843163844163845163846163847163848163849163850163851163852163853163854163855163856163857163858163859163860163861163862163863163864163865163866163867163868163869163870163871163872163873163874163875163876163877163878163879163880163881163882163883163884163885163886163887163888163889163890163891163892163893163894163895163896163897163898163899163900163901163902163903163904163905163906163907163908163909163910163911163912163913163914163915163916163917163918163919163920163921163922163923163924163925163926163927163928163929163930163931163932163933163934163935163936163937163938163939163940163941163942163943163944163945163946163947163948163949163950163951163952163953163954163955163956163957163958163959163960163961163962163963163964163965163966163967163968163969163970163971163972163973163974163975163976163977163978163979163980163981163982163983163984163985163986163987163988163989163990163991163992163993163994163995163996163997163998163999164000164001164002164003164004164005164006164007164008164009164010164011164012164013164014164015164016164017164018164019164020164021164022164023164024164025164026164027164028164029164030164031164032164033164034164035164036164037164038164039164040164041164042164043164044164045164046164047164048164049164050164051164052164053164054164055164056164057164058164059164060164061164062164063164064164065164066164067164068164069164070164071164072164073164074164075164076164077164078164079164080164081164082164083164084164085164086164087164088164089164090164091164092164093164094164095164096164097164098164099164100164101164102164103164104164105164106164107164108164109164110164111164112164113164114164115164116164117164118164119164120164121164122164123164124164125164126164127164128164129164130164131164132164133164134164135164136164137164138164139164140164141164142164143164144164145164146164147164148164149164150164151164152164153164154164155164156164157164158164159164160164161164162164163164164164165164166164167164168164169164170164171164172164173164174164175164176164177164178164179164180164181164182164183164184164185164186164187164188164189164190164191164192164193164194164195164196164197164198164199164200164201164202164203164204164205164206164207164208164209164210164211164212164213164214164215164216164217164218164219164220164221164222164223164224164225164226164227164228164229164230164231164232164233164234164235164236164237164238164239164240164241164242164243164244164245164246164247164248164249164250164251164252164253164254164255164256164257164258164259164260164261164262164263164264164265164266164267164268164269164270164271164272164273164274164275164276164277164278164279164280164281164282164283164284164285164286164287164288164289164290164291164292164293164294164295164296164297164298164299164300164301164302164303164304164305164306164307164308164309164310164311164312164313164314164315164316164317164318164319164320164321164322164323164324164325164326164327164328164329164330164331164332164333164334164335164336164337164338164339164340164341164342164343164344164345164346164347164348164349164350164351164352164353164354164355164356164357164358164359164360164361164362164363164364164365164366164367164368164369164370164371164372164373164374164375164376164377164378164379164380164381164382164383164384164385164386164387164388164389164390164391164392164393164394164395164396164397164398164399164400164401164402164403164404164405164406164407164408164409164410164411164412164413164414164415164416164417164418164419164420164421164422164423164424164425164426164427164428164429164430164431164432164433164434164435164436164437164438164439164440164441164442164443164444164445164446164447164448164449164450164451164452164453164454164455164456164457164458164459164460164461164462164463164464164465164466164467164468164469164470164471164472164473164474164475164476164477164478164479164480164481164482164483164484164485164486164487164488164489164490164491164492164493164494164495164496164497164498164499164500164501164502164503164504164505164506164507164508164509164510164511164512164513164514164515164516164517164518164519164520164521164522164523164524164525164526164527164528164529164530164531164532164533164534164535164536164537164538164539164540164541164542164543164544164545164546164547164548164549164550164551164552164553164554164555164556164557164558164559164560164561164562164563164564164565164566164567164568164569164570164571164572164573164574164575164576164577164578164579164580164581164582164583164584164585164586164587164588164589164590164591164592164593164594164595164596164597164598164599164600164601164602164603164604164605164606164607164608164609164610164611164612164613164614164615164616164617164618164619164620164621164622164623164624164625164626164627164628164629164630164631164632164633164634164635164636164637164638164639164640164641164642164643164644164645164646164647164648164649164650164651164652164653164654164655164656164657164658164659164660164661164662164663164664164665164666164667164668164669164670164671164672164673164674164675164676164677164678164679164680164681164682164683164684164685164686164687164688164689164690164691164692164693164694164695164696164697164698164699164700164701164702164703164704164705164706164707164708164709164710164711164712164713164714164715164716164717164718164719164720164721164722164723164724164725164726164727164728164729164730164731164732164733164734164735164736164737164738164739164740164741164742164743164744164745164746164747164748164749164750164751164752164753164754164755164756164757164758164759164760164761164762164763164764164765164766164767164768164769164770164771164772164773164774164775164776164777164778164779164780164781164782164783164784164785164786164787164788164789164790164791164792164793164794164795164796164797164798164799164800164801164802164803164804164805164806164807164808164809164810164811164812164813164814164815164816164817164818164819164820164821164822164823164824164825164826164827164828164829164830164831164832164833164834164835164836164837164838164839164840164841164842164843164844164845164846164847164848164849164850164851164852164853164854164855164856164857164858164859164860164861164862164863164864164865164866164867164868164869164870164871164872164873164874164875164876164877164878164879164880164881164882164883164884164885164886164887164888164889164890164891164892164893164894164895164896164897164898164899164900164901164902164903164904164905164906164907164908164909164910164911164912164913164914164915164916164917164918164919164920164921164922164923164924164925164926164927164928164929164930164931164932164933164934164935164936164937164938164939164940164941164942164943164944164945164946164947164948164949164950164951164952164953164954164955164956164957164958164959164960164961164962164963164964164965164966164967164968164969164970164971164972164973164974164975164976164977164978164979164980164981164982164983164984164985164986164987164988164989164990164991164992164993164994164995164996164997164998164999165000165001165002165003165004165005165006165007165008165009165010165011165012165013165014165015165016165017165018165019165020165021165022165023165024165025165026165027165028165029165030165031165032165033165034165035165036165037165038165039165040165041165042165043165044165045165046165047165048165049165050165051165052165053165054165055165056165057165058165059165060165061165062165063165064165065165066165067165068165069165070165071165072165073165074165075165076165077165078165079165080165081165082165083165084165085165086165087165088165089165090165091165092165093165094165095165096165097165098165099165100165101165102165103165104165105165106165107165108165109165110165111165112165113165114165115165116165117165118165119165120165121165122165123165124165125165126165127165128165129165130165131165132165133165134165135165136165137165138165139165140165141165142165143165144165145165146165147165148165149165150165151165152165153165154165155165156165157165158165159165160165161165162165163165164165165165166165167165168165169165170165171165172165173165174165175165176165177165178165179165180165181165182165183165184165185165186165187165188165189165190165191165192165193165194165195165196165197165198165199165200165201165202165203165204165205165206165207165208165209165210165211165212165213165214165215165216165217165218165219165220165221165222165223165224165225165226165227165228165229165230165231165232165233165234165235165236165237165238165239165240165241165242165243165244165245165246165247165248165249165250165251165252165253165254165255165256165257165258165259165260165261165262165263165264165265165266165267165268165269165270165271165272165273165274165275165276165277165278165279165280165281165282165283165284165285165286165287165288165289165290165291165292165293165294165295165296165297165298165299165300165301165302165303165304165305165306165307165308165309165310165311165312165313165314165315165316165317165318165319165320165321165322165323165324165325165326165327165328165329165330165331165332165333165334165335165336165337165338165339165340165341165342165343165344165345165346165347165348165349165350165351165352165353165354165355165356165357165358165359165360165361165362165363165364165365165366165367165368165369165370165371165372165373165374165375165376165377165378165379165380165381165382165383165384165385165386165387165388165389165390165391165392165393165394165395165396165397165398165399165400165401165402165403165404165405165406165407165408165409165410165411165412165413165414165415165416165417165418165419165420165421165422165423165424165425165426165427165428165429165430165431165432165433165434165435165436165437165438165439165440165441165442165443165444165445165446165447165448165449165450165451165452165453165454165455165456165457165458165459165460165461165462165463165464165465165466165467165468165469165470165471165472165473165474165475165476165477165478165479165480165481165482165483165484165485165486165487165488165489165490165491165492165493165494165495165496165497165498165499165500165501165502165503165504165505165506165507165508165509165510165511165512165513165514165515165516165517165518165519165520165521165522165523165524165525165526165527165528165529165530165531165532165533165534165535165536165537165538165539165540165541165542165543165544165545165546165547165548165549165550165551165552165553165554165555165556165557165558165559165560165561165562165563165564165565165566165567165568165569165570165571165572165573165574165575165576165577165578165579165580165581165582165583165584165585165586165587165588165589165590165591165592165593165594165595165596165597165598165599165600165601165602165603165604165605165606165607165608165609165610165611165612165613165614165615165616165617165618165619165620165621165622165623165624165625165626165627165628165629165630165631165632165633165634165635165636165637165638165639165640165641165642165643165644165645165646165647165648165649165650165651165652165653165654165655165656165657165658165659165660165661165662165663165664165665165666165667165668165669165670165671165672165673165674165675165676165677165678165679165680165681165682165683165684165685165686165687165688165689165690165691165692165693165694165695165696165697165698165699165700165701165702165703165704165705165706165707165708165709165710165711165712165713165714165715165716165717165718165719165720165721165722165723165724165725165726165727165728165729165730165731165732165733165734165735165736165737165738165739165740165741165742165743165744165745165746165747165748165749165750165751165752165753165754165755165756165757165758165759165760165761165762165763165764165765165766165767165768165769165770165771165772165773165774165775165776165777165778165779165780165781165782165783165784165785165786165787165788165789165790165791165792165793165794165795165796165797165798165799165800165801165802165803165804165805165806165807165808165809165810165811165812165813165814165815165816165817165818165819165820165821165822165823165824165825165826165827165828165829165830165831165832165833165834165835165836165837165838165839165840165841165842165843165844165845165846165847165848165849165850165851165852165853165854165855165856165857165858165859165860165861165862165863165864165865165866165867165868165869165870165871165872165873165874165875165876165877165878165879165880165881165882165883165884165885165886165887165888165889165890165891165892165893165894165895165896165897165898165899165900165901165902165903165904165905165906165907165908165909165910165911165912165913165914165915165916165917165918165919165920165921165922165923165924165925165926165927165928165929165930165931165932165933165934165935165936165937165938165939165940165941165942165943165944165945165946165947165948165949165950165951165952165953165954165955165956165957165958165959165960165961165962165963165964165965165966165967165968165969165970165971165972165973165974165975165976165977165978165979165980165981165982165983165984165985165986165987165988165989165990165991165992165993165994165995165996165997165998165999166000166001166002166003166004166005166006166007166008166009166010166011166012166013166014166015166016166017166018166019166020166021166022166023166024166025166026166027166028166029166030166031166032166033166034166035166036166037166038166039166040166041166042166043166044166045166046166047166048166049166050166051166052166053166054166055166056166057166058166059166060166061166062166063166064166065166066166067166068166069166070166071166072166073166074166075166076166077166078166079166080166081166082166083166084166085166086166087166088166089166090166091166092166093166094166095166096166097166098166099166100166101166102166103166104166105166106166107166108166109166110166111166112166113166114166115166116166117166118166119166120166121166122166123166124166125166126166127166128166129166130166131166132166133166134166135166136166137166138166139166140166141166142166143166144166145166146166147166148166149166150166151166152166153166154166155166156166157166158166159166160166161166162166163166164166165166166166167166168166169166170166171166172166173166174166175166176166177166178166179166180166181166182166183166184166185166186166187166188166189166190166191166192166193166194166195166196166197166198166199166200166201166202166203166204166205166206166207166208166209166210166211166212166213166214166215166216166217166218166219166220166221166222166223166224166225166226166227166228166229166230166231166232166233166234166235166236166237166238166239166240166241166242166243166244166245166246166247166248166249166250166251166252166253166254166255166256166257166258166259166260166261166262166263166264166265166266166267166268166269166270166271166272166273166274166275166276166277166278166279166280166281166282166283166284166285166286166287166288166289166290166291166292166293166294166295166296166297166298166299166300166301166302166303166304166305166306166307166308166309166310166311166312166313166314166315166316166317166318166319166320166321166322166323166324166325166326166327166328166329166330166331166332166333166334166335166336166337166338166339166340166341166342166343166344166345166346166347166348166349166350166351166352166353166354166355166356166357166358166359166360166361166362166363166364166365166366166367166368166369166370166371166372166373166374166375166376166377166378166379166380166381166382166383166384166385166386166387166388166389166390166391166392166393166394166395166396166397166398166399166400166401166402166403166404166405166406166407166408166409166410166411166412166413166414166415166416166417166418166419166420166421166422166423166424166425166426166427166428166429166430166431166432166433166434166435166436166437166438166439166440166441166442166443166444166445166446166447166448166449166450166451166452166453166454166455166456166457166458166459166460166461166462166463166464166465166466166467166468166469166470166471166472166473166474166475166476166477166478166479166480166481166482166483166484166485166486166487166488166489166490166491166492166493166494166495166496166497166498166499166500166501166502166503166504166505166506166507166508166509166510166511166512166513166514166515166516166517166518166519166520166521166522166523166524166525166526166527166528166529166530166531166532166533166534166535166536166537166538166539166540166541166542166543166544166545166546166547166548166549166550166551166552166553166554166555166556166557166558166559166560166561166562166563166564166565166566166567166568166569166570166571166572166573166574166575166576166577166578166579166580166581166582166583166584166585166586166587166588166589166590166591166592166593166594166595166596166597166598166599166600166601166602166603166604166605166606166607166608166609166610166611166612166613166614166615166616166617166618166619166620166621166622166623166624166625166626166627166628166629166630166631166632166633166634166635166636166637166638166639166640166641166642166643166644166645166646166647166648166649166650166651166652166653166654166655166656166657166658166659166660166661166662166663166664166665166666166667166668166669166670166671166672166673166674166675166676166677166678166679166680166681166682166683166684166685166686166687166688166689166690166691166692166693166694166695166696166697166698166699166700166701166702166703166704166705166706166707166708166709166710166711166712166713166714166715166716166717166718166719166720166721166722166723166724166725166726166727166728166729166730166731166732166733166734166735166736166737166738166739166740166741166742166743166744166745166746166747166748166749166750166751166752166753166754166755166756166757166758166759166760166761166762166763166764166765166766166767166768166769166770166771166772166773166774166775166776166777166778166779166780166781166782166783166784166785166786166787166788166789166790166791166792166793166794166795166796166797166798166799166800166801166802166803166804166805166806166807166808166809166810166811166812166813166814166815166816166817166818166819166820166821166822166823166824166825166826166827166828166829166830166831166832166833166834166835166836166837166838166839166840166841166842166843166844166845166846166847166848166849166850166851166852166853166854166855166856166857166858166859166860166861166862166863166864166865166866166867166868166869166870166871166872166873166874166875166876166877166878166879166880166881166882166883166884166885166886166887166888166889166890166891166892166893166894166895166896166897166898166899166900166901166902166903166904166905166906166907166908166909166910166911166912166913166914166915166916166917166918166919166920166921166922166923166924166925166926166927166928166929166930166931166932166933166934166935166936166937166938166939166940166941166942166943166944166945166946166947166948166949166950166951166952166953166954166955166956166957166958166959166960166961166962166963166964166965166966166967166968166969166970166971166972166973166974166975166976166977166978166979166980166981166982166983166984166985166986166987166988166989166990166991166992166993166994166995166996166997166998166999167000167001167002167003167004167005167006167007167008167009167010167011167012167013167014167015167016167017167018167019167020167021167022167023167024167025167026167027167028167029167030167031167032167033167034167035167036167037167038167039167040167041167042167043167044167045167046167047167048167049167050167051167052167053167054167055167056167057167058167059167060167061167062167063167064167065167066167067167068167069167070167071167072167073167074167075167076167077167078167079167080167081167082167083167084167085167086167087167088167089167090167091167092167093167094167095167096167097167098167099167100167101167102167103167104167105167106167107167108167109167110167111167112167113167114167115167116167117167118167119167120167121167122167123167124167125167126167127167128167129167130167131167132167133167134167135167136167137167138167139167140167141167142167143167144167145167146167147167148167149167150167151167152167153167154167155167156167157167158167159167160167161167162167163167164167165167166167167167168167169167170167171167172167173167174167175167176167177167178167179167180167181167182167183167184167185167186167187167188167189167190167191167192167193167194167195167196167197167198167199167200167201167202167203167204167205167206167207167208167209167210167211167212167213167214167215167216167217167218167219167220167221167222167223167224167225167226167227167228167229167230167231167232167233167234167235167236167237167238167239167240167241167242167243167244167245167246167247167248167249167250167251167252167253167254167255167256167257167258167259167260167261167262167263167264167265167266167267167268167269167270167271167272167273167274167275167276167277167278167279167280167281167282167283167284167285167286167287167288167289167290167291167292167293167294167295167296167297167298167299167300167301167302167303167304167305167306167307167308167309167310167311167312167313167314167315167316167317167318167319167320167321167322167323167324167325167326167327167328167329167330167331167332167333167334167335167336167337167338167339167340167341167342167343167344167345167346167347167348167349167350167351167352167353167354167355167356167357167358167359167360167361167362167363167364167365167366167367167368167369167370167371167372167373167374167375167376167377167378167379167380167381167382167383167384167385167386167387167388167389167390167391167392167393167394167395167396167397167398167399167400167401167402167403167404167405167406167407167408167409167410167411167412167413167414167415167416167417167418167419167420167421167422167423167424167425167426167427167428167429167430167431167432167433167434167435167436167437167438167439167440167441167442167443167444167445167446167447167448167449167450167451167452167453167454167455167456167457167458167459167460167461167462167463167464167465167466167467167468167469167470167471167472167473167474167475167476167477167478167479167480167481167482167483167484167485167486167487167488167489167490167491167492167493167494167495167496167497167498167499167500167501167502167503167504167505167506167507167508167509167510167511167512167513167514167515167516167517167518167519167520167521167522167523167524167525167526167527167528167529167530167531167532167533167534167535167536167537167538167539167540167541167542167543167544167545167546167547167548167549167550167551167552167553167554167555167556167557167558167559167560167561167562167563167564167565167566167567167568167569167570167571167572167573167574167575167576167577167578167579167580167581167582167583167584167585167586167587167588167589167590167591167592167593167594167595167596167597167598167599167600167601167602167603167604167605167606167607167608167609167610167611167612167613167614167615167616167617167618167619167620167621167622167623167624167625167626167627167628167629167630167631167632167633167634167635167636167637167638167639167640167641167642167643167644167645167646167647167648167649167650167651167652167653167654167655167656167657167658167659167660167661167662167663167664167665167666167667167668167669167670167671167672167673167674167675167676167677167678167679167680167681167682167683167684167685167686167687167688167689167690167691167692167693167694167695167696167697167698167699167700167701167702167703167704167705167706167707167708167709167710167711167712167713167714167715167716167717167718167719167720167721167722167723167724167725167726167727167728167729167730167731167732167733167734167735167736167737167738167739167740167741167742167743167744167745167746167747167748167749167750167751167752167753167754167755167756167757167758167759167760167761167762167763167764167765167766167767167768167769167770167771167772167773167774167775167776167777167778167779167780167781167782167783167784167785167786167787167788167789167790167791167792167793167794167795167796167797167798167799167800167801167802167803167804167805167806167807167808167809167810167811167812167813167814167815167816167817167818167819167820167821167822167823167824167825167826167827167828167829167830167831167832167833167834167835167836167837167838167839167840167841167842167843167844167845167846167847167848167849167850167851167852167853167854167855167856167857167858167859167860167861167862167863167864167865167866167867167868167869167870167871167872167873167874167875167876167877167878167879167880167881167882167883167884167885167886167887167888167889167890167891167892167893167894167895167896167897167898167899167900167901167902167903167904167905167906167907167908167909167910167911167912167913167914167915167916167917167918167919167920167921167922167923167924167925167926167927167928167929167930167931167932167933167934167935167936167937167938167939167940167941167942167943167944167945167946167947167948167949167950167951167952167953167954167955167956167957167958167959167960167961167962167963167964167965167966167967167968167969167970167971167972167973167974167975167976167977167978167979167980167981167982167983167984167985167986167987167988167989167990167991167992167993167994167995167996167997167998167999168000168001168002168003168004168005168006168007168008168009168010168011168012168013168014168015168016168017168018168019168020168021168022168023168024168025168026168027168028168029168030168031168032168033168034168035168036168037168038168039168040168041168042168043168044168045168046168047168048168049168050168051168052168053168054168055168056168057168058168059168060168061168062168063168064168065168066168067168068168069168070168071168072168073168074168075168076168077168078168079168080168081168082168083168084168085168086168087168088168089168090168091168092168093168094168095168096168097168098168099168100168101168102168103168104168105168106168107168108168109168110168111168112168113168114168115168116168117168118168119168120168121168122168123168124168125168126168127168128168129168130168131168132168133168134168135168136168137168138168139168140168141168142168143168144168145168146168147168148168149168150168151168152168153168154168155168156168157168158168159168160168161168162168163168164168165168166168167168168168169168170168171168172168173168174168175168176168177168178168179168180168181168182168183168184168185168186168187168188168189168190168191168192168193168194168195168196168197168198168199168200168201168202168203168204168205168206168207168208168209168210168211168212168213168214168215168216168217168218168219168220168221168222168223168224168225168226168227168228168229168230168231168232168233168234168235168236168237168238168239168240168241168242168243168244168245168246168247168248168249168250168251168252168253168254168255168256168257168258168259168260168261168262168263168264168265168266168267168268168269168270168271168272168273168274168275168276168277168278168279168280168281168282168283168284168285168286168287168288168289168290168291168292168293168294168295168296168297168298168299168300168301168302168303168304168305168306168307168308168309168310168311168312168313168314168315168316168317168318168319168320168321168322168323168324168325168326168327168328168329168330168331168332168333168334168335168336168337168338168339168340168341168342168343168344168345168346168347168348168349168350168351168352168353168354168355168356168357168358168359168360168361168362168363168364168365168366168367168368168369168370168371168372168373168374168375168376168377168378168379168380168381168382168383168384168385168386168387168388168389168390168391168392168393168394168395168396168397168398168399168400168401168402168403168404168405168406168407168408168409168410168411168412168413168414168415168416168417168418168419168420168421168422168423168424168425168426168427168428168429168430168431168432168433168434168435168436168437168438168439168440168441168442168443168444168445168446168447168448168449168450168451168452168453168454168455168456168457168458168459168460168461168462168463168464168465168466168467168468168469168470168471168472168473168474168475168476168477168478168479168480168481168482168483168484168485168486168487168488168489168490168491168492168493168494168495168496168497168498168499168500168501168502168503168504168505168506168507168508168509168510168511168512168513168514168515168516168517168518168519168520168521168522168523168524168525168526168527168528168529168530168531168532168533168534168535168536168537168538168539168540168541168542168543168544168545168546168547168548168549168550168551168552168553168554168555168556168557168558168559168560168561168562168563168564168565168566168567168568168569168570168571168572168573168574168575168576168577168578168579168580168581168582168583168584168585168586168587168588168589168590168591168592168593168594168595168596168597168598168599168600168601168602168603168604168605168606168607168608168609168610168611168612168613168614168615168616168617168618168619168620168621168622168623168624168625168626168627168628168629168630168631168632168633168634168635168636168637168638168639168640168641168642168643168644168645168646168647168648168649168650168651168652168653168654168655168656168657168658168659168660168661168662168663168664168665168666168667168668168669168670168671168672168673168674168675168676168677168678168679168680168681168682168683168684168685168686168687168688168689168690168691168692168693168694168695168696168697168698168699168700168701168702168703168704168705168706168707168708168709168710168711168712168713168714168715168716168717168718168719168720168721168722168723168724168725168726168727168728168729168730168731168732168733168734168735168736168737168738168739168740168741168742168743168744168745168746168747168748168749168750168751168752168753168754168755168756168757168758168759168760168761168762168763168764168765168766168767168768168769168770168771168772168773168774168775168776168777168778168779168780168781168782168783168784168785168786168787168788168789168790168791168792168793168794168795168796168797168798168799168800168801168802168803168804168805168806168807168808168809168810168811168812168813168814168815168816168817168818168819168820168821168822168823168824168825168826168827168828168829168830168831168832168833168834168835168836168837168838168839168840168841168842168843168844168845168846168847168848168849168850168851168852168853168854168855168856168857168858168859168860168861168862168863168864168865168866168867168868168869168870168871168872168873168874168875168876168877168878168879168880168881168882168883168884168885168886168887168888168889168890168891168892168893168894168895168896168897168898168899168900168901168902168903168904168905168906168907168908168909168910168911168912168913168914168915168916168917168918168919168920168921168922168923168924168925168926168927168928168929168930168931168932168933168934168935168936168937168938168939168940168941168942168943168944168945168946168947168948168949168950168951168952168953168954168955168956168957168958168959168960168961168962168963168964168965168966168967168968168969168970168971168972168973168974168975168976168977168978168979168980168981168982168983168984168985168986168987168988168989168990168991168992168993168994168995168996168997168998168999169000169001169002169003169004169005169006169007169008169009169010169011169012169013169014169015169016169017169018169019169020169021169022169023169024169025169026169027169028169029169030169031169032169033169034169035169036169037169038169039169040169041169042169043169044169045169046169047169048169049169050169051169052169053169054169055169056169057169058169059169060169061169062169063169064169065169066169067169068169069169070169071169072169073169074169075169076169077169078169079169080169081169082169083169084169085169086169087169088169089169090169091169092169093169094169095169096169097169098169099169100169101169102169103169104169105169106169107169108169109169110169111169112169113169114169115169116169117169118169119169120169121169122169123169124169125169126169127169128169129169130169131169132169133169134169135169136169137169138169139169140169141169142169143169144169145169146169147169148169149169150169151169152169153169154169155169156169157169158169159169160169161169162169163169164169165169166169167169168169169169170169171169172169173169174169175169176169177169178169179169180169181169182169183169184169185169186169187169188169189169190169191169192169193169194169195169196169197169198169199169200169201169202169203169204169205169206169207169208169209169210169211169212169213169214169215169216169217169218169219169220169221169222169223169224169225169226169227169228169229169230169231169232169233169234169235169236169237169238169239169240169241169242169243169244169245169246169247169248169249169250169251169252169253169254169255169256169257169258169259169260169261169262169263169264169265169266169267169268169269169270169271169272169273169274169275169276169277169278169279169280169281169282169283169284169285169286169287169288169289169290169291169292169293169294169295169296169297169298169299169300169301169302169303169304169305169306169307169308169309169310169311169312169313169314169315169316169317169318169319169320169321169322169323169324169325169326169327169328169329169330169331169332169333169334169335169336169337169338169339169340169341169342169343169344169345169346169347169348169349169350169351169352169353169354169355169356169357169358169359169360169361169362169363169364169365169366169367169368169369169370169371169372169373169374169375169376169377169378169379169380169381169382169383169384169385169386169387169388169389169390169391169392169393169394169395169396169397169398169399169400169401169402169403169404169405169406169407169408169409169410169411169412169413169414169415169416169417169418169419169420169421169422169423169424169425169426169427169428169429169430169431169432169433169434169435169436169437169438169439169440169441169442169443169444169445169446169447169448169449169450169451169452169453169454169455169456169457169458169459169460169461169462169463169464169465169466169467169468169469169470169471169472169473169474169475169476169477169478169479169480169481169482169483169484169485169486169487169488169489169490169491169492169493169494169495169496169497169498169499169500169501169502169503169504169505169506169507169508169509169510169511169512169513169514169515169516169517169518169519169520169521169522169523169524169525169526169527169528169529169530169531169532169533169534169535169536169537169538169539169540169541169542169543169544169545169546169547169548169549169550169551169552169553169554169555169556169557169558169559169560169561169562169563169564169565169566169567169568169569169570169571169572169573169574169575169576169577169578169579169580169581169582169583169584169585169586169587169588169589169590169591169592169593169594169595169596169597169598169599169600169601169602169603169604169605169606169607169608169609169610169611169612169613169614169615169616169617169618169619169620169621169622169623169624169625169626169627169628169629169630169631169632169633169634169635169636169637169638169639169640169641169642169643169644169645169646169647169648169649169650169651169652169653169654169655169656169657169658169659169660169661169662169663169664169665169666169667169668169669169670169671169672169673169674169675169676169677169678169679169680169681169682169683169684169685169686169687169688169689169690169691169692169693169694169695169696169697169698169699169700169701169702169703169704169705169706169707169708169709169710169711169712169713169714169715169716169717169718169719169720169721169722169723169724169725169726169727169728169729169730169731169732169733169734169735169736169737169738169739169740169741169742169743169744169745169746169747169748169749169750169751169752169753169754169755169756169757169758169759169760169761169762169763169764169765169766169767169768169769169770169771169772169773169774169775169776169777169778169779169780169781169782169783169784169785169786169787169788169789169790169791169792169793169794169795169796169797169798169799169800169801169802169803169804169805169806169807169808169809169810169811169812169813169814169815169816169817169818169819169820169821169822169823169824169825169826169827169828169829169830169831169832169833169834169835169836169837169838169839169840169841169842169843169844169845169846169847169848169849169850169851169852169853169854169855169856169857169858169859169860169861169862169863169864169865169866169867169868169869169870169871169872169873169874169875169876169877169878169879169880169881169882169883169884169885169886169887169888169889169890169891169892169893169894169895169896169897169898169899169900169901169902169903169904169905169906169907169908169909169910169911169912169913169914169915169916169917169918169919169920169921169922169923169924169925169926169927169928169929169930169931169932169933169934169935169936169937169938169939169940169941169942169943169944169945169946169947169948169949169950169951169952169953169954169955169956169957169958169959169960169961169962169963169964169965169966169967169968169969169970169971169972169973169974169975169976169977169978169979169980169981169982169983169984169985169986169987169988169989169990169991169992169993169994169995169996169997169998169999170000170001170002170003170004170005170006170007170008170009170010170011170012170013170014170015170016170017170018170019170020170021170022170023170024170025170026170027170028170029170030170031170032170033170034170035170036170037170038170039170040170041170042170043170044170045170046170047170048170049170050170051170052170053170054170055170056170057170058170059170060170061170062170063170064170065170066170067170068170069170070170071170072170073170074170075170076170077170078170079170080170081170082170083170084170085170086170087170088170089170090170091170092170093170094170095170096170097170098170099170100170101170102170103170104170105170106170107170108170109170110170111170112170113170114170115170116170117170118170119170120170121170122170123170124170125170126170127170128170129170130170131170132170133170134170135170136170137170138170139170140170141170142170143170144170145170146170147170148170149170150170151170152170153170154170155170156170157170158170159170160170161170162170163170164170165170166170167170168170169170170170171170172170173170174170175170176170177170178170179170180170181170182170183170184170185170186170187170188170189170190170191170192170193170194170195170196170197170198170199170200170201170202170203170204170205170206170207170208170209170210170211170212170213170214170215170216170217170218170219170220170221170222170223170224170225170226170227170228170229170230170231170232170233170234170235170236170237170238170239170240170241170242170243170244170245170246170247170248170249170250170251170252170253170254170255170256170257170258170259170260170261170262170263170264170265170266170267170268170269170270170271170272170273170274170275170276170277170278170279170280170281170282170283170284170285170286170287170288170289170290170291170292170293170294170295170296170297170298170299170300170301170302170303170304170305170306170307170308170309170310170311170312170313170314170315170316170317170318170319170320170321170322170323170324170325170326170327170328170329170330170331170332170333170334170335170336170337170338170339170340170341170342170343170344170345170346170347170348170349170350170351170352170353170354170355170356170357170358170359170360170361170362170363170364170365170366170367170368170369170370170371170372170373170374170375170376170377170378170379170380170381170382170383170384170385170386170387170388170389170390170391170392170393170394170395170396170397170398170399170400170401170402170403170404170405170406170407170408170409170410170411170412170413170414170415170416170417170418170419170420170421170422170423170424170425170426170427170428170429170430170431170432170433170434170435170436170437170438170439170440170441170442170443170444170445170446170447170448170449170450170451170452170453170454170455170456170457170458170459170460170461170462170463170464170465170466170467170468170469170470170471170472170473170474170475170476170477170478170479170480170481170482170483170484170485170486170487170488170489170490170491170492170493170494170495170496170497170498170499170500170501170502170503170504170505170506170507170508170509170510170511170512170513170514170515170516170517170518170519170520170521170522170523170524170525170526170527170528170529170530170531170532170533170534170535170536170537170538170539170540170541170542170543170544170545170546170547170548170549170550170551170552170553170554170555170556170557170558170559170560170561170562170563170564170565170566170567170568170569170570170571170572170573170574170575170576170577170578170579170580170581170582170583170584170585170586170587170588170589170590170591170592170593170594170595170596170597170598170599170600170601170602170603170604170605170606170607170608170609170610170611170612170613170614170615170616170617170618170619170620170621170622170623170624170625170626170627170628170629170630170631170632170633170634170635170636170637170638170639170640170641170642170643170644170645170646170647170648170649170650170651170652170653170654170655170656170657170658170659170660170661170662170663170664170665170666170667170668170669170670170671170672170673170674170675170676170677170678170679170680170681170682170683170684170685170686170687170688170689170690170691170692170693170694170695170696170697170698170699170700170701170702170703170704170705170706170707170708170709170710170711170712170713170714170715170716170717170718170719170720170721170722170723170724170725170726170727170728170729170730170731170732170733170734170735170736170737170738170739170740170741170742170743170744170745170746170747170748170749170750170751170752170753170754170755170756170757170758170759170760170761170762170763170764170765170766170767170768170769170770170771170772170773170774170775170776170777170778170779170780170781170782170783170784170785170786170787170788170789170790170791170792170793170794170795170796170797170798170799170800170801170802170803170804170805170806170807170808170809170810170811170812170813170814170815170816170817170818170819170820170821170822170823170824170825170826170827170828170829170830170831170832170833170834170835170836170837170838170839170840170841170842170843170844170845170846170847170848170849170850170851170852170853170854170855170856170857170858170859170860170861170862170863170864170865170866170867170868170869170870170871170872170873170874170875170876170877170878170879170880170881170882170883170884170885170886170887170888170889170890170891170892170893170894170895170896170897170898170899170900170901170902170903170904170905170906170907170908170909170910170911170912170913170914170915170916170917170918170919170920170921170922170923170924170925170926170927170928170929170930170931170932170933170934170935170936170937170938170939170940170941170942170943170944170945170946170947170948170949170950170951170952170953170954170955170956170957170958170959170960170961170962170963170964170965170966170967170968170969170970170971170972170973170974170975170976170977170978170979170980170981170982170983170984170985170986170987170988170989170990170991170992170993170994170995170996170997170998170999171000171001171002171003171004171005171006171007171008171009171010171011171012171013171014171015171016171017171018171019171020171021171022171023171024171025171026171027171028171029171030171031171032171033171034171035171036171037171038171039171040171041171042171043171044171045171046171047171048171049171050171051171052171053171054171055171056171057171058171059171060171061171062171063171064171065171066171067171068171069171070171071171072171073171074171075171076171077171078171079171080171081171082171083171084171085171086171087171088171089171090171091171092171093171094171095171096171097171098171099171100171101171102171103171104171105171106171107171108171109171110171111171112171113171114171115171116171117171118171119171120171121171122171123171124171125171126171127171128171129171130171131171132171133171134171135171136171137171138171139171140171141171142171143171144171145171146171147171148171149171150171151171152171153171154171155171156171157171158171159171160171161171162171163171164171165171166171167171168171169171170171171171172171173171174171175171176171177171178171179171180171181171182171183171184171185171186171187171188171189171190171191171192171193171194171195171196171197171198171199171200171201171202171203171204171205171206171207171208171209171210171211171212171213171214171215171216171217171218171219171220171221171222171223171224171225171226171227171228171229171230171231171232171233171234171235171236171237171238171239171240171241171242171243171244171245171246171247171248171249171250171251171252171253171254171255171256171257171258171259171260171261171262171263171264171265171266171267171268171269171270171271171272171273171274171275171276171277171278171279171280171281171282171283171284171285171286171287171288171289171290171291171292171293171294171295171296171297171298171299171300171301171302171303171304171305171306171307171308171309171310171311171312171313171314171315171316171317171318171319171320171321171322171323171324171325171326171327171328171329171330171331171332171333171334171335171336171337171338171339171340171341171342171343171344171345171346171347171348171349171350171351171352171353171354171355171356171357171358171359171360171361171362171363171364171365171366171367171368171369171370171371171372171373171374171375171376171377171378171379171380171381171382171383171384171385171386171387171388171389171390171391171392171393171394171395171396171397171398171399171400171401171402171403171404171405171406171407171408171409171410171411171412171413171414171415171416171417171418171419171420171421171422171423171424171425171426171427171428171429171430171431171432171433171434171435171436171437171438171439171440171441171442171443171444171445171446171447171448171449171450171451171452171453171454171455171456171457171458171459171460171461171462171463171464171465171466171467171468171469171470171471171472171473171474171475171476171477171478171479171480171481171482171483171484171485171486171487171488171489171490171491171492171493171494171495171496171497171498171499171500171501171502171503171504171505171506171507171508171509171510171511171512171513171514171515171516171517171518171519171520171521171522171523171524171525171526171527171528171529171530171531171532171533171534171535171536171537171538171539171540171541171542171543171544171545171546171547171548171549171550171551171552171553171554171555171556171557171558171559171560171561171562171563171564171565171566171567171568171569171570171571171572171573171574171575171576171577171578171579171580171581171582171583171584171585171586171587171588171589171590171591171592171593171594171595171596171597171598171599171600171601171602171603171604171605171606171607171608171609171610171611171612171613171614171615171616171617171618171619171620171621171622171623171624171625171626171627171628171629171630171631171632171633171634171635171636171637171638171639171640171641171642171643171644171645171646171647171648171649171650171651171652171653171654171655171656171657171658171659171660171661171662171663171664171665171666171667171668171669171670171671171672171673171674171675171676171677171678171679171680171681171682171683171684171685171686171687171688171689171690171691171692171693171694171695171696171697171698171699171700171701171702171703171704171705171706171707171708171709171710171711171712171713171714171715171716171717171718171719171720171721171722171723171724171725171726171727171728171729171730171731171732171733171734171735171736171737171738171739171740171741171742171743171744171745171746171747171748171749171750171751171752171753171754171755171756171757171758171759171760171761171762171763171764171765171766171767171768171769171770171771171772171773171774171775171776171777171778171779171780171781171782171783171784171785171786171787171788171789171790171791171792171793171794171795171796171797171798171799171800171801171802171803171804171805171806171807171808171809171810171811171812171813171814171815171816171817171818171819171820171821171822171823171824171825171826171827171828171829171830171831171832171833171834171835171836171837171838171839171840171841171842171843171844171845171846171847171848171849171850171851171852171853171854171855171856171857171858171859171860171861171862171863171864171865171866171867171868171869171870171871171872171873171874171875171876171877171878171879171880171881171882171883171884171885171886171887171888171889171890171891171892171893171894171895171896171897171898171899171900171901171902171903171904171905171906171907171908171909171910171911171912171913171914171915171916171917171918171919171920171921171922171923171924171925171926171927171928171929171930171931171932171933171934171935171936171937171938171939171940171941171942171943171944171945171946171947171948171949171950171951171952171953171954171955171956171957171958171959171960171961171962171963171964171965171966171967171968171969171970171971171972171973171974171975171976171977171978171979171980171981171982171983171984171985171986171987171988171989171990171991171992171993171994171995171996171997171998171999172000172001172002172003172004172005172006172007172008172009172010172011172012172013172014172015172016172017172018172019172020172021172022172023172024172025172026172027172028172029172030172031172032172033172034172035172036172037172038172039172040172041172042172043172044172045172046172047172048172049172050172051172052172053172054172055172056172057172058172059172060172061172062172063172064172065172066172067172068172069172070172071172072172073172074172075172076172077172078172079172080172081172082172083172084172085172086172087172088172089172090172091172092172093172094172095172096172097172098172099172100172101172102172103172104172105172106172107172108172109172110172111172112172113172114172115172116172117172118172119172120172121172122172123172124172125172126172127172128172129172130172131172132172133172134172135172136172137172138172139172140172141172142172143172144172145172146172147172148172149172150172151172152172153172154172155172156172157172158172159172160172161172162172163172164172165172166172167172168172169172170172171172172172173172174172175172176172177172178172179172180172181172182172183172184172185172186172187172188172189172190172191172192172193172194172195172196172197172198172199172200172201172202172203172204172205172206172207172208172209172210172211172212172213172214172215172216172217172218172219172220172221172222172223172224172225172226172227172228172229172230172231172232172233172234172235172236172237172238172239172240172241172242172243172244172245172246172247172248172249172250172251172252172253172254172255172256172257172258172259172260172261172262172263172264172265172266172267172268172269172270172271172272172273172274172275172276172277172278172279172280172281172282172283172284172285172286172287172288172289172290172291172292172293172294172295172296172297172298172299172300172301172302172303172304172305172306172307172308172309172310172311172312172313172314172315172316172317172318172319172320172321172322172323172324172325172326172327172328172329172330172331172332172333172334172335172336172337172338172339172340172341172342172343172344172345172346172347172348172349172350172351172352172353172354172355172356172357172358172359172360172361172362172363172364172365172366172367172368172369172370172371172372172373172374172375172376172377172378172379172380172381172382172383172384172385172386172387172388172389172390172391172392172393172394172395172396172397172398172399172400172401172402172403172404172405172406172407172408172409172410172411172412172413172414172415172416172417172418172419172420172421172422172423172424172425172426172427172428172429172430172431172432172433172434172435172436172437172438172439172440172441172442172443172444172445172446172447172448172449172450172451172452172453172454172455172456172457172458172459172460172461172462172463172464172465172466172467172468172469172470172471172472172473172474172475172476172477172478172479172480172481172482172483172484172485172486172487172488172489172490172491172492172493172494172495172496172497172498172499172500172501172502172503172504172505172506172507172508172509172510172511172512172513172514172515172516172517172518172519172520172521172522172523172524172525172526172527172528172529172530172531172532172533172534172535172536172537172538172539172540172541172542172543172544172545172546172547172548172549172550172551172552172553172554172555172556172557172558172559172560172561172562172563172564172565172566172567172568172569172570172571172572172573172574172575172576172577172578172579172580172581172582172583172584172585172586172587172588172589172590172591172592172593172594172595172596172597172598172599172600172601172602172603172604172605172606172607172608172609172610172611172612172613172614172615172616172617172618172619172620172621172622172623172624172625172626172627172628172629172630172631172632172633172634172635172636172637172638172639172640172641172642172643172644172645172646172647172648172649172650172651172652172653172654172655172656172657172658172659172660172661172662172663172664172665172666172667172668172669172670172671172672172673172674172675172676172677172678172679172680172681172682172683172684172685172686172687172688172689172690172691172692172693172694172695172696172697172698172699172700172701172702172703172704172705172706172707172708172709172710172711172712172713172714172715172716172717172718172719172720172721172722172723172724172725172726172727172728172729172730172731172732172733172734172735172736172737172738172739172740172741172742172743172744172745172746172747172748172749172750172751172752172753172754172755172756172757172758172759172760172761172762172763172764172765172766172767172768172769172770172771172772172773172774172775172776172777172778172779172780172781172782172783172784172785172786172787172788172789172790172791172792172793172794172795172796172797172798172799172800172801172802172803172804172805172806172807172808172809172810172811172812172813172814172815172816172817172818172819172820172821172822172823172824172825172826172827172828172829172830172831172832172833172834172835172836172837172838172839172840172841172842172843172844172845172846172847172848172849172850172851172852172853172854172855172856172857172858172859172860172861172862172863172864172865172866172867172868172869172870172871172872172873172874172875172876172877172878172879172880172881172882172883172884172885172886172887172888172889172890172891172892172893172894172895172896172897172898172899172900172901172902172903172904172905172906172907172908172909172910172911172912172913172914172915172916172917172918172919172920172921172922172923172924172925172926172927172928172929172930172931172932172933172934172935172936172937172938172939172940172941172942172943172944172945172946172947172948172949172950172951172952172953172954172955172956172957172958172959172960172961172962172963172964172965172966172967172968172969172970172971172972172973172974172975172976172977172978172979172980172981172982172983172984172985172986172987172988172989172990172991172992172993172994172995172996172997172998172999173000173001173002173003173004173005173006173007173008173009173010173011173012173013173014173015173016173017173018173019173020173021173022173023173024173025173026173027173028173029173030173031173032173033173034173035173036173037173038173039173040173041173042173043173044173045173046173047173048173049173050173051173052173053173054173055173056173057173058173059173060173061173062173063173064173065173066173067173068173069173070173071173072173073173074173075173076173077173078173079173080173081173082173083173084173085173086173087173088173089173090173091173092173093173094173095173096173097173098173099173100173101173102173103173104173105173106173107173108173109173110173111173112173113173114173115173116173117173118173119173120173121173122173123173124173125173126173127173128173129173130173131173132173133173134173135173136173137173138173139173140173141173142173143173144173145173146173147173148173149173150173151173152173153173154173155173156173157173158173159173160173161173162173163173164173165173166173167173168173169173170173171173172173173173174173175173176173177173178173179173180173181173182173183173184173185173186173187173188173189173190173191173192173193173194173195173196173197173198173199173200173201173202173203173204173205173206173207173208173209173210173211173212173213173214173215173216173217173218173219173220173221173222173223173224173225173226173227173228173229173230173231173232173233173234173235173236173237173238173239173240173241173242173243173244173245173246173247173248173249173250173251173252173253173254173255173256173257173258173259173260173261173262173263173264173265173266173267173268173269173270173271173272173273173274173275173276173277173278173279173280173281173282173283173284173285173286173287173288173289173290173291173292173293173294173295173296173297173298173299173300173301173302173303173304173305173306173307173308173309173310173311173312173313173314173315173316173317173318173319173320173321173322173323173324173325173326173327173328173329173330173331173332173333173334173335173336173337173338173339173340173341173342173343173344173345173346173347173348173349173350173351173352173353173354173355173356173357173358173359173360173361173362173363173364173365173366173367173368173369173370173371173372173373173374173375173376173377173378173379173380173381173382173383173384173385173386173387173388173389173390173391173392173393173394173395173396173397173398173399173400173401173402173403173404173405173406173407173408173409173410173411173412173413173414173415173416173417173418173419173420173421173422173423173424173425173426173427173428173429173430173431173432173433173434173435173436173437173438173439173440173441173442173443173444173445173446173447173448173449173450173451173452173453173454173455173456173457173458173459173460173461173462173463173464173465173466173467173468173469173470173471173472173473173474173475173476173477173478173479173480173481173482173483173484173485173486173487173488173489173490173491173492173493173494173495173496173497173498173499173500173501173502173503173504173505173506173507173508173509173510173511173512173513173514173515173516173517173518173519173520173521173522173523173524173525173526173527173528173529173530173531173532173533173534173535173536173537173538173539173540173541173542173543173544173545173546173547173548173549173550173551173552173553173554173555173556173557173558173559173560173561173562173563173564173565173566173567173568173569173570173571173572173573173574173575173576173577173578173579173580173581173582173583173584173585173586173587173588173589173590173591173592173593173594173595173596173597173598173599173600173601173602173603173604173605173606173607173608173609173610173611173612173613173614173615173616173617173618173619173620173621173622173623173624173625173626173627173628173629173630173631173632173633173634173635173636173637173638173639173640173641173642173643173644173645173646173647173648173649173650173651173652173653173654173655173656173657173658173659173660173661173662173663173664173665173666173667173668173669173670173671173672173673173674173675173676173677173678173679173680173681173682173683173684173685173686173687173688173689173690173691173692173693173694173695173696173697173698173699173700173701173702173703173704173705173706173707173708173709173710173711173712173713173714173715173716173717173718173719173720173721173722173723173724173725173726173727173728173729173730173731173732173733173734173735173736173737173738173739173740173741173742173743173744173745173746173747173748173749173750173751173752173753173754173755173756173757173758173759173760173761173762173763173764173765173766173767173768173769173770173771173772173773173774173775173776173777173778173779173780173781173782173783173784173785173786173787173788173789173790173791173792173793173794173795173796173797173798173799173800173801173802173803173804173805173806173807173808173809173810173811173812173813173814173815173816173817173818173819173820173821173822173823173824173825173826173827173828173829173830173831173832173833173834173835173836173837173838173839173840173841173842173843173844173845173846173847173848173849173850173851173852173853173854173855173856173857173858173859173860173861173862173863173864173865173866173867173868173869173870173871173872173873173874173875173876173877173878173879173880173881173882173883173884173885173886173887173888173889173890173891173892173893173894173895173896173897173898173899173900173901173902173903173904173905173906173907173908173909173910173911173912173913173914173915173916173917173918173919173920173921173922173923173924173925173926173927173928173929173930173931173932173933173934173935173936173937173938173939173940173941173942173943173944173945173946173947173948173949173950173951173952173953173954173955173956173957173958173959173960173961173962173963173964173965173966173967173968173969173970173971173972173973173974173975173976173977173978173979173980173981173982173983173984173985173986173987173988173989173990173991173992173993173994173995173996173997173998173999174000174001174002174003174004174005174006174007174008174009174010174011174012174013174014174015174016174017174018174019174020174021174022174023174024174025174026174027174028174029174030174031174032174033174034174035174036174037174038174039174040174041174042174043174044174045174046174047174048174049174050174051174052174053174054174055174056174057174058174059174060174061174062174063174064174065174066174067174068174069174070174071174072174073174074174075174076174077174078174079174080174081174082174083174084174085174086174087174088174089174090174091174092174093174094174095174096174097174098174099174100174101174102174103174104174105174106174107174108174109174110174111174112174113174114174115174116174117174118174119174120174121174122174123174124174125174126174127174128174129174130174131174132174133174134174135174136174137174138174139174140174141174142174143174144174145174146174147174148174149174150174151174152174153174154174155174156174157174158174159174160174161174162174163174164174165174166174167174168174169174170174171174172174173174174174175174176174177174178174179174180174181174182174183174184174185174186174187174188174189174190174191174192174193174194174195174196174197174198174199174200174201174202174203174204174205174206174207174208174209174210174211174212174213174214174215174216174217174218174219174220174221174222174223174224174225174226174227174228174229174230174231174232174233174234174235174236174237174238174239174240174241174242174243174244174245174246174247174248174249174250174251174252174253174254174255174256174257174258174259174260174261174262174263174264174265174266174267174268174269174270174271174272174273174274174275174276174277174278174279174280174281174282174283174284174285174286174287174288174289174290174291174292174293174294174295174296174297174298174299174300174301174302174303174304174305174306174307174308174309174310174311174312174313174314174315174316174317174318174319174320174321174322174323174324174325174326174327174328174329174330174331174332174333174334174335174336174337174338174339174340174341174342174343174344174345174346174347174348174349174350174351174352174353174354174355174356174357174358174359174360174361174362174363174364174365174366174367174368174369174370174371174372174373174374174375174376174377174378174379174380174381174382174383174384174385174386174387174388174389174390174391174392174393174394174395174396174397174398174399174400174401174402174403174404174405174406174407174408174409174410174411174412174413174414174415174416174417174418174419174420174421174422174423174424174425174426174427174428174429174430174431174432174433174434174435174436174437174438174439174440174441174442174443174444174445174446174447174448174449174450174451174452174453174454174455174456174457174458174459174460174461174462174463174464174465174466174467174468174469174470174471174472174473174474174475174476174477174478174479174480174481174482174483174484174485174486174487174488174489174490174491174492174493174494174495174496174497174498174499174500174501174502174503174504174505174506174507174508174509174510174511174512174513174514174515174516174517174518174519174520174521174522174523174524174525174526174527174528174529174530174531174532174533174534174535174536174537174538174539174540174541174542174543174544174545174546174547174548174549174550174551174552174553174554174555174556174557174558174559174560174561174562174563174564174565174566174567174568174569174570174571174572174573174574174575174576174577174578174579174580174581174582174583174584174585174586174587174588174589174590174591174592174593174594174595174596174597174598174599174600174601174602174603174604174605174606174607174608174609174610174611174612174613174614174615174616174617174618174619174620174621174622174623174624174625174626174627174628174629174630174631174632174633174634174635174636174637174638174639174640174641174642174643174644174645174646174647174648174649174650174651174652174653174654174655174656174657174658174659174660174661174662174663174664174665174666174667174668174669174670174671174672174673174674174675174676174677174678174679174680174681174682174683174684174685174686174687174688174689174690174691174692174693174694174695174696174697174698174699174700174701174702174703174704174705174706174707174708174709174710174711174712174713174714174715174716174717174718174719174720174721174722174723174724174725174726174727174728174729174730174731174732174733174734174735174736174737174738174739174740174741174742174743174744174745174746174747174748174749174750174751174752174753174754174755174756174757174758174759174760174761174762174763174764174765174766174767174768174769174770174771174772174773174774174775174776174777174778174779174780174781174782174783174784174785174786174787174788174789174790174791174792174793174794174795174796174797174798174799174800174801174802174803174804174805174806174807174808174809174810174811174812174813174814174815174816174817174818174819174820174821174822174823174824174825174826174827174828174829174830174831174832174833174834174835174836174837174838174839174840174841174842174843174844174845174846174847174848174849174850174851174852174853174854174855174856174857174858174859174860174861174862174863174864174865174866174867174868174869174870174871174872174873174874174875174876174877174878174879174880174881174882174883174884174885174886174887174888174889174890174891174892174893174894174895174896174897174898174899174900174901174902174903174904174905174906174907174908174909174910174911174912174913174914174915174916174917174918174919174920174921174922174923174924174925174926174927174928174929174930174931174932174933174934174935174936174937174938174939174940174941174942174943174944174945174946174947174948174949174950174951174952174953174954174955174956174957174958174959174960174961174962174963174964174965174966174967174968174969174970174971174972174973174974174975174976174977174978174979174980174981174982174983174984174985174986174987174988174989174990174991174992174993174994174995174996174997174998174999175000175001175002175003175004175005175006175007175008175009175010175011175012175013175014175015175016175017175018175019175020175021175022175023175024175025175026175027175028175029175030175031175032175033175034175035175036175037175038175039175040175041175042175043175044175045175046175047175048175049175050175051175052175053175054175055175056175057175058175059175060175061175062175063175064175065175066175067175068175069175070175071175072175073175074175075175076175077175078175079175080175081175082175083175084175085175086175087175088175089175090175091175092175093175094175095175096175097175098175099175100175101175102175103175104175105175106175107175108175109175110175111175112175113175114175115175116175117175118175119175120175121175122175123175124175125175126175127175128175129175130175131175132175133175134175135175136175137175138175139175140175141175142175143175144175145175146175147175148175149175150175151175152175153175154175155175156175157175158175159175160175161175162175163175164175165175166175167175168175169175170175171175172175173175174175175175176175177175178175179175180175181175182175183175184175185175186175187175188175189175190175191175192175193175194175195175196175197175198175199175200175201175202175203175204175205175206175207175208175209175210175211175212175213175214175215175216175217175218175219175220175221175222175223175224175225175226175227175228175229175230175231175232175233175234175235175236175237175238175239175240175241175242175243175244175245175246175247175248175249175250175251175252175253175254175255175256175257175258175259175260175261175262175263175264175265175266175267175268175269175270175271175272175273175274175275175276175277175278175279175280175281175282175283175284175285175286175287175288175289175290175291175292175293175294175295175296175297175298175299175300175301175302175303175304175305175306175307175308175309175310175311175312175313175314175315175316175317175318175319175320175321175322175323175324175325175326175327175328175329175330175331175332175333175334175335175336175337175338175339175340175341175342175343175344175345175346175347175348175349175350175351175352175353175354175355175356175357175358175359175360175361175362175363175364175365175366175367175368175369175370175371175372175373175374175375175376175377175378175379175380175381175382175383175384175385175386175387175388175389175390175391175392175393175394175395175396175397175398175399175400175401175402175403175404175405175406175407175408175409175410175411175412175413175414175415175416175417175418175419175420175421175422175423175424175425175426175427175428175429175430175431175432175433175434175435175436175437175438175439175440175441175442175443175444175445175446175447175448175449175450175451175452175453175454175455175456175457175458175459175460175461175462175463175464175465175466175467175468175469175470175471175472175473175474175475175476175477175478175479175480175481175482175483175484175485175486175487175488175489175490175491175492175493175494175495175496175497175498175499175500175501175502175503175504175505175506175507175508175509175510175511175512175513175514175515175516175517175518175519175520175521175522175523175524175525175526175527175528175529175530175531175532175533175534175535175536175537175538175539175540175541175542175543175544175545175546175547175548175549175550175551175552175553175554175555175556175557175558175559175560175561175562175563175564175565175566175567175568175569175570175571175572175573175574175575175576175577175578175579175580175581175582175583175584175585175586175587175588175589175590175591175592175593175594175595175596175597175598175599175600175601175602175603175604175605175606175607175608175609175610175611175612175613175614175615175616175617175618175619175620175621175622175623175624175625175626175627175628175629175630175631175632175633175634175635175636175637175638175639175640175641175642175643175644175645175646175647175648175649175650175651175652175653175654175655175656175657175658175659175660175661175662175663175664175665175666175667175668175669175670175671175672175673175674175675175676175677175678175679175680175681175682175683175684175685175686175687175688175689175690175691175692175693175694175695175696175697175698175699175700175701175702175703175704175705175706175707175708175709175710175711175712175713175714175715175716175717175718175719175720175721175722175723175724175725175726175727175728175729175730175731175732175733175734175735175736175737175738175739175740175741175742175743175744175745175746175747175748175749175750175751175752175753175754175755175756175757175758175759175760175761175762175763175764175765175766175767175768175769175770175771175772175773175774175775175776175777175778175779175780175781175782175783175784175785175786175787175788175789175790175791175792175793175794175795175796175797175798175799175800175801175802175803175804175805175806175807175808175809175810175811175812175813175814175815175816175817175818175819175820175821175822175823175824175825175826175827175828175829175830175831175832175833175834175835175836175837175838175839175840175841175842175843175844175845175846175847175848175849175850175851175852175853175854175855175856175857175858175859175860175861175862175863175864175865175866175867175868175869175870175871175872175873175874175875175876175877175878175879175880175881175882175883175884175885175886175887175888175889175890175891175892175893175894175895175896175897175898175899175900175901175902175903175904175905175906175907175908175909175910175911175912175913175914175915175916175917175918175919175920175921175922175923175924175925175926175927175928175929175930175931175932175933175934175935175936175937175938175939175940175941175942175943175944175945175946175947175948175949175950175951175952175953175954175955175956175957175958175959175960175961175962175963175964175965175966175967175968175969175970175971175972175973175974175975175976175977175978175979175980175981175982175983175984175985175986175987175988175989175990175991175992175993175994175995175996175997175998175999176000176001176002176003176004176005176006176007176008176009176010176011176012176013176014176015176016176017176018176019176020176021176022176023176024176025176026176027176028176029176030176031176032176033176034176035176036176037176038176039176040176041176042176043176044176045176046176047176048176049176050176051176052176053176054176055176056176057176058176059176060176061176062176063176064176065176066176067176068176069176070176071176072176073176074176075176076176077176078176079176080176081176082176083176084176085176086176087176088176089176090176091176092176093176094176095176096176097176098176099176100176101176102176103176104176105176106176107176108176109176110176111176112176113176114176115176116176117176118176119176120176121176122176123176124176125176126176127176128176129176130176131176132176133176134176135176136176137176138176139176140176141176142176143176144176145176146176147176148176149176150176151176152176153176154176155176156176157176158176159176160176161176162176163176164176165176166176167176168176169176170176171176172176173176174176175176176176177176178176179176180176181176182176183176184176185176186176187176188176189176190176191176192176193176194176195176196176197176198176199176200176201176202176203176204176205176206176207176208176209176210176211176212176213176214176215176216176217176218176219176220176221176222176223176224176225176226176227176228176229176230176231176232176233176234176235176236176237176238176239176240176241176242176243176244176245176246176247176248176249176250176251176252176253176254176255176256176257176258176259176260176261176262176263176264176265176266176267176268176269176270176271176272176273176274176275176276176277176278176279176280176281176282176283176284176285176286176287176288176289176290176291176292176293176294176295176296176297176298176299176300176301176302176303176304176305176306176307176308176309176310176311176312176313176314176315176316176317176318176319176320176321176322176323176324176325176326176327176328176329176330176331176332176333176334176335176336176337176338176339176340176341176342176343176344176345176346176347176348176349176350176351176352176353176354176355176356176357176358176359176360176361176362176363176364176365176366176367176368176369176370176371176372176373176374176375176376176377176378176379176380176381176382176383176384176385176386176387176388176389176390176391176392176393176394176395176396176397176398176399176400176401176402176403176404176405176406176407176408176409176410176411176412176413176414176415176416176417176418176419176420176421176422176423176424176425176426176427176428176429176430176431176432176433176434176435176436176437176438176439176440176441176442176443176444176445176446176447176448176449176450176451176452176453176454176455176456176457176458176459176460176461176462176463176464176465176466176467176468176469176470176471176472176473176474176475176476176477176478176479176480176481176482176483176484176485176486176487176488176489176490176491176492176493176494176495176496176497176498176499176500176501176502176503176504176505176506176507176508176509176510176511176512176513176514176515176516176517176518176519176520176521176522176523176524176525176526176527176528176529176530176531176532176533176534176535176536176537176538176539176540176541176542176543176544176545176546176547176548176549176550176551176552176553176554176555176556176557176558176559176560176561176562176563176564176565176566176567176568176569176570176571176572176573176574176575176576176577176578176579176580176581176582176583176584176585176586176587176588176589176590176591176592176593176594176595176596176597176598176599176600176601176602176603176604176605176606176607176608176609176610176611176612176613176614176615176616176617176618176619176620176621176622176623176624176625176626176627176628176629176630176631176632176633176634176635176636176637176638176639176640176641176642176643176644176645176646176647176648176649176650176651176652176653176654176655176656176657176658176659176660176661176662176663176664176665176666176667176668176669176670176671176672176673176674176675176676176677176678176679176680176681176682176683176684176685176686176687176688176689176690176691176692176693176694176695176696176697176698176699176700176701176702176703176704176705176706176707176708176709176710176711176712176713176714176715176716176717176718176719176720176721176722176723176724176725176726176727176728176729176730176731176732176733176734176735176736176737176738176739176740176741176742176743176744176745176746176747176748176749176750176751176752176753176754176755176756176757176758176759176760176761176762176763176764176765176766176767176768176769176770176771176772176773176774176775176776176777176778176779176780176781176782176783176784176785176786176787176788176789176790176791176792176793176794176795176796176797176798176799176800176801176802176803176804176805176806176807176808176809176810176811176812176813176814176815176816176817176818176819176820176821176822176823176824176825176826176827176828176829176830176831176832176833176834176835176836176837176838176839176840176841176842176843176844176845176846176847176848176849176850176851176852176853176854176855176856176857176858176859176860176861176862176863176864176865176866176867176868176869176870176871176872176873176874176875176876176877176878176879176880176881176882176883176884176885176886176887176888176889176890176891176892176893176894176895176896176897176898176899176900176901176902176903176904176905176906176907176908176909176910176911176912176913176914176915176916176917176918176919176920176921176922176923176924176925176926176927176928176929176930176931176932176933176934176935176936176937176938176939176940176941176942176943176944176945176946176947176948176949176950176951176952176953176954176955176956176957176958176959176960176961176962176963176964176965176966176967176968176969176970176971176972176973176974176975176976176977176978176979176980176981176982176983176984176985176986176987176988176989176990176991176992176993176994176995176996176997176998176999177000177001177002177003177004177005177006177007177008177009177010177011177012177013177014177015177016177017177018177019177020177021177022177023177024177025177026177027177028177029177030177031177032177033177034177035177036177037177038177039177040177041177042177043177044177045177046177047177048177049177050177051177052177053177054177055177056177057177058177059177060177061177062177063177064177065177066177067177068177069177070177071177072177073177074177075177076177077177078177079177080177081177082177083177084177085177086177087177088177089177090177091177092177093177094177095177096177097177098177099177100177101177102177103177104177105177106177107177108177109177110177111177112177113177114177115177116177117177118177119177120177121177122177123177124177125177126177127177128177129177130177131177132177133177134177135177136177137177138177139177140177141177142177143177144177145177146177147177148177149177150177151177152177153177154177155177156177157177158177159177160177161177162177163177164177165177166177167177168177169177170177171177172177173177174177175177176177177177178177179177180177181177182177183177184177185177186177187177188177189177190177191177192177193177194177195177196177197177198177199177200177201177202177203177204177205177206177207177208177209177210177211177212177213177214177215177216177217177218177219177220177221177222177223177224177225177226177227177228177229177230177231177232177233177234177235177236177237177238177239177240177241177242177243177244177245177246177247177248177249177250177251177252177253177254177255177256177257177258177259177260177261177262177263177264177265177266177267177268177269177270177271177272177273177274177275177276177277177278177279177280177281177282177283177284177285177286177287177288177289177290177291177292177293177294177295177296177297177298177299177300177301177302177303177304177305177306177307177308177309177310177311177312177313177314177315177316177317177318177319177320177321177322177323177324177325177326177327177328177329177330177331177332177333177334177335177336177337177338177339177340177341177342177343177344177345177346177347177348177349177350177351177352177353177354177355177356177357177358177359177360177361177362177363177364177365177366177367177368177369177370177371177372177373177374177375177376177377177378177379177380177381177382177383177384177385177386177387177388177389177390177391177392177393177394177395177396177397177398177399177400177401177402177403177404177405177406177407177408177409177410177411177412177413177414177415177416177417177418177419177420177421177422177423177424177425177426177427177428177429177430177431177432177433177434177435177436177437177438177439177440177441177442177443177444177445177446177447177448177449177450177451177452177453177454177455177456177457177458177459177460177461177462177463177464177465177466177467177468177469177470177471177472177473177474177475177476177477177478177479177480177481177482177483177484177485177486177487177488177489177490177491177492177493177494177495177496177497177498177499177500177501177502177503177504177505177506177507177508177509177510177511177512177513177514177515177516177517177518177519177520177521177522177523177524177525177526177527177528177529177530177531177532177533177534177535177536177537177538177539177540177541177542177543177544177545177546177547177548177549177550177551177552177553177554177555177556177557177558177559177560177561177562177563177564177565177566177567177568177569177570177571177572177573177574177575177576177577177578177579177580177581177582177583177584177585177586177587177588177589177590177591177592177593177594177595177596177597177598177599177600177601177602177603177604177605177606177607177608177609177610177611177612177613177614177615177616177617177618177619177620177621177622177623177624177625177626177627177628177629177630177631177632177633177634177635177636177637177638177639177640177641177642177643177644177645177646177647177648177649177650177651177652177653177654177655177656177657177658177659177660177661177662177663177664177665177666177667177668177669177670177671177672177673177674177675177676177677177678177679177680177681177682177683177684177685177686177687177688177689177690177691177692177693177694177695177696177697177698177699177700177701177702177703177704177705177706177707177708177709177710177711177712177713177714177715177716177717177718177719177720177721177722177723177724177725177726177727177728177729177730177731177732177733177734177735177736177737177738177739177740177741177742177743177744177745177746177747177748177749177750177751177752177753177754177755177756177757177758177759177760177761177762177763177764177765177766177767177768177769177770177771177772177773177774177775177776177777177778177779177780177781177782177783177784177785177786177787177788177789177790177791177792177793177794177795177796177797177798177799177800177801177802177803177804177805177806177807177808177809177810177811177812177813177814177815177816177817177818177819177820177821177822177823177824177825177826177827177828177829177830177831177832177833177834177835177836177837177838177839177840177841177842177843177844177845177846177847177848177849177850177851177852177853177854177855177856177857177858177859177860177861177862177863177864177865177866177867177868177869177870177871177872177873177874177875177876177877177878177879177880177881177882177883177884177885177886177887177888177889177890177891177892177893177894177895177896177897177898177899177900177901177902177903177904177905177906177907177908177909177910177911177912177913177914177915177916177917177918177919177920177921177922177923177924177925177926177927177928177929177930177931177932177933177934177935177936177937177938177939177940177941177942177943177944177945177946177947177948177949177950177951177952177953177954177955177956177957177958177959177960177961177962177963177964177965177966177967177968177969177970177971177972177973177974177975177976177977177978177979177980177981177982177983177984177985177986177987177988177989177990177991177992177993177994177995177996177997177998177999178000178001178002178003178004178005178006178007178008178009178010178011178012178013178014178015178016178017178018178019178020178021178022178023178024178025178026178027178028178029178030178031178032178033178034178035178036178037178038178039178040178041178042178043178044178045178046178047178048178049178050178051178052178053178054178055178056178057178058178059178060178061178062178063178064178065178066178067178068178069178070178071178072178073178074178075178076178077178078178079178080178081178082178083178084178085178086178087178088178089178090178091178092178093178094178095178096178097178098178099178100178101178102178103178104178105178106178107178108178109178110178111178112178113178114178115178116178117178118178119178120178121178122178123178124178125178126178127178128178129178130178131178132178133178134178135178136178137178138178139178140178141178142178143178144178145178146178147178148178149178150178151178152178153178154178155178156178157178158178159178160178161178162178163178164178165178166178167178168178169178170178171178172178173178174178175178176178177178178178179178180178181178182178183178184178185178186178187178188178189178190178191178192178193178194178195178196178197178198178199178200178201178202178203178204178205178206178207178208178209178210178211178212178213178214178215178216178217178218178219178220178221178222178223178224178225178226178227178228178229178230178231178232178233178234178235178236178237178238178239178240178241178242178243178244178245178246178247178248178249178250178251178252178253178254178255178256178257178258178259178260178261178262178263178264178265178266178267178268178269178270178271178272178273178274178275178276178277178278178279178280178281178282178283178284178285178286178287178288178289178290178291178292178293178294178295178296178297178298178299178300178301178302178303178304178305178306178307178308178309178310178311178312178313178314178315178316178317178318178319178320178321178322178323178324178325178326178327178328178329178330178331178332178333178334178335178336178337178338178339178340178341178342178343178344178345178346178347178348178349178350178351178352178353178354178355178356178357178358178359178360178361178362178363178364178365178366178367178368178369178370178371178372178373178374178375178376178377178378178379178380178381178382178383178384178385178386178387178388178389178390178391178392178393178394178395178396178397178398178399178400178401178402178403178404178405178406178407178408178409178410178411178412178413178414178415178416178417178418178419178420178421178422178423178424178425178426178427178428178429178430178431178432178433178434178435178436178437178438178439178440178441178442178443178444178445178446178447178448178449178450178451178452178453178454178455178456178457178458178459178460178461178462178463178464178465178466178467178468178469178470178471178472178473178474178475178476178477178478178479178480178481178482178483178484178485178486178487178488178489178490178491178492178493178494178495178496178497178498178499178500178501178502178503178504178505178506178507178508178509178510178511178512178513178514178515178516178517178518178519178520178521178522178523178524178525178526178527178528178529178530178531178532178533178534178535178536178537178538178539178540178541178542178543178544178545178546178547178548178549178550178551178552178553178554178555178556178557178558178559178560178561178562178563178564178565178566178567178568178569178570178571178572178573178574178575178576178577178578178579178580178581178582178583178584178585178586178587178588178589178590178591178592178593178594178595178596178597178598178599178600178601178602178603178604178605178606178607178608178609178610178611178612178613178614178615178616178617178618178619178620178621178622178623178624178625178626178627178628178629178630178631178632178633178634178635178636178637178638178639178640178641178642178643178644178645178646178647178648178649178650178651178652178653178654178655178656178657178658178659178660178661178662178663178664178665178666178667178668178669178670178671178672178673178674178675178676178677178678178679178680178681178682178683178684178685178686178687178688178689178690178691178692178693178694178695178696178697178698178699178700178701178702178703178704178705178706178707178708178709178710178711178712178713178714178715178716178717178718178719178720178721178722178723178724178725178726178727178728178729178730178731178732178733178734178735178736178737178738178739178740178741178742178743178744178745178746178747178748178749178750178751178752178753178754178755178756178757178758178759178760178761178762178763178764178765178766178767178768178769178770178771178772178773178774178775178776178777178778178779178780178781178782178783178784178785178786178787178788178789178790178791178792178793178794178795178796178797178798178799178800178801178802178803178804178805178806178807178808178809178810178811178812178813178814178815178816178817178818178819178820178821178822178823178824178825178826178827178828178829178830178831178832178833178834178835178836178837178838178839178840178841178842178843178844178845178846178847178848178849178850178851178852178853178854178855178856178857178858178859178860178861178862178863178864178865178866178867178868178869178870178871178872178873178874178875178876178877178878178879178880178881178882178883178884178885178886178887178888178889178890178891178892178893178894178895178896178897178898178899178900178901178902178903178904178905178906178907178908178909178910178911178912178913178914178915178916178917178918178919178920178921178922178923178924178925178926178927178928178929178930178931178932178933178934178935178936178937178938178939178940178941178942178943178944178945178946178947178948178949178950178951178952178953178954178955178956178957178958178959178960178961178962178963178964178965178966178967178968178969178970178971178972178973178974178975178976178977178978178979178980178981178982178983178984178985178986178987178988178989178990178991178992178993178994178995178996178997178998178999179000179001179002179003179004179005179006179007179008179009179010179011179012179013179014179015179016179017179018179019179020179021179022179023179024179025179026179027179028179029179030179031179032179033179034179035179036179037179038179039179040179041179042179043179044179045179046179047179048179049179050179051179052179053179054179055179056179057179058179059179060179061179062179063179064179065179066179067179068179069179070179071179072179073179074179075179076179077179078179079179080179081179082179083179084179085179086179087179088179089179090179091179092179093179094179095179096179097179098179099179100179101179102179103179104179105179106179107179108179109179110179111179112179113179114179115179116179117179118179119179120179121179122179123179124179125179126179127179128179129179130179131179132179133179134179135179136179137179138179139179140179141179142179143179144179145179146179147179148179149179150179151179152179153179154179155179156179157179158179159179160179161179162179163179164179165179166179167179168179169179170179171179172179173179174179175179176179177179178179179179180179181179182179183179184179185179186179187179188179189179190179191179192179193179194179195179196179197179198179199179200179201179202179203179204179205179206179207179208179209179210179211179212179213179214179215179216179217179218179219179220179221179222179223179224179225179226179227179228179229179230179231179232179233179234179235179236179237179238179239179240179241179242179243179244179245179246179247179248179249179250179251179252179253179254179255179256179257179258179259179260179261179262179263179264179265179266179267179268179269179270179271179272179273179274179275179276179277179278179279179280179281179282179283179284179285179286179287179288179289179290179291179292179293179294179295179296179297179298179299179300179301179302179303179304179305179306179307179308179309179310179311179312179313179314179315179316179317179318179319179320179321179322179323179324179325179326179327179328179329179330179331179332179333179334179335179336179337179338179339179340179341179342179343179344179345179346179347179348179349179350179351179352179353179354179355179356179357179358179359179360179361179362179363179364179365179366179367179368179369179370179371179372179373179374179375179376179377179378179379179380179381179382179383179384179385179386179387179388179389179390179391179392179393179394179395179396179397179398179399179400179401179402179403179404179405179406179407179408179409179410179411179412179413179414179415179416179417179418179419179420179421179422179423179424179425179426179427179428179429179430179431179432179433179434179435179436179437179438179439179440179441179442179443179444179445179446179447179448179449179450179451179452179453179454179455179456179457179458179459179460179461179462179463179464179465179466179467179468179469179470179471179472179473179474179475179476179477179478179479179480179481179482179483179484179485179486179487179488179489179490179491179492179493179494179495179496179497179498179499179500179501179502179503179504179505179506179507179508179509179510179511179512179513179514179515179516179517179518179519179520179521179522179523179524179525179526179527179528179529179530179531179532179533179534179535179536179537179538179539179540179541179542179543179544179545179546179547179548179549179550179551179552179553179554179555179556179557179558179559179560179561179562179563179564179565179566179567179568179569179570179571179572179573179574179575179576179577179578179579179580179581179582179583179584179585179586179587179588179589179590179591179592179593179594179595179596179597179598179599179600179601179602179603179604179605179606179607179608179609179610179611179612179613179614179615179616179617179618179619179620179621179622179623179624179625179626179627179628179629179630179631179632179633179634179635179636179637179638179639179640179641179642179643179644179645179646179647179648179649179650179651179652179653179654179655179656179657179658179659179660179661179662179663179664179665179666179667179668179669179670179671179672179673179674179675179676179677179678179679179680179681179682179683179684179685179686179687179688179689179690179691179692179693179694179695179696179697179698179699179700179701179702179703179704179705179706179707179708179709179710179711179712179713179714179715179716179717179718179719179720179721179722179723179724179725179726179727179728179729179730179731179732179733179734179735179736179737179738179739179740179741179742179743179744179745179746179747179748179749179750179751179752179753179754179755179756179757179758179759179760179761179762179763179764179765179766179767179768179769179770179771179772179773179774179775179776179777179778179779179780179781179782179783179784179785179786179787179788179789179790179791179792179793179794179795179796179797179798179799179800179801179802179803179804179805179806179807179808179809179810179811179812179813179814179815179816179817179818179819179820179821179822179823179824179825179826179827179828179829179830179831179832179833179834179835179836179837179838179839179840179841179842179843179844179845179846179847179848179849179850179851179852179853179854179855179856179857179858179859179860179861179862179863179864179865179866179867179868179869179870179871179872179873179874179875179876179877179878179879179880179881179882179883179884179885179886179887179888179889179890179891179892179893179894179895179896179897179898179899179900179901179902179903179904179905179906179907179908179909179910179911179912179913179914179915179916179917179918179919179920179921179922179923179924179925179926179927179928179929179930179931179932179933179934179935179936179937179938179939179940179941179942179943179944179945179946179947179948179949179950179951179952179953179954179955179956179957179958179959179960179961179962179963179964179965179966179967179968179969179970179971179972179973179974179975179976179977179978179979179980179981179982179983179984179985179986179987179988179989179990179991179992179993179994179995179996179997179998179999180000180001180002180003180004180005180006180007180008180009180010180011180012180013180014180015180016180017180018180019180020180021180022180023180024180025180026180027180028180029180030180031180032180033180034180035180036180037180038180039180040180041180042180043180044180045180046180047180048180049180050180051180052180053180054180055180056180057180058180059180060180061180062180063180064180065180066180067180068180069180070180071180072180073180074180075180076180077180078180079180080180081180082180083180084180085180086180087180088180089180090180091180092180093180094180095180096180097180098180099180100180101180102180103180104180105180106180107180108180109180110180111180112180113180114180115180116180117180118180119180120180121180122180123180124180125180126180127180128180129180130180131180132180133180134180135180136180137180138180139180140180141180142180143180144180145180146180147180148180149180150180151180152180153180154180155180156180157180158180159180160180161180162180163180164180165180166180167180168180169180170180171180172180173180174180175180176180177180178180179180180180181180182180183180184180185180186180187180188180189180190180191180192180193180194180195180196180197180198180199180200180201180202180203180204180205180206180207180208180209180210180211180212180213180214180215180216180217180218180219180220180221180222180223180224180225180226180227180228180229180230180231180232180233180234180235180236180237180238180239180240180241180242180243180244180245180246180247180248180249180250180251180252180253180254180255180256180257180258180259180260180261180262180263180264180265180266180267180268180269180270180271180272180273180274180275180276180277180278180279180280180281180282180283180284180285180286180287180288180289180290180291180292180293180294180295180296180297180298180299180300180301180302180303180304180305180306180307180308180309180310180311180312180313180314180315180316180317180318180319180320180321180322180323180324180325180326180327180328180329180330180331180332180333180334180335180336180337180338180339180340180341180342180343180344180345180346180347180348180349180350180351180352180353180354180355180356180357180358180359180360180361180362180363180364180365180366180367180368180369180370180371180372180373180374180375180376180377180378180379180380180381180382180383180384180385180386180387180388180389180390180391180392180393180394180395180396180397180398180399180400180401180402180403180404180405180406180407180408180409180410180411180412180413180414180415180416180417180418180419180420180421180422180423180424180425180426180427180428180429180430180431180432180433180434180435180436180437180438180439180440180441180442180443180444180445180446180447180448180449180450180451180452180453180454180455180456180457180458180459180460180461180462180463180464180465180466180467180468180469180470180471180472180473180474180475180476180477180478180479180480180481180482180483180484180485180486180487180488180489180490180491180492180493180494180495180496180497180498180499180500180501180502180503180504180505180506180507180508180509180510180511180512180513180514180515180516180517180518180519180520180521180522180523180524180525180526180527180528180529180530180531180532180533180534180535180536180537180538180539180540180541180542180543180544180545180546180547180548180549180550180551180552180553180554180555180556180557180558180559180560180561180562180563180564180565180566180567180568180569180570180571180572180573180574180575180576180577180578180579180580180581180582180583180584180585180586180587180588180589180590180591180592180593180594180595180596180597180598180599180600180601180602180603180604180605180606180607180608180609180610180611180612180613180614180615180616180617180618180619180620180621180622180623180624180625180626180627180628180629180630180631180632180633180634180635180636180637180638180639180640180641180642180643180644180645180646180647180648180649180650180651180652180653180654180655180656180657180658180659180660180661180662180663180664180665180666180667180668180669180670180671180672180673180674180675180676180677180678180679180680180681180682180683180684180685180686180687180688180689180690180691180692180693180694180695180696180697180698180699180700180701180702180703180704180705180706180707180708180709180710180711180712180713180714180715180716180717180718180719180720180721180722180723180724180725180726180727180728180729180730180731180732180733180734180735180736180737180738180739180740180741180742180743180744180745180746180747180748180749180750180751180752180753180754180755180756180757180758180759180760180761180762180763180764180765180766180767180768180769180770180771180772180773180774180775180776180777180778180779180780180781180782180783180784180785180786180787180788180789180790180791180792180793180794180795180796180797180798180799180800180801180802180803180804180805180806180807180808180809180810180811180812180813180814180815180816180817180818180819180820180821180822180823180824180825180826180827180828180829180830180831180832180833180834180835180836180837180838180839180840180841180842180843180844180845180846180847180848180849180850180851180852180853180854180855180856180857180858180859180860180861180862180863180864180865180866180867180868180869180870180871180872180873180874180875180876180877180878180879180880180881180882180883180884180885180886180887180888180889180890180891180892180893180894180895180896180897180898180899180900180901180902180903180904180905180906180907180908180909180910180911180912180913180914180915180916180917180918180919180920180921180922180923180924180925180926180927180928180929180930180931180932180933180934180935180936180937180938180939180940180941180942180943180944180945180946180947180948180949180950180951180952180953180954180955180956180957180958180959180960180961180962180963180964180965180966180967180968180969180970180971180972180973180974180975180976180977180978180979180980180981180982180983180984180985180986180987180988180989180990180991180992180993180994180995180996180997180998180999181000181001181002181003181004181005181006181007181008181009181010181011181012181013181014181015181016181017181018181019181020181021181022181023181024181025181026181027181028181029181030181031181032181033181034181035181036181037181038181039181040181041181042181043181044181045181046181047181048181049181050181051181052181053181054181055181056181057181058181059181060181061181062181063181064181065181066181067181068181069181070181071181072181073181074181075181076181077181078181079181080181081181082181083181084181085181086181087181088181089181090181091181092181093181094181095181096181097181098181099181100181101181102181103181104181105181106181107181108181109181110181111181112181113181114181115181116181117181118181119181120181121181122181123181124181125181126181127181128181129181130181131181132181133181134181135181136181137181138181139181140181141181142181143181144181145181146181147181148181149181150181151181152181153181154181155181156181157181158181159181160181161181162181163181164181165181166181167181168181169181170181171181172181173181174181175181176181177181178181179181180181181181182181183181184181185181186181187181188181189181190181191181192181193181194181195181196181197181198181199181200181201181202181203181204181205181206181207181208181209181210181211181212181213181214181215181216181217181218181219181220181221181222181223181224181225181226181227181228181229181230181231181232181233181234181235181236181237181238181239181240181241181242181243181244181245181246181247181248181249181250181251181252181253181254181255181256181257181258181259181260181261181262181263181264181265181266181267181268181269181270181271181272181273181274181275181276181277181278181279181280181281181282181283181284181285181286181287181288181289181290181291181292181293181294181295181296181297181298181299181300181301181302181303181304181305181306181307181308181309181310181311181312181313181314181315181316181317181318181319181320181321181322181323181324181325181326181327181328181329181330181331181332181333181334181335181336181337181338181339181340181341181342181343181344181345181346181347181348181349181350181351181352181353181354181355181356181357181358181359181360181361181362181363181364181365181366181367181368181369181370181371181372181373181374181375181376181377181378181379181380181381181382181383181384181385181386181387181388181389181390181391181392181393181394181395181396181397181398181399181400181401181402181403181404181405181406181407181408181409181410181411181412181413181414181415181416181417181418181419181420181421181422181423181424181425181426181427181428181429181430181431181432181433181434181435181436181437181438181439181440181441181442181443181444181445181446181447181448181449181450181451181452181453181454181455181456181457181458181459181460181461181462181463181464181465181466181467181468181469181470181471181472181473181474181475181476181477181478181479181480181481181482181483181484181485181486181487181488181489181490181491181492181493181494181495181496181497181498181499181500181501181502181503181504181505181506181507181508181509181510181511181512181513181514181515181516181517181518181519181520181521181522181523181524181525181526181527181528181529181530181531181532181533181534181535181536181537181538181539181540181541181542181543181544181545181546181547181548181549181550181551181552181553181554181555181556181557181558181559181560181561181562181563181564181565181566181567181568181569181570181571181572181573181574181575181576181577181578181579181580181581181582181583181584181585181586181587181588181589181590181591181592181593181594181595181596181597181598181599181600181601181602181603181604181605181606181607181608181609181610181611181612181613181614181615181616181617181618181619181620181621181622181623181624181625181626181627181628181629181630181631181632181633181634181635181636181637181638181639181640181641181642181643181644181645181646181647181648181649181650181651181652181653181654181655181656181657181658181659181660181661181662181663181664181665181666181667181668181669181670181671181672181673181674181675181676181677181678181679181680181681181682181683181684181685181686181687181688181689181690181691181692181693181694181695181696181697181698181699181700181701181702181703181704181705181706181707181708181709181710181711181712181713181714181715181716181717181718181719181720181721181722181723181724181725181726181727181728181729181730181731181732181733181734181735181736181737181738181739181740181741181742181743181744181745181746181747181748181749181750181751181752181753181754181755181756181757181758181759181760181761181762181763181764181765181766181767181768181769181770181771181772181773181774181775181776181777181778181779181780181781181782181783181784181785181786181787181788181789181790181791181792181793181794181795181796181797181798181799181800181801181802181803181804181805181806181807181808181809181810181811181812181813181814181815181816181817181818181819181820181821181822181823181824181825181826181827181828181829181830181831181832181833181834181835181836181837181838181839181840181841181842181843181844181845181846181847181848181849181850181851181852181853181854181855181856181857181858181859181860181861181862181863181864181865181866181867181868181869181870181871181872181873181874181875181876181877181878181879181880181881181882181883181884181885181886181887181888181889181890181891181892181893181894181895181896181897181898181899181900181901181902181903181904181905181906181907181908181909181910181911181912181913181914181915181916181917181918181919181920181921181922181923181924181925181926181927181928181929181930181931181932181933181934181935181936181937181938181939181940181941181942181943181944181945181946181947181948181949181950181951181952181953181954181955181956181957181958181959181960181961181962181963181964181965181966181967181968181969181970181971181972181973181974181975181976181977181978181979181980181981181982181983181984181985181986181987181988181989181990181991181992181993181994181995181996181997181998181999182000182001182002182003182004182005182006182007182008182009182010182011182012182013182014182015182016182017182018182019182020182021182022182023182024182025182026182027182028182029182030182031182032182033182034182035182036182037182038182039182040182041182042182043182044182045182046182047182048182049182050182051182052182053182054182055182056182057182058182059182060182061182062182063182064182065182066182067182068182069182070182071182072182073182074182075182076182077182078182079182080182081182082182083182084182085182086182087182088182089182090182091182092182093182094182095182096182097182098182099182100182101182102182103182104182105182106182107182108182109182110182111182112182113182114182115182116182117182118182119182120182121182122182123182124182125182126182127182128182129182130182131182132182133182134182135182136182137182138182139182140182141182142182143182144182145182146182147182148182149182150182151182152182153182154182155182156182157182158182159182160182161182162182163182164182165182166182167182168182169182170182171182172182173182174182175182176182177182178182179182180182181182182182183182184182185182186182187182188182189182190182191182192182193182194182195182196182197182198182199182200182201182202182203182204182205182206182207182208182209182210182211182212182213182214182215182216182217182218182219182220182221182222182223182224182225182226182227182228182229182230182231182232182233182234182235182236182237182238182239182240182241182242182243182244182245182246182247182248182249182250182251182252182253182254182255182256182257182258182259182260182261182262182263182264182265182266182267182268182269182270182271182272182273182274182275182276182277182278182279182280182281182282182283182284182285182286182287182288182289182290182291182292182293182294182295182296182297182298182299182300182301182302182303182304182305182306182307182308182309182310182311182312182313182314182315182316182317182318182319182320182321182322182323182324182325182326182327182328182329182330182331182332182333182334182335182336182337182338182339182340182341182342182343182344182345182346182347182348182349182350182351182352182353182354182355182356182357182358182359182360182361182362182363182364182365182366182367182368182369182370182371182372182373182374182375182376182377182378182379182380182381182382182383182384182385182386182387182388182389182390182391182392182393182394182395182396182397182398182399182400182401182402182403182404182405182406182407182408182409182410182411182412182413182414182415182416182417182418182419182420182421182422182423182424182425182426182427182428182429182430182431182432182433182434182435182436182437182438182439182440182441182442182443182444182445182446182447182448182449182450182451182452182453182454182455182456182457182458182459182460182461182462182463182464182465182466182467182468182469182470182471182472182473182474182475182476182477182478182479182480182481182482182483182484182485182486182487182488182489182490182491182492182493182494182495182496182497182498182499182500182501182502182503182504182505182506182507182508182509182510182511182512182513182514182515182516182517182518182519182520182521182522182523182524182525182526182527182528182529182530182531182532182533182534182535182536182537182538182539182540182541182542182543182544182545182546182547182548182549182550182551182552182553182554182555182556182557182558182559182560182561182562182563182564182565182566182567182568182569182570182571182572182573182574182575182576182577182578182579182580182581182582182583182584182585182586182587182588182589182590182591182592182593182594182595182596182597182598182599182600182601182602182603182604182605182606182607182608182609182610182611182612182613182614182615182616182617182618182619182620182621182622182623182624182625182626182627182628182629182630182631182632182633182634182635182636182637182638182639182640182641182642182643182644182645182646182647182648182649182650182651182652182653182654182655182656182657182658182659182660182661182662182663182664182665182666182667182668182669182670182671182672182673182674182675182676182677182678182679182680182681182682182683182684182685182686182687182688182689182690182691182692182693182694182695182696182697182698182699182700182701182702182703182704182705182706182707182708182709182710182711182712182713182714182715182716182717182718182719182720182721182722182723182724182725182726182727182728182729182730182731182732182733182734182735182736182737182738182739182740182741182742182743182744182745182746182747182748182749182750182751182752182753182754182755182756182757182758182759182760182761182762182763182764182765182766182767182768182769182770182771182772182773182774182775182776182777182778182779182780182781182782182783182784182785182786182787182788182789182790182791182792182793182794182795182796182797182798182799182800182801182802182803182804182805182806182807182808182809182810182811182812182813182814182815182816182817182818182819182820182821182822182823182824182825182826182827182828182829182830182831182832182833182834182835182836182837182838182839182840182841182842182843182844182845182846182847182848182849182850182851182852182853182854182855182856182857182858182859182860182861182862182863182864182865182866182867182868182869182870182871182872182873182874182875182876182877182878182879182880182881182882182883182884182885182886182887182888182889182890182891182892182893182894182895182896182897182898182899182900182901182902182903182904182905182906182907182908182909182910182911182912182913182914182915182916182917182918182919182920182921182922182923182924182925182926182927182928182929182930182931182932182933182934182935182936182937182938182939182940182941182942182943182944182945182946182947182948182949182950182951182952182953182954182955182956182957182958182959182960182961182962182963182964182965182966182967182968182969182970182971182972182973182974182975182976182977182978182979182980182981182982182983182984182985182986182987182988182989182990182991182992182993182994182995182996182997182998182999183000183001183002183003183004183005183006183007183008183009183010183011183012183013183014183015183016183017183018183019183020183021183022183023183024183025183026183027183028183029183030183031183032183033183034183035183036183037183038183039183040183041183042183043183044183045183046183047183048183049183050183051183052183053183054183055183056183057183058183059183060183061183062183063183064183065183066183067183068183069183070183071183072183073183074183075183076183077183078183079183080183081183082183083183084183085183086183087183088183089183090183091183092183093183094183095183096183097183098183099183100183101183102183103183104183105183106183107183108183109183110183111183112183113183114183115183116183117183118183119183120183121183122183123183124183125183126183127183128183129183130183131183132183133183134183135183136183137183138183139183140183141183142183143183144183145183146183147183148183149183150183151183152183153183154183155183156183157183158183159183160183161183162183163183164183165183166183167183168183169183170183171183172183173183174183175183176183177183178183179183180183181183182183183183184183185183186183187183188183189183190183191183192183193183194183195183196183197183198183199183200183201183202183203183204183205183206183207183208183209183210183211183212183213183214183215183216183217183218183219183220183221183222183223183224183225183226183227183228183229183230183231183232183233183234183235183236183237183238183239183240183241183242183243183244183245183246183247183248183249183250183251183252183253183254183255183256183257183258183259183260183261183262183263183264183265183266183267183268183269183270183271183272183273183274183275183276183277183278183279183280183281183282183283183284183285183286183287183288183289183290183291183292183293183294183295183296183297183298183299183300183301183302183303183304183305183306183307183308183309183310183311183312183313183314183315183316183317183318183319183320183321183322183323183324183325183326183327183328183329183330183331183332183333183334183335183336183337183338183339183340183341183342183343183344183345183346183347183348183349183350183351183352183353183354183355183356183357183358183359183360183361183362183363183364183365183366183367183368183369183370183371183372183373183374183375183376183377183378183379183380183381183382183383183384183385183386183387183388183389183390183391183392183393183394183395183396183397183398183399183400183401183402183403183404183405183406183407183408183409183410183411183412183413183414183415183416183417183418183419183420183421183422183423183424183425183426183427183428183429183430183431183432183433183434183435183436183437183438183439183440183441183442183443183444183445183446183447183448183449183450183451183452183453183454183455183456183457183458183459183460183461183462183463183464183465183466183467183468183469183470183471183472183473183474183475183476183477183478183479183480183481183482183483183484183485183486183487183488183489183490183491183492183493183494183495183496183497183498183499183500183501183502183503183504183505183506183507183508183509183510183511183512183513183514183515183516183517183518183519183520183521183522183523183524183525183526183527183528183529183530183531183532183533183534183535183536183537183538183539183540183541183542183543183544183545183546183547183548183549183550183551183552183553183554183555183556183557183558183559183560183561183562183563183564183565183566183567183568183569183570183571183572183573183574183575183576183577183578183579183580183581183582183583183584183585183586183587183588183589183590183591183592183593183594183595183596183597183598183599183600183601183602183603183604183605183606183607183608183609183610183611183612183613183614183615183616183617183618183619183620183621183622183623183624183625183626183627183628183629183630183631183632183633183634183635183636183637183638183639183640183641183642183643183644183645183646183647183648183649183650183651183652183653183654183655183656183657183658183659183660183661183662183663183664183665183666183667183668183669183670183671183672183673183674183675183676183677183678183679183680183681183682183683183684183685183686183687183688183689183690183691183692183693183694183695183696183697183698183699183700183701183702183703183704183705183706183707183708183709183710183711183712183713183714183715183716183717183718183719183720183721183722183723183724183725183726183727183728183729183730183731183732183733183734183735183736183737183738183739183740183741183742183743183744183745183746183747183748183749183750183751183752183753183754183755183756183757183758183759183760183761183762183763183764183765183766183767183768183769183770183771183772183773183774183775183776183777183778183779183780183781183782183783183784183785183786183787183788183789183790183791183792183793183794183795183796183797183798183799183800183801183802183803183804183805183806183807183808183809183810183811183812183813183814183815183816183817183818183819183820183821183822183823183824183825183826183827183828183829183830183831183832183833183834183835183836183837183838183839183840183841183842183843183844183845183846183847183848183849183850183851183852183853183854183855183856183857183858183859183860183861183862183863183864183865183866183867183868183869183870183871183872183873183874183875183876183877183878183879183880183881183882183883183884183885183886183887183888183889183890183891183892183893183894183895183896183897183898183899183900183901183902183903183904183905183906183907183908183909183910183911183912183913183914183915183916183917183918183919183920183921183922183923183924183925183926183927183928183929183930183931183932183933183934183935183936183937183938183939183940183941183942183943183944183945183946183947183948183949183950183951183952183953183954183955183956183957183958183959183960183961183962183963183964183965183966183967183968183969183970183971183972183973183974183975183976183977183978183979183980183981183982183983183984183985183986183987183988183989183990183991183992183993183994183995183996183997183998183999184000184001184002184003184004184005184006184007184008184009184010184011184012184013184014184015184016184017184018184019184020184021184022184023184024184025184026184027184028184029184030184031184032184033184034184035184036184037184038184039184040184041184042184043184044184045184046184047184048184049184050184051184052184053184054184055184056184057184058184059184060184061184062184063184064184065184066184067184068184069184070184071184072184073184074184075184076184077184078184079184080184081184082184083184084184085184086184087184088184089184090184091184092184093184094184095184096184097184098184099184100184101184102184103184104184105184106184107184108184109184110184111184112184113184114184115184116184117184118184119184120184121184122184123184124184125184126184127184128184129184130184131184132184133184134184135184136184137184138184139184140184141184142184143184144184145184146184147184148184149184150184151184152184153184154184155184156184157184158184159184160184161184162184163184164184165184166184167184168184169184170184171184172184173184174184175184176184177184178184179184180184181184182184183184184184185184186184187184188184189184190184191184192184193184194184195184196184197184198184199184200184201184202184203184204184205184206184207184208184209184210184211184212184213184214184215184216184217184218184219184220184221184222184223184224184225184226184227184228184229184230184231184232184233184234184235184236184237184238184239184240184241184242184243184244184245184246184247184248184249184250184251184252184253184254184255184256184257184258184259184260184261184262184263184264184265184266184267184268184269184270184271184272184273184274184275184276184277184278184279184280184281184282184283184284184285184286184287184288184289184290184291184292184293184294184295184296184297184298184299184300184301184302184303184304184305184306184307184308184309184310184311184312184313184314184315184316184317184318184319184320184321184322184323184324184325184326184327184328184329184330184331184332184333184334184335184336184337184338184339184340184341184342184343184344184345184346184347184348184349184350184351184352184353184354184355184356184357184358184359184360184361184362184363184364184365184366184367184368184369184370184371184372184373184374184375184376184377184378184379184380184381184382184383184384184385184386184387184388184389184390184391184392184393184394184395184396184397184398184399184400184401184402184403184404184405184406184407184408184409184410184411184412184413184414184415184416184417184418184419184420184421184422184423184424184425184426184427184428184429184430184431184432184433184434184435184436184437184438184439184440184441184442184443184444184445184446184447184448184449184450184451184452184453184454184455184456184457184458184459184460184461184462184463184464184465184466184467184468184469184470184471184472184473184474184475184476184477184478184479184480184481184482184483184484184485184486184487184488184489184490184491184492184493184494184495184496184497184498184499184500184501184502184503184504184505184506184507184508184509184510184511184512184513184514184515184516184517184518184519184520184521184522184523184524184525184526184527184528184529184530184531184532184533184534184535184536184537184538184539184540184541184542184543184544184545184546184547184548184549184550184551184552184553184554184555184556184557184558184559184560184561184562184563184564184565184566184567184568184569184570184571184572184573184574184575184576184577184578184579184580184581184582184583184584184585184586184587184588184589184590184591184592184593184594184595184596184597184598184599184600184601184602184603184604184605184606184607184608184609184610184611184612184613184614184615184616184617184618184619184620184621184622184623184624184625184626184627184628184629184630184631184632184633184634184635184636184637184638184639184640184641184642184643184644184645184646184647184648184649184650184651184652184653184654184655184656184657184658184659184660184661184662184663184664184665184666184667184668184669184670184671184672184673184674184675184676184677184678184679184680184681184682184683184684184685184686184687184688184689184690184691184692184693184694184695184696184697184698184699184700184701184702184703184704184705184706184707184708184709184710184711184712184713184714184715184716184717184718184719184720184721184722184723184724184725184726184727184728184729184730184731184732184733184734184735184736184737184738184739184740184741184742184743184744184745184746184747184748184749184750184751184752184753184754184755184756184757184758184759184760184761184762184763184764184765184766184767184768184769184770184771184772184773184774184775184776184777184778184779184780184781184782184783184784184785184786184787184788184789184790184791184792184793184794184795184796184797184798184799184800184801184802184803184804184805184806184807184808184809184810184811184812184813184814184815184816184817184818184819184820184821184822184823184824184825184826184827184828184829184830184831184832184833184834184835184836184837184838184839184840184841184842184843184844184845184846184847184848184849184850184851184852184853184854184855184856184857184858184859184860184861184862184863184864184865184866184867184868184869184870184871184872184873184874184875184876184877184878184879184880184881184882184883184884184885184886184887184888184889184890184891184892184893184894184895184896184897184898184899184900184901184902184903184904184905184906184907184908184909184910184911184912184913184914184915184916184917184918184919184920184921184922184923184924184925184926184927184928184929184930184931184932184933184934184935184936184937184938184939184940184941184942184943184944184945184946184947184948184949184950184951184952184953184954184955184956184957184958184959184960184961184962184963184964184965184966184967184968184969184970184971184972184973184974184975184976184977184978184979184980184981184982184983184984184985184986184987184988184989184990184991184992184993184994184995184996184997184998184999185000185001185002185003185004185005185006185007185008185009185010185011185012185013185014185015185016185017185018185019185020185021185022185023185024185025185026185027185028185029185030185031185032185033185034185035185036185037185038185039185040185041185042185043185044185045185046185047185048185049185050185051185052185053185054185055185056185057185058185059185060185061185062185063185064185065185066185067185068185069185070185071185072185073185074185075185076185077185078185079185080185081185082185083185084185085185086185087185088185089185090185091185092185093185094185095185096185097185098185099185100185101185102185103185104185105185106185107185108185109185110185111185112185113185114185115185116185117185118185119185120185121185122185123185124185125185126185127185128185129185130185131185132185133185134185135185136185137185138185139185140185141185142185143185144185145185146185147185148185149185150185151185152185153185154185155185156185157185158185159185160185161185162185163185164185165185166185167185168185169185170185171185172185173185174185175185176185177185178185179185180185181185182185183185184185185185186185187185188185189185190185191185192185193185194185195185196185197185198185199185200185201185202185203185204185205185206185207185208185209185210185211185212185213185214185215185216185217185218185219185220185221185222185223185224185225185226185227185228185229185230185231185232185233185234185235185236185237185238185239185240185241185242185243185244185245185246185247185248185249185250185251185252185253185254185255185256185257185258185259185260185261185262185263185264185265185266185267185268185269185270185271185272185273185274185275185276185277185278185279185280185281185282185283185284185285185286185287185288185289185290185291185292185293185294185295185296185297185298185299185300185301185302185303185304185305185306185307185308185309185310185311185312185313185314185315185316185317185318185319185320185321185322185323185324185325185326185327185328185329185330185331185332185333185334185335185336185337185338185339185340185341185342185343185344185345185346185347185348185349185350185351185352185353185354185355185356185357185358185359185360185361185362185363185364185365185366185367185368185369185370185371185372185373185374185375185376185377185378185379185380185381185382185383185384185385185386185387185388185389185390185391185392185393185394185395185396185397185398185399185400185401185402185403185404185405185406185407185408185409185410185411185412185413185414185415185416185417185418185419185420185421185422185423185424185425185426185427185428185429185430185431185432185433185434185435185436185437185438185439185440185441185442185443185444185445185446185447185448185449185450185451185452185453185454185455185456185457185458185459185460185461185462185463185464185465185466185467185468185469185470185471185472185473185474185475185476185477185478185479185480185481185482185483185484185485185486185487185488185489185490185491185492185493185494185495185496185497185498185499185500185501185502185503185504185505185506185507185508185509185510185511185512185513185514185515185516185517185518185519185520185521185522185523185524185525185526185527185528185529185530185531185532185533185534185535185536185537185538185539185540185541185542185543185544185545185546185547185548185549185550185551185552185553185554185555185556185557185558185559185560185561185562185563185564185565185566185567185568185569185570185571185572185573185574185575185576185577185578185579185580185581185582185583185584185585185586185587185588185589185590185591185592185593185594185595185596185597185598185599185600185601185602185603185604185605185606185607185608185609185610185611185612185613185614185615185616185617185618185619185620185621185622185623185624185625185626185627185628185629185630185631185632185633185634185635185636185637185638185639185640185641185642185643185644185645185646185647185648185649185650185651185652185653185654185655185656185657185658185659185660185661185662185663185664185665185666185667185668185669185670185671185672185673185674185675185676185677185678185679185680185681185682185683185684185685185686185687185688185689185690185691185692185693185694185695185696185697185698185699185700185701185702185703185704185705185706185707185708185709185710185711185712185713185714185715185716185717185718185719185720185721185722185723185724185725185726185727185728185729185730185731185732185733185734185735185736185737185738185739185740185741185742185743185744185745185746185747185748185749185750185751185752185753185754185755185756185757185758185759185760185761185762185763185764185765185766185767185768185769185770185771185772185773185774185775185776185777185778185779185780185781185782185783185784185785185786185787185788185789185790185791185792185793185794185795185796185797185798185799185800185801185802185803185804185805185806185807185808185809185810185811185812185813185814185815185816185817185818185819185820185821185822185823185824185825185826185827185828185829185830185831185832185833185834185835185836185837185838185839185840185841185842185843185844185845185846185847185848185849185850185851185852185853185854185855185856185857185858185859185860185861185862185863185864185865185866185867185868185869185870185871185872185873185874185875185876185877185878185879185880185881185882185883185884185885185886185887185888185889185890185891185892185893185894185895185896185897185898185899185900185901185902185903185904185905185906185907185908185909185910185911185912185913185914185915185916185917185918185919185920185921185922185923185924185925185926185927185928185929185930185931185932185933185934185935185936185937185938185939185940185941185942185943185944185945185946185947185948185949185950185951185952185953185954185955185956185957185958185959185960185961185962185963185964185965185966185967185968185969185970185971185972185973185974185975185976185977185978185979185980185981185982185983185984185985185986185987185988185989185990185991185992185993185994185995185996185997185998185999186000186001186002186003186004186005186006186007186008186009186010186011186012186013186014186015186016186017186018186019186020186021186022186023186024186025186026186027186028186029186030186031186032186033186034186035186036186037186038186039186040186041186042186043186044186045186046186047186048186049186050186051186052186053186054186055186056186057186058186059186060186061186062186063186064186065186066186067186068186069186070186071186072186073186074186075186076186077186078186079186080186081186082186083186084186085186086186087186088186089186090186091186092186093186094186095186096186097186098186099186100186101186102186103186104186105186106186107186108186109186110186111186112186113186114186115186116186117186118186119186120186121186122186123186124186125186126186127186128186129186130186131186132186133186134186135186136186137186138186139186140186141186142186143186144186145186146186147186148186149186150186151186152186153186154186155186156186157186158186159186160186161186162186163186164186165186166186167186168186169186170186171186172186173186174186175186176186177186178186179186180186181186182186183186184186185186186186187186188186189186190186191186192186193186194186195186196186197186198186199186200186201186202186203186204186205186206186207186208186209186210186211186212186213186214186215186216186217186218186219186220186221186222186223186224186225186226186227186228186229186230186231186232186233186234186235186236186237186238186239186240186241186242186243186244186245186246186247186248186249186250186251186252186253186254186255186256186257186258186259186260186261186262186263186264186265186266186267186268186269186270186271186272186273186274186275186276186277186278186279186280186281186282186283186284186285186286186287186288186289186290186291186292186293186294186295186296186297186298186299186300186301186302186303186304186305186306186307186308186309186310186311186312186313186314186315186316186317186318186319186320186321186322186323186324186325186326186327186328186329186330186331186332186333186334186335186336186337186338186339186340186341186342186343186344186345186346186347186348186349186350186351186352186353186354186355186356186357186358186359186360186361186362186363186364186365186366186367186368186369186370186371186372186373186374186375186376186377186378186379186380186381186382186383186384186385186386186387186388186389186390186391186392186393186394186395186396186397186398186399186400186401186402186403186404186405186406186407186408186409186410186411186412186413186414186415186416186417186418186419186420186421186422186423186424186425186426186427186428186429186430186431186432186433186434186435186436186437186438186439186440186441186442186443186444186445186446186447186448186449186450186451186452186453186454186455186456186457186458186459186460186461186462186463186464186465186466186467186468186469186470186471186472186473186474186475186476186477186478186479186480186481186482186483186484186485186486186487186488186489186490186491186492186493186494186495186496186497186498186499186500186501186502186503186504186505186506186507186508186509186510186511186512186513186514186515186516186517186518186519186520186521186522186523186524186525186526186527186528186529186530186531186532186533186534186535186536186537186538186539186540186541186542186543186544186545186546186547186548186549186550186551186552186553186554186555186556186557186558186559186560186561186562186563186564186565186566186567186568186569186570186571186572186573186574186575186576186577186578186579186580186581186582186583186584186585186586186587186588186589186590186591186592186593186594186595186596186597186598186599186600186601186602186603186604186605186606186607186608186609186610186611186612186613186614186615186616186617186618186619186620186621186622186623186624186625186626186627186628186629186630186631186632186633186634186635186636186637186638186639186640186641186642186643186644186645186646186647186648186649186650186651186652186653186654186655186656186657186658186659186660186661186662186663186664186665186666186667186668186669186670186671186672186673186674186675186676186677186678186679186680186681186682186683186684186685186686186687186688186689186690186691186692186693186694186695186696186697186698186699186700186701186702186703186704186705186706186707186708186709186710186711186712186713186714186715186716186717186718186719186720186721186722186723186724186725186726186727186728186729186730186731186732186733186734186735186736186737186738186739186740186741186742186743186744186745186746186747186748186749186750186751186752186753186754186755186756186757186758186759186760186761186762186763186764186765186766186767186768186769186770186771186772186773186774186775186776186777186778186779186780186781186782186783186784186785186786186787186788186789186790186791186792186793186794186795186796186797186798186799186800186801186802186803186804186805186806186807186808186809186810186811186812186813186814186815186816186817186818186819186820186821186822186823186824186825186826186827186828186829186830186831186832186833186834186835186836186837186838186839186840186841186842186843186844186845186846186847186848186849186850186851186852186853186854186855186856186857186858186859186860186861186862186863186864186865186866186867186868186869186870186871186872186873186874186875186876186877186878186879186880186881186882186883186884186885186886186887186888186889186890186891186892186893186894186895186896186897186898186899186900186901186902186903186904186905186906186907186908186909186910186911186912186913186914186915186916186917186918186919186920186921186922186923186924186925186926186927186928186929186930186931186932186933186934186935186936186937186938186939186940186941186942186943186944186945186946186947186948186949186950186951186952186953186954186955186956186957186958186959186960186961186962186963186964186965186966186967186968186969186970186971186972186973186974186975186976186977186978186979186980186981186982186983186984186985186986186987186988186989186990186991186992186993186994186995186996186997186998186999187000187001187002187003187004187005187006187007187008187009187010187011187012187013187014187015187016187017187018187019187020187021187022187023187024187025187026187027187028187029187030187031187032187033187034187035187036187037187038187039187040187041187042187043187044187045187046187047187048187049187050187051187052187053187054187055187056187057187058187059187060187061187062187063187064187065187066187067187068187069187070187071187072187073187074187075187076187077187078187079187080187081187082187083187084187085187086187087187088187089187090187091187092187093187094187095187096187097187098187099187100187101187102187103187104187105187106187107187108187109187110187111187112187113187114187115187116187117187118187119187120187121187122187123187124187125187126187127187128187129187130187131187132187133187134187135187136187137187138187139187140187141187142187143187144187145187146187147187148187149187150187151187152187153187154187155187156187157187158187159187160187161187162187163187164187165187166187167187168187169187170187171187172187173187174187175187176187177187178187179187180187181187182187183187184187185187186187187187188187189187190187191187192187193187194187195187196187197187198187199187200187201187202187203187204187205187206187207187208187209187210187211187212187213187214187215187216187217187218187219187220187221187222187223187224187225187226187227187228187229187230187231187232187233187234187235187236187237187238187239187240187241187242187243187244187245187246187247187248187249187250187251187252187253187254187255187256187257187258187259187260187261187262187263187264187265187266187267187268187269187270187271187272187273187274187275187276187277187278187279187280187281187282187283187284187285187286187287187288187289187290187291187292187293187294187295187296187297187298187299187300187301187302187303187304187305187306187307187308187309187310187311187312187313187314187315187316187317187318187319187320187321187322187323187324187325187326187327187328187329187330187331187332187333187334187335187336187337187338187339187340187341187342187343187344187345187346187347187348187349187350187351187352187353187354187355187356187357187358187359187360187361187362187363187364187365187366187367187368187369187370187371187372187373187374187375187376187377187378187379187380187381187382187383187384187385187386187387187388187389187390187391187392187393187394187395187396187397187398187399187400187401187402187403187404187405187406187407187408187409187410187411187412187413187414187415187416187417187418187419187420187421187422187423187424187425187426187427187428187429187430187431187432187433187434187435187436187437187438187439187440187441187442187443187444187445187446187447187448187449187450187451187452187453187454187455187456187457187458187459187460187461187462187463187464187465187466187467187468187469187470187471187472187473187474187475187476187477187478187479187480187481187482187483187484187485187486187487187488187489187490187491187492187493187494187495187496187497187498187499187500187501187502187503187504187505187506187507187508187509187510187511187512187513187514187515187516187517187518187519187520187521187522187523187524187525187526187527187528187529187530187531187532187533187534187535187536187537187538187539187540187541187542187543187544187545187546187547187548187549187550187551187552187553187554187555187556187557187558187559187560187561187562187563187564187565187566187567187568187569187570187571187572187573187574187575187576187577187578187579187580187581187582187583187584187585187586187587187588187589187590187591187592187593187594187595187596187597187598187599187600187601187602187603187604187605187606187607187608187609187610187611187612187613187614187615187616187617187618187619187620187621187622187623187624187625187626187627187628187629187630187631187632187633187634187635187636187637187638187639187640187641187642187643187644187645187646187647187648187649187650187651187652187653187654187655187656187657187658187659187660187661187662187663187664187665187666187667187668187669187670187671187672187673187674187675187676187677187678187679187680187681187682187683187684187685187686187687187688187689187690187691187692187693187694187695187696187697187698187699187700187701187702187703187704187705187706187707187708187709187710187711187712187713187714187715187716187717187718187719187720187721187722187723187724187725187726187727187728187729187730187731187732187733187734187735187736187737187738187739187740187741187742187743187744187745187746187747187748187749187750187751187752187753187754187755187756187757187758187759187760187761187762187763187764187765187766187767187768187769187770187771187772187773187774187775187776187777187778187779187780187781187782187783187784187785187786187787187788187789187790187791187792187793187794187795187796187797187798187799187800187801187802187803187804187805187806187807187808187809187810187811187812187813187814187815187816187817187818187819187820187821187822187823187824187825187826187827187828187829187830187831187832187833187834187835187836187837187838187839187840187841187842187843187844187845187846187847187848187849187850187851187852187853187854187855187856187857187858187859187860187861187862187863187864187865187866187867187868187869187870187871187872187873187874187875187876187877187878187879187880187881187882187883187884187885187886187887187888187889187890187891187892187893187894187895187896187897187898187899187900187901187902187903187904187905187906187907187908187909187910187911187912187913187914187915187916187917187918187919187920187921187922187923187924187925187926187927187928187929187930187931187932187933187934187935187936187937187938187939187940187941187942187943187944187945187946187947187948187949187950187951187952187953187954187955187956187957187958187959187960187961187962187963187964187965187966187967187968187969187970187971187972187973187974187975187976187977187978187979187980187981187982187983187984187985187986187987187988187989187990187991187992187993187994187995187996187997187998187999188000188001188002188003188004188005188006188007188008188009188010188011188012188013188014188015188016188017188018188019188020188021188022188023188024188025188026188027188028188029188030188031188032188033188034188035188036188037188038188039188040188041188042188043188044188045188046188047188048188049188050188051188052188053188054188055188056188057188058188059188060188061188062188063188064188065188066188067188068188069188070188071188072188073188074188075188076188077188078188079188080188081188082188083188084188085188086188087188088188089188090188091188092188093188094188095188096188097188098188099188100188101188102188103188104188105188106188107188108188109188110188111188112188113188114188115188116188117188118188119188120188121188122188123188124188125188126188127188128188129188130188131188132188133188134188135188136188137188138188139188140188141188142188143188144188145188146188147188148188149188150188151188152188153188154188155188156188157188158188159188160188161188162188163188164188165188166188167188168188169188170188171188172188173188174188175188176188177188178188179188180188181188182188183188184188185188186188187188188188189188190188191188192188193188194188195188196188197188198188199188200188201188202188203188204188205188206188207188208188209188210188211188212188213188214188215188216188217188218188219188220188221188222188223188224188225188226188227188228188229188230188231188232188233188234188235188236188237188238188239188240188241188242188243188244188245188246188247188248188249188250188251188252188253188254188255188256188257188258188259188260188261188262188263188264188265188266188267188268188269188270188271188272188273188274188275188276188277188278188279188280188281188282188283188284188285188286188287188288188289188290188291188292188293188294188295188296188297188298188299188300188301188302188303188304188305188306188307188308188309188310188311188312188313188314188315188316188317188318188319188320188321188322188323188324188325188326188327188328188329188330188331188332188333188334188335188336188337188338188339188340188341188342188343188344188345188346188347188348188349188350188351188352188353188354188355188356188357188358188359188360188361188362188363188364188365188366188367188368188369188370188371188372188373188374188375188376188377188378188379188380188381188382188383188384188385188386188387188388188389188390188391188392188393188394188395188396188397188398188399188400188401188402188403188404188405188406188407188408188409188410188411188412188413188414188415188416188417188418188419188420188421188422188423188424188425188426188427188428188429188430188431188432188433188434188435188436188437188438188439188440188441188442188443188444188445188446188447188448188449188450188451188452188453188454188455188456188457188458188459188460188461188462188463188464188465188466188467188468188469188470188471188472188473188474188475188476188477188478188479188480188481188482188483188484188485188486188487188488188489188490188491188492188493188494188495188496188497188498188499188500188501188502188503188504188505188506188507188508188509188510188511188512188513188514188515188516188517188518188519188520188521188522188523188524188525188526188527188528188529188530188531188532188533188534188535188536188537188538188539188540188541188542188543188544188545188546188547188548188549188550188551188552188553188554188555188556188557188558188559188560188561188562188563188564188565188566188567188568188569188570188571188572188573188574188575188576188577188578188579188580188581188582188583188584188585188586188587188588188589188590188591188592188593188594188595188596188597188598188599188600188601188602188603188604188605188606188607188608188609188610188611188612188613188614188615188616188617188618188619188620188621188622188623188624188625188626188627188628188629188630188631188632188633188634188635188636188637188638188639188640188641188642188643188644188645188646188647188648188649188650188651188652188653188654188655188656188657188658188659188660188661188662188663188664188665188666188667188668188669188670188671188672188673188674188675188676188677188678188679188680188681188682188683188684188685188686188687188688188689188690188691188692188693188694188695188696188697188698188699188700188701188702188703188704188705188706188707188708188709188710188711188712188713188714188715188716188717188718188719188720188721188722188723188724188725188726188727188728188729188730188731188732188733188734188735188736188737188738188739188740188741188742188743188744188745188746188747188748188749188750188751188752188753188754188755188756188757188758188759188760188761188762188763188764188765188766188767188768188769188770188771188772188773188774188775188776188777188778188779188780188781188782188783188784188785188786188787188788188789188790188791188792188793188794188795188796188797188798188799188800188801188802188803188804188805188806188807188808188809188810188811188812188813188814188815188816188817188818188819188820188821188822188823188824188825188826188827188828188829188830188831188832188833188834188835188836188837188838188839188840188841188842188843188844188845188846188847188848188849188850188851188852188853188854188855188856188857188858188859188860188861188862188863188864188865188866188867188868188869188870188871188872188873188874188875188876188877188878188879188880188881188882188883188884188885188886188887188888188889188890188891188892188893188894188895188896188897188898188899188900188901188902188903188904188905188906188907188908188909188910188911188912188913188914188915188916188917188918188919188920188921188922188923188924188925188926188927188928188929188930188931188932188933188934188935188936188937188938188939188940188941188942188943188944188945188946188947188948188949188950188951188952188953188954188955188956188957188958188959188960188961188962188963188964188965188966188967188968188969188970188971188972188973188974188975188976188977188978188979188980188981188982188983188984188985188986188987188988188989188990188991188992188993188994188995188996188997188998188999189000189001189002189003189004189005189006189007189008189009189010189011189012189013189014189015189016189017189018189019189020189021189022189023189024189025189026189027189028189029189030189031189032189033189034189035189036189037189038189039189040189041189042189043189044189045189046189047189048189049189050189051189052189053189054189055189056189057189058189059189060189061189062189063189064189065189066189067189068189069189070189071189072189073189074189075189076189077189078189079189080189081189082189083189084189085189086189087189088189089189090189091189092189093189094189095189096189097189098189099189100189101189102189103189104189105189106189107189108189109189110189111189112189113189114189115189116189117189118189119189120189121189122189123189124189125189126189127189128189129189130189131189132189133189134189135189136189137189138189139189140189141189142189143189144189145189146189147189148189149189150189151189152189153189154189155189156189157189158189159189160189161189162189163189164189165189166189167189168189169189170189171189172189173189174189175189176189177189178189179189180189181189182189183189184189185189186189187189188189189189190189191189192189193189194189195189196189197189198189199189200189201189202189203189204189205189206189207189208189209189210189211189212189213189214189215189216189217189218189219189220189221189222189223189224189225189226189227189228189229189230189231189232189233189234189235189236189237189238189239189240189241189242189243189244189245189246189247189248189249189250189251189252189253189254189255189256189257189258189259189260189261189262189263189264189265189266189267189268189269189270189271189272189273189274189275189276189277189278189279189280189281189282189283189284189285189286189287189288189289189290189291189292189293189294189295189296189297189298189299189300189301189302189303189304189305189306189307189308189309189310189311189312189313189314189315189316189317189318189319189320189321189322189323189324189325189326189327189328189329189330189331189332189333189334189335189336189337189338189339189340189341189342189343189344189345189346189347189348189349189350189351189352189353189354189355189356189357189358189359189360189361189362189363189364189365189366189367189368189369189370189371189372189373189374189375189376189377189378189379189380189381189382189383189384189385189386189387189388189389189390189391189392189393189394189395189396189397189398189399189400189401189402189403189404189405189406189407189408189409189410189411189412189413189414189415189416189417189418189419189420189421189422189423189424189425189426189427189428189429189430189431189432189433189434189435189436189437189438189439189440189441189442189443189444189445189446189447189448189449189450189451189452189453189454189455189456189457189458189459189460189461189462189463189464189465189466189467189468189469189470189471189472189473189474189475189476189477189478189479189480189481189482189483189484189485189486189487189488189489189490189491189492189493189494189495189496189497189498189499189500189501189502189503189504189505189506189507189508189509189510189511189512189513189514189515189516189517189518189519189520189521189522189523189524189525189526189527189528189529189530189531189532189533189534189535189536189537189538189539189540189541189542189543189544189545189546189547189548189549189550189551189552189553189554189555189556189557189558189559189560189561189562189563189564189565189566189567189568189569189570189571189572189573189574189575189576189577189578189579189580189581189582189583189584189585189586189587189588189589189590189591189592189593189594189595189596189597189598189599189600189601189602189603189604189605189606189607189608189609189610189611189612189613189614189615189616189617189618189619189620189621189622189623189624189625189626189627189628189629189630189631189632189633189634189635189636189637189638189639189640189641189642189643189644189645189646189647189648189649189650189651189652189653189654189655189656189657189658189659189660189661189662189663189664189665189666189667189668189669189670189671189672189673189674189675189676189677189678189679189680189681189682189683189684189685189686189687189688189689189690189691189692189693189694189695189696189697189698189699189700189701189702189703189704189705189706189707189708189709189710189711189712189713189714189715189716189717189718189719189720189721189722189723189724189725189726189727189728189729189730189731189732189733189734189735189736189737189738189739189740189741189742189743189744189745189746189747189748189749189750189751189752189753189754189755189756189757189758189759189760189761189762189763189764189765189766189767189768189769189770189771189772189773189774189775189776189777189778189779189780189781189782189783189784189785189786189787189788189789189790189791189792189793189794189795189796189797189798189799189800189801189802189803189804189805189806189807189808189809189810189811189812189813189814189815189816189817189818189819189820189821189822189823189824189825189826189827189828189829189830189831189832189833189834189835189836189837189838189839189840189841189842189843189844189845189846189847189848189849189850189851189852189853189854189855189856189857189858189859189860189861189862189863189864189865189866189867189868189869189870189871189872189873189874189875189876189877189878189879189880189881189882189883189884189885189886189887189888189889189890189891189892189893189894189895189896189897189898189899189900189901189902189903189904189905189906189907189908189909189910189911189912189913189914189915189916189917189918189919189920189921189922189923189924189925189926189927189928189929189930189931189932189933189934189935189936189937189938189939189940189941189942189943189944189945189946189947189948189949189950189951189952189953189954189955189956189957189958189959189960189961189962189963189964189965189966189967189968189969189970189971189972189973189974189975189976189977189978189979189980189981189982189983189984189985189986189987189988189989189990189991189992189993189994189995189996189997189998189999190000190001190002190003190004190005190006190007190008190009190010190011190012190013190014190015190016190017190018190019190020190021190022190023190024190025190026190027190028190029190030190031190032190033190034190035190036190037190038190039190040190041190042190043190044190045190046190047190048190049190050190051190052190053190054190055190056190057190058190059190060190061190062190063190064190065190066190067190068190069190070190071190072190073190074190075190076190077190078190079190080190081190082190083190084190085190086190087190088190089190090190091190092190093190094190095190096190097190098190099190100190101190102190103190104190105190106190107190108190109190110190111190112190113190114190115190116190117190118190119190120190121190122190123190124190125190126190127190128190129190130190131190132190133190134190135190136190137190138190139190140190141190142190143190144190145190146190147190148190149190150190151190152190153190154190155190156190157190158190159190160190161190162190163190164190165190166190167190168190169190170190171190172190173190174190175190176190177190178190179190180190181190182190183190184190185190186190187190188190189190190190191190192190193190194190195190196190197190198190199190200190201190202190203190204190205190206190207190208190209190210190211190212190213190214190215190216190217190218190219190220190221190222190223190224190225190226190227190228190229190230190231190232190233190234190235190236190237190238190239190240190241190242190243190244190245190246190247190248190249190250190251190252190253190254190255190256190257190258190259190260190261190262190263190264190265190266190267190268190269190270190271190272190273190274190275190276190277190278190279190280190281190282190283190284190285190286190287190288190289190290190291190292190293190294190295190296190297190298190299190300190301190302190303190304190305190306190307190308190309190310190311190312190313190314190315190316190317190318190319190320190321190322190323190324190325190326190327190328190329190330190331190332190333190334190335190336190337190338190339190340190341190342190343190344190345190346190347190348190349190350190351190352190353190354190355190356190357190358190359190360190361190362190363190364190365190366190367190368190369190370190371190372190373190374190375190376190377190378190379190380190381190382190383190384190385190386190387190388190389190390190391190392190393190394190395190396190397190398190399190400190401190402190403190404190405190406190407190408190409190410190411190412190413190414190415190416190417190418190419190420190421190422190423190424190425190426190427190428190429190430190431190432190433190434190435190436190437190438190439190440190441190442190443190444190445190446190447190448190449190450190451190452190453190454190455190456190457190458190459190460190461190462190463190464190465190466190467190468190469190470190471190472190473190474190475190476190477190478190479190480190481190482190483190484190485190486190487190488190489190490190491190492190493190494190495190496190497190498190499190500190501190502190503190504190505190506190507190508190509190510190511190512190513190514190515190516190517190518190519190520190521190522190523190524190525190526190527190528190529190530190531190532190533190534190535190536190537190538190539190540190541190542190543190544190545190546190547190548190549190550190551190552190553190554190555190556190557190558190559190560190561190562190563190564190565190566190567190568190569190570190571190572190573190574190575190576190577190578190579190580190581190582190583190584190585190586190587190588190589190590190591190592190593190594190595190596190597190598190599190600190601190602190603190604190605190606190607190608190609190610190611190612190613190614190615190616190617190618190619190620190621190622190623190624190625190626190627190628190629190630190631190632190633190634190635190636190637190638190639190640190641190642190643190644190645190646190647190648190649190650190651190652190653190654190655190656190657190658190659190660190661190662190663190664190665190666190667190668190669190670190671190672190673190674190675190676190677190678190679190680190681190682190683190684190685190686190687190688190689190690190691190692190693190694190695190696190697190698190699190700190701190702190703190704190705190706190707190708190709190710190711190712190713190714190715190716190717190718190719190720190721190722190723190724190725190726190727190728190729190730190731190732190733190734190735190736190737190738190739190740190741190742190743190744190745190746190747190748190749190750190751190752190753190754190755190756190757190758190759190760190761190762190763190764190765190766190767190768190769190770190771190772190773190774190775190776190777190778190779190780190781190782190783190784190785190786190787190788190789190790190791190792190793190794190795190796190797190798190799190800190801190802190803190804190805190806190807190808190809190810190811190812190813190814190815190816190817190818190819190820190821190822190823190824190825190826190827190828190829190830190831190832190833190834190835190836190837190838190839190840190841190842190843190844190845190846190847190848190849190850190851190852190853190854190855190856190857190858190859190860190861190862190863190864190865190866190867190868190869190870190871190872190873190874190875190876190877190878190879190880190881190882190883190884190885190886190887190888190889190890190891190892190893190894190895190896190897190898190899190900190901190902190903190904190905190906190907190908190909190910190911190912190913190914190915190916190917190918190919190920190921190922190923190924190925190926190927190928190929190930190931190932190933190934190935190936190937190938190939190940190941190942190943190944190945190946190947190948190949190950190951190952190953190954190955190956190957190958190959190960190961190962190963190964190965190966190967190968190969190970190971190972190973190974190975190976190977190978190979190980190981190982190983190984190985190986190987190988190989190990190991190992190993190994190995190996190997190998190999191000191001191002191003191004191005191006191007191008191009191010191011191012191013191014191015191016191017191018191019191020191021191022191023191024191025191026191027191028191029191030191031191032191033191034191035191036191037191038191039191040191041191042191043191044191045191046191047191048191049191050191051191052191053191054
  1. // Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
  2. package generated
  3. import (
  4. "bytes"
  5. "context"
  6. "errors"
  7. "fmt"
  8. "strconv"
  9. "sync"
  10. "sync/atomic"
  11. "github.com/99designs/gqlgen/graphql"
  12. "github.com/99designs/gqlgen/graphql/introspection"
  13. "github.com/99designs/gqlgen/plugin/federation/fedruntime"
  14. gqlparser "github.com/vektah/gqlparser/v2"
  15. "github.com/vektah/gqlparser/v2/ast"
  16. )
  17. // region ************************** generated!.gotpl **************************
  18. // NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
  19. func NewExecutableSchema(cfg Config) graphql.ExecutableSchema {
  20. return &executableSchema{
  21. resolvers: cfg.Resolvers,
  22. directives: cfg.Directives,
  23. complexity: cfg.Complexity,
  24. }
  25. }
  26. type Config struct {
  27. Resolvers ResolverRoot
  28. Directives DirectiveRoot
  29. Complexity ComplexityRoot
  30. }
  31. type ResolverRoot interface {
  32. Entity() EntityResolver
  33. Mutation() MutationResolver
  34. Query() QueryResolver
  35. }
  36. type DirectiveRoot struct {
  37. InContext func(ctx context.Context, obj interface{}, next graphql.Resolver, language *LanguageCode, country *CountryCode) (res interface{}, err error)
  38. }
  39. type ComplexityRoot struct {
  40. AccessScope struct {
  41. Description func(childComplexity int) int
  42. Handle func(childComplexity int) int
  43. }
  44. App struct {
  45. APIKey func(childComplexity int) int
  46. AppStoreAppURL func(childComplexity int) int
  47. AppStoreDeveloperURL func(childComplexity int) int
  48. AvailableAccessScopes func(childComplexity int) int
  49. Banner func(childComplexity int) int
  50. Description func(childComplexity int) int
  51. DeveloperName func(childComplexity int) int
  52. DeveloperType func(childComplexity int) int
  53. Embedded func(childComplexity int) int
  54. FailedRequirements func(childComplexity int) int
  55. Features func(childComplexity int) int
  56. Feedback func(childComplexity int) int
  57. Handle func(childComplexity int) int
  58. ID func(childComplexity int) int
  59. Icon func(childComplexity int) int
  60. InstallURL func(childComplexity int) int
  61. Installation func(childComplexity int) int
  62. IsPostPurchaseAppInUse func(childComplexity int) int
  63. PreviouslyInstalled func(childComplexity int) int
  64. PricingDetails func(childComplexity int) int
  65. PricingDetailsSummary func(childComplexity int) int
  66. PrivacyPolicyURL func(childComplexity int) int
  67. PublicCategory func(childComplexity int) int
  68. Published func(childComplexity int) int
  69. RequestedAccessScopes func(childComplexity int) int
  70. Screenshots func(childComplexity int) int
  71. ShopifyDeveloped func(childComplexity int) int
  72. Title func(childComplexity int) int
  73. UninstallMessage func(childComplexity int) int
  74. WebhookAPIVersion func(childComplexity int) int
  75. }
  76. AppConnection struct {
  77. Edges func(childComplexity int) int
  78. Nodes func(childComplexity int) int
  79. PageInfo func(childComplexity int) int
  80. }
  81. AppCredit struct {
  82. Amount func(childComplexity int) int
  83. CreatedAt func(childComplexity int) int
  84. Description func(childComplexity int) int
  85. ID func(childComplexity int) int
  86. Test func(childComplexity int) int
  87. }
  88. AppCreditConnection struct {
  89. Edges func(childComplexity int) int
  90. Nodes func(childComplexity int) int
  91. PageInfo func(childComplexity int) int
  92. }
  93. AppCreditEdge struct {
  94. Cursor func(childComplexity int) int
  95. Node func(childComplexity int) int
  96. }
  97. AppEdge struct {
  98. Cursor func(childComplexity int) int
  99. Node func(childComplexity int) int
  100. }
  101. AppFeedback struct {
  102. App func(childComplexity int) int
  103. Link func(childComplexity int) int
  104. Messages func(childComplexity int) int
  105. }
  106. AppInstallation struct {
  107. AccessScopes func(childComplexity int) int
  108. ActiveSubscriptions func(childComplexity int) int
  109. AllSubscriptions func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *AppSubscriptionSortKeys) int
  110. App func(childComplexity int) int
  111. Credits func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *AppTransactionSortKeys) int
  112. ID func(childComplexity int) int
  113. LaunchURL func(childComplexity int) int
  114. Metafield func(childComplexity int, namespace string, key string) int
  115. Metafields func(childComplexity int, namespace *string, first *int, after *string, last *int, before *string, reverse *bool) int
  116. OneTimePurchases func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *AppTransactionSortKeys) int
  117. PrivateMetafield func(childComplexity int, namespace string, key string) int
  118. PrivateMetafields func(childComplexity int, namespace *string, first *int, after *string, last *int, before *string, reverse *bool) int
  119. Publication func(childComplexity int) int
  120. RevenueAttributionRecords func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *AppRevenueAttributionRecordSortKeys) int
  121. UninstallURL func(childComplexity int) int
  122. }
  123. AppPlanV2 struct {
  124. PricingDetails func(childComplexity int) int
  125. }
  126. AppPurchaseOneTime struct {
  127. CreatedAt func(childComplexity int) int
  128. ID func(childComplexity int) int
  129. Name func(childComplexity int) int
  130. Price func(childComplexity int) int
  131. Status func(childComplexity int) int
  132. Test func(childComplexity int) int
  133. }
  134. AppPurchaseOneTimeConnection struct {
  135. Edges func(childComplexity int) int
  136. Nodes func(childComplexity int) int
  137. PageInfo func(childComplexity int) int
  138. }
  139. AppPurchaseOneTimeEdge struct {
  140. Cursor func(childComplexity int) int
  141. Node func(childComplexity int) int
  142. }
  143. AppRecurringPricing struct {
  144. Discount func(childComplexity int) int
  145. Interval func(childComplexity int) int
  146. Price func(childComplexity int) int
  147. }
  148. AppRevenueAttributionRecord struct {
  149. Amount func(childComplexity int) int
  150. CapturedAt func(childComplexity int) int
  151. CreatedAt func(childComplexity int) int
  152. ID func(childComplexity int) int
  153. IdempotencyKey func(childComplexity int) int
  154. Test func(childComplexity int) int
  155. Type func(childComplexity int) int
  156. }
  157. AppRevenueAttributionRecordConnection struct {
  158. Edges func(childComplexity int) int
  159. Nodes func(childComplexity int) int
  160. PageInfo func(childComplexity int) int
  161. }
  162. AppRevenueAttributionRecordEdge struct {
  163. Cursor func(childComplexity int) int
  164. Node func(childComplexity int) int
  165. }
  166. AppSubscription struct {
  167. CreatedAt func(childComplexity int) int
  168. CurrentPeriodEnd func(childComplexity int) int
  169. ID func(childComplexity int) int
  170. LineItems func(childComplexity int) int
  171. Name func(childComplexity int) int
  172. ReturnURL func(childComplexity int) int
  173. Status func(childComplexity int) int
  174. Test func(childComplexity int) int
  175. TrialDays func(childComplexity int) int
  176. }
  177. AppSubscriptionConnection struct {
  178. Edges func(childComplexity int) int
  179. Nodes func(childComplexity int) int
  180. PageInfo func(childComplexity int) int
  181. }
  182. AppSubscriptionDiscount struct {
  183. DurationLimitInIntervals func(childComplexity int) int
  184. PriceAfterDiscount func(childComplexity int) int
  185. RemainingDurationInIntervals func(childComplexity int) int
  186. Value func(childComplexity int) int
  187. }
  188. AppSubscriptionDiscountAmount struct {
  189. Amount func(childComplexity int) int
  190. }
  191. AppSubscriptionDiscountPercentage struct {
  192. Percentage func(childComplexity int) int
  193. }
  194. AppSubscriptionEdge struct {
  195. Cursor func(childComplexity int) int
  196. Node func(childComplexity int) int
  197. }
  198. AppSubscriptionLineItem struct {
  199. ID func(childComplexity int) int
  200. Plan func(childComplexity int) int
  201. UsageRecords func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *AppUsageRecordSortKeys) int
  202. }
  203. AppUsagePricing struct {
  204. BalanceUsed func(childComplexity int) int
  205. CappedAmount func(childComplexity int) int
  206. Interval func(childComplexity int) int
  207. Terms func(childComplexity int) int
  208. }
  209. AppUsageRecord struct {
  210. CreatedAt func(childComplexity int) int
  211. Description func(childComplexity int) int
  212. ID func(childComplexity int) int
  213. Price func(childComplexity int) int
  214. SubscriptionLineItem func(childComplexity int) int
  215. }
  216. AppUsageRecordConnection struct {
  217. Edges func(childComplexity int) int
  218. Nodes func(childComplexity int) int
  219. PageInfo func(childComplexity int) int
  220. }
  221. AppUsageRecordEdge struct {
  222. Cursor func(childComplexity int) int
  223. Node func(childComplexity int) int
  224. }
  225. Attribute struct {
  226. Key func(childComplexity int) int
  227. Value func(childComplexity int) int
  228. }
  229. AutomaticDiscountApplication struct {
  230. AllocationMethod func(childComplexity int) int
  231. Index func(childComplexity int) int
  232. TargetSelection func(childComplexity int) int
  233. TargetType func(childComplexity int) int
  234. Title func(childComplexity int) int
  235. Value func(childComplexity int) int
  236. }
  237. AvailableChannelDefinitionsByChannel struct {
  238. ChannelDefinitions func(childComplexity int) int
  239. ChannelName func(childComplexity int) int
  240. }
  241. BasicEvent struct {
  242. AppTitle func(childComplexity int) int
  243. AttributeToApp func(childComplexity int) int
  244. AttributeToUser func(childComplexity int) int
  245. CreatedAt func(childComplexity int) int
  246. CriticalAlert func(childComplexity int) int
  247. ID func(childComplexity int) int
  248. Message func(childComplexity int) int
  249. }
  250. BuyerExperienceConfiguration struct {
  251. CheckoutToDraft func(childComplexity int) int
  252. PayNowOnly func(childComplexity int) int
  253. PaymentTermsTemplate func(childComplexity int) int
  254. }
  255. ChannelDefinition struct {
  256. ChannelName func(childComplexity int) int
  257. Handle func(childComplexity int) int
  258. ID func(childComplexity int) int
  259. SVGIcon func(childComplexity int) int
  260. SubChannelName func(childComplexity int) int
  261. }
  262. ChannelInformation struct {
  263. App func(childComplexity int) int
  264. ChannelDefinition func(childComplexity int) int
  265. ChannelID func(childComplexity int) int
  266. ID func(childComplexity int) int
  267. }
  268. Collection struct {
  269. AvailablePublicationCount func(childComplexity int) int
  270. Description func(childComplexity int, truncateAt *int) int
  271. DescriptionHTML func(childComplexity int) int
  272. Feedback func(childComplexity int) int
  273. Handle func(childComplexity int) int
  274. HasProduct func(childComplexity int, id string) int
  275. ID func(childComplexity int) int
  276. Image func(childComplexity int) int
  277. LegacyResourceID func(childComplexity int) int
  278. Metafield func(childComplexity int, namespace string, key string) int
  279. MetafieldDefinitions func(childComplexity int, namespace *string, pinnedStatus *MetafieldDefinitionPinnedStatus, first *int, after *string, last *int, before *string, reverse *bool, sortKey *MetafieldDefinitionSortKeys, query *string) int
  280. Metafields func(childComplexity int, namespace *string, first *int, after *string, last *int, before *string, reverse *bool) int
  281. PrivateMetafield func(childComplexity int, namespace string, key string) int
  282. PrivateMetafields func(childComplexity int, namespace *string, first *int, after *string, last *int, before *string, reverse *bool) int
  283. Products func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *ProductCollectionSortKeys) int
  284. ProductsCount func(childComplexity int) int
  285. PublicationCount func(childComplexity int, onlyPublished *bool) int
  286. PublishedOnCurrentPublication func(childComplexity int) int
  287. PublishedOnPublication func(childComplexity int, publicationID string) int
  288. ResourcePublications func(childComplexity int, onlyPublished *bool, first *int, after *string, last *int, before *string, reverse *bool) int
  289. ResourcePublicationsV2 func(childComplexity int, onlyPublished *bool, first *int, after *string, last *int, before *string, reverse *bool) int
  290. RuleSet func(childComplexity int) int
  291. Seo func(childComplexity int) int
  292. SortOrder func(childComplexity int) int
  293. TemplateSuffix func(childComplexity int) int
  294. Title func(childComplexity int) int
  295. Translations func(childComplexity int, locale string, marketID *string) int
  296. UnpublishedPublications func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  297. UpdatedAt func(childComplexity int) int
  298. }
  299. CollectionConnection struct {
  300. Edges func(childComplexity int) int
  301. Nodes func(childComplexity int) int
  302. PageInfo func(childComplexity int) int
  303. }
  304. CollectionEdge struct {
  305. Cursor func(childComplexity int) int
  306. Node func(childComplexity int) int
  307. }
  308. CollectionRule struct {
  309. AppliedDisjunctively func(childComplexity int) int
  310. Rules func(childComplexity int) int
  311. }
  312. CollectionRuleSet struct {
  313. AppliedDisjunctively func(childComplexity int) int
  314. Rules func(childComplexity int) int
  315. }
  316. CommentEvent struct {
  317. AppTitle func(childComplexity int) int
  318. Attachments func(childComplexity int) int
  319. AttributeToApp func(childComplexity int) int
  320. AttributeToUser func(childComplexity int) int
  321. Author func(childComplexity int) int
  322. CanDelete func(childComplexity int) int
  323. CanEdit func(childComplexity int) int
  324. CreatedAt func(childComplexity int) int
  325. CriticalAlert func(childComplexity int) int
  326. Edited func(childComplexity int) int
  327. Embed func(childComplexity int) int
  328. ID func(childComplexity int) int
  329. Message func(childComplexity int) int
  330. RawMessage func(childComplexity int) int
  331. Subject func(childComplexity int) int
  332. }
  333. CommentEventAttachment struct {
  334. FileExtension func(childComplexity int) int
  335. ID func(childComplexity int) int
  336. Image func(childComplexity int) int
  337. Name func(childComplexity int) int
  338. Size func(childComplexity int) int
  339. URL func(childComplexity int) int
  340. }
  341. Company struct {
  342. ContactCount func(childComplexity int) int
  343. ContactRoles func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *CompanyContactRoleSortKeys) int
  344. Contacts func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *CompanyContactSortKeys, query *string) int
  345. CreatedAt func(childComplexity int) int
  346. CustomerSince func(childComplexity int) int
  347. DefaultCursor func(childComplexity int) int
  348. DefaultRole func(childComplexity int) int
  349. DraftOrders func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *DraftOrderSortKeys, query *string) int
  350. Events func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *EventSortKeys, query *string) int
  351. ExternalID func(childComplexity int) int
  352. HasTimelineComment func(childComplexity int) int
  353. ID func(childComplexity int) int
  354. LifetimeDuration func(childComplexity int) int
  355. LocationCount func(childComplexity int) int
  356. Locations func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *CompanyLocationSortKeys, query *string) int
  357. MainContact func(childComplexity int) int
  358. Name func(childComplexity int) int
  359. Note func(childComplexity int) int
  360. OrderCount func(childComplexity int) int
  361. Orders func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *OrderSortKeys) int
  362. TotalSpent func(childComplexity int) int
  363. UpdatedAt func(childComplexity int) int
  364. }
  365. CompanyAddress struct {
  366. Address1 func(childComplexity int) int
  367. Address2 func(childComplexity int) int
  368. City func(childComplexity int) int
  369. CompanyName func(childComplexity int) int
  370. Country func(childComplexity int) int
  371. CountryCode func(childComplexity int) int
  372. CreatedAt func(childComplexity int) int
  373. FormattedArea func(childComplexity int) int
  374. ID func(childComplexity int) int
  375. Phone func(childComplexity int) int
  376. Province func(childComplexity int) int
  377. Recipient func(childComplexity int) int
  378. UpdatedAt func(childComplexity int) int
  379. Zip func(childComplexity int) int
  380. ZoneCode func(childComplexity int) int
  381. }
  382. CompanyContact struct {
  383. Company func(childComplexity int) int
  384. CreatedAt func(childComplexity int) int
  385. Customer func(childComplexity int) int
  386. DraftOrders func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *DraftOrderSortKeys, query *string) int
  387. ID func(childComplexity int) int
  388. IsMainContact func(childComplexity int) int
  389. LifetimeDuration func(childComplexity int) int
  390. Locale func(childComplexity int) int
  391. Orders func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *OrderSortKeys) int
  392. RoleAssignments func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *CompanyContactRoleAssignmentSortKeys, query *string) int
  393. Title func(childComplexity int) int
  394. UpdatedAt func(childComplexity int) int
  395. }
  396. CompanyContactConnection struct {
  397. Edges func(childComplexity int) int
  398. Nodes func(childComplexity int) int
  399. PageInfo func(childComplexity int) int
  400. }
  401. CompanyContactEdge struct {
  402. Cursor func(childComplexity int) int
  403. Node func(childComplexity int) int
  404. }
  405. CompanyContactRole struct {
  406. ID func(childComplexity int) int
  407. Name func(childComplexity int) int
  408. Note func(childComplexity int) int
  409. }
  410. CompanyContactRoleAssignment struct {
  411. Company func(childComplexity int) int
  412. CompanyContact func(childComplexity int) int
  413. CompanyLocation func(childComplexity int) int
  414. CreatedAt func(childComplexity int) int
  415. ID func(childComplexity int) int
  416. Role func(childComplexity int) int
  417. UpdatedAt func(childComplexity int) int
  418. }
  419. CompanyContactRoleAssignmentConnection struct {
  420. Edges func(childComplexity int) int
  421. Nodes func(childComplexity int) int
  422. PageInfo func(childComplexity int) int
  423. }
  424. CompanyContactRoleAssignmentEdge struct {
  425. Cursor func(childComplexity int) int
  426. Node func(childComplexity int) int
  427. }
  428. CompanyContactRoleConnection struct {
  429. Edges func(childComplexity int) int
  430. Nodes func(childComplexity int) int
  431. PageInfo func(childComplexity int) int
  432. }
  433. CompanyContactRoleEdge struct {
  434. Cursor func(childComplexity int) int
  435. Node func(childComplexity int) int
  436. }
  437. CompanyLocation struct {
  438. BillingAddress func(childComplexity int) int
  439. BuyerExperienceConfiguration func(childComplexity int) int
  440. Company func(childComplexity int) int
  441. CreatedAt func(childComplexity int) int
  442. Currency func(childComplexity int) int
  443. DefaultCursor func(childComplexity int) int
  444. DraftOrders func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *DraftOrderSortKeys, query *string) int
  445. Events func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *EventSortKeys, query *string) int
  446. ExternalID func(childComplexity int) int
  447. HasTimelineComment func(childComplexity int) int
  448. ID func(childComplexity int) int
  449. Locale func(childComplexity int) int
  450. Market func(childComplexity int) int
  451. Name func(childComplexity int) int
  452. Note func(childComplexity int) int
  453. OrderCount func(childComplexity int) int
  454. Orders func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *OrderSortKeys) int
  455. Phone func(childComplexity int) int
  456. RoleAssignments func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *CompanyContactRoleAssignmentSortKeys, query *string) int
  457. ShippingAddress func(childComplexity int) int
  458. TaxExemptions func(childComplexity int) int
  459. TaxRegistrationID func(childComplexity int) int
  460. TotalSpent func(childComplexity int) int
  461. UpdatedAt func(childComplexity int) int
  462. }
  463. CompanyLocationConnection struct {
  464. Edges func(childComplexity int) int
  465. Nodes func(childComplexity int) int
  466. PageInfo func(childComplexity int) int
  467. }
  468. CompanyLocationEdge struct {
  469. Cursor func(childComplexity int) int
  470. Node func(childComplexity int) int
  471. }
  472. CountriesInShippingZones struct {
  473. CountryCodes func(childComplexity int) int
  474. IncludeRestOfWorld func(childComplexity int) int
  475. }
  476. CountryHarmonizedSystemCode struct {
  477. CountryCode func(childComplexity int) int
  478. HarmonizedSystemCode func(childComplexity int) int
  479. }
  480. CountryHarmonizedSystemCodeConnection struct {
  481. Edges func(childComplexity int) int
  482. Nodes func(childComplexity int) int
  483. PageInfo func(childComplexity int) int
  484. }
  485. CountryHarmonizedSystemCodeEdge struct {
  486. Cursor func(childComplexity int) int
  487. Node func(childComplexity int) int
  488. }
  489. CurrencyFormats struct {
  490. MoneyFormat func(childComplexity int) int
  491. MoneyInEmailsFormat func(childComplexity int) int
  492. MoneyWithCurrencyFormat func(childComplexity int) int
  493. MoneyWithCurrencyInEmailsFormat func(childComplexity int) int
  494. }
  495. CurrencySetting struct {
  496. CurrencyCode func(childComplexity int) int
  497. CurrencyName func(childComplexity int) int
  498. Enabled func(childComplexity int) int
  499. RateUpdatedAt func(childComplexity int) int
  500. }
  501. CurrencySettingConnection struct {
  502. Edges func(childComplexity int) int
  503. Nodes func(childComplexity int) int
  504. PageInfo func(childComplexity int) int
  505. }
  506. CurrencySettingEdge struct {
  507. Cursor func(childComplexity int) int
  508. Node func(childComplexity int) int
  509. }
  510. Customer struct {
  511. Addresses func(childComplexity int, first *int) int
  512. AmountSpent func(childComplexity int) int
  513. AverageOrderAmountV2 func(childComplexity int) int
  514. CanDelete func(childComplexity int) int
  515. CompanyContactProfiles func(childComplexity int) int
  516. CreatedAt func(childComplexity int) int
  517. DefaultAddress func(childComplexity int) int
  518. DisplayName func(childComplexity int) int
  519. Email func(childComplexity int) int
  520. EmailMarketingConsent func(childComplexity int) int
  521. Events func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *EventSortKeys, query *string) int
  522. FirstName func(childComplexity int) int
  523. HasTimelineComment func(childComplexity int) int
  524. ID func(childComplexity int) int
  525. Image func(childComplexity int) int
  526. LastName func(childComplexity int) int
  527. LastOrder func(childComplexity int) int
  528. LegacyResourceID func(childComplexity int) int
  529. LifetimeDuration func(childComplexity int) int
  530. Locale func(childComplexity int) int
  531. Market func(childComplexity int) int
  532. Metafield func(childComplexity int, namespace string, key string) int
  533. MetafieldDefinitions func(childComplexity int, namespace *string, pinnedStatus *MetafieldDefinitionPinnedStatus, first *int, after *string, last *int, before *string, reverse *bool, sortKey *MetafieldDefinitionSortKeys, query *string) int
  534. Metafields func(childComplexity int, namespace *string, first *int, after *string, last *int, before *string, reverse *bool) int
  535. MultipassIdentifier func(childComplexity int) int
  536. Note func(childComplexity int) int
  537. NumberOfOrders func(childComplexity int) int
  538. Orders func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *OrderSortKeys, query *string) int
  539. PaymentMethods func(childComplexity int, showRevoked *bool, first *int, after *string, last *int, before *string, reverse *bool) int
  540. Phone func(childComplexity int) int
  541. PrivateMetafield func(childComplexity int, namespace string, key string) int
  542. PrivateMetafields func(childComplexity int, namespace *string, first *int, after *string, last *int, before *string, reverse *bool) int
  543. ProductSubscriberStatus func(childComplexity int) int
  544. SmsMarketingConsent func(childComplexity int) int
  545. State func(childComplexity int) int
  546. Statistics func(childComplexity int) int
  547. SubscriptionContracts func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  548. Tags func(childComplexity int) int
  549. TaxExempt func(childComplexity int) int
  550. TaxExemptions func(childComplexity int) int
  551. UnsubscribeURL func(childComplexity int) int
  552. UpdatedAt func(childComplexity int) int
  553. ValidEmailAddress func(childComplexity int) int
  554. VerifiedEmail func(childComplexity int) int
  555. }
  556. CustomerCreatePayload struct {
  557. Customer func(childComplexity int) int
  558. UserErrors func(childComplexity int) int
  559. }
  560. CustomerCreditCard struct {
  561. BillingAddress func(childComplexity int) int
  562. Brand func(childComplexity int) int
  563. ExpiresSoon func(childComplexity int) int
  564. ExpiryMonth func(childComplexity int) int
  565. ExpiryYear func(childComplexity int) int
  566. FirstDigits func(childComplexity int) int
  567. IsRevocable func(childComplexity int) int
  568. LastDigits func(childComplexity int) int
  569. MaskedNumber func(childComplexity int) int
  570. Name func(childComplexity int) int
  571. Source func(childComplexity int) int
  572. VirtualLastDigits func(childComplexity int) int
  573. }
  574. CustomerCreditCardBillingAddress struct {
  575. Address1 func(childComplexity int) int
  576. City func(childComplexity int) int
  577. Country func(childComplexity int) int
  578. CountryCode func(childComplexity int) int
  579. Province func(childComplexity int) int
  580. ProvinceCode func(childComplexity int) int
  581. Zip func(childComplexity int) int
  582. }
  583. CustomerEmailMarketingConsentState struct {
  584. ConsentUpdatedAt func(childComplexity int) int
  585. MarketingOptInLevel func(childComplexity int) int
  586. MarketingState func(childComplexity int) int
  587. }
  588. CustomerJourneySummary struct {
  589. CustomerOrderIndex func(childComplexity int) int
  590. DaysToConversion func(childComplexity int) int
  591. FirstVisit func(childComplexity int) int
  592. LastVisit func(childComplexity int) int
  593. Moments func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  594. MomentsCount func(childComplexity int) int
  595. Ready func(childComplexity int) int
  596. }
  597. CustomerMomentConnection struct {
  598. Edges func(childComplexity int) int
  599. Nodes func(childComplexity int) int
  600. PageInfo func(childComplexity int) int
  601. }
  602. CustomerMomentEdge struct {
  603. Cursor func(childComplexity int) int
  604. Node func(childComplexity int) int
  605. }
  606. CustomerPaymentInstrumentBillingAddress struct {
  607. Address1 func(childComplexity int) int
  608. City func(childComplexity int) int
  609. Country func(childComplexity int) int
  610. CountryCode func(childComplexity int) int
  611. Name func(childComplexity int) int
  612. Province func(childComplexity int) int
  613. ProvinceCode func(childComplexity int) int
  614. Zip func(childComplexity int) int
  615. }
  616. CustomerPaymentMethod struct {
  617. Customer func(childComplexity int) int
  618. ID func(childComplexity int) int
  619. Instrument func(childComplexity int) int
  620. RevokedAt func(childComplexity int) int
  621. RevokedReason func(childComplexity int) int
  622. SubscriptionContracts func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  623. }
  624. CustomerPaymentMethodConnection struct {
  625. Edges func(childComplexity int) int
  626. Nodes func(childComplexity int) int
  627. PageInfo func(childComplexity int) int
  628. }
  629. CustomerPaymentMethodEdge struct {
  630. Cursor func(childComplexity int) int
  631. Node func(childComplexity int) int
  632. }
  633. CustomerPaypalBillingAgreement struct {
  634. BillingAddress func(childComplexity int) int
  635. Inactive func(childComplexity int) int
  636. IsRevocable func(childComplexity int) int
  637. PaypalAccountEmail func(childComplexity int) int
  638. }
  639. CustomerShopPayAgreement struct {
  640. ExpiresSoon func(childComplexity int) int
  641. ExpiryMonth func(childComplexity int) int
  642. ExpiryYear func(childComplexity int) int
  643. Inactive func(childComplexity int) int
  644. IsRevocable func(childComplexity int) int
  645. LastDigits func(childComplexity int) int
  646. MaskedNumber func(childComplexity int) int
  647. Name func(childComplexity int) int
  648. }
  649. CustomerSmsMarketingConsentState struct {
  650. ConsentCollectedFrom func(childComplexity int) int
  651. ConsentUpdatedAt func(childComplexity int) int
  652. MarketingOptInLevel func(childComplexity int) int
  653. MarketingState func(childComplexity int) int
  654. }
  655. CustomerStatistics struct {
  656. PredictedSpendTier func(childComplexity int) int
  657. }
  658. CustomerVisit struct {
  659. ID func(childComplexity int) int
  660. LandingPage func(childComplexity int) int
  661. LandingPageHTML func(childComplexity int) int
  662. MarketingEvent func(childComplexity int) int
  663. OccurredAt func(childComplexity int) int
  664. ReferralCode func(childComplexity int) int
  665. ReferralInfoHTML func(childComplexity int) int
  666. ReferrerURL func(childComplexity int) int
  667. Source func(childComplexity int) int
  668. SourceDescription func(childComplexity int) int
  669. SourceType func(childComplexity int) int
  670. UtmParameters func(childComplexity int) int
  671. }
  672. DeliveryAvailableService struct {
  673. Countries func(childComplexity int) int
  674. Name func(childComplexity int) int
  675. }
  676. DeliveryCarrierService struct {
  677. AvailableServicesForCountries func(childComplexity int, origins []string, countryCodes []CountryCode, restOfWorld bool) int
  678. FormattedName func(childComplexity int) int
  679. ID func(childComplexity int) int
  680. Icon func(childComplexity int) int
  681. Name func(childComplexity int) int
  682. }
  683. DeliveryCondition struct {
  684. ConditionCriteria func(childComplexity int) int
  685. Field func(childComplexity int) int
  686. ID func(childComplexity int) int
  687. Operator func(childComplexity int) int
  688. }
  689. DeliveryCountry struct {
  690. Code func(childComplexity int) int
  691. ID func(childComplexity int) int
  692. Name func(childComplexity int) int
  693. Provinces func(childComplexity int) int
  694. TranslatedName func(childComplexity int) int
  695. }
  696. DeliveryCountryAndZone struct {
  697. Country func(childComplexity int) int
  698. Zone func(childComplexity int) int
  699. }
  700. DeliveryCountryCodeOrRestOfWorld struct {
  701. CountryCode func(childComplexity int) int
  702. RestOfWorld func(childComplexity int) int
  703. }
  704. DeliveryCountryCodesOrRestOfWorld struct {
  705. CountryCodes func(childComplexity int) int
  706. RestOfWorld func(childComplexity int) int
  707. }
  708. DeliveryLocationGroup struct {
  709. ID func(childComplexity int) int
  710. Locations func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *LocationSortKeys, query *string, includeLegacy *bool, includeInactive *bool) int
  711. }
  712. DeliveryLocationGroupZone struct {
  713. MethodDefinitionCounts func(childComplexity int) int
  714. MethodDefinitions func(childComplexity int, eligible *bool, typeArg *DeliveryMethodDefinitionType, first *int, after *string, last *int, before *string, reverse *bool, sortKey *MethodDefinitionSortKeys) int
  715. Zone func(childComplexity int) int
  716. }
  717. DeliveryLocationGroupZoneConnection struct {
  718. Edges func(childComplexity int) int
  719. Nodes func(childComplexity int) int
  720. PageInfo func(childComplexity int) int
  721. }
  722. DeliveryLocationGroupZoneEdge struct {
  723. Cursor func(childComplexity int) int
  724. Node func(childComplexity int) int
  725. }
  726. DeliveryMethod struct {
  727. ID func(childComplexity int) int
  728. MaxDeliveryDateTime func(childComplexity int) int
  729. MethodType func(childComplexity int) int
  730. MinDeliveryDateTime func(childComplexity int) int
  731. }
  732. DeliveryMethodDefinition struct {
  733. Active func(childComplexity int) int
  734. Description func(childComplexity int) int
  735. ID func(childComplexity int) int
  736. MethodConditions func(childComplexity int) int
  737. Name func(childComplexity int) int
  738. RateProvider func(childComplexity int) int
  739. }
  740. DeliveryMethodDefinitionConnection struct {
  741. Edges func(childComplexity int) int
  742. Nodes func(childComplexity int) int
  743. PageInfo func(childComplexity int) int
  744. }
  745. DeliveryMethodDefinitionCounts struct {
  746. ParticipantDefinitionsCount func(childComplexity int) int
  747. RateDefinitionsCount func(childComplexity int) int
  748. }
  749. DeliveryMethodDefinitionEdge struct {
  750. Cursor func(childComplexity int) int
  751. Node func(childComplexity int) int
  752. }
  753. DeliveryParticipant struct {
  754. AdaptToNewServicesFlag func(childComplexity int) int
  755. CarrierService func(childComplexity int) int
  756. FixedFee func(childComplexity int) int
  757. ID func(childComplexity int) int
  758. ParticipantServices func(childComplexity int) int
  759. PercentageOfRateFee func(childComplexity int) int
  760. }
  761. DeliveryParticipantService struct {
  762. Active func(childComplexity int) int
  763. Name func(childComplexity int) int
  764. }
  765. DeliveryProductVariantsCount struct {
  766. Capped func(childComplexity int) int
  767. Count func(childComplexity int) int
  768. }
  769. DeliveryProfile struct {
  770. ActiveMethodDefinitionsCount func(childComplexity int) int
  771. Default func(childComplexity int) int
  772. ID func(childComplexity int) int
  773. LegacyMode func(childComplexity int) int
  774. LocationsWithoutRatesCount func(childComplexity int) int
  775. Name func(childComplexity int) int
  776. OriginLocationCount func(childComplexity int) int
  777. ProductVariantsCountV2 func(childComplexity int) int
  778. ProfileItems func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  779. ProfileLocationGroups func(childComplexity int) int
  780. SellingPlanGroups func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  781. UnassignedLocations func(childComplexity int) int
  782. ZoneCountryCount func(childComplexity int) int
  783. }
  784. DeliveryProfileItem struct {
  785. ID func(childComplexity int) int
  786. Product func(childComplexity int) int
  787. Variants func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  788. }
  789. DeliveryProfileItemConnection struct {
  790. Edges func(childComplexity int) int
  791. Nodes func(childComplexity int) int
  792. PageInfo func(childComplexity int) int
  793. }
  794. DeliveryProfileItemEdge struct {
  795. Cursor func(childComplexity int) int
  796. Node func(childComplexity int) int
  797. }
  798. DeliveryProfileLocationGroup struct {
  799. CountriesInAnyZone func(childComplexity int) int
  800. LocationGroup func(childComplexity int) int
  801. LocationGroupZones func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  802. }
  803. DeliveryProvince struct {
  804. Code func(childComplexity int) int
  805. ID func(childComplexity int) int
  806. Name func(childComplexity int) int
  807. TranslatedName func(childComplexity int) int
  808. }
  809. DeliveryRateDefinition struct {
  810. ID func(childComplexity int) int
  811. Price func(childComplexity int) int
  812. }
  813. DeliveryZone struct {
  814. Countries func(childComplexity int) int
  815. ID func(childComplexity int) int
  816. Name func(childComplexity int) int
  817. }
  818. DiscountAllocation struct {
  819. AllocatedAmountSet func(childComplexity int) int
  820. DiscountApplication func(childComplexity int) int
  821. }
  822. DiscountApplicationConnection struct {
  823. Edges func(childComplexity int) int
  824. Nodes func(childComplexity int) int
  825. PageInfo func(childComplexity int) int
  826. }
  827. DiscountApplicationEdge struct {
  828. Cursor func(childComplexity int) int
  829. Node func(childComplexity int) int
  830. }
  831. DiscountCodeApplication struct {
  832. AllocationMethod func(childComplexity int) int
  833. Code func(childComplexity int) int
  834. Index func(childComplexity int) int
  835. TargetSelection func(childComplexity int) int
  836. TargetType func(childComplexity int) int
  837. Value func(childComplexity int) int
  838. }
  839. Domain struct {
  840. Host func(childComplexity int) int
  841. ID func(childComplexity int) int
  842. Localization func(childComplexity int) int
  843. MarketWebPresence func(childComplexity int) int
  844. SslEnabled func(childComplexity int) int
  845. URL func(childComplexity int) int
  846. }
  847. DomainLocalization struct {
  848. AlternateLocales func(childComplexity int) int
  849. Country func(childComplexity int) int
  850. DefaultLocale func(childComplexity int) int
  851. }
  852. DraftOrder struct {
  853. AppliedDiscount func(childComplexity int) int
  854. BillingAddress func(childComplexity int) int
  855. BillingAddressMatchesShippingAddress func(childComplexity int) int
  856. CompletedAt func(childComplexity int) int
  857. CreatedAt func(childComplexity int) int
  858. CurrencyCode func(childComplexity int) int
  859. CustomAttributes func(childComplexity int) int
  860. Customer func(childComplexity int) int
  861. DefaultCursor func(childComplexity int) int
  862. Email func(childComplexity int) int
  863. Events func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *EventSortKeys, query *string) int
  864. HasTimelineComment func(childComplexity int) int
  865. ID func(childComplexity int) int
  866. InvoiceEmailTemplateSubject func(childComplexity int) int
  867. InvoiceSentAt func(childComplexity int) int
  868. InvoiceURL func(childComplexity int) int
  869. LegacyResourceID func(childComplexity int) int
  870. LineItems func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  871. LineItemsSubtotalPrice func(childComplexity int) int
  872. LocalizationExtensions func(childComplexity int, countryCodes []CountryCode, purposes []LocalizationExtensionPurpose, first *int, after *string, last *int, before *string, reverse *bool) int
  873. MarketName func(childComplexity int) int
  874. MarketRegionCountryCode func(childComplexity int) int
  875. Metafield func(childComplexity int, namespace string, key string) int
  876. Metafields func(childComplexity int, namespace *string, first *int, after *string, last *int, before *string, reverse *bool) int
  877. Name func(childComplexity int) int
  878. Note2 func(childComplexity int) int
  879. Order func(childComplexity int) int
  880. PaymentTerms func(childComplexity int) int
  881. Phone func(childComplexity int) int
  882. PresentmentCurrencyCode func(childComplexity int) int
  883. PrivateMetafield func(childComplexity int, namespace string, key string) int
  884. PrivateMetafields func(childComplexity int, namespace *string, first *int, after *string, last *int, before *string, reverse *bool) int
  885. PurchasingEntity func(childComplexity int) int
  886. Ready func(childComplexity int) int
  887. ReserveInventoryUntil func(childComplexity int) int
  888. ShippingAddress func(childComplexity int) int
  889. ShippingLine func(childComplexity int) int
  890. Status func(childComplexity int) int
  891. SubtotalPrice func(childComplexity int) int
  892. SubtotalPriceSet func(childComplexity int) int
  893. Tags func(childComplexity int) int
  894. TaxExempt func(childComplexity int) int
  895. TaxLines func(childComplexity int) int
  896. TaxesIncluded func(childComplexity int) int
  897. TotalDiscountsSet func(childComplexity int) int
  898. TotalLineItemsPriceSet func(childComplexity int) int
  899. TotalPrice func(childComplexity int) int
  900. TotalPriceSet func(childComplexity int) int
  901. TotalShippingPrice func(childComplexity int) int
  902. TotalShippingPriceSet func(childComplexity int) int
  903. TotalTax func(childComplexity int) int
  904. TotalTaxSet func(childComplexity int) int
  905. TotalWeight func(childComplexity int) int
  906. UpdatedAt func(childComplexity int) int
  907. VisibleToCustomer func(childComplexity int) int
  908. }
  909. DraftOrderAppliedDiscount struct {
  910. AmountSet func(childComplexity int) int
  911. AmountV2 func(childComplexity int) int
  912. Description func(childComplexity int) int
  913. Title func(childComplexity int) int
  914. Value func(childComplexity int) int
  915. ValueType func(childComplexity int) int
  916. }
  917. DraftOrderConnection struct {
  918. Edges func(childComplexity int) int
  919. Nodes func(childComplexity int) int
  920. PageInfo func(childComplexity int) int
  921. }
  922. DraftOrderEdge struct {
  923. Cursor func(childComplexity int) int
  924. Node func(childComplexity int) int
  925. }
  926. DraftOrderLineItem struct {
  927. AppliedDiscount func(childComplexity int) int
  928. Custom func(childComplexity int) int
  929. CustomAttributes func(childComplexity int) int
  930. CustomAttributesV2 func(childComplexity int) int
  931. DiscountedTotal func(childComplexity int) int
  932. DiscountedTotalSet func(childComplexity int) int
  933. DiscountedUnitPrice func(childComplexity int) int
  934. DiscountedUnitPriceSet func(childComplexity int) int
  935. FulfillmentService func(childComplexity int) int
  936. ID func(childComplexity int) int
  937. Image func(childComplexity int) int
  938. IsGiftCard func(childComplexity int) int
  939. Name func(childComplexity int) int
  940. OriginalTotal func(childComplexity int) int
  941. OriginalTotalSet func(childComplexity int) int
  942. OriginalUnitPrice func(childComplexity int) int
  943. OriginalUnitPriceSet func(childComplexity int) int
  944. Product func(childComplexity int) int
  945. Quantity func(childComplexity int) int
  946. RequiresShipping func(childComplexity int) int
  947. Sku func(childComplexity int) int
  948. TaxLines func(childComplexity int) int
  949. Taxable func(childComplexity int) int
  950. Title func(childComplexity int) int
  951. TotalDiscount func(childComplexity int) int
  952. TotalDiscountSet func(childComplexity int) int
  953. Variant func(childComplexity int) int
  954. VariantTitle func(childComplexity int) int
  955. Vendor func(childComplexity int) int
  956. Weight func(childComplexity int) int
  957. }
  958. DraftOrderLineItemConnection struct {
  959. Edges func(childComplexity int) int
  960. Nodes func(childComplexity int) int
  961. PageInfo func(childComplexity int) int
  962. }
  963. DraftOrderLineItemEdge struct {
  964. Cursor func(childComplexity int) int
  965. Node func(childComplexity int) int
  966. }
  967. Duty struct {
  968. CountryCodeOfOrigin func(childComplexity int) int
  969. HarmonizedSystemCode func(childComplexity int) int
  970. ID func(childComplexity int) int
  971. Price func(childComplexity int) int
  972. TaxLines func(childComplexity int) int
  973. }
  974. EditableProperty struct {
  975. Locked func(childComplexity int) int
  976. Reason func(childComplexity int) int
  977. }
  978. Entity struct {
  979. FindProductByID func(childComplexity int, id string) int
  980. }
  981. EventConnection struct {
  982. Edges func(childComplexity int) int
  983. Nodes func(childComplexity int) int
  984. PageInfo func(childComplexity int) int
  985. }
  986. EventEdge struct {
  987. Cursor func(childComplexity int) int
  988. Node func(childComplexity int) int
  989. }
  990. FailedRequirement struct {
  991. Action func(childComplexity int) int
  992. Message func(childComplexity int) int
  993. }
  994. FileError struct {
  995. Code func(childComplexity int) int
  996. Details func(childComplexity int) int
  997. Message func(childComplexity int) int
  998. }
  999. FilterOption struct {
  1000. Label func(childComplexity int) int
  1001. Value func(childComplexity int) int
  1002. }
  1003. Fulfillment struct {
  1004. CreatedAt func(childComplexity int) int
  1005. DeliveredAt func(childComplexity int) int
  1006. DisplayStatus func(childComplexity int) int
  1007. EstimatedDeliveryAt func(childComplexity int) int
  1008. Events func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *FulfillmentEventSortKeys) int
  1009. FulfillmentLineItems func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  1010. FulfillmentOrders func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  1011. ID func(childComplexity int) int
  1012. InTransitAt func(childComplexity int) int
  1013. LegacyResourceID func(childComplexity int) int
  1014. Location func(childComplexity int) int
  1015. Name func(childComplexity int) int
  1016. Order func(childComplexity int) int
  1017. OriginAddress func(childComplexity int) int
  1018. RequiresShipping func(childComplexity int) int
  1019. Service func(childComplexity int) int
  1020. Status func(childComplexity int) int
  1021. TotalQuantity func(childComplexity int) int
  1022. TrackingInfo func(childComplexity int, first *int) int
  1023. UpdatedAt func(childComplexity int) int
  1024. }
  1025. FulfillmentConnection struct {
  1026. Edges func(childComplexity int) int
  1027. Nodes func(childComplexity int) int
  1028. PageInfo func(childComplexity int) int
  1029. }
  1030. FulfillmentEdge struct {
  1031. Cursor func(childComplexity int) int
  1032. Node func(childComplexity int) int
  1033. }
  1034. FulfillmentEvent struct {
  1035. HappenedAt func(childComplexity int) int
  1036. ID func(childComplexity int) int
  1037. Status func(childComplexity int) int
  1038. }
  1039. FulfillmentEventConnection struct {
  1040. Edges func(childComplexity int) int
  1041. Nodes func(childComplexity int) int
  1042. PageInfo func(childComplexity int) int
  1043. }
  1044. FulfillmentEventEdge struct {
  1045. Cursor func(childComplexity int) int
  1046. Node func(childComplexity int) int
  1047. }
  1048. FulfillmentHold struct {
  1049. Reason func(childComplexity int) int
  1050. ReasonNotes func(childComplexity int) int
  1051. }
  1052. FulfillmentLineItem struct {
  1053. DiscountedTotalSet func(childComplexity int) int
  1054. ID func(childComplexity int) int
  1055. LineItem func(childComplexity int) int
  1056. OriginalTotalSet func(childComplexity int) int
  1057. Quantity func(childComplexity int) int
  1058. }
  1059. FulfillmentLineItemConnection struct {
  1060. Edges func(childComplexity int) int
  1061. Nodes func(childComplexity int) int
  1062. PageInfo func(childComplexity int) int
  1063. }
  1064. FulfillmentLineItemEdge struct {
  1065. Cursor func(childComplexity int) int
  1066. Node func(childComplexity int) int
  1067. }
  1068. FulfillmentOrder struct {
  1069. AssignedLocation func(childComplexity int) int
  1070. DeliveryMethod func(childComplexity int) int
  1071. Destination func(childComplexity int) int
  1072. FulfillAt func(childComplexity int) int
  1073. FulfillBy func(childComplexity int) int
  1074. FulfillmentHolds func(childComplexity int) int
  1075. Fulfillments func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  1076. ID func(childComplexity int) int
  1077. InternationalDuties func(childComplexity int) int
  1078. LineItems func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  1079. LocationsForMove func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  1080. MerchantRequests func(childComplexity int, kind *FulfillmentOrderMerchantRequestKind, first *int, after *string, last *int, before *string, reverse *bool) int
  1081. Order func(childComplexity int) int
  1082. RequestStatus func(childComplexity int) int
  1083. Status func(childComplexity int) int
  1084. SupportedActions func(childComplexity int) int
  1085. }
  1086. FulfillmentOrderAssignedLocation struct {
  1087. Address1 func(childComplexity int) int
  1088. Address2 func(childComplexity int) int
  1089. City func(childComplexity int) int
  1090. CountryCode func(childComplexity int) int
  1091. Location func(childComplexity int) int
  1092. Name func(childComplexity int) int
  1093. Phone func(childComplexity int) int
  1094. Province func(childComplexity int) int
  1095. Zip func(childComplexity int) int
  1096. }
  1097. FulfillmentOrderConnection struct {
  1098. Edges func(childComplexity int) int
  1099. Nodes func(childComplexity int) int
  1100. PageInfo func(childComplexity int) int
  1101. }
  1102. FulfillmentOrderDestination struct {
  1103. Address1 func(childComplexity int) int
  1104. Address2 func(childComplexity int) int
  1105. City func(childComplexity int) int
  1106. Company func(childComplexity int) int
  1107. CountryCode func(childComplexity int) int
  1108. Email func(childComplexity int) int
  1109. FirstName func(childComplexity int) int
  1110. ID func(childComplexity int) int
  1111. LastName func(childComplexity int) int
  1112. Phone func(childComplexity int) int
  1113. Province func(childComplexity int) int
  1114. Zip func(childComplexity int) int
  1115. }
  1116. FulfillmentOrderEdge struct {
  1117. Cursor func(childComplexity int) int
  1118. Node func(childComplexity int) int
  1119. }
  1120. FulfillmentOrderInternationalDuties struct {
  1121. Incoterm func(childComplexity int) int
  1122. }
  1123. FulfillmentOrderLineItem struct {
  1124. ID func(childComplexity int) int
  1125. LineItem func(childComplexity int) int
  1126. RemainingQuantity func(childComplexity int) int
  1127. TotalQuantity func(childComplexity int) int
  1128. Warnings func(childComplexity int) int
  1129. }
  1130. FulfillmentOrderLineItemConnection struct {
  1131. Edges func(childComplexity int) int
  1132. Nodes func(childComplexity int) int
  1133. PageInfo func(childComplexity int) int
  1134. }
  1135. FulfillmentOrderLineItemEdge struct {
  1136. Cursor func(childComplexity int) int
  1137. Node func(childComplexity int) int
  1138. }
  1139. FulfillmentOrderLineItemWarning struct {
  1140. Description func(childComplexity int) int
  1141. Title func(childComplexity int) int
  1142. }
  1143. FulfillmentOrderLocationForMove struct {
  1144. Location func(childComplexity int) int
  1145. Message func(childComplexity int) int
  1146. Movable func(childComplexity int) int
  1147. }
  1148. FulfillmentOrderLocationForMoveConnection struct {
  1149. Edges func(childComplexity int) int
  1150. Nodes func(childComplexity int) int
  1151. PageInfo func(childComplexity int) int
  1152. }
  1153. FulfillmentOrderLocationForMoveEdge struct {
  1154. Cursor func(childComplexity int) int
  1155. Node func(childComplexity int) int
  1156. }
  1157. FulfillmentOrderMerchantRequest struct {
  1158. ID func(childComplexity int) int
  1159. Kind func(childComplexity int) int
  1160. Message func(childComplexity int) int
  1161. RequestOptions func(childComplexity int) int
  1162. ResponseData func(childComplexity int) int
  1163. SentAt func(childComplexity int) int
  1164. }
  1165. FulfillmentOrderMerchantRequestConnection struct {
  1166. Edges func(childComplexity int) int
  1167. Nodes func(childComplexity int) int
  1168. PageInfo func(childComplexity int) int
  1169. }
  1170. FulfillmentOrderMerchantRequestEdge struct {
  1171. Cursor func(childComplexity int) int
  1172. Node func(childComplexity int) int
  1173. }
  1174. FulfillmentOrderSupportedAction struct {
  1175. Action func(childComplexity int) int
  1176. ExternalURL func(childComplexity int) int
  1177. }
  1178. FulfillmentOriginAddress struct {
  1179. Address1 func(childComplexity int) int
  1180. Address2 func(childComplexity int) int
  1181. City func(childComplexity int) int
  1182. CountryCode func(childComplexity int) int
  1183. ProvinceCode func(childComplexity int) int
  1184. Zip func(childComplexity int) int
  1185. }
  1186. FulfillmentService struct {
  1187. CallbackURL func(childComplexity int) int
  1188. FulfillmentOrdersOptIn func(childComplexity int) int
  1189. Handle func(childComplexity int) int
  1190. ID func(childComplexity int) int
  1191. InventoryManagement func(childComplexity int) int
  1192. Location func(childComplexity int) int
  1193. PermitsSkuSharing func(childComplexity int) int
  1194. ProductBased func(childComplexity int) int
  1195. ServiceName func(childComplexity int) int
  1196. Type func(childComplexity int) int
  1197. }
  1198. FulfillmentTrackingInfo struct {
  1199. Company func(childComplexity int) int
  1200. Number func(childComplexity int) int
  1201. URL func(childComplexity int) int
  1202. }
  1203. GenericFile struct {
  1204. Alt func(childComplexity int) int
  1205. CreatedAt func(childComplexity int) int
  1206. FileErrors func(childComplexity int) int
  1207. FileStatus func(childComplexity int) int
  1208. ID func(childComplexity int) int
  1209. MimeType func(childComplexity int) int
  1210. OriginalFileSize func(childComplexity int) int
  1211. Preview func(childComplexity int) int
  1212. URL func(childComplexity int) int
  1213. }
  1214. Image struct {
  1215. AltText func(childComplexity int) int
  1216. Height func(childComplexity int) int
  1217. ID func(childComplexity int) int
  1218. Metafield func(childComplexity int, namespace string, key string) int
  1219. Metafields func(childComplexity int, namespace *string, first *int, after *string, last *int, before *string, reverse *bool) int
  1220. PrivateMetafield func(childComplexity int, namespace string, key string) int
  1221. PrivateMetafields func(childComplexity int, namespace *string, first *int, after *string, last *int, before *string, reverse *bool) int
  1222. URL func(childComplexity int, transform *ImageTransformInput) int
  1223. Width func(childComplexity int) int
  1224. }
  1225. ImageConnection struct {
  1226. Edges func(childComplexity int) int
  1227. Nodes func(childComplexity int) int
  1228. PageInfo func(childComplexity int) int
  1229. }
  1230. ImageEdge struct {
  1231. Cursor func(childComplexity int) int
  1232. Node func(childComplexity int) int
  1233. }
  1234. InventoryItem struct {
  1235. CountryCodeOfOrigin func(childComplexity int) int
  1236. CountryHarmonizedSystemCodes func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  1237. CreatedAt func(childComplexity int) int
  1238. DuplicateSkuCount func(childComplexity int) int
  1239. HarmonizedSystemCode func(childComplexity int) int
  1240. ID func(childComplexity int) int
  1241. InventoryHistoryURL func(childComplexity int) int
  1242. InventoryLevel func(childComplexity int, locationID string) int
  1243. InventoryLevels func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, query *string) int
  1244. LegacyResourceID func(childComplexity int) int
  1245. LocationsCount func(childComplexity int) int
  1246. ProvinceCodeOfOrigin func(childComplexity int) int
  1247. RequiresShipping func(childComplexity int) int
  1248. Sku func(childComplexity int) int
  1249. Tracked func(childComplexity int) int
  1250. TrackedEditable func(childComplexity int) int
  1251. UnitCost func(childComplexity int) int
  1252. UpdatedAt func(childComplexity int) int
  1253. Variant func(childComplexity int) int
  1254. }
  1255. InventoryLevel struct {
  1256. Available func(childComplexity int) int
  1257. CanDeactivate func(childComplexity int) int
  1258. CreatedAt func(childComplexity int) int
  1259. DeactivationAlert func(childComplexity int) int
  1260. DeactivationAlertHTML func(childComplexity int) int
  1261. ID func(childComplexity int) int
  1262. Incoming func(childComplexity int) int
  1263. Item func(childComplexity int) int
  1264. Location func(childComplexity int) int
  1265. UpdatedAt func(childComplexity int) int
  1266. }
  1267. InventoryLevelConnection struct {
  1268. Edges func(childComplexity int) int
  1269. Nodes func(childComplexity int) int
  1270. PageInfo func(childComplexity int) int
  1271. }
  1272. InventoryLevelEdge struct {
  1273. Cursor func(childComplexity int) int
  1274. Node func(childComplexity int) int
  1275. }
  1276. Job struct {
  1277. Done func(childComplexity int) int
  1278. ID func(childComplexity int) int
  1279. }
  1280. LimitedPendingOrderCount struct {
  1281. AtMax func(childComplexity int) int
  1282. Count func(childComplexity int) int
  1283. }
  1284. LineItem struct {
  1285. Contract func(childComplexity int) int
  1286. CurrentQuantity func(childComplexity int) int
  1287. CustomAttributes func(childComplexity int) int
  1288. DiscountAllocations func(childComplexity int) int
  1289. DiscountedTotalSet func(childComplexity int) int
  1290. DiscountedUnitPriceSet func(childComplexity int) int
  1291. Duties func(childComplexity int) int
  1292. ID func(childComplexity int) int
  1293. Image func(childComplexity int) int
  1294. MerchantEditable func(childComplexity int) int
  1295. Name func(childComplexity int) int
  1296. NonFulfillableQuantity func(childComplexity int) int
  1297. OriginalTotalSet func(childComplexity int) int
  1298. OriginalUnitPriceSet func(childComplexity int) int
  1299. Product func(childComplexity int) int
  1300. Quantity func(childComplexity int) int
  1301. RefundableQuantity func(childComplexity int) int
  1302. RequiresShipping func(childComplexity int) int
  1303. Restockable func(childComplexity int) int
  1304. SellingPlan func(childComplexity int) int
  1305. Sku func(childComplexity int) int
  1306. StaffMember func(childComplexity int) int
  1307. TaxLines func(childComplexity int, first *int) int
  1308. Taxable func(childComplexity int) int
  1309. Title func(childComplexity int) int
  1310. TotalDiscountSet func(childComplexity int) int
  1311. UnfulfilledDiscountedTotalSet func(childComplexity int) int
  1312. UnfulfilledOriginalTotalSet func(childComplexity int) int
  1313. UnfulfilledQuantity func(childComplexity int) int
  1314. Variant func(childComplexity int) int
  1315. VariantTitle func(childComplexity int) int
  1316. Vendor func(childComplexity int) int
  1317. }
  1318. LineItemConnection struct {
  1319. Edges func(childComplexity int) int
  1320. Nodes func(childComplexity int) int
  1321. PageInfo func(childComplexity int) int
  1322. }
  1323. LineItemEdge struct {
  1324. Cursor func(childComplexity int) int
  1325. Node func(childComplexity int) int
  1326. }
  1327. LineItemSellingPlan struct {
  1328. Name func(childComplexity int) int
  1329. SellingPlanID func(childComplexity int) int
  1330. }
  1331. Link struct {
  1332. Label func(childComplexity int) int
  1333. Translations func(childComplexity int, locale string, marketID *string) int
  1334. URL func(childComplexity int) int
  1335. }
  1336. LocalizationExtension struct {
  1337. CountryCode func(childComplexity int) int
  1338. Key func(childComplexity int) int
  1339. Purpose func(childComplexity int) int
  1340. Title func(childComplexity int) int
  1341. Value func(childComplexity int) int
  1342. }
  1343. LocalizationExtensionConnection struct {
  1344. Edges func(childComplexity int) int
  1345. Nodes func(childComplexity int) int
  1346. PageInfo func(childComplexity int) int
  1347. }
  1348. LocalizationExtensionEdge struct {
  1349. Cursor func(childComplexity int) int
  1350. Node func(childComplexity int) int
  1351. }
  1352. Location struct {
  1353. Activatable func(childComplexity int) int
  1354. Address func(childComplexity int) int
  1355. AddressVerified func(childComplexity int) int
  1356. Deactivatable func(childComplexity int) int
  1357. DeactivatedAt func(childComplexity int) int
  1358. Deletable func(childComplexity int) int
  1359. FulfillmentService func(childComplexity int) int
  1360. FulfillsOnlineOrders func(childComplexity int) int
  1361. HasActiveInventory func(childComplexity int) int
  1362. HasUnfulfilledOrders func(childComplexity int) int
  1363. ID func(childComplexity int) int
  1364. InventoryLevel func(childComplexity int, inventoryItemID string) int
  1365. InventoryLevels func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, query *string) int
  1366. IsActive func(childComplexity int) int
  1367. LegacyResourceID func(childComplexity int) int
  1368. Metafield func(childComplexity int, namespace string, key string) int
  1369. MetafieldDefinitions func(childComplexity int, namespace *string, pinnedStatus *MetafieldDefinitionPinnedStatus, first *int, after *string, last *int, before *string, reverse *bool, sortKey *MetafieldDefinitionSortKeys, query *string) int
  1370. Metafields func(childComplexity int, namespace *string, first *int, after *string, last *int, before *string, reverse *bool) int
  1371. Name func(childComplexity int) int
  1372. PrivateMetafield func(childComplexity int, namespace string, key string) int
  1373. PrivateMetafields func(childComplexity int, namespace *string, first *int, after *string, last *int, before *string, reverse *bool) int
  1374. ShipsInventory func(childComplexity int) int
  1375. SuggestedAddresses func(childComplexity int) int
  1376. }
  1377. LocationAddress struct {
  1378. Address1 func(childComplexity int) int
  1379. Address2 func(childComplexity int) int
  1380. City func(childComplexity int) int
  1381. Country func(childComplexity int) int
  1382. CountryCode func(childComplexity int) int
  1383. Formatted func(childComplexity int) int
  1384. Latitude func(childComplexity int) int
  1385. Longitude func(childComplexity int) int
  1386. Phone func(childComplexity int) int
  1387. Province func(childComplexity int) int
  1388. ProvinceCode func(childComplexity int) int
  1389. Zip func(childComplexity int) int
  1390. }
  1391. LocationConnection struct {
  1392. Edges func(childComplexity int) int
  1393. Nodes func(childComplexity int) int
  1394. PageInfo func(childComplexity int) int
  1395. }
  1396. LocationEdge struct {
  1397. Cursor func(childComplexity int) int
  1398. Node func(childComplexity int) int
  1399. }
  1400. LocationSuggestedAddress struct {
  1401. Address1 func(childComplexity int) int
  1402. Address2 func(childComplexity int) int
  1403. City func(childComplexity int) int
  1404. Country func(childComplexity int) int
  1405. CountryCode func(childComplexity int) int
  1406. Formatted func(childComplexity int) int
  1407. Province func(childComplexity int) int
  1408. ProvinceCode func(childComplexity int) int
  1409. Zip func(childComplexity int) int
  1410. }
  1411. MailingAddress struct {
  1412. Address1 func(childComplexity int) int
  1413. Address2 func(childComplexity int) int
  1414. City func(childComplexity int) int
  1415. Company func(childComplexity int) int
  1416. CoordinatesValidated func(childComplexity int) int
  1417. Country func(childComplexity int) int
  1418. CountryCodeV2 func(childComplexity int) int
  1419. FirstName func(childComplexity int) int
  1420. FormattedArea func(childComplexity int) int
  1421. ID func(childComplexity int) int
  1422. LastName func(childComplexity int) int
  1423. Latitude func(childComplexity int) int
  1424. Longitude func(childComplexity int) int
  1425. Name func(childComplexity int) int
  1426. Phone func(childComplexity int) int
  1427. Province func(childComplexity int) int
  1428. ProvinceCode func(childComplexity int) int
  1429. Zip func(childComplexity int) int
  1430. }
  1431. ManualDiscountApplication struct {
  1432. AllocationMethod func(childComplexity int) int
  1433. Description func(childComplexity int) int
  1434. Index func(childComplexity int) int
  1435. TargetSelection func(childComplexity int) int
  1436. TargetType func(childComplexity int) int
  1437. Title func(childComplexity int) int
  1438. Value func(childComplexity int) int
  1439. }
  1440. Market struct {
  1441. CurrencySettings func(childComplexity int) int
  1442. Enabled func(childComplexity int) int
  1443. ID func(childComplexity int) int
  1444. Name func(childComplexity int) int
  1445. PriceList func(childComplexity int) int
  1446. Primary func(childComplexity int) int
  1447. Regions func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  1448. WebPresence func(childComplexity int) int
  1449. }
  1450. MarketCurrencySettings struct {
  1451. BaseCurrency func(childComplexity int) int
  1452. LocalCurrencies func(childComplexity int) int
  1453. }
  1454. MarketRegionConnection struct {
  1455. Edges func(childComplexity int) int
  1456. Nodes func(childComplexity int) int
  1457. PageInfo func(childComplexity int) int
  1458. }
  1459. MarketRegionEdge struct {
  1460. Cursor func(childComplexity int) int
  1461. Node func(childComplexity int) int
  1462. }
  1463. MarketWebPresence struct {
  1464. AlternateLocales func(childComplexity int) int
  1465. DefaultLocale func(childComplexity int) int
  1466. Domain func(childComplexity int) int
  1467. ID func(childComplexity int) int
  1468. Market func(childComplexity int) int
  1469. RootUrls func(childComplexity int) int
  1470. SubfolderSuffix func(childComplexity int) int
  1471. }
  1472. MarketWebPresenceRootUrl struct {
  1473. Locale func(childComplexity int) int
  1474. URL func(childComplexity int) int
  1475. }
  1476. MarketingEvent struct {
  1477. App func(childComplexity int) int
  1478. Channel func(childComplexity int) int
  1479. Description func(childComplexity int) int
  1480. EndedAt func(childComplexity int) int
  1481. ID func(childComplexity int) int
  1482. LegacyResourceID func(childComplexity int) int
  1483. ManageURL func(childComplexity int) int
  1484. PreviewURL func(childComplexity int) int
  1485. RemoteID func(childComplexity int) int
  1486. ScheduledToEndAt func(childComplexity int) int
  1487. SourceAndMedium func(childComplexity int) int
  1488. StartedAt func(childComplexity int) int
  1489. Type func(childComplexity int) int
  1490. UtmCampaign func(childComplexity int) int
  1491. UtmMedium func(childComplexity int) int
  1492. UtmSource func(childComplexity int) int
  1493. }
  1494. MediaConnection struct {
  1495. Edges func(childComplexity int) int
  1496. Nodes func(childComplexity int) int
  1497. PageInfo func(childComplexity int) int
  1498. }
  1499. MediaEdge struct {
  1500. Cursor func(childComplexity int) int
  1501. Node func(childComplexity int) int
  1502. }
  1503. MediaError struct {
  1504. Code func(childComplexity int) int
  1505. Details func(childComplexity int) int
  1506. Message func(childComplexity int) int
  1507. }
  1508. MediaImage struct {
  1509. Alt func(childComplexity int) int
  1510. CreatedAt func(childComplexity int) int
  1511. FileErrors func(childComplexity int) int
  1512. FileStatus func(childComplexity int) int
  1513. ID func(childComplexity int) int
  1514. Image func(childComplexity int) int
  1515. MediaContentType func(childComplexity int) int
  1516. MediaErrors func(childComplexity int) int
  1517. MediaWarnings func(childComplexity int) int
  1518. MimeType func(childComplexity int) int
  1519. OriginalSource func(childComplexity int) int
  1520. Preview func(childComplexity int) int
  1521. Status func(childComplexity int) int
  1522. }
  1523. MediaImageOriginalSource struct {
  1524. FileSize func(childComplexity int) int
  1525. }
  1526. MediaPreviewImage struct {
  1527. Image func(childComplexity int) int
  1528. Status func(childComplexity int) int
  1529. }
  1530. MediaUserError struct {
  1531. Code func(childComplexity int) int
  1532. Field func(childComplexity int) int
  1533. Message func(childComplexity int) int
  1534. }
  1535. MediaWarning struct {
  1536. Code func(childComplexity int) int
  1537. Message func(childComplexity int) int
  1538. }
  1539. MerchantApprovalSignals struct {
  1540. IdentityVerified func(childComplexity int) int
  1541. VerifiedByShopify func(childComplexity int) int
  1542. }
  1543. Metafield struct {
  1544. CreatedAt func(childComplexity int) int
  1545. Definition func(childComplexity int) int
  1546. Description func(childComplexity int) int
  1547. ID func(childComplexity int) int
  1548. Key func(childComplexity int) int
  1549. LegacyResourceID func(childComplexity int) int
  1550. Namespace func(childComplexity int) int
  1551. Owner func(childComplexity int) int
  1552. OwnerType func(childComplexity int) int
  1553. Reference func(childComplexity int) int
  1554. References func(childComplexity int, first *int, after *string, last *int, before *string) int
  1555. Type func(childComplexity int) int
  1556. UpdatedAt func(childComplexity int) int
  1557. Value func(childComplexity int) int
  1558. }
  1559. MetafieldConnection struct {
  1560. Edges func(childComplexity int) int
  1561. Nodes func(childComplexity int) int
  1562. PageInfo func(childComplexity int) int
  1563. }
  1564. MetafieldDefinition struct {
  1565. Description func(childComplexity int) int
  1566. ID func(childComplexity int) int
  1567. Key func(childComplexity int) int
  1568. Metafields func(childComplexity int, validationStatus *MetafieldValidationStatus, first *int, after *string, last *int, before *string, reverse *bool) int
  1569. MetafieldsCount func(childComplexity int, validationStatus *MetafieldValidationStatus) int
  1570. Name func(childComplexity int) int
  1571. Namespace func(childComplexity int) int
  1572. OwnerType func(childComplexity int) int
  1573. PinnedPosition func(childComplexity int) int
  1574. StandardTemplate func(childComplexity int) int
  1575. Type func(childComplexity int) int
  1576. ValidationStatus func(childComplexity int) int
  1577. Validations func(childComplexity int) int
  1578. VisibleToStorefrontAPI func(childComplexity int) int
  1579. }
  1580. MetafieldDefinitionConnection struct {
  1581. Edges func(childComplexity int) int
  1582. Nodes func(childComplexity int) int
  1583. PageInfo func(childComplexity int) int
  1584. }
  1585. MetafieldDefinitionEdge struct {
  1586. Cursor func(childComplexity int) int
  1587. Node func(childComplexity int) int
  1588. }
  1589. MetafieldDefinitionSupportedValidation struct {
  1590. Name func(childComplexity int) int
  1591. Type func(childComplexity int) int
  1592. }
  1593. MetafieldDefinitionType struct {
  1594. Category func(childComplexity int) int
  1595. Name func(childComplexity int) int
  1596. SupportedValidations func(childComplexity int) int
  1597. SupportsDefinitionMigrations func(childComplexity int) int
  1598. }
  1599. MetafieldDefinitionValidation struct {
  1600. Name func(childComplexity int) int
  1601. Type func(childComplexity int) int
  1602. Value func(childComplexity int) int
  1603. }
  1604. MetafieldEdge struct {
  1605. Cursor func(childComplexity int) int
  1606. Node func(childComplexity int) int
  1607. }
  1608. MetafieldReferenceConnection struct {
  1609. Edges func(childComplexity int) int
  1610. Nodes func(childComplexity int) int
  1611. PageInfo func(childComplexity int) int
  1612. }
  1613. MetafieldReferenceEdge struct {
  1614. Cursor func(childComplexity int) int
  1615. Node func(childComplexity int) int
  1616. }
  1617. MoneyBag struct {
  1618. PresentmentMoney func(childComplexity int) int
  1619. ShopMoney func(childComplexity int) int
  1620. }
  1621. MoneyV2 struct {
  1622. Amount func(childComplexity int) int
  1623. CurrencyCode func(childComplexity int) int
  1624. }
  1625. Mutation struct {
  1626. CustomerCreate func(childComplexity int, input CustomerInput) int
  1627. }
  1628. NavigationItem struct {
  1629. ID func(childComplexity int) int
  1630. Title func(childComplexity int) int
  1631. URL func(childComplexity int) int
  1632. }
  1633. OnlineStorePage struct {
  1634. DefaultCursor func(childComplexity int) int
  1635. ID func(childComplexity int) int
  1636. Translations func(childComplexity int, locale string, marketID *string) int
  1637. }
  1638. Order struct {
  1639. Agreements func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, query *string) int
  1640. Alerts func(childComplexity int) int
  1641. App func(childComplexity int) int
  1642. BillingAddress func(childComplexity int) int
  1643. BillingAddressMatchesShippingAddress func(childComplexity int) int
  1644. CanMarkAsPaid func(childComplexity int) int
  1645. CanNotifyCustomer func(childComplexity int) int
  1646. CancelReason func(childComplexity int) int
  1647. CancelledAt func(childComplexity int) int
  1648. Capturable func(childComplexity int) int
  1649. CartDiscountAmountSet func(childComplexity int) int
  1650. ChannelInformation func(childComplexity int) int
  1651. ClientIP func(childComplexity int) int
  1652. Closed func(childComplexity int) int
  1653. ClosedAt func(childComplexity int) int
  1654. Confirmed func(childComplexity int) int
  1655. CreatedAt func(childComplexity int) int
  1656. CurrencyCode func(childComplexity int) int
  1657. CurrentCartDiscountAmountSet func(childComplexity int) int
  1658. CurrentSubtotalLineItemsQuantity func(childComplexity int) int
  1659. CurrentSubtotalPriceSet func(childComplexity int) int
  1660. CurrentTaxLines func(childComplexity int) int
  1661. CurrentTotalDiscountsSet func(childComplexity int) int
  1662. CurrentTotalDutiesSet func(childComplexity int) int
  1663. CurrentTotalPriceSet func(childComplexity int) int
  1664. CurrentTotalTaxSet func(childComplexity int) int
  1665. CurrentTotalWeight func(childComplexity int) int
  1666. CustomAttributes func(childComplexity int) int
  1667. Customer func(childComplexity int) int
  1668. CustomerAcceptsMarketing func(childComplexity int) int
  1669. CustomerJourneySummary func(childComplexity int) int
  1670. CustomerLocale func(childComplexity int) int
  1671. DiscountApplications func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  1672. DiscountCode func(childComplexity int) int
  1673. DiscountCodes func(childComplexity int) int
  1674. DisplayAddress func(childComplexity int) int
  1675. DisplayFinancialStatus func(childComplexity int) int
  1676. DisplayFulfillmentStatus func(childComplexity int) int
  1677. Disputes func(childComplexity int) int
  1678. Edited func(childComplexity int) int
  1679. Email func(childComplexity int) int
  1680. EstimatedTaxes func(childComplexity int) int
  1681. Events func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *EventSortKeys, query *string) int
  1682. Fulfillable func(childComplexity int) int
  1683. FulfillmentOrders func(childComplexity int, displayable *bool, first *int, after *string, last *int, before *string, reverse *bool, query *string) int
  1684. Fulfillments func(childComplexity int, first *int) int
  1685. FullyPaid func(childComplexity int) int
  1686. HasTimelineComment func(childComplexity int) int
  1687. ID func(childComplexity int) int
  1688. LegacyResourceID func(childComplexity int) int
  1689. LineItems func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  1690. LocalizationExtensions func(childComplexity int, countryCodes []CountryCode, purposes []LocalizationExtensionPurpose, first *int, after *string, last *int, before *string, reverse *bool) int
  1691. MerchantEditable func(childComplexity int) int
  1692. MerchantEditableErrors func(childComplexity int) int
  1693. MerchantOfRecordApp func(childComplexity int) int
  1694. Metafield func(childComplexity int, namespace string, key string) int
  1695. MetafieldDefinitions func(childComplexity int, namespace *string, pinnedStatus *MetafieldDefinitionPinnedStatus, first *int, after *string, last *int, before *string, reverse *bool, sortKey *MetafieldDefinitionSortKeys, query *string) int
  1696. Metafields func(childComplexity int, namespace *string, first *int, after *string, last *int, before *string, reverse *bool) int
  1697. Name func(childComplexity int) int
  1698. NetPaymentSet func(childComplexity int) int
  1699. NonFulfillableLineItems func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  1700. Note func(childComplexity int) int
  1701. OriginalTotalDutiesSet func(childComplexity int) int
  1702. OriginalTotalPriceSet func(childComplexity int) int
  1703. PaymentCollectionDetails func(childComplexity int) int
  1704. PaymentGatewayNames func(childComplexity int) int
  1705. PaymentTerms func(childComplexity int) int
  1706. Phone func(childComplexity int) int
  1707. PhysicalLocation func(childComplexity int) int
  1708. PresentmentCurrencyCode func(childComplexity int) int
  1709. PrivateMetafield func(childComplexity int, namespace string, key string) int
  1710. PrivateMetafields func(childComplexity int, namespace *string, first *int, after *string, last *int, before *string, reverse *bool) int
  1711. ProcessedAt func(childComplexity int) int
  1712. Publication func(childComplexity int) int
  1713. PurchasingEntity func(childComplexity int) int
  1714. RefundDiscrepancySet func(childComplexity int) int
  1715. Refundable func(childComplexity int) int
  1716. Refunds func(childComplexity int, first *int) int
  1717. RegisteredSourceURL func(childComplexity int) int
  1718. RequiresShipping func(childComplexity int) int
  1719. Restockable func(childComplexity int) int
  1720. RiskLevel func(childComplexity int) int
  1721. Risks func(childComplexity int, first *int) int
  1722. ShippingAddress func(childComplexity int) int
  1723. ShippingLine func(childComplexity int) int
  1724. ShippingLines func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  1725. SourceIdentifier func(childComplexity int) int
  1726. SubtotalLineItemsQuantity func(childComplexity int) int
  1727. SubtotalPriceSet func(childComplexity int) int
  1728. SuggestedRefund func(childComplexity int, shippingAmount *string, refundShipping *bool, refundLineItems []*RefundLineItemInput, refundDuties []*RefundDutyInput, suggestFullRefund *bool) int
  1729. Tags func(childComplexity int) int
  1730. TaxLines func(childComplexity int) int
  1731. TaxesIncluded func(childComplexity int) int
  1732. Test func(childComplexity int) int
  1733. TotalCapturableSet func(childComplexity int) int
  1734. TotalDiscountsSet func(childComplexity int) int
  1735. TotalOutstandingSet func(childComplexity int) int
  1736. TotalPriceSet func(childComplexity int) int
  1737. TotalReceivedSet func(childComplexity int) int
  1738. TotalRefundedSet func(childComplexity int) int
  1739. TotalRefundedShippingSet func(childComplexity int) int
  1740. TotalShippingPriceSet func(childComplexity int) int
  1741. TotalTaxSet func(childComplexity int) int
  1742. TotalTipReceivedSet func(childComplexity int) int
  1743. TotalWeight func(childComplexity int) int
  1744. Transactions func(childComplexity int, first *int, capturable *bool, manuallyResolvable *bool) int
  1745. Unpaid func(childComplexity int) int
  1746. UpdatedAt func(childComplexity int) int
  1747. }
  1748. OrderApp struct {
  1749. ID func(childComplexity int) int
  1750. Icon func(childComplexity int) int
  1751. Name func(childComplexity int) int
  1752. }
  1753. OrderConnection struct {
  1754. Edges func(childComplexity int) int
  1755. Nodes func(childComplexity int) int
  1756. PageInfo func(childComplexity int) int
  1757. }
  1758. OrderDisputeSummary struct {
  1759. ID func(childComplexity int) int
  1760. InitiatedAs func(childComplexity int) int
  1761. Status func(childComplexity int) int
  1762. }
  1763. OrderEdge struct {
  1764. Cursor func(childComplexity int) int
  1765. Node func(childComplexity int) int
  1766. }
  1767. OrderPaymentCollectionDetails struct {
  1768. AdditionalPaymentCollectionURL func(childComplexity int) int
  1769. VaultedPaymentMethods func(childComplexity int) int
  1770. }
  1771. OrderRisk struct {
  1772. Display func(childComplexity int) int
  1773. Level func(childComplexity int) int
  1774. Message func(childComplexity int) int
  1775. }
  1776. OrderTransaction struct {
  1777. AccountNumber func(childComplexity int) int
  1778. AmountSet func(childComplexity int) int
  1779. AuthorizationCode func(childComplexity int) int
  1780. AuthorizationExpiresAt func(childComplexity int) int
  1781. CreatedAt func(childComplexity int) int
  1782. ErrorCode func(childComplexity int) int
  1783. Fees func(childComplexity int) int
  1784. FormattedGateway func(childComplexity int) int
  1785. Gateway func(childComplexity int) int
  1786. ID func(childComplexity int) int
  1787. Kind func(childComplexity int) int
  1788. ManuallyCapturable func(childComplexity int) int
  1789. MaximumRefundableV2 func(childComplexity int) int
  1790. Order func(childComplexity int) int
  1791. ParentTransaction func(childComplexity int) int
  1792. PaymentIcon func(childComplexity int) int
  1793. ProcessedAt func(childComplexity int) int
  1794. ReceiptJSON func(childComplexity int) int
  1795. SettlementCurrency func(childComplexity int) int
  1796. SettlementCurrencyRate func(childComplexity int) int
  1797. ShopifyPaymentsSet func(childComplexity int) int
  1798. Status func(childComplexity int) int
  1799. Test func(childComplexity int) int
  1800. TotalUnsettledSet func(childComplexity int) int
  1801. User func(childComplexity int) int
  1802. }
  1803. OrderTransactionConnection struct {
  1804. Edges func(childComplexity int) int
  1805. Nodes func(childComplexity int) int
  1806. PageInfo func(childComplexity int) int
  1807. }
  1808. OrderTransactionEdge struct {
  1809. Cursor func(childComplexity int) int
  1810. Node func(childComplexity int) int
  1811. }
  1812. PageInfo struct {
  1813. EndCursor func(childComplexity int) int
  1814. HasNextPage func(childComplexity int) int
  1815. HasPreviousPage func(childComplexity int) int
  1816. StartCursor func(childComplexity int) int
  1817. }
  1818. PaymentMandate struct {
  1819. ID func(childComplexity int) int
  1820. PaymentInstrument func(childComplexity int) int
  1821. }
  1822. PaymentSchedule struct {
  1823. Amount func(childComplexity int) int
  1824. CompletedAt func(childComplexity int) int
  1825. DueAt func(childComplexity int) int
  1826. ID func(childComplexity int) int
  1827. IssuedAt func(childComplexity int) int
  1828. }
  1829. PaymentScheduleConnection struct {
  1830. Edges func(childComplexity int) int
  1831. Nodes func(childComplexity int) int
  1832. PageInfo func(childComplexity int) int
  1833. }
  1834. PaymentScheduleEdge struct {
  1835. Cursor func(childComplexity int) int
  1836. Node func(childComplexity int) int
  1837. }
  1838. PaymentSettings struct {
  1839. SupportedDigitalWallets func(childComplexity int) int
  1840. }
  1841. PaymentTerms struct {
  1842. DueInDays func(childComplexity int) int
  1843. ID func(childComplexity int) int
  1844. Overdue func(childComplexity int) int
  1845. PaymentSchedules func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  1846. PaymentTermsName func(childComplexity int) int
  1847. PaymentTermsType func(childComplexity int) int
  1848. TranslatedName func(childComplexity int) int
  1849. }
  1850. PaymentTermsTemplate struct {
  1851. Description func(childComplexity int) int
  1852. DueInDays func(childComplexity int) int
  1853. ID func(childComplexity int) int
  1854. Name func(childComplexity int) int
  1855. PaymentTermsType func(childComplexity int) int
  1856. TranslatedName func(childComplexity int) int
  1857. }
  1858. PriceList struct {
  1859. ContextRule func(childComplexity int) int
  1860. Currency func(childComplexity int) int
  1861. ID func(childComplexity int) int
  1862. Name func(childComplexity int) int
  1863. Parent func(childComplexity int) int
  1864. Prices func(childComplexity int, originType *PriceListPriceOriginType, first *int, after *string, last *int, before *string, reverse *bool) int
  1865. }
  1866. PriceListAdjustment struct {
  1867. Type func(childComplexity int) int
  1868. Value func(childComplexity int) int
  1869. }
  1870. PriceListContextRule struct {
  1871. Countries func(childComplexity int) int
  1872. Market func(childComplexity int) int
  1873. }
  1874. PriceListParent struct {
  1875. Adjustment func(childComplexity int) int
  1876. }
  1877. PriceListPrice struct {
  1878. CompareAtPrice func(childComplexity int) int
  1879. OriginType func(childComplexity int) int
  1880. Price func(childComplexity int) int
  1881. Variant func(childComplexity int) int
  1882. }
  1883. PriceListPriceConnection struct {
  1884. Edges func(childComplexity int) int
  1885. Nodes func(childComplexity int) int
  1886. PageInfo func(childComplexity int) int
  1887. }
  1888. PriceListPriceEdge struct {
  1889. Cursor func(childComplexity int) int
  1890. Node func(childComplexity int) int
  1891. }
  1892. PricingPercentageValue struct {
  1893. Percentage func(childComplexity int) int
  1894. }
  1895. PrivateMetafield struct {
  1896. CreatedAt func(childComplexity int) int
  1897. ID func(childComplexity int) int
  1898. Key func(childComplexity int) int
  1899. Namespace func(childComplexity int) int
  1900. UpdatedAt func(childComplexity int) int
  1901. Value func(childComplexity int) int
  1902. ValueType func(childComplexity int) int
  1903. }
  1904. PrivateMetafieldConnection struct {
  1905. Edges func(childComplexity int) int
  1906. Nodes func(childComplexity int) int
  1907. PageInfo func(childComplexity int) int
  1908. }
  1909. PrivateMetafieldEdge struct {
  1910. Cursor func(childComplexity int) int
  1911. Node func(childComplexity int) int
  1912. }
  1913. Product struct {
  1914. AvailablePublicationCount func(childComplexity int) int
  1915. Collections func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *CollectionSortKeys, query *string) int
  1916. ContextualPricing func(childComplexity int, context ContextualPricingContext) int
  1917. CreatedAt func(childComplexity int) int
  1918. DefaultCursor func(childComplexity int) int
  1919. Description func(childComplexity int, truncateAt *int) int
  1920. DescriptionHTML func(childComplexity int) int
  1921. FeaturedImage func(childComplexity int) int
  1922. FeaturedMedia func(childComplexity int) int
  1923. Feedback func(childComplexity int) int
  1924. GiftCardTemplateSuffix func(childComplexity int) int
  1925. Handle func(childComplexity int) int
  1926. HasOnlyDefaultVariant func(childComplexity int) int
  1927. HasOutOfStockVariants func(childComplexity int) int
  1928. ID func(childComplexity int) int
  1929. Images func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *ProductImageSortKeys) int
  1930. InCollection func(childComplexity int, id string) int
  1931. IsGiftCard func(childComplexity int) int
  1932. LegacyResourceID func(childComplexity int) int
  1933. Media func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *ProductMediaSortKeys) int
  1934. MediaCount func(childComplexity int) int
  1935. Metafield func(childComplexity int, namespace string, key string) int
  1936. MetafieldDefinitions func(childComplexity int, namespace *string, pinnedStatus *MetafieldDefinitionPinnedStatus, first *int, after *string, last *int, before *string, reverse *bool, sortKey *MetafieldDefinitionSortKeys, query *string) int
  1937. Metafields func(childComplexity int, namespace *string, first *int, after *string, last *int, before *string, reverse *bool) int
  1938. OnlineStorePreviewURL func(childComplexity int) int
  1939. OnlineStoreURL func(childComplexity int) int
  1940. Options func(childComplexity int, first *int) int
  1941. PriceRangeV2 func(childComplexity int) int
  1942. PrivateMetafield func(childComplexity int, namespace string, key string) int
  1943. PrivateMetafields func(childComplexity int, namespace *string, first *int, after *string, last *int, before *string, reverse *bool) int
  1944. ProductCategory func(childComplexity int) int
  1945. ProductType func(childComplexity int) int
  1946. PublicationCount func(childComplexity int, onlyPublished *bool) int
  1947. PublishedAt func(childComplexity int) int
  1948. PublishedOnCurrentPublication func(childComplexity int) int
  1949. PublishedOnPublication func(childComplexity int, publicationID string) int
  1950. RequiresSellingPlan func(childComplexity int) int
  1951. ResourcePublicationOnCurrentPublication func(childComplexity int) int
  1952. ResourcePublications func(childComplexity int, onlyPublished *bool, first *int, after *string, last *int, before *string, reverse *bool) int
  1953. ResourcePublicationsV2 func(childComplexity int, onlyPublished *bool, first *int, after *string, last *int, before *string, reverse *bool) int
  1954. SellingPlanGroupCount func(childComplexity int) int
  1955. SellingPlanGroups func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  1956. Seo func(childComplexity int) int
  1957. Status func(childComplexity int) int
  1958. Tags func(childComplexity int) int
  1959. TemplateSuffix func(childComplexity int) int
  1960. Title func(childComplexity int) int
  1961. TotalInventory func(childComplexity int) int
  1962. TotalVariants func(childComplexity int) int
  1963. TracksInventory func(childComplexity int) int
  1964. Translations func(childComplexity int, locale string, marketID *string) int
  1965. UnpublishedPublications func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  1966. UpdatedAt func(childComplexity int) int
  1967. Variants func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool, sortKey *ProductVariantSortKeys) int
  1968. Vendor func(childComplexity int) int
  1969. }
  1970. ProductCategory struct {
  1971. ProductTaxonomyNode func(childComplexity int) int
  1972. }
  1973. ProductChangeStatusUserError struct {
  1974. Code func(childComplexity int) int
  1975. Field func(childComplexity int) int
  1976. Message func(childComplexity int) int
  1977. }
  1978. ProductConnection struct {
  1979. Edges func(childComplexity int) int
  1980. Nodes func(childComplexity int) int
  1981. PageInfo func(childComplexity int) int
  1982. }
  1983. ProductContextualPricing struct {
  1984. MaxVariantPricing func(childComplexity int) int
  1985. MinVariantPricing func(childComplexity int) int
  1986. PriceRange func(childComplexity int) int
  1987. }
  1988. ProductEdge struct {
  1989. Cursor func(childComplexity int) int
  1990. Node func(childComplexity int) int
  1991. }
  1992. ProductOption struct {
  1993. ID func(childComplexity int) int
  1994. Name func(childComplexity int) int
  1995. Position func(childComplexity int) int
  1996. Translations func(childComplexity int, locale string, marketID *string) int
  1997. Values func(childComplexity int) int
  1998. }
  1999. ProductPriceRangeV2 struct {
  2000. MaxVariantPrice func(childComplexity int) int
  2001. MinVariantPrice func(childComplexity int) int
  2002. }
  2003. ProductTaxonomyNode struct {
  2004. FullName func(childComplexity int) int
  2005. ID func(childComplexity int) int
  2006. IsLeaf func(childComplexity int) int
  2007. IsRoot func(childComplexity int) int
  2008. Name func(childComplexity int) int
  2009. }
  2010. ProductVariant struct {
  2011. AvailableForSale func(childComplexity int) int
  2012. Barcode func(childComplexity int) int
  2013. CompareAtPrice func(childComplexity int) int
  2014. ContextualPricing func(childComplexity int, context ContextualPricingContext) int
  2015. CreatedAt func(childComplexity int) int
  2016. DefaultCursor func(childComplexity int) int
  2017. DeliveryProfile func(childComplexity int) int
  2018. DisplayName func(childComplexity int) int
  2019. FulfillmentServiceEditable func(childComplexity int) int
  2020. ID func(childComplexity int) int
  2021. Image func(childComplexity int) int
  2022. InventoryItem func(childComplexity int) int
  2023. InventoryPolicy func(childComplexity int) int
  2024. InventoryQuantity func(childComplexity int) int
  2025. LegacyResourceID func(childComplexity int) int
  2026. Media func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  2027. Metafield func(childComplexity int, namespace string, key string) int
  2028. MetafieldDefinitions func(childComplexity int, namespace *string, pinnedStatus *MetafieldDefinitionPinnedStatus, first *int, after *string, last *int, before *string, reverse *bool, sortKey *MetafieldDefinitionSortKeys, query *string) int
  2029. Metafields func(childComplexity int, namespace *string, first *int, after *string, last *int, before *string, reverse *bool) int
  2030. Position func(childComplexity int) int
  2031. Price func(childComplexity int) int
  2032. PrivateMetafield func(childComplexity int, namespace string, key string) int
  2033. PrivateMetafields func(childComplexity int, namespace *string, first *int, after *string, last *int, before *string, reverse *bool) int
  2034. Product func(childComplexity int) int
  2035. SelectedOptions func(childComplexity int) int
  2036. SellableOnlineQuantity func(childComplexity int) int
  2037. SellingPlanGroupCount func(childComplexity int) int
  2038. SellingPlanGroups func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  2039. Sku func(childComplexity int) int
  2040. TaxCode func(childComplexity int) int
  2041. Taxable func(childComplexity int) int
  2042. Title func(childComplexity int) int
  2043. Translations func(childComplexity int, locale string, marketID *string) int
  2044. UpdatedAt func(childComplexity int) int
  2045. Weight func(childComplexity int) int
  2046. WeightUnit func(childComplexity int) int
  2047. }
  2048. ProductVariantConnection struct {
  2049. Edges func(childComplexity int) int
  2050. Nodes func(childComplexity int) int
  2051. PageInfo func(childComplexity int) int
  2052. }
  2053. ProductVariantContextualPricing struct {
  2054. CompareAtPrice func(childComplexity int) int
  2055. Price func(childComplexity int) int
  2056. }
  2057. ProductVariantEdge struct {
  2058. Cursor func(childComplexity int) int
  2059. Node func(childComplexity int) int
  2060. }
  2061. ProductVariantsBulkCreateUserError struct {
  2062. Code func(childComplexity int) int
  2063. Field func(childComplexity int) int
  2064. Message func(childComplexity int) int
  2065. }
  2066. ProductVariantsBulkDeleteUserError struct {
  2067. Code func(childComplexity int) int
  2068. Field func(childComplexity int) int
  2069. Message func(childComplexity int) int
  2070. }
  2071. ProductVariantsBulkReorderUserError struct {
  2072. Code func(childComplexity int) int
  2073. Field func(childComplexity int) int
  2074. Message func(childComplexity int) int
  2075. }
  2076. ProductVariantsBulkUpdateUserError struct {
  2077. Code func(childComplexity int) int
  2078. Field func(childComplexity int) int
  2079. Message func(childComplexity int) int
  2080. }
  2081. Publication struct {
  2082. App func(childComplexity int) int
  2083. CollectionPublicationsV3 func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  2084. Collections func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  2085. HasCollection func(childComplexity int, id string) int
  2086. ID func(childComplexity int) int
  2087. Name func(childComplexity int) int
  2088. ProductPublicationsV3 func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  2089. Products func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  2090. SupportsFuturePublishing func(childComplexity int) int
  2091. }
  2092. PublicationConnection struct {
  2093. Edges func(childComplexity int) int
  2094. Nodes func(childComplexity int) int
  2095. PageInfo func(childComplexity int) int
  2096. }
  2097. PublicationEdge struct {
  2098. Cursor func(childComplexity int) int
  2099. Node func(childComplexity int) int
  2100. }
  2101. PublishedTranslation struct {
  2102. Key func(childComplexity int) int
  2103. Locale func(childComplexity int) int
  2104. MarketID func(childComplexity int) int
  2105. Value func(childComplexity int) int
  2106. }
  2107. PurchasingCompany struct {
  2108. Company func(childComplexity int) int
  2109. Contact func(childComplexity int) int
  2110. Location func(childComplexity int) int
  2111. }
  2112. Query struct {
  2113. Customer func(childComplexity int, id string) int
  2114. __resolve__service func(childComplexity int) int
  2115. __resolve_entities func(childComplexity int, representations []map[string]interface{}) int
  2116. }
  2117. Refund struct {
  2118. CreatedAt func(childComplexity int) int
  2119. Duties func(childComplexity int) int
  2120. ID func(childComplexity int) int
  2121. LegacyResourceID func(childComplexity int) int
  2122. Note func(childComplexity int) int
  2123. Order func(childComplexity int) int
  2124. RefundLineItems func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  2125. StaffMember func(childComplexity int) int
  2126. TotalRefundedSet func(childComplexity int) int
  2127. Transactions func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  2128. UpdatedAt func(childComplexity int) int
  2129. }
  2130. RefundDuty struct {
  2131. AmountSet func(childComplexity int) int
  2132. OriginalDuty func(childComplexity int) int
  2133. }
  2134. RefundLineItem struct {
  2135. LineItem func(childComplexity int) int
  2136. Location func(childComplexity int) int
  2137. PriceSet func(childComplexity int) int
  2138. Quantity func(childComplexity int) int
  2139. RestockType func(childComplexity int) int
  2140. Restocked func(childComplexity int) int
  2141. SubtotalSet func(childComplexity int) int
  2142. TotalTaxSet func(childComplexity int) int
  2143. }
  2144. RefundLineItemConnection struct {
  2145. Edges func(childComplexity int) int
  2146. Nodes func(childComplexity int) int
  2147. PageInfo func(childComplexity int) int
  2148. }
  2149. RefundLineItemEdge struct {
  2150. Cursor func(childComplexity int) int
  2151. Node func(childComplexity int) int
  2152. }
  2153. ResourceAlert struct {
  2154. Actions func(childComplexity int) int
  2155. Content func(childComplexity int) int
  2156. DismissibleHandle func(childComplexity int) int
  2157. Icon func(childComplexity int) int
  2158. Severity func(childComplexity int) int
  2159. Title func(childComplexity int) int
  2160. }
  2161. ResourceAlertAction struct {
  2162. Primary func(childComplexity int) int
  2163. Show func(childComplexity int) int
  2164. Title func(childComplexity int) int
  2165. URL func(childComplexity int) int
  2166. }
  2167. ResourceFeedback struct {
  2168. Details func(childComplexity int) int
  2169. Summary func(childComplexity int) int
  2170. }
  2171. ResourceLimit struct {
  2172. Available func(childComplexity int) int
  2173. QuantityAvailable func(childComplexity int) int
  2174. QuantityLimit func(childComplexity int) int
  2175. QuantityUsed func(childComplexity int) int
  2176. }
  2177. ResourcePublication struct {
  2178. IsPublished func(childComplexity int) int
  2179. Publication func(childComplexity int) int
  2180. PublishDate func(childComplexity int) int
  2181. Publishable func(childComplexity int) int
  2182. }
  2183. ResourcePublicationConnection struct {
  2184. Edges func(childComplexity int) int
  2185. Nodes func(childComplexity int) int
  2186. PageInfo func(childComplexity int) int
  2187. }
  2188. ResourcePublicationEdge struct {
  2189. Cursor func(childComplexity int) int
  2190. Node func(childComplexity int) int
  2191. }
  2192. ResourcePublicationV2 struct {
  2193. IsPublished func(childComplexity int) int
  2194. Publication func(childComplexity int) int
  2195. PublishDate func(childComplexity int) int
  2196. Publishable func(childComplexity int) int
  2197. }
  2198. ResourcePublicationV2Connection struct {
  2199. Edges func(childComplexity int) int
  2200. Nodes func(childComplexity int) int
  2201. PageInfo func(childComplexity int) int
  2202. }
  2203. ResourcePublicationV2Edge struct {
  2204. Cursor func(childComplexity int) int
  2205. Node func(childComplexity int) int
  2206. }
  2207. SEO struct {
  2208. Description func(childComplexity int) int
  2209. Title func(childComplexity int) int
  2210. }
  2211. SaleConnection struct {
  2212. Edges func(childComplexity int) int
  2213. Nodes func(childComplexity int) int
  2214. PageInfo func(childComplexity int) int
  2215. }
  2216. SaleEdge struct {
  2217. Cursor func(childComplexity int) int
  2218. Node func(childComplexity int) int
  2219. }
  2220. SaleTax struct {
  2221. Amount func(childComplexity int) int
  2222. ID func(childComplexity int) int
  2223. TaxLine func(childComplexity int) int
  2224. }
  2225. SalesAgreementConnection struct {
  2226. Edges func(childComplexity int) int
  2227. Nodes func(childComplexity int) int
  2228. PageInfo func(childComplexity int) int
  2229. }
  2230. SalesAgreementEdge struct {
  2231. Cursor func(childComplexity int) int
  2232. Node func(childComplexity int) int
  2233. }
  2234. SavedSearch struct {
  2235. Filters func(childComplexity int) int
  2236. ID func(childComplexity int) int
  2237. LegacyResourceID func(childComplexity int) int
  2238. Name func(childComplexity int) int
  2239. Query func(childComplexity int) int
  2240. ResourceType func(childComplexity int) int
  2241. SearchTerms func(childComplexity int) int
  2242. }
  2243. SavedSearchConnection struct {
  2244. Edges func(childComplexity int) int
  2245. Nodes func(childComplexity int) int
  2246. PageInfo func(childComplexity int) int
  2247. }
  2248. SavedSearchEdge struct {
  2249. Cursor func(childComplexity int) int
  2250. Node func(childComplexity int) int
  2251. }
  2252. ScriptDiscountApplication struct {
  2253. AllocationMethod func(childComplexity int) int
  2254. Index func(childComplexity int) int
  2255. TargetSelection func(childComplexity int) int
  2256. TargetType func(childComplexity int) int
  2257. Title func(childComplexity int) int
  2258. Value func(childComplexity int) int
  2259. }
  2260. SearchFilter struct {
  2261. Key func(childComplexity int) int
  2262. Value func(childComplexity int) int
  2263. }
  2264. SearchFilterOptions struct {
  2265. ProductAvailability func(childComplexity int) int
  2266. }
  2267. SearchResult struct {
  2268. Description func(childComplexity int) int
  2269. Image func(childComplexity int) int
  2270. Reference func(childComplexity int) int
  2271. Title func(childComplexity int) int
  2272. URL func(childComplexity int) int
  2273. }
  2274. SearchResultConnection struct {
  2275. Edges func(childComplexity int) int
  2276. PageInfo func(childComplexity int) int
  2277. }
  2278. SearchResultEdge struct {
  2279. Cursor func(childComplexity int) int
  2280. Node func(childComplexity int) int
  2281. }
  2282. SelectedOption struct {
  2283. Name func(childComplexity int) int
  2284. Value func(childComplexity int) int
  2285. }
  2286. SellingPlan struct {
  2287. BillingPolicy func(childComplexity int) int
  2288. Category func(childComplexity int) int
  2289. CreatedAt func(childComplexity int) int
  2290. DeliveryPolicy func(childComplexity int) int
  2291. Description func(childComplexity int) int
  2292. ID func(childComplexity int) int
  2293. InventoryPolicy func(childComplexity int) int
  2294. Name func(childComplexity int) int
  2295. Options func(childComplexity int) int
  2296. Position func(childComplexity int) int
  2297. PricingPolicies func(childComplexity int) int
  2298. }
  2299. SellingPlanAnchor struct {
  2300. CutoffDay func(childComplexity int) int
  2301. Day func(childComplexity int) int
  2302. Month func(childComplexity int) int
  2303. Type func(childComplexity int) int
  2304. }
  2305. SellingPlanCheckoutCharge struct {
  2306. Type func(childComplexity int) int
  2307. Value func(childComplexity int) int
  2308. }
  2309. SellingPlanCheckoutChargePercentageValue struct {
  2310. Percentage func(childComplexity int) int
  2311. }
  2312. SellingPlanConnection struct {
  2313. Edges func(childComplexity int) int
  2314. Nodes func(childComplexity int) int
  2315. PageInfo func(childComplexity int) int
  2316. }
  2317. SellingPlanEdge struct {
  2318. Cursor func(childComplexity int) int
  2319. Node func(childComplexity int) int
  2320. }
  2321. SellingPlanFixedBillingPolicy struct {
  2322. CheckoutCharge func(childComplexity int) int
  2323. RemainingBalanceChargeExactTime func(childComplexity int) int
  2324. RemainingBalanceChargeTimeAfterCheckout func(childComplexity int) int
  2325. RemainingBalanceChargeTrigger func(childComplexity int) int
  2326. }
  2327. SellingPlanFixedDeliveryPolicy struct {
  2328. Anchors func(childComplexity int) int
  2329. Cutoff func(childComplexity int) int
  2330. FulfillmentExactTime func(childComplexity int) int
  2331. FulfillmentTrigger func(childComplexity int) int
  2332. Intent func(childComplexity int) int
  2333. PreAnchorBehavior func(childComplexity int) int
  2334. }
  2335. SellingPlanFixedPricingPolicy struct {
  2336. AdjustmentType func(childComplexity int) int
  2337. AdjustmentValue func(childComplexity int) int
  2338. CreatedAt func(childComplexity int) int
  2339. }
  2340. SellingPlanGroup struct {
  2341. AppID func(childComplexity int) int
  2342. AppliesToProduct func(childComplexity int, productID string) int
  2343. AppliesToProductVariant func(childComplexity int, productVariantID string) int
  2344. AppliesToProductVariants func(childComplexity int, productID string) int
  2345. CreatedAt func(childComplexity int) int
  2346. Description func(childComplexity int) int
  2347. ID func(childComplexity int) int
  2348. MerchantCode func(childComplexity int) int
  2349. Name func(childComplexity int) int
  2350. Options func(childComplexity int) int
  2351. Position func(childComplexity int) int
  2352. ProductCount func(childComplexity int) int
  2353. ProductVariantCount func(childComplexity int, productID *string) int
  2354. ProductVariants func(childComplexity int, productID *string, first *int, after *string, last *int, before *string, reverse *bool) int
  2355. Products func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  2356. SellingPlans func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  2357. Summary func(childComplexity int) int
  2358. }
  2359. SellingPlanGroupConnection struct {
  2360. Edges func(childComplexity int) int
  2361. Nodes func(childComplexity int) int
  2362. PageInfo func(childComplexity int) int
  2363. }
  2364. SellingPlanGroupEdge struct {
  2365. Cursor func(childComplexity int) int
  2366. Node func(childComplexity int) int
  2367. }
  2368. SellingPlanGroupUserError struct {
  2369. Code func(childComplexity int) int
  2370. Field func(childComplexity int) int
  2371. Message func(childComplexity int) int
  2372. }
  2373. SellingPlanInventoryPolicy struct {
  2374. Reserve func(childComplexity int) int
  2375. }
  2376. SellingPlanPricingPolicyPercentageValue struct {
  2377. Percentage func(childComplexity int) int
  2378. }
  2379. SellingPlanRecurringBillingPolicy struct {
  2380. Anchors func(childComplexity int) int
  2381. CreatedAt func(childComplexity int) int
  2382. Interval func(childComplexity int) int
  2383. IntervalCount func(childComplexity int) int
  2384. MaxCycles func(childComplexity int) int
  2385. MinCycles func(childComplexity int) int
  2386. }
  2387. SellingPlanRecurringDeliveryPolicy struct {
  2388. Anchors func(childComplexity int) int
  2389. CreatedAt func(childComplexity int) int
  2390. Cutoff func(childComplexity int) int
  2391. Intent func(childComplexity int) int
  2392. Interval func(childComplexity int) int
  2393. IntervalCount func(childComplexity int) int
  2394. PreAnchorBehavior func(childComplexity int) int
  2395. }
  2396. SellingPlanRecurringPricingPolicy struct {
  2397. AdjustmentType func(childComplexity int) int
  2398. AdjustmentValue func(childComplexity int) int
  2399. AfterCycle func(childComplexity int) int
  2400. CreatedAt func(childComplexity int) int
  2401. }
  2402. ShippingLine struct {
  2403. CarrierIdentifier func(childComplexity int) int
  2404. Code func(childComplexity int) int
  2405. Custom func(childComplexity int) int
  2406. DeliveryCategory func(childComplexity int) int
  2407. DiscountAllocations func(childComplexity int) int
  2408. DiscountedPriceSet func(childComplexity int) int
  2409. ID func(childComplexity int) int
  2410. OriginalPriceSet func(childComplexity int) int
  2411. Phone func(childComplexity int) int
  2412. RequestedFulfillmentService func(childComplexity int) int
  2413. ShippingRateHandle func(childComplexity int) int
  2414. Source func(childComplexity int) int
  2415. TaxLines func(childComplexity int) int
  2416. Title func(childComplexity int) int
  2417. }
  2418. ShippingLineConnection struct {
  2419. Edges func(childComplexity int) int
  2420. Nodes func(childComplexity int) int
  2421. PageInfo func(childComplexity int) int
  2422. }
  2423. ShippingLineEdge struct {
  2424. Cursor func(childComplexity int) int
  2425. Node func(childComplexity int) int
  2426. }
  2427. ShippingRefund struct {
  2428. AmountSet func(childComplexity int) int
  2429. MaximumRefundableSet func(childComplexity int) int
  2430. TaxSet func(childComplexity int) int
  2431. }
  2432. Shop struct {
  2433. Alerts func(childComplexity int) int
  2434. AllProductCategories func(childComplexity int) int
  2435. AssignedFulfillmentOrders func(childComplexity int, after *string, assignmentStatus *FulfillmentOrderAssignmentStatus, before *string, first *int, last *int, locationIds []string, reverse *bool, sortKey *FulfillmentOrderSortKeys) int
  2436. AvailableChannelApps func(childComplexity int, after *string, before *string, first *int, last *int, reverse *bool) int
  2437. BillingAddress func(childComplexity int) int
  2438. ChannelDefinitionsForInstalledChannels func(childComplexity int) int
  2439. CheckoutAPISupported func(childComplexity int) int
  2440. ContactEmail func(childComplexity int) int
  2441. CountriesInShippingZones func(childComplexity int) int
  2442. CurrencyCode func(childComplexity int) int
  2443. CurrencyFormats func(childComplexity int) int
  2444. CurrencySettings func(childComplexity int, after *string, before *string, first *int, last *int, reverse *bool) int
  2445. CustomerAccounts func(childComplexity int) int
  2446. CustomerTags func(childComplexity int, first int) int
  2447. Description func(childComplexity int) int
  2448. DraftOrderTags func(childComplexity int, first int) int
  2449. Email func(childComplexity int) int
  2450. EnabledPresentmentCurrencies func(childComplexity int) int
  2451. Features func(childComplexity int) int
  2452. FulfillmentServices func(childComplexity int) int
  2453. ID func(childComplexity int) int
  2454. IanaTimezone func(childComplexity int) int
  2455. LimitedPendingOrderCount func(childComplexity int) int
  2456. MerchantApprovalSignals func(childComplexity int) int
  2457. Metafield func(childComplexity int, key string, namespace string) int
  2458. Metafields func(childComplexity int, after *string, before *string, first *int, last *int, namespace *string, reverse *bool) int
  2459. MyshopifyDomain func(childComplexity int) int
  2460. Name func(childComplexity int) int
  2461. NavigationSettings func(childComplexity int) int
  2462. OrderNumberFormatPrefix func(childComplexity int) int
  2463. OrderNumberFormatSuffix func(childComplexity int) int
  2464. OrderTags func(childComplexity int, first int, sort *ShopTagSort) int
  2465. PaymentSettings func(childComplexity int) int
  2466. Plan func(childComplexity int) int
  2467. PrimaryDomain func(childComplexity int) int
  2468. PrivateMetafield func(childComplexity int, key string, namespace string) int
  2469. PrivateMetafields func(childComplexity int, after *string, before *string, first *int, last *int, namespace *string, reverse *bool) int
  2470. ProductImages func(childComplexity int, after *string, before *string, first *int, last *int, reverse *bool, sortKey *ProductImageSortKeys) int
  2471. ProductTags func(childComplexity int, first int) int
  2472. ProductTypes func(childComplexity int, first int) int
  2473. ProductVendors func(childComplexity int, first int) int
  2474. PublicationCount func(childComplexity int) int
  2475. ResourceLimits func(childComplexity int) int
  2476. RichTextEditorURL func(childComplexity int) int
  2477. Search func(childComplexity int, after *string, first int, query string, types []SearchResultType) int
  2478. SearchFilters func(childComplexity int) int
  2479. SetupRequired func(childComplexity int) int
  2480. ShipsToCountries func(childComplexity int) int
  2481. ShopPolicies func(childComplexity int) int
  2482. StaffMembers func(childComplexity int, after *string, before *string, first *int, last *int, reverse *bool) int
  2483. StorefrontAccessTokens func(childComplexity int, after *string, before *string, first *int, last *int, reverse *bool) int
  2484. TaxShipping func(childComplexity int) int
  2485. TaxesIncluded func(childComplexity int) int
  2486. TimezoneAbbreviation func(childComplexity int) int
  2487. TimezoneOffset func(childComplexity int) int
  2488. TimezoneOffsetMinutes func(childComplexity int) int
  2489. TransactionalSmsDisabled func(childComplexity int) int
  2490. Translations func(childComplexity int, locale string, marketID *string) int
  2491. URL func(childComplexity int) int
  2492. UnitSystem func(childComplexity int) int
  2493. UploadedImagesByIds func(childComplexity int, imageIds []string) int
  2494. WeightUnit func(childComplexity int) int
  2495. }
  2496. ShopAlert struct {
  2497. Action func(childComplexity int) int
  2498. Description func(childComplexity int) int
  2499. }
  2500. ShopAlertAction struct {
  2501. Title func(childComplexity int) int
  2502. URL func(childComplexity int) int
  2503. }
  2504. ShopFeatures struct {
  2505. AvalaraAvatax func(childComplexity int) int
  2506. Branding func(childComplexity int) int
  2507. Captcha func(childComplexity int) int
  2508. CaptchaExternalDomains func(childComplexity int) int
  2509. DynamicRemarketing func(childComplexity int) int
  2510. EligibleForSubscriptionMigration func(childComplexity int) int
  2511. EligibleForSubscriptions func(childComplexity int) int
  2512. GiftCards func(childComplexity int) int
  2513. HarmonizedSystemCode func(childComplexity int) int
  2514. InternationalDomains func(childComplexity int) int
  2515. InternationalPriceOverrides func(childComplexity int) int
  2516. InternationalPriceRules func(childComplexity int) int
  2517. LegacySubscriptionGatewayEnabled func(childComplexity int) int
  2518. LiveView func(childComplexity int) int
  2519. OnboardingVisual func(childComplexity int) int
  2520. PaypalExpressSubscriptionGatewayStatus func(childComplexity int) int
  2521. Reports func(childComplexity int) int
  2522. SellsSubscriptions func(childComplexity int) int
  2523. ShowMetrics func(childComplexity int) int
  2524. Storefront func(childComplexity int) int
  2525. UsingShopifyBalance func(childComplexity int) int
  2526. }
  2527. ShopPlan struct {
  2528. DisplayName func(childComplexity int) int
  2529. PartnerDevelopment func(childComplexity int) int
  2530. ShopifyPlus func(childComplexity int) int
  2531. }
  2532. ShopPolicy struct {
  2533. Body func(childComplexity int) int
  2534. ID func(childComplexity int) int
  2535. Translations func(childComplexity int, locale string, marketID *string) int
  2536. Type func(childComplexity int) int
  2537. URL func(childComplexity int) int
  2538. }
  2539. ShopResourceLimits struct {
  2540. LocationLimit func(childComplexity int) int
  2541. MaxProductOptions func(childComplexity int) int
  2542. MaxProductVariants func(childComplexity int) int
  2543. RedirectLimitReached func(childComplexity int) int
  2544. SkuResourceLimits func(childComplexity int) int
  2545. }
  2546. ShopifyPaymentsExtendedAuthorization struct {
  2547. ExtendedAuthorizationExpiresAt func(childComplexity int) int
  2548. StandardAuthorizationExpiresAt func(childComplexity int) int
  2549. }
  2550. ShopifyPaymentsRefundSet struct {
  2551. AcquirerReferenceNumber func(childComplexity int) int
  2552. }
  2553. ShopifyPaymentsTransactionSet struct {
  2554. ExtendedAuthorizationSet func(childComplexity int) int
  2555. RefundSet func(childComplexity int) int
  2556. }
  2557. StaffMember struct {
  2558. Active func(childComplexity int) int
  2559. Avatar func(childComplexity int, fallback *StaffMemberDefaultImage) int
  2560. Email func(childComplexity int) int
  2561. Exists func(childComplexity int) int
  2562. FirstName func(childComplexity int) int
  2563. ID func(childComplexity int) int
  2564. Initials func(childComplexity int) int
  2565. IsShopOwner func(childComplexity int) int
  2566. LastName func(childComplexity int) int
  2567. Locale func(childComplexity int) int
  2568. Name func(childComplexity int) int
  2569. Phone func(childComplexity int) int
  2570. PrivateData func(childComplexity int) int
  2571. }
  2572. StaffMemberConnection struct {
  2573. Edges func(childComplexity int) int
  2574. Nodes func(childComplexity int) int
  2575. PageInfo func(childComplexity int) int
  2576. }
  2577. StaffMemberEdge struct {
  2578. Cursor func(childComplexity int) int
  2579. Node func(childComplexity int) int
  2580. }
  2581. StaffMemberPrivateData struct {
  2582. AccountSettingsURL func(childComplexity int) int
  2583. CreatedAt func(childComplexity int) int
  2584. }
  2585. StandardMetafieldDefinitionTemplate struct {
  2586. Description func(childComplexity int) int
  2587. ID func(childComplexity int) int
  2588. Key func(childComplexity int) int
  2589. Name func(childComplexity int) int
  2590. Namespace func(childComplexity int) int
  2591. OwnerTypes func(childComplexity int) int
  2592. Type func(childComplexity int) int
  2593. Validations func(childComplexity int) int
  2594. VisibleToStorefrontAPI func(childComplexity int) int
  2595. }
  2596. StorefrontAccessToken struct {
  2597. AccessScopes func(childComplexity int) int
  2598. AccessToken func(childComplexity int) int
  2599. CreatedAt func(childComplexity int) int
  2600. ID func(childComplexity int) int
  2601. Title func(childComplexity int) int
  2602. UpdatedAt func(childComplexity int) int
  2603. }
  2604. StorefrontAccessTokenConnection struct {
  2605. Edges func(childComplexity int) int
  2606. Nodes func(childComplexity int) int
  2607. PageInfo func(childComplexity int) int
  2608. }
  2609. StorefrontAccessTokenEdge struct {
  2610. Cursor func(childComplexity int) int
  2611. Node func(childComplexity int) int
  2612. }
  2613. StringConnection struct {
  2614. Edges func(childComplexity int) int
  2615. PageInfo func(childComplexity int) int
  2616. }
  2617. StringEdge struct {
  2618. Cursor func(childComplexity int) int
  2619. Node func(childComplexity int) int
  2620. }
  2621. SubscriptionAppliedCodeDiscount struct {
  2622. ID func(childComplexity int) int
  2623. RedeemCode func(childComplexity int) int
  2624. RejectionReason func(childComplexity int) int
  2625. }
  2626. SubscriptionBillingAttempt struct {
  2627. CompletedAt func(childComplexity int) int
  2628. CreatedAt func(childComplexity int) int
  2629. ErrorCode func(childComplexity int) int
  2630. ErrorMessage func(childComplexity int) int
  2631. ID func(childComplexity int) int
  2632. IdempotencyKey func(childComplexity int) int
  2633. NextActionURL func(childComplexity int) int
  2634. Order func(childComplexity int) int
  2635. OriginTime func(childComplexity int) int
  2636. Ready func(childComplexity int) int
  2637. SubscriptionContract func(childComplexity int) int
  2638. }
  2639. SubscriptionBillingAttemptConnection struct {
  2640. Edges func(childComplexity int) int
  2641. Nodes func(childComplexity int) int
  2642. PageInfo func(childComplexity int) int
  2643. }
  2644. SubscriptionBillingAttemptEdge struct {
  2645. Cursor func(childComplexity int) int
  2646. Node func(childComplexity int) int
  2647. }
  2648. SubscriptionBillingPolicy struct {
  2649. Anchors func(childComplexity int) int
  2650. Interval func(childComplexity int) int
  2651. IntervalCount func(childComplexity int) int
  2652. MaxCycles func(childComplexity int) int
  2653. MinCycles func(childComplexity int) int
  2654. }
  2655. SubscriptionContract struct {
  2656. App func(childComplexity int) int
  2657. AppAdminURL func(childComplexity int) int
  2658. BillingAttempts func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  2659. BillingPolicy func(childComplexity int) int
  2660. CreatedAt func(childComplexity int) int
  2661. CurrencyCode func(childComplexity int) int
  2662. CustomAttributes func(childComplexity int) int
  2663. Customer func(childComplexity int) int
  2664. CustomerPaymentMethod func(childComplexity int, showRevoked *bool) int
  2665. DeliveryMethod func(childComplexity int) int
  2666. DeliveryPolicy func(childComplexity int) int
  2667. DeliveryPrice func(childComplexity int) int
  2668. Discounts func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  2669. ID func(childComplexity int) int
  2670. LastPaymentStatus func(childComplexity int) int
  2671. LineCount func(childComplexity int) int
  2672. Lines func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  2673. NextBillingDate func(childComplexity int) int
  2674. Note func(childComplexity int) int
  2675. Orders func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  2676. OriginOrder func(childComplexity int) int
  2677. Status func(childComplexity int) int
  2678. UpdatedAt func(childComplexity int) int
  2679. }
  2680. SubscriptionContractConnection struct {
  2681. Edges func(childComplexity int) int
  2682. Nodes func(childComplexity int) int
  2683. PageInfo func(childComplexity int) int
  2684. }
  2685. SubscriptionContractEdge struct {
  2686. Cursor func(childComplexity int) int
  2687. Node func(childComplexity int) int
  2688. }
  2689. SubscriptionCyclePriceAdjustment struct {
  2690. AdjustmentType func(childComplexity int) int
  2691. AdjustmentValue func(childComplexity int) int
  2692. AfterCycle func(childComplexity int) int
  2693. ComputedPrice func(childComplexity int) int
  2694. }
  2695. SubscriptionDeliveryMethodLocalDelivery struct {
  2696. Address func(childComplexity int) int
  2697. LocalDeliveryOption func(childComplexity int) int
  2698. }
  2699. SubscriptionDeliveryMethodLocalDeliveryOption struct {
  2700. Code func(childComplexity int) int
  2701. Description func(childComplexity int) int
  2702. Instructions func(childComplexity int) int
  2703. Phone func(childComplexity int) int
  2704. PresentmentTitle func(childComplexity int) int
  2705. Title func(childComplexity int) int
  2706. }
  2707. SubscriptionDeliveryMethodPickup struct {
  2708. PickupOption func(childComplexity int) int
  2709. }
  2710. SubscriptionDeliveryMethodPickupOption struct {
  2711. Code func(childComplexity int) int
  2712. Description func(childComplexity int) int
  2713. Location func(childComplexity int) int
  2714. PresentmentTitle func(childComplexity int) int
  2715. Title func(childComplexity int) int
  2716. }
  2717. SubscriptionDeliveryMethodShipping struct {
  2718. Address func(childComplexity int) int
  2719. ShippingOption func(childComplexity int) int
  2720. }
  2721. SubscriptionDeliveryMethodShippingOption struct {
  2722. CarrierService func(childComplexity int) int
  2723. Code func(childComplexity int) int
  2724. Description func(childComplexity int) int
  2725. PresentmentTitle func(childComplexity int) int
  2726. Title func(childComplexity int) int
  2727. }
  2728. SubscriptionDeliveryPolicy struct {
  2729. Anchors func(childComplexity int) int
  2730. Interval func(childComplexity int) int
  2731. IntervalCount func(childComplexity int) int
  2732. }
  2733. SubscriptionDiscountAllocation struct {
  2734. Amount func(childComplexity int) int
  2735. Discount func(childComplexity int) int
  2736. }
  2737. SubscriptionDiscountEntitledLines struct {
  2738. All func(childComplexity int) int
  2739. Lines func(childComplexity int, first *int, after *string, last *int, before *string, reverse *bool) int
  2740. }
  2741. SubscriptionDiscountFixedAmountValue struct {
  2742. Amount func(childComplexity int) int
  2743. AppliesOnEachItem func(childComplexity int) int
  2744. }
  2745. SubscriptionDiscountPercentageValue struct {
  2746. Percentage func(childComplexity int) int
  2747. }
  2748. SubscriptionLine struct {
  2749. CurrentPrice func(childComplexity int) int
  2750. CustomAttributes func(childComplexity int) int
  2751. DiscountAllocations func(childComplexity int) int
  2752. ID func(childComplexity int) int
  2753. LineDiscountedPrice func(childComplexity int) int
  2754. PricingPolicy func(childComplexity int) int
  2755. ProductID func(childComplexity int) int
  2756. Quantity func(childComplexity int) int
  2757. RequiresShipping func(childComplexity int) int
  2758. SellingPlanID func(childComplexity int) int
  2759. SellingPlanName func(childComplexity int) int
  2760. Sku func(childComplexity int) int
  2761. Taxable func(childComplexity int) int
  2762. Title func(childComplexity int) int
  2763. VariantID func(childComplexity int) int
  2764. VariantImage func(childComplexity int) int
  2765. VariantTitle func(childComplexity int) int
  2766. }
  2767. SubscriptionLineConnection struct {
  2768. Edges func(childComplexity int) int
  2769. Nodes func(childComplexity int) int
  2770. PageInfo func(childComplexity int) int
  2771. }
  2772. SubscriptionLineEdge struct {
  2773. Cursor func(childComplexity int) int
  2774. Node func(childComplexity int) int
  2775. }
  2776. SubscriptionMailingAddress struct {
  2777. Address1 func(childComplexity int) int
  2778. Address2 func(childComplexity int) int
  2779. City func(childComplexity int) int
  2780. Company func(childComplexity int) int
  2781. Country func(childComplexity int) int
  2782. CountryCode func(childComplexity int) int
  2783. FirstName func(childComplexity int) int
  2784. LastName func(childComplexity int) int
  2785. Name func(childComplexity int) int
  2786. Phone func(childComplexity int) int
  2787. Province func(childComplexity int) int
  2788. ProvinceCode func(childComplexity int) int
  2789. Zip func(childComplexity int) int
  2790. }
  2791. SubscriptionManualDiscount struct {
  2792. EntitledLines func(childComplexity int) int
  2793. ID func(childComplexity int) int
  2794. RecurringCycleLimit func(childComplexity int) int
  2795. RejectionReason func(childComplexity int) int
  2796. TargetType func(childComplexity int) int
  2797. Title func(childComplexity int) int
  2798. Type func(childComplexity int) int
  2799. UsageCount func(childComplexity int) int
  2800. Value func(childComplexity int) int
  2801. }
  2802. SubscriptionManualDiscountConnection struct {
  2803. Edges func(childComplexity int) int
  2804. Nodes func(childComplexity int) int
  2805. PageInfo func(childComplexity int) int
  2806. }
  2807. SubscriptionManualDiscountEdge struct {
  2808. Cursor func(childComplexity int) int
  2809. Node func(childComplexity int) int
  2810. }
  2811. SubscriptionPricingPolicy struct {
  2812. BasePrice func(childComplexity int) int
  2813. CycleDiscounts func(childComplexity int) int
  2814. }
  2815. SuggestedOrderTransaction struct {
  2816. AccountNumber func(childComplexity int) int
  2817. AmountSet func(childComplexity int) int
  2818. FormattedGateway func(childComplexity int) int
  2819. Gateway func(childComplexity int) int
  2820. Kind func(childComplexity int) int
  2821. MaximumRefundableSet func(childComplexity int) int
  2822. ParentTransaction func(childComplexity int) int
  2823. }
  2824. SuggestedRefund struct {
  2825. AmountSet func(childComplexity int) int
  2826. DiscountedSubtotalSet func(childComplexity int) int
  2827. MaximumRefundableSet func(childComplexity int) int
  2828. RefundDuties func(childComplexity int) int
  2829. RefundLineItems func(childComplexity int) int
  2830. Shipping func(childComplexity int) int
  2831. SubtotalSet func(childComplexity int) int
  2832. SuggestedTransactions func(childComplexity int) int
  2833. TotalCartDiscountAmountSet func(childComplexity int) int
  2834. TotalDutiesSet func(childComplexity int) int
  2835. TotalTaxSet func(childComplexity int) int
  2836. }
  2837. TaxLine struct {
  2838. ChannelLiable func(childComplexity int) int
  2839. PriceSet func(childComplexity int) int
  2840. Rate func(childComplexity int) int
  2841. RatePercentage func(childComplexity int) int
  2842. Title func(childComplexity int) int
  2843. }
  2844. TransactionFee struct {
  2845. Amount func(childComplexity int) int
  2846. FlatFee func(childComplexity int) int
  2847. FlatFeeName func(childComplexity int) int
  2848. ID func(childComplexity int) int
  2849. Rate func(childComplexity int) int
  2850. RateName func(childComplexity int) int
  2851. TaxAmount func(childComplexity int) int
  2852. Type func(childComplexity int) int
  2853. }
  2854. TypedAttribute struct {
  2855. Key func(childComplexity int) int
  2856. Value func(childComplexity int) int
  2857. }
  2858. UTMParameters struct {
  2859. Campaign func(childComplexity int) int
  2860. Content func(childComplexity int) int
  2861. Medium func(childComplexity int) int
  2862. Source func(childComplexity int) int
  2863. Term func(childComplexity int) int
  2864. }
  2865. UserError struct {
  2866. Field func(childComplexity int) int
  2867. Message func(childComplexity int) int
  2868. }
  2869. VaultCreditCard struct {
  2870. BillingAddress func(childComplexity int) int
  2871. Brand func(childComplexity int) int
  2872. Expired func(childComplexity int) int
  2873. ExpiryMonth func(childComplexity int) int
  2874. ExpiryYear func(childComplexity int) int
  2875. LastDigits func(childComplexity int) int
  2876. Name func(childComplexity int) int
  2877. }
  2878. VaultPaypalBillingAgreement struct {
  2879. Inactive func(childComplexity int) int
  2880. Name func(childComplexity int) int
  2881. PaypalAccountEmail func(childComplexity int) int
  2882. }
  2883. Video struct {
  2884. Alt func(childComplexity int) int
  2885. CreatedAt func(childComplexity int) int
  2886. Duration func(childComplexity int) int
  2887. FileErrors func(childComplexity int) int
  2888. FileStatus func(childComplexity int) int
  2889. Filename func(childComplexity int) int
  2890. ID func(childComplexity int) int
  2891. MediaContentType func(childComplexity int) int
  2892. MediaErrors func(childComplexity int) int
  2893. MediaWarnings func(childComplexity int) int
  2894. OriginalSource func(childComplexity int) int
  2895. Preview func(childComplexity int) int
  2896. Sources func(childComplexity int) int
  2897. Status func(childComplexity int) int
  2898. }
  2899. VideoSource struct {
  2900. FileSize func(childComplexity int) int
  2901. Format func(childComplexity int) int
  2902. Height func(childComplexity int) int
  2903. MimeType func(childComplexity int) int
  2904. URL func(childComplexity int) int
  2905. Width func(childComplexity int) int
  2906. }
  2907. Weight struct {
  2908. Unit func(childComplexity int) int
  2909. Value func(childComplexity int) int
  2910. }
  2911. _Service struct {
  2912. SDL func(childComplexity int) int
  2913. }
  2914. }
  2915. type EntityResolver interface {
  2916. FindProductByID(ctx context.Context, id string) (*Product, error)
  2917. }
  2918. type MutationResolver interface {
  2919. CustomerCreate(ctx context.Context, input CustomerInput) (*CustomerCreatePayload, error)
  2920. }
  2921. type QueryResolver interface {
  2922. Customer(ctx context.Context, id string) (*Customer, error)
  2923. }
  2924. type executableSchema struct {
  2925. resolvers ResolverRoot
  2926. directives DirectiveRoot
  2927. complexity ComplexityRoot
  2928. }
  2929. func (e *executableSchema) Schema() *ast.Schema {
  2930. return parsedSchema
  2931. }
  2932. func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) {
  2933. ec := executionContext{nil, e}
  2934. _ = ec
  2935. switch typeName + "." + field {
  2936. case "AccessScope.description":
  2937. if e.complexity.AccessScope.Description == nil {
  2938. break
  2939. }
  2940. return e.complexity.AccessScope.Description(childComplexity), true
  2941. case "AccessScope.handle":
  2942. if e.complexity.AccessScope.Handle == nil {
  2943. break
  2944. }
  2945. return e.complexity.AccessScope.Handle(childComplexity), true
  2946. case "App.apiKey":
  2947. if e.complexity.App.APIKey == nil {
  2948. break
  2949. }
  2950. return e.complexity.App.APIKey(childComplexity), true
  2951. case "App.appStoreAppUrl":
  2952. if e.complexity.App.AppStoreAppURL == nil {
  2953. break
  2954. }
  2955. return e.complexity.App.AppStoreAppURL(childComplexity), true
  2956. case "App.appStoreDeveloperUrl":
  2957. if e.complexity.App.AppStoreDeveloperURL == nil {
  2958. break
  2959. }
  2960. return e.complexity.App.AppStoreDeveloperURL(childComplexity), true
  2961. case "App.availableAccessScopes":
  2962. if e.complexity.App.AvailableAccessScopes == nil {
  2963. break
  2964. }
  2965. return e.complexity.App.AvailableAccessScopes(childComplexity), true
  2966. case "App.banner":
  2967. if e.complexity.App.Banner == nil {
  2968. break
  2969. }
  2970. return e.complexity.App.Banner(childComplexity), true
  2971. case "App.description":
  2972. if e.complexity.App.Description == nil {
  2973. break
  2974. }
  2975. return e.complexity.App.Description(childComplexity), true
  2976. case "App.developerName":
  2977. if e.complexity.App.DeveloperName == nil {
  2978. break
  2979. }
  2980. return e.complexity.App.DeveloperName(childComplexity), true
  2981. case "App.developerType":
  2982. if e.complexity.App.DeveloperType == nil {
  2983. break
  2984. }
  2985. return e.complexity.App.DeveloperType(childComplexity), true
  2986. case "App.embedded":
  2987. if e.complexity.App.Embedded == nil {
  2988. break
  2989. }
  2990. return e.complexity.App.Embedded(childComplexity), true
  2991. case "App.failedRequirements":
  2992. if e.complexity.App.FailedRequirements == nil {
  2993. break
  2994. }
  2995. return e.complexity.App.FailedRequirements(childComplexity), true
  2996. case "App.features":
  2997. if e.complexity.App.Features == nil {
  2998. break
  2999. }
  3000. return e.complexity.App.Features(childComplexity), true
  3001. case "App.feedback":
  3002. if e.complexity.App.Feedback == nil {
  3003. break
  3004. }
  3005. return e.complexity.App.Feedback(childComplexity), true
  3006. case "App.handle":
  3007. if e.complexity.App.Handle == nil {
  3008. break
  3009. }
  3010. return e.complexity.App.Handle(childComplexity), true
  3011. case "App.id":
  3012. if e.complexity.App.ID == nil {
  3013. break
  3014. }
  3015. return e.complexity.App.ID(childComplexity), true
  3016. case "App.icon":
  3017. if e.complexity.App.Icon == nil {
  3018. break
  3019. }
  3020. return e.complexity.App.Icon(childComplexity), true
  3021. case "App.installUrl":
  3022. if e.complexity.App.InstallURL == nil {
  3023. break
  3024. }
  3025. return e.complexity.App.InstallURL(childComplexity), true
  3026. case "App.installation":
  3027. if e.complexity.App.Installation == nil {
  3028. break
  3029. }
  3030. return e.complexity.App.Installation(childComplexity), true
  3031. case "App.isPostPurchaseAppInUse":
  3032. if e.complexity.App.IsPostPurchaseAppInUse == nil {
  3033. break
  3034. }
  3035. return e.complexity.App.IsPostPurchaseAppInUse(childComplexity), true
  3036. case "App.previouslyInstalled":
  3037. if e.complexity.App.PreviouslyInstalled == nil {
  3038. break
  3039. }
  3040. return e.complexity.App.PreviouslyInstalled(childComplexity), true
  3041. case "App.pricingDetails":
  3042. if e.complexity.App.PricingDetails == nil {
  3043. break
  3044. }
  3045. return e.complexity.App.PricingDetails(childComplexity), true
  3046. case "App.pricingDetailsSummary":
  3047. if e.complexity.App.PricingDetailsSummary == nil {
  3048. break
  3049. }
  3050. return e.complexity.App.PricingDetailsSummary(childComplexity), true
  3051. case "App.privacyPolicyUrl":
  3052. if e.complexity.App.PrivacyPolicyURL == nil {
  3053. break
  3054. }
  3055. return e.complexity.App.PrivacyPolicyURL(childComplexity), true
  3056. case "App.publicCategory":
  3057. if e.complexity.App.PublicCategory == nil {
  3058. break
  3059. }
  3060. return e.complexity.App.PublicCategory(childComplexity), true
  3061. case "App.published":
  3062. if e.complexity.App.Published == nil {
  3063. break
  3064. }
  3065. return e.complexity.App.Published(childComplexity), true
  3066. case "App.requestedAccessScopes":
  3067. if e.complexity.App.RequestedAccessScopes == nil {
  3068. break
  3069. }
  3070. return e.complexity.App.RequestedAccessScopes(childComplexity), true
  3071. case "App.screenshots":
  3072. if e.complexity.App.Screenshots == nil {
  3073. break
  3074. }
  3075. return e.complexity.App.Screenshots(childComplexity), true
  3076. case "App.shopifyDeveloped":
  3077. if e.complexity.App.ShopifyDeveloped == nil {
  3078. break
  3079. }
  3080. return e.complexity.App.ShopifyDeveloped(childComplexity), true
  3081. case "App.title":
  3082. if e.complexity.App.Title == nil {
  3083. break
  3084. }
  3085. return e.complexity.App.Title(childComplexity), true
  3086. case "App.uninstallMessage":
  3087. if e.complexity.App.UninstallMessage == nil {
  3088. break
  3089. }
  3090. return e.complexity.App.UninstallMessage(childComplexity), true
  3091. case "App.webhookApiVersion":
  3092. if e.complexity.App.WebhookAPIVersion == nil {
  3093. break
  3094. }
  3095. return e.complexity.App.WebhookAPIVersion(childComplexity), true
  3096. case "AppConnection.edges":
  3097. if e.complexity.AppConnection.Edges == nil {
  3098. break
  3099. }
  3100. return e.complexity.AppConnection.Edges(childComplexity), true
  3101. case "AppConnection.nodes":
  3102. if e.complexity.AppConnection.Nodes == nil {
  3103. break
  3104. }
  3105. return e.complexity.AppConnection.Nodes(childComplexity), true
  3106. case "AppConnection.pageInfo":
  3107. if e.complexity.AppConnection.PageInfo == nil {
  3108. break
  3109. }
  3110. return e.complexity.AppConnection.PageInfo(childComplexity), true
  3111. case "AppCredit.amount":
  3112. if e.complexity.AppCredit.Amount == nil {
  3113. break
  3114. }
  3115. return e.complexity.AppCredit.Amount(childComplexity), true
  3116. case "AppCredit.createdAt":
  3117. if e.complexity.AppCredit.CreatedAt == nil {
  3118. break
  3119. }
  3120. return e.complexity.AppCredit.CreatedAt(childComplexity), true
  3121. case "AppCredit.description":
  3122. if e.complexity.AppCredit.Description == nil {
  3123. break
  3124. }
  3125. return e.complexity.AppCredit.Description(childComplexity), true
  3126. case "AppCredit.id":
  3127. if e.complexity.AppCredit.ID == nil {
  3128. break
  3129. }
  3130. return e.complexity.AppCredit.ID(childComplexity), true
  3131. case "AppCredit.test":
  3132. if e.complexity.AppCredit.Test == nil {
  3133. break
  3134. }
  3135. return e.complexity.AppCredit.Test(childComplexity), true
  3136. case "AppCreditConnection.edges":
  3137. if e.complexity.AppCreditConnection.Edges == nil {
  3138. break
  3139. }
  3140. return e.complexity.AppCreditConnection.Edges(childComplexity), true
  3141. case "AppCreditConnection.nodes":
  3142. if e.complexity.AppCreditConnection.Nodes == nil {
  3143. break
  3144. }
  3145. return e.complexity.AppCreditConnection.Nodes(childComplexity), true
  3146. case "AppCreditConnection.pageInfo":
  3147. if e.complexity.AppCreditConnection.PageInfo == nil {
  3148. break
  3149. }
  3150. return e.complexity.AppCreditConnection.PageInfo(childComplexity), true
  3151. case "AppCreditEdge.cursor":
  3152. if e.complexity.AppCreditEdge.Cursor == nil {
  3153. break
  3154. }
  3155. return e.complexity.AppCreditEdge.Cursor(childComplexity), true
  3156. case "AppCreditEdge.node":
  3157. if e.complexity.AppCreditEdge.Node == nil {
  3158. break
  3159. }
  3160. return e.complexity.AppCreditEdge.Node(childComplexity), true
  3161. case "AppEdge.cursor":
  3162. if e.complexity.AppEdge.Cursor == nil {
  3163. break
  3164. }
  3165. return e.complexity.AppEdge.Cursor(childComplexity), true
  3166. case "AppEdge.node":
  3167. if e.complexity.AppEdge.Node == nil {
  3168. break
  3169. }
  3170. return e.complexity.AppEdge.Node(childComplexity), true
  3171. case "AppFeedback.app":
  3172. if e.complexity.AppFeedback.App == nil {
  3173. break
  3174. }
  3175. return e.complexity.AppFeedback.App(childComplexity), true
  3176. case "AppFeedback.link":
  3177. if e.complexity.AppFeedback.Link == nil {
  3178. break
  3179. }
  3180. return e.complexity.AppFeedback.Link(childComplexity), true
  3181. case "AppFeedback.messages":
  3182. if e.complexity.AppFeedback.Messages == nil {
  3183. break
  3184. }
  3185. return e.complexity.AppFeedback.Messages(childComplexity), true
  3186. case "AppInstallation.accessScopes":
  3187. if e.complexity.AppInstallation.AccessScopes == nil {
  3188. break
  3189. }
  3190. return e.complexity.AppInstallation.AccessScopes(childComplexity), true
  3191. case "AppInstallation.activeSubscriptions":
  3192. if e.complexity.AppInstallation.ActiveSubscriptions == nil {
  3193. break
  3194. }
  3195. return e.complexity.AppInstallation.ActiveSubscriptions(childComplexity), true
  3196. case "AppInstallation.allSubscriptions":
  3197. if e.complexity.AppInstallation.AllSubscriptions == nil {
  3198. break
  3199. }
  3200. args, err := ec.field_AppInstallation_allSubscriptions_args(context.TODO(), rawArgs)
  3201. if err != nil {
  3202. return 0, false
  3203. }
  3204. return e.complexity.AppInstallation.AllSubscriptions(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*AppSubscriptionSortKeys)), true
  3205. case "AppInstallation.app":
  3206. if e.complexity.AppInstallation.App == nil {
  3207. break
  3208. }
  3209. return e.complexity.AppInstallation.App(childComplexity), true
  3210. case "AppInstallation.credits":
  3211. if e.complexity.AppInstallation.Credits == nil {
  3212. break
  3213. }
  3214. args, err := ec.field_AppInstallation_credits_args(context.TODO(), rawArgs)
  3215. if err != nil {
  3216. return 0, false
  3217. }
  3218. return e.complexity.AppInstallation.Credits(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*AppTransactionSortKeys)), true
  3219. case "AppInstallation.id":
  3220. if e.complexity.AppInstallation.ID == nil {
  3221. break
  3222. }
  3223. return e.complexity.AppInstallation.ID(childComplexity), true
  3224. case "AppInstallation.launchUrl":
  3225. if e.complexity.AppInstallation.LaunchURL == nil {
  3226. break
  3227. }
  3228. return e.complexity.AppInstallation.LaunchURL(childComplexity), true
  3229. case "AppInstallation.metafield":
  3230. if e.complexity.AppInstallation.Metafield == nil {
  3231. break
  3232. }
  3233. args, err := ec.field_AppInstallation_metafield_args(context.TODO(), rawArgs)
  3234. if err != nil {
  3235. return 0, false
  3236. }
  3237. return e.complexity.AppInstallation.Metafield(childComplexity, args["namespace"].(string), args["key"].(string)), true
  3238. case "AppInstallation.metafields":
  3239. if e.complexity.AppInstallation.Metafields == nil {
  3240. break
  3241. }
  3242. args, err := ec.field_AppInstallation_metafields_args(context.TODO(), rawArgs)
  3243. if err != nil {
  3244. return 0, false
  3245. }
  3246. return e.complexity.AppInstallation.Metafields(childComplexity, args["namespace"].(*string), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  3247. case "AppInstallation.oneTimePurchases":
  3248. if e.complexity.AppInstallation.OneTimePurchases == nil {
  3249. break
  3250. }
  3251. args, err := ec.field_AppInstallation_oneTimePurchases_args(context.TODO(), rawArgs)
  3252. if err != nil {
  3253. return 0, false
  3254. }
  3255. return e.complexity.AppInstallation.OneTimePurchases(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*AppTransactionSortKeys)), true
  3256. case "AppInstallation.privateMetafield":
  3257. if e.complexity.AppInstallation.PrivateMetafield == nil {
  3258. break
  3259. }
  3260. args, err := ec.field_AppInstallation_privateMetafield_args(context.TODO(), rawArgs)
  3261. if err != nil {
  3262. return 0, false
  3263. }
  3264. return e.complexity.AppInstallation.PrivateMetafield(childComplexity, args["namespace"].(string), args["key"].(string)), true
  3265. case "AppInstallation.privateMetafields":
  3266. if e.complexity.AppInstallation.PrivateMetafields == nil {
  3267. break
  3268. }
  3269. args, err := ec.field_AppInstallation_privateMetafields_args(context.TODO(), rawArgs)
  3270. if err != nil {
  3271. return 0, false
  3272. }
  3273. return e.complexity.AppInstallation.PrivateMetafields(childComplexity, args["namespace"].(*string), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  3274. case "AppInstallation.publication":
  3275. if e.complexity.AppInstallation.Publication == nil {
  3276. break
  3277. }
  3278. return e.complexity.AppInstallation.Publication(childComplexity), true
  3279. case "AppInstallation.revenueAttributionRecords":
  3280. if e.complexity.AppInstallation.RevenueAttributionRecords == nil {
  3281. break
  3282. }
  3283. args, err := ec.field_AppInstallation_revenueAttributionRecords_args(context.TODO(), rawArgs)
  3284. if err != nil {
  3285. return 0, false
  3286. }
  3287. return e.complexity.AppInstallation.RevenueAttributionRecords(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*AppRevenueAttributionRecordSortKeys)), true
  3288. case "AppInstallation.uninstallUrl":
  3289. if e.complexity.AppInstallation.UninstallURL == nil {
  3290. break
  3291. }
  3292. return e.complexity.AppInstallation.UninstallURL(childComplexity), true
  3293. case "AppPlanV2.pricingDetails":
  3294. if e.complexity.AppPlanV2.PricingDetails == nil {
  3295. break
  3296. }
  3297. return e.complexity.AppPlanV2.PricingDetails(childComplexity), true
  3298. case "AppPurchaseOneTime.createdAt":
  3299. if e.complexity.AppPurchaseOneTime.CreatedAt == nil {
  3300. break
  3301. }
  3302. return e.complexity.AppPurchaseOneTime.CreatedAt(childComplexity), true
  3303. case "AppPurchaseOneTime.id":
  3304. if e.complexity.AppPurchaseOneTime.ID == nil {
  3305. break
  3306. }
  3307. return e.complexity.AppPurchaseOneTime.ID(childComplexity), true
  3308. case "AppPurchaseOneTime.name":
  3309. if e.complexity.AppPurchaseOneTime.Name == nil {
  3310. break
  3311. }
  3312. return e.complexity.AppPurchaseOneTime.Name(childComplexity), true
  3313. case "AppPurchaseOneTime.price":
  3314. if e.complexity.AppPurchaseOneTime.Price == nil {
  3315. break
  3316. }
  3317. return e.complexity.AppPurchaseOneTime.Price(childComplexity), true
  3318. case "AppPurchaseOneTime.status":
  3319. if e.complexity.AppPurchaseOneTime.Status == nil {
  3320. break
  3321. }
  3322. return e.complexity.AppPurchaseOneTime.Status(childComplexity), true
  3323. case "AppPurchaseOneTime.test":
  3324. if e.complexity.AppPurchaseOneTime.Test == nil {
  3325. break
  3326. }
  3327. return e.complexity.AppPurchaseOneTime.Test(childComplexity), true
  3328. case "AppPurchaseOneTimeConnection.edges":
  3329. if e.complexity.AppPurchaseOneTimeConnection.Edges == nil {
  3330. break
  3331. }
  3332. return e.complexity.AppPurchaseOneTimeConnection.Edges(childComplexity), true
  3333. case "AppPurchaseOneTimeConnection.nodes":
  3334. if e.complexity.AppPurchaseOneTimeConnection.Nodes == nil {
  3335. break
  3336. }
  3337. return e.complexity.AppPurchaseOneTimeConnection.Nodes(childComplexity), true
  3338. case "AppPurchaseOneTimeConnection.pageInfo":
  3339. if e.complexity.AppPurchaseOneTimeConnection.PageInfo == nil {
  3340. break
  3341. }
  3342. return e.complexity.AppPurchaseOneTimeConnection.PageInfo(childComplexity), true
  3343. case "AppPurchaseOneTimeEdge.cursor":
  3344. if e.complexity.AppPurchaseOneTimeEdge.Cursor == nil {
  3345. break
  3346. }
  3347. return e.complexity.AppPurchaseOneTimeEdge.Cursor(childComplexity), true
  3348. case "AppPurchaseOneTimeEdge.node":
  3349. if e.complexity.AppPurchaseOneTimeEdge.Node == nil {
  3350. break
  3351. }
  3352. return e.complexity.AppPurchaseOneTimeEdge.Node(childComplexity), true
  3353. case "AppRecurringPricing.discount":
  3354. if e.complexity.AppRecurringPricing.Discount == nil {
  3355. break
  3356. }
  3357. return e.complexity.AppRecurringPricing.Discount(childComplexity), true
  3358. case "AppRecurringPricing.interval":
  3359. if e.complexity.AppRecurringPricing.Interval == nil {
  3360. break
  3361. }
  3362. return e.complexity.AppRecurringPricing.Interval(childComplexity), true
  3363. case "AppRecurringPricing.price":
  3364. if e.complexity.AppRecurringPricing.Price == nil {
  3365. break
  3366. }
  3367. return e.complexity.AppRecurringPricing.Price(childComplexity), true
  3368. case "AppRevenueAttributionRecord.amount":
  3369. if e.complexity.AppRevenueAttributionRecord.Amount == nil {
  3370. break
  3371. }
  3372. return e.complexity.AppRevenueAttributionRecord.Amount(childComplexity), true
  3373. case "AppRevenueAttributionRecord.capturedAt":
  3374. if e.complexity.AppRevenueAttributionRecord.CapturedAt == nil {
  3375. break
  3376. }
  3377. return e.complexity.AppRevenueAttributionRecord.CapturedAt(childComplexity), true
  3378. case "AppRevenueAttributionRecord.createdAt":
  3379. if e.complexity.AppRevenueAttributionRecord.CreatedAt == nil {
  3380. break
  3381. }
  3382. return e.complexity.AppRevenueAttributionRecord.CreatedAt(childComplexity), true
  3383. case "AppRevenueAttributionRecord.id":
  3384. if e.complexity.AppRevenueAttributionRecord.ID == nil {
  3385. break
  3386. }
  3387. return e.complexity.AppRevenueAttributionRecord.ID(childComplexity), true
  3388. case "AppRevenueAttributionRecord.idempotencyKey":
  3389. if e.complexity.AppRevenueAttributionRecord.IdempotencyKey == nil {
  3390. break
  3391. }
  3392. return e.complexity.AppRevenueAttributionRecord.IdempotencyKey(childComplexity), true
  3393. case "AppRevenueAttributionRecord.test":
  3394. if e.complexity.AppRevenueAttributionRecord.Test == nil {
  3395. break
  3396. }
  3397. return e.complexity.AppRevenueAttributionRecord.Test(childComplexity), true
  3398. case "AppRevenueAttributionRecord.type":
  3399. if e.complexity.AppRevenueAttributionRecord.Type == nil {
  3400. break
  3401. }
  3402. return e.complexity.AppRevenueAttributionRecord.Type(childComplexity), true
  3403. case "AppRevenueAttributionRecordConnection.edges":
  3404. if e.complexity.AppRevenueAttributionRecordConnection.Edges == nil {
  3405. break
  3406. }
  3407. return e.complexity.AppRevenueAttributionRecordConnection.Edges(childComplexity), true
  3408. case "AppRevenueAttributionRecordConnection.nodes":
  3409. if e.complexity.AppRevenueAttributionRecordConnection.Nodes == nil {
  3410. break
  3411. }
  3412. return e.complexity.AppRevenueAttributionRecordConnection.Nodes(childComplexity), true
  3413. case "AppRevenueAttributionRecordConnection.pageInfo":
  3414. if e.complexity.AppRevenueAttributionRecordConnection.PageInfo == nil {
  3415. break
  3416. }
  3417. return e.complexity.AppRevenueAttributionRecordConnection.PageInfo(childComplexity), true
  3418. case "AppRevenueAttributionRecordEdge.cursor":
  3419. if e.complexity.AppRevenueAttributionRecordEdge.Cursor == nil {
  3420. break
  3421. }
  3422. return e.complexity.AppRevenueAttributionRecordEdge.Cursor(childComplexity), true
  3423. case "AppRevenueAttributionRecordEdge.node":
  3424. if e.complexity.AppRevenueAttributionRecordEdge.Node == nil {
  3425. break
  3426. }
  3427. return e.complexity.AppRevenueAttributionRecordEdge.Node(childComplexity), true
  3428. case "AppSubscription.createdAt":
  3429. if e.complexity.AppSubscription.CreatedAt == nil {
  3430. break
  3431. }
  3432. return e.complexity.AppSubscription.CreatedAt(childComplexity), true
  3433. case "AppSubscription.currentPeriodEnd":
  3434. if e.complexity.AppSubscription.CurrentPeriodEnd == nil {
  3435. break
  3436. }
  3437. return e.complexity.AppSubscription.CurrentPeriodEnd(childComplexity), true
  3438. case "AppSubscription.id":
  3439. if e.complexity.AppSubscription.ID == nil {
  3440. break
  3441. }
  3442. return e.complexity.AppSubscription.ID(childComplexity), true
  3443. case "AppSubscription.lineItems":
  3444. if e.complexity.AppSubscription.LineItems == nil {
  3445. break
  3446. }
  3447. return e.complexity.AppSubscription.LineItems(childComplexity), true
  3448. case "AppSubscription.name":
  3449. if e.complexity.AppSubscription.Name == nil {
  3450. break
  3451. }
  3452. return e.complexity.AppSubscription.Name(childComplexity), true
  3453. case "AppSubscription.returnUrl":
  3454. if e.complexity.AppSubscription.ReturnURL == nil {
  3455. break
  3456. }
  3457. return e.complexity.AppSubscription.ReturnURL(childComplexity), true
  3458. case "AppSubscription.status":
  3459. if e.complexity.AppSubscription.Status == nil {
  3460. break
  3461. }
  3462. return e.complexity.AppSubscription.Status(childComplexity), true
  3463. case "AppSubscription.test":
  3464. if e.complexity.AppSubscription.Test == nil {
  3465. break
  3466. }
  3467. return e.complexity.AppSubscription.Test(childComplexity), true
  3468. case "AppSubscription.trialDays":
  3469. if e.complexity.AppSubscription.TrialDays == nil {
  3470. break
  3471. }
  3472. return e.complexity.AppSubscription.TrialDays(childComplexity), true
  3473. case "AppSubscriptionConnection.edges":
  3474. if e.complexity.AppSubscriptionConnection.Edges == nil {
  3475. break
  3476. }
  3477. return e.complexity.AppSubscriptionConnection.Edges(childComplexity), true
  3478. case "AppSubscriptionConnection.nodes":
  3479. if e.complexity.AppSubscriptionConnection.Nodes == nil {
  3480. break
  3481. }
  3482. return e.complexity.AppSubscriptionConnection.Nodes(childComplexity), true
  3483. case "AppSubscriptionConnection.pageInfo":
  3484. if e.complexity.AppSubscriptionConnection.PageInfo == nil {
  3485. break
  3486. }
  3487. return e.complexity.AppSubscriptionConnection.PageInfo(childComplexity), true
  3488. case "AppSubscriptionDiscount.durationLimitInIntervals":
  3489. if e.complexity.AppSubscriptionDiscount.DurationLimitInIntervals == nil {
  3490. break
  3491. }
  3492. return e.complexity.AppSubscriptionDiscount.DurationLimitInIntervals(childComplexity), true
  3493. case "AppSubscriptionDiscount.priceAfterDiscount":
  3494. if e.complexity.AppSubscriptionDiscount.PriceAfterDiscount == nil {
  3495. break
  3496. }
  3497. return e.complexity.AppSubscriptionDiscount.PriceAfterDiscount(childComplexity), true
  3498. case "AppSubscriptionDiscount.remainingDurationInIntervals":
  3499. if e.complexity.AppSubscriptionDiscount.RemainingDurationInIntervals == nil {
  3500. break
  3501. }
  3502. return e.complexity.AppSubscriptionDiscount.RemainingDurationInIntervals(childComplexity), true
  3503. case "AppSubscriptionDiscount.value":
  3504. if e.complexity.AppSubscriptionDiscount.Value == nil {
  3505. break
  3506. }
  3507. return e.complexity.AppSubscriptionDiscount.Value(childComplexity), true
  3508. case "AppSubscriptionDiscountAmount.amount":
  3509. if e.complexity.AppSubscriptionDiscountAmount.Amount == nil {
  3510. break
  3511. }
  3512. return e.complexity.AppSubscriptionDiscountAmount.Amount(childComplexity), true
  3513. case "AppSubscriptionDiscountPercentage.percentage":
  3514. if e.complexity.AppSubscriptionDiscountPercentage.Percentage == nil {
  3515. break
  3516. }
  3517. return e.complexity.AppSubscriptionDiscountPercentage.Percentage(childComplexity), true
  3518. case "AppSubscriptionEdge.cursor":
  3519. if e.complexity.AppSubscriptionEdge.Cursor == nil {
  3520. break
  3521. }
  3522. return e.complexity.AppSubscriptionEdge.Cursor(childComplexity), true
  3523. case "AppSubscriptionEdge.node":
  3524. if e.complexity.AppSubscriptionEdge.Node == nil {
  3525. break
  3526. }
  3527. return e.complexity.AppSubscriptionEdge.Node(childComplexity), true
  3528. case "AppSubscriptionLineItem.id":
  3529. if e.complexity.AppSubscriptionLineItem.ID == nil {
  3530. break
  3531. }
  3532. return e.complexity.AppSubscriptionLineItem.ID(childComplexity), true
  3533. case "AppSubscriptionLineItem.plan":
  3534. if e.complexity.AppSubscriptionLineItem.Plan == nil {
  3535. break
  3536. }
  3537. return e.complexity.AppSubscriptionLineItem.Plan(childComplexity), true
  3538. case "AppSubscriptionLineItem.usageRecords":
  3539. if e.complexity.AppSubscriptionLineItem.UsageRecords == nil {
  3540. break
  3541. }
  3542. args, err := ec.field_AppSubscriptionLineItem_usageRecords_args(context.TODO(), rawArgs)
  3543. if err != nil {
  3544. return 0, false
  3545. }
  3546. return e.complexity.AppSubscriptionLineItem.UsageRecords(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*AppUsageRecordSortKeys)), true
  3547. case "AppUsagePricing.balanceUsed":
  3548. if e.complexity.AppUsagePricing.BalanceUsed == nil {
  3549. break
  3550. }
  3551. return e.complexity.AppUsagePricing.BalanceUsed(childComplexity), true
  3552. case "AppUsagePricing.cappedAmount":
  3553. if e.complexity.AppUsagePricing.CappedAmount == nil {
  3554. break
  3555. }
  3556. return e.complexity.AppUsagePricing.CappedAmount(childComplexity), true
  3557. case "AppUsagePricing.interval":
  3558. if e.complexity.AppUsagePricing.Interval == nil {
  3559. break
  3560. }
  3561. return e.complexity.AppUsagePricing.Interval(childComplexity), true
  3562. case "AppUsagePricing.terms":
  3563. if e.complexity.AppUsagePricing.Terms == nil {
  3564. break
  3565. }
  3566. return e.complexity.AppUsagePricing.Terms(childComplexity), true
  3567. case "AppUsageRecord.createdAt":
  3568. if e.complexity.AppUsageRecord.CreatedAt == nil {
  3569. break
  3570. }
  3571. return e.complexity.AppUsageRecord.CreatedAt(childComplexity), true
  3572. case "AppUsageRecord.description":
  3573. if e.complexity.AppUsageRecord.Description == nil {
  3574. break
  3575. }
  3576. return e.complexity.AppUsageRecord.Description(childComplexity), true
  3577. case "AppUsageRecord.id":
  3578. if e.complexity.AppUsageRecord.ID == nil {
  3579. break
  3580. }
  3581. return e.complexity.AppUsageRecord.ID(childComplexity), true
  3582. case "AppUsageRecord.price":
  3583. if e.complexity.AppUsageRecord.Price == nil {
  3584. break
  3585. }
  3586. return e.complexity.AppUsageRecord.Price(childComplexity), true
  3587. case "AppUsageRecord.subscriptionLineItem":
  3588. if e.complexity.AppUsageRecord.SubscriptionLineItem == nil {
  3589. break
  3590. }
  3591. return e.complexity.AppUsageRecord.SubscriptionLineItem(childComplexity), true
  3592. case "AppUsageRecordConnection.edges":
  3593. if e.complexity.AppUsageRecordConnection.Edges == nil {
  3594. break
  3595. }
  3596. return e.complexity.AppUsageRecordConnection.Edges(childComplexity), true
  3597. case "AppUsageRecordConnection.nodes":
  3598. if e.complexity.AppUsageRecordConnection.Nodes == nil {
  3599. break
  3600. }
  3601. return e.complexity.AppUsageRecordConnection.Nodes(childComplexity), true
  3602. case "AppUsageRecordConnection.pageInfo":
  3603. if e.complexity.AppUsageRecordConnection.PageInfo == nil {
  3604. break
  3605. }
  3606. return e.complexity.AppUsageRecordConnection.PageInfo(childComplexity), true
  3607. case "AppUsageRecordEdge.cursor":
  3608. if e.complexity.AppUsageRecordEdge.Cursor == nil {
  3609. break
  3610. }
  3611. return e.complexity.AppUsageRecordEdge.Cursor(childComplexity), true
  3612. case "AppUsageRecordEdge.node":
  3613. if e.complexity.AppUsageRecordEdge.Node == nil {
  3614. break
  3615. }
  3616. return e.complexity.AppUsageRecordEdge.Node(childComplexity), true
  3617. case "Attribute.key":
  3618. if e.complexity.Attribute.Key == nil {
  3619. break
  3620. }
  3621. return e.complexity.Attribute.Key(childComplexity), true
  3622. case "Attribute.value":
  3623. if e.complexity.Attribute.Value == nil {
  3624. break
  3625. }
  3626. return e.complexity.Attribute.Value(childComplexity), true
  3627. case "AutomaticDiscountApplication.allocationMethod":
  3628. if e.complexity.AutomaticDiscountApplication.AllocationMethod == nil {
  3629. break
  3630. }
  3631. return e.complexity.AutomaticDiscountApplication.AllocationMethod(childComplexity), true
  3632. case "AutomaticDiscountApplication.index":
  3633. if e.complexity.AutomaticDiscountApplication.Index == nil {
  3634. break
  3635. }
  3636. return e.complexity.AutomaticDiscountApplication.Index(childComplexity), true
  3637. case "AutomaticDiscountApplication.targetSelection":
  3638. if e.complexity.AutomaticDiscountApplication.TargetSelection == nil {
  3639. break
  3640. }
  3641. return e.complexity.AutomaticDiscountApplication.TargetSelection(childComplexity), true
  3642. case "AutomaticDiscountApplication.targetType":
  3643. if e.complexity.AutomaticDiscountApplication.TargetType == nil {
  3644. break
  3645. }
  3646. return e.complexity.AutomaticDiscountApplication.TargetType(childComplexity), true
  3647. case "AutomaticDiscountApplication.title":
  3648. if e.complexity.AutomaticDiscountApplication.Title == nil {
  3649. break
  3650. }
  3651. return e.complexity.AutomaticDiscountApplication.Title(childComplexity), true
  3652. case "AutomaticDiscountApplication.value":
  3653. if e.complexity.AutomaticDiscountApplication.Value == nil {
  3654. break
  3655. }
  3656. return e.complexity.AutomaticDiscountApplication.Value(childComplexity), true
  3657. case "AvailableChannelDefinitionsByChannel.channelDefinitions":
  3658. if e.complexity.AvailableChannelDefinitionsByChannel.ChannelDefinitions == nil {
  3659. break
  3660. }
  3661. return e.complexity.AvailableChannelDefinitionsByChannel.ChannelDefinitions(childComplexity), true
  3662. case "AvailableChannelDefinitionsByChannel.channelName":
  3663. if e.complexity.AvailableChannelDefinitionsByChannel.ChannelName == nil {
  3664. break
  3665. }
  3666. return e.complexity.AvailableChannelDefinitionsByChannel.ChannelName(childComplexity), true
  3667. case "BasicEvent.appTitle":
  3668. if e.complexity.BasicEvent.AppTitle == nil {
  3669. break
  3670. }
  3671. return e.complexity.BasicEvent.AppTitle(childComplexity), true
  3672. case "BasicEvent.attributeToApp":
  3673. if e.complexity.BasicEvent.AttributeToApp == nil {
  3674. break
  3675. }
  3676. return e.complexity.BasicEvent.AttributeToApp(childComplexity), true
  3677. case "BasicEvent.attributeToUser":
  3678. if e.complexity.BasicEvent.AttributeToUser == nil {
  3679. break
  3680. }
  3681. return e.complexity.BasicEvent.AttributeToUser(childComplexity), true
  3682. case "BasicEvent.createdAt":
  3683. if e.complexity.BasicEvent.CreatedAt == nil {
  3684. break
  3685. }
  3686. return e.complexity.BasicEvent.CreatedAt(childComplexity), true
  3687. case "BasicEvent.criticalAlert":
  3688. if e.complexity.BasicEvent.CriticalAlert == nil {
  3689. break
  3690. }
  3691. return e.complexity.BasicEvent.CriticalAlert(childComplexity), true
  3692. case "BasicEvent.id":
  3693. if e.complexity.BasicEvent.ID == nil {
  3694. break
  3695. }
  3696. return e.complexity.BasicEvent.ID(childComplexity), true
  3697. case "BasicEvent.message":
  3698. if e.complexity.BasicEvent.Message == nil {
  3699. break
  3700. }
  3701. return e.complexity.BasicEvent.Message(childComplexity), true
  3702. case "BuyerExperienceConfiguration.checkoutToDraft":
  3703. if e.complexity.BuyerExperienceConfiguration.CheckoutToDraft == nil {
  3704. break
  3705. }
  3706. return e.complexity.BuyerExperienceConfiguration.CheckoutToDraft(childComplexity), true
  3707. case "BuyerExperienceConfiguration.payNowOnly":
  3708. if e.complexity.BuyerExperienceConfiguration.PayNowOnly == nil {
  3709. break
  3710. }
  3711. return e.complexity.BuyerExperienceConfiguration.PayNowOnly(childComplexity), true
  3712. case "BuyerExperienceConfiguration.paymentTermsTemplate":
  3713. if e.complexity.BuyerExperienceConfiguration.PaymentTermsTemplate == nil {
  3714. break
  3715. }
  3716. return e.complexity.BuyerExperienceConfiguration.PaymentTermsTemplate(childComplexity), true
  3717. case "ChannelDefinition.channelName":
  3718. if e.complexity.ChannelDefinition.ChannelName == nil {
  3719. break
  3720. }
  3721. return e.complexity.ChannelDefinition.ChannelName(childComplexity), true
  3722. case "ChannelDefinition.handle":
  3723. if e.complexity.ChannelDefinition.Handle == nil {
  3724. break
  3725. }
  3726. return e.complexity.ChannelDefinition.Handle(childComplexity), true
  3727. case "ChannelDefinition.id":
  3728. if e.complexity.ChannelDefinition.ID == nil {
  3729. break
  3730. }
  3731. return e.complexity.ChannelDefinition.ID(childComplexity), true
  3732. case "ChannelDefinition.svgIcon":
  3733. if e.complexity.ChannelDefinition.SVGIcon == nil {
  3734. break
  3735. }
  3736. return e.complexity.ChannelDefinition.SVGIcon(childComplexity), true
  3737. case "ChannelDefinition.subChannelName":
  3738. if e.complexity.ChannelDefinition.SubChannelName == nil {
  3739. break
  3740. }
  3741. return e.complexity.ChannelDefinition.SubChannelName(childComplexity), true
  3742. case "ChannelInformation.app":
  3743. if e.complexity.ChannelInformation.App == nil {
  3744. break
  3745. }
  3746. return e.complexity.ChannelInformation.App(childComplexity), true
  3747. case "ChannelInformation.channelDefinition":
  3748. if e.complexity.ChannelInformation.ChannelDefinition == nil {
  3749. break
  3750. }
  3751. return e.complexity.ChannelInformation.ChannelDefinition(childComplexity), true
  3752. case "ChannelInformation.channelId":
  3753. if e.complexity.ChannelInformation.ChannelID == nil {
  3754. break
  3755. }
  3756. return e.complexity.ChannelInformation.ChannelID(childComplexity), true
  3757. case "ChannelInformation.id":
  3758. if e.complexity.ChannelInformation.ID == nil {
  3759. break
  3760. }
  3761. return e.complexity.ChannelInformation.ID(childComplexity), true
  3762. case "Collection.availablePublicationCount":
  3763. if e.complexity.Collection.AvailablePublicationCount == nil {
  3764. break
  3765. }
  3766. return e.complexity.Collection.AvailablePublicationCount(childComplexity), true
  3767. case "Collection.description":
  3768. if e.complexity.Collection.Description == nil {
  3769. break
  3770. }
  3771. args, err := ec.field_Collection_description_args(context.TODO(), rawArgs)
  3772. if err != nil {
  3773. return 0, false
  3774. }
  3775. return e.complexity.Collection.Description(childComplexity, args["truncateAt"].(*int)), true
  3776. case "Collection.descriptionHtml":
  3777. if e.complexity.Collection.DescriptionHTML == nil {
  3778. break
  3779. }
  3780. return e.complexity.Collection.DescriptionHTML(childComplexity), true
  3781. case "Collection.feedback":
  3782. if e.complexity.Collection.Feedback == nil {
  3783. break
  3784. }
  3785. return e.complexity.Collection.Feedback(childComplexity), true
  3786. case "Collection.handle":
  3787. if e.complexity.Collection.Handle == nil {
  3788. break
  3789. }
  3790. return e.complexity.Collection.Handle(childComplexity), true
  3791. case "Collection.hasProduct":
  3792. if e.complexity.Collection.HasProduct == nil {
  3793. break
  3794. }
  3795. args, err := ec.field_Collection_hasProduct_args(context.TODO(), rawArgs)
  3796. if err != nil {
  3797. return 0, false
  3798. }
  3799. return e.complexity.Collection.HasProduct(childComplexity, args["id"].(string)), true
  3800. case "Collection.id":
  3801. if e.complexity.Collection.ID == nil {
  3802. break
  3803. }
  3804. return e.complexity.Collection.ID(childComplexity), true
  3805. case "Collection.image":
  3806. if e.complexity.Collection.Image == nil {
  3807. break
  3808. }
  3809. return e.complexity.Collection.Image(childComplexity), true
  3810. case "Collection.legacyResourceId":
  3811. if e.complexity.Collection.LegacyResourceID == nil {
  3812. break
  3813. }
  3814. return e.complexity.Collection.LegacyResourceID(childComplexity), true
  3815. case "Collection.metafield":
  3816. if e.complexity.Collection.Metafield == nil {
  3817. break
  3818. }
  3819. args, err := ec.field_Collection_metafield_args(context.TODO(), rawArgs)
  3820. if err != nil {
  3821. return 0, false
  3822. }
  3823. return e.complexity.Collection.Metafield(childComplexity, args["namespace"].(string), args["key"].(string)), true
  3824. case "Collection.metafieldDefinitions":
  3825. if e.complexity.Collection.MetafieldDefinitions == nil {
  3826. break
  3827. }
  3828. args, err := ec.field_Collection_metafieldDefinitions_args(context.TODO(), rawArgs)
  3829. if err != nil {
  3830. return 0, false
  3831. }
  3832. return e.complexity.Collection.MetafieldDefinitions(childComplexity, args["namespace"].(*string), args["pinnedStatus"].(*MetafieldDefinitionPinnedStatus), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*MetafieldDefinitionSortKeys), args["query"].(*string)), true
  3833. case "Collection.metafields":
  3834. if e.complexity.Collection.Metafields == nil {
  3835. break
  3836. }
  3837. args, err := ec.field_Collection_metafields_args(context.TODO(), rawArgs)
  3838. if err != nil {
  3839. return 0, false
  3840. }
  3841. return e.complexity.Collection.Metafields(childComplexity, args["namespace"].(*string), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  3842. case "Collection.privateMetafield":
  3843. if e.complexity.Collection.PrivateMetafield == nil {
  3844. break
  3845. }
  3846. args, err := ec.field_Collection_privateMetafield_args(context.TODO(), rawArgs)
  3847. if err != nil {
  3848. return 0, false
  3849. }
  3850. return e.complexity.Collection.PrivateMetafield(childComplexity, args["namespace"].(string), args["key"].(string)), true
  3851. case "Collection.privateMetafields":
  3852. if e.complexity.Collection.PrivateMetafields == nil {
  3853. break
  3854. }
  3855. args, err := ec.field_Collection_privateMetafields_args(context.TODO(), rawArgs)
  3856. if err != nil {
  3857. return 0, false
  3858. }
  3859. return e.complexity.Collection.PrivateMetafields(childComplexity, args["namespace"].(*string), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  3860. case "Collection.products":
  3861. if e.complexity.Collection.Products == nil {
  3862. break
  3863. }
  3864. args, err := ec.field_Collection_products_args(context.TODO(), rawArgs)
  3865. if err != nil {
  3866. return 0, false
  3867. }
  3868. return e.complexity.Collection.Products(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*ProductCollectionSortKeys)), true
  3869. case "Collection.productsCount":
  3870. if e.complexity.Collection.ProductsCount == nil {
  3871. break
  3872. }
  3873. return e.complexity.Collection.ProductsCount(childComplexity), true
  3874. case "Collection.publicationCount":
  3875. if e.complexity.Collection.PublicationCount == nil {
  3876. break
  3877. }
  3878. args, err := ec.field_Collection_publicationCount_args(context.TODO(), rawArgs)
  3879. if err != nil {
  3880. return 0, false
  3881. }
  3882. return e.complexity.Collection.PublicationCount(childComplexity, args["onlyPublished"].(*bool)), true
  3883. case "Collection.publishedOnCurrentPublication":
  3884. if e.complexity.Collection.PublishedOnCurrentPublication == nil {
  3885. break
  3886. }
  3887. return e.complexity.Collection.PublishedOnCurrentPublication(childComplexity), true
  3888. case "Collection.publishedOnPublication":
  3889. if e.complexity.Collection.PublishedOnPublication == nil {
  3890. break
  3891. }
  3892. args, err := ec.field_Collection_publishedOnPublication_args(context.TODO(), rawArgs)
  3893. if err != nil {
  3894. return 0, false
  3895. }
  3896. return e.complexity.Collection.PublishedOnPublication(childComplexity, args["publicationId"].(string)), true
  3897. case "Collection.resourcePublications":
  3898. if e.complexity.Collection.ResourcePublications == nil {
  3899. break
  3900. }
  3901. args, err := ec.field_Collection_resourcePublications_args(context.TODO(), rawArgs)
  3902. if err != nil {
  3903. return 0, false
  3904. }
  3905. return e.complexity.Collection.ResourcePublications(childComplexity, args["onlyPublished"].(*bool), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  3906. case "Collection.resourcePublicationsV2":
  3907. if e.complexity.Collection.ResourcePublicationsV2 == nil {
  3908. break
  3909. }
  3910. args, err := ec.field_Collection_resourcePublicationsV2_args(context.TODO(), rawArgs)
  3911. if err != nil {
  3912. return 0, false
  3913. }
  3914. return e.complexity.Collection.ResourcePublicationsV2(childComplexity, args["onlyPublished"].(*bool), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  3915. case "Collection.ruleSet":
  3916. if e.complexity.Collection.RuleSet == nil {
  3917. break
  3918. }
  3919. return e.complexity.Collection.RuleSet(childComplexity), true
  3920. case "Collection.seo":
  3921. if e.complexity.Collection.Seo == nil {
  3922. break
  3923. }
  3924. return e.complexity.Collection.Seo(childComplexity), true
  3925. case "Collection.sortOrder":
  3926. if e.complexity.Collection.SortOrder == nil {
  3927. break
  3928. }
  3929. return e.complexity.Collection.SortOrder(childComplexity), true
  3930. case "Collection.templateSuffix":
  3931. if e.complexity.Collection.TemplateSuffix == nil {
  3932. break
  3933. }
  3934. return e.complexity.Collection.TemplateSuffix(childComplexity), true
  3935. case "Collection.title":
  3936. if e.complexity.Collection.Title == nil {
  3937. break
  3938. }
  3939. return e.complexity.Collection.Title(childComplexity), true
  3940. case "Collection.translations":
  3941. if e.complexity.Collection.Translations == nil {
  3942. break
  3943. }
  3944. args, err := ec.field_Collection_translations_args(context.TODO(), rawArgs)
  3945. if err != nil {
  3946. return 0, false
  3947. }
  3948. return e.complexity.Collection.Translations(childComplexity, args["locale"].(string), args["marketId"].(*string)), true
  3949. case "Collection.unpublishedPublications":
  3950. if e.complexity.Collection.UnpublishedPublications == nil {
  3951. break
  3952. }
  3953. args, err := ec.field_Collection_unpublishedPublications_args(context.TODO(), rawArgs)
  3954. if err != nil {
  3955. return 0, false
  3956. }
  3957. return e.complexity.Collection.UnpublishedPublications(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  3958. case "Collection.updatedAt":
  3959. if e.complexity.Collection.UpdatedAt == nil {
  3960. break
  3961. }
  3962. return e.complexity.Collection.UpdatedAt(childComplexity), true
  3963. case "CollectionConnection.edges":
  3964. if e.complexity.CollectionConnection.Edges == nil {
  3965. break
  3966. }
  3967. return e.complexity.CollectionConnection.Edges(childComplexity), true
  3968. case "CollectionConnection.nodes":
  3969. if e.complexity.CollectionConnection.Nodes == nil {
  3970. break
  3971. }
  3972. return e.complexity.CollectionConnection.Nodes(childComplexity), true
  3973. case "CollectionConnection.pageInfo":
  3974. if e.complexity.CollectionConnection.PageInfo == nil {
  3975. break
  3976. }
  3977. return e.complexity.CollectionConnection.PageInfo(childComplexity), true
  3978. case "CollectionEdge.cursor":
  3979. if e.complexity.CollectionEdge.Cursor == nil {
  3980. break
  3981. }
  3982. return e.complexity.CollectionEdge.Cursor(childComplexity), true
  3983. case "CollectionEdge.node":
  3984. if e.complexity.CollectionEdge.Node == nil {
  3985. break
  3986. }
  3987. return e.complexity.CollectionEdge.Node(childComplexity), true
  3988. case "CollectionRule.appliedDisjunctively":
  3989. if e.complexity.CollectionRule.AppliedDisjunctively == nil {
  3990. break
  3991. }
  3992. return e.complexity.CollectionRule.AppliedDisjunctively(childComplexity), true
  3993. case "CollectionRule.rules":
  3994. if e.complexity.CollectionRule.Rules == nil {
  3995. break
  3996. }
  3997. return e.complexity.CollectionRule.Rules(childComplexity), true
  3998. case "CollectionRuleSet.appliedDisjunctively":
  3999. if e.complexity.CollectionRuleSet.AppliedDisjunctively == nil {
  4000. break
  4001. }
  4002. return e.complexity.CollectionRuleSet.AppliedDisjunctively(childComplexity), true
  4003. case "CollectionRuleSet.rules":
  4004. if e.complexity.CollectionRuleSet.Rules == nil {
  4005. break
  4006. }
  4007. return e.complexity.CollectionRuleSet.Rules(childComplexity), true
  4008. case "CommentEvent.appTitle":
  4009. if e.complexity.CommentEvent.AppTitle == nil {
  4010. break
  4011. }
  4012. return e.complexity.CommentEvent.AppTitle(childComplexity), true
  4013. case "CommentEvent.attachments":
  4014. if e.complexity.CommentEvent.Attachments == nil {
  4015. break
  4016. }
  4017. return e.complexity.CommentEvent.Attachments(childComplexity), true
  4018. case "CommentEvent.attributeToApp":
  4019. if e.complexity.CommentEvent.AttributeToApp == nil {
  4020. break
  4021. }
  4022. return e.complexity.CommentEvent.AttributeToApp(childComplexity), true
  4023. case "CommentEvent.attributeToUser":
  4024. if e.complexity.CommentEvent.AttributeToUser == nil {
  4025. break
  4026. }
  4027. return e.complexity.CommentEvent.AttributeToUser(childComplexity), true
  4028. case "CommentEvent.author":
  4029. if e.complexity.CommentEvent.Author == nil {
  4030. break
  4031. }
  4032. return e.complexity.CommentEvent.Author(childComplexity), true
  4033. case "CommentEvent.canDelete":
  4034. if e.complexity.CommentEvent.CanDelete == nil {
  4035. break
  4036. }
  4037. return e.complexity.CommentEvent.CanDelete(childComplexity), true
  4038. case "CommentEvent.canEdit":
  4039. if e.complexity.CommentEvent.CanEdit == nil {
  4040. break
  4041. }
  4042. return e.complexity.CommentEvent.CanEdit(childComplexity), true
  4043. case "CommentEvent.createdAt":
  4044. if e.complexity.CommentEvent.CreatedAt == nil {
  4045. break
  4046. }
  4047. return e.complexity.CommentEvent.CreatedAt(childComplexity), true
  4048. case "CommentEvent.criticalAlert":
  4049. if e.complexity.CommentEvent.CriticalAlert == nil {
  4050. break
  4051. }
  4052. return e.complexity.CommentEvent.CriticalAlert(childComplexity), true
  4053. case "CommentEvent.edited":
  4054. if e.complexity.CommentEvent.Edited == nil {
  4055. break
  4056. }
  4057. return e.complexity.CommentEvent.Edited(childComplexity), true
  4058. case "CommentEvent.embed":
  4059. if e.complexity.CommentEvent.Embed == nil {
  4060. break
  4061. }
  4062. return e.complexity.CommentEvent.Embed(childComplexity), true
  4063. case "CommentEvent.id":
  4064. if e.complexity.CommentEvent.ID == nil {
  4065. break
  4066. }
  4067. return e.complexity.CommentEvent.ID(childComplexity), true
  4068. case "CommentEvent.message":
  4069. if e.complexity.CommentEvent.Message == nil {
  4070. break
  4071. }
  4072. return e.complexity.CommentEvent.Message(childComplexity), true
  4073. case "CommentEvent.rawMessage":
  4074. if e.complexity.CommentEvent.RawMessage == nil {
  4075. break
  4076. }
  4077. return e.complexity.CommentEvent.RawMessage(childComplexity), true
  4078. case "CommentEvent.subject":
  4079. if e.complexity.CommentEvent.Subject == nil {
  4080. break
  4081. }
  4082. return e.complexity.CommentEvent.Subject(childComplexity), true
  4083. case "CommentEventAttachment.fileExtension":
  4084. if e.complexity.CommentEventAttachment.FileExtension == nil {
  4085. break
  4086. }
  4087. return e.complexity.CommentEventAttachment.FileExtension(childComplexity), true
  4088. case "CommentEventAttachment.id":
  4089. if e.complexity.CommentEventAttachment.ID == nil {
  4090. break
  4091. }
  4092. return e.complexity.CommentEventAttachment.ID(childComplexity), true
  4093. case "CommentEventAttachment.image":
  4094. if e.complexity.CommentEventAttachment.Image == nil {
  4095. break
  4096. }
  4097. return e.complexity.CommentEventAttachment.Image(childComplexity), true
  4098. case "CommentEventAttachment.name":
  4099. if e.complexity.CommentEventAttachment.Name == nil {
  4100. break
  4101. }
  4102. return e.complexity.CommentEventAttachment.Name(childComplexity), true
  4103. case "CommentEventAttachment.size":
  4104. if e.complexity.CommentEventAttachment.Size == nil {
  4105. break
  4106. }
  4107. return e.complexity.CommentEventAttachment.Size(childComplexity), true
  4108. case "CommentEventAttachment.url":
  4109. if e.complexity.CommentEventAttachment.URL == nil {
  4110. break
  4111. }
  4112. return e.complexity.CommentEventAttachment.URL(childComplexity), true
  4113. case "Company.contactCount":
  4114. if e.complexity.Company.ContactCount == nil {
  4115. break
  4116. }
  4117. return e.complexity.Company.ContactCount(childComplexity), true
  4118. case "Company.contactRoles":
  4119. if e.complexity.Company.ContactRoles == nil {
  4120. break
  4121. }
  4122. args, err := ec.field_Company_contactRoles_args(context.TODO(), rawArgs)
  4123. if err != nil {
  4124. return 0, false
  4125. }
  4126. return e.complexity.Company.ContactRoles(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*CompanyContactRoleSortKeys)), true
  4127. case "Company.contacts":
  4128. if e.complexity.Company.Contacts == nil {
  4129. break
  4130. }
  4131. args, err := ec.field_Company_contacts_args(context.TODO(), rawArgs)
  4132. if err != nil {
  4133. return 0, false
  4134. }
  4135. return e.complexity.Company.Contacts(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*CompanyContactSortKeys), args["query"].(*string)), true
  4136. case "Company.createdAt":
  4137. if e.complexity.Company.CreatedAt == nil {
  4138. break
  4139. }
  4140. return e.complexity.Company.CreatedAt(childComplexity), true
  4141. case "Company.customerSince":
  4142. if e.complexity.Company.CustomerSince == nil {
  4143. break
  4144. }
  4145. return e.complexity.Company.CustomerSince(childComplexity), true
  4146. case "Company.defaultCursor":
  4147. if e.complexity.Company.DefaultCursor == nil {
  4148. break
  4149. }
  4150. return e.complexity.Company.DefaultCursor(childComplexity), true
  4151. case "Company.defaultRole":
  4152. if e.complexity.Company.DefaultRole == nil {
  4153. break
  4154. }
  4155. return e.complexity.Company.DefaultRole(childComplexity), true
  4156. case "Company.draftOrders":
  4157. if e.complexity.Company.DraftOrders == nil {
  4158. break
  4159. }
  4160. args, err := ec.field_Company_draftOrders_args(context.TODO(), rawArgs)
  4161. if err != nil {
  4162. return 0, false
  4163. }
  4164. return e.complexity.Company.DraftOrders(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*DraftOrderSortKeys), args["query"].(*string)), true
  4165. case "Company.events":
  4166. if e.complexity.Company.Events == nil {
  4167. break
  4168. }
  4169. args, err := ec.field_Company_events_args(context.TODO(), rawArgs)
  4170. if err != nil {
  4171. return 0, false
  4172. }
  4173. return e.complexity.Company.Events(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*EventSortKeys), args["query"].(*string)), true
  4174. case "Company.externalId":
  4175. if e.complexity.Company.ExternalID == nil {
  4176. break
  4177. }
  4178. return e.complexity.Company.ExternalID(childComplexity), true
  4179. case "Company.hasTimelineComment":
  4180. if e.complexity.Company.HasTimelineComment == nil {
  4181. break
  4182. }
  4183. return e.complexity.Company.HasTimelineComment(childComplexity), true
  4184. case "Company.id":
  4185. if e.complexity.Company.ID == nil {
  4186. break
  4187. }
  4188. return e.complexity.Company.ID(childComplexity), true
  4189. case "Company.lifetimeDuration":
  4190. if e.complexity.Company.LifetimeDuration == nil {
  4191. break
  4192. }
  4193. return e.complexity.Company.LifetimeDuration(childComplexity), true
  4194. case "Company.locationCount":
  4195. if e.complexity.Company.LocationCount == nil {
  4196. break
  4197. }
  4198. return e.complexity.Company.LocationCount(childComplexity), true
  4199. case "Company.locations":
  4200. if e.complexity.Company.Locations == nil {
  4201. break
  4202. }
  4203. args, err := ec.field_Company_locations_args(context.TODO(), rawArgs)
  4204. if err != nil {
  4205. return 0, false
  4206. }
  4207. return e.complexity.Company.Locations(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*CompanyLocationSortKeys), args["query"].(*string)), true
  4208. case "Company.mainContact":
  4209. if e.complexity.Company.MainContact == nil {
  4210. break
  4211. }
  4212. return e.complexity.Company.MainContact(childComplexity), true
  4213. case "Company.name":
  4214. if e.complexity.Company.Name == nil {
  4215. break
  4216. }
  4217. return e.complexity.Company.Name(childComplexity), true
  4218. case "Company.note":
  4219. if e.complexity.Company.Note == nil {
  4220. break
  4221. }
  4222. return e.complexity.Company.Note(childComplexity), true
  4223. case "Company.orderCount":
  4224. if e.complexity.Company.OrderCount == nil {
  4225. break
  4226. }
  4227. return e.complexity.Company.OrderCount(childComplexity), true
  4228. case "Company.orders":
  4229. if e.complexity.Company.Orders == nil {
  4230. break
  4231. }
  4232. args, err := ec.field_Company_orders_args(context.TODO(), rawArgs)
  4233. if err != nil {
  4234. return 0, false
  4235. }
  4236. return e.complexity.Company.Orders(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*OrderSortKeys)), true
  4237. case "Company.totalSpent":
  4238. if e.complexity.Company.TotalSpent == nil {
  4239. break
  4240. }
  4241. return e.complexity.Company.TotalSpent(childComplexity), true
  4242. case "Company.updatedAt":
  4243. if e.complexity.Company.UpdatedAt == nil {
  4244. break
  4245. }
  4246. return e.complexity.Company.UpdatedAt(childComplexity), true
  4247. case "CompanyAddress.address1":
  4248. if e.complexity.CompanyAddress.Address1 == nil {
  4249. break
  4250. }
  4251. return e.complexity.CompanyAddress.Address1(childComplexity), true
  4252. case "CompanyAddress.address2":
  4253. if e.complexity.CompanyAddress.Address2 == nil {
  4254. break
  4255. }
  4256. return e.complexity.CompanyAddress.Address2(childComplexity), true
  4257. case "CompanyAddress.city":
  4258. if e.complexity.CompanyAddress.City == nil {
  4259. break
  4260. }
  4261. return e.complexity.CompanyAddress.City(childComplexity), true
  4262. case "CompanyAddress.companyName":
  4263. if e.complexity.CompanyAddress.CompanyName == nil {
  4264. break
  4265. }
  4266. return e.complexity.CompanyAddress.CompanyName(childComplexity), true
  4267. case "CompanyAddress.country":
  4268. if e.complexity.CompanyAddress.Country == nil {
  4269. break
  4270. }
  4271. return e.complexity.CompanyAddress.Country(childComplexity), true
  4272. case "CompanyAddress.countryCode":
  4273. if e.complexity.CompanyAddress.CountryCode == nil {
  4274. break
  4275. }
  4276. return e.complexity.CompanyAddress.CountryCode(childComplexity), true
  4277. case "CompanyAddress.createdAt":
  4278. if e.complexity.CompanyAddress.CreatedAt == nil {
  4279. break
  4280. }
  4281. return e.complexity.CompanyAddress.CreatedAt(childComplexity), true
  4282. case "CompanyAddress.formattedArea":
  4283. if e.complexity.CompanyAddress.FormattedArea == nil {
  4284. break
  4285. }
  4286. return e.complexity.CompanyAddress.FormattedArea(childComplexity), true
  4287. case "CompanyAddress.id":
  4288. if e.complexity.CompanyAddress.ID == nil {
  4289. break
  4290. }
  4291. return e.complexity.CompanyAddress.ID(childComplexity), true
  4292. case "CompanyAddress.phone":
  4293. if e.complexity.CompanyAddress.Phone == nil {
  4294. break
  4295. }
  4296. return e.complexity.CompanyAddress.Phone(childComplexity), true
  4297. case "CompanyAddress.province":
  4298. if e.complexity.CompanyAddress.Province == nil {
  4299. break
  4300. }
  4301. return e.complexity.CompanyAddress.Province(childComplexity), true
  4302. case "CompanyAddress.recipient":
  4303. if e.complexity.CompanyAddress.Recipient == nil {
  4304. break
  4305. }
  4306. return e.complexity.CompanyAddress.Recipient(childComplexity), true
  4307. case "CompanyAddress.updatedAt":
  4308. if e.complexity.CompanyAddress.UpdatedAt == nil {
  4309. break
  4310. }
  4311. return e.complexity.CompanyAddress.UpdatedAt(childComplexity), true
  4312. case "CompanyAddress.zip":
  4313. if e.complexity.CompanyAddress.Zip == nil {
  4314. break
  4315. }
  4316. return e.complexity.CompanyAddress.Zip(childComplexity), true
  4317. case "CompanyAddress.zoneCode":
  4318. if e.complexity.CompanyAddress.ZoneCode == nil {
  4319. break
  4320. }
  4321. return e.complexity.CompanyAddress.ZoneCode(childComplexity), true
  4322. case "CompanyContact.company":
  4323. if e.complexity.CompanyContact.Company == nil {
  4324. break
  4325. }
  4326. return e.complexity.CompanyContact.Company(childComplexity), true
  4327. case "CompanyContact.createdAt":
  4328. if e.complexity.CompanyContact.CreatedAt == nil {
  4329. break
  4330. }
  4331. return e.complexity.CompanyContact.CreatedAt(childComplexity), true
  4332. case "CompanyContact.customer":
  4333. if e.complexity.CompanyContact.Customer == nil {
  4334. break
  4335. }
  4336. return e.complexity.CompanyContact.Customer(childComplexity), true
  4337. case "CompanyContact.draftOrders":
  4338. if e.complexity.CompanyContact.DraftOrders == nil {
  4339. break
  4340. }
  4341. args, err := ec.field_CompanyContact_draftOrders_args(context.TODO(), rawArgs)
  4342. if err != nil {
  4343. return 0, false
  4344. }
  4345. return e.complexity.CompanyContact.DraftOrders(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*DraftOrderSortKeys), args["query"].(*string)), true
  4346. case "CompanyContact.id":
  4347. if e.complexity.CompanyContact.ID == nil {
  4348. break
  4349. }
  4350. return e.complexity.CompanyContact.ID(childComplexity), true
  4351. case "CompanyContact.isMainContact":
  4352. if e.complexity.CompanyContact.IsMainContact == nil {
  4353. break
  4354. }
  4355. return e.complexity.CompanyContact.IsMainContact(childComplexity), true
  4356. case "CompanyContact.lifetimeDuration":
  4357. if e.complexity.CompanyContact.LifetimeDuration == nil {
  4358. break
  4359. }
  4360. return e.complexity.CompanyContact.LifetimeDuration(childComplexity), true
  4361. case "CompanyContact.locale":
  4362. if e.complexity.CompanyContact.Locale == nil {
  4363. break
  4364. }
  4365. return e.complexity.CompanyContact.Locale(childComplexity), true
  4366. case "CompanyContact.orders":
  4367. if e.complexity.CompanyContact.Orders == nil {
  4368. break
  4369. }
  4370. args, err := ec.field_CompanyContact_orders_args(context.TODO(), rawArgs)
  4371. if err != nil {
  4372. return 0, false
  4373. }
  4374. return e.complexity.CompanyContact.Orders(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*OrderSortKeys)), true
  4375. case "CompanyContact.roleAssignments":
  4376. if e.complexity.CompanyContact.RoleAssignments == nil {
  4377. break
  4378. }
  4379. args, err := ec.field_CompanyContact_roleAssignments_args(context.TODO(), rawArgs)
  4380. if err != nil {
  4381. return 0, false
  4382. }
  4383. return e.complexity.CompanyContact.RoleAssignments(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*CompanyContactRoleAssignmentSortKeys), args["query"].(*string)), true
  4384. case "CompanyContact.title":
  4385. if e.complexity.CompanyContact.Title == nil {
  4386. break
  4387. }
  4388. return e.complexity.CompanyContact.Title(childComplexity), true
  4389. case "CompanyContact.updatedAt":
  4390. if e.complexity.CompanyContact.UpdatedAt == nil {
  4391. break
  4392. }
  4393. return e.complexity.CompanyContact.UpdatedAt(childComplexity), true
  4394. case "CompanyContactConnection.edges":
  4395. if e.complexity.CompanyContactConnection.Edges == nil {
  4396. break
  4397. }
  4398. return e.complexity.CompanyContactConnection.Edges(childComplexity), true
  4399. case "CompanyContactConnection.nodes":
  4400. if e.complexity.CompanyContactConnection.Nodes == nil {
  4401. break
  4402. }
  4403. return e.complexity.CompanyContactConnection.Nodes(childComplexity), true
  4404. case "CompanyContactConnection.pageInfo":
  4405. if e.complexity.CompanyContactConnection.PageInfo == nil {
  4406. break
  4407. }
  4408. return e.complexity.CompanyContactConnection.PageInfo(childComplexity), true
  4409. case "CompanyContactEdge.cursor":
  4410. if e.complexity.CompanyContactEdge.Cursor == nil {
  4411. break
  4412. }
  4413. return e.complexity.CompanyContactEdge.Cursor(childComplexity), true
  4414. case "CompanyContactEdge.node":
  4415. if e.complexity.CompanyContactEdge.Node == nil {
  4416. break
  4417. }
  4418. return e.complexity.CompanyContactEdge.Node(childComplexity), true
  4419. case "CompanyContactRole.id":
  4420. if e.complexity.CompanyContactRole.ID == nil {
  4421. break
  4422. }
  4423. return e.complexity.CompanyContactRole.ID(childComplexity), true
  4424. case "CompanyContactRole.name":
  4425. if e.complexity.CompanyContactRole.Name == nil {
  4426. break
  4427. }
  4428. return e.complexity.CompanyContactRole.Name(childComplexity), true
  4429. case "CompanyContactRole.note":
  4430. if e.complexity.CompanyContactRole.Note == nil {
  4431. break
  4432. }
  4433. return e.complexity.CompanyContactRole.Note(childComplexity), true
  4434. case "CompanyContactRoleAssignment.company":
  4435. if e.complexity.CompanyContactRoleAssignment.Company == nil {
  4436. break
  4437. }
  4438. return e.complexity.CompanyContactRoleAssignment.Company(childComplexity), true
  4439. case "CompanyContactRoleAssignment.companyContact":
  4440. if e.complexity.CompanyContactRoleAssignment.CompanyContact == nil {
  4441. break
  4442. }
  4443. return e.complexity.CompanyContactRoleAssignment.CompanyContact(childComplexity), true
  4444. case "CompanyContactRoleAssignment.companyLocation":
  4445. if e.complexity.CompanyContactRoleAssignment.CompanyLocation == nil {
  4446. break
  4447. }
  4448. return e.complexity.CompanyContactRoleAssignment.CompanyLocation(childComplexity), true
  4449. case "CompanyContactRoleAssignment.createdAt":
  4450. if e.complexity.CompanyContactRoleAssignment.CreatedAt == nil {
  4451. break
  4452. }
  4453. return e.complexity.CompanyContactRoleAssignment.CreatedAt(childComplexity), true
  4454. case "CompanyContactRoleAssignment.id":
  4455. if e.complexity.CompanyContactRoleAssignment.ID == nil {
  4456. break
  4457. }
  4458. return e.complexity.CompanyContactRoleAssignment.ID(childComplexity), true
  4459. case "CompanyContactRoleAssignment.role":
  4460. if e.complexity.CompanyContactRoleAssignment.Role == nil {
  4461. break
  4462. }
  4463. return e.complexity.CompanyContactRoleAssignment.Role(childComplexity), true
  4464. case "CompanyContactRoleAssignment.updatedAt":
  4465. if e.complexity.CompanyContactRoleAssignment.UpdatedAt == nil {
  4466. break
  4467. }
  4468. return e.complexity.CompanyContactRoleAssignment.UpdatedAt(childComplexity), true
  4469. case "CompanyContactRoleAssignmentConnection.edges":
  4470. if e.complexity.CompanyContactRoleAssignmentConnection.Edges == nil {
  4471. break
  4472. }
  4473. return e.complexity.CompanyContactRoleAssignmentConnection.Edges(childComplexity), true
  4474. case "CompanyContactRoleAssignmentConnection.nodes":
  4475. if e.complexity.CompanyContactRoleAssignmentConnection.Nodes == nil {
  4476. break
  4477. }
  4478. return e.complexity.CompanyContactRoleAssignmentConnection.Nodes(childComplexity), true
  4479. case "CompanyContactRoleAssignmentConnection.pageInfo":
  4480. if e.complexity.CompanyContactRoleAssignmentConnection.PageInfo == nil {
  4481. break
  4482. }
  4483. return e.complexity.CompanyContactRoleAssignmentConnection.PageInfo(childComplexity), true
  4484. case "CompanyContactRoleAssignmentEdge.cursor":
  4485. if e.complexity.CompanyContactRoleAssignmentEdge.Cursor == nil {
  4486. break
  4487. }
  4488. return e.complexity.CompanyContactRoleAssignmentEdge.Cursor(childComplexity), true
  4489. case "CompanyContactRoleAssignmentEdge.node":
  4490. if e.complexity.CompanyContactRoleAssignmentEdge.Node == nil {
  4491. break
  4492. }
  4493. return e.complexity.CompanyContactRoleAssignmentEdge.Node(childComplexity), true
  4494. case "CompanyContactRoleConnection.edges":
  4495. if e.complexity.CompanyContactRoleConnection.Edges == nil {
  4496. break
  4497. }
  4498. return e.complexity.CompanyContactRoleConnection.Edges(childComplexity), true
  4499. case "CompanyContactRoleConnection.nodes":
  4500. if e.complexity.CompanyContactRoleConnection.Nodes == nil {
  4501. break
  4502. }
  4503. return e.complexity.CompanyContactRoleConnection.Nodes(childComplexity), true
  4504. case "CompanyContactRoleConnection.pageInfo":
  4505. if e.complexity.CompanyContactRoleConnection.PageInfo == nil {
  4506. break
  4507. }
  4508. return e.complexity.CompanyContactRoleConnection.PageInfo(childComplexity), true
  4509. case "CompanyContactRoleEdge.cursor":
  4510. if e.complexity.CompanyContactRoleEdge.Cursor == nil {
  4511. break
  4512. }
  4513. return e.complexity.CompanyContactRoleEdge.Cursor(childComplexity), true
  4514. case "CompanyContactRoleEdge.node":
  4515. if e.complexity.CompanyContactRoleEdge.Node == nil {
  4516. break
  4517. }
  4518. return e.complexity.CompanyContactRoleEdge.Node(childComplexity), true
  4519. case "CompanyLocation.billingAddress":
  4520. if e.complexity.CompanyLocation.BillingAddress == nil {
  4521. break
  4522. }
  4523. return e.complexity.CompanyLocation.BillingAddress(childComplexity), true
  4524. case "CompanyLocation.buyerExperienceConfiguration":
  4525. if e.complexity.CompanyLocation.BuyerExperienceConfiguration == nil {
  4526. break
  4527. }
  4528. return e.complexity.CompanyLocation.BuyerExperienceConfiguration(childComplexity), true
  4529. case "CompanyLocation.company":
  4530. if e.complexity.CompanyLocation.Company == nil {
  4531. break
  4532. }
  4533. return e.complexity.CompanyLocation.Company(childComplexity), true
  4534. case "CompanyLocation.createdAt":
  4535. if e.complexity.CompanyLocation.CreatedAt == nil {
  4536. break
  4537. }
  4538. return e.complexity.CompanyLocation.CreatedAt(childComplexity), true
  4539. case "CompanyLocation.currency":
  4540. if e.complexity.CompanyLocation.Currency == nil {
  4541. break
  4542. }
  4543. return e.complexity.CompanyLocation.Currency(childComplexity), true
  4544. case "CompanyLocation.defaultCursor":
  4545. if e.complexity.CompanyLocation.DefaultCursor == nil {
  4546. break
  4547. }
  4548. return e.complexity.CompanyLocation.DefaultCursor(childComplexity), true
  4549. case "CompanyLocation.draftOrders":
  4550. if e.complexity.CompanyLocation.DraftOrders == nil {
  4551. break
  4552. }
  4553. args, err := ec.field_CompanyLocation_draftOrders_args(context.TODO(), rawArgs)
  4554. if err != nil {
  4555. return 0, false
  4556. }
  4557. return e.complexity.CompanyLocation.DraftOrders(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*DraftOrderSortKeys), args["query"].(*string)), true
  4558. case "CompanyLocation.events":
  4559. if e.complexity.CompanyLocation.Events == nil {
  4560. break
  4561. }
  4562. args, err := ec.field_CompanyLocation_events_args(context.TODO(), rawArgs)
  4563. if err != nil {
  4564. return 0, false
  4565. }
  4566. return e.complexity.CompanyLocation.Events(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*EventSortKeys), args["query"].(*string)), true
  4567. case "CompanyLocation.externalId":
  4568. if e.complexity.CompanyLocation.ExternalID == nil {
  4569. break
  4570. }
  4571. return e.complexity.CompanyLocation.ExternalID(childComplexity), true
  4572. case "CompanyLocation.hasTimelineComment":
  4573. if e.complexity.CompanyLocation.HasTimelineComment == nil {
  4574. break
  4575. }
  4576. return e.complexity.CompanyLocation.HasTimelineComment(childComplexity), true
  4577. case "CompanyLocation.id":
  4578. if e.complexity.CompanyLocation.ID == nil {
  4579. break
  4580. }
  4581. return e.complexity.CompanyLocation.ID(childComplexity), true
  4582. case "CompanyLocation.locale":
  4583. if e.complexity.CompanyLocation.Locale == nil {
  4584. break
  4585. }
  4586. return e.complexity.CompanyLocation.Locale(childComplexity), true
  4587. case "CompanyLocation.market":
  4588. if e.complexity.CompanyLocation.Market == nil {
  4589. break
  4590. }
  4591. return e.complexity.CompanyLocation.Market(childComplexity), true
  4592. case "CompanyLocation.name":
  4593. if e.complexity.CompanyLocation.Name == nil {
  4594. break
  4595. }
  4596. return e.complexity.CompanyLocation.Name(childComplexity), true
  4597. case "CompanyLocation.note":
  4598. if e.complexity.CompanyLocation.Note == nil {
  4599. break
  4600. }
  4601. return e.complexity.CompanyLocation.Note(childComplexity), true
  4602. case "CompanyLocation.orderCount":
  4603. if e.complexity.CompanyLocation.OrderCount == nil {
  4604. break
  4605. }
  4606. return e.complexity.CompanyLocation.OrderCount(childComplexity), true
  4607. case "CompanyLocation.orders":
  4608. if e.complexity.CompanyLocation.Orders == nil {
  4609. break
  4610. }
  4611. args, err := ec.field_CompanyLocation_orders_args(context.TODO(), rawArgs)
  4612. if err != nil {
  4613. return 0, false
  4614. }
  4615. return e.complexity.CompanyLocation.Orders(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*OrderSortKeys)), true
  4616. case "CompanyLocation.phone":
  4617. if e.complexity.CompanyLocation.Phone == nil {
  4618. break
  4619. }
  4620. return e.complexity.CompanyLocation.Phone(childComplexity), true
  4621. case "CompanyLocation.roleAssignments":
  4622. if e.complexity.CompanyLocation.RoleAssignments == nil {
  4623. break
  4624. }
  4625. args, err := ec.field_CompanyLocation_roleAssignments_args(context.TODO(), rawArgs)
  4626. if err != nil {
  4627. return 0, false
  4628. }
  4629. return e.complexity.CompanyLocation.RoleAssignments(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*CompanyContactRoleAssignmentSortKeys), args["query"].(*string)), true
  4630. case "CompanyLocation.shippingAddress":
  4631. if e.complexity.CompanyLocation.ShippingAddress == nil {
  4632. break
  4633. }
  4634. return e.complexity.CompanyLocation.ShippingAddress(childComplexity), true
  4635. case "CompanyLocation.taxExemptions":
  4636. if e.complexity.CompanyLocation.TaxExemptions == nil {
  4637. break
  4638. }
  4639. return e.complexity.CompanyLocation.TaxExemptions(childComplexity), true
  4640. case "CompanyLocation.taxRegistrationId":
  4641. if e.complexity.CompanyLocation.TaxRegistrationID == nil {
  4642. break
  4643. }
  4644. return e.complexity.CompanyLocation.TaxRegistrationID(childComplexity), true
  4645. case "CompanyLocation.totalSpent":
  4646. if e.complexity.CompanyLocation.TotalSpent == nil {
  4647. break
  4648. }
  4649. return e.complexity.CompanyLocation.TotalSpent(childComplexity), true
  4650. case "CompanyLocation.updatedAt":
  4651. if e.complexity.CompanyLocation.UpdatedAt == nil {
  4652. break
  4653. }
  4654. return e.complexity.CompanyLocation.UpdatedAt(childComplexity), true
  4655. case "CompanyLocationConnection.edges":
  4656. if e.complexity.CompanyLocationConnection.Edges == nil {
  4657. break
  4658. }
  4659. return e.complexity.CompanyLocationConnection.Edges(childComplexity), true
  4660. case "CompanyLocationConnection.nodes":
  4661. if e.complexity.CompanyLocationConnection.Nodes == nil {
  4662. break
  4663. }
  4664. return e.complexity.CompanyLocationConnection.Nodes(childComplexity), true
  4665. case "CompanyLocationConnection.pageInfo":
  4666. if e.complexity.CompanyLocationConnection.PageInfo == nil {
  4667. break
  4668. }
  4669. return e.complexity.CompanyLocationConnection.PageInfo(childComplexity), true
  4670. case "CompanyLocationEdge.cursor":
  4671. if e.complexity.CompanyLocationEdge.Cursor == nil {
  4672. break
  4673. }
  4674. return e.complexity.CompanyLocationEdge.Cursor(childComplexity), true
  4675. case "CompanyLocationEdge.node":
  4676. if e.complexity.CompanyLocationEdge.Node == nil {
  4677. break
  4678. }
  4679. return e.complexity.CompanyLocationEdge.Node(childComplexity), true
  4680. case "CountriesInShippingZones.countryCodes":
  4681. if e.complexity.CountriesInShippingZones.CountryCodes == nil {
  4682. break
  4683. }
  4684. return e.complexity.CountriesInShippingZones.CountryCodes(childComplexity), true
  4685. case "CountriesInShippingZones.includeRestOfWorld":
  4686. if e.complexity.CountriesInShippingZones.IncludeRestOfWorld == nil {
  4687. break
  4688. }
  4689. return e.complexity.CountriesInShippingZones.IncludeRestOfWorld(childComplexity), true
  4690. case "CountryHarmonizedSystemCode.countryCode":
  4691. if e.complexity.CountryHarmonizedSystemCode.CountryCode == nil {
  4692. break
  4693. }
  4694. return e.complexity.CountryHarmonizedSystemCode.CountryCode(childComplexity), true
  4695. case "CountryHarmonizedSystemCode.harmonizedSystemCode":
  4696. if e.complexity.CountryHarmonizedSystemCode.HarmonizedSystemCode == nil {
  4697. break
  4698. }
  4699. return e.complexity.CountryHarmonizedSystemCode.HarmonizedSystemCode(childComplexity), true
  4700. case "CountryHarmonizedSystemCodeConnection.edges":
  4701. if e.complexity.CountryHarmonizedSystemCodeConnection.Edges == nil {
  4702. break
  4703. }
  4704. return e.complexity.CountryHarmonizedSystemCodeConnection.Edges(childComplexity), true
  4705. case "CountryHarmonizedSystemCodeConnection.nodes":
  4706. if e.complexity.CountryHarmonizedSystemCodeConnection.Nodes == nil {
  4707. break
  4708. }
  4709. return e.complexity.CountryHarmonizedSystemCodeConnection.Nodes(childComplexity), true
  4710. case "CountryHarmonizedSystemCodeConnection.pageInfo":
  4711. if e.complexity.CountryHarmonizedSystemCodeConnection.PageInfo == nil {
  4712. break
  4713. }
  4714. return e.complexity.CountryHarmonizedSystemCodeConnection.PageInfo(childComplexity), true
  4715. case "CountryHarmonizedSystemCodeEdge.cursor":
  4716. if e.complexity.CountryHarmonizedSystemCodeEdge.Cursor == nil {
  4717. break
  4718. }
  4719. return e.complexity.CountryHarmonizedSystemCodeEdge.Cursor(childComplexity), true
  4720. case "CountryHarmonizedSystemCodeEdge.node":
  4721. if e.complexity.CountryHarmonizedSystemCodeEdge.Node == nil {
  4722. break
  4723. }
  4724. return e.complexity.CountryHarmonizedSystemCodeEdge.Node(childComplexity), true
  4725. case "CurrencyFormats.moneyFormat":
  4726. if e.complexity.CurrencyFormats.MoneyFormat == nil {
  4727. break
  4728. }
  4729. return e.complexity.CurrencyFormats.MoneyFormat(childComplexity), true
  4730. case "CurrencyFormats.moneyInEmailsFormat":
  4731. if e.complexity.CurrencyFormats.MoneyInEmailsFormat == nil {
  4732. break
  4733. }
  4734. return e.complexity.CurrencyFormats.MoneyInEmailsFormat(childComplexity), true
  4735. case "CurrencyFormats.moneyWithCurrencyFormat":
  4736. if e.complexity.CurrencyFormats.MoneyWithCurrencyFormat == nil {
  4737. break
  4738. }
  4739. return e.complexity.CurrencyFormats.MoneyWithCurrencyFormat(childComplexity), true
  4740. case "CurrencyFormats.moneyWithCurrencyInEmailsFormat":
  4741. if e.complexity.CurrencyFormats.MoneyWithCurrencyInEmailsFormat == nil {
  4742. break
  4743. }
  4744. return e.complexity.CurrencyFormats.MoneyWithCurrencyInEmailsFormat(childComplexity), true
  4745. case "CurrencySetting.currencyCode":
  4746. if e.complexity.CurrencySetting.CurrencyCode == nil {
  4747. break
  4748. }
  4749. return e.complexity.CurrencySetting.CurrencyCode(childComplexity), true
  4750. case "CurrencySetting.currencyName":
  4751. if e.complexity.CurrencySetting.CurrencyName == nil {
  4752. break
  4753. }
  4754. return e.complexity.CurrencySetting.CurrencyName(childComplexity), true
  4755. case "CurrencySetting.enabled":
  4756. if e.complexity.CurrencySetting.Enabled == nil {
  4757. break
  4758. }
  4759. return e.complexity.CurrencySetting.Enabled(childComplexity), true
  4760. case "CurrencySetting.rateUpdatedAt":
  4761. if e.complexity.CurrencySetting.RateUpdatedAt == nil {
  4762. break
  4763. }
  4764. return e.complexity.CurrencySetting.RateUpdatedAt(childComplexity), true
  4765. case "CurrencySettingConnection.edges":
  4766. if e.complexity.CurrencySettingConnection.Edges == nil {
  4767. break
  4768. }
  4769. return e.complexity.CurrencySettingConnection.Edges(childComplexity), true
  4770. case "CurrencySettingConnection.nodes":
  4771. if e.complexity.CurrencySettingConnection.Nodes == nil {
  4772. break
  4773. }
  4774. return e.complexity.CurrencySettingConnection.Nodes(childComplexity), true
  4775. case "CurrencySettingConnection.pageInfo":
  4776. if e.complexity.CurrencySettingConnection.PageInfo == nil {
  4777. break
  4778. }
  4779. return e.complexity.CurrencySettingConnection.PageInfo(childComplexity), true
  4780. case "CurrencySettingEdge.cursor":
  4781. if e.complexity.CurrencySettingEdge.Cursor == nil {
  4782. break
  4783. }
  4784. return e.complexity.CurrencySettingEdge.Cursor(childComplexity), true
  4785. case "CurrencySettingEdge.node":
  4786. if e.complexity.CurrencySettingEdge.Node == nil {
  4787. break
  4788. }
  4789. return e.complexity.CurrencySettingEdge.Node(childComplexity), true
  4790. case "Customer.addresses":
  4791. if e.complexity.Customer.Addresses == nil {
  4792. break
  4793. }
  4794. args, err := ec.field_Customer_addresses_args(context.TODO(), rawArgs)
  4795. if err != nil {
  4796. return 0, false
  4797. }
  4798. return e.complexity.Customer.Addresses(childComplexity, args["first"].(*int)), true
  4799. case "Customer.amountSpent":
  4800. if e.complexity.Customer.AmountSpent == nil {
  4801. break
  4802. }
  4803. return e.complexity.Customer.AmountSpent(childComplexity), true
  4804. case "Customer.averageOrderAmountV2":
  4805. if e.complexity.Customer.AverageOrderAmountV2 == nil {
  4806. break
  4807. }
  4808. return e.complexity.Customer.AverageOrderAmountV2(childComplexity), true
  4809. case "Customer.canDelete":
  4810. if e.complexity.Customer.CanDelete == nil {
  4811. break
  4812. }
  4813. return e.complexity.Customer.CanDelete(childComplexity), true
  4814. case "Customer.companyContactProfiles":
  4815. if e.complexity.Customer.CompanyContactProfiles == nil {
  4816. break
  4817. }
  4818. return e.complexity.Customer.CompanyContactProfiles(childComplexity), true
  4819. case "Customer.createdAt":
  4820. if e.complexity.Customer.CreatedAt == nil {
  4821. break
  4822. }
  4823. return e.complexity.Customer.CreatedAt(childComplexity), true
  4824. case "Customer.defaultAddress":
  4825. if e.complexity.Customer.DefaultAddress == nil {
  4826. break
  4827. }
  4828. return e.complexity.Customer.DefaultAddress(childComplexity), true
  4829. case "Customer.displayName":
  4830. if e.complexity.Customer.DisplayName == nil {
  4831. break
  4832. }
  4833. return e.complexity.Customer.DisplayName(childComplexity), true
  4834. case "Customer.email":
  4835. if e.complexity.Customer.Email == nil {
  4836. break
  4837. }
  4838. return e.complexity.Customer.Email(childComplexity), true
  4839. case "Customer.emailMarketingConsent":
  4840. if e.complexity.Customer.EmailMarketingConsent == nil {
  4841. break
  4842. }
  4843. return e.complexity.Customer.EmailMarketingConsent(childComplexity), true
  4844. case "Customer.events":
  4845. if e.complexity.Customer.Events == nil {
  4846. break
  4847. }
  4848. args, err := ec.field_Customer_events_args(context.TODO(), rawArgs)
  4849. if err != nil {
  4850. return 0, false
  4851. }
  4852. return e.complexity.Customer.Events(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*EventSortKeys), args["query"].(*string)), true
  4853. case "Customer.firstName":
  4854. if e.complexity.Customer.FirstName == nil {
  4855. break
  4856. }
  4857. return e.complexity.Customer.FirstName(childComplexity), true
  4858. case "Customer.hasTimelineComment":
  4859. if e.complexity.Customer.HasTimelineComment == nil {
  4860. break
  4861. }
  4862. return e.complexity.Customer.HasTimelineComment(childComplexity), true
  4863. case "Customer.id":
  4864. if e.complexity.Customer.ID == nil {
  4865. break
  4866. }
  4867. return e.complexity.Customer.ID(childComplexity), true
  4868. case "Customer.image":
  4869. if e.complexity.Customer.Image == nil {
  4870. break
  4871. }
  4872. return e.complexity.Customer.Image(childComplexity), true
  4873. case "Customer.lastName":
  4874. if e.complexity.Customer.LastName == nil {
  4875. break
  4876. }
  4877. return e.complexity.Customer.LastName(childComplexity), true
  4878. case "Customer.lastOrder":
  4879. if e.complexity.Customer.LastOrder == nil {
  4880. break
  4881. }
  4882. return e.complexity.Customer.LastOrder(childComplexity), true
  4883. case "Customer.legacyResourceId":
  4884. if e.complexity.Customer.LegacyResourceID == nil {
  4885. break
  4886. }
  4887. return e.complexity.Customer.LegacyResourceID(childComplexity), true
  4888. case "Customer.lifetimeDuration":
  4889. if e.complexity.Customer.LifetimeDuration == nil {
  4890. break
  4891. }
  4892. return e.complexity.Customer.LifetimeDuration(childComplexity), true
  4893. case "Customer.locale":
  4894. if e.complexity.Customer.Locale == nil {
  4895. break
  4896. }
  4897. return e.complexity.Customer.Locale(childComplexity), true
  4898. case "Customer.market":
  4899. if e.complexity.Customer.Market == nil {
  4900. break
  4901. }
  4902. return e.complexity.Customer.Market(childComplexity), true
  4903. case "Customer.metafield":
  4904. if e.complexity.Customer.Metafield == nil {
  4905. break
  4906. }
  4907. args, err := ec.field_Customer_metafield_args(context.TODO(), rawArgs)
  4908. if err != nil {
  4909. return 0, false
  4910. }
  4911. return e.complexity.Customer.Metafield(childComplexity, args["namespace"].(string), args["key"].(string)), true
  4912. case "Customer.metafieldDefinitions":
  4913. if e.complexity.Customer.MetafieldDefinitions == nil {
  4914. break
  4915. }
  4916. args, err := ec.field_Customer_metafieldDefinitions_args(context.TODO(), rawArgs)
  4917. if err != nil {
  4918. return 0, false
  4919. }
  4920. return e.complexity.Customer.MetafieldDefinitions(childComplexity, args["namespace"].(*string), args["pinnedStatus"].(*MetafieldDefinitionPinnedStatus), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*MetafieldDefinitionSortKeys), args["query"].(*string)), true
  4921. case "Customer.metafields":
  4922. if e.complexity.Customer.Metafields == nil {
  4923. break
  4924. }
  4925. args, err := ec.field_Customer_metafields_args(context.TODO(), rawArgs)
  4926. if err != nil {
  4927. return 0, false
  4928. }
  4929. return e.complexity.Customer.Metafields(childComplexity, args["namespace"].(*string), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  4930. case "Customer.multipassIdentifier":
  4931. if e.complexity.Customer.MultipassIdentifier == nil {
  4932. break
  4933. }
  4934. return e.complexity.Customer.MultipassIdentifier(childComplexity), true
  4935. case "Customer.note":
  4936. if e.complexity.Customer.Note == nil {
  4937. break
  4938. }
  4939. return e.complexity.Customer.Note(childComplexity), true
  4940. case "Customer.numberOfOrders":
  4941. if e.complexity.Customer.NumberOfOrders == nil {
  4942. break
  4943. }
  4944. return e.complexity.Customer.NumberOfOrders(childComplexity), true
  4945. case "Customer.orders":
  4946. if e.complexity.Customer.Orders == nil {
  4947. break
  4948. }
  4949. args, err := ec.field_Customer_orders_args(context.TODO(), rawArgs)
  4950. if err != nil {
  4951. return 0, false
  4952. }
  4953. return e.complexity.Customer.Orders(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*OrderSortKeys), args["query"].(*string)), true
  4954. case "Customer.paymentMethods":
  4955. if e.complexity.Customer.PaymentMethods == nil {
  4956. break
  4957. }
  4958. args, err := ec.field_Customer_paymentMethods_args(context.TODO(), rawArgs)
  4959. if err != nil {
  4960. return 0, false
  4961. }
  4962. return e.complexity.Customer.PaymentMethods(childComplexity, args["showRevoked"].(*bool), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  4963. case "Customer.phone":
  4964. if e.complexity.Customer.Phone == nil {
  4965. break
  4966. }
  4967. return e.complexity.Customer.Phone(childComplexity), true
  4968. case "Customer.privateMetafield":
  4969. if e.complexity.Customer.PrivateMetafield == nil {
  4970. break
  4971. }
  4972. args, err := ec.field_Customer_privateMetafield_args(context.TODO(), rawArgs)
  4973. if err != nil {
  4974. return 0, false
  4975. }
  4976. return e.complexity.Customer.PrivateMetafield(childComplexity, args["namespace"].(string), args["key"].(string)), true
  4977. case "Customer.privateMetafields":
  4978. if e.complexity.Customer.PrivateMetafields == nil {
  4979. break
  4980. }
  4981. args, err := ec.field_Customer_privateMetafields_args(context.TODO(), rawArgs)
  4982. if err != nil {
  4983. return 0, false
  4984. }
  4985. return e.complexity.Customer.PrivateMetafields(childComplexity, args["namespace"].(*string), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  4986. case "Customer.productSubscriberStatus":
  4987. if e.complexity.Customer.ProductSubscriberStatus == nil {
  4988. break
  4989. }
  4990. return e.complexity.Customer.ProductSubscriberStatus(childComplexity), true
  4991. case "Customer.smsMarketingConsent":
  4992. if e.complexity.Customer.SmsMarketingConsent == nil {
  4993. break
  4994. }
  4995. return e.complexity.Customer.SmsMarketingConsent(childComplexity), true
  4996. case "Customer.state":
  4997. if e.complexity.Customer.State == nil {
  4998. break
  4999. }
  5000. return e.complexity.Customer.State(childComplexity), true
  5001. case "Customer.statistics":
  5002. if e.complexity.Customer.Statistics == nil {
  5003. break
  5004. }
  5005. return e.complexity.Customer.Statistics(childComplexity), true
  5006. case "Customer.subscriptionContracts":
  5007. if e.complexity.Customer.SubscriptionContracts == nil {
  5008. break
  5009. }
  5010. args, err := ec.field_Customer_subscriptionContracts_args(context.TODO(), rawArgs)
  5011. if err != nil {
  5012. return 0, false
  5013. }
  5014. return e.complexity.Customer.SubscriptionContracts(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  5015. case "Customer.tags":
  5016. if e.complexity.Customer.Tags == nil {
  5017. break
  5018. }
  5019. return e.complexity.Customer.Tags(childComplexity), true
  5020. case "Customer.taxExempt":
  5021. if e.complexity.Customer.TaxExempt == nil {
  5022. break
  5023. }
  5024. return e.complexity.Customer.TaxExempt(childComplexity), true
  5025. case "Customer.taxExemptions":
  5026. if e.complexity.Customer.TaxExemptions == nil {
  5027. break
  5028. }
  5029. return e.complexity.Customer.TaxExemptions(childComplexity), true
  5030. case "Customer.unsubscribeUrl":
  5031. if e.complexity.Customer.UnsubscribeURL == nil {
  5032. break
  5033. }
  5034. return e.complexity.Customer.UnsubscribeURL(childComplexity), true
  5035. case "Customer.updatedAt":
  5036. if e.complexity.Customer.UpdatedAt == nil {
  5037. break
  5038. }
  5039. return e.complexity.Customer.UpdatedAt(childComplexity), true
  5040. case "Customer.validEmailAddress":
  5041. if e.complexity.Customer.ValidEmailAddress == nil {
  5042. break
  5043. }
  5044. return e.complexity.Customer.ValidEmailAddress(childComplexity), true
  5045. case "Customer.verifiedEmail":
  5046. if e.complexity.Customer.VerifiedEmail == nil {
  5047. break
  5048. }
  5049. return e.complexity.Customer.VerifiedEmail(childComplexity), true
  5050. case "CustomerCreatePayload.customer":
  5051. if e.complexity.CustomerCreatePayload.Customer == nil {
  5052. break
  5053. }
  5054. return e.complexity.CustomerCreatePayload.Customer(childComplexity), true
  5055. case "CustomerCreatePayload.userErrors":
  5056. if e.complexity.CustomerCreatePayload.UserErrors == nil {
  5057. break
  5058. }
  5059. return e.complexity.CustomerCreatePayload.UserErrors(childComplexity), true
  5060. case "CustomerCreditCard.billingAddress":
  5061. if e.complexity.CustomerCreditCard.BillingAddress == nil {
  5062. break
  5063. }
  5064. return e.complexity.CustomerCreditCard.BillingAddress(childComplexity), true
  5065. case "CustomerCreditCard.brand":
  5066. if e.complexity.CustomerCreditCard.Brand == nil {
  5067. break
  5068. }
  5069. return e.complexity.CustomerCreditCard.Brand(childComplexity), true
  5070. case "CustomerCreditCard.expiresSoon":
  5071. if e.complexity.CustomerCreditCard.ExpiresSoon == nil {
  5072. break
  5073. }
  5074. return e.complexity.CustomerCreditCard.ExpiresSoon(childComplexity), true
  5075. case "CustomerCreditCard.expiryMonth":
  5076. if e.complexity.CustomerCreditCard.ExpiryMonth == nil {
  5077. break
  5078. }
  5079. return e.complexity.CustomerCreditCard.ExpiryMonth(childComplexity), true
  5080. case "CustomerCreditCard.expiryYear":
  5081. if e.complexity.CustomerCreditCard.ExpiryYear == nil {
  5082. break
  5083. }
  5084. return e.complexity.CustomerCreditCard.ExpiryYear(childComplexity), true
  5085. case "CustomerCreditCard.firstDigits":
  5086. if e.complexity.CustomerCreditCard.FirstDigits == nil {
  5087. break
  5088. }
  5089. return e.complexity.CustomerCreditCard.FirstDigits(childComplexity), true
  5090. case "CustomerCreditCard.isRevocable":
  5091. if e.complexity.CustomerCreditCard.IsRevocable == nil {
  5092. break
  5093. }
  5094. return e.complexity.CustomerCreditCard.IsRevocable(childComplexity), true
  5095. case "CustomerCreditCard.lastDigits":
  5096. if e.complexity.CustomerCreditCard.LastDigits == nil {
  5097. break
  5098. }
  5099. return e.complexity.CustomerCreditCard.LastDigits(childComplexity), true
  5100. case "CustomerCreditCard.maskedNumber":
  5101. if e.complexity.CustomerCreditCard.MaskedNumber == nil {
  5102. break
  5103. }
  5104. return e.complexity.CustomerCreditCard.MaskedNumber(childComplexity), true
  5105. case "CustomerCreditCard.name":
  5106. if e.complexity.CustomerCreditCard.Name == nil {
  5107. break
  5108. }
  5109. return e.complexity.CustomerCreditCard.Name(childComplexity), true
  5110. case "CustomerCreditCard.source":
  5111. if e.complexity.CustomerCreditCard.Source == nil {
  5112. break
  5113. }
  5114. return e.complexity.CustomerCreditCard.Source(childComplexity), true
  5115. case "CustomerCreditCard.virtualLastDigits":
  5116. if e.complexity.CustomerCreditCard.VirtualLastDigits == nil {
  5117. break
  5118. }
  5119. return e.complexity.CustomerCreditCard.VirtualLastDigits(childComplexity), true
  5120. case "CustomerCreditCardBillingAddress.address1":
  5121. if e.complexity.CustomerCreditCardBillingAddress.Address1 == nil {
  5122. break
  5123. }
  5124. return e.complexity.CustomerCreditCardBillingAddress.Address1(childComplexity), true
  5125. case "CustomerCreditCardBillingAddress.city":
  5126. if e.complexity.CustomerCreditCardBillingAddress.City == nil {
  5127. break
  5128. }
  5129. return e.complexity.CustomerCreditCardBillingAddress.City(childComplexity), true
  5130. case "CustomerCreditCardBillingAddress.country":
  5131. if e.complexity.CustomerCreditCardBillingAddress.Country == nil {
  5132. break
  5133. }
  5134. return e.complexity.CustomerCreditCardBillingAddress.Country(childComplexity), true
  5135. case "CustomerCreditCardBillingAddress.countryCode":
  5136. if e.complexity.CustomerCreditCardBillingAddress.CountryCode == nil {
  5137. break
  5138. }
  5139. return e.complexity.CustomerCreditCardBillingAddress.CountryCode(childComplexity), true
  5140. case "CustomerCreditCardBillingAddress.province":
  5141. if e.complexity.CustomerCreditCardBillingAddress.Province == nil {
  5142. break
  5143. }
  5144. return e.complexity.CustomerCreditCardBillingAddress.Province(childComplexity), true
  5145. case "CustomerCreditCardBillingAddress.provinceCode":
  5146. if e.complexity.CustomerCreditCardBillingAddress.ProvinceCode == nil {
  5147. break
  5148. }
  5149. return e.complexity.CustomerCreditCardBillingAddress.ProvinceCode(childComplexity), true
  5150. case "CustomerCreditCardBillingAddress.zip":
  5151. if e.complexity.CustomerCreditCardBillingAddress.Zip == nil {
  5152. break
  5153. }
  5154. return e.complexity.CustomerCreditCardBillingAddress.Zip(childComplexity), true
  5155. case "CustomerEmailMarketingConsentState.consentUpdatedAt":
  5156. if e.complexity.CustomerEmailMarketingConsentState.ConsentUpdatedAt == nil {
  5157. break
  5158. }
  5159. return e.complexity.CustomerEmailMarketingConsentState.ConsentUpdatedAt(childComplexity), true
  5160. case "CustomerEmailMarketingConsentState.marketingOptInLevel":
  5161. if e.complexity.CustomerEmailMarketingConsentState.MarketingOptInLevel == nil {
  5162. break
  5163. }
  5164. return e.complexity.CustomerEmailMarketingConsentState.MarketingOptInLevel(childComplexity), true
  5165. case "CustomerEmailMarketingConsentState.marketingState":
  5166. if e.complexity.CustomerEmailMarketingConsentState.MarketingState == nil {
  5167. break
  5168. }
  5169. return e.complexity.CustomerEmailMarketingConsentState.MarketingState(childComplexity), true
  5170. case "CustomerJourneySummary.customerOrderIndex":
  5171. if e.complexity.CustomerJourneySummary.CustomerOrderIndex == nil {
  5172. break
  5173. }
  5174. return e.complexity.CustomerJourneySummary.CustomerOrderIndex(childComplexity), true
  5175. case "CustomerJourneySummary.daysToConversion":
  5176. if e.complexity.CustomerJourneySummary.DaysToConversion == nil {
  5177. break
  5178. }
  5179. return e.complexity.CustomerJourneySummary.DaysToConversion(childComplexity), true
  5180. case "CustomerJourneySummary.firstVisit":
  5181. if e.complexity.CustomerJourneySummary.FirstVisit == nil {
  5182. break
  5183. }
  5184. return e.complexity.CustomerJourneySummary.FirstVisit(childComplexity), true
  5185. case "CustomerJourneySummary.lastVisit":
  5186. if e.complexity.CustomerJourneySummary.LastVisit == nil {
  5187. break
  5188. }
  5189. return e.complexity.CustomerJourneySummary.LastVisit(childComplexity), true
  5190. case "CustomerJourneySummary.moments":
  5191. if e.complexity.CustomerJourneySummary.Moments == nil {
  5192. break
  5193. }
  5194. args, err := ec.field_CustomerJourneySummary_moments_args(context.TODO(), rawArgs)
  5195. if err != nil {
  5196. return 0, false
  5197. }
  5198. return e.complexity.CustomerJourneySummary.Moments(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  5199. case "CustomerJourneySummary.momentsCount":
  5200. if e.complexity.CustomerJourneySummary.MomentsCount == nil {
  5201. break
  5202. }
  5203. return e.complexity.CustomerJourneySummary.MomentsCount(childComplexity), true
  5204. case "CustomerJourneySummary.ready":
  5205. if e.complexity.CustomerJourneySummary.Ready == nil {
  5206. break
  5207. }
  5208. return e.complexity.CustomerJourneySummary.Ready(childComplexity), true
  5209. case "CustomerMomentConnection.edges":
  5210. if e.complexity.CustomerMomentConnection.Edges == nil {
  5211. break
  5212. }
  5213. return e.complexity.CustomerMomentConnection.Edges(childComplexity), true
  5214. case "CustomerMomentConnection.nodes":
  5215. if e.complexity.CustomerMomentConnection.Nodes == nil {
  5216. break
  5217. }
  5218. return e.complexity.CustomerMomentConnection.Nodes(childComplexity), true
  5219. case "CustomerMomentConnection.pageInfo":
  5220. if e.complexity.CustomerMomentConnection.PageInfo == nil {
  5221. break
  5222. }
  5223. return e.complexity.CustomerMomentConnection.PageInfo(childComplexity), true
  5224. case "CustomerMomentEdge.cursor":
  5225. if e.complexity.CustomerMomentEdge.Cursor == nil {
  5226. break
  5227. }
  5228. return e.complexity.CustomerMomentEdge.Cursor(childComplexity), true
  5229. case "CustomerMomentEdge.node":
  5230. if e.complexity.CustomerMomentEdge.Node == nil {
  5231. break
  5232. }
  5233. return e.complexity.CustomerMomentEdge.Node(childComplexity), true
  5234. case "CustomerPaymentInstrumentBillingAddress.address1":
  5235. if e.complexity.CustomerPaymentInstrumentBillingAddress.Address1 == nil {
  5236. break
  5237. }
  5238. return e.complexity.CustomerPaymentInstrumentBillingAddress.Address1(childComplexity), true
  5239. case "CustomerPaymentInstrumentBillingAddress.city":
  5240. if e.complexity.CustomerPaymentInstrumentBillingAddress.City == nil {
  5241. break
  5242. }
  5243. return e.complexity.CustomerPaymentInstrumentBillingAddress.City(childComplexity), true
  5244. case "CustomerPaymentInstrumentBillingAddress.country":
  5245. if e.complexity.CustomerPaymentInstrumentBillingAddress.Country == nil {
  5246. break
  5247. }
  5248. return e.complexity.CustomerPaymentInstrumentBillingAddress.Country(childComplexity), true
  5249. case "CustomerPaymentInstrumentBillingAddress.countryCode":
  5250. if e.complexity.CustomerPaymentInstrumentBillingAddress.CountryCode == nil {
  5251. break
  5252. }
  5253. return e.complexity.CustomerPaymentInstrumentBillingAddress.CountryCode(childComplexity), true
  5254. case "CustomerPaymentInstrumentBillingAddress.name":
  5255. if e.complexity.CustomerPaymentInstrumentBillingAddress.Name == nil {
  5256. break
  5257. }
  5258. return e.complexity.CustomerPaymentInstrumentBillingAddress.Name(childComplexity), true
  5259. case "CustomerPaymentInstrumentBillingAddress.province":
  5260. if e.complexity.CustomerPaymentInstrumentBillingAddress.Province == nil {
  5261. break
  5262. }
  5263. return e.complexity.CustomerPaymentInstrumentBillingAddress.Province(childComplexity), true
  5264. case "CustomerPaymentInstrumentBillingAddress.provinceCode":
  5265. if e.complexity.CustomerPaymentInstrumentBillingAddress.ProvinceCode == nil {
  5266. break
  5267. }
  5268. return e.complexity.CustomerPaymentInstrumentBillingAddress.ProvinceCode(childComplexity), true
  5269. case "CustomerPaymentInstrumentBillingAddress.zip":
  5270. if e.complexity.CustomerPaymentInstrumentBillingAddress.Zip == nil {
  5271. break
  5272. }
  5273. return e.complexity.CustomerPaymentInstrumentBillingAddress.Zip(childComplexity), true
  5274. case "CustomerPaymentMethod.customer":
  5275. if e.complexity.CustomerPaymentMethod.Customer == nil {
  5276. break
  5277. }
  5278. return e.complexity.CustomerPaymentMethod.Customer(childComplexity), true
  5279. case "CustomerPaymentMethod.id":
  5280. if e.complexity.CustomerPaymentMethod.ID == nil {
  5281. break
  5282. }
  5283. return e.complexity.CustomerPaymentMethod.ID(childComplexity), true
  5284. case "CustomerPaymentMethod.instrument":
  5285. if e.complexity.CustomerPaymentMethod.Instrument == nil {
  5286. break
  5287. }
  5288. return e.complexity.CustomerPaymentMethod.Instrument(childComplexity), true
  5289. case "CustomerPaymentMethod.revokedAt":
  5290. if e.complexity.CustomerPaymentMethod.RevokedAt == nil {
  5291. break
  5292. }
  5293. return e.complexity.CustomerPaymentMethod.RevokedAt(childComplexity), true
  5294. case "CustomerPaymentMethod.revokedReason":
  5295. if e.complexity.CustomerPaymentMethod.RevokedReason == nil {
  5296. break
  5297. }
  5298. return e.complexity.CustomerPaymentMethod.RevokedReason(childComplexity), true
  5299. case "CustomerPaymentMethod.subscriptionContracts":
  5300. if e.complexity.CustomerPaymentMethod.SubscriptionContracts == nil {
  5301. break
  5302. }
  5303. args, err := ec.field_CustomerPaymentMethod_subscriptionContracts_args(context.TODO(), rawArgs)
  5304. if err != nil {
  5305. return 0, false
  5306. }
  5307. return e.complexity.CustomerPaymentMethod.SubscriptionContracts(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  5308. case "CustomerPaymentMethodConnection.edges":
  5309. if e.complexity.CustomerPaymentMethodConnection.Edges == nil {
  5310. break
  5311. }
  5312. return e.complexity.CustomerPaymentMethodConnection.Edges(childComplexity), true
  5313. case "CustomerPaymentMethodConnection.nodes":
  5314. if e.complexity.CustomerPaymentMethodConnection.Nodes == nil {
  5315. break
  5316. }
  5317. return e.complexity.CustomerPaymentMethodConnection.Nodes(childComplexity), true
  5318. case "CustomerPaymentMethodConnection.pageInfo":
  5319. if e.complexity.CustomerPaymentMethodConnection.PageInfo == nil {
  5320. break
  5321. }
  5322. return e.complexity.CustomerPaymentMethodConnection.PageInfo(childComplexity), true
  5323. case "CustomerPaymentMethodEdge.cursor":
  5324. if e.complexity.CustomerPaymentMethodEdge.Cursor == nil {
  5325. break
  5326. }
  5327. return e.complexity.CustomerPaymentMethodEdge.Cursor(childComplexity), true
  5328. case "CustomerPaymentMethodEdge.node":
  5329. if e.complexity.CustomerPaymentMethodEdge.Node == nil {
  5330. break
  5331. }
  5332. return e.complexity.CustomerPaymentMethodEdge.Node(childComplexity), true
  5333. case "CustomerPaypalBillingAgreement.billingAddress":
  5334. if e.complexity.CustomerPaypalBillingAgreement.BillingAddress == nil {
  5335. break
  5336. }
  5337. return e.complexity.CustomerPaypalBillingAgreement.BillingAddress(childComplexity), true
  5338. case "CustomerPaypalBillingAgreement.inactive":
  5339. if e.complexity.CustomerPaypalBillingAgreement.Inactive == nil {
  5340. break
  5341. }
  5342. return e.complexity.CustomerPaypalBillingAgreement.Inactive(childComplexity), true
  5343. case "CustomerPaypalBillingAgreement.isRevocable":
  5344. if e.complexity.CustomerPaypalBillingAgreement.IsRevocable == nil {
  5345. break
  5346. }
  5347. return e.complexity.CustomerPaypalBillingAgreement.IsRevocable(childComplexity), true
  5348. case "CustomerPaypalBillingAgreement.paypalAccountEmail":
  5349. if e.complexity.CustomerPaypalBillingAgreement.PaypalAccountEmail == nil {
  5350. break
  5351. }
  5352. return e.complexity.CustomerPaypalBillingAgreement.PaypalAccountEmail(childComplexity), true
  5353. case "CustomerShopPayAgreement.expiresSoon":
  5354. if e.complexity.CustomerShopPayAgreement.ExpiresSoon == nil {
  5355. break
  5356. }
  5357. return e.complexity.CustomerShopPayAgreement.ExpiresSoon(childComplexity), true
  5358. case "CustomerShopPayAgreement.expiryMonth":
  5359. if e.complexity.CustomerShopPayAgreement.ExpiryMonth == nil {
  5360. break
  5361. }
  5362. return e.complexity.CustomerShopPayAgreement.ExpiryMonth(childComplexity), true
  5363. case "CustomerShopPayAgreement.expiryYear":
  5364. if e.complexity.CustomerShopPayAgreement.ExpiryYear == nil {
  5365. break
  5366. }
  5367. return e.complexity.CustomerShopPayAgreement.ExpiryYear(childComplexity), true
  5368. case "CustomerShopPayAgreement.inactive":
  5369. if e.complexity.CustomerShopPayAgreement.Inactive == nil {
  5370. break
  5371. }
  5372. return e.complexity.CustomerShopPayAgreement.Inactive(childComplexity), true
  5373. case "CustomerShopPayAgreement.isRevocable":
  5374. if e.complexity.CustomerShopPayAgreement.IsRevocable == nil {
  5375. break
  5376. }
  5377. return e.complexity.CustomerShopPayAgreement.IsRevocable(childComplexity), true
  5378. case "CustomerShopPayAgreement.lastDigits":
  5379. if e.complexity.CustomerShopPayAgreement.LastDigits == nil {
  5380. break
  5381. }
  5382. return e.complexity.CustomerShopPayAgreement.LastDigits(childComplexity), true
  5383. case "CustomerShopPayAgreement.maskedNumber":
  5384. if e.complexity.CustomerShopPayAgreement.MaskedNumber == nil {
  5385. break
  5386. }
  5387. return e.complexity.CustomerShopPayAgreement.MaskedNumber(childComplexity), true
  5388. case "CustomerShopPayAgreement.name":
  5389. if e.complexity.CustomerShopPayAgreement.Name == nil {
  5390. break
  5391. }
  5392. return e.complexity.CustomerShopPayAgreement.Name(childComplexity), true
  5393. case "CustomerSmsMarketingConsentState.consentCollectedFrom":
  5394. if e.complexity.CustomerSmsMarketingConsentState.ConsentCollectedFrom == nil {
  5395. break
  5396. }
  5397. return e.complexity.CustomerSmsMarketingConsentState.ConsentCollectedFrom(childComplexity), true
  5398. case "CustomerSmsMarketingConsentState.consentUpdatedAt":
  5399. if e.complexity.CustomerSmsMarketingConsentState.ConsentUpdatedAt == nil {
  5400. break
  5401. }
  5402. return e.complexity.CustomerSmsMarketingConsentState.ConsentUpdatedAt(childComplexity), true
  5403. case "CustomerSmsMarketingConsentState.marketingOptInLevel":
  5404. if e.complexity.CustomerSmsMarketingConsentState.MarketingOptInLevel == nil {
  5405. break
  5406. }
  5407. return e.complexity.CustomerSmsMarketingConsentState.MarketingOptInLevel(childComplexity), true
  5408. case "CustomerSmsMarketingConsentState.marketingState":
  5409. if e.complexity.CustomerSmsMarketingConsentState.MarketingState == nil {
  5410. break
  5411. }
  5412. return e.complexity.CustomerSmsMarketingConsentState.MarketingState(childComplexity), true
  5413. case "CustomerStatistics.predictedSpendTier":
  5414. if e.complexity.CustomerStatistics.PredictedSpendTier == nil {
  5415. break
  5416. }
  5417. return e.complexity.CustomerStatistics.PredictedSpendTier(childComplexity), true
  5418. case "CustomerVisit.id":
  5419. if e.complexity.CustomerVisit.ID == nil {
  5420. break
  5421. }
  5422. return e.complexity.CustomerVisit.ID(childComplexity), true
  5423. case "CustomerVisit.landingPage":
  5424. if e.complexity.CustomerVisit.LandingPage == nil {
  5425. break
  5426. }
  5427. return e.complexity.CustomerVisit.LandingPage(childComplexity), true
  5428. case "CustomerVisit.landingPageHtml":
  5429. if e.complexity.CustomerVisit.LandingPageHTML == nil {
  5430. break
  5431. }
  5432. return e.complexity.CustomerVisit.LandingPageHTML(childComplexity), true
  5433. case "CustomerVisit.marketingEvent":
  5434. if e.complexity.CustomerVisit.MarketingEvent == nil {
  5435. break
  5436. }
  5437. return e.complexity.CustomerVisit.MarketingEvent(childComplexity), true
  5438. case "CustomerVisit.occurredAt":
  5439. if e.complexity.CustomerVisit.OccurredAt == nil {
  5440. break
  5441. }
  5442. return e.complexity.CustomerVisit.OccurredAt(childComplexity), true
  5443. case "CustomerVisit.referralCode":
  5444. if e.complexity.CustomerVisit.ReferralCode == nil {
  5445. break
  5446. }
  5447. return e.complexity.CustomerVisit.ReferralCode(childComplexity), true
  5448. case "CustomerVisit.referralInfoHtml":
  5449. if e.complexity.CustomerVisit.ReferralInfoHTML == nil {
  5450. break
  5451. }
  5452. return e.complexity.CustomerVisit.ReferralInfoHTML(childComplexity), true
  5453. case "CustomerVisit.referrerUrl":
  5454. if e.complexity.CustomerVisit.ReferrerURL == nil {
  5455. break
  5456. }
  5457. return e.complexity.CustomerVisit.ReferrerURL(childComplexity), true
  5458. case "CustomerVisit.source":
  5459. if e.complexity.CustomerVisit.Source == nil {
  5460. break
  5461. }
  5462. return e.complexity.CustomerVisit.Source(childComplexity), true
  5463. case "CustomerVisit.sourceDescription":
  5464. if e.complexity.CustomerVisit.SourceDescription == nil {
  5465. break
  5466. }
  5467. return e.complexity.CustomerVisit.SourceDescription(childComplexity), true
  5468. case "CustomerVisit.sourceType":
  5469. if e.complexity.CustomerVisit.SourceType == nil {
  5470. break
  5471. }
  5472. return e.complexity.CustomerVisit.SourceType(childComplexity), true
  5473. case "CustomerVisit.utmParameters":
  5474. if e.complexity.CustomerVisit.UtmParameters == nil {
  5475. break
  5476. }
  5477. return e.complexity.CustomerVisit.UtmParameters(childComplexity), true
  5478. case "DeliveryAvailableService.countries":
  5479. if e.complexity.DeliveryAvailableService.Countries == nil {
  5480. break
  5481. }
  5482. return e.complexity.DeliveryAvailableService.Countries(childComplexity), true
  5483. case "DeliveryAvailableService.name":
  5484. if e.complexity.DeliveryAvailableService.Name == nil {
  5485. break
  5486. }
  5487. return e.complexity.DeliveryAvailableService.Name(childComplexity), true
  5488. case "DeliveryCarrierService.availableServicesForCountries":
  5489. if e.complexity.DeliveryCarrierService.AvailableServicesForCountries == nil {
  5490. break
  5491. }
  5492. args, err := ec.field_DeliveryCarrierService_availableServicesForCountries_args(context.TODO(), rawArgs)
  5493. if err != nil {
  5494. return 0, false
  5495. }
  5496. return e.complexity.DeliveryCarrierService.AvailableServicesForCountries(childComplexity, args["origins"].([]string), args["countryCodes"].([]CountryCode), args["restOfWorld"].(bool)), true
  5497. case "DeliveryCarrierService.formattedName":
  5498. if e.complexity.DeliveryCarrierService.FormattedName == nil {
  5499. break
  5500. }
  5501. return e.complexity.DeliveryCarrierService.FormattedName(childComplexity), true
  5502. case "DeliveryCarrierService.id":
  5503. if e.complexity.DeliveryCarrierService.ID == nil {
  5504. break
  5505. }
  5506. return e.complexity.DeliveryCarrierService.ID(childComplexity), true
  5507. case "DeliveryCarrierService.icon":
  5508. if e.complexity.DeliveryCarrierService.Icon == nil {
  5509. break
  5510. }
  5511. return e.complexity.DeliveryCarrierService.Icon(childComplexity), true
  5512. case "DeliveryCarrierService.name":
  5513. if e.complexity.DeliveryCarrierService.Name == nil {
  5514. break
  5515. }
  5516. return e.complexity.DeliveryCarrierService.Name(childComplexity), true
  5517. case "DeliveryCondition.conditionCriteria":
  5518. if e.complexity.DeliveryCondition.ConditionCriteria == nil {
  5519. break
  5520. }
  5521. return e.complexity.DeliveryCondition.ConditionCriteria(childComplexity), true
  5522. case "DeliveryCondition.field":
  5523. if e.complexity.DeliveryCondition.Field == nil {
  5524. break
  5525. }
  5526. return e.complexity.DeliveryCondition.Field(childComplexity), true
  5527. case "DeliveryCondition.id":
  5528. if e.complexity.DeliveryCondition.ID == nil {
  5529. break
  5530. }
  5531. return e.complexity.DeliveryCondition.ID(childComplexity), true
  5532. case "DeliveryCondition.operator":
  5533. if e.complexity.DeliveryCondition.Operator == nil {
  5534. break
  5535. }
  5536. return e.complexity.DeliveryCondition.Operator(childComplexity), true
  5537. case "DeliveryCountry.code":
  5538. if e.complexity.DeliveryCountry.Code == nil {
  5539. break
  5540. }
  5541. return e.complexity.DeliveryCountry.Code(childComplexity), true
  5542. case "DeliveryCountry.id":
  5543. if e.complexity.DeliveryCountry.ID == nil {
  5544. break
  5545. }
  5546. return e.complexity.DeliveryCountry.ID(childComplexity), true
  5547. case "DeliveryCountry.name":
  5548. if e.complexity.DeliveryCountry.Name == nil {
  5549. break
  5550. }
  5551. return e.complexity.DeliveryCountry.Name(childComplexity), true
  5552. case "DeliveryCountry.provinces":
  5553. if e.complexity.DeliveryCountry.Provinces == nil {
  5554. break
  5555. }
  5556. return e.complexity.DeliveryCountry.Provinces(childComplexity), true
  5557. case "DeliveryCountry.translatedName":
  5558. if e.complexity.DeliveryCountry.TranslatedName == nil {
  5559. break
  5560. }
  5561. return e.complexity.DeliveryCountry.TranslatedName(childComplexity), true
  5562. case "DeliveryCountryAndZone.country":
  5563. if e.complexity.DeliveryCountryAndZone.Country == nil {
  5564. break
  5565. }
  5566. return e.complexity.DeliveryCountryAndZone.Country(childComplexity), true
  5567. case "DeliveryCountryAndZone.zone":
  5568. if e.complexity.DeliveryCountryAndZone.Zone == nil {
  5569. break
  5570. }
  5571. return e.complexity.DeliveryCountryAndZone.Zone(childComplexity), true
  5572. case "DeliveryCountryCodeOrRestOfWorld.countryCode":
  5573. if e.complexity.DeliveryCountryCodeOrRestOfWorld.CountryCode == nil {
  5574. break
  5575. }
  5576. return e.complexity.DeliveryCountryCodeOrRestOfWorld.CountryCode(childComplexity), true
  5577. case "DeliveryCountryCodeOrRestOfWorld.restOfWorld":
  5578. if e.complexity.DeliveryCountryCodeOrRestOfWorld.RestOfWorld == nil {
  5579. break
  5580. }
  5581. return e.complexity.DeliveryCountryCodeOrRestOfWorld.RestOfWorld(childComplexity), true
  5582. case "DeliveryCountryCodesOrRestOfWorld.countryCodes":
  5583. if e.complexity.DeliveryCountryCodesOrRestOfWorld.CountryCodes == nil {
  5584. break
  5585. }
  5586. return e.complexity.DeliveryCountryCodesOrRestOfWorld.CountryCodes(childComplexity), true
  5587. case "DeliveryCountryCodesOrRestOfWorld.restOfWorld":
  5588. if e.complexity.DeliveryCountryCodesOrRestOfWorld.RestOfWorld == nil {
  5589. break
  5590. }
  5591. return e.complexity.DeliveryCountryCodesOrRestOfWorld.RestOfWorld(childComplexity), true
  5592. case "DeliveryLocationGroup.id":
  5593. if e.complexity.DeliveryLocationGroup.ID == nil {
  5594. break
  5595. }
  5596. return e.complexity.DeliveryLocationGroup.ID(childComplexity), true
  5597. case "DeliveryLocationGroup.locations":
  5598. if e.complexity.DeliveryLocationGroup.Locations == nil {
  5599. break
  5600. }
  5601. args, err := ec.field_DeliveryLocationGroup_locations_args(context.TODO(), rawArgs)
  5602. if err != nil {
  5603. return 0, false
  5604. }
  5605. return e.complexity.DeliveryLocationGroup.Locations(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*LocationSortKeys), args["query"].(*string), args["includeLegacy"].(*bool), args["includeInactive"].(*bool)), true
  5606. case "DeliveryLocationGroupZone.methodDefinitionCounts":
  5607. if e.complexity.DeliveryLocationGroupZone.MethodDefinitionCounts == nil {
  5608. break
  5609. }
  5610. return e.complexity.DeliveryLocationGroupZone.MethodDefinitionCounts(childComplexity), true
  5611. case "DeliveryLocationGroupZone.methodDefinitions":
  5612. if e.complexity.DeliveryLocationGroupZone.MethodDefinitions == nil {
  5613. break
  5614. }
  5615. args, err := ec.field_DeliveryLocationGroupZone_methodDefinitions_args(context.TODO(), rawArgs)
  5616. if err != nil {
  5617. return 0, false
  5618. }
  5619. return e.complexity.DeliveryLocationGroupZone.MethodDefinitions(childComplexity, args["eligible"].(*bool), args["type"].(*DeliveryMethodDefinitionType), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*MethodDefinitionSortKeys)), true
  5620. case "DeliveryLocationGroupZone.zone":
  5621. if e.complexity.DeliveryLocationGroupZone.Zone == nil {
  5622. break
  5623. }
  5624. return e.complexity.DeliveryLocationGroupZone.Zone(childComplexity), true
  5625. case "DeliveryLocationGroupZoneConnection.edges":
  5626. if e.complexity.DeliveryLocationGroupZoneConnection.Edges == nil {
  5627. break
  5628. }
  5629. return e.complexity.DeliveryLocationGroupZoneConnection.Edges(childComplexity), true
  5630. case "DeliveryLocationGroupZoneConnection.nodes":
  5631. if e.complexity.DeliveryLocationGroupZoneConnection.Nodes == nil {
  5632. break
  5633. }
  5634. return e.complexity.DeliveryLocationGroupZoneConnection.Nodes(childComplexity), true
  5635. case "DeliveryLocationGroupZoneConnection.pageInfo":
  5636. if e.complexity.DeliveryLocationGroupZoneConnection.PageInfo == nil {
  5637. break
  5638. }
  5639. return e.complexity.DeliveryLocationGroupZoneConnection.PageInfo(childComplexity), true
  5640. case "DeliveryLocationGroupZoneEdge.cursor":
  5641. if e.complexity.DeliveryLocationGroupZoneEdge.Cursor == nil {
  5642. break
  5643. }
  5644. return e.complexity.DeliveryLocationGroupZoneEdge.Cursor(childComplexity), true
  5645. case "DeliveryLocationGroupZoneEdge.node":
  5646. if e.complexity.DeliveryLocationGroupZoneEdge.Node == nil {
  5647. break
  5648. }
  5649. return e.complexity.DeliveryLocationGroupZoneEdge.Node(childComplexity), true
  5650. case "DeliveryMethod.id":
  5651. if e.complexity.DeliveryMethod.ID == nil {
  5652. break
  5653. }
  5654. return e.complexity.DeliveryMethod.ID(childComplexity), true
  5655. case "DeliveryMethod.maxDeliveryDateTime":
  5656. if e.complexity.DeliveryMethod.MaxDeliveryDateTime == nil {
  5657. break
  5658. }
  5659. return e.complexity.DeliveryMethod.MaxDeliveryDateTime(childComplexity), true
  5660. case "DeliveryMethod.methodType":
  5661. if e.complexity.DeliveryMethod.MethodType == nil {
  5662. break
  5663. }
  5664. return e.complexity.DeliveryMethod.MethodType(childComplexity), true
  5665. case "DeliveryMethod.minDeliveryDateTime":
  5666. if e.complexity.DeliveryMethod.MinDeliveryDateTime == nil {
  5667. break
  5668. }
  5669. return e.complexity.DeliveryMethod.MinDeliveryDateTime(childComplexity), true
  5670. case "DeliveryMethodDefinition.active":
  5671. if e.complexity.DeliveryMethodDefinition.Active == nil {
  5672. break
  5673. }
  5674. return e.complexity.DeliveryMethodDefinition.Active(childComplexity), true
  5675. case "DeliveryMethodDefinition.description":
  5676. if e.complexity.DeliveryMethodDefinition.Description == nil {
  5677. break
  5678. }
  5679. return e.complexity.DeliveryMethodDefinition.Description(childComplexity), true
  5680. case "DeliveryMethodDefinition.id":
  5681. if e.complexity.DeliveryMethodDefinition.ID == nil {
  5682. break
  5683. }
  5684. return e.complexity.DeliveryMethodDefinition.ID(childComplexity), true
  5685. case "DeliveryMethodDefinition.methodConditions":
  5686. if e.complexity.DeliveryMethodDefinition.MethodConditions == nil {
  5687. break
  5688. }
  5689. return e.complexity.DeliveryMethodDefinition.MethodConditions(childComplexity), true
  5690. case "DeliveryMethodDefinition.name":
  5691. if e.complexity.DeliveryMethodDefinition.Name == nil {
  5692. break
  5693. }
  5694. return e.complexity.DeliveryMethodDefinition.Name(childComplexity), true
  5695. case "DeliveryMethodDefinition.rateProvider":
  5696. if e.complexity.DeliveryMethodDefinition.RateProvider == nil {
  5697. break
  5698. }
  5699. return e.complexity.DeliveryMethodDefinition.RateProvider(childComplexity), true
  5700. case "DeliveryMethodDefinitionConnection.edges":
  5701. if e.complexity.DeliveryMethodDefinitionConnection.Edges == nil {
  5702. break
  5703. }
  5704. return e.complexity.DeliveryMethodDefinitionConnection.Edges(childComplexity), true
  5705. case "DeliveryMethodDefinitionConnection.nodes":
  5706. if e.complexity.DeliveryMethodDefinitionConnection.Nodes == nil {
  5707. break
  5708. }
  5709. return e.complexity.DeliveryMethodDefinitionConnection.Nodes(childComplexity), true
  5710. case "DeliveryMethodDefinitionConnection.pageInfo":
  5711. if e.complexity.DeliveryMethodDefinitionConnection.PageInfo == nil {
  5712. break
  5713. }
  5714. return e.complexity.DeliveryMethodDefinitionConnection.PageInfo(childComplexity), true
  5715. case "DeliveryMethodDefinitionCounts.participantDefinitionsCount":
  5716. if e.complexity.DeliveryMethodDefinitionCounts.ParticipantDefinitionsCount == nil {
  5717. break
  5718. }
  5719. return e.complexity.DeliveryMethodDefinitionCounts.ParticipantDefinitionsCount(childComplexity), true
  5720. case "DeliveryMethodDefinitionCounts.rateDefinitionsCount":
  5721. if e.complexity.DeliveryMethodDefinitionCounts.RateDefinitionsCount == nil {
  5722. break
  5723. }
  5724. return e.complexity.DeliveryMethodDefinitionCounts.RateDefinitionsCount(childComplexity), true
  5725. case "DeliveryMethodDefinitionEdge.cursor":
  5726. if e.complexity.DeliveryMethodDefinitionEdge.Cursor == nil {
  5727. break
  5728. }
  5729. return e.complexity.DeliveryMethodDefinitionEdge.Cursor(childComplexity), true
  5730. case "DeliveryMethodDefinitionEdge.node":
  5731. if e.complexity.DeliveryMethodDefinitionEdge.Node == nil {
  5732. break
  5733. }
  5734. return e.complexity.DeliveryMethodDefinitionEdge.Node(childComplexity), true
  5735. case "DeliveryParticipant.adaptToNewServicesFlag":
  5736. if e.complexity.DeliveryParticipant.AdaptToNewServicesFlag == nil {
  5737. break
  5738. }
  5739. return e.complexity.DeliveryParticipant.AdaptToNewServicesFlag(childComplexity), true
  5740. case "DeliveryParticipant.carrierService":
  5741. if e.complexity.DeliveryParticipant.CarrierService == nil {
  5742. break
  5743. }
  5744. return e.complexity.DeliveryParticipant.CarrierService(childComplexity), true
  5745. case "DeliveryParticipant.fixedFee":
  5746. if e.complexity.DeliveryParticipant.FixedFee == nil {
  5747. break
  5748. }
  5749. return e.complexity.DeliveryParticipant.FixedFee(childComplexity), true
  5750. case "DeliveryParticipant.id":
  5751. if e.complexity.DeliveryParticipant.ID == nil {
  5752. break
  5753. }
  5754. return e.complexity.DeliveryParticipant.ID(childComplexity), true
  5755. case "DeliveryParticipant.participantServices":
  5756. if e.complexity.DeliveryParticipant.ParticipantServices == nil {
  5757. break
  5758. }
  5759. return e.complexity.DeliveryParticipant.ParticipantServices(childComplexity), true
  5760. case "DeliveryParticipant.percentageOfRateFee":
  5761. if e.complexity.DeliveryParticipant.PercentageOfRateFee == nil {
  5762. break
  5763. }
  5764. return e.complexity.DeliveryParticipant.PercentageOfRateFee(childComplexity), true
  5765. case "DeliveryParticipantService.active":
  5766. if e.complexity.DeliveryParticipantService.Active == nil {
  5767. break
  5768. }
  5769. return e.complexity.DeliveryParticipantService.Active(childComplexity), true
  5770. case "DeliveryParticipantService.name":
  5771. if e.complexity.DeliveryParticipantService.Name == nil {
  5772. break
  5773. }
  5774. return e.complexity.DeliveryParticipantService.Name(childComplexity), true
  5775. case "DeliveryProductVariantsCount.capped":
  5776. if e.complexity.DeliveryProductVariantsCount.Capped == nil {
  5777. break
  5778. }
  5779. return e.complexity.DeliveryProductVariantsCount.Capped(childComplexity), true
  5780. case "DeliveryProductVariantsCount.count":
  5781. if e.complexity.DeliveryProductVariantsCount.Count == nil {
  5782. break
  5783. }
  5784. return e.complexity.DeliveryProductVariantsCount.Count(childComplexity), true
  5785. case "DeliveryProfile.activeMethodDefinitionsCount":
  5786. if e.complexity.DeliveryProfile.ActiveMethodDefinitionsCount == nil {
  5787. break
  5788. }
  5789. return e.complexity.DeliveryProfile.ActiveMethodDefinitionsCount(childComplexity), true
  5790. case "DeliveryProfile.default":
  5791. if e.complexity.DeliveryProfile.Default == nil {
  5792. break
  5793. }
  5794. return e.complexity.DeliveryProfile.Default(childComplexity), true
  5795. case "DeliveryProfile.id":
  5796. if e.complexity.DeliveryProfile.ID == nil {
  5797. break
  5798. }
  5799. return e.complexity.DeliveryProfile.ID(childComplexity), true
  5800. case "DeliveryProfile.legacyMode":
  5801. if e.complexity.DeliveryProfile.LegacyMode == nil {
  5802. break
  5803. }
  5804. return e.complexity.DeliveryProfile.LegacyMode(childComplexity), true
  5805. case "DeliveryProfile.locationsWithoutRatesCount":
  5806. if e.complexity.DeliveryProfile.LocationsWithoutRatesCount == nil {
  5807. break
  5808. }
  5809. return e.complexity.DeliveryProfile.LocationsWithoutRatesCount(childComplexity), true
  5810. case "DeliveryProfile.name":
  5811. if e.complexity.DeliveryProfile.Name == nil {
  5812. break
  5813. }
  5814. return e.complexity.DeliveryProfile.Name(childComplexity), true
  5815. case "DeliveryProfile.originLocationCount":
  5816. if e.complexity.DeliveryProfile.OriginLocationCount == nil {
  5817. break
  5818. }
  5819. return e.complexity.DeliveryProfile.OriginLocationCount(childComplexity), true
  5820. case "DeliveryProfile.productVariantsCountV2":
  5821. if e.complexity.DeliveryProfile.ProductVariantsCountV2 == nil {
  5822. break
  5823. }
  5824. return e.complexity.DeliveryProfile.ProductVariantsCountV2(childComplexity), true
  5825. case "DeliveryProfile.profileItems":
  5826. if e.complexity.DeliveryProfile.ProfileItems == nil {
  5827. break
  5828. }
  5829. args, err := ec.field_DeliveryProfile_profileItems_args(context.TODO(), rawArgs)
  5830. if err != nil {
  5831. return 0, false
  5832. }
  5833. return e.complexity.DeliveryProfile.ProfileItems(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  5834. case "DeliveryProfile.profileLocationGroups":
  5835. if e.complexity.DeliveryProfile.ProfileLocationGroups == nil {
  5836. break
  5837. }
  5838. return e.complexity.DeliveryProfile.ProfileLocationGroups(childComplexity), true
  5839. case "DeliveryProfile.sellingPlanGroups":
  5840. if e.complexity.DeliveryProfile.SellingPlanGroups == nil {
  5841. break
  5842. }
  5843. args, err := ec.field_DeliveryProfile_sellingPlanGroups_args(context.TODO(), rawArgs)
  5844. if err != nil {
  5845. return 0, false
  5846. }
  5847. return e.complexity.DeliveryProfile.SellingPlanGroups(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  5848. case "DeliveryProfile.unassignedLocations":
  5849. if e.complexity.DeliveryProfile.UnassignedLocations == nil {
  5850. break
  5851. }
  5852. return e.complexity.DeliveryProfile.UnassignedLocations(childComplexity), true
  5853. case "DeliveryProfile.zoneCountryCount":
  5854. if e.complexity.DeliveryProfile.ZoneCountryCount == nil {
  5855. break
  5856. }
  5857. return e.complexity.DeliveryProfile.ZoneCountryCount(childComplexity), true
  5858. case "DeliveryProfileItem.id":
  5859. if e.complexity.DeliveryProfileItem.ID == nil {
  5860. break
  5861. }
  5862. return e.complexity.DeliveryProfileItem.ID(childComplexity), true
  5863. case "DeliveryProfileItem.product":
  5864. if e.complexity.DeliveryProfileItem.Product == nil {
  5865. break
  5866. }
  5867. return e.complexity.DeliveryProfileItem.Product(childComplexity), true
  5868. case "DeliveryProfileItem.variants":
  5869. if e.complexity.DeliveryProfileItem.Variants == nil {
  5870. break
  5871. }
  5872. args, err := ec.field_DeliveryProfileItem_variants_args(context.TODO(), rawArgs)
  5873. if err != nil {
  5874. return 0, false
  5875. }
  5876. return e.complexity.DeliveryProfileItem.Variants(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  5877. case "DeliveryProfileItemConnection.edges":
  5878. if e.complexity.DeliveryProfileItemConnection.Edges == nil {
  5879. break
  5880. }
  5881. return e.complexity.DeliveryProfileItemConnection.Edges(childComplexity), true
  5882. case "DeliveryProfileItemConnection.nodes":
  5883. if e.complexity.DeliveryProfileItemConnection.Nodes == nil {
  5884. break
  5885. }
  5886. return e.complexity.DeliveryProfileItemConnection.Nodes(childComplexity), true
  5887. case "DeliveryProfileItemConnection.pageInfo":
  5888. if e.complexity.DeliveryProfileItemConnection.PageInfo == nil {
  5889. break
  5890. }
  5891. return e.complexity.DeliveryProfileItemConnection.PageInfo(childComplexity), true
  5892. case "DeliveryProfileItemEdge.cursor":
  5893. if e.complexity.DeliveryProfileItemEdge.Cursor == nil {
  5894. break
  5895. }
  5896. return e.complexity.DeliveryProfileItemEdge.Cursor(childComplexity), true
  5897. case "DeliveryProfileItemEdge.node":
  5898. if e.complexity.DeliveryProfileItemEdge.Node == nil {
  5899. break
  5900. }
  5901. return e.complexity.DeliveryProfileItemEdge.Node(childComplexity), true
  5902. case "DeliveryProfileLocationGroup.countriesInAnyZone":
  5903. if e.complexity.DeliveryProfileLocationGroup.CountriesInAnyZone == nil {
  5904. break
  5905. }
  5906. return e.complexity.DeliveryProfileLocationGroup.CountriesInAnyZone(childComplexity), true
  5907. case "DeliveryProfileLocationGroup.locationGroup":
  5908. if e.complexity.DeliveryProfileLocationGroup.LocationGroup == nil {
  5909. break
  5910. }
  5911. return e.complexity.DeliveryProfileLocationGroup.LocationGroup(childComplexity), true
  5912. case "DeliveryProfileLocationGroup.locationGroupZones":
  5913. if e.complexity.DeliveryProfileLocationGroup.LocationGroupZones == nil {
  5914. break
  5915. }
  5916. args, err := ec.field_DeliveryProfileLocationGroup_locationGroupZones_args(context.TODO(), rawArgs)
  5917. if err != nil {
  5918. return 0, false
  5919. }
  5920. return e.complexity.DeliveryProfileLocationGroup.LocationGroupZones(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  5921. case "DeliveryProvince.code":
  5922. if e.complexity.DeliveryProvince.Code == nil {
  5923. break
  5924. }
  5925. return e.complexity.DeliveryProvince.Code(childComplexity), true
  5926. case "DeliveryProvince.id":
  5927. if e.complexity.DeliveryProvince.ID == nil {
  5928. break
  5929. }
  5930. return e.complexity.DeliveryProvince.ID(childComplexity), true
  5931. case "DeliveryProvince.name":
  5932. if e.complexity.DeliveryProvince.Name == nil {
  5933. break
  5934. }
  5935. return e.complexity.DeliveryProvince.Name(childComplexity), true
  5936. case "DeliveryProvince.translatedName":
  5937. if e.complexity.DeliveryProvince.TranslatedName == nil {
  5938. break
  5939. }
  5940. return e.complexity.DeliveryProvince.TranslatedName(childComplexity), true
  5941. case "DeliveryRateDefinition.id":
  5942. if e.complexity.DeliveryRateDefinition.ID == nil {
  5943. break
  5944. }
  5945. return e.complexity.DeliveryRateDefinition.ID(childComplexity), true
  5946. case "DeliveryRateDefinition.price":
  5947. if e.complexity.DeliveryRateDefinition.Price == nil {
  5948. break
  5949. }
  5950. return e.complexity.DeliveryRateDefinition.Price(childComplexity), true
  5951. case "DeliveryZone.countries":
  5952. if e.complexity.DeliveryZone.Countries == nil {
  5953. break
  5954. }
  5955. return e.complexity.DeliveryZone.Countries(childComplexity), true
  5956. case "DeliveryZone.id":
  5957. if e.complexity.DeliveryZone.ID == nil {
  5958. break
  5959. }
  5960. return e.complexity.DeliveryZone.ID(childComplexity), true
  5961. case "DeliveryZone.name":
  5962. if e.complexity.DeliveryZone.Name == nil {
  5963. break
  5964. }
  5965. return e.complexity.DeliveryZone.Name(childComplexity), true
  5966. case "DiscountAllocation.allocatedAmountSet":
  5967. if e.complexity.DiscountAllocation.AllocatedAmountSet == nil {
  5968. break
  5969. }
  5970. return e.complexity.DiscountAllocation.AllocatedAmountSet(childComplexity), true
  5971. case "DiscountAllocation.discountApplication":
  5972. if e.complexity.DiscountAllocation.DiscountApplication == nil {
  5973. break
  5974. }
  5975. return e.complexity.DiscountAllocation.DiscountApplication(childComplexity), true
  5976. case "DiscountApplicationConnection.edges":
  5977. if e.complexity.DiscountApplicationConnection.Edges == nil {
  5978. break
  5979. }
  5980. return e.complexity.DiscountApplicationConnection.Edges(childComplexity), true
  5981. case "DiscountApplicationConnection.nodes":
  5982. if e.complexity.DiscountApplicationConnection.Nodes == nil {
  5983. break
  5984. }
  5985. return e.complexity.DiscountApplicationConnection.Nodes(childComplexity), true
  5986. case "DiscountApplicationConnection.pageInfo":
  5987. if e.complexity.DiscountApplicationConnection.PageInfo == nil {
  5988. break
  5989. }
  5990. return e.complexity.DiscountApplicationConnection.PageInfo(childComplexity), true
  5991. case "DiscountApplicationEdge.cursor":
  5992. if e.complexity.DiscountApplicationEdge.Cursor == nil {
  5993. break
  5994. }
  5995. return e.complexity.DiscountApplicationEdge.Cursor(childComplexity), true
  5996. case "DiscountApplicationEdge.node":
  5997. if e.complexity.DiscountApplicationEdge.Node == nil {
  5998. break
  5999. }
  6000. return e.complexity.DiscountApplicationEdge.Node(childComplexity), true
  6001. case "DiscountCodeApplication.allocationMethod":
  6002. if e.complexity.DiscountCodeApplication.AllocationMethod == nil {
  6003. break
  6004. }
  6005. return e.complexity.DiscountCodeApplication.AllocationMethod(childComplexity), true
  6006. case "DiscountCodeApplication.code":
  6007. if e.complexity.DiscountCodeApplication.Code == nil {
  6008. break
  6009. }
  6010. return e.complexity.DiscountCodeApplication.Code(childComplexity), true
  6011. case "DiscountCodeApplication.index":
  6012. if e.complexity.DiscountCodeApplication.Index == nil {
  6013. break
  6014. }
  6015. return e.complexity.DiscountCodeApplication.Index(childComplexity), true
  6016. case "DiscountCodeApplication.targetSelection":
  6017. if e.complexity.DiscountCodeApplication.TargetSelection == nil {
  6018. break
  6019. }
  6020. return e.complexity.DiscountCodeApplication.TargetSelection(childComplexity), true
  6021. case "DiscountCodeApplication.targetType":
  6022. if e.complexity.DiscountCodeApplication.TargetType == nil {
  6023. break
  6024. }
  6025. return e.complexity.DiscountCodeApplication.TargetType(childComplexity), true
  6026. case "DiscountCodeApplication.value":
  6027. if e.complexity.DiscountCodeApplication.Value == nil {
  6028. break
  6029. }
  6030. return e.complexity.DiscountCodeApplication.Value(childComplexity), true
  6031. case "Domain.host":
  6032. if e.complexity.Domain.Host == nil {
  6033. break
  6034. }
  6035. return e.complexity.Domain.Host(childComplexity), true
  6036. case "Domain.id":
  6037. if e.complexity.Domain.ID == nil {
  6038. break
  6039. }
  6040. return e.complexity.Domain.ID(childComplexity), true
  6041. case "Domain.localization":
  6042. if e.complexity.Domain.Localization == nil {
  6043. break
  6044. }
  6045. return e.complexity.Domain.Localization(childComplexity), true
  6046. case "Domain.marketWebPresence":
  6047. if e.complexity.Domain.MarketWebPresence == nil {
  6048. break
  6049. }
  6050. return e.complexity.Domain.MarketWebPresence(childComplexity), true
  6051. case "Domain.sslEnabled":
  6052. if e.complexity.Domain.SslEnabled == nil {
  6053. break
  6054. }
  6055. return e.complexity.Domain.SslEnabled(childComplexity), true
  6056. case "Domain.url":
  6057. if e.complexity.Domain.URL == nil {
  6058. break
  6059. }
  6060. return e.complexity.Domain.URL(childComplexity), true
  6061. case "DomainLocalization.alternateLocales":
  6062. if e.complexity.DomainLocalization.AlternateLocales == nil {
  6063. break
  6064. }
  6065. return e.complexity.DomainLocalization.AlternateLocales(childComplexity), true
  6066. case "DomainLocalization.country":
  6067. if e.complexity.DomainLocalization.Country == nil {
  6068. break
  6069. }
  6070. return e.complexity.DomainLocalization.Country(childComplexity), true
  6071. case "DomainLocalization.defaultLocale":
  6072. if e.complexity.DomainLocalization.DefaultLocale == nil {
  6073. break
  6074. }
  6075. return e.complexity.DomainLocalization.DefaultLocale(childComplexity), true
  6076. case "DraftOrder.appliedDiscount":
  6077. if e.complexity.DraftOrder.AppliedDiscount == nil {
  6078. break
  6079. }
  6080. return e.complexity.DraftOrder.AppliedDiscount(childComplexity), true
  6081. case "DraftOrder.billingAddress":
  6082. if e.complexity.DraftOrder.BillingAddress == nil {
  6083. break
  6084. }
  6085. return e.complexity.DraftOrder.BillingAddress(childComplexity), true
  6086. case "DraftOrder.billingAddressMatchesShippingAddress":
  6087. if e.complexity.DraftOrder.BillingAddressMatchesShippingAddress == nil {
  6088. break
  6089. }
  6090. return e.complexity.DraftOrder.BillingAddressMatchesShippingAddress(childComplexity), true
  6091. case "DraftOrder.completedAt":
  6092. if e.complexity.DraftOrder.CompletedAt == nil {
  6093. break
  6094. }
  6095. return e.complexity.DraftOrder.CompletedAt(childComplexity), true
  6096. case "DraftOrder.createdAt":
  6097. if e.complexity.DraftOrder.CreatedAt == nil {
  6098. break
  6099. }
  6100. return e.complexity.DraftOrder.CreatedAt(childComplexity), true
  6101. case "DraftOrder.currencyCode":
  6102. if e.complexity.DraftOrder.CurrencyCode == nil {
  6103. break
  6104. }
  6105. return e.complexity.DraftOrder.CurrencyCode(childComplexity), true
  6106. case "DraftOrder.customAttributes":
  6107. if e.complexity.DraftOrder.CustomAttributes == nil {
  6108. break
  6109. }
  6110. return e.complexity.DraftOrder.CustomAttributes(childComplexity), true
  6111. case "DraftOrder.customer":
  6112. if e.complexity.DraftOrder.Customer == nil {
  6113. break
  6114. }
  6115. return e.complexity.DraftOrder.Customer(childComplexity), true
  6116. case "DraftOrder.defaultCursor":
  6117. if e.complexity.DraftOrder.DefaultCursor == nil {
  6118. break
  6119. }
  6120. return e.complexity.DraftOrder.DefaultCursor(childComplexity), true
  6121. case "DraftOrder.email":
  6122. if e.complexity.DraftOrder.Email == nil {
  6123. break
  6124. }
  6125. return e.complexity.DraftOrder.Email(childComplexity), true
  6126. case "DraftOrder.events":
  6127. if e.complexity.DraftOrder.Events == nil {
  6128. break
  6129. }
  6130. args, err := ec.field_DraftOrder_events_args(context.TODO(), rawArgs)
  6131. if err != nil {
  6132. return 0, false
  6133. }
  6134. return e.complexity.DraftOrder.Events(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*EventSortKeys), args["query"].(*string)), true
  6135. case "DraftOrder.hasTimelineComment":
  6136. if e.complexity.DraftOrder.HasTimelineComment == nil {
  6137. break
  6138. }
  6139. return e.complexity.DraftOrder.HasTimelineComment(childComplexity), true
  6140. case "DraftOrder.id":
  6141. if e.complexity.DraftOrder.ID == nil {
  6142. break
  6143. }
  6144. return e.complexity.DraftOrder.ID(childComplexity), true
  6145. case "DraftOrder.invoiceEmailTemplateSubject":
  6146. if e.complexity.DraftOrder.InvoiceEmailTemplateSubject == nil {
  6147. break
  6148. }
  6149. return e.complexity.DraftOrder.InvoiceEmailTemplateSubject(childComplexity), true
  6150. case "DraftOrder.invoiceSentAt":
  6151. if e.complexity.DraftOrder.InvoiceSentAt == nil {
  6152. break
  6153. }
  6154. return e.complexity.DraftOrder.InvoiceSentAt(childComplexity), true
  6155. case "DraftOrder.invoiceUrl":
  6156. if e.complexity.DraftOrder.InvoiceURL == nil {
  6157. break
  6158. }
  6159. return e.complexity.DraftOrder.InvoiceURL(childComplexity), true
  6160. case "DraftOrder.legacyResourceId":
  6161. if e.complexity.DraftOrder.LegacyResourceID == nil {
  6162. break
  6163. }
  6164. return e.complexity.DraftOrder.LegacyResourceID(childComplexity), true
  6165. case "DraftOrder.lineItems":
  6166. if e.complexity.DraftOrder.LineItems == nil {
  6167. break
  6168. }
  6169. args, err := ec.field_DraftOrder_lineItems_args(context.TODO(), rawArgs)
  6170. if err != nil {
  6171. return 0, false
  6172. }
  6173. return e.complexity.DraftOrder.LineItems(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  6174. case "DraftOrder.lineItemsSubtotalPrice":
  6175. if e.complexity.DraftOrder.LineItemsSubtotalPrice == nil {
  6176. break
  6177. }
  6178. return e.complexity.DraftOrder.LineItemsSubtotalPrice(childComplexity), true
  6179. case "DraftOrder.localizationExtensions":
  6180. if e.complexity.DraftOrder.LocalizationExtensions == nil {
  6181. break
  6182. }
  6183. args, err := ec.field_DraftOrder_localizationExtensions_args(context.TODO(), rawArgs)
  6184. if err != nil {
  6185. return 0, false
  6186. }
  6187. return e.complexity.DraftOrder.LocalizationExtensions(childComplexity, args["countryCodes"].([]CountryCode), args["purposes"].([]LocalizationExtensionPurpose), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  6188. case "DraftOrder.marketName":
  6189. if e.complexity.DraftOrder.MarketName == nil {
  6190. break
  6191. }
  6192. return e.complexity.DraftOrder.MarketName(childComplexity), true
  6193. case "DraftOrder.marketRegionCountryCode":
  6194. if e.complexity.DraftOrder.MarketRegionCountryCode == nil {
  6195. break
  6196. }
  6197. return e.complexity.DraftOrder.MarketRegionCountryCode(childComplexity), true
  6198. case "DraftOrder.metafield":
  6199. if e.complexity.DraftOrder.Metafield == nil {
  6200. break
  6201. }
  6202. args, err := ec.field_DraftOrder_metafield_args(context.TODO(), rawArgs)
  6203. if err != nil {
  6204. return 0, false
  6205. }
  6206. return e.complexity.DraftOrder.Metafield(childComplexity, args["namespace"].(string), args["key"].(string)), true
  6207. case "DraftOrder.metafields":
  6208. if e.complexity.DraftOrder.Metafields == nil {
  6209. break
  6210. }
  6211. args, err := ec.field_DraftOrder_metafields_args(context.TODO(), rawArgs)
  6212. if err != nil {
  6213. return 0, false
  6214. }
  6215. return e.complexity.DraftOrder.Metafields(childComplexity, args["namespace"].(*string), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  6216. case "DraftOrder.name":
  6217. if e.complexity.DraftOrder.Name == nil {
  6218. break
  6219. }
  6220. return e.complexity.DraftOrder.Name(childComplexity), true
  6221. case "DraftOrder.note2":
  6222. if e.complexity.DraftOrder.Note2 == nil {
  6223. break
  6224. }
  6225. return e.complexity.DraftOrder.Note2(childComplexity), true
  6226. case "DraftOrder.order":
  6227. if e.complexity.DraftOrder.Order == nil {
  6228. break
  6229. }
  6230. return e.complexity.DraftOrder.Order(childComplexity), true
  6231. case "DraftOrder.paymentTerms":
  6232. if e.complexity.DraftOrder.PaymentTerms == nil {
  6233. break
  6234. }
  6235. return e.complexity.DraftOrder.PaymentTerms(childComplexity), true
  6236. case "DraftOrder.phone":
  6237. if e.complexity.DraftOrder.Phone == nil {
  6238. break
  6239. }
  6240. return e.complexity.DraftOrder.Phone(childComplexity), true
  6241. case "DraftOrder.presentmentCurrencyCode":
  6242. if e.complexity.DraftOrder.PresentmentCurrencyCode == nil {
  6243. break
  6244. }
  6245. return e.complexity.DraftOrder.PresentmentCurrencyCode(childComplexity), true
  6246. case "DraftOrder.privateMetafield":
  6247. if e.complexity.DraftOrder.PrivateMetafield == nil {
  6248. break
  6249. }
  6250. args, err := ec.field_DraftOrder_privateMetafield_args(context.TODO(), rawArgs)
  6251. if err != nil {
  6252. return 0, false
  6253. }
  6254. return e.complexity.DraftOrder.PrivateMetafield(childComplexity, args["namespace"].(string), args["key"].(string)), true
  6255. case "DraftOrder.privateMetafields":
  6256. if e.complexity.DraftOrder.PrivateMetafields == nil {
  6257. break
  6258. }
  6259. args, err := ec.field_DraftOrder_privateMetafields_args(context.TODO(), rawArgs)
  6260. if err != nil {
  6261. return 0, false
  6262. }
  6263. return e.complexity.DraftOrder.PrivateMetafields(childComplexity, args["namespace"].(*string), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  6264. case "DraftOrder.purchasingEntity":
  6265. if e.complexity.DraftOrder.PurchasingEntity == nil {
  6266. break
  6267. }
  6268. return e.complexity.DraftOrder.PurchasingEntity(childComplexity), true
  6269. case "DraftOrder.ready":
  6270. if e.complexity.DraftOrder.Ready == nil {
  6271. break
  6272. }
  6273. return e.complexity.DraftOrder.Ready(childComplexity), true
  6274. case "DraftOrder.reserveInventoryUntil":
  6275. if e.complexity.DraftOrder.ReserveInventoryUntil == nil {
  6276. break
  6277. }
  6278. return e.complexity.DraftOrder.ReserveInventoryUntil(childComplexity), true
  6279. case "DraftOrder.shippingAddress":
  6280. if e.complexity.DraftOrder.ShippingAddress == nil {
  6281. break
  6282. }
  6283. return e.complexity.DraftOrder.ShippingAddress(childComplexity), true
  6284. case "DraftOrder.shippingLine":
  6285. if e.complexity.DraftOrder.ShippingLine == nil {
  6286. break
  6287. }
  6288. return e.complexity.DraftOrder.ShippingLine(childComplexity), true
  6289. case "DraftOrder.status":
  6290. if e.complexity.DraftOrder.Status == nil {
  6291. break
  6292. }
  6293. return e.complexity.DraftOrder.Status(childComplexity), true
  6294. case "DraftOrder.subtotalPrice":
  6295. if e.complexity.DraftOrder.SubtotalPrice == nil {
  6296. break
  6297. }
  6298. return e.complexity.DraftOrder.SubtotalPrice(childComplexity), true
  6299. case "DraftOrder.subtotalPriceSet":
  6300. if e.complexity.DraftOrder.SubtotalPriceSet == nil {
  6301. break
  6302. }
  6303. return e.complexity.DraftOrder.SubtotalPriceSet(childComplexity), true
  6304. case "DraftOrder.tags":
  6305. if e.complexity.DraftOrder.Tags == nil {
  6306. break
  6307. }
  6308. return e.complexity.DraftOrder.Tags(childComplexity), true
  6309. case "DraftOrder.taxExempt":
  6310. if e.complexity.DraftOrder.TaxExempt == nil {
  6311. break
  6312. }
  6313. return e.complexity.DraftOrder.TaxExempt(childComplexity), true
  6314. case "DraftOrder.taxLines":
  6315. if e.complexity.DraftOrder.TaxLines == nil {
  6316. break
  6317. }
  6318. return e.complexity.DraftOrder.TaxLines(childComplexity), true
  6319. case "DraftOrder.taxesIncluded":
  6320. if e.complexity.DraftOrder.TaxesIncluded == nil {
  6321. break
  6322. }
  6323. return e.complexity.DraftOrder.TaxesIncluded(childComplexity), true
  6324. case "DraftOrder.totalDiscountsSet":
  6325. if e.complexity.DraftOrder.TotalDiscountsSet == nil {
  6326. break
  6327. }
  6328. return e.complexity.DraftOrder.TotalDiscountsSet(childComplexity), true
  6329. case "DraftOrder.totalLineItemsPriceSet":
  6330. if e.complexity.DraftOrder.TotalLineItemsPriceSet == nil {
  6331. break
  6332. }
  6333. return e.complexity.DraftOrder.TotalLineItemsPriceSet(childComplexity), true
  6334. case "DraftOrder.totalPrice":
  6335. if e.complexity.DraftOrder.TotalPrice == nil {
  6336. break
  6337. }
  6338. return e.complexity.DraftOrder.TotalPrice(childComplexity), true
  6339. case "DraftOrder.totalPriceSet":
  6340. if e.complexity.DraftOrder.TotalPriceSet == nil {
  6341. break
  6342. }
  6343. return e.complexity.DraftOrder.TotalPriceSet(childComplexity), true
  6344. case "DraftOrder.totalShippingPrice":
  6345. if e.complexity.DraftOrder.TotalShippingPrice == nil {
  6346. break
  6347. }
  6348. return e.complexity.DraftOrder.TotalShippingPrice(childComplexity), true
  6349. case "DraftOrder.totalShippingPriceSet":
  6350. if e.complexity.DraftOrder.TotalShippingPriceSet == nil {
  6351. break
  6352. }
  6353. return e.complexity.DraftOrder.TotalShippingPriceSet(childComplexity), true
  6354. case "DraftOrder.totalTax":
  6355. if e.complexity.DraftOrder.TotalTax == nil {
  6356. break
  6357. }
  6358. return e.complexity.DraftOrder.TotalTax(childComplexity), true
  6359. case "DraftOrder.totalTaxSet":
  6360. if e.complexity.DraftOrder.TotalTaxSet == nil {
  6361. break
  6362. }
  6363. return e.complexity.DraftOrder.TotalTaxSet(childComplexity), true
  6364. case "DraftOrder.totalWeight":
  6365. if e.complexity.DraftOrder.TotalWeight == nil {
  6366. break
  6367. }
  6368. return e.complexity.DraftOrder.TotalWeight(childComplexity), true
  6369. case "DraftOrder.updatedAt":
  6370. if e.complexity.DraftOrder.UpdatedAt == nil {
  6371. break
  6372. }
  6373. return e.complexity.DraftOrder.UpdatedAt(childComplexity), true
  6374. case "DraftOrder.visibleToCustomer":
  6375. if e.complexity.DraftOrder.VisibleToCustomer == nil {
  6376. break
  6377. }
  6378. return e.complexity.DraftOrder.VisibleToCustomer(childComplexity), true
  6379. case "DraftOrderAppliedDiscount.amountSet":
  6380. if e.complexity.DraftOrderAppliedDiscount.AmountSet == nil {
  6381. break
  6382. }
  6383. return e.complexity.DraftOrderAppliedDiscount.AmountSet(childComplexity), true
  6384. case "DraftOrderAppliedDiscount.amountV2":
  6385. if e.complexity.DraftOrderAppliedDiscount.AmountV2 == nil {
  6386. break
  6387. }
  6388. return e.complexity.DraftOrderAppliedDiscount.AmountV2(childComplexity), true
  6389. case "DraftOrderAppliedDiscount.description":
  6390. if e.complexity.DraftOrderAppliedDiscount.Description == nil {
  6391. break
  6392. }
  6393. return e.complexity.DraftOrderAppliedDiscount.Description(childComplexity), true
  6394. case "DraftOrderAppliedDiscount.title":
  6395. if e.complexity.DraftOrderAppliedDiscount.Title == nil {
  6396. break
  6397. }
  6398. return e.complexity.DraftOrderAppliedDiscount.Title(childComplexity), true
  6399. case "DraftOrderAppliedDiscount.value":
  6400. if e.complexity.DraftOrderAppliedDiscount.Value == nil {
  6401. break
  6402. }
  6403. return e.complexity.DraftOrderAppliedDiscount.Value(childComplexity), true
  6404. case "DraftOrderAppliedDiscount.valueType":
  6405. if e.complexity.DraftOrderAppliedDiscount.ValueType == nil {
  6406. break
  6407. }
  6408. return e.complexity.DraftOrderAppliedDiscount.ValueType(childComplexity), true
  6409. case "DraftOrderConnection.edges":
  6410. if e.complexity.DraftOrderConnection.Edges == nil {
  6411. break
  6412. }
  6413. return e.complexity.DraftOrderConnection.Edges(childComplexity), true
  6414. case "DraftOrderConnection.nodes":
  6415. if e.complexity.DraftOrderConnection.Nodes == nil {
  6416. break
  6417. }
  6418. return e.complexity.DraftOrderConnection.Nodes(childComplexity), true
  6419. case "DraftOrderConnection.pageInfo":
  6420. if e.complexity.DraftOrderConnection.PageInfo == nil {
  6421. break
  6422. }
  6423. return e.complexity.DraftOrderConnection.PageInfo(childComplexity), true
  6424. case "DraftOrderEdge.cursor":
  6425. if e.complexity.DraftOrderEdge.Cursor == nil {
  6426. break
  6427. }
  6428. return e.complexity.DraftOrderEdge.Cursor(childComplexity), true
  6429. case "DraftOrderEdge.node":
  6430. if e.complexity.DraftOrderEdge.Node == nil {
  6431. break
  6432. }
  6433. return e.complexity.DraftOrderEdge.Node(childComplexity), true
  6434. case "DraftOrderLineItem.appliedDiscount":
  6435. if e.complexity.DraftOrderLineItem.AppliedDiscount == nil {
  6436. break
  6437. }
  6438. return e.complexity.DraftOrderLineItem.AppliedDiscount(childComplexity), true
  6439. case "DraftOrderLineItem.custom":
  6440. if e.complexity.DraftOrderLineItem.Custom == nil {
  6441. break
  6442. }
  6443. return e.complexity.DraftOrderLineItem.Custom(childComplexity), true
  6444. case "DraftOrderLineItem.customAttributes":
  6445. if e.complexity.DraftOrderLineItem.CustomAttributes == nil {
  6446. break
  6447. }
  6448. return e.complexity.DraftOrderLineItem.CustomAttributes(childComplexity), true
  6449. case "DraftOrderLineItem.customAttributesV2":
  6450. if e.complexity.DraftOrderLineItem.CustomAttributesV2 == nil {
  6451. break
  6452. }
  6453. return e.complexity.DraftOrderLineItem.CustomAttributesV2(childComplexity), true
  6454. case "DraftOrderLineItem.discountedTotal":
  6455. if e.complexity.DraftOrderLineItem.DiscountedTotal == nil {
  6456. break
  6457. }
  6458. return e.complexity.DraftOrderLineItem.DiscountedTotal(childComplexity), true
  6459. case "DraftOrderLineItem.discountedTotalSet":
  6460. if e.complexity.DraftOrderLineItem.DiscountedTotalSet == nil {
  6461. break
  6462. }
  6463. return e.complexity.DraftOrderLineItem.DiscountedTotalSet(childComplexity), true
  6464. case "DraftOrderLineItem.discountedUnitPrice":
  6465. if e.complexity.DraftOrderLineItem.DiscountedUnitPrice == nil {
  6466. break
  6467. }
  6468. return e.complexity.DraftOrderLineItem.DiscountedUnitPrice(childComplexity), true
  6469. case "DraftOrderLineItem.discountedUnitPriceSet":
  6470. if e.complexity.DraftOrderLineItem.DiscountedUnitPriceSet == nil {
  6471. break
  6472. }
  6473. return e.complexity.DraftOrderLineItem.DiscountedUnitPriceSet(childComplexity), true
  6474. case "DraftOrderLineItem.fulfillmentService":
  6475. if e.complexity.DraftOrderLineItem.FulfillmentService == nil {
  6476. break
  6477. }
  6478. return e.complexity.DraftOrderLineItem.FulfillmentService(childComplexity), true
  6479. case "DraftOrderLineItem.id":
  6480. if e.complexity.DraftOrderLineItem.ID == nil {
  6481. break
  6482. }
  6483. return e.complexity.DraftOrderLineItem.ID(childComplexity), true
  6484. case "DraftOrderLineItem.image":
  6485. if e.complexity.DraftOrderLineItem.Image == nil {
  6486. break
  6487. }
  6488. return e.complexity.DraftOrderLineItem.Image(childComplexity), true
  6489. case "DraftOrderLineItem.isGiftCard":
  6490. if e.complexity.DraftOrderLineItem.IsGiftCard == nil {
  6491. break
  6492. }
  6493. return e.complexity.DraftOrderLineItem.IsGiftCard(childComplexity), true
  6494. case "DraftOrderLineItem.name":
  6495. if e.complexity.DraftOrderLineItem.Name == nil {
  6496. break
  6497. }
  6498. return e.complexity.DraftOrderLineItem.Name(childComplexity), true
  6499. case "DraftOrderLineItem.originalTotal":
  6500. if e.complexity.DraftOrderLineItem.OriginalTotal == nil {
  6501. break
  6502. }
  6503. return e.complexity.DraftOrderLineItem.OriginalTotal(childComplexity), true
  6504. case "DraftOrderLineItem.originalTotalSet":
  6505. if e.complexity.DraftOrderLineItem.OriginalTotalSet == nil {
  6506. break
  6507. }
  6508. return e.complexity.DraftOrderLineItem.OriginalTotalSet(childComplexity), true
  6509. case "DraftOrderLineItem.originalUnitPrice":
  6510. if e.complexity.DraftOrderLineItem.OriginalUnitPrice == nil {
  6511. break
  6512. }
  6513. return e.complexity.DraftOrderLineItem.OriginalUnitPrice(childComplexity), true
  6514. case "DraftOrderLineItem.originalUnitPriceSet":
  6515. if e.complexity.DraftOrderLineItem.OriginalUnitPriceSet == nil {
  6516. break
  6517. }
  6518. return e.complexity.DraftOrderLineItem.OriginalUnitPriceSet(childComplexity), true
  6519. case "DraftOrderLineItem.product":
  6520. if e.complexity.DraftOrderLineItem.Product == nil {
  6521. break
  6522. }
  6523. return e.complexity.DraftOrderLineItem.Product(childComplexity), true
  6524. case "DraftOrderLineItem.quantity":
  6525. if e.complexity.DraftOrderLineItem.Quantity == nil {
  6526. break
  6527. }
  6528. return e.complexity.DraftOrderLineItem.Quantity(childComplexity), true
  6529. case "DraftOrderLineItem.requiresShipping":
  6530. if e.complexity.DraftOrderLineItem.RequiresShipping == nil {
  6531. break
  6532. }
  6533. return e.complexity.DraftOrderLineItem.RequiresShipping(childComplexity), true
  6534. case "DraftOrderLineItem.sku":
  6535. if e.complexity.DraftOrderLineItem.Sku == nil {
  6536. break
  6537. }
  6538. return e.complexity.DraftOrderLineItem.Sku(childComplexity), true
  6539. case "DraftOrderLineItem.taxLines":
  6540. if e.complexity.DraftOrderLineItem.TaxLines == nil {
  6541. break
  6542. }
  6543. return e.complexity.DraftOrderLineItem.TaxLines(childComplexity), true
  6544. case "DraftOrderLineItem.taxable":
  6545. if e.complexity.DraftOrderLineItem.Taxable == nil {
  6546. break
  6547. }
  6548. return e.complexity.DraftOrderLineItem.Taxable(childComplexity), true
  6549. case "DraftOrderLineItem.title":
  6550. if e.complexity.DraftOrderLineItem.Title == nil {
  6551. break
  6552. }
  6553. return e.complexity.DraftOrderLineItem.Title(childComplexity), true
  6554. case "DraftOrderLineItem.totalDiscount":
  6555. if e.complexity.DraftOrderLineItem.TotalDiscount == nil {
  6556. break
  6557. }
  6558. return e.complexity.DraftOrderLineItem.TotalDiscount(childComplexity), true
  6559. case "DraftOrderLineItem.totalDiscountSet":
  6560. if e.complexity.DraftOrderLineItem.TotalDiscountSet == nil {
  6561. break
  6562. }
  6563. return e.complexity.DraftOrderLineItem.TotalDiscountSet(childComplexity), true
  6564. case "DraftOrderLineItem.variant":
  6565. if e.complexity.DraftOrderLineItem.Variant == nil {
  6566. break
  6567. }
  6568. return e.complexity.DraftOrderLineItem.Variant(childComplexity), true
  6569. case "DraftOrderLineItem.variantTitle":
  6570. if e.complexity.DraftOrderLineItem.VariantTitle == nil {
  6571. break
  6572. }
  6573. return e.complexity.DraftOrderLineItem.VariantTitle(childComplexity), true
  6574. case "DraftOrderLineItem.vendor":
  6575. if e.complexity.DraftOrderLineItem.Vendor == nil {
  6576. break
  6577. }
  6578. return e.complexity.DraftOrderLineItem.Vendor(childComplexity), true
  6579. case "DraftOrderLineItem.weight":
  6580. if e.complexity.DraftOrderLineItem.Weight == nil {
  6581. break
  6582. }
  6583. return e.complexity.DraftOrderLineItem.Weight(childComplexity), true
  6584. case "DraftOrderLineItemConnection.edges":
  6585. if e.complexity.DraftOrderLineItemConnection.Edges == nil {
  6586. break
  6587. }
  6588. return e.complexity.DraftOrderLineItemConnection.Edges(childComplexity), true
  6589. case "DraftOrderLineItemConnection.nodes":
  6590. if e.complexity.DraftOrderLineItemConnection.Nodes == nil {
  6591. break
  6592. }
  6593. return e.complexity.DraftOrderLineItemConnection.Nodes(childComplexity), true
  6594. case "DraftOrderLineItemConnection.pageInfo":
  6595. if e.complexity.DraftOrderLineItemConnection.PageInfo == nil {
  6596. break
  6597. }
  6598. return e.complexity.DraftOrderLineItemConnection.PageInfo(childComplexity), true
  6599. case "DraftOrderLineItemEdge.cursor":
  6600. if e.complexity.DraftOrderLineItemEdge.Cursor == nil {
  6601. break
  6602. }
  6603. return e.complexity.DraftOrderLineItemEdge.Cursor(childComplexity), true
  6604. case "DraftOrderLineItemEdge.node":
  6605. if e.complexity.DraftOrderLineItemEdge.Node == nil {
  6606. break
  6607. }
  6608. return e.complexity.DraftOrderLineItemEdge.Node(childComplexity), true
  6609. case "Duty.countryCodeOfOrigin":
  6610. if e.complexity.Duty.CountryCodeOfOrigin == nil {
  6611. break
  6612. }
  6613. return e.complexity.Duty.CountryCodeOfOrigin(childComplexity), true
  6614. case "Duty.harmonizedSystemCode":
  6615. if e.complexity.Duty.HarmonizedSystemCode == nil {
  6616. break
  6617. }
  6618. return e.complexity.Duty.HarmonizedSystemCode(childComplexity), true
  6619. case "Duty.id":
  6620. if e.complexity.Duty.ID == nil {
  6621. break
  6622. }
  6623. return e.complexity.Duty.ID(childComplexity), true
  6624. case "Duty.price":
  6625. if e.complexity.Duty.Price == nil {
  6626. break
  6627. }
  6628. return e.complexity.Duty.Price(childComplexity), true
  6629. case "Duty.taxLines":
  6630. if e.complexity.Duty.TaxLines == nil {
  6631. break
  6632. }
  6633. return e.complexity.Duty.TaxLines(childComplexity), true
  6634. case "EditableProperty.locked":
  6635. if e.complexity.EditableProperty.Locked == nil {
  6636. break
  6637. }
  6638. return e.complexity.EditableProperty.Locked(childComplexity), true
  6639. case "EditableProperty.reason":
  6640. if e.complexity.EditableProperty.Reason == nil {
  6641. break
  6642. }
  6643. return e.complexity.EditableProperty.Reason(childComplexity), true
  6644. case "Entity.findProductByID":
  6645. if e.complexity.Entity.FindProductByID == nil {
  6646. break
  6647. }
  6648. args, err := ec.field_Entity_findProductByID_args(context.TODO(), rawArgs)
  6649. if err != nil {
  6650. return 0, false
  6651. }
  6652. return e.complexity.Entity.FindProductByID(childComplexity, args["id"].(string)), true
  6653. case "EventConnection.edges":
  6654. if e.complexity.EventConnection.Edges == nil {
  6655. break
  6656. }
  6657. return e.complexity.EventConnection.Edges(childComplexity), true
  6658. case "EventConnection.nodes":
  6659. if e.complexity.EventConnection.Nodes == nil {
  6660. break
  6661. }
  6662. return e.complexity.EventConnection.Nodes(childComplexity), true
  6663. case "EventConnection.pageInfo":
  6664. if e.complexity.EventConnection.PageInfo == nil {
  6665. break
  6666. }
  6667. return e.complexity.EventConnection.PageInfo(childComplexity), true
  6668. case "EventEdge.cursor":
  6669. if e.complexity.EventEdge.Cursor == nil {
  6670. break
  6671. }
  6672. return e.complexity.EventEdge.Cursor(childComplexity), true
  6673. case "EventEdge.node":
  6674. if e.complexity.EventEdge.Node == nil {
  6675. break
  6676. }
  6677. return e.complexity.EventEdge.Node(childComplexity), true
  6678. case "FailedRequirement.action":
  6679. if e.complexity.FailedRequirement.Action == nil {
  6680. break
  6681. }
  6682. return e.complexity.FailedRequirement.Action(childComplexity), true
  6683. case "FailedRequirement.message":
  6684. if e.complexity.FailedRequirement.Message == nil {
  6685. break
  6686. }
  6687. return e.complexity.FailedRequirement.Message(childComplexity), true
  6688. case "FileError.code":
  6689. if e.complexity.FileError.Code == nil {
  6690. break
  6691. }
  6692. return e.complexity.FileError.Code(childComplexity), true
  6693. case "FileError.details":
  6694. if e.complexity.FileError.Details == nil {
  6695. break
  6696. }
  6697. return e.complexity.FileError.Details(childComplexity), true
  6698. case "FileError.message":
  6699. if e.complexity.FileError.Message == nil {
  6700. break
  6701. }
  6702. return e.complexity.FileError.Message(childComplexity), true
  6703. case "FilterOption.label":
  6704. if e.complexity.FilterOption.Label == nil {
  6705. break
  6706. }
  6707. return e.complexity.FilterOption.Label(childComplexity), true
  6708. case "FilterOption.value":
  6709. if e.complexity.FilterOption.Value == nil {
  6710. break
  6711. }
  6712. return e.complexity.FilterOption.Value(childComplexity), true
  6713. case "Fulfillment.createdAt":
  6714. if e.complexity.Fulfillment.CreatedAt == nil {
  6715. break
  6716. }
  6717. return e.complexity.Fulfillment.CreatedAt(childComplexity), true
  6718. case "Fulfillment.deliveredAt":
  6719. if e.complexity.Fulfillment.DeliveredAt == nil {
  6720. break
  6721. }
  6722. return e.complexity.Fulfillment.DeliveredAt(childComplexity), true
  6723. case "Fulfillment.displayStatus":
  6724. if e.complexity.Fulfillment.DisplayStatus == nil {
  6725. break
  6726. }
  6727. return e.complexity.Fulfillment.DisplayStatus(childComplexity), true
  6728. case "Fulfillment.estimatedDeliveryAt":
  6729. if e.complexity.Fulfillment.EstimatedDeliveryAt == nil {
  6730. break
  6731. }
  6732. return e.complexity.Fulfillment.EstimatedDeliveryAt(childComplexity), true
  6733. case "Fulfillment.events":
  6734. if e.complexity.Fulfillment.Events == nil {
  6735. break
  6736. }
  6737. args, err := ec.field_Fulfillment_events_args(context.TODO(), rawArgs)
  6738. if err != nil {
  6739. return 0, false
  6740. }
  6741. return e.complexity.Fulfillment.Events(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*FulfillmentEventSortKeys)), true
  6742. case "Fulfillment.fulfillmentLineItems":
  6743. if e.complexity.Fulfillment.FulfillmentLineItems == nil {
  6744. break
  6745. }
  6746. args, err := ec.field_Fulfillment_fulfillmentLineItems_args(context.TODO(), rawArgs)
  6747. if err != nil {
  6748. return 0, false
  6749. }
  6750. return e.complexity.Fulfillment.FulfillmentLineItems(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  6751. case "Fulfillment.fulfillmentOrders":
  6752. if e.complexity.Fulfillment.FulfillmentOrders == nil {
  6753. break
  6754. }
  6755. args, err := ec.field_Fulfillment_fulfillmentOrders_args(context.TODO(), rawArgs)
  6756. if err != nil {
  6757. return 0, false
  6758. }
  6759. return e.complexity.Fulfillment.FulfillmentOrders(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  6760. case "Fulfillment.id":
  6761. if e.complexity.Fulfillment.ID == nil {
  6762. break
  6763. }
  6764. return e.complexity.Fulfillment.ID(childComplexity), true
  6765. case "Fulfillment.inTransitAt":
  6766. if e.complexity.Fulfillment.InTransitAt == nil {
  6767. break
  6768. }
  6769. return e.complexity.Fulfillment.InTransitAt(childComplexity), true
  6770. case "Fulfillment.legacyResourceId":
  6771. if e.complexity.Fulfillment.LegacyResourceID == nil {
  6772. break
  6773. }
  6774. return e.complexity.Fulfillment.LegacyResourceID(childComplexity), true
  6775. case "Fulfillment.location":
  6776. if e.complexity.Fulfillment.Location == nil {
  6777. break
  6778. }
  6779. return e.complexity.Fulfillment.Location(childComplexity), true
  6780. case "Fulfillment.name":
  6781. if e.complexity.Fulfillment.Name == nil {
  6782. break
  6783. }
  6784. return e.complexity.Fulfillment.Name(childComplexity), true
  6785. case "Fulfillment.order":
  6786. if e.complexity.Fulfillment.Order == nil {
  6787. break
  6788. }
  6789. return e.complexity.Fulfillment.Order(childComplexity), true
  6790. case "Fulfillment.originAddress":
  6791. if e.complexity.Fulfillment.OriginAddress == nil {
  6792. break
  6793. }
  6794. return e.complexity.Fulfillment.OriginAddress(childComplexity), true
  6795. case "Fulfillment.requiresShipping":
  6796. if e.complexity.Fulfillment.RequiresShipping == nil {
  6797. break
  6798. }
  6799. return e.complexity.Fulfillment.RequiresShipping(childComplexity), true
  6800. case "Fulfillment.service":
  6801. if e.complexity.Fulfillment.Service == nil {
  6802. break
  6803. }
  6804. return e.complexity.Fulfillment.Service(childComplexity), true
  6805. case "Fulfillment.status":
  6806. if e.complexity.Fulfillment.Status == nil {
  6807. break
  6808. }
  6809. return e.complexity.Fulfillment.Status(childComplexity), true
  6810. case "Fulfillment.totalQuantity":
  6811. if e.complexity.Fulfillment.TotalQuantity == nil {
  6812. break
  6813. }
  6814. return e.complexity.Fulfillment.TotalQuantity(childComplexity), true
  6815. case "Fulfillment.trackingInfo":
  6816. if e.complexity.Fulfillment.TrackingInfo == nil {
  6817. break
  6818. }
  6819. args, err := ec.field_Fulfillment_trackingInfo_args(context.TODO(), rawArgs)
  6820. if err != nil {
  6821. return 0, false
  6822. }
  6823. return e.complexity.Fulfillment.TrackingInfo(childComplexity, args["first"].(*int)), true
  6824. case "Fulfillment.updatedAt":
  6825. if e.complexity.Fulfillment.UpdatedAt == nil {
  6826. break
  6827. }
  6828. return e.complexity.Fulfillment.UpdatedAt(childComplexity), true
  6829. case "FulfillmentConnection.edges":
  6830. if e.complexity.FulfillmentConnection.Edges == nil {
  6831. break
  6832. }
  6833. return e.complexity.FulfillmentConnection.Edges(childComplexity), true
  6834. case "FulfillmentConnection.nodes":
  6835. if e.complexity.FulfillmentConnection.Nodes == nil {
  6836. break
  6837. }
  6838. return e.complexity.FulfillmentConnection.Nodes(childComplexity), true
  6839. case "FulfillmentConnection.pageInfo":
  6840. if e.complexity.FulfillmentConnection.PageInfo == nil {
  6841. break
  6842. }
  6843. return e.complexity.FulfillmentConnection.PageInfo(childComplexity), true
  6844. case "FulfillmentEdge.cursor":
  6845. if e.complexity.FulfillmentEdge.Cursor == nil {
  6846. break
  6847. }
  6848. return e.complexity.FulfillmentEdge.Cursor(childComplexity), true
  6849. case "FulfillmentEdge.node":
  6850. if e.complexity.FulfillmentEdge.Node == nil {
  6851. break
  6852. }
  6853. return e.complexity.FulfillmentEdge.Node(childComplexity), true
  6854. case "FulfillmentEvent.happenedAt":
  6855. if e.complexity.FulfillmentEvent.HappenedAt == nil {
  6856. break
  6857. }
  6858. return e.complexity.FulfillmentEvent.HappenedAt(childComplexity), true
  6859. case "FulfillmentEvent.id":
  6860. if e.complexity.FulfillmentEvent.ID == nil {
  6861. break
  6862. }
  6863. return e.complexity.FulfillmentEvent.ID(childComplexity), true
  6864. case "FulfillmentEvent.status":
  6865. if e.complexity.FulfillmentEvent.Status == nil {
  6866. break
  6867. }
  6868. return e.complexity.FulfillmentEvent.Status(childComplexity), true
  6869. case "FulfillmentEventConnection.edges":
  6870. if e.complexity.FulfillmentEventConnection.Edges == nil {
  6871. break
  6872. }
  6873. return e.complexity.FulfillmentEventConnection.Edges(childComplexity), true
  6874. case "FulfillmentEventConnection.nodes":
  6875. if e.complexity.FulfillmentEventConnection.Nodes == nil {
  6876. break
  6877. }
  6878. return e.complexity.FulfillmentEventConnection.Nodes(childComplexity), true
  6879. case "FulfillmentEventConnection.pageInfo":
  6880. if e.complexity.FulfillmentEventConnection.PageInfo == nil {
  6881. break
  6882. }
  6883. return e.complexity.FulfillmentEventConnection.PageInfo(childComplexity), true
  6884. case "FulfillmentEventEdge.cursor":
  6885. if e.complexity.FulfillmentEventEdge.Cursor == nil {
  6886. break
  6887. }
  6888. return e.complexity.FulfillmentEventEdge.Cursor(childComplexity), true
  6889. case "FulfillmentEventEdge.node":
  6890. if e.complexity.FulfillmentEventEdge.Node == nil {
  6891. break
  6892. }
  6893. return e.complexity.FulfillmentEventEdge.Node(childComplexity), true
  6894. case "FulfillmentHold.reason":
  6895. if e.complexity.FulfillmentHold.Reason == nil {
  6896. break
  6897. }
  6898. return e.complexity.FulfillmentHold.Reason(childComplexity), true
  6899. case "FulfillmentHold.reasonNotes":
  6900. if e.complexity.FulfillmentHold.ReasonNotes == nil {
  6901. break
  6902. }
  6903. return e.complexity.FulfillmentHold.ReasonNotes(childComplexity), true
  6904. case "FulfillmentLineItem.discountedTotalSet":
  6905. if e.complexity.FulfillmentLineItem.DiscountedTotalSet == nil {
  6906. break
  6907. }
  6908. return e.complexity.FulfillmentLineItem.DiscountedTotalSet(childComplexity), true
  6909. case "FulfillmentLineItem.id":
  6910. if e.complexity.FulfillmentLineItem.ID == nil {
  6911. break
  6912. }
  6913. return e.complexity.FulfillmentLineItem.ID(childComplexity), true
  6914. case "FulfillmentLineItem.lineItem":
  6915. if e.complexity.FulfillmentLineItem.LineItem == nil {
  6916. break
  6917. }
  6918. return e.complexity.FulfillmentLineItem.LineItem(childComplexity), true
  6919. case "FulfillmentLineItem.originalTotalSet":
  6920. if e.complexity.FulfillmentLineItem.OriginalTotalSet == nil {
  6921. break
  6922. }
  6923. return e.complexity.FulfillmentLineItem.OriginalTotalSet(childComplexity), true
  6924. case "FulfillmentLineItem.quantity":
  6925. if e.complexity.FulfillmentLineItem.Quantity == nil {
  6926. break
  6927. }
  6928. return e.complexity.FulfillmentLineItem.Quantity(childComplexity), true
  6929. case "FulfillmentLineItemConnection.edges":
  6930. if e.complexity.FulfillmentLineItemConnection.Edges == nil {
  6931. break
  6932. }
  6933. return e.complexity.FulfillmentLineItemConnection.Edges(childComplexity), true
  6934. case "FulfillmentLineItemConnection.nodes":
  6935. if e.complexity.FulfillmentLineItemConnection.Nodes == nil {
  6936. break
  6937. }
  6938. return e.complexity.FulfillmentLineItemConnection.Nodes(childComplexity), true
  6939. case "FulfillmentLineItemConnection.pageInfo":
  6940. if e.complexity.FulfillmentLineItemConnection.PageInfo == nil {
  6941. break
  6942. }
  6943. return e.complexity.FulfillmentLineItemConnection.PageInfo(childComplexity), true
  6944. case "FulfillmentLineItemEdge.cursor":
  6945. if e.complexity.FulfillmentLineItemEdge.Cursor == nil {
  6946. break
  6947. }
  6948. return e.complexity.FulfillmentLineItemEdge.Cursor(childComplexity), true
  6949. case "FulfillmentLineItemEdge.node":
  6950. if e.complexity.FulfillmentLineItemEdge.Node == nil {
  6951. break
  6952. }
  6953. return e.complexity.FulfillmentLineItemEdge.Node(childComplexity), true
  6954. case "FulfillmentOrder.assignedLocation":
  6955. if e.complexity.FulfillmentOrder.AssignedLocation == nil {
  6956. break
  6957. }
  6958. return e.complexity.FulfillmentOrder.AssignedLocation(childComplexity), true
  6959. case "FulfillmentOrder.deliveryMethod":
  6960. if e.complexity.FulfillmentOrder.DeliveryMethod == nil {
  6961. break
  6962. }
  6963. return e.complexity.FulfillmentOrder.DeliveryMethod(childComplexity), true
  6964. case "FulfillmentOrder.destination":
  6965. if e.complexity.FulfillmentOrder.Destination == nil {
  6966. break
  6967. }
  6968. return e.complexity.FulfillmentOrder.Destination(childComplexity), true
  6969. case "FulfillmentOrder.fulfillAt":
  6970. if e.complexity.FulfillmentOrder.FulfillAt == nil {
  6971. break
  6972. }
  6973. return e.complexity.FulfillmentOrder.FulfillAt(childComplexity), true
  6974. case "FulfillmentOrder.fulfillBy":
  6975. if e.complexity.FulfillmentOrder.FulfillBy == nil {
  6976. break
  6977. }
  6978. return e.complexity.FulfillmentOrder.FulfillBy(childComplexity), true
  6979. case "FulfillmentOrder.fulfillmentHolds":
  6980. if e.complexity.FulfillmentOrder.FulfillmentHolds == nil {
  6981. break
  6982. }
  6983. return e.complexity.FulfillmentOrder.FulfillmentHolds(childComplexity), true
  6984. case "FulfillmentOrder.fulfillments":
  6985. if e.complexity.FulfillmentOrder.Fulfillments == nil {
  6986. break
  6987. }
  6988. args, err := ec.field_FulfillmentOrder_fulfillments_args(context.TODO(), rawArgs)
  6989. if err != nil {
  6990. return 0, false
  6991. }
  6992. return e.complexity.FulfillmentOrder.Fulfillments(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  6993. case "FulfillmentOrder.id":
  6994. if e.complexity.FulfillmentOrder.ID == nil {
  6995. break
  6996. }
  6997. return e.complexity.FulfillmentOrder.ID(childComplexity), true
  6998. case "FulfillmentOrder.internationalDuties":
  6999. if e.complexity.FulfillmentOrder.InternationalDuties == nil {
  7000. break
  7001. }
  7002. return e.complexity.FulfillmentOrder.InternationalDuties(childComplexity), true
  7003. case "FulfillmentOrder.lineItems":
  7004. if e.complexity.FulfillmentOrder.LineItems == nil {
  7005. break
  7006. }
  7007. args, err := ec.field_FulfillmentOrder_lineItems_args(context.TODO(), rawArgs)
  7008. if err != nil {
  7009. return 0, false
  7010. }
  7011. return e.complexity.FulfillmentOrder.LineItems(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  7012. case "FulfillmentOrder.locationsForMove":
  7013. if e.complexity.FulfillmentOrder.LocationsForMove == nil {
  7014. break
  7015. }
  7016. args, err := ec.field_FulfillmentOrder_locationsForMove_args(context.TODO(), rawArgs)
  7017. if err != nil {
  7018. return 0, false
  7019. }
  7020. return e.complexity.FulfillmentOrder.LocationsForMove(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  7021. case "FulfillmentOrder.merchantRequests":
  7022. if e.complexity.FulfillmentOrder.MerchantRequests == nil {
  7023. break
  7024. }
  7025. args, err := ec.field_FulfillmentOrder_merchantRequests_args(context.TODO(), rawArgs)
  7026. if err != nil {
  7027. return 0, false
  7028. }
  7029. return e.complexity.FulfillmentOrder.MerchantRequests(childComplexity, args["kind"].(*FulfillmentOrderMerchantRequestKind), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  7030. case "FulfillmentOrder.order":
  7031. if e.complexity.FulfillmentOrder.Order == nil {
  7032. break
  7033. }
  7034. return e.complexity.FulfillmentOrder.Order(childComplexity), true
  7035. case "FulfillmentOrder.requestStatus":
  7036. if e.complexity.FulfillmentOrder.RequestStatus == nil {
  7037. break
  7038. }
  7039. return e.complexity.FulfillmentOrder.RequestStatus(childComplexity), true
  7040. case "FulfillmentOrder.status":
  7041. if e.complexity.FulfillmentOrder.Status == nil {
  7042. break
  7043. }
  7044. return e.complexity.FulfillmentOrder.Status(childComplexity), true
  7045. case "FulfillmentOrder.supportedActions":
  7046. if e.complexity.FulfillmentOrder.SupportedActions == nil {
  7047. break
  7048. }
  7049. return e.complexity.FulfillmentOrder.SupportedActions(childComplexity), true
  7050. case "FulfillmentOrderAssignedLocation.address1":
  7051. if e.complexity.FulfillmentOrderAssignedLocation.Address1 == nil {
  7052. break
  7053. }
  7054. return e.complexity.FulfillmentOrderAssignedLocation.Address1(childComplexity), true
  7055. case "FulfillmentOrderAssignedLocation.address2":
  7056. if e.complexity.FulfillmentOrderAssignedLocation.Address2 == nil {
  7057. break
  7058. }
  7059. return e.complexity.FulfillmentOrderAssignedLocation.Address2(childComplexity), true
  7060. case "FulfillmentOrderAssignedLocation.city":
  7061. if e.complexity.FulfillmentOrderAssignedLocation.City == nil {
  7062. break
  7063. }
  7064. return e.complexity.FulfillmentOrderAssignedLocation.City(childComplexity), true
  7065. case "FulfillmentOrderAssignedLocation.countryCode":
  7066. if e.complexity.FulfillmentOrderAssignedLocation.CountryCode == nil {
  7067. break
  7068. }
  7069. return e.complexity.FulfillmentOrderAssignedLocation.CountryCode(childComplexity), true
  7070. case "FulfillmentOrderAssignedLocation.location":
  7071. if e.complexity.FulfillmentOrderAssignedLocation.Location == nil {
  7072. break
  7073. }
  7074. return e.complexity.FulfillmentOrderAssignedLocation.Location(childComplexity), true
  7075. case "FulfillmentOrderAssignedLocation.name":
  7076. if e.complexity.FulfillmentOrderAssignedLocation.Name == nil {
  7077. break
  7078. }
  7079. return e.complexity.FulfillmentOrderAssignedLocation.Name(childComplexity), true
  7080. case "FulfillmentOrderAssignedLocation.phone":
  7081. if e.complexity.FulfillmentOrderAssignedLocation.Phone == nil {
  7082. break
  7083. }
  7084. return e.complexity.FulfillmentOrderAssignedLocation.Phone(childComplexity), true
  7085. case "FulfillmentOrderAssignedLocation.province":
  7086. if e.complexity.FulfillmentOrderAssignedLocation.Province == nil {
  7087. break
  7088. }
  7089. return e.complexity.FulfillmentOrderAssignedLocation.Province(childComplexity), true
  7090. case "FulfillmentOrderAssignedLocation.zip":
  7091. if e.complexity.FulfillmentOrderAssignedLocation.Zip == nil {
  7092. break
  7093. }
  7094. return e.complexity.FulfillmentOrderAssignedLocation.Zip(childComplexity), true
  7095. case "FulfillmentOrderConnection.edges":
  7096. if e.complexity.FulfillmentOrderConnection.Edges == nil {
  7097. break
  7098. }
  7099. return e.complexity.FulfillmentOrderConnection.Edges(childComplexity), true
  7100. case "FulfillmentOrderConnection.nodes":
  7101. if e.complexity.FulfillmentOrderConnection.Nodes == nil {
  7102. break
  7103. }
  7104. return e.complexity.FulfillmentOrderConnection.Nodes(childComplexity), true
  7105. case "FulfillmentOrderConnection.pageInfo":
  7106. if e.complexity.FulfillmentOrderConnection.PageInfo == nil {
  7107. break
  7108. }
  7109. return e.complexity.FulfillmentOrderConnection.PageInfo(childComplexity), true
  7110. case "FulfillmentOrderDestination.address1":
  7111. if e.complexity.FulfillmentOrderDestination.Address1 == nil {
  7112. break
  7113. }
  7114. return e.complexity.FulfillmentOrderDestination.Address1(childComplexity), true
  7115. case "FulfillmentOrderDestination.address2":
  7116. if e.complexity.FulfillmentOrderDestination.Address2 == nil {
  7117. break
  7118. }
  7119. return e.complexity.FulfillmentOrderDestination.Address2(childComplexity), true
  7120. case "FulfillmentOrderDestination.city":
  7121. if e.complexity.FulfillmentOrderDestination.City == nil {
  7122. break
  7123. }
  7124. return e.complexity.FulfillmentOrderDestination.City(childComplexity), true
  7125. case "FulfillmentOrderDestination.company":
  7126. if e.complexity.FulfillmentOrderDestination.Company == nil {
  7127. break
  7128. }
  7129. return e.complexity.FulfillmentOrderDestination.Company(childComplexity), true
  7130. case "FulfillmentOrderDestination.countryCode":
  7131. if e.complexity.FulfillmentOrderDestination.CountryCode == nil {
  7132. break
  7133. }
  7134. return e.complexity.FulfillmentOrderDestination.CountryCode(childComplexity), true
  7135. case "FulfillmentOrderDestination.email":
  7136. if e.complexity.FulfillmentOrderDestination.Email == nil {
  7137. break
  7138. }
  7139. return e.complexity.FulfillmentOrderDestination.Email(childComplexity), true
  7140. case "FulfillmentOrderDestination.firstName":
  7141. if e.complexity.FulfillmentOrderDestination.FirstName == nil {
  7142. break
  7143. }
  7144. return e.complexity.FulfillmentOrderDestination.FirstName(childComplexity), true
  7145. case "FulfillmentOrderDestination.id":
  7146. if e.complexity.FulfillmentOrderDestination.ID == nil {
  7147. break
  7148. }
  7149. return e.complexity.FulfillmentOrderDestination.ID(childComplexity), true
  7150. case "FulfillmentOrderDestination.lastName":
  7151. if e.complexity.FulfillmentOrderDestination.LastName == nil {
  7152. break
  7153. }
  7154. return e.complexity.FulfillmentOrderDestination.LastName(childComplexity), true
  7155. case "FulfillmentOrderDestination.phone":
  7156. if e.complexity.FulfillmentOrderDestination.Phone == nil {
  7157. break
  7158. }
  7159. return e.complexity.FulfillmentOrderDestination.Phone(childComplexity), true
  7160. case "FulfillmentOrderDestination.province":
  7161. if e.complexity.FulfillmentOrderDestination.Province == nil {
  7162. break
  7163. }
  7164. return e.complexity.FulfillmentOrderDestination.Province(childComplexity), true
  7165. case "FulfillmentOrderDestination.zip":
  7166. if e.complexity.FulfillmentOrderDestination.Zip == nil {
  7167. break
  7168. }
  7169. return e.complexity.FulfillmentOrderDestination.Zip(childComplexity), true
  7170. case "FulfillmentOrderEdge.cursor":
  7171. if e.complexity.FulfillmentOrderEdge.Cursor == nil {
  7172. break
  7173. }
  7174. return e.complexity.FulfillmentOrderEdge.Cursor(childComplexity), true
  7175. case "FulfillmentOrderEdge.node":
  7176. if e.complexity.FulfillmentOrderEdge.Node == nil {
  7177. break
  7178. }
  7179. return e.complexity.FulfillmentOrderEdge.Node(childComplexity), true
  7180. case "FulfillmentOrderInternationalDuties.incoterm":
  7181. if e.complexity.FulfillmentOrderInternationalDuties.Incoterm == nil {
  7182. break
  7183. }
  7184. return e.complexity.FulfillmentOrderInternationalDuties.Incoterm(childComplexity), true
  7185. case "FulfillmentOrderLineItem.id":
  7186. if e.complexity.FulfillmentOrderLineItem.ID == nil {
  7187. break
  7188. }
  7189. return e.complexity.FulfillmentOrderLineItem.ID(childComplexity), true
  7190. case "FulfillmentOrderLineItem.lineItem":
  7191. if e.complexity.FulfillmentOrderLineItem.LineItem == nil {
  7192. break
  7193. }
  7194. return e.complexity.FulfillmentOrderLineItem.LineItem(childComplexity), true
  7195. case "FulfillmentOrderLineItem.remainingQuantity":
  7196. if e.complexity.FulfillmentOrderLineItem.RemainingQuantity == nil {
  7197. break
  7198. }
  7199. return e.complexity.FulfillmentOrderLineItem.RemainingQuantity(childComplexity), true
  7200. case "FulfillmentOrderLineItem.totalQuantity":
  7201. if e.complexity.FulfillmentOrderLineItem.TotalQuantity == nil {
  7202. break
  7203. }
  7204. return e.complexity.FulfillmentOrderLineItem.TotalQuantity(childComplexity), true
  7205. case "FulfillmentOrderLineItem.warnings":
  7206. if e.complexity.FulfillmentOrderLineItem.Warnings == nil {
  7207. break
  7208. }
  7209. return e.complexity.FulfillmentOrderLineItem.Warnings(childComplexity), true
  7210. case "FulfillmentOrderLineItemConnection.edges":
  7211. if e.complexity.FulfillmentOrderLineItemConnection.Edges == nil {
  7212. break
  7213. }
  7214. return e.complexity.FulfillmentOrderLineItemConnection.Edges(childComplexity), true
  7215. case "FulfillmentOrderLineItemConnection.nodes":
  7216. if e.complexity.FulfillmentOrderLineItemConnection.Nodes == nil {
  7217. break
  7218. }
  7219. return e.complexity.FulfillmentOrderLineItemConnection.Nodes(childComplexity), true
  7220. case "FulfillmentOrderLineItemConnection.pageInfo":
  7221. if e.complexity.FulfillmentOrderLineItemConnection.PageInfo == nil {
  7222. break
  7223. }
  7224. return e.complexity.FulfillmentOrderLineItemConnection.PageInfo(childComplexity), true
  7225. case "FulfillmentOrderLineItemEdge.cursor":
  7226. if e.complexity.FulfillmentOrderLineItemEdge.Cursor == nil {
  7227. break
  7228. }
  7229. return e.complexity.FulfillmentOrderLineItemEdge.Cursor(childComplexity), true
  7230. case "FulfillmentOrderLineItemEdge.node":
  7231. if e.complexity.FulfillmentOrderLineItemEdge.Node == nil {
  7232. break
  7233. }
  7234. return e.complexity.FulfillmentOrderLineItemEdge.Node(childComplexity), true
  7235. case "FulfillmentOrderLineItemWarning.description":
  7236. if e.complexity.FulfillmentOrderLineItemWarning.Description == nil {
  7237. break
  7238. }
  7239. return e.complexity.FulfillmentOrderLineItemWarning.Description(childComplexity), true
  7240. case "FulfillmentOrderLineItemWarning.title":
  7241. if e.complexity.FulfillmentOrderLineItemWarning.Title == nil {
  7242. break
  7243. }
  7244. return e.complexity.FulfillmentOrderLineItemWarning.Title(childComplexity), true
  7245. case "FulfillmentOrderLocationForMove.location":
  7246. if e.complexity.FulfillmentOrderLocationForMove.Location == nil {
  7247. break
  7248. }
  7249. return e.complexity.FulfillmentOrderLocationForMove.Location(childComplexity), true
  7250. case "FulfillmentOrderLocationForMove.message":
  7251. if e.complexity.FulfillmentOrderLocationForMove.Message == nil {
  7252. break
  7253. }
  7254. return e.complexity.FulfillmentOrderLocationForMove.Message(childComplexity), true
  7255. case "FulfillmentOrderLocationForMove.movable":
  7256. if e.complexity.FulfillmentOrderLocationForMove.Movable == nil {
  7257. break
  7258. }
  7259. return e.complexity.FulfillmentOrderLocationForMove.Movable(childComplexity), true
  7260. case "FulfillmentOrderLocationForMoveConnection.edges":
  7261. if e.complexity.FulfillmentOrderLocationForMoveConnection.Edges == nil {
  7262. break
  7263. }
  7264. return e.complexity.FulfillmentOrderLocationForMoveConnection.Edges(childComplexity), true
  7265. case "FulfillmentOrderLocationForMoveConnection.nodes":
  7266. if e.complexity.FulfillmentOrderLocationForMoveConnection.Nodes == nil {
  7267. break
  7268. }
  7269. return e.complexity.FulfillmentOrderLocationForMoveConnection.Nodes(childComplexity), true
  7270. case "FulfillmentOrderLocationForMoveConnection.pageInfo":
  7271. if e.complexity.FulfillmentOrderLocationForMoveConnection.PageInfo == nil {
  7272. break
  7273. }
  7274. return e.complexity.FulfillmentOrderLocationForMoveConnection.PageInfo(childComplexity), true
  7275. case "FulfillmentOrderLocationForMoveEdge.cursor":
  7276. if e.complexity.FulfillmentOrderLocationForMoveEdge.Cursor == nil {
  7277. break
  7278. }
  7279. return e.complexity.FulfillmentOrderLocationForMoveEdge.Cursor(childComplexity), true
  7280. case "FulfillmentOrderLocationForMoveEdge.node":
  7281. if e.complexity.FulfillmentOrderLocationForMoveEdge.Node == nil {
  7282. break
  7283. }
  7284. return e.complexity.FulfillmentOrderLocationForMoveEdge.Node(childComplexity), true
  7285. case "FulfillmentOrderMerchantRequest.id":
  7286. if e.complexity.FulfillmentOrderMerchantRequest.ID == nil {
  7287. break
  7288. }
  7289. return e.complexity.FulfillmentOrderMerchantRequest.ID(childComplexity), true
  7290. case "FulfillmentOrderMerchantRequest.kind":
  7291. if e.complexity.FulfillmentOrderMerchantRequest.Kind == nil {
  7292. break
  7293. }
  7294. return e.complexity.FulfillmentOrderMerchantRequest.Kind(childComplexity), true
  7295. case "FulfillmentOrderMerchantRequest.message":
  7296. if e.complexity.FulfillmentOrderMerchantRequest.Message == nil {
  7297. break
  7298. }
  7299. return e.complexity.FulfillmentOrderMerchantRequest.Message(childComplexity), true
  7300. case "FulfillmentOrderMerchantRequest.requestOptions":
  7301. if e.complexity.FulfillmentOrderMerchantRequest.RequestOptions == nil {
  7302. break
  7303. }
  7304. return e.complexity.FulfillmentOrderMerchantRequest.RequestOptions(childComplexity), true
  7305. case "FulfillmentOrderMerchantRequest.responseData":
  7306. if e.complexity.FulfillmentOrderMerchantRequest.ResponseData == nil {
  7307. break
  7308. }
  7309. return e.complexity.FulfillmentOrderMerchantRequest.ResponseData(childComplexity), true
  7310. case "FulfillmentOrderMerchantRequest.sentAt":
  7311. if e.complexity.FulfillmentOrderMerchantRequest.SentAt == nil {
  7312. break
  7313. }
  7314. return e.complexity.FulfillmentOrderMerchantRequest.SentAt(childComplexity), true
  7315. case "FulfillmentOrderMerchantRequestConnection.edges":
  7316. if e.complexity.FulfillmentOrderMerchantRequestConnection.Edges == nil {
  7317. break
  7318. }
  7319. return e.complexity.FulfillmentOrderMerchantRequestConnection.Edges(childComplexity), true
  7320. case "FulfillmentOrderMerchantRequestConnection.nodes":
  7321. if e.complexity.FulfillmentOrderMerchantRequestConnection.Nodes == nil {
  7322. break
  7323. }
  7324. return e.complexity.FulfillmentOrderMerchantRequestConnection.Nodes(childComplexity), true
  7325. case "FulfillmentOrderMerchantRequestConnection.pageInfo":
  7326. if e.complexity.FulfillmentOrderMerchantRequestConnection.PageInfo == nil {
  7327. break
  7328. }
  7329. return e.complexity.FulfillmentOrderMerchantRequestConnection.PageInfo(childComplexity), true
  7330. case "FulfillmentOrderMerchantRequestEdge.cursor":
  7331. if e.complexity.FulfillmentOrderMerchantRequestEdge.Cursor == nil {
  7332. break
  7333. }
  7334. return e.complexity.FulfillmentOrderMerchantRequestEdge.Cursor(childComplexity), true
  7335. case "FulfillmentOrderMerchantRequestEdge.node":
  7336. if e.complexity.FulfillmentOrderMerchantRequestEdge.Node == nil {
  7337. break
  7338. }
  7339. return e.complexity.FulfillmentOrderMerchantRequestEdge.Node(childComplexity), true
  7340. case "FulfillmentOrderSupportedAction.action":
  7341. if e.complexity.FulfillmentOrderSupportedAction.Action == nil {
  7342. break
  7343. }
  7344. return e.complexity.FulfillmentOrderSupportedAction.Action(childComplexity), true
  7345. case "FulfillmentOrderSupportedAction.externalUrl":
  7346. if e.complexity.FulfillmentOrderSupportedAction.ExternalURL == nil {
  7347. break
  7348. }
  7349. return e.complexity.FulfillmentOrderSupportedAction.ExternalURL(childComplexity), true
  7350. case "FulfillmentOriginAddress.address1":
  7351. if e.complexity.FulfillmentOriginAddress.Address1 == nil {
  7352. break
  7353. }
  7354. return e.complexity.FulfillmentOriginAddress.Address1(childComplexity), true
  7355. case "FulfillmentOriginAddress.address2":
  7356. if e.complexity.FulfillmentOriginAddress.Address2 == nil {
  7357. break
  7358. }
  7359. return e.complexity.FulfillmentOriginAddress.Address2(childComplexity), true
  7360. case "FulfillmentOriginAddress.city":
  7361. if e.complexity.FulfillmentOriginAddress.City == nil {
  7362. break
  7363. }
  7364. return e.complexity.FulfillmentOriginAddress.City(childComplexity), true
  7365. case "FulfillmentOriginAddress.countryCode":
  7366. if e.complexity.FulfillmentOriginAddress.CountryCode == nil {
  7367. break
  7368. }
  7369. return e.complexity.FulfillmentOriginAddress.CountryCode(childComplexity), true
  7370. case "FulfillmentOriginAddress.provinceCode":
  7371. if e.complexity.FulfillmentOriginAddress.ProvinceCode == nil {
  7372. break
  7373. }
  7374. return e.complexity.FulfillmentOriginAddress.ProvinceCode(childComplexity), true
  7375. case "FulfillmentOriginAddress.zip":
  7376. if e.complexity.FulfillmentOriginAddress.Zip == nil {
  7377. break
  7378. }
  7379. return e.complexity.FulfillmentOriginAddress.Zip(childComplexity), true
  7380. case "FulfillmentService.callbackUrl":
  7381. if e.complexity.FulfillmentService.CallbackURL == nil {
  7382. break
  7383. }
  7384. return e.complexity.FulfillmentService.CallbackURL(childComplexity), true
  7385. case "FulfillmentService.fulfillmentOrdersOptIn":
  7386. if e.complexity.FulfillmentService.FulfillmentOrdersOptIn == nil {
  7387. break
  7388. }
  7389. return e.complexity.FulfillmentService.FulfillmentOrdersOptIn(childComplexity), true
  7390. case "FulfillmentService.handle":
  7391. if e.complexity.FulfillmentService.Handle == nil {
  7392. break
  7393. }
  7394. return e.complexity.FulfillmentService.Handle(childComplexity), true
  7395. case "FulfillmentService.id":
  7396. if e.complexity.FulfillmentService.ID == nil {
  7397. break
  7398. }
  7399. return e.complexity.FulfillmentService.ID(childComplexity), true
  7400. case "FulfillmentService.inventoryManagement":
  7401. if e.complexity.FulfillmentService.InventoryManagement == nil {
  7402. break
  7403. }
  7404. return e.complexity.FulfillmentService.InventoryManagement(childComplexity), true
  7405. case "FulfillmentService.location":
  7406. if e.complexity.FulfillmentService.Location == nil {
  7407. break
  7408. }
  7409. return e.complexity.FulfillmentService.Location(childComplexity), true
  7410. case "FulfillmentService.permitsSkuSharing":
  7411. if e.complexity.FulfillmentService.PermitsSkuSharing == nil {
  7412. break
  7413. }
  7414. return e.complexity.FulfillmentService.PermitsSkuSharing(childComplexity), true
  7415. case "FulfillmentService.productBased":
  7416. if e.complexity.FulfillmentService.ProductBased == nil {
  7417. break
  7418. }
  7419. return e.complexity.FulfillmentService.ProductBased(childComplexity), true
  7420. case "FulfillmentService.serviceName":
  7421. if e.complexity.FulfillmentService.ServiceName == nil {
  7422. break
  7423. }
  7424. return e.complexity.FulfillmentService.ServiceName(childComplexity), true
  7425. case "FulfillmentService.type":
  7426. if e.complexity.FulfillmentService.Type == nil {
  7427. break
  7428. }
  7429. return e.complexity.FulfillmentService.Type(childComplexity), true
  7430. case "FulfillmentTrackingInfo.company":
  7431. if e.complexity.FulfillmentTrackingInfo.Company == nil {
  7432. break
  7433. }
  7434. return e.complexity.FulfillmentTrackingInfo.Company(childComplexity), true
  7435. case "FulfillmentTrackingInfo.number":
  7436. if e.complexity.FulfillmentTrackingInfo.Number == nil {
  7437. break
  7438. }
  7439. return e.complexity.FulfillmentTrackingInfo.Number(childComplexity), true
  7440. case "FulfillmentTrackingInfo.url":
  7441. if e.complexity.FulfillmentTrackingInfo.URL == nil {
  7442. break
  7443. }
  7444. return e.complexity.FulfillmentTrackingInfo.URL(childComplexity), true
  7445. case "GenericFile.alt":
  7446. if e.complexity.GenericFile.Alt == nil {
  7447. break
  7448. }
  7449. return e.complexity.GenericFile.Alt(childComplexity), true
  7450. case "GenericFile.createdAt":
  7451. if e.complexity.GenericFile.CreatedAt == nil {
  7452. break
  7453. }
  7454. return e.complexity.GenericFile.CreatedAt(childComplexity), true
  7455. case "GenericFile.fileErrors":
  7456. if e.complexity.GenericFile.FileErrors == nil {
  7457. break
  7458. }
  7459. return e.complexity.GenericFile.FileErrors(childComplexity), true
  7460. case "GenericFile.fileStatus":
  7461. if e.complexity.GenericFile.FileStatus == nil {
  7462. break
  7463. }
  7464. return e.complexity.GenericFile.FileStatus(childComplexity), true
  7465. case "GenericFile.id":
  7466. if e.complexity.GenericFile.ID == nil {
  7467. break
  7468. }
  7469. return e.complexity.GenericFile.ID(childComplexity), true
  7470. case "GenericFile.mimeType":
  7471. if e.complexity.GenericFile.MimeType == nil {
  7472. break
  7473. }
  7474. return e.complexity.GenericFile.MimeType(childComplexity), true
  7475. case "GenericFile.originalFileSize":
  7476. if e.complexity.GenericFile.OriginalFileSize == nil {
  7477. break
  7478. }
  7479. return e.complexity.GenericFile.OriginalFileSize(childComplexity), true
  7480. case "GenericFile.preview":
  7481. if e.complexity.GenericFile.Preview == nil {
  7482. break
  7483. }
  7484. return e.complexity.GenericFile.Preview(childComplexity), true
  7485. case "GenericFile.url":
  7486. if e.complexity.GenericFile.URL == nil {
  7487. break
  7488. }
  7489. return e.complexity.GenericFile.URL(childComplexity), true
  7490. case "Image.altText":
  7491. if e.complexity.Image.AltText == nil {
  7492. break
  7493. }
  7494. return e.complexity.Image.AltText(childComplexity), true
  7495. case "Image.height":
  7496. if e.complexity.Image.Height == nil {
  7497. break
  7498. }
  7499. return e.complexity.Image.Height(childComplexity), true
  7500. case "Image.id":
  7501. if e.complexity.Image.ID == nil {
  7502. break
  7503. }
  7504. return e.complexity.Image.ID(childComplexity), true
  7505. case "Image.metafield":
  7506. if e.complexity.Image.Metafield == nil {
  7507. break
  7508. }
  7509. args, err := ec.field_Image_metafield_args(context.TODO(), rawArgs)
  7510. if err != nil {
  7511. return 0, false
  7512. }
  7513. return e.complexity.Image.Metafield(childComplexity, args["namespace"].(string), args["key"].(string)), true
  7514. case "Image.metafields":
  7515. if e.complexity.Image.Metafields == nil {
  7516. break
  7517. }
  7518. args, err := ec.field_Image_metafields_args(context.TODO(), rawArgs)
  7519. if err != nil {
  7520. return 0, false
  7521. }
  7522. return e.complexity.Image.Metafields(childComplexity, args["namespace"].(*string), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  7523. case "Image.privateMetafield":
  7524. if e.complexity.Image.PrivateMetafield == nil {
  7525. break
  7526. }
  7527. args, err := ec.field_Image_privateMetafield_args(context.TODO(), rawArgs)
  7528. if err != nil {
  7529. return 0, false
  7530. }
  7531. return e.complexity.Image.PrivateMetafield(childComplexity, args["namespace"].(string), args["key"].(string)), true
  7532. case "Image.privateMetafields":
  7533. if e.complexity.Image.PrivateMetafields == nil {
  7534. break
  7535. }
  7536. args, err := ec.field_Image_privateMetafields_args(context.TODO(), rawArgs)
  7537. if err != nil {
  7538. return 0, false
  7539. }
  7540. return e.complexity.Image.PrivateMetafields(childComplexity, args["namespace"].(*string), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  7541. case "Image.url":
  7542. if e.complexity.Image.URL == nil {
  7543. break
  7544. }
  7545. args, err := ec.field_Image_url_args(context.TODO(), rawArgs)
  7546. if err != nil {
  7547. return 0, false
  7548. }
  7549. return e.complexity.Image.URL(childComplexity, args["transform"].(*ImageTransformInput)), true
  7550. case "Image.width":
  7551. if e.complexity.Image.Width == nil {
  7552. break
  7553. }
  7554. return e.complexity.Image.Width(childComplexity), true
  7555. case "ImageConnection.edges":
  7556. if e.complexity.ImageConnection.Edges == nil {
  7557. break
  7558. }
  7559. return e.complexity.ImageConnection.Edges(childComplexity), true
  7560. case "ImageConnection.nodes":
  7561. if e.complexity.ImageConnection.Nodes == nil {
  7562. break
  7563. }
  7564. return e.complexity.ImageConnection.Nodes(childComplexity), true
  7565. case "ImageConnection.pageInfo":
  7566. if e.complexity.ImageConnection.PageInfo == nil {
  7567. break
  7568. }
  7569. return e.complexity.ImageConnection.PageInfo(childComplexity), true
  7570. case "ImageEdge.cursor":
  7571. if e.complexity.ImageEdge.Cursor == nil {
  7572. break
  7573. }
  7574. return e.complexity.ImageEdge.Cursor(childComplexity), true
  7575. case "ImageEdge.node":
  7576. if e.complexity.ImageEdge.Node == nil {
  7577. break
  7578. }
  7579. return e.complexity.ImageEdge.Node(childComplexity), true
  7580. case "InventoryItem.countryCodeOfOrigin":
  7581. if e.complexity.InventoryItem.CountryCodeOfOrigin == nil {
  7582. break
  7583. }
  7584. return e.complexity.InventoryItem.CountryCodeOfOrigin(childComplexity), true
  7585. case "InventoryItem.countryHarmonizedSystemCodes":
  7586. if e.complexity.InventoryItem.CountryHarmonizedSystemCodes == nil {
  7587. break
  7588. }
  7589. args, err := ec.field_InventoryItem_countryHarmonizedSystemCodes_args(context.TODO(), rawArgs)
  7590. if err != nil {
  7591. return 0, false
  7592. }
  7593. return e.complexity.InventoryItem.CountryHarmonizedSystemCodes(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  7594. case "InventoryItem.createdAt":
  7595. if e.complexity.InventoryItem.CreatedAt == nil {
  7596. break
  7597. }
  7598. return e.complexity.InventoryItem.CreatedAt(childComplexity), true
  7599. case "InventoryItem.duplicateSkuCount":
  7600. if e.complexity.InventoryItem.DuplicateSkuCount == nil {
  7601. break
  7602. }
  7603. return e.complexity.InventoryItem.DuplicateSkuCount(childComplexity), true
  7604. case "InventoryItem.harmonizedSystemCode":
  7605. if e.complexity.InventoryItem.HarmonizedSystemCode == nil {
  7606. break
  7607. }
  7608. return e.complexity.InventoryItem.HarmonizedSystemCode(childComplexity), true
  7609. case "InventoryItem.id":
  7610. if e.complexity.InventoryItem.ID == nil {
  7611. break
  7612. }
  7613. return e.complexity.InventoryItem.ID(childComplexity), true
  7614. case "InventoryItem.inventoryHistoryUrl":
  7615. if e.complexity.InventoryItem.InventoryHistoryURL == nil {
  7616. break
  7617. }
  7618. return e.complexity.InventoryItem.InventoryHistoryURL(childComplexity), true
  7619. case "InventoryItem.inventoryLevel":
  7620. if e.complexity.InventoryItem.InventoryLevel == nil {
  7621. break
  7622. }
  7623. args, err := ec.field_InventoryItem_inventoryLevel_args(context.TODO(), rawArgs)
  7624. if err != nil {
  7625. return 0, false
  7626. }
  7627. return e.complexity.InventoryItem.InventoryLevel(childComplexity, args["locationId"].(string)), true
  7628. case "InventoryItem.inventoryLevels":
  7629. if e.complexity.InventoryItem.InventoryLevels == nil {
  7630. break
  7631. }
  7632. args, err := ec.field_InventoryItem_inventoryLevels_args(context.TODO(), rawArgs)
  7633. if err != nil {
  7634. return 0, false
  7635. }
  7636. return e.complexity.InventoryItem.InventoryLevels(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["query"].(*string)), true
  7637. case "InventoryItem.legacyResourceId":
  7638. if e.complexity.InventoryItem.LegacyResourceID == nil {
  7639. break
  7640. }
  7641. return e.complexity.InventoryItem.LegacyResourceID(childComplexity), true
  7642. case "InventoryItem.locationsCount":
  7643. if e.complexity.InventoryItem.LocationsCount == nil {
  7644. break
  7645. }
  7646. return e.complexity.InventoryItem.LocationsCount(childComplexity), true
  7647. case "InventoryItem.provinceCodeOfOrigin":
  7648. if e.complexity.InventoryItem.ProvinceCodeOfOrigin == nil {
  7649. break
  7650. }
  7651. return e.complexity.InventoryItem.ProvinceCodeOfOrigin(childComplexity), true
  7652. case "InventoryItem.requiresShipping":
  7653. if e.complexity.InventoryItem.RequiresShipping == nil {
  7654. break
  7655. }
  7656. return e.complexity.InventoryItem.RequiresShipping(childComplexity), true
  7657. case "InventoryItem.sku":
  7658. if e.complexity.InventoryItem.Sku == nil {
  7659. break
  7660. }
  7661. return e.complexity.InventoryItem.Sku(childComplexity), true
  7662. case "InventoryItem.tracked":
  7663. if e.complexity.InventoryItem.Tracked == nil {
  7664. break
  7665. }
  7666. return e.complexity.InventoryItem.Tracked(childComplexity), true
  7667. case "InventoryItem.trackedEditable":
  7668. if e.complexity.InventoryItem.TrackedEditable == nil {
  7669. break
  7670. }
  7671. return e.complexity.InventoryItem.TrackedEditable(childComplexity), true
  7672. case "InventoryItem.unitCost":
  7673. if e.complexity.InventoryItem.UnitCost == nil {
  7674. break
  7675. }
  7676. return e.complexity.InventoryItem.UnitCost(childComplexity), true
  7677. case "InventoryItem.updatedAt":
  7678. if e.complexity.InventoryItem.UpdatedAt == nil {
  7679. break
  7680. }
  7681. return e.complexity.InventoryItem.UpdatedAt(childComplexity), true
  7682. case "InventoryItem.variant":
  7683. if e.complexity.InventoryItem.Variant == nil {
  7684. break
  7685. }
  7686. return e.complexity.InventoryItem.Variant(childComplexity), true
  7687. case "InventoryLevel.available":
  7688. if e.complexity.InventoryLevel.Available == nil {
  7689. break
  7690. }
  7691. return e.complexity.InventoryLevel.Available(childComplexity), true
  7692. case "InventoryLevel.canDeactivate":
  7693. if e.complexity.InventoryLevel.CanDeactivate == nil {
  7694. break
  7695. }
  7696. return e.complexity.InventoryLevel.CanDeactivate(childComplexity), true
  7697. case "InventoryLevel.createdAt":
  7698. if e.complexity.InventoryLevel.CreatedAt == nil {
  7699. break
  7700. }
  7701. return e.complexity.InventoryLevel.CreatedAt(childComplexity), true
  7702. case "InventoryLevel.deactivationAlert":
  7703. if e.complexity.InventoryLevel.DeactivationAlert == nil {
  7704. break
  7705. }
  7706. return e.complexity.InventoryLevel.DeactivationAlert(childComplexity), true
  7707. case "InventoryLevel.deactivationAlertHtml":
  7708. if e.complexity.InventoryLevel.DeactivationAlertHTML == nil {
  7709. break
  7710. }
  7711. return e.complexity.InventoryLevel.DeactivationAlertHTML(childComplexity), true
  7712. case "InventoryLevel.id":
  7713. if e.complexity.InventoryLevel.ID == nil {
  7714. break
  7715. }
  7716. return e.complexity.InventoryLevel.ID(childComplexity), true
  7717. case "InventoryLevel.incoming":
  7718. if e.complexity.InventoryLevel.Incoming == nil {
  7719. break
  7720. }
  7721. return e.complexity.InventoryLevel.Incoming(childComplexity), true
  7722. case "InventoryLevel.item":
  7723. if e.complexity.InventoryLevel.Item == nil {
  7724. break
  7725. }
  7726. return e.complexity.InventoryLevel.Item(childComplexity), true
  7727. case "InventoryLevel.location":
  7728. if e.complexity.InventoryLevel.Location == nil {
  7729. break
  7730. }
  7731. return e.complexity.InventoryLevel.Location(childComplexity), true
  7732. case "InventoryLevel.updatedAt":
  7733. if e.complexity.InventoryLevel.UpdatedAt == nil {
  7734. break
  7735. }
  7736. return e.complexity.InventoryLevel.UpdatedAt(childComplexity), true
  7737. case "InventoryLevelConnection.edges":
  7738. if e.complexity.InventoryLevelConnection.Edges == nil {
  7739. break
  7740. }
  7741. return e.complexity.InventoryLevelConnection.Edges(childComplexity), true
  7742. case "InventoryLevelConnection.nodes":
  7743. if e.complexity.InventoryLevelConnection.Nodes == nil {
  7744. break
  7745. }
  7746. return e.complexity.InventoryLevelConnection.Nodes(childComplexity), true
  7747. case "InventoryLevelConnection.pageInfo":
  7748. if e.complexity.InventoryLevelConnection.PageInfo == nil {
  7749. break
  7750. }
  7751. return e.complexity.InventoryLevelConnection.PageInfo(childComplexity), true
  7752. case "InventoryLevelEdge.cursor":
  7753. if e.complexity.InventoryLevelEdge.Cursor == nil {
  7754. break
  7755. }
  7756. return e.complexity.InventoryLevelEdge.Cursor(childComplexity), true
  7757. case "InventoryLevelEdge.node":
  7758. if e.complexity.InventoryLevelEdge.Node == nil {
  7759. break
  7760. }
  7761. return e.complexity.InventoryLevelEdge.Node(childComplexity), true
  7762. case "Job.done":
  7763. if e.complexity.Job.Done == nil {
  7764. break
  7765. }
  7766. return e.complexity.Job.Done(childComplexity), true
  7767. case "Job.id":
  7768. if e.complexity.Job.ID == nil {
  7769. break
  7770. }
  7771. return e.complexity.Job.ID(childComplexity), true
  7772. case "LimitedPendingOrderCount.atMax":
  7773. if e.complexity.LimitedPendingOrderCount.AtMax == nil {
  7774. break
  7775. }
  7776. return e.complexity.LimitedPendingOrderCount.AtMax(childComplexity), true
  7777. case "LimitedPendingOrderCount.count":
  7778. if e.complexity.LimitedPendingOrderCount.Count == nil {
  7779. break
  7780. }
  7781. return e.complexity.LimitedPendingOrderCount.Count(childComplexity), true
  7782. case "LineItem.contract":
  7783. if e.complexity.LineItem.Contract == nil {
  7784. break
  7785. }
  7786. return e.complexity.LineItem.Contract(childComplexity), true
  7787. case "LineItem.currentQuantity":
  7788. if e.complexity.LineItem.CurrentQuantity == nil {
  7789. break
  7790. }
  7791. return e.complexity.LineItem.CurrentQuantity(childComplexity), true
  7792. case "LineItem.customAttributes":
  7793. if e.complexity.LineItem.CustomAttributes == nil {
  7794. break
  7795. }
  7796. return e.complexity.LineItem.CustomAttributes(childComplexity), true
  7797. case "LineItem.discountAllocations":
  7798. if e.complexity.LineItem.DiscountAllocations == nil {
  7799. break
  7800. }
  7801. return e.complexity.LineItem.DiscountAllocations(childComplexity), true
  7802. case "LineItem.discountedTotalSet":
  7803. if e.complexity.LineItem.DiscountedTotalSet == nil {
  7804. break
  7805. }
  7806. return e.complexity.LineItem.DiscountedTotalSet(childComplexity), true
  7807. case "LineItem.discountedUnitPriceSet":
  7808. if e.complexity.LineItem.DiscountedUnitPriceSet == nil {
  7809. break
  7810. }
  7811. return e.complexity.LineItem.DiscountedUnitPriceSet(childComplexity), true
  7812. case "LineItem.duties":
  7813. if e.complexity.LineItem.Duties == nil {
  7814. break
  7815. }
  7816. return e.complexity.LineItem.Duties(childComplexity), true
  7817. case "LineItem.id":
  7818. if e.complexity.LineItem.ID == nil {
  7819. break
  7820. }
  7821. return e.complexity.LineItem.ID(childComplexity), true
  7822. case "LineItem.image":
  7823. if e.complexity.LineItem.Image == nil {
  7824. break
  7825. }
  7826. return e.complexity.LineItem.Image(childComplexity), true
  7827. case "LineItem.merchantEditable":
  7828. if e.complexity.LineItem.MerchantEditable == nil {
  7829. break
  7830. }
  7831. return e.complexity.LineItem.MerchantEditable(childComplexity), true
  7832. case "LineItem.name":
  7833. if e.complexity.LineItem.Name == nil {
  7834. break
  7835. }
  7836. return e.complexity.LineItem.Name(childComplexity), true
  7837. case "LineItem.nonFulfillableQuantity":
  7838. if e.complexity.LineItem.NonFulfillableQuantity == nil {
  7839. break
  7840. }
  7841. return e.complexity.LineItem.NonFulfillableQuantity(childComplexity), true
  7842. case "LineItem.originalTotalSet":
  7843. if e.complexity.LineItem.OriginalTotalSet == nil {
  7844. break
  7845. }
  7846. return e.complexity.LineItem.OriginalTotalSet(childComplexity), true
  7847. case "LineItem.originalUnitPriceSet":
  7848. if e.complexity.LineItem.OriginalUnitPriceSet == nil {
  7849. break
  7850. }
  7851. return e.complexity.LineItem.OriginalUnitPriceSet(childComplexity), true
  7852. case "LineItem.product":
  7853. if e.complexity.LineItem.Product == nil {
  7854. break
  7855. }
  7856. return e.complexity.LineItem.Product(childComplexity), true
  7857. case "LineItem.quantity":
  7858. if e.complexity.LineItem.Quantity == nil {
  7859. break
  7860. }
  7861. return e.complexity.LineItem.Quantity(childComplexity), true
  7862. case "LineItem.refundableQuantity":
  7863. if e.complexity.LineItem.RefundableQuantity == nil {
  7864. break
  7865. }
  7866. return e.complexity.LineItem.RefundableQuantity(childComplexity), true
  7867. case "LineItem.requiresShipping":
  7868. if e.complexity.LineItem.RequiresShipping == nil {
  7869. break
  7870. }
  7871. return e.complexity.LineItem.RequiresShipping(childComplexity), true
  7872. case "LineItem.restockable":
  7873. if e.complexity.LineItem.Restockable == nil {
  7874. break
  7875. }
  7876. return e.complexity.LineItem.Restockable(childComplexity), true
  7877. case "LineItem.sellingPlan":
  7878. if e.complexity.LineItem.SellingPlan == nil {
  7879. break
  7880. }
  7881. return e.complexity.LineItem.SellingPlan(childComplexity), true
  7882. case "LineItem.sku":
  7883. if e.complexity.LineItem.Sku == nil {
  7884. break
  7885. }
  7886. return e.complexity.LineItem.Sku(childComplexity), true
  7887. case "LineItem.staffMember":
  7888. if e.complexity.LineItem.StaffMember == nil {
  7889. break
  7890. }
  7891. return e.complexity.LineItem.StaffMember(childComplexity), true
  7892. case "LineItem.taxLines":
  7893. if e.complexity.LineItem.TaxLines == nil {
  7894. break
  7895. }
  7896. args, err := ec.field_LineItem_taxLines_args(context.TODO(), rawArgs)
  7897. if err != nil {
  7898. return 0, false
  7899. }
  7900. return e.complexity.LineItem.TaxLines(childComplexity, args["first"].(*int)), true
  7901. case "LineItem.taxable":
  7902. if e.complexity.LineItem.Taxable == nil {
  7903. break
  7904. }
  7905. return e.complexity.LineItem.Taxable(childComplexity), true
  7906. case "LineItem.title":
  7907. if e.complexity.LineItem.Title == nil {
  7908. break
  7909. }
  7910. return e.complexity.LineItem.Title(childComplexity), true
  7911. case "LineItem.totalDiscountSet":
  7912. if e.complexity.LineItem.TotalDiscountSet == nil {
  7913. break
  7914. }
  7915. return e.complexity.LineItem.TotalDiscountSet(childComplexity), true
  7916. case "LineItem.unfulfilledDiscountedTotalSet":
  7917. if e.complexity.LineItem.UnfulfilledDiscountedTotalSet == nil {
  7918. break
  7919. }
  7920. return e.complexity.LineItem.UnfulfilledDiscountedTotalSet(childComplexity), true
  7921. case "LineItem.unfulfilledOriginalTotalSet":
  7922. if e.complexity.LineItem.UnfulfilledOriginalTotalSet == nil {
  7923. break
  7924. }
  7925. return e.complexity.LineItem.UnfulfilledOriginalTotalSet(childComplexity), true
  7926. case "LineItem.unfulfilledQuantity":
  7927. if e.complexity.LineItem.UnfulfilledQuantity == nil {
  7928. break
  7929. }
  7930. return e.complexity.LineItem.UnfulfilledQuantity(childComplexity), true
  7931. case "LineItem.variant":
  7932. if e.complexity.LineItem.Variant == nil {
  7933. break
  7934. }
  7935. return e.complexity.LineItem.Variant(childComplexity), true
  7936. case "LineItem.variantTitle":
  7937. if e.complexity.LineItem.VariantTitle == nil {
  7938. break
  7939. }
  7940. return e.complexity.LineItem.VariantTitle(childComplexity), true
  7941. case "LineItem.vendor":
  7942. if e.complexity.LineItem.Vendor == nil {
  7943. break
  7944. }
  7945. return e.complexity.LineItem.Vendor(childComplexity), true
  7946. case "LineItemConnection.edges":
  7947. if e.complexity.LineItemConnection.Edges == nil {
  7948. break
  7949. }
  7950. return e.complexity.LineItemConnection.Edges(childComplexity), true
  7951. case "LineItemConnection.nodes":
  7952. if e.complexity.LineItemConnection.Nodes == nil {
  7953. break
  7954. }
  7955. return e.complexity.LineItemConnection.Nodes(childComplexity), true
  7956. case "LineItemConnection.pageInfo":
  7957. if e.complexity.LineItemConnection.PageInfo == nil {
  7958. break
  7959. }
  7960. return e.complexity.LineItemConnection.PageInfo(childComplexity), true
  7961. case "LineItemEdge.cursor":
  7962. if e.complexity.LineItemEdge.Cursor == nil {
  7963. break
  7964. }
  7965. return e.complexity.LineItemEdge.Cursor(childComplexity), true
  7966. case "LineItemEdge.node":
  7967. if e.complexity.LineItemEdge.Node == nil {
  7968. break
  7969. }
  7970. return e.complexity.LineItemEdge.Node(childComplexity), true
  7971. case "LineItemSellingPlan.name":
  7972. if e.complexity.LineItemSellingPlan.Name == nil {
  7973. break
  7974. }
  7975. return e.complexity.LineItemSellingPlan.Name(childComplexity), true
  7976. case "LineItemSellingPlan.sellingPlanId":
  7977. if e.complexity.LineItemSellingPlan.SellingPlanID == nil {
  7978. break
  7979. }
  7980. return e.complexity.LineItemSellingPlan.SellingPlanID(childComplexity), true
  7981. case "Link.label":
  7982. if e.complexity.Link.Label == nil {
  7983. break
  7984. }
  7985. return e.complexity.Link.Label(childComplexity), true
  7986. case "Link.translations":
  7987. if e.complexity.Link.Translations == nil {
  7988. break
  7989. }
  7990. args, err := ec.field_Link_translations_args(context.TODO(), rawArgs)
  7991. if err != nil {
  7992. return 0, false
  7993. }
  7994. return e.complexity.Link.Translations(childComplexity, args["locale"].(string), args["marketId"].(*string)), true
  7995. case "Link.url":
  7996. if e.complexity.Link.URL == nil {
  7997. break
  7998. }
  7999. return e.complexity.Link.URL(childComplexity), true
  8000. case "LocalizationExtension.countryCode":
  8001. if e.complexity.LocalizationExtension.CountryCode == nil {
  8002. break
  8003. }
  8004. return e.complexity.LocalizationExtension.CountryCode(childComplexity), true
  8005. case "LocalizationExtension.key":
  8006. if e.complexity.LocalizationExtension.Key == nil {
  8007. break
  8008. }
  8009. return e.complexity.LocalizationExtension.Key(childComplexity), true
  8010. case "LocalizationExtension.purpose":
  8011. if e.complexity.LocalizationExtension.Purpose == nil {
  8012. break
  8013. }
  8014. return e.complexity.LocalizationExtension.Purpose(childComplexity), true
  8015. case "LocalizationExtension.title":
  8016. if e.complexity.LocalizationExtension.Title == nil {
  8017. break
  8018. }
  8019. return e.complexity.LocalizationExtension.Title(childComplexity), true
  8020. case "LocalizationExtension.value":
  8021. if e.complexity.LocalizationExtension.Value == nil {
  8022. break
  8023. }
  8024. return e.complexity.LocalizationExtension.Value(childComplexity), true
  8025. case "LocalizationExtensionConnection.edges":
  8026. if e.complexity.LocalizationExtensionConnection.Edges == nil {
  8027. break
  8028. }
  8029. return e.complexity.LocalizationExtensionConnection.Edges(childComplexity), true
  8030. case "LocalizationExtensionConnection.nodes":
  8031. if e.complexity.LocalizationExtensionConnection.Nodes == nil {
  8032. break
  8033. }
  8034. return e.complexity.LocalizationExtensionConnection.Nodes(childComplexity), true
  8035. case "LocalizationExtensionConnection.pageInfo":
  8036. if e.complexity.LocalizationExtensionConnection.PageInfo == nil {
  8037. break
  8038. }
  8039. return e.complexity.LocalizationExtensionConnection.PageInfo(childComplexity), true
  8040. case "LocalizationExtensionEdge.cursor":
  8041. if e.complexity.LocalizationExtensionEdge.Cursor == nil {
  8042. break
  8043. }
  8044. return e.complexity.LocalizationExtensionEdge.Cursor(childComplexity), true
  8045. case "LocalizationExtensionEdge.node":
  8046. if e.complexity.LocalizationExtensionEdge.Node == nil {
  8047. break
  8048. }
  8049. return e.complexity.LocalizationExtensionEdge.Node(childComplexity), true
  8050. case "Location.activatable":
  8051. if e.complexity.Location.Activatable == nil {
  8052. break
  8053. }
  8054. return e.complexity.Location.Activatable(childComplexity), true
  8055. case "Location.address":
  8056. if e.complexity.Location.Address == nil {
  8057. break
  8058. }
  8059. return e.complexity.Location.Address(childComplexity), true
  8060. case "Location.addressVerified":
  8061. if e.complexity.Location.AddressVerified == nil {
  8062. break
  8063. }
  8064. return e.complexity.Location.AddressVerified(childComplexity), true
  8065. case "Location.deactivatable":
  8066. if e.complexity.Location.Deactivatable == nil {
  8067. break
  8068. }
  8069. return e.complexity.Location.Deactivatable(childComplexity), true
  8070. case "Location.deactivatedAt":
  8071. if e.complexity.Location.DeactivatedAt == nil {
  8072. break
  8073. }
  8074. return e.complexity.Location.DeactivatedAt(childComplexity), true
  8075. case "Location.deletable":
  8076. if e.complexity.Location.Deletable == nil {
  8077. break
  8078. }
  8079. return e.complexity.Location.Deletable(childComplexity), true
  8080. case "Location.fulfillmentService":
  8081. if e.complexity.Location.FulfillmentService == nil {
  8082. break
  8083. }
  8084. return e.complexity.Location.FulfillmentService(childComplexity), true
  8085. case "Location.fulfillsOnlineOrders":
  8086. if e.complexity.Location.FulfillsOnlineOrders == nil {
  8087. break
  8088. }
  8089. return e.complexity.Location.FulfillsOnlineOrders(childComplexity), true
  8090. case "Location.hasActiveInventory":
  8091. if e.complexity.Location.HasActiveInventory == nil {
  8092. break
  8093. }
  8094. return e.complexity.Location.HasActiveInventory(childComplexity), true
  8095. case "Location.hasUnfulfilledOrders":
  8096. if e.complexity.Location.HasUnfulfilledOrders == nil {
  8097. break
  8098. }
  8099. return e.complexity.Location.HasUnfulfilledOrders(childComplexity), true
  8100. case "Location.id":
  8101. if e.complexity.Location.ID == nil {
  8102. break
  8103. }
  8104. return e.complexity.Location.ID(childComplexity), true
  8105. case "Location.inventoryLevel":
  8106. if e.complexity.Location.InventoryLevel == nil {
  8107. break
  8108. }
  8109. args, err := ec.field_Location_inventoryLevel_args(context.TODO(), rawArgs)
  8110. if err != nil {
  8111. return 0, false
  8112. }
  8113. return e.complexity.Location.InventoryLevel(childComplexity, args["inventoryItemId"].(string)), true
  8114. case "Location.inventoryLevels":
  8115. if e.complexity.Location.InventoryLevels == nil {
  8116. break
  8117. }
  8118. args, err := ec.field_Location_inventoryLevels_args(context.TODO(), rawArgs)
  8119. if err != nil {
  8120. return 0, false
  8121. }
  8122. return e.complexity.Location.InventoryLevels(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["query"].(*string)), true
  8123. case "Location.isActive":
  8124. if e.complexity.Location.IsActive == nil {
  8125. break
  8126. }
  8127. return e.complexity.Location.IsActive(childComplexity), true
  8128. case "Location.legacyResourceId":
  8129. if e.complexity.Location.LegacyResourceID == nil {
  8130. break
  8131. }
  8132. return e.complexity.Location.LegacyResourceID(childComplexity), true
  8133. case "Location.metafield":
  8134. if e.complexity.Location.Metafield == nil {
  8135. break
  8136. }
  8137. args, err := ec.field_Location_metafield_args(context.TODO(), rawArgs)
  8138. if err != nil {
  8139. return 0, false
  8140. }
  8141. return e.complexity.Location.Metafield(childComplexity, args["namespace"].(string), args["key"].(string)), true
  8142. case "Location.metafieldDefinitions":
  8143. if e.complexity.Location.MetafieldDefinitions == nil {
  8144. break
  8145. }
  8146. args, err := ec.field_Location_metafieldDefinitions_args(context.TODO(), rawArgs)
  8147. if err != nil {
  8148. return 0, false
  8149. }
  8150. return e.complexity.Location.MetafieldDefinitions(childComplexity, args["namespace"].(*string), args["pinnedStatus"].(*MetafieldDefinitionPinnedStatus), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*MetafieldDefinitionSortKeys), args["query"].(*string)), true
  8151. case "Location.metafields":
  8152. if e.complexity.Location.Metafields == nil {
  8153. break
  8154. }
  8155. args, err := ec.field_Location_metafields_args(context.TODO(), rawArgs)
  8156. if err != nil {
  8157. return 0, false
  8158. }
  8159. return e.complexity.Location.Metafields(childComplexity, args["namespace"].(*string), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  8160. case "Location.name":
  8161. if e.complexity.Location.Name == nil {
  8162. break
  8163. }
  8164. return e.complexity.Location.Name(childComplexity), true
  8165. case "Location.privateMetafield":
  8166. if e.complexity.Location.PrivateMetafield == nil {
  8167. break
  8168. }
  8169. args, err := ec.field_Location_privateMetafield_args(context.TODO(), rawArgs)
  8170. if err != nil {
  8171. return 0, false
  8172. }
  8173. return e.complexity.Location.PrivateMetafield(childComplexity, args["namespace"].(string), args["key"].(string)), true
  8174. case "Location.privateMetafields":
  8175. if e.complexity.Location.PrivateMetafields == nil {
  8176. break
  8177. }
  8178. args, err := ec.field_Location_privateMetafields_args(context.TODO(), rawArgs)
  8179. if err != nil {
  8180. return 0, false
  8181. }
  8182. return e.complexity.Location.PrivateMetafields(childComplexity, args["namespace"].(*string), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  8183. case "Location.shipsInventory":
  8184. if e.complexity.Location.ShipsInventory == nil {
  8185. break
  8186. }
  8187. return e.complexity.Location.ShipsInventory(childComplexity), true
  8188. case "Location.suggestedAddresses":
  8189. if e.complexity.Location.SuggestedAddresses == nil {
  8190. break
  8191. }
  8192. return e.complexity.Location.SuggestedAddresses(childComplexity), true
  8193. case "LocationAddress.address1":
  8194. if e.complexity.LocationAddress.Address1 == nil {
  8195. break
  8196. }
  8197. return e.complexity.LocationAddress.Address1(childComplexity), true
  8198. case "LocationAddress.address2":
  8199. if e.complexity.LocationAddress.Address2 == nil {
  8200. break
  8201. }
  8202. return e.complexity.LocationAddress.Address2(childComplexity), true
  8203. case "LocationAddress.city":
  8204. if e.complexity.LocationAddress.City == nil {
  8205. break
  8206. }
  8207. return e.complexity.LocationAddress.City(childComplexity), true
  8208. case "LocationAddress.country":
  8209. if e.complexity.LocationAddress.Country == nil {
  8210. break
  8211. }
  8212. return e.complexity.LocationAddress.Country(childComplexity), true
  8213. case "LocationAddress.countryCode":
  8214. if e.complexity.LocationAddress.CountryCode == nil {
  8215. break
  8216. }
  8217. return e.complexity.LocationAddress.CountryCode(childComplexity), true
  8218. case "LocationAddress.formatted":
  8219. if e.complexity.LocationAddress.Formatted == nil {
  8220. break
  8221. }
  8222. return e.complexity.LocationAddress.Formatted(childComplexity), true
  8223. case "LocationAddress.latitude":
  8224. if e.complexity.LocationAddress.Latitude == nil {
  8225. break
  8226. }
  8227. return e.complexity.LocationAddress.Latitude(childComplexity), true
  8228. case "LocationAddress.longitude":
  8229. if e.complexity.LocationAddress.Longitude == nil {
  8230. break
  8231. }
  8232. return e.complexity.LocationAddress.Longitude(childComplexity), true
  8233. case "LocationAddress.phone":
  8234. if e.complexity.LocationAddress.Phone == nil {
  8235. break
  8236. }
  8237. return e.complexity.LocationAddress.Phone(childComplexity), true
  8238. case "LocationAddress.province":
  8239. if e.complexity.LocationAddress.Province == nil {
  8240. break
  8241. }
  8242. return e.complexity.LocationAddress.Province(childComplexity), true
  8243. case "LocationAddress.provinceCode":
  8244. if e.complexity.LocationAddress.ProvinceCode == nil {
  8245. break
  8246. }
  8247. return e.complexity.LocationAddress.ProvinceCode(childComplexity), true
  8248. case "LocationAddress.zip":
  8249. if e.complexity.LocationAddress.Zip == nil {
  8250. break
  8251. }
  8252. return e.complexity.LocationAddress.Zip(childComplexity), true
  8253. case "LocationConnection.edges":
  8254. if e.complexity.LocationConnection.Edges == nil {
  8255. break
  8256. }
  8257. return e.complexity.LocationConnection.Edges(childComplexity), true
  8258. case "LocationConnection.nodes":
  8259. if e.complexity.LocationConnection.Nodes == nil {
  8260. break
  8261. }
  8262. return e.complexity.LocationConnection.Nodes(childComplexity), true
  8263. case "LocationConnection.pageInfo":
  8264. if e.complexity.LocationConnection.PageInfo == nil {
  8265. break
  8266. }
  8267. return e.complexity.LocationConnection.PageInfo(childComplexity), true
  8268. case "LocationEdge.cursor":
  8269. if e.complexity.LocationEdge.Cursor == nil {
  8270. break
  8271. }
  8272. return e.complexity.LocationEdge.Cursor(childComplexity), true
  8273. case "LocationEdge.node":
  8274. if e.complexity.LocationEdge.Node == nil {
  8275. break
  8276. }
  8277. return e.complexity.LocationEdge.Node(childComplexity), true
  8278. case "LocationSuggestedAddress.address1":
  8279. if e.complexity.LocationSuggestedAddress.Address1 == nil {
  8280. break
  8281. }
  8282. return e.complexity.LocationSuggestedAddress.Address1(childComplexity), true
  8283. case "LocationSuggestedAddress.address2":
  8284. if e.complexity.LocationSuggestedAddress.Address2 == nil {
  8285. break
  8286. }
  8287. return e.complexity.LocationSuggestedAddress.Address2(childComplexity), true
  8288. case "LocationSuggestedAddress.city":
  8289. if e.complexity.LocationSuggestedAddress.City == nil {
  8290. break
  8291. }
  8292. return e.complexity.LocationSuggestedAddress.City(childComplexity), true
  8293. case "LocationSuggestedAddress.country":
  8294. if e.complexity.LocationSuggestedAddress.Country == nil {
  8295. break
  8296. }
  8297. return e.complexity.LocationSuggestedAddress.Country(childComplexity), true
  8298. case "LocationSuggestedAddress.countryCode":
  8299. if e.complexity.LocationSuggestedAddress.CountryCode == nil {
  8300. break
  8301. }
  8302. return e.complexity.LocationSuggestedAddress.CountryCode(childComplexity), true
  8303. case "LocationSuggestedAddress.formatted":
  8304. if e.complexity.LocationSuggestedAddress.Formatted == nil {
  8305. break
  8306. }
  8307. return e.complexity.LocationSuggestedAddress.Formatted(childComplexity), true
  8308. case "LocationSuggestedAddress.province":
  8309. if e.complexity.LocationSuggestedAddress.Province == nil {
  8310. break
  8311. }
  8312. return e.complexity.LocationSuggestedAddress.Province(childComplexity), true
  8313. case "LocationSuggestedAddress.provinceCode":
  8314. if e.complexity.LocationSuggestedAddress.ProvinceCode == nil {
  8315. break
  8316. }
  8317. return e.complexity.LocationSuggestedAddress.ProvinceCode(childComplexity), true
  8318. case "LocationSuggestedAddress.zip":
  8319. if e.complexity.LocationSuggestedAddress.Zip == nil {
  8320. break
  8321. }
  8322. return e.complexity.LocationSuggestedAddress.Zip(childComplexity), true
  8323. case "MailingAddress.address1":
  8324. if e.complexity.MailingAddress.Address1 == nil {
  8325. break
  8326. }
  8327. return e.complexity.MailingAddress.Address1(childComplexity), true
  8328. case "MailingAddress.address2":
  8329. if e.complexity.MailingAddress.Address2 == nil {
  8330. break
  8331. }
  8332. return e.complexity.MailingAddress.Address2(childComplexity), true
  8333. case "MailingAddress.city":
  8334. if e.complexity.MailingAddress.City == nil {
  8335. break
  8336. }
  8337. return e.complexity.MailingAddress.City(childComplexity), true
  8338. case "MailingAddress.company":
  8339. if e.complexity.MailingAddress.Company == nil {
  8340. break
  8341. }
  8342. return e.complexity.MailingAddress.Company(childComplexity), true
  8343. case "MailingAddress.coordinatesValidated":
  8344. if e.complexity.MailingAddress.CoordinatesValidated == nil {
  8345. break
  8346. }
  8347. return e.complexity.MailingAddress.CoordinatesValidated(childComplexity), true
  8348. case "MailingAddress.country":
  8349. if e.complexity.MailingAddress.Country == nil {
  8350. break
  8351. }
  8352. return e.complexity.MailingAddress.Country(childComplexity), true
  8353. case "MailingAddress.countryCodeV2":
  8354. if e.complexity.MailingAddress.CountryCodeV2 == nil {
  8355. break
  8356. }
  8357. return e.complexity.MailingAddress.CountryCodeV2(childComplexity), true
  8358. case "MailingAddress.firstName":
  8359. if e.complexity.MailingAddress.FirstName == nil {
  8360. break
  8361. }
  8362. return e.complexity.MailingAddress.FirstName(childComplexity), true
  8363. case "MailingAddress.formattedArea":
  8364. if e.complexity.MailingAddress.FormattedArea == nil {
  8365. break
  8366. }
  8367. return e.complexity.MailingAddress.FormattedArea(childComplexity), true
  8368. case "MailingAddress.id":
  8369. if e.complexity.MailingAddress.ID == nil {
  8370. break
  8371. }
  8372. return e.complexity.MailingAddress.ID(childComplexity), true
  8373. case "MailingAddress.lastName":
  8374. if e.complexity.MailingAddress.LastName == nil {
  8375. break
  8376. }
  8377. return e.complexity.MailingAddress.LastName(childComplexity), true
  8378. case "MailingAddress.latitude":
  8379. if e.complexity.MailingAddress.Latitude == nil {
  8380. break
  8381. }
  8382. return e.complexity.MailingAddress.Latitude(childComplexity), true
  8383. case "MailingAddress.longitude":
  8384. if e.complexity.MailingAddress.Longitude == nil {
  8385. break
  8386. }
  8387. return e.complexity.MailingAddress.Longitude(childComplexity), true
  8388. case "MailingAddress.name":
  8389. if e.complexity.MailingAddress.Name == nil {
  8390. break
  8391. }
  8392. return e.complexity.MailingAddress.Name(childComplexity), true
  8393. case "MailingAddress.phone":
  8394. if e.complexity.MailingAddress.Phone == nil {
  8395. break
  8396. }
  8397. return e.complexity.MailingAddress.Phone(childComplexity), true
  8398. case "MailingAddress.province":
  8399. if e.complexity.MailingAddress.Province == nil {
  8400. break
  8401. }
  8402. return e.complexity.MailingAddress.Province(childComplexity), true
  8403. case "MailingAddress.provinceCode":
  8404. if e.complexity.MailingAddress.ProvinceCode == nil {
  8405. break
  8406. }
  8407. return e.complexity.MailingAddress.ProvinceCode(childComplexity), true
  8408. case "MailingAddress.zip":
  8409. if e.complexity.MailingAddress.Zip == nil {
  8410. break
  8411. }
  8412. return e.complexity.MailingAddress.Zip(childComplexity), true
  8413. case "ManualDiscountApplication.allocationMethod":
  8414. if e.complexity.ManualDiscountApplication.AllocationMethod == nil {
  8415. break
  8416. }
  8417. return e.complexity.ManualDiscountApplication.AllocationMethod(childComplexity), true
  8418. case "ManualDiscountApplication.description":
  8419. if e.complexity.ManualDiscountApplication.Description == nil {
  8420. break
  8421. }
  8422. return e.complexity.ManualDiscountApplication.Description(childComplexity), true
  8423. case "ManualDiscountApplication.index":
  8424. if e.complexity.ManualDiscountApplication.Index == nil {
  8425. break
  8426. }
  8427. return e.complexity.ManualDiscountApplication.Index(childComplexity), true
  8428. case "ManualDiscountApplication.targetSelection":
  8429. if e.complexity.ManualDiscountApplication.TargetSelection == nil {
  8430. break
  8431. }
  8432. return e.complexity.ManualDiscountApplication.TargetSelection(childComplexity), true
  8433. case "ManualDiscountApplication.targetType":
  8434. if e.complexity.ManualDiscountApplication.TargetType == nil {
  8435. break
  8436. }
  8437. return e.complexity.ManualDiscountApplication.TargetType(childComplexity), true
  8438. case "ManualDiscountApplication.title":
  8439. if e.complexity.ManualDiscountApplication.Title == nil {
  8440. break
  8441. }
  8442. return e.complexity.ManualDiscountApplication.Title(childComplexity), true
  8443. case "ManualDiscountApplication.value":
  8444. if e.complexity.ManualDiscountApplication.Value == nil {
  8445. break
  8446. }
  8447. return e.complexity.ManualDiscountApplication.Value(childComplexity), true
  8448. case "Market.currencySettings":
  8449. if e.complexity.Market.CurrencySettings == nil {
  8450. break
  8451. }
  8452. return e.complexity.Market.CurrencySettings(childComplexity), true
  8453. case "Market.enabled":
  8454. if e.complexity.Market.Enabled == nil {
  8455. break
  8456. }
  8457. return e.complexity.Market.Enabled(childComplexity), true
  8458. case "Market.id":
  8459. if e.complexity.Market.ID == nil {
  8460. break
  8461. }
  8462. return e.complexity.Market.ID(childComplexity), true
  8463. case "Market.name":
  8464. if e.complexity.Market.Name == nil {
  8465. break
  8466. }
  8467. return e.complexity.Market.Name(childComplexity), true
  8468. case "Market.priceList":
  8469. if e.complexity.Market.PriceList == nil {
  8470. break
  8471. }
  8472. return e.complexity.Market.PriceList(childComplexity), true
  8473. case "Market.primary":
  8474. if e.complexity.Market.Primary == nil {
  8475. break
  8476. }
  8477. return e.complexity.Market.Primary(childComplexity), true
  8478. case "Market.regions":
  8479. if e.complexity.Market.Regions == nil {
  8480. break
  8481. }
  8482. args, err := ec.field_Market_regions_args(context.TODO(), rawArgs)
  8483. if err != nil {
  8484. return 0, false
  8485. }
  8486. return e.complexity.Market.Regions(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  8487. case "Market.webPresence":
  8488. if e.complexity.Market.WebPresence == nil {
  8489. break
  8490. }
  8491. return e.complexity.Market.WebPresence(childComplexity), true
  8492. case "MarketCurrencySettings.baseCurrency":
  8493. if e.complexity.MarketCurrencySettings.BaseCurrency == nil {
  8494. break
  8495. }
  8496. return e.complexity.MarketCurrencySettings.BaseCurrency(childComplexity), true
  8497. case "MarketCurrencySettings.localCurrencies":
  8498. if e.complexity.MarketCurrencySettings.LocalCurrencies == nil {
  8499. break
  8500. }
  8501. return e.complexity.MarketCurrencySettings.LocalCurrencies(childComplexity), true
  8502. case "MarketRegionConnection.edges":
  8503. if e.complexity.MarketRegionConnection.Edges == nil {
  8504. break
  8505. }
  8506. return e.complexity.MarketRegionConnection.Edges(childComplexity), true
  8507. case "MarketRegionConnection.nodes":
  8508. if e.complexity.MarketRegionConnection.Nodes == nil {
  8509. break
  8510. }
  8511. return e.complexity.MarketRegionConnection.Nodes(childComplexity), true
  8512. case "MarketRegionConnection.pageInfo":
  8513. if e.complexity.MarketRegionConnection.PageInfo == nil {
  8514. break
  8515. }
  8516. return e.complexity.MarketRegionConnection.PageInfo(childComplexity), true
  8517. case "MarketRegionEdge.cursor":
  8518. if e.complexity.MarketRegionEdge.Cursor == nil {
  8519. break
  8520. }
  8521. return e.complexity.MarketRegionEdge.Cursor(childComplexity), true
  8522. case "MarketRegionEdge.node":
  8523. if e.complexity.MarketRegionEdge.Node == nil {
  8524. break
  8525. }
  8526. return e.complexity.MarketRegionEdge.Node(childComplexity), true
  8527. case "MarketWebPresence.alternateLocales":
  8528. if e.complexity.MarketWebPresence.AlternateLocales == nil {
  8529. break
  8530. }
  8531. return e.complexity.MarketWebPresence.AlternateLocales(childComplexity), true
  8532. case "MarketWebPresence.defaultLocale":
  8533. if e.complexity.MarketWebPresence.DefaultLocale == nil {
  8534. break
  8535. }
  8536. return e.complexity.MarketWebPresence.DefaultLocale(childComplexity), true
  8537. case "MarketWebPresence.domain":
  8538. if e.complexity.MarketWebPresence.Domain == nil {
  8539. break
  8540. }
  8541. return e.complexity.MarketWebPresence.Domain(childComplexity), true
  8542. case "MarketWebPresence.id":
  8543. if e.complexity.MarketWebPresence.ID == nil {
  8544. break
  8545. }
  8546. return e.complexity.MarketWebPresence.ID(childComplexity), true
  8547. case "MarketWebPresence.market":
  8548. if e.complexity.MarketWebPresence.Market == nil {
  8549. break
  8550. }
  8551. return e.complexity.MarketWebPresence.Market(childComplexity), true
  8552. case "MarketWebPresence.rootUrls":
  8553. if e.complexity.MarketWebPresence.RootUrls == nil {
  8554. break
  8555. }
  8556. return e.complexity.MarketWebPresence.RootUrls(childComplexity), true
  8557. case "MarketWebPresence.subfolderSuffix":
  8558. if e.complexity.MarketWebPresence.SubfolderSuffix == nil {
  8559. break
  8560. }
  8561. return e.complexity.MarketWebPresence.SubfolderSuffix(childComplexity), true
  8562. case "MarketWebPresenceRootUrl.locale":
  8563. if e.complexity.MarketWebPresenceRootUrl.Locale == nil {
  8564. break
  8565. }
  8566. return e.complexity.MarketWebPresenceRootUrl.Locale(childComplexity), true
  8567. case "MarketWebPresenceRootUrl.url":
  8568. if e.complexity.MarketWebPresenceRootUrl.URL == nil {
  8569. break
  8570. }
  8571. return e.complexity.MarketWebPresenceRootUrl.URL(childComplexity), true
  8572. case "MarketingEvent.app":
  8573. if e.complexity.MarketingEvent.App == nil {
  8574. break
  8575. }
  8576. return e.complexity.MarketingEvent.App(childComplexity), true
  8577. case "MarketingEvent.channel":
  8578. if e.complexity.MarketingEvent.Channel == nil {
  8579. break
  8580. }
  8581. return e.complexity.MarketingEvent.Channel(childComplexity), true
  8582. case "MarketingEvent.description":
  8583. if e.complexity.MarketingEvent.Description == nil {
  8584. break
  8585. }
  8586. return e.complexity.MarketingEvent.Description(childComplexity), true
  8587. case "MarketingEvent.endedAt":
  8588. if e.complexity.MarketingEvent.EndedAt == nil {
  8589. break
  8590. }
  8591. return e.complexity.MarketingEvent.EndedAt(childComplexity), true
  8592. case "MarketingEvent.id":
  8593. if e.complexity.MarketingEvent.ID == nil {
  8594. break
  8595. }
  8596. return e.complexity.MarketingEvent.ID(childComplexity), true
  8597. case "MarketingEvent.legacyResourceId":
  8598. if e.complexity.MarketingEvent.LegacyResourceID == nil {
  8599. break
  8600. }
  8601. return e.complexity.MarketingEvent.LegacyResourceID(childComplexity), true
  8602. case "MarketingEvent.manageUrl":
  8603. if e.complexity.MarketingEvent.ManageURL == nil {
  8604. break
  8605. }
  8606. return e.complexity.MarketingEvent.ManageURL(childComplexity), true
  8607. case "MarketingEvent.previewUrl":
  8608. if e.complexity.MarketingEvent.PreviewURL == nil {
  8609. break
  8610. }
  8611. return e.complexity.MarketingEvent.PreviewURL(childComplexity), true
  8612. case "MarketingEvent.remoteId":
  8613. if e.complexity.MarketingEvent.RemoteID == nil {
  8614. break
  8615. }
  8616. return e.complexity.MarketingEvent.RemoteID(childComplexity), true
  8617. case "MarketingEvent.scheduledToEndAt":
  8618. if e.complexity.MarketingEvent.ScheduledToEndAt == nil {
  8619. break
  8620. }
  8621. return e.complexity.MarketingEvent.ScheduledToEndAt(childComplexity), true
  8622. case "MarketingEvent.sourceAndMedium":
  8623. if e.complexity.MarketingEvent.SourceAndMedium == nil {
  8624. break
  8625. }
  8626. return e.complexity.MarketingEvent.SourceAndMedium(childComplexity), true
  8627. case "MarketingEvent.startedAt":
  8628. if e.complexity.MarketingEvent.StartedAt == nil {
  8629. break
  8630. }
  8631. return e.complexity.MarketingEvent.StartedAt(childComplexity), true
  8632. case "MarketingEvent.type":
  8633. if e.complexity.MarketingEvent.Type == nil {
  8634. break
  8635. }
  8636. return e.complexity.MarketingEvent.Type(childComplexity), true
  8637. case "MarketingEvent.utmCampaign":
  8638. if e.complexity.MarketingEvent.UtmCampaign == nil {
  8639. break
  8640. }
  8641. return e.complexity.MarketingEvent.UtmCampaign(childComplexity), true
  8642. case "MarketingEvent.utmMedium":
  8643. if e.complexity.MarketingEvent.UtmMedium == nil {
  8644. break
  8645. }
  8646. return e.complexity.MarketingEvent.UtmMedium(childComplexity), true
  8647. case "MarketingEvent.utmSource":
  8648. if e.complexity.MarketingEvent.UtmSource == nil {
  8649. break
  8650. }
  8651. return e.complexity.MarketingEvent.UtmSource(childComplexity), true
  8652. case "MediaConnection.edges":
  8653. if e.complexity.MediaConnection.Edges == nil {
  8654. break
  8655. }
  8656. return e.complexity.MediaConnection.Edges(childComplexity), true
  8657. case "MediaConnection.nodes":
  8658. if e.complexity.MediaConnection.Nodes == nil {
  8659. break
  8660. }
  8661. return e.complexity.MediaConnection.Nodes(childComplexity), true
  8662. case "MediaConnection.pageInfo":
  8663. if e.complexity.MediaConnection.PageInfo == nil {
  8664. break
  8665. }
  8666. return e.complexity.MediaConnection.PageInfo(childComplexity), true
  8667. case "MediaEdge.cursor":
  8668. if e.complexity.MediaEdge.Cursor == nil {
  8669. break
  8670. }
  8671. return e.complexity.MediaEdge.Cursor(childComplexity), true
  8672. case "MediaEdge.node":
  8673. if e.complexity.MediaEdge.Node == nil {
  8674. break
  8675. }
  8676. return e.complexity.MediaEdge.Node(childComplexity), true
  8677. case "MediaError.code":
  8678. if e.complexity.MediaError.Code == nil {
  8679. break
  8680. }
  8681. return e.complexity.MediaError.Code(childComplexity), true
  8682. case "MediaError.details":
  8683. if e.complexity.MediaError.Details == nil {
  8684. break
  8685. }
  8686. return e.complexity.MediaError.Details(childComplexity), true
  8687. case "MediaError.message":
  8688. if e.complexity.MediaError.Message == nil {
  8689. break
  8690. }
  8691. return e.complexity.MediaError.Message(childComplexity), true
  8692. case "MediaImage.alt":
  8693. if e.complexity.MediaImage.Alt == nil {
  8694. break
  8695. }
  8696. return e.complexity.MediaImage.Alt(childComplexity), true
  8697. case "MediaImage.createdAt":
  8698. if e.complexity.MediaImage.CreatedAt == nil {
  8699. break
  8700. }
  8701. return e.complexity.MediaImage.CreatedAt(childComplexity), true
  8702. case "MediaImage.fileErrors":
  8703. if e.complexity.MediaImage.FileErrors == nil {
  8704. break
  8705. }
  8706. return e.complexity.MediaImage.FileErrors(childComplexity), true
  8707. case "MediaImage.fileStatus":
  8708. if e.complexity.MediaImage.FileStatus == nil {
  8709. break
  8710. }
  8711. return e.complexity.MediaImage.FileStatus(childComplexity), true
  8712. case "MediaImage.id":
  8713. if e.complexity.MediaImage.ID == nil {
  8714. break
  8715. }
  8716. return e.complexity.MediaImage.ID(childComplexity), true
  8717. case "MediaImage.image":
  8718. if e.complexity.MediaImage.Image == nil {
  8719. break
  8720. }
  8721. return e.complexity.MediaImage.Image(childComplexity), true
  8722. case "MediaImage.mediaContentType":
  8723. if e.complexity.MediaImage.MediaContentType == nil {
  8724. break
  8725. }
  8726. return e.complexity.MediaImage.MediaContentType(childComplexity), true
  8727. case "MediaImage.mediaErrors":
  8728. if e.complexity.MediaImage.MediaErrors == nil {
  8729. break
  8730. }
  8731. return e.complexity.MediaImage.MediaErrors(childComplexity), true
  8732. case "MediaImage.mediaWarnings":
  8733. if e.complexity.MediaImage.MediaWarnings == nil {
  8734. break
  8735. }
  8736. return e.complexity.MediaImage.MediaWarnings(childComplexity), true
  8737. case "MediaImage.mimeType":
  8738. if e.complexity.MediaImage.MimeType == nil {
  8739. break
  8740. }
  8741. return e.complexity.MediaImage.MimeType(childComplexity), true
  8742. case "MediaImage.originalSource":
  8743. if e.complexity.MediaImage.OriginalSource == nil {
  8744. break
  8745. }
  8746. return e.complexity.MediaImage.OriginalSource(childComplexity), true
  8747. case "MediaImage.preview":
  8748. if e.complexity.MediaImage.Preview == nil {
  8749. break
  8750. }
  8751. return e.complexity.MediaImage.Preview(childComplexity), true
  8752. case "MediaImage.status":
  8753. if e.complexity.MediaImage.Status == nil {
  8754. break
  8755. }
  8756. return e.complexity.MediaImage.Status(childComplexity), true
  8757. case "MediaImageOriginalSource.fileSize":
  8758. if e.complexity.MediaImageOriginalSource.FileSize == nil {
  8759. break
  8760. }
  8761. return e.complexity.MediaImageOriginalSource.FileSize(childComplexity), true
  8762. case "MediaPreviewImage.image":
  8763. if e.complexity.MediaPreviewImage.Image == nil {
  8764. break
  8765. }
  8766. return e.complexity.MediaPreviewImage.Image(childComplexity), true
  8767. case "MediaPreviewImage.status":
  8768. if e.complexity.MediaPreviewImage.Status == nil {
  8769. break
  8770. }
  8771. return e.complexity.MediaPreviewImage.Status(childComplexity), true
  8772. case "MediaUserError.code":
  8773. if e.complexity.MediaUserError.Code == nil {
  8774. break
  8775. }
  8776. return e.complexity.MediaUserError.Code(childComplexity), true
  8777. case "MediaUserError.field":
  8778. if e.complexity.MediaUserError.Field == nil {
  8779. break
  8780. }
  8781. return e.complexity.MediaUserError.Field(childComplexity), true
  8782. case "MediaUserError.message":
  8783. if e.complexity.MediaUserError.Message == nil {
  8784. break
  8785. }
  8786. return e.complexity.MediaUserError.Message(childComplexity), true
  8787. case "MediaWarning.code":
  8788. if e.complexity.MediaWarning.Code == nil {
  8789. break
  8790. }
  8791. return e.complexity.MediaWarning.Code(childComplexity), true
  8792. case "MediaWarning.message":
  8793. if e.complexity.MediaWarning.Message == nil {
  8794. break
  8795. }
  8796. return e.complexity.MediaWarning.Message(childComplexity), true
  8797. case "MerchantApprovalSignals.identityVerified":
  8798. if e.complexity.MerchantApprovalSignals.IdentityVerified == nil {
  8799. break
  8800. }
  8801. return e.complexity.MerchantApprovalSignals.IdentityVerified(childComplexity), true
  8802. case "MerchantApprovalSignals.verifiedByShopify":
  8803. if e.complexity.MerchantApprovalSignals.VerifiedByShopify == nil {
  8804. break
  8805. }
  8806. return e.complexity.MerchantApprovalSignals.VerifiedByShopify(childComplexity), true
  8807. case "Metafield.createdAt":
  8808. if e.complexity.Metafield.CreatedAt == nil {
  8809. break
  8810. }
  8811. return e.complexity.Metafield.CreatedAt(childComplexity), true
  8812. case "Metafield.definition":
  8813. if e.complexity.Metafield.Definition == nil {
  8814. break
  8815. }
  8816. return e.complexity.Metafield.Definition(childComplexity), true
  8817. case "Metafield.description":
  8818. if e.complexity.Metafield.Description == nil {
  8819. break
  8820. }
  8821. return e.complexity.Metafield.Description(childComplexity), true
  8822. case "Metafield.id":
  8823. if e.complexity.Metafield.ID == nil {
  8824. break
  8825. }
  8826. return e.complexity.Metafield.ID(childComplexity), true
  8827. case "Metafield.key":
  8828. if e.complexity.Metafield.Key == nil {
  8829. break
  8830. }
  8831. return e.complexity.Metafield.Key(childComplexity), true
  8832. case "Metafield.legacyResourceId":
  8833. if e.complexity.Metafield.LegacyResourceID == nil {
  8834. break
  8835. }
  8836. return e.complexity.Metafield.LegacyResourceID(childComplexity), true
  8837. case "Metafield.namespace":
  8838. if e.complexity.Metafield.Namespace == nil {
  8839. break
  8840. }
  8841. return e.complexity.Metafield.Namespace(childComplexity), true
  8842. case "Metafield.owner":
  8843. if e.complexity.Metafield.Owner == nil {
  8844. break
  8845. }
  8846. return e.complexity.Metafield.Owner(childComplexity), true
  8847. case "Metafield.ownerType":
  8848. if e.complexity.Metafield.OwnerType == nil {
  8849. break
  8850. }
  8851. return e.complexity.Metafield.OwnerType(childComplexity), true
  8852. case "Metafield.reference":
  8853. if e.complexity.Metafield.Reference == nil {
  8854. break
  8855. }
  8856. return e.complexity.Metafield.Reference(childComplexity), true
  8857. case "Metafield.references":
  8858. if e.complexity.Metafield.References == nil {
  8859. break
  8860. }
  8861. args, err := ec.field_Metafield_references_args(context.TODO(), rawArgs)
  8862. if err != nil {
  8863. return 0, false
  8864. }
  8865. return e.complexity.Metafield.References(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string)), true
  8866. case "Metafield.type":
  8867. if e.complexity.Metafield.Type == nil {
  8868. break
  8869. }
  8870. return e.complexity.Metafield.Type(childComplexity), true
  8871. case "Metafield.updatedAt":
  8872. if e.complexity.Metafield.UpdatedAt == nil {
  8873. break
  8874. }
  8875. return e.complexity.Metafield.UpdatedAt(childComplexity), true
  8876. case "Metafield.value":
  8877. if e.complexity.Metafield.Value == nil {
  8878. break
  8879. }
  8880. return e.complexity.Metafield.Value(childComplexity), true
  8881. case "MetafieldConnection.edges":
  8882. if e.complexity.MetafieldConnection.Edges == nil {
  8883. break
  8884. }
  8885. return e.complexity.MetafieldConnection.Edges(childComplexity), true
  8886. case "MetafieldConnection.nodes":
  8887. if e.complexity.MetafieldConnection.Nodes == nil {
  8888. break
  8889. }
  8890. return e.complexity.MetafieldConnection.Nodes(childComplexity), true
  8891. case "MetafieldConnection.pageInfo":
  8892. if e.complexity.MetafieldConnection.PageInfo == nil {
  8893. break
  8894. }
  8895. return e.complexity.MetafieldConnection.PageInfo(childComplexity), true
  8896. case "MetafieldDefinition.description":
  8897. if e.complexity.MetafieldDefinition.Description == nil {
  8898. break
  8899. }
  8900. return e.complexity.MetafieldDefinition.Description(childComplexity), true
  8901. case "MetafieldDefinition.id":
  8902. if e.complexity.MetafieldDefinition.ID == nil {
  8903. break
  8904. }
  8905. return e.complexity.MetafieldDefinition.ID(childComplexity), true
  8906. case "MetafieldDefinition.key":
  8907. if e.complexity.MetafieldDefinition.Key == nil {
  8908. break
  8909. }
  8910. return e.complexity.MetafieldDefinition.Key(childComplexity), true
  8911. case "MetafieldDefinition.metafields":
  8912. if e.complexity.MetafieldDefinition.Metafields == nil {
  8913. break
  8914. }
  8915. args, err := ec.field_MetafieldDefinition_metafields_args(context.TODO(), rawArgs)
  8916. if err != nil {
  8917. return 0, false
  8918. }
  8919. return e.complexity.MetafieldDefinition.Metafields(childComplexity, args["validationStatus"].(*MetafieldValidationStatus), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  8920. case "MetafieldDefinition.metafieldsCount":
  8921. if e.complexity.MetafieldDefinition.MetafieldsCount == nil {
  8922. break
  8923. }
  8924. args, err := ec.field_MetafieldDefinition_metafieldsCount_args(context.TODO(), rawArgs)
  8925. if err != nil {
  8926. return 0, false
  8927. }
  8928. return e.complexity.MetafieldDefinition.MetafieldsCount(childComplexity, args["validationStatus"].(*MetafieldValidationStatus)), true
  8929. case "MetafieldDefinition.name":
  8930. if e.complexity.MetafieldDefinition.Name == nil {
  8931. break
  8932. }
  8933. return e.complexity.MetafieldDefinition.Name(childComplexity), true
  8934. case "MetafieldDefinition.namespace":
  8935. if e.complexity.MetafieldDefinition.Namespace == nil {
  8936. break
  8937. }
  8938. return e.complexity.MetafieldDefinition.Namespace(childComplexity), true
  8939. case "MetafieldDefinition.ownerType":
  8940. if e.complexity.MetafieldDefinition.OwnerType == nil {
  8941. break
  8942. }
  8943. return e.complexity.MetafieldDefinition.OwnerType(childComplexity), true
  8944. case "MetafieldDefinition.pinnedPosition":
  8945. if e.complexity.MetafieldDefinition.PinnedPosition == nil {
  8946. break
  8947. }
  8948. return e.complexity.MetafieldDefinition.PinnedPosition(childComplexity), true
  8949. case "MetafieldDefinition.standardTemplate":
  8950. if e.complexity.MetafieldDefinition.StandardTemplate == nil {
  8951. break
  8952. }
  8953. return e.complexity.MetafieldDefinition.StandardTemplate(childComplexity), true
  8954. case "MetafieldDefinition.type":
  8955. if e.complexity.MetafieldDefinition.Type == nil {
  8956. break
  8957. }
  8958. return e.complexity.MetafieldDefinition.Type(childComplexity), true
  8959. case "MetafieldDefinition.validationStatus":
  8960. if e.complexity.MetafieldDefinition.ValidationStatus == nil {
  8961. break
  8962. }
  8963. return e.complexity.MetafieldDefinition.ValidationStatus(childComplexity), true
  8964. case "MetafieldDefinition.validations":
  8965. if e.complexity.MetafieldDefinition.Validations == nil {
  8966. break
  8967. }
  8968. return e.complexity.MetafieldDefinition.Validations(childComplexity), true
  8969. case "MetafieldDefinition.visibleToStorefrontApi":
  8970. if e.complexity.MetafieldDefinition.VisibleToStorefrontAPI == nil {
  8971. break
  8972. }
  8973. return e.complexity.MetafieldDefinition.VisibleToStorefrontAPI(childComplexity), true
  8974. case "MetafieldDefinitionConnection.edges":
  8975. if e.complexity.MetafieldDefinitionConnection.Edges == nil {
  8976. break
  8977. }
  8978. return e.complexity.MetafieldDefinitionConnection.Edges(childComplexity), true
  8979. case "MetafieldDefinitionConnection.nodes":
  8980. if e.complexity.MetafieldDefinitionConnection.Nodes == nil {
  8981. break
  8982. }
  8983. return e.complexity.MetafieldDefinitionConnection.Nodes(childComplexity), true
  8984. case "MetafieldDefinitionConnection.pageInfo":
  8985. if e.complexity.MetafieldDefinitionConnection.PageInfo == nil {
  8986. break
  8987. }
  8988. return e.complexity.MetafieldDefinitionConnection.PageInfo(childComplexity), true
  8989. case "MetafieldDefinitionEdge.cursor":
  8990. if e.complexity.MetafieldDefinitionEdge.Cursor == nil {
  8991. break
  8992. }
  8993. return e.complexity.MetafieldDefinitionEdge.Cursor(childComplexity), true
  8994. case "MetafieldDefinitionEdge.node":
  8995. if e.complexity.MetafieldDefinitionEdge.Node == nil {
  8996. break
  8997. }
  8998. return e.complexity.MetafieldDefinitionEdge.Node(childComplexity), true
  8999. case "MetafieldDefinitionSupportedValidation.name":
  9000. if e.complexity.MetafieldDefinitionSupportedValidation.Name == nil {
  9001. break
  9002. }
  9003. return e.complexity.MetafieldDefinitionSupportedValidation.Name(childComplexity), true
  9004. case "MetafieldDefinitionSupportedValidation.type":
  9005. if e.complexity.MetafieldDefinitionSupportedValidation.Type == nil {
  9006. break
  9007. }
  9008. return e.complexity.MetafieldDefinitionSupportedValidation.Type(childComplexity), true
  9009. case "MetafieldDefinitionType.category":
  9010. if e.complexity.MetafieldDefinitionType.Category == nil {
  9011. break
  9012. }
  9013. return e.complexity.MetafieldDefinitionType.Category(childComplexity), true
  9014. case "MetafieldDefinitionType.name":
  9015. if e.complexity.MetafieldDefinitionType.Name == nil {
  9016. break
  9017. }
  9018. return e.complexity.MetafieldDefinitionType.Name(childComplexity), true
  9019. case "MetafieldDefinitionType.supportedValidations":
  9020. if e.complexity.MetafieldDefinitionType.SupportedValidations == nil {
  9021. break
  9022. }
  9023. return e.complexity.MetafieldDefinitionType.SupportedValidations(childComplexity), true
  9024. case "MetafieldDefinitionType.supportsDefinitionMigrations":
  9025. if e.complexity.MetafieldDefinitionType.SupportsDefinitionMigrations == nil {
  9026. break
  9027. }
  9028. return e.complexity.MetafieldDefinitionType.SupportsDefinitionMigrations(childComplexity), true
  9029. case "MetafieldDefinitionValidation.name":
  9030. if e.complexity.MetafieldDefinitionValidation.Name == nil {
  9031. break
  9032. }
  9033. return e.complexity.MetafieldDefinitionValidation.Name(childComplexity), true
  9034. case "MetafieldDefinitionValidation.type":
  9035. if e.complexity.MetafieldDefinitionValidation.Type == nil {
  9036. break
  9037. }
  9038. return e.complexity.MetafieldDefinitionValidation.Type(childComplexity), true
  9039. case "MetafieldDefinitionValidation.value":
  9040. if e.complexity.MetafieldDefinitionValidation.Value == nil {
  9041. break
  9042. }
  9043. return e.complexity.MetafieldDefinitionValidation.Value(childComplexity), true
  9044. case "MetafieldEdge.cursor":
  9045. if e.complexity.MetafieldEdge.Cursor == nil {
  9046. break
  9047. }
  9048. return e.complexity.MetafieldEdge.Cursor(childComplexity), true
  9049. case "MetafieldEdge.node":
  9050. if e.complexity.MetafieldEdge.Node == nil {
  9051. break
  9052. }
  9053. return e.complexity.MetafieldEdge.Node(childComplexity), true
  9054. case "MetafieldReferenceConnection.edges":
  9055. if e.complexity.MetafieldReferenceConnection.Edges == nil {
  9056. break
  9057. }
  9058. return e.complexity.MetafieldReferenceConnection.Edges(childComplexity), true
  9059. case "MetafieldReferenceConnection.nodes":
  9060. if e.complexity.MetafieldReferenceConnection.Nodes == nil {
  9061. break
  9062. }
  9063. return e.complexity.MetafieldReferenceConnection.Nodes(childComplexity), true
  9064. case "MetafieldReferenceConnection.pageInfo":
  9065. if e.complexity.MetafieldReferenceConnection.PageInfo == nil {
  9066. break
  9067. }
  9068. return e.complexity.MetafieldReferenceConnection.PageInfo(childComplexity), true
  9069. case "MetafieldReferenceEdge.cursor":
  9070. if e.complexity.MetafieldReferenceEdge.Cursor == nil {
  9071. break
  9072. }
  9073. return e.complexity.MetafieldReferenceEdge.Cursor(childComplexity), true
  9074. case "MetafieldReferenceEdge.node":
  9075. if e.complexity.MetafieldReferenceEdge.Node == nil {
  9076. break
  9077. }
  9078. return e.complexity.MetafieldReferenceEdge.Node(childComplexity), true
  9079. case "MoneyBag.presentmentMoney":
  9080. if e.complexity.MoneyBag.PresentmentMoney == nil {
  9081. break
  9082. }
  9083. return e.complexity.MoneyBag.PresentmentMoney(childComplexity), true
  9084. case "MoneyBag.shopMoney":
  9085. if e.complexity.MoneyBag.ShopMoney == nil {
  9086. break
  9087. }
  9088. return e.complexity.MoneyBag.ShopMoney(childComplexity), true
  9089. case "MoneyV2.amount":
  9090. if e.complexity.MoneyV2.Amount == nil {
  9091. break
  9092. }
  9093. return e.complexity.MoneyV2.Amount(childComplexity), true
  9094. case "MoneyV2.currencyCode":
  9095. if e.complexity.MoneyV2.CurrencyCode == nil {
  9096. break
  9097. }
  9098. return e.complexity.MoneyV2.CurrencyCode(childComplexity), true
  9099. case "Mutation.customerCreate":
  9100. if e.complexity.Mutation.CustomerCreate == nil {
  9101. break
  9102. }
  9103. args, err := ec.field_Mutation_customerCreate_args(context.TODO(), rawArgs)
  9104. if err != nil {
  9105. return 0, false
  9106. }
  9107. return e.complexity.Mutation.CustomerCreate(childComplexity, args["input"].(CustomerInput)), true
  9108. case "NavigationItem.id":
  9109. if e.complexity.NavigationItem.ID == nil {
  9110. break
  9111. }
  9112. return e.complexity.NavigationItem.ID(childComplexity), true
  9113. case "NavigationItem.title":
  9114. if e.complexity.NavigationItem.Title == nil {
  9115. break
  9116. }
  9117. return e.complexity.NavigationItem.Title(childComplexity), true
  9118. case "NavigationItem.url":
  9119. if e.complexity.NavigationItem.URL == nil {
  9120. break
  9121. }
  9122. return e.complexity.NavigationItem.URL(childComplexity), true
  9123. case "OnlineStorePage.defaultCursor":
  9124. if e.complexity.OnlineStorePage.DefaultCursor == nil {
  9125. break
  9126. }
  9127. return e.complexity.OnlineStorePage.DefaultCursor(childComplexity), true
  9128. case "OnlineStorePage.id":
  9129. if e.complexity.OnlineStorePage.ID == nil {
  9130. break
  9131. }
  9132. return e.complexity.OnlineStorePage.ID(childComplexity), true
  9133. case "OnlineStorePage.translations":
  9134. if e.complexity.OnlineStorePage.Translations == nil {
  9135. break
  9136. }
  9137. args, err := ec.field_OnlineStorePage_translations_args(context.TODO(), rawArgs)
  9138. if err != nil {
  9139. return 0, false
  9140. }
  9141. return e.complexity.OnlineStorePage.Translations(childComplexity, args["locale"].(string), args["marketId"].(*string)), true
  9142. case "Order.agreements":
  9143. if e.complexity.Order.Agreements == nil {
  9144. break
  9145. }
  9146. args, err := ec.field_Order_agreements_args(context.TODO(), rawArgs)
  9147. if err != nil {
  9148. return 0, false
  9149. }
  9150. return e.complexity.Order.Agreements(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["query"].(*string)), true
  9151. case "Order.alerts":
  9152. if e.complexity.Order.Alerts == nil {
  9153. break
  9154. }
  9155. return e.complexity.Order.Alerts(childComplexity), true
  9156. case "Order.app":
  9157. if e.complexity.Order.App == nil {
  9158. break
  9159. }
  9160. return e.complexity.Order.App(childComplexity), true
  9161. case "Order.billingAddress":
  9162. if e.complexity.Order.BillingAddress == nil {
  9163. break
  9164. }
  9165. return e.complexity.Order.BillingAddress(childComplexity), true
  9166. case "Order.billingAddressMatchesShippingAddress":
  9167. if e.complexity.Order.BillingAddressMatchesShippingAddress == nil {
  9168. break
  9169. }
  9170. return e.complexity.Order.BillingAddressMatchesShippingAddress(childComplexity), true
  9171. case "Order.canMarkAsPaid":
  9172. if e.complexity.Order.CanMarkAsPaid == nil {
  9173. break
  9174. }
  9175. return e.complexity.Order.CanMarkAsPaid(childComplexity), true
  9176. case "Order.canNotifyCustomer":
  9177. if e.complexity.Order.CanNotifyCustomer == nil {
  9178. break
  9179. }
  9180. return e.complexity.Order.CanNotifyCustomer(childComplexity), true
  9181. case "Order.cancelReason":
  9182. if e.complexity.Order.CancelReason == nil {
  9183. break
  9184. }
  9185. return e.complexity.Order.CancelReason(childComplexity), true
  9186. case "Order.cancelledAt":
  9187. if e.complexity.Order.CancelledAt == nil {
  9188. break
  9189. }
  9190. return e.complexity.Order.CancelledAt(childComplexity), true
  9191. case "Order.capturable":
  9192. if e.complexity.Order.Capturable == nil {
  9193. break
  9194. }
  9195. return e.complexity.Order.Capturable(childComplexity), true
  9196. case "Order.cartDiscountAmountSet":
  9197. if e.complexity.Order.CartDiscountAmountSet == nil {
  9198. break
  9199. }
  9200. return e.complexity.Order.CartDiscountAmountSet(childComplexity), true
  9201. case "Order.channelInformation":
  9202. if e.complexity.Order.ChannelInformation == nil {
  9203. break
  9204. }
  9205. return e.complexity.Order.ChannelInformation(childComplexity), true
  9206. case "Order.clientIp":
  9207. if e.complexity.Order.ClientIP == nil {
  9208. break
  9209. }
  9210. return e.complexity.Order.ClientIP(childComplexity), true
  9211. case "Order.closed":
  9212. if e.complexity.Order.Closed == nil {
  9213. break
  9214. }
  9215. return e.complexity.Order.Closed(childComplexity), true
  9216. case "Order.closedAt":
  9217. if e.complexity.Order.ClosedAt == nil {
  9218. break
  9219. }
  9220. return e.complexity.Order.ClosedAt(childComplexity), true
  9221. case "Order.confirmed":
  9222. if e.complexity.Order.Confirmed == nil {
  9223. break
  9224. }
  9225. return e.complexity.Order.Confirmed(childComplexity), true
  9226. case "Order.createdAt":
  9227. if e.complexity.Order.CreatedAt == nil {
  9228. break
  9229. }
  9230. return e.complexity.Order.CreatedAt(childComplexity), true
  9231. case "Order.currencyCode":
  9232. if e.complexity.Order.CurrencyCode == nil {
  9233. break
  9234. }
  9235. return e.complexity.Order.CurrencyCode(childComplexity), true
  9236. case "Order.currentCartDiscountAmountSet":
  9237. if e.complexity.Order.CurrentCartDiscountAmountSet == nil {
  9238. break
  9239. }
  9240. return e.complexity.Order.CurrentCartDiscountAmountSet(childComplexity), true
  9241. case "Order.currentSubtotalLineItemsQuantity":
  9242. if e.complexity.Order.CurrentSubtotalLineItemsQuantity == nil {
  9243. break
  9244. }
  9245. return e.complexity.Order.CurrentSubtotalLineItemsQuantity(childComplexity), true
  9246. case "Order.currentSubtotalPriceSet":
  9247. if e.complexity.Order.CurrentSubtotalPriceSet == nil {
  9248. break
  9249. }
  9250. return e.complexity.Order.CurrentSubtotalPriceSet(childComplexity), true
  9251. case "Order.currentTaxLines":
  9252. if e.complexity.Order.CurrentTaxLines == nil {
  9253. break
  9254. }
  9255. return e.complexity.Order.CurrentTaxLines(childComplexity), true
  9256. case "Order.currentTotalDiscountsSet":
  9257. if e.complexity.Order.CurrentTotalDiscountsSet == nil {
  9258. break
  9259. }
  9260. return e.complexity.Order.CurrentTotalDiscountsSet(childComplexity), true
  9261. case "Order.currentTotalDutiesSet":
  9262. if e.complexity.Order.CurrentTotalDutiesSet == nil {
  9263. break
  9264. }
  9265. return e.complexity.Order.CurrentTotalDutiesSet(childComplexity), true
  9266. case "Order.currentTotalPriceSet":
  9267. if e.complexity.Order.CurrentTotalPriceSet == nil {
  9268. break
  9269. }
  9270. return e.complexity.Order.CurrentTotalPriceSet(childComplexity), true
  9271. case "Order.currentTotalTaxSet":
  9272. if e.complexity.Order.CurrentTotalTaxSet == nil {
  9273. break
  9274. }
  9275. return e.complexity.Order.CurrentTotalTaxSet(childComplexity), true
  9276. case "Order.currentTotalWeight":
  9277. if e.complexity.Order.CurrentTotalWeight == nil {
  9278. break
  9279. }
  9280. return e.complexity.Order.CurrentTotalWeight(childComplexity), true
  9281. case "Order.customAttributes":
  9282. if e.complexity.Order.CustomAttributes == nil {
  9283. break
  9284. }
  9285. return e.complexity.Order.CustomAttributes(childComplexity), true
  9286. case "Order.customer":
  9287. if e.complexity.Order.Customer == nil {
  9288. break
  9289. }
  9290. return e.complexity.Order.Customer(childComplexity), true
  9291. case "Order.customerAcceptsMarketing":
  9292. if e.complexity.Order.CustomerAcceptsMarketing == nil {
  9293. break
  9294. }
  9295. return e.complexity.Order.CustomerAcceptsMarketing(childComplexity), true
  9296. case "Order.customerJourneySummary":
  9297. if e.complexity.Order.CustomerJourneySummary == nil {
  9298. break
  9299. }
  9300. return e.complexity.Order.CustomerJourneySummary(childComplexity), true
  9301. case "Order.customerLocale":
  9302. if e.complexity.Order.CustomerLocale == nil {
  9303. break
  9304. }
  9305. return e.complexity.Order.CustomerLocale(childComplexity), true
  9306. case "Order.discountApplications":
  9307. if e.complexity.Order.DiscountApplications == nil {
  9308. break
  9309. }
  9310. args, err := ec.field_Order_discountApplications_args(context.TODO(), rawArgs)
  9311. if err != nil {
  9312. return 0, false
  9313. }
  9314. return e.complexity.Order.DiscountApplications(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  9315. case "Order.discountCode":
  9316. if e.complexity.Order.DiscountCode == nil {
  9317. break
  9318. }
  9319. return e.complexity.Order.DiscountCode(childComplexity), true
  9320. case "Order.discountCodes":
  9321. if e.complexity.Order.DiscountCodes == nil {
  9322. break
  9323. }
  9324. return e.complexity.Order.DiscountCodes(childComplexity), true
  9325. case "Order.displayAddress":
  9326. if e.complexity.Order.DisplayAddress == nil {
  9327. break
  9328. }
  9329. return e.complexity.Order.DisplayAddress(childComplexity), true
  9330. case "Order.displayFinancialStatus":
  9331. if e.complexity.Order.DisplayFinancialStatus == nil {
  9332. break
  9333. }
  9334. return e.complexity.Order.DisplayFinancialStatus(childComplexity), true
  9335. case "Order.displayFulfillmentStatus":
  9336. if e.complexity.Order.DisplayFulfillmentStatus == nil {
  9337. break
  9338. }
  9339. return e.complexity.Order.DisplayFulfillmentStatus(childComplexity), true
  9340. case "Order.disputes":
  9341. if e.complexity.Order.Disputes == nil {
  9342. break
  9343. }
  9344. return e.complexity.Order.Disputes(childComplexity), true
  9345. case "Order.edited":
  9346. if e.complexity.Order.Edited == nil {
  9347. break
  9348. }
  9349. return e.complexity.Order.Edited(childComplexity), true
  9350. case "Order.email":
  9351. if e.complexity.Order.Email == nil {
  9352. break
  9353. }
  9354. return e.complexity.Order.Email(childComplexity), true
  9355. case "Order.estimatedTaxes":
  9356. if e.complexity.Order.EstimatedTaxes == nil {
  9357. break
  9358. }
  9359. return e.complexity.Order.EstimatedTaxes(childComplexity), true
  9360. case "Order.events":
  9361. if e.complexity.Order.Events == nil {
  9362. break
  9363. }
  9364. args, err := ec.field_Order_events_args(context.TODO(), rawArgs)
  9365. if err != nil {
  9366. return 0, false
  9367. }
  9368. return e.complexity.Order.Events(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*EventSortKeys), args["query"].(*string)), true
  9369. case "Order.fulfillable":
  9370. if e.complexity.Order.Fulfillable == nil {
  9371. break
  9372. }
  9373. return e.complexity.Order.Fulfillable(childComplexity), true
  9374. case "Order.fulfillmentOrders":
  9375. if e.complexity.Order.FulfillmentOrders == nil {
  9376. break
  9377. }
  9378. args, err := ec.field_Order_fulfillmentOrders_args(context.TODO(), rawArgs)
  9379. if err != nil {
  9380. return 0, false
  9381. }
  9382. return e.complexity.Order.FulfillmentOrders(childComplexity, args["displayable"].(*bool), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["query"].(*string)), true
  9383. case "Order.fulfillments":
  9384. if e.complexity.Order.Fulfillments == nil {
  9385. break
  9386. }
  9387. args, err := ec.field_Order_fulfillments_args(context.TODO(), rawArgs)
  9388. if err != nil {
  9389. return 0, false
  9390. }
  9391. return e.complexity.Order.Fulfillments(childComplexity, args["first"].(*int)), true
  9392. case "Order.fullyPaid":
  9393. if e.complexity.Order.FullyPaid == nil {
  9394. break
  9395. }
  9396. return e.complexity.Order.FullyPaid(childComplexity), true
  9397. case "Order.hasTimelineComment":
  9398. if e.complexity.Order.HasTimelineComment == nil {
  9399. break
  9400. }
  9401. return e.complexity.Order.HasTimelineComment(childComplexity), true
  9402. case "Order.id":
  9403. if e.complexity.Order.ID == nil {
  9404. break
  9405. }
  9406. return e.complexity.Order.ID(childComplexity), true
  9407. case "Order.legacyResourceId":
  9408. if e.complexity.Order.LegacyResourceID == nil {
  9409. break
  9410. }
  9411. return e.complexity.Order.LegacyResourceID(childComplexity), true
  9412. case "Order.lineItems":
  9413. if e.complexity.Order.LineItems == nil {
  9414. break
  9415. }
  9416. args, err := ec.field_Order_lineItems_args(context.TODO(), rawArgs)
  9417. if err != nil {
  9418. return 0, false
  9419. }
  9420. return e.complexity.Order.LineItems(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  9421. case "Order.localizationExtensions":
  9422. if e.complexity.Order.LocalizationExtensions == nil {
  9423. break
  9424. }
  9425. args, err := ec.field_Order_localizationExtensions_args(context.TODO(), rawArgs)
  9426. if err != nil {
  9427. return 0, false
  9428. }
  9429. return e.complexity.Order.LocalizationExtensions(childComplexity, args["countryCodes"].([]CountryCode), args["purposes"].([]LocalizationExtensionPurpose), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  9430. case "Order.merchantEditable":
  9431. if e.complexity.Order.MerchantEditable == nil {
  9432. break
  9433. }
  9434. return e.complexity.Order.MerchantEditable(childComplexity), true
  9435. case "Order.merchantEditableErrors":
  9436. if e.complexity.Order.MerchantEditableErrors == nil {
  9437. break
  9438. }
  9439. return e.complexity.Order.MerchantEditableErrors(childComplexity), true
  9440. case "Order.merchantOfRecordApp":
  9441. if e.complexity.Order.MerchantOfRecordApp == nil {
  9442. break
  9443. }
  9444. return e.complexity.Order.MerchantOfRecordApp(childComplexity), true
  9445. case "Order.metafield":
  9446. if e.complexity.Order.Metafield == nil {
  9447. break
  9448. }
  9449. args, err := ec.field_Order_metafield_args(context.TODO(), rawArgs)
  9450. if err != nil {
  9451. return 0, false
  9452. }
  9453. return e.complexity.Order.Metafield(childComplexity, args["namespace"].(string), args["key"].(string)), true
  9454. case "Order.metafieldDefinitions":
  9455. if e.complexity.Order.MetafieldDefinitions == nil {
  9456. break
  9457. }
  9458. args, err := ec.field_Order_metafieldDefinitions_args(context.TODO(), rawArgs)
  9459. if err != nil {
  9460. return 0, false
  9461. }
  9462. return e.complexity.Order.MetafieldDefinitions(childComplexity, args["namespace"].(*string), args["pinnedStatus"].(*MetafieldDefinitionPinnedStatus), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*MetafieldDefinitionSortKeys), args["query"].(*string)), true
  9463. case "Order.metafields":
  9464. if e.complexity.Order.Metafields == nil {
  9465. break
  9466. }
  9467. args, err := ec.field_Order_metafields_args(context.TODO(), rawArgs)
  9468. if err != nil {
  9469. return 0, false
  9470. }
  9471. return e.complexity.Order.Metafields(childComplexity, args["namespace"].(*string), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  9472. case "Order.name":
  9473. if e.complexity.Order.Name == nil {
  9474. break
  9475. }
  9476. return e.complexity.Order.Name(childComplexity), true
  9477. case "Order.netPaymentSet":
  9478. if e.complexity.Order.NetPaymentSet == nil {
  9479. break
  9480. }
  9481. return e.complexity.Order.NetPaymentSet(childComplexity), true
  9482. case "Order.nonFulfillableLineItems":
  9483. if e.complexity.Order.NonFulfillableLineItems == nil {
  9484. break
  9485. }
  9486. args, err := ec.field_Order_nonFulfillableLineItems_args(context.TODO(), rawArgs)
  9487. if err != nil {
  9488. return 0, false
  9489. }
  9490. return e.complexity.Order.NonFulfillableLineItems(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  9491. case "Order.note":
  9492. if e.complexity.Order.Note == nil {
  9493. break
  9494. }
  9495. return e.complexity.Order.Note(childComplexity), true
  9496. case "Order.originalTotalDutiesSet":
  9497. if e.complexity.Order.OriginalTotalDutiesSet == nil {
  9498. break
  9499. }
  9500. return e.complexity.Order.OriginalTotalDutiesSet(childComplexity), true
  9501. case "Order.originalTotalPriceSet":
  9502. if e.complexity.Order.OriginalTotalPriceSet == nil {
  9503. break
  9504. }
  9505. return e.complexity.Order.OriginalTotalPriceSet(childComplexity), true
  9506. case "Order.paymentCollectionDetails":
  9507. if e.complexity.Order.PaymentCollectionDetails == nil {
  9508. break
  9509. }
  9510. return e.complexity.Order.PaymentCollectionDetails(childComplexity), true
  9511. case "Order.paymentGatewayNames":
  9512. if e.complexity.Order.PaymentGatewayNames == nil {
  9513. break
  9514. }
  9515. return e.complexity.Order.PaymentGatewayNames(childComplexity), true
  9516. case "Order.paymentTerms":
  9517. if e.complexity.Order.PaymentTerms == nil {
  9518. break
  9519. }
  9520. return e.complexity.Order.PaymentTerms(childComplexity), true
  9521. case "Order.phone":
  9522. if e.complexity.Order.Phone == nil {
  9523. break
  9524. }
  9525. return e.complexity.Order.Phone(childComplexity), true
  9526. case "Order.physicalLocation":
  9527. if e.complexity.Order.PhysicalLocation == nil {
  9528. break
  9529. }
  9530. return e.complexity.Order.PhysicalLocation(childComplexity), true
  9531. case "Order.presentmentCurrencyCode":
  9532. if e.complexity.Order.PresentmentCurrencyCode == nil {
  9533. break
  9534. }
  9535. return e.complexity.Order.PresentmentCurrencyCode(childComplexity), true
  9536. case "Order.privateMetafield":
  9537. if e.complexity.Order.PrivateMetafield == nil {
  9538. break
  9539. }
  9540. args, err := ec.field_Order_privateMetafield_args(context.TODO(), rawArgs)
  9541. if err != nil {
  9542. return 0, false
  9543. }
  9544. return e.complexity.Order.PrivateMetafield(childComplexity, args["namespace"].(string), args["key"].(string)), true
  9545. case "Order.privateMetafields":
  9546. if e.complexity.Order.PrivateMetafields == nil {
  9547. break
  9548. }
  9549. args, err := ec.field_Order_privateMetafields_args(context.TODO(), rawArgs)
  9550. if err != nil {
  9551. return 0, false
  9552. }
  9553. return e.complexity.Order.PrivateMetafields(childComplexity, args["namespace"].(*string), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  9554. case "Order.processedAt":
  9555. if e.complexity.Order.ProcessedAt == nil {
  9556. break
  9557. }
  9558. return e.complexity.Order.ProcessedAt(childComplexity), true
  9559. case "Order.publication":
  9560. if e.complexity.Order.Publication == nil {
  9561. break
  9562. }
  9563. return e.complexity.Order.Publication(childComplexity), true
  9564. case "Order.purchasingEntity":
  9565. if e.complexity.Order.PurchasingEntity == nil {
  9566. break
  9567. }
  9568. return e.complexity.Order.PurchasingEntity(childComplexity), true
  9569. case "Order.refundDiscrepancySet":
  9570. if e.complexity.Order.RefundDiscrepancySet == nil {
  9571. break
  9572. }
  9573. return e.complexity.Order.RefundDiscrepancySet(childComplexity), true
  9574. case "Order.refundable":
  9575. if e.complexity.Order.Refundable == nil {
  9576. break
  9577. }
  9578. return e.complexity.Order.Refundable(childComplexity), true
  9579. case "Order.refunds":
  9580. if e.complexity.Order.Refunds == nil {
  9581. break
  9582. }
  9583. args, err := ec.field_Order_refunds_args(context.TODO(), rawArgs)
  9584. if err != nil {
  9585. return 0, false
  9586. }
  9587. return e.complexity.Order.Refunds(childComplexity, args["first"].(*int)), true
  9588. case "Order.registeredSourceUrl":
  9589. if e.complexity.Order.RegisteredSourceURL == nil {
  9590. break
  9591. }
  9592. return e.complexity.Order.RegisteredSourceURL(childComplexity), true
  9593. case "Order.requiresShipping":
  9594. if e.complexity.Order.RequiresShipping == nil {
  9595. break
  9596. }
  9597. return e.complexity.Order.RequiresShipping(childComplexity), true
  9598. case "Order.restockable":
  9599. if e.complexity.Order.Restockable == nil {
  9600. break
  9601. }
  9602. return e.complexity.Order.Restockable(childComplexity), true
  9603. case "Order.riskLevel":
  9604. if e.complexity.Order.RiskLevel == nil {
  9605. break
  9606. }
  9607. return e.complexity.Order.RiskLevel(childComplexity), true
  9608. case "Order.risks":
  9609. if e.complexity.Order.Risks == nil {
  9610. break
  9611. }
  9612. args, err := ec.field_Order_risks_args(context.TODO(), rawArgs)
  9613. if err != nil {
  9614. return 0, false
  9615. }
  9616. return e.complexity.Order.Risks(childComplexity, args["first"].(*int)), true
  9617. case "Order.shippingAddress":
  9618. if e.complexity.Order.ShippingAddress == nil {
  9619. break
  9620. }
  9621. return e.complexity.Order.ShippingAddress(childComplexity), true
  9622. case "Order.shippingLine":
  9623. if e.complexity.Order.ShippingLine == nil {
  9624. break
  9625. }
  9626. return e.complexity.Order.ShippingLine(childComplexity), true
  9627. case "Order.shippingLines":
  9628. if e.complexity.Order.ShippingLines == nil {
  9629. break
  9630. }
  9631. args, err := ec.field_Order_shippingLines_args(context.TODO(), rawArgs)
  9632. if err != nil {
  9633. return 0, false
  9634. }
  9635. return e.complexity.Order.ShippingLines(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  9636. case "Order.sourceIdentifier":
  9637. if e.complexity.Order.SourceIdentifier == nil {
  9638. break
  9639. }
  9640. return e.complexity.Order.SourceIdentifier(childComplexity), true
  9641. case "Order.subtotalLineItemsQuantity":
  9642. if e.complexity.Order.SubtotalLineItemsQuantity == nil {
  9643. break
  9644. }
  9645. return e.complexity.Order.SubtotalLineItemsQuantity(childComplexity), true
  9646. case "Order.subtotalPriceSet":
  9647. if e.complexity.Order.SubtotalPriceSet == nil {
  9648. break
  9649. }
  9650. return e.complexity.Order.SubtotalPriceSet(childComplexity), true
  9651. case "Order.suggestedRefund":
  9652. if e.complexity.Order.SuggestedRefund == nil {
  9653. break
  9654. }
  9655. args, err := ec.field_Order_suggestedRefund_args(context.TODO(), rawArgs)
  9656. if err != nil {
  9657. return 0, false
  9658. }
  9659. return e.complexity.Order.SuggestedRefund(childComplexity, args["shippingAmount"].(*string), args["refundShipping"].(*bool), args["refundLineItems"].([]*RefundLineItemInput), args["refundDuties"].([]*RefundDutyInput), args["suggestFullRefund"].(*bool)), true
  9660. case "Order.tags":
  9661. if e.complexity.Order.Tags == nil {
  9662. break
  9663. }
  9664. return e.complexity.Order.Tags(childComplexity), true
  9665. case "Order.taxLines":
  9666. if e.complexity.Order.TaxLines == nil {
  9667. break
  9668. }
  9669. return e.complexity.Order.TaxLines(childComplexity), true
  9670. case "Order.taxesIncluded":
  9671. if e.complexity.Order.TaxesIncluded == nil {
  9672. break
  9673. }
  9674. return e.complexity.Order.TaxesIncluded(childComplexity), true
  9675. case "Order.test":
  9676. if e.complexity.Order.Test == nil {
  9677. break
  9678. }
  9679. return e.complexity.Order.Test(childComplexity), true
  9680. case "Order.totalCapturableSet":
  9681. if e.complexity.Order.TotalCapturableSet == nil {
  9682. break
  9683. }
  9684. return e.complexity.Order.TotalCapturableSet(childComplexity), true
  9685. case "Order.totalDiscountsSet":
  9686. if e.complexity.Order.TotalDiscountsSet == nil {
  9687. break
  9688. }
  9689. return e.complexity.Order.TotalDiscountsSet(childComplexity), true
  9690. case "Order.totalOutstandingSet":
  9691. if e.complexity.Order.TotalOutstandingSet == nil {
  9692. break
  9693. }
  9694. return e.complexity.Order.TotalOutstandingSet(childComplexity), true
  9695. case "Order.totalPriceSet":
  9696. if e.complexity.Order.TotalPriceSet == nil {
  9697. break
  9698. }
  9699. return e.complexity.Order.TotalPriceSet(childComplexity), true
  9700. case "Order.totalReceivedSet":
  9701. if e.complexity.Order.TotalReceivedSet == nil {
  9702. break
  9703. }
  9704. return e.complexity.Order.TotalReceivedSet(childComplexity), true
  9705. case "Order.totalRefundedSet":
  9706. if e.complexity.Order.TotalRefundedSet == nil {
  9707. break
  9708. }
  9709. return e.complexity.Order.TotalRefundedSet(childComplexity), true
  9710. case "Order.totalRefundedShippingSet":
  9711. if e.complexity.Order.TotalRefundedShippingSet == nil {
  9712. break
  9713. }
  9714. return e.complexity.Order.TotalRefundedShippingSet(childComplexity), true
  9715. case "Order.totalShippingPriceSet":
  9716. if e.complexity.Order.TotalShippingPriceSet == nil {
  9717. break
  9718. }
  9719. return e.complexity.Order.TotalShippingPriceSet(childComplexity), true
  9720. case "Order.totalTaxSet":
  9721. if e.complexity.Order.TotalTaxSet == nil {
  9722. break
  9723. }
  9724. return e.complexity.Order.TotalTaxSet(childComplexity), true
  9725. case "Order.totalTipReceivedSet":
  9726. if e.complexity.Order.TotalTipReceivedSet == nil {
  9727. break
  9728. }
  9729. return e.complexity.Order.TotalTipReceivedSet(childComplexity), true
  9730. case "Order.totalWeight":
  9731. if e.complexity.Order.TotalWeight == nil {
  9732. break
  9733. }
  9734. return e.complexity.Order.TotalWeight(childComplexity), true
  9735. case "Order.transactions":
  9736. if e.complexity.Order.Transactions == nil {
  9737. break
  9738. }
  9739. args, err := ec.field_Order_transactions_args(context.TODO(), rawArgs)
  9740. if err != nil {
  9741. return 0, false
  9742. }
  9743. return e.complexity.Order.Transactions(childComplexity, args["first"].(*int), args["capturable"].(*bool), args["manuallyResolvable"].(*bool)), true
  9744. case "Order.unpaid":
  9745. if e.complexity.Order.Unpaid == nil {
  9746. break
  9747. }
  9748. return e.complexity.Order.Unpaid(childComplexity), true
  9749. case "Order.updatedAt":
  9750. if e.complexity.Order.UpdatedAt == nil {
  9751. break
  9752. }
  9753. return e.complexity.Order.UpdatedAt(childComplexity), true
  9754. case "OrderApp.id":
  9755. if e.complexity.OrderApp.ID == nil {
  9756. break
  9757. }
  9758. return e.complexity.OrderApp.ID(childComplexity), true
  9759. case "OrderApp.icon":
  9760. if e.complexity.OrderApp.Icon == nil {
  9761. break
  9762. }
  9763. return e.complexity.OrderApp.Icon(childComplexity), true
  9764. case "OrderApp.name":
  9765. if e.complexity.OrderApp.Name == nil {
  9766. break
  9767. }
  9768. return e.complexity.OrderApp.Name(childComplexity), true
  9769. case "OrderConnection.edges":
  9770. if e.complexity.OrderConnection.Edges == nil {
  9771. break
  9772. }
  9773. return e.complexity.OrderConnection.Edges(childComplexity), true
  9774. case "OrderConnection.nodes":
  9775. if e.complexity.OrderConnection.Nodes == nil {
  9776. break
  9777. }
  9778. return e.complexity.OrderConnection.Nodes(childComplexity), true
  9779. case "OrderConnection.pageInfo":
  9780. if e.complexity.OrderConnection.PageInfo == nil {
  9781. break
  9782. }
  9783. return e.complexity.OrderConnection.PageInfo(childComplexity), true
  9784. case "OrderDisputeSummary.id":
  9785. if e.complexity.OrderDisputeSummary.ID == nil {
  9786. break
  9787. }
  9788. return e.complexity.OrderDisputeSummary.ID(childComplexity), true
  9789. case "OrderDisputeSummary.initiatedAs":
  9790. if e.complexity.OrderDisputeSummary.InitiatedAs == nil {
  9791. break
  9792. }
  9793. return e.complexity.OrderDisputeSummary.InitiatedAs(childComplexity), true
  9794. case "OrderDisputeSummary.status":
  9795. if e.complexity.OrderDisputeSummary.Status == nil {
  9796. break
  9797. }
  9798. return e.complexity.OrderDisputeSummary.Status(childComplexity), true
  9799. case "OrderEdge.cursor":
  9800. if e.complexity.OrderEdge.Cursor == nil {
  9801. break
  9802. }
  9803. return e.complexity.OrderEdge.Cursor(childComplexity), true
  9804. case "OrderEdge.node":
  9805. if e.complexity.OrderEdge.Node == nil {
  9806. break
  9807. }
  9808. return e.complexity.OrderEdge.Node(childComplexity), true
  9809. case "OrderPaymentCollectionDetails.additionalPaymentCollectionUrl":
  9810. if e.complexity.OrderPaymentCollectionDetails.AdditionalPaymentCollectionURL == nil {
  9811. break
  9812. }
  9813. return e.complexity.OrderPaymentCollectionDetails.AdditionalPaymentCollectionURL(childComplexity), true
  9814. case "OrderPaymentCollectionDetails.vaultedPaymentMethods":
  9815. if e.complexity.OrderPaymentCollectionDetails.VaultedPaymentMethods == nil {
  9816. break
  9817. }
  9818. return e.complexity.OrderPaymentCollectionDetails.VaultedPaymentMethods(childComplexity), true
  9819. case "OrderRisk.display":
  9820. if e.complexity.OrderRisk.Display == nil {
  9821. break
  9822. }
  9823. return e.complexity.OrderRisk.Display(childComplexity), true
  9824. case "OrderRisk.level":
  9825. if e.complexity.OrderRisk.Level == nil {
  9826. break
  9827. }
  9828. return e.complexity.OrderRisk.Level(childComplexity), true
  9829. case "OrderRisk.message":
  9830. if e.complexity.OrderRisk.Message == nil {
  9831. break
  9832. }
  9833. return e.complexity.OrderRisk.Message(childComplexity), true
  9834. case "OrderTransaction.accountNumber":
  9835. if e.complexity.OrderTransaction.AccountNumber == nil {
  9836. break
  9837. }
  9838. return e.complexity.OrderTransaction.AccountNumber(childComplexity), true
  9839. case "OrderTransaction.amountSet":
  9840. if e.complexity.OrderTransaction.AmountSet == nil {
  9841. break
  9842. }
  9843. return e.complexity.OrderTransaction.AmountSet(childComplexity), true
  9844. case "OrderTransaction.authorizationCode":
  9845. if e.complexity.OrderTransaction.AuthorizationCode == nil {
  9846. break
  9847. }
  9848. return e.complexity.OrderTransaction.AuthorizationCode(childComplexity), true
  9849. case "OrderTransaction.authorizationExpiresAt":
  9850. if e.complexity.OrderTransaction.AuthorizationExpiresAt == nil {
  9851. break
  9852. }
  9853. return e.complexity.OrderTransaction.AuthorizationExpiresAt(childComplexity), true
  9854. case "OrderTransaction.createdAt":
  9855. if e.complexity.OrderTransaction.CreatedAt == nil {
  9856. break
  9857. }
  9858. return e.complexity.OrderTransaction.CreatedAt(childComplexity), true
  9859. case "OrderTransaction.errorCode":
  9860. if e.complexity.OrderTransaction.ErrorCode == nil {
  9861. break
  9862. }
  9863. return e.complexity.OrderTransaction.ErrorCode(childComplexity), true
  9864. case "OrderTransaction.fees":
  9865. if e.complexity.OrderTransaction.Fees == nil {
  9866. break
  9867. }
  9868. return e.complexity.OrderTransaction.Fees(childComplexity), true
  9869. case "OrderTransaction.formattedGateway":
  9870. if e.complexity.OrderTransaction.FormattedGateway == nil {
  9871. break
  9872. }
  9873. return e.complexity.OrderTransaction.FormattedGateway(childComplexity), true
  9874. case "OrderTransaction.gateway":
  9875. if e.complexity.OrderTransaction.Gateway == nil {
  9876. break
  9877. }
  9878. return e.complexity.OrderTransaction.Gateway(childComplexity), true
  9879. case "OrderTransaction.id":
  9880. if e.complexity.OrderTransaction.ID == nil {
  9881. break
  9882. }
  9883. return e.complexity.OrderTransaction.ID(childComplexity), true
  9884. case "OrderTransaction.kind":
  9885. if e.complexity.OrderTransaction.Kind == nil {
  9886. break
  9887. }
  9888. return e.complexity.OrderTransaction.Kind(childComplexity), true
  9889. case "OrderTransaction.manuallyCapturable":
  9890. if e.complexity.OrderTransaction.ManuallyCapturable == nil {
  9891. break
  9892. }
  9893. return e.complexity.OrderTransaction.ManuallyCapturable(childComplexity), true
  9894. case "OrderTransaction.maximumRefundableV2":
  9895. if e.complexity.OrderTransaction.MaximumRefundableV2 == nil {
  9896. break
  9897. }
  9898. return e.complexity.OrderTransaction.MaximumRefundableV2(childComplexity), true
  9899. case "OrderTransaction.order":
  9900. if e.complexity.OrderTransaction.Order == nil {
  9901. break
  9902. }
  9903. return e.complexity.OrderTransaction.Order(childComplexity), true
  9904. case "OrderTransaction.parentTransaction":
  9905. if e.complexity.OrderTransaction.ParentTransaction == nil {
  9906. break
  9907. }
  9908. return e.complexity.OrderTransaction.ParentTransaction(childComplexity), true
  9909. case "OrderTransaction.paymentIcon":
  9910. if e.complexity.OrderTransaction.PaymentIcon == nil {
  9911. break
  9912. }
  9913. return e.complexity.OrderTransaction.PaymentIcon(childComplexity), true
  9914. case "OrderTransaction.processedAt":
  9915. if e.complexity.OrderTransaction.ProcessedAt == nil {
  9916. break
  9917. }
  9918. return e.complexity.OrderTransaction.ProcessedAt(childComplexity), true
  9919. case "OrderTransaction.receiptJson":
  9920. if e.complexity.OrderTransaction.ReceiptJSON == nil {
  9921. break
  9922. }
  9923. return e.complexity.OrderTransaction.ReceiptJSON(childComplexity), true
  9924. case "OrderTransaction.settlementCurrency":
  9925. if e.complexity.OrderTransaction.SettlementCurrency == nil {
  9926. break
  9927. }
  9928. return e.complexity.OrderTransaction.SettlementCurrency(childComplexity), true
  9929. case "OrderTransaction.settlementCurrencyRate":
  9930. if e.complexity.OrderTransaction.SettlementCurrencyRate == nil {
  9931. break
  9932. }
  9933. return e.complexity.OrderTransaction.SettlementCurrencyRate(childComplexity), true
  9934. case "OrderTransaction.shopifyPaymentsSet":
  9935. if e.complexity.OrderTransaction.ShopifyPaymentsSet == nil {
  9936. break
  9937. }
  9938. return e.complexity.OrderTransaction.ShopifyPaymentsSet(childComplexity), true
  9939. case "OrderTransaction.status":
  9940. if e.complexity.OrderTransaction.Status == nil {
  9941. break
  9942. }
  9943. return e.complexity.OrderTransaction.Status(childComplexity), true
  9944. case "OrderTransaction.test":
  9945. if e.complexity.OrderTransaction.Test == nil {
  9946. break
  9947. }
  9948. return e.complexity.OrderTransaction.Test(childComplexity), true
  9949. case "OrderTransaction.totalUnsettledSet":
  9950. if e.complexity.OrderTransaction.TotalUnsettledSet == nil {
  9951. break
  9952. }
  9953. return e.complexity.OrderTransaction.TotalUnsettledSet(childComplexity), true
  9954. case "OrderTransaction.user":
  9955. if e.complexity.OrderTransaction.User == nil {
  9956. break
  9957. }
  9958. return e.complexity.OrderTransaction.User(childComplexity), true
  9959. case "OrderTransactionConnection.edges":
  9960. if e.complexity.OrderTransactionConnection.Edges == nil {
  9961. break
  9962. }
  9963. return e.complexity.OrderTransactionConnection.Edges(childComplexity), true
  9964. case "OrderTransactionConnection.nodes":
  9965. if e.complexity.OrderTransactionConnection.Nodes == nil {
  9966. break
  9967. }
  9968. return e.complexity.OrderTransactionConnection.Nodes(childComplexity), true
  9969. case "OrderTransactionConnection.pageInfo":
  9970. if e.complexity.OrderTransactionConnection.PageInfo == nil {
  9971. break
  9972. }
  9973. return e.complexity.OrderTransactionConnection.PageInfo(childComplexity), true
  9974. case "OrderTransactionEdge.cursor":
  9975. if e.complexity.OrderTransactionEdge.Cursor == nil {
  9976. break
  9977. }
  9978. return e.complexity.OrderTransactionEdge.Cursor(childComplexity), true
  9979. case "OrderTransactionEdge.node":
  9980. if e.complexity.OrderTransactionEdge.Node == nil {
  9981. break
  9982. }
  9983. return e.complexity.OrderTransactionEdge.Node(childComplexity), true
  9984. case "PageInfo.endCursor":
  9985. if e.complexity.PageInfo.EndCursor == nil {
  9986. break
  9987. }
  9988. return e.complexity.PageInfo.EndCursor(childComplexity), true
  9989. case "PageInfo.hasNextPage":
  9990. if e.complexity.PageInfo.HasNextPage == nil {
  9991. break
  9992. }
  9993. return e.complexity.PageInfo.HasNextPage(childComplexity), true
  9994. case "PageInfo.hasPreviousPage":
  9995. if e.complexity.PageInfo.HasPreviousPage == nil {
  9996. break
  9997. }
  9998. return e.complexity.PageInfo.HasPreviousPage(childComplexity), true
  9999. case "PageInfo.startCursor":
  10000. if e.complexity.PageInfo.StartCursor == nil {
  10001. break
  10002. }
  10003. return e.complexity.PageInfo.StartCursor(childComplexity), true
  10004. case "PaymentMandate.id":
  10005. if e.complexity.PaymentMandate.ID == nil {
  10006. break
  10007. }
  10008. return e.complexity.PaymentMandate.ID(childComplexity), true
  10009. case "PaymentMandate.paymentInstrument":
  10010. if e.complexity.PaymentMandate.PaymentInstrument == nil {
  10011. break
  10012. }
  10013. return e.complexity.PaymentMandate.PaymentInstrument(childComplexity), true
  10014. case "PaymentSchedule.amount":
  10015. if e.complexity.PaymentSchedule.Amount == nil {
  10016. break
  10017. }
  10018. return e.complexity.PaymentSchedule.Amount(childComplexity), true
  10019. case "PaymentSchedule.completedAt":
  10020. if e.complexity.PaymentSchedule.CompletedAt == nil {
  10021. break
  10022. }
  10023. return e.complexity.PaymentSchedule.CompletedAt(childComplexity), true
  10024. case "PaymentSchedule.dueAt":
  10025. if e.complexity.PaymentSchedule.DueAt == nil {
  10026. break
  10027. }
  10028. return e.complexity.PaymentSchedule.DueAt(childComplexity), true
  10029. case "PaymentSchedule.id":
  10030. if e.complexity.PaymentSchedule.ID == nil {
  10031. break
  10032. }
  10033. return e.complexity.PaymentSchedule.ID(childComplexity), true
  10034. case "PaymentSchedule.issuedAt":
  10035. if e.complexity.PaymentSchedule.IssuedAt == nil {
  10036. break
  10037. }
  10038. return e.complexity.PaymentSchedule.IssuedAt(childComplexity), true
  10039. case "PaymentScheduleConnection.edges":
  10040. if e.complexity.PaymentScheduleConnection.Edges == nil {
  10041. break
  10042. }
  10043. return e.complexity.PaymentScheduleConnection.Edges(childComplexity), true
  10044. case "PaymentScheduleConnection.nodes":
  10045. if e.complexity.PaymentScheduleConnection.Nodes == nil {
  10046. break
  10047. }
  10048. return e.complexity.PaymentScheduleConnection.Nodes(childComplexity), true
  10049. case "PaymentScheduleConnection.pageInfo":
  10050. if e.complexity.PaymentScheduleConnection.PageInfo == nil {
  10051. break
  10052. }
  10053. return e.complexity.PaymentScheduleConnection.PageInfo(childComplexity), true
  10054. case "PaymentScheduleEdge.cursor":
  10055. if e.complexity.PaymentScheduleEdge.Cursor == nil {
  10056. break
  10057. }
  10058. return e.complexity.PaymentScheduleEdge.Cursor(childComplexity), true
  10059. case "PaymentScheduleEdge.node":
  10060. if e.complexity.PaymentScheduleEdge.Node == nil {
  10061. break
  10062. }
  10063. return e.complexity.PaymentScheduleEdge.Node(childComplexity), true
  10064. case "PaymentSettings.supportedDigitalWallets":
  10065. if e.complexity.PaymentSettings.SupportedDigitalWallets == nil {
  10066. break
  10067. }
  10068. return e.complexity.PaymentSettings.SupportedDigitalWallets(childComplexity), true
  10069. case "PaymentTerms.dueInDays":
  10070. if e.complexity.PaymentTerms.DueInDays == nil {
  10071. break
  10072. }
  10073. return e.complexity.PaymentTerms.DueInDays(childComplexity), true
  10074. case "PaymentTerms.id":
  10075. if e.complexity.PaymentTerms.ID == nil {
  10076. break
  10077. }
  10078. return e.complexity.PaymentTerms.ID(childComplexity), true
  10079. case "PaymentTerms.overdue":
  10080. if e.complexity.PaymentTerms.Overdue == nil {
  10081. break
  10082. }
  10083. return e.complexity.PaymentTerms.Overdue(childComplexity), true
  10084. case "PaymentTerms.paymentSchedules":
  10085. if e.complexity.PaymentTerms.PaymentSchedules == nil {
  10086. break
  10087. }
  10088. args, err := ec.field_PaymentTerms_paymentSchedules_args(context.TODO(), rawArgs)
  10089. if err != nil {
  10090. return 0, false
  10091. }
  10092. return e.complexity.PaymentTerms.PaymentSchedules(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  10093. case "PaymentTerms.paymentTermsName":
  10094. if e.complexity.PaymentTerms.PaymentTermsName == nil {
  10095. break
  10096. }
  10097. return e.complexity.PaymentTerms.PaymentTermsName(childComplexity), true
  10098. case "PaymentTerms.paymentTermsType":
  10099. if e.complexity.PaymentTerms.PaymentTermsType == nil {
  10100. break
  10101. }
  10102. return e.complexity.PaymentTerms.PaymentTermsType(childComplexity), true
  10103. case "PaymentTerms.translatedName":
  10104. if e.complexity.PaymentTerms.TranslatedName == nil {
  10105. break
  10106. }
  10107. return e.complexity.PaymentTerms.TranslatedName(childComplexity), true
  10108. case "PaymentTermsTemplate.description":
  10109. if e.complexity.PaymentTermsTemplate.Description == nil {
  10110. break
  10111. }
  10112. return e.complexity.PaymentTermsTemplate.Description(childComplexity), true
  10113. case "PaymentTermsTemplate.dueInDays":
  10114. if e.complexity.PaymentTermsTemplate.DueInDays == nil {
  10115. break
  10116. }
  10117. return e.complexity.PaymentTermsTemplate.DueInDays(childComplexity), true
  10118. case "PaymentTermsTemplate.id":
  10119. if e.complexity.PaymentTermsTemplate.ID == nil {
  10120. break
  10121. }
  10122. return e.complexity.PaymentTermsTemplate.ID(childComplexity), true
  10123. case "PaymentTermsTemplate.name":
  10124. if e.complexity.PaymentTermsTemplate.Name == nil {
  10125. break
  10126. }
  10127. return e.complexity.PaymentTermsTemplate.Name(childComplexity), true
  10128. case "PaymentTermsTemplate.paymentTermsType":
  10129. if e.complexity.PaymentTermsTemplate.PaymentTermsType == nil {
  10130. break
  10131. }
  10132. return e.complexity.PaymentTermsTemplate.PaymentTermsType(childComplexity), true
  10133. case "PaymentTermsTemplate.translatedName":
  10134. if e.complexity.PaymentTermsTemplate.TranslatedName == nil {
  10135. break
  10136. }
  10137. return e.complexity.PaymentTermsTemplate.TranslatedName(childComplexity), true
  10138. case "PriceList.contextRule":
  10139. if e.complexity.PriceList.ContextRule == nil {
  10140. break
  10141. }
  10142. return e.complexity.PriceList.ContextRule(childComplexity), true
  10143. case "PriceList.currency":
  10144. if e.complexity.PriceList.Currency == nil {
  10145. break
  10146. }
  10147. return e.complexity.PriceList.Currency(childComplexity), true
  10148. case "PriceList.id":
  10149. if e.complexity.PriceList.ID == nil {
  10150. break
  10151. }
  10152. return e.complexity.PriceList.ID(childComplexity), true
  10153. case "PriceList.name":
  10154. if e.complexity.PriceList.Name == nil {
  10155. break
  10156. }
  10157. return e.complexity.PriceList.Name(childComplexity), true
  10158. case "PriceList.parent":
  10159. if e.complexity.PriceList.Parent == nil {
  10160. break
  10161. }
  10162. return e.complexity.PriceList.Parent(childComplexity), true
  10163. case "PriceList.prices":
  10164. if e.complexity.PriceList.Prices == nil {
  10165. break
  10166. }
  10167. args, err := ec.field_PriceList_prices_args(context.TODO(), rawArgs)
  10168. if err != nil {
  10169. return 0, false
  10170. }
  10171. return e.complexity.PriceList.Prices(childComplexity, args["originType"].(*PriceListPriceOriginType), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  10172. case "PriceListAdjustment.type":
  10173. if e.complexity.PriceListAdjustment.Type == nil {
  10174. break
  10175. }
  10176. return e.complexity.PriceListAdjustment.Type(childComplexity), true
  10177. case "PriceListAdjustment.value":
  10178. if e.complexity.PriceListAdjustment.Value == nil {
  10179. break
  10180. }
  10181. return e.complexity.PriceListAdjustment.Value(childComplexity), true
  10182. case "PriceListContextRule.countries":
  10183. if e.complexity.PriceListContextRule.Countries == nil {
  10184. break
  10185. }
  10186. return e.complexity.PriceListContextRule.Countries(childComplexity), true
  10187. case "PriceListContextRule.market":
  10188. if e.complexity.PriceListContextRule.Market == nil {
  10189. break
  10190. }
  10191. return e.complexity.PriceListContextRule.Market(childComplexity), true
  10192. case "PriceListParent.adjustment":
  10193. if e.complexity.PriceListParent.Adjustment == nil {
  10194. break
  10195. }
  10196. return e.complexity.PriceListParent.Adjustment(childComplexity), true
  10197. case "PriceListPrice.compareAtPrice":
  10198. if e.complexity.PriceListPrice.CompareAtPrice == nil {
  10199. break
  10200. }
  10201. return e.complexity.PriceListPrice.CompareAtPrice(childComplexity), true
  10202. case "PriceListPrice.originType":
  10203. if e.complexity.PriceListPrice.OriginType == nil {
  10204. break
  10205. }
  10206. return e.complexity.PriceListPrice.OriginType(childComplexity), true
  10207. case "PriceListPrice.price":
  10208. if e.complexity.PriceListPrice.Price == nil {
  10209. break
  10210. }
  10211. return e.complexity.PriceListPrice.Price(childComplexity), true
  10212. case "PriceListPrice.variant":
  10213. if e.complexity.PriceListPrice.Variant == nil {
  10214. break
  10215. }
  10216. return e.complexity.PriceListPrice.Variant(childComplexity), true
  10217. case "PriceListPriceConnection.edges":
  10218. if e.complexity.PriceListPriceConnection.Edges == nil {
  10219. break
  10220. }
  10221. return e.complexity.PriceListPriceConnection.Edges(childComplexity), true
  10222. case "PriceListPriceConnection.nodes":
  10223. if e.complexity.PriceListPriceConnection.Nodes == nil {
  10224. break
  10225. }
  10226. return e.complexity.PriceListPriceConnection.Nodes(childComplexity), true
  10227. case "PriceListPriceConnection.pageInfo":
  10228. if e.complexity.PriceListPriceConnection.PageInfo == nil {
  10229. break
  10230. }
  10231. return e.complexity.PriceListPriceConnection.PageInfo(childComplexity), true
  10232. case "PriceListPriceEdge.cursor":
  10233. if e.complexity.PriceListPriceEdge.Cursor == nil {
  10234. break
  10235. }
  10236. return e.complexity.PriceListPriceEdge.Cursor(childComplexity), true
  10237. case "PriceListPriceEdge.node":
  10238. if e.complexity.PriceListPriceEdge.Node == nil {
  10239. break
  10240. }
  10241. return e.complexity.PriceListPriceEdge.Node(childComplexity), true
  10242. case "PricingPercentageValue.percentage":
  10243. if e.complexity.PricingPercentageValue.Percentage == nil {
  10244. break
  10245. }
  10246. return e.complexity.PricingPercentageValue.Percentage(childComplexity), true
  10247. case "PrivateMetafield.createdAt":
  10248. if e.complexity.PrivateMetafield.CreatedAt == nil {
  10249. break
  10250. }
  10251. return e.complexity.PrivateMetafield.CreatedAt(childComplexity), true
  10252. case "PrivateMetafield.id":
  10253. if e.complexity.PrivateMetafield.ID == nil {
  10254. break
  10255. }
  10256. return e.complexity.PrivateMetafield.ID(childComplexity), true
  10257. case "PrivateMetafield.key":
  10258. if e.complexity.PrivateMetafield.Key == nil {
  10259. break
  10260. }
  10261. return e.complexity.PrivateMetafield.Key(childComplexity), true
  10262. case "PrivateMetafield.namespace":
  10263. if e.complexity.PrivateMetafield.Namespace == nil {
  10264. break
  10265. }
  10266. return e.complexity.PrivateMetafield.Namespace(childComplexity), true
  10267. case "PrivateMetafield.updatedAt":
  10268. if e.complexity.PrivateMetafield.UpdatedAt == nil {
  10269. break
  10270. }
  10271. return e.complexity.PrivateMetafield.UpdatedAt(childComplexity), true
  10272. case "PrivateMetafield.value":
  10273. if e.complexity.PrivateMetafield.Value == nil {
  10274. break
  10275. }
  10276. return e.complexity.PrivateMetafield.Value(childComplexity), true
  10277. case "PrivateMetafield.valueType":
  10278. if e.complexity.PrivateMetafield.ValueType == nil {
  10279. break
  10280. }
  10281. return e.complexity.PrivateMetafield.ValueType(childComplexity), true
  10282. case "PrivateMetafieldConnection.edges":
  10283. if e.complexity.PrivateMetafieldConnection.Edges == nil {
  10284. break
  10285. }
  10286. return e.complexity.PrivateMetafieldConnection.Edges(childComplexity), true
  10287. case "PrivateMetafieldConnection.nodes":
  10288. if e.complexity.PrivateMetafieldConnection.Nodes == nil {
  10289. break
  10290. }
  10291. return e.complexity.PrivateMetafieldConnection.Nodes(childComplexity), true
  10292. case "PrivateMetafieldConnection.pageInfo":
  10293. if e.complexity.PrivateMetafieldConnection.PageInfo == nil {
  10294. break
  10295. }
  10296. return e.complexity.PrivateMetafieldConnection.PageInfo(childComplexity), true
  10297. case "PrivateMetafieldEdge.cursor":
  10298. if e.complexity.PrivateMetafieldEdge.Cursor == nil {
  10299. break
  10300. }
  10301. return e.complexity.PrivateMetafieldEdge.Cursor(childComplexity), true
  10302. case "PrivateMetafieldEdge.node":
  10303. if e.complexity.PrivateMetafieldEdge.Node == nil {
  10304. break
  10305. }
  10306. return e.complexity.PrivateMetafieldEdge.Node(childComplexity), true
  10307. case "Product.availablePublicationCount":
  10308. if e.complexity.Product.AvailablePublicationCount == nil {
  10309. break
  10310. }
  10311. return e.complexity.Product.AvailablePublicationCount(childComplexity), true
  10312. case "Product.collections":
  10313. if e.complexity.Product.Collections == nil {
  10314. break
  10315. }
  10316. args, err := ec.field_Product_collections_args(context.TODO(), rawArgs)
  10317. if err != nil {
  10318. return 0, false
  10319. }
  10320. return e.complexity.Product.Collections(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*CollectionSortKeys), args["query"].(*string)), true
  10321. case "Product.contextualPricing":
  10322. if e.complexity.Product.ContextualPricing == nil {
  10323. break
  10324. }
  10325. args, err := ec.field_Product_contextualPricing_args(context.TODO(), rawArgs)
  10326. if err != nil {
  10327. return 0, false
  10328. }
  10329. return e.complexity.Product.ContextualPricing(childComplexity, args["context"].(ContextualPricingContext)), true
  10330. case "Product.createdAt":
  10331. if e.complexity.Product.CreatedAt == nil {
  10332. break
  10333. }
  10334. return e.complexity.Product.CreatedAt(childComplexity), true
  10335. case "Product.defaultCursor":
  10336. if e.complexity.Product.DefaultCursor == nil {
  10337. break
  10338. }
  10339. return e.complexity.Product.DefaultCursor(childComplexity), true
  10340. case "Product.description":
  10341. if e.complexity.Product.Description == nil {
  10342. break
  10343. }
  10344. args, err := ec.field_Product_description_args(context.TODO(), rawArgs)
  10345. if err != nil {
  10346. return 0, false
  10347. }
  10348. return e.complexity.Product.Description(childComplexity, args["truncateAt"].(*int)), true
  10349. case "Product.descriptionHtml":
  10350. if e.complexity.Product.DescriptionHTML == nil {
  10351. break
  10352. }
  10353. return e.complexity.Product.DescriptionHTML(childComplexity), true
  10354. case "Product.featuredImage":
  10355. if e.complexity.Product.FeaturedImage == nil {
  10356. break
  10357. }
  10358. return e.complexity.Product.FeaturedImage(childComplexity), true
  10359. case "Product.featuredMedia":
  10360. if e.complexity.Product.FeaturedMedia == nil {
  10361. break
  10362. }
  10363. return e.complexity.Product.FeaturedMedia(childComplexity), true
  10364. case "Product.feedback":
  10365. if e.complexity.Product.Feedback == nil {
  10366. break
  10367. }
  10368. return e.complexity.Product.Feedback(childComplexity), true
  10369. case "Product.giftCardTemplateSuffix":
  10370. if e.complexity.Product.GiftCardTemplateSuffix == nil {
  10371. break
  10372. }
  10373. return e.complexity.Product.GiftCardTemplateSuffix(childComplexity), true
  10374. case "Product.handle":
  10375. if e.complexity.Product.Handle == nil {
  10376. break
  10377. }
  10378. return e.complexity.Product.Handle(childComplexity), true
  10379. case "Product.hasOnlyDefaultVariant":
  10380. if e.complexity.Product.HasOnlyDefaultVariant == nil {
  10381. break
  10382. }
  10383. return e.complexity.Product.HasOnlyDefaultVariant(childComplexity), true
  10384. case "Product.hasOutOfStockVariants":
  10385. if e.complexity.Product.HasOutOfStockVariants == nil {
  10386. break
  10387. }
  10388. return e.complexity.Product.HasOutOfStockVariants(childComplexity), true
  10389. case "Product.id":
  10390. if e.complexity.Product.ID == nil {
  10391. break
  10392. }
  10393. return e.complexity.Product.ID(childComplexity), true
  10394. case "Product.images":
  10395. if e.complexity.Product.Images == nil {
  10396. break
  10397. }
  10398. args, err := ec.field_Product_images_args(context.TODO(), rawArgs)
  10399. if err != nil {
  10400. return 0, false
  10401. }
  10402. return e.complexity.Product.Images(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*ProductImageSortKeys)), true
  10403. case "Product.inCollection":
  10404. if e.complexity.Product.InCollection == nil {
  10405. break
  10406. }
  10407. args, err := ec.field_Product_inCollection_args(context.TODO(), rawArgs)
  10408. if err != nil {
  10409. return 0, false
  10410. }
  10411. return e.complexity.Product.InCollection(childComplexity, args["id"].(string)), true
  10412. case "Product.isGiftCard":
  10413. if e.complexity.Product.IsGiftCard == nil {
  10414. break
  10415. }
  10416. return e.complexity.Product.IsGiftCard(childComplexity), true
  10417. case "Product.legacyResourceId":
  10418. if e.complexity.Product.LegacyResourceID == nil {
  10419. break
  10420. }
  10421. return e.complexity.Product.LegacyResourceID(childComplexity), true
  10422. case "Product.media":
  10423. if e.complexity.Product.Media == nil {
  10424. break
  10425. }
  10426. args, err := ec.field_Product_media_args(context.TODO(), rawArgs)
  10427. if err != nil {
  10428. return 0, false
  10429. }
  10430. return e.complexity.Product.Media(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*ProductMediaSortKeys)), true
  10431. case "Product.mediaCount":
  10432. if e.complexity.Product.MediaCount == nil {
  10433. break
  10434. }
  10435. return e.complexity.Product.MediaCount(childComplexity), true
  10436. case "Product.metafield":
  10437. if e.complexity.Product.Metafield == nil {
  10438. break
  10439. }
  10440. args, err := ec.field_Product_metafield_args(context.TODO(), rawArgs)
  10441. if err != nil {
  10442. return 0, false
  10443. }
  10444. return e.complexity.Product.Metafield(childComplexity, args["namespace"].(string), args["key"].(string)), true
  10445. case "Product.metafieldDefinitions":
  10446. if e.complexity.Product.MetafieldDefinitions == nil {
  10447. break
  10448. }
  10449. args, err := ec.field_Product_metafieldDefinitions_args(context.TODO(), rawArgs)
  10450. if err != nil {
  10451. return 0, false
  10452. }
  10453. return e.complexity.Product.MetafieldDefinitions(childComplexity, args["namespace"].(*string), args["pinnedStatus"].(*MetafieldDefinitionPinnedStatus), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*MetafieldDefinitionSortKeys), args["query"].(*string)), true
  10454. case "Product.metafields":
  10455. if e.complexity.Product.Metafields == nil {
  10456. break
  10457. }
  10458. args, err := ec.field_Product_metafields_args(context.TODO(), rawArgs)
  10459. if err != nil {
  10460. return 0, false
  10461. }
  10462. return e.complexity.Product.Metafields(childComplexity, args["namespace"].(*string), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  10463. case "Product.onlineStorePreviewUrl":
  10464. if e.complexity.Product.OnlineStorePreviewURL == nil {
  10465. break
  10466. }
  10467. return e.complexity.Product.OnlineStorePreviewURL(childComplexity), true
  10468. case "Product.onlineStoreUrl":
  10469. if e.complexity.Product.OnlineStoreURL == nil {
  10470. break
  10471. }
  10472. return e.complexity.Product.OnlineStoreURL(childComplexity), true
  10473. case "Product.options":
  10474. if e.complexity.Product.Options == nil {
  10475. break
  10476. }
  10477. args, err := ec.field_Product_options_args(context.TODO(), rawArgs)
  10478. if err != nil {
  10479. return 0, false
  10480. }
  10481. return e.complexity.Product.Options(childComplexity, args["first"].(*int)), true
  10482. case "Product.priceRangeV2":
  10483. if e.complexity.Product.PriceRangeV2 == nil {
  10484. break
  10485. }
  10486. return e.complexity.Product.PriceRangeV2(childComplexity), true
  10487. case "Product.privateMetafield":
  10488. if e.complexity.Product.PrivateMetafield == nil {
  10489. break
  10490. }
  10491. args, err := ec.field_Product_privateMetafield_args(context.TODO(), rawArgs)
  10492. if err != nil {
  10493. return 0, false
  10494. }
  10495. return e.complexity.Product.PrivateMetafield(childComplexity, args["namespace"].(string), args["key"].(string)), true
  10496. case "Product.privateMetafields":
  10497. if e.complexity.Product.PrivateMetafields == nil {
  10498. break
  10499. }
  10500. args, err := ec.field_Product_privateMetafields_args(context.TODO(), rawArgs)
  10501. if err != nil {
  10502. return 0, false
  10503. }
  10504. return e.complexity.Product.PrivateMetafields(childComplexity, args["namespace"].(*string), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  10505. case "Product.productCategory":
  10506. if e.complexity.Product.ProductCategory == nil {
  10507. break
  10508. }
  10509. return e.complexity.Product.ProductCategory(childComplexity), true
  10510. case "Product.productType":
  10511. if e.complexity.Product.ProductType == nil {
  10512. break
  10513. }
  10514. return e.complexity.Product.ProductType(childComplexity), true
  10515. case "Product.publicationCount":
  10516. if e.complexity.Product.PublicationCount == nil {
  10517. break
  10518. }
  10519. args, err := ec.field_Product_publicationCount_args(context.TODO(), rawArgs)
  10520. if err != nil {
  10521. return 0, false
  10522. }
  10523. return e.complexity.Product.PublicationCount(childComplexity, args["onlyPublished"].(*bool)), true
  10524. case "Product.publishedAt":
  10525. if e.complexity.Product.PublishedAt == nil {
  10526. break
  10527. }
  10528. return e.complexity.Product.PublishedAt(childComplexity), true
  10529. case "Product.publishedOnCurrentPublication":
  10530. if e.complexity.Product.PublishedOnCurrentPublication == nil {
  10531. break
  10532. }
  10533. return e.complexity.Product.PublishedOnCurrentPublication(childComplexity), true
  10534. case "Product.publishedOnPublication":
  10535. if e.complexity.Product.PublishedOnPublication == nil {
  10536. break
  10537. }
  10538. args, err := ec.field_Product_publishedOnPublication_args(context.TODO(), rawArgs)
  10539. if err != nil {
  10540. return 0, false
  10541. }
  10542. return e.complexity.Product.PublishedOnPublication(childComplexity, args["publicationId"].(string)), true
  10543. case "Product.requiresSellingPlan":
  10544. if e.complexity.Product.RequiresSellingPlan == nil {
  10545. break
  10546. }
  10547. return e.complexity.Product.RequiresSellingPlan(childComplexity), true
  10548. case "Product.resourcePublicationOnCurrentPublication":
  10549. if e.complexity.Product.ResourcePublicationOnCurrentPublication == nil {
  10550. break
  10551. }
  10552. return e.complexity.Product.ResourcePublicationOnCurrentPublication(childComplexity), true
  10553. case "Product.resourcePublications":
  10554. if e.complexity.Product.ResourcePublications == nil {
  10555. break
  10556. }
  10557. args, err := ec.field_Product_resourcePublications_args(context.TODO(), rawArgs)
  10558. if err != nil {
  10559. return 0, false
  10560. }
  10561. return e.complexity.Product.ResourcePublications(childComplexity, args["onlyPublished"].(*bool), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  10562. case "Product.resourcePublicationsV2":
  10563. if e.complexity.Product.ResourcePublicationsV2 == nil {
  10564. break
  10565. }
  10566. args, err := ec.field_Product_resourcePublicationsV2_args(context.TODO(), rawArgs)
  10567. if err != nil {
  10568. return 0, false
  10569. }
  10570. return e.complexity.Product.ResourcePublicationsV2(childComplexity, args["onlyPublished"].(*bool), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  10571. case "Product.sellingPlanGroupCount":
  10572. if e.complexity.Product.SellingPlanGroupCount == nil {
  10573. break
  10574. }
  10575. return e.complexity.Product.SellingPlanGroupCount(childComplexity), true
  10576. case "Product.sellingPlanGroups":
  10577. if e.complexity.Product.SellingPlanGroups == nil {
  10578. break
  10579. }
  10580. args, err := ec.field_Product_sellingPlanGroups_args(context.TODO(), rawArgs)
  10581. if err != nil {
  10582. return 0, false
  10583. }
  10584. return e.complexity.Product.SellingPlanGroups(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  10585. case "Product.seo":
  10586. if e.complexity.Product.Seo == nil {
  10587. break
  10588. }
  10589. return e.complexity.Product.Seo(childComplexity), true
  10590. case "Product.status":
  10591. if e.complexity.Product.Status == nil {
  10592. break
  10593. }
  10594. return e.complexity.Product.Status(childComplexity), true
  10595. case "Product.tags":
  10596. if e.complexity.Product.Tags == nil {
  10597. break
  10598. }
  10599. return e.complexity.Product.Tags(childComplexity), true
  10600. case "Product.templateSuffix":
  10601. if e.complexity.Product.TemplateSuffix == nil {
  10602. break
  10603. }
  10604. return e.complexity.Product.TemplateSuffix(childComplexity), true
  10605. case "Product.title":
  10606. if e.complexity.Product.Title == nil {
  10607. break
  10608. }
  10609. return e.complexity.Product.Title(childComplexity), true
  10610. case "Product.totalInventory":
  10611. if e.complexity.Product.TotalInventory == nil {
  10612. break
  10613. }
  10614. return e.complexity.Product.TotalInventory(childComplexity), true
  10615. case "Product.totalVariants":
  10616. if e.complexity.Product.TotalVariants == nil {
  10617. break
  10618. }
  10619. return e.complexity.Product.TotalVariants(childComplexity), true
  10620. case "Product.tracksInventory":
  10621. if e.complexity.Product.TracksInventory == nil {
  10622. break
  10623. }
  10624. return e.complexity.Product.TracksInventory(childComplexity), true
  10625. case "Product.translations":
  10626. if e.complexity.Product.Translations == nil {
  10627. break
  10628. }
  10629. args, err := ec.field_Product_translations_args(context.TODO(), rawArgs)
  10630. if err != nil {
  10631. return 0, false
  10632. }
  10633. return e.complexity.Product.Translations(childComplexity, args["locale"].(string), args["marketId"].(*string)), true
  10634. case "Product.unpublishedPublications":
  10635. if e.complexity.Product.UnpublishedPublications == nil {
  10636. break
  10637. }
  10638. args, err := ec.field_Product_unpublishedPublications_args(context.TODO(), rawArgs)
  10639. if err != nil {
  10640. return 0, false
  10641. }
  10642. return e.complexity.Product.UnpublishedPublications(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  10643. case "Product.updatedAt":
  10644. if e.complexity.Product.UpdatedAt == nil {
  10645. break
  10646. }
  10647. return e.complexity.Product.UpdatedAt(childComplexity), true
  10648. case "Product.variants":
  10649. if e.complexity.Product.Variants == nil {
  10650. break
  10651. }
  10652. args, err := ec.field_Product_variants_args(context.TODO(), rawArgs)
  10653. if err != nil {
  10654. return 0, false
  10655. }
  10656. return e.complexity.Product.Variants(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*ProductVariantSortKeys)), true
  10657. case "Product.vendor":
  10658. if e.complexity.Product.Vendor == nil {
  10659. break
  10660. }
  10661. return e.complexity.Product.Vendor(childComplexity), true
  10662. case "ProductCategory.productTaxonomyNode":
  10663. if e.complexity.ProductCategory.ProductTaxonomyNode == nil {
  10664. break
  10665. }
  10666. return e.complexity.ProductCategory.ProductTaxonomyNode(childComplexity), true
  10667. case "ProductChangeStatusUserError.code":
  10668. if e.complexity.ProductChangeStatusUserError.Code == nil {
  10669. break
  10670. }
  10671. return e.complexity.ProductChangeStatusUserError.Code(childComplexity), true
  10672. case "ProductChangeStatusUserError.field":
  10673. if e.complexity.ProductChangeStatusUserError.Field == nil {
  10674. break
  10675. }
  10676. return e.complexity.ProductChangeStatusUserError.Field(childComplexity), true
  10677. case "ProductChangeStatusUserError.message":
  10678. if e.complexity.ProductChangeStatusUserError.Message == nil {
  10679. break
  10680. }
  10681. return e.complexity.ProductChangeStatusUserError.Message(childComplexity), true
  10682. case "ProductConnection.edges":
  10683. if e.complexity.ProductConnection.Edges == nil {
  10684. break
  10685. }
  10686. return e.complexity.ProductConnection.Edges(childComplexity), true
  10687. case "ProductConnection.nodes":
  10688. if e.complexity.ProductConnection.Nodes == nil {
  10689. break
  10690. }
  10691. return e.complexity.ProductConnection.Nodes(childComplexity), true
  10692. case "ProductConnection.pageInfo":
  10693. if e.complexity.ProductConnection.PageInfo == nil {
  10694. break
  10695. }
  10696. return e.complexity.ProductConnection.PageInfo(childComplexity), true
  10697. case "ProductContextualPricing.maxVariantPricing":
  10698. if e.complexity.ProductContextualPricing.MaxVariantPricing == nil {
  10699. break
  10700. }
  10701. return e.complexity.ProductContextualPricing.MaxVariantPricing(childComplexity), true
  10702. case "ProductContextualPricing.minVariantPricing":
  10703. if e.complexity.ProductContextualPricing.MinVariantPricing == nil {
  10704. break
  10705. }
  10706. return e.complexity.ProductContextualPricing.MinVariantPricing(childComplexity), true
  10707. case "ProductContextualPricing.priceRange":
  10708. if e.complexity.ProductContextualPricing.PriceRange == nil {
  10709. break
  10710. }
  10711. return e.complexity.ProductContextualPricing.PriceRange(childComplexity), true
  10712. case "ProductEdge.cursor":
  10713. if e.complexity.ProductEdge.Cursor == nil {
  10714. break
  10715. }
  10716. return e.complexity.ProductEdge.Cursor(childComplexity), true
  10717. case "ProductEdge.node":
  10718. if e.complexity.ProductEdge.Node == nil {
  10719. break
  10720. }
  10721. return e.complexity.ProductEdge.Node(childComplexity), true
  10722. case "ProductOption.id":
  10723. if e.complexity.ProductOption.ID == nil {
  10724. break
  10725. }
  10726. return e.complexity.ProductOption.ID(childComplexity), true
  10727. case "ProductOption.name":
  10728. if e.complexity.ProductOption.Name == nil {
  10729. break
  10730. }
  10731. return e.complexity.ProductOption.Name(childComplexity), true
  10732. case "ProductOption.position":
  10733. if e.complexity.ProductOption.Position == nil {
  10734. break
  10735. }
  10736. return e.complexity.ProductOption.Position(childComplexity), true
  10737. case "ProductOption.translations":
  10738. if e.complexity.ProductOption.Translations == nil {
  10739. break
  10740. }
  10741. args, err := ec.field_ProductOption_translations_args(context.TODO(), rawArgs)
  10742. if err != nil {
  10743. return 0, false
  10744. }
  10745. return e.complexity.ProductOption.Translations(childComplexity, args["locale"].(string), args["marketId"].(*string)), true
  10746. case "ProductOption.values":
  10747. if e.complexity.ProductOption.Values == nil {
  10748. break
  10749. }
  10750. return e.complexity.ProductOption.Values(childComplexity), true
  10751. case "ProductPriceRangeV2.maxVariantPrice":
  10752. if e.complexity.ProductPriceRangeV2.MaxVariantPrice == nil {
  10753. break
  10754. }
  10755. return e.complexity.ProductPriceRangeV2.MaxVariantPrice(childComplexity), true
  10756. case "ProductPriceRangeV2.minVariantPrice":
  10757. if e.complexity.ProductPriceRangeV2.MinVariantPrice == nil {
  10758. break
  10759. }
  10760. return e.complexity.ProductPriceRangeV2.MinVariantPrice(childComplexity), true
  10761. case "ProductTaxonomyNode.fullName":
  10762. if e.complexity.ProductTaxonomyNode.FullName == nil {
  10763. break
  10764. }
  10765. return e.complexity.ProductTaxonomyNode.FullName(childComplexity), true
  10766. case "ProductTaxonomyNode.id":
  10767. if e.complexity.ProductTaxonomyNode.ID == nil {
  10768. break
  10769. }
  10770. return e.complexity.ProductTaxonomyNode.ID(childComplexity), true
  10771. case "ProductTaxonomyNode.isLeaf":
  10772. if e.complexity.ProductTaxonomyNode.IsLeaf == nil {
  10773. break
  10774. }
  10775. return e.complexity.ProductTaxonomyNode.IsLeaf(childComplexity), true
  10776. case "ProductTaxonomyNode.isRoot":
  10777. if e.complexity.ProductTaxonomyNode.IsRoot == nil {
  10778. break
  10779. }
  10780. return e.complexity.ProductTaxonomyNode.IsRoot(childComplexity), true
  10781. case "ProductTaxonomyNode.name":
  10782. if e.complexity.ProductTaxonomyNode.Name == nil {
  10783. break
  10784. }
  10785. return e.complexity.ProductTaxonomyNode.Name(childComplexity), true
  10786. case "ProductVariant.availableForSale":
  10787. if e.complexity.ProductVariant.AvailableForSale == nil {
  10788. break
  10789. }
  10790. return e.complexity.ProductVariant.AvailableForSale(childComplexity), true
  10791. case "ProductVariant.barcode":
  10792. if e.complexity.ProductVariant.Barcode == nil {
  10793. break
  10794. }
  10795. return e.complexity.ProductVariant.Barcode(childComplexity), true
  10796. case "ProductVariant.compareAtPrice":
  10797. if e.complexity.ProductVariant.CompareAtPrice == nil {
  10798. break
  10799. }
  10800. return e.complexity.ProductVariant.CompareAtPrice(childComplexity), true
  10801. case "ProductVariant.contextualPricing":
  10802. if e.complexity.ProductVariant.ContextualPricing == nil {
  10803. break
  10804. }
  10805. args, err := ec.field_ProductVariant_contextualPricing_args(context.TODO(), rawArgs)
  10806. if err != nil {
  10807. return 0, false
  10808. }
  10809. return e.complexity.ProductVariant.ContextualPricing(childComplexity, args["context"].(ContextualPricingContext)), true
  10810. case "ProductVariant.createdAt":
  10811. if e.complexity.ProductVariant.CreatedAt == nil {
  10812. break
  10813. }
  10814. return e.complexity.ProductVariant.CreatedAt(childComplexity), true
  10815. case "ProductVariant.defaultCursor":
  10816. if e.complexity.ProductVariant.DefaultCursor == nil {
  10817. break
  10818. }
  10819. return e.complexity.ProductVariant.DefaultCursor(childComplexity), true
  10820. case "ProductVariant.deliveryProfile":
  10821. if e.complexity.ProductVariant.DeliveryProfile == nil {
  10822. break
  10823. }
  10824. return e.complexity.ProductVariant.DeliveryProfile(childComplexity), true
  10825. case "ProductVariant.displayName":
  10826. if e.complexity.ProductVariant.DisplayName == nil {
  10827. break
  10828. }
  10829. return e.complexity.ProductVariant.DisplayName(childComplexity), true
  10830. case "ProductVariant.fulfillmentServiceEditable":
  10831. if e.complexity.ProductVariant.FulfillmentServiceEditable == nil {
  10832. break
  10833. }
  10834. return e.complexity.ProductVariant.FulfillmentServiceEditable(childComplexity), true
  10835. case "ProductVariant.id":
  10836. if e.complexity.ProductVariant.ID == nil {
  10837. break
  10838. }
  10839. return e.complexity.ProductVariant.ID(childComplexity), true
  10840. case "ProductVariant.image":
  10841. if e.complexity.ProductVariant.Image == nil {
  10842. break
  10843. }
  10844. return e.complexity.ProductVariant.Image(childComplexity), true
  10845. case "ProductVariant.inventoryItem":
  10846. if e.complexity.ProductVariant.InventoryItem == nil {
  10847. break
  10848. }
  10849. return e.complexity.ProductVariant.InventoryItem(childComplexity), true
  10850. case "ProductVariant.inventoryPolicy":
  10851. if e.complexity.ProductVariant.InventoryPolicy == nil {
  10852. break
  10853. }
  10854. return e.complexity.ProductVariant.InventoryPolicy(childComplexity), true
  10855. case "ProductVariant.inventoryQuantity":
  10856. if e.complexity.ProductVariant.InventoryQuantity == nil {
  10857. break
  10858. }
  10859. return e.complexity.ProductVariant.InventoryQuantity(childComplexity), true
  10860. case "ProductVariant.legacyResourceId":
  10861. if e.complexity.ProductVariant.LegacyResourceID == nil {
  10862. break
  10863. }
  10864. return e.complexity.ProductVariant.LegacyResourceID(childComplexity), true
  10865. case "ProductVariant.media":
  10866. if e.complexity.ProductVariant.Media == nil {
  10867. break
  10868. }
  10869. args, err := ec.field_ProductVariant_media_args(context.TODO(), rawArgs)
  10870. if err != nil {
  10871. return 0, false
  10872. }
  10873. return e.complexity.ProductVariant.Media(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  10874. case "ProductVariant.metafield":
  10875. if e.complexity.ProductVariant.Metafield == nil {
  10876. break
  10877. }
  10878. args, err := ec.field_ProductVariant_metafield_args(context.TODO(), rawArgs)
  10879. if err != nil {
  10880. return 0, false
  10881. }
  10882. return e.complexity.ProductVariant.Metafield(childComplexity, args["namespace"].(string), args["key"].(string)), true
  10883. case "ProductVariant.metafieldDefinitions":
  10884. if e.complexity.ProductVariant.MetafieldDefinitions == nil {
  10885. break
  10886. }
  10887. args, err := ec.field_ProductVariant_metafieldDefinitions_args(context.TODO(), rawArgs)
  10888. if err != nil {
  10889. return 0, false
  10890. }
  10891. return e.complexity.ProductVariant.MetafieldDefinitions(childComplexity, args["namespace"].(*string), args["pinnedStatus"].(*MetafieldDefinitionPinnedStatus), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool), args["sortKey"].(*MetafieldDefinitionSortKeys), args["query"].(*string)), true
  10892. case "ProductVariant.metafields":
  10893. if e.complexity.ProductVariant.Metafields == nil {
  10894. break
  10895. }
  10896. args, err := ec.field_ProductVariant_metafields_args(context.TODO(), rawArgs)
  10897. if err != nil {
  10898. return 0, false
  10899. }
  10900. return e.complexity.ProductVariant.Metafields(childComplexity, args["namespace"].(*string), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  10901. case "ProductVariant.position":
  10902. if e.complexity.ProductVariant.Position == nil {
  10903. break
  10904. }
  10905. return e.complexity.ProductVariant.Position(childComplexity), true
  10906. case "ProductVariant.price":
  10907. if e.complexity.ProductVariant.Price == nil {
  10908. break
  10909. }
  10910. return e.complexity.ProductVariant.Price(childComplexity), true
  10911. case "ProductVariant.privateMetafield":
  10912. if e.complexity.ProductVariant.PrivateMetafield == nil {
  10913. break
  10914. }
  10915. args, err := ec.field_ProductVariant_privateMetafield_args(context.TODO(), rawArgs)
  10916. if err != nil {
  10917. return 0, false
  10918. }
  10919. return e.complexity.ProductVariant.PrivateMetafield(childComplexity, args["namespace"].(string), args["key"].(string)), true
  10920. case "ProductVariant.privateMetafields":
  10921. if e.complexity.ProductVariant.PrivateMetafields == nil {
  10922. break
  10923. }
  10924. args, err := ec.field_ProductVariant_privateMetafields_args(context.TODO(), rawArgs)
  10925. if err != nil {
  10926. return 0, false
  10927. }
  10928. return e.complexity.ProductVariant.PrivateMetafields(childComplexity, args["namespace"].(*string), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  10929. case "ProductVariant.product":
  10930. if e.complexity.ProductVariant.Product == nil {
  10931. break
  10932. }
  10933. return e.complexity.ProductVariant.Product(childComplexity), true
  10934. case "ProductVariant.selectedOptions":
  10935. if e.complexity.ProductVariant.SelectedOptions == nil {
  10936. break
  10937. }
  10938. return e.complexity.ProductVariant.SelectedOptions(childComplexity), true
  10939. case "ProductVariant.sellableOnlineQuantity":
  10940. if e.complexity.ProductVariant.SellableOnlineQuantity == nil {
  10941. break
  10942. }
  10943. return e.complexity.ProductVariant.SellableOnlineQuantity(childComplexity), true
  10944. case "ProductVariant.sellingPlanGroupCount":
  10945. if e.complexity.ProductVariant.SellingPlanGroupCount == nil {
  10946. break
  10947. }
  10948. return e.complexity.ProductVariant.SellingPlanGroupCount(childComplexity), true
  10949. case "ProductVariant.sellingPlanGroups":
  10950. if e.complexity.ProductVariant.SellingPlanGroups == nil {
  10951. break
  10952. }
  10953. args, err := ec.field_ProductVariant_sellingPlanGroups_args(context.TODO(), rawArgs)
  10954. if err != nil {
  10955. return 0, false
  10956. }
  10957. return e.complexity.ProductVariant.SellingPlanGroups(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  10958. case "ProductVariant.sku":
  10959. if e.complexity.ProductVariant.Sku == nil {
  10960. break
  10961. }
  10962. return e.complexity.ProductVariant.Sku(childComplexity), true
  10963. case "ProductVariant.taxCode":
  10964. if e.complexity.ProductVariant.TaxCode == nil {
  10965. break
  10966. }
  10967. return e.complexity.ProductVariant.TaxCode(childComplexity), true
  10968. case "ProductVariant.taxable":
  10969. if e.complexity.ProductVariant.Taxable == nil {
  10970. break
  10971. }
  10972. return e.complexity.ProductVariant.Taxable(childComplexity), true
  10973. case "ProductVariant.title":
  10974. if e.complexity.ProductVariant.Title == nil {
  10975. break
  10976. }
  10977. return e.complexity.ProductVariant.Title(childComplexity), true
  10978. case "ProductVariant.translations":
  10979. if e.complexity.ProductVariant.Translations == nil {
  10980. break
  10981. }
  10982. args, err := ec.field_ProductVariant_translations_args(context.TODO(), rawArgs)
  10983. if err != nil {
  10984. return 0, false
  10985. }
  10986. return e.complexity.ProductVariant.Translations(childComplexity, args["locale"].(string), args["marketId"].(*string)), true
  10987. case "ProductVariant.updatedAt":
  10988. if e.complexity.ProductVariant.UpdatedAt == nil {
  10989. break
  10990. }
  10991. return e.complexity.ProductVariant.UpdatedAt(childComplexity), true
  10992. case "ProductVariant.weight":
  10993. if e.complexity.ProductVariant.Weight == nil {
  10994. break
  10995. }
  10996. return e.complexity.ProductVariant.Weight(childComplexity), true
  10997. case "ProductVariant.weightUnit":
  10998. if e.complexity.ProductVariant.WeightUnit == nil {
  10999. break
  11000. }
  11001. return e.complexity.ProductVariant.WeightUnit(childComplexity), true
  11002. case "ProductVariantConnection.edges":
  11003. if e.complexity.ProductVariantConnection.Edges == nil {
  11004. break
  11005. }
  11006. return e.complexity.ProductVariantConnection.Edges(childComplexity), true
  11007. case "ProductVariantConnection.nodes":
  11008. if e.complexity.ProductVariantConnection.Nodes == nil {
  11009. break
  11010. }
  11011. return e.complexity.ProductVariantConnection.Nodes(childComplexity), true
  11012. case "ProductVariantConnection.pageInfo":
  11013. if e.complexity.ProductVariantConnection.PageInfo == nil {
  11014. break
  11015. }
  11016. return e.complexity.ProductVariantConnection.PageInfo(childComplexity), true
  11017. case "ProductVariantContextualPricing.compareAtPrice":
  11018. if e.complexity.ProductVariantContextualPricing.CompareAtPrice == nil {
  11019. break
  11020. }
  11021. return e.complexity.ProductVariantContextualPricing.CompareAtPrice(childComplexity), true
  11022. case "ProductVariantContextualPricing.price":
  11023. if e.complexity.ProductVariantContextualPricing.Price == nil {
  11024. break
  11025. }
  11026. return e.complexity.ProductVariantContextualPricing.Price(childComplexity), true
  11027. case "ProductVariantEdge.cursor":
  11028. if e.complexity.ProductVariantEdge.Cursor == nil {
  11029. break
  11030. }
  11031. return e.complexity.ProductVariantEdge.Cursor(childComplexity), true
  11032. case "ProductVariantEdge.node":
  11033. if e.complexity.ProductVariantEdge.Node == nil {
  11034. break
  11035. }
  11036. return e.complexity.ProductVariantEdge.Node(childComplexity), true
  11037. case "ProductVariantsBulkCreateUserError.code":
  11038. if e.complexity.ProductVariantsBulkCreateUserError.Code == nil {
  11039. break
  11040. }
  11041. return e.complexity.ProductVariantsBulkCreateUserError.Code(childComplexity), true
  11042. case "ProductVariantsBulkCreateUserError.field":
  11043. if e.complexity.ProductVariantsBulkCreateUserError.Field == nil {
  11044. break
  11045. }
  11046. return e.complexity.ProductVariantsBulkCreateUserError.Field(childComplexity), true
  11047. case "ProductVariantsBulkCreateUserError.message":
  11048. if e.complexity.ProductVariantsBulkCreateUserError.Message == nil {
  11049. break
  11050. }
  11051. return e.complexity.ProductVariantsBulkCreateUserError.Message(childComplexity), true
  11052. case "ProductVariantsBulkDeleteUserError.code":
  11053. if e.complexity.ProductVariantsBulkDeleteUserError.Code == nil {
  11054. break
  11055. }
  11056. return e.complexity.ProductVariantsBulkDeleteUserError.Code(childComplexity), true
  11057. case "ProductVariantsBulkDeleteUserError.field":
  11058. if e.complexity.ProductVariantsBulkDeleteUserError.Field == nil {
  11059. break
  11060. }
  11061. return e.complexity.ProductVariantsBulkDeleteUserError.Field(childComplexity), true
  11062. case "ProductVariantsBulkDeleteUserError.message":
  11063. if e.complexity.ProductVariantsBulkDeleteUserError.Message == nil {
  11064. break
  11065. }
  11066. return e.complexity.ProductVariantsBulkDeleteUserError.Message(childComplexity), true
  11067. case "ProductVariantsBulkReorderUserError.code":
  11068. if e.complexity.ProductVariantsBulkReorderUserError.Code == nil {
  11069. break
  11070. }
  11071. return e.complexity.ProductVariantsBulkReorderUserError.Code(childComplexity), true
  11072. case "ProductVariantsBulkReorderUserError.field":
  11073. if e.complexity.ProductVariantsBulkReorderUserError.Field == nil {
  11074. break
  11075. }
  11076. return e.complexity.ProductVariantsBulkReorderUserError.Field(childComplexity), true
  11077. case "ProductVariantsBulkReorderUserError.message":
  11078. if e.complexity.ProductVariantsBulkReorderUserError.Message == nil {
  11079. break
  11080. }
  11081. return e.complexity.ProductVariantsBulkReorderUserError.Message(childComplexity), true
  11082. case "ProductVariantsBulkUpdateUserError.code":
  11083. if e.complexity.ProductVariantsBulkUpdateUserError.Code == nil {
  11084. break
  11085. }
  11086. return e.complexity.ProductVariantsBulkUpdateUserError.Code(childComplexity), true
  11087. case "ProductVariantsBulkUpdateUserError.field":
  11088. if e.complexity.ProductVariantsBulkUpdateUserError.Field == nil {
  11089. break
  11090. }
  11091. return e.complexity.ProductVariantsBulkUpdateUserError.Field(childComplexity), true
  11092. case "ProductVariantsBulkUpdateUserError.message":
  11093. if e.complexity.ProductVariantsBulkUpdateUserError.Message == nil {
  11094. break
  11095. }
  11096. return e.complexity.ProductVariantsBulkUpdateUserError.Message(childComplexity), true
  11097. case "Publication.app":
  11098. if e.complexity.Publication.App == nil {
  11099. break
  11100. }
  11101. return e.complexity.Publication.App(childComplexity), true
  11102. case "Publication.collectionPublicationsV3":
  11103. if e.complexity.Publication.CollectionPublicationsV3 == nil {
  11104. break
  11105. }
  11106. args, err := ec.field_Publication_collectionPublicationsV3_args(context.TODO(), rawArgs)
  11107. if err != nil {
  11108. return 0, false
  11109. }
  11110. return e.complexity.Publication.CollectionPublicationsV3(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  11111. case "Publication.collections":
  11112. if e.complexity.Publication.Collections == nil {
  11113. break
  11114. }
  11115. args, err := ec.field_Publication_collections_args(context.TODO(), rawArgs)
  11116. if err != nil {
  11117. return 0, false
  11118. }
  11119. return e.complexity.Publication.Collections(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  11120. case "Publication.hasCollection":
  11121. if e.complexity.Publication.HasCollection == nil {
  11122. break
  11123. }
  11124. args, err := ec.field_Publication_hasCollection_args(context.TODO(), rawArgs)
  11125. if err != nil {
  11126. return 0, false
  11127. }
  11128. return e.complexity.Publication.HasCollection(childComplexity, args["id"].(string)), true
  11129. case "Publication.id":
  11130. if e.complexity.Publication.ID == nil {
  11131. break
  11132. }
  11133. return e.complexity.Publication.ID(childComplexity), true
  11134. case "Publication.name":
  11135. if e.complexity.Publication.Name == nil {
  11136. break
  11137. }
  11138. return e.complexity.Publication.Name(childComplexity), true
  11139. case "Publication.productPublicationsV3":
  11140. if e.complexity.Publication.ProductPublicationsV3 == nil {
  11141. break
  11142. }
  11143. args, err := ec.field_Publication_productPublicationsV3_args(context.TODO(), rawArgs)
  11144. if err != nil {
  11145. return 0, false
  11146. }
  11147. return e.complexity.Publication.ProductPublicationsV3(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  11148. case "Publication.products":
  11149. if e.complexity.Publication.Products == nil {
  11150. break
  11151. }
  11152. args, err := ec.field_Publication_products_args(context.TODO(), rawArgs)
  11153. if err != nil {
  11154. return 0, false
  11155. }
  11156. return e.complexity.Publication.Products(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  11157. case "Publication.supportsFuturePublishing":
  11158. if e.complexity.Publication.SupportsFuturePublishing == nil {
  11159. break
  11160. }
  11161. return e.complexity.Publication.SupportsFuturePublishing(childComplexity), true
  11162. case "PublicationConnection.edges":
  11163. if e.complexity.PublicationConnection.Edges == nil {
  11164. break
  11165. }
  11166. return e.complexity.PublicationConnection.Edges(childComplexity), true
  11167. case "PublicationConnection.nodes":
  11168. if e.complexity.PublicationConnection.Nodes == nil {
  11169. break
  11170. }
  11171. return e.complexity.PublicationConnection.Nodes(childComplexity), true
  11172. case "PublicationConnection.pageInfo":
  11173. if e.complexity.PublicationConnection.PageInfo == nil {
  11174. break
  11175. }
  11176. return e.complexity.PublicationConnection.PageInfo(childComplexity), true
  11177. case "PublicationEdge.cursor":
  11178. if e.complexity.PublicationEdge.Cursor == nil {
  11179. break
  11180. }
  11181. return e.complexity.PublicationEdge.Cursor(childComplexity), true
  11182. case "PublicationEdge.node":
  11183. if e.complexity.PublicationEdge.Node == nil {
  11184. break
  11185. }
  11186. return e.complexity.PublicationEdge.Node(childComplexity), true
  11187. case "PublishedTranslation.key":
  11188. if e.complexity.PublishedTranslation.Key == nil {
  11189. break
  11190. }
  11191. return e.complexity.PublishedTranslation.Key(childComplexity), true
  11192. case "PublishedTranslation.locale":
  11193. if e.complexity.PublishedTranslation.Locale == nil {
  11194. break
  11195. }
  11196. return e.complexity.PublishedTranslation.Locale(childComplexity), true
  11197. case "PublishedTranslation.marketId":
  11198. if e.complexity.PublishedTranslation.MarketID == nil {
  11199. break
  11200. }
  11201. return e.complexity.PublishedTranslation.MarketID(childComplexity), true
  11202. case "PublishedTranslation.value":
  11203. if e.complexity.PublishedTranslation.Value == nil {
  11204. break
  11205. }
  11206. return e.complexity.PublishedTranslation.Value(childComplexity), true
  11207. case "PurchasingCompany.company":
  11208. if e.complexity.PurchasingCompany.Company == nil {
  11209. break
  11210. }
  11211. return e.complexity.PurchasingCompany.Company(childComplexity), true
  11212. case "PurchasingCompany.contact":
  11213. if e.complexity.PurchasingCompany.Contact == nil {
  11214. break
  11215. }
  11216. return e.complexity.PurchasingCompany.Contact(childComplexity), true
  11217. case "PurchasingCompany.location":
  11218. if e.complexity.PurchasingCompany.Location == nil {
  11219. break
  11220. }
  11221. return e.complexity.PurchasingCompany.Location(childComplexity), true
  11222. case "Query.customer":
  11223. if e.complexity.Query.Customer == nil {
  11224. break
  11225. }
  11226. args, err := ec.field_Query_customer_args(context.TODO(), rawArgs)
  11227. if err != nil {
  11228. return 0, false
  11229. }
  11230. return e.complexity.Query.Customer(childComplexity, args["id"].(string)), true
  11231. case "Query._service":
  11232. if e.complexity.Query.__resolve__service == nil {
  11233. break
  11234. }
  11235. return e.complexity.Query.__resolve__service(childComplexity), true
  11236. case "Query._entities":
  11237. if e.complexity.Query.__resolve_entities == nil {
  11238. break
  11239. }
  11240. args, err := ec.field_Query__entities_args(context.TODO(), rawArgs)
  11241. if err != nil {
  11242. return 0, false
  11243. }
  11244. return e.complexity.Query.__resolve_entities(childComplexity, args["representations"].([]map[string]interface{})), true
  11245. case "Refund.createdAt":
  11246. if e.complexity.Refund.CreatedAt == nil {
  11247. break
  11248. }
  11249. return e.complexity.Refund.CreatedAt(childComplexity), true
  11250. case "Refund.duties":
  11251. if e.complexity.Refund.Duties == nil {
  11252. break
  11253. }
  11254. return e.complexity.Refund.Duties(childComplexity), true
  11255. case "Refund.id":
  11256. if e.complexity.Refund.ID == nil {
  11257. break
  11258. }
  11259. return e.complexity.Refund.ID(childComplexity), true
  11260. case "Refund.legacyResourceId":
  11261. if e.complexity.Refund.LegacyResourceID == nil {
  11262. break
  11263. }
  11264. return e.complexity.Refund.LegacyResourceID(childComplexity), true
  11265. case "Refund.note":
  11266. if e.complexity.Refund.Note == nil {
  11267. break
  11268. }
  11269. return e.complexity.Refund.Note(childComplexity), true
  11270. case "Refund.order":
  11271. if e.complexity.Refund.Order == nil {
  11272. break
  11273. }
  11274. return e.complexity.Refund.Order(childComplexity), true
  11275. case "Refund.refundLineItems":
  11276. if e.complexity.Refund.RefundLineItems == nil {
  11277. break
  11278. }
  11279. args, err := ec.field_Refund_refundLineItems_args(context.TODO(), rawArgs)
  11280. if err != nil {
  11281. return 0, false
  11282. }
  11283. return e.complexity.Refund.RefundLineItems(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  11284. case "Refund.staffMember":
  11285. if e.complexity.Refund.StaffMember == nil {
  11286. break
  11287. }
  11288. return e.complexity.Refund.StaffMember(childComplexity), true
  11289. case "Refund.totalRefundedSet":
  11290. if e.complexity.Refund.TotalRefundedSet == nil {
  11291. break
  11292. }
  11293. return e.complexity.Refund.TotalRefundedSet(childComplexity), true
  11294. case "Refund.transactions":
  11295. if e.complexity.Refund.Transactions == nil {
  11296. break
  11297. }
  11298. args, err := ec.field_Refund_transactions_args(context.TODO(), rawArgs)
  11299. if err != nil {
  11300. return 0, false
  11301. }
  11302. return e.complexity.Refund.Transactions(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  11303. case "Refund.updatedAt":
  11304. if e.complexity.Refund.UpdatedAt == nil {
  11305. break
  11306. }
  11307. return e.complexity.Refund.UpdatedAt(childComplexity), true
  11308. case "RefundDuty.amountSet":
  11309. if e.complexity.RefundDuty.AmountSet == nil {
  11310. break
  11311. }
  11312. return e.complexity.RefundDuty.AmountSet(childComplexity), true
  11313. case "RefundDuty.originalDuty":
  11314. if e.complexity.RefundDuty.OriginalDuty == nil {
  11315. break
  11316. }
  11317. return e.complexity.RefundDuty.OriginalDuty(childComplexity), true
  11318. case "RefundLineItem.lineItem":
  11319. if e.complexity.RefundLineItem.LineItem == nil {
  11320. break
  11321. }
  11322. return e.complexity.RefundLineItem.LineItem(childComplexity), true
  11323. case "RefundLineItem.location":
  11324. if e.complexity.RefundLineItem.Location == nil {
  11325. break
  11326. }
  11327. return e.complexity.RefundLineItem.Location(childComplexity), true
  11328. case "RefundLineItem.priceSet":
  11329. if e.complexity.RefundLineItem.PriceSet == nil {
  11330. break
  11331. }
  11332. return e.complexity.RefundLineItem.PriceSet(childComplexity), true
  11333. case "RefundLineItem.quantity":
  11334. if e.complexity.RefundLineItem.Quantity == nil {
  11335. break
  11336. }
  11337. return e.complexity.RefundLineItem.Quantity(childComplexity), true
  11338. case "RefundLineItem.restockType":
  11339. if e.complexity.RefundLineItem.RestockType == nil {
  11340. break
  11341. }
  11342. return e.complexity.RefundLineItem.RestockType(childComplexity), true
  11343. case "RefundLineItem.restocked":
  11344. if e.complexity.RefundLineItem.Restocked == nil {
  11345. break
  11346. }
  11347. return e.complexity.RefundLineItem.Restocked(childComplexity), true
  11348. case "RefundLineItem.subtotalSet":
  11349. if e.complexity.RefundLineItem.SubtotalSet == nil {
  11350. break
  11351. }
  11352. return e.complexity.RefundLineItem.SubtotalSet(childComplexity), true
  11353. case "RefundLineItem.totalTaxSet":
  11354. if e.complexity.RefundLineItem.TotalTaxSet == nil {
  11355. break
  11356. }
  11357. return e.complexity.RefundLineItem.TotalTaxSet(childComplexity), true
  11358. case "RefundLineItemConnection.edges":
  11359. if e.complexity.RefundLineItemConnection.Edges == nil {
  11360. break
  11361. }
  11362. return e.complexity.RefundLineItemConnection.Edges(childComplexity), true
  11363. case "RefundLineItemConnection.nodes":
  11364. if e.complexity.RefundLineItemConnection.Nodes == nil {
  11365. break
  11366. }
  11367. return e.complexity.RefundLineItemConnection.Nodes(childComplexity), true
  11368. case "RefundLineItemConnection.pageInfo":
  11369. if e.complexity.RefundLineItemConnection.PageInfo == nil {
  11370. break
  11371. }
  11372. return e.complexity.RefundLineItemConnection.PageInfo(childComplexity), true
  11373. case "RefundLineItemEdge.cursor":
  11374. if e.complexity.RefundLineItemEdge.Cursor == nil {
  11375. break
  11376. }
  11377. return e.complexity.RefundLineItemEdge.Cursor(childComplexity), true
  11378. case "RefundLineItemEdge.node":
  11379. if e.complexity.RefundLineItemEdge.Node == nil {
  11380. break
  11381. }
  11382. return e.complexity.RefundLineItemEdge.Node(childComplexity), true
  11383. case "ResourceAlert.actions":
  11384. if e.complexity.ResourceAlert.Actions == nil {
  11385. break
  11386. }
  11387. return e.complexity.ResourceAlert.Actions(childComplexity), true
  11388. case "ResourceAlert.content":
  11389. if e.complexity.ResourceAlert.Content == nil {
  11390. break
  11391. }
  11392. return e.complexity.ResourceAlert.Content(childComplexity), true
  11393. case "ResourceAlert.dismissibleHandle":
  11394. if e.complexity.ResourceAlert.DismissibleHandle == nil {
  11395. break
  11396. }
  11397. return e.complexity.ResourceAlert.DismissibleHandle(childComplexity), true
  11398. case "ResourceAlert.icon":
  11399. if e.complexity.ResourceAlert.Icon == nil {
  11400. break
  11401. }
  11402. return e.complexity.ResourceAlert.Icon(childComplexity), true
  11403. case "ResourceAlert.severity":
  11404. if e.complexity.ResourceAlert.Severity == nil {
  11405. break
  11406. }
  11407. return e.complexity.ResourceAlert.Severity(childComplexity), true
  11408. case "ResourceAlert.title":
  11409. if e.complexity.ResourceAlert.Title == nil {
  11410. break
  11411. }
  11412. return e.complexity.ResourceAlert.Title(childComplexity), true
  11413. case "ResourceAlertAction.primary":
  11414. if e.complexity.ResourceAlertAction.Primary == nil {
  11415. break
  11416. }
  11417. return e.complexity.ResourceAlertAction.Primary(childComplexity), true
  11418. case "ResourceAlertAction.show":
  11419. if e.complexity.ResourceAlertAction.Show == nil {
  11420. break
  11421. }
  11422. return e.complexity.ResourceAlertAction.Show(childComplexity), true
  11423. case "ResourceAlertAction.title":
  11424. if e.complexity.ResourceAlertAction.Title == nil {
  11425. break
  11426. }
  11427. return e.complexity.ResourceAlertAction.Title(childComplexity), true
  11428. case "ResourceAlertAction.url":
  11429. if e.complexity.ResourceAlertAction.URL == nil {
  11430. break
  11431. }
  11432. return e.complexity.ResourceAlertAction.URL(childComplexity), true
  11433. case "ResourceFeedback.details":
  11434. if e.complexity.ResourceFeedback.Details == nil {
  11435. break
  11436. }
  11437. return e.complexity.ResourceFeedback.Details(childComplexity), true
  11438. case "ResourceFeedback.summary":
  11439. if e.complexity.ResourceFeedback.Summary == nil {
  11440. break
  11441. }
  11442. return e.complexity.ResourceFeedback.Summary(childComplexity), true
  11443. case "ResourceLimit.available":
  11444. if e.complexity.ResourceLimit.Available == nil {
  11445. break
  11446. }
  11447. return e.complexity.ResourceLimit.Available(childComplexity), true
  11448. case "ResourceLimit.quantityAvailable":
  11449. if e.complexity.ResourceLimit.QuantityAvailable == nil {
  11450. break
  11451. }
  11452. return e.complexity.ResourceLimit.QuantityAvailable(childComplexity), true
  11453. case "ResourceLimit.quantityLimit":
  11454. if e.complexity.ResourceLimit.QuantityLimit == nil {
  11455. break
  11456. }
  11457. return e.complexity.ResourceLimit.QuantityLimit(childComplexity), true
  11458. case "ResourceLimit.quantityUsed":
  11459. if e.complexity.ResourceLimit.QuantityUsed == nil {
  11460. break
  11461. }
  11462. return e.complexity.ResourceLimit.QuantityUsed(childComplexity), true
  11463. case "ResourcePublication.isPublished":
  11464. if e.complexity.ResourcePublication.IsPublished == nil {
  11465. break
  11466. }
  11467. return e.complexity.ResourcePublication.IsPublished(childComplexity), true
  11468. case "ResourcePublication.publication":
  11469. if e.complexity.ResourcePublication.Publication == nil {
  11470. break
  11471. }
  11472. return e.complexity.ResourcePublication.Publication(childComplexity), true
  11473. case "ResourcePublication.publishDate":
  11474. if e.complexity.ResourcePublication.PublishDate == nil {
  11475. break
  11476. }
  11477. return e.complexity.ResourcePublication.PublishDate(childComplexity), true
  11478. case "ResourcePublication.publishable":
  11479. if e.complexity.ResourcePublication.Publishable == nil {
  11480. break
  11481. }
  11482. return e.complexity.ResourcePublication.Publishable(childComplexity), true
  11483. case "ResourcePublicationConnection.edges":
  11484. if e.complexity.ResourcePublicationConnection.Edges == nil {
  11485. break
  11486. }
  11487. return e.complexity.ResourcePublicationConnection.Edges(childComplexity), true
  11488. case "ResourcePublicationConnection.nodes":
  11489. if e.complexity.ResourcePublicationConnection.Nodes == nil {
  11490. break
  11491. }
  11492. return e.complexity.ResourcePublicationConnection.Nodes(childComplexity), true
  11493. case "ResourcePublicationConnection.pageInfo":
  11494. if e.complexity.ResourcePublicationConnection.PageInfo == nil {
  11495. break
  11496. }
  11497. return e.complexity.ResourcePublicationConnection.PageInfo(childComplexity), true
  11498. case "ResourcePublicationEdge.cursor":
  11499. if e.complexity.ResourcePublicationEdge.Cursor == nil {
  11500. break
  11501. }
  11502. return e.complexity.ResourcePublicationEdge.Cursor(childComplexity), true
  11503. case "ResourcePublicationEdge.node":
  11504. if e.complexity.ResourcePublicationEdge.Node == nil {
  11505. break
  11506. }
  11507. return e.complexity.ResourcePublicationEdge.Node(childComplexity), true
  11508. case "ResourcePublicationV2.isPublished":
  11509. if e.complexity.ResourcePublicationV2.IsPublished == nil {
  11510. break
  11511. }
  11512. return e.complexity.ResourcePublicationV2.IsPublished(childComplexity), true
  11513. case "ResourcePublicationV2.publication":
  11514. if e.complexity.ResourcePublicationV2.Publication == nil {
  11515. break
  11516. }
  11517. return e.complexity.ResourcePublicationV2.Publication(childComplexity), true
  11518. case "ResourcePublicationV2.publishDate":
  11519. if e.complexity.ResourcePublicationV2.PublishDate == nil {
  11520. break
  11521. }
  11522. return e.complexity.ResourcePublicationV2.PublishDate(childComplexity), true
  11523. case "ResourcePublicationV2.publishable":
  11524. if e.complexity.ResourcePublicationV2.Publishable == nil {
  11525. break
  11526. }
  11527. return e.complexity.ResourcePublicationV2.Publishable(childComplexity), true
  11528. case "ResourcePublicationV2Connection.edges":
  11529. if e.complexity.ResourcePublicationV2Connection.Edges == nil {
  11530. break
  11531. }
  11532. return e.complexity.ResourcePublicationV2Connection.Edges(childComplexity), true
  11533. case "ResourcePublicationV2Connection.nodes":
  11534. if e.complexity.ResourcePublicationV2Connection.Nodes == nil {
  11535. break
  11536. }
  11537. return e.complexity.ResourcePublicationV2Connection.Nodes(childComplexity), true
  11538. case "ResourcePublicationV2Connection.pageInfo":
  11539. if e.complexity.ResourcePublicationV2Connection.PageInfo == nil {
  11540. break
  11541. }
  11542. return e.complexity.ResourcePublicationV2Connection.PageInfo(childComplexity), true
  11543. case "ResourcePublicationV2Edge.cursor":
  11544. if e.complexity.ResourcePublicationV2Edge.Cursor == nil {
  11545. break
  11546. }
  11547. return e.complexity.ResourcePublicationV2Edge.Cursor(childComplexity), true
  11548. case "ResourcePublicationV2Edge.node":
  11549. if e.complexity.ResourcePublicationV2Edge.Node == nil {
  11550. break
  11551. }
  11552. return e.complexity.ResourcePublicationV2Edge.Node(childComplexity), true
  11553. case "SEO.description":
  11554. if e.complexity.SEO.Description == nil {
  11555. break
  11556. }
  11557. return e.complexity.SEO.Description(childComplexity), true
  11558. case "SEO.title":
  11559. if e.complexity.SEO.Title == nil {
  11560. break
  11561. }
  11562. return e.complexity.SEO.Title(childComplexity), true
  11563. case "SaleConnection.edges":
  11564. if e.complexity.SaleConnection.Edges == nil {
  11565. break
  11566. }
  11567. return e.complexity.SaleConnection.Edges(childComplexity), true
  11568. case "SaleConnection.nodes":
  11569. if e.complexity.SaleConnection.Nodes == nil {
  11570. break
  11571. }
  11572. return e.complexity.SaleConnection.Nodes(childComplexity), true
  11573. case "SaleConnection.pageInfo":
  11574. if e.complexity.SaleConnection.PageInfo == nil {
  11575. break
  11576. }
  11577. return e.complexity.SaleConnection.PageInfo(childComplexity), true
  11578. case "SaleEdge.cursor":
  11579. if e.complexity.SaleEdge.Cursor == nil {
  11580. break
  11581. }
  11582. return e.complexity.SaleEdge.Cursor(childComplexity), true
  11583. case "SaleEdge.node":
  11584. if e.complexity.SaleEdge.Node == nil {
  11585. break
  11586. }
  11587. return e.complexity.SaleEdge.Node(childComplexity), true
  11588. case "SaleTax.amount":
  11589. if e.complexity.SaleTax.Amount == nil {
  11590. break
  11591. }
  11592. return e.complexity.SaleTax.Amount(childComplexity), true
  11593. case "SaleTax.id":
  11594. if e.complexity.SaleTax.ID == nil {
  11595. break
  11596. }
  11597. return e.complexity.SaleTax.ID(childComplexity), true
  11598. case "SaleTax.taxLine":
  11599. if e.complexity.SaleTax.TaxLine == nil {
  11600. break
  11601. }
  11602. return e.complexity.SaleTax.TaxLine(childComplexity), true
  11603. case "SalesAgreementConnection.edges":
  11604. if e.complexity.SalesAgreementConnection.Edges == nil {
  11605. break
  11606. }
  11607. return e.complexity.SalesAgreementConnection.Edges(childComplexity), true
  11608. case "SalesAgreementConnection.nodes":
  11609. if e.complexity.SalesAgreementConnection.Nodes == nil {
  11610. break
  11611. }
  11612. return e.complexity.SalesAgreementConnection.Nodes(childComplexity), true
  11613. case "SalesAgreementConnection.pageInfo":
  11614. if e.complexity.SalesAgreementConnection.PageInfo == nil {
  11615. break
  11616. }
  11617. return e.complexity.SalesAgreementConnection.PageInfo(childComplexity), true
  11618. case "SalesAgreementEdge.cursor":
  11619. if e.complexity.SalesAgreementEdge.Cursor == nil {
  11620. break
  11621. }
  11622. return e.complexity.SalesAgreementEdge.Cursor(childComplexity), true
  11623. case "SalesAgreementEdge.node":
  11624. if e.complexity.SalesAgreementEdge.Node == nil {
  11625. break
  11626. }
  11627. return e.complexity.SalesAgreementEdge.Node(childComplexity), true
  11628. case "SavedSearch.filters":
  11629. if e.complexity.SavedSearch.Filters == nil {
  11630. break
  11631. }
  11632. return e.complexity.SavedSearch.Filters(childComplexity), true
  11633. case "SavedSearch.id":
  11634. if e.complexity.SavedSearch.ID == nil {
  11635. break
  11636. }
  11637. return e.complexity.SavedSearch.ID(childComplexity), true
  11638. case "SavedSearch.legacyResourceId":
  11639. if e.complexity.SavedSearch.LegacyResourceID == nil {
  11640. break
  11641. }
  11642. return e.complexity.SavedSearch.LegacyResourceID(childComplexity), true
  11643. case "SavedSearch.name":
  11644. if e.complexity.SavedSearch.Name == nil {
  11645. break
  11646. }
  11647. return e.complexity.SavedSearch.Name(childComplexity), true
  11648. case "SavedSearch.query":
  11649. if e.complexity.SavedSearch.Query == nil {
  11650. break
  11651. }
  11652. return e.complexity.SavedSearch.Query(childComplexity), true
  11653. case "SavedSearch.resourceType":
  11654. if e.complexity.SavedSearch.ResourceType == nil {
  11655. break
  11656. }
  11657. return e.complexity.SavedSearch.ResourceType(childComplexity), true
  11658. case "SavedSearch.searchTerms":
  11659. if e.complexity.SavedSearch.SearchTerms == nil {
  11660. break
  11661. }
  11662. return e.complexity.SavedSearch.SearchTerms(childComplexity), true
  11663. case "SavedSearchConnection.edges":
  11664. if e.complexity.SavedSearchConnection.Edges == nil {
  11665. break
  11666. }
  11667. return e.complexity.SavedSearchConnection.Edges(childComplexity), true
  11668. case "SavedSearchConnection.nodes":
  11669. if e.complexity.SavedSearchConnection.Nodes == nil {
  11670. break
  11671. }
  11672. return e.complexity.SavedSearchConnection.Nodes(childComplexity), true
  11673. case "SavedSearchConnection.pageInfo":
  11674. if e.complexity.SavedSearchConnection.PageInfo == nil {
  11675. break
  11676. }
  11677. return e.complexity.SavedSearchConnection.PageInfo(childComplexity), true
  11678. case "SavedSearchEdge.cursor":
  11679. if e.complexity.SavedSearchEdge.Cursor == nil {
  11680. break
  11681. }
  11682. return e.complexity.SavedSearchEdge.Cursor(childComplexity), true
  11683. case "SavedSearchEdge.node":
  11684. if e.complexity.SavedSearchEdge.Node == nil {
  11685. break
  11686. }
  11687. return e.complexity.SavedSearchEdge.Node(childComplexity), true
  11688. case "ScriptDiscountApplication.allocationMethod":
  11689. if e.complexity.ScriptDiscountApplication.AllocationMethod == nil {
  11690. break
  11691. }
  11692. return e.complexity.ScriptDiscountApplication.AllocationMethod(childComplexity), true
  11693. case "ScriptDiscountApplication.index":
  11694. if e.complexity.ScriptDiscountApplication.Index == nil {
  11695. break
  11696. }
  11697. return e.complexity.ScriptDiscountApplication.Index(childComplexity), true
  11698. case "ScriptDiscountApplication.targetSelection":
  11699. if e.complexity.ScriptDiscountApplication.TargetSelection == nil {
  11700. break
  11701. }
  11702. return e.complexity.ScriptDiscountApplication.TargetSelection(childComplexity), true
  11703. case "ScriptDiscountApplication.targetType":
  11704. if e.complexity.ScriptDiscountApplication.TargetType == nil {
  11705. break
  11706. }
  11707. return e.complexity.ScriptDiscountApplication.TargetType(childComplexity), true
  11708. case "ScriptDiscountApplication.title":
  11709. if e.complexity.ScriptDiscountApplication.Title == nil {
  11710. break
  11711. }
  11712. return e.complexity.ScriptDiscountApplication.Title(childComplexity), true
  11713. case "ScriptDiscountApplication.value":
  11714. if e.complexity.ScriptDiscountApplication.Value == nil {
  11715. break
  11716. }
  11717. return e.complexity.ScriptDiscountApplication.Value(childComplexity), true
  11718. case "SearchFilter.key":
  11719. if e.complexity.SearchFilter.Key == nil {
  11720. break
  11721. }
  11722. return e.complexity.SearchFilter.Key(childComplexity), true
  11723. case "SearchFilter.value":
  11724. if e.complexity.SearchFilter.Value == nil {
  11725. break
  11726. }
  11727. return e.complexity.SearchFilter.Value(childComplexity), true
  11728. case "SearchFilterOptions.productAvailability":
  11729. if e.complexity.SearchFilterOptions.ProductAvailability == nil {
  11730. break
  11731. }
  11732. return e.complexity.SearchFilterOptions.ProductAvailability(childComplexity), true
  11733. case "SearchResult.description":
  11734. if e.complexity.SearchResult.Description == nil {
  11735. break
  11736. }
  11737. return e.complexity.SearchResult.Description(childComplexity), true
  11738. case "SearchResult.image":
  11739. if e.complexity.SearchResult.Image == nil {
  11740. break
  11741. }
  11742. return e.complexity.SearchResult.Image(childComplexity), true
  11743. case "SearchResult.reference":
  11744. if e.complexity.SearchResult.Reference == nil {
  11745. break
  11746. }
  11747. return e.complexity.SearchResult.Reference(childComplexity), true
  11748. case "SearchResult.title":
  11749. if e.complexity.SearchResult.Title == nil {
  11750. break
  11751. }
  11752. return e.complexity.SearchResult.Title(childComplexity), true
  11753. case "SearchResult.url":
  11754. if e.complexity.SearchResult.URL == nil {
  11755. break
  11756. }
  11757. return e.complexity.SearchResult.URL(childComplexity), true
  11758. case "SearchResultConnection.edges":
  11759. if e.complexity.SearchResultConnection.Edges == nil {
  11760. break
  11761. }
  11762. return e.complexity.SearchResultConnection.Edges(childComplexity), true
  11763. case "SearchResultConnection.pageInfo":
  11764. if e.complexity.SearchResultConnection.PageInfo == nil {
  11765. break
  11766. }
  11767. return e.complexity.SearchResultConnection.PageInfo(childComplexity), true
  11768. case "SearchResultEdge.cursor":
  11769. if e.complexity.SearchResultEdge.Cursor == nil {
  11770. break
  11771. }
  11772. return e.complexity.SearchResultEdge.Cursor(childComplexity), true
  11773. case "SearchResultEdge.node":
  11774. if e.complexity.SearchResultEdge.Node == nil {
  11775. break
  11776. }
  11777. return e.complexity.SearchResultEdge.Node(childComplexity), true
  11778. case "SelectedOption.name":
  11779. if e.complexity.SelectedOption.Name == nil {
  11780. break
  11781. }
  11782. return e.complexity.SelectedOption.Name(childComplexity), true
  11783. case "SelectedOption.value":
  11784. if e.complexity.SelectedOption.Value == nil {
  11785. break
  11786. }
  11787. return e.complexity.SelectedOption.Value(childComplexity), true
  11788. case "SellingPlan.billingPolicy":
  11789. if e.complexity.SellingPlan.BillingPolicy == nil {
  11790. break
  11791. }
  11792. return e.complexity.SellingPlan.BillingPolicy(childComplexity), true
  11793. case "SellingPlan.category":
  11794. if e.complexity.SellingPlan.Category == nil {
  11795. break
  11796. }
  11797. return e.complexity.SellingPlan.Category(childComplexity), true
  11798. case "SellingPlan.createdAt":
  11799. if e.complexity.SellingPlan.CreatedAt == nil {
  11800. break
  11801. }
  11802. return e.complexity.SellingPlan.CreatedAt(childComplexity), true
  11803. case "SellingPlan.deliveryPolicy":
  11804. if e.complexity.SellingPlan.DeliveryPolicy == nil {
  11805. break
  11806. }
  11807. return e.complexity.SellingPlan.DeliveryPolicy(childComplexity), true
  11808. case "SellingPlan.description":
  11809. if e.complexity.SellingPlan.Description == nil {
  11810. break
  11811. }
  11812. return e.complexity.SellingPlan.Description(childComplexity), true
  11813. case "SellingPlan.id":
  11814. if e.complexity.SellingPlan.ID == nil {
  11815. break
  11816. }
  11817. return e.complexity.SellingPlan.ID(childComplexity), true
  11818. case "SellingPlan.inventoryPolicy":
  11819. if e.complexity.SellingPlan.InventoryPolicy == nil {
  11820. break
  11821. }
  11822. return e.complexity.SellingPlan.InventoryPolicy(childComplexity), true
  11823. case "SellingPlan.name":
  11824. if e.complexity.SellingPlan.Name == nil {
  11825. break
  11826. }
  11827. return e.complexity.SellingPlan.Name(childComplexity), true
  11828. case "SellingPlan.options":
  11829. if e.complexity.SellingPlan.Options == nil {
  11830. break
  11831. }
  11832. return e.complexity.SellingPlan.Options(childComplexity), true
  11833. case "SellingPlan.position":
  11834. if e.complexity.SellingPlan.Position == nil {
  11835. break
  11836. }
  11837. return e.complexity.SellingPlan.Position(childComplexity), true
  11838. case "SellingPlan.pricingPolicies":
  11839. if e.complexity.SellingPlan.PricingPolicies == nil {
  11840. break
  11841. }
  11842. return e.complexity.SellingPlan.PricingPolicies(childComplexity), true
  11843. case "SellingPlanAnchor.cutoffDay":
  11844. if e.complexity.SellingPlanAnchor.CutoffDay == nil {
  11845. break
  11846. }
  11847. return e.complexity.SellingPlanAnchor.CutoffDay(childComplexity), true
  11848. case "SellingPlanAnchor.day":
  11849. if e.complexity.SellingPlanAnchor.Day == nil {
  11850. break
  11851. }
  11852. return e.complexity.SellingPlanAnchor.Day(childComplexity), true
  11853. case "SellingPlanAnchor.month":
  11854. if e.complexity.SellingPlanAnchor.Month == nil {
  11855. break
  11856. }
  11857. return e.complexity.SellingPlanAnchor.Month(childComplexity), true
  11858. case "SellingPlanAnchor.type":
  11859. if e.complexity.SellingPlanAnchor.Type == nil {
  11860. break
  11861. }
  11862. return e.complexity.SellingPlanAnchor.Type(childComplexity), true
  11863. case "SellingPlanCheckoutCharge.type":
  11864. if e.complexity.SellingPlanCheckoutCharge.Type == nil {
  11865. break
  11866. }
  11867. return e.complexity.SellingPlanCheckoutCharge.Type(childComplexity), true
  11868. case "SellingPlanCheckoutCharge.value":
  11869. if e.complexity.SellingPlanCheckoutCharge.Value == nil {
  11870. break
  11871. }
  11872. return e.complexity.SellingPlanCheckoutCharge.Value(childComplexity), true
  11873. case "SellingPlanCheckoutChargePercentageValue.percentage":
  11874. if e.complexity.SellingPlanCheckoutChargePercentageValue.Percentage == nil {
  11875. break
  11876. }
  11877. return e.complexity.SellingPlanCheckoutChargePercentageValue.Percentage(childComplexity), true
  11878. case "SellingPlanConnection.edges":
  11879. if e.complexity.SellingPlanConnection.Edges == nil {
  11880. break
  11881. }
  11882. return e.complexity.SellingPlanConnection.Edges(childComplexity), true
  11883. case "SellingPlanConnection.nodes":
  11884. if e.complexity.SellingPlanConnection.Nodes == nil {
  11885. break
  11886. }
  11887. return e.complexity.SellingPlanConnection.Nodes(childComplexity), true
  11888. case "SellingPlanConnection.pageInfo":
  11889. if e.complexity.SellingPlanConnection.PageInfo == nil {
  11890. break
  11891. }
  11892. return e.complexity.SellingPlanConnection.PageInfo(childComplexity), true
  11893. case "SellingPlanEdge.cursor":
  11894. if e.complexity.SellingPlanEdge.Cursor == nil {
  11895. break
  11896. }
  11897. return e.complexity.SellingPlanEdge.Cursor(childComplexity), true
  11898. case "SellingPlanEdge.node":
  11899. if e.complexity.SellingPlanEdge.Node == nil {
  11900. break
  11901. }
  11902. return e.complexity.SellingPlanEdge.Node(childComplexity), true
  11903. case "SellingPlanFixedBillingPolicy.checkoutCharge":
  11904. if e.complexity.SellingPlanFixedBillingPolicy.CheckoutCharge == nil {
  11905. break
  11906. }
  11907. return e.complexity.SellingPlanFixedBillingPolicy.CheckoutCharge(childComplexity), true
  11908. case "SellingPlanFixedBillingPolicy.remainingBalanceChargeExactTime":
  11909. if e.complexity.SellingPlanFixedBillingPolicy.RemainingBalanceChargeExactTime == nil {
  11910. break
  11911. }
  11912. return e.complexity.SellingPlanFixedBillingPolicy.RemainingBalanceChargeExactTime(childComplexity), true
  11913. case "SellingPlanFixedBillingPolicy.remainingBalanceChargeTimeAfterCheckout":
  11914. if e.complexity.SellingPlanFixedBillingPolicy.RemainingBalanceChargeTimeAfterCheckout == nil {
  11915. break
  11916. }
  11917. return e.complexity.SellingPlanFixedBillingPolicy.RemainingBalanceChargeTimeAfterCheckout(childComplexity), true
  11918. case "SellingPlanFixedBillingPolicy.remainingBalanceChargeTrigger":
  11919. if e.complexity.SellingPlanFixedBillingPolicy.RemainingBalanceChargeTrigger == nil {
  11920. break
  11921. }
  11922. return e.complexity.SellingPlanFixedBillingPolicy.RemainingBalanceChargeTrigger(childComplexity), true
  11923. case "SellingPlanFixedDeliveryPolicy.anchors":
  11924. if e.complexity.SellingPlanFixedDeliveryPolicy.Anchors == nil {
  11925. break
  11926. }
  11927. return e.complexity.SellingPlanFixedDeliveryPolicy.Anchors(childComplexity), true
  11928. case "SellingPlanFixedDeliveryPolicy.cutoff":
  11929. if e.complexity.SellingPlanFixedDeliveryPolicy.Cutoff == nil {
  11930. break
  11931. }
  11932. return e.complexity.SellingPlanFixedDeliveryPolicy.Cutoff(childComplexity), true
  11933. case "SellingPlanFixedDeliveryPolicy.fulfillmentExactTime":
  11934. if e.complexity.SellingPlanFixedDeliveryPolicy.FulfillmentExactTime == nil {
  11935. break
  11936. }
  11937. return e.complexity.SellingPlanFixedDeliveryPolicy.FulfillmentExactTime(childComplexity), true
  11938. case "SellingPlanFixedDeliveryPolicy.fulfillmentTrigger":
  11939. if e.complexity.SellingPlanFixedDeliveryPolicy.FulfillmentTrigger == nil {
  11940. break
  11941. }
  11942. return e.complexity.SellingPlanFixedDeliveryPolicy.FulfillmentTrigger(childComplexity), true
  11943. case "SellingPlanFixedDeliveryPolicy.intent":
  11944. if e.complexity.SellingPlanFixedDeliveryPolicy.Intent == nil {
  11945. break
  11946. }
  11947. return e.complexity.SellingPlanFixedDeliveryPolicy.Intent(childComplexity), true
  11948. case "SellingPlanFixedDeliveryPolicy.preAnchorBehavior":
  11949. if e.complexity.SellingPlanFixedDeliveryPolicy.PreAnchorBehavior == nil {
  11950. break
  11951. }
  11952. return e.complexity.SellingPlanFixedDeliveryPolicy.PreAnchorBehavior(childComplexity), true
  11953. case "SellingPlanFixedPricingPolicy.adjustmentType":
  11954. if e.complexity.SellingPlanFixedPricingPolicy.AdjustmentType == nil {
  11955. break
  11956. }
  11957. return e.complexity.SellingPlanFixedPricingPolicy.AdjustmentType(childComplexity), true
  11958. case "SellingPlanFixedPricingPolicy.adjustmentValue":
  11959. if e.complexity.SellingPlanFixedPricingPolicy.AdjustmentValue == nil {
  11960. break
  11961. }
  11962. return e.complexity.SellingPlanFixedPricingPolicy.AdjustmentValue(childComplexity), true
  11963. case "SellingPlanFixedPricingPolicy.createdAt":
  11964. if e.complexity.SellingPlanFixedPricingPolicy.CreatedAt == nil {
  11965. break
  11966. }
  11967. return e.complexity.SellingPlanFixedPricingPolicy.CreatedAt(childComplexity), true
  11968. case "SellingPlanGroup.appId":
  11969. if e.complexity.SellingPlanGroup.AppID == nil {
  11970. break
  11971. }
  11972. return e.complexity.SellingPlanGroup.AppID(childComplexity), true
  11973. case "SellingPlanGroup.appliesToProduct":
  11974. if e.complexity.SellingPlanGroup.AppliesToProduct == nil {
  11975. break
  11976. }
  11977. args, err := ec.field_SellingPlanGroup_appliesToProduct_args(context.TODO(), rawArgs)
  11978. if err != nil {
  11979. return 0, false
  11980. }
  11981. return e.complexity.SellingPlanGroup.AppliesToProduct(childComplexity, args["productId"].(string)), true
  11982. case "SellingPlanGroup.appliesToProductVariant":
  11983. if e.complexity.SellingPlanGroup.AppliesToProductVariant == nil {
  11984. break
  11985. }
  11986. args, err := ec.field_SellingPlanGroup_appliesToProductVariant_args(context.TODO(), rawArgs)
  11987. if err != nil {
  11988. return 0, false
  11989. }
  11990. return e.complexity.SellingPlanGroup.AppliesToProductVariant(childComplexity, args["productVariantId"].(string)), true
  11991. case "SellingPlanGroup.appliesToProductVariants":
  11992. if e.complexity.SellingPlanGroup.AppliesToProductVariants == nil {
  11993. break
  11994. }
  11995. args, err := ec.field_SellingPlanGroup_appliesToProductVariants_args(context.TODO(), rawArgs)
  11996. if err != nil {
  11997. return 0, false
  11998. }
  11999. return e.complexity.SellingPlanGroup.AppliesToProductVariants(childComplexity, args["productId"].(string)), true
  12000. case "SellingPlanGroup.createdAt":
  12001. if e.complexity.SellingPlanGroup.CreatedAt == nil {
  12002. break
  12003. }
  12004. return e.complexity.SellingPlanGroup.CreatedAt(childComplexity), true
  12005. case "SellingPlanGroup.description":
  12006. if e.complexity.SellingPlanGroup.Description == nil {
  12007. break
  12008. }
  12009. return e.complexity.SellingPlanGroup.Description(childComplexity), true
  12010. case "SellingPlanGroup.id":
  12011. if e.complexity.SellingPlanGroup.ID == nil {
  12012. break
  12013. }
  12014. return e.complexity.SellingPlanGroup.ID(childComplexity), true
  12015. case "SellingPlanGroup.merchantCode":
  12016. if e.complexity.SellingPlanGroup.MerchantCode == nil {
  12017. break
  12018. }
  12019. return e.complexity.SellingPlanGroup.MerchantCode(childComplexity), true
  12020. case "SellingPlanGroup.name":
  12021. if e.complexity.SellingPlanGroup.Name == nil {
  12022. break
  12023. }
  12024. return e.complexity.SellingPlanGroup.Name(childComplexity), true
  12025. case "SellingPlanGroup.options":
  12026. if e.complexity.SellingPlanGroup.Options == nil {
  12027. break
  12028. }
  12029. return e.complexity.SellingPlanGroup.Options(childComplexity), true
  12030. case "SellingPlanGroup.position":
  12031. if e.complexity.SellingPlanGroup.Position == nil {
  12032. break
  12033. }
  12034. return e.complexity.SellingPlanGroup.Position(childComplexity), true
  12035. case "SellingPlanGroup.productCount":
  12036. if e.complexity.SellingPlanGroup.ProductCount == nil {
  12037. break
  12038. }
  12039. return e.complexity.SellingPlanGroup.ProductCount(childComplexity), true
  12040. case "SellingPlanGroup.productVariantCount":
  12041. if e.complexity.SellingPlanGroup.ProductVariantCount == nil {
  12042. break
  12043. }
  12044. args, err := ec.field_SellingPlanGroup_productVariantCount_args(context.TODO(), rawArgs)
  12045. if err != nil {
  12046. return 0, false
  12047. }
  12048. return e.complexity.SellingPlanGroup.ProductVariantCount(childComplexity, args["productId"].(*string)), true
  12049. case "SellingPlanGroup.productVariants":
  12050. if e.complexity.SellingPlanGroup.ProductVariants == nil {
  12051. break
  12052. }
  12053. args, err := ec.field_SellingPlanGroup_productVariants_args(context.TODO(), rawArgs)
  12054. if err != nil {
  12055. return 0, false
  12056. }
  12057. return e.complexity.SellingPlanGroup.ProductVariants(childComplexity, args["productId"].(*string), args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  12058. case "SellingPlanGroup.products":
  12059. if e.complexity.SellingPlanGroup.Products == nil {
  12060. break
  12061. }
  12062. args, err := ec.field_SellingPlanGroup_products_args(context.TODO(), rawArgs)
  12063. if err != nil {
  12064. return 0, false
  12065. }
  12066. return e.complexity.SellingPlanGroup.Products(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  12067. case "SellingPlanGroup.sellingPlans":
  12068. if e.complexity.SellingPlanGroup.SellingPlans == nil {
  12069. break
  12070. }
  12071. args, err := ec.field_SellingPlanGroup_sellingPlans_args(context.TODO(), rawArgs)
  12072. if err != nil {
  12073. return 0, false
  12074. }
  12075. return e.complexity.SellingPlanGroup.SellingPlans(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  12076. case "SellingPlanGroup.summary":
  12077. if e.complexity.SellingPlanGroup.Summary == nil {
  12078. break
  12079. }
  12080. return e.complexity.SellingPlanGroup.Summary(childComplexity), true
  12081. case "SellingPlanGroupConnection.edges":
  12082. if e.complexity.SellingPlanGroupConnection.Edges == nil {
  12083. break
  12084. }
  12085. return e.complexity.SellingPlanGroupConnection.Edges(childComplexity), true
  12086. case "SellingPlanGroupConnection.nodes":
  12087. if e.complexity.SellingPlanGroupConnection.Nodes == nil {
  12088. break
  12089. }
  12090. return e.complexity.SellingPlanGroupConnection.Nodes(childComplexity), true
  12091. case "SellingPlanGroupConnection.pageInfo":
  12092. if e.complexity.SellingPlanGroupConnection.PageInfo == nil {
  12093. break
  12094. }
  12095. return e.complexity.SellingPlanGroupConnection.PageInfo(childComplexity), true
  12096. case "SellingPlanGroupEdge.cursor":
  12097. if e.complexity.SellingPlanGroupEdge.Cursor == nil {
  12098. break
  12099. }
  12100. return e.complexity.SellingPlanGroupEdge.Cursor(childComplexity), true
  12101. case "SellingPlanGroupEdge.node":
  12102. if e.complexity.SellingPlanGroupEdge.Node == nil {
  12103. break
  12104. }
  12105. return e.complexity.SellingPlanGroupEdge.Node(childComplexity), true
  12106. case "SellingPlanGroupUserError.code":
  12107. if e.complexity.SellingPlanGroupUserError.Code == nil {
  12108. break
  12109. }
  12110. return e.complexity.SellingPlanGroupUserError.Code(childComplexity), true
  12111. case "SellingPlanGroupUserError.field":
  12112. if e.complexity.SellingPlanGroupUserError.Field == nil {
  12113. break
  12114. }
  12115. return e.complexity.SellingPlanGroupUserError.Field(childComplexity), true
  12116. case "SellingPlanGroupUserError.message":
  12117. if e.complexity.SellingPlanGroupUserError.Message == nil {
  12118. break
  12119. }
  12120. return e.complexity.SellingPlanGroupUserError.Message(childComplexity), true
  12121. case "SellingPlanInventoryPolicy.reserve":
  12122. if e.complexity.SellingPlanInventoryPolicy.Reserve == nil {
  12123. break
  12124. }
  12125. return e.complexity.SellingPlanInventoryPolicy.Reserve(childComplexity), true
  12126. case "SellingPlanPricingPolicyPercentageValue.percentage":
  12127. if e.complexity.SellingPlanPricingPolicyPercentageValue.Percentage == nil {
  12128. break
  12129. }
  12130. return e.complexity.SellingPlanPricingPolicyPercentageValue.Percentage(childComplexity), true
  12131. case "SellingPlanRecurringBillingPolicy.anchors":
  12132. if e.complexity.SellingPlanRecurringBillingPolicy.Anchors == nil {
  12133. break
  12134. }
  12135. return e.complexity.SellingPlanRecurringBillingPolicy.Anchors(childComplexity), true
  12136. case "SellingPlanRecurringBillingPolicy.createdAt":
  12137. if e.complexity.SellingPlanRecurringBillingPolicy.CreatedAt == nil {
  12138. break
  12139. }
  12140. return e.complexity.SellingPlanRecurringBillingPolicy.CreatedAt(childComplexity), true
  12141. case "SellingPlanRecurringBillingPolicy.interval":
  12142. if e.complexity.SellingPlanRecurringBillingPolicy.Interval == nil {
  12143. break
  12144. }
  12145. return e.complexity.SellingPlanRecurringBillingPolicy.Interval(childComplexity), true
  12146. case "SellingPlanRecurringBillingPolicy.intervalCount":
  12147. if e.complexity.SellingPlanRecurringBillingPolicy.IntervalCount == nil {
  12148. break
  12149. }
  12150. return e.complexity.SellingPlanRecurringBillingPolicy.IntervalCount(childComplexity), true
  12151. case "SellingPlanRecurringBillingPolicy.maxCycles":
  12152. if e.complexity.SellingPlanRecurringBillingPolicy.MaxCycles == nil {
  12153. break
  12154. }
  12155. return e.complexity.SellingPlanRecurringBillingPolicy.MaxCycles(childComplexity), true
  12156. case "SellingPlanRecurringBillingPolicy.minCycles":
  12157. if e.complexity.SellingPlanRecurringBillingPolicy.MinCycles == nil {
  12158. break
  12159. }
  12160. return e.complexity.SellingPlanRecurringBillingPolicy.MinCycles(childComplexity), true
  12161. case "SellingPlanRecurringDeliveryPolicy.anchors":
  12162. if e.complexity.SellingPlanRecurringDeliveryPolicy.Anchors == nil {
  12163. break
  12164. }
  12165. return e.complexity.SellingPlanRecurringDeliveryPolicy.Anchors(childComplexity), true
  12166. case "SellingPlanRecurringDeliveryPolicy.createdAt":
  12167. if e.complexity.SellingPlanRecurringDeliveryPolicy.CreatedAt == nil {
  12168. break
  12169. }
  12170. return e.complexity.SellingPlanRecurringDeliveryPolicy.CreatedAt(childComplexity), true
  12171. case "SellingPlanRecurringDeliveryPolicy.cutoff":
  12172. if e.complexity.SellingPlanRecurringDeliveryPolicy.Cutoff == nil {
  12173. break
  12174. }
  12175. return e.complexity.SellingPlanRecurringDeliveryPolicy.Cutoff(childComplexity), true
  12176. case "SellingPlanRecurringDeliveryPolicy.intent":
  12177. if e.complexity.SellingPlanRecurringDeliveryPolicy.Intent == nil {
  12178. break
  12179. }
  12180. return e.complexity.SellingPlanRecurringDeliveryPolicy.Intent(childComplexity), true
  12181. case "SellingPlanRecurringDeliveryPolicy.interval":
  12182. if e.complexity.SellingPlanRecurringDeliveryPolicy.Interval == nil {
  12183. break
  12184. }
  12185. return e.complexity.SellingPlanRecurringDeliveryPolicy.Interval(childComplexity), true
  12186. case "SellingPlanRecurringDeliveryPolicy.intervalCount":
  12187. if e.complexity.SellingPlanRecurringDeliveryPolicy.IntervalCount == nil {
  12188. break
  12189. }
  12190. return e.complexity.SellingPlanRecurringDeliveryPolicy.IntervalCount(childComplexity), true
  12191. case "SellingPlanRecurringDeliveryPolicy.preAnchorBehavior":
  12192. if e.complexity.SellingPlanRecurringDeliveryPolicy.PreAnchorBehavior == nil {
  12193. break
  12194. }
  12195. return e.complexity.SellingPlanRecurringDeliveryPolicy.PreAnchorBehavior(childComplexity), true
  12196. case "SellingPlanRecurringPricingPolicy.adjustmentType":
  12197. if e.complexity.SellingPlanRecurringPricingPolicy.AdjustmentType == nil {
  12198. break
  12199. }
  12200. return e.complexity.SellingPlanRecurringPricingPolicy.AdjustmentType(childComplexity), true
  12201. case "SellingPlanRecurringPricingPolicy.adjustmentValue":
  12202. if e.complexity.SellingPlanRecurringPricingPolicy.AdjustmentValue == nil {
  12203. break
  12204. }
  12205. return e.complexity.SellingPlanRecurringPricingPolicy.AdjustmentValue(childComplexity), true
  12206. case "SellingPlanRecurringPricingPolicy.afterCycle":
  12207. if e.complexity.SellingPlanRecurringPricingPolicy.AfterCycle == nil {
  12208. break
  12209. }
  12210. return e.complexity.SellingPlanRecurringPricingPolicy.AfterCycle(childComplexity), true
  12211. case "SellingPlanRecurringPricingPolicy.createdAt":
  12212. if e.complexity.SellingPlanRecurringPricingPolicy.CreatedAt == nil {
  12213. break
  12214. }
  12215. return e.complexity.SellingPlanRecurringPricingPolicy.CreatedAt(childComplexity), true
  12216. case "ShippingLine.carrierIdentifier":
  12217. if e.complexity.ShippingLine.CarrierIdentifier == nil {
  12218. break
  12219. }
  12220. return e.complexity.ShippingLine.CarrierIdentifier(childComplexity), true
  12221. case "ShippingLine.code":
  12222. if e.complexity.ShippingLine.Code == nil {
  12223. break
  12224. }
  12225. return e.complexity.ShippingLine.Code(childComplexity), true
  12226. case "ShippingLine.custom":
  12227. if e.complexity.ShippingLine.Custom == nil {
  12228. break
  12229. }
  12230. return e.complexity.ShippingLine.Custom(childComplexity), true
  12231. case "ShippingLine.deliveryCategory":
  12232. if e.complexity.ShippingLine.DeliveryCategory == nil {
  12233. break
  12234. }
  12235. return e.complexity.ShippingLine.DeliveryCategory(childComplexity), true
  12236. case "ShippingLine.discountAllocations":
  12237. if e.complexity.ShippingLine.DiscountAllocations == nil {
  12238. break
  12239. }
  12240. return e.complexity.ShippingLine.DiscountAllocations(childComplexity), true
  12241. case "ShippingLine.discountedPriceSet":
  12242. if e.complexity.ShippingLine.DiscountedPriceSet == nil {
  12243. break
  12244. }
  12245. return e.complexity.ShippingLine.DiscountedPriceSet(childComplexity), true
  12246. case "ShippingLine.id":
  12247. if e.complexity.ShippingLine.ID == nil {
  12248. break
  12249. }
  12250. return e.complexity.ShippingLine.ID(childComplexity), true
  12251. case "ShippingLine.originalPriceSet":
  12252. if e.complexity.ShippingLine.OriginalPriceSet == nil {
  12253. break
  12254. }
  12255. return e.complexity.ShippingLine.OriginalPriceSet(childComplexity), true
  12256. case "ShippingLine.phone":
  12257. if e.complexity.ShippingLine.Phone == nil {
  12258. break
  12259. }
  12260. return e.complexity.ShippingLine.Phone(childComplexity), true
  12261. case "ShippingLine.requestedFulfillmentService":
  12262. if e.complexity.ShippingLine.RequestedFulfillmentService == nil {
  12263. break
  12264. }
  12265. return e.complexity.ShippingLine.RequestedFulfillmentService(childComplexity), true
  12266. case "ShippingLine.shippingRateHandle":
  12267. if e.complexity.ShippingLine.ShippingRateHandle == nil {
  12268. break
  12269. }
  12270. return e.complexity.ShippingLine.ShippingRateHandle(childComplexity), true
  12271. case "ShippingLine.source":
  12272. if e.complexity.ShippingLine.Source == nil {
  12273. break
  12274. }
  12275. return e.complexity.ShippingLine.Source(childComplexity), true
  12276. case "ShippingLine.taxLines":
  12277. if e.complexity.ShippingLine.TaxLines == nil {
  12278. break
  12279. }
  12280. return e.complexity.ShippingLine.TaxLines(childComplexity), true
  12281. case "ShippingLine.title":
  12282. if e.complexity.ShippingLine.Title == nil {
  12283. break
  12284. }
  12285. return e.complexity.ShippingLine.Title(childComplexity), true
  12286. case "ShippingLineConnection.edges":
  12287. if e.complexity.ShippingLineConnection.Edges == nil {
  12288. break
  12289. }
  12290. return e.complexity.ShippingLineConnection.Edges(childComplexity), true
  12291. case "ShippingLineConnection.nodes":
  12292. if e.complexity.ShippingLineConnection.Nodes == nil {
  12293. break
  12294. }
  12295. return e.complexity.ShippingLineConnection.Nodes(childComplexity), true
  12296. case "ShippingLineConnection.pageInfo":
  12297. if e.complexity.ShippingLineConnection.PageInfo == nil {
  12298. break
  12299. }
  12300. return e.complexity.ShippingLineConnection.PageInfo(childComplexity), true
  12301. case "ShippingLineEdge.cursor":
  12302. if e.complexity.ShippingLineEdge.Cursor == nil {
  12303. break
  12304. }
  12305. return e.complexity.ShippingLineEdge.Cursor(childComplexity), true
  12306. case "ShippingLineEdge.node":
  12307. if e.complexity.ShippingLineEdge.Node == nil {
  12308. break
  12309. }
  12310. return e.complexity.ShippingLineEdge.Node(childComplexity), true
  12311. case "ShippingRefund.amountSet":
  12312. if e.complexity.ShippingRefund.AmountSet == nil {
  12313. break
  12314. }
  12315. return e.complexity.ShippingRefund.AmountSet(childComplexity), true
  12316. case "ShippingRefund.maximumRefundableSet":
  12317. if e.complexity.ShippingRefund.MaximumRefundableSet == nil {
  12318. break
  12319. }
  12320. return e.complexity.ShippingRefund.MaximumRefundableSet(childComplexity), true
  12321. case "ShippingRefund.taxSet":
  12322. if e.complexity.ShippingRefund.TaxSet == nil {
  12323. break
  12324. }
  12325. return e.complexity.ShippingRefund.TaxSet(childComplexity), true
  12326. case "Shop.alerts":
  12327. if e.complexity.Shop.Alerts == nil {
  12328. break
  12329. }
  12330. return e.complexity.Shop.Alerts(childComplexity), true
  12331. case "Shop.allProductCategories":
  12332. if e.complexity.Shop.AllProductCategories == nil {
  12333. break
  12334. }
  12335. return e.complexity.Shop.AllProductCategories(childComplexity), true
  12336. case "Shop.assignedFulfillmentOrders":
  12337. if e.complexity.Shop.AssignedFulfillmentOrders == nil {
  12338. break
  12339. }
  12340. args, err := ec.field_Shop_assignedFulfillmentOrders_args(context.TODO(), rawArgs)
  12341. if err != nil {
  12342. return 0, false
  12343. }
  12344. return e.complexity.Shop.AssignedFulfillmentOrders(childComplexity, args["after"].(*string), args["assignmentStatus"].(*FulfillmentOrderAssignmentStatus), args["before"].(*string), args["first"].(*int), args["last"].(*int), args["locationIds"].([]string), args["reverse"].(*bool), args["sortKey"].(*FulfillmentOrderSortKeys)), true
  12345. case "Shop.availableChannelApps":
  12346. if e.complexity.Shop.AvailableChannelApps == nil {
  12347. break
  12348. }
  12349. args, err := ec.field_Shop_availableChannelApps_args(context.TODO(), rawArgs)
  12350. if err != nil {
  12351. return 0, false
  12352. }
  12353. return e.complexity.Shop.AvailableChannelApps(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int), args["reverse"].(*bool)), true
  12354. case "Shop.billingAddress":
  12355. if e.complexity.Shop.BillingAddress == nil {
  12356. break
  12357. }
  12358. return e.complexity.Shop.BillingAddress(childComplexity), true
  12359. case "Shop.channelDefinitionsForInstalledChannels":
  12360. if e.complexity.Shop.ChannelDefinitionsForInstalledChannels == nil {
  12361. break
  12362. }
  12363. return e.complexity.Shop.ChannelDefinitionsForInstalledChannels(childComplexity), true
  12364. case "Shop.checkoutApiSupported":
  12365. if e.complexity.Shop.CheckoutAPISupported == nil {
  12366. break
  12367. }
  12368. return e.complexity.Shop.CheckoutAPISupported(childComplexity), true
  12369. case "Shop.contactEmail":
  12370. if e.complexity.Shop.ContactEmail == nil {
  12371. break
  12372. }
  12373. return e.complexity.Shop.ContactEmail(childComplexity), true
  12374. case "Shop.countriesInShippingZones":
  12375. if e.complexity.Shop.CountriesInShippingZones == nil {
  12376. break
  12377. }
  12378. return e.complexity.Shop.CountriesInShippingZones(childComplexity), true
  12379. case "Shop.currencyCode":
  12380. if e.complexity.Shop.CurrencyCode == nil {
  12381. break
  12382. }
  12383. return e.complexity.Shop.CurrencyCode(childComplexity), true
  12384. case "Shop.currencyFormats":
  12385. if e.complexity.Shop.CurrencyFormats == nil {
  12386. break
  12387. }
  12388. return e.complexity.Shop.CurrencyFormats(childComplexity), true
  12389. case "Shop.currencySettings":
  12390. if e.complexity.Shop.CurrencySettings == nil {
  12391. break
  12392. }
  12393. args, err := ec.field_Shop_currencySettings_args(context.TODO(), rawArgs)
  12394. if err != nil {
  12395. return 0, false
  12396. }
  12397. return e.complexity.Shop.CurrencySettings(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int), args["reverse"].(*bool)), true
  12398. case "Shop.customerAccounts":
  12399. if e.complexity.Shop.CustomerAccounts == nil {
  12400. break
  12401. }
  12402. return e.complexity.Shop.CustomerAccounts(childComplexity), true
  12403. case "Shop.customerTags":
  12404. if e.complexity.Shop.CustomerTags == nil {
  12405. break
  12406. }
  12407. args, err := ec.field_Shop_customerTags_args(context.TODO(), rawArgs)
  12408. if err != nil {
  12409. return 0, false
  12410. }
  12411. return e.complexity.Shop.CustomerTags(childComplexity, args["first"].(int)), true
  12412. case "Shop.description":
  12413. if e.complexity.Shop.Description == nil {
  12414. break
  12415. }
  12416. return e.complexity.Shop.Description(childComplexity), true
  12417. case "Shop.draftOrderTags":
  12418. if e.complexity.Shop.DraftOrderTags == nil {
  12419. break
  12420. }
  12421. args, err := ec.field_Shop_draftOrderTags_args(context.TODO(), rawArgs)
  12422. if err != nil {
  12423. return 0, false
  12424. }
  12425. return e.complexity.Shop.DraftOrderTags(childComplexity, args["first"].(int)), true
  12426. case "Shop.email":
  12427. if e.complexity.Shop.Email == nil {
  12428. break
  12429. }
  12430. return e.complexity.Shop.Email(childComplexity), true
  12431. case "Shop.enabledPresentmentCurrencies":
  12432. if e.complexity.Shop.EnabledPresentmentCurrencies == nil {
  12433. break
  12434. }
  12435. return e.complexity.Shop.EnabledPresentmentCurrencies(childComplexity), true
  12436. case "Shop.features":
  12437. if e.complexity.Shop.Features == nil {
  12438. break
  12439. }
  12440. return e.complexity.Shop.Features(childComplexity), true
  12441. case "Shop.fulfillmentServices":
  12442. if e.complexity.Shop.FulfillmentServices == nil {
  12443. break
  12444. }
  12445. return e.complexity.Shop.FulfillmentServices(childComplexity), true
  12446. case "Shop.id":
  12447. if e.complexity.Shop.ID == nil {
  12448. break
  12449. }
  12450. return e.complexity.Shop.ID(childComplexity), true
  12451. case "Shop.ianaTimezone":
  12452. if e.complexity.Shop.IanaTimezone == nil {
  12453. break
  12454. }
  12455. return e.complexity.Shop.IanaTimezone(childComplexity), true
  12456. case "Shop.limitedPendingOrderCount":
  12457. if e.complexity.Shop.LimitedPendingOrderCount == nil {
  12458. break
  12459. }
  12460. return e.complexity.Shop.LimitedPendingOrderCount(childComplexity), true
  12461. case "Shop.merchantApprovalSignals":
  12462. if e.complexity.Shop.MerchantApprovalSignals == nil {
  12463. break
  12464. }
  12465. return e.complexity.Shop.MerchantApprovalSignals(childComplexity), true
  12466. case "Shop.metafield":
  12467. if e.complexity.Shop.Metafield == nil {
  12468. break
  12469. }
  12470. args, err := ec.field_Shop_metafield_args(context.TODO(), rawArgs)
  12471. if err != nil {
  12472. return 0, false
  12473. }
  12474. return e.complexity.Shop.Metafield(childComplexity, args["key"].(string), args["namespace"].(string)), true
  12475. case "Shop.metafields":
  12476. if e.complexity.Shop.Metafields == nil {
  12477. break
  12478. }
  12479. args, err := ec.field_Shop_metafields_args(context.TODO(), rawArgs)
  12480. if err != nil {
  12481. return 0, false
  12482. }
  12483. return e.complexity.Shop.Metafields(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int), args["namespace"].(*string), args["reverse"].(*bool)), true
  12484. case "Shop.myshopifyDomain":
  12485. if e.complexity.Shop.MyshopifyDomain == nil {
  12486. break
  12487. }
  12488. return e.complexity.Shop.MyshopifyDomain(childComplexity), true
  12489. case "Shop.name":
  12490. if e.complexity.Shop.Name == nil {
  12491. break
  12492. }
  12493. return e.complexity.Shop.Name(childComplexity), true
  12494. case "Shop.navigationSettings":
  12495. if e.complexity.Shop.NavigationSettings == nil {
  12496. break
  12497. }
  12498. return e.complexity.Shop.NavigationSettings(childComplexity), true
  12499. case "Shop.orderNumberFormatPrefix":
  12500. if e.complexity.Shop.OrderNumberFormatPrefix == nil {
  12501. break
  12502. }
  12503. return e.complexity.Shop.OrderNumberFormatPrefix(childComplexity), true
  12504. case "Shop.orderNumberFormatSuffix":
  12505. if e.complexity.Shop.OrderNumberFormatSuffix == nil {
  12506. break
  12507. }
  12508. return e.complexity.Shop.OrderNumberFormatSuffix(childComplexity), true
  12509. case "Shop.orderTags":
  12510. if e.complexity.Shop.OrderTags == nil {
  12511. break
  12512. }
  12513. args, err := ec.field_Shop_orderTags_args(context.TODO(), rawArgs)
  12514. if err != nil {
  12515. return 0, false
  12516. }
  12517. return e.complexity.Shop.OrderTags(childComplexity, args["first"].(int), args["sort"].(*ShopTagSort)), true
  12518. case "Shop.paymentSettings":
  12519. if e.complexity.Shop.PaymentSettings == nil {
  12520. break
  12521. }
  12522. return e.complexity.Shop.PaymentSettings(childComplexity), true
  12523. case "Shop.plan":
  12524. if e.complexity.Shop.Plan == nil {
  12525. break
  12526. }
  12527. return e.complexity.Shop.Plan(childComplexity), true
  12528. case "Shop.primaryDomain":
  12529. if e.complexity.Shop.PrimaryDomain == nil {
  12530. break
  12531. }
  12532. return e.complexity.Shop.PrimaryDomain(childComplexity), true
  12533. case "Shop.privateMetafield":
  12534. if e.complexity.Shop.PrivateMetafield == nil {
  12535. break
  12536. }
  12537. args, err := ec.field_Shop_privateMetafield_args(context.TODO(), rawArgs)
  12538. if err != nil {
  12539. return 0, false
  12540. }
  12541. return e.complexity.Shop.PrivateMetafield(childComplexity, args["key"].(string), args["namespace"].(string)), true
  12542. case "Shop.privateMetafields":
  12543. if e.complexity.Shop.PrivateMetafields == nil {
  12544. break
  12545. }
  12546. args, err := ec.field_Shop_privateMetafields_args(context.TODO(), rawArgs)
  12547. if err != nil {
  12548. return 0, false
  12549. }
  12550. return e.complexity.Shop.PrivateMetafields(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int), args["namespace"].(*string), args["reverse"].(*bool)), true
  12551. case "Shop.productImages":
  12552. if e.complexity.Shop.ProductImages == nil {
  12553. break
  12554. }
  12555. args, err := ec.field_Shop_productImages_args(context.TODO(), rawArgs)
  12556. if err != nil {
  12557. return 0, false
  12558. }
  12559. return e.complexity.Shop.ProductImages(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int), args["reverse"].(*bool), args["sortKey"].(*ProductImageSortKeys)), true
  12560. case "Shop.productTags":
  12561. if e.complexity.Shop.ProductTags == nil {
  12562. break
  12563. }
  12564. args, err := ec.field_Shop_productTags_args(context.TODO(), rawArgs)
  12565. if err != nil {
  12566. return 0, false
  12567. }
  12568. return e.complexity.Shop.ProductTags(childComplexity, args["first"].(int)), true
  12569. case "Shop.productTypes":
  12570. if e.complexity.Shop.ProductTypes == nil {
  12571. break
  12572. }
  12573. args, err := ec.field_Shop_productTypes_args(context.TODO(), rawArgs)
  12574. if err != nil {
  12575. return 0, false
  12576. }
  12577. return e.complexity.Shop.ProductTypes(childComplexity, args["first"].(int)), true
  12578. case "Shop.productVendors":
  12579. if e.complexity.Shop.ProductVendors == nil {
  12580. break
  12581. }
  12582. args, err := ec.field_Shop_productVendors_args(context.TODO(), rawArgs)
  12583. if err != nil {
  12584. return 0, false
  12585. }
  12586. return e.complexity.Shop.ProductVendors(childComplexity, args["first"].(int)), true
  12587. case "Shop.publicationCount":
  12588. if e.complexity.Shop.PublicationCount == nil {
  12589. break
  12590. }
  12591. return e.complexity.Shop.PublicationCount(childComplexity), true
  12592. case "Shop.resourceLimits":
  12593. if e.complexity.Shop.ResourceLimits == nil {
  12594. break
  12595. }
  12596. return e.complexity.Shop.ResourceLimits(childComplexity), true
  12597. case "Shop.richTextEditorUrl":
  12598. if e.complexity.Shop.RichTextEditorURL == nil {
  12599. break
  12600. }
  12601. return e.complexity.Shop.RichTextEditorURL(childComplexity), true
  12602. case "Shop.search":
  12603. if e.complexity.Shop.Search == nil {
  12604. break
  12605. }
  12606. args, err := ec.field_Shop_search_args(context.TODO(), rawArgs)
  12607. if err != nil {
  12608. return 0, false
  12609. }
  12610. return e.complexity.Shop.Search(childComplexity, args["after"].(*string), args["first"].(int), args["query"].(string), args["types"].([]SearchResultType)), true
  12611. case "Shop.searchFilters":
  12612. if e.complexity.Shop.SearchFilters == nil {
  12613. break
  12614. }
  12615. return e.complexity.Shop.SearchFilters(childComplexity), true
  12616. case "Shop.setupRequired":
  12617. if e.complexity.Shop.SetupRequired == nil {
  12618. break
  12619. }
  12620. return e.complexity.Shop.SetupRequired(childComplexity), true
  12621. case "Shop.shipsToCountries":
  12622. if e.complexity.Shop.ShipsToCountries == nil {
  12623. break
  12624. }
  12625. return e.complexity.Shop.ShipsToCountries(childComplexity), true
  12626. case "Shop.shopPolicies":
  12627. if e.complexity.Shop.ShopPolicies == nil {
  12628. break
  12629. }
  12630. return e.complexity.Shop.ShopPolicies(childComplexity), true
  12631. case "Shop.staffMembers":
  12632. if e.complexity.Shop.StaffMembers == nil {
  12633. break
  12634. }
  12635. args, err := ec.field_Shop_staffMembers_args(context.TODO(), rawArgs)
  12636. if err != nil {
  12637. return 0, false
  12638. }
  12639. return e.complexity.Shop.StaffMembers(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int), args["reverse"].(*bool)), true
  12640. case "Shop.storefrontAccessTokens":
  12641. if e.complexity.Shop.StorefrontAccessTokens == nil {
  12642. break
  12643. }
  12644. args, err := ec.field_Shop_storefrontAccessTokens_args(context.TODO(), rawArgs)
  12645. if err != nil {
  12646. return 0, false
  12647. }
  12648. return e.complexity.Shop.StorefrontAccessTokens(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int), args["reverse"].(*bool)), true
  12649. case "Shop.taxShipping":
  12650. if e.complexity.Shop.TaxShipping == nil {
  12651. break
  12652. }
  12653. return e.complexity.Shop.TaxShipping(childComplexity), true
  12654. case "Shop.taxesIncluded":
  12655. if e.complexity.Shop.TaxesIncluded == nil {
  12656. break
  12657. }
  12658. return e.complexity.Shop.TaxesIncluded(childComplexity), true
  12659. case "Shop.timezoneAbbreviation":
  12660. if e.complexity.Shop.TimezoneAbbreviation == nil {
  12661. break
  12662. }
  12663. return e.complexity.Shop.TimezoneAbbreviation(childComplexity), true
  12664. case "Shop.timezoneOffset":
  12665. if e.complexity.Shop.TimezoneOffset == nil {
  12666. break
  12667. }
  12668. return e.complexity.Shop.TimezoneOffset(childComplexity), true
  12669. case "Shop.timezoneOffsetMinutes":
  12670. if e.complexity.Shop.TimezoneOffsetMinutes == nil {
  12671. break
  12672. }
  12673. return e.complexity.Shop.TimezoneOffsetMinutes(childComplexity), true
  12674. case "Shop.transactionalSmsDisabled":
  12675. if e.complexity.Shop.TransactionalSmsDisabled == nil {
  12676. break
  12677. }
  12678. return e.complexity.Shop.TransactionalSmsDisabled(childComplexity), true
  12679. case "Shop.translations":
  12680. if e.complexity.Shop.Translations == nil {
  12681. break
  12682. }
  12683. args, err := ec.field_Shop_translations_args(context.TODO(), rawArgs)
  12684. if err != nil {
  12685. return 0, false
  12686. }
  12687. return e.complexity.Shop.Translations(childComplexity, args["locale"].(string), args["marketId"].(*string)), true
  12688. case "Shop.url":
  12689. if e.complexity.Shop.URL == nil {
  12690. break
  12691. }
  12692. return e.complexity.Shop.URL(childComplexity), true
  12693. case "Shop.unitSystem":
  12694. if e.complexity.Shop.UnitSystem == nil {
  12695. break
  12696. }
  12697. return e.complexity.Shop.UnitSystem(childComplexity), true
  12698. case "Shop.uploadedImagesByIds":
  12699. if e.complexity.Shop.UploadedImagesByIds == nil {
  12700. break
  12701. }
  12702. args, err := ec.field_Shop_uploadedImagesByIds_args(context.TODO(), rawArgs)
  12703. if err != nil {
  12704. return 0, false
  12705. }
  12706. return e.complexity.Shop.UploadedImagesByIds(childComplexity, args["imageIds"].([]string)), true
  12707. case "Shop.weightUnit":
  12708. if e.complexity.Shop.WeightUnit == nil {
  12709. break
  12710. }
  12711. return e.complexity.Shop.WeightUnit(childComplexity), true
  12712. case "ShopAlert.action":
  12713. if e.complexity.ShopAlert.Action == nil {
  12714. break
  12715. }
  12716. return e.complexity.ShopAlert.Action(childComplexity), true
  12717. case "ShopAlert.description":
  12718. if e.complexity.ShopAlert.Description == nil {
  12719. break
  12720. }
  12721. return e.complexity.ShopAlert.Description(childComplexity), true
  12722. case "ShopAlertAction.title":
  12723. if e.complexity.ShopAlertAction.Title == nil {
  12724. break
  12725. }
  12726. return e.complexity.ShopAlertAction.Title(childComplexity), true
  12727. case "ShopAlertAction.url":
  12728. if e.complexity.ShopAlertAction.URL == nil {
  12729. break
  12730. }
  12731. return e.complexity.ShopAlertAction.URL(childComplexity), true
  12732. case "ShopFeatures.avalaraAvatax":
  12733. if e.complexity.ShopFeatures.AvalaraAvatax == nil {
  12734. break
  12735. }
  12736. return e.complexity.ShopFeatures.AvalaraAvatax(childComplexity), true
  12737. case "ShopFeatures.branding":
  12738. if e.complexity.ShopFeatures.Branding == nil {
  12739. break
  12740. }
  12741. return e.complexity.ShopFeatures.Branding(childComplexity), true
  12742. case "ShopFeatures.captcha":
  12743. if e.complexity.ShopFeatures.Captcha == nil {
  12744. break
  12745. }
  12746. return e.complexity.ShopFeatures.Captcha(childComplexity), true
  12747. case "ShopFeatures.captchaExternalDomains":
  12748. if e.complexity.ShopFeatures.CaptchaExternalDomains == nil {
  12749. break
  12750. }
  12751. return e.complexity.ShopFeatures.CaptchaExternalDomains(childComplexity), true
  12752. case "ShopFeatures.dynamicRemarketing":
  12753. if e.complexity.ShopFeatures.DynamicRemarketing == nil {
  12754. break
  12755. }
  12756. return e.complexity.ShopFeatures.DynamicRemarketing(childComplexity), true
  12757. case "ShopFeatures.eligibleForSubscriptionMigration":
  12758. if e.complexity.ShopFeatures.EligibleForSubscriptionMigration == nil {
  12759. break
  12760. }
  12761. return e.complexity.ShopFeatures.EligibleForSubscriptionMigration(childComplexity), true
  12762. case "ShopFeatures.eligibleForSubscriptions":
  12763. if e.complexity.ShopFeatures.EligibleForSubscriptions == nil {
  12764. break
  12765. }
  12766. return e.complexity.ShopFeatures.EligibleForSubscriptions(childComplexity), true
  12767. case "ShopFeatures.giftCards":
  12768. if e.complexity.ShopFeatures.GiftCards == nil {
  12769. break
  12770. }
  12771. return e.complexity.ShopFeatures.GiftCards(childComplexity), true
  12772. case "ShopFeatures.harmonizedSystemCode":
  12773. if e.complexity.ShopFeatures.HarmonizedSystemCode == nil {
  12774. break
  12775. }
  12776. return e.complexity.ShopFeatures.HarmonizedSystemCode(childComplexity), true
  12777. case "ShopFeatures.internationalDomains":
  12778. if e.complexity.ShopFeatures.InternationalDomains == nil {
  12779. break
  12780. }
  12781. return e.complexity.ShopFeatures.InternationalDomains(childComplexity), true
  12782. case "ShopFeatures.internationalPriceOverrides":
  12783. if e.complexity.ShopFeatures.InternationalPriceOverrides == nil {
  12784. break
  12785. }
  12786. return e.complexity.ShopFeatures.InternationalPriceOverrides(childComplexity), true
  12787. case "ShopFeatures.internationalPriceRules":
  12788. if e.complexity.ShopFeatures.InternationalPriceRules == nil {
  12789. break
  12790. }
  12791. return e.complexity.ShopFeatures.InternationalPriceRules(childComplexity), true
  12792. case "ShopFeatures.legacySubscriptionGatewayEnabled":
  12793. if e.complexity.ShopFeatures.LegacySubscriptionGatewayEnabled == nil {
  12794. break
  12795. }
  12796. return e.complexity.ShopFeatures.LegacySubscriptionGatewayEnabled(childComplexity), true
  12797. case "ShopFeatures.liveView":
  12798. if e.complexity.ShopFeatures.LiveView == nil {
  12799. break
  12800. }
  12801. return e.complexity.ShopFeatures.LiveView(childComplexity), true
  12802. case "ShopFeatures.onboardingVisual":
  12803. if e.complexity.ShopFeatures.OnboardingVisual == nil {
  12804. break
  12805. }
  12806. return e.complexity.ShopFeatures.OnboardingVisual(childComplexity), true
  12807. case "ShopFeatures.paypalExpressSubscriptionGatewayStatus":
  12808. if e.complexity.ShopFeatures.PaypalExpressSubscriptionGatewayStatus == nil {
  12809. break
  12810. }
  12811. return e.complexity.ShopFeatures.PaypalExpressSubscriptionGatewayStatus(childComplexity), true
  12812. case "ShopFeatures.reports":
  12813. if e.complexity.ShopFeatures.Reports == nil {
  12814. break
  12815. }
  12816. return e.complexity.ShopFeatures.Reports(childComplexity), true
  12817. case "ShopFeatures.sellsSubscriptions":
  12818. if e.complexity.ShopFeatures.SellsSubscriptions == nil {
  12819. break
  12820. }
  12821. return e.complexity.ShopFeatures.SellsSubscriptions(childComplexity), true
  12822. case "ShopFeatures.showMetrics":
  12823. if e.complexity.ShopFeatures.ShowMetrics == nil {
  12824. break
  12825. }
  12826. return e.complexity.ShopFeatures.ShowMetrics(childComplexity), true
  12827. case "ShopFeatures.storefront":
  12828. if e.complexity.ShopFeatures.Storefront == nil {
  12829. break
  12830. }
  12831. return e.complexity.ShopFeatures.Storefront(childComplexity), true
  12832. case "ShopFeatures.usingShopifyBalance":
  12833. if e.complexity.ShopFeatures.UsingShopifyBalance == nil {
  12834. break
  12835. }
  12836. return e.complexity.ShopFeatures.UsingShopifyBalance(childComplexity), true
  12837. case "ShopPlan.displayName":
  12838. if e.complexity.ShopPlan.DisplayName == nil {
  12839. break
  12840. }
  12841. return e.complexity.ShopPlan.DisplayName(childComplexity), true
  12842. case "ShopPlan.partnerDevelopment":
  12843. if e.complexity.ShopPlan.PartnerDevelopment == nil {
  12844. break
  12845. }
  12846. return e.complexity.ShopPlan.PartnerDevelopment(childComplexity), true
  12847. case "ShopPlan.shopifyPlus":
  12848. if e.complexity.ShopPlan.ShopifyPlus == nil {
  12849. break
  12850. }
  12851. return e.complexity.ShopPlan.ShopifyPlus(childComplexity), true
  12852. case "ShopPolicy.body":
  12853. if e.complexity.ShopPolicy.Body == nil {
  12854. break
  12855. }
  12856. return e.complexity.ShopPolicy.Body(childComplexity), true
  12857. case "ShopPolicy.id":
  12858. if e.complexity.ShopPolicy.ID == nil {
  12859. break
  12860. }
  12861. return e.complexity.ShopPolicy.ID(childComplexity), true
  12862. case "ShopPolicy.translations":
  12863. if e.complexity.ShopPolicy.Translations == nil {
  12864. break
  12865. }
  12866. args, err := ec.field_ShopPolicy_translations_args(context.TODO(), rawArgs)
  12867. if err != nil {
  12868. return 0, false
  12869. }
  12870. return e.complexity.ShopPolicy.Translations(childComplexity, args["locale"].(string), args["marketId"].(*string)), true
  12871. case "ShopPolicy.type":
  12872. if e.complexity.ShopPolicy.Type == nil {
  12873. break
  12874. }
  12875. return e.complexity.ShopPolicy.Type(childComplexity), true
  12876. case "ShopPolicy.url":
  12877. if e.complexity.ShopPolicy.URL == nil {
  12878. break
  12879. }
  12880. return e.complexity.ShopPolicy.URL(childComplexity), true
  12881. case "ShopResourceLimits.locationLimit":
  12882. if e.complexity.ShopResourceLimits.LocationLimit == nil {
  12883. break
  12884. }
  12885. return e.complexity.ShopResourceLimits.LocationLimit(childComplexity), true
  12886. case "ShopResourceLimits.maxProductOptions":
  12887. if e.complexity.ShopResourceLimits.MaxProductOptions == nil {
  12888. break
  12889. }
  12890. return e.complexity.ShopResourceLimits.MaxProductOptions(childComplexity), true
  12891. case "ShopResourceLimits.maxProductVariants":
  12892. if e.complexity.ShopResourceLimits.MaxProductVariants == nil {
  12893. break
  12894. }
  12895. return e.complexity.ShopResourceLimits.MaxProductVariants(childComplexity), true
  12896. case "ShopResourceLimits.redirectLimitReached":
  12897. if e.complexity.ShopResourceLimits.RedirectLimitReached == nil {
  12898. break
  12899. }
  12900. return e.complexity.ShopResourceLimits.RedirectLimitReached(childComplexity), true
  12901. case "ShopResourceLimits.skuResourceLimits":
  12902. if e.complexity.ShopResourceLimits.SkuResourceLimits == nil {
  12903. break
  12904. }
  12905. return e.complexity.ShopResourceLimits.SkuResourceLimits(childComplexity), true
  12906. case "ShopifyPaymentsExtendedAuthorization.extendedAuthorizationExpiresAt":
  12907. if e.complexity.ShopifyPaymentsExtendedAuthorization.ExtendedAuthorizationExpiresAt == nil {
  12908. break
  12909. }
  12910. return e.complexity.ShopifyPaymentsExtendedAuthorization.ExtendedAuthorizationExpiresAt(childComplexity), true
  12911. case "ShopifyPaymentsExtendedAuthorization.standardAuthorizationExpiresAt":
  12912. if e.complexity.ShopifyPaymentsExtendedAuthorization.StandardAuthorizationExpiresAt == nil {
  12913. break
  12914. }
  12915. return e.complexity.ShopifyPaymentsExtendedAuthorization.StandardAuthorizationExpiresAt(childComplexity), true
  12916. case "ShopifyPaymentsRefundSet.acquirerReferenceNumber":
  12917. if e.complexity.ShopifyPaymentsRefundSet.AcquirerReferenceNumber == nil {
  12918. break
  12919. }
  12920. return e.complexity.ShopifyPaymentsRefundSet.AcquirerReferenceNumber(childComplexity), true
  12921. case "ShopifyPaymentsTransactionSet.extendedAuthorizationSet":
  12922. if e.complexity.ShopifyPaymentsTransactionSet.ExtendedAuthorizationSet == nil {
  12923. break
  12924. }
  12925. return e.complexity.ShopifyPaymentsTransactionSet.ExtendedAuthorizationSet(childComplexity), true
  12926. case "ShopifyPaymentsTransactionSet.refundSet":
  12927. if e.complexity.ShopifyPaymentsTransactionSet.RefundSet == nil {
  12928. break
  12929. }
  12930. return e.complexity.ShopifyPaymentsTransactionSet.RefundSet(childComplexity), true
  12931. case "StaffMember.active":
  12932. if e.complexity.StaffMember.Active == nil {
  12933. break
  12934. }
  12935. return e.complexity.StaffMember.Active(childComplexity), true
  12936. case "StaffMember.avatar":
  12937. if e.complexity.StaffMember.Avatar == nil {
  12938. break
  12939. }
  12940. args, err := ec.field_StaffMember_avatar_args(context.TODO(), rawArgs)
  12941. if err != nil {
  12942. return 0, false
  12943. }
  12944. return e.complexity.StaffMember.Avatar(childComplexity, args["fallback"].(*StaffMemberDefaultImage)), true
  12945. case "StaffMember.email":
  12946. if e.complexity.StaffMember.Email == nil {
  12947. break
  12948. }
  12949. return e.complexity.StaffMember.Email(childComplexity), true
  12950. case "StaffMember.exists":
  12951. if e.complexity.StaffMember.Exists == nil {
  12952. break
  12953. }
  12954. return e.complexity.StaffMember.Exists(childComplexity), true
  12955. case "StaffMember.firstName":
  12956. if e.complexity.StaffMember.FirstName == nil {
  12957. break
  12958. }
  12959. return e.complexity.StaffMember.FirstName(childComplexity), true
  12960. case "StaffMember.id":
  12961. if e.complexity.StaffMember.ID == nil {
  12962. break
  12963. }
  12964. return e.complexity.StaffMember.ID(childComplexity), true
  12965. case "StaffMember.initials":
  12966. if e.complexity.StaffMember.Initials == nil {
  12967. break
  12968. }
  12969. return e.complexity.StaffMember.Initials(childComplexity), true
  12970. case "StaffMember.isShopOwner":
  12971. if e.complexity.StaffMember.IsShopOwner == nil {
  12972. break
  12973. }
  12974. return e.complexity.StaffMember.IsShopOwner(childComplexity), true
  12975. case "StaffMember.lastName":
  12976. if e.complexity.StaffMember.LastName == nil {
  12977. break
  12978. }
  12979. return e.complexity.StaffMember.LastName(childComplexity), true
  12980. case "StaffMember.locale":
  12981. if e.complexity.StaffMember.Locale == nil {
  12982. break
  12983. }
  12984. return e.complexity.StaffMember.Locale(childComplexity), true
  12985. case "StaffMember.name":
  12986. if e.complexity.StaffMember.Name == nil {
  12987. break
  12988. }
  12989. return e.complexity.StaffMember.Name(childComplexity), true
  12990. case "StaffMember.phone":
  12991. if e.complexity.StaffMember.Phone == nil {
  12992. break
  12993. }
  12994. return e.complexity.StaffMember.Phone(childComplexity), true
  12995. case "StaffMember.privateData":
  12996. if e.complexity.StaffMember.PrivateData == nil {
  12997. break
  12998. }
  12999. return e.complexity.StaffMember.PrivateData(childComplexity), true
  13000. case "StaffMemberConnection.edges":
  13001. if e.complexity.StaffMemberConnection.Edges == nil {
  13002. break
  13003. }
  13004. return e.complexity.StaffMemberConnection.Edges(childComplexity), true
  13005. case "StaffMemberConnection.nodes":
  13006. if e.complexity.StaffMemberConnection.Nodes == nil {
  13007. break
  13008. }
  13009. return e.complexity.StaffMemberConnection.Nodes(childComplexity), true
  13010. case "StaffMemberConnection.pageInfo":
  13011. if e.complexity.StaffMemberConnection.PageInfo == nil {
  13012. break
  13013. }
  13014. return e.complexity.StaffMemberConnection.PageInfo(childComplexity), true
  13015. case "StaffMemberEdge.cursor":
  13016. if e.complexity.StaffMemberEdge.Cursor == nil {
  13017. break
  13018. }
  13019. return e.complexity.StaffMemberEdge.Cursor(childComplexity), true
  13020. case "StaffMemberEdge.node":
  13021. if e.complexity.StaffMemberEdge.Node == nil {
  13022. break
  13023. }
  13024. return e.complexity.StaffMemberEdge.Node(childComplexity), true
  13025. case "StaffMemberPrivateData.accountSettingsUrl":
  13026. if e.complexity.StaffMemberPrivateData.AccountSettingsURL == nil {
  13027. break
  13028. }
  13029. return e.complexity.StaffMemberPrivateData.AccountSettingsURL(childComplexity), true
  13030. case "StaffMemberPrivateData.createdAt":
  13031. if e.complexity.StaffMemberPrivateData.CreatedAt == nil {
  13032. break
  13033. }
  13034. return e.complexity.StaffMemberPrivateData.CreatedAt(childComplexity), true
  13035. case "StandardMetafieldDefinitionTemplate.description":
  13036. if e.complexity.StandardMetafieldDefinitionTemplate.Description == nil {
  13037. break
  13038. }
  13039. return e.complexity.StandardMetafieldDefinitionTemplate.Description(childComplexity), true
  13040. case "StandardMetafieldDefinitionTemplate.id":
  13041. if e.complexity.StandardMetafieldDefinitionTemplate.ID == nil {
  13042. break
  13043. }
  13044. return e.complexity.StandardMetafieldDefinitionTemplate.ID(childComplexity), true
  13045. case "StandardMetafieldDefinitionTemplate.key":
  13046. if e.complexity.StandardMetafieldDefinitionTemplate.Key == nil {
  13047. break
  13048. }
  13049. return e.complexity.StandardMetafieldDefinitionTemplate.Key(childComplexity), true
  13050. case "StandardMetafieldDefinitionTemplate.name":
  13051. if e.complexity.StandardMetafieldDefinitionTemplate.Name == nil {
  13052. break
  13053. }
  13054. return e.complexity.StandardMetafieldDefinitionTemplate.Name(childComplexity), true
  13055. case "StandardMetafieldDefinitionTemplate.namespace":
  13056. if e.complexity.StandardMetafieldDefinitionTemplate.Namespace == nil {
  13057. break
  13058. }
  13059. return e.complexity.StandardMetafieldDefinitionTemplate.Namespace(childComplexity), true
  13060. case "StandardMetafieldDefinitionTemplate.ownerTypes":
  13061. if e.complexity.StandardMetafieldDefinitionTemplate.OwnerTypes == nil {
  13062. break
  13063. }
  13064. return e.complexity.StandardMetafieldDefinitionTemplate.OwnerTypes(childComplexity), true
  13065. case "StandardMetafieldDefinitionTemplate.type":
  13066. if e.complexity.StandardMetafieldDefinitionTemplate.Type == nil {
  13067. break
  13068. }
  13069. return e.complexity.StandardMetafieldDefinitionTemplate.Type(childComplexity), true
  13070. case "StandardMetafieldDefinitionTemplate.validations":
  13071. if e.complexity.StandardMetafieldDefinitionTemplate.Validations == nil {
  13072. break
  13073. }
  13074. return e.complexity.StandardMetafieldDefinitionTemplate.Validations(childComplexity), true
  13075. case "StandardMetafieldDefinitionTemplate.visibleToStorefrontApi":
  13076. if e.complexity.StandardMetafieldDefinitionTemplate.VisibleToStorefrontAPI == nil {
  13077. break
  13078. }
  13079. return e.complexity.StandardMetafieldDefinitionTemplate.VisibleToStorefrontAPI(childComplexity), true
  13080. case "StorefrontAccessToken.accessScopes":
  13081. if e.complexity.StorefrontAccessToken.AccessScopes == nil {
  13082. break
  13083. }
  13084. return e.complexity.StorefrontAccessToken.AccessScopes(childComplexity), true
  13085. case "StorefrontAccessToken.accessToken":
  13086. if e.complexity.StorefrontAccessToken.AccessToken == nil {
  13087. break
  13088. }
  13089. return e.complexity.StorefrontAccessToken.AccessToken(childComplexity), true
  13090. case "StorefrontAccessToken.createdAt":
  13091. if e.complexity.StorefrontAccessToken.CreatedAt == nil {
  13092. break
  13093. }
  13094. return e.complexity.StorefrontAccessToken.CreatedAt(childComplexity), true
  13095. case "StorefrontAccessToken.id":
  13096. if e.complexity.StorefrontAccessToken.ID == nil {
  13097. break
  13098. }
  13099. return e.complexity.StorefrontAccessToken.ID(childComplexity), true
  13100. case "StorefrontAccessToken.title":
  13101. if e.complexity.StorefrontAccessToken.Title == nil {
  13102. break
  13103. }
  13104. return e.complexity.StorefrontAccessToken.Title(childComplexity), true
  13105. case "StorefrontAccessToken.updatedAt":
  13106. if e.complexity.StorefrontAccessToken.UpdatedAt == nil {
  13107. break
  13108. }
  13109. return e.complexity.StorefrontAccessToken.UpdatedAt(childComplexity), true
  13110. case "StorefrontAccessTokenConnection.edges":
  13111. if e.complexity.StorefrontAccessTokenConnection.Edges == nil {
  13112. break
  13113. }
  13114. return e.complexity.StorefrontAccessTokenConnection.Edges(childComplexity), true
  13115. case "StorefrontAccessTokenConnection.nodes":
  13116. if e.complexity.StorefrontAccessTokenConnection.Nodes == nil {
  13117. break
  13118. }
  13119. return e.complexity.StorefrontAccessTokenConnection.Nodes(childComplexity), true
  13120. case "StorefrontAccessTokenConnection.pageInfo":
  13121. if e.complexity.StorefrontAccessTokenConnection.PageInfo == nil {
  13122. break
  13123. }
  13124. return e.complexity.StorefrontAccessTokenConnection.PageInfo(childComplexity), true
  13125. case "StorefrontAccessTokenEdge.cursor":
  13126. if e.complexity.StorefrontAccessTokenEdge.Cursor == nil {
  13127. break
  13128. }
  13129. return e.complexity.StorefrontAccessTokenEdge.Cursor(childComplexity), true
  13130. case "StorefrontAccessTokenEdge.node":
  13131. if e.complexity.StorefrontAccessTokenEdge.Node == nil {
  13132. break
  13133. }
  13134. return e.complexity.StorefrontAccessTokenEdge.Node(childComplexity), true
  13135. case "StringConnection.edges":
  13136. if e.complexity.StringConnection.Edges == nil {
  13137. break
  13138. }
  13139. return e.complexity.StringConnection.Edges(childComplexity), true
  13140. case "StringConnection.pageInfo":
  13141. if e.complexity.StringConnection.PageInfo == nil {
  13142. break
  13143. }
  13144. return e.complexity.StringConnection.PageInfo(childComplexity), true
  13145. case "StringEdge.cursor":
  13146. if e.complexity.StringEdge.Cursor == nil {
  13147. break
  13148. }
  13149. return e.complexity.StringEdge.Cursor(childComplexity), true
  13150. case "StringEdge.node":
  13151. if e.complexity.StringEdge.Node == nil {
  13152. break
  13153. }
  13154. return e.complexity.StringEdge.Node(childComplexity), true
  13155. case "SubscriptionAppliedCodeDiscount.id":
  13156. if e.complexity.SubscriptionAppliedCodeDiscount.ID == nil {
  13157. break
  13158. }
  13159. return e.complexity.SubscriptionAppliedCodeDiscount.ID(childComplexity), true
  13160. case "SubscriptionAppliedCodeDiscount.redeemCode":
  13161. if e.complexity.SubscriptionAppliedCodeDiscount.RedeemCode == nil {
  13162. break
  13163. }
  13164. return e.complexity.SubscriptionAppliedCodeDiscount.RedeemCode(childComplexity), true
  13165. case "SubscriptionAppliedCodeDiscount.rejectionReason":
  13166. if e.complexity.SubscriptionAppliedCodeDiscount.RejectionReason == nil {
  13167. break
  13168. }
  13169. return e.complexity.SubscriptionAppliedCodeDiscount.RejectionReason(childComplexity), true
  13170. case "SubscriptionBillingAttempt.completedAt":
  13171. if e.complexity.SubscriptionBillingAttempt.CompletedAt == nil {
  13172. break
  13173. }
  13174. return e.complexity.SubscriptionBillingAttempt.CompletedAt(childComplexity), true
  13175. case "SubscriptionBillingAttempt.createdAt":
  13176. if e.complexity.SubscriptionBillingAttempt.CreatedAt == nil {
  13177. break
  13178. }
  13179. return e.complexity.SubscriptionBillingAttempt.CreatedAt(childComplexity), true
  13180. case "SubscriptionBillingAttempt.errorCode":
  13181. if e.complexity.SubscriptionBillingAttempt.ErrorCode == nil {
  13182. break
  13183. }
  13184. return e.complexity.SubscriptionBillingAttempt.ErrorCode(childComplexity), true
  13185. case "SubscriptionBillingAttempt.errorMessage":
  13186. if e.complexity.SubscriptionBillingAttempt.ErrorMessage == nil {
  13187. break
  13188. }
  13189. return e.complexity.SubscriptionBillingAttempt.ErrorMessage(childComplexity), true
  13190. case "SubscriptionBillingAttempt.id":
  13191. if e.complexity.SubscriptionBillingAttempt.ID == nil {
  13192. break
  13193. }
  13194. return e.complexity.SubscriptionBillingAttempt.ID(childComplexity), true
  13195. case "SubscriptionBillingAttempt.idempotencyKey":
  13196. if e.complexity.SubscriptionBillingAttempt.IdempotencyKey == nil {
  13197. break
  13198. }
  13199. return e.complexity.SubscriptionBillingAttempt.IdempotencyKey(childComplexity), true
  13200. case "SubscriptionBillingAttempt.nextActionUrl":
  13201. if e.complexity.SubscriptionBillingAttempt.NextActionURL == nil {
  13202. break
  13203. }
  13204. return e.complexity.SubscriptionBillingAttempt.NextActionURL(childComplexity), true
  13205. case "SubscriptionBillingAttempt.order":
  13206. if e.complexity.SubscriptionBillingAttempt.Order == nil {
  13207. break
  13208. }
  13209. return e.complexity.SubscriptionBillingAttempt.Order(childComplexity), true
  13210. case "SubscriptionBillingAttempt.originTime":
  13211. if e.complexity.SubscriptionBillingAttempt.OriginTime == nil {
  13212. break
  13213. }
  13214. return e.complexity.SubscriptionBillingAttempt.OriginTime(childComplexity), true
  13215. case "SubscriptionBillingAttempt.ready":
  13216. if e.complexity.SubscriptionBillingAttempt.Ready == nil {
  13217. break
  13218. }
  13219. return e.complexity.SubscriptionBillingAttempt.Ready(childComplexity), true
  13220. case "SubscriptionBillingAttempt.subscriptionContract":
  13221. if e.complexity.SubscriptionBillingAttempt.SubscriptionContract == nil {
  13222. break
  13223. }
  13224. return e.complexity.SubscriptionBillingAttempt.SubscriptionContract(childComplexity), true
  13225. case "SubscriptionBillingAttemptConnection.edges":
  13226. if e.complexity.SubscriptionBillingAttemptConnection.Edges == nil {
  13227. break
  13228. }
  13229. return e.complexity.SubscriptionBillingAttemptConnection.Edges(childComplexity), true
  13230. case "SubscriptionBillingAttemptConnection.nodes":
  13231. if e.complexity.SubscriptionBillingAttemptConnection.Nodes == nil {
  13232. break
  13233. }
  13234. return e.complexity.SubscriptionBillingAttemptConnection.Nodes(childComplexity), true
  13235. case "SubscriptionBillingAttemptConnection.pageInfo":
  13236. if e.complexity.SubscriptionBillingAttemptConnection.PageInfo == nil {
  13237. break
  13238. }
  13239. return e.complexity.SubscriptionBillingAttemptConnection.PageInfo(childComplexity), true
  13240. case "SubscriptionBillingAttemptEdge.cursor":
  13241. if e.complexity.SubscriptionBillingAttemptEdge.Cursor == nil {
  13242. break
  13243. }
  13244. return e.complexity.SubscriptionBillingAttemptEdge.Cursor(childComplexity), true
  13245. case "SubscriptionBillingAttemptEdge.node":
  13246. if e.complexity.SubscriptionBillingAttemptEdge.Node == nil {
  13247. break
  13248. }
  13249. return e.complexity.SubscriptionBillingAttemptEdge.Node(childComplexity), true
  13250. case "SubscriptionBillingPolicy.anchors":
  13251. if e.complexity.SubscriptionBillingPolicy.Anchors == nil {
  13252. break
  13253. }
  13254. return e.complexity.SubscriptionBillingPolicy.Anchors(childComplexity), true
  13255. case "SubscriptionBillingPolicy.interval":
  13256. if e.complexity.SubscriptionBillingPolicy.Interval == nil {
  13257. break
  13258. }
  13259. return e.complexity.SubscriptionBillingPolicy.Interval(childComplexity), true
  13260. case "SubscriptionBillingPolicy.intervalCount":
  13261. if e.complexity.SubscriptionBillingPolicy.IntervalCount == nil {
  13262. break
  13263. }
  13264. return e.complexity.SubscriptionBillingPolicy.IntervalCount(childComplexity), true
  13265. case "SubscriptionBillingPolicy.maxCycles":
  13266. if e.complexity.SubscriptionBillingPolicy.MaxCycles == nil {
  13267. break
  13268. }
  13269. return e.complexity.SubscriptionBillingPolicy.MaxCycles(childComplexity), true
  13270. case "SubscriptionBillingPolicy.minCycles":
  13271. if e.complexity.SubscriptionBillingPolicy.MinCycles == nil {
  13272. break
  13273. }
  13274. return e.complexity.SubscriptionBillingPolicy.MinCycles(childComplexity), true
  13275. case "SubscriptionContract.app":
  13276. if e.complexity.SubscriptionContract.App == nil {
  13277. break
  13278. }
  13279. return e.complexity.SubscriptionContract.App(childComplexity), true
  13280. case "SubscriptionContract.appAdminUrl":
  13281. if e.complexity.SubscriptionContract.AppAdminURL == nil {
  13282. break
  13283. }
  13284. return e.complexity.SubscriptionContract.AppAdminURL(childComplexity), true
  13285. case "SubscriptionContract.billingAttempts":
  13286. if e.complexity.SubscriptionContract.BillingAttempts == nil {
  13287. break
  13288. }
  13289. args, err := ec.field_SubscriptionContract_billingAttempts_args(context.TODO(), rawArgs)
  13290. if err != nil {
  13291. return 0, false
  13292. }
  13293. return e.complexity.SubscriptionContract.BillingAttempts(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  13294. case "SubscriptionContract.billingPolicy":
  13295. if e.complexity.SubscriptionContract.BillingPolicy == nil {
  13296. break
  13297. }
  13298. return e.complexity.SubscriptionContract.BillingPolicy(childComplexity), true
  13299. case "SubscriptionContract.createdAt":
  13300. if e.complexity.SubscriptionContract.CreatedAt == nil {
  13301. break
  13302. }
  13303. return e.complexity.SubscriptionContract.CreatedAt(childComplexity), true
  13304. case "SubscriptionContract.currencyCode":
  13305. if e.complexity.SubscriptionContract.CurrencyCode == nil {
  13306. break
  13307. }
  13308. return e.complexity.SubscriptionContract.CurrencyCode(childComplexity), true
  13309. case "SubscriptionContract.customAttributes":
  13310. if e.complexity.SubscriptionContract.CustomAttributes == nil {
  13311. break
  13312. }
  13313. return e.complexity.SubscriptionContract.CustomAttributes(childComplexity), true
  13314. case "SubscriptionContract.customer":
  13315. if e.complexity.SubscriptionContract.Customer == nil {
  13316. break
  13317. }
  13318. return e.complexity.SubscriptionContract.Customer(childComplexity), true
  13319. case "SubscriptionContract.customerPaymentMethod":
  13320. if e.complexity.SubscriptionContract.CustomerPaymentMethod == nil {
  13321. break
  13322. }
  13323. args, err := ec.field_SubscriptionContract_customerPaymentMethod_args(context.TODO(), rawArgs)
  13324. if err != nil {
  13325. return 0, false
  13326. }
  13327. return e.complexity.SubscriptionContract.CustomerPaymentMethod(childComplexity, args["showRevoked"].(*bool)), true
  13328. case "SubscriptionContract.deliveryMethod":
  13329. if e.complexity.SubscriptionContract.DeliveryMethod == nil {
  13330. break
  13331. }
  13332. return e.complexity.SubscriptionContract.DeliveryMethod(childComplexity), true
  13333. case "SubscriptionContract.deliveryPolicy":
  13334. if e.complexity.SubscriptionContract.DeliveryPolicy == nil {
  13335. break
  13336. }
  13337. return e.complexity.SubscriptionContract.DeliveryPolicy(childComplexity), true
  13338. case "SubscriptionContract.deliveryPrice":
  13339. if e.complexity.SubscriptionContract.DeliveryPrice == nil {
  13340. break
  13341. }
  13342. return e.complexity.SubscriptionContract.DeliveryPrice(childComplexity), true
  13343. case "SubscriptionContract.discounts":
  13344. if e.complexity.SubscriptionContract.Discounts == nil {
  13345. break
  13346. }
  13347. args, err := ec.field_SubscriptionContract_discounts_args(context.TODO(), rawArgs)
  13348. if err != nil {
  13349. return 0, false
  13350. }
  13351. return e.complexity.SubscriptionContract.Discounts(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  13352. case "SubscriptionContract.id":
  13353. if e.complexity.SubscriptionContract.ID == nil {
  13354. break
  13355. }
  13356. return e.complexity.SubscriptionContract.ID(childComplexity), true
  13357. case "SubscriptionContract.lastPaymentStatus":
  13358. if e.complexity.SubscriptionContract.LastPaymentStatus == nil {
  13359. break
  13360. }
  13361. return e.complexity.SubscriptionContract.LastPaymentStatus(childComplexity), true
  13362. case "SubscriptionContract.lineCount":
  13363. if e.complexity.SubscriptionContract.LineCount == nil {
  13364. break
  13365. }
  13366. return e.complexity.SubscriptionContract.LineCount(childComplexity), true
  13367. case "SubscriptionContract.lines":
  13368. if e.complexity.SubscriptionContract.Lines == nil {
  13369. break
  13370. }
  13371. args, err := ec.field_SubscriptionContract_lines_args(context.TODO(), rawArgs)
  13372. if err != nil {
  13373. return 0, false
  13374. }
  13375. return e.complexity.SubscriptionContract.Lines(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  13376. case "SubscriptionContract.nextBillingDate":
  13377. if e.complexity.SubscriptionContract.NextBillingDate == nil {
  13378. break
  13379. }
  13380. return e.complexity.SubscriptionContract.NextBillingDate(childComplexity), true
  13381. case "SubscriptionContract.note":
  13382. if e.complexity.SubscriptionContract.Note == nil {
  13383. break
  13384. }
  13385. return e.complexity.SubscriptionContract.Note(childComplexity), true
  13386. case "SubscriptionContract.orders":
  13387. if e.complexity.SubscriptionContract.Orders == nil {
  13388. break
  13389. }
  13390. args, err := ec.field_SubscriptionContract_orders_args(context.TODO(), rawArgs)
  13391. if err != nil {
  13392. return 0, false
  13393. }
  13394. return e.complexity.SubscriptionContract.Orders(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  13395. case "SubscriptionContract.originOrder":
  13396. if e.complexity.SubscriptionContract.OriginOrder == nil {
  13397. break
  13398. }
  13399. return e.complexity.SubscriptionContract.OriginOrder(childComplexity), true
  13400. case "SubscriptionContract.status":
  13401. if e.complexity.SubscriptionContract.Status == nil {
  13402. break
  13403. }
  13404. return e.complexity.SubscriptionContract.Status(childComplexity), true
  13405. case "SubscriptionContract.updatedAt":
  13406. if e.complexity.SubscriptionContract.UpdatedAt == nil {
  13407. break
  13408. }
  13409. return e.complexity.SubscriptionContract.UpdatedAt(childComplexity), true
  13410. case "SubscriptionContractConnection.edges":
  13411. if e.complexity.SubscriptionContractConnection.Edges == nil {
  13412. break
  13413. }
  13414. return e.complexity.SubscriptionContractConnection.Edges(childComplexity), true
  13415. case "SubscriptionContractConnection.nodes":
  13416. if e.complexity.SubscriptionContractConnection.Nodes == nil {
  13417. break
  13418. }
  13419. return e.complexity.SubscriptionContractConnection.Nodes(childComplexity), true
  13420. case "SubscriptionContractConnection.pageInfo":
  13421. if e.complexity.SubscriptionContractConnection.PageInfo == nil {
  13422. break
  13423. }
  13424. return e.complexity.SubscriptionContractConnection.PageInfo(childComplexity), true
  13425. case "SubscriptionContractEdge.cursor":
  13426. if e.complexity.SubscriptionContractEdge.Cursor == nil {
  13427. break
  13428. }
  13429. return e.complexity.SubscriptionContractEdge.Cursor(childComplexity), true
  13430. case "SubscriptionContractEdge.node":
  13431. if e.complexity.SubscriptionContractEdge.Node == nil {
  13432. break
  13433. }
  13434. return e.complexity.SubscriptionContractEdge.Node(childComplexity), true
  13435. case "SubscriptionCyclePriceAdjustment.adjustmentType":
  13436. if e.complexity.SubscriptionCyclePriceAdjustment.AdjustmentType == nil {
  13437. break
  13438. }
  13439. return e.complexity.SubscriptionCyclePriceAdjustment.AdjustmentType(childComplexity), true
  13440. case "SubscriptionCyclePriceAdjustment.adjustmentValue":
  13441. if e.complexity.SubscriptionCyclePriceAdjustment.AdjustmentValue == nil {
  13442. break
  13443. }
  13444. return e.complexity.SubscriptionCyclePriceAdjustment.AdjustmentValue(childComplexity), true
  13445. case "SubscriptionCyclePriceAdjustment.afterCycle":
  13446. if e.complexity.SubscriptionCyclePriceAdjustment.AfterCycle == nil {
  13447. break
  13448. }
  13449. return e.complexity.SubscriptionCyclePriceAdjustment.AfterCycle(childComplexity), true
  13450. case "SubscriptionCyclePriceAdjustment.computedPrice":
  13451. if e.complexity.SubscriptionCyclePriceAdjustment.ComputedPrice == nil {
  13452. break
  13453. }
  13454. return e.complexity.SubscriptionCyclePriceAdjustment.ComputedPrice(childComplexity), true
  13455. case "SubscriptionDeliveryMethodLocalDelivery.address":
  13456. if e.complexity.SubscriptionDeliveryMethodLocalDelivery.Address == nil {
  13457. break
  13458. }
  13459. return e.complexity.SubscriptionDeliveryMethodLocalDelivery.Address(childComplexity), true
  13460. case "SubscriptionDeliveryMethodLocalDelivery.localDeliveryOption":
  13461. if e.complexity.SubscriptionDeliveryMethodLocalDelivery.LocalDeliveryOption == nil {
  13462. break
  13463. }
  13464. return e.complexity.SubscriptionDeliveryMethodLocalDelivery.LocalDeliveryOption(childComplexity), true
  13465. case "SubscriptionDeliveryMethodLocalDeliveryOption.code":
  13466. if e.complexity.SubscriptionDeliveryMethodLocalDeliveryOption.Code == nil {
  13467. break
  13468. }
  13469. return e.complexity.SubscriptionDeliveryMethodLocalDeliveryOption.Code(childComplexity), true
  13470. case "SubscriptionDeliveryMethodLocalDeliveryOption.description":
  13471. if e.complexity.SubscriptionDeliveryMethodLocalDeliveryOption.Description == nil {
  13472. break
  13473. }
  13474. return e.complexity.SubscriptionDeliveryMethodLocalDeliveryOption.Description(childComplexity), true
  13475. case "SubscriptionDeliveryMethodLocalDeliveryOption.instructions":
  13476. if e.complexity.SubscriptionDeliveryMethodLocalDeliveryOption.Instructions == nil {
  13477. break
  13478. }
  13479. return e.complexity.SubscriptionDeliveryMethodLocalDeliveryOption.Instructions(childComplexity), true
  13480. case "SubscriptionDeliveryMethodLocalDeliveryOption.phone":
  13481. if e.complexity.SubscriptionDeliveryMethodLocalDeliveryOption.Phone == nil {
  13482. break
  13483. }
  13484. return e.complexity.SubscriptionDeliveryMethodLocalDeliveryOption.Phone(childComplexity), true
  13485. case "SubscriptionDeliveryMethodLocalDeliveryOption.presentmentTitle":
  13486. if e.complexity.SubscriptionDeliveryMethodLocalDeliveryOption.PresentmentTitle == nil {
  13487. break
  13488. }
  13489. return e.complexity.SubscriptionDeliveryMethodLocalDeliveryOption.PresentmentTitle(childComplexity), true
  13490. case "SubscriptionDeliveryMethodLocalDeliveryOption.title":
  13491. if e.complexity.SubscriptionDeliveryMethodLocalDeliveryOption.Title == nil {
  13492. break
  13493. }
  13494. return e.complexity.SubscriptionDeliveryMethodLocalDeliveryOption.Title(childComplexity), true
  13495. case "SubscriptionDeliveryMethodPickup.pickupOption":
  13496. if e.complexity.SubscriptionDeliveryMethodPickup.PickupOption == nil {
  13497. break
  13498. }
  13499. return e.complexity.SubscriptionDeliveryMethodPickup.PickupOption(childComplexity), true
  13500. case "SubscriptionDeliveryMethodPickupOption.code":
  13501. if e.complexity.SubscriptionDeliveryMethodPickupOption.Code == nil {
  13502. break
  13503. }
  13504. return e.complexity.SubscriptionDeliveryMethodPickupOption.Code(childComplexity), true
  13505. case "SubscriptionDeliveryMethodPickupOption.description":
  13506. if e.complexity.SubscriptionDeliveryMethodPickupOption.Description == nil {
  13507. break
  13508. }
  13509. return e.complexity.SubscriptionDeliveryMethodPickupOption.Description(childComplexity), true
  13510. case "SubscriptionDeliveryMethodPickupOption.location":
  13511. if e.complexity.SubscriptionDeliveryMethodPickupOption.Location == nil {
  13512. break
  13513. }
  13514. return e.complexity.SubscriptionDeliveryMethodPickupOption.Location(childComplexity), true
  13515. case "SubscriptionDeliveryMethodPickupOption.presentmentTitle":
  13516. if e.complexity.SubscriptionDeliveryMethodPickupOption.PresentmentTitle == nil {
  13517. break
  13518. }
  13519. return e.complexity.SubscriptionDeliveryMethodPickupOption.PresentmentTitle(childComplexity), true
  13520. case "SubscriptionDeliveryMethodPickupOption.title":
  13521. if e.complexity.SubscriptionDeliveryMethodPickupOption.Title == nil {
  13522. break
  13523. }
  13524. return e.complexity.SubscriptionDeliveryMethodPickupOption.Title(childComplexity), true
  13525. case "SubscriptionDeliveryMethodShipping.address":
  13526. if e.complexity.SubscriptionDeliveryMethodShipping.Address == nil {
  13527. break
  13528. }
  13529. return e.complexity.SubscriptionDeliveryMethodShipping.Address(childComplexity), true
  13530. case "SubscriptionDeliveryMethodShipping.shippingOption":
  13531. if e.complexity.SubscriptionDeliveryMethodShipping.ShippingOption == nil {
  13532. break
  13533. }
  13534. return e.complexity.SubscriptionDeliveryMethodShipping.ShippingOption(childComplexity), true
  13535. case "SubscriptionDeliveryMethodShippingOption.carrierService":
  13536. if e.complexity.SubscriptionDeliveryMethodShippingOption.CarrierService == nil {
  13537. break
  13538. }
  13539. return e.complexity.SubscriptionDeliveryMethodShippingOption.CarrierService(childComplexity), true
  13540. case "SubscriptionDeliveryMethodShippingOption.code":
  13541. if e.complexity.SubscriptionDeliveryMethodShippingOption.Code == nil {
  13542. break
  13543. }
  13544. return e.complexity.SubscriptionDeliveryMethodShippingOption.Code(childComplexity), true
  13545. case "SubscriptionDeliveryMethodShippingOption.description":
  13546. if e.complexity.SubscriptionDeliveryMethodShippingOption.Description == nil {
  13547. break
  13548. }
  13549. return e.complexity.SubscriptionDeliveryMethodShippingOption.Description(childComplexity), true
  13550. case "SubscriptionDeliveryMethodShippingOption.presentmentTitle":
  13551. if e.complexity.SubscriptionDeliveryMethodShippingOption.PresentmentTitle == nil {
  13552. break
  13553. }
  13554. return e.complexity.SubscriptionDeliveryMethodShippingOption.PresentmentTitle(childComplexity), true
  13555. case "SubscriptionDeliveryMethodShippingOption.title":
  13556. if e.complexity.SubscriptionDeliveryMethodShippingOption.Title == nil {
  13557. break
  13558. }
  13559. return e.complexity.SubscriptionDeliveryMethodShippingOption.Title(childComplexity), true
  13560. case "SubscriptionDeliveryPolicy.anchors":
  13561. if e.complexity.SubscriptionDeliveryPolicy.Anchors == nil {
  13562. break
  13563. }
  13564. return e.complexity.SubscriptionDeliveryPolicy.Anchors(childComplexity), true
  13565. case "SubscriptionDeliveryPolicy.interval":
  13566. if e.complexity.SubscriptionDeliveryPolicy.Interval == nil {
  13567. break
  13568. }
  13569. return e.complexity.SubscriptionDeliveryPolicy.Interval(childComplexity), true
  13570. case "SubscriptionDeliveryPolicy.intervalCount":
  13571. if e.complexity.SubscriptionDeliveryPolicy.IntervalCount == nil {
  13572. break
  13573. }
  13574. return e.complexity.SubscriptionDeliveryPolicy.IntervalCount(childComplexity), true
  13575. case "SubscriptionDiscountAllocation.amount":
  13576. if e.complexity.SubscriptionDiscountAllocation.Amount == nil {
  13577. break
  13578. }
  13579. return e.complexity.SubscriptionDiscountAllocation.Amount(childComplexity), true
  13580. case "SubscriptionDiscountAllocation.discount":
  13581. if e.complexity.SubscriptionDiscountAllocation.Discount == nil {
  13582. break
  13583. }
  13584. return e.complexity.SubscriptionDiscountAllocation.Discount(childComplexity), true
  13585. case "SubscriptionDiscountEntitledLines.all":
  13586. if e.complexity.SubscriptionDiscountEntitledLines.All == nil {
  13587. break
  13588. }
  13589. return e.complexity.SubscriptionDiscountEntitledLines.All(childComplexity), true
  13590. case "SubscriptionDiscountEntitledLines.lines":
  13591. if e.complexity.SubscriptionDiscountEntitledLines.Lines == nil {
  13592. break
  13593. }
  13594. args, err := ec.field_SubscriptionDiscountEntitledLines_lines_args(context.TODO(), rawArgs)
  13595. if err != nil {
  13596. return 0, false
  13597. }
  13598. return e.complexity.SubscriptionDiscountEntitledLines.Lines(childComplexity, args["first"].(*int), args["after"].(*string), args["last"].(*int), args["before"].(*string), args["reverse"].(*bool)), true
  13599. case "SubscriptionDiscountFixedAmountValue.amount":
  13600. if e.complexity.SubscriptionDiscountFixedAmountValue.Amount == nil {
  13601. break
  13602. }
  13603. return e.complexity.SubscriptionDiscountFixedAmountValue.Amount(childComplexity), true
  13604. case "SubscriptionDiscountFixedAmountValue.appliesOnEachItem":
  13605. if e.complexity.SubscriptionDiscountFixedAmountValue.AppliesOnEachItem == nil {
  13606. break
  13607. }
  13608. return e.complexity.SubscriptionDiscountFixedAmountValue.AppliesOnEachItem(childComplexity), true
  13609. case "SubscriptionDiscountPercentageValue.percentage":
  13610. if e.complexity.SubscriptionDiscountPercentageValue.Percentage == nil {
  13611. break
  13612. }
  13613. return e.complexity.SubscriptionDiscountPercentageValue.Percentage(childComplexity), true
  13614. case "SubscriptionLine.currentPrice":
  13615. if e.complexity.SubscriptionLine.CurrentPrice == nil {
  13616. break
  13617. }
  13618. return e.complexity.SubscriptionLine.CurrentPrice(childComplexity), true
  13619. case "SubscriptionLine.customAttributes":
  13620. if e.complexity.SubscriptionLine.CustomAttributes == nil {
  13621. break
  13622. }
  13623. return e.complexity.SubscriptionLine.CustomAttributes(childComplexity), true
  13624. case "SubscriptionLine.discountAllocations":
  13625. if e.complexity.SubscriptionLine.DiscountAllocations == nil {
  13626. break
  13627. }
  13628. return e.complexity.SubscriptionLine.DiscountAllocations(childComplexity), true
  13629. case "SubscriptionLine.id":
  13630. if e.complexity.SubscriptionLine.ID == nil {
  13631. break
  13632. }
  13633. return e.complexity.SubscriptionLine.ID(childComplexity), true
  13634. case "SubscriptionLine.lineDiscountedPrice":
  13635. if e.complexity.SubscriptionLine.LineDiscountedPrice == nil {
  13636. break
  13637. }
  13638. return e.complexity.SubscriptionLine.LineDiscountedPrice(childComplexity), true
  13639. case "SubscriptionLine.pricingPolicy":
  13640. if e.complexity.SubscriptionLine.PricingPolicy == nil {
  13641. break
  13642. }
  13643. return e.complexity.SubscriptionLine.PricingPolicy(childComplexity), true
  13644. case "SubscriptionLine.productId":
  13645. if e.complexity.SubscriptionLine.ProductID == nil {
  13646. break
  13647. }
  13648. return e.complexity.SubscriptionLine.ProductID(childComplexity), true
  13649. case "SubscriptionLine.quantity":
  13650. if e.complexity.SubscriptionLine.Quantity == nil {
  13651. break
  13652. }
  13653. return e.complexity.SubscriptionLine.Quantity(childComplexity), true
  13654. case "SubscriptionLine.requiresShipping":
  13655. if e.complexity.SubscriptionLine.RequiresShipping == nil {
  13656. break
  13657. }
  13658. return e.complexity.SubscriptionLine.RequiresShipping(childComplexity), true
  13659. case "SubscriptionLine.sellingPlanId":
  13660. if e.complexity.SubscriptionLine.SellingPlanID == nil {
  13661. break
  13662. }
  13663. return e.complexity.SubscriptionLine.SellingPlanID(childComplexity), true
  13664. case "SubscriptionLine.sellingPlanName":
  13665. if e.complexity.SubscriptionLine.SellingPlanName == nil {
  13666. break
  13667. }
  13668. return e.complexity.SubscriptionLine.SellingPlanName(childComplexity), true
  13669. case "SubscriptionLine.sku":
  13670. if e.complexity.SubscriptionLine.Sku == nil {
  13671. break
  13672. }
  13673. return e.complexity.SubscriptionLine.Sku(childComplexity), true
  13674. case "SubscriptionLine.taxable":
  13675. if e.complexity.SubscriptionLine.Taxable == nil {
  13676. break
  13677. }
  13678. return e.complexity.SubscriptionLine.Taxable(childComplexity), true
  13679. case "SubscriptionLine.title":
  13680. if e.complexity.SubscriptionLine.Title == nil {
  13681. break
  13682. }
  13683. return e.complexity.SubscriptionLine.Title(childComplexity), true
  13684. case "SubscriptionLine.variantId":
  13685. if e.complexity.SubscriptionLine.VariantID == nil {
  13686. break
  13687. }
  13688. return e.complexity.SubscriptionLine.VariantID(childComplexity), true
  13689. case "SubscriptionLine.variantImage":
  13690. if e.complexity.SubscriptionLine.VariantImage == nil {
  13691. break
  13692. }
  13693. return e.complexity.SubscriptionLine.VariantImage(childComplexity), true
  13694. case "SubscriptionLine.variantTitle":
  13695. if e.complexity.SubscriptionLine.VariantTitle == nil {
  13696. break
  13697. }
  13698. return e.complexity.SubscriptionLine.VariantTitle(childComplexity), true
  13699. case "SubscriptionLineConnection.edges":
  13700. if e.complexity.SubscriptionLineConnection.Edges == nil {
  13701. break
  13702. }
  13703. return e.complexity.SubscriptionLineConnection.Edges(childComplexity), true
  13704. case "SubscriptionLineConnection.nodes":
  13705. if e.complexity.SubscriptionLineConnection.Nodes == nil {
  13706. break
  13707. }
  13708. return e.complexity.SubscriptionLineConnection.Nodes(childComplexity), true
  13709. case "SubscriptionLineConnection.pageInfo":
  13710. if e.complexity.SubscriptionLineConnection.PageInfo == nil {
  13711. break
  13712. }
  13713. return e.complexity.SubscriptionLineConnection.PageInfo(childComplexity), true
  13714. case "SubscriptionLineEdge.cursor":
  13715. if e.complexity.SubscriptionLineEdge.Cursor == nil {
  13716. break
  13717. }
  13718. return e.complexity.SubscriptionLineEdge.Cursor(childComplexity), true
  13719. case "SubscriptionLineEdge.node":
  13720. if e.complexity.SubscriptionLineEdge.Node == nil {
  13721. break
  13722. }
  13723. return e.complexity.SubscriptionLineEdge.Node(childComplexity), true
  13724. case "SubscriptionMailingAddress.address1":
  13725. if e.complexity.SubscriptionMailingAddress.Address1 == nil {
  13726. break
  13727. }
  13728. return e.complexity.SubscriptionMailingAddress.Address1(childComplexity), true
  13729. case "SubscriptionMailingAddress.address2":
  13730. if e.complexity.SubscriptionMailingAddress.Address2 == nil {
  13731. break
  13732. }
  13733. return e.complexity.SubscriptionMailingAddress.Address2(childComplexity), true
  13734. case "SubscriptionMailingAddress.city":
  13735. if e.complexity.SubscriptionMailingAddress.City == nil {
  13736. break
  13737. }
  13738. return e.complexity.SubscriptionMailingAddress.City(childComplexity), true
  13739. case "SubscriptionMailingAddress.company":
  13740. if e.complexity.SubscriptionMailingAddress.Company == nil {
  13741. break
  13742. }
  13743. return e.complexity.SubscriptionMailingAddress.Company(childComplexity), true
  13744. case "SubscriptionMailingAddress.country":
  13745. if e.complexity.SubscriptionMailingAddress.Country == nil {
  13746. break
  13747. }
  13748. return e.complexity.SubscriptionMailingAddress.Country(childComplexity), true
  13749. case "SubscriptionMailingAddress.countryCode":
  13750. if e.complexity.SubscriptionMailingAddress.CountryCode == nil {
  13751. break
  13752. }
  13753. return e.complexity.SubscriptionMailingAddress.CountryCode(childComplexity), true
  13754. case "SubscriptionMailingAddress.firstName":
  13755. if e.complexity.SubscriptionMailingAddress.FirstName == nil {
  13756. break
  13757. }
  13758. return e.complexity.SubscriptionMailingAddress.FirstName(childComplexity), true
  13759. case "SubscriptionMailingAddress.lastName":
  13760. if e.complexity.SubscriptionMailingAddress.LastName == nil {
  13761. break
  13762. }
  13763. return e.complexity.SubscriptionMailingAddress.LastName(childComplexity), true
  13764. case "SubscriptionMailingAddress.name":
  13765. if e.complexity.SubscriptionMailingAddress.Name == nil {
  13766. break
  13767. }
  13768. return e.complexity.SubscriptionMailingAddress.Name(childComplexity), true
  13769. case "SubscriptionMailingAddress.phone":
  13770. if e.complexity.SubscriptionMailingAddress.Phone == nil {
  13771. break
  13772. }
  13773. return e.complexity.SubscriptionMailingAddress.Phone(childComplexity), true
  13774. case "SubscriptionMailingAddress.province":
  13775. if e.complexity.SubscriptionMailingAddress.Province == nil {
  13776. break
  13777. }
  13778. return e.complexity.SubscriptionMailingAddress.Province(childComplexity), true
  13779. case "SubscriptionMailingAddress.provinceCode":
  13780. if e.complexity.SubscriptionMailingAddress.ProvinceCode == nil {
  13781. break
  13782. }
  13783. return e.complexity.SubscriptionMailingAddress.ProvinceCode(childComplexity), true
  13784. case "SubscriptionMailingAddress.zip":
  13785. if e.complexity.SubscriptionMailingAddress.Zip == nil {
  13786. break
  13787. }
  13788. return e.complexity.SubscriptionMailingAddress.Zip(childComplexity), true
  13789. case "SubscriptionManualDiscount.entitledLines":
  13790. if e.complexity.SubscriptionManualDiscount.EntitledLines == nil {
  13791. break
  13792. }
  13793. return e.complexity.SubscriptionManualDiscount.EntitledLines(childComplexity), true
  13794. case "SubscriptionManualDiscount.id":
  13795. if e.complexity.SubscriptionManualDiscount.ID == nil {
  13796. break
  13797. }
  13798. return e.complexity.SubscriptionManualDiscount.ID(childComplexity), true
  13799. case "SubscriptionManualDiscount.recurringCycleLimit":
  13800. if e.complexity.SubscriptionManualDiscount.RecurringCycleLimit == nil {
  13801. break
  13802. }
  13803. return e.complexity.SubscriptionManualDiscount.RecurringCycleLimit(childComplexity), true
  13804. case "SubscriptionManualDiscount.rejectionReason":
  13805. if e.complexity.SubscriptionManualDiscount.RejectionReason == nil {
  13806. break
  13807. }
  13808. return e.complexity.SubscriptionManualDiscount.RejectionReason(childComplexity), true
  13809. case "SubscriptionManualDiscount.targetType":
  13810. if e.complexity.SubscriptionManualDiscount.TargetType == nil {
  13811. break
  13812. }
  13813. return e.complexity.SubscriptionManualDiscount.TargetType(childComplexity), true
  13814. case "SubscriptionManualDiscount.title":
  13815. if e.complexity.SubscriptionManualDiscount.Title == nil {
  13816. break
  13817. }
  13818. return e.complexity.SubscriptionManualDiscount.Title(childComplexity), true
  13819. case "SubscriptionManualDiscount.type":
  13820. if e.complexity.SubscriptionManualDiscount.Type == nil {
  13821. break
  13822. }
  13823. return e.complexity.SubscriptionManualDiscount.Type(childComplexity), true
  13824. case "SubscriptionManualDiscount.usageCount":
  13825. if e.complexity.SubscriptionManualDiscount.UsageCount == nil {
  13826. break
  13827. }
  13828. return e.complexity.SubscriptionManualDiscount.UsageCount(childComplexity), true
  13829. case "SubscriptionManualDiscount.value":
  13830. if e.complexity.SubscriptionManualDiscount.Value == nil {
  13831. break
  13832. }
  13833. return e.complexity.SubscriptionManualDiscount.Value(childComplexity), true
  13834. case "SubscriptionManualDiscountConnection.edges":
  13835. if e.complexity.SubscriptionManualDiscountConnection.Edges == nil {
  13836. break
  13837. }
  13838. return e.complexity.SubscriptionManualDiscountConnection.Edges(childComplexity), true
  13839. case "SubscriptionManualDiscountConnection.nodes":
  13840. if e.complexity.SubscriptionManualDiscountConnection.Nodes == nil {
  13841. break
  13842. }
  13843. return e.complexity.SubscriptionManualDiscountConnection.Nodes(childComplexity), true
  13844. case "SubscriptionManualDiscountConnection.pageInfo":
  13845. if e.complexity.SubscriptionManualDiscountConnection.PageInfo == nil {
  13846. break
  13847. }
  13848. return e.complexity.SubscriptionManualDiscountConnection.PageInfo(childComplexity), true
  13849. case "SubscriptionManualDiscountEdge.cursor":
  13850. if e.complexity.SubscriptionManualDiscountEdge.Cursor == nil {
  13851. break
  13852. }
  13853. return e.complexity.SubscriptionManualDiscountEdge.Cursor(childComplexity), true
  13854. case "SubscriptionManualDiscountEdge.node":
  13855. if e.complexity.SubscriptionManualDiscountEdge.Node == nil {
  13856. break
  13857. }
  13858. return e.complexity.SubscriptionManualDiscountEdge.Node(childComplexity), true
  13859. case "SubscriptionPricingPolicy.basePrice":
  13860. if e.complexity.SubscriptionPricingPolicy.BasePrice == nil {
  13861. break
  13862. }
  13863. return e.complexity.SubscriptionPricingPolicy.BasePrice(childComplexity), true
  13864. case "SubscriptionPricingPolicy.cycleDiscounts":
  13865. if e.complexity.SubscriptionPricingPolicy.CycleDiscounts == nil {
  13866. break
  13867. }
  13868. return e.complexity.SubscriptionPricingPolicy.CycleDiscounts(childComplexity), true
  13869. case "SuggestedOrderTransaction.accountNumber":
  13870. if e.complexity.SuggestedOrderTransaction.AccountNumber == nil {
  13871. break
  13872. }
  13873. return e.complexity.SuggestedOrderTransaction.AccountNumber(childComplexity), true
  13874. case "SuggestedOrderTransaction.amountSet":
  13875. if e.complexity.SuggestedOrderTransaction.AmountSet == nil {
  13876. break
  13877. }
  13878. return e.complexity.SuggestedOrderTransaction.AmountSet(childComplexity), true
  13879. case "SuggestedOrderTransaction.formattedGateway":
  13880. if e.complexity.SuggestedOrderTransaction.FormattedGateway == nil {
  13881. break
  13882. }
  13883. return e.complexity.SuggestedOrderTransaction.FormattedGateway(childComplexity), true
  13884. case "SuggestedOrderTransaction.gateway":
  13885. if e.complexity.SuggestedOrderTransaction.Gateway == nil {
  13886. break
  13887. }
  13888. return e.complexity.SuggestedOrderTransaction.Gateway(childComplexity), true
  13889. case "SuggestedOrderTransaction.kind":
  13890. if e.complexity.SuggestedOrderTransaction.Kind == nil {
  13891. break
  13892. }
  13893. return e.complexity.SuggestedOrderTransaction.Kind(childComplexity), true
  13894. case "SuggestedOrderTransaction.maximumRefundableSet":
  13895. if e.complexity.SuggestedOrderTransaction.MaximumRefundableSet == nil {
  13896. break
  13897. }
  13898. return e.complexity.SuggestedOrderTransaction.MaximumRefundableSet(childComplexity), true
  13899. case "SuggestedOrderTransaction.parentTransaction":
  13900. if e.complexity.SuggestedOrderTransaction.ParentTransaction == nil {
  13901. break
  13902. }
  13903. return e.complexity.SuggestedOrderTransaction.ParentTransaction(childComplexity), true
  13904. case "SuggestedRefund.amountSet":
  13905. if e.complexity.SuggestedRefund.AmountSet == nil {
  13906. break
  13907. }
  13908. return e.complexity.SuggestedRefund.AmountSet(childComplexity), true
  13909. case "SuggestedRefund.discountedSubtotalSet":
  13910. if e.complexity.SuggestedRefund.DiscountedSubtotalSet == nil {
  13911. break
  13912. }
  13913. return e.complexity.SuggestedRefund.DiscountedSubtotalSet(childComplexity), true
  13914. case "SuggestedRefund.maximumRefundableSet":
  13915. if e.complexity.SuggestedRefund.MaximumRefundableSet == nil {
  13916. break
  13917. }
  13918. return e.complexity.SuggestedRefund.MaximumRefundableSet(childComplexity), true
  13919. case "SuggestedRefund.refundDuties":
  13920. if e.complexity.SuggestedRefund.RefundDuties == nil {
  13921. break
  13922. }
  13923. return e.complexity.SuggestedRefund.RefundDuties(childComplexity), true
  13924. case "SuggestedRefund.refundLineItems":
  13925. if e.complexity.SuggestedRefund.RefundLineItems == nil {
  13926. break
  13927. }
  13928. return e.complexity.SuggestedRefund.RefundLineItems(childComplexity), true
  13929. case "SuggestedRefund.shipping":
  13930. if e.complexity.SuggestedRefund.Shipping == nil {
  13931. break
  13932. }
  13933. return e.complexity.SuggestedRefund.Shipping(childComplexity), true
  13934. case "SuggestedRefund.subtotalSet":
  13935. if e.complexity.SuggestedRefund.SubtotalSet == nil {
  13936. break
  13937. }
  13938. return e.complexity.SuggestedRefund.SubtotalSet(childComplexity), true
  13939. case "SuggestedRefund.suggestedTransactions":
  13940. if e.complexity.SuggestedRefund.SuggestedTransactions == nil {
  13941. break
  13942. }
  13943. return e.complexity.SuggestedRefund.SuggestedTransactions(childComplexity), true
  13944. case "SuggestedRefund.totalCartDiscountAmountSet":
  13945. if e.complexity.SuggestedRefund.TotalCartDiscountAmountSet == nil {
  13946. break
  13947. }
  13948. return e.complexity.SuggestedRefund.TotalCartDiscountAmountSet(childComplexity), true
  13949. case "SuggestedRefund.totalDutiesSet":
  13950. if e.complexity.SuggestedRefund.TotalDutiesSet == nil {
  13951. break
  13952. }
  13953. return e.complexity.SuggestedRefund.TotalDutiesSet(childComplexity), true
  13954. case "SuggestedRefund.totalTaxSet":
  13955. if e.complexity.SuggestedRefund.TotalTaxSet == nil {
  13956. break
  13957. }
  13958. return e.complexity.SuggestedRefund.TotalTaxSet(childComplexity), true
  13959. case "TaxLine.channelLiable":
  13960. if e.complexity.TaxLine.ChannelLiable == nil {
  13961. break
  13962. }
  13963. return e.complexity.TaxLine.ChannelLiable(childComplexity), true
  13964. case "TaxLine.priceSet":
  13965. if e.complexity.TaxLine.PriceSet == nil {
  13966. break
  13967. }
  13968. return e.complexity.TaxLine.PriceSet(childComplexity), true
  13969. case "TaxLine.rate":
  13970. if e.complexity.TaxLine.Rate == nil {
  13971. break
  13972. }
  13973. return e.complexity.TaxLine.Rate(childComplexity), true
  13974. case "TaxLine.ratePercentage":
  13975. if e.complexity.TaxLine.RatePercentage == nil {
  13976. break
  13977. }
  13978. return e.complexity.TaxLine.RatePercentage(childComplexity), true
  13979. case "TaxLine.title":
  13980. if e.complexity.TaxLine.Title == nil {
  13981. break
  13982. }
  13983. return e.complexity.TaxLine.Title(childComplexity), true
  13984. case "TransactionFee.amount":
  13985. if e.complexity.TransactionFee.Amount == nil {
  13986. break
  13987. }
  13988. return e.complexity.TransactionFee.Amount(childComplexity), true
  13989. case "TransactionFee.flatFee":
  13990. if e.complexity.TransactionFee.FlatFee == nil {
  13991. break
  13992. }
  13993. return e.complexity.TransactionFee.FlatFee(childComplexity), true
  13994. case "TransactionFee.flatFeeName":
  13995. if e.complexity.TransactionFee.FlatFeeName == nil {
  13996. break
  13997. }
  13998. return e.complexity.TransactionFee.FlatFeeName(childComplexity), true
  13999. case "TransactionFee.id":
  14000. if e.complexity.TransactionFee.ID == nil {
  14001. break
  14002. }
  14003. return e.complexity.TransactionFee.ID(childComplexity), true
  14004. case "TransactionFee.rate":
  14005. if e.complexity.TransactionFee.Rate == nil {
  14006. break
  14007. }
  14008. return e.complexity.TransactionFee.Rate(childComplexity), true
  14009. case "TransactionFee.rateName":
  14010. if e.complexity.TransactionFee.RateName == nil {
  14011. break
  14012. }
  14013. return e.complexity.TransactionFee.RateName(childComplexity), true
  14014. case "TransactionFee.taxAmount":
  14015. if e.complexity.TransactionFee.TaxAmount == nil {
  14016. break
  14017. }
  14018. return e.complexity.TransactionFee.TaxAmount(childComplexity), true
  14019. case "TransactionFee.type":
  14020. if e.complexity.TransactionFee.Type == nil {
  14021. break
  14022. }
  14023. return e.complexity.TransactionFee.Type(childComplexity), true
  14024. case "TypedAttribute.key":
  14025. if e.complexity.TypedAttribute.Key == nil {
  14026. break
  14027. }
  14028. return e.complexity.TypedAttribute.Key(childComplexity), true
  14029. case "TypedAttribute.value":
  14030. if e.complexity.TypedAttribute.Value == nil {
  14031. break
  14032. }
  14033. return e.complexity.TypedAttribute.Value(childComplexity), true
  14034. case "UTMParameters.campaign":
  14035. if e.complexity.UTMParameters.Campaign == nil {
  14036. break
  14037. }
  14038. return e.complexity.UTMParameters.Campaign(childComplexity), true
  14039. case "UTMParameters.content":
  14040. if e.complexity.UTMParameters.Content == nil {
  14041. break
  14042. }
  14043. return e.complexity.UTMParameters.Content(childComplexity), true
  14044. case "UTMParameters.medium":
  14045. if e.complexity.UTMParameters.Medium == nil {
  14046. break
  14047. }
  14048. return e.complexity.UTMParameters.Medium(childComplexity), true
  14049. case "UTMParameters.source":
  14050. if e.complexity.UTMParameters.Source == nil {
  14051. break
  14052. }
  14053. return e.complexity.UTMParameters.Source(childComplexity), true
  14054. case "UTMParameters.term":
  14055. if e.complexity.UTMParameters.Term == nil {
  14056. break
  14057. }
  14058. return e.complexity.UTMParameters.Term(childComplexity), true
  14059. case "UserError.field":
  14060. if e.complexity.UserError.Field == nil {
  14061. break
  14062. }
  14063. return e.complexity.UserError.Field(childComplexity), true
  14064. case "UserError.message":
  14065. if e.complexity.UserError.Message == nil {
  14066. break
  14067. }
  14068. return e.complexity.UserError.Message(childComplexity), true
  14069. case "VaultCreditCard.billingAddress":
  14070. if e.complexity.VaultCreditCard.BillingAddress == nil {
  14071. break
  14072. }
  14073. return e.complexity.VaultCreditCard.BillingAddress(childComplexity), true
  14074. case "VaultCreditCard.brand":
  14075. if e.complexity.VaultCreditCard.Brand == nil {
  14076. break
  14077. }
  14078. return e.complexity.VaultCreditCard.Brand(childComplexity), true
  14079. case "VaultCreditCard.expired":
  14080. if e.complexity.VaultCreditCard.Expired == nil {
  14081. break
  14082. }
  14083. return e.complexity.VaultCreditCard.Expired(childComplexity), true
  14084. case "VaultCreditCard.expiryMonth":
  14085. if e.complexity.VaultCreditCard.ExpiryMonth == nil {
  14086. break
  14087. }
  14088. return e.complexity.VaultCreditCard.ExpiryMonth(childComplexity), true
  14089. case "VaultCreditCard.expiryYear":
  14090. if e.complexity.VaultCreditCard.ExpiryYear == nil {
  14091. break
  14092. }
  14093. return e.complexity.VaultCreditCard.ExpiryYear(childComplexity), true
  14094. case "VaultCreditCard.lastDigits":
  14095. if e.complexity.VaultCreditCard.LastDigits == nil {
  14096. break
  14097. }
  14098. return e.complexity.VaultCreditCard.LastDigits(childComplexity), true
  14099. case "VaultCreditCard.name":
  14100. if e.complexity.VaultCreditCard.Name == nil {
  14101. break
  14102. }
  14103. return e.complexity.VaultCreditCard.Name(childComplexity), true
  14104. case "VaultPaypalBillingAgreement.inactive":
  14105. if e.complexity.VaultPaypalBillingAgreement.Inactive == nil {
  14106. break
  14107. }
  14108. return e.complexity.VaultPaypalBillingAgreement.Inactive(childComplexity), true
  14109. case "VaultPaypalBillingAgreement.name":
  14110. if e.complexity.VaultPaypalBillingAgreement.Name == nil {
  14111. break
  14112. }
  14113. return e.complexity.VaultPaypalBillingAgreement.Name(childComplexity), true
  14114. case "VaultPaypalBillingAgreement.paypalAccountEmail":
  14115. if e.complexity.VaultPaypalBillingAgreement.PaypalAccountEmail == nil {
  14116. break
  14117. }
  14118. return e.complexity.VaultPaypalBillingAgreement.PaypalAccountEmail(childComplexity), true
  14119. case "Video.alt":
  14120. if e.complexity.Video.Alt == nil {
  14121. break
  14122. }
  14123. return e.complexity.Video.Alt(childComplexity), true
  14124. case "Video.createdAt":
  14125. if e.complexity.Video.CreatedAt == nil {
  14126. break
  14127. }
  14128. return e.complexity.Video.CreatedAt(childComplexity), true
  14129. case "Video.duration":
  14130. if e.complexity.Video.Duration == nil {
  14131. break
  14132. }
  14133. return e.complexity.Video.Duration(childComplexity), true
  14134. case "Video.fileErrors":
  14135. if e.complexity.Video.FileErrors == nil {
  14136. break
  14137. }
  14138. return e.complexity.Video.FileErrors(childComplexity), true
  14139. case "Video.fileStatus":
  14140. if e.complexity.Video.FileStatus == nil {
  14141. break
  14142. }
  14143. return e.complexity.Video.FileStatus(childComplexity), true
  14144. case "Video.filename":
  14145. if e.complexity.Video.Filename == nil {
  14146. break
  14147. }
  14148. return e.complexity.Video.Filename(childComplexity), true
  14149. case "Video.id":
  14150. if e.complexity.Video.ID == nil {
  14151. break
  14152. }
  14153. return e.complexity.Video.ID(childComplexity), true
  14154. case "Video.mediaContentType":
  14155. if e.complexity.Video.MediaContentType == nil {
  14156. break
  14157. }
  14158. return e.complexity.Video.MediaContentType(childComplexity), true
  14159. case "Video.mediaErrors":
  14160. if e.complexity.Video.MediaErrors == nil {
  14161. break
  14162. }
  14163. return e.complexity.Video.MediaErrors(childComplexity), true
  14164. case "Video.mediaWarnings":
  14165. if e.complexity.Video.MediaWarnings == nil {
  14166. break
  14167. }
  14168. return e.complexity.Video.MediaWarnings(childComplexity), true
  14169. case "Video.originalSource":
  14170. if e.complexity.Video.OriginalSource == nil {
  14171. break
  14172. }
  14173. return e.complexity.Video.OriginalSource(childComplexity), true
  14174. case "Video.preview":
  14175. if e.complexity.Video.Preview == nil {
  14176. break
  14177. }
  14178. return e.complexity.Video.Preview(childComplexity), true
  14179. case "Video.sources":
  14180. if e.complexity.Video.Sources == nil {
  14181. break
  14182. }
  14183. return e.complexity.Video.Sources(childComplexity), true
  14184. case "Video.status":
  14185. if e.complexity.Video.Status == nil {
  14186. break
  14187. }
  14188. return e.complexity.Video.Status(childComplexity), true
  14189. case "VideoSource.fileSize":
  14190. if e.complexity.VideoSource.FileSize == nil {
  14191. break
  14192. }
  14193. return e.complexity.VideoSource.FileSize(childComplexity), true
  14194. case "VideoSource.format":
  14195. if e.complexity.VideoSource.Format == nil {
  14196. break
  14197. }
  14198. return e.complexity.VideoSource.Format(childComplexity), true
  14199. case "VideoSource.height":
  14200. if e.complexity.VideoSource.Height == nil {
  14201. break
  14202. }
  14203. return e.complexity.VideoSource.Height(childComplexity), true
  14204. case "VideoSource.mimeType":
  14205. if e.complexity.VideoSource.MimeType == nil {
  14206. break
  14207. }
  14208. return e.complexity.VideoSource.MimeType(childComplexity), true
  14209. case "VideoSource.url":
  14210. if e.complexity.VideoSource.URL == nil {
  14211. break
  14212. }
  14213. return e.complexity.VideoSource.URL(childComplexity), true
  14214. case "VideoSource.width":
  14215. if e.complexity.VideoSource.Width == nil {
  14216. break
  14217. }
  14218. return e.complexity.VideoSource.Width(childComplexity), true
  14219. case "Weight.unit":
  14220. if e.complexity.Weight.Unit == nil {
  14221. break
  14222. }
  14223. return e.complexity.Weight.Unit(childComplexity), true
  14224. case "Weight.value":
  14225. if e.complexity.Weight.Value == nil {
  14226. break
  14227. }
  14228. return e.complexity.Weight.Value(childComplexity), true
  14229. case "_Service.sdl":
  14230. if e.complexity._Service.SDL == nil {
  14231. break
  14232. }
  14233. return e.complexity._Service.SDL(childComplexity), true
  14234. }
  14235. return 0, false
  14236. }
  14237. func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler {
  14238. rc := graphql.GetOperationContext(ctx)
  14239. ec := executionContext{rc, e}
  14240. inputUnmarshalMap := graphql.BuildUnmarshalerMap(
  14241. ec.unmarshalInputContextualPricingContext,
  14242. ec.unmarshalInputCustomerInput,
  14243. ec.unmarshalInputImageTransformInput,
  14244. ec.unmarshalInputMailingAddressInput,
  14245. ec.unmarshalInputMetafieldInput,
  14246. ec.unmarshalInputPrivateMetafieldInput,
  14247. ec.unmarshalInputPrivateMetafieldValueInput,
  14248. ec.unmarshalInputRefundDutyInput,
  14249. ec.unmarshalInputRefundLineItemInput,
  14250. ec.unmarshalInputSEOInput,
  14251. )
  14252. first := true
  14253. switch rc.Operation.Operation {
  14254. case ast.Query:
  14255. return func(ctx context.Context) *graphql.Response {
  14256. if !first {
  14257. return nil
  14258. }
  14259. first = false
  14260. ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap)
  14261. data := ec._queryMiddleware(ctx, rc.Operation, func(ctx context.Context) (interface{}, error) {
  14262. return ec._Query(ctx, rc.Operation.SelectionSet), nil
  14263. })
  14264. var buf bytes.Buffer
  14265. data.MarshalGQL(&buf)
  14266. return &graphql.Response{
  14267. Data: buf.Bytes(),
  14268. }
  14269. }
  14270. case ast.Mutation:
  14271. return func(ctx context.Context) *graphql.Response {
  14272. if !first {
  14273. return nil
  14274. }
  14275. first = false
  14276. ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap)
  14277. data := ec._mutationMiddleware(ctx, rc.Operation, func(ctx context.Context) (interface{}, error) {
  14278. return ec._Mutation(ctx, rc.Operation.SelectionSet), nil
  14279. })
  14280. var buf bytes.Buffer
  14281. data.MarshalGQL(&buf)
  14282. return &graphql.Response{
  14283. Data: buf.Bytes(),
  14284. }
  14285. }
  14286. default:
  14287. return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation"))
  14288. }
  14289. }
  14290. type executionContext struct {
  14291. *graphql.OperationContext
  14292. *executableSchema
  14293. }
  14294. func (ec *executionContext) introspectSchema() (*introspection.Schema, error) {
  14295. if ec.DisableIntrospection {
  14296. return nil, errors.New("introspection disabled")
  14297. }
  14298. return introspection.WrapSchema(parsedSchema), nil
  14299. }
  14300. func (ec *executionContext) introspectType(name string) (*introspection.Type, error) {
  14301. if ec.DisableIntrospection {
  14302. return nil, errors.New("introspection disabled")
  14303. }
  14304. return introspection.WrapTypeFromDef(parsedSchema, parsedSchema.Types[name]), nil
  14305. }
  14306. var sources = []*ast.Source{
  14307. {Name: "../../../subgraph/customer.tpl", Input: `type Query {
  14308. # Returns a Customer resource by ID.
  14309. customer(id: ID!): Customer
  14310. }
  14311. type Mutation {
  14312. customerCreate(input: CustomerInput!): CustomerCreatePayload
  14313. }
  14314. input CustomerInput {
  14315. # The addresses for a customer.
  14316. addresses: [MailingAddressInput!]
  14317. # The unique email address of the customer.
  14318. email: String
  14319. # The customer's first name.
  14320. firstName: String
  14321. # The ID of the customer to update.
  14322. id: ID
  14323. # The customer's last name.
  14324. lastName: String
  14325. # The customer's locale.
  14326. locale: String
  14327. # Additional metafields to associate to the customer.
  14328. metafields: [MetafieldInput!]
  14329. # A note about the customer.
  14330. note: String
  14331. # The unique phone number for the customer.
  14332. phone: String
  14333. # The private metafields to associate with the customer.
  14334. privateMetafields: [PrivateMetafieldInput!]
  14335. # A list of tags to associate with the customer. Can be an array or a comma-separated list. Example values: ["tag1", "tag2", "tag3"], "tag1, tag2, tag3"
  14336. #
  14337. # Updating tags overwrites any existing tags that were previously added to the customer. To add new tags without overwriting
  14338. # existing tags, use the tagsAdd mutation.
  14339. tags: [String!]
  14340. }
  14341. # Return type for customerCreate mutation.
  14342. type CustomerCreatePayload {
  14343. # The created customer.
  14344. customer: Customer
  14345. # The list of errors that occurred from executing the mutation.
  14346. userErrors: [UserError!]!
  14347. }
  14348. `, BuiltIn: false},
  14349. {Name: "../../../ext/alert.graphql", Input: `# An alert message that appears in the Shopify admin about a problem with a store resource, with 1 or more actions to take.
  14350. # For example, you could use an alert to indicate that you're not charging taxes on some product variants.
  14351. # They can optionally have a specific icon and be dismissed by merchants.
  14352. type ResourceAlert {
  14353. # Buttons in the alert that link to related information.
  14354. # For example, Edit variants.
  14355. actions: [ResourceAlertAction!]!
  14356. # The secondary text in the alert that includes further information or instructions about how to solve a problem.
  14357. content: HTML!
  14358. # Unique identifier that appears when an alert is manually closed by the merchant.
  14359. # Most alerts cannot be manually closed.
  14360. dismissibleHandle: String
  14361. # An icon that is optionally displayed with the alert.
  14362. icon: ResourceAlertIcon
  14363. # Indication of how important the alert is.
  14364. severity: ResourceAlertSeverity!
  14365. # The primary text in the alert that includes information or describes the problem.
  14366. title: String!
  14367. }
  14368. # An action associated to a resource alert, such as editing variants.
  14369. type ResourceAlertAction {
  14370. # Whether the action appears as a button or as a link.
  14371. primary: Boolean!
  14372. # Resource for the action to show.
  14373. show: String
  14374. # The text for the button in the alert. For example, Edit variants.
  14375. title: String!
  14376. # The target URL that the button links to.
  14377. url: URL!
  14378. }
  14379. # An alert message that appears in the Shopify admin about a problem with a store setting, with an action to take.
  14380. # For example, you could show an alert to ask the merchant to enter their billing information to activate Shopify Plus.
  14381. type ShopAlert {
  14382. # The text for the button in the alert that links to related information. For example, Add credit card.
  14383. action: ShopAlertAction!
  14384. # A description of the alert and further information, such as whether the merchant will be charged.
  14385. description: String!
  14386. }
  14387. # An action associated to a shop alert, such as adding a credit card.
  14388. type ShopAlertAction {
  14389. # The text for the button in the alert. For example, Add credit card.
  14390. title: String!
  14391. # The target URL that the button links to.
  14392. url: URL!
  14393. }
  14394. `, BuiltIn: false},
  14395. {Name: "../../../ext/app.graphql", Input: `# A Shopify application.
  14396. type App implements Node {
  14397. # A unique application API identifier.
  14398. apiKey: String!
  14399. # App store page URL of the app.
  14400. appStoreAppUrl: URL
  14401. # App store page URL of the developer who created the app.
  14402. appStoreDeveloperUrl: URL
  14403. # The access scopes available to the app.
  14404. availableAccessScopes: [AccessScope!]!
  14405. # Banner image for the app.
  14406. banner: Image!
  14407. # Description of the app.
  14408. description: String
  14409. # The name of the app developer.
  14410. developerName: String
  14411. # The type of app developer.
  14412. developerType: AppDeveloperType!
  14413. # Whether the app uses the Embedded App SDK.
  14414. embedded: Boolean!
  14415. # Requirements that must be met before the app can be installed.
  14416. failedRequirements: [FailedRequirement!]!
  14417. # A list of app features that are shown in the Shopify App Store listing.
  14418. features: [String!]!
  14419. # Feedback from this app about the store.
  14420. feedback: AppFeedback
  14421. # Handle of the app.
  14422. handle: String
  14423. # Icon that represents the app.
  14424. icon: Image!
  14425. # A globally-unique identifier.
  14426. id: ID!
  14427. # Webpage where you can install the app.
  14428. installUrl: URL
  14429. # Corresponding AppInstallation for this shop and App.
  14430. # Returns null if the App is not installed.
  14431. installation: AppInstallation
  14432. # Whether the app is the post purchase app in use.
  14433. isPostPurchaseAppInUse: Boolean!
  14434. # Whether the app was previously installed on the current shop.
  14435. previouslyInstalled: Boolean!
  14436. # Detailed information about the app pricing.
  14437. pricingDetails: String
  14438. # Summary of the app pricing details.
  14439. pricingDetailsSummary: String!
  14440. # Link to app privacy policy.
  14441. privacyPolicyUrl: URL
  14442. # The public category for the app.
  14443. publicCategory: AppPublicCategory!
  14444. # Whether the app is published to the Shopify App Store.
  14445. published: Boolean!
  14446. # The access scopes requested by the app.
  14447. requestedAccessScopes: [AccessScope!]!
  14448. # Screenshots of the app.
  14449. screenshots: [Image!]!
  14450. # Whether the app was developed by Shopify.
  14451. shopifyDeveloped: Boolean!
  14452. # Name of the app.
  14453. title: String!
  14454. # Message that appears when the app is uninstalled. For example:
  14455. # By removing this app, you will no longer be able to publish products to MySocialSite or view this app in your Shopify admin. You can re-enable this channel at any time.
  14456. uninstallMessage: String!
  14457. # The webhook API version for the app.
  14458. webhookApiVersion: String!
  14459. }
  14460. # The application that created the order.
  14461. type OrderApp {
  14462. # The application icon.
  14463. icon: Image!
  14464. # The application ID.
  14465. id: ID!
  14466. # The name of the application.
  14467. name: String!
  14468. }
  14469. # Requirements that must be met before an app can be installed.
  14470. type FailedRequirement {
  14471. # Action to be taken to resolve a failed requirement, including URL link.
  14472. action: NavigationItem
  14473. # A concise set of copy strings to be displayed to merchants, to guide them in resolving problems your app
  14474. # encounters when trying to make use of their Shop and its resources.
  14475. message: String!
  14476. }
  14477. # A navigation item, holding basic link attributes.
  14478. type NavigationItem {
  14479. # The unique identifier of the navigation item.
  14480. id: String!
  14481. # The name of the navigation item.
  14482. title: String!
  14483. # The URL of the page that the navigation item links to.
  14484. url: URL!
  14485. }
  14486. # Reports the status of shops and their resources and displays this information
  14487. # within Shopify admin. AppFeedback is used to notify merchants about steps they need to take
  14488. # to set up an app on their store.
  14489. type AppFeedback {
  14490. # The application associated to the feedback.
  14491. app: App!
  14492. # A link to where merchants can resolve errors.
  14493. link: Link
  14494. # The feedback message presented to the merchant.
  14495. messages: [UserError!]!
  14496. }
  14497. # Represents an installed application on a shop.
  14498. type AppInstallation implements HasMetafields&Node {
  14499. # The access scopes granted to the application by a merchant during installation.
  14500. accessScopes: [AccessScope!]!
  14501. # The active application subscriptions billed to the shop on a recurring basis.
  14502. activeSubscriptions: [AppSubscription!]!
  14503. # All subscriptions created for a shop.
  14504. allSubscriptions(
  14505. first: Int
  14506. after: String
  14507. last: Int
  14508. before: String
  14509. reverse: Boolean = false
  14510. sortKey: AppSubscriptionSortKeys = CREATED_AT
  14511. ): AppSubscriptionConnection!
  14512. # Application which is installed.
  14513. app: App!
  14514. # Credits that can be used towards future app purchases.
  14515. credits(
  14516. first: Int
  14517. after: String
  14518. last: Int
  14519. before: String
  14520. reverse: Boolean = false
  14521. sortKey: AppTransactionSortKeys = CREATED_AT
  14522. ): AppCreditConnection!
  14523. # A globally-unique identifier.
  14524. id: ID!
  14525. # The URL to launch the application.
  14526. launchUrl: URL!
  14527. # Returns a metafield by namespace and key that belongs to the resource.
  14528. metafield(namespace: String!key: String!): Metafield
  14529. # List of metafields that belong to the resource.
  14530. metafields(
  14531. namespace: String
  14532. first: Int
  14533. after: String
  14534. last: Int
  14535. before: String
  14536. reverse: Boolean = false
  14537. ): MetafieldConnection!
  14538. # One-time purchases to a shop.
  14539. oneTimePurchases(
  14540. first: Int
  14541. after: String
  14542. last: Int
  14543. before: String
  14544. reverse: Boolean = false
  14545. sortKey: AppTransactionSortKeys = CREATED_AT
  14546. ): AppPurchaseOneTimeConnection!
  14547. # Returns a private metafield by namespace and key that belongs to the resource.
  14548. privateMetafield(namespace: String!key: String!): PrivateMetafield
  14549. # List of private metafields that belong to the resource.
  14550. privateMetafields(
  14551. namespace: String
  14552. first: Int
  14553. after: String
  14554. last: Int
  14555. before: String
  14556. reverse: Boolean = false
  14557. ): PrivateMetafieldConnection!
  14558. # The publication associated with the installed application.
  14559. publication: Publication
  14560. # The records that track the externally-captured revenue for the app. The records are used for revenue attribution purposes.
  14561. revenueAttributionRecords(
  14562. first: Int
  14563. after: String
  14564. last: Int
  14565. before: String
  14566. reverse: Boolean = false
  14567. sortKey: AppRevenueAttributionRecordSortKeys = CREATED_AT
  14568. ): AppRevenueAttributionRecordConnection!
  14569. # The URL to uninstall the application.
  14570. uninstallUrl: URL
  14571. }
  14572. # Provides users access to services and/or features for a duration of time.
  14573. type AppSubscription implements Node {
  14574. # The date and time when the app subscription was created.
  14575. createdAt: DateTime!
  14576. # The date and time when the current app subscription period ends. Returns null if the subscription isn't active.
  14577. currentPeriodEnd: DateTime
  14578. # A globally-unique identifier.
  14579. id: ID!
  14580. # The plans attached to the app subscription.
  14581. lineItems: [AppSubscriptionLineItem!]!
  14582. # The name of the app subscription.
  14583. name: String!
  14584. # The URL that the merchant is redirected to after approving the app subscription.
  14585. returnUrl: URL!
  14586. # The status of the app subscription.
  14587. status: AppSubscriptionStatus!
  14588. # Specifies whether the app subscription is a test transaction.
  14589. test: Boolean!
  14590. # The number of free trial days, starting at the subscription's creation date, by which billing is delayed.
  14591. trialDays: Int!
  14592. }
  14593. # The plan attached to an app subscription.
  14594. type AppSubscriptionLineItem {
  14595. # A globally-unique identifier.
  14596. id: ID!
  14597. # The pricing model for the app subscription.
  14598. plan: AppPlanV2!
  14599. # A list of the store's usage records for a usage pricing plan.
  14600. usageRecords(
  14601. first: Int
  14602. after: String
  14603. last: Int
  14604. before: String
  14605. reverse: Boolean = false
  14606. sortKey: AppUsageRecordSortKeys = CREATED_AT
  14607. ): AppUsageRecordConnection!
  14608. }
  14609. # The app plan that the merchant is subscribed to.
  14610. type AppPlanV2 {
  14611. # The plan billed to a shop on a recurring basis.
  14612. pricingDetails: AppPricingDetails!
  14613. }
  14614. # A link to direct users to.
  14615. type Link implements HasPublishedTranslations {
  14616. # A context-sensitive label for the link.
  14617. label: String!
  14618. # The translations associated with the resource.
  14619. translations(locale: String!marketId: ID): [PublishedTranslation!]!
  14620. # The URL that the link visits.
  14621. url: URL!
  14622. }
  14623. # A publication is a group of products and collections that is published to an app.
  14624. type Publication implements Node {
  14625. # The app associated with the publication.
  14626. app: App!
  14627. # The collection publications for the list of collections published to the publication.
  14628. collectionPublicationsV3(
  14629. first: Int
  14630. after: String
  14631. last: Int
  14632. before: String
  14633. reverse: Boolean = false
  14634. ): ResourcePublicationConnection!
  14635. # The list of collections published to the publication.
  14636. collections(
  14637. first: Int
  14638. after: String
  14639. last: Int
  14640. before: String
  14641. reverse: Boolean = false
  14642. ): CollectionConnection!
  14643. # Whether the collection is available to the publication.
  14644. hasCollection(id: ID!): Boolean!
  14645. # A globally-unique identifier.
  14646. id: ID!
  14647. # Name of the publication.
  14648. name: String!
  14649. # The product publications for the list of products published to the publication.
  14650. productPublicationsV3(
  14651. first: Int
  14652. after: String
  14653. last: Int
  14654. before: String
  14655. reverse: Boolean = false
  14656. ): ResourcePublicationConnection!
  14657. # The list of products published to the publication.
  14658. products(
  14659. first: Int
  14660. after: String
  14661. last: Int
  14662. before: String
  14663. reverse: Boolean = false
  14664. ): ProductConnection!
  14665. # Whether the publication supports future publishing.
  14666. supportsFuturePublishing: Boolean!
  14667. }
  14668. # App credits can be applied by the merchant towards future app purchases, subscriptions, or usage records in Shopify.
  14669. type AppCredit implements Node {
  14670. # The amount that can be used towards future app purchases in Shopify.
  14671. amount: MoneyV2!
  14672. # The date and time when the app credit was created.
  14673. createdAt: DateTime!
  14674. # The description of the app credit.
  14675. description: String!
  14676. # A globally-unique identifier.
  14677. id: ID!
  14678. # Whether the app credit is a test transaction.
  14679. test: Boolean!
  14680. }
  14681. # Services and features purchased once by a store.
  14682. type AppPurchaseOneTime implements AppPurchase&Node {
  14683. # The date and time when the app purchase occurred.
  14684. createdAt: DateTime!
  14685. # A globally-unique identifier.
  14686. id: ID!
  14687. # The name of the app purchase.
  14688. name: String!
  14689. # The amount to be charged to the store for the app purchase.
  14690. price: MoneyV2!
  14691. # The status of the app purchase.
  14692. status: AppPurchaseStatus!
  14693. # Whether the app purchase is a test transaction.
  14694. test: Boolean!
  14695. }
  14696. # Represents app revenue that was captured externally by the partner.
  14697. type AppRevenueAttributionRecord implements Node {
  14698. # The financial amount captured in this attribution.
  14699. amount: MoneyV2!
  14700. # The timestamp when the financial amount was captured.
  14701. capturedAt: DateTime!
  14702. # The timestamp at which this revenue attribution was issued.
  14703. createdAt: DateTime!
  14704. # A globally-unique identifier.
  14705. id: ID!
  14706. # The unique value submitted during the creation of the app revenue attribution record.
  14707. # For more information, refer to Idempotent requests.
  14708. idempotencyKey: String!
  14709. # Indicates whether this is a test submission.
  14710. test: Boolean!
  14711. # The type of revenue attribution.
  14712. type: AppRevenueAttributionType!
  14713. }
  14714. # Store usage for app subscriptions with usage pricing.
  14715. type AppUsageRecord implements Node {
  14716. # The date and time when the usage record was created.
  14717. createdAt: DateTime!
  14718. # The description of the app usage record.
  14719. description: String!
  14720. # A globally-unique identifier.
  14721. id: ID!
  14722. # The price of the usage record. The only permitted currency code is USD.
  14723. price: MoneyV2!
  14724. # Defines the usage pricing plan the merchant is subscribed to.
  14725. subscriptionLineItem: AppSubscriptionLineItem!
  14726. }
  14727. # SEO information.
  14728. type SEO {
  14729. # SEO Description.
  14730. description: String
  14731. # SEO Title.
  14732. title: String
  14733. }
  14734. # SEO information.
  14735. input SEOInput {
  14736. # SEO title of the product.
  14737. title: String
  14738. # SEO description of the product.
  14739. description: String
  14740. }
  14741. # Represents feedback from apps about a resource, and the steps required to set up the apps on the shop.
  14742. type ResourceFeedback {
  14743. # List of AppFeedback detailing issues regarding a resource.
  14744. details: [AppFeedback!]!
  14745. # Summary of resource feedback pertaining to the resource.
  14746. summary: String!
  14747. }
  14748. # Represents a Subscription Contract.
  14749. type SubscriptionContract implements Node&SubscriptionContractBase {
  14750. # The subscription app that the subscription contract is registered to.
  14751. app: App
  14752. # The URL of the subscription contract page on the subscription app.
  14753. appAdminUrl: URL
  14754. # The list of billing attempts associated with the subscription contract.
  14755. billingAttempts(
  14756. first: Int
  14757. after: String
  14758. last: Int
  14759. before: String
  14760. reverse: Boolean = false
  14761. ): SubscriptionBillingAttemptConnection!
  14762. # The billing policy associated with the subscription contract.
  14763. billingPolicy: SubscriptionBillingPolicy!
  14764. # The date and time when the subscription contract was created.
  14765. createdAt: DateTime!
  14766. # The currency that's used for the subscription contract.
  14767. currencyCode: CurrencyCode!
  14768. # A list of the custom attributes to be added to the generated orders.
  14769. customAttributes: [Attribute!]!
  14770. # The customer to whom the subscription contract belongs.
  14771. customer: Customer
  14772. # The customer payment method that's used for the subscription contract.
  14773. customerPaymentMethod(showRevoked: Boolean = false): CustomerPaymentMethod
  14774. # The delivery method for each billing of the subscription contract.
  14775. deliveryMethod: SubscriptionDeliveryMethod
  14776. # The delivery policy associated with the subscription contract.
  14777. deliveryPolicy: SubscriptionDeliveryPolicy!
  14778. # The delivery price for each billing of the subscription contract.
  14779. deliveryPrice: MoneyV2!
  14780. # The list of subscription discounts associated with the subscription contract.
  14781. discounts(
  14782. first: Int
  14783. after: String
  14784. last: Int
  14785. before: String
  14786. reverse: Boolean = false
  14787. ): SubscriptionManualDiscountConnection!
  14788. # A globally-unique identifier.
  14789. id: ID!
  14790. # The current status of the last payment.
  14791. lastPaymentStatus: SubscriptionContractLastPaymentStatus
  14792. # The number of lines associated with the subscription contract.
  14793. lineCount: Int!
  14794. # The list of subscription lines associated with the subscription contract.
  14795. lines(
  14796. first: Int
  14797. after: String
  14798. last: Int
  14799. before: String
  14800. reverse: Boolean = false
  14801. ): SubscriptionLineConnection!
  14802. # The next billing date for the subscription contract.
  14803. nextBillingDate: DateTime
  14804. # The note field that will be applied to the generated orders.
  14805. note: String
  14806. # A list of the subscription contract's orders.
  14807. orders(
  14808. first: Int
  14809. after: String
  14810. last: Int
  14811. before: String
  14812. reverse: Boolean = false
  14813. ): OrderConnection!
  14814. # The order from which this contract originated.
  14815. originOrder: Order
  14816. # The current status of the subscription contract.
  14817. status: SubscriptionContractSubscriptionStatus!
  14818. # The date and time when the subscription contract was updated.
  14819. updatedAt: DateTime!
  14820. }
  14821. # A setting for a presentment currency.
  14822. type CurrencySetting {
  14823. # The currency's ISO code.
  14824. currencyCode: CurrencyCode!
  14825. # The full name of the currency.
  14826. currencyName: String!
  14827. # Whether the currency is enabled or not.
  14828. # An enabled currency setting is visible to buyers and allows orders to be generated with that currency as presentment.
  14829. enabled: Boolean!
  14830. # The date and time when the active exchange rate for the currency was last modified.
  14831. # It can be the automatic rate's creation date, or the manual rate's last updated at date if active.
  14832. rateUpdatedAt: DateTime
  14833. }
  14834. # A unique string that represents the address of a Shopify store on the Internet.
  14835. type Domain implements Node {
  14836. # The host name of the domain. For example, example.com.
  14837. host: String!
  14838. # A globally-unique identifier.
  14839. id: ID!
  14840. # The localization of the domain, if the domain doesn't redirect.
  14841. localization: DomainLocalization
  14842. # The web presence of the domain.
  14843. marketWebPresence: MarketWebPresence
  14844. # Whether SSL is enabled.
  14845. sslEnabled: Boolean!
  14846. # The URL of the domain (for example, https://example.com).
  14847. url: URL!
  14848. }
  14849. # The country and language settings assigned to a domain.
  14850. type DomainLocalization {
  14851. # The ISO codes for the domain’s alternate locales. For example, ["en"].
  14852. alternateLocales: [String!]!
  14853. # The ISO code for the country assigned to the domain. For example, "CA" or "*" for a domain set to "Rest of world".
  14854. country: String
  14855. # The ISO code for the domain’s default locale. For example, "en".
  14856. defaultLocale: String!
  14857. }
  14858. # A custom page on the Online Store.
  14859. type OnlineStorePage implements HasPublishedTranslations&Navigable&Node {
  14860. # A default cursor that returns the single next record, sorted ascending by ID.
  14861. defaultCursor: String!
  14862. # A globally-unique identifier.
  14863. id: ID!
  14864. # The translations associated with the resource.
  14865. translations(locale: String!marketId: ID): [PublishedTranslation!]!
  14866. }
  14867. # Automatic discount applications capture the intentions of a discount that was automatically applied.
  14868. type AutomaticDiscountApplication implements DiscountApplication {
  14869. # The method by which the discount's value is applied to its entitled items.
  14870. allocationMethod: DiscountApplicationAllocationMethod!
  14871. # An ordered index that can be used to identify the discount application and indicate the precedence
  14872. # of the discount application for calculations.
  14873. index: Int!
  14874. # How the discount amount is distributed on the discounted lines.
  14875. targetSelection: DiscountApplicationTargetSelection!
  14876. # Whether the discount is applied on line items or shipping lines.
  14877. targetType: DiscountApplicationTargetType!
  14878. # The title of the discount application.
  14879. title: String!
  14880. # The value of the discount application.
  14881. value: PricingValue!
  14882. }
  14883. # Discount code applications capture the intentions of a discount code at
  14884. # he time that it is applied onto an order.
  14885. #
  14886. # Discount applications don't represent the actual final amount discounted on a line (line item or shipping line). The actual amount discounted on a line is represented by the DiscountAllocation object.
  14887. type DiscountCodeApplication implements DiscountApplication {
  14888. # The method by which the discount's value is applied to its entitled items.
  14889. allocationMethod: DiscountApplicationAllocationMethod!
  14890. # The string identifying the discount code that was used at the time of application.
  14891. code: String!
  14892. # An ordered index that can be used to identify the discount application and indicate the precedence
  14893. # of the discount application for calculations.
  14894. index: Int!
  14895. # How the discount amount is distributed on the discounted lines.
  14896. targetSelection: DiscountApplicationTargetSelection!
  14897. # Whether the discount is applied on line items or shipping lines.
  14898. targetType: DiscountApplicationTargetType!
  14899. # The value of the discount application.
  14900. value: PricingValue!
  14901. }
  14902. # Manual discount applications capture the intentions of a discount that was manually created for an order.
  14903. #
  14904. # Discount applications don't represent the actual final amount discounted on a line (line item or shipping line).
  14905. # The actual amount discounted on a line is represented by the DiscountAllocation object.
  14906. type ManualDiscountApplication implements DiscountApplication {
  14907. # The method by which the discount's value is applied to its entitled items.
  14908. allocationMethod: DiscountApplicationAllocationMethod!
  14909. # The description of the discount application.
  14910. description: String
  14911. # An ordered index that can be used to identify the discount application and indicate the precedence
  14912. # of the discount application for calculations.
  14913. index: Int!
  14914. # How the discount amount is distributed on the discounted lines.
  14915. targetSelection: DiscountApplicationTargetSelection!
  14916. # Whether the discount is applied on line items or shipping lines.
  14917. targetType: DiscountApplicationTargetType!
  14918. # The title of the discount application.
  14919. title: String!
  14920. # The value of the discount application.
  14921. value: PricingValue!
  14922. }
  14923. # Script discount applications capture the intentions of a discount that
  14924. # was created by a Shopify Script for an order's line item or shipping line.
  14925. #
  14926. # Discount applications don't represent the actual final amount discounted on a line (line item or shipping line).
  14927. # The actual amount discounted on a line is represented by the DiscountAllocation object.
  14928. type ScriptDiscountApplication implements DiscountApplication {
  14929. # The method by which the discount's value is applied to its entitled items.
  14930. allocationMethod: DiscountApplicationAllocationMethod!
  14931. # An ordered index that can be used to identify the discount application and indicate the precedence
  14932. # of the discount application for calculations.
  14933. index: Int!
  14934. # How the discount amount is distributed on the discounted lines.
  14935. targetSelection: DiscountApplicationTargetSelection!
  14936. # Whether the discount is applied on line items or shipping lines.
  14937. targetType: DiscountApplicationTargetType!
  14938. # The title of the application as defined by the Script.
  14939. title: String!
  14940. # The value of the discount application.
  14941. value: PricingValue!
  14942. }
  14943. `, BuiltIn: false},
  14944. {Name: "../../../ext/async.graphql", Input: `# A job corresponds to some long running task that the client should poll for status.
  14945. type Job {
  14946. # This indicates if the job is still queued or has been run.
  14947. done: Boolean!
  14948. # A globally-unique identifier that's returned when running an asynchronous mutation.
  14949. id: ID!
  14950. # This field will only resolve once the job is done. Can be used to ask for object(s) that have been changed by the job.
  14951. # query: QueryRoot
  14952. }
  14953. `, BuiltIn: false},
  14954. {Name: "../../../ext/channel.graphql", Input: `# Contains the information for a given sales channel.
  14955. type ChannelInformation implements Node {
  14956. # The app associated with the channel.
  14957. app: App!
  14958. # The channel definition associated with the channel.
  14959. channelDefinition: ChannelDefinition
  14960. # The unique identifier for the channel.
  14961. channelId: ID!
  14962. # A globally-unique identifier.
  14963. id: ID!
  14964. }
  14965. # A channel definition represents channels surfaces on the platform.
  14966. # A channel definition can be a platform or a subsegment of it such as Facebook Home, Instagram Live, Instagram Shops, or WhatsApp chat.
  14967. type ChannelDefinition implements Node {
  14968. # Name of the channel that this sub channel belongs to.
  14969. channelName: String!
  14970. # Unique string used as a public identifier for the channel definition.
  14971. handle: String!
  14972. # The unique identifier for the channel definition.
  14973. id: ID!
  14974. # Name of the sub channel (e.g. Online Store, Instagram Shopping, TikTok Live).
  14975. subChannelName: String!
  14976. # Icon displayed when showing the channel in admin.
  14977. svgIcon: String
  14978. }
  14979. # Represents an object containing all information for channels available to a shop.
  14980. type AvailableChannelDefinitionsByChannel {
  14981. # The channel definitions for channels installed on a shop.
  14982. channelDefinitions: [ChannelDefinition!]!
  14983. # The name of the channel.
  14984. channelName: String!
  14985. }
  14986. `, BuiltIn: false},
  14987. {Name: "../../../ext/comment.graphql", Input: `# Comment events are generated by staff members of a shop.
  14988. # They are created when a staff member adds a comment to the timeline of an order, draft order, customer, or transfer.
  14989. type CommentEvent implements Event&Node {
  14990. # The name of the app that created the event.
  14991. appTitle: String
  14992. # The attachments associated with the comment event.
  14993. attachments: [CommentEventAttachment!]!
  14994. # Whether the event was created by an app.
  14995. attributeToApp: Boolean!
  14996. # Whether the event was caused by an admin user.
  14997. attributeToUser: Boolean!
  14998. # The name of the user that authored the comment event.
  14999. author: StaffMember!
  15000. # Whether the comment event can be deleted. If true, then the comment event can be deleted.
  15001. canDelete: Boolean!
  15002. # Whether the comment event can be edited. If true, then the comment event can be edited.
  15003. canEdit: Boolean!
  15004. # The date and time when the event was created.
  15005. createdAt: DateTime!
  15006. # Whether the event is critical.
  15007. criticalAlert: Boolean!
  15008. # Whether the comment event has been edited. If true, then the comment event has been edited.
  15009. edited: Boolean!
  15010. # The object reference associated with the comment event. For example, a product or discount).
  15011. embed: CommentEventEmbed
  15012. # A globally-unique identifier.
  15013. id: ID!
  15014. # Human readable text that describes the event.
  15015. message: FormattedString!
  15016. # The raw body of the comment event.
  15017. rawMessage: String!
  15018. # The parent subject to which the comment event belongs.
  15019. subject: CommentEventSubject!
  15020. }
  15021. # A file attachment associated to a comment event.
  15022. type CommentEventAttachment {
  15023. # The file extension of the comment event attachment, indicating the file format.
  15024. fileExtension: String
  15025. # A globally-unique identifier.
  15026. id: ID!
  15027. # The image attached to the comment event.
  15028. image: Image
  15029. # The filename of the comment event attachment.
  15030. name: String!
  15031. # The size of the attachment.
  15032. size: Int!
  15033. # The URL of the attachment.
  15034. url: URL!
  15035. }
  15036. `, BuiltIn: false},
  15037. {Name: "../../../ext/company.graphql", Input: `# Represents information about a company which is also a customer of the shop.
  15038. type Company implements CommentEventSubject&HasEvents&Navigable&Node {
  15039. # The number of contacts that belong to the company.
  15040. contactCount: Int!
  15041. # The list of roles for the company contacts.
  15042. contactRoles(
  15043. first: Int
  15044. after: String
  15045. last: Int
  15046. before: String
  15047. reverse: Boolean = false
  15048. sortKey: CompanyContactRoleSortKeys = ID
  15049. ): CompanyContactRoleConnection!
  15050. # The list of contacts in the company.
  15051. contacts(
  15052. first: Int
  15053. after: String
  15054. last: Int
  15055. before: String
  15056. reverse: Boolean = false
  15057. sortKey: CompanyContactSortKeys = ID
  15058. query: String
  15059. ): CompanyContactConnection!
  15060. # The date and time (ISO 8601 format) at which the company was created in Shopify.
  15061. createdAt: DateTime!
  15062. # The date and time (ISO 8601 format) at which the company became the customer.
  15063. customerSince: DateTime!
  15064. # A default cursor that returns the single next record, sorted ascending by ID.
  15065. defaultCursor: String!
  15066. # The role proposed by default for a contact at the company.
  15067. defaultRole: CompanyContactRole
  15068. # The list of the company's draft orders.
  15069. draftOrders(
  15070. first: Int
  15071. after: String
  15072. last: Int
  15073. before: String
  15074. reverse: Boolean = false
  15075. sortKey: DraftOrderSortKeys = ID
  15076. query: String
  15077. ): DraftOrderConnection!
  15078. # The paginated list of events associated with the host subject.
  15079. events(
  15080. first: Int
  15081. after: String
  15082. last: Int
  15083. before: String
  15084. reverse: Boolean = false
  15085. sortKey: EventSortKeys = ID
  15086. query: String
  15087. ): EventConnection!
  15088. # A unique externally-supplied identifier for the company.
  15089. externalId: String
  15090. # Whether the merchant added a timeline comment to the company.
  15091. hasTimelineComment: Boolean!
  15092. # A globally-unique identifier.
  15093. id: ID!
  15094. # The lifetime duration of the company, since it became a customer of the shop. Examples: 2 days, 3 months, 1 year.
  15095. lifetimeDuration: String!
  15096. # The number of locations that belong to the company.
  15097. locationCount: Int!
  15098. # The list of locations in the company.
  15099. locations(
  15100. first: Int
  15101. after: String
  15102. last: Int
  15103. before: String
  15104. reverse: Boolean = false
  15105. sortKey: CompanyLocationSortKeys = ID
  15106. query: String
  15107. ): CompanyLocationConnection!
  15108. # The main contact for the company.
  15109. mainContact: CompanyContact
  15110. # The name of the company.
  15111. name: String!
  15112. # A note about the company.
  15113. note: String
  15114. # The total number of orders placed for this company, across all its locations.
  15115. orderCount: Int!
  15116. # The list of the company's orders.
  15117. orders(
  15118. first: Int
  15119. after: String
  15120. last: Int
  15121. before: String
  15122. reverse: Boolean = false
  15123. sortKey: OrderSortKeys = ID
  15124. ): OrderConnection!
  15125. # The total amount spent by this company, across all its locations.
  15126. totalSpent: MoneyV2!
  15127. # The date and time (ISO 8601 format) at which the company was last modified.
  15128. updatedAt: DateTime!
  15129. }
  15130. # A person that acts on behalf of company associated to a customer.
  15131. type CompanyContact implements Node {
  15132. # The company to which the contact belongs.
  15133. company: Company!
  15134. # The date and time (ISO 8601 format) at which the company contact was created at Shopify.
  15135. createdAt: DateTime!
  15136. # The customer associated to this contact.
  15137. customer: Customer!
  15138. # The list of draft orders for the company contact.
  15139. draftOrders(
  15140. first: Int
  15141. after: String
  15142. last: Int
  15143. before: String
  15144. reverse: Boolean = false
  15145. sortKey: DraftOrderSortKeys = ID
  15146. query: String
  15147. ): DraftOrderConnection!
  15148. # A globally-unique identifier.
  15149. id: ID!
  15150. # Whether the contact is the main contact of the company.
  15151. isMainContact: Boolean!
  15152. # The lifetime duration of the company contact, since its creation date on Shopify. Examples: 1 year, 2 months, 3 days.
  15153. lifetimeDuration: String!
  15154. # The company contact's locale (language).
  15155. locale: String
  15156. # The list of orders for the company contact.
  15157. orders(
  15158. first: Int
  15159. after: String
  15160. last: Int
  15161. before: String
  15162. reverse: Boolean = false
  15163. sortKey: OrderSortKeys = ID
  15164. ): OrderConnection!
  15165. # The list of roles assigned to this company contact.
  15166. roleAssignments(
  15167. first: Int
  15168. after: String
  15169. last: Int
  15170. before: String
  15171. reverse: Boolean = false
  15172. sortKey: CompanyContactRoleAssignmentSortKeys = ID
  15173. query: String
  15174. ): CompanyContactRoleAssignmentConnection!
  15175. # The company contact's job title.
  15176. title: String
  15177. # The date and time (ISO 8601 format) at which the company contact was last updated.
  15178. updatedAt: DateTime!
  15179. }
  15180. # The role for a company contact.
  15181. type CompanyContactRole implements Node {
  15182. # A globally-unique identifier.
  15183. id: ID!
  15184. # The name of a role.
  15185. # For example, admin or buyer.
  15186. name: String!
  15187. # A note for the role.
  15188. note: String
  15189. }
  15190. # The CompanyContactRoleAssignment describes the company and location associated to a company contact's role.
  15191. type CompanyContactRoleAssignment implements Node {
  15192. # The company this role assignment belongs to.
  15193. company: Company!
  15194. # The company contact for whom this role is assigned.
  15195. companyContact: CompanyContact!
  15196. # The company location to which the role is assigned.
  15197. companyLocation: CompanyLocation!
  15198. # The date and time (ISO 8601 format) when the assignment record was created.
  15199. createdAt: DateTime!
  15200. # A globally-unique identifier.
  15201. id: ID!
  15202. # The role that is assigned to the company contact.
  15203. role: CompanyContactRole!
  15204. # The date and time (ISO 8601 format) when the assignment record was last updated.
  15205. updatedAt: DateTime!
  15206. }
  15207. # A location or branch of a company that's a customer of the shop.
  15208. # Configuration of B2B relationship, for example prices lists and checkout settings, may be done for a location.
  15209. type CompanyLocation implements CommentEventSubject&HasEvents&Navigable&Node {
  15210. # The address used as billing address for the location.
  15211. billingAddress: CompanyAddress
  15212. # The configuration for the buyer's B2B checkout.
  15213. buyerExperienceConfiguration: BuyerExperienceConfiguration
  15214. # The company that the company location belongs to.
  15215. company: Company!
  15216. # The date and time (ISO 8601 format) at which the company location was created in Shopify.
  15217. createdAt: DateTime!
  15218. # The location's currency based on the shipping address. If the shipping address is empty, then the value is the shop's primary market.
  15219. currency: CurrencyCode!
  15220. # A default cursor that returns the single next record, sorted ascending by ID.
  15221. defaultCursor: String!
  15222. # The list of draft orders for the company location.
  15223. draftOrders(
  15224. first: Int
  15225. after: String
  15226. last: Int
  15227. before: String
  15228. reverse: Boolean = false
  15229. sortKey: DraftOrderSortKeys = ID
  15230. query: String
  15231. ): DraftOrderConnection!
  15232. # The paginated list of events associated with the host subject.
  15233. events(
  15234. first: Int
  15235. after: String
  15236. last: Int
  15237. before: String
  15238. reverse: Boolean = false
  15239. sortKey: EventSortKeys = ID
  15240. query: String
  15241. ): EventConnection!
  15242. # A unique externally-supplied identifier for the company location.
  15243. externalId: String
  15244. # Whether the merchant added a timeline comment to the company location.
  15245. hasTimelineComment: Boolean!
  15246. # A globally-unique identifier.
  15247. id: ID!
  15248. # The preferred locale of the company location.
  15249. locale: String
  15250. # The market that includes the location's shipping address. If the shipping address is empty, then the value is the shop's primary market.
  15251. market: Market!
  15252. # The name of the company location.
  15253. name: String!
  15254. # A note about the company location.
  15255. note: String
  15256. # The total number of orders placed for the location.
  15257. orderCount: Int!
  15258. # The list of orders for the company location.
  15259. orders(
  15260. first: Int
  15261. after: String
  15262. last: Int
  15263. before: String
  15264. reverse: Boolean = false
  15265. sortKey: OrderSortKeys = ID
  15266. ): OrderConnection!
  15267. # The phone number of the company location.
  15268. phone: String
  15269. # The list of roles assigned to the company location.
  15270. roleAssignments(
  15271. first: Int
  15272. after: String
  15273. last: Int
  15274. before: String
  15275. reverse: Boolean = false
  15276. sortKey: CompanyContactRoleAssignmentSortKeys = ID
  15277. query: String
  15278. ): CompanyContactRoleAssignmentConnection!
  15279. # The address used as shipping address for the location.
  15280. shippingAddress: CompanyAddress
  15281. # The list of tax exemptions applied to the location.
  15282. taxExemptions: [TaxExemption!]!
  15283. # The tax registration ID for the company location.
  15284. taxRegistrationId: String
  15285. # The total amount spent by the location.
  15286. totalSpent: MoneyV2!
  15287. # The date and time (ISO 8601 format) at which the company location was last modified.
  15288. updatedAt: DateTime!
  15289. }
  15290. # Represents a billing or shipping address for a company location.
  15291. type CompanyAddress implements Node {
  15292. # The first line of the address. Typically the street address or PO Box number.
  15293. address1: String!
  15294. # The second line of the address. Typically the number of the apartment, suite, or unit.
  15295. address2: String
  15296. # The name of the city, district, village, or town.
  15297. city: String
  15298. # The name of the company.
  15299. companyName: String!
  15300. # The name of the country.
  15301. country: String
  15302. # The two-letter code for the country of the address.
  15303. # For example, US.
  15304. countryCode: CountryCode!
  15305. # The date and time (ISO 8601 format) at which the company address was created.
  15306. #
  15307. # formattedAddress(withName: Boolean = falsewithCompanyName: Boolean = true): [String!]!
  15308. # The formatted version of the address.
  15309. createdAt: DateTime!
  15310. # A comma-separated list of the values for city, province, and country.
  15311. formattedArea: String
  15312. # A globally-unique identifier.
  15313. id: ID!
  15314. # A unique phone number for the customer.
  15315. # Formatted using E.164 standard. For example, +16135551111.
  15316. phone: String
  15317. # The region of the address, such as the province, state, or district.
  15318. province: String
  15319. # The identity of the recipient e.g. 'Receiving Department'.
  15320. recipient: String
  15321. # The date and time (ISO 8601 format) at which the company address was last updated.
  15322. updatedAt: DateTime!
  15323. # The zip or postal code of the address.
  15324. zip: String
  15325. # The two-letter code for the region.
  15326. # For example, ON.
  15327. zoneCode: String
  15328. }
  15329. # Settings describing the behavior of checkout for a B2B buyer.
  15330. type BuyerExperienceConfiguration {
  15331. # Whether to checkout to draft order for merchant review.
  15332. checkoutToDraft: Boolean!
  15333. # Whether a buyer must pay at checkout or they can also choose to pay
  15334. # later using net terms.
  15335. payNowOnly: Boolean!
  15336. # Represents the merchant configured payment terms.
  15337. paymentTermsTemplate: PaymentTermsTemplate
  15338. }
  15339. # Represents information about the purchasing company for the order or draft order.
  15340. type PurchasingCompany {
  15341. # The company associated to the order or draft order.
  15342. company: Company!
  15343. # The company contact associated to the order or draft order.
  15344. contact: CompanyContact
  15345. # The company location associated to the order or draft order.
  15346. location: CompanyLocation!
  15347. }
  15348. `, BuiltIn: false},
  15349. {Name: "../../../ext/connection.graphql", Input: `# Returns information about pagination in a connection, in accordance with the
  15350. # Relay specification.
  15351. type PageInfo {
  15352. # The cursor corresponding to the last node in edges.
  15353. endCursor: String
  15354. # Whether there are more pages to fetch following the current page.
  15355. hasNextPage: Boolean!
  15356. # Whether there are any pages prior to the current page.
  15357. hasPreviousPage: Boolean!
  15358. # The cursor corresponding to the first node in edges.
  15359. startCursor: String
  15360. }
  15361. # An auto-generated type for paginating through multiple Events.
  15362. type EventConnection {
  15363. # A list of edges.
  15364. edges: [EventEdge!]!
  15365. # A list of the nodes contained in EventEdge.
  15366. nodes: [Event!]!
  15367. # Information to aid in pagination.
  15368. pageInfo: PageInfo!
  15369. }
  15370. # An auto-generated type which holds one Event and a cursor during pagination.
  15371. type EventEdge {
  15372. # A cursor for use in pagination.
  15373. cursor: String!
  15374. # The item at the end of EventEdge.
  15375. node: Event!
  15376. }
  15377. # An auto-generated type for paginating through multiple Metafields.
  15378. type MetafieldConnection {
  15379. # A list of edges.
  15380. edges: [MetafieldEdge!]!
  15381. # A list of the nodes contained in MetafieldEdge.
  15382. nodes: [Metafield!]!
  15383. # Information to aid in pagination.
  15384. pageInfo: PageInfo!
  15385. }
  15386. # An auto-generated type which holds one Metafield and a cursor during pagination.
  15387. type MetafieldEdge {
  15388. # A cursor for use in pagination.
  15389. cursor: String!
  15390. # The item at the end of MetafieldEdge.
  15391. node: Metafield!
  15392. }
  15393. # An auto-generated type for paginating through multiple MetafieldReferences.
  15394. type MetafieldReferenceConnection {
  15395. # A list of edges.
  15396. edges: [MetafieldReferenceEdge!]!
  15397. # A list of the nodes contained in MetafieldReferenceEdge.
  15398. nodes: [MetafieldReference]!
  15399. # Information to aid in pagination.
  15400. pageInfo: PageInfo!
  15401. }
  15402. # An auto-generated type which holds one MetafieldReference and a cursor during pagination.
  15403. type MetafieldReferenceEdge {
  15404. # A cursor for use in pagination.
  15405. cursor: String!
  15406. # The item at the end of MetafieldReferenceEdge.
  15407. node: MetafieldReference
  15408. }
  15409. # An auto-generated type for paginating through multiple PrivateMetafields.
  15410. type PrivateMetafieldConnection {
  15411. # A list of edges.
  15412. edges: [PrivateMetafieldEdge!]!
  15413. # A list of the nodes contained in PrivateMetafieldEdge.
  15414. nodes: [PrivateMetafield!]!
  15415. # Information to aid in pagination.
  15416. pageInfo: PageInfo!
  15417. }
  15418. # An auto-generated type which holds one PrivateMetafield and a cursor during pagination.
  15419. type PrivateMetafieldEdge {
  15420. # A cursor for use in pagination.
  15421. cursor: String!
  15422. # The item at the end of PrivateMetafieldEdge.
  15423. node: PrivateMetafield!
  15424. }
  15425. # An auto-generated type for paginating through multiple LocalizationExtensions.
  15426. type LocalizationExtensionConnection {
  15427. # A list of edges.
  15428. edges: [LocalizationExtensionEdge!]!
  15429. # A list of the nodes contained in LocalizationExtensionEdge.
  15430. nodes: [LocalizationExtension!]!
  15431. # Information to aid in pagination.
  15432. pageInfo: PageInfo!
  15433. }
  15434. # An auto-generated type which holds one LocalizationExtension and a cursor during pagination.
  15435. type LocalizationExtensionEdge {
  15436. # A cursor for use in pagination.
  15437. cursor: String!
  15438. # The item at the end of LocalizationExtensionEdge.
  15439. node: LocalizationExtension!
  15440. }
  15441. # An auto-generated type for paginating through multiple MetafieldDefinitions.
  15442. type MetafieldDefinitionConnection {
  15443. # A list of edges.
  15444. edges: [MetafieldDefinitionEdge!]!
  15445. # A list of the nodes contained in MetafieldDefinitionEdge.
  15446. nodes: [MetafieldDefinition!]!
  15447. # Information to aid in pagination.
  15448. pageInfo: PageInfo!
  15449. }
  15450. # An auto-generated type which holds one MetafieldDefinition and a cursor during pagination.
  15451. type MetafieldDefinitionEdge {
  15452. # A cursor for use in pagination.
  15453. cursor: String!
  15454. # The item at the end of MetafieldDefinitionEdge.
  15455. node: MetafieldDefinition!
  15456. }
  15457. # An auto-generated type for paginating through multiple InventoryLevels.
  15458. type InventoryLevelConnection {
  15459. # A list of edges.
  15460. edges: [InventoryLevelEdge!]!
  15461. # A list of the nodes contained in InventoryLevelEdge.
  15462. nodes: [InventoryLevel!]!
  15463. # Information to aid in pagination.
  15464. pageInfo: PageInfo!
  15465. }
  15466. # An auto-generated type which holds one InventoryLevel and a cursor during pagination.
  15467. type InventoryLevelEdge {
  15468. # A cursor for use in pagination.
  15469. cursor: String!
  15470. # The item at the end of InventoryLevelEdge.
  15471. node: InventoryLevel!
  15472. }
  15473. # An auto-generated type for paginating through multiple CountryHarmonizedSystemCodes.
  15474. type CountryHarmonizedSystemCodeConnection {
  15475. # A list of edges.
  15476. edges: [CountryHarmonizedSystemCodeEdge!]!
  15477. # A list of the nodes contained in CountryHarmonizedSystemCodeEdge.
  15478. nodes: [CountryHarmonizedSystemCode!]!
  15479. # Information to aid in pagination.
  15480. pageInfo: PageInfo!
  15481. }
  15482. # An auto-generated type which holds one CountryHarmonizedSystemCode and a cursor during pagination.
  15483. type CountryHarmonizedSystemCodeEdge {
  15484. # A cursor for use in pagination.
  15485. cursor: String!
  15486. # The item at the end of CountryHarmonizedSystemCodeEdge.
  15487. node: CountryHarmonizedSystemCode!
  15488. }
  15489. # An auto-generated type for paginating through multiple Locations.
  15490. type LocationConnection {
  15491. # A list of edges.
  15492. edges: [LocationEdge!]!
  15493. # A list of the nodes contained in LocationEdge.
  15494. nodes: [Location!]!
  15495. # Information to aid in pagination.
  15496. pageInfo: PageInfo!
  15497. }
  15498. # An auto-generated type which holds one Location and a cursor during pagination.
  15499. type LocationEdge {
  15500. # A cursor for use in pagination.
  15501. cursor: String!
  15502. # The item at the end of LocationEdge.
  15503. node: Location!
  15504. }
  15505. # An auto-generated type for paginating through multiple DeliveryLocationGroupZones.
  15506. type DeliveryLocationGroupZoneConnection {
  15507. # A list of edges.
  15508. edges: [DeliveryLocationGroupZoneEdge!]!
  15509. # A list of the nodes contained in DeliveryLocationGroupZoneEdge.
  15510. nodes: [DeliveryLocationGroupZone!]!
  15511. # Information to aid in pagination.
  15512. pageInfo: PageInfo!
  15513. }
  15514. # An auto-generated type which holds one DeliveryLocationGroupZone and a cursor during pagination.
  15515. type DeliveryLocationGroupZoneEdge {
  15516. # A cursor for use in pagination.
  15517. cursor: String!
  15518. # The item at the end of DeliveryLocationGroupZoneEdge.
  15519. node: DeliveryLocationGroupZone!
  15520. }
  15521. # An auto-generated type for paginating through multiple DeliveryMethodDefinitions.
  15522. type DeliveryMethodDefinitionConnection {
  15523. # A list of edges.
  15524. edges: [DeliveryMethodDefinitionEdge!]!
  15525. # A list of the nodes contained in DeliveryMethodDefinitionEdge.
  15526. nodes: [DeliveryMethodDefinition!]!
  15527. # Information to aid in pagination.
  15528. pageInfo: PageInfo!
  15529. }
  15530. # An auto-generated type which holds one DeliveryMethodDefinition and a cursor during pagination.
  15531. type DeliveryMethodDefinitionEdge {
  15532. # A cursor for use in pagination.
  15533. cursor: String!
  15534. # The item at the end of DeliveryMethodDefinitionEdge.
  15535. node: DeliveryMethodDefinition!
  15536. }
  15537. # An auto-generated type for paginating through multiple DraftOrderLineItems.
  15538. type DraftOrderLineItemConnection {
  15539. # A list of edges.
  15540. edges: [DraftOrderLineItemEdge!]!
  15541. # A list of the nodes contained in DraftOrderLineItemEdge.
  15542. nodes: [DraftOrderLineItem!]!
  15543. # Information to aid in pagination.
  15544. pageInfo: PageInfo!
  15545. }
  15546. # An auto-generated type which holds one DraftOrderLineItem and a cursor during pagination.
  15547. type DraftOrderLineItemEdge {
  15548. # A cursor for use in pagination.
  15549. cursor: String!
  15550. # The item at the end of DraftOrderLineItemEdge.
  15551. node: DraftOrderLineItem!
  15552. }
  15553. # An auto-generated type for paginating through multiple PaymentSchedules.
  15554. type PaymentScheduleConnection {
  15555. # A list of edges.
  15556. edges: [PaymentScheduleEdge!]!
  15557. # A list of the nodes contained in PaymentScheduleEdge.
  15558. nodes: [PaymentSchedule!]!
  15559. # Information to aid in pagination.
  15560. pageInfo: PageInfo!
  15561. }
  15562. # An auto-generated type which holds one PaymentSchedule and a cursor during pagination.
  15563. type PaymentScheduleEdge {
  15564. # A cursor for use in pagination.
  15565. cursor: String!
  15566. # The item at the end of PaymentScheduleEdge.
  15567. node: PaymentSchedule!
  15568. }
  15569. # An auto-generated type for paginating through multiple DeliveryProfileItems.
  15570. type DeliveryProfileItemConnection {
  15571. # A list of edges.
  15572. edges: [DeliveryProfileItemEdge!]!
  15573. # A list of the nodes contained in DeliveryProfileItemEdge.
  15574. nodes: [DeliveryProfileItem!]!
  15575. # Information to aid in pagination.
  15576. pageInfo: PageInfo!
  15577. }
  15578. # An auto-generated type which holds one DeliveryProfileItem and a cursor during pagination.
  15579. type DeliveryProfileItemEdge {
  15580. # A cursor for use in pagination.
  15581. cursor: String!
  15582. # The item at the end of DeliveryProfileItemEdge.
  15583. node: DeliveryProfileItem!
  15584. }
  15585. # An auto-generated type for paginating through multiple ProductVariants.
  15586. type ProductVariantConnection {
  15587. # A list of edges.
  15588. edges: [ProductVariantEdge!]!
  15589. # A list of the nodes contained in ProductVariantEdge.
  15590. nodes: [ProductVariant!]!
  15591. # Information to aid in pagination.
  15592. pageInfo: PageInfo!
  15593. }
  15594. # An auto-generated type which holds one ProductVariant and a cursor during pagination.
  15595. type ProductVariantEdge {
  15596. # A cursor for use in pagination.
  15597. cursor: String!
  15598. # The item at the end of ProductVariantEdge.
  15599. node: ProductVariant!
  15600. }
  15601. # An auto-generated type for paginating through multiple SellingPlanGroups.
  15602. type SellingPlanGroupConnection {
  15603. # A list of edges.
  15604. edges: [SellingPlanGroupEdge!]!
  15605. # A list of the nodes contained in SellingPlanGroupEdge.
  15606. nodes: [SellingPlanGroup!]!
  15607. # Information to aid in pagination.
  15608. pageInfo: PageInfo!
  15609. }
  15610. # An auto-generated type which holds one SellingPlanGroup and a cursor during pagination.
  15611. type SellingPlanGroupEdge {
  15612. # A cursor for use in pagination.
  15613. cursor: String!
  15614. # The item at the end of SellingPlanGroupEdge.
  15615. node: SellingPlanGroup!
  15616. }
  15617. # An auto-generated type for paginating through multiple SellingPlans.
  15618. type SellingPlanConnection {
  15619. # A list of edges.
  15620. edges: [SellingPlanEdge!]!
  15621. # A list of the nodes contained in SellingPlanEdge.
  15622. nodes: [SellingPlan!]!
  15623. # Information to aid in pagination.
  15624. pageInfo: PageInfo!
  15625. }
  15626. # An auto-generated type which holds one SellingPlan and a cursor during pagination.
  15627. type SellingPlanEdge {
  15628. # A cursor for use in pagination.
  15629. cursor: String!
  15630. # The item at the end of SellingPlanEdge.
  15631. node: SellingPlan!
  15632. }
  15633. # An auto-generated type for paginating through multiple Products.
  15634. type ProductConnection {
  15635. # A list of edges.
  15636. edges: [ProductEdge!]!
  15637. # A list of the nodes contained in ProductEdge.
  15638. nodes: [Product!]!
  15639. # Information to aid in pagination.
  15640. pageInfo: PageInfo!
  15641. }
  15642. # An auto-generated type which holds one Product and a cursor during pagination.
  15643. type ProductEdge {
  15644. # A cursor for use in pagination.
  15645. cursor: String!
  15646. # The item at the end of ProductEdge.
  15647. node: Product!
  15648. }
  15649. # An auto-generated type for paginating through multiple AppSubscriptions.
  15650. type AppSubscriptionConnection {
  15651. # A list of edges.
  15652. edges: [AppSubscriptionEdge!]!
  15653. # A list of the nodes contained in AppSubscriptionEdge.
  15654. nodes: [AppSubscription!]!
  15655. # Information to aid in pagination.
  15656. pageInfo: PageInfo!
  15657. }
  15658. # An auto-generated type which holds one AppSubscription and a cursor during pagination.
  15659. type AppSubscriptionEdge {
  15660. # A cursor for use in pagination.
  15661. cursor: String!
  15662. # The item at the end of AppSubscriptionEdge.
  15663. node: AppSubscription!
  15664. }
  15665. # An auto-generated type for paginating through multiple AppCredits.
  15666. type AppCreditConnection {
  15667. # A list of edges.
  15668. edges: [AppCreditEdge!]!
  15669. # A list of the nodes contained in AppCreditEdge.
  15670. nodes: [AppCredit!]!
  15671. # Information to aid in pagination.
  15672. pageInfo: PageInfo!
  15673. }
  15674. # An auto-generated type which holds one AppCredit and a cursor during pagination.
  15675. type AppCreditEdge {
  15676. # A cursor for use in pagination.
  15677. cursor: String!
  15678. # The item at the end of AppCreditEdge.
  15679. node: AppCredit!
  15680. }
  15681. # An auto-generated type for paginating through multiple AppPurchaseOneTimes.
  15682. type AppPurchaseOneTimeConnection {
  15683. # A list of edges.
  15684. edges: [AppPurchaseOneTimeEdge!]!
  15685. # A list of the nodes contained in AppPurchaseOneTimeEdge.
  15686. nodes: [AppPurchaseOneTime!]!
  15687. # Information to aid in pagination.
  15688. pageInfo: PageInfo!
  15689. }
  15690. # An auto-generated type which holds one AppPurchaseOneTime and a cursor during pagination.
  15691. type AppPurchaseOneTimeEdge {
  15692. # A cursor for use in pagination.
  15693. cursor: String!
  15694. # The item at the end of AppPurchaseOneTimeEdge.
  15695. node: AppPurchaseOneTime!
  15696. }
  15697. # An auto-generated type for paginating through multiple AppRevenueAttributionRecords.
  15698. type AppRevenueAttributionRecordConnection {
  15699. # A list of edges.
  15700. edges: [AppRevenueAttributionRecordEdge!]!
  15701. # A list of the nodes contained in AppRevenueAttributionRecordEdge.
  15702. nodes: [AppRevenueAttributionRecord!]!
  15703. # Information to aid in pagination.
  15704. pageInfo: PageInfo!
  15705. }
  15706. # An auto-generated type which holds one AppRevenueAttributionRecord and a cursor during pagination.
  15707. type AppRevenueAttributionRecordEdge {
  15708. # A cursor for use in pagination.
  15709. cursor: String!
  15710. # The item at the end of AppRevenueAttributionRecordEdge.
  15711. node: AppRevenueAttributionRecord!
  15712. }
  15713. # An auto-generated type for paginating through multiple AppUsageRecords.
  15714. type AppUsageRecordConnection {
  15715. # A list of edges.
  15716. edges: [AppUsageRecordEdge!]!
  15717. # A list of the nodes contained in AppUsageRecordEdge.
  15718. nodes: [AppUsageRecord!]!
  15719. # Information to aid in pagination.
  15720. pageInfo: PageInfo!
  15721. }
  15722. # An auto-generated type which holds one AppUsageRecord and a cursor during pagination.
  15723. type AppUsageRecordEdge {
  15724. # A cursor for use in pagination.
  15725. cursor: String!
  15726. # The item at the end of AppUsageRecordEdge.
  15727. node: AppUsageRecord!
  15728. }
  15729. # An auto-generated type for paginating through multiple ResourcePublications.
  15730. type ResourcePublicationConnection {
  15731. # A list of edges.
  15732. edges: [ResourcePublicationEdge!]!
  15733. # A list of the nodes contained in ResourcePublicationEdge.
  15734. nodes: [ResourcePublication!]!
  15735. # Information to aid in pagination.
  15736. pageInfo: PageInfo!
  15737. }
  15738. # An auto-generated type which holds one ResourcePublication and a cursor during pagination.
  15739. type ResourcePublicationEdge {
  15740. # A cursor for use in pagination.
  15741. cursor: String!
  15742. # The item at the end of ResourcePublicationEdge.
  15743. node: ResourcePublication!
  15744. }
  15745. # An auto-generated type for paginating through multiple Collections.
  15746. type CollectionConnection {
  15747. # A list of edges.
  15748. edges: [CollectionEdge!]!
  15749. # A list of the nodes contained in CollectionEdge.
  15750. nodes: [Collection!]!
  15751. # Information to aid in pagination.
  15752. pageInfo: PageInfo!
  15753. }
  15754. # An auto-generated type which holds one Collection and a cursor during pagination.
  15755. type CollectionEdge {
  15756. # A cursor for use in pagination.
  15757. cursor: String!
  15758. # The item at the end of CollectionEdge.
  15759. node: Collection!
  15760. }
  15761. # An auto-generated type for paginating through multiple Publications.
  15762. type PublicationConnection {
  15763. # A list of edges.
  15764. edges: [PublicationEdge!]!
  15765. # A list of the nodes contained in PublicationEdge.
  15766. nodes: [Publication!]!
  15767. # Information to aid in pagination.
  15768. pageInfo: PageInfo!
  15769. }
  15770. # An auto-generated type which holds one Publication and a cursor during pagination.
  15771. type PublicationEdge {
  15772. # A cursor for use in pagination.
  15773. cursor: String!
  15774. # The item at the end of PublicationEdge.
  15775. node: Publication!
  15776. }
  15777. # An auto-generated type for paginating through multiple ResourcePublicationV2s.
  15778. type ResourcePublicationV2Connection {
  15779. # A list of edges.
  15780. edges: [ResourcePublicationV2Edge!]!
  15781. # A list of the nodes contained in ResourcePublicationV2Edge.
  15782. nodes: [ResourcePublicationV2!]!
  15783. # Information to aid in pagination.
  15784. pageInfo: PageInfo!
  15785. }
  15786. # An auto-generated type which holds one ResourcePublicationV2 and a cursor during pagination.
  15787. type ResourcePublicationV2Edge {
  15788. # A cursor for use in pagination.
  15789. cursor: String!
  15790. # The item at the end of ResourcePublicationV2Edge.
  15791. node: ResourcePublicationV2!
  15792. }
  15793. # An auto-generated type for paginating through multiple CustomerMoments.
  15794. type CustomerMomentConnection {
  15795. # A list of edges.
  15796. edges: [CustomerMomentEdge!]!
  15797. # A list of the nodes contained in CustomerMomentEdge.
  15798. nodes: [CustomerMoment!]!
  15799. # Information to aid in pagination.
  15800. pageInfo: PageInfo!
  15801. }
  15802. # An auto-generated type which holds one CustomerMoment and a cursor during pagination.
  15803. type CustomerMomentEdge {
  15804. # A cursor for use in pagination.
  15805. cursor: String!
  15806. # The item at the end of CustomerMomentEdge.
  15807. node: CustomerMoment!
  15808. }
  15809. # An auto-generated type for paginating through multiple SubscriptionManualDiscounts.
  15810. type SubscriptionManualDiscountConnection {
  15811. # A list of edges.
  15812. edges: [SubscriptionManualDiscountEdge!]!
  15813. # A list of the nodes contained in SubscriptionManualDiscountEdge.
  15814. nodes: [SubscriptionManualDiscount!]!
  15815. # Information to aid in pagination.
  15816. pageInfo: PageInfo!
  15817. }
  15818. # An auto-generated type which holds one SubscriptionManualDiscount and a cursor during pagination.
  15819. type SubscriptionManualDiscountEdge {
  15820. # A cursor for use in pagination.
  15821. cursor: String!
  15822. # The item at the end of SubscriptionManualDiscountEdge.
  15823. node: SubscriptionManualDiscount!
  15824. }
  15825. # An auto-generated type for paginating through multiple SubscriptionLines.
  15826. type SubscriptionLineConnection {
  15827. # A list of edges.
  15828. edges: [SubscriptionLineEdge!]!
  15829. # A list of the nodes contained in SubscriptionLineEdge.
  15830. nodes: [SubscriptionLine!]!
  15831. # Information to aid in pagination.
  15832. pageInfo: PageInfo!
  15833. }
  15834. # An auto-generated type which holds one SubscriptionLine and a cursor during pagination.
  15835. type SubscriptionLineEdge {
  15836. # A cursor for use in pagination.
  15837. cursor: String!
  15838. # The item at the end of SubscriptionLineEdge.
  15839. node: SubscriptionLine!
  15840. }
  15841. # An auto-generated type for paginating through multiple SubscriptionContracts.
  15842. type SubscriptionContractConnection {
  15843. # A list of edges.
  15844. edges: [SubscriptionContractEdge!]!
  15845. # A list of the nodes contained in SubscriptionContractEdge.
  15846. nodes: [SubscriptionContract!]!
  15847. # Information to aid in pagination.
  15848. pageInfo: PageInfo!
  15849. }
  15850. # An auto-generated type which holds one SubscriptionContract and a cursor during pagination.
  15851. type SubscriptionContractEdge {
  15852. # A cursor for use in pagination.
  15853. cursor: String!
  15854. # The item at the end of SubscriptionContractEdge.
  15855. node: SubscriptionContract!
  15856. }
  15857. # An auto-generated type for paginating through multiple Orders.
  15858. type OrderConnection {
  15859. # A list of edges.
  15860. edges: [OrderEdge!]!
  15861. # A list of the nodes contained in OrderEdge.
  15862. nodes: [Order!]!
  15863. # Information to aid in pagination.
  15864. pageInfo: PageInfo!
  15865. }
  15866. # An auto-generated type which holds one Order and a cursor during pagination.
  15867. type OrderEdge {
  15868. # A cursor for use in pagination.
  15869. cursor: String!
  15870. # The item at the end of OrderEdge.
  15871. node: Order!
  15872. }
  15873. # An auto-generated type for paginating through multiple CustomerPaymentMethods.
  15874. type CustomerPaymentMethodConnection {
  15875. # A list of edges.
  15876. edges: [CustomerPaymentMethodEdge!]!
  15877. # A list of the nodes contained in CustomerPaymentMethodEdge.
  15878. nodes: [CustomerPaymentMethod!]!
  15879. # Information to aid in pagination.
  15880. pageInfo: PageInfo!
  15881. }
  15882. # An auto-generated type which holds one CustomerPaymentMethod and a cursor during pagination.
  15883. type CustomerPaymentMethodEdge {
  15884. # A cursor for use in pagination.
  15885. cursor: String!
  15886. # The item at the end of CustomerPaymentMethodEdge.
  15887. node: CustomerPaymentMethod!
  15888. }
  15889. # An auto-generated type for paginating through multiple LineItems.
  15890. type LineItemConnection {
  15891. # A list of edges.
  15892. edges: [LineItemEdge!]!
  15893. # A list of the nodes contained in LineItemEdge.
  15894. nodes: [LineItem!]!
  15895. # Information to aid in pagination.
  15896. pageInfo: PageInfo!
  15897. }
  15898. # An auto-generated type which holds one LineItem and a cursor during pagination.
  15899. type LineItemEdge {
  15900. # A cursor for use in pagination.
  15901. cursor: String!
  15902. # The item at the end of LineItemEdge.
  15903. node: LineItem!
  15904. }
  15905. # An auto-generated type for paginating through multiple SalesAgreements.
  15906. type SalesAgreementConnection {
  15907. # A list of edges.
  15908. edges: [SalesAgreementEdge!]!
  15909. # A list of the nodes contained in SalesAgreementEdge.
  15910. nodes: [SalesAgreement!]!
  15911. # Information to aid in pagination.
  15912. pageInfo: PageInfo!
  15913. }
  15914. # An auto-generated type which holds one SalesAgreement and a cursor during pagination.
  15915. type SalesAgreementEdge {
  15916. # A cursor for use in pagination.
  15917. cursor: String!
  15918. # The item at the end of SalesAgreementEdge.
  15919. node: SalesAgreement!
  15920. }
  15921. # An auto-generated type for paginating through multiple Sales.
  15922. type SaleConnection {
  15923. # A list of edges.
  15924. edges: [SaleEdge!]!
  15925. # A list of the nodes contained in SaleEdge.
  15926. nodes: [Sale!]!
  15927. # Information to aid in pagination.
  15928. pageInfo: PageInfo!
  15929. }
  15930. # An auto-generated type which holds one Sale and a cursor during pagination.
  15931. type SaleEdge {
  15932. # A cursor for use in pagination.
  15933. cursor: String!
  15934. # The item at the end of SaleEdge.
  15935. node: Sale!
  15936. }
  15937. # An auto-generated type for paginating through multiple SubscriptionBillingAttempts.
  15938. type SubscriptionBillingAttemptConnection {
  15939. # A list of edges.
  15940. edges: [SubscriptionBillingAttemptEdge!]!
  15941. # A list of the nodes contained in SubscriptionBillingAttemptEdge.
  15942. nodes: [SubscriptionBillingAttempt!]!
  15943. # Information to aid in pagination.
  15944. pageInfo: PageInfo!
  15945. }
  15946. # An auto-generated type which holds one SubscriptionBillingAttempt and a cursor during pagination.
  15947. type SubscriptionBillingAttemptEdge {
  15948. # A cursor for use in pagination.
  15949. cursor: String!
  15950. # The item at the end of SubscriptionBillingAttemptEdge.
  15951. node: SubscriptionBillingAttempt!
  15952. }
  15953. # An auto-generated type for paginating through multiple OrderTransactions.
  15954. type OrderTransactionConnection {
  15955. # A list of edges.
  15956. edges: [OrderTransactionEdge!]!
  15957. # A list of the nodes contained in OrderTransactionEdge.
  15958. nodes: [OrderTransaction!]!
  15959. # Information to aid in pagination.
  15960. pageInfo: PageInfo!
  15961. }
  15962. # An auto-generated type which holds one OrderTransaction and a cursor during pagination.
  15963. type OrderTransactionEdge {
  15964. # A cursor for use in pagination.
  15965. cursor: String!
  15966. # The item at the end of OrderTransactionEdge.
  15967. node: OrderTransaction!
  15968. }
  15969. # An auto-generated type for paginating through multiple RefundLineItems.
  15970. type RefundLineItemConnection {
  15971. # A list of edges.
  15972. edges: [RefundLineItemEdge!]!
  15973. # A list of the nodes contained in RefundLineItemEdge.
  15974. nodes: [RefundLineItem!]!
  15975. # Information to aid in pagination.
  15976. pageInfo: PageInfo!
  15977. }
  15978. # An auto-generated type which holds one RefundLineItem and a cursor during pagination.
  15979. type RefundLineItemEdge {
  15980. # A cursor for use in pagination.
  15981. cursor: String!
  15982. # The item at the end of RefundLineItemEdge.
  15983. node: RefundLineItem!
  15984. }
  15985. # An auto-generated type for paginating through multiple ShippingLines.
  15986. type ShippingLineConnection {
  15987. # A list of edges.
  15988. edges: [ShippingLineEdge!]!
  15989. # A list of the nodes contained in ShippingLineEdge.
  15990. nodes: [ShippingLine!]!
  15991. # Information to aid in pagination.
  15992. pageInfo: PageInfo!
  15993. }
  15994. # An auto-generated type which holds one ShippingLine and a cursor during pagination.
  15995. type ShippingLineEdge {
  15996. # A cursor for use in pagination.
  15997. cursor: String!
  15998. # The item at the end of ShippingLineEdge.
  15999. node: ShippingLine!
  16000. }
  16001. # An auto-generated type for paginating through multiple FulfillmentOrders.
  16002. type FulfillmentOrderConnection {
  16003. # A list of edges.
  16004. edges: [FulfillmentOrderEdge!]!
  16005. # A list of the nodes contained in FulfillmentOrderEdge.
  16006. nodes: [FulfillmentOrder!]!
  16007. # Information to aid in pagination.
  16008. pageInfo: PageInfo!
  16009. }
  16010. # An auto-generated type which holds one FulfillmentOrder and a cursor during pagination.
  16011. type FulfillmentOrderEdge {
  16012. # A cursor for use in pagination.
  16013. cursor: String!
  16014. # The item at the end of FulfillmentOrderEdge.
  16015. node: FulfillmentOrder!
  16016. }
  16017. # An auto-generated type for paginating through multiple DiscountApplications.
  16018. type DiscountApplicationConnection {
  16019. # A list of edges.
  16020. edges: [DiscountApplicationEdge!]!
  16021. # A list of the nodes contained in DiscountApplicationEdge.
  16022. nodes: [DiscountApplication!]!
  16023. # Information to aid in pagination.
  16024. pageInfo: PageInfo!
  16025. }
  16026. # An auto-generated type which holds one DiscountApplication and a cursor during pagination.
  16027. type DiscountApplicationEdge {
  16028. # A cursor for use in pagination.
  16029. cursor: String!
  16030. # The item at the end of DiscountApplicationEdge.
  16031. node: DiscountApplication!
  16032. }
  16033. # An auto-generated type for paginating through multiple FulfillmentEvents.
  16034. type FulfillmentEventConnection {
  16035. # A list of edges.
  16036. edges: [FulfillmentEventEdge!]!
  16037. # A list of the nodes contained in FulfillmentEventEdge.
  16038. nodes: [FulfillmentEvent!]!
  16039. # Information to aid in pagination.
  16040. pageInfo: PageInfo!
  16041. }
  16042. # An auto-generated type which holds one FulfillmentEvent and a cursor during pagination.
  16043. type FulfillmentEventEdge {
  16044. # A cursor for use in pagination.
  16045. cursor: String!
  16046. # The item at the end of FulfillmentEventEdge.
  16047. node: FulfillmentEvent!
  16048. }
  16049. # An auto-generated type for paginating through multiple FulfillmentLineItems.
  16050. type FulfillmentLineItemConnection {
  16051. # A list of edges.
  16052. edges: [FulfillmentLineItemEdge!]!
  16053. # A list of the nodes contained in FulfillmentLineItemEdge.
  16054. nodes: [FulfillmentLineItem!]!
  16055. # Information to aid in pagination.
  16056. pageInfo: PageInfo!
  16057. }
  16058. # An auto-generated type which holds one FulfillmentLineItem and a cursor during pagination.
  16059. type FulfillmentLineItemEdge {
  16060. # A cursor for use in pagination.
  16061. cursor: String!
  16062. # The item at the end of FulfillmentLineItemEdge.
  16063. node: FulfillmentLineItem!
  16064. }
  16065. # An auto-generated type for paginating through multiple Fulfillments.
  16066. type FulfillmentConnection {
  16067. # A list of edges.
  16068. edges: [FulfillmentEdge!]!
  16069. # A list of the nodes contained in FulfillmentEdge.
  16070. nodes: [Fulfillment!]!
  16071. # Information to aid in pagination.
  16072. pageInfo: PageInfo!
  16073. }
  16074. # An auto-generated type which holds one Fulfillment and a cursor during pagination.
  16075. type FulfillmentEdge {
  16076. # A cursor for use in pagination.
  16077. cursor: String!
  16078. # The item at the end of FulfillmentEdge.
  16079. node: Fulfillment!
  16080. }
  16081. # An auto-generated type for paginating through multiple FulfillmentOrderLineItems.
  16082. type FulfillmentOrderLineItemConnection {
  16083. # A list of edges.
  16084. edges: [FulfillmentOrderLineItemEdge!]!
  16085. # A list of the nodes contained in FulfillmentOrderLineItemEdge.
  16086. nodes: [FulfillmentOrderLineItem!]!
  16087. # Information to aid in pagination.
  16088. pageInfo: PageInfo!
  16089. }
  16090. # An auto-generated type which holds one FulfillmentOrderLineItem and a cursor during pagination.
  16091. type FulfillmentOrderLineItemEdge {
  16092. # A cursor for use in pagination.
  16093. cursor: String!
  16094. # The item at the end of FulfillmentOrderLineItemEdge.
  16095. node: FulfillmentOrderLineItem!
  16096. }
  16097. # An auto-generated type for paginating through multiple FulfillmentOrderLocationForMoves.
  16098. type FulfillmentOrderLocationForMoveConnection {
  16099. # A list of edges.
  16100. edges: [FulfillmentOrderLocationForMoveEdge!]!
  16101. # A list of the nodes contained in FulfillmentOrderLocationForMoveEdge.
  16102. nodes: [FulfillmentOrderLocationForMove!]!
  16103. # Information to aid in pagination.
  16104. pageInfo: PageInfo!
  16105. }
  16106. # An auto-generated type which holds one FulfillmentOrderLocationForMove and a cursor during pagination.
  16107. type FulfillmentOrderLocationForMoveEdge {
  16108. # A cursor for use in pagination.
  16109. cursor: String!
  16110. # The item at the end of FulfillmentOrderLocationForMoveEdge.
  16111. node: FulfillmentOrderLocationForMove!
  16112. }
  16113. # An auto-generated type for paginating through multiple FulfillmentOrderMerchantRequests.
  16114. type FulfillmentOrderMerchantRequestConnection {
  16115. # A list of edges.
  16116. edges: [FulfillmentOrderMerchantRequestEdge!]!
  16117. # A list of the nodes contained in FulfillmentOrderMerchantRequestEdge.
  16118. nodes: [FulfillmentOrderMerchantRequest!]!
  16119. # Information to aid in pagination.
  16120. pageInfo: PageInfo!
  16121. }
  16122. # An auto-generated type which holds one FulfillmentOrderMerchantRequest and a cursor during pagination.
  16123. type FulfillmentOrderMerchantRequestEdge {
  16124. # A cursor for use in pagination.
  16125. cursor: String!
  16126. # The item at the end of FulfillmentOrderMerchantRequestEdge.
  16127. node: FulfillmentOrderMerchantRequest!
  16128. }
  16129. # An auto-generated type for paginating through multiple MarketRegions.
  16130. type MarketRegionConnection {
  16131. # A list of edges.
  16132. edges: [MarketRegionEdge!]!
  16133. # A list of the nodes contained in MarketRegionEdge.
  16134. nodes: [MarketRegion!]!
  16135. # Information to aid in pagination.
  16136. pageInfo: PageInfo!
  16137. }
  16138. # An auto-generated type which holds one MarketRegion and a cursor during pagination.
  16139. type MarketRegionEdge {
  16140. # A cursor for use in pagination.
  16141. cursor: String!
  16142. # The item at the end of MarketRegionEdge.
  16143. node: MarketRegion!
  16144. }
  16145. # An auto-generated type for paginating through multiple PriceListPrices.
  16146. type PriceListPriceConnection {
  16147. # A list of edges.
  16148. edges: [PriceListPriceEdge!]!
  16149. # A list of the nodes contained in PriceListPriceEdge.
  16150. nodes: [PriceListPrice!]!
  16151. # Information to aid in pagination.
  16152. pageInfo: PageInfo!
  16153. }
  16154. # An auto-generated type which holds one PriceListPrice and a cursor during pagination.
  16155. type PriceListPriceEdge {
  16156. # A cursor for use in pagination.
  16157. cursor: String!
  16158. # The item at the end of PriceListPriceEdge.
  16159. node: PriceListPrice!
  16160. }
  16161. # An auto-generated type for paginating through multiple Images.
  16162. type ImageConnection {
  16163. # A list of edges.
  16164. edges: [ImageEdge!]!
  16165. # A list of the nodes contained in ImageEdge.
  16166. nodes: [Image!]!
  16167. # Information to aid in pagination.
  16168. pageInfo: PageInfo!
  16169. }
  16170. # An auto-generated type which holds one Image and a cursor during pagination.
  16171. type ImageEdge {
  16172. # A cursor for use in pagination.
  16173. cursor: String!
  16174. # The item at the end of ImageEdge.
  16175. node: Image!
  16176. }
  16177. # An auto-generated type for paginating through multiple Media.
  16178. type MediaConnection {
  16179. # A list of edges.
  16180. edges: [MediaEdge!]!
  16181. # A list of the nodes contained in MediaEdge.
  16182. nodes: [Media!]!
  16183. # Information to aid in pagination.
  16184. pageInfo: PageInfo!
  16185. }
  16186. # An auto-generated type which holds one Media and a cursor during pagination.
  16187. type MediaEdge {
  16188. # A cursor for use in pagination.
  16189. cursor: String!
  16190. # The item at the end of MediaEdge.
  16191. node: Media!
  16192. }
  16193. # An auto-generated type for paginating through multiple DraftOrders.
  16194. type DraftOrderConnection {
  16195. # A list of edges.
  16196. edges: [DraftOrderEdge!]!
  16197. # A list of the nodes contained in DraftOrderEdge.
  16198. nodes: [DraftOrder!]!
  16199. # Information to aid in pagination.
  16200. pageInfo: PageInfo!
  16201. }
  16202. # An auto-generated type which holds one DraftOrder and a cursor during pagination.
  16203. type DraftOrderEdge {
  16204. # A cursor for use in pagination.
  16205. cursor: String!
  16206. # The item at the end of DraftOrderEdge.
  16207. node: DraftOrder!
  16208. }
  16209. # An auto-generated type for paginating through multiple CompanyContactRoles.
  16210. type CompanyContactRoleConnection {
  16211. # A list of edges.
  16212. edges: [CompanyContactRoleEdge!]!
  16213. # A list of the nodes contained in CompanyContactRoleEdge.
  16214. nodes: [CompanyContactRole!]!
  16215. # Information to aid in pagination.
  16216. pageInfo: PageInfo!
  16217. }
  16218. # An auto-generated type which holds one CompanyContactRole and a cursor during pagination.
  16219. type CompanyContactRoleEdge {
  16220. # A cursor for use in pagination.
  16221. cursor: String!
  16222. # The item at the end of CompanyContactRoleEdge.
  16223. node: CompanyContactRole!
  16224. }
  16225. # An auto-generated type for paginating through multiple CompanyContacts.
  16226. type CompanyContactConnection {
  16227. # A list of edges.
  16228. edges: [CompanyContactEdge!]!
  16229. # A list of the nodes contained in CompanyContactEdge.
  16230. nodes: [CompanyContact!]!
  16231. # Information to aid in pagination.
  16232. pageInfo: PageInfo!
  16233. }
  16234. # An auto-generated type which holds one CompanyContact and a cursor during pagination.
  16235. type CompanyContactEdge {
  16236. # A cursor for use in pagination.
  16237. cursor: String!
  16238. # The item at the end of CompanyContactEdge.
  16239. node: CompanyContact!
  16240. }
  16241. # An auto-generated type for paginating through multiple CompanyLocations.
  16242. type CompanyLocationConnection {
  16243. # A list of edges.
  16244. edges: [CompanyLocationEdge!]!
  16245. # A list of the nodes contained in CompanyLocationEdge.
  16246. nodes: [CompanyLocation!]!
  16247. # Information to aid in pagination.
  16248. pageInfo: PageInfo!
  16249. }
  16250. # An auto-generated type which holds one CompanyLocation and a cursor during pagination.
  16251. type CompanyLocationEdge {
  16252. # A cursor for use in pagination.
  16253. cursor: String!
  16254. # The item at the end of CompanyLocationEdge.
  16255. node: CompanyLocation!
  16256. }
  16257. # An auto-generated type for paginating through multiple CompanyContactRoleAssignments.
  16258. type CompanyContactRoleAssignmentConnection {
  16259. # A list of edges.
  16260. edges: [CompanyContactRoleAssignmentEdge!]!
  16261. # A list of the nodes contained in CompanyContactRoleAssignmentEdge.
  16262. nodes: [CompanyContactRoleAssignment!]!
  16263. # Information to aid in pagination.
  16264. pageInfo: PageInfo!
  16265. }
  16266. # An auto-generated type which holds one CompanyContactRoleAssignment and a cursor during pagination.
  16267. type CompanyContactRoleAssignmentEdge {
  16268. # A cursor for use in pagination.
  16269. cursor: String!
  16270. # The item at the end of CompanyContactRoleAssignmentEdge.
  16271. node: CompanyContactRoleAssignment!
  16272. }
  16273. # An auto-generated type for paginating through multiple Apps.
  16274. type AppConnection {
  16275. # A list of edges.
  16276. edges: [AppEdge!]!
  16277. # A list of the nodes contained in AppEdge.
  16278. nodes: [App!]!
  16279. # Information to aid in pagination.
  16280. pageInfo: PageInfo!
  16281. }
  16282. # An auto-generated type which holds one App and a cursor during pagination.
  16283. type AppEdge {
  16284. # A cursor for use in pagination.
  16285. cursor: String!
  16286. # The item at the end of AppEdge.
  16287. node: App!
  16288. }
  16289. # An auto-generated type for paginating through a list of Strings.
  16290. type StringConnection {
  16291. # A list of edges.
  16292. edges: [StringEdge!]!
  16293. # Information to aid in pagination.
  16294. pageInfo: PageInfo!
  16295. }
  16296. # An auto-generated type which holds one String and a cursor during pagination.
  16297. type StringEdge {
  16298. # A cursor for use in pagination.
  16299. cursor: String!
  16300. # The item at the end of StringEdge.
  16301. node: String!
  16302. }
  16303. # An auto-generated type for paginating through multiple CurrencySettings.
  16304. type CurrencySettingConnection {
  16305. # A list of edges.
  16306. edges: [CurrencySettingEdge!]!
  16307. # A list of the nodes contained in CurrencySettingEdge.
  16308. nodes: [CurrencySetting!]!
  16309. # Information to aid in pagination.
  16310. pageInfo: PageInfo!
  16311. }
  16312. # An auto-generated type which holds one CurrencySetting and a cursor during pagination.
  16313. type CurrencySettingEdge {
  16314. # A cursor for use in pagination.
  16315. cursor: String!
  16316. # The item at the end of CurrencySettingEdge.
  16317. node: CurrencySetting!
  16318. }
  16319. # The connection type for SearchResult.
  16320. type SearchResultConnection {
  16321. # A list of edges.
  16322. edges: [SearchResultEdge!]!
  16323. # Information to aid in pagination.
  16324. pageInfo: PageInfo!
  16325. }
  16326. # An auto-generated type which holds one SearchResult and a cursor during pagination.
  16327. type SearchResultEdge {
  16328. # A cursor for use in pagination.
  16329. cursor: String!
  16330. # The item at the end of SearchResultEdge.
  16331. node: SearchResult!
  16332. }
  16333. # An auto-generated type for paginating through multiple StaffMembers.
  16334. type StaffMemberConnection {
  16335. # A list of edges.
  16336. edges: [StaffMemberEdge!]!
  16337. # A list of the nodes contained in StaffMemberEdge.
  16338. nodes: [StaffMember!]!
  16339. # Information to aid in pagination.
  16340. pageInfo: PageInfo!
  16341. }
  16342. # An auto-generated type which holds one StaffMember and a cursor during pagination.
  16343. type StaffMemberEdge {
  16344. # A cursor for use in pagination.
  16345. cursor: String!
  16346. # The item at the end of StaffMemberEdge.
  16347. node: StaffMember!
  16348. }
  16349. # An auto-generated type for paginating through multiple StorefrontAccessTokens.
  16350. type StorefrontAccessTokenConnection {
  16351. # A list of edges.
  16352. edges: [StorefrontAccessTokenEdge!]!
  16353. # A list of the nodes contained in StorefrontAccessTokenEdge.
  16354. nodes: [StorefrontAccessToken!]!
  16355. # Information to aid in pagination.
  16356. pageInfo: PageInfo!
  16357. }
  16358. # An auto-generated type which holds one StorefrontAccessToken and a cursor during pagination.
  16359. type StorefrontAccessTokenEdge {
  16360. # A cursor for use in pagination.
  16361. cursor: String!
  16362. # The item at the end of StorefrontAccessTokenEdge.
  16363. node: StorefrontAccessToken!
  16364. }
  16365. # A token that's used to delegate unauthenticated access scopes to clients that need to access
  16366. # the unauthenticated Storefront API. An app can have a maximum of 100 active storefront access
  16367. # tokens for each shop.
  16368. type StorefrontAccessToken implements Node {
  16369. # List of permissions associated with the token.
  16370. accessScopes: [AccessScope!]!
  16371. # The issued public access token.
  16372. accessToken: String!
  16373. # The date and time when the public access token was created.
  16374. createdAt: DateTime!
  16375. # A globally-unique identifier.
  16376. id: ID!
  16377. # An arbitrary title for each token determined by the developer, used for reference purposes.
  16378. title: String!
  16379. # The date and time when the storefront access token was updated.
  16380. updatedAt: DateTime!
  16381. }
  16382. # An auto-generated type for paginating through multiple SavedSearches.
  16383. type SavedSearchConnection {
  16384. # A list of edges.
  16385. edges: [SavedSearchEdge!]!
  16386. # A list of the nodes contained in SavedSearchEdge.
  16387. nodes: [SavedSearch!]!
  16388. # Information to aid in pagination.
  16389. pageInfo: PageInfo!
  16390. }
  16391. # An auto-generated type which holds one SavedSearch and a cursor during pagination.
  16392. type SavedSearchEdge {
  16393. # A cursor for use in pagination.
  16394. cursor: String!
  16395. # The item at the end of SavedSearchEdge.
  16396. node: SavedSearch!
  16397. }
  16398. `, BuiltIn: false},
  16399. {Name: "../../../ext/customer.graphql", Input: `# Represents information about a customer of the shop, such as the customer's contact details, their order
  16400. # history, and whether they've agreed to receive marketing material by email.
  16401. #
  16402. # Caution: Only use this data if it's required for your app's functionality.
  16403. # Shopify will restrict access to scopes for apps that don't have a legitimate use for the associated data.
  16404. type Customer implements CommentEventSubject&HasEvents&HasMetafieldDefinitions&HasMetafields&LegacyInteroperability&Node{
  16405. # A list of addresses associated with the customer.
  16406. addresses(first: Int): [MailingAddress!]!
  16407. # The total amount that the customer has spent on orders in their lifetime.
  16408. amountSpent: MoneyV2!
  16409. # The average amount that the customer spent per order.
  16410. averageOrderAmountV2: MoneyV2
  16411. # Whether the merchant can delete the customer from their store.
  16412. #
  16413. # A customer can be deleted from a store only if they have not yet made an order. After a customer makes an
  16414. # order, they can't be deleted from a store.
  16415. canDelete: Boolean!
  16416. # A list of the customer's company contact profiles.
  16417. companyContactProfiles: [CompanyContact!]!
  16418. # The date and time when the customer was added to the store.
  16419. createdAt: DateTime!
  16420. # The default address associated with the customer.
  16421. defaultAddress: MailingAddress
  16422. # The full name of the customer, based on the values for first_name and last_name. If the first_name and
  16423. # last_name are not available, then this falls back to the customer's email address, and if that is not available, the customer's phone number.
  16424. displayName: String!
  16425. # The customer's email address.
  16426. email: String
  16427. # The current email marketing state for the customer.
  16428. # If the customer doesn't have an email address, then this property is ` + "`" + `null` + "`" + `.
  16429. emailMarketingConsent: CustomerEmailMarketingConsentState
  16430. # A list of events associated with the customer.
  16431. events(
  16432. first: Int
  16433. after: String
  16434. last: Int
  16435. before: String
  16436. reverse: Boolean = false
  16437. sortKey: EventSortKeys = ID
  16438. query: String
  16439. ): EventConnection!
  16440. # The customer's first name.
  16441. firstName: String
  16442. # Whether the timeline subject has a timeline comment. If true, then a timeline comment exists.
  16443. hasTimelineComment: Boolean!
  16444. # A globally-unique identifier.
  16445. id: ID!
  16446. # The image associated with the customer.
  16447. image: Image!
  16448. # The customer's last name.
  16449. lastName: String
  16450. # The customer's last order.
  16451. lastOrder: Order
  16452. # The ID of the corresponding resource in the REST Admin API.
  16453. legacyResourceId: UnsignedInt64!
  16454. # The amount of time since the customer was first added to the store.
  16455. #
  16456. # Example: 'about 12 years'.
  16457. lifetimeDuration: String!
  16458. # The customer's locale.
  16459. locale: String!
  16460. # The market that includes the customer’s default address.
  16461. market: Market
  16462. # Returns a metafield by namespace and key that belongs to the resource.
  16463. metafield(namespace: String!key: String!): Metafield
  16464. # List of metafield definitions.
  16465. metafieldDefinitions(
  16466. namespace: String
  16467. pinnedStatus: MetafieldDefinitionPinnedStatus = ANY
  16468. first: Int
  16469. after: String
  16470. last: Int
  16471. before: String
  16472. reverse: Boolean = false
  16473. sortKey: MetafieldDefinitionSortKeys = ID
  16474. query: String
  16475. ): MetafieldDefinitionConnection!
  16476. # List of metafields that belong to the resource.
  16477. metafields(
  16478. namespace: String
  16479. first: Int
  16480. after: String
  16481. last: Int
  16482. before: String
  16483. reverse: Boolean = false
  16484. ): MetafieldConnection!
  16485. # A unique identifier for the customer that's used with Multipass login.
  16486. multipassIdentifier: String
  16487. # A note about the customer.
  16488. note: String
  16489. # The number of orders that the customer has made at the store in their lifetime.
  16490. numberOfOrders: UnsignedInt64!
  16491. # A list of the customer's orders.
  16492. orders(
  16493. first: Int
  16494. after: String
  16495. last: Int
  16496. before: String
  16497. reverse: Boolean = false
  16498. sortKey: OrderSortKeys = ID
  16499. query: String
  16500. ): OrderConnection!
  16501. # A list of the customer's payment methods.
  16502. paymentMethods(
  16503. showRevoked: Boolean = false
  16504. first: Int
  16505. after: String
  16506. last: Int
  16507. before: String
  16508. reverse: Boolean = false
  16509. ): CustomerPaymentMethodConnection!
  16510. # The customer's phone number.
  16511. phone: String
  16512. # Returns a private metafield by namespace and key that belongs to the resource.
  16513. privateMetafield(namespace: String!key: String!): PrivateMetafield
  16514. # List of private metafields that belong to the resource.
  16515. privateMetafields(
  16516. namespace: String
  16517. first: Int
  16518. after: String
  16519. last: Int
  16520. before: String
  16521. reverse: Boolean = false
  16522. ): PrivateMetafieldConnection!
  16523. # Possible subscriber states of a customer defined by their subscription contracts.
  16524. productSubscriberStatus: CustomerProductSubscriberStatus!
  16525. # The current SMS marketing state for the customer's phone number.
  16526. #
  16527. # If the customer does not have a phone number, then this property is null.
  16528. smsMarketingConsent: CustomerSmsMarketingConsentState
  16529. # The state of the customer's account with the shop.
  16530. state: CustomerState!
  16531. # The statistics for a given customer.
  16532. statistics: CustomerStatistics!
  16533. # A list of the customer's subscription contracts.
  16534. subscriptionContracts(
  16535. first: Int
  16536. after: String
  16537. last: Int
  16538. before: String
  16539. reverse: Boolean = false
  16540. ): SubscriptionContractConnection!
  16541. # A comma separated list of tags that have been added to the customer.
  16542. tags: [String!]!
  16543. # Whether the customer is exempt from being charged taxes on their orders.
  16544. taxExempt: Boolean!
  16545. # The list of tax exemptions applied to the customer.
  16546. taxExemptions: [TaxExemption!]!
  16547. # The URL to unsubscribe the customer from the mailing list.
  16548. unsubscribeUrl: URL!
  16549. # The date and time when the customer was last updated.
  16550. updatedAt: DateTime!
  16551. # Whether the email address is formatted correctly.
  16552. # Returns true when the email is formatted correctly and
  16553. # belongs to an existing domain. This doesn't guarantee that
  16554. # the email address actually exists.
  16555. validEmailAddress: Boolean!
  16556. # Whether the customer has verified their email address. Defaults to true if the customer is created through the Shopify admin or API.
  16557. verifiedEmail: Boolean!
  16558. }
  16559. # Represents the data about a staff member's Shopify account.
  16560. # Merchants can use staff member data to get more information about the staff members in their store.
  16561. type StaffMember implements Node {
  16562. # Whether the staff member is active.
  16563. active: Boolean!
  16564. # The image used as the staff member's avatar in the Shopify admin.
  16565. avatar(fallback: StaffMemberDefaultImage = DEFAULT): Image!
  16566. # The staff member's email address.
  16567. email: String!
  16568. # Whether the staff member's account exists.
  16569. exists: Boolean!
  16570. # The staff member's first name.
  16571. firstName: String
  16572. # A globally-unique identifier.
  16573. id: ID!
  16574. # The staff member's initials, if available.
  16575. initials: [String!]
  16576. # Whether the staff member is the shop owner.
  16577. isShopOwner: Boolean!
  16578. # The staff member's last name.
  16579. lastName: String
  16580. # The staff member's preferred locale. Locale values use the format language or language-COUNTRY, where language is a two-letter language code, and COUNTRY is a two-letter country code. For example: en or en-US
  16581. locale: String!
  16582. # The staff member's full name.
  16583. name: String!
  16584. # The staff member's phone number.
  16585. phone: String
  16586. # The data used to customize the Shopify admin experience for the staff member.
  16587. privateData: StaffMemberPrivateData!
  16588. }
  16589. # Represents the data used to customize the Shopify admin experience for a logged-in staff member.
  16590. type StaffMemberPrivateData {
  16591. # The URL to the staff member's account settings page.
  16592. accountSettingsUrl: URL!
  16593. # The date and time when the staff member was created.
  16594. createdAt: DateTime!
  16595. }
  16596. # The record of when a customer consented to receive marketing material by email.
  16597. type CustomerEmailMarketingConsentState {
  16598. # The date and time at which the customer consented to receive marketing material by email.
  16599. # The customer's consent state reflects the consent record with the most recent consent_updated_at date.
  16600. # If no date is provided, then the date and time at which the consent information was sent is used.
  16601. consentUpdatedAt: DateTime
  16602. # The marketing subscription opt-in level, as described by the M3AAWG best practices guidelines,
  16603. # that the customer gave when they consented to receive marketing material by email.
  16604. marketingOptInLevel: CustomerMarketingOptInLevel
  16605. # The current email marketing state for the customer.
  16606. marketingState: CustomerEmailMarketingState!
  16607. }
  16608. # The record of when a customer consented to receive marketing material by SMS.
  16609. #
  16610. # The customer's consent state reflects the record with the most recent date when consent was updated.
  16611. type CustomerSmsMarketingConsentState {
  16612. # The source from which the SMS marketing information for the customer was collected.
  16613. consentCollectedFrom: CustomerConsentCollectedFrom
  16614. # The date and time when the customer consented to receive marketing material by SMS.
  16615. # If no date is provided, then the date and time when the consent information was sent is used.
  16616. consentUpdatedAt: DateTime
  16617. # The marketing subscription opt-in level that was set when the customer consented to receive marketing information.
  16618. marketingOptInLevel: CustomerMarketingOptInLevel!
  16619. # The current SMS marketing state for the customer.
  16620. marketingState: CustomerSmsMarketingState!
  16621. }
  16622. # A customer's computed statistics.
  16623. type CustomerStatistics {
  16624. # The predicted spend tier of a customer with a shop.
  16625. predictedSpendTier: CustomerPredictedSpendTier
  16626. }
  16627. # Represents a customer's session visiting a shop's online store,
  16628. # including information about the marketing activity attributed to starting the session.
  16629. type CustomerVisit implements CustomerMoment&Node {
  16630. # A globally-unique identifier.
  16631. id: ID!
  16632. # URL of the first page the customer landed on for the session.
  16633. landingPage: URL
  16634. # Landing page information with URL linked in HTML.
  16635. # For example, the first page the customer visited was store.myshopify.com/products/1.
  16636. landingPageHtml: HTML
  16637. # Represent actions taken by an app, on behalf of a merchant,
  16638. # to market Shopify resources such as products, collections, and discounts.
  16639. marketingEvent: MarketingEvent
  16640. # The date and time when the customer's session occurred.
  16641. occurredAt: DateTime!
  16642. # Marketing referral code from the link that the customer clicked to visit the store.
  16643. # Supports the following URL attributes: ref, source, or r.
  16644. # For example, if the URL is myshopifystore.com/products/slide?ref=j2tj1tn2, then this value is j2tj1tn2.
  16645. referralCode: String
  16646. # Referral information with URLs linked in HTML.
  16647. referralInfoHtml: FormattedString!
  16648. # Webpage where the customer clicked a link that sent them to the online store.
  16649. # For example, https://randomblog.com/page1 or android-app://com.google.android.gm.
  16650. referrerUrl: URL
  16651. # Source from which the customer visited the store, such as a platform (Facebook, Google), email, direct,
  16652. # a website domain, QR code, or unknown.
  16653. source: String!
  16654. # Describes the source explicitly for first or last session.
  16655. sourceDescription: String
  16656. # Type of marketing tactic.
  16657. sourceType: MarketingTactic
  16658. # A set of UTM parameters gathered from the URL parameters of the referrer.
  16659. utmParameters: UTMParameters
  16660. }
  16661. # Represents actions that market a merchant's store or products.
  16662. type MarketingEvent implements LegacyInteroperability&Node {
  16663. # The app that the marketing event is attributed to.
  16664. app: App!
  16665. # The marketing channel used by the marketing event.
  16666. channel: MarketingChannel
  16667. # A human-readable description of the marketing event.
  16668. description: String
  16669. # The date and time when the marketing event ended.
  16670. endedAt: DateTime
  16671. # A globally-unique identifier.
  16672. id: ID!
  16673. # The ID of the corresponding resource in the REST Admin API.
  16674. legacyResourceId: UnsignedInt64!
  16675. # The URL where the marketing event can be managed.
  16676. manageUrl: URL
  16677. # The URL where the marketing event can be previewed.
  16678. previewUrl: URL
  16679. # An optional ID that helps Shopify validate engagement data.
  16680. remoteId: String
  16681. # The date and time when the marketing event is scheduled to end.
  16682. scheduledToEndAt: DateTime
  16683. # Where the MarketingEvent occurred and what kind of content was used.
  16684. # Because utmSource and utmMedium are often used interchangeably, this is
  16685. # based on a combination of marketingChannel, referringDomain, and type to
  16686. # provide a consistent representation for any given piece of marketing
  16687. # regardless of the app that created it.
  16688. sourceAndMedium: String!
  16689. # The date and time when the marketing event started.
  16690. startedAt: DateTime!
  16691. # The marketing event type.
  16692. type: MarketingTactic!
  16693. # The name of the marketing campaign.
  16694. utmCampaign: String
  16695. # The medium that the marketing campaign is using. Example values: cpc, banner.
  16696. utmMedium: String
  16697. # The referrer of the marketing event. Example values: google, newsletter.
  16698. utmSource: String
  16699. }
  16700. # A customer's payment method.
  16701. type CustomerPaymentMethod implements Node {
  16702. # The customer to whom the payment method belongs.
  16703. customer: Customer
  16704. # The ID of this payment method.
  16705. id: ID!
  16706. # The instrument for this payment method.
  16707. instrument: CustomerPaymentInstrument
  16708. # The time that the payment method was revoked.
  16709. revokedAt: DateTime
  16710. # The revocation reason for this payment method.
  16711. revokedReason: CustomerPaymentMethodRevocationReason
  16712. # List Subscription Contracts.
  16713. subscriptionContracts(
  16714. first: Int
  16715. after: String
  16716. last: Int
  16717. before: String
  16718. reverse: Boolean = false
  16719. ): SubscriptionContractConnection!
  16720. }
  16721. # Represents a customer's visiting activities on a shop's online store.
  16722. type CustomerJourneySummary {
  16723. customerOrderIndex: Int
  16724. # The position of the current order within the customer's order history. Test orders aren't included.
  16725. # The number of days between the first session and the order creation date.
  16726. # The first session represents the first session since the last order, or the first session within the 30 day attribution window, if more than 30 days have passed since the last order.
  16727. daysToConversion: Int
  16728. # The customer's first session going into the shop.
  16729. firstVisit: CustomerVisit
  16730. # The last session before an order is made.
  16731. lastVisit: CustomerVisit
  16732. # The events preceding a customer's order, such as shop sessions.
  16733. moments(
  16734. first: Int
  16735. after: String
  16736. last: Int
  16737. before: String
  16738. reverse: Boolean = false
  16739. ): CustomerMomentConnection
  16740. # The total number of customer moments associated with this order. Returns null if the order is still in the process of being attributed.
  16741. momentsCount: Int
  16742. # Whether the attributed sessions for the order have been created yet.
  16743. ready: Boolean!
  16744. }
  16745. # Represents a card instrument for customer payment method.
  16746. type CustomerCreditCard {
  16747. # The billing address of the card.
  16748. billingAddress: CustomerCreditCardBillingAddress
  16749. # The brand of the card.
  16750. brand: String!
  16751. # Whether the card is about to expire.
  16752. expiresSoon: Boolean!
  16753. # The expiry month of the card.
  16754. expiryMonth: Int!
  16755. # The expiry year of the card.
  16756. expiryYear: Int!
  16757. # The card's BIN number.
  16758. firstDigits: String
  16759. # The payment method can be revoked if there are no active subscription contracts.
  16760. isRevocable: Boolean!
  16761. # The last 4 digits of the card.
  16762. lastDigits: String!
  16763. # The masked card number with only the last 4 digits displayed.
  16764. maskedNumber: String!
  16765. # The name of the card holder.
  16766. name: String!
  16767. # The source of the card if coming from a wallet such as Apple Pay.
  16768. source: String
  16769. # The last 4 digits of the Device Account Number.
  16770. virtualLastDigits: String
  16771. }
  16772. # The billing address of a credit card payment instrument.
  16773. type CustomerCreditCardBillingAddress {
  16774. # The first line of the address. Typically the street address or PO Box number.
  16775. address1: String
  16776. # The name of the city, district, village, or town.
  16777. city: String
  16778. # The name of the country.
  16779. country: String
  16780. # The two-letter code for the country of the address.
  16781. # For example, US.
  16782. countryCode: CountryCode
  16783. # The region of the address, such as the province, state, or district.
  16784. province: String
  16785. # The two-letter code for the region.
  16786. # For example, ON.
  16787. provinceCode: String
  16788. # The zip or postal code of the address.
  16789. zip: String
  16790. }
  16791. # Represents a PayPal instrument for customer payment method.
  16792. type CustomerPaypalBillingAgreement {
  16793. # The billing address of this payment method.
  16794. billingAddress: CustomerPaymentInstrumentBillingAddress
  16795. # Whether the PayPal billing agreement is inactive.
  16796. inactive: Boolean!
  16797. # Whether the payment method can be revoked.The payment method can be revoked if there are no active subscription contracts.
  16798. isRevocable: Boolean!
  16799. # The customers's PayPal account email address.
  16800. paypalAccountEmail: String
  16801. }
  16802. # The billing address of a payment instrument.
  16803. type CustomerPaymentInstrumentBillingAddress {
  16804. # The first line of the address. Typically the street address or PO Box number.
  16805. address1: String
  16806. # The name of the city, district, village, or town.
  16807. city: String
  16808. # The name of the country.
  16809. country: String
  16810. # The two-letter code for the country of the address.
  16811. # For example, US.
  16812. countryCode: CountryCode
  16813. # The name of the buyer of the address.
  16814. name: String
  16815. # The region of the address, such as the province, state, or district.
  16816. province: String
  16817. # The two-letter code for the region.
  16818. # For example, ON.
  16819. provinceCode: String
  16820. # The zip or postal code of the address.
  16821. zip: String
  16822. }
  16823. # Represents a Shop Pay card instrument for customer payment method.
  16824. type CustomerShopPayAgreement {
  16825. # Whether the card is about to expire.
  16826. expiresSoon: Boolean!
  16827. # The expiry month of the card.
  16828. expiryMonth: Int!
  16829. # The expiry year of the card.
  16830. expiryYear: Int!
  16831. # Whether the Shop Pay billing agreement is inactive.
  16832. inactive: Boolean!
  16833. # The payment method can be revoked if there are no active subscription contracts.
  16834. isRevocable: Boolean!
  16835. # The last 4 digits of the card.
  16836. lastDigits: String!
  16837. # The masked card number with only the last 4 digits displayed.
  16838. maskedNumber: String!
  16839. # The name of the card holder.
  16840. name: String!
  16841. }
  16842. `, BuiltIn: false},
  16843. {Name: "../../../ext/delivery.graphql", Input: `# A participant defines carrier-calculated rates for shipping services
  16844. # with a possible merchant-defined fixed fee or a percentage-of-rate fee.
  16845. type DeliveryParticipant implements Node {
  16846. # Whether to display new shipping services automatically to the customer when the service becomes available.
  16847. adaptToNewServicesFlag: Boolean!
  16848. # The carrier used for this participant.
  16849. carrierService: DeliveryCarrierService!
  16850. # The merchant-defined fixed fee for this participant.
  16851. fixedFee: MoneyV2
  16852. # A globally-unique identifier.
  16853. id: ID!
  16854. # The carrier-specific services offered by the participant, and whether each service is active.
  16855. participantServices: [DeliveryParticipantService!]!
  16856. # The merchant-defined percentage-of-rate fee for this participant.
  16857. percentageOfRateFee: Float!
  16858. }
  16859. # Represents the shipping details that the customer chose for their order.
  16860. type ShippingLine {
  16861. # A reference to the carrier service that provided the rate.
  16862. # Present when the rate was computed by a third-party carrier service.
  16863. carrierIdentifier: String
  16864. # A reference to the shipping method.
  16865. code: String
  16866. # Whether the shipping line is custom or not.
  16867. custom: Boolean!
  16868. # The general classification of the delivery method.
  16869. deliveryCategory: String
  16870. # The discounts that have been allocated to the shipping line.
  16871. discountAllocations: [DiscountAllocation!]!
  16872. # The pre-tax shipping price with discounts applied.
  16873. discountedPriceSet: MoneyBag!
  16874. # A globally-unique identifier.
  16875. id: ID
  16876. # The pre-tax shipping price without any discounts applied.
  16877. originalPriceSet: MoneyBag!
  16878. # The phone number at the shipping address.
  16879. phone: String
  16880. # The fulfillment service requested for the shipping method.
  16881. # Present if the shipping method requires processing by a third party fulfillment service.
  16882. requestedFulfillmentService: FulfillmentService
  16883. # A unique identifier for the shipping rate. The format can change without notice and is not meant to be shown to users.
  16884. shippingRateHandle: String
  16885. # Returns the rate source for the shipping line.
  16886. source: String
  16887. # The TaxLine objects connected to this shipping line.
  16888. taxLines: [TaxLine!]!
  16889. # Returns the title of the shipping line.
  16890. title: String!
  16891. }
  16892. # A shipping profile. In Shopify, a shipping profile is a set of shipping rates scoped to a set of products or variants
  16893. # that can be shipped from selected locations to zones.
  16894. type DeliveryProfile implements Node {
  16895. # The number of active shipping rates for the profile.
  16896. activeMethodDefinitionsCount: Int!
  16897. # Whether this is the default profile.
  16898. default: Boolean!
  16899. # A globally-unique identifier.
  16900. id: ID!
  16901. # Whether this shop has enabled legacy compatibility mode for delivery profiles.
  16902. legacyMode: Boolean!
  16903. # The number of locations without rates defined.
  16904. locationsWithoutRatesCount: Int!
  16905. # The name of the delivery profile.
  16906. name: String!
  16907. # The number of active origin locations for the profile.
  16908. originLocationCount: Int!
  16909. # How many product variants are in this profile.
  16910. productVariantsCountV2: DeliveryProductVariantsCount!
  16911. # The products and variants associated with this profile.
  16912. profileItems(
  16913. first: Int
  16914. after: String
  16915. last: Int
  16916. before: String
  16917. reverse: Boolean = false
  16918. ): DeliveryProfileItemConnection!
  16919. # The location groups and associated zones using this profile.
  16920. profileLocationGroups: [DeliveryProfileLocationGroup!]!
  16921. # Selling plan groups associated with the specified delivery profile.
  16922. sellingPlanGroups(
  16923. first: Int
  16924. after: String
  16925. last: Int
  16926. before: String
  16927. reverse: Boolean = false
  16928. ): SellingPlanGroupConnection!
  16929. # List of locations that have not been assigned to a location group for this profile.
  16930. unassignedLocations: [Location!]!
  16931. # The number of countries with active rates to deliver to.
  16932. zoneCountryCount: Int!
  16933. }
  16934. # A product and the subset of associated variants that are part of this delivery profile.
  16935. type DeliveryProfileItem implements Node {
  16936. # A globally-unique identifier.
  16937. id: ID!
  16938. # A product associated with this profile.
  16939. product: Product!
  16940. # The product variants associated with this delivery profile.
  16941. variants(
  16942. first: Int
  16943. after: String
  16944. last: Int
  16945. before: String
  16946. reverse: Boolean = false
  16947. ): ProductVariantConnection!
  16948. }
  16949. # How many product variants are in a profile. This count is capped at 500.
  16950. type DeliveryProductVariantsCount {
  16951. # Whether the count has reached the cap of 500.
  16952. capped: Boolean!
  16953. # The product variant count.
  16954. count: Int!
  16955. }
  16956. # Links a location group with zones. Both are associated to a delivery profile.
  16957. type DeliveryProfileLocationGroup {
  16958. # The countries already selected in any zone for the specified location group.
  16959. countriesInAnyZone: [DeliveryCountryAndZone!]!
  16960. # The collection of locations that make up the specified location group.
  16961. locationGroup: DeliveryLocationGroup!
  16962. # The applicable zones associated to the specified location group.
  16963. locationGroupZones(
  16964. first: Int
  16965. after: String
  16966. last: Int
  16967. before: String
  16968. reverse: Boolean = false
  16969. ): DeliveryLocationGroupZoneConnection!
  16970. }
  16971. # A location group is a collection of locations. They share zones and delivery methods across delivery profiles.
  16972. type DeliveryLocationGroup implements Node {
  16973. # A globally-unique identifier.
  16974. id: ID!
  16975. # A list of all locations that are part of this location group.
  16976. locations(
  16977. first: Int
  16978. after: String
  16979. last: Int
  16980. before: String
  16981. reverse: Boolean = false
  16982. sortKey: LocationSortKeys = NAME
  16983. query: String
  16984. includeLegacy: Boolean = false
  16985. includeInactive: Boolean = false
  16986. ): LocationConnection!
  16987. }
  16988. # Links a location group with a zone and the associated method definitions.
  16989. type DeliveryLocationGroupZone {
  16990. # The number of method definitions for the zone.
  16991. methodDefinitionCounts: DeliveryMethodDefinitionCounts!
  16992. # The method definitions associated to a zone and location group.
  16993. methodDefinitions(
  16994. eligible: Boolean
  16995. type: DeliveryMethodDefinitionType
  16996. first: Int
  16997. after: String
  16998. last: Int
  16999. before: String
  17000. reverse: Boolean = false
  17001. sortKey: MethodDefinitionSortKeys = ID
  17002. ): DeliveryMethodDefinitionConnection!
  17003. # The zone associated to a location group.
  17004. zone: DeliveryZone!
  17005. }
  17006. # A zone is a group of countries that have the same shipping rates.
  17007. # Customers can order products from a store only if they choose a shipping destination that's included in one of the store's zones.
  17008. type DeliveryZone implements Node {
  17009. # The list of countries within the zone.
  17010. countries: [DeliveryCountry!]!
  17011. # A globally-unique identifier.
  17012. id: ID!
  17013. # The name of the zone.
  17014. name: String!
  17015. }
  17016. # The number of method definitions for a zone, separated into merchant-owned and participant definitions.
  17017. type DeliveryMethodDefinitionCounts {
  17018. # The number of participant method definitions for the specified zone.
  17019. participantDefinitionsCount: Int!
  17020. # The number of merchant-defined method definitions for the specified zone.
  17021. rateDefinitionsCount: Int!
  17022. }
  17023. # The country details and the associated shipping zone.
  17024. type DeliveryCountryAndZone {
  17025. # The country details.
  17026. country: DeliveryCountry!
  17027. # The name of the shipping zone.
  17028. zone: String!
  17029. }
  17030. # A country that is used to define a shipping zone.
  17031. type DeliveryCountry implements Node {
  17032. # A two-letter country code in ISO 3166-1 alpha-2 standard.
  17033. # It also includes a flag indicating whether the country should be
  17034. # a part of the 'Rest Of World' shipping zone.
  17035. code: DeliveryCountryCodeOrRestOfWorld!
  17036. # A globally-unique identifier.
  17037. id: ID!
  17038. # The full name of the country.
  17039. name: String!
  17040. # The list of regions associated with this country.
  17041. provinces: [DeliveryProvince!]!
  17042. # The translated name of the country. The translation returned is based on the system's locale.
  17043. translatedName: String!
  17044. }
  17045. # The country code and whether the country is a part of the 'Rest Of World' shipping zone.
  17046. type DeliveryCountryCodeOrRestOfWorld {
  17047. # The country code in the ISO 3166-1 alpha-2 format.
  17048. countryCode: CountryCode
  17049. # Whether the country is a part of the 'Rest of World' shipping zone.
  17050. restOfWorld: Boolean!
  17051. }
  17052. # A region that is used to define a shipping zone.
  17053. type DeliveryProvince implements Node {
  17054. # The code of the region.
  17055. code: String!
  17056. # A globally-unique identifier.
  17057. id: ID!
  17058. # The full name of the region.
  17059. name: String!
  17060. # The translated name of the region. The translation returned is based on the system's locale.
  17061. translatedName: String!
  17062. }
  17063. # A method definition contains the delivery rate and the conditions that must be met for the method to be applied.
  17064. type DeliveryMethodDefinition implements Node {
  17065. # Whether this method definition is active.
  17066. active: Boolean!
  17067. # The description of the method definition.
  17068. description: String
  17069. # A globally-unique identifier.
  17070. id: ID!
  17071. # The method conditions that must pass for this method definition to be applied to an order.
  17072. methodConditions: [DeliveryCondition!]!
  17073. # The name of the method definition.
  17074. name: String!
  17075. # The provided rate for this method definition, from a rate definition or participant.
  17076. rateProvider: DeliveryRateProvider!
  17077. }
  17078. # A condition that must pass for a delivery method definition to be applied to an order.
  17079. type DeliveryCondition implements Node {
  17080. # The value (weight or price) that the condition field is compared to.
  17081. conditionCriteria: DeliveryConditionCriteria!
  17082. # The field to compare the criterion value against, using the operator.
  17083. field: DeliveryConditionField!
  17084. # A globally-unique identifier.
  17085. id: ID!
  17086. # The operator to compare the field and criterion value.
  17087. operator: DeliveryConditionOperator!
  17088. }
  17089. # The delivery method used by a fulfillment order.
  17090. type DeliveryMethod implements Node {
  17091. # A globally-unique identifier.
  17092. id: ID!
  17093. # The maximum date and time by which the delivery is expected to be completed.
  17094. maxDeliveryDateTime: DateTime
  17095. # The type of the delivery method.
  17096. methodType: DeliveryMethodType!
  17097. # The minimum date and time by which the delivery is expected to be completed.
  17098. minDeliveryDateTime: DateTime
  17099. }
  17100. # The merchant-defined rate of the DeliveryMethodDefinition.
  17101. type DeliveryRateDefinition implements Node {
  17102. # A globally-unique identifier.
  17103. id: ID!
  17104. # The price of this rate.
  17105. price: MoneyV2!
  17106. }
  17107. # A local delivery method, which includes a mailing address and a local delivery option.
  17108. type SubscriptionDeliveryMethodLocalDelivery {
  17109. # The address to deliver to.
  17110. address: SubscriptionMailingAddress!
  17111. # The details of the local delivery method to use.
  17112. localDeliveryOption: SubscriptionDeliveryMethodLocalDeliveryOption!
  17113. }
  17114. # Represents a Mailing Address on a Subscription.
  17115. type SubscriptionMailingAddress {
  17116. # The first line of the address. Typically the street address or PO Box number.
  17117. address1: String
  17118. # The second line of the address. Typically the number of the apartment, suite, or unit.
  17119. address2: String
  17120. # The name of the city, district, village, or town.
  17121. city: String
  17122. # The name of the customer's company or organization.
  17123. company: String
  17124. # The name of the country.
  17125. country: String
  17126. # The two-letter code for the country of the address.
  17127. #
  17128. # For example, US.
  17129. countryCode: CountryCode
  17130. # The first name of the customer.
  17131. firstName: String
  17132. # The last name of the customer.
  17133. lastName: String
  17134. # The full name of the customer, based on firstName and lastName.
  17135. name: String
  17136. # A unique phone number for the customer. Formatted using E.164 standard. For example, +16135551111.
  17137. phone: String
  17138. # The region of the address, such as the province, state, or district.
  17139. province: String
  17140. # The two-letter code for the region.
  17141. #
  17142. # For example, ON.
  17143. provinceCode: String
  17144. # The zip or postal code of the address.
  17145. zip: String
  17146. }
  17147. # The selected delivery option on a subscription contract.
  17148. type SubscriptionDeliveryMethodLocalDeliveryOption {
  17149. # A custom reference to the delivery method for use with automations.
  17150. code: String
  17151. # The details displayed to the customer to describe the local delivery option.
  17152. description: String
  17153. # The delivery instructions that the customer can provide to the merchant.
  17154. instructions: String
  17155. # The phone number that the customer provided to the merchant.
  17156. # Formatted using E.164 standard. For example, +16135551111.
  17157. phone: String!
  17158. # The presentment title of the local delivery option.
  17159. presentmentTitle: String
  17160. # The title of the local delivery option.
  17161. title: String
  17162. }
  17163. # A delivery method with a pickup option.
  17164. type SubscriptionDeliveryMethodPickup {
  17165. # The details of the pickup delivery method to use.
  17166. pickupOption: SubscriptionDeliveryMethodPickupOption!
  17167. }
  17168. # Represents the selected pickup option on a subscription contract.
  17169. type SubscriptionDeliveryMethodPickupOption {
  17170. # A custom reference to the delivery method for use with automations.
  17171. code: String
  17172. # The details displayed to the customer to describe the pickup option.
  17173. description: String
  17174. # The location where the customer will pickup the merchandise.
  17175. location: Location!
  17176. # The presentment title of the pickup option.
  17177. presentmentTitle: String
  17178. # The title of the pickup option.
  17179. title: String
  17180. }
  17181. # Represents a shipping delivery method: a mailing address and a shipping option.
  17182. type SubscriptionDeliveryMethodShipping {
  17183. # The address to ship to.
  17184. address: SubscriptionMailingAddress!
  17185. # The details of the shipping method to use.
  17186. shippingOption: SubscriptionDeliveryMethodShippingOption!
  17187. }
  17188. # Represents the selected shipping option on a subscription contract.
  17189. type SubscriptionDeliveryMethodShippingOption {
  17190. # The carrier service of the shipping option.
  17191. carrierService: DeliveryCarrierService
  17192. # The code of the shipping option.
  17193. code: String
  17194. # The description of the shipping option.
  17195. description: String
  17196. # The presentment title of the shipping option.
  17197. presentmentTitle: String
  17198. # The title of the shipping option.
  17199. title: String
  17200. }
  17201. # A shipping service provider or a carrier account.
  17202. type DeliveryCarrierService implements Node {
  17203. # The list of services offered for given destinations.
  17204. availableServicesForCountries(
  17205. origins: [ID!]
  17206. countryCodes: [CountryCode!]
  17207. restOfWorld: Boolean!
  17208. ): [DeliveryAvailableService!]!
  17209. # The properly formatted name of the shipping service provider, ready to display.
  17210. formattedName: String
  17211. # The logo of the service provider.
  17212. icon: Image!
  17213. # A globally-unique identifier.
  17214. id: ID!
  17215. # The name of the shipping service provider.
  17216. name: String
  17217. }
  17218. # A shipping service and a list of countries that the service is available for.
  17219. type DeliveryAvailableService {
  17220. # The countries the service provider ships to.
  17221. countries: DeliveryCountryCodesOrRestOfWorld!
  17222. # The name of the service.
  17223. name: String!
  17224. }
  17225. # The list of country codes and information whether the countries
  17226. # are a part of the 'Rest Of World' shipping zone.
  17227. type DeliveryCountryCodesOrRestOfWorld {
  17228. # List of applicable country codes in the ISO 3166-1 alpha-2 format.
  17229. countryCodes: [CountryCode!]!
  17230. # Whether the countries are a part of the 'Rest of World' shipping zone.
  17231. restOfWorld: Boolean!
  17232. }
  17233. # A mail service provided by the participant.
  17234. type DeliveryParticipantService {
  17235. # Whether the service is active.
  17236. active: Boolean!
  17237. # The name of the service.
  17238. name: String!
  17239. }
  17240. `, BuiltIn: false},
  17241. {Name: "../../../ext/enum.graphql", Input: `# The set of valid sort keys for the Event query.
  17242. enum EventSortKeys {
  17243. # Sort by ` + "`" + `the created_at` + "`" + ` value.
  17244. CREATED_AT
  17245. # Sort by the ` + "`" + `id` + "`" + ` value.
  17246. ID
  17247. # Sort by relevance to the search terms when the query parameter is specified on the connection.
  17248. # Don't use this sort key when no search query is specified.
  17249. RELEVANCE
  17250. }
  17251. # Possible metafield validation statuses.
  17252. enum MetafieldValidationStatus {
  17253. # Any validation status (valid or invalid).
  17254. ANY
  17255. # Valid (according to definition).
  17256. VALID
  17257. # Invalid (according to definition).
  17258. INVALID
  17259. }
  17260. # Possible types of a metafield's owner resource.
  17261. enum MetafieldOwnerType {
  17262. # The Api Permission metafield owner type.
  17263. API_PERMISSION
  17264. # The Article metafield owner type.
  17265. ARTICLE
  17266. # The Blog metafield owner type.
  17267. BLOG
  17268. # The Collection metafield owner type.
  17269. COLLECTION
  17270. # The Customer metafield owner type.
  17271. CUSTOMER
  17272. # The Discount metafield owner type.
  17273. DISCOUNT
  17274. # The Draft Order metafield owner type.
  17275. DRAFTORDER
  17276. # The Location metafield owner type.
  17277. LOCATION
  17278. # The Order metafield owner type.
  17279. ORDER
  17280. # The Page metafield owner type.
  17281. PAGE
  17282. # The Product metafield owner type.
  17283. PRODUCT
  17284. # The Product Image metafield owner type.
  17285. PRODUCTIMAGE
  17286. # The Product Variant metafield owner type.
  17287. PRODUCTVARIANT
  17288. # The Shop metafield owner type.
  17289. SHOP
  17290. }
  17291. # Possible metafield definition validation statuses.
  17292. enum MetafieldDefinitionValidationStatus {
  17293. # All of this definition's metafields are valid.
  17294. ALL_VALID
  17295. # Asynchronous validation of this definition's metafields is in progress.
  17296. IN_PROGRESS
  17297. # Some of this definition's metafields are invalid.
  17298. SOME_INVALID
  17299. }
  17300. # Supported private metafield value types.
  17301. enum PrivateMetafieldValueType {
  17302. # A string metafield.
  17303. STRING
  17304. # An integer metafield.
  17305. INTEGER
  17306. # A JSON string metafield.
  17307. JSON_STRING
  17308. }
  17309. # The part of the image that should remain after cropping.
  17310. enum CropRegion {
  17311. # Keep the center of the image.
  17312. CENTER
  17313. # Keep the top of the image.
  17314. TOP
  17315. # Keep the bottom of the image.
  17316. BOTTOM
  17317. # Keep the left of the image.
  17318. LEFT
  17319. # Keep the right of the image.
  17320. RIGHT
  17321. }
  17322. # List of supported image content types.
  17323. enum ImageContentType {
  17324. # A PNG image.
  17325. PNG
  17326. # A JPG image.
  17327. JPG
  17328. # A WEBP image.
  17329. WEBP
  17330. }
  17331. # The purpose of a localization extension.
  17332. enum LocalizationExtensionPurpose {
  17333. # Extensions that are used for shipping purposes, for example, customs clearance.
  17334. SHIPPING
  17335. # Extensions that are used for taxes purposes, for example, invoicing.
  17336. TAX
  17337. }
  17338. enum LocalizationExtensionKey {
  17339. # Extension key 'tax_credential_br' for country BR.
  17340. TAX_CREDENTIAL_BR
  17341. # Extension key 'shipping_credential_br' for country BR.
  17342. SHIPPING_CREDENTIAL_BR
  17343. # Extension key 'shipping_credential_cn' for country CN.
  17344. SHIPPING_CREDENTIAL_CN
  17345. # Extension key 'tax_credential_it' for country IT.
  17346. TAX_CREDENTIAL_IT
  17347. # Extension key 'tax_email_it' for country IT.
  17348. TAX_EMAIL_IT
  17349. # Extension key 'shipping_credential_kr' for country KR.
  17350. SHIPPING_CREDENTIAL_KR
  17351. }
  17352. # Represents the fallback avatar image for a staff member. This is used only if the staff member has no avatar image.
  17353. enum StaffMemberDefaultImage {
  17354. # Returns a default avatar image for the staff member.
  17355. DEFAULT
  17356. # Returns a transparent avatar image for the staff member.
  17357. TRANSPARENT
  17358. # Returns a URL that returns a 404 error if the image is not present.
  17359. NOT_FOUND
  17360. }
  17361. # Possible metafield definition pinned statuses.
  17362. enum MetafieldDefinitionPinnedStatus {
  17363. # All metafield definitions.
  17364. ANY
  17365. # Only metafield definitions that are pinned.
  17366. PINNED
  17367. # Only metafield definitions that are not pinned.
  17368. UNPINNED
  17369. }
  17370. # The set of valid sort keys for the MetafieldDefinition query.
  17371. enum MetafieldDefinitionSortKeys {
  17372. # Sort by the id value.
  17373. ID
  17374. # Sort by the name value.
  17375. NAME
  17376. # Sort by the pinned_position value.
  17377. PINNED_POSITION
  17378. # Sort by relevance to the search terms when the query parameter is specified on the connection.
  17379. # Don't use this sort key when no search query is specified.
  17380. RELEVANCE
  17381. }
  17382. # The set of valid sort keys for the CompanyContactRole query.
  17383. enum CompanyContactRoleSortKeys {
  17384. # Sort by the created_at value.
  17385. CREATED_AT
  17386. # Sort by the updated_at value.
  17387. UPDATED_AT
  17388. # Sort by the id value.
  17389. ID
  17390. # Sort by relevance to the search terms when the query parameter is specified on the connection.
  17391. # Don't use this sort key when no search query is specified.
  17392. RELEVANCE
  17393. }
  17394. # The set of valid sort keys for the CompanyContact query.
  17395. enum CompanyContactSortKeys {
  17396. # Sort by the created_at value.
  17397. CREATED_AT
  17398. # Sort by the updated_at value.
  17399. UPDATED_AT
  17400. # Sort by the title value.
  17401. TITLE
  17402. # Sort by the company_id value.
  17403. COMPANY_ID
  17404. # Sort by the name value.
  17405. NAME
  17406. # Sort by the email value.
  17407. EMAIL
  17408. # Sort by the name_email value.
  17409. NAME_EMAIL
  17410. ID
  17411. # Sort by the id value.
  17412. # Sort by relevance to the search terms when the query parameter is specified on the connection.
  17413. # Don't use this sort key when no search query is specified.
  17414. RELEVANCE
  17415. }
  17416. # The set of valid sort keys for the DraftOrder query.
  17417. enum DraftOrderSortKeys {
  17418. # Sort by the number value.
  17419. NUMBER
  17420. # Sort by the updated_at value.
  17421. UPDATED_AT
  17422. # Sort by the status value.
  17423. STATUS
  17424. # Sort by the total_price value.
  17425. TOTAL_PRICE
  17426. # Sort by the customer_name value.
  17427. CUSTOMER_NAME
  17428. # Sort by the id value.
  17429. ID
  17430. # Sort by relevance to the search terms when the query parameter is specified on the connection.
  17431. # Don't use this sort key when no search query is specified.
  17432. RELEVANCE
  17433. }
  17434. # The set of valid sort keys for the CompanyLocation query.
  17435. enum CompanyLocationSortKeys {
  17436. # Sort by the created_at value.
  17437. CREATED_AT
  17438. # Sort by the updated_at value.
  17439. UPDATED_AT
  17440. # Sort by the name value.
  17441. NAME
  17442. # Sort by the company_id value.
  17443. COMPANY_ID
  17444. # Sort by the company_and_location_name value.
  17445. COMPANY_AND_LOCATION_NAME
  17446. ID
  17447. # Sort by the id value.
  17448. # Sort by relevance to the search terms when the query parameter is specified on the connection.
  17449. # Don't use this sort key when no search query is specified.
  17450. RELEVANCE
  17451. }
  17452. # The set of valid sort keys for the Order query.
  17453. enum OrderSortKeys {
  17454. # Sort by the created_at value.
  17455. CREATED_AT
  17456. # Sort by the customer_name value.
  17457. CUSTOMER_NAME
  17458. # Sort by the financial_status value.
  17459. FINANCIAL_STATUS
  17460. # Sort by the fulfillment_status value.
  17461. FULFILLMENT_STATUS
  17462. # Sort by the order_number value.
  17463. ORDER_NUMBER
  17464. # Sort by the processed_at value.
  17465. PROCESSED_AT
  17466. # Sort by the total_price value.
  17467. TOTAL_PRICE
  17468. # Sort by the updated_at value.
  17469. UPDATED_AT
  17470. # Sort by the id value.
  17471. ID
  17472. # Sort by relevance to the search terms when the query parameter is specified on the connection.
  17473. # Don't use this sort key when no search query is specified.
  17474. RELEVANCE
  17475. }
  17476. # The set of valid sort keys for the CompanyContactRoleAssignment query.
  17477. enum CompanyContactRoleAssignmentSortKeys {
  17478. # Sort by the created_at value.
  17479. CREATED_AT
  17480. # Sort by the updated_at value.
  17481. UPDATED_AT
  17482. # Sort by the location_name value.
  17483. LOCATION_NAME
  17484. # Sort by the id value.
  17485. ID
  17486. # Sort by relevance to the search terms when the query parameter is specified on the connection.
  17487. # Don't use this sort key when no search query is specified.
  17488. RELEVANCE
  17489. }
  17490. # The possible values for the marketing subscription opt-in level enabled at the time the customer consented to receive marketing information.
  17491. #
  17492. # The levels are defined by the M3AAWG best practices guideline document.
  17493. enum CustomerMarketingOptInLevel {
  17494. # After providing their information, the customer receives marketing information without any
  17495. # intermediate steps.
  17496. SINGLE_OPT_IN
  17497. # After providing their information, the customer receives a confirmation and is required to
  17498. # perform a intermediate step before receiving marketing information.
  17499. CONFIRMED_OPT_IN
  17500. # The customer receives marketing information but how they were opted in is unknown.
  17501. UNKNOWN
  17502. }
  17503. # The possible email marketing states for a customer.
  17504. enum CustomerEmailMarketingState {
  17505. # The customer isn't subscribed to email marketing.
  17506. NOT_SUBSCRIBED
  17507. # The customer is in the process of subscribing to email marketing.
  17508. PENDING
  17509. # The customer is subscribed to email marketing.
  17510. SUBSCRIBED
  17511. # The customer isn't currently subscribed to email marketing but was previously subscribed.
  17512. UNSUBSCRIBED
  17513. # The customer's personal data is erased. This value is internally-set and read-only.
  17514. REDACTED
  17515. # The customer’s email address marketing state is invalid.
  17516. INVALID
  17517. }
  17518. # The possible product subscription states for a customer, as defined by the customer's subscription contracts.
  17519. enum CustomerProductSubscriberStatus {
  17520. # The customer has at least one active subscription contract.
  17521. ACTIVE
  17522. # The customer's last subscription contract was cancelled and there are no other active or paused
  17523. # subscription contracts.
  17524. CANCELLED
  17525. # The customer's last subscription contract expired and there are no other active or paused
  17526. # subscription contracts.
  17527. EXPIRED
  17528. # The customer's last subscription contract failed and there are no other active or paused
  17529. # subscription contracts.
  17530. FAILED
  17531. # The customer has never had a subscription contract.
  17532. NEVER_SUBSCRIBED
  17533. # The customer has at least one paused subscription contract and there are no other active
  17534. # subscription contracts.
  17535. PAUSED
  17536. }
  17537. # The source that collected the customer's consent to receive marketing materials.
  17538. enum CustomerConsentCollectedFrom {
  17539. # The customer consent was collected by Shopify.
  17540. SHOPIFY
  17541. # The customer consent was collected outside of Shopify.
  17542. OTHER
  17543. }
  17544. # The valid SMS marketing states for a customer’s phone number.
  17545. enum CustomerSmsMarketingState {
  17546. # The customer hasn't subscribed to SMS marketing.
  17547. NOT_SUBSCRIBED
  17548. # The customer is in the process of subscribing to SMS marketing.
  17549. PENDING
  17550. # The customer is subscribed to SMS marketing.
  17551. SUBSCRIBED
  17552. # The customer isn't currently subscribed to SMS marketing but was previously subscribed.
  17553. UNSUBSCRIBED
  17554. # The customer's personal data is erased. This value is internally-set and read-only.
  17555. REDACTED
  17556. }
  17557. # The valid values for the state of a customer's account with a shop.
  17558. enum CustomerState {
  17559. # The customer declined the email invite to create an account.
  17560. DECLINED
  17561. # The customer doesn't have an active account. Customer accounts can be disabled from the Shopify admin at any time.
  17562. DISABLED
  17563. # The customer has created an account.
  17564. ENABLED
  17565. # The customer has received an email invite to create an account.
  17566. INVITED
  17567. }
  17568. # The valid tiers for the predicted spend of a customer with a shop.
  17569. enum CustomerPredictedSpendTier {
  17570. # The customer's spend is higher than the 70th percentile of the shop's customer sales.
  17571. HIGH
  17572. # The customer's spend is between the 10th and 70th percentile of the shop's customer sales.
  17573. MEDIUM
  17574. # The customer's spend is lower than the 10th percentile of the shop's customer sales, including customers who didn't repurchase.
  17575. LOW
  17576. }
  17577. # The valid statuses for a draft order.
  17578. enum DraftOrderStatus {
  17579. # The draft order has been paid.
  17580. COMPLETED
  17581. # An invoice for the draft order has been sent to the customer.
  17582. INVOICE_SENT
  17583. # The draft order is open. It has not been paid, and an invoice hasn't been sent.
  17584. OPEN
  17585. }
  17586. # The valid discount types that can be applied to a draft order.
  17587. enum DraftOrderAppliedDiscountType {
  17588. # A fixed amount in the store's currency.
  17589. FIXED_AMOUNT
  17590. # A percentage of the order subtotal.
  17591. PERCENTAGE
  17592. }
  17593. # The type of line (i.e. line item or shipping line) on an order that the discount is applicable towards.
  17594. enum DiscountApplicationTargetType {
  17595. # The discount applies onto line items.
  17596. LINE_ITEM
  17597. # The discount applies onto shipping lines.
  17598. SHIPPING_LINE
  17599. }
  17600. # The lines on the order to which the discount is applied, of the type defined by
  17601. # the discount application's targetType. For example, the value ENTITLED, combined with a targetType of
  17602. # LINE_ITEM, applies the discount on all line items that are entitled to the discount.
  17603. # The value ALL, combined with a targetType of SHIPPING_LINE, applies the discount on all shipping lines.
  17604. enum DiscountApplicationTargetSelection {
  17605. # The discount is allocated onto all the lines.
  17606. ALL
  17607. # The discount is allocated onto only the lines that it's entitled for.
  17608. ENTITLED
  17609. # The discount is allocated onto explicitly chosen lines.
  17610. EXPLICIT
  17611. }
  17612. # The method by which the discount's value is allocated onto its entitled lines.
  17613. enum DiscountApplicationAllocationMethod {
  17614. # The value is spread across all entitled lines.
  17615. ACROSS
  17616. # The value is applied onto every entitled line.
  17617. EACH
  17618. }
  17619. # The type of a fulfillment service.
  17620. enum FulfillmentServiceType {
  17621. # Fulfillment by gift card.
  17622. GIFT_CARD
  17623. # Manual fulfillment by the merchant.
  17624. MANUAL
  17625. # Fullfillment by a third-party fulfillment service.
  17626. THIRD_PARTY
  17627. }
  17628. # The valid values for the inventory policy of a product variant once it is out of stock.
  17629. enum ProductVariantInventoryPolicy {
  17630. # Customers can't buy this product variant after it's out of stock.
  17631. DENY
  17632. # Customers can buy this product variant after it's out of stock.
  17633. CONTINUE
  17634. }
  17635. # The set of valid sort keys for the Location query.
  17636. enum LocationSortKeys {
  17637. # Sort by the name value.
  17638. NAME
  17639. # Sort by the id value.
  17640. ID
  17641. # Sort by relevance to the search terms when the query parameter is specified on the connection.
  17642. # Don't use this sort key when no search query is specified.
  17643. RELEVANCE
  17644. }
  17645. # The type of a payment terms or a payment terms template.
  17646. enum PaymentTermsType {
  17647. # The payment terms or payment terms template is due on receipt.
  17648. RECEIPT
  17649. # The payment terms or payment terms template is a net type. It's due a number of days after issue.
  17650. NET
  17651. # The payment terms or payment terms template is a fixed type. It's due on a specified date.
  17652. FIXED
  17653. # The type of the payment terms or payment terms template is unknown.
  17654. UNKNOWN
  17655. }
  17656. # The different types of method definitions to filter by.
  17657. enum DeliveryMethodDefinitionType {
  17658. # A static merchant-defined rate.
  17659. MERCHANT
  17660. # A dynamic participant rate.
  17661. PARTICIPANT
  17662. }
  17663. # The set of valid sort keys for the MethodDefinition query.
  17664. enum MethodDefinitionSortKeys {
  17665. # Sort by the rate_provider_type value.
  17666. RATE_PROVIDER_TYPE
  17667. # Sort by the id value.
  17668. ID
  17669. # Sort by relevance to the search terms when the query parameter is specified on the connection.
  17670. # Don't use this sort key when no search query is specified.
  17671. RELEVANCE
  17672. }
  17673. # The field type that the condition will be applied to.
  17674. enum DeliveryConditionField {
  17675. # The condition will check against the total weight of the order.
  17676. TOTAL_WEIGHT
  17677. # The condition will check against the total price of the order.
  17678. TOTAL_PRICE
  17679. }
  17680. # The operator to use to determine if the condition passes.
  17681. enum DeliveryConditionOperator {
  17682. # The condition will check whether the field is greater than or equal to the criterion.
  17683. GREATER_THAN_OR_EQUAL_TO
  17684. # The condition will check if the field is less than or equal to the criterion.
  17685. LESS_THAN_OR_EQUAL_TO
  17686. }
  17687. # The category of the selling plan. For the OTHER category,
  17688. # you must fill out our request form,
  17689. # where we'll review your request for a new purchase option.
  17690. enum SellingPlanCategory {
  17691. # The selling plan is for anything not in one of the other categories.
  17692. OTHER
  17693. # The selling plan is for pre-orders.
  17694. PRE_ORDER
  17695. # The selling plan is for subscriptions.
  17696. SUBSCRIPTION
  17697. # The selling plan is for try before you buy purchases.
  17698. TRY_BEFORE_YOU_BUY
  17699. }
  17700. # When to reserve inventory for a selling plan.
  17701. enum SellingPlanReserve {
  17702. # Reserve inventory when order is fulfilled.
  17703. ON_FULFILLMENT
  17704. # Reserve inventory at time of sale.
  17705. ON_SALE
  17706. }
  17707. # The available icons for resource alerts.
  17708. enum ResourceAlertIcon {
  17709. # A checkmark inside a circle.
  17710. CHECKMARK_CIRCLE
  17711. # A lowercase i inside a circle.
  17712. INFORMATION_CIRCLE
  17713. }
  17714. # The possible severity levels for a resource alert.
  17715. enum ResourceAlertSeverity {
  17716. # Indicates a neutral alert. For example, an accepted dispute.
  17717. DEFAULT
  17718. # Indicates an informative alert. For example, an escalated dispute.
  17719. INFO
  17720. # Indicates an informative alert. For example, a new dispute.
  17721. WARNING
  17722. # Indicates a success alert. For example, a winning a dispute.
  17723. SUCCESS
  17724. # Indicates a critical alert. For example, a blocked app.
  17725. CRITICAL
  17726. }
  17727. # Represents the reason that the order is being canceled. Valid values are: customer, fraud, inventory, declined, other.
  17728. enum OrderCancelReason {
  17729. # The customer wanted to cancel the order.
  17730. CUSTOMER
  17731. # The order was fraudulent.
  17732. FRAUD
  17733. # There was insufficient inventory.
  17734. INVENTORY
  17735. # Payment was declined.
  17736. DECLINED
  17737. # Some other reason not listed.
  17738. OTHER
  17739. }
  17740. # Possible types of app developer.
  17741. enum AppDeveloperType {
  17742. # Indicates the app developer is Shopify.
  17743. SHOPIFY
  17744. # Indicates the app developer is a Partner.
  17745. PARTNER
  17746. # Indicates the app developer works directly for a Merchant.
  17747. MERCHANT
  17748. # Indicates the app developer is unknown. It is not categorized as any of the other developer types.
  17749. UNKNOWN
  17750. }
  17751. # The set of valid sort keys for the AppUsageRecord query.
  17752. enum AppUsageRecordSortKeys {
  17753. # Sort by the created_at value.
  17754. CREATED_AT
  17755. # Sort by the id value.
  17756. ID
  17757. # Sort by relevance to the search terms when the query parameter is specified on the connection.
  17758. # Don't use this sort key when no search query is specified.
  17759. RELEVANCE
  17760. }
  17761. # The status of the app subscription.
  17762. enum AppSubscriptionStatus {
  17763. # The app subscription is pending approval by the merchant.
  17764. PENDING
  17765. # The app subscription has been approved by the merchant. Active app subscriptions are billed to the shop.
  17766. # After payment, partners receive payouts.
  17767. ACTIVE
  17768. # The app subscription was declined by the merchant. This is a terminal state.
  17769. DECLINED
  17770. # The app subscription wasn't approved by the merchant within two days of being created. This is a terminal state.
  17771. EXPIRED
  17772. # The app subscription is on hold due to non-payment. The subscription re-activates after payments resume.
  17773. FROZEN
  17774. # The app subscription was cancelled by the app. This could be caused by the app being uninstalled,
  17775. # a new app subscription being activated, or a direct cancellation by the app. This is a terminal state.
  17776. CANCELLED
  17777. }
  17778. # The public-facing category for an app.
  17779. enum AppPublicCategory {
  17780. # The app's public category is private.
  17781. PRIVATE
  17782. # The app's public category is public.
  17783. PUBLIC
  17784. # The app's public category is custom.
  17785. CUSTOM
  17786. # The app's public category is other. An app is in this category if it's not classified under any of the other app types
  17787. # (private, public, or custom).
  17788. OTHER
  17789. }
  17790. # The set of valid sort keys for the AppSubscription query.
  17791. enum AppSubscriptionSortKeys {
  17792. # Sort by the created_at value.
  17793. CREATED_AT
  17794. # Sort by the id value.
  17795. ID
  17796. # Sort by relevance to the search terms when the query parameter is specified on the connection.
  17797. # Don't use this sort key when no search query is specified.
  17798. RELEVANCE
  17799. }
  17800. # The set of valid sort keys for the AppTransaction query.
  17801. enum AppTransactionSortKeys {
  17802. # Sort by the created_at value.
  17803. CREATED_AT
  17804. # Sort by the id value.
  17805. ID
  17806. # Sort by relevance to the search terms when the query parameter is specified on the connection.
  17807. # Don't use this sort key when no search query is specified.
  17808. RELEVANCE
  17809. }
  17810. # The set of valid sort keys for the AppRevenueAttributionRecord query.
  17811. enum AppRevenueAttributionRecordSortKeys {
  17812. # Sort by the created_at value.
  17813. CREATED_AT
  17814. # Sort by the id value.
  17815. ID
  17816. # Sort by relevance to the search terms when the query parameter is specified on the connection.
  17817. # Don't use this sort key when no search query is specified.
  17818. RELEVANCE
  17819. }
  17820. # The approval status of the app purchase.
  17821. #
  17822. # The merchant is charged for the purchase immediately after approval, and the status changes to active.
  17823. # If the payment fails, then the app purchase remains pending.
  17824. #
  17825. # Purchases start as pending and can change to: active, declined, expired. After a purchase changes, it
  17826. # remains in that final state.
  17827. enum AppPurchaseStatus {
  17828. # The app purchase was approved by the merchant and has been activated by the app.
  17829. # Active app purchases are charged to the merchant and are paid out to the partner.
  17830. ACTIVE
  17831. # The app purchase was declined by the merchant.
  17832. DECLINED
  17833. # The app purchase was not accepted within two days of being created.
  17834. EXPIRED
  17835. # The app purchase is pending approval by the merchant.
  17836. PENDING
  17837. }
  17838. # Represents the billing types of revenue attribution.
  17839. enum AppRevenueAttributionType {
  17840. # App purchase related revenue collection.
  17841. APPLICATION_PURCHASE
  17842. # App subscription revenue collection.
  17843. APPLICATION_SUBSCRIPTION
  17844. # App usage-based revenue collection.
  17845. APPLICATION_USAGE
  17846. # Other app revenue collection type.
  17847. OTHER
  17848. }
  17849. # Specifies the sort order for the products in the collection.
  17850. enum CollectionSortOrder {
  17851. # Alphabetically, in ascending order (A - Z).
  17852. ALPHA_ASC
  17853. # Alphabetically, in descending order (Z - A).
  17854. ALPHA_DESC
  17855. # By best-selling products.
  17856. BEST_SELLING
  17857. # By date created, in ascending order (oldest - newest).
  17858. CREATED
  17859. # By date created, in descending order (newest - oldest).
  17860. CREATED_DESC
  17861. # In the order set manually by the merchant.
  17862. MANUAL
  17863. # By price, in ascending order (lowest - highest).
  17864. PRICE_ASC
  17865. # By price, in descending order (highest - lowest).
  17866. PRICE_DESC
  17867. }
  17868. # The set of valid sort keys for the ProductCollection query.
  17869. enum ProductCollectionSortKeys {
  17870. # Sort by the title value.
  17871. TITLE
  17872. # Sort by the price value.
  17873. PRICE
  17874. # Sort by the best-selling value.
  17875. BEST_SELLING
  17876. # Sort by the created value.
  17877. CREATED
  17878. # Sort by the id value.
  17879. ID
  17880. # Sort by the manual value.
  17881. MANUAL
  17882. # Sort by the collection-default value.
  17883. COLLECTION_DEFAULT
  17884. # Sort by relevance to the search terms when the query parameter is specified on the connection.
  17885. # Don't use this sort key when no search query is specified.
  17886. RELEVANCE
  17887. }
  17888. # A standardized error code, independent of the payment provider.
  17889. enum OrderTransactionErrorCode {
  17890. # The card number is incorrect.
  17891. INCORRECT_NUMBER
  17892. # The format of the card number is incorrect.
  17893. INVALID_NUMBER
  17894. # The format of the expiry date is incorrect.
  17895. INVALID_EXPIRY_DATE
  17896. # The format of the CVC is incorrect.
  17897. INVALID_CVC
  17898. # The card is expired.
  17899. EXPIRED_CARD
  17900. # The CVC does not match the card number.
  17901. INCORRECT_CVC
  17902. # The ZIP or postal code does not match the card number.
  17903. INCORRECT_ZIP
  17904. INCORRECT_ADDRESS
  17905. # The address does not match the card number.
  17906. # The entered PIN is incorrect.
  17907. INCORRECT_PIN
  17908. # The card was declined.
  17909. CARD_DECLINED
  17910. # There was an error while processing the payment.
  17911. PROCESSING_ERROR
  17912. # Call the card issuer.
  17913. CALL_ISSUER
  17914. # The card has been reported as lost or stolen, and the card issuer has requested that the merchant keep the card and call the number on the back.
  17915. PICK_UP_CARD
  17916. CONFIG_ERROR
  17917. # There is an error in the gateway or merchant configuration.
  17918. # A real card was used but the gateway was in test mode.
  17919. TEST_MODE_LIVE_CARD
  17920. # The gateway or merchant configuration doesn't support a feature, such as network tokenization.
  17921. UNSUPPORTED_FEATURE
  17922. # There was an unknown error with processing the payment.
  17923. GENERIC_ERROR
  17924. # The payment method is not available in the customer's country.
  17925. INVALID_COUNTRY
  17926. # The amount is either too high or too low for the provider.
  17927. INVALID_AMOUNT
  17928. # The payment method is momentarily unavailable.
  17929. PAYMENT_METHOD_UNAVAILABLE
  17930. # The payment method was invalid.
  17931. AMAZON_PAYMENTS_INVALID_PAYMENT_METHOD
  17932. # The maximum amount has been captured.
  17933. AMAZON_PAYMENTS_MAX_AMOUNT_CHARGED
  17934. # The maximum amount has been refunded.
  17935. AMAZON_PAYMENTS_MAX_AMOUNT_REFUNDED
  17936. # The maximum of 10 authorizations has been captured for an order.
  17937. AMAZON_PAYMENTS_MAX_AUTHORIZATIONS_CAPTURED
  17938. # The maximum of 10 refunds has been processed for an order.
  17939. AMAZON_PAYMENTS_MAX_REFUNDS_PROCESSED
  17940. # The order was canceled, which canceled all open authorizations.
  17941. AMAZON_PAYMENTS_ORDER_REFERENCE_CANCELED
  17942. # The order was not confirmed within three hours.
  17943. AMAZON_PAYMENTS_STALE
  17944. }
  17945. # The different kinds of order transactions.
  17946. enum OrderTransactionKind {
  17947. # An authorization and capture performed together in a single step.
  17948. SALE
  17949. # A transfer of the money that was reserved by an authorization.
  17950. CAPTURE
  17951. # An amount reserved against the cardholder's funding source.
  17952. # Money does not change hands until the authorization is captured.
  17953. AUTHORIZATION
  17954. # A cancelation of an authorization transaction.
  17955. VOID
  17956. # A partial or full return of captured funds to the cardholder.
  17957. # A refund can happen only after a capture is processed.
  17958. REFUND
  17959. # The money returned to the customer when they've paid too much during a cash transaction.
  17960. CHANGE
  17961. # An authorization for a payment taken with an EMV credit card reader.
  17962. EMV_AUTHORIZATION
  17963. # A suggested refund transaction that can be used to create a refund.
  17964. SUGGESTED_REFUND
  17965. }
  17966. # The different states that an OrderTransaction can have.
  17967. enum OrderTransactionStatus {
  17968. # The transaction succeeded.
  17969. SUCCESS
  17970. # The transaction failed.
  17971. FAILURE
  17972. # The transaction is pending.
  17973. PENDING
  17974. # There was an error while processing the transaction.
  17975. ERROR
  17976. # Awaiting a response.
  17977. AWAITING_RESPONSE
  17978. # The transaction status is unknown.
  17979. UNKNOWN
  17980. }
  17981. # The available types of marketing event.
  17982. enum MarketingTactic {
  17983. ABANDONED_CART
  17984. # An abandoned cart recovery email.
  17985. # An ad, such as a Facebook ad.
  17986. AD
  17987. # An affiliate link.
  17988. AFFILIATE
  17989. # A link.
  17990. LINK
  17991. # A loyalty program.
  17992. LOYALTY
  17993. # A messaging app, such as Facebook Messenger.
  17994. MESSAGE
  17995. # A newsletter.
  17996. NEWSLETTER
  17997. # A notification in the Shopify admin.
  17998. NOTIFICATION
  17999. # A blog post.
  18000. POST
  18001. # A retargeting ad.
  18002. RETARGETING
  18003. # A transactional email.
  18004. TRANSACTIONAL
  18005. # Search engine optimization.
  18006. SEO
  18007. # A direct visit to the online store.
  18008. DIRECT
  18009. # A popup on the online store.
  18010. STOREFRONT_APP
  18011. }
  18012. # The available marketing channels for a marketing activity or event.
  18013. # A marketing channel is broad category of marketing, used for reporting aggregation.
  18014. enum MarketingChannel {
  18015. # Paid search.
  18016. SEARCH
  18017. # Displayed ads.
  18018. DISPLAY
  18019. # Social media.
  18020. SOCIAL
  18021. # Email.
  18022. EMAIL
  18023. # Referral links.
  18024. REFERRAL
  18025. }
  18026. # Specifies the kind of the suggested order transaction.
  18027. enum SuggestedOrderTransactionKind {
  18028. # A suggested refund transaction for an order.
  18029. SUGGESTED_REFUND
  18030. }
  18031. enum RefundLineItemRestockType {
  18032. # The refund line item was returned. Use this when restocking line items that were fulfilled.
  18033. RETURN
  18034. # The refund line item was canceled. Use this when restocking unfulfilled line items.
  18035. CANCEL
  18036. # Deprecated.
  18037. # The refund line item was restocked, without specifically being identified as a return or cancelation.
  18038. # This value is not accepted when creating new refunds.
  18039. LEGACY_RESTOCK
  18040. # Refund line item was not restocked.
  18041. NO_RESTOCK
  18042. }
  18043. # The reason a discount on a subscription draft was rejected.
  18044. enum SubscriptionDiscountRejectionReason {
  18045. # Discount code is not found.
  18046. NOT_FOUND
  18047. # Discount does not apply to any of the given line items.
  18048. NO_ENTITLED_LINE_ITEMS
  18049. # Quantity of items does not qualify for the discount.
  18050. QUANTITY_NOT_IN_RANGE
  18051. # Purchase amount of items does not qualify for the discount.
  18052. PURCHASE_NOT_IN_RANGE
  18053. # Given customer does not qualify for the discount.
  18054. CUSTOMER_NOT_ELIGIBLE
  18055. # Discount usage limit has been reached.
  18056. USAGE_LIMIT_REACHED
  18057. # Customer usage limit has been reached.
  18058. CUSTOMER_USAGE_LIMIT_REACHED
  18059. # Discount is inactive.
  18060. CURRENTLY_INACTIVE
  18061. # No applicable shipping lines.
  18062. NO_ENTITLED_SHIPPING_LINES
  18063. # Purchase type does not qualify for the discount.
  18064. INCOMPATIBLE_PURCHASE_TYPE
  18065. # Internal error during discount code validation.
  18066. INTERNAL_ERROR
  18067. }
  18068. # The revocation reason types for a customer payment method.
  18069. enum CustomerPaymentMethodRevocationReason {
  18070. # The Authorize.net payment gateway is not enabled.
  18071. AUTHORIZE_NET_GATEWAY_NOT_ENABLED
  18072. # Authorize.net did not return any payment methods. Make sure that the correct Authorize.net account is linked.
  18073. AUTHORIZE_NET_RETURNED_NO_PAYMENT_METHOD
  18074. # The credit card failed to update.
  18075. FAILED_TO_UPDATE_CREDIT_CARD
  18076. # Failed to contact the Stripe API.
  18077. STRIPE_API_AUTHENTICATION_ERROR
  18078. # Invalid request. Failed to retrieve payment method from Stripe.
  18079. STRIPE_API_INVALID_REQUEST_ERROR
  18080. # The Stripe payment gateway is not enabled.
  18081. STRIPE_GATEWAY_NOT_ENABLED
  18082. # Stripe did not return any payment methods. Make sure that the correct Stripe account is linked.
  18083. STRIPE_RETURNED_NO_PAYMENT_METHOD
  18084. # The Stripe payment method type should be card.
  18085. STRIPE_PAYMENT_METHOD_NOT_CARD
  18086. # Failed to contact Braintree API.
  18087. BRAINTREE_API_AUTHENTICATION_ERROR
  18088. # The Braintree payment gateway is not enabled.
  18089. BRAINTREE_GATEWAY_NOT_ENABLED
  18090. # Braintree returned no payment methods. Make sure the correct Braintree account is linked.
  18091. BRAINTREE_RETURNED_NO_PAYMENT_METHOD
  18092. # The Braintree payment method type should be a credit card or Apple Pay card.
  18093. BRAINTREE_PAYMENT_METHOD_NOT_CARD
  18094. # The payment method was manually revoked.
  18095. MANUALLY_REVOKED
  18096. # The payment method was replaced with an existing payment method.
  18097. # The associated contracts have been migrated to the other payment method.
  18098. MERGED
  18099. }
  18100. # The possible status values of a subscription.
  18101. enum SubscriptionContractSubscriptionStatus {
  18102. # The contract is active and continuing per its policies.
  18103. ACTIVE
  18104. # The contract is temporarily paused and is expected to resume in the future.
  18105. PAUSED
  18106. # The contract was ended by an unplanned customer action.
  18107. CANCELLED
  18108. # The contract has ended per the expected circumstances.
  18109. # All billing and delivery cycles of the subscriptions were executed.
  18110. EXPIRED
  18111. # The contract ended because billing failed and no further billing attempts are expected.
  18112. FAILED
  18113. }
  18114. # The possible status values of the last payment on a subscription contract.
  18115. enum SubscriptionContractLastPaymentStatus {
  18116. # Successful subscription billing attempt.
  18117. SUCCEEDED
  18118. # Failed subscription billing attempt.
  18119. FAILED
  18120. }
  18121. # Available customer tax exemptions.
  18122. enum TaxExemption {
  18123. # This customer is exempt from specific taxes for holding a valid STATUS_CARD_EXEMPTION in Canada.
  18124. CA_STATUS_CARD_EXEMPTION
  18125. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in British Columbia.
  18126. CA_BC_RESELLER_EXEMPTION
  18127. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Manitoba.
  18128. CA_MB_RESELLER_EXEMPTION
  18129. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Saskatchewan.
  18130. CA_SK_RESELLER_EXEMPTION
  18131. # This customer is exempt from specific taxes for holding a valid DIPLOMAT_EXEMPTION in Canada.
  18132. CA_DIPLOMAT_EXEMPTION
  18133. # This customer is exempt from specific taxes for holding a valid COMMERCIAL_FISHERY_EXEMPTION in British Columbia.
  18134. CA_BC_COMMERCIAL_FISHERY_EXEMPTION
  18135. # This customer is exempt from specific taxes for holding a valid COMMERCIAL_FISHERY_EXEMPTION in Manitoba.
  18136. CA_MB_COMMERCIAL_FISHERY_EXEMPTION
  18137. # This customer is exempt from specific taxes for holding a valid COMMERCIAL_FISHERY_EXEMPTION in Nova Scotia.
  18138. CA_NS_COMMERCIAL_FISHERY_EXEMPTION
  18139. # This customer is exempt from specific taxes for holding a valid COMMERCIAL_FISHERY_EXEMPTION in Prince Edward Island.
  18140. CA_PE_COMMERCIAL_FISHERY_EXEMPTION
  18141. # This customer is exempt from specific taxes for holding a valid COMMERCIAL_FISHERY_EXEMPTION in Saskatchewan.
  18142. CA_SK_COMMERCIAL_FISHERY_EXEMPTION
  18143. # This customer is exempt from specific taxes for holding a valid PRODUCTION_AND_MACHINERY_EXEMPTION in British Columbia.
  18144. CA_BC_PRODUCTION_AND_MACHINERY_EXEMPTION
  18145. # This customer is exempt from specific taxes for holding a valid PRODUCTION_AND_MACHINERY_EXEMPTION in Saskatchewan.
  18146. CA_SK_PRODUCTION_AND_MACHINERY_EXEMPTION
  18147. # This customer is exempt from specific taxes for holding a valid SUB_CONTRACTOR_EXEMPTION in British Columbia.
  18148. CA_BC_SUB_CONTRACTOR_EXEMPTION
  18149. # This customer is exempt from specific taxes for holding a valid SUB_CONTRACTOR_EXEMPTION in Saskatchewan.
  18150. CA_SK_SUB_CONTRACTOR_EXEMPTION
  18151. # This customer is exempt from specific taxes for holding a valid CONTRACTOR_EXEMPTION in British Columbia.
  18152. CA_BC_CONTRACTOR_EXEMPTION
  18153. # This customer is exempt from specific taxes for holding a valid CONTRACTOR_EXEMPTION in Saskatchewan.
  18154. CA_SK_CONTRACTOR_EXEMPTION
  18155. # This customer is exempt from specific taxes for holding a valid PURCHASE_EXEMPTION in Ontario.
  18156. CA_ON_PURCHASE_EXEMPTION
  18157. # This customer is exempt from specific taxes for holding a valid FARMER_EXEMPTION in Manitoba.
  18158. CA_MB_FARMER_EXEMPTION
  18159. # This customer is exempt from specific taxes for holding a valid FARMER_EXEMPTION in Nova Scotia.
  18160. CA_NS_FARMER_EXEMPTION
  18161. # This customer is exempt from specific taxes for holding a valid FARMER_EXEMPTION in Saskatchewan.
  18162. CA_SK_FARMER_EXEMPTION
  18163. # This customer is exempt from VAT for purchases within the EU that is shipping from outside of customer's country.
  18164. EU_REVERSE_CHARGE_EXEMPTION_RULE
  18165. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Alabama.
  18166. US_AL_RESELLER_EXEMPTION
  18167. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Alaska.
  18168. US_AK_RESELLER_EXEMPTION
  18169. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Arizona.
  18170. US_AZ_RESELLER_EXEMPTION
  18171. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Arkansas.
  18172. US_AR_RESELLER_EXEMPTION
  18173. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in California.
  18174. US_CA_RESELLER_EXEMPTION
  18175. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Colorado.
  18176. US_CO_RESELLER_EXEMPTION
  18177. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Connecticut.
  18178. US_CT_RESELLER_EXEMPTION
  18179. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Delaware.
  18180. US_DE_RESELLER_EXEMPTION
  18181. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Florida.
  18182. US_FL_RESELLER_EXEMPTION
  18183. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Georgia.
  18184. US_GA_RESELLER_EXEMPTION
  18185. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Hawaii.
  18186. US_HI_RESELLER_EXEMPTION
  18187. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Idaho.
  18188. US_ID_RESELLER_EXEMPTION
  18189. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Illinois.
  18190. US_IL_RESELLER_EXEMPTION
  18191. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Indiana.
  18192. US_IN_RESELLER_EXEMPTION
  18193. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Iowa.
  18194. US_IA_RESELLER_EXEMPTION
  18195. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Kansas.
  18196. US_KS_RESELLER_EXEMPTION
  18197. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Kentucky.
  18198. US_KY_RESELLER_EXEMPTION
  18199. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Louisiana.
  18200. US_LA_RESELLER_EXEMPTION
  18201. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Maine.
  18202. US_ME_RESELLER_EXEMPTION
  18203. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Maryland.
  18204. US_MD_RESELLER_EXEMPTION
  18205. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Massachusetts.
  18206. US_MA_RESELLER_EXEMPTION
  18207. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Michigan.
  18208. US_MI_RESELLER_EXEMPTION
  18209. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Minnesota.
  18210. US_MN_RESELLER_EXEMPTION
  18211. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Mississippi.
  18212. US_MS_RESELLER_EXEMPTION
  18213. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Missouri.
  18214. US_MO_RESELLER_EXEMPTION
  18215. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Montana.
  18216. US_MT_RESELLER_EXEMPTION
  18217. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Nebraska.
  18218. US_NE_RESELLER_EXEMPTION
  18219. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Nevada.
  18220. US_NV_RESELLER_EXEMPTION
  18221. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in New Hampshire.
  18222. US_NH_RESELLER_EXEMPTION
  18223. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in New Jersey.
  18224. US_NJ_RESELLER_EXEMPTION
  18225. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in New Mexico.
  18226. US_NM_RESELLER_EXEMPTION
  18227. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in New York.
  18228. US_NY_RESELLER_EXEMPTION
  18229. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in North Carolina.
  18230. US_NC_RESELLER_EXEMPTION
  18231. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in North Dakota.
  18232. US_ND_RESELLER_EXEMPTION
  18233. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Ohio.
  18234. US_OH_RESELLER_EXEMPTION
  18235. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Oklahoma.
  18236. US_OK_RESELLER_EXEMPTION
  18237. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Oregon.
  18238. US_OR_RESELLER_EXEMPTION
  18239. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Pennsylvania.
  18240. US_PA_RESELLER_EXEMPTION
  18241. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Rhode Island.
  18242. US_RI_RESELLER_EXEMPTION
  18243. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in South Carolina.
  18244. US_SC_RESELLER_EXEMPTION
  18245. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in South Dakota.
  18246. US_SD_RESELLER_EXEMPTION
  18247. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Tennessee.
  18248. US_TN_RESELLER_EXEMPTION
  18249. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Texas.
  18250. US_TX_RESELLER_EXEMPTION
  18251. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Utah.
  18252. US_UT_RESELLER_EXEMPTION
  18253. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Vermont.
  18254. US_VT_RESELLER_EXEMPTION
  18255. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Virginia.
  18256. US_VA_RESELLER_EXEMPTION
  18257. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Washington.
  18258. US_WA_RESELLER_EXEMPTION
  18259. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in West Virginia.
  18260. US_WV_RESELLER_EXEMPTION
  18261. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Wisconsin.
  18262. US_WI_RESELLER_EXEMPTION
  18263. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Wyoming.
  18264. US_WY_RESELLER_EXEMPTION
  18265. # This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Washington DC.
  18266. US_DC_RESELLER_EXEMPTION
  18267. }
  18268. # Represents valid selling plan interval.
  18269. enum SellingPlanInterval {
  18270. # Day interval.
  18271. DAY
  18272. # Week interval.
  18273. WEEK
  18274. # Month interval.
  18275. MONTH
  18276. # Year interval.
  18277. YEAR
  18278. }
  18279. # Represents the anchor type.
  18280. enum SellingPlanAnchorType {
  18281. # Which day of the week, between 1-7.
  18282. WEEKDAY
  18283. # Which day of the month, between 1-31.
  18284. MONTHDAY
  18285. # Which days of the month and year, month between 1-12, and day between 1-31.
  18286. YEARDAY
  18287. }
  18288. # Represents a selling plan pricing policy adjustment type.
  18289. enum SellingPlanPricingPolicyAdjustmentType {
  18290. # Percentage off adjustment.
  18291. PERCENTAGE
  18292. # Fixed amount off adjustment.
  18293. FIXED_AMOUNT
  18294. # Price of the policy.
  18295. PRICE
  18296. }
  18297. # The type of line (line item or shipping line) on an order that the subscription discount is applicable towards.
  18298. enum DiscountTargetType {
  18299. # The discount applies onto line items.
  18300. LINE_ITEM
  18301. # The discount applies onto shipping lines.
  18302. SHIPPING_LINE
  18303. }
  18304. # The type of the subscription discount.
  18305. enum DiscountType {
  18306. # Manual discount type.
  18307. MANUAL
  18308. # Code discount type.
  18309. CODE_DISCOUNT
  18310. }
  18311. # The type of refund to perform for a particular refund duty.
  18312. enum RefundDutyRefundType {
  18313. # The duty is proportionally refunded based on the quantity of the refunded line item.
  18314. PROPORTIONAL
  18315. # The duty is fully refunded.
  18316. FULL
  18317. }
  18318. # The likelihood that an order is fraudulent.
  18319. enum OrderRiskLevel {
  18320. # There is a low level of risk that this order is fraudulent.
  18321. LOW
  18322. # There is a medium level of risk that this order is fraudulent.
  18323. MEDIUM
  18324. # There is a high level of risk that this order is fraudulent.
  18325. HIGH
  18326. }
  18327. # The set of valid sort keys for the FulfillmentEvent query.
  18328. enum FulfillmentEventSortKeys {
  18329. # Sort by the happened_at value.
  18330. HAPPENED_AT
  18331. # Sort by the id value.
  18332. ID
  18333. # Sort by relevance to the search terms when the query parameter is specified on the connection.
  18334. # Don't use this sort key when no search query is specified.
  18335. RELEVANCE
  18336. }
  18337. # The display status of a fulfillment.
  18338. enum FulfillmentDisplayStatus {
  18339. # Displayed as Attempted delivery.
  18340. ATTEMPTED_DELIVERY
  18341. # Displayed as Canceled.
  18342. CANCELED
  18343. # Displayed as Confirmed.
  18344. CONFIRMED
  18345. # Displayed as Delivered.
  18346. DELIVERED
  18347. # Displayed as Failure.
  18348. FAILURE
  18349. # Displayed as Fulfilled.
  18350. FULFILLED
  18351. # Displayed as In transit.
  18352. IN_TRANSIT
  18353. # Displayed as Label printed.
  18354. LABEL_PRINTED
  18355. # Displayed as Label purchased.
  18356. LABEL_PURCHASED
  18357. # Displayed as Label voided.
  18358. LABEL_VOIDED
  18359. # Displayed as Marked as fulfilled.
  18360. MARKED_AS_FULFILLED
  18361. # Displayed as Not delivered.
  18362. NOT_DELIVERED
  18363. # Displayed as Out for delivery.
  18364. OUT_FOR_DELIVERY
  18365. # Displayed as Ready for pickup.
  18366. READY_FOR_PICKUP
  18367. # Displayed as Picked up.
  18368. PICKED_UP
  18369. # Displayed as Submitted.
  18370. SUBMITTED
  18371. }
  18372. # The status of a fulfillment.
  18373. enum FulfillmentStatus {
  18374. # The fulfillment was completed successfully.
  18375. SUCCESS
  18376. # The fulfillment was canceled.
  18377. CANCELLED
  18378. # There was an error with the fulfillment request.
  18379. ERROR
  18380. # The fulfillment request failed.
  18381. FAILURE
  18382. }
  18383. # The possible types for a dispute.
  18384. enum DisputeType {
  18385. # The dispute has turned into a chargeback.
  18386. CHARGEBACK
  18387. # The dispute is in the inquiry phase.
  18388. INQUIRY
  18389. }
  18390. # The possible statuses of a dispute.
  18391. enum DisputeStatus {
  18392. NEEDS_RESPONSE
  18393. UNDER_REVIEW
  18394. CHARGE_REFUNDED
  18395. ACCEPTED
  18396. WON
  18397. LOST
  18398. }
  18399. # Represents the order's current financial status.
  18400. enum OrderDisplayFinancialStatus {
  18401. # Displayed as Pending.
  18402. PENDING
  18403. # Displayed as Authorized.
  18404. AUTHORIZED
  18405. # Displayed as Partially paid.
  18406. PARTIALLY_PAID
  18407. # Displayed as Partially refunded.
  18408. PARTIALLY_REFUNDED
  18409. # Displayed as Voided.
  18410. VOIDED
  18411. # Displayed as Paid.
  18412. PAID
  18413. # Displayed as Refunded.
  18414. REFUNDED
  18415. # Displayed as Expired.
  18416. EXPIRED
  18417. }
  18418. # Represents the order's aggregated fulfillment status for display purposes.
  18419. enum OrderDisplayFulfillmentStatus {
  18420. # Displayed as Unfulfilled. None of the items in the order have been fulfilled.
  18421. UNFULFILLED
  18422. # Displayed as Partially fulfilled. Some of the items in the order have been fulfilled.
  18423. PARTIALLY_FULFILLED
  18424. # Displayed as Fulfilled. All the items in the order have been fulfilled.
  18425. FULFILLED
  18426. # Displayed as Restocked. All the items in the order have been restocked. Replaced by the "UNFULFILLED" status.
  18427. RESTOCKED
  18428. # Displayed as Pending fulfillment. A request for fulfillment of some items awaits a response from the fulfillment service. Replaced by the "IN_PROGRESS" status.
  18429. PENDING_FULFILLMENT
  18430. # Displayed as Open. None of the items in the order have been fulfilled. Replaced by "UNFULFILLED" status.
  18431. OPEN
  18432. # Displayed as In progress.
  18433. # Some of the items in the order have been fulfilled, or a request for fulfillment has been sent to the fulfillment service.
  18434. IN_PROGRESS
  18435. # Displayed as On hold. All of the unfulfilled items in this order are on hold.
  18436. ON_HOLD
  18437. # Displayed as Scheduled. All of the unfulfilled items in this order are scheduled for fulfillment at later time.
  18438. SCHEDULED
  18439. }
  18440. # The possible order action types for a sales agreement.
  18441. enum OrderActionType {
  18442. # An order with a purchase or charge.
  18443. ORDER
  18444. # An edit to the order.
  18445. ORDER_EDIT
  18446. # A refund on the order.
  18447. REFUND
  18448. # An unknown agreement action. Represents new actions that may be added in future versions.
  18449. UNKNOWN
  18450. }
  18451. enum SaleActionType {
  18452. # A purchase or charge.
  18453. ORDER
  18454. # A removal or return.
  18455. RETURN
  18456. # A change to the price, taxes, or discounts for a prior purchase.
  18457. UPDATE
  18458. # An unknown order action. Represents new actions that may be added in future versions.
  18459. UNKNOWN
  18460. }
  18461. # The possible line types for a sale record.
  18462. # One of the possible order line types for a sale is an adjustment.
  18463. # Sales adjustments occur when a refund is issued for a line item that is either more or less than the total value of the line item.
  18464. # Examples are restocking fees and goodwill payments.
  18465. # When this happens, Shopify produces a sales agreement with sale records for each line item that is returned or refunded and an additional sale record for the adjustment (for example, a restocking fee).
  18466. # The sales records for the returned or refunded items represent the reversal of the original line item sale value.
  18467. # The additional adjustment sale record represents the difference between the original total value of all line items that were refunded, and the actual amount refunded.
  18468. enum SaleLineType {
  18469. # A product purchased, returned or exchanged.
  18470. PRODUCT
  18471. # A tip added by the customer.
  18472. TIP
  18473. # A gift card.
  18474. GIFT_CARD
  18475. # A shipping cost.
  18476. SHIPPING
  18477. # A duty charge.
  18478. DUTY
  18479. # An unknown sale line. Represents new types that may be added in future versions.
  18480. UNKNOWN
  18481. # A sale adjustment.
  18482. ADJUSTMENT
  18483. }
  18484. # The possible error codes associated with making billing attempts. The error codes supplement the
  18485. # error_message to provide consistent results and help with dunning management.
  18486. enum SubscriptionBillingAttemptErrorCode {
  18487. # Payment method was not found.
  18488. PAYMENT_METHOD_NOT_FOUND
  18489. # Payment provider is not enabled.
  18490. PAYMENT_PROVIDER_IS_NOT_ENABLED
  18491. # Payment method is invalid. Please update or create a new payment method.
  18492. INVALID_PAYMENT_METHOD
  18493. # There was an unexpected error during the billing attempt.
  18494. UNEXPECTED_ERROR
  18495. # Payment method is expired.
  18496. EXPIRED_PAYMENT_METHOD
  18497. # Payment method was declined by processor.
  18498. PAYMENT_METHOD_DECLINED
  18499. # There was an error during the authentication.
  18500. AUTHENTICATION_ERROR
  18501. # Gateway is in test mode and attempted to bill a live payment method.
  18502. TEST_MODE
  18503. # Payment method was canceled by buyer.
  18504. BUYER_CANCELED_PAYMENT_METHOD
  18505. # Customer was not found.
  18506. CUSTOMER_NOT_FOUND
  18507. # Customer is invalid.
  18508. CUSTOMER_INVALID
  18509. # The shipping address is either missing or invalid.
  18510. INVALID_SHIPPING_ADDRESS
  18511. # The billing agreement ID or the transaction ID for the customer's payment method is invalid.
  18512. INVALID_CUSTOMER_BILLING_AGREEMENT
  18513. # A payment has already been made for this invoice.
  18514. INVOICE_ALREADY_PAID
  18515. # Payment method cannot be used with the current payment gateway test mode configuration.
  18516. PAYMENT_METHOD_INCOMPATIBLE_WITH_GATEWAY_CONFIG
  18517. # The amount is too small.
  18518. AMOUNT_TOO_SMALL
  18519. }
  18520. # Possible method types that a delivery method can have.
  18521. enum DeliveryMethodType {
  18522. # The order is shipped.
  18523. SHIPPING
  18524. # The order is picked up by the customer.
  18525. PICK_UP
  18526. # No delivery is needed.
  18527. NONE
  18528. # The order is delivered to a retail store.
  18529. RETAIL
  18530. # The order is delivered using a local delivery service.
  18531. LOCAL
  18532. }
  18533. # The reason for a fulfillment hold.
  18534. enum FulfillmentHoldReason {
  18535. # The fulfillment hold is applied because payment is pending.
  18536. AWAITING_PAYMENT
  18537. # The fulfillment hold is applied because of a high risk of fraud.
  18538. HIGH_RISK_OF_FRAUD
  18539. # The fulfillment hold is applied because of an incorrect address.
  18540. INCORRECT_ADDRESS
  18541. # The fulfillment hold is applied because inventory is out of stock.
  18542. INVENTORY_OUT_OF_STOCK
  18543. # The fulfillment hold is applied because of an unknown delivery date.
  18544. UNKNOWN_DELIVERY_DATE
  18545. # The fulfillment hold is applied for another reason.
  18546. OTHER
  18547. }
  18548. # The kinds of request merchants can make to a fulfillment service.
  18549. enum FulfillmentOrderMerchantRequestKind {
  18550. # The merchant requests fulfillment for an OPEN fulfillment order.
  18551. FULFILLMENT_REQUEST
  18552. # The merchant requests cancellation of an IN_PROGRESS fulfillment order.
  18553. CANCELLATION_REQUEST
  18554. }
  18555. # The request status of a fulfillment order.
  18556. enum FulfillmentOrderRequestStatus {
  18557. # The initial request status for the newly-created fulfillment orders. This is the only valid
  18558. # request status for fulfillment orders that aren't assigned to a fulfillment service.
  18559. UNSUBMITTED
  18560. # The merchant requested fulfillment for this fulfillment order.
  18561. SUBMITTED
  18562. # The fulfillment service accepted the merchant's fulfillment request.
  18563. ACCEPTED
  18564. # The fulfillment service rejected the merchant's fulfillment request.
  18565. REJECTED
  18566. # The merchant requested a cancellation of the fulfillment request for this fulfillment order.
  18567. CANCELLATION_REQUESTED
  18568. # The fulfillment service accepted the merchant's fulfillment cancellation request.
  18569. CANCELLATION_ACCEPTED
  18570. # The fulfillment service rejected the merchant's fulfillment cancellation request.
  18571. CANCELLATION_REJECTED
  18572. # The fulfillment service closed the fulfillment order without completing it.
  18573. CLOSED
  18574. }
  18575. # The status of a fulfillment order.
  18576. enum FulfillmentOrderStatus {
  18577. # The fulfillment order is ready for fulfillment.
  18578. OPEN
  18579. # The fulfillment order is being processed.
  18580. IN_PROGRESS
  18581. # The fulfillment order has been cancelled by the merchant.
  18582. CANCELLED
  18583. # The fulfillment order cannot be completed as requested.
  18584. INCOMPLETE
  18585. # The fulfillment order has been completed and closed.
  18586. CLOSED
  18587. # The fulfillment order is deferred and will be ready for fulfillment after the date and time specified in fulfill_at.
  18588. SCHEDULED
  18589. # The fulfillment order is on hold. The fulfillment process can't be initiated until the hold on the fulfillment order is released.
  18590. ON_HOLD
  18591. }
  18592. # The actions that can be taken on a fulfillment order.
  18593. enum FulfillmentOrderAction {
  18594. # Creates a fulfillment for selected line items in the fulfillment order.
  18595. # The corresponding mutation for this action is fulfillmentCreateV2.
  18596. CREATE_FULFILLMENT
  18597. # Sends a request for fulfilling selected line items in a fulfillment order to a fulfillment service.
  18598. # The corresponding mutation for this action is fulfillmentOrderSubmitFulfillmentRequest.
  18599. REQUEST_FULFILLMENT
  18600. # Cancels a fulfillment order.
  18601. # The corresponding mutation for this action is fulfillmentOrderCancel.
  18602. CANCEL_FULFILLMENT_ORDER
  18603. # Moves a fulfillment order.
  18604. # The corresponding mutation for this action is fulfillmentOrderMove.
  18605. MOVE
  18606. # Sends a cancellation request to the fulfillment service of a fulfillment order.
  18607. # The corresponding mutation for this action is fulfillmentOrderSubmitCancellationRequest.
  18608. REQUEST_CANCELLATION
  18609. # Marks the fulfillment order as open.
  18610. # The corresponding mutation for this action is fulfillmentOrderOpen.
  18611. MARK_AS_OPEN
  18612. # Releases the fulfillment hold on the fulfillment order.
  18613. # The corresponding mutation for this action is fulfillmentOrderReleaseHold.
  18614. RELEASE_HOLD
  18615. # Applies a fulfillment hold on an open fulfillment order.
  18616. # The corresponding mutation for this action is fulfillmentOrderHold.
  18617. HOLD
  18618. # Opens an external URL to initiate the fulfillment process outside Shopify.
  18619. # This action should be paired with FulfillmentOrderSupportedAction.externalUrl.
  18620. EXTERNAL
  18621. }
  18622. # The status that describes a fulfillment or delivery event.
  18623. enum FulfillmentEventStatus {
  18624. # A shipping label has been purchased.
  18625. LABEL_PURCHASED
  18626. # A purchased shipping label has been printed.
  18627. LABEL_PRINTED
  18628. # The fulfillment is ready to be picked up.
  18629. READY_FOR_PICKUP
  18630. # The fulfillment is confirmed. This is the default value when no other information is available.
  18631. CONFIRMED
  18632. # The fulfillment is in transit.
  18633. IN_TRANSIT
  18634. # The fulfillment is out for delivery.
  18635. OUT_FOR_DELIVERY
  18636. # A delivery was attempted.
  18637. ATTEMPTED_DELIVERY
  18638. # The fulfillment was successfully delivered.
  18639. DELIVERED
  18640. # The fulfillment request failed.
  18641. FAILURE
  18642. }
  18643. # Represents a percentage price adjustment type.
  18644. enum PriceListAdjustmentType {
  18645. # Percentage decrease type. Prices will have a lower value.
  18646. PERCENTAGE_DECREASE
  18647. # Percentage increase type. Prices will have a higher value.
  18648. PERCENTAGE_INCREASE
  18649. }
  18650. # Represents the origin of a price, either fixed (defined on the price list)
  18651. # or relative (calculated using a price list adjustment configuration).
  18652. enum PriceListPriceOriginType {
  18653. # The price is defined on the price list.
  18654. FIXED
  18655. # The price is relative to the adjustment type and value.
  18656. RELATIVE
  18657. }
  18658. # The set of valid sort keys for the Collection query.
  18659. enum CollectionSortKeys {
  18660. # Sort by the title value.
  18661. TITLE
  18662. # Sort by the updated_at value.
  18663. UPDATED_AT
  18664. # Sort by the id value.
  18665. ID
  18666. # Sort by relevance to the search terms when the query parameter is specified on the connection.
  18667. # Don't use this sort key when no search query is specified.
  18668. RELEVANCE
  18669. }
  18670. # The set of valid sort keys for the ProductImage query.
  18671. enum ProductImageSortKeys {
  18672. # Sort by the created_at value.
  18673. CREATED_AT
  18674. # Sort by the position value.
  18675. POSITION
  18676. # Sort by the id value.
  18677. ID
  18678. # Sort by relevance to the search terms when the query parameter is specified on the connection.
  18679. # Don't use this sort key when no search query is specified.
  18680. RELEVANCE
  18681. }
  18682. # The set of valid sort keys for the ProductMedia query.
  18683. enum ProductMediaSortKeys {
  18684. # Sort by the position value.
  18685. POSITION
  18686. # Sort by the id value.
  18687. ID
  18688. # Sort by relevance to the search terms when the query parameter is specified on the connection.
  18689. # Don't use this sort key when no search query is specified.
  18690. RELEVANCE
  18691. }
  18692. # The possible product statuses.
  18693. enum ProductStatus {
  18694. # The product is ready to sell and can be published to sales channels and apps.
  18695. # Products with an active status aren't automatically published to sales channels, such as the online store, or apps.
  18696. # By default, existing products are set to active.
  18697. ACTIVE
  18698. # The product is no longer being sold and isn't available to customers on sales channels and apps.
  18699. ARCHIVED
  18700. # The product isn't ready to sell and is unavailable to customers on sales channels and apps.
  18701. # By default, duplicated and unarchived products are set to draft.
  18702. DRAFT
  18703. }
  18704. # The set of valid sort keys for the ProductVariant query.
  18705. enum ProductVariantSortKeys {
  18706. # Sort by the title value.
  18707. TITLE
  18708. # Sort by the name value.
  18709. NAME
  18710. # Sort by the sku value.
  18711. SKU
  18712. # Sort by the inventory_quantity value.
  18713. INVENTORY_QUANTITY
  18714. # Sort by the inventory_management value.
  18715. INVENTORY_MANAGEMENT
  18716. # Sort by the inventory_levels.available value.
  18717. INVENTORY_LEVELS_AVAILABLE
  18718. # Sort by the inventory_policy value.
  18719. INVENTORY_POLICY
  18720. # Sort by the full_title value.
  18721. FULL_TITLE
  18722. # Sort by the popular value.
  18723. POPULAR
  18724. # Sort by the position value.
  18725. POSITION
  18726. # Sort by the id value.
  18727. ID
  18728. # Sort by relevance to the search terms when the query parameter is specified on the connection.
  18729. # Don't use this sort key when no search query is specified.
  18730. RELEVANCE
  18731. }
  18732. # The possible content types for a media object.
  18733. enum MediaContentType {
  18734. # A Shopify-hosted video.
  18735. VIDEO
  18736. # An externally hosted video.
  18737. EXTERNAL_VIDEO
  18738. # A 3d model.
  18739. MODEL_3D
  18740. # A Shopify-hosted image.
  18741. IMAGE
  18742. }
  18743. # Error types for media.
  18744. enum MediaErrorCode {
  18745. # Media error has occured for unknown reason.
  18746. UNKNOWN
  18747. # Media could not be processed because the signed URL was invalid.
  18748. INVALID_SIGNED_URL
  18749. # Media could not be processed because the image could not be downloaded.
  18750. IMAGE_DOWNLOAD_FAILURE
  18751. # Media could not be processed because the image could not be processed.
  18752. IMAGE_PROCESSING_FAILURE
  18753. # Media timed out because it is currently being modified by another operation.
  18754. MEDIA_TIMEOUT_ERROR
  18755. # Media could not be created because the external video could not be found.
  18756. EXTERNAL_VIDEO_NOT_FOUND
  18757. # Media could not be created because the external video is not listed or is private.
  18758. EXTERNAL_VIDEO_UNLISTED
  18759. # Media could not be created because the external video has an invalid aspect ratio.
  18760. EXTERNAL_VIDEO_INVALID_ASPECT_RATIO
  18761. # Media could not be created because embed permissions are disabled for this video.
  18762. EXTERNAL_VIDEO_EMBED_DISABLED
  18763. # Media could not be created because video is either not found or still transcoding.
  18764. EXTERNAL_VIDEO_EMBED_NOT_FOUND_OR_TRANSCODING
  18765. # File could not be processed because the source could not be downloaded.
  18766. GENERIC_FILE_DOWNLOAD_FAILURE
  18767. # File could not be created because the size is too large.
  18768. GENERIC_FILE_INVALID_SIZE
  18769. # Media could not be created because the metadata could not be read.
  18770. VIDEO_METADATA_READ_ERROR
  18771. # Media could not be created because it has an invalid file type.
  18772. VIDEO_INVALID_FILETYPE_ERROR
  18773. # Media could not be created because it does not meet the minimum width requirement.
  18774. VIDEO_MIN_WIDTH_ERROR
  18775. # Media could not be created because it does not meet the maximum width requirement.
  18776. VIDEO_MAX_WIDTH_ERROR
  18777. # Media could not be created because it does not meet the minimum height requirement.
  18778. VIDEO_MIN_HEIGHT_ERROR
  18779. # Media could not be created because it does not meet the maximum height requirement.
  18780. VIDEO_MAX_HEIGHT_ERROR
  18781. # Media could not be created because it does not meet the minimum duration requirement.
  18782. VIDEO_MIN_DURATION_ERROR
  18783. # Media could not be created because it does not meet the maximum duration requirement.
  18784. VIDEO_MAX_DURATION_ERROR
  18785. # Video failed validation.
  18786. VIDEO_VALIDATION_ERROR
  18787. # Model failed validation.
  18788. MODEL3D_VALIDATION_ERROR
  18789. # Media could not be created because the model's thumbnail generation failed.
  18790. MODEL3D_THUMBNAIL_GENERATION_ERROR
  18791. # Media could not be created because the model can't be converted to USDZ format.
  18792. MODEL3D_GLB_TO_USDZ_CONVERSION_ERROR
  18793. # Media could not be created because the model file failed processing.
  18794. MODEL3D_GLB_OUTPUT_CREATION_ERROR
  18795. # Media could not be created because the model file failed processing.
  18796. MODEL3D_PROCESSING_FAILURE
  18797. # Media could not be created because the image is an unsupported file type.
  18798. UNSUPPORTED_IMAGE_FILE_TYPE
  18799. # Media could not be created because the image size is too large.
  18800. INVALID_IMAGE_FILE_SIZE
  18801. # Media could not be created because the image has an invalid aspect ratio.
  18802. INVALID_IMAGE_ASPECT_RATIO
  18803. # Media could not be created because the image's resolution exceeds the max limit.
  18804. INVALID_IMAGE_RESOLUTION
  18805. # Media could not be created because the cumulative file storage limit would be exceeded.
  18806. FILE_STORAGE_LIMIT_EXCEEDED
  18807. }
  18808. # Warning types for media.
  18809. enum MediaWarningCode {
  18810. # 3D model physical size might be invalid.
  18811. # The dimensions of your model are very small.
  18812. # Consider reviewing your model to ensure they are correct.
  18813. MODEL_SMALL_PHYSICAL_SIZE
  18814. # 3D model physical size might be invalid.
  18815. # The dimensions of your model are very large.
  18816. # Consider reviewing your model to ensure they are correct.
  18817. MODEL_LARGE_PHYSICAL_SIZE
  18818. }
  18819. # The possible statuses for a media preview image.
  18820. enum MediaPreviewImageStatus {
  18821. # Preview image is uploaded but not yet processed.
  18822. UPLOADED
  18823. # Preview image is being processed.
  18824. PROCESSING
  18825. # Preview image is ready to be displayed.
  18826. READY
  18827. # Preview image processing has failed.
  18828. FAILED
  18829. }
  18830. # The possible statuses for a media object.
  18831. enum MediaStatus {
  18832. # Media has been uploaded but not yet processed.
  18833. UPLOADED
  18834. # Media is being processed.
  18835. PROCESSING
  18836. # Media is ready to be displayed.
  18837. READY
  18838. # Media processing has failed.
  18839. FAILED
  18840. }
  18841. # The error types for a file.
  18842. enum FileErrorCode {
  18843. # File error has occurred for an unknown reason.
  18844. UNKNOWN
  18845. # File could not be processed because the signed URL was invalid.
  18846. INVALID_SIGNED_URL
  18847. # File could not be processed because the image could not be downloaded.
  18848. IMAGE_DOWNLOAD_FAILURE
  18849. # File could not be processed because the image could not be processed.
  18850. IMAGE_PROCESSING_FAILURE
  18851. # File timed out because it is currently being modified by another operation.
  18852. MEDIA_TIMEOUT_ERROR
  18853. # File could not be created because the external video could not be found.
  18854. EXTERNAL_VIDEO_NOT_FOUND
  18855. # File could not be created because the external video is not listed or is private.
  18856. EXTERNAL_VIDEO_UNLISTED
  18857. # File could not be created because the external video has an invalid aspect ratio.
  18858. EXTERNAL_VIDEO_INVALID_ASPECT_RATIO
  18859. # File could not be created because embed permissions are disabled for this video.
  18860. EXTERNAL_VIDEO_EMBED_DISABLED
  18861. # File could not be created because video is either not found or still transcoding.
  18862. EXTERNAL_VIDEO_EMBED_NOT_FOUND_OR_TRANSCODING
  18863. # File could not be processed because the source could not be downloaded.
  18864. GENERIC_FILE_DOWNLOAD_FAILURE
  18865. # File could not be created because the size is too large.
  18866. GENERIC_FILE_INVALID_SIZE
  18867. # File could not be created because the metadata could not be read.
  18868. VIDEO_METADATA_READ_ERROR
  18869. # File could not be created because it has an invalid file type.
  18870. VIDEO_INVALID_FILETYPE_ERROR
  18871. # File could not be created because it does not meet the minimum width requirement.
  18872. VIDEO_MIN_WIDTH_ERROR
  18873. # File could not be created because it does not meet the maximum width requirement.
  18874. VIDEO_MAX_WIDTH_ERROR
  18875. # File could not be created because it does not meet the minimum height requirement.
  18876. VIDEO_MIN_HEIGHT_ERROR
  18877. # File could not be created because it does not meet the maximum height requirement.
  18878. VIDEO_MAX_HEIGHT_ERROR
  18879. # File could not be created because it does not meet the minimum duration requirement.
  18880. VIDEO_MIN_DURATION_ERROR
  18881. # File could not be created because it does not meet the maximum duration requirement.
  18882. VIDEO_MAX_DURATION_ERROR
  18883. # Video failed validation.
  18884. VIDEO_VALIDATION_ERROR
  18885. # Model failed validation.
  18886. MODEL3D_VALIDATION_ERROR
  18887. # File could not be created because the model's thumbnail generation failed.
  18888. MODEL3D_THUMBNAIL_GENERATION_ERROR
  18889. # File could not be created because the model can't be converted to USDZ format.
  18890. MODEL3D_GLB_TO_USDZ_CONVERSION_ERROR
  18891. # File could not be created because the model file failed processing.
  18892. MODEL3D_GLB_OUTPUT_CREATION_ERROR
  18893. # File could not be created because the model file failed processing.
  18894. MODEL3D_PROCESSING_FAILURE
  18895. # File could not be created because the image is an unsupported file type.
  18896. UNSUPPORTED_IMAGE_FILE_TYPE
  18897. # File could not be created because the image size is too large.
  18898. INVALID_IMAGE_FILE_SIZE
  18899. # File could not be created because the image has an invalid aspect ratio.
  18900. INVALID_IMAGE_ASPECT_RATIO
  18901. # File could not be created because the image's resolution exceeds the max limit.
  18902. INVALID_IMAGE_RESOLUTION
  18903. # File could not be created because the cumulative file storage limit would be exceeded.
  18904. FILE_STORAGE_LIMIT_EXCEEDED
  18905. }
  18906. # The possible statuses for a file object.
  18907. enum FileStatus {
  18908. # File has been uploaded but hasn't been processed.
  18909. UPLOADED
  18910. # File is being processed.
  18911. PROCESSING
  18912. # File is ready to be displayed.
  18913. READY
  18914. # File processing has failed.
  18915. FAILED
  18916. }
  18917. # When to capture the payment for the remaining amount due.
  18918. enum SellingPlanRemainingBalanceChargeTrigger {
  18919. # When there's no remaining balance to be charged after checkout.
  18920. NO_REMAINING_BALANCE
  18921. # At an exact time defined by the remaining_balance_charge_exact_time field.
  18922. EXACT_TIME
  18923. # After the duration defined by the remaining_balance_charge_time_after_checkout field.
  18924. TIME_AFTER_CHECKOUT
  18925. }
  18926. # The checkout charge when the full amount isn't charged at checkout.
  18927. enum SellingPlanCheckoutChargeType {
  18928. # The checkout charge is a percentage of the product or variant price.
  18929. PERCENTAGE
  18930. # The checkout charge is a fixed price amount.
  18931. PRICE
  18932. }
  18933. # Describes what triggers fulfillment.
  18934. enum SellingPlanFulfillmentTrigger {
  18935. # Use the anchor values to calculate fulfillment date.
  18936. ANCHOR
  18937. # As soon as possible.
  18938. ASAP
  18939. # At an exact time defined by the fulfillment_exact_time field.
  18940. EXACT_TIME
  18941. # Unknown. Usually to be determined in the future.
  18942. UNKNOWN
  18943. }
  18944. # Possible intentions of a Delivery Policy.
  18945. enum SellingPlanFixedDeliveryPolicyIntent {
  18946. # A merchant-centric delivery policy.
  18947. # Mark this delivery policy to define when the merchant should start fulfillment.
  18948. FULFILLMENT_BEGIN
  18949. }
  18950. # Whether the delivery policy is merchant or buyer-centric.
  18951. enum SellingPlanRecurringDeliveryPolicyIntent {
  18952. # A merchant-centric delivery policy.
  18953. # Mark this delivery policy to define when the merchant should start fulfillment.
  18954. FULFILLMENT_BEGIN
  18955. }
  18956. # The fulfillment or delivery behavior of the first fulfillment when the orderis placed before the anchor.
  18957. enum SellingPlanFixedDeliveryPolicyPreAnchorBehavior {
  18958. # Orders placed can be fulfilled / delivered immediately.
  18959. # Orders placed inside a cutoff can be fulfilled / delivered at the next anchor.
  18960. ASAP
  18961. # Orders placed can be fulfilled / delivered at the next anchor date.
  18962. # Orders placed inside a cutoff will skip the next anchor and can be fulfilled /
  18963. # delivered at the following anchor.
  18964. NEXT
  18965. }
  18966. # The fulfillment or delivery behaviors of the first fulfillment when the orderis placed before the anchor.
  18967. enum SellingPlanRecurringDeliveryPolicyPreAnchorBehavior {
  18968. # The orders placed can be fulfilled or delivered immediately.
  18969. # The orders placed inside a cutoff can be fulfilled or delivered at the next anchor.
  18970. ASAP
  18971. # The orders placed can be fulfilled or delivered at the next anchor date.
  18972. # The orders placed inside a cutoff will skip the next anchor and can be fulfilled or
  18973. # delivered at the following anchor.
  18974. NEXT
  18975. }
  18976. # The frequency at which the shop is billed for an app subscription.
  18977. enum AppPricingInterval {
  18978. # The app subscription bills the shop annually.
  18979. ANNUAL
  18980. # The app subscription bills the shop every 30 days.
  18981. EVERY_30_DAYS
  18982. }
  18983. # The set of valid sort keys for the Product query.
  18984. enum ProductSortKeys {
  18985. # Sort by the title value.
  18986. TITLE
  18987. # Sort by the product_type value.
  18988. PRODUCT_TYPE
  18989. # Sort by the vendor value.
  18990. VENDOR
  18991. # Sort by the inventory_total value.
  18992. INVENTORY_TOTAL
  18993. # Sort by the updated_at value.
  18994. UPDATED_AT
  18995. # Sort by the created_at value.
  18996. CREATED_AT
  18997. # Sort by the published_at value.
  18998. PUBLISHED_AT
  18999. # Sort by the id value.
  19000. ID
  19001. # Sort by relevance to the search terms when the query parameter is specified on the connection.
  19002. # Don't use this sort key when no search query is specified.
  19003. RELEVANCE
  19004. }
  19005. # Possible error codes that can be returned by ProductChangeStatusUserError.
  19006. enum ProductChangeStatusUserErrorCode {
  19007. # Product could not be found.
  19008. PRODUCT_NOT_FOUND
  19009. }
  19010. # The assigment status to be used to filter fulfillment orders.
  19011. enum FulfillmentOrderAssignmentStatus {
  19012. # Fulfillment orders for which the merchant has requested cancellation of
  19013. # the previously accepted fulfillment request.
  19014. CANCELLATION_REQUESTED
  19015. # Fulfillment orders for which the merchant has requested fulfillment.
  19016. FULFILLMENT_REQUESTED
  19017. # Fulfillment orders for which the merchant's fulfillment request has been accepted.
  19018. # Any number of fulfillments can be created on these fulfillment orders
  19019. # to completely fulfill the requested items.
  19020. FULFILLMENT_ACCEPTED
  19021. }
  19022. # The set of valid sort keys for the FulfillmentOrder query.
  19023. enum FulfillmentOrderSortKeys {
  19024. # Sort by the id value.
  19025. ID
  19026. # Sort by relevance to the search terms when the query parameter is specified on the connection.
  19027. # Don't use this sort key when no search query is specified.
  19028. RELEVANCE
  19029. }
  19030. # Represents the shop's customer account requirement preference.
  19031. enum ShopCustomerAccountsSetting {
  19032. REQUIRED
  19033. OPTIONAL
  19034. DISABLED
  19035. }
  19036. # Possible sort of tags.
  19037. enum ShopTagSort {
  19038. # Alphabetical sort.
  19039. ALPHABETICAL
  19040. # Popularity sort.
  19041. POPULAR
  19042. }
  19043. # Digital wallet, such as Apple Pay, which can be used for accelerated checkouts.
  19044. enum DigitalWallet {
  19045. # Apple Pay.
  19046. APPLE_PAY
  19047. # Android Pay.
  19048. ANDROID_PAY
  19049. # Google Pay.
  19050. GOOGLE_PAY
  19051. # Shopify Pay.
  19052. SHOPIFY_PAY
  19053. }
  19054. # Specifies the type of resources to be returned from a search.
  19055. enum SearchResultType {
  19056. CUSTOMER
  19057. DRAFT_ORDER
  19058. PRODUCT
  19059. COLLECTION
  19060. # A file.
  19061. FILE
  19062. ONLINE_STORE_PAGE
  19063. ONLINE_STORE_BLOG
  19064. ONLINE_STORE_ARTICLE
  19065. # A URL redirect.
  19066. URL_REDIRECT
  19067. PRICE_RULE
  19068. # A code discount redeem code.
  19069. DISCOUNT_REDEEM_CODE
  19070. ORDER
  19071. }
  19072. # Available shop policy types.
  19073. enum ShopPolicyType {
  19074. # The refund policy.
  19075. REFUND_POLICY
  19076. # The shipping policy.
  19077. SHIPPING_POLICY
  19078. # The privacy policy.
  19079. PRIVACY_POLICY
  19080. # The terms of service.
  19081. TERMS_OF_SERVICE
  19082. # The terms of sale.
  19083. TERMS_OF_SALE
  19084. # The legal notice.
  19085. LEGAL_NOTICE
  19086. # The purchase options cancellation policy.
  19087. SUBSCRIPTION_POLICY
  19088. }
  19089. # Possible branding of a shop.
  19090. # Branding can be used to define the look of a shop including its styling and logo in the Shopify Admin.
  19091. enum ShopBranding {
  19092. # Shop has Shopify Gold branding.
  19093. SHOPIFY_GOLD
  19094. # Shop has Shopify Plus branding.
  19095. SHOPIFY_PLUS
  19096. # Shop has Rogers branding.
  19097. ROGERS
  19098. # Shop has Shopify branding.
  19099. SHOPIFY
  19100. }
  19101. # Systems of weights and measures.
  19102. enum UnitSystem {
  19103. # Imperial system of weights and measures.
  19104. IMPERIAL_SYSTEM
  19105. # Metric system of weights and measures.
  19106. METRIC_SYSTEM
  19107. }
  19108. # Represents a valid PayPal Express subscriptions gateway status.
  19109. enum PaypalExpressSubscriptionsGatewayStatus {
  19110. # The status is enabled.
  19111. ENABLED
  19112. # The status is disabled.
  19113. DISABLED
  19114. # The status is pending.
  19115. PENDING
  19116. }
  19117. # Possible error codes that can be returned by MediaUserError.
  19118. enum MediaUserErrorCode {
  19119. # The input value is invalid.
  19120. INVALID
  19121. # The input value is blank.
  19122. BLANK
  19123. # Video validation failed.
  19124. VIDEO_VALIDATION_ERROR
  19125. # Model validation failed.
  19126. MODEL3D_VALIDATION_ERROR
  19127. # Video creation throttle was exceeded.
  19128. VIDEO_THROTTLE_EXCEEDED
  19129. # Model3d creation throttle was exceeded.
  19130. MODEL3D_THROTTLE_EXCEEDED
  19131. # Exceeded the limit of media per product.
  19132. PRODUCT_MEDIA_LIMIT_EXCEEDED
  19133. # Exceeded the limit of media per shop.
  19134. SHOP_MEDIA_LIMIT_EXCEEDED
  19135. # Product does not exist.
  19136. PRODUCT_DOES_NOT_EXIST
  19137. # Media does not exist.
  19138. MEDIA_DOES_NOT_EXIST
  19139. # Media does not exist on the given product.
  19140. MEDIA_DOES_NOT_EXIST_ON_PRODUCT
  19141. # Only one mediaId is allowed per variant-media input pair.
  19142. TOO_MANY_MEDIA_PER_INPUT_PAIR
  19143. # Exceeded the maximum number of 100 variant-media pairs per mutation call.
  19144. MAXIMUM_VARIANT_MEDIA_PAIRS_EXCEEDED
  19145. # Invalid media type.
  19146. INVALID_MEDIA_TYPE
  19147. # Variant specified in more than one pair.
  19148. PRODUCT_VARIANT_SPECIFIED_MULTIPLE_TIMES
  19149. # Variant does not exist on the given product.
  19150. PRODUCT_VARIANT_DOES_NOT_EXIST_ON_PRODUCT
  19151. # Non-ready media are not supported.
  19152. NON_READY_MEDIA
  19153. # Product variant already has attached media.
  19154. PRODUCT_VARIANT_ALREADY_HAS_MEDIA
  19155. # The specified media is not attached to the specified variant.
  19156. MEDIA_IS_NOT_ATTACHED_TO_VARIANT
  19157. # Media cannot be modified. It is currently being modified by another operation.
  19158. MEDIA_CANNOT_BE_MODIFIED
  19159. }
  19160. # Possible error codes that can be returned by SellingPlanGroupUserError.
  19161. enum SellingPlanGroupUserErrorCode {
  19162. # The input value is blank.
  19163. BLANK
  19164. # The input value should be equal to the value allowed.
  19165. EQUAL_TO
  19166. # The input value should be greater than the minimum allowed value.
  19167. GREATER_THAN
  19168. # The input value should be greater than or equal to the minimum value allowed.
  19169. GREATER_THAN_OR_EQUAL_TO
  19170. # The input value isn't included in the list.
  19171. INCLUSION
  19172. # The input value is invalid.
  19173. INVALID
  19174. # The input value should be less than the maximum value allowed.
  19175. LESS_THAN
  19176. # The input value should be less than or equal to the maximum value allowed.
  19177. LESS_THAN_OR_EQUAL_TO
  19178. # The input value is not a number.
  19179. NOT_A_NUMBER
  19180. # The record with the ID used as the input value couldn't be found.
  19181. NOT_FOUND
  19182. # The input value needs to be blank.
  19183. PRESENT
  19184. # The input value is already taken.
  19185. TAKEN
  19186. # The input value is too big.
  19187. TOO_BIG
  19188. # The input value is too long.
  19189. TOO_LONG
  19190. # The input value is too short.
  19191. TOO_SHORT
  19192. # The input value is the wrong length.
  19193. WRONG_LENGTH
  19194. # Exceeded the selling plan limit (31).
  19195. SELLING_PLAN_COUNT_UPPER_BOUND
  19196. # Must include at least one selling plan.
  19197. SELLING_PLAN_COUNT_LOWER_BOUND
  19198. # Selling plan's billing policy max cycles must be greater than min cycles.
  19199. SELLING_PLAN_MAX_CYCLES_MUST_BE_GREATER_THAN_MIN_CYCLES
  19200. # Selling plan's billing and delivery policies anchors must be equal.
  19201. SELLING_PLAN_BILLING_AND_DELIVERY_POLICY_ANCHORS_MUST_BE_EQUAL
  19202. # Selling plan's billing cycle must be a multiple of delivery cycle.
  19203. SELLING_PLAN_BILLING_CYCLE_MUST_BE_A_MULTIPLE_OF_DELIVERY_CYCLE
  19204. # Selling plan's pricing policies must contain one fixed pricing policy.
  19205. SELLING_PLAN_PRICING_POLICIES_MUST_CONTAIN_A_FIXED_PRICING_POLICY
  19206. # Cannot define option2 on this selling plan as there's no label on the parent selling plan group.
  19207. SELLING_PLAN_MISSING_OPTION2_LABEL_ON_PARENT_GROUP
  19208. # Cannot define option3 on this selling plan as there's no label on the parent selling plan group.
  19209. SELLING_PLAN_MISSING_OPTION3_LABEL_ON_PARENT_GROUP
  19210. # Selling plan's option2 is required because option2 exists.
  19211. SELLING_PLAN_OPTION2_REQUIRED_AS_DEFINED_ON_PARENT_GROUP
  19212. # Selling plan's option3 is required because option3 exists.
  19213. SELLING_PLAN_OPTION3_REQUIRED_AS_DEFINED_ON_PARENT_GROUP
  19214. # Selling plans can't have more than 2 pricing policies.
  19215. SELLING_PLAN_PRICING_POLICIES_LIMIT
  19216. # The selling plan list provided contains 1 or more invalid IDs.
  19217. RESOURCE_LIST_CONTAINS_INVALID_IDS
  19218. # Product variant does not exist.
  19219. PRODUCT_VARIANT_DOES_NOT_EXIST
  19220. # Product does not exist.
  19221. PRODUCT_DOES_NOT_EXIST
  19222. # Selling plan group does not exist.
  19223. GROUP_DOES_NOT_EXIST
  19224. # Selling plan group could not be deleted.
  19225. GROUP_COULD_NOT_BE_DELETED
  19226. # Could not add the resource to the selling plan group.
  19227. ERROR_ADDING_RESOURCE_TO_GROUP
  19228. # Missing delivery policy.
  19229. SELLING_PLAN_DELIVERY_POLICY_MISSING
  19230. # Missing billing policy.
  19231. SELLING_PLAN_BILLING_POLICY_MISSING
  19232. # Selling plan does not exist.
  19233. PLAN_DOES_NOT_EXIST
  19234. # Selling plan ID must be specified to update.
  19235. PLAN_ID_MUST_BE_SPECIFIED_TO_UPDATE
  19236. # Only one billing policy type can be defined.
  19237. ONLY_NEED_ONE_BILLING_POLICY_TYPE
  19238. # Only one delivery policy type can be defined.
  19239. ONLY_NEED_ONE_DELIVERY_POLICY_TYPE
  19240. # Only one pricing policy type can be defined.
  19241. ONLY_NEED_ONE_PRICING_POLICY_TYPE
  19242. # Billing and delivery policy types must be the same.
  19243. BILLING_AND_DELIVERY_POLICY_TYPES_MUST_BE_THE_SAME
  19244. # Only one pricing policy adjustment value type can be defined.
  19245. ONLY_NEED_ONE_PRICING_POLICY_VALUE
  19246. # Pricing policy's adjustment value and adjustment type must match.
  19247. PRICING_POLICY_ADJUSTMENT_VALUE_AND_TYPE_MUST_MATCH
  19248. # Cannot have multiple selling plans with the same name.
  19249. SELLING_PLAN_DUPLICATE_NAME
  19250. # Cannot have multiple selling plans with the same options.
  19251. SELLING_PLAN_DUPLICATE_OPTIONS
  19252. # A fixed selling plan can have at most one pricing policy.
  19253. SELLING_PLAN_FIXED_PRICING_POLICIES_LIMIT
  19254. # A fixed billing policy's remaining_balance_charge_exact_time can't be blank when the remaining_balance_charge_trigger is EXACT_TIME.
  19255. REMAINING_BALANCE_CHARGE_EXACT_TIME_REQUIRED
  19256. # A fixed billing policy's checkout charge value and type must match.
  19257. CHECKOUT_CHARGE_VALUE_AND_TYPE_MUST_MATCH
  19258. # A fixed billing policy's checkout charge can have at most one value.
  19259. ONLY_NEED_ONE_CHECKOUT_CHARGE_VALUE
  19260. # A fixed billing policy's remaining_balance_charge_exact_time must not be present when the remaining_balance_charge_trigger isn't EXACT_TIME.
  19261. REMAINING_BALANCE_CHARGE_EXACT_TIME_NOT_ALLOWED
  19262. # A fixed billing policy's remaining_balance_charge_time_after_checkout must be present and greater than zero when the remaining_balance_charge_trigger is TIME_AFTER_CHECKOUT.
  19263. REMAINING_BALANCE_CHARGE_TIME_AFTER_CHECKOUT_MUST_BE_GREATER_THAN_ZERO
  19264. # A fixed billing policy's remaining_balance_charge_trigger must be NO_REMAINING_BALANCE when the checkout_charge_type is PERCENTAGE and checkout_charge_value is 100.
  19265. REMAINING_BALANCE_CHARGE_TRIGGER_ON_FULL_CHECKOUT
  19266. # A fixed billing policy's remaining_balance_charge_trigger can't be NO_REMAINING_BALANCE when the checkout_charge_type is PERCENTAGE and checkout_charge_value is less than 100.
  19267. REMAINING_BALANCE_CHARGE_TRIGGER_NO_REMAINING_BALANCE_ON_PARTIAL_PERCENTAGE_CHECKOUT_CHARGE
  19268. # A fixed billing policy's remaining_balance_charge_trigger can't be NO_REMAINING_BALANCE when the checkout_charge_type is PRICE.
  19269. REMAINING_BALANCE_CHARGE_TRIGGER_NO_REMAINING_BALANCE_ON_PRICE_CHECKOUT_CHARGE
  19270. # A fixed billing policy's fulfillment_exact_time can't be blank when the fulfillment_trigger is EXACT_TIME.
  19271. FULFILLMENT_EXACT_TIME_REQUIRED
  19272. # A fixed billing policy's fulfillment_exact_time must not be present when the fulfillment_trigger isn't EXACT_TIME.
  19273. FULFILLMENT_EXACT_TIME_NOT_ALLOWED
  19274. # A fixed delivery policy's anchors must not be present when the fulfillment_trigger isn't ANCHOR.
  19275. SELLING_PLAN_ANCHORS_NOT_ALLOWED
  19276. # A fixed delivery policy's anchors must be present when the fulfillment_trigger is ANCHOR.
  19277. SELLING_PLAN_ANCHORS_REQUIRED
  19278. # A selling plan can't have both fixed and recurring billing policies.
  19279. ONLY_ONE_OF_FIXED_OR_RECURRING_BILLING
  19280. # A selling plan can't have both fixed and recurring delivery policies.
  19281. ONLY_ONE_OF_FIXED_OR_RECURRING_DELIVERY
  19282. }
  19283. # Possible error codes that can be returned by ProductVariantsBulkCreateUserError.
  19284. enum ProductVariantsBulkCreateUserErrorCode {
  19285. # Product does not exist.
  19286. PRODUCT_DOES_NOT_EXIST
  19287. # On create, this key cannot be used.
  19288. NO_KEY_ON_CREATE
  19289. # Variant already exists.
  19290. VARIANT_ALREADY_EXISTS
  19291. # Variant price must be greater than or equal to zero.
  19292. GREATER_THAN_OR_EQUAL_TO
  19293. # Variant options are not enough.
  19294. NEED_TO_ADD_OPTION_VALUES
  19295. # Variant options are more than the product options.
  19296. OPTION_VALUES_FOR_NUMBER_OF_UNKNOWN_OPTIONS
  19297. # Inventory locations cannot exceed the allowed resource limit or 10.
  19298. TOO_MANY_INVENTORY_LOCATIONS
  19299. # You reached the limit of available SKUs in your current plan.
  19300. SUBSCRIPTION_VIOLATION
  19301. # Variant options already exist. Please change the variant option(s).
  19302. VARIANT_ALREADY_EXISTS_CHANGE_OPTION_VALUE
  19303. # Quantity could not be set. The location was not found.
  19304. TRACKED_VARIANT_LOCATION_NOT_FOUND
  19305. # Input must be for this product.
  19306. MUST_BE_FOR_THIS_PRODUCT
  19307. # Input is not defined for this shop.
  19308. NOT_DEFINED_FOR_SHOP
  19309. # Invalid input detected.
  19310. INVALID
  19311. # Price cannot take a negative value.
  19312. NEGATIVE_PRICE_VALUE
  19313. }
  19314. # Possible error codes that can be returned by ProductVariantsBulkDeleteUserError.
  19315. enum ProductVariantsBulkDeleteUserErrorCode {
  19316. # Product does not exist.
  19317. PRODUCT_DOES_NOT_EXIST
  19318. # Cannot delete default variant.
  19319. CANNOT_DELETE_LAST_VARIANT
  19320. # The variant does not exist.
  19321. AT_LEAST_ONE_VARIANT_DOES_NOT_BELONG_TO_THE_PRODUCT
  19322. }
  19323. # Possible error codes that can be returned by ProductVariantsBulkReorderUserError.
  19324. enum ProductVariantsBulkReorderUserErrorCode {
  19325. # Product does not exist.
  19326. PRODUCT_DOES_NOT_EXIST
  19327. # Product variant does not exist.
  19328. MISSING_VARIANT
  19329. # Product variant position cannot be zero or negative number.
  19330. INVALID_POSITION
  19331. # Product variant IDs must be unique.
  19332. DUPLICATED_VARIANT_ID
  19333. }
  19334. # Possible error codes that can be returned by ProductVariantsBulkUpdateUserError.
  19335. enum ProductVariantsBulkUpdateUserErrorCode {
  19336. # Product does not exist.
  19337. PRODUCT_DOES_NOT_EXIST
  19338. # Product variant is missing ID attribute.
  19339. PRODUCT_VARIANT_ID_MISSING
  19340. # Product variant does not exist.
  19341. PRODUCT_VARIANT_DOES_NOT_EXIST
  19342. # Inventory quantities cannot be updated with variants API.
  19343. NO_INVENTORY_QUANTITIES_ON_VARIANTS_UPDATE
  19344. # The variant already exists.
  19345. VARIANT_ALREADY_EXISTS
  19346. # The price of the variant must be greater than or equal to zero.
  19347. GREATER_THAN_OR_EQUAL_TO
  19348. # Variant options are not enough.
  19349. NEED_TO_ADD_OPTION_VALUES
  19350. # Variant options are more than the product options.
  19351. OPTION_VALUES_FOR_NUMBER_OF_UNKNOWN_OPTIONS
  19352. # You reached the limit of available SKUs in your current plan.
  19353. SUBSCRIPTION_VIOLATION
  19354. # Inventory quantities cannot be provided during update.
  19355. NO_INVENTORY_QUANTITES_DURING_UPDATE
  19356. # Price cannot take a negative value.
  19357. NEGATIVE_PRICE_VALUE
  19358. }
  19359. # The state of the resource feedback.
  19360. enum ResourceFeedbackState {
  19361. # No action required from merchant.
  19362. ACCEPTED
  19363. # The merchant needs to resolve an issue with the resource.
  19364. REQUIRES_ACTION
  19365. }
  19366. # ISO 639-1 language codes supported by Shopify.
  19367. enum LanguageCode {
  19368. # Afrikaans
  19369. AF
  19370. # Akan
  19371. AK
  19372. # Amharic
  19373. AM
  19374. # Arabic
  19375. AR
  19376. # Assamese
  19377. AS
  19378. # Azerbaijani
  19379. AZ
  19380. # Belarusian
  19381. BE
  19382. # Bulgarian
  19383. BG
  19384. # Bambara
  19385. BM
  19386. # Bangla
  19387. BN
  19388. # Tibetan
  19389. BO
  19390. # Breton
  19391. BR
  19392. # Bosnian
  19393. BS
  19394. # Catalan
  19395. CA
  19396. # Chechen
  19397. CE
  19398. # Czech
  19399. CS
  19400. # Church Slavic
  19401. CU
  19402. # Welsh
  19403. CY
  19404. # Danish
  19405. DA
  19406. # German
  19407. DE
  19408. # Dzongkha
  19409. DZ
  19410. # Ewe
  19411. EE
  19412. # Greek
  19413. EL
  19414. # English
  19415. EN
  19416. # Esperanto
  19417. EO
  19418. # Spanish
  19419. ES
  19420. # Estonian
  19421. ET
  19422. # Basque
  19423. EU
  19424. # Persian
  19425. FA
  19426. # Fulah
  19427. FF
  19428. # Finnish
  19429. FI
  19430. # Faroese
  19431. FO
  19432. # French
  19433. FR
  19434. # Western Frisian
  19435. FY
  19436. # Irish
  19437. GA
  19438. # Scottish Gaelic
  19439. GD
  19440. # Galician
  19441. GL
  19442. # Gujarati
  19443. GU
  19444. # Manx
  19445. GV
  19446. # Hausa
  19447. HA
  19448. # Hebrew
  19449. HE
  19450. # Hindi
  19451. HI
  19452. # Croatian
  19453. HR
  19454. # Hungarian
  19455. HU
  19456. # Armenian
  19457. HY
  19458. # Interlingua
  19459. IA
  19460. # Indonesian
  19461. ID
  19462. # Igbo
  19463. IG
  19464. # Sichuan Yi
  19465. II
  19466. # Icelandic
  19467. IS
  19468. # Italian
  19469. IT
  19470. # Japanese
  19471. JA
  19472. # Javanese
  19473. JV
  19474. # Georgian.
  19475. KA
  19476. # Kikuyu.
  19477. KI
  19478. # Kazakh.
  19479. KK
  19480. # Kalaallisut.
  19481. KL
  19482. # Khmer.
  19483. KM
  19484. # Kannada.
  19485. KN
  19486. # Korean.
  19487. KO
  19488. # Kashmiri.
  19489. KS
  19490. # Kurdish.
  19491. KU
  19492. # Cornish.
  19493. KW
  19494. # Kyrgyz.
  19495. KY
  19496. # Luxembourgish.
  19497. LB
  19498. # Ganda.
  19499. LG
  19500. # Lingala.
  19501. LN
  19502. # Lao.
  19503. LO
  19504. # Lithuanian.
  19505. LT
  19506. # Luba-Katanga.
  19507. LU
  19508. # Latvian.
  19509. LV
  19510. # Malagasy.
  19511. MG
  19512. # Māori.
  19513. MI
  19514. # Macedonian.
  19515. MK
  19516. # Malayalam.
  19517. ML
  19518. # Mongolian.
  19519. MN
  19520. # Marathi.
  19521. MR
  19522. # Malay.
  19523. MS
  19524. # Maltese.
  19525. MT
  19526. # Burmese.
  19527. MY
  19528. # Norwegian (Bokmål).
  19529. NB
  19530. # North Ndebele.
  19531. ND
  19532. # Nepali.
  19533. NE
  19534. # Dutch.
  19535. NL
  19536. # Norwegian Nynorsk.
  19537. NN
  19538. # Norwegian.
  19539. NO
  19540. # Oromo.
  19541. OM
  19542. # Odia.
  19543. OR
  19544. # Ossetic.
  19545. OS
  19546. # Punjabi.
  19547. PA
  19548. # Polish.
  19549. PL
  19550. # Pashto.
  19551. PS
  19552. # Portuguese (Brazil).
  19553. PT_BR
  19554. # Portuguese (Portugal).
  19555. PT_PT
  19556. QU
  19557. # Quechua.
  19558. # Romansh.
  19559. RM
  19560. # Rundi.
  19561. RN
  19562. # Romanian.
  19563. RO
  19564. # Russian.
  19565. RU
  19566. # Kinyarwanda.
  19567. RW
  19568. # Sindhi.
  19569. SD
  19570. # Northern Sami.
  19571. SE
  19572. # Sango.
  19573. SG
  19574. # Sinhala.
  19575. SI
  19576. # Slovak.
  19577. SK
  19578. # Slovenian.
  19579. SL
  19580. # Shona.
  19581. SN
  19582. # Somali.
  19583. SO
  19584. # Albanian.
  19585. SQ
  19586. # Serbian.
  19587. SR
  19588. # Sundanese.
  19589. SU
  19590. # Swedish.
  19591. SV
  19592. # Swahili.
  19593. SW
  19594. # Tamil.
  19595. TA
  19596. # Telugu.
  19597. TE
  19598. # Tajik.
  19599. TG
  19600. # Thai.
  19601. TH
  19602. # Tigrinya.
  19603. TI
  19604. # Turkmen.
  19605. TK
  19606. # Tongan.
  19607. TO
  19608. # Turkish.
  19609. TR
  19610. # Tatar.
  19611. TT
  19612. # Uyghur.
  19613. UG
  19614. # Ukrainian.
  19615. UK
  19616. # Urdu.
  19617. UR
  19618. # Uzbek.
  19619. UZ
  19620. # Vietnamese.
  19621. VI
  19622. # Wolof.
  19623. WO
  19624. # Xhosa.
  19625. XH
  19626. # Yiddish.
  19627. YI
  19628. # Yoruba.
  19629. YO
  19630. # Chinese (Simplified).
  19631. ZH_CN
  19632. # Chinese (Traditional).
  19633. ZH_TW
  19634. # Zulu.
  19635. ZU
  19636. # Chinese.
  19637. ZH
  19638. # Portuguese.
  19639. PT
  19640. # Volapük.
  19641. VO
  19642. }
  19643. # The code designating a country/region, which generally follows ISO 3166-1 alpha-2 guidelines.
  19644. # If a territory doesn't have a country code value in the CountryCode enum, then it might be considered a subdivision
  19645. # of another country. For example, the territories associated with Spain are represented by the country code ES,
  19646. # and the territories associated with the United States of America are represented by the country code US.
  19647. enum CountryCode {
  19648. # Afghanistan.
  19649. AF
  19650. # Åland Islands.
  19651. AX
  19652. # Albania.
  19653. AL
  19654. # Algeria.
  19655. DZ
  19656. # Andorra.
  19657. AD
  19658. # Angola.
  19659. AO
  19660. # Anguilla.
  19661. AI
  19662. # Antigua & Barbuda.
  19663. AG
  19664. # Argentina.
  19665. AR
  19666. # Armenia.
  19667. AM
  19668. # Aruba.
  19669. AW
  19670. # Ascension Island.
  19671. AC
  19672. # Australia.
  19673. AU
  19674. # Austria.
  19675. AT
  19676. # Azerbaijan.
  19677. AZ
  19678. # Bahamas.
  19679. BS
  19680. # Bahrain.
  19681. BH
  19682. # Bangladesh.
  19683. BD
  19684. # Barbados.
  19685. BB
  19686. # Belarus.
  19687. BY
  19688. # Belgium.
  19689. BE
  19690. # Belize.
  19691. BZ
  19692. # Benin.
  19693. BJ
  19694. # Bermuda.
  19695. BM
  19696. # Bhutan.
  19697. BT
  19698. # Bolivia.
  19699. BO
  19700. # Bosnia & Herzegovina.
  19701. BA
  19702. # Botswana.
  19703. BW
  19704. # Bouvet Island.
  19705. BV
  19706. # Brazil.
  19707. BR
  19708. # British Indian Ocean Territory.
  19709. IO
  19710. # Brunei.
  19711. BN
  19712. # Bulgaria.
  19713. BG
  19714. # Burkina Faso.
  19715. BF
  19716. # Burundi.
  19717. BI
  19718. # Cambodia.
  19719. KH
  19720. # Canada.
  19721. CA
  19722. # Cape Verde.
  19723. CV
  19724. # Caribbean Netherlands.
  19725. BQ
  19726. # Cayman Islands.
  19727. KY
  19728. # Central African Republic.
  19729. CF
  19730. # Chad.
  19731. TD
  19732. # Chile.
  19733. CL
  19734. # China.
  19735. CN
  19736. # Christmas Island.
  19737. CX
  19738. # Cocos (Keeling) Islands.
  19739. CC
  19740. # Colombia.
  19741. CO
  19742. # Comoros.
  19743. KM
  19744. # Congo - Brazzaville.
  19745. CG
  19746. # Congo - Kinshasa.
  19747. CD
  19748. # Cook Islands.
  19749. CK
  19750. # Costa Rica.
  19751. CR
  19752. # Croatia.
  19753. HR
  19754. # Cuba.
  19755. CU
  19756. # Curaçao.
  19757. CW
  19758. # Cyprus.
  19759. CY
  19760. # Czechia.
  19761. CZ
  19762. # Côte d’Ivoire.
  19763. CI
  19764. # Denmark.
  19765. DK
  19766. # Djibouti.
  19767. DJ
  19768. # Dominica.
  19769. DM
  19770. # Dominican Republic.
  19771. DO
  19772. # Ecuador.
  19773. EC
  19774. # Egypt.
  19775. EG
  19776. # El Salvador.
  19777. SV
  19778. # Equatorial Guinea.
  19779. GQ
  19780. # Eritrea.
  19781. ER
  19782. # Estonia.
  19783. EE
  19784. # Eswatini.
  19785. SZ
  19786. # Ethiopia.
  19787. ET
  19788. # Falkland Islands.
  19789. FK
  19790. # Faroe Islands.
  19791. FO
  19792. # Fiji.
  19793. FJ
  19794. # Finland.
  19795. FI
  19796. # France.
  19797. FR
  19798. # French Guiana.
  19799. GF
  19800. # French Polynesia.
  19801. PF
  19802. # French Southern Territories.
  19803. TF
  19804. # Gabon.
  19805. GA
  19806. # Gambia.
  19807. GM
  19808. # Georgia.
  19809. GE
  19810. # Germany.
  19811. DE
  19812. # Ghana.
  19813. GH
  19814. # Gibraltar.
  19815. GI
  19816. # Greece.
  19817. GR
  19818. # Greenland.
  19819. GL
  19820. # Grenada.
  19821. GD
  19822. # Guadeloupe.
  19823. GP
  19824. # Guatemala.
  19825. GT
  19826. # Guernsey.
  19827. GG
  19828. # Guinea.
  19829. GN
  19830. # Guinea-Bissau.
  19831. GW
  19832. # Guyana.
  19833. GY
  19834. # Haiti.
  19835. HT
  19836. # Heard & McDonald Islands.
  19837. HM
  19838. # Vatican City.
  19839. VA
  19840. # Honduras.
  19841. HN
  19842. # Hong Kong SAR.
  19843. HK
  19844. # Hungary.
  19845. HU
  19846. # Iceland.
  19847. IS
  19848. # India.
  19849. IN
  19850. # Indonesia.
  19851. ID
  19852. # Iran.
  19853. IR
  19854. # Iraq.
  19855. IQ
  19856. # Ireland.
  19857. IE
  19858. # Isle of Man.
  19859. IM
  19860. # Israel.
  19861. IL
  19862. # Italy.
  19863. IT
  19864. # Jamaica.
  19865. JM
  19866. # Japan.
  19867. JP
  19868. # Jersey.
  19869. JE
  19870. # Jordan.
  19871. JO
  19872. # Kazakhstan.
  19873. KZ
  19874. # Kenya.
  19875. KE
  19876. # Kiribati.
  19877. KI
  19878. # North Korea.
  19879. KP
  19880. # Kosovo.
  19881. XK
  19882. # Kuwait.
  19883. KW
  19884. # Kyrgyzstan.
  19885. KG
  19886. # Laos.
  19887. LA
  19888. # Latvia.
  19889. LV
  19890. # Lebanon.
  19891. LB
  19892. # Lesotho.
  19893. LS
  19894. # Liberia.
  19895. LR
  19896. # Libya.
  19897. LY
  19898. # Liechtenstein.
  19899. LI
  19900. # Lithuania.
  19901. LT
  19902. # Luxembourg.
  19903. LU
  19904. # Macao SAR.
  19905. MO
  19906. # Madagascar.
  19907. MG
  19908. # Malawi.
  19909. MW
  19910. # Malaysia.
  19911. MY
  19912. # Maldives.
  19913. MV
  19914. # Mali.
  19915. ML
  19916. # Malta.
  19917. MT
  19918. # Martinique.
  19919. MQ
  19920. # Mauritania.
  19921. MR
  19922. # Mauritius.
  19923. MU
  19924. # Mayotte.
  19925. YT
  19926. # Mexico.
  19927. MX
  19928. # Moldova.
  19929. MD
  19930. # Monaco.
  19931. MC
  19932. # Mongolia.
  19933. MN
  19934. # Montenegro.
  19935. ME
  19936. # Montserrat.
  19937. MS
  19938. # Morocco.
  19939. MA
  19940. # Mozambique.
  19941. MZ
  19942. # Myanmar (Burma).
  19943. MM
  19944. # Namibia.
  19945. NA
  19946. # Nauru.
  19947. NR
  19948. # Nepal.
  19949. NP
  19950. # Netherlands.
  19951. NL
  19952. # Netherlands Antilles.
  19953. AN
  19954. # New Caledonia.
  19955. NC
  19956. # New Zealand.
  19957. NZ
  19958. # Nicaragua.
  19959. NI
  19960. # Niger.
  19961. NE
  19962. # Nigeria.
  19963. NG
  19964. # Niue.
  19965. NU
  19966. # Norfolk Island.
  19967. NF
  19968. # North Macedonia.
  19969. MK
  19970. # Norway.
  19971. NO
  19972. # Oman.
  19973. OM
  19974. # Pakistan.
  19975. PK
  19976. # Palestinian Territories.
  19977. PS
  19978. # Panama.
  19979. PA
  19980. # Papua New Guinea.
  19981. PG
  19982. # Paraguay.
  19983. PY
  19984. # Peru.
  19985. PE
  19986. # Philippines.
  19987. PH
  19988. # Pitcairn Islands.
  19989. PN
  19990. # Poland.
  19991. PL
  19992. # Portugal.
  19993. PT
  19994. # Qatar.
  19995. QA
  19996. # Cameroon.
  19997. CM
  19998. # Réunion.
  19999. RE
  20000. # Romania.
  20001. RO
  20002. # Russia.
  20003. RU
  20004. # Rwanda.
  20005. RW
  20006. # St. Barthélemy.
  20007. BL
  20008. # St. Helena.
  20009. SH
  20010. # St. Kitts & Nevis.
  20011. KN
  20012. # St. Lucia.
  20013. LC
  20014. # St. Martin.
  20015. MF
  20016. # St. Pierre & Miquelon.
  20017. PM
  20018. # Samoa.
  20019. WS
  20020. # San Marino.
  20021. SM
  20022. # São Tomé & Príncipe.
  20023. ST
  20024. # Saudi Arabia.
  20025. SA
  20026. # Senegal.
  20027. SN
  20028. # Serbia.
  20029. RS
  20030. # Seychelles.
  20031. SC
  20032. # Sierra Leone.
  20033. SL
  20034. # Singapore.
  20035. SG
  20036. # Sint Maarten.
  20037. SX
  20038. # Slovakia.
  20039. SK
  20040. # Slovenia.
  20041. SI
  20042. # Solomon Islands.
  20043. SB
  20044. # Somalia.
  20045. SO
  20046. # South Africa.
  20047. ZA
  20048. # South Georgia & South Sandwich Islands.
  20049. GS
  20050. # South Korea.
  20051. KR
  20052. # South Sudan.
  20053. SS
  20054. # Spain.
  20055. ES
  20056. # Sri Lanka.
  20057. LK
  20058. # St. Vincent & Grenadines.
  20059. VC
  20060. # Sudan.
  20061. SD
  20062. # Suriname.
  20063. SR
  20064. # Svalbard & Jan Mayen.
  20065. SJ
  20066. # Sweden.
  20067. SE
  20068. # Switzerland.
  20069. CH
  20070. # Syria.
  20071. SY
  20072. # Taiwan.
  20073. TW
  20074. # Tajikistan.
  20075. TJ
  20076. # Tanzania.
  20077. TZ
  20078. # Thailand.
  20079. TH
  20080. # Timor-Leste.
  20081. TL
  20082. # Togo.
  20083. TG
  20084. # Tokelau.
  20085. TK
  20086. # Tonga.
  20087. TO
  20088. # Trinidad & Tobago.
  20089. TT
  20090. # Tristan da Cunha.
  20091. TA
  20092. # Tunisia.
  20093. TN
  20094. # Turkey.
  20095. TR
  20096. # Turkmenistan.
  20097. TM
  20098. # Turks & Caicos Islands.
  20099. TC
  20100. # Tuvalu.
  20101. TV
  20102. # Uganda.
  20103. UG
  20104. # Ukraine.
  20105. UA
  20106. # United Arab Emirates.
  20107. AE
  20108. # United Kingdom.
  20109. GB
  20110. # United States.
  20111. US
  20112. # U.S. Outlying Islands.
  20113. UM
  20114. # Uruguay.
  20115. UY
  20116. # Uzbekistan.
  20117. UZ
  20118. # Vanuatu.
  20119. VU
  20120. # Venezuela.
  20121. VE
  20122. # Vietnam.
  20123. VN
  20124. # British Virgin Islands.
  20125. VG
  20126. # Wallis & Futuna.
  20127. WF
  20128. # Western Sahara.
  20129. EH
  20130. # Yemen.
  20131. YE
  20132. # Zambia.
  20133. ZM
  20134. # Zimbabwe.
  20135. ZW
  20136. # Unknown Region.
  20137. ZZ
  20138. }
  20139. # The three-letter currency codes that represent the world currencies used in stores. These include standard ISO 4217 codes, legacy codes, and non-standard codes.
  20140. enum CurrencyCode {
  20141. # United Arab Emirates Dirham (AED).
  20142. AED
  20143. # Afghan Afghani (AFN).
  20144. AFN
  20145. # Albanian Lek (ALL).
  20146. ALL
  20147. # Armenian Dram (AMD).
  20148. AMD
  20149. # Netherlands Antillean Guilder.
  20150. ANG
  20151. # Angolan Kwanza (AOA).
  20152. AOA
  20153. # Argentine Pesos (ARS).
  20154. ARS
  20155. # Australian Dollars (AUD).
  20156. AUD
  20157. # Aruban Florin (AWG).
  20158. AWG
  20159. # Azerbaijani Manat (AZN).
  20160. AZN
  20161. # Bosnia and Herzegovina Convertible Mark (BAM).
  20162. BAM
  20163. # Barbadian Dollar (BBD).
  20164. BBD
  20165. # Bangladesh Taka (BDT).
  20166. BDT
  20167. # Bulgarian Lev (BGN).
  20168. BGN
  20169. # Bahraini Dinar (BHD).
  20170. BHD
  20171. # Burundian Franc (BIF).
  20172. BIF
  20173. # Bermudian Dollar (BMD).
  20174. BMD
  20175. # Brunei Dollar (BND).
  20176. BND
  20177. # Bolivian Boliviano (BOB).
  20178. BOB
  20179. # Brazilian Real (BRL).
  20180. BRL
  20181. # Bahamian Dollar (BSD).
  20182. BSD
  20183. # Bhutanese Ngultrum (BTN).
  20184. BTN
  20185. # Botswana Pula (BWP).
  20186. BWP
  20187. # Belarusian Ruble (BYN).
  20188. BYN
  20189. # Belize Dollar (BZD).
  20190. BZD
  20191. # Canadian Dollars (CAD).
  20192. CAD
  20193. # Congolese franc (CDF).
  20194. CDF
  20195. # Swiss Francs (CHF).
  20196. CHF
  20197. # Chilean Peso (CLP).
  20198. CLP
  20199. # Chinese Yuan Renminbi (CNY).
  20200. CNY
  20201. # Colombian Peso (COP).
  20202. COP
  20203. # Costa Rican Colones (CRC).
  20204. CRC
  20205. # Cape Verdean escudo (CVE).
  20206. CVE
  20207. # Czech Koruny (CZK).
  20208. CZK
  20209. # Djiboutian Franc (DJF).
  20210. DJF
  20211. # Danish Kroner (DKK).
  20212. DKK
  20213. # Dominican Peso (DOP).
  20214. DOP
  20215. # Algerian Dinar (DZD).
  20216. DZD
  20217. # Egyptian Pound (EGP).
  20218. EGP
  20219. # Eritrean Nakfa (ERN).
  20220. ERN
  20221. # Ethiopian Birr (ETB).
  20222. ETB
  20223. # Euro (EUR).
  20224. EUR
  20225. # Fijian Dollars (FJD).
  20226. FJD
  20227. # Falkland Islands Pounds (FKP).
  20228. FKP
  20229. # United Kingdom Pounds (GBP).
  20230. GBP
  20231. # Georgian Lari (GEL).
  20232. GEL
  20233. # Ghanaian Cedi (GHS).
  20234. GHS
  20235. # Gibraltar Pounds (GIP).
  20236. GIP
  20237. # Gambian Dalasi (GMD).
  20238. GMD
  20239. # Guinean Franc (GNF).
  20240. GNF
  20241. # Guatemalan Quetzal (GTQ).
  20242. GTQ
  20243. # Guyanese Dollar (GYD).
  20244. GYD
  20245. # Hong Kong Dollars (HKD).
  20246. HKD
  20247. # Honduran Lempira (HNL).
  20248. HNL
  20249. # Croatian Kuna (HRK).
  20250. HRK
  20251. # Haitian Gourde (HTG).
  20252. HTG
  20253. # Hungarian Forint (HUF).
  20254. HUF
  20255. # Indonesian Rupiah (IDR).
  20256. IDR
  20257. # Israeli New Shekel (NIS).
  20258. ILS
  20259. # Indian Rupees (INR).
  20260. INR
  20261. # Iraqi Dinar (IQD).
  20262. IQD
  20263. # Iranian Rial (IRR).
  20264. IRR
  20265. # Icelandic Kronur (ISK).
  20266. ISK
  20267. # Jersey Pound.
  20268. JEP
  20269. # Jamaican Dollars (JMD).
  20270. JMD
  20271. # Jordanian Dinar (JOD).
  20272. JOD
  20273. # Japanese Yen (JPY).
  20274. JPY
  20275. # Kenyan Shilling (KES).
  20276. KES
  20277. # Kyrgyzstani Som (KGS).
  20278. KGS
  20279. # Cambodian Riel.
  20280. KHR
  20281. # Kiribati Dollar (KID).
  20282. KID
  20283. # Comorian Franc (KMF).
  20284. KMF
  20285. # South Korean Won (KRW).
  20286. KRW
  20287. # Kuwaiti Dinar (KWD).
  20288. KWD
  20289. # Cayman Dollars (KYD).
  20290. KYD
  20291. # Kazakhstani Tenge (KZT).
  20292. KZT
  20293. # Laotian Kip (LAK).
  20294. LAK
  20295. # Lebanese Pounds (LBP).
  20296. LBP
  20297. # Sri Lankan Rupees (LKR).
  20298. LKR
  20299. # Liberian Dollar (LRD).
  20300. LRD
  20301. # Lesotho Loti (LSL).
  20302. LSL
  20303. # Lithuanian Litai (LTL).
  20304. LTL
  20305. # Latvian Lati (LVL).
  20306. LVL
  20307. # Libyan Dinar (LYD).
  20308. LYD
  20309. # Moroccan Dirham.
  20310. MAD
  20311. # Moldovan Leu (MDL).
  20312. MDL
  20313. # Malagasy Ariary (MGA).
  20314. MGA
  20315. # Macedonia Denar (MKD).
  20316. MKD
  20317. # Burmese Kyat (MMK).
  20318. MMK
  20319. # Mongolian Tugrik.
  20320. MNT
  20321. # Macanese Pataca (MOP).
  20322. MOP
  20323. # Mauritanian Ouguiya (MRU).
  20324. MRU
  20325. # Mauritian Rupee (MUR).
  20326. MUR
  20327. # Maldivian Rufiyaa (MVR).
  20328. MVR
  20329. # Malawian Kwacha (MWK).
  20330. MWK
  20331. # Mexican Pesos (MXN).
  20332. MXN
  20333. # Malaysian Ringgits (MYR).
  20334. MYR
  20335. # Mozambican Metical.
  20336. MZN
  20337. # Namibian Dollar.
  20338. NAD
  20339. # Nigerian Naira (NGN).
  20340. NGN
  20341. # Nicaraguan Córdoba (NIO).
  20342. NIO
  20343. # Norwegian Kroner (NOK).
  20344. NOK
  20345. # Nepalese Rupee (NPR).
  20346. NPR
  20347. # New Zealand Dollars (NZD).
  20348. NZD
  20349. # Omani Rial (OMR).
  20350. OMR
  20351. # Panamian Balboa (PAB).
  20352. PAB
  20353. # Peruvian Nuevo Sol (PEN).
  20354. PEN
  20355. # Papua New Guinean Kina (PGK).
  20356. PGK
  20357. # Philippine Peso (PHP).
  20358. PHP
  20359. # Pakistani Rupee (PKR).
  20360. PKR
  20361. # Polish Zlotych (PLN).
  20362. PLN
  20363. # Paraguayan Guarani (PYG).
  20364. PYG
  20365. # Qatari Rial (QAR).
  20366. QAR
  20367. # Romanian Lei (RON).
  20368. RON
  20369. # Serbian dinar (RSD).
  20370. RSD
  20371. # Russian Rubles (RUB).
  20372. RUB
  20373. # Rwandan Franc (RWF).
  20374. RWF
  20375. # Saudi Riyal (SAR).
  20376. SAR
  20377. # Solomon Islands Dollar (SBD).
  20378. SBD
  20379. # Seychellois Rupee (SCR).
  20380. SCR
  20381. # Sudanese Pound (SDG).
  20382. SDG
  20383. # Swedish Kronor (SEK).
  20384. SEK
  20385. # Singapore Dollars (SGD).
  20386. SGD
  20387. # Saint Helena Pounds (SHP).
  20388. SHP
  20389. # Sierra Leonean Leone (SLL).
  20390. SLL
  20391. # Somali Shilling (SOS).
  20392. SOS
  20393. # Surinamese Dollar (SRD).
  20394. SRD
  20395. # South Sudanese Pound (SSP).
  20396. SSP
  20397. # Sao Tome And Principe Dobra (STN).
  20398. STN
  20399. # Syrian Pound (SYP).
  20400. SYP
  20401. # Swazi Lilangeni (SZL).
  20402. SZL
  20403. # Thai baht (THB).
  20404. THB
  20405. # Tajikistani Somoni (TJS).
  20406. TJS
  20407. # Turkmenistani Manat (TMT).
  20408. TMT
  20409. # Tunisian Dinar (TND).
  20410. TND
  20411. # Tongan Pa'anga (TOP).
  20412. TOP
  20413. # Turkish Lira (TRY).
  20414. TRY
  20415. # Trinidad and Tobago Dollars (TTD).
  20416. TTD
  20417. # Taiwan Dollars (TWD).
  20418. TWD
  20419. # Tanzanian Shilling (TZS).
  20420. TZS
  20421. # Ukrainian Hryvnia (UAH).
  20422. UAH
  20423. # Ugandan Shilling (UGX).
  20424. UGX
  20425. # United States Dollars (USD).
  20426. USD
  20427. # Uruguayan Pesos (UYU).
  20428. UYU
  20429. # Uzbekistan som (UZS).
  20430. UZS
  20431. # Venezuelan Bolivares (VED).
  20432. VED
  20433. # Venezuelan Bolivares (VES).
  20434. VES
  20435. # Vietnamese đồng (VND).
  20436. VND
  20437. # Vanuatu Vatu (VUV).
  20438. VUV
  20439. # Samoan Tala (WST).
  20440. WST
  20441. # Central African CFA Franc (XAF).
  20442. XAF
  20443. # East Caribbean Dollar (XCD).
  20444. XCD
  20445. # West African CFA franc (XOF).
  20446. XOF
  20447. # CFP Franc (XPF).
  20448. XPF
  20449. # Unrecognized currency.
  20450. XXX
  20451. # Yemeni Rial (YER).
  20452. YER
  20453. # South African Rand (ZAR).
  20454. ZAR
  20455. # Zambian Kwacha (ZMW).
  20456. ZMW
  20457. # Belarusian Ruble (BYR).
  20458. BYR @deprecated
  20459. }
  20460. # Units of measurement for weight.
  20461. enum WeightUnit {
  20462. # 1 kilogram equals 1000 grams.
  20463. KILOGRAMS
  20464. # Metric system unit of mass.
  20465. GRAMS
  20466. # 1 pound equals 16 ounces.
  20467. POUNDS
  20468. # Imperial system unit of mass.
  20469. OUNCES
  20470. }
  20471. `, BuiltIn: false},
  20472. {Name: "../../../ext/error.graphql", Input: `# Represents an error in the input of a mutation.
  20473. type UserError implements DisplayableError {
  20474. # The path to the input field that caused the error.
  20475. field: [String!]
  20476. # The error message.
  20477. message: String!
  20478. }
  20479. # A file error. This typically occurs when there is an issue with the file itself causing it to fail validation.
  20480. # Check the file before attempting to upload again.
  20481. type FileError {
  20482. # Code representing the type of error.
  20483. code: FileErrorCode!
  20484. # Additional details regarding the error.
  20485. details: String
  20486. # Translated error message.
  20487. message: String!
  20488. }
  20489. # Represents a media error. This typically occurs when there is an issue with the media itself causing it to fail validation.
  20490. # Check the media before attempting to upload again.
  20491. type MediaError {
  20492. # Code representing the type of error.
  20493. code: MediaErrorCode!
  20494. # Additional details regarding the error.
  20495. details: String
  20496. # Translated error message.
  20497. message: String!
  20498. }
  20499. # Represents an error that happens during execution of a Media query or mutation.
  20500. type MediaUserError implements DisplayableError {
  20501. # The error code.
  20502. code: MediaUserErrorCode
  20503. # The path to the input field that caused the error.
  20504. field: [String!]
  20505. # The error message.
  20506. message: String!
  20507. }
  20508. # Represents a media warning. This occurs when there is a non-blocking concern regarding your media.
  20509. # Consider reviewing your media to ensure it is correct and its parameters are as expected.
  20510. type MediaWarning {
  20511. # The code representing the type of warning.
  20512. code: MediaWarningCode!
  20513. # Translated warning message.
  20514. message: String
  20515. }
  20516. # An error that occurs during the execution of ProductChangeStatus.
  20517. type ProductChangeStatusUserError implements DisplayableError {
  20518. # The error code.
  20519. code: ProductChangeStatusUserErrorCode
  20520. # The path to the input field that caused the error.
  20521. field: [String!]
  20522. # The error message.
  20523. message: String!
  20524. }
  20525. # Represents a selling plan group custom error.
  20526. type SellingPlanGroupUserError implements DisplayableError {
  20527. # The error code.
  20528. code: SellingPlanGroupUserErrorCode
  20529. # The path to the input field that caused the error.
  20530. field: [String!]
  20531. # The error message.
  20532. message: String!
  20533. }
  20534. # Error codes for failed product variant bulk create mutations.
  20535. type ProductVariantsBulkCreateUserError implements DisplayableError {
  20536. # The error code.
  20537. code: ProductVariantsBulkCreateUserErrorCode
  20538. # The path to the input field that caused the error.
  20539. field: [String!]
  20540. # The error message.
  20541. message: String!
  20542. }
  20543. # Error codes for failed bulk variant delete mutations.
  20544. type ProductVariantsBulkDeleteUserError implements DisplayableError {
  20545. # The error code.
  20546. code: ProductVariantsBulkDeleteUserErrorCode
  20547. # The path to the input field that caused the error.
  20548. field: [String!]
  20549. # The error message.
  20550. message: String!
  20551. }
  20552. # Error codes for failed bulk product variants reorder operation.
  20553. type ProductVariantsBulkReorderUserError implements DisplayableError {
  20554. # The error code.
  20555. code: ProductVariantsBulkReorderUserErrorCode
  20556. # The path to the input field that caused the error.
  20557. field: [String!]
  20558. # The error message.
  20559. message: String!
  20560. }
  20561. # Error codes for failed variant bulk update mutations.
  20562. type ProductVariantsBulkUpdateUserError implements DisplayableError {
  20563. # The error code.
  20564. code: ProductVariantsBulkUpdateUserErrorCode
  20565. # The path to the input field that caused the error.
  20566. field: [String!]
  20567. # The error message.
  20568. message: String!
  20569. }
  20570. `, BuiltIn: false},
  20571. {Name: "../../../ext/event.graphql", Input: `# Basic events chronicle resource activities such as the creation of an article, the fulfillment of an order, or
  20572. # the addition of a product.
  20573. type BasicEvent implements Event&Node {
  20574. # The name of the app that created the event.
  20575. appTitle: String
  20576. # Whether the event was created by an app.
  20577. attributeToApp: Boolean!
  20578. # Whether the event was caused by an admin user.
  20579. attributeToUser: Boolean!
  20580. # The date and time when the event was created.
  20581. createdAt: DateTime!
  20582. # Whether the event is critical.
  20583. criticalAlert: Boolean!
  20584. # A globally-unique identifier.
  20585. id: ID!
  20586. # Human readable text that describes the event.
  20587. message: FormattedString!
  20588. }
  20589. `, BuiltIn: false},
  20590. {Name: "../../../ext/fulfillment.graphql", Input: `# Represents a fulfillment service.
  20591. # A fulfillment service is a third-party service that prepares and ships orders on behalf of the store owner.
  20592. type FulfillmentService {
  20593. # The callback URL that the fulfillment service has registered for requests. The following considerations apply:
  20594. #
  20595. # Shopify queries the <code>callback_url/fetch_tracking_numbers</code> endpoint to retrieve tracking numbers
  20596. # for orders, if inventoryManagement is set to true.
  20597. # Shopify queries the <code>callback_url/fetch_stock</code> endpoint to retrieve inventory levels,
  20598. # if trackingSupport is set to true.
  20599. # Shopify uses the <code>callback_url/fulfillment_order_notification</code> endpoint to send
  20600. # fulfillment and cancellation requests,
  20601. # if the fulfillment service has opted in to the fulfillment order based workflow for managing fulfillments
  20602. # (fulfillmentOrdersOptIn is set to true).
  20603. callbackUrl: URL
  20604. # Whether the fulfillment service uses the fulfillment order based workflow for managing fulfillments.
  20605. fulfillmentOrdersOptIn: Boolean!
  20606. # Human-readable unique identifier for this fulfillment service.
  20607. handle: String!
  20608. # The ID of the fulfillment service.
  20609. id: ID!
  20610. # Whether the fulfillment service tracks product inventory and provides updates to Shopify.
  20611. inventoryManagement: Boolean!
  20612. # Location associated with the fulfillment service.
  20613. location: Location
  20614. # Whether the fulfillment service can stock inventory alongside other locations.
  20615. permitsSkuSharing: Boolean!
  20616. # Whether the fulfillment service supports local deliveries.
  20617. productBased: Boolean!
  20618. # The name of the fulfillment service as seen by merchants.
  20619. serviceName: String!
  20620. # Type associated with the fulfillment service.
  20621. type: FulfillmentServiceType!
  20622. }
  20623. # The quantities of an inventory item that are related to a specific location.
  20624. type InventoryLevel implements Node {
  20625. # The quantity of inventory items that are available at the inventory level's associated location.
  20626. available: Int!
  20627. # Whether the inventory items associated with the inventory level can be deactivated.
  20628. canDeactivate: Boolean!
  20629. # The date and time when the inventory level was created.
  20630. createdAt: DateTime!
  20631. # Describes either the impact of deactivating the inventory level, or why the inventory level can't be deactivated.
  20632. deactivationAlert: String
  20633. # Describes, in HTML with embedded URLs, either the impact of deactivating the inventory level or why the inventory level can't be deactivated.
  20634. deactivationAlertHtml: FormattedString
  20635. # A globally-unique identifier.
  20636. id: ID!
  20637. # The quantity of inventory items that are going to the inventory level's associated location.
  20638. incoming: Int!
  20639. # Inventory item associated with the inventory level.
  20640. item: InventoryItem!
  20641. # The location associated with the inventory level.
  20642. location: Location!
  20643. # The date and time when the inventory level was updated.
  20644. updatedAt: DateTime!
  20645. }
  20646. # Represents a fulfillment. In Shopify, a fulfillment represents a shipment of one or more items in an order.
  20647. # When an order has been completely fulfilled, it means that all the items that are included in the order have been sent to the customer.
  20648. # There can be more than one fulfillment for an order.
  20649. type Fulfillment implements LegacyInteroperability&Node {
  20650. # The date and time when the fulfillment was created.
  20651. createdAt: DateTime!
  20652. # The date that this fulfillment was delivered.
  20653. deliveredAt: DateTime
  20654. # Human readable display status for this fulfillment.
  20655. displayStatus: FulfillmentDisplayStatus
  20656. # The estimated date that this fulfillment will arrive.
  20657. estimatedDeliveryAt: DateTime
  20658. # The history of events associated with this fulfillment.
  20659. events(
  20660. first: Int
  20661. after: String
  20662. last: Int
  20663. before: String
  20664. reverse: Boolean = false
  20665. sortKey: FulfillmentEventSortKeys = HAPPENED_AT
  20666. ): FulfillmentEventConnection!
  20667. # List of the fulfillment's line items.
  20668. fulfillmentLineItems(
  20669. first: Int
  20670. after: String
  20671. last: Int
  20672. before: String
  20673. reverse: Boolean = false
  20674. ): FulfillmentLineItemConnection!
  20675. # A paginated list of fulfillment orders for the fulfillment.
  20676. fulfillmentOrders(
  20677. first: Int
  20678. after: String
  20679. last: Int
  20680. before: String
  20681. reverse: Boolean = false
  20682. ): FulfillmentOrderConnection!
  20683. # A globally-unique identifier.
  20684. id: ID!
  20685. # The date and time when the fulfillment went into transit.
  20686. inTransitAt: DateTime
  20687. # The ID of the corresponding resource in the REST Admin API.
  20688. legacyResourceId: UnsignedInt64!
  20689. # The location that the fulfillment was processed at.
  20690. location: Location
  20691. # Human readable reference identifier for this fulfillment.
  20692. name: String!
  20693. # The order for which the fulfillment was created.
  20694. order: Order!
  20695. # The address at which the fulfillment occurred.
  20696. # Typically this is the address of the warehouse or fulfillment center.
  20697. originAddress: FulfillmentOriginAddress
  20698. # Whether any of the line items in the fulfillment require shipping.
  20699. requiresShipping: Boolean!
  20700. # Fulfillment service associated with the fulfillment.
  20701. service: FulfillmentService
  20702. # The status of the fulfillment.
  20703. status: FulfillmentStatus!
  20704. # Sum of all line item quantities for the fulfillment.
  20705. totalQuantity: Int!
  20706. # Tracking information associated with the fulfillment,
  20707. # such as the tracking company, tracking number, and tracking URL.
  20708. trackingInfo(first: Int): [FulfillmentTrackingInfo!]!
  20709. # The date and time when the fulfillment was last modified.
  20710. updatedAt: DateTime!
  20711. }
  20712. # Represents the tracking information for a fulfillment.
  20713. type FulfillmentTrackingInfo {
  20714. # The name of the tracking company.
  20715. company: String
  20716. # The tracking number of the fulfillment.
  20717. number: String
  20718. # The URLs to track the fulfillment.
  20719. url: URL
  20720. }
  20721. # Represents a fulfillment order. In Shopify, a fulfillment order represents a group of one or more items
  20722. # in an order that are to be fulfilled from the same location. There can be more than one fulfillment order
  20723. # for an order at a given location. Fulfillment orders are created automatically when an order is created.
  20724. # To learn how to build a fulfillment app, refer to Fulfillment apps.
  20725. type FulfillmentOrder implements Node {
  20726. # The fulfillment order's assigned location. This is the location where the fulfillment is expected to happen.
  20727. #
  20728. # The fulfillment order's assigned location might change in the following cases:
  20729. #
  20730. # The fulfillment order has been entirely moved to a new location. For example, the fulfillmentOrderMove mutation has been called, and you see the original fulfillment order in the movedFulfillmentOrder field within the mutation's response.
  20731. # Work on the fulfillment order has not yet begun, which means that the fulfillment order has the
  20732. # OPEN,
  20733. # SCHEDULED, or
  20734. # ON_HOLD
  20735. # status, and the shop's location properties might be undergoing edits (for example, in the Shopify admin).
  20736. assignedLocation: FulfillmentOrderAssignedLocation!
  20737. # Delivery method of this fulfillment order.
  20738. deliveryMethod: DeliveryMethod
  20739. # The destination where the items should be sent.
  20740. destination: FulfillmentOrderDestination
  20741. # The date and time at which the fulfillment order will be fulfillable.
  20742. # When this date and time is reached, the scheduled fulfillment order is automatically transitioned to open.
  20743. # For example, the fulfill_at date for a subscription order might be the 1st of each month, a pre-order fulfill_at date would be nil, and a standard order fulfill_at date would be the order creation date.
  20744. fulfillAt: DateTime
  20745. # The latest date and time by which all items in the fulfillment order need to be fulfilled.
  20746. fulfillBy: DateTime
  20747. # The fulfillment holds applied on the fulfillment order.
  20748. fulfillmentHolds: [FulfillmentHold!]!
  20749. # A list of fulfillments for the fulfillment order.
  20750. fulfillments(
  20751. first: Int
  20752. after: String
  20753. last: Int
  20754. before: String
  20755. reverse: Boolean = false
  20756. ): FulfillmentConnection!
  20757. # A globally-unique identifier.
  20758. id: ID!
  20759. # The duties delivery method of this fulfillment order.
  20760. internationalDuties: FulfillmentOrderInternationalDuties
  20761. # A list of the fulfillment order's line items.
  20762. lineItems(
  20763. first: Int
  20764. after: String
  20765. last: Int
  20766. before: String
  20767. reverse: Boolean = false
  20768. ): FulfillmentOrderLineItemConnection!
  20769. # A list of locations that the fulfillment order can potentially move to.
  20770. locationsForMove(
  20771. first: Int
  20772. after: String
  20773. last: Int
  20774. before: String
  20775. reverse: Boolean = false
  20776. ): FulfillmentOrderLocationForMoveConnection!
  20777. # A list of requests sent by the merchant to the fulfillment service for this fulfillment order.
  20778. merchantRequests(
  20779. kind: FulfillmentOrderMerchantRequestKind
  20780. first: Int
  20781. after: String
  20782. last: Int
  20783. before: String
  20784. reverse: Boolean = false
  20785. ): FulfillmentOrderMerchantRequestConnection!
  20786. # The order that's associated with the fulfillment order.
  20787. order: Order!
  20788. # The request status of the fulfillment order.
  20789. requestStatus: FulfillmentOrderRequestStatus!
  20790. # The status of the fulfillment order.
  20791. status: FulfillmentOrderStatus!
  20792. # The actions that can be performed on this fulfillment order.
  20793. supportedActions: [FulfillmentOrderSupportedAction!]!
  20794. }
  20795. # The fulfillment order's assigned location. This is the location where the fulfillment is expected to happen.
  20796. #
  20797. # The fulfillment order's assigned location might change in the following cases:
  20798. #
  20799. # The fulfillment order has been entirely moved to a new location. For example, the fulfillmentOrderMove mutation has been called, and you see the original fulfillment order in the movedFulfillmentOrder field within the mutation's response.
  20800. #
  20801. # Work on the fulfillment order has not yet begun, which means that the fulfillment order has the
  20802. # OPEN,
  20803. # SCHEDULED, or
  20804. # ON_HOLD
  20805. # status, and the shop's location properties might be undergoing edits (for example, in the Shopify admin).
  20806. #
  20807. # If the fulfillmentOrderMove mutation has moved the fulfillment order's line items to a new location,
  20808. # but hasn't moved the fulfillment order instance itself, then the original fulfillment order's assigned location
  20809. # doesn't change.
  20810. # This happens if the fulfillment order is being split during the move, or if all line items can be moved
  20811. # to an existing fulfillment order at a new location.
  20812. #
  20813. # Once the fulfillment order has been taken into work or canceled,
  20814. # which means that the fulfillment order has the
  20815. # IN_PROGRESS,
  20816. # CLOSED,
  20817. # CANCELLED, or
  20818. # INCOMPLETE
  20819. # status, FulfillmentOrderAssignedLocation acts as a snapshot of the shop's location content.
  20820. # Up-to-date shop's location data may be queried through location connection.
  20821. type FulfillmentOrderAssignedLocation {
  20822. # The first line of the address for the location.
  20823. address1: String
  20824. # The second line of the address for the location.
  20825. address2: String
  20826. # The city of the location.
  20827. city: String
  20828. # The two-letter country code of the location.
  20829. countryCode: CountryCode!
  20830. # The location where the fulfillment is expected to happen. This value might be different from
  20831. # FulfillmentOrderAssignedLocation if the location's attributes were updated
  20832. # after the fulfillment order was taken into work of canceled.
  20833. location: Location
  20834. # The name of the location.
  20835. name: String!
  20836. # The phone number of the location.
  20837. phone: String
  20838. # The province of the location.
  20839. province: String
  20840. # The ZIP code of the location.
  20841. zip: String
  20842. }
  20843. # Represents the goods available to be shipped to a customer.
  20844. # It holds essential information about the goods, including SKU and whether it is tracked.
  20845. type InventoryItem implements LegacyInteroperability&Node {
  20846. # The ISO 3166-1 alpha-2 country code of where the item originated from.
  20847. countryCodeOfOrigin: CountryCode
  20848. # A list of country specific harmonized system codes.
  20849. countryHarmonizedSystemCodes(
  20850. first: Int
  20851. after: String
  20852. last: Int
  20853. before: String
  20854. reverse: Boolean = false
  20855. ): CountryHarmonizedSystemCodeConnection!
  20856. # The date and time when the inventory item was created.
  20857. createdAt: DateTime!
  20858. # The number of inventory items that share the same SKU with this item.
  20859. duplicateSkuCount: Int!
  20860. # The harmonized system code of the item.
  20861. harmonizedSystemCode: String
  20862. # A globally-unique identifier.
  20863. id: ID!
  20864. # The URL that points to the inventory history for the item.
  20865. inventoryHistoryUrl: URL
  20866. # The inventory item's quantities at the specified location.
  20867. inventoryLevel(locationId: ID!): InventoryLevel
  20868. # A list of the inventory item's quantities for each location that the inventory item can be stocked at.
  20869. inventoryLevels(
  20870. first: Int
  20871. after: String
  20872. last: Int
  20873. before: String
  20874. reverse: Boolean = false
  20875. query: String
  20876. ): InventoryLevelConnection!
  20877. # The ID of the corresponding resource in the REST Admin API.
  20878. legacyResourceId: UnsignedInt64!
  20879. # The number of locations where this inventory item is stocked.
  20880. locationsCount: Int!
  20881. # The ISO 3166-2 alpha-2 province code of where the item originated from.
  20882. provinceCodeOfOrigin: String
  20883. # Whether the inventory item requires shipping.
  20884. requiresShipping: Boolean!
  20885. # Inventory item SKU.
  20886. sku: String
  20887. # Whether inventory levels are tracked for the item.
  20888. tracked: Boolean!
  20889. # Whether the value of the tracked field for the inventory item can be changed.
  20890. trackedEditable: EditableProperty!
  20891. # Unit cost associated with the inventory item.
  20892. unitCost: MoneyV2
  20893. # The date and time when the inventory item was updated.
  20894. updatedAt: DateTime!
  20895. # The variant that owns this inventory item.
  20896. variant: ProductVariant!
  20897. }
  20898. # The address at which the fulfillment occurred.
  20899. # Typically this is the address of the warehouse or fulfillment center.
  20900. type FulfillmentOriginAddress {
  20901. # The street address of the fulfillment location.
  20902. address1: String
  20903. # The second line of the address. Typically the number of the apartment, suite, or unit.
  20904. address2: String
  20905. # The city in which the fulfillment location is located.
  20906. city: String
  20907. # The country code of the fulfillment location.
  20908. countryCode: String!
  20909. # The province code of the fulfillment location.
  20910. provinceCode: String
  20911. # The zip code of the fulfillment location.
  20912. zip: String
  20913. }
  20914. # Represents the destination where the items should be sent upon fulfillment.
  20915. type FulfillmentOrderDestination implements Node {
  20916. # The first line of the address of the destination.
  20917. address1: String
  20918. # The second line of the address of the destination.
  20919. address2: String
  20920. # The city of the destination.
  20921. city: String
  20922. # The company of the destination.
  20923. company: String
  20924. # The two-letter country code of the destination.
  20925. countryCode: CountryCode
  20926. # The email of the customer at the destination.
  20927. email: String
  20928. # The first name of the customer at the destination.
  20929. firstName: String
  20930. # A globally-unique identifier.
  20931. id: ID!
  20932. # The last name of the customer at the destination.
  20933. lastName: String
  20934. # The phone number of the customer at the destination.
  20935. phone: String
  20936. # The province of the destination.
  20937. province: String
  20938. # The ZIP code of the destination.
  20939. zip: String
  20940. }
  20941. # A fulfillment hold currently applied on a fulfillment order.
  20942. type FulfillmentHold {
  20943. # The reason for the fulfillment hold.
  20944. reason: FulfillmentHoldReason!
  20945. # Additional information about the fulfillment hold reason.
  20946. reasonNotes: String
  20947. }
  20948. # The international duties relevant to a fulfillment order.
  20949. type FulfillmentOrderInternationalDuties {
  20950. # The method of duties payment. Example values: DDP, DAP.
  20951. incoterm: String!
  20952. }
  20953. # One of the actions that the fulfillment order supports in its current state.
  20954. type FulfillmentOrderSupportedAction {
  20955. # The action value.
  20956. action: FulfillmentOrderAction!
  20957. # The external URL to be used to initiate the fulfillment process outside Shopify.
  20958. # Applicable only when the action value is EXTERNAL.
  20959. externalUrl: URL
  20960. }
  20961. # The fulfillment event that describes the fulfilllment status at a particular time.
  20962. type FulfillmentEvent implements Node {
  20963. # The time at which this fulfillment event happened.
  20964. happenedAt: DateTime!
  20965. # A globally-unique identifier.
  20966. id: ID!
  20967. # The status of this fulfillment event.
  20968. status: FulfillmentEventStatus!
  20969. }
  20970. # Represents a line item from an order that's included in a fulfillment.
  20971. type FulfillmentLineItem implements Node {
  20972. # The total price after discounts are applied in shop and presentment currencies.
  20973. discountedTotalSet: MoneyBag!
  20974. # A globally-unique identifier.
  20975. id: ID!
  20976. # The associated order's line item.
  20977. lineItem: LineItem!
  20978. # The total price before discounts are applied in shop and presentment currencies.
  20979. originalTotalSet: MoneyBag!
  20980. # Number of line items in the fulfillment.
  20981. quantity: Int
  20982. }
  20983. # Associates an order line item with quantities requiring fulfillment from the respective fulfillment order.
  20984. type FulfillmentOrderLineItem implements Node {
  20985. # A globally-unique identifier.
  20986. id: ID!
  20987. # The associated order line item.
  20988. lineItem: LineItem!
  20989. # The number of units remaining to be fulfilled.
  20990. remainingQuantity: Int!
  20991. # The total number of units to be fulfilled.
  20992. totalQuantity: Int!
  20993. # Warning messages for a fulfillment order line item.
  20994. warnings: [FulfillmentOrderLineItemWarning!]!
  20995. }
  20996. # A fulfillment order line item warning. For example, a warning about why a fulfillment request was rejected.
  20997. type FulfillmentOrderLineItemWarning {
  20998. # The description of warning.
  20999. description: String
  21000. # The title of warning.
  21001. title: String
  21002. }
  21003. # A location that a fulfillment order can potentially move to.
  21004. type FulfillmentOrderLocationForMove {
  21005. # The location being considered as the fulfillment order's new assigned location.
  21006. location: Location!
  21007. # A human-readable string with the reason why the fulfillment order, or some of its line items, can't be
  21008. # moved to the location.
  21009. message: String
  21010. # Whether the fulfillment order can be moved to the location.
  21011. movable: Boolean!
  21012. }
  21013. # Represents a request made by the merchant to a fulfillment service for a fulfillment order.
  21014. type FulfillmentOrderMerchantRequest implements Node {
  21015. # A globally-unique identifier.
  21016. id: ID!
  21017. # The kind of request made.
  21018. kind: FulfillmentOrderMerchantRequestKind!
  21019. # The optional message that the merchant included in the request.
  21020. message: String
  21021. # Additional options requested by the merchant. These depend on the kind of the request.
  21022. # For example, for a FULFILLMENT_REQUEST, one option is notify_customer, which indicates whether the
  21023. # merchant intends to notify the customer upon fulfillment. The fulfillment service can then set
  21024. # notifyCustomer when making calls to FulfillmentCreateV2.
  21025. requestOptions: JSON
  21026. # The response from the fulfillment service.
  21027. responseData: JSON
  21028. # The timestamp when the request was made.
  21029. sentAt: DateTime!
  21030. }
  21031. `, BuiltIn: false},
  21032. {Name: "../../../ext/gqlgen.graphql", Input: `directive @goModel(
  21033. model: String
  21034. models: [String!]
  21035. ) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION
  21036. directive @goField(
  21037. forceResolver: Boolean
  21038. name: String
  21039. ) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
  21040. directive @goTag(
  21041. key: String!
  21042. value: String
  21043. ) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
  21044. `, BuiltIn: false},
  21045. {Name: "../../../ext/in_context.graphql", Input: `directive @inContext(
  21046. language: LanguageCode,
  21047. country: CountryCode
  21048. ) on QUERY | MUTATION | OBJECT
  21049. `, BuiltIn: false},
  21050. {Name: "../../../ext/interface.graphql", Input: `# An object with an ID field to support global identification, in accordance with the
  21051. # Relay specification.
  21052. # This interface is used by the node
  21053. # and nodes queries.
  21054. interface Node {
  21055. # A globally-unique identifier.
  21056. id: ID!
  21057. }
  21058. # The subject line of a comment event.
  21059. interface CommentEventSubject {
  21060. # A globally-unique identifier.
  21061. id: ID!
  21062. # Whether the timeline subject has a timeline comment. If true, then a timeline comment exists.
  21063. hasTimelineComment: Boolean!
  21064. }
  21065. # Represents an object that has a list of events.
  21066. interface HasEvents {
  21067. # The paginated list of events associated with the host subject.
  21068. events(
  21069. first: Int
  21070. after: String
  21071. last: Int
  21072. before: String
  21073. reverse: Boolean = false
  21074. sortKey: EventSortKeys = ID
  21075. query: String
  21076. ): EventConnection!
  21077. }
  21078. # Events chronicle resource activities such as the creation of an article, the fulfillment of an order, or the
  21079. # addition of a product.
  21080. interface Event {
  21081. # The name of the app that created the event.
  21082. appTitle: String
  21083. # Whether the event was created by an app.
  21084. attributeToApp: Boolean!
  21085. # Whether the event was caused by an admin user.
  21086. attributeToUser: Boolean!
  21087. # The date and time when the event was created.
  21088. createdAt: DateTime!
  21089. # Whether the event is critical.
  21090. criticalAlert: Boolean!
  21091. # A globally-unique identifier.
  21092. id: ID!
  21093. # Human readable text that describes the event.
  21094. message: FormattedString!
  21095. }
  21096. # Represents information about the metafields associated to the specified resource.
  21097. interface HasMetafields {
  21098. # Returns a metafield by namespace and key that belongs to the resource.
  21099. metafield(namespace: String!key: String!): Metafield
  21100. # List of metafields that belong to the resource.
  21101. metafields(
  21102. namespace: String
  21103. first: Int
  21104. after: String
  21105. last: Int
  21106. before: String
  21107. reverse: Boolean = false
  21108. ): MetafieldConnection!
  21109. # Returns a private metafield by namespace and key that belongs to the resource.
  21110. privateMetafield(namespace: String!key: String!): PrivateMetafield
  21111. # List of private metafields that belong to the resource.
  21112. privateMetafields(
  21113. namespace: String
  21114. first: Int
  21115. after: String
  21116. last: Int
  21117. before: String
  21118. reverse: Boolean = false
  21119. ): PrivateMetafieldConnection!
  21120. }
  21121. # Interoperability metadata for types that directly correspond to a REST Admin API resource.
  21122. # For example, on the Product type, LegacyInteroperability returns metadata for the corresponding Product object in the REST Admin API.
  21123. interface LegacyInteroperability {
  21124. # The ID of the corresponding resource in the REST Admin API.
  21125. legacyResourceId: UnsignedInt64!
  21126. }
  21127. # Localization extensions associated with the specified resource. For example, the tax id for government invoice.
  21128. interface HasLocalizationExtensions {
  21129. # List of localization extensions for the resource.
  21130. localizationExtensions(
  21131. countryCodes: [CountryCode!]
  21132. purposes: [LocalizationExtensionPurpose!]
  21133. first: Int
  21134. after: String
  21135. last: Int
  21136. before: String
  21137. reverse: Boolean = false
  21138. ): LocalizationExtensionConnection!
  21139. }
  21140. # Resources that metafield definitions can be applied to.
  21141. interface HasMetafieldDefinitions {
  21142. # List of metafield definitions.
  21143. metafieldDefinitions(
  21144. namespace: String
  21145. pinnedStatus: MetafieldDefinitionPinnedStatus = ANY
  21146. first: Int
  21147. after: String
  21148. last: Int
  21149. before: String
  21150. reverse: Boolean = false
  21151. sortKey: MetafieldDefinitionSortKeys = ID
  21152. query: String
  21153. ): MetafieldDefinitionConnection!
  21154. }
  21155. # A default cursor that you can use in queries to paginate your results. Each edge in a connection can
  21156. # return a cursor, which is a reference to the edge's position in the connection. You can use an edge's cursor as
  21157. # the starting point to retrieve the nodes before or after it in a connection.
  21158. #
  21159. # To learn more about using cursor-based pagination, refer to
  21160. # Paginating results with GraphQL.
  21161. interface Navigable {
  21162. # A default cursor that returns the single next record, sorted ascending by ID.
  21163. defaultCursor: String!
  21164. }
  21165. # Discount applications capture the intentions of a discount source at
  21166. # the time of application on an order's line items or shipping lines.
  21167. #
  21168. # Discount applications don't represent the actual final amount discounted on a line (line item or shipping line). The actual amount discounted on a line is represented by the DiscountAllocation object.
  21169. interface DiscountApplication {
  21170. # The method by which the discount's value is applied to its entitled items.
  21171. allocationMethod: DiscountApplicationAllocationMethod!
  21172. # An ordered index that can be used to identify the discount application and indicate the precedence
  21173. # of the discount application for calculations.
  21174. index: Int!
  21175. # How the discount amount is distributed on the discounted lines.
  21176. targetSelection: DiscountApplicationTargetSelection!
  21177. # Whether the discount is applied on line items or shipping lines.
  21178. targetType: DiscountApplicationTargetType!
  21179. # The value of the discount application.
  21180. value: PricingValue!
  21181. }
  21182. # Published translations associated with the resource.
  21183. interface HasPublishedTranslations {
  21184. # The translations associated with the resource.
  21185. translations(locale: String!marketId: ID): [PublishedTranslation!]!
  21186. }
  21187. # Represents an error in the input of a mutation.
  21188. interface DisplayableError {
  21189. # The path to the input field that caused the error.
  21190. field: [String!]
  21191. # The error message.
  21192. message: String!
  21193. }
  21194. # Services and features purchased once by the store.
  21195. interface AppPurchase {
  21196. # The date and time when the app purchase occurred.
  21197. createdAt: DateTime!
  21198. # The name of the app purchase.
  21199. name: String!
  21200. # The amount to be charged to the store for the app purchase.
  21201. price: MoneyV2!
  21202. # The status of the app purchase.
  21203. status: AppPurchaseStatus!
  21204. # Whether the app purchase is a test transaction.
  21205. test: Boolean!
  21206. }
  21207. # Represents a resource that can be published to a channel.
  21208. # A publishable resource can be either a Product or Collection.
  21209. interface Publishable {
  21210. # The number of publications a resource is published to without feedback errors.
  21211. availablePublicationCount: Int!
  21212. # The number of publications a resource is published on.
  21213. publicationCount(onlyPublished: Boolean = true): Int!
  21214. # Check to see whether the resource is published to the calling app's publication.
  21215. publishedOnCurrentPublication: Boolean!
  21216. # Check to see whether the resource is published to a given publication.
  21217. publishedOnPublication(publicationId: ID!): Boolean!
  21218. # The list of resources that are published to a publication.
  21219. resourcePublications(
  21220. onlyPublished: Boolean = true
  21221. first: Int
  21222. after: String
  21223. last: Int
  21224. before: String
  21225. reverse: Boolean = false
  21226. ): ResourcePublicationConnection!
  21227. # The list of resources that are either published or staged to be published to a publication.
  21228. resourcePublicationsV2(
  21229. onlyPublished: Boolean = true
  21230. first: Int
  21231. after: String
  21232. last: Int
  21233. before: String
  21234. reverse: Boolean = false
  21235. ): ResourcePublicationV2Connection!
  21236. # The list of publications that the resource is not published to.
  21237. unpublishedPublications(
  21238. first: Int
  21239. after: String
  21240. last: Int
  21241. before: String
  21242. reverse: Boolean = false
  21243. ): PublicationConnection!
  21244. }
  21245. # Represents a session preceding an order, often used for building a timeline of events leading to an order.
  21246. interface CustomerMoment {
  21247. # The date and time when the customer's session occurred.
  21248. occurredAt: DateTime!
  21249. }
  21250. # Represents subscription contract common fields.
  21251. interface SubscriptionContractBase {
  21252. # The subscription app that the subscription contract is registered to.
  21253. app: App
  21254. # The URL of the subscription contract page on the subscription app.
  21255. appAdminUrl: URL
  21256. # The currency that's used for the subscription contract.
  21257. currencyCode: CurrencyCode!
  21258. # A list of the custom attributes to be added to the generated orders.
  21259. customAttributes: [Attribute!]!
  21260. # The customer to whom the subscription contract belongs.
  21261. customer: Customer
  21262. # The customer payment method that's used for the subscription contract.
  21263. customerPaymentMethod(showRevoked: Boolean = false): CustomerPaymentMethod
  21264. # The delivery method for each billing of the subscription contract.
  21265. deliveryMethod: SubscriptionDeliveryMethod
  21266. # The delivery price for each billing of the subscription contract.
  21267. deliveryPrice: MoneyV2!
  21268. # The list of subscription discounts associated with the subscription contract.
  21269. discounts(
  21270. first: Int
  21271. after: String
  21272. last: Int
  21273. before: String
  21274. reverse: Boolean = false
  21275. ): SubscriptionManualDiscountConnection!
  21276. # The number of lines associated with the subscription contract.
  21277. lineCount: Int!
  21278. # The list of subscription lines associated with the subscription contract.
  21279. lines(
  21280. first: Int
  21281. after: String
  21282. last: Int
  21283. before: String
  21284. reverse: Boolean = false
  21285. ): SubscriptionLineConnection!
  21286. # The note field that will be applied to the generated orders.
  21287. note: String
  21288. # A list of the subscription contract's orders.
  21289. orders(
  21290. first: Int
  21291. after: String
  21292. last: Int
  21293. before: String
  21294. reverse: Boolean = false
  21295. ): OrderConnection!
  21296. # The date and time when the subscription contract was updated.
  21297. updatedAt: DateTime!
  21298. }
  21299. # A contract between a merchant and a customer to do business.
  21300. # Shopify creates a sales agreement whenever an order is placed, edited, or refunded.
  21301. # A sales agreement has one or more sales records, which provide itemized details about the initial agreement or subsequent changes made to the order.
  21302. # For example, when a customer places an order, Shopify creates the order, generates a sales agreement, and records a sale for each line item purchased in the order.
  21303. # A sale record is specific to a type of order line. Order lines can represent different things such as a purchased product, a tip added by a customer, shipping costs collected at checkout, and more.
  21304. interface SalesAgreement {
  21305. # The application that created the agreement.
  21306. app: App
  21307. # The date and time at which the agreement occured.
  21308. happenedAt: DateTime!
  21309. # The unique identifier for the agreement.
  21310. id: ID!
  21311. # The reason the agremeent was created.
  21312. reason: OrderActionType!
  21313. # The sales associated with the agreement.
  21314. sales(
  21315. first: Int
  21316. after: String
  21317. last: Int
  21318. before: String
  21319. reverse: Boolean = false
  21320. ): SaleConnection!
  21321. # The staff member associated with the agreement.
  21322. user: StaffMember
  21323. }
  21324. # An individual sale record associated with a sales agreement.
  21325. # Every money value in an order's sales data is represented in the currency's smallest unit.
  21326. # When amounts are divided across multiple line items, such as taxes or order discounts, the amounts might not divide evenly across all of the line items on the order.
  21327. # To address this, the remaining currency units that couldn't be divided evenly are allocated one at a time, starting with the first line item, until they are all accounted for.
  21328. # In aggregate, the values sum up correctly. In isolation, one line item might have a different tax or discount amount than another line item of the same price, before taxes and discounts.
  21329. # This is because the amount could not be divided evenly across the items. The allocation of currency units across line items is immutable.
  21330. # After they are allocated, currency units are never reallocated or redistributed among the line items.
  21331. interface Sale {
  21332. # The type of order action that the sale represents.
  21333. actionType: SaleActionType!
  21334. # The unique identifier for the sale.
  21335. id: ID!
  21336. # The line type assocated with the sale.
  21337. lineType: SaleLineType!
  21338. # The number of units either ordered or intended to be returned.
  21339. quantity: Int
  21340. # All individual taxes associated with the sale.
  21341. taxes: [SaleTax!]!
  21342. # The total sale amount after taxes and discounts.
  21343. totalAmount: MoneyBag!
  21344. # The total discounts allocated to the sale after taxes.
  21345. totalDiscountAmountAfterTaxes: MoneyBag!
  21346. # The total discounts allocated to the sale before taxes.
  21347. totalDiscountAmountBeforeTaxes: MoneyBag!
  21348. # The total amount of taxes for the sale.
  21349. totalTaxAmount: MoneyBag!
  21350. }
  21351. # A geographic region which comprises a market.
  21352. interface MarketRegion {
  21353. # A globally-unique identifier.
  21354. id: ID!
  21355. # The name of the region.
  21356. name: String!
  21357. }
  21358. # Online Store preview URL of the object.
  21359. interface OnlineStorePreviewable {
  21360. # The online store preview URL.
  21361. onlineStorePreviewUrl: URL
  21362. }
  21363. # Represents a media interface.
  21364. interface Media {
  21365. # A word or phrase to share the nature or contents of a media.
  21366. alt: String
  21367. # The media content type.
  21368. mediaContentType: MediaContentType!
  21369. # Any errors which have occurred on the media.
  21370. mediaErrors: [MediaError!]!
  21371. # The warnings attached to the media.
  21372. mediaWarnings: [MediaWarning!]!
  21373. # The preview image for the media.
  21374. preview: MediaPreviewImage
  21375. # Current status of the media.
  21376. status: MediaStatus!
  21377. }
  21378. # A file interface.
  21379. interface File {
  21380. # A word or phrase to describe the contents or the function of a file.
  21381. alt: String
  21382. # The date and time (ISO 8601 format) when the file was created.
  21383. createdAt: DateTime!
  21384. # Any errors that have occurred on the file.
  21385. fileErrors: [FileError!]!
  21386. # The status of the file.
  21387. fileStatus: FileStatus!
  21388. # The preview image for the media.
  21389. preview: MediaPreviewImage
  21390. }
  21391. # Represents selling plan pricing policy common fields.
  21392. interface SellingPlanPricingPolicyBase {
  21393. # The price adjustment type.
  21394. adjustmentType: SellingPlanPricingPolicyAdjustmentType!
  21395. # The price adjustment value.
  21396. adjustmentValue: SellingPlanPricingPolicyAdjustmentValue!
  21397. }
  21398. `, BuiltIn: false},
  21399. {Name: "../../../ext/localization.graphql", Input: `# Represents the value captured by a localization extension. Localization extensions are additional fields required by certain countries on international orders.
  21400. # For example, some countries require additional fields for customs information or tax identification numbers.
  21401. type LocalizationExtension {
  21402. # Country ISO 3166-1 alpha-2 code.
  21403. countryCode: CountryCode!
  21404. # The localized extension keys that are allowed.
  21405. key: LocalizationExtensionKey!
  21406. # The purpose of this localization extension.
  21407. purpose: LocalizationExtensionPurpose!
  21408. # The localized extension title.
  21409. title: String!
  21410. # The value of the field.
  21411. value: String!
  21412. }
  21413. `, BuiltIn: false},
  21414. {Name: "../../../ext/location.graphql", Input: `# Represents the location where the physical good resides.
  21415. type Location implements HasMetafieldDefinitions&HasMetafields&LegacyInteroperability&Node {
  21416. # Whether this location can be reactivated.
  21417. activatable: Boolean!
  21418. # The address of this location.
  21419. address: LocationAddress!
  21420. # Whether the location address has been verified.
  21421. addressVerified: Boolean!
  21422. # Whether this location can be deactivated.
  21423. deactivatable: Boolean!
  21424. # The date and time (ISO 8601 format) that the location was deactivated at.
  21425. # For example, 3:30 pm on September 7, 2019 in the time zone of UTC (Universal Time Coordinated) is represented as "2019-09-07T15:50:00Z".
  21426. deactivatedAt: String
  21427. # Whether this location can be deleted.
  21428. deletable: Boolean!
  21429. # Name of the service provider that fulfills from this location.
  21430. fulfillmentService: FulfillmentService
  21431. # Whether this location can fulfill online orders.
  21432. fulfillsOnlineOrders: Boolean!
  21433. # Whether this location has active inventory.
  21434. hasActiveInventory: Boolean!
  21435. # Whether this location has orders that need to be fulfilled.
  21436. hasUnfulfilledOrders: Boolean!
  21437. # A globally-unique identifier.
  21438. id: ID!
  21439. # The quantities of an inventory item at this location.
  21440. inventoryLevel(inventoryItemId: ID!): InventoryLevel
  21441. # A list of the quantities of the inventory items that can be stocked at this location.
  21442. inventoryLevels(
  21443. first: Int
  21444. after: String
  21445. last: Int
  21446. before: String
  21447. reverse: Boolean = false
  21448. query: String
  21449. ): InventoryLevelConnection!
  21450. # Whether the location is active.
  21451. isActive: Boolean!
  21452. # The ID of the corresponding resource in the REST Admin API.
  21453. legacyResourceId: UnsignedInt64!
  21454. # Returns a metafield by namespace and key that belongs to the resource.
  21455. metafield(namespace: String!key: String!): Metafield
  21456. # List of metafield definitions.
  21457. metafieldDefinitions(
  21458. namespace: String
  21459. pinnedStatus: MetafieldDefinitionPinnedStatus = ANY
  21460. first: Int
  21461. after: String
  21462. last: Int
  21463. before: String
  21464. reverse: Boolean = false
  21465. sortKey: MetafieldDefinitionSortKeys = ID
  21466. query: String
  21467. ): MetafieldDefinitionConnection!
  21468. # List of metafields that belong to the resource.
  21469. metafields(
  21470. namespace: String
  21471. first: Int
  21472. after: String
  21473. last: Int
  21474. before: String
  21475. reverse: Boolean = false
  21476. ): MetafieldConnection!
  21477. # The name of the location.
  21478. name: String!
  21479. # Returns a private metafield by namespace and key that belongs to the resource.
  21480. privateMetafield(namespace: String!key: String!): PrivateMetafield
  21481. # List of private metafields that belong to the resource.
  21482. privateMetafields(
  21483. namespace: String
  21484. first: Int
  21485. after: String
  21486. last: Int
  21487. before: String
  21488. reverse: Boolean = false
  21489. ): PrivateMetafieldConnection!
  21490. # Whether this location is used for calculating shipping rates. In multi-origin shipping mode, this flag is ignored.
  21491. shipsInventory: Boolean!
  21492. # List of suggested addresses for this location (empty if none).
  21493. suggestedAddresses: [LocationSuggestedAddress!]!
  21494. }
  21495. # Represents a suggested address for a location.
  21496. type LocationSuggestedAddress {
  21497. # The first line of the suggested address.
  21498. address1: String
  21499. # The second line of the suggested address.
  21500. address2: String
  21501. # The city of the suggested address.
  21502. city: String
  21503. # The country of the suggested address.
  21504. country: String
  21505. # The country code of the suggested address.
  21506. countryCode: CountryCode
  21507. # A formatted version of the suggested address.
  21508. formatted: [String!]!
  21509. # The province of the suggested address.
  21510. province: String
  21511. # The code for the province, state, or district of the suggested address.
  21512. provinceCode: String
  21513. # The ZIP code of the suggested address.
  21514. zip: String
  21515. }
  21516. # Represents the address of a location.
  21517. type LocationAddress {
  21518. # The first line of the address for the location.
  21519. address1: String
  21520. # The second line of the address for the location.
  21521. address2: String
  21522. # The city of the location.
  21523. city: String
  21524. # The country of the location.
  21525. country: String
  21526. # The country code of the location.
  21527. countryCode: String
  21528. # A formatted version of the address for the location.
  21529. formatted: [String!]!
  21530. # The latitude coordinates of the location.
  21531. latitude: Float
  21532. # The longitude coordinates of the location.
  21533. longitude: Float
  21534. # The phone number of the location.
  21535. phone: String
  21536. # The province of the location.
  21537. province: String
  21538. # The code for the province, state, or district of the address of the location.
  21539. provinceCode: String
  21540. # The ZIP code of the location.
  21541. zip: String
  21542. }
  21543. # The country-specific harmonized system code and ISO country code for an inventory item.
  21544. type CountryHarmonizedSystemCode {
  21545. # The ISO 3166-1 alpha-2 country code for the country that issued the specified harmonized system code.
  21546. countryCode: CountryCode!
  21547. # The country-specific harmonized system code. These are usually longer than 6 digits.
  21548. harmonizedSystemCode: String!
  21549. }
  21550. `, BuiltIn: false},
  21551. {Name: "../../../ext/mail.graphql", Input: `# Represents a customer mailing address.
  21552. #
  21553. # For example, a customer's default address and an order's billing address are both mailling addresses.
  21554. type MailingAddress implements Node {
  21555. # The first line of the address. Typically the street address or PO Box number.
  21556. address1: String
  21557. # The second line of the address. Typically the number of the apartment, suite, or unit.
  21558. address2: String
  21559. # The name of the city, district, village, or town.
  21560. city: String
  21561. # The name of the customer's company or organization.
  21562. company: String
  21563. # Whether the address coordinates are valid.
  21564. coordinatesValidated: Boolean!
  21565. # The name of the country.
  21566. country: String
  21567. # The two-letter code for the country of the address.
  21568. #
  21569. # For example, US.
  21570. countryCodeV2: CountryCode
  21571. # The first name of the customer.
  21572. #
  21573. # formatted(withName: Boolean = false withCompany: Boolean = true): [String!]!
  21574. # A formatted version of the address, customized by the provided arguments.
  21575. firstName: String
  21576. # A comma-separated list of the values for city, province, and country.
  21577. formattedArea: String
  21578. # A globally-unique identifier.
  21579. id: ID!
  21580. # The last name of the customer.
  21581. lastName: String
  21582. # The latitude coordinate of the customer address.
  21583. latitude: Float
  21584. # The longitude coordinate of the customer address.
  21585. longitude: Float
  21586. # The full name of the customer, based on firstName and lastName.
  21587. name: String
  21588. # A unique phone number for the customer.
  21589. #
  21590. # Formatted using E.164 standard. For example, +16135551111.
  21591. phone: String
  21592. # The region of the address, such as the province, state, or district.
  21593. province: String
  21594. # The two-letter code for the region.
  21595. #
  21596. # For example, ON.
  21597. provinceCode: String
  21598. # The zip or postal code of the address.
  21599. zip: String
  21600. }
  21601. # The fields used to create or update a mailing address.
  21602. input MailingAddressInput {
  21603. # The first line of the address. Typically the street address or PO Box number.
  21604. address1: String
  21605. # The second line of the address. Typically the number of the apartment, suite, or unit.
  21606. address2: String
  21607. # The name of the city, district, village, or town.
  21608. city: String
  21609. # The name of the customer's company or organization.
  21610. company: String
  21611. # The two-letter code for the country of the address.
  21612. countryCode: CountryCode
  21613. # The first name of the customer.
  21614. firstName: String
  21615. # The last name of the customer.
  21616. lastName: String
  21617. # A unique phone number for the customer.
  21618. #
  21619. # Formatted using E.164 standard. For example, +16135551111.
  21620. phone: String
  21621. # The code for the region of the address, such as the province, state, or district.
  21622. # For example QC for Quebec, Canada.
  21623. provinceCode: String
  21624. # The zip or postal code of the address.
  21625. zip: String
  21626. }
  21627. `, BuiltIn: false},
  21628. {Name: "../../../ext/market.graphql", Input: `# A market is a group of one or more regions that you want to target for international sales.
  21629. # By creating a market, you can configure a distinct, localized shopping experience for
  21630. # customers from a specific area of the world. For example, you can
  21631. # change currency,
  21632. # configure international pricing,
  21633. # or add market-specific domains or subfolders.
  21634. type Market implements Node {
  21635. # The market’s currency settings.
  21636. currencySettings: MarketCurrencySettings!
  21637. # Whether the market is enabled to receive visitors and sales. Note: Regions in inactive
  21638. # markets cannot be selected on the storefront or in checkout.
  21639. enabled: Boolean!
  21640. # A globally-unique identifier.
  21641. id: ID!
  21642. # The name of the market. Not shown to customers.
  21643. name: String!
  21644. # The market’s price list, which specifies a percentage-based price adjustment as well as
  21645. # fixed price overrides for specific variants.
  21646. priceList: PriceList
  21647. # Whether the market is the shop’s primary market.
  21648. primary: Boolean!
  21649. # The regions that comprise the market.
  21650. regions(
  21651. first: Int
  21652. after: String
  21653. last: Int
  21654. before: String
  21655. reverse: Boolean = false
  21656. ): MarketRegionConnection!
  21657. # The market’s web presence, which defines its SEO strategy. This can be a different domain,
  21658. # subdomain, or subfolders of the primary domain. Each web presence comprises one or more
  21659. # language variants. If a market doesn't have its own web presence, then the market is accessible on the
  21660. # shop’s primary domain using country
  21661. # selectors.
  21662. webPresence: MarketWebPresence
  21663. }
  21664. # A market's currency settings.
  21665. type MarketCurrencySettings {
  21666. # The currency which this market's prices are defined in, and the
  21667. # currency which its customers must use if local currencies are disabled.
  21668. baseCurrency: CurrencySetting!
  21669. # Whether or not local currencies are enabled. If enabled, then prices will
  21670. # be converted to give each customer the best experience based on their
  21671. # region. If disabled, then all customers in this market will see prices
  21672. # in the market's base currency.
  21673. localCurrencies: Boolean!
  21674. }
  21675. # The market’s web presence, which defines its SEO strategy. This can be a different domain
  21676. # (e.g. example.ca), subdomain (e.g. ca.example.com), or subfolders of the primary
  21677. # domain (e.g. example.com/en-ca). Each web presence comprises one or more language
  21678. # variants. If a market does not have its own web presence, it is accessible on the shop’s
  21679. # primary domain via country
  21680. # selectors.
  21681. #
  21682. # Note: while the domain/subfolders defined by a market’s web presence are not applicable to
  21683. # custom storefronts, which must manage their own domains and routing, the languages chosen
  21684. # here do govern the languages available on the Storefront
  21685. # API for the countries in
  21686. # this market.
  21687. type MarketWebPresence implements Node {
  21688. # The ISO codes for the alternate locales. When a domain is used, these locales will be
  21689. # available as language-specific subfolders. For example, if English is an
  21690. # alternate locale, and example.ca is the market’s domain, then
  21691. # example.ca/en will load in English.
  21692. alternateLocales: [String!]!
  21693. # The ISO code for the default locale. When a domain is used, this is the locale that will
  21694. # be used when the domain root is accessed. For example, if French is the default locale,
  21695. # and example.ca is the market’s domian, then example.ca will load in French.
  21696. defaultLocale: String!
  21697. # The web presence’s domain.
  21698. # This field will be null if subfolderSuffix isn't null.
  21699. domain: Domain
  21700. # A globally-unique identifier.
  21701. id: ID!
  21702. # The associated market.
  21703. market: Market!
  21704. # The list of root URLs for each of the web presence’s locales.
  21705. rootUrls: [MarketWebPresenceRootUrl!]!
  21706. # The market-specific suffix of the subfolders defined by the web presence. Example: in /en-us the subfolder suffix is us.
  21707. # This field will be null if domain isn't null.
  21708. subfolderSuffix: String
  21709. }
  21710. # The URL for the homepage of the online store in the context of a particular market and a particular locale.
  21711. type MarketWebPresenceRootUrl {
  21712. # The locale that the storefront loads in.
  21713. locale: String!
  21714. # The URL.
  21715. url: URL!
  21716. }
  21717. `, BuiltIn: false},
  21718. {Name: "../../../ext/marketing.graphql", Input: `# Represents a set of UTM parameters.
  21719. type UTMParameters {
  21720. # The name of a marketing campaign.
  21721. campaign: String
  21722. # Identifies specific content in a marketing campaign.
  21723. # Used to differentiate between similar content or links in a marketing campaign to determine which is the most effective.
  21724. content: String
  21725. # The medium of a marketing campaign, such as a banner or email newsletter.
  21726. medium: String
  21727. # The source of traffic to the merchant's store, such as Google or an email newsletter.
  21728. source: String
  21729. # Paid search terms used by a marketing campaign.
  21730. term: String
  21731. }
  21732. `, BuiltIn: false},
  21733. {Name: "../../../ext/media.graphql", Input: `# Represents the preview image for a media.
  21734. type MediaPreviewImage {
  21735. # The preview image for the media. Returns null until status is READY.
  21736. image: Image
  21737. # Current status of the preview image.
  21738. status: MediaPreviewImageStatus!
  21739. }
  21740. # Represents an image resource.
  21741. type Image implements HasMetafields {
  21742. # A word or phrase to share the nature or contents of an image.
  21743. altText: String
  21744. # The original height of the image in pixels. Returns null if the image is not hosted by Shopify.
  21745. height: Int
  21746. # A unique identifier for the image.
  21747. id: ID
  21748. # Returns a metafield by namespace and key that belongs to the resource.
  21749. metafield(namespace: String!key: String!): Metafield
  21750. # List of metafields that belong to the resource.
  21751. metafields(
  21752. namespace: String
  21753. first: Int
  21754. after: String
  21755. last: Int
  21756. before: String
  21757. reverse: Boolean = false
  21758. ): MetafieldConnection!
  21759. # Returns a private metafield by namespace and key that belongs to the resource.
  21760. privateMetafield(namespace: String!key: String!): PrivateMetafield
  21761. # List of private metafields that belong to the resource.
  21762. privateMetafields(
  21763. namespace: String
  21764. first: Int
  21765. after: String
  21766. last: Int
  21767. before: String
  21768. reverse: Boolean = false
  21769. ): PrivateMetafieldConnection!
  21770. # The location of the image as a URL.
  21771. #
  21772. # If no transform options are specified, then the original image will be preserved including any pre-applied transforms.
  21773. # All transformation options are considered "best-effort". Any transformation that the original image type doesn't support will be ignored.
  21774. # If you need multiple variations of the same image, then you can use GraphQL aliases.
  21775. url(transform: ImageTransformInput): URL!
  21776. # The original width of the image in pixels. Returns null if the image is not hosted by Shopify.
  21777. width: Int
  21778. }
  21779. # The available options for transforming an image.
  21780. #
  21781. # All transformation options are considered best effort. Any transformation that the original image type doesn't support will be ignored.
  21782. input ImageTransformInput {
  21783. # The region of the image to remain after cropping.
  21784. # Must be used in conjunction with the maxWidth and/or maxHeight fields, where the maxWidth and maxHeight aren't equal.
  21785. # The crop argument should coincide with the smaller value. A smaller maxWidth indicates a LEFT or RIGHT crop, while
  21786. # a smaller maxHeight indicates a TOP or BOTTOM crop. For example, { maxWidth: 5, maxHeight: 10, crop: LEFT } will result
  21787. # in an image with a width of 5 and height of 10, where the right side of the image is removed.
  21788. crop: CropRegion
  21789. # Image width in pixels between 1 and 5760.
  21790. maxWidth: Int
  21791. # Image height in pixels between 1 and 5760.
  21792. maxHeight: Int
  21793. # Image size multiplier for high-resolution retina displays. Must be within 1..3.
  21794. scale: Int = 1
  21795. # Convert the source image into the preferred content type.
  21796. # Supported conversions: .svg to .png, any file type to .jpg, and any file type to .webp.
  21797. preferredContentType: ImageContentType
  21798. }
  21799. # Represents any file other than HTML.
  21800. type GenericFile implements File&Node {
  21801. #A word or phrase to describe the contents or the function of a file.
  21802. alt: String
  21803. # The date and time (ISO 8601 format) when the file was created.
  21804. createdAt: DateTime!
  21805. # Any errors that have occurred on the file.
  21806. fileErrors: [FileError!]!
  21807. # The status of the file.
  21808. fileStatus: FileStatus!
  21809. # A globally-unique identifier.
  21810. id: ID!
  21811. # The generic file's MIME type.
  21812. mimeType: String
  21813. # The generic file's size in bytes.
  21814. originalFileSize: Int
  21815. # The preview image for the media.
  21816. preview: MediaPreviewImage
  21817. # The generic file's URL.
  21818. url: URL
  21819. }
  21820. type MediaImage implements File&Media&Node {
  21821. # A word or phrase to share the nature or contents of a media.
  21822. alt: String
  21823. # The date and time (ISO 8601 format) when the file was created.
  21824. createdAt: DateTime!
  21825. # Any errors that have occurred on the file.
  21826. fileErrors: [FileError!]!
  21827. # The status of the file.
  21828. fileStatus: FileStatus!
  21829. # A globally-unique identifier.
  21830. id: ID!
  21831. # The image for the media. Returns null until status is READY.
  21832. image: Image
  21833. # The media content type.
  21834. mediaContentType: MediaContentType!
  21835. # Any errors which have occurred on the media.
  21836. mediaErrors: [MediaError!]!
  21837. # The warnings attached to the media.
  21838. mediaWarnings: [MediaWarning!]!
  21839. # The MIME type of the image.
  21840. mimeType: String
  21841. # The original source of the image.
  21842. originalSource: MediaImageOriginalSource
  21843. # The preview image for the media.
  21844. preview: MediaPreviewImage
  21845. # Current status of the media.
  21846. status: MediaStatus!
  21847. }
  21848. # The original source for an image.
  21849. type MediaImageOriginalSource {
  21850. # The size of the original file in bytes.
  21851. fileSize: Int
  21852. }
  21853. # Represents a Shopify hosted video.
  21854. type Video implements File&Media&Node {
  21855. # A word or phrase to share the nature or contents of a media.
  21856. alt: String
  21857. # The date and time (ISO 8601 format) when the file was created.
  21858. createdAt: DateTime!
  21859. # The video's duration in milliseconds. This value is null unless the video's status field is
  21860. # READY.
  21861. duration: Int
  21862. # Any errors that have occurred on the file.
  21863. fileErrors: [FileError!]!
  21864. # The status of the file.
  21865. fileStatus: FileStatus!
  21866. # The video's filename.
  21867. filename: String!
  21868. # A globally-unique identifier.
  21869. id: ID!
  21870. # The media content type.
  21871. mediaContentType: MediaContentType!
  21872. # Any errors which have occurred on the media.
  21873. mediaErrors: [MediaError!]!
  21874. # The warnings attached to the media.
  21875. mediaWarnings: [MediaWarning!]!
  21876. # The video's original source. This value is null unless the video's status field is
  21877. # READY.
  21878. originalSource: VideoSource
  21879. # The preview image for the media.
  21880. preview: MediaPreviewImage
  21881. # The video's sources. This value is empty unless the video's status field is
  21882. # READY.
  21883. sources: [VideoSource!]!
  21884. # Current status of the media.
  21885. status: MediaStatus!
  21886. }
  21887. # Represents a source for a Shopify hosted video.
  21888. #
  21889. # Types of sources include the original video, lower resolution versions of the original video,
  21890. # and an m3u8 playlist file.
  21891. #
  21892. # Only videos with a status field
  21893. # of READY have sources.
  21894. type VideoSource {
  21895. # The video source's file size in bytes.
  21896. fileSize: Int
  21897. # The video source's file format extension.
  21898. format: String!
  21899. # The video source's height.
  21900. height: Int!
  21901. # The video source's MIME type.
  21902. mimeType: String!
  21903. # The video source's URL.
  21904. url: String!
  21905. # The video source's width.
  21906. width: Int!
  21907. }
  21908. `, BuiltIn: false},
  21909. {Name: "../../../ext/meta.graphql", Input: `# Metafields enable you to attach additional information to a Shopify resource, such as a Product or a Collection.
  21910. # For more information about where you can attach metafields refer to HasMetafields.
  21911. # Some examples of the data that metafields enable you to store are specifications, size charts, downloadable documents, release dates, images, or part numbers.
  21912. # Metafields are identified by an owner resource, namespace, and key. and store a value along with type information for that value.
  21913. type Metafield implements LegacyInteroperability&Node{
  21914. # The date and time when the metafield was created.
  21915. createdAt: DateTime!
  21916. # The optional, associated metafield definition that maps to this metafield's namespace and key pair.
  21917. definition: MetafieldDefinition
  21918. # The description of the metafield.
  21919. description: String
  21920. # A globally-unique identifier.
  21921. id: ID!
  21922. # The unique identifier for the metafield in its namespace.
  21923. key: String!
  21924. # The ID of the corresponding resource in the REST Admin API.
  21925. legacyResourceId: UnsignedInt64!
  21926. # A container for a group of metafields.
  21927. # Grouping metafields within a namespace prevents your metafields from conflicting with other metafields that have the same key name.
  21928. namespace: String!
  21929. # The resource that the metafield is attached to.
  21930. owner: HasMetafields!
  21931. # The resource that the metafield is attached to.
  21932. ownerType: MetafieldOwnerType!
  21933. # Returns a reference object if the metafield definition's type is a resource reference.
  21934. reference: MetafieldReference
  21935. # A list of reference objects if the metafield's type is a resource reference list.
  21936. references(
  21937. first: Int
  21938. after: String
  21939. last: Int
  21940. before: String
  21941. ): MetafieldReferenceConnection
  21942. # The type of data that the metafield stores in the value field.
  21943. # See the list of supported types.
  21944. type: String!
  21945. # The date and time when the metafield was updated.
  21946. updatedAt: DateTime!
  21947. # The data to store in the metafield. The data is always stored as a string, regardless of the metafield's type.
  21948. value: String!
  21949. }
  21950. # Metafield definitions enable you to define additional validation constraints for metafields, and enable the
  21951. # merchant to edit metafield values in context.
  21952. type MetafieldDefinition implements Node {
  21953. # The description of a metafield definition.
  21954. description: String
  21955. # A globally-unique identifier.
  21956. id: ID!
  21957. # The key name used to identify a metafield definition within a namespace.
  21958. key: String!
  21959. # The list of metafields associated with a metafield definition.
  21960. metafields(
  21961. validationStatus: MetafieldValidationStatus = ANY
  21962. first: Int
  21963. after: String
  21964. last: Int
  21965. before: String
  21966. reverse: Boolean = false
  21967. ): MetafieldConnection!
  21968. # The count of metafields under a metafield definition.
  21969. metafieldsCount(validationStatus: MetafieldValidationStatus): Int!
  21970. # The human-readable name for the metafield definition.
  21971. name: String!
  21972. # The namespace of the metafield definition. You can use a namespace to group related metafields.
  21973. namespace: String!
  21974. # The resource type that the metafield definition is attached to. For example, Product or Collection.
  21975. ownerType: MetafieldOwnerType!
  21976. # The position of the metafield definition in the pinned list.
  21977. pinnedPosition: Int
  21978. # The standard metafield definition template associated with a metafield definition.
  21979. standardTemplate: StandardMetafieldDefinitionTemplate
  21980. # The type of data that the metafield will store.
  21981. type: MetafieldDefinitionType!
  21982. # The validation status for the existing metafields within a metafield definition.
  21983. validationStatus: MetafieldDefinitionValidationStatus!
  21984. # A list of validation options for
  21985. # the metafield. For example, for a metafield with the type date, you can set a minimum date validation, so
  21986. # that the metafield will only store dates after the specific minimum date.
  21987. validations: [MetafieldDefinitionValidation!]!
  21988. # Whether metafields for the metafield definition are visible using the Storefront API.
  21989. visibleToStorefrontApi: Boolean!
  21990. }
  21991. # Standard metafield definition templates provide preset configurations to create metafield definitions.
  21992. # Each template has a specific namespace and key that we've reserved to have specific meanings for common use cases.
  21993. #
  21994. # Refer to the list of standard metafield definitions.
  21995. type StandardMetafieldDefinitionTemplate implements Node {
  21996. # The description of the standard metafield definition.
  21997. description: String
  21998. # A globally-unique identifier.
  21999. id: ID!
  22000. # The key owned by the definition after the definition has been activated.
  22001. key: String!
  22002. # The human-readable name for the standard metafield definition.
  22003. name: String!
  22004. # The namespace owned by the definition after the definition has been activated.
  22005. namespace: String!
  22006. # The list of resource types that the standard metafield definition can be applied to.
  22007. ownerTypes: [MetafieldOwnerType!]!
  22008. # The associated metafield definition type that the metafield stores.
  22009. type: MetafieldDefinitionType!
  22010. # The configured validations for the standard metafield definition.
  22011. validations: [MetafieldDefinitionValidation!]!
  22012. # Whether metafields for the definition are by default visible using the Storefront API.
  22013. visibleToStorefrontApi: Boolean!
  22014. }
  22015. # A metafield definition type provides basic foundation and validation for a metafield.
  22016. type MetafieldDefinitionType {
  22017. # The category associated with the metafield definition type.
  22018. category: String!
  22019. # The name of the type for the metafield definition.
  22020. # See the list of supported types.
  22021. name: String!
  22022. # The supported validations for a metafield definition type.
  22023. supportedValidations: [MetafieldDefinitionSupportedValidation!]!
  22024. # Whether metafields without a definition can be migrated to a definition of this type.
  22025. supportsDefinitionMigrations: Boolean!
  22026. }
  22027. # The type and name for the optional validation configuration of a metafield.
  22028. #
  22029. # For example, a supported validation might consist of a max name and a number_integer type.
  22030. # This validation can then be used to enforce a maximum character length for a single_line_text_field metafield.
  22031. type MetafieldDefinitionSupportedValidation {
  22032. # The name of the metafield definition validation.
  22033. name: String!
  22034. # The type of input for the validation.
  22035. type: String!
  22036. }
  22037. # A configured metafield definition validation.
  22038. #
  22039. # For example, for a metafield definition of number_integer type, you can set a validation with the name max
  22040. # and a value of 15. This validation will ensure that the value of the metafield is a number less than or equal to 15.
  22041. #
  22042. # Refer to the list of supported validations.
  22043. type MetafieldDefinitionValidation {
  22044. # The validation name.
  22045. name: String!
  22046. # The name for the metafield type of this validation.
  22047. type: String!
  22048. # The validation value.
  22049. value: String
  22050. }
  22051. # Private metafields represent custom metadata that is attached to a resource.
  22052. # Private metafields are accessible only by the application that created them and only from the GraphQL Admin API.
  22053. #
  22054. # An application can create a maximum of 10 private metafields per shop resource.
  22055. type PrivateMetafield implements Node {
  22056. # The date and time when the private metafield was created.
  22057. createdAt: DateTime!
  22058. # The id of the private metafield.
  22059. id: ID!
  22060. # The key name of the private metafield.
  22061. key: String!
  22062. # The namespace of the private metafield.
  22063. namespace: String!
  22064. # The date and time when the private metafield was updated.
  22065. updatedAt: DateTime!
  22066. # The value of a private metafield.
  22067. value: String!
  22068. # Represents the private metafield value type.
  22069. valueType: PrivateMetafieldValueType!
  22070. }
  22071. # The input fields for a private metafield.
  22072. input PrivateMetafieldInput {
  22073. # The resource that owns the metafield. If the field is blank, then the Shop resource owns the metafield.
  22074. owner: ID
  22075. # The namespace of the private metafield.
  22076. namespace: String!
  22077. # The key of the private metafield.
  22078. key: String!
  22079. # The value and valueType of the private metafield, wrapped in a ValueInput object.
  22080. valueInput: PrivateMetafieldValueInput!
  22081. }
  22082. # The value input contains the value and value type of the private metafield.
  22083. input PrivateMetafieldValueInput {
  22084. # The value of a private metafield.
  22085. value: String!
  22086. # Represents the private metafield value type.
  22087. valueType: PrivateMetafieldValueType!
  22088. }
  22089. # The input fields to use to create or update a metafield through a mutation on the owning resource.
  22090. # An alternative way to create or update a metafield is by using the metafieldsSet mutation.
  22091. input MetafieldInput {
  22092. # The description of the metafield.
  22093. description: String
  22094. # The unique ID of the metafield. You don't include an ID when you create a metafield because the metafield ID
  22095. # is created automatically. The ID is required when you update a metafield.
  22096. id: ID
  22097. # The namespace for a metafield. The namespace is required when you create a metafield and is optional when you
  22098. # update a metafield.
  22099. namespace: String
  22100. # The key name of the metafield. Required when creating but optional when updating.
  22101. key: String
  22102. # The value of a metafield.
  22103. value: String
  22104. # The metafield's type. The metafield type is required
  22105. # when you create a metafield and is optional when you update a metafield.
  22106. type: String
  22107. }
  22108. `, BuiltIn: false},
  22109. {Name: "../../../ext/money.graphql", Input: `# A monetary value with currency.
  22110. type MoneyV2 {
  22111. # Decimal money amount.
  22112. amount: Decimal!
  22113. # Currency of the money.
  22114. currencyCode: CurrencyCode!
  22115. }
  22116. # A collection of monetary values in their respective currencies. Typically used in the context of multi-currency pricing and transactions,
  22117. # when an amount in the shop's currency is converted to the customer's currency of choice (the presentment currency).
  22118. type MoneyBag {
  22119. # Amount in presentment currency.
  22120. presentmentMoney: MoneyV2!
  22121. # Amount in shop currency.
  22122. shopMoney: MoneyV2!
  22123. }
  22124. # Represents a price list, including information about related prices and eligibility rules.
  22125. # You can use price lists to specify either fixed prices or adjusted relative prices that
  22126. # override initial product variant prices. Price lists are applied to customers
  22127. # using context rules, which determine price list eligibility.
  22128. #
  22129. # For more information on price lists, refer to
  22130. # Support different pricing models.
  22131. type PriceList implements Node {
  22132. # A set of facts about the customer, used to determine price list eligibility.
  22133. contextRule: PriceListContextRule
  22134. # The currency for fixed prices associated with this price list.
  22135. currency: CurrencyCode!
  22136. # A globally-unique identifier.
  22137. id: ID!
  22138. # The unique name of the price list, used as a human-readable identifier.
  22139. name: String!
  22140. # Relative adjustments to other prices.
  22141. parent: PriceListParent
  22142. # A list of prices associated with the price list.
  22143. prices(
  22144. originType: PriceListPriceOriginType
  22145. first: Int
  22146. after: String
  22147. last: Int
  22148. before: String
  22149. reverse: Boolean = false
  22150. ): PriceListPriceConnection!
  22151. }
  22152. # One type of value given to a customer when a discount is applied to an order.
  22153. # The application of a discount with this value gives the customer the specified percentage off a specified item.
  22154. type PricingPercentageValue {
  22155. # The percentage value of the object.
  22156. # This is a number between -100 (free) and 0 (no discount).
  22157. percentage: Float!
  22158. }
  22159. # Represents information about pricing for a product variant
  22160. # as defined on a price list, such as the price, compare at price, and origin type.
  22161. # You can use a PriceListPrice to specify a fixed price for a specific product variant.
  22162. type PriceListPrice {
  22163. # The compare-at price of the product variant on this price list.
  22164. compareAtPrice: MoneyV2
  22165. # The origin of a price, either fixed (defined on the price list) or relative (calculated using a price list adjustment configuration).
  22166. originType: PriceListPriceOriginType!
  22167. # The price of the product variant on this price list.
  22168. price: MoneyV2!
  22169. # The product variant associated with this price.
  22170. variant: ProductVariant!
  22171. }
  22172. # Facts about the customer that was used to determine the price list eligibility.
  22173. # For example, if the PriceListContextRule is for a US market, then the price list will be eligible to all customers in the US.
  22174. # For more information on price lists, refer to
  22175. # Support different pricing models.
  22176. type PriceListContextRule {
  22177. # A list of two letter country codes that determines price list eligibility.
  22178. countries: [CountryCode!]!
  22179. # The associated market.
  22180. market: Market
  22181. }
  22182. # Represents relative adjustments from one price list to other prices.
  22183. # You can use a PriceListParent to specify an adjusted relative price using a percentage-based
  22184. # adjustment. Adjusted prices work in conjunction with exchange rules and rounding.
  22185. #
  22186. # Adjustment types
  22187. # support both percentage increases and decreases.
  22188. type PriceListParent {
  22189. # A price list adjustment.
  22190. adjustment: PriceListAdjustment!
  22191. }
  22192. # The type and value of a price list adjustment.
  22193. #
  22194. # For more information on price lists, refer to
  22195. # Support different pricing models.
  22196. type PriceListAdjustment {
  22197. # The type of price adjustment, such as percentage increase or decrease.
  22198. type: PriceListAdjustmentType!
  22199. # The value of price adjustment, where positive numbers reduce the prices and negative numbers increase them.
  22200. value: Float!
  22201. }
  22202. # Represents a single tax applied to the associated line item.
  22203. type TaxLine {
  22204. # Whether the channel that submitted the tax line is liable for remitting. A value of null indicates unknown liability for this tax line.
  22205. channelLiable: Boolean
  22206. # The amount of tax, in shop and presentment currencies, after discounts and before returns.
  22207. priceSet: MoneyBag!
  22208. # The proportion of the line item price that the tax represents as a decimal.
  22209. rate: Float
  22210. # The proportion of the line item price that the tax represents as a percentage.
  22211. ratePercentage: Float
  22212. # The name of the tax.
  22213. title: String!
  22214. }
  22215. # An amount that's allocated to a line based on an associated discount application.
  22216. type DiscountAllocation {
  22217. # The money amount that's allocated to a line based on the associated discount application in shop and presentment currencies.
  22218. allocatedAmountSet: MoneyBag!
  22219. # The discount application that the allocated amount originated from.
  22220. discountApplication: DiscountApplication!
  22221. }
  22222. # The pricing information about a subscription app.
  22223. # The object contains an interval (the frequency at which the shop is billed for an app subscription) and
  22224. # a price (the amount to be charged to the subscribing shop at each interval).
  22225. type AppRecurringPricing {
  22226. # The discount applied to the subscription for a given number of billing intervals.
  22227. discount: AppSubscriptionDiscount
  22228. # The frequency at which the subscribing shop is billed for an app subscription.
  22229. interval: AppPricingInterval!
  22230. # The amount and currency to be charged to the subscribing shop every billing interval.
  22231. price: MoneyV2!
  22232. }
  22233. # Discount applied to the recurring pricing portion of a subscription.
  22234. type AppSubscriptionDiscount {
  22235. # The total number of billing intervals to which the discount will be applied.
  22236. # The discount will be applied to an indefinite number of billing intervals if this value is blank.
  22237. durationLimitInIntervals: Int
  22238. # The price of the subscription after the discount is applied.
  22239. priceAfterDiscount: MoneyV2!
  22240. # The remaining number of billing intervals to which the discount will be applied.
  22241. remainingDurationInIntervals: Int
  22242. # The value of the discount applied every billing interval.
  22243. value: AppSubscriptionDiscountValue!
  22244. }
  22245. # Defines a usage pricing model for the app subscription.
  22246. # These charges are variable based on how much the merchant uses the app.
  22247. type AppUsagePricing {
  22248. # The total usage records for interval.
  22249. balanceUsed: MoneyV2!
  22250. # The capped amount prevents the merchant from being charged for any usage over that amount during a billing period.
  22251. # This prevents billing from exceeding a maximum threshold over the duration of the billing period.
  22252. # For the merchant to continue using the app after exceeding a capped amount, they would need to agree to a new usage charge.
  22253. cappedAmount: MoneyV2!
  22254. # The frequency with which the app usage records are billed.
  22255. interval: AppPricingInterval!
  22256. # The terms and conditions for app usage pricing.
  22257. # Must be present in order to create usage charges.
  22258. # The terms are presented to the merchant when they approve an app's usage charges.
  22259. terms: String!
  22260. }
  22261. # The fixed amount value of a discount.
  22262. type AppSubscriptionDiscountAmount {
  22263. # The fixed amount value of a discount.
  22264. amount: MoneyV2!
  22265. }
  22266. # The percentage value of a discount.
  22267. type AppSubscriptionDiscountPercentage {
  22268. # The percentage value of a discount.
  22269. percentage: Float!
  22270. }
  22271. # The percentage value of a selling plan pricing policy percentage type.
  22272. type SellingPlanPricingPolicyPercentageValue {
  22273. # The percentage value.
  22274. percentage: Float!
  22275. }
  22276. # Represents an applied code discount.
  22277. type SubscriptionAppliedCodeDiscount {
  22278. # The unique identifier.
  22279. id: ID!
  22280. # The redeem code of the discount that applies on the subscription.
  22281. redeemCode: String!
  22282. # The reason that the discount on the subscription draft is rejected.
  22283. rejectionReason: SubscriptionDiscountRejectionReason
  22284. }
  22285. # The value of the discount and how it will be applied.
  22286. type SubscriptionDiscountFixedAmountValue {
  22287. # The fixed amount value of the discount.
  22288. amount: MoneyV2!
  22289. # Whether the amount is applied per item.
  22290. appliesOnEachItem: Boolean!
  22291. }
  22292. # The percentage value of the discount.
  22293. type SubscriptionDiscountPercentageValue {
  22294. # The percentage value of the discount.
  22295. percentage: Int!
  22296. }
  22297. # Represents a credit card payment instrument.
  22298. type VaultCreditCard {
  22299. # The billing address of the card.
  22300. billingAddress: CustomerCreditCardBillingAddress
  22301. # The brand for the card.
  22302. brand: String!
  22303. # Whether the card has been expired.
  22304. expired: Boolean!
  22305. # The expiry month of the card.
  22306. expiryMonth: Int!
  22307. # The expiry year of the card.
  22308. expiryYear: Int!
  22309. # The last four digits for the card.
  22310. lastDigits: String!
  22311. # The name of the card holder.
  22312. name: String!
  22313. }
  22314. # Represents a paypal billing agreement payment instrument.
  22315. type VaultPaypalBillingAgreement {
  22316. # Whether the paypal billing agreement is inactive.
  22317. inactive: Boolean!
  22318. # The paypal account name.
  22319. name: String!
  22320. # The paypal account email address.
  22321. paypalAccountEmail: String!
  22322. }
  22323. `, BuiltIn: false},
  22324. {Name: "../../../ext/order.graphql", Input: `# An order that a merchant creates on behalf of a customer. Draft orders are useful for merchants that need to do the following tasks:
  22325. #
  22326. # Create new orders for sales made by phone, in person, by chat, or elsewhere. When a merchant accepts payment for a draft order, an order is created.
  22327. # Send invoices to customers to pay with a secure checkout link.
  22328. # Use custom items to represent additional costs or products that aren't displayed in a shop's inventory.
  22329. # Re-create orders manually from active sales channels.
  22330. # Sell products at discount or wholesale rates.
  22331. # Take pre-orders.
  22332. # Save an order as a draft and resume working on it later.
  22333. # For Draft orders in multiple currencies presentment_money is the source of truth for what a customer is going to be charged and shop_money is an estimate of what the merchant might receive in their local currency.
  22334. #
  22335. # Caution: Only use this data if it's required for your app's functionality. Shopify will restrict access to scopes for apps that don't have a legitimate use for the associated data.
  22336. type DraftOrder implements CommentEventSubject&HasEvents&HasLocalizationExtensions&HasMetafields&LegacyInteroperability&Navigable&Node{
  22337. # The order-level discount applied to the draft order.
  22338. appliedDiscount: DraftOrderAppliedDiscount
  22339. # The billing address of the customer.
  22340. billingAddress: MailingAddress
  22341. # Whether the billing address matches the shipping address.
  22342. billingAddressMatchesShippingAddress: Boolean!
  22343. # The date and time when the draft order converted to a new order,
  22344. # and the draft order's status changed to Completed.
  22345. completedAt: DateTime
  22346. # The date and time when the draft order was created in Shopify.
  22347. createdAt: DateTime!
  22348. # The three letter code for the currency of the store at the time of the most recent update to the draft order.
  22349. currencyCode: CurrencyCode!
  22350. # The custom information added to the draft order on behalf of the customer.
  22351. customAttributes: [Attribute!]!
  22352. # The customer who will be sent an invoice for the draft order, if there is one.
  22353. customer: Customer
  22354. # A default cursor that returns the single next record, sorted ascending by ID.
  22355. defaultCursor: String!
  22356. # The email address of the customer, which is used to send notifications.
  22357. email: String
  22358. # The list of events associated with the draft order.
  22359. events(
  22360. first: Int
  22361. after: String
  22362. last: Int
  22363. before: String
  22364. reverse: Boolean = false
  22365. sortKey: EventSortKeys = ID
  22366. query: String
  22367. ): EventConnection!
  22368. # Whether the merchant has added timeline comments to the draft order.
  22369. hasTimelineComment: Boolean!
  22370. # A globally-unique identifier.
  22371. id: ID!
  22372. # The subject defined for the draft invoice email template.
  22373. invoiceEmailTemplateSubject: String!
  22374. # The date and time when the invoice was last emailed to the customer.
  22375. invoiceSentAt: DateTime
  22376. # The link to the checkout, which is sent to the customer in the invoice email.
  22377. invoiceUrl: URL
  22378. # The ID of the corresponding resource in the REST Admin API.
  22379. legacyResourceId: UnsignedInt64!
  22380. # The list of the line items in the draft order.
  22381. lineItems(
  22382. first: Int
  22383. after: String
  22384. last: Int
  22385. before: String
  22386. reverse: Boolean = false
  22387. ): DraftOrderLineItemConnection!
  22388. # The subtotal of the line items and corresponding discounts. The subtotal doesn't include shipping charges, shipping discounts, taxes, or order discounts.
  22389. lineItemsSubtotalPrice: MoneyBag!
  22390. # List of localization extensions for the resource.
  22391. localizationExtensions(
  22392. countryCodes: [CountryCode!]
  22393. purposes: [LocalizationExtensionPurpose!]
  22394. first: Int
  22395. after: String
  22396. last: Int
  22397. before: String
  22398. reverse: Boolean = false
  22399. ): LocalizationExtensionConnection!
  22400. # The name of the selected market.
  22401. marketName: String!
  22402. # The selected market region country code for the draft order.
  22403. marketRegionCountryCode: CountryCode!
  22404. # Returns a metafield by namespace and key that belongs to the resource.
  22405. metafield(namespace: String!key: String!): Metafield
  22406. # List of metafields that belong to the resource.
  22407. metafields(
  22408. namespace: String
  22409. first: Int
  22410. after: String
  22411. last: Int
  22412. before: String
  22413. reverse: Boolean = false
  22414. ): MetafieldConnection!
  22415. # The identifier for the draft order, which is unique within the store. For example, #D1223.
  22416. name: String!
  22417. # The text from an optional note attached to the draft order.
  22418. note2: String
  22419. # The order that was created from this draft order.
  22420. order: Order
  22421. # The associated payment terms for this draft order.
  22422. paymentTerms: PaymentTerms
  22423. # The phone number assigned to the draft order.
  22424. phone: String
  22425. # The payment currency of the customer for this draft order.
  22426. presentmentCurrencyCode: CurrencyCode!
  22427. # Returns a private metafield by namespace and key that belongs to the resource.
  22428. privateMetafield(namespace: String!key: String!): PrivateMetafield
  22429. # List of private metafields that belong to the resource.
  22430. privateMetafields(
  22431. namespace: String
  22432. first: Int
  22433. after: String
  22434. last: Int
  22435. before: String
  22436. reverse: Boolean = false
  22437. ): PrivateMetafieldConnection!
  22438. # The purchasing entity for the draft order.
  22439. purchasingEntity: PurchasingEntity
  22440. # Whether the Draft Order is ready and can be completed. Draft Orders
  22441. # might have asynchronous operations that can take time to finish.
  22442. ready: Boolean!
  22443. # The time after which inventory will automatically be restocked.
  22444. reserveInventoryUntil: DateTime
  22445. # The shipping address of the customer.
  22446. shippingAddress: MailingAddress
  22447. # The line item that contains the shipping costs.
  22448. shippingLine: ShippingLine
  22449. # Status of the draft order.
  22450. status: DraftOrderStatus!
  22451. # The subtotal of the line items and their discounts. The subtotal doesn't include shipping charges, shipping discounts, or taxes.
  22452. subtotalPrice: Money!
  22453. # A subtotal of the line items and corresponding discounts. The subtotal doesn't include shipping charges, shipping discounts, or taxes.
  22454. subtotalPriceSet: MoneyBag!
  22455. # A comma separated list of tags associated with the draft order. Updating tags overwrites
  22456. # any existing tags that were previously added to the draft order. To add new tags without overwriting
  22457. # existing tags, use the tagsAdd mutation.
  22458. tags: [String!]!
  22459. # Whether the draft order is tax exempt.
  22460. taxExempt: Boolean!
  22461. # Total amount of taxes charged for each line item and shipping line.
  22462. taxLines: [TaxLine!]!
  22463. # Whether the line item prices include taxes.
  22464. taxesIncluded: Boolean!
  22465. # The total discounts for this draft order.
  22466. totalDiscountsSet: MoneyBag!
  22467. # The total price of line items for this draft order.
  22468. totalLineItemsPriceSet: MoneyBag!
  22469. # The total amount of the draft order, including taxes, shipping charges, and discounts.
  22470. totalPrice: Money!
  22471. # The total amount of the draft order including taxes, shipping charges, and discounts.
  22472. totalPriceSet: MoneyBag!
  22473. # The total shipping charge for the draft order.
  22474. totalShippingPrice: Money!
  22475. # The total shipping charge for the draft order.
  22476. totalShippingPriceSet: MoneyBag!
  22477. # The total amount of taxes for the draft order.
  22478. totalTax: Money!
  22479. # The total amount of taxes for the draft order.
  22480. totalTaxSet: MoneyBag!
  22481. # The total weight in grams of the draft order.
  22482. totalWeight: UnsignedInt64!
  22483. # The date and time when the draft order was last changed.
  22484. # The format is YYYY-MM-DD HH:mm:ss. For example, 2016-02-05 17:04:01.
  22485. updatedAt: DateTime!
  22486. # Whether the draft order will be visible to the customer on the self-serve portal.
  22487. visibleToCustomer: Boolean!
  22488. }
  22489. # The order-level discount applied to a draft order.
  22490. type DraftOrderAppliedDiscount {
  22491. # The amount of money discounted, with values shown in both shop currency and presentment currency.
  22492. amountSet: MoneyBag!
  22493. # Amount of money discounted.
  22494. amountV2: MoneyV2!
  22495. # Description of the order-level discount.
  22496. description: String!
  22497. # Name of the order-level discount.
  22498. title: String
  22499. # The order level discount amount. If valueType is "percentage",
  22500. # then value is the percentage discount.
  22501. value: Float!
  22502. # Type of the order-level discount.
  22503. valueType: DraftOrderAppliedDiscountType!
  22504. }
  22505. # A line item included in a draft order.
  22506. type DraftOrderLineItem implements Node {
  22507. # The discount that will be applied to the line item or the overall order.
  22508. appliedDiscount: DraftOrderAppliedDiscount
  22509. # Whether the line item is a custom line item (true) or a product variant line item (false).
  22510. custom: Boolean!
  22511. # A list of attributes that represent custom features or special requests.
  22512. customAttributes: [Attribute!]!
  22513. # Additional information (metafields) about the line item with the associated types.
  22514. customAttributesV2: [TypedAttribute!]!
  22515. # The line item price after discounts are applied.
  22516. discountedTotal: Money!
  22517. # The line item price after discounts are applied.
  22518. discountedTotalSet: MoneyBag!
  22519. # The discountedTotal divided by quantity, resulting in the value of the discount per unit.
  22520. discountedUnitPrice: Money!
  22521. # The discountedTotal divided by quantity, resulting in the value of the discount per unit.
  22522. discountedUnitPriceSet: MoneyBag!
  22523. # Name of the service provider who fulfilled the order.
  22524. #
  22525. # Valid values are either manual or the name of the provider.
  22526. # For example, amazon, shipwire.
  22527. #
  22528. # Deleted fulfillment services will return null.
  22529. fulfillmentService: FulfillmentService
  22530. # A globally-unique identifier.
  22531. id: ID!
  22532. # The image associated with the draft order line item.
  22533. image: Image
  22534. # Whether the line item is a gift card.
  22535. isGiftCard: Boolean!
  22536. # The name of the product.
  22537. name: String!
  22538. # The total price (without discounts) of the line item, based on the original unit price of the variant x quantity.
  22539. originalTotal: Money!
  22540. # The total price (without discounts) of the line item,based on the original unit price of the variant x quantity.
  22541. originalTotalSet: MoneyBag!
  22542. # The variant price without any discounts applied.
  22543. originalUnitPrice: Money!
  22544. # The variant price without any discounts applied.
  22545. originalUnitPriceSet: MoneyBag!
  22546. # The product corresponding to the line item’s product variant.
  22547. product: Product
  22548. # The number of product variants that are requested in the draft order.
  22549. quantity: Int!
  22550. # Whether physical shipping is required for the variant.
  22551. requiresShipping: Boolean!
  22552. # The SKU number of the product variant.
  22553. sku: String
  22554. # A list of tax line objects, each of which details the total taxes applicable to the order.
  22555. taxLines: [TaxLine!]!
  22556. # Whether the variant is taxable.
  22557. taxable: Boolean!
  22558. # The title of the product or variant. This field only applies to custom line items.
  22559. title: String!
  22560. # The total value of the discount that is applied to the line item.
  22561. totalDiscount: Money!
  22562. # The total value of the discount that is applied to the line item.
  22563. totalDiscountSet: MoneyBag!
  22564. # The associated variant for the line item.
  22565. variant: ProductVariant
  22566. # The name of the variant.
  22567. variantTitle: String
  22568. # The name of the vendor who created the product variant.
  22569. vendor: String
  22570. # The weight unit and value for a draft order line item.
  22571. weight: Weight
  22572. }
  22573. # An order is a customer's request to purchase one or more products from a shop. You can retrieve and update orders using the Order object.
  22574. # Learn more about
  22575. # editing an existing order with the GraphQL Admin API.
  22576. #
  22577. # Only the last 60 days' worth of orders from a store are accessible from the Order object by default. If you want to access older orders,
  22578. # then you need to request access to all orders. If your app is granted
  22579. # access, then you can add the read_all_orders scope to your app along with read_orders or write_orders.
  22580. # Private apps are not affected by this change and are automatically granted the scope.
  22581. #
  22582. # Caution: Only use this data if it's required for your app's functionality.
  22583. # Shopify will restrict access to scopes for apps that don't have a legitimate use for the associated data.
  22584. type Order implements CommentEventSubject&HasEvents&HasLocalizationExtensions&HasMetafieldDefinitions&HasMetafields&LegacyInteroperability&Node {
  22585. # A list of sales agreements associated with the order.
  22586. agreements(
  22587. first: Int
  22588. after: String
  22589. last: Int
  22590. before: String
  22591. reverse: Boolean = false
  22592. query: String
  22593. ): SalesAgreementConnection!
  22594. # A list of messages that appear on the order page in the Shopify admin.
  22595. alerts: [ResourceAlert!]!
  22596. # The application that created the order.
  22597. app: OrderApp
  22598. # The billing address of the customer.
  22599. billingAddress: MailingAddress
  22600. # Whether the billing address matches the shipping address.
  22601. billingAddressMatchesShippingAddress: Boolean!
  22602. # Whether the order can be manually marked as paid.
  22603. canMarkAsPaid: Boolean!
  22604. # Whether a customer email exists for the order.
  22605. canNotifyCustomer: Boolean!
  22606. # The reason provided when the order was canceled.
  22607. # Returns null if the order wasn't canceled.
  22608. cancelReason: OrderCancelReason
  22609. # The date and time when the order was canceled.
  22610. # Returns null if the order wasn't canceled.
  22611. cancelledAt: DateTime
  22612. # Whether payment for the order can be captured.
  22613. capturable: Boolean!
  22614. # The total order-level discount amount, before returns, in shop and presentment currencies.
  22615. cartDiscountAmountSet: MoneyBag
  22616. # Details about the channel that created the order.
  22617. channelInformation: ChannelInformation
  22618. # The IP address of the API client that created the order.
  22619. clientIp: String
  22620. # Whether the order is closed.
  22621. closed: Boolean!
  22622. # The date and time when the order was closed.
  22623. # Returns null if the order is not closed.
  22624. closedAt: DateTime
  22625. # Whether inventory has been reserved for the order.
  22626. confirmed: Boolean!
  22627. # Date and time when the order was created in Shopify.
  22628. createdAt: DateTime!
  22629. # The shop currency when the order was placed.
  22630. currencyCode: CurrencyCode!
  22631. # The current order-level discount amount after all order updates, in shop and presentment currencies.
  22632. currentCartDiscountAmountSet: MoneyBag!
  22633. # The sum of the quantities for all line items that contribute to the order's current subtotal price.
  22634. currentSubtotalLineItemsQuantity: Int!
  22635. # The sum of the prices for all line items after discounts and returns, in shop and presentment currencies.
  22636. # If taxesIncluded is true, then the subtotal also includes tax.
  22637. currentSubtotalPriceSet: MoneyBag!
  22638. # A list of all tax lines applied to line items on the order, after returns.
  22639. # Tax line prices represent the total price for all tax lines with the same rate and title.
  22640. currentTaxLines: [TaxLine!]!
  22641. # The total amount discounted on the order after returns, in shop and presentment currencies.
  22642. # This includes both order and line level discounts.
  22643. currentTotalDiscountsSet: MoneyBag!
  22644. # The total amount of duties after returns, in shop and presentment currencies.
  22645. # Returns null if duties aren't applicable.
  22646. currentTotalDutiesSet: MoneyBag
  22647. # The total price of the order, after returns, in shop and presentment currencies.
  22648. # This includes taxes and discounts.
  22649. currentTotalPriceSet: MoneyBag!
  22650. # The sum of the prices of all tax lines applied to line items on the order, after returns, in shop and presentment currencies.
  22651. currentTotalTaxSet: MoneyBag!
  22652. # The total weight of the order after returns, in grams.
  22653. currentTotalWeight: UnsignedInt64!
  22654. # A list of the custom attributes added to the order.
  22655. customAttributes: [Attribute!]!
  22656. # The customer that placed the order.
  22657. customer: Customer
  22658. # Whether the customer agreed to receive marketing materials.
  22659. customerAcceptsMarketing: Boolean!
  22660. # The customer's visits and interactions with the online store before placing the order.
  22661. customerJourneySummary: CustomerJourneySummary
  22662. # A two-letter or three-letter language code, optionally followed by a region modifier.
  22663. customerLocale: String
  22664. # A list of discounts that are applied to the order, not including order edits and refunds.
  22665. discountApplications(
  22666. first: Int
  22667. after: String
  22668. last: Int
  22669. before: String
  22670. reverse: Boolean = false
  22671. ): DiscountApplicationConnection!
  22672. # The discount code used for the order.
  22673. discountCode: String
  22674. # The discount codes used for the order.
  22675. discountCodes: [String!]!
  22676. # The primary address of the customer.
  22677. # Returns null if neither the shipping address nor the billing address was provided.
  22678. displayAddress: MailingAddress
  22679. # The financial status of the order that can be shown to the merchant.
  22680. # This field does not capture all the details of an order's financial state. It should only be used for display summary purposes.
  22681. displayFinancialStatus: OrderDisplayFinancialStatus
  22682. # The fulfillment status for the order that can be shown to the merchant.
  22683. # This field does not capture all the details of an order's fulfillment state. It should only be used for display summary purposes.
  22684. # For a more granular view of the fulfillment status, refer to the FulfillmentOrder object.
  22685. displayFulfillmentStatus: OrderDisplayFulfillmentStatus!
  22686. # A list of the disputes associated with the order.
  22687. disputes: [OrderDisputeSummary!]!
  22688. # Whether the order has had any edits applied.
  22689. edited: Boolean!
  22690. # The email address associated with the customer.
  22691. email: String
  22692. # Whether taxes on the order are estimated.
  22693. # This field returns false when taxes on the order are finalized and aren't subject to any changes.
  22694. estimatedTaxes: Boolean!
  22695. # A list of events associated with the order.
  22696. events(
  22697. first: Int
  22698. after: String
  22699. last: Int
  22700. before: String
  22701. reverse: Boolean = false
  22702. sortKey: EventSortKeys = ID
  22703. query: String
  22704. ): EventConnection!
  22705. # Whether there are line items that can be fulfilled.
  22706. # This field returns false when the order has no fulfillable line items.
  22707. # For a more granular view of the fulfillment status, refer to the FulfillmentOrder object.
  22708. fulfillable: Boolean!
  22709. # A list of fulfillment orders for the order.
  22710. fulfillmentOrders(
  22711. displayable: Boolean = false
  22712. first: Int
  22713. after: String
  22714. last: Int
  22715. before: String
  22716. reverse: Boolean = false
  22717. query: String
  22718. ): FulfillmentOrderConnection!
  22719. # List of shipments for the order.
  22720. fulfillments(first: Int): [Fulfillment!]!
  22721. # Whether the order has been paid in full.
  22722. fullyPaid: Boolean!
  22723. # Whether the merchant added a timeline comment to the order.
  22724. hasTimelineComment: Boolean!
  22725. # A globally-unique identifier.
  22726. id: ID!
  22727. # The ID of the corresponding resource in the REST Admin API.
  22728. legacyResourceId: UnsignedInt64!
  22729. # A list of the order's line items.
  22730. lineItems(
  22731. first: Int
  22732. after: String
  22733. last: Int
  22734. before: String
  22735. reverse: Boolean = false
  22736. ): LineItemConnection!
  22737. # List of localization extensions for the resource.
  22738. localizationExtensions(
  22739. countryCodes: [CountryCode!]
  22740. purposes: [LocalizationExtensionPurpose!]
  22741. first: Int
  22742. after: String
  22743. last: Int
  22744. before: String
  22745. reverse: Boolean = false
  22746. ): LocalizationExtensionConnection!
  22747. # Whether the order can be edited by the merchant. For example, canceled orders can’t be edited.
  22748. merchantEditable: Boolean!
  22749. # A list of reasons why the order can't be edited. For example, "Canceled orders can’t be edited".
  22750. merchantEditableErrors: [String!]!
  22751. # The application acting as the Merchant of Record for the order.
  22752. merchantOfRecordApp: OrderApp
  22753. # Returns a metafield by namespace and key that belongs to the resource.
  22754. metafield(namespace: String!key: String!): Metafield
  22755. # List of metafield definitions.
  22756. metafieldDefinitions(
  22757. namespace: String
  22758. pinnedStatus: MetafieldDefinitionPinnedStatus = ANY
  22759. first: Int
  22760. after: String
  22761. last: Int
  22762. before: String
  22763. reverse: Boolean = false
  22764. sortKey: MetafieldDefinitionSortKeys = ID
  22765. query: String
  22766. ): MetafieldDefinitionConnection!
  22767. # List of metafields that belong to the resource.
  22768. metafields(
  22769. namespace: String
  22770. first: Int
  22771. after: String
  22772. last: Int
  22773. before: String
  22774. reverse: Boolean = false
  22775. ): MetafieldConnection!
  22776. # The unique identifier for the order that appears on the order page in the Shopify admin and the order status page.
  22777. # For example, "#1001", "EN1001", or "1001-A".
  22778. # This value isn't unique across multiple stores.
  22779. name: String!
  22780. # The net payment for the order, based on the total amount received minus the total amount refunded, in shop and presentment currencies.
  22781. netPaymentSet: MoneyBag!
  22782. # A list of line items that can't be fulfilled.
  22783. # For example, tips and fully refunded line items can't be fulfilled.
  22784. # For a more granular view of the fulfillment status, refer to the FulfillmentOrder object.
  22785. nonFulfillableLineItems(
  22786. first: Int
  22787. after: String
  22788. last: Int
  22789. before: String
  22790. reverse: Boolean = false
  22791. ): LineItemConnection!
  22792. # The contents of the note associated with the order.
  22793. note: String
  22794. # The total amount of duties before returns, in shop and presentment currencies.
  22795. # Returns null if duties aren't applicable.
  22796. originalTotalDutiesSet: MoneyBag
  22797. # The total price of the order at the time of order creation, in shop and presentment currencies.
  22798. originalTotalPriceSet: MoneyBag!
  22799. # The payment collection details for the order.
  22800. paymentCollectionDetails: OrderPaymentCollectionDetails!
  22801. # A list of the names of all payment gateways used for the order.
  22802. # For example, "Shopify Payments" and "Cash on Delivery (COD)".
  22803. paymentGatewayNames: [String!]!
  22804. # The payment terms associated with the order.
  22805. paymentTerms: PaymentTerms
  22806. # The phone number associated with the customer.
  22807. phone: String
  22808. # The fulfillment location that was assigned when the order was created.
  22809. # Use the FulfillmentOrder object for up to date fulfillment location information.
  22810. physicalLocation: Location
  22811. # The payment CurrencyCode of the customer for the order.
  22812. presentmentCurrencyCode: CurrencyCode!
  22813. # Returns a private metafield by namespace and key that belongs to the resource.
  22814. privateMetafield(namespace: String!key: String!): PrivateMetafield
  22815. # List of private metafields that belong to the resource.
  22816. privateMetafields(
  22817. namespace: String
  22818. first: Int
  22819. after: String
  22820. last: Int
  22821. before: String
  22822. reverse: Boolean = false
  22823. ): PrivateMetafieldConnection!
  22824. # The date and time when the order was processed.
  22825. # This date and time might not match the date and time when the order was created.
  22826. processedAt: DateTime!
  22827. # The publication that the order was created from.
  22828. publication: Publication
  22829. # The purchasing entity for the order.
  22830. purchasingEntity: PurchasingEntity
  22831. # The difference between the suggested and actual refund amount of all refunds that have been applied to the order. A positive value indicates a difference in the merchant's favor, and a negative value indicates a difference in the customer's favor.
  22832. refundDiscrepancySet: MoneyBag!
  22833. # Whether the order can be refunded.
  22834. refundable: Boolean!
  22835. # A list of refunds that have been applied to the order.
  22836. refunds(first: Int): [Refund!]!
  22837. # The URL of the source that the order originated from, if found in the domain registry.
  22838. registeredSourceUrl: URL
  22839. # Whether the order has shipping lines or at least one line item on the order that requires shipping.
  22840. requiresShipping: Boolean!
  22841. # Whether any line item on the order can be restocked.
  22842. restockable: Boolean!
  22843. # The fraud risk level of the order.
  22844. riskLevel: OrderRiskLevel!
  22845. # A list of risks associated with the order.
  22846. risks(first: Int): [OrderRisk!]!
  22847. # The mailing address of the customer.
  22848. shippingAddress: MailingAddress
  22849. # A summary of all shipping costs on the order.
  22850. shippingLine: ShippingLine
  22851. # A list of the order's shipping lines.
  22852. shippingLines(
  22853. first: Int
  22854. after: String
  22855. last: Int
  22856. before: String
  22857. reverse: Boolean = false
  22858. ): ShippingLineConnection!
  22859. # A unique POS or third party order identifier.
  22860. # For example, "1234-12-1000" or "111-98567-54". The receipt_number field is derived from this value for POS orders.
  22861. sourceIdentifier: String
  22862. # The sum of the quantities for all line items that contribute to the order's subtotal price.
  22863. subtotalLineItemsQuantity: Int!
  22864. # The sum of the prices for all line items after discounts and before returns, in shop and presentment currencies.
  22865. # If taxesIncluded is true, then the subtotal also includes tax.
  22866. subtotalPriceSet: MoneyBag
  22867. # A suggested refund for the order.
  22868. suggestedRefund(
  22869. shippingAmount: Money
  22870. refundShipping: Boolean
  22871. refundLineItems: [RefundLineItemInput!]
  22872. refundDuties: [RefundDutyInput!]
  22873. suggestFullRefund: Boolean = false
  22874. ): SuggestedRefund
  22875. # A comma separated list of tags associated with the order. Updating tags overwrites
  22876. # any existing tags that were previously added to the order. To add new tags without overwriting
  22877. # existing tags, use the tagsAdd mutation.
  22878. tags: [String!]!
  22879. # A list of all tax lines applied to line items on the order, before returns.
  22880. # Tax line prices represent the total price for all tax lines with the same rate and title.
  22881. taxLines: [TaxLine!]!
  22882. # Whether taxes are included in the subtotal price of the order.
  22883. taxesIncluded: Boolean!
  22884. # Whether the order is a test.
  22885. # Test orders are made using the Shopify Bogus Gateway or a payment provider with test mode enabled.
  22886. # A test order cannot be converted into a real order and vice versa.
  22887. test: Boolean!
  22888. # The authorized amount that is uncaptured or undercaptured, in shop and presentment currencies.
  22889. # This amount isn't adjusted for returns.
  22890. totalCapturableSet: MoneyBag!
  22891. # The total amount discounted on the order before returns, in shop and presentment currencies.
  22892. # This includes both order and line level discounts.
  22893. totalDiscountsSet: MoneyBag
  22894. # The total amount not yet transacted for the order, in shop and presentment currencies.
  22895. # A positive value indicates a difference in the merchant's favor (payment from customer to merchant) and a negative value indicates a difference in the customer's favor (refund from merchant to customer).
  22896. totalOutstandingSet: MoneyBag!
  22897. # The total price of the order, before returns, in shop and presentment currencies.
  22898. # This includes taxes and discounts.
  22899. totalPriceSet: MoneyBag!
  22900. # The total amount received from the customer before returns, in shop and presentment currencies.
  22901. totalReceivedSet: MoneyBag!
  22902. # The total amount that was refunded, in shop and presentment currencies.
  22903. totalRefundedSet: MoneyBag!
  22904. # The total amount of shipping that was refunded, in shop and presentment currencies.
  22905. totalRefundedShippingSet: MoneyBag!
  22906. # The total shipping amount before discounts and returns, in shop and presentment currencies.
  22907. totalShippingPriceSet: MoneyBag!
  22908. # The total tax amount before returns, in shop and presentment currencies.
  22909. totalTaxSet: MoneyBag
  22910. # The sum of all tip amounts for the order, in shop and presentment currencies.
  22911. totalTipReceivedSet: MoneyBag!
  22912. # The total weight of the order before returns, in grams.
  22913. totalWeight: UnsignedInt64
  22914. # A list of transactions associated with the order.
  22915. transactions(
  22916. first: Int
  22917. capturable: Boolean
  22918. manuallyResolvable: Boolean
  22919. ): [OrderTransaction!]!
  22920. # Whether no payments have been made for the order.
  22921. unpaid: Boolean!
  22922. # The date and time when the order was modified last.
  22923. updatedAt: DateTime!
  22924. }
  22925. # Represents the payment schedule for a single payment defined in the payment terms.
  22926. type PaymentSchedule implements Node {
  22927. # Amount owed for this payment schedule.
  22928. amount: MoneyV2!
  22929. # Date and time when the payment schedule is paid or fulfilled.
  22930. completedAt: DateTime
  22931. # Date and time when the payment schedule is due.
  22932. dueAt: DateTime
  22933. # A globally-unique identifier.
  22934. id: ID!
  22935. # Date and time when the invoice is sent.
  22936. issuedAt: DateTime
  22937. }
  22938. # Represents the payment terms for an order or draft order.
  22939. type PaymentTerms implements Node {
  22940. # Duration of payment terms in days based on the payment terms template used to create the payment terms.
  22941. dueInDays: Int
  22942. # A globally-unique identifier.
  22943. id: ID!
  22944. # Whether the payment terms have overdue payment schedules.
  22945. overdue: Boolean!
  22946. # List of schedules for the payment terms.
  22947. paymentSchedules(
  22948. first: Int
  22949. after: String
  22950. last: Int
  22951. before: String
  22952. reverse: Boolean = false
  22953. ): PaymentScheduleConnection!
  22954. # The name of the payment terms template used to create the payment terms.
  22955. paymentTermsName: String!
  22956. # The payment terms template type used to create the payment terms.
  22957. paymentTermsType: PaymentTermsType!
  22958. # The payment terms name, translated into the shop admin's preferred language.
  22959. translatedName: String!
  22960. }
  22961. # Represents a selling method (for example, "Subscribe and save" or "Pre-paid"). Selling plan groups
  22962. # and associated records (selling plans and policies) are deleted 48 hours after a merchant
  22963. # uninstalls their subscriptions app. We recommend backing up these records if you need to restore them later.
  22964. type SellingPlanGroup implements Node {
  22965. # The identifier for app, exposed in Liquid and product JSON.
  22966. appId: String
  22967. # Whether the given product is directly associated to the selling plan group.
  22968. appliesToProduct(productId: ID!): Boolean!
  22969. # Whether the given product variant is directly associated to the selling plan group.
  22970. appliesToProductVariant(productVariantId: ID!): Boolean!
  22971. # Whether any of the product variants of the given product are associated to the selling plan group.
  22972. appliesToProductVariants(productId: ID!): Boolean!
  22973. # The date and time when the selling plan group was created.
  22974. createdAt: DateTime!
  22975. # The merchant-facing description of the selling plan group.
  22976. description: String
  22977. # A globally-unique identifier.
  22978. id: ID!
  22979. # The merchant-facing label of the selling plan group.
  22980. merchantCode: String!
  22981. # The buyer-facing label of the selling plan group.
  22982. name: String!
  22983. # The values of all options available on the selling plan group. Selling plans are grouped together in Liquid when they are created by the same app, and have the same selling_plan_group.name and selling_plan_group.options values.
  22984. options: [String!]!
  22985. # The relative position of the selling plan group for display.
  22986. position: Int
  22987. # A count of products associated to the selling plan group.
  22988. productCount: Int!
  22989. # A count of product variants associated to the selling plan group.
  22990. productVariantCount(productId: ID): Int!
  22991. # Product variants associated to the selling plan group.
  22992. productVariants(
  22993. productId: ID
  22994. first: Int
  22995. after: String
  22996. last: Int
  22997. before: String
  22998. reverse: Boolean = false
  22999. ): ProductVariantConnection!
  23000. # Products associated to the selling plan group.
  23001. products(
  23002. first: Int
  23003. after: String
  23004. last: Int
  23005. before: String
  23006. reverse: Boolean = false
  23007. ): ProductConnection!
  23008. # Selling plans associated to the selling plan group.
  23009. sellingPlans(
  23010. first: Int
  23011. after: String
  23012. last: Int
  23013. before: String
  23014. reverse: Boolean = false
  23015. ): SellingPlanConnection!
  23016. # A summary of the policies associated to the selling plan group.
  23017. summary: String
  23018. }
  23019. # Represents how a product can be sold and purchased. Selling plans and associated records (selling plan groups
  23020. # and policies) are deleted 48 hours after a merchant uninstalls their subscriptions app. We recommend backing
  23021. # up these records if you need to restore them later.
  23022. #
  23023. # For more information on selling plans, refer to
  23024. # Creating and managing selling plans.
  23025. type SellingPlan implements Node {
  23026. # A selling plan policy which describes the recurring billing details.
  23027. billingPolicy: SellingPlanBillingPolicy!
  23028. # The category used to classify the selling plan for reporting purposes.
  23029. category: SellingPlanCategory
  23030. # The date and time when the selling plan was created.
  23031. createdAt: DateTime!
  23032. # A selling plan policy which describes the delivery details.
  23033. deliveryPolicy: SellingPlanDeliveryPolicy!
  23034. # Buyer facing string which describes the selling plan commitment.
  23035. description: String
  23036. # A globally-unique identifier.
  23037. id: ID!
  23038. # When to reserve inventory for a selling plan.
  23039. inventoryPolicy: SellingPlanInventoryPolicy
  23040. # A customer-facing description of the selling plan.
  23041. #
  23042. # If your store supports multiple currencies, then don't include country-specific pricing content,
  23043. # such as "Buy monthly, get 10$ CAD off". This field won't be converted to reflect different currencies.
  23044. name: String!
  23045. # The values of all options available on the selling plan.
  23046. # Selling plans are grouped together in Liquid when they are created by the same app,
  23047. # and have the same selling_plan_group.name and selling_plan_group.options values.
  23048. options: [String!]!
  23049. # Relative position of the selling plan for display. A lower position will be displayed before a higher position.
  23050. position: Int
  23051. # Selling plan pricing details.
  23052. pricingPolicies: [SellingPlanPricingPolicy!]!
  23053. }
  23054. # The selling plan inventory policy.
  23055. type SellingPlanInventoryPolicy {
  23056. # When to reserve inventory for the order.
  23057. reserve: SellingPlanReserve!
  23058. }
  23059. # A payment transaction in the context of an order.
  23060. type OrderTransaction implements Node {
  23061. # The masked account number associated with the payment method.
  23062. accountNumber: String
  23063. # The amount and currency of the transaction in shop and presentment currencies.
  23064. amountSet: MoneyBag!
  23065. authorizationCode: String
  23066. # Authorization code associated with the transaction.
  23067. # The time when the authorization expires. This field is available only to stores on a Shopify Plus plan and is populated only for Shopify Payments authorizations.
  23068. authorizationExpiresAt: DateTime
  23069. # Date and time when the transaction was created.
  23070. createdAt: DateTime!
  23071. # A standardized error code, independent of the payment provider.
  23072. errorCode: OrderTransactionErrorCode
  23073. # The transaction fees charged on the order transaction. Only present for Shopify Payments transactions.
  23074. fees: [TransactionFee!]!
  23075. # The human-readable payment gateway name used to process the transaction.
  23076. formattedGateway: String
  23077. # The payment gateway used to process the transaction.
  23078. gateway: String
  23079. # A globally-unique identifier.
  23080. id: ID!
  23081. # The kind of transaction.
  23082. kind: OrderTransactionKind!
  23083. # Whether the transaction can be manually captured.
  23084. manuallyCapturable: Boolean!
  23085. # Specifies the available amount with currency to refund on the gateway.
  23086. # This value is only available for transactions of type SuggestedRefund.
  23087. maximumRefundableV2: MoneyV2
  23088. # The associated order.
  23089. order: Order
  23090. # The associated parent transaction, for example the authorization of a capture.
  23091. parentTransaction: OrderTransaction
  23092. # The payment icon to display for the transaction.
  23093. paymentIcon: Image
  23094. # Date and time when the transaction was processed.
  23095. processedAt: DateTime
  23096. # The transaction receipt that the payment gateway attaches to the transaction.
  23097. # The value of this field depends on which payment gateway processed the transaction.
  23098. receiptJson: JSON
  23099. # The settlement currency.
  23100. settlementCurrency: CurrencyCode
  23101. # The rate used when converting the transaction amount to settlement currency.
  23102. settlementCurrencyRate: Decimal
  23103. # Contains all Shopify Payments information related to an order transaction.
  23104. # This field is available only to stores on a Shopify Plus plan.
  23105. shopifyPaymentsSet: ShopifyPaymentsTransactionSet
  23106. # The status of this transaction.
  23107. status: OrderTransactionStatus!
  23108. # Whether the transaction is a test transaction.
  23109. test: Boolean!
  23110. # Specifies the available amount with currency to capture on the gateway in shop and presentment currencies.
  23111. # Only available when an amount is capturable or manually mark as paid.
  23112. totalUnsettledSet: MoneyBag
  23113. # Staff member who was logged into the Shopify POS device when the transaction was processed.
  23114. user: StaffMember
  23115. }
  23116. # Transaction fee related to an order transaction.
  23117. type TransactionFee implements Node {
  23118. # Amount of the fee.
  23119. amount: MoneyV2!
  23120. # Flat rate charge for a transaction.
  23121. flatFee: MoneyV2!
  23122. # Name of the credit card flat fee.
  23123. flatFeeName: String
  23124. # A globally-unique identifier.
  23125. id: ID!
  23126. # Percentage charge.
  23127. rate: Decimal!
  23128. # Name of the credit card rate.
  23129. rateName: String
  23130. # Tax amount charged on the fee.
  23131. taxAmount: MoneyV2!
  23132. # Name of the type of fee.
  23133. type: String!
  23134. }
  23135. # Presents all Shopify Payments specific information related to an order transaction.
  23136. type ShopifyPaymentsTransactionSet {
  23137. # Contains all fields related to an extended authorization.
  23138. extendedAuthorizationSet: ShopifyPaymentsExtendedAuthorization
  23139. # Contains all fields related to a refund.
  23140. refundSet: ShopifyPaymentsRefundSet
  23141. }
  23142. # Presents all Shopify Payments specific information related to an order refund.
  23143. type ShopifyPaymentsRefundSet {
  23144. # The acquirer reference number (ARN) code generated for Visa/Mastercard transactions.
  23145. acquirerReferenceNumber: String
  23146. }
  23147. # Presents all Shopify Payments information related to an extended authorization.
  23148. type ShopifyPaymentsExtendedAuthorization {
  23149. # The time after which the extended authorization expires.
  23150. # After the expiry, the merchant is unable to capture the payment.
  23151. extendedAuthorizationExpiresAt: DateTime!
  23152. # The time after which capture will incur an additional fee.
  23153. standardAuthorizationExpiresAt: DateTime!
  23154. }
  23155. # Represents a refund suggested by Shopify based on the items being reimbursed.
  23156. # You can then use the suggested refund object to generate an actual refund.
  23157. type SuggestedRefund {
  23158. # The total monetary value to be refunded in shop and presentment currencies.
  23159. amountSet: MoneyBag!
  23160. # The sum of all the discounted prices of the line items being refunded.
  23161. discountedSubtotalSet: MoneyBag!
  23162. # The total monetary value available to refund in shop and presentment currencies.
  23163. maximumRefundableSet: MoneyBag!
  23164. # A list of duties to be refunded from the order.
  23165. refundDuties: [RefundDuty!]!
  23166. # A list of line items to be refunded, along with restock instructions.
  23167. refundLineItems: [RefundLineItem!]!
  23168. # The shipping costs to be refunded from the order.
  23169. shipping: ShippingRefund!
  23170. # The sum of all the prices of the line items being refunded in shop and presentment currencies.
  23171. subtotalSet: MoneyBag!
  23172. # A list of suggested order transactions.
  23173. suggestedTransactions: [SuggestedOrderTransaction!]!
  23174. # The total cart discount amount that was applied to all line items in this refund.
  23175. totalCartDiscountAmountSet: MoneyBag!
  23176. # The sum of all the duties being refunded from the order in shop and presentment currencies. The value must be positive.
  23177. totalDutiesSet: MoneyBag!
  23178. # The sum of the taxes being refunded from the order in shop and presentment currencies. The value must be positive.
  23179. totalTaxSet: MoneyBag!
  23180. }
  23181. # A suggested transaction. Suggested transaction are usually used in the context of refunds
  23182. # and exchanges.
  23183. type SuggestedOrderTransaction {
  23184. # The masked account number associated with the payment method.
  23185. accountNumber: String
  23186. # The amount and currency of the suggested order transaction in shop and presentment currencies.
  23187. amountSet: MoneyBag!
  23188. # The human-readable payment gateway name suggested to process the transaction.
  23189. formattedGateway: String
  23190. # The suggested payment gateway used to process the transaction.
  23191. gateway: String
  23192. # Specifies the kind of the suggested order transaction.
  23193. kind: SuggestedOrderTransactionKind!
  23194. # Specifies the available amount to refund on the gateway in shop and presentment currencies. Only available within SuggestedRefund.
  23195. maximumRefundableSet: MoneyBag
  23196. # The associated parent transaction, for example the authorization of a capture.
  23197. parentTransaction: OrderTransaction
  23198. }
  23199. # Represents the shipping costs refunded on the Refund.
  23200. type ShippingRefund {
  23201. # The monetary value of the shipping fees to be refunded in shop and presentment currencies.
  23202. amountSet: MoneyBag!
  23203. # The maximum amount of shipping fees currently refundable in shop and presentment currencies.
  23204. maximumRefundableSet: MoneyBag!
  23205. # The monetary value of the tax allocated to shipping fees to be refunded in shop and presentment currencies.
  23206. taxSet: MoneyBag!
  23207. }
  23208. # A line item that's included in a refund.
  23209. type RefundLineItem {
  23210. # The LineItem resource associated to the refunded line item.
  23211. lineItem: LineItem!
  23212. # The inventory restock location.
  23213. location: Location
  23214. # The price of a refunded line item in shop and presentment currencies.
  23215. priceSet: MoneyBag!
  23216. # The quantity of a refunded line item.
  23217. quantity: Int!
  23218. # The type of restock for the refunded line item.
  23219. restockType: RefundLineItemRestockType!
  23220. # Whether the refunded line item was restocked. Not applicable in the context of a SuggestedRefund.
  23221. restocked: Boolean!
  23222. # The subtotal price of a refunded line item in shop and presentment currencies.
  23223. subtotalSet: MoneyBag!
  23224. # The total tax charged on a refunded line item in shop and presentment currencies.
  23225. totalTaxSet: MoneyBag!
  23226. }
  23227. type LineItem implements Node {
  23228. # The subscription contract associated with this line item.
  23229. contract: SubscriptionContract
  23230. # The line item's quantity, minus the removed quantity.
  23231. currentQuantity: Int!
  23232. # A list of attributes that represent custom features or special requests.
  23233. customAttributes: [Attribute!]!
  23234. # The discounts that have been allocated onto the line item by discount applications.
  23235. discountAllocations: [DiscountAllocation!]!
  23236. # The total line price after discounts are applied, in shop and presentment currencies.
  23237. discountedTotalSet: MoneyBag!
  23238. # The approximate split price of a line item unit, in shop and presentment currencies.
  23239. # This value doesn't include discounts applied to the entire order.
  23240. discountedUnitPriceSet: MoneyBag!
  23241. # The duties associated with the line item.
  23242. duties: [Duty!]!
  23243. # A globally-unique identifier.
  23244. id: ID!
  23245. # The image associated to the line item's variant.
  23246. image: Image
  23247. # Whether the line item can be edited or not.
  23248. merchantEditable: Boolean!
  23249. # The name of the product.
  23250. name: String!
  23251. # The total number of units that can't be fulfilled.
  23252. # For example, if items have been refunded, or the item is not something that can be fulfilled,
  23253. # like a tip.Please see the FulfillmentOrder object for more fulfillment details.
  23254. nonFulfillableQuantity: Int!
  23255. # The total price in shop and presentment currencies, without discounts applied.
  23256. # This value is based on the unit price of the variant x quantity.
  23257. originalTotalSet: MoneyBag!
  23258. # The variant unit price without discounts applied, in shop and presentment currencies.
  23259. originalUnitPriceSet: MoneyBag!
  23260. # The Product object associated with this line item's variant.
  23261. product: Product
  23262. # The number of variant units ordered.
  23263. quantity: Int!
  23264. # The line item's quantity, minus the removed quantity.
  23265. refundableQuantity: Int!
  23266. # Whether physical shipping is required for the variant.
  23267. requiresShipping: Boolean!
  23268. # Whether the line item can be restocked.
  23269. restockable: Boolean!
  23270. # The selling plan details associated with the line item.
  23271. sellingPlan: LineItemSellingPlan
  23272. sku: String
  23273. # The variant SKU number.
  23274. # Staff attributed to the initial sale of the line item.
  23275. staffMember: StaffMember
  23276. # The taxes charged for this line item.
  23277. taxLines(first: Int): [TaxLine!]!
  23278. # Whether the variant is taxable.
  23279. taxable: Boolean!
  23280. # The title of the product.
  23281. title: String!
  23282. # The total amount of the discount that's allocated to the line item, in the shop and presentment currencies.
  23283. # This field must be explicitly set using draft orders, Shopify scripts, or the API.
  23284. totalDiscountSet: MoneyBag!
  23285. # The total discounted value of unfulfilled units, in shop and presentment currencies.
  23286. unfulfilledDiscountedTotalSet: MoneyBag!
  23287. # The total price, without any discounts applied.
  23288. # This value is based on the unit price of the variant x quantity of all unfulfilled units, in shop and presentment currencies.
  23289. unfulfilledOriginalTotalSet: MoneyBag!
  23290. # The number of units not yet fulfilled.
  23291. unfulfilledQuantity: Int!
  23292. # The Variant object associated with this line item.
  23293. variant: ProductVariant
  23294. # The name of the variant.
  23295. variantTitle: String
  23296. # The name of the vendor who made the variant.
  23297. vendor: String
  23298. }
  23299. # Custom subscription discount.
  23300. type SubscriptionManualDiscount {
  23301. # Entitled line items used to apply the subscription discount on.
  23302. entitledLines: SubscriptionDiscountEntitledLines!
  23303. # The unique identifier.
  23304. id: ID!
  23305. # The maximum number of times the subscription discount will be applied on orders.
  23306. recurringCycleLimit: Int
  23307. # The reason that the discount on the subscription draft is rejected.
  23308. rejectionReason: SubscriptionDiscountRejectionReason
  23309. # Type of line the discount applies on.
  23310. targetType: DiscountTargetType!
  23311. # The title associated with the subscription discount.
  23312. title: String
  23313. # The type of the subscription discount.
  23314. type: DiscountType!
  23315. # The number of times the discount was applied.
  23316. usageCount: Int!
  23317. # The value of the subscription discount.
  23318. value: SubscriptionDiscountValue!
  23319. }
  23320. # Represents the subscription lines the discount applies on.
  23321. type SubscriptionDiscountEntitledLines {
  23322. # Specify whether the subscription discount will apply on all subscription lines.
  23323. all: Boolean!
  23324. # The list of subscription lines associated with the subscription discount.
  23325. lines(
  23326. first: Int
  23327. after: String
  23328. last: Int
  23329. before: String
  23330. reverse: Boolean = false
  23331. ): SubscriptionLineConnection!
  23332. }
  23333. # Represents a Subscription Line.
  23334. type SubscriptionLine {
  23335. # The price per unit for the subscription line in the contract's currency.
  23336. currentPrice: MoneyV2!
  23337. # List of custom attributes associated to the line item.
  23338. customAttributes: [Attribute!]!
  23339. # Discount allocations.
  23340. discountAllocations: [SubscriptionDiscountAllocation!]!
  23341. # The unique identifier.
  23342. id: ID!
  23343. # Total line price including all discounts.
  23344. lineDiscountedPrice: MoneyV2!
  23345. # Describe the price changes of the line over time.
  23346. pricingPolicy: SubscriptionPricingPolicy
  23347. # The product id associated with the subscription line.
  23348. productId: ID
  23349. # The quantity of the unit selected for the subscription line.
  23350. quantity: Int!
  23351. # Whether physical shipping is required for the variant.
  23352. requiresShipping: Boolean!
  23353. # The selling plan ID associated to the line.
  23354. #
  23355. # Indicates which selling plan was used to create this
  23356. # contract line initially. The selling plan ID is also used to
  23357. # find the associated delivery profile.
  23358. #
  23359. # The subscription contract, subscription line, or selling plan might have
  23360. # changed. As a result, the selling plan's attributes might not
  23361. # match the information on the contract.
  23362. sellingPlanId: ID
  23363. # The selling plan name associated to the line. This name describes
  23364. # the order line items created from this subscription line
  23365. # for both merchants and customers.
  23366. #
  23367. # The value can be different from the selling plan's name, because both
  23368. # the selling plan's name and the subscription line's selling_plan_name
  23369. # attribute can be updated independently.
  23370. sellingPlanName: String
  23371. # Variant SKU number of the item associated with the subscription line.
  23372. sku: String
  23373. # Whether the variant is taxable.
  23374. taxable: Boolean!
  23375. # Product title of the item associated with the subscription line.
  23376. title: String!
  23377. # The product variant id associated with the subscription line.
  23378. variantId: ID
  23379. # The image associated with the line item's variant or product.
  23380. variantImage: Image
  23381. # Product variant title of the item associated with the subscription line.
  23382. variantTitle: String
  23383. }
  23384. # Represents a Subscription Delivery Policy.
  23385. type SubscriptionDeliveryPolicy {
  23386. # The specific anchor dates upon which the delivery interval calculations should be made.
  23387. anchors: [SellingPlanAnchor!]!
  23388. # The kind of interval that is associated with this schedule (e.g. Monthly, Weekly, etc).
  23389. interval: SellingPlanInterval!
  23390. # The number of delivery intervals between deliveries.
  23391. intervalCount: Int!
  23392. }
  23393. # Represents a Subscription Billing Policy.
  23394. type SubscriptionBillingPolicy {
  23395. # Specific anchor dates upon which the billing interval calculations should be made.
  23396. anchors: [SellingPlanAnchor!]!
  23397. # The kind of interval that is associated with this schedule (e.g. Monthly, Weekly, etc).
  23398. interval: SellingPlanInterval!
  23399. # The number of billing intervals between invoices.
  23400. intervalCount: Int!
  23401. # Maximum amount of cycles after which the subscription ends.
  23402. maxCycles: Int
  23403. # Minimum amount of cycles required in the subscription.
  23404. minCycles: Int
  23405. }
  23406. # Represents a selling plan policy anchor.
  23407. type SellingPlanAnchor {
  23408. # The cutoff day for the anchor.
  23409. #
  23410. # If type is WEEKDAY, then the value must be between 1-7. Shopify interprets
  23411. # the days of the week according to ISO 8601, where 1 is Monday.
  23412. #
  23413. # If type is MONTHDAY, then the value must be between 1-31.
  23414. #
  23415. # If type is YEARDAY, then the value must be null.
  23416. cutoffDay: Int
  23417. # The day of the anchor.
  23418. #
  23419. # If type is WEEKDAY, then the value must be between 1-7. Shopify interprets
  23420. # the days of the week according to ISO 8601, where 1 is Monday.
  23421. #
  23422. # If type is not WEEKDAY, then the value must be between 1-31.
  23423. day: Int!
  23424. # The month of the anchor. If type is different than YEARDAY, then the value must
  23425. # be null or between 1-12.
  23426. month: Int
  23427. # Represents the anchor type, it can be one one of WEEKDAY, MONTHDAY, YEARDAY.
  23428. type: SellingPlanAnchorType!
  23429. }
  23430. # Represents a Subscription Line Pricing Policy.
  23431. type SubscriptionPricingPolicy {
  23432. # The base price per unit for the subscription line in the contract's currency.
  23433. basePrice: MoneyV2!
  23434. # The adjustments per cycle for the subscription line.
  23435. cycleDiscounts: [SubscriptionCyclePriceAdjustment!]!
  23436. }
  23437. # Represents a Subscription Line Pricing Cycle Adjustment.
  23438. type SubscriptionCyclePriceAdjustment {
  23439. # Price adjustment type.
  23440. adjustmentType: SellingPlanPricingPolicyAdjustmentType!
  23441. # Price adjustment value.
  23442. adjustmentValue: SellingPlanPricingPolicyAdjustmentValue!
  23443. # The number of cycles required before this pricing policy applies.
  23444. afterCycle: Int!
  23445. # The computed price after the adjustments applied.
  23446. computedPrice: MoneyV2!
  23447. }
  23448. # Represents what a particular discount reduces from a line price.
  23449. type SubscriptionDiscountAllocation {
  23450. # Allocation amount.
  23451. amount: MoneyV2!
  23452. # Discount that created the allocation.
  23453. discount: SubscriptionDiscount!
  23454. }
  23455. # Represents the selling plan for a line item.
  23456. type LineItemSellingPlan {
  23457. # The name of the selling plan for display purposes.
  23458. name: String!
  23459. # The ID of the selling plan associated with the line item.
  23460. sellingPlanId: ID
  23461. }
  23462. type Duty implements Node {
  23463. # The ISO 3166-1 alpha-2 country code of the country of origin used in calculating the duty.
  23464. countryCodeOfOrigin: CountryCode
  23465. # The harmonized system code of the item used in calculating the duty.
  23466. harmonizedSystemCode: String
  23467. # A globally-unique identifier.
  23468. id: ID!
  23469. # The amount of the duty.
  23470. price: MoneyBag!
  23471. # A list of taxes charged on the duty.
  23472. taxLines: [TaxLine!]!
  23473. }
  23474. # Represents a refunded duty.
  23475. type RefundDuty {
  23476. # The amount of a refunded duty in shop and presentment currencies.
  23477. amountSet: MoneyBag!
  23478. # The duty associated with this refunded duty.
  23479. originalDuty: Duty
  23480. }
  23481. # The record of the line items and transactions that were refunded to a customer,
  23482. # along with restocking instructions for refunded line items.
  23483. type Refund implements LegacyInteroperability&Node {
  23484. # The date and time when the refund was created.
  23485. createdAt: DateTime
  23486. # A list of the refunded duties as part of this refund.
  23487. duties: [RefundDuty!]
  23488. # A globally-unique identifier.
  23489. id: ID!
  23490. # The ID of the corresponding resource in the REST Admin API.
  23491. legacyResourceId: UnsignedInt64!
  23492. # The optional note associated with the refund.
  23493. note: String
  23494. # The order associated with the refund.
  23495. order: Order!
  23496. # The RefundLineItem resources attached to the refund.
  23497. refundLineItems(
  23498. first: Int
  23499. after: String
  23500. last: Int
  23501. before: String
  23502. reverse: Boolean = false
  23503. ): RefundLineItemConnection!
  23504. # The staff member who created the refund.
  23505. staffMember: StaffMember
  23506. # The total amount across all transactions for the refund, in shop and presentment currencies.
  23507. totalRefundedSet: MoneyBag!
  23508. # The transactions associated with the refund.
  23509. transactions(
  23510. first: Int
  23511. after: String
  23512. last: Int
  23513. before: String
  23514. reverse: Boolean = false
  23515. ): OrderTransactionConnection!
  23516. # The date and time when the refund was updated.
  23517. updatedAt: DateTime!
  23518. }
  23519. # Represents a fraud check on an order.
  23520. type OrderRisk {
  23521. # Whether the risk level is shown in the Shopify admin.
  23522. # If false, then this order risk is ignored when Shopify determines the overall risk level for the order.
  23523. display: Boolean!
  23524. # The likelihood that an order is fraudulent, based on this order risk.
  23525. #
  23526. # The level can be set by Shopify risk analysis or by an app.
  23527. level: OrderRiskLevel
  23528. # The risk message that's shown to the merchant in the Shopify admin.
  23529. message: String
  23530. }
  23531. # The payment collection details for an order that requires additional payment following an edit to the order.
  23532. type OrderPaymentCollectionDetails {
  23533. # The URL to use for collecting an additional payment on the order.
  23534. additionalPaymentCollectionUrl: URL
  23535. # The list of vaulted payment methods for the order with their permissions.
  23536. vaultedPaymentMethods: [PaymentMandate!]
  23537. }
  23538. # A payment instrument and the permission
  23539. # the owner of the instrument gives to the merchant to debit it.
  23540. type PaymentMandate implements Node {
  23541. # The unique identifier of a payment mandate.
  23542. id: ID!
  23543. # The outputs details of the payment instrument.
  23544. paymentInstrument: PaymentInstrument!
  23545. }
  23546. # The fields required to reimburse duties on a refund.
  23547. input RefundDutyInput {
  23548. # The ID of the duty in the refund.
  23549. dutyId: ID!
  23550. # The type of refund for this duty.
  23551. refundType: RefundDutyRefundType
  23552. }
  23553. # The fields required to reimburse line items on a refund.
  23554. input RefundLineItemInput {
  23555. # The ID of the line item in the refund.
  23556. lineItemId: ID!
  23557. # The quantity of the associated line item to be refunded.
  23558. quantity: Int!
  23559. # The type of restock for this line item.
  23560. restockType: RefundLineItemRestockType
  23561. # The intended location for restocking. If the restockType is set to NO_RESTOCK, then this value is empty.` + "`" + `
  23562. locationId: ID
  23563. }
  23564. # A summary of the important details for a dispute on an order.
  23565. type OrderDisputeSummary implements Node {
  23566. # A globally-unique identifier.
  23567. id: ID!
  23568. # The type that the dispute was initiated as.
  23569. initiatedAs: DisputeType!
  23570. # The current status of the dispute.
  23571. status: DisputeStatus!
  23572. }
  23573. # The tax allocated to a sale from a single tax line.
  23574. type SaleTax {
  23575. # The portion of the total tax amount on the related sale that comes from the associated tax line.
  23576. amount: MoneyBag!
  23577. # The unique identifier for the sale tax.
  23578. id: ID!
  23579. # The tax line associated with the sale.
  23580. taxLine: TaxLine!
  23581. }
  23582. # A record of an execution of the subscription billing process. Billing attempts use
  23583. #idempotency keys to avoid duplicate order creation. A successful billing attempt
  23584. #will create an order.
  23585. type SubscriptionBillingAttempt implements Node {
  23586. # The date and time when the billing attempt was completed.
  23587. completedAt: DateTime
  23588. # The date and time when the billing attempt was created.
  23589. createdAt: DateTime!
  23590. # A code corresponding to a payment error during processing.
  23591. errorCode: SubscriptionBillingAttemptErrorCode
  23592. # A message describing a payment error during processing.
  23593. errorMessage: String
  23594. # A globally-unique identifier.
  23595. id: ID!
  23596. # A unique key generated by the client to avoid duplicate payments.
  23597. idempotencyKey: String!
  23598. # The URL where the customer needs to be redirected so they can complete the 3D Secure payment flow.
  23599. nextActionUrl: URL
  23600. # The result of this billing attempt if completed successfully.
  23601. order: Order
  23602. # The date and time used to calculate fulfillment intervals for a billing attempt that
  23603. # successfully completed after the current anchor date. To prevent fulfillment from being
  23604. # pushed to the next anchor date, this field can override the billing attempt date.
  23605. originTime: DateTime
  23606. # Whether the billing attempt is still processing.
  23607. ready: Boolean!
  23608. # The subscription contract.
  23609. subscriptionContract: SubscriptionContract!
  23610. }
  23611. # Represents the payment terms template object.
  23612. type PaymentTermsTemplate implements Node {
  23613. # The description of the payment terms template.
  23614. description: String!
  23615. # The number of days between the issued date and due date if this is the net type of payment terms.
  23616. dueInDays: Int
  23617. # A globally-unique identifier.
  23618. id: ID!
  23619. # The name of the payment terms template.
  23620. name: String!
  23621. # The type of the payment terms template.
  23622. paymentTermsType: PaymentTermsType!
  23623. # The translated payment terms template name.
  23624. translatedName: String!
  23625. }
  23626. # The fixed selling plan billing policy.
  23627. type SellingPlanFixedBillingPolicy {
  23628. # The checkout charge when the full amount isn't charged at checkout.
  23629. checkoutCharge: SellingPlanCheckoutCharge!
  23630. # The exact time when to capture the full payment.
  23631. remainingBalanceChargeExactTime: DateTime
  23632. # The period after remaining_balance_charge_trigger, before capturing the full payment.
  23633. # Expressed as an ISO8601 duration.
  23634. remainingBalanceChargeTimeAfterCheckout: String
  23635. # When to capture payment for amount due.
  23636. remainingBalanceChargeTrigger: SellingPlanRemainingBalanceChargeTrigger!
  23637. }
  23638. # The amount charged at checkout when the full amount isn't charged at checkout.
  23639. type SellingPlanCheckoutCharge {
  23640. # The charge type for the checkout charge.
  23641. type: SellingPlanCheckoutChargeType!
  23642. # The charge value for the checkout charge.
  23643. value: SellingPlanCheckoutChargeValue!
  23644. }
  23645. # Represents a recurring selling plan billing policy.
  23646. type SellingPlanRecurringBillingPolicy {
  23647. # Specific anchor dates upon which the billing interval calculations should be made.
  23648. anchors: [SellingPlanAnchor!]!
  23649. # The date and time when the selling plan billing policy was created.
  23650. createdAt: DateTime!
  23651. # The billing frequency, it can be either: day, week, month or year.
  23652. interval: SellingPlanInterval!
  23653. # The number of intervals between billings.
  23654. intervalCount: Int!
  23655. # Maximum number of billing iterations.
  23656. maxCycles: Int
  23657. # Minimum number of billing iterations.
  23658. minCycles: Int
  23659. }
  23660. # Represents a fixed selling plan delivery policy.
  23661. type SellingPlanFixedDeliveryPolicy {
  23662. # The specific anchor dates upon which the delivery interval calculations should be made.
  23663. anchors: [SellingPlanAnchor!]!
  23664. # A buffer period for orders to be included in next fulfillment anchor.
  23665. cutoff: Int
  23666. # The date and time when the fulfillment should trigger.
  23667. fulfillmentExactTime: DateTime
  23668. # What triggers the fulfillment. The value must be one of ANCHOR, ASAP, EXACT_TIME, or UNKNOWN.
  23669. fulfillmentTrigger: SellingPlanFulfillmentTrigger!
  23670. # Whether the delivery policy is merchant or buyer-centric.
  23671. # Buyer-centric delivery policies state the time when the buyer will receive the goods.
  23672. # Merchant-centric delivery policies state the time when the fulfillment should be started.
  23673. # Currently, only merchant-centric delivery policies are supported.
  23674. intent: SellingPlanFixedDeliveryPolicyIntent!
  23675. # The fulfillment or delivery behavior of the first fulfillment when the order is placed before the anchor.
  23676. # The default value for this field is ASAP.
  23677. preAnchorBehavior: SellingPlanFixedDeliveryPolicyPreAnchorBehavior!
  23678. }
  23679. # Represents a recurring selling plan delivery policy.
  23680. type SellingPlanRecurringDeliveryPolicy {
  23681. # The specific anchor dates upon which the delivery interval calculations should be made.
  23682. anchors: [SellingPlanAnchor!]!
  23683. # The date and time when the selling plan delivery policy was created.
  23684. createdAt: DateTime!
  23685. # A buffer period for orders to be included in a cycle.
  23686. cutoff: Int
  23687. # Whether the delivery policy is merchant or buyer-centric.
  23688. # Buyer-centric delivery policies state the time when the buyer will receive the goods.
  23689. # Merchant-centric delivery policies state the time when the fulfillment should be started.
  23690. # Currently, only merchant-centric delivery policies are supported.
  23691. intent: SellingPlanRecurringDeliveryPolicyIntent!
  23692. # The delivery frequency, it can be either: day, week, month or year.
  23693. interval: SellingPlanInterval!
  23694. # The number of intervals between deliveries.
  23695. intervalCount: Int!
  23696. # The fulfillment or delivery behavior of the first fulfillment when the order is placed before the anchor.
  23697. # The default value for this field is ASAP.
  23698. preAnchorBehavior: SellingPlanRecurringDeliveryPolicyPreAnchorBehavior!
  23699. }
  23700. # The percentage value of the price used for checkout charge.
  23701. type SellingPlanCheckoutChargePercentageValue {
  23702. # The percentage value of the price used for checkout charge.
  23703. percentage: Float!
  23704. }
  23705. # Represents a fixed selling plan pricing policy.
  23706. type SellingPlanFixedPricingPolicy implements SellingPlanPricingPolicyBase {
  23707. # The price adjustment type.
  23708. adjustmentType: SellingPlanPricingPolicyAdjustmentType!
  23709. # The price adjustment value.
  23710. adjustmentValue: SellingPlanPricingPolicyAdjustmentValue!
  23711. # The date and time when the fixed selling plan pricing policy was created.
  23712. createdAt: DateTime!
  23713. }
  23714. # Represents a recurring selling plan pricing policy.
  23715. type SellingPlanRecurringPricingPolicy implements SellingPlanPricingPolicyBase {
  23716. # The price adjustment type.
  23717. adjustmentType: SellingPlanPricingPolicyAdjustmentType!
  23718. # The price adjustment value.
  23719. adjustmentValue: SellingPlanPricingPolicyAdjustmentValue!
  23720. # Cycle after which this pricing policy applies.
  23721. afterCycle: Int
  23722. # The date and time when the recurring selling plan pricing policy was created.
  23723. createdAt: DateTime!
  23724. }
  23725. `, BuiltIn: false},
  23726. {Name: "../../../ext/product.graphql", Input: `# The Product resource lets you manage products in a merchant’s store.
  23727. # You can use ProductVariants to create or update different versions of the same product.
  23728. # You can also add or update product Media. Products can be organized by grouping them into a Collection.
  23729. type Product
  23730. implements HasMetafieldDefinitions&HasMetafields&HasPublishedTranslations&LegacyInteroperability&Navigable&Node&OnlineStorePreviewable&Publishable
  23731. @key(fields: "id") {
  23732. # The number of publications a resource is published to without feedback errors.
  23733. availablePublicationCount: Int!
  23734. # A list of the collections that include the product.
  23735. collections(
  23736. first: Int
  23737. after: String
  23738. last: Int
  23739. before: String
  23740. reverse: Boolean = false
  23741. sortKey: CollectionSortKeys = ID
  23742. query: String
  23743. ): CollectionConnection!
  23744. # The pricing that applies for a customer in a given context.
  23745. contextualPricing(context: ContextualPricingContext!): ProductContextualPricing!
  23746. # The date and time (ISO 8601 format) when the product was created.
  23747. createdAt: DateTime!
  23748. # A default cursor that returns the single next record, sorted ascending by ID.
  23749. defaultCursor: String!
  23750. # A stripped description of the product, single line with HTML tags removed.
  23751. description(truncateAt: Int): String!
  23752. # The description of the product, complete with HTML formatting.
  23753. descriptionHtml: HTML!
  23754. # The featured image for the product.
  23755. featuredImage: Image
  23756. # The featured media for the product.
  23757. featuredMedia: Media
  23758. # Information about the product that's provided through resource feedback.
  23759. feedback: ResourceFeedback
  23760. # The theme template used when viewing the gift card in a store.
  23761. giftCardTemplateSuffix: String
  23762. # A unique human-friendly string of the product's title.
  23763. handle: String!
  23764. # Whether the product has only a single variant with the default option and value.
  23765. hasOnlyDefaultVariant: Boolean!
  23766. # Whether the product has out of stock variants.
  23767. hasOutOfStockVariants: Boolean!
  23768. # A globally-unique identifier.
  23769. id: ID!
  23770. # The images associated with the product.
  23771. images(
  23772. first: Int
  23773. after: String
  23774. last: Int
  23775. before: String
  23776. reverse: Boolean = false
  23777. sortKey: ProductImageSortKeys = POSITION
  23778. ): ImageConnection!
  23779. # Whether the product is in a given collection.
  23780. inCollection(id: ID!): Boolean!
  23781. # Whether the product is a gift card.
  23782. isGiftCard: Boolean!
  23783. # The ID of the corresponding resource in the REST Admin API.
  23784. legacyResourceId: UnsignedInt64!
  23785. # The media associated with the product. This can include images, 3D models, or videos.
  23786. media(
  23787. first: Int
  23788. after: String
  23789. last: Int
  23790. before: String
  23791. reverse: Boolean = false
  23792. sortKey: ProductMediaSortKeys = POSITION
  23793. ): MediaConnection!
  23794. # Total count of media belonging to a product.
  23795. mediaCount: Int!
  23796. # Returns a metafield by namespace and key that belongs to the resource.
  23797. metafield(namespace: String!key: String!): Metafield
  23798. # List of metafield definitions.
  23799. metafieldDefinitions(
  23800. namespace: String
  23801. pinnedStatus: MetafieldDefinitionPinnedStatus = ANY
  23802. first: Int
  23803. after: String
  23804. last: Int
  23805. before: String
  23806. reverse: Boolean = false
  23807. sortKey: MetafieldDefinitionSortKeys = ID
  23808. query: String
  23809. ): MetafieldDefinitionConnection!
  23810. # List of metafields that belong to the resource.
  23811. metafields(
  23812. namespace: String
  23813. first: Int
  23814. after: String
  23815. last: Int
  23816. before: String
  23817. reverse: Boolean = false
  23818. ): MetafieldConnection!
  23819. # The online store preview URL.
  23820. onlineStorePreviewUrl: URL
  23821. # The online store URL for the product.
  23822. # A value of null indicates that the product is not published to the Online Store sales channel.
  23823. onlineStoreUrl: URL
  23824. # A list of product options. The limit is specified by Shop.resourceLimits.maxProductOptions.
  23825. options(first: Int): [ProductOption!]!
  23826. # The price range of the product with prices formatted as decimals.
  23827. priceRangeV2: ProductPriceRangeV2!
  23828. # Returns a private metafield by namespace and key that belongs to the resource.
  23829. privateMetafield(namespace: String!key: String!): PrivateMetafield
  23830. # List of private metafields that belong to the resource.
  23831. privateMetafields(
  23832. namespace: String
  23833. first: Int
  23834. after: String
  23835. last: Int
  23836. before: String
  23837. reverse: Boolean = false
  23838. ): PrivateMetafieldConnection!
  23839. # The product category specified by the merchant.
  23840. productCategory: ProductCategory
  23841. # The product type specified by the merchant.
  23842. productType: String!
  23843. # The number of publications a resource is published on.
  23844. publicationCount(onlyPublished: Boolean = true): Int!
  23845. # The date and time (ISO 8601 format) when the product was published to the Online Store.
  23846. publishedAt: DateTime
  23847. # Check to see whether the resource is published to the calling app's publication.
  23848. publishedOnCurrentPublication: Boolean!
  23849. # Check to see whether the resource is published to a given publication.
  23850. publishedOnPublication(publicationId: ID!): Boolean!
  23851. # Whether the product can only be purchased with a selling plan (subscription).
  23852. # Products that are sold on subscription (requiresSellingPlan: true) can be updated only for online stores.
  23853. # If you update a product to be subscription only, then the product is unpublished from all channels except the online store.
  23854. requiresSellingPlan: Boolean!
  23855. # The resource that is either published or staged to be published to the calling app's publication.
  23856. # Requires the read_product_listings scope.
  23857. resourcePublicationOnCurrentPublication: ResourcePublicationV2
  23858. # The list of resources that are published to a publication.
  23859. resourcePublications(
  23860. onlyPublished: Boolean = true
  23861. first: Int
  23862. after: String
  23863. last: Int
  23864. before: String
  23865. reverse: Boolean = false
  23866. ): ResourcePublicationConnection!
  23867. # The list of resources that are either published or staged to be published to a publication.
  23868. resourcePublicationsV2(
  23869. onlyPublished: Boolean = true
  23870. first: Int
  23871. after: String
  23872. last: Int
  23873. before: String
  23874. reverse: Boolean = false
  23875. ): ResourcePublicationV2Connection!
  23876. # Count of selling plan groups associated with the product.
  23877. sellingPlanGroupCount: Int!
  23878. # A list of all selling plan groups defined in the current shop associated with the product either directly or through any of its variants.
  23879. sellingPlanGroups(
  23880. first: Int
  23881. after: String
  23882. last: Int
  23883. before: String
  23884. reverse: Boolean = false
  23885. ): SellingPlanGroupConnection!
  23886. # SEO information of the product.
  23887. seo: SEO!
  23888. # The product status. This controls visibility across all channels.
  23889. status: ProductStatus!
  23890. # A comma separated list of tags associated with the product. Updating tags overwrites
  23891. # any existing tags that were previously added to the product. To add new tags without overwriting
  23892. # existing tags, use the tagsAdd mutation.
  23893. tags: [String!]!
  23894. # The theme template used when viewing the product in a store.
  23895. templateSuffix: String
  23896. # The title of the product.
  23897. title: String!
  23898. # The quantity of inventory in stock.
  23899. totalInventory: Int!
  23900. # The number of variants that are associated with the product.
  23901. totalVariants: Int!
  23902. # Whether inventory tracking has been enabled for the product.
  23903. tracksInventory: Boolean!
  23904. # The translations associated with the resource.
  23905. translations(locale: String!marketId: ID): [PublishedTranslation!]!
  23906. # The list of publications that the resource is not published to.
  23907. unpublishedPublications(
  23908. first: Int
  23909. after: String
  23910. last: Int
  23911. before: String
  23912. reverse: Boolean = false
  23913. ): PublicationConnection!
  23914. # The date and time when the product was last modified.
  23915. # A product's updatedAt value can change for different reasons. For example, if an order
  23916. # is placed for a product that has inventory tracking set up, then the inventory adjustment
  23917. # is counted as an update.
  23918. updatedAt: DateTime!
  23919. # A list of variants associated with the product.
  23920. variants(
  23921. first: Int
  23922. after: String
  23923. last: Int
  23924. before: String
  23925. reverse: Boolean = false
  23926. sortKey: ProductVariantSortKeys = POSITION
  23927. ): ProductVariantConnection!
  23928. # The name of the product's vendor.
  23929. vendor: String!
  23930. }
  23931. # Represents a product variant.
  23932. type ProductVariant implements HasMetafieldDefinitions&HasMetafields&HasPublishedTranslations&LegacyInteroperability&Navigable&Node {
  23933. # Whether the product variant is available for sale.
  23934. availableForSale: Boolean!
  23935. # The value of the barcode associated with the product.
  23936. barcode: String
  23937. # The compare-at price of the variant in the default shop currency.
  23938. compareAtPrice: Money
  23939. # The pricing that applies for a customer in a given context.
  23940. contextualPricing(context: ContextualPricingContext!): ProductVariantContextualPricing!
  23941. # The date and time when the variant was created.
  23942. createdAt: DateTime!
  23943. # A default cursor that returns the single next record, sorted ascending by ID.
  23944. defaultCursor: String!
  23945. # The delivery profile for the variant.
  23946. deliveryProfile: DeliveryProfile
  23947. # Display name of the variant, based on product's title + variant's title.
  23948. displayName: String!
  23949. # Whether changes to the fulfillment service for the product variant are allowed.
  23950. fulfillmentServiceEditable: EditableProperty!
  23951. # A globally-unique identifier.
  23952. id: ID!
  23953. # The featured image for the variant.
  23954. image: Image
  23955. # The inventory item, which is used to query for inventory information.
  23956. inventoryItem: InventoryItem!
  23957. # Whether customers are allowed to place an order for the product variant when it's out of stock.
  23958. inventoryPolicy: ProductVariantInventoryPolicy!
  23959. # The total sellable quantity of the variant.
  23960. inventoryQuantity: Int
  23961. # The ID of the corresponding resource in the REST Admin API.
  23962. legacyResourceId: UnsignedInt64!
  23963. # The media associated with the product variant.
  23964. media(
  23965. first: Int
  23966. after: String
  23967. last: Int
  23968. before: String
  23969. reverse: Boolean = false
  23970. ): MediaConnection!
  23971. # Returns a metafield by namespace and key that belongs to the resource.
  23972. metafield(namespace: String!key: String!): Metafield
  23973. # List of metafield definitions.
  23974. metafieldDefinitions(
  23975. namespace: String
  23976. pinnedStatus: MetafieldDefinitionPinnedStatus = ANY
  23977. first: Int
  23978. after: String
  23979. last: Int
  23980. before: String
  23981. reverse: Boolean = false
  23982. sortKey: MetafieldDefinitionSortKeys = ID
  23983. query: String
  23984. ): MetafieldDefinitionConnection!
  23985. # List of metafields that belong to the resource.
  23986. metafields(
  23987. namespace: String
  23988. first: Int
  23989. after: String
  23990. last: Int
  23991. before: String
  23992. reverse: Boolean = false
  23993. ): MetafieldConnection!
  23994. # The order of the product variant in the list of product variants. The first position in the list is 1.
  23995. position: Int!
  23996. # The price of the product variant in the default shop currency.
  23997. price: Money!
  23998. # Returns a private metafield by namespace and key that belongs to the resource.
  23999. privateMetafield(namespace: String!key: String!): PrivateMetafield
  24000. # List of private metafields that belong to the resource.
  24001. privateMetafields(
  24002. namespace: String
  24003. first: Int
  24004. after: String
  24005. last: Int
  24006. before: String
  24007. reverse: Boolean = false
  24008. ): PrivateMetafieldConnection!
  24009. # The product that this variant belongs to.
  24010. product: Product!
  24011. # List of product options applied to the variant.
  24012. selectedOptions: [SelectedOption!]!
  24013. # The total sellable quantity of the variant for online channels.
  24014. # This doesn't represent the total available inventory or capture
  24015. # limitations based on customer location.
  24016. sellableOnlineQuantity: Int!
  24017. # Count of selling plan groups associated with the product variant.
  24018. sellingPlanGroupCount: Int!
  24019. # A list of all selling plan groups defined in the current shop associated with the product variant.
  24020. sellingPlanGroups(
  24021. first: Int
  24022. after: String
  24023. last: Int
  24024. before: String
  24025. reverse: Boolean = false
  24026. ): SellingPlanGroupConnection!
  24027. # An identifier for the product variant in the shop. Required in order to connect to a fulfillment service.
  24028. sku: String
  24029. # The tax code for the product variant.
  24030. taxCode: String
  24031. # Whether a tax is charged when the product variant is sold.
  24032. taxable: Boolean!
  24033. # The title of the product variant.
  24034. title: String!
  24035. # The translations associated with the resource.
  24036. translations(locale: String!marketId: ID): [PublishedTranslation!]!
  24037. # The date and time (ISO 8601 format) when the product variant was last modified.
  24038. updatedAt: DateTime!
  24039. # The weight of the product variant in the unit system specified with weight_unit.
  24040. weight: Float
  24041. # The unit of measurement that applies to the product variant's weight.
  24042. # If you don't specify a value for weight_unit, then the shop's default unit of measurement is applied. Valid values: g, kg, oz, lb.
  24043. weightUnit: WeightUnit!
  24044. }
  24045. # The product property names. For example, "Size", "Color", and "Material".
  24046. # Variants are selected based on permutations of these options.
  24047. # The limit for each product property name is 255 characters.
  24048. type ProductOption implements HasPublishedTranslations&Node {
  24049. # A globally-unique identifier.
  24050. id: ID!
  24051. # The product option’s name.
  24052. name: String!
  24053. # The product option's position.
  24054. position: Int!
  24055. # The translations associated with the resource.
  24056. translations(locale: String!marketId: ID): [PublishedTranslation!]!
  24057. # The corresponding value to the product option name.
  24058. values: [String!]!
  24059. }
  24060. # The details of a specific product category within the Shopify product taxonomy.
  24061. type ProductCategory {
  24062. # The product taxonomy node associated with the product category.
  24063. productTaxonomyNode: ProductTaxonomyNode
  24064. }
  24065. # Represents a group of products that can be displayed in online stores and other sales channels in categories, which makes it easy for customers to find them. For example, an athletics store might create different collections for running attire, shoes, and accessories.
  24066. #
  24067. # Collections can be defined by conditions, such as whether they match certain product tags.
  24068. # These are called smart or automated collections.
  24069. #
  24070. # Collections can also be created for a custom group of products. These are called custom or manual collections.
  24071. type Collection implements HasMetafieldDefinitions&HasMetafields&HasPublishedTranslations&Node&Publishable {
  24072. # The number of publications a resource is published to without feedback errors.
  24073. availablePublicationCount: Int!
  24074. # A single-line, text-only description of the collection, stripped of any HTML tags and formatting that were included in the description.
  24075. description(truncateAt: Int): String!
  24076. # The description of the collection, including any HTML tags and formatting.
  24077. # This content is typically displayed to customers, such as on an online store, depending on the theme.
  24078. descriptionHtml: HTML!
  24079. # Information about the collection that's provided through resource feedback.
  24080. feedback: ResourceFeedback
  24081. # A unique string that identifies the collection. If a handle isn't specified when a collection is created, it's automatically generated from the collection's original title, and typically includes words from the title separated by hyphens. For example, a collection that was created with the title Summer Catalog 2022 might have the handle summer-catalog-2022.
  24082. #
  24083. # If the title is changed, the handle doesn't automatically change.
  24084. #
  24085. # The handle can be used in themes by the Liquid templating language to refer to the collection, but using the ID is preferred because it never changes.
  24086. handle: String!
  24087. # Whether the collection includes the specified product.
  24088. hasProduct(id: ID!): Boolean!
  24089. # A globally-unique identifier.
  24090. id: ID!
  24091. # The image associated with the collection.
  24092. image: Image
  24093. # The ID of the corresponding resource in the REST Admin API.
  24094. legacyResourceId: UnsignedInt64!
  24095. # Returns a metafield by namespace and key that belongs to the resource.
  24096. metafield(namespace: String!key: String!): Metafield
  24097. # List of metafield definitions.
  24098. metafieldDefinitions(
  24099. namespace: String
  24100. pinnedStatus: MetafieldDefinitionPinnedStatus = ANY
  24101. first: Int
  24102. after: String
  24103. last: Int
  24104. before: String
  24105. reverse: Boolean = false
  24106. sortKey: MetafieldDefinitionSortKeys = ID
  24107. query: String
  24108. ): MetafieldDefinitionConnection!
  24109. # List of metafields that belong to the resource.
  24110. metafields(
  24111. namespace: String
  24112. first: Int
  24113. after: String
  24114. last: Int
  24115. before: String
  24116. reverse: Boolean = false
  24117. ): MetafieldConnection!
  24118. # Returns a private metafield by namespace and key that belongs to the resource.
  24119. privateMetafield(namespace: String!key: String!): PrivateMetafield
  24120. # List of private metafields that belong to the resource.
  24121. privateMetafields(
  24122. namespace: String
  24123. first: Int
  24124. after: String
  24125. last: Int
  24126. before: String
  24127. reverse: Boolean = false
  24128. ): PrivateMetafieldConnection!
  24129. # The products that are included in the collection.
  24130. products(
  24131. first: Int
  24132. after: String
  24133. last: Int
  24134. before: String
  24135. reverse: Boolean = false
  24136. sortKey: ProductCollectionSortKeys = COLLECTION_DEFAULT
  24137. ): ProductConnection!
  24138. # The number of products in the collection.
  24139. productsCount: Int!
  24140. # The number of publications a resource is published on.
  24141. publicationCount(onlyPublished: Boolean = true): Int!
  24142. # Check to see whether the resource is published to the calling app's publication.
  24143. publishedOnCurrentPublication: Boolean!
  24144. # Check to see whether the resource is published to a given publication.
  24145. publishedOnPublication(publicationId: ID!): Boolean!
  24146. # The list of resources that are published to a publication.
  24147. resourcePublications(
  24148. onlyPublished: Boolean = true
  24149. first: Int
  24150. after: String
  24151. last: Int
  24152. before: String
  24153. reverse: Boolean = false
  24154. ): ResourcePublicationConnection!
  24155. # The list of resources that are either published or staged to be published to a publication.
  24156. resourcePublicationsV2(
  24157. onlyPublished: Boolean = true
  24158. first: Int
  24159. after: String
  24160. last: Int
  24161. before: String
  24162. reverse: Boolean = false
  24163. ): ResourcePublicationV2Connection!
  24164. # For a smart (automated) collection, specifies the rules that determine whether a product is included.
  24165. ruleSet: CollectionRuleSet
  24166. # If the default SEO fields for page title and description have been modified, contains the modified information.
  24167. seo: SEO!
  24168. # The order in which the products in the collection are displayed by default in the Shopify admin and in sales channels, such as an online store.
  24169. sortOrder: CollectionSortOrder!
  24170. # The suffix of the Liquid template being used to show the collection in an online store. For example, if the value is custom, then the collection is using the collection.custom.liquid template. If the value is null, then the collection is using the default collection.liquid template.
  24171. templateSuffix: String
  24172. # The name of the collection. It's displayed in the Shopify admin and is typically displayed in sales channels, such as an online store.
  24173. title: String!
  24174. # The translations associated with the resource.
  24175. translations(locale: String!marketId: ID): [PublishedTranslation!]!
  24176. # The list of publications that the resource is not published to.
  24177. unpublishedPublications(
  24178. first: Int
  24179. after: String
  24180. last: Int
  24181. before: String
  24182. reverse: Boolean = false
  24183. ): PublicationConnection!
  24184. # The date and time (ISO 8601 format) when the collection was last modified.
  24185. updatedAt: DateTime!
  24186. }
  24187. # Properties used by customers to select a product variant.
  24188. # Products can have multiple options, like different sizes or colors.
  24189. type SelectedOption {
  24190. # The product option’s name.
  24191. name: String!
  24192. # The product option’s value.
  24193. value: String!
  24194. }
  24195. # The price of a product variant in a specific country.
  24196. # Prices vary between countries.
  24197. type ProductVariantContextualPricing {
  24198. # The final compare-at price after all adjustments are applied.
  24199. compareAtPrice: MoneyV2
  24200. # The final price after all adjustments are applied.
  24201. price: MoneyV2!
  24202. }
  24203. # The context data that determines the pricing of a variant.
  24204. input ContextualPricingContext {
  24205. # The country code used to fetch country-specific prices.
  24206. country: CountryCode
  24207. # The CompanyLocation ID used to fetch company location specific prices.
  24208. companyLocationId: ID
  24209. }
  24210. # The set of rules that are used to determine which products are included in the collection.
  24211. type CollectionRuleSet {
  24212. # Whether products must match any or all of the rules to be included in the collection.
  24213. # If true, then products must match at least one of the rules to be included in the collection.
  24214. # If false, then products must match all of the rules to be included in the collection.
  24215. appliedDisjunctively: Boolean!
  24216. # The rules used to assign products to the collection.
  24217. rules: [CollectionRule!]!
  24218. }
  24219. # The set of rules that are used to determine which products are included in the collection.
  24220. type CollectionRule {
  24221. # Whether products must match any or all of the rules to be included in the collection.
  24222. # If true, then products must match at least one of the rules to be included in the collection.
  24223. # If false, then products must match all of the rules to be included in the collection.
  24224. appliedDisjunctively: Boolean!
  24225. # The rules used to assign products to the collection.
  24226. rules: [CollectionRule!]!
  24227. }
  24228. # The price of a product in a specific country.
  24229. # Prices vary between countries.
  24230. type ProductContextualPricing {
  24231. # The pricing of the variant with the highest price in the given context.
  24232. maxVariantPricing: ProductVariantContextualPricing
  24233. # The pricing of the variant with the lowest price in the given context.
  24234. minVariantPricing: ProductVariantContextualPricing
  24235. # The price range of the product with prices formatted as decimals.
  24236. priceRange: ProductPriceRangeV2!
  24237. }
  24238. # The price range of the product.
  24239. type ProductPriceRangeV2 {
  24240. # The highest variant's price.
  24241. maxVariantPrice: MoneyV2!
  24242. # The lowest variant's price.
  24243. minVariantPrice: MoneyV2!
  24244. }
  24245. # Represents a Shopify product taxonomy node.
  24246. type ProductTaxonomyNode implements Node {
  24247. # The full name of the product taxonomy node.
  24248. # For example, Animals & Pet Supplies > Pet Supplies > Dog Supplies > Dog Beds.
  24249. fullName: String!
  24250. # The ID of the product taxonomy node.
  24251. id: ID!
  24252. # Whether the node is a leaf node.
  24253. isLeaf: Boolean!
  24254. # Whether the node is a root node.
  24255. isRoot: Boolean!
  24256. # The name of the product taxonomy node. For example, Dog Beds.
  24257. name: String!
  24258. }
  24259. `, BuiltIn: false},
  24260. {Name: "../../../ext/property.graphql", Input: `# The attribute editable information.
  24261. type EditableProperty {
  24262. # Whether the attribute is locked for editing.
  24263. locked: Boolean!
  24264. # The reason the attribute is locked for editing.
  24265. reason: FormattedString
  24266. }
  24267. # Represents a generic custom attribute.
  24268. type Attribute {
  24269. # Key or name of the attribute.
  24270. key: String!
  24271. # Value of the attribute.
  24272. value: String
  24273. }
  24274. # Represents a typed custom attribute.
  24275. type TypedAttribute {
  24276. # Key or name of the attribute.
  24277. key: String!
  24278. # Value of the attribute.
  24279. value: String!
  24280. }
  24281. # A weight, which includes a numeric value and a unit of measurement.
  24282. type Weight {
  24283. # The unit of measurement for value.
  24284. unit: WeightUnit!
  24285. # The weight value using the unit system specified with unit.
  24286. value: Float!
  24287. }
  24288. `, BuiltIn: false},
  24289. {Name: "../../../ext/publication.graphql", Input: `# A resource publication represents information about the publication of a resource.
  24290. # An instance of ResourcePublication, unlike ResourcePublicationV2, can be neither published or scheduled to be published.
  24291. #
  24292. # See ResourcePublicationV2 for more context.
  24293. type ResourcePublication {
  24294. # Whether the resource publication is published. Also returns true if the resource publication is scheduled to be published.
  24295. # If false, then the resource publication is neither published nor scheduled to be published.
  24296. isPublished: Boolean!
  24297. # The publication the resource publication is published to.
  24298. publication: Publication!
  24299. # The date that the resource publication was or is going to be published to the publication.
  24300. publishDate: DateTime!
  24301. # The resource published to the publication.
  24302. publishable: Publishable!
  24303. }
  24304. # A resource publication represents information about the publication of a resource.
  24305. # Unlike ResourcePublication, an instance of ResourcePublicationV2 can't be unpublished. It must either be published or scheduled to be published.
  24306. #
  24307. # See ResourcePublication for more context.
  24308. type ResourcePublicationV2 {
  24309. # Whether the resource publication is published. If true, then the resource publication is published to the publication.
  24310. # If false, then the resource publication is staged to be published to the publication.
  24311. isPublished: Boolean!
  24312. # The publication the resource publication is published to.
  24313. publication: Publication!
  24314. # The date that the resource publication was or is going to be published to the publication.
  24315. publishDate: DateTime
  24316. # The resource published to the publication.
  24317. publishable: Publishable!
  24318. }
  24319. `, BuiltIn: false},
  24320. {Name: "../../../ext/rbac.graphql", Input: `# The permission required to access a Shopify Admin API or Storefront API resource for a shop.
  24321. # Merchants grant access scopes that are requested by applications.
  24322. type AccessScope {
  24323. # A description of the actions that the access scope allows an app to perform.
  24324. description: String!
  24325. # A readable string that represents the access scope. The string usually follows the format {action}_{resource}.
  24326. # {action} is read or write, and {resource} is the resource that the action can be performed on.
  24327. # {action} and {resource} are separated by an underscore. For example, read_orders or write_products.
  24328. handle: String!
  24329. }
  24330. `, BuiltIn: false},
  24331. {Name: "../../../ext/scalar.graphql", Input: `# Represents an ISO 8601-encoded date and time string.
  24332. # For example, 3:50 pm on September 7, 2019 in the time zone of UTC (Coordinated Universal Time) is
  24333. # represented as "2019-09-07T15:50:00Z".
  24334. scalar DateTime
  24335. # Represents an RFC 3986 and
  24336. # RFC 3987-compliant URI string.
  24337. #
  24338. # For example, "https://johns-apparel.myshopify.com" is a valid URL. It includes a scheme (https) and a host
  24339. # (johns-apparel.myshopify.com).
  24340. scalar URL
  24341. # An unsigned 64-bit integer. Represents whole numeric values between 0 and 2^64 - 1 encoded as a string of base-10 digits.
  24342. #
  24343. # Example value: "50".
  24344. scalar UnsignedInt64
  24345. # A string containing a strict subset of HTML code. Non-allowed tags will be stripped out.
  24346. # Allowed tags:
  24347. #
  24348. # a (allowed attributes: href, target)
  24349. # b
  24350. # br
  24351. # em
  24352. # i
  24353. # strong
  24354. # u
  24355. # Use HTML instead if you need to
  24356. # include other HTML tags.
  24357. # Example value: "Your current domain is <strong>johns-apparel.myshopify.com</strong>."
  24358. scalar FormattedString
  24359. # A signed decimal number, which supports arbitrary precision and is serialized as a string.
  24360. #
  24361. # Example values: "29.99", "29.999".
  24362. scalar Decimal
  24363. # A monetary value string without a currency symbol or code. Example value: "100.57".
  24364. scalar Money
  24365. # A string containing HTML code. Refer to the HTML spec for a complete list of HTML elements.
  24366. #
  24367. # Example value: "<p>Grey cotton knit sweater.</p>".
  24368. scalar HTML
  24369. # A JSON object.
  24370. #
  24371. # Example value:
  24372. # { "product": { "id": "gid://shopify/Product/1346443542550", "title": "White T-shirt", "options": [{ "name": "Size", "values": ["M", "L"] }] } }
  24373. scalar JSON
  24374. `, BuiltIn: false},
  24375. {Name: "../../../ext/shop.graphql", Input: `# Represents a collection of the general settings and information about the shop.
  24376. type Shop implements HasMetafields&HasPublishedTranslations&Node{
  24377. # A list of the shop's active alert messages that appear in the Shopify admin.
  24378. alerts: [ShopAlert!]!
  24379. # A list of the shop's product categories. Limit: 1000 product categories.
  24380. allProductCategories: [ProductCategory!]!
  24381. # The paginated list of fulfillment orders assigned to fulfillment services.
  24382. assignedFulfillmentOrders(
  24383. after: String
  24384. assignmentStatus: FulfillmentOrderAssignmentStatus
  24385. before: String
  24386. first: Int
  24387. last: Int
  24388. locationIds: [ID!]
  24389. reverse: Boolean = false
  24390. sortKey: FulfillmentOrderSortKeys = ID
  24391. ): FulfillmentOrderConnection!
  24392. # The list of sales channels not currently installed on the shop.
  24393. availableChannelApps(
  24394. after: String
  24395. before: String
  24396. first: Int
  24397. last: Int
  24398. reverse: Boolean = false
  24399. ): AppConnection!
  24400. # The shop's billing address information.
  24401. billingAddress: MailingAddress!
  24402. # List of all channel definitions associated with a shop.
  24403. channelDefinitionsForInstalledChannels: [AvailableChannelDefinitionsByChannel!]!
  24404. # Specifies whether the shop supports checkouts via Checkout API.
  24405. checkoutApiSupported: Boolean!
  24406. # The public-facing contact email address for the shop.
  24407. # Customers will use this email to communicate with the shop owner.
  24408. contactEmail: String!
  24409. # Countries that have been defined in shipping zones for the shop.
  24410. countriesInShippingZones: CountriesInShippingZones!
  24411. # The three letter code for the currency that the shop sells in.
  24412. currencyCode: CurrencyCode!
  24413. # How currencies are displayed on your store.
  24414. currencyFormats: CurrencyFormats!
  24415. # The presentment currency settings for the shop excluding the shop's own currency.
  24416. currencySettings(
  24417. after: String
  24418. before: String
  24419. first: Int
  24420. last: Int
  24421. reverse: Boolean = false
  24422. ): CurrencySettingConnection!
  24423. # Whether customer accounts are required, optional, or disabled for the shop.
  24424. customerAccounts: ShopCustomerAccountsSetting!
  24425. # A list of tags that have been added to customer accounts.
  24426. customerTags(first: Int!): StringConnection!
  24427. # The shop's meta description used in search engine results.
  24428. description: String
  24429. # A list of tags that have been added to draft orders.
  24430. draftOrderTags(first: Int!): StringConnection!
  24431. # The shop owner's email address.
  24432. # Shopify will use this email address to communicate with the shop owner.
  24433. email: String!
  24434. # The presentment currencies enabled for the shop.
  24435. enabledPresentmentCurrencies: [CurrencyCode!]!
  24436. # The set of features enabled for the shop.
  24437. features: ShopFeatures!
  24438. # List of the shop's installed fulfillment services.
  24439. fulfillmentServices: [FulfillmentService!]!
  24440. # The shop's time zone as defined by the IANA.
  24441. ianaTimezone: String!
  24442. # A globally-unique identifier.
  24443. id: ID!
  24444. # The number of pendings orders on the shop.
  24445. # Limited to a maximum of 10000.
  24446. limitedPendingOrderCount: LimitedPendingOrderCount!
  24447. # The approval signals for a shop to support onboarding to channel apps.
  24448. merchantApprovalSignals: MerchantApprovalSignals
  24449. # Returns a metafield by namespace and key that belongs to the resource.
  24450. metafield(key: String!namespace: String!): Metafield
  24451. # List of metafields that belong to the resource.
  24452. metafields(
  24453. after: String
  24454. before: String
  24455. first: Int
  24456. last: Int
  24457. namespace: String
  24458. reverse: Boolean = false
  24459. ): MetafieldConnection!
  24460. # The shop's .myshopify.com domain name.
  24461. myshopifyDomain: String!
  24462. # The shop's name.
  24463. name: String!
  24464. # The shop's settings related to navigation.
  24465. navigationSettings: [NavigationItem!]!
  24466. # The prefix that appears before order numbers.
  24467. orderNumberFormatPrefix: String!
  24468. # The suffix that appears after order numbers.
  24469. orderNumberFormatSuffix: String!
  24470. # A list of tags that have been added to orders.
  24471. orderTags(first: Int!sort: ShopTagSort = ALPHABETICAL): StringConnection!
  24472. # The shop's settings related to payments.
  24473. paymentSettings: PaymentSettings!
  24474. # The shop's billing plan.
  24475. plan: ShopPlan!
  24476. # The primary domain of the shop's online store.
  24477. primaryDomain: Domain!
  24478. # Returns a private metafield by namespace and key that belongs to the resource.
  24479. privateMetafield(key: String!namespace: String!): PrivateMetafield
  24480. # List of private metafields that belong to the resource.
  24481. privateMetafields(
  24482. after: String
  24483. before: String
  24484. first: Int
  24485. last: Int
  24486. namespace: String
  24487. reverse: Boolean = false
  24488. ): PrivateMetafieldConnection!
  24489. # The list of all images of all products for the shop.
  24490. productImages(
  24491. after: String
  24492. before: String
  24493. first: Int
  24494. last: Int
  24495. reverse: Boolean = false
  24496. sortKey: ProductImageSortKeys = CREATED_AT
  24497. ): ImageConnection!
  24498. # A list of tags that have been added to products.
  24499. productTags(first: Int!): StringConnection!
  24500. # The list of types added to products.
  24501. productTypes(first: Int!): StringConnection!
  24502. # The list of vendors added to products.
  24503. productVendors(first: Int!): StringConnection!
  24504. # The number of publications for the shop.
  24505. publicationCount: Int!
  24506. # The shop's limits for specific resources. For example, the maximum number ofvariants allowed per product, or the maximum number of locations allowed.
  24507. resourceLimits: ShopResourceLimits!
  24508. # The URL of the rich text editor that can be used for mobile devices.
  24509. richTextEditorUrl: URL!
  24510. # Fetches a list of admin search results by a specified query.
  24511. search(
  24512. after: String
  24513. first: Int!
  24514. query: String!
  24515. types: [SearchResultType!]
  24516. ): SearchResultConnection!
  24517. # The list of search filter options for the shop. These can be used to filter productvisibility for the shop.
  24518. searchFilters: SearchFilterOptions!
  24519. # Whether the shop has outstanding setup steps.
  24520. setupRequired: Boolean!
  24521. # The list of countries that the shop ships to.
  24522. shipsToCountries: [CountryCode!]!
  24523. # The list of all legal policies associated with a shop.
  24524. shopPolicies: [ShopPolicy!]!
  24525. # The paginated list of the shop's staff members.
  24526. staffMembers(
  24527. after: String
  24528. before: String
  24529. first: Int
  24530. last: Int
  24531. reverse: Boolean = false
  24532. ): StaffMemberConnection!
  24533. # The storefront access token of a private application. These are scoped per-application.
  24534. storefrontAccessTokens(
  24535. after: String
  24536. before: String
  24537. first: Int
  24538. last: Int
  24539. reverse: Boolean = false
  24540. ): StorefrontAccessTokenConnection!
  24541. # Whether the shop charges taxes for shipping.
  24542. taxShipping: Boolean!
  24543. # Whether applicable taxes are included in the shop's product prices.
  24544. taxesIncluded: Boolean!
  24545. # The shop's time zone abbreviation.
  24546. timezoneAbbreviation: String!
  24547. # The shop's time zone offset.
  24548. timezoneOffset: String!
  24549. # The shop's time zone offset expressed as a number of minutes.
  24550. timezoneOffsetMinutes: Int!
  24551. # Whether transactional SMS sent by Shopify have been disabled for a shop.
  24552. transactionalSmsDisabled: Boolean!
  24553. # The translations associated with the resource.
  24554. translations(locale: String!marketId: ID): [PublishedTranslation!]!
  24555. # The shop's unit system for weights and measures.
  24556. unitSystem: UnitSystem!
  24557. # Fetches a list of images uploaded to the shop by their IDs.
  24558. uploadedImagesByIds(imageIds: [ID!]!): [Image!]!
  24559. # The URL of the shop's online store.
  24560. url: URL!
  24561. # The shop's primary unit of weight for products and shipping.
  24562. weightUnit: WeightUnit!
  24563. }
  24564. # The list of all the countries from the combined shipping zones for the shop.
  24565. type CountriesInShippingZones {
  24566. # The list of all the countries from all the combined shipping zones.
  24567. countryCodes: [CountryCode!]!
  24568. # Whether 'Rest of World' has been defined in any of the shipping zones.
  24569. includeRestOfWorld: Boolean!
  24570. }
  24571. # Currency formats configured for the merchant. These formats are available to use within Liquid.
  24572. type CurrencyFormats {
  24573. # Money without currency in HTML.
  24574. moneyFormat: FormattedString!
  24575. # Money without currency in emails.
  24576. moneyInEmailsFormat: String!
  24577. # Money with currency in HTML.
  24578. moneyWithCurrencyFormat: FormattedString!
  24579. # Money with currency in emails.
  24580. moneyWithCurrencyInEmailsFormat: String!
  24581. }
  24582. # Represents the feature set available to the shop.
  24583. # Most fields specify whether a feature is enabled for a shop, and some fields return information
  24584. # related to specific features.
  24585. type ShopFeatures {
  24586. # Whether a shop has access to Avalara AvaTax.
  24587. avalaraAvatax: Boolean!
  24588. # The branding of the shop, which influences its look and feel in the Shopify admin.
  24589. branding: ShopBranding!
  24590. # Whether a shop's online store can have CAPTCHA protection.
  24591. captcha: Boolean!
  24592. # Whether a shop's online store can have CAPTCHA protection for domains not managed by Shopify.
  24593. captchaExternalDomains: Boolean!
  24594. # Whether a shop has access to the Google Analytics dynamic remarketing feature.
  24595. dynamicRemarketing: Boolean!
  24596. # Whether a shop can be migrated to use Shopify subscriptions.
  24597. eligibleForSubscriptionMigration: Boolean!
  24598. # Whether a shop is configured properly to sell subscriptions.
  24599. eligibleForSubscriptions: Boolean!
  24600. # Whether a shop can create gift cards.
  24601. giftCards: Boolean!
  24602. # Whether a shop displays Harmonized System codes on products. This is used for customs when shipping
  24603. # internationally.
  24604. harmonizedSystemCode: Boolean!
  24605. # Whether a shop can enable international domains.
  24606. internationalDomains: Boolean!
  24607. # Whether a shop can enable international price overrides.
  24608. internationalPriceOverrides: Boolean!
  24609. # Whether a shop can enable international price rules.
  24610. internationalPriceRules: Boolean!
  24611. # Whether a shop has enabled a legacy subscription gateway to handle older subscriptions.
  24612. legacySubscriptionGatewayEnabled: Boolean!
  24613. # Whether to show the Live View metrics in the Shopify admin. Live view is hidden from merchants that are on a trial
  24614. # or don't have a storefront.
  24615. liveView: Boolean!
  24616. # Whether a shop has access to the onboarding visual.
  24617. onboardingVisual: Boolean!
  24618. # Whether a shop is configured to sell subscriptions with PayPal Express.
  24619. paypalExpressSubscriptionGatewayStatus: PaypalExpressSubscriptionsGatewayStatus!
  24620. # Whether a shop has access to all reporting features.
  24621. reports: Boolean!
  24622. # Whether a shop has ever had subscription products.
  24623. sellsSubscriptions: Boolean!
  24624. # Whether to show metrics in the Shopify admin. Metrics are hidden for new merchants until they become meaningful.
  24625. showMetrics: Boolean!
  24626. # Whether a shop has an online store.
  24627. storefront: Boolean!
  24628. # Whether a shop is using Shopify Balance.
  24629. usingShopifyBalance: Boolean!
  24630. }
  24631. # The total number of pending orders on a shop if less then a maximum, or that maximum.
  24632. # The atMax field indicates when this maximum has been reached.
  24633. type LimitedPendingOrderCount {
  24634. # This is set when the number of pending orders has reached the maximum.
  24635. atMax: Boolean!
  24636. # The number of pendings orders on the shop.
  24637. # Limited to a maximum of 10000.
  24638. count: Int!
  24639. }
  24640. # Merchant approval for accelerated onboarding to channel integration apps.
  24641. type MerchantApprovalSignals {
  24642. # Whether the shop's Shopify Payments account identity is verified.
  24643. # Returns false if the identity is unverified or if the shop doesn't have a Shopify Payments account.
  24644. identityVerified: Boolean!
  24645. # Whether Shopify has pre-verified the merchant's business for onboarding to channel integration apps.
  24646. # Returns false if the shop is not marked for verification.
  24647. verifiedByShopify: Boolean!
  24648. }
  24649. # Settings related to payments.
  24650. type PaymentSettings {
  24651. # List of the digital wallets which the shop supports.
  24652. supportedDigitalWallets: [DigitalWallet!]!
  24653. }
  24654. # The billing plan of the shop.
  24655. type ShopPlan {
  24656. # The name of the shop's billing plan.
  24657. displayName: String!
  24658. # Whether the shop is a partner development shop for testing purposes.
  24659. partnerDevelopment: Boolean!
  24660. # Whether the shop has a Shopify Plus subscription.
  24661. shopifyPlus: Boolean!
  24662. }
  24663. # Policy that a merchant has configured for their store, such as their refund or privacy policy.
  24664. type ShopPolicy implements HasPublishedTranslations&Node {
  24665. # The text of the policy. The maximum size is 512kb.
  24666. body: HTML!
  24667. # A globally-unique identifier.
  24668. id: ID!
  24669. # The translations associated with the resource.
  24670. translations(locale: String! marketId: ID): [PublishedTranslation!]!
  24671. # The shop policy type.
  24672. type: ShopPolicyType!
  24673. # The public URL of the policy.
  24674. url: URL!
  24675. }
  24676. # Resource limits of a shop.
  24677. type ShopResourceLimits {
  24678. # Maximum number of locations allowed.
  24679. locationLimit: Int!
  24680. # Maximum number of product options allowed.
  24681. maxProductOptions: Int!
  24682. # The maximum number of variants allowed per product.
  24683. maxProductVariants: Int!
  24684. # Whether the shop has reached the limit of the number of URL redirects it can make for resources.
  24685. redirectLimitReached: Boolean!
  24686. # The maximum number of variants allowed per shop.
  24687. # If the shop has unlimited SKUs, then the quantity used cannot be retrieved.
  24688. skuResourceLimits: ResourceLimit!
  24689. }
  24690. # A resource limit represents the limits that the resource has.
  24691. type ResourceLimit {
  24692. # Whether the resource is available.
  24693. available: Boolean!
  24694. # Quantity available. If null the quantity available is unlimited.
  24695. quantityAvailable: Int
  24696. # Quantity limit of the resource. If null the quantity is unlimited.
  24697. quantityLimit: Int
  24698. # Quantity used of the resource. If null the quantity used cannot be retrieved.
  24699. quantityUsed: Int
  24700. }
  24701. # Represents an individual result returned from a search.
  24702. type SearchResult {
  24703. # Returns the search result description text.
  24704. description: String
  24705. # Returns the Image resource presented to accompany a search result.
  24706. image: Image
  24707. # Returns the ID of the resource returned in the search result.
  24708. reference: Node!
  24709. # Returns the resource title.
  24710. title: String!
  24711. # Returns the absolute URL to the resource in the search result.
  24712. url: URL!
  24713. }
  24714. # A list of search filters along with their specific options in value and label pair for filtering.
  24715. type SearchFilterOptions {
  24716. # A list of options that can be use to filter product availability.
  24717. productAvailability: [FilterOption!]!
  24718. }
  24719. # A saved search is a representation of a search query saved in the admin.
  24720. type SavedSearch implements LegacyInteroperability&Node {
  24721. # The filters of a saved search.
  24722. filters: [SearchFilter!]!
  24723. # A globally-unique identifier.
  24724. id: ID!
  24725. # The ID of the corresponding resource in the REST Admin API.
  24726. legacyResourceId: UnsignedInt64!
  24727. # The name of a saved search.
  24728. name: String!
  24729. # The query string of a saved search. This includes search terms and filters.
  24730. query: String!
  24731. # The type of resource this saved search is searching in.
  24732. resourceType: SearchResultType!
  24733. # The search terms of a saved search.
  24734. searchTerms: String!
  24735. }
  24736. # A filter in a search query represented by a key value pair.
  24737. type SearchFilter {
  24738. # The key of the search filter.
  24739. key: String!
  24740. # The value of the search filter.
  24741. value: String!
  24742. }
  24743. # A filter option is one possible value in a search filter.
  24744. type FilterOption {
  24745. # The filter option's label for display purposes.
  24746. label: String!
  24747. # The filter option's value.
  24748. value: String!
  24749. }
  24750. `, BuiltIn: false},
  24751. {Name: "../../../ext/translation.graphql", Input: `# Published translation of a field of a resource.
  24752. type PublishedTranslation {
  24753. # The resource field that is being translated.
  24754. key: String!
  24755. # The locale of this translation.
  24756. locale: String!
  24757. # The ID of the market that the translation is specific to. Null value means the translation is available in any market.
  24758. marketId: ID
  24759. # The translation value.
  24760. value: String
  24761. }
  24762. `, BuiltIn: false},
  24763. {Name: "../../../ext/union.graphql", Input: `# The main embed of a comment event.
  24764. union CommentEventEmbed = Customer | DraftOrder | Order | Product | ProductVariant
  24765. union MetafieldReference = Collection | GenericFile | MediaImage | OnlineStorePage | Product | ProductVariant | Video
  24766. union PricingValue = MoneyV2 | PricingPercentageValue
  24767. # A rate provided by a merchant-defined rate or a participant.
  24768. union DeliveryRateProvider = DeliveryParticipant | DeliveryRateDefinition
  24769. # The value (weight or price) that the condition field is compared to.
  24770. union DeliveryConditionCriteria = MoneyV2 | Weight
  24771. # Represents information about the purchasing entity for the order or draft order.
  24772. union PurchasingEntity = Customer | PurchasingCompany
  24773. # Represents the billing frequency associated to the selling plan (for example, bill every week, or bill every three months).
  24774. # The selling plan billing policy and associated records (selling plan groups, selling plans, pricing policies, and delivery policy)
  24775. # are deleted 48 hours after a merchant uninstalls their subscriptions app.
  24776. # We recommend backing up these records if you need to restore them later.
  24777. union SellingPlanBillingPolicy = SellingPlanFixedBillingPolicy | SellingPlanRecurringBillingPolicy
  24778. # Represents the delivery frequency associated to the selling plan (for example, deliver every month, or deliver every other week).
  24779. # The selling plan delivery policy and associated records (selling plan groups, selling plans, pricing policies, and billing policy)
  24780. # are deleted 48 hours after a merchant uninstalls their subscriptions app.
  24781. # We recommend backing up these records if you need to restore them later.
  24782. union SellingPlanDeliveryPolicy = SellingPlanFixedDeliveryPolicy | SellingPlanRecurringDeliveryPolicy
  24783. # The portion of the price to be charged at checkout.
  24784. union SellingPlanCheckoutChargeValue = MoneyV2 | SellingPlanCheckoutChargePercentageValue
  24785. # Represents the type of pricing associated to the selling plan (for example, a $10 or 20% discount that is set
  24786. # for a limited period or that is fixed for the duration of the subscription). Selling plan pricing policies and
  24787. # associated records (selling plan groups, selling plans, billing policy, and delivery policy)
  24788. # are deleted 48 hours after a merchant uninstalls their subscriptions app.
  24789. # We recommend backing up these records if you need to restore them later.
  24790. union SellingPlanPricingPolicy = SellingPlanFixedPricingPolicy | SellingPlanRecurringPricingPolicy
  24791. # The information about the price that's charged to a shop every plan period.
  24792. # The concrete type can be AppRecurringPricing for recurring billing or AppUsagePricing for usage-based billing.
  24793. union AppPricingDetails = AppRecurringPricing | AppUsagePricing
  24794. # The value of the discount.
  24795. union AppSubscriptionDiscountValue = AppSubscriptionDiscountAmount | AppSubscriptionDiscountPercentage
  24796. # All possible instruments for CustomerPaymentMethods.
  24797. union CustomerPaymentInstrument = CustomerCreditCard | CustomerPaypalBillingAgreement | CustomerShopPayAgreement
  24798. # Describes the delivery method to use to get the physical goods to the customer.
  24799. union SubscriptionDeliveryMethod = SubscriptionDeliveryMethodLocalDelivery | SubscriptionDeliveryMethodPickup | SubscriptionDeliveryMethodShipping
  24800. # Represents a selling plan pricing policy adjustment value type.
  24801. union SellingPlanPricingPolicyAdjustmentValue = MoneyV2 | SellingPlanPricingPolicyPercentageValue
  24802. # Subscription draft discount types.
  24803. union SubscriptionDiscount = SubscriptionAppliedCodeDiscount | SubscriptionManualDiscount
  24804. # The value of the discount and how it will be applied.
  24805. union SubscriptionDiscountValue = SubscriptionDiscountFixedAmountValue | SubscriptionDiscountPercentageValue
  24806. # All possible instrument outputs for Payment Mandates.
  24807. union PaymentInstrument = VaultCreditCard | VaultPaypalBillingAgreement
  24808. `, BuiltIn: false},
  24809. {Name: "../../../federation/directives.graphql", Input: `
  24810. scalar _Any
  24811. scalar _FieldSet
  24812. directive @external on FIELD_DEFINITION
  24813. directive @requires(fields: _FieldSet!) on FIELD_DEFINITION
  24814. directive @provides(fields: _FieldSet!) on FIELD_DEFINITION
  24815. directive @extends on OBJECT | INTERFACE
  24816. directive @key(fields: _FieldSet!, resolvable: Boolean = true) repeatable on OBJECT | INTERFACE
  24817. directive @link(import: [String!], url: String!) repeatable on SCHEMA
  24818. directive @shareable on OBJECT | FIELD_DEFINITION
  24819. directive @tag(name: String!) repeatable on FIELD_DEFINITION | INTERFACE | OBJECT | UNION | ARGUMENT_DEFINITION | SCALAR | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION
  24820. directive @override(from: String!) on FIELD_DEFINITION
  24821. directive @inaccessible on SCALAR | OBJECT | FIELD_DEFINITION | ARGUMENT_DEFINITION | INTERFACE | UNION | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION
  24822. `, BuiltIn: true},
  24823. {Name: "../../../federation/entity.graphql", Input: `
  24824. # a union of all types that use the @key directive
  24825. union _Entity = Product
  24826. # fake type to build resolver interfaces for users to implement
  24827. type Entity {
  24828. findProductByID(id: ID!,): Product!
  24829. }
  24830. type _Service {
  24831. sdl: String
  24832. }
  24833. extend type Query {
  24834. _entities(representations: [_Any!]!): [_Entity]!
  24835. _service: _Service!
  24836. }
  24837. `, BuiltIn: true},
  24838. }
  24839. var parsedSchema = gqlparser.MustLoadSchema(sources...)
  24840. // endregion ************************** generated!.gotpl **************************
  24841. // region ***************************** args.gotpl *****************************
  24842. func (ec *executionContext) dir_inContext_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  24843. var err error
  24844. args := map[string]interface{}{}
  24845. var arg0 *LanguageCode
  24846. if tmp, ok := rawArgs["language"]; ok {
  24847. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("language"))
  24848. arg0, err = ec.unmarshalOLanguageCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLanguageCode(ctx, tmp)
  24849. if err != nil {
  24850. return nil, err
  24851. }
  24852. }
  24853. args["language"] = arg0
  24854. var arg1 *CountryCode
  24855. if tmp, ok := rawArgs["country"]; ok {
  24856. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("country"))
  24857. arg1, err = ec.unmarshalOCountryCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCode(ctx, tmp)
  24858. if err != nil {
  24859. return nil, err
  24860. }
  24861. }
  24862. args["country"] = arg1
  24863. return args, nil
  24864. }
  24865. func (ec *executionContext) field_AppInstallation_allSubscriptions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  24866. var err error
  24867. args := map[string]interface{}{}
  24868. var arg0 *int
  24869. if tmp, ok := rawArgs["first"]; ok {
  24870. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  24871. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  24872. if err != nil {
  24873. return nil, err
  24874. }
  24875. }
  24876. args["first"] = arg0
  24877. var arg1 *string
  24878. if tmp, ok := rawArgs["after"]; ok {
  24879. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  24880. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  24881. if err != nil {
  24882. return nil, err
  24883. }
  24884. }
  24885. args["after"] = arg1
  24886. var arg2 *int
  24887. if tmp, ok := rawArgs["last"]; ok {
  24888. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  24889. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  24890. if err != nil {
  24891. return nil, err
  24892. }
  24893. }
  24894. args["last"] = arg2
  24895. var arg3 *string
  24896. if tmp, ok := rawArgs["before"]; ok {
  24897. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  24898. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  24899. if err != nil {
  24900. return nil, err
  24901. }
  24902. }
  24903. args["before"] = arg3
  24904. var arg4 *bool
  24905. if tmp, ok := rawArgs["reverse"]; ok {
  24906. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  24907. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  24908. if err != nil {
  24909. return nil, err
  24910. }
  24911. }
  24912. args["reverse"] = arg4
  24913. var arg5 *AppSubscriptionSortKeys
  24914. if tmp, ok := rawArgs["sortKey"]; ok {
  24915. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  24916. arg5, err = ec.unmarshalOAppSubscriptionSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppSubscriptionSortKeys(ctx, tmp)
  24917. if err != nil {
  24918. return nil, err
  24919. }
  24920. }
  24921. args["sortKey"] = arg5
  24922. return args, nil
  24923. }
  24924. func (ec *executionContext) field_AppInstallation_credits_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  24925. var err error
  24926. args := map[string]interface{}{}
  24927. var arg0 *int
  24928. if tmp, ok := rawArgs["first"]; ok {
  24929. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  24930. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  24931. if err != nil {
  24932. return nil, err
  24933. }
  24934. }
  24935. args["first"] = arg0
  24936. var arg1 *string
  24937. if tmp, ok := rawArgs["after"]; ok {
  24938. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  24939. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  24940. if err != nil {
  24941. return nil, err
  24942. }
  24943. }
  24944. args["after"] = arg1
  24945. var arg2 *int
  24946. if tmp, ok := rawArgs["last"]; ok {
  24947. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  24948. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  24949. if err != nil {
  24950. return nil, err
  24951. }
  24952. }
  24953. args["last"] = arg2
  24954. var arg3 *string
  24955. if tmp, ok := rawArgs["before"]; ok {
  24956. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  24957. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  24958. if err != nil {
  24959. return nil, err
  24960. }
  24961. }
  24962. args["before"] = arg3
  24963. var arg4 *bool
  24964. if tmp, ok := rawArgs["reverse"]; ok {
  24965. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  24966. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  24967. if err != nil {
  24968. return nil, err
  24969. }
  24970. }
  24971. args["reverse"] = arg4
  24972. var arg5 *AppTransactionSortKeys
  24973. if tmp, ok := rawArgs["sortKey"]; ok {
  24974. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  24975. arg5, err = ec.unmarshalOAppTransactionSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppTransactionSortKeys(ctx, tmp)
  24976. if err != nil {
  24977. return nil, err
  24978. }
  24979. }
  24980. args["sortKey"] = arg5
  24981. return args, nil
  24982. }
  24983. func (ec *executionContext) field_AppInstallation_metafield_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  24984. var err error
  24985. args := map[string]interface{}{}
  24986. var arg0 string
  24987. if tmp, ok := rawArgs["namespace"]; ok {
  24988. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  24989. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  24990. if err != nil {
  24991. return nil, err
  24992. }
  24993. }
  24994. args["namespace"] = arg0
  24995. var arg1 string
  24996. if tmp, ok := rawArgs["key"]; ok {
  24997. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key"))
  24998. arg1, err = ec.unmarshalNString2string(ctx, tmp)
  24999. if err != nil {
  25000. return nil, err
  25001. }
  25002. }
  25003. args["key"] = arg1
  25004. return args, nil
  25005. }
  25006. func (ec *executionContext) field_AppInstallation_metafields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  25007. var err error
  25008. args := map[string]interface{}{}
  25009. var arg0 *string
  25010. if tmp, ok := rawArgs["namespace"]; ok {
  25011. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  25012. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25013. if err != nil {
  25014. return nil, err
  25015. }
  25016. }
  25017. args["namespace"] = arg0
  25018. var arg1 *int
  25019. if tmp, ok := rawArgs["first"]; ok {
  25020. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  25021. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25022. if err != nil {
  25023. return nil, err
  25024. }
  25025. }
  25026. args["first"] = arg1
  25027. var arg2 *string
  25028. if tmp, ok := rawArgs["after"]; ok {
  25029. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  25030. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25031. if err != nil {
  25032. return nil, err
  25033. }
  25034. }
  25035. args["after"] = arg2
  25036. var arg3 *int
  25037. if tmp, ok := rawArgs["last"]; ok {
  25038. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  25039. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25040. if err != nil {
  25041. return nil, err
  25042. }
  25043. }
  25044. args["last"] = arg3
  25045. var arg4 *string
  25046. if tmp, ok := rawArgs["before"]; ok {
  25047. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  25048. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25049. if err != nil {
  25050. return nil, err
  25051. }
  25052. }
  25053. args["before"] = arg4
  25054. var arg5 *bool
  25055. if tmp, ok := rawArgs["reverse"]; ok {
  25056. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  25057. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  25058. if err != nil {
  25059. return nil, err
  25060. }
  25061. }
  25062. args["reverse"] = arg5
  25063. return args, nil
  25064. }
  25065. func (ec *executionContext) field_AppInstallation_oneTimePurchases_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  25066. var err error
  25067. args := map[string]interface{}{}
  25068. var arg0 *int
  25069. if tmp, ok := rawArgs["first"]; ok {
  25070. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  25071. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25072. if err != nil {
  25073. return nil, err
  25074. }
  25075. }
  25076. args["first"] = arg0
  25077. var arg1 *string
  25078. if tmp, ok := rawArgs["after"]; ok {
  25079. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  25080. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25081. if err != nil {
  25082. return nil, err
  25083. }
  25084. }
  25085. args["after"] = arg1
  25086. var arg2 *int
  25087. if tmp, ok := rawArgs["last"]; ok {
  25088. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  25089. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25090. if err != nil {
  25091. return nil, err
  25092. }
  25093. }
  25094. args["last"] = arg2
  25095. var arg3 *string
  25096. if tmp, ok := rawArgs["before"]; ok {
  25097. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  25098. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25099. if err != nil {
  25100. return nil, err
  25101. }
  25102. }
  25103. args["before"] = arg3
  25104. var arg4 *bool
  25105. if tmp, ok := rawArgs["reverse"]; ok {
  25106. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  25107. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  25108. if err != nil {
  25109. return nil, err
  25110. }
  25111. }
  25112. args["reverse"] = arg4
  25113. var arg5 *AppTransactionSortKeys
  25114. if tmp, ok := rawArgs["sortKey"]; ok {
  25115. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  25116. arg5, err = ec.unmarshalOAppTransactionSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppTransactionSortKeys(ctx, tmp)
  25117. if err != nil {
  25118. return nil, err
  25119. }
  25120. }
  25121. args["sortKey"] = arg5
  25122. return args, nil
  25123. }
  25124. func (ec *executionContext) field_AppInstallation_privateMetafield_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  25125. var err error
  25126. args := map[string]interface{}{}
  25127. var arg0 string
  25128. if tmp, ok := rawArgs["namespace"]; ok {
  25129. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  25130. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  25131. if err != nil {
  25132. return nil, err
  25133. }
  25134. }
  25135. args["namespace"] = arg0
  25136. var arg1 string
  25137. if tmp, ok := rawArgs["key"]; ok {
  25138. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key"))
  25139. arg1, err = ec.unmarshalNString2string(ctx, tmp)
  25140. if err != nil {
  25141. return nil, err
  25142. }
  25143. }
  25144. args["key"] = arg1
  25145. return args, nil
  25146. }
  25147. func (ec *executionContext) field_AppInstallation_privateMetafields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  25148. var err error
  25149. args := map[string]interface{}{}
  25150. var arg0 *string
  25151. if tmp, ok := rawArgs["namespace"]; ok {
  25152. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  25153. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25154. if err != nil {
  25155. return nil, err
  25156. }
  25157. }
  25158. args["namespace"] = arg0
  25159. var arg1 *int
  25160. if tmp, ok := rawArgs["first"]; ok {
  25161. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  25162. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25163. if err != nil {
  25164. return nil, err
  25165. }
  25166. }
  25167. args["first"] = arg1
  25168. var arg2 *string
  25169. if tmp, ok := rawArgs["after"]; ok {
  25170. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  25171. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25172. if err != nil {
  25173. return nil, err
  25174. }
  25175. }
  25176. args["after"] = arg2
  25177. var arg3 *int
  25178. if tmp, ok := rawArgs["last"]; ok {
  25179. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  25180. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25181. if err != nil {
  25182. return nil, err
  25183. }
  25184. }
  25185. args["last"] = arg3
  25186. var arg4 *string
  25187. if tmp, ok := rawArgs["before"]; ok {
  25188. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  25189. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25190. if err != nil {
  25191. return nil, err
  25192. }
  25193. }
  25194. args["before"] = arg4
  25195. var arg5 *bool
  25196. if tmp, ok := rawArgs["reverse"]; ok {
  25197. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  25198. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  25199. if err != nil {
  25200. return nil, err
  25201. }
  25202. }
  25203. args["reverse"] = arg5
  25204. return args, nil
  25205. }
  25206. func (ec *executionContext) field_AppInstallation_revenueAttributionRecords_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  25207. var err error
  25208. args := map[string]interface{}{}
  25209. var arg0 *int
  25210. if tmp, ok := rawArgs["first"]; ok {
  25211. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  25212. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25213. if err != nil {
  25214. return nil, err
  25215. }
  25216. }
  25217. args["first"] = arg0
  25218. var arg1 *string
  25219. if tmp, ok := rawArgs["after"]; ok {
  25220. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  25221. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25222. if err != nil {
  25223. return nil, err
  25224. }
  25225. }
  25226. args["after"] = arg1
  25227. var arg2 *int
  25228. if tmp, ok := rawArgs["last"]; ok {
  25229. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  25230. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25231. if err != nil {
  25232. return nil, err
  25233. }
  25234. }
  25235. args["last"] = arg2
  25236. var arg3 *string
  25237. if tmp, ok := rawArgs["before"]; ok {
  25238. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  25239. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25240. if err != nil {
  25241. return nil, err
  25242. }
  25243. }
  25244. args["before"] = arg3
  25245. var arg4 *bool
  25246. if tmp, ok := rawArgs["reverse"]; ok {
  25247. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  25248. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  25249. if err != nil {
  25250. return nil, err
  25251. }
  25252. }
  25253. args["reverse"] = arg4
  25254. var arg5 *AppRevenueAttributionRecordSortKeys
  25255. if tmp, ok := rawArgs["sortKey"]; ok {
  25256. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  25257. arg5, err = ec.unmarshalOAppRevenueAttributionRecordSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppRevenueAttributionRecordSortKeys(ctx, tmp)
  25258. if err != nil {
  25259. return nil, err
  25260. }
  25261. }
  25262. args["sortKey"] = arg5
  25263. return args, nil
  25264. }
  25265. func (ec *executionContext) field_AppSubscriptionLineItem_usageRecords_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  25266. var err error
  25267. args := map[string]interface{}{}
  25268. var arg0 *int
  25269. if tmp, ok := rawArgs["first"]; ok {
  25270. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  25271. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25272. if err != nil {
  25273. return nil, err
  25274. }
  25275. }
  25276. args["first"] = arg0
  25277. var arg1 *string
  25278. if tmp, ok := rawArgs["after"]; ok {
  25279. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  25280. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25281. if err != nil {
  25282. return nil, err
  25283. }
  25284. }
  25285. args["after"] = arg1
  25286. var arg2 *int
  25287. if tmp, ok := rawArgs["last"]; ok {
  25288. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  25289. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25290. if err != nil {
  25291. return nil, err
  25292. }
  25293. }
  25294. args["last"] = arg2
  25295. var arg3 *string
  25296. if tmp, ok := rawArgs["before"]; ok {
  25297. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  25298. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25299. if err != nil {
  25300. return nil, err
  25301. }
  25302. }
  25303. args["before"] = arg3
  25304. var arg4 *bool
  25305. if tmp, ok := rawArgs["reverse"]; ok {
  25306. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  25307. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  25308. if err != nil {
  25309. return nil, err
  25310. }
  25311. }
  25312. args["reverse"] = arg4
  25313. var arg5 *AppUsageRecordSortKeys
  25314. if tmp, ok := rawArgs["sortKey"]; ok {
  25315. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  25316. arg5, err = ec.unmarshalOAppUsageRecordSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppUsageRecordSortKeys(ctx, tmp)
  25317. if err != nil {
  25318. return nil, err
  25319. }
  25320. }
  25321. args["sortKey"] = arg5
  25322. return args, nil
  25323. }
  25324. func (ec *executionContext) field_Collection_description_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  25325. var err error
  25326. args := map[string]interface{}{}
  25327. var arg0 *int
  25328. if tmp, ok := rawArgs["truncateAt"]; ok {
  25329. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("truncateAt"))
  25330. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25331. if err != nil {
  25332. return nil, err
  25333. }
  25334. }
  25335. args["truncateAt"] = arg0
  25336. return args, nil
  25337. }
  25338. func (ec *executionContext) field_Collection_hasProduct_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  25339. var err error
  25340. args := map[string]interface{}{}
  25341. var arg0 string
  25342. if tmp, ok := rawArgs["id"]; ok {
  25343. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
  25344. arg0, err = ec.unmarshalNID2string(ctx, tmp)
  25345. if err != nil {
  25346. return nil, err
  25347. }
  25348. }
  25349. args["id"] = arg0
  25350. return args, nil
  25351. }
  25352. func (ec *executionContext) field_Collection_metafieldDefinitions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  25353. var err error
  25354. args := map[string]interface{}{}
  25355. var arg0 *string
  25356. if tmp, ok := rawArgs["namespace"]; ok {
  25357. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  25358. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25359. if err != nil {
  25360. return nil, err
  25361. }
  25362. }
  25363. args["namespace"] = arg0
  25364. var arg1 *MetafieldDefinitionPinnedStatus
  25365. if tmp, ok := rawArgs["pinnedStatus"]; ok {
  25366. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pinnedStatus"))
  25367. arg1, err = ec.unmarshalOMetafieldDefinitionPinnedStatus2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionPinnedStatus(ctx, tmp)
  25368. if err != nil {
  25369. return nil, err
  25370. }
  25371. }
  25372. args["pinnedStatus"] = arg1
  25373. var arg2 *int
  25374. if tmp, ok := rawArgs["first"]; ok {
  25375. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  25376. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25377. if err != nil {
  25378. return nil, err
  25379. }
  25380. }
  25381. args["first"] = arg2
  25382. var arg3 *string
  25383. if tmp, ok := rawArgs["after"]; ok {
  25384. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  25385. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25386. if err != nil {
  25387. return nil, err
  25388. }
  25389. }
  25390. args["after"] = arg3
  25391. var arg4 *int
  25392. if tmp, ok := rawArgs["last"]; ok {
  25393. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  25394. arg4, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25395. if err != nil {
  25396. return nil, err
  25397. }
  25398. }
  25399. args["last"] = arg4
  25400. var arg5 *string
  25401. if tmp, ok := rawArgs["before"]; ok {
  25402. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  25403. arg5, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25404. if err != nil {
  25405. return nil, err
  25406. }
  25407. }
  25408. args["before"] = arg5
  25409. var arg6 *bool
  25410. if tmp, ok := rawArgs["reverse"]; ok {
  25411. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  25412. arg6, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  25413. if err != nil {
  25414. return nil, err
  25415. }
  25416. }
  25417. args["reverse"] = arg6
  25418. var arg7 *MetafieldDefinitionSortKeys
  25419. if tmp, ok := rawArgs["sortKey"]; ok {
  25420. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  25421. arg7, err = ec.unmarshalOMetafieldDefinitionSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionSortKeys(ctx, tmp)
  25422. if err != nil {
  25423. return nil, err
  25424. }
  25425. }
  25426. args["sortKey"] = arg7
  25427. var arg8 *string
  25428. if tmp, ok := rawArgs["query"]; ok {
  25429. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
  25430. arg8, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25431. if err != nil {
  25432. return nil, err
  25433. }
  25434. }
  25435. args["query"] = arg8
  25436. return args, nil
  25437. }
  25438. func (ec *executionContext) field_Collection_metafield_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  25439. var err error
  25440. args := map[string]interface{}{}
  25441. var arg0 string
  25442. if tmp, ok := rawArgs["namespace"]; ok {
  25443. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  25444. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  25445. if err != nil {
  25446. return nil, err
  25447. }
  25448. }
  25449. args["namespace"] = arg0
  25450. var arg1 string
  25451. if tmp, ok := rawArgs["key"]; ok {
  25452. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key"))
  25453. arg1, err = ec.unmarshalNString2string(ctx, tmp)
  25454. if err != nil {
  25455. return nil, err
  25456. }
  25457. }
  25458. args["key"] = arg1
  25459. return args, nil
  25460. }
  25461. func (ec *executionContext) field_Collection_metafields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  25462. var err error
  25463. args := map[string]interface{}{}
  25464. var arg0 *string
  25465. if tmp, ok := rawArgs["namespace"]; ok {
  25466. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  25467. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25468. if err != nil {
  25469. return nil, err
  25470. }
  25471. }
  25472. args["namespace"] = arg0
  25473. var arg1 *int
  25474. if tmp, ok := rawArgs["first"]; ok {
  25475. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  25476. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25477. if err != nil {
  25478. return nil, err
  25479. }
  25480. }
  25481. args["first"] = arg1
  25482. var arg2 *string
  25483. if tmp, ok := rawArgs["after"]; ok {
  25484. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  25485. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25486. if err != nil {
  25487. return nil, err
  25488. }
  25489. }
  25490. args["after"] = arg2
  25491. var arg3 *int
  25492. if tmp, ok := rawArgs["last"]; ok {
  25493. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  25494. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25495. if err != nil {
  25496. return nil, err
  25497. }
  25498. }
  25499. args["last"] = arg3
  25500. var arg4 *string
  25501. if tmp, ok := rawArgs["before"]; ok {
  25502. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  25503. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25504. if err != nil {
  25505. return nil, err
  25506. }
  25507. }
  25508. args["before"] = arg4
  25509. var arg5 *bool
  25510. if tmp, ok := rawArgs["reverse"]; ok {
  25511. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  25512. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  25513. if err != nil {
  25514. return nil, err
  25515. }
  25516. }
  25517. args["reverse"] = arg5
  25518. return args, nil
  25519. }
  25520. func (ec *executionContext) field_Collection_privateMetafield_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  25521. var err error
  25522. args := map[string]interface{}{}
  25523. var arg0 string
  25524. if tmp, ok := rawArgs["namespace"]; ok {
  25525. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  25526. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  25527. if err != nil {
  25528. return nil, err
  25529. }
  25530. }
  25531. args["namespace"] = arg0
  25532. var arg1 string
  25533. if tmp, ok := rawArgs["key"]; ok {
  25534. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key"))
  25535. arg1, err = ec.unmarshalNString2string(ctx, tmp)
  25536. if err != nil {
  25537. return nil, err
  25538. }
  25539. }
  25540. args["key"] = arg1
  25541. return args, nil
  25542. }
  25543. func (ec *executionContext) field_Collection_privateMetafields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  25544. var err error
  25545. args := map[string]interface{}{}
  25546. var arg0 *string
  25547. if tmp, ok := rawArgs["namespace"]; ok {
  25548. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  25549. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25550. if err != nil {
  25551. return nil, err
  25552. }
  25553. }
  25554. args["namespace"] = arg0
  25555. var arg1 *int
  25556. if tmp, ok := rawArgs["first"]; ok {
  25557. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  25558. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25559. if err != nil {
  25560. return nil, err
  25561. }
  25562. }
  25563. args["first"] = arg1
  25564. var arg2 *string
  25565. if tmp, ok := rawArgs["after"]; ok {
  25566. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  25567. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25568. if err != nil {
  25569. return nil, err
  25570. }
  25571. }
  25572. args["after"] = arg2
  25573. var arg3 *int
  25574. if tmp, ok := rawArgs["last"]; ok {
  25575. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  25576. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25577. if err != nil {
  25578. return nil, err
  25579. }
  25580. }
  25581. args["last"] = arg3
  25582. var arg4 *string
  25583. if tmp, ok := rawArgs["before"]; ok {
  25584. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  25585. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25586. if err != nil {
  25587. return nil, err
  25588. }
  25589. }
  25590. args["before"] = arg4
  25591. var arg5 *bool
  25592. if tmp, ok := rawArgs["reverse"]; ok {
  25593. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  25594. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  25595. if err != nil {
  25596. return nil, err
  25597. }
  25598. }
  25599. args["reverse"] = arg5
  25600. return args, nil
  25601. }
  25602. func (ec *executionContext) field_Collection_products_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  25603. var err error
  25604. args := map[string]interface{}{}
  25605. var arg0 *int
  25606. if tmp, ok := rawArgs["first"]; ok {
  25607. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  25608. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25609. if err != nil {
  25610. return nil, err
  25611. }
  25612. }
  25613. args["first"] = arg0
  25614. var arg1 *string
  25615. if tmp, ok := rawArgs["after"]; ok {
  25616. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  25617. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25618. if err != nil {
  25619. return nil, err
  25620. }
  25621. }
  25622. args["after"] = arg1
  25623. var arg2 *int
  25624. if tmp, ok := rawArgs["last"]; ok {
  25625. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  25626. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25627. if err != nil {
  25628. return nil, err
  25629. }
  25630. }
  25631. args["last"] = arg2
  25632. var arg3 *string
  25633. if tmp, ok := rawArgs["before"]; ok {
  25634. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  25635. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25636. if err != nil {
  25637. return nil, err
  25638. }
  25639. }
  25640. args["before"] = arg3
  25641. var arg4 *bool
  25642. if tmp, ok := rawArgs["reverse"]; ok {
  25643. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  25644. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  25645. if err != nil {
  25646. return nil, err
  25647. }
  25648. }
  25649. args["reverse"] = arg4
  25650. var arg5 *ProductCollectionSortKeys
  25651. if tmp, ok := rawArgs["sortKey"]; ok {
  25652. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  25653. arg5, err = ec.unmarshalOProductCollectionSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductCollectionSortKeys(ctx, tmp)
  25654. if err != nil {
  25655. return nil, err
  25656. }
  25657. }
  25658. args["sortKey"] = arg5
  25659. return args, nil
  25660. }
  25661. func (ec *executionContext) field_Collection_publicationCount_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  25662. var err error
  25663. args := map[string]interface{}{}
  25664. var arg0 *bool
  25665. if tmp, ok := rawArgs["onlyPublished"]; ok {
  25666. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onlyPublished"))
  25667. arg0, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  25668. if err != nil {
  25669. return nil, err
  25670. }
  25671. }
  25672. args["onlyPublished"] = arg0
  25673. return args, nil
  25674. }
  25675. func (ec *executionContext) field_Collection_publishedOnPublication_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  25676. var err error
  25677. args := map[string]interface{}{}
  25678. var arg0 string
  25679. if tmp, ok := rawArgs["publicationId"]; ok {
  25680. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("publicationId"))
  25681. arg0, err = ec.unmarshalNID2string(ctx, tmp)
  25682. if err != nil {
  25683. return nil, err
  25684. }
  25685. }
  25686. args["publicationId"] = arg0
  25687. return args, nil
  25688. }
  25689. func (ec *executionContext) field_Collection_resourcePublicationsV2_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  25690. var err error
  25691. args := map[string]interface{}{}
  25692. var arg0 *bool
  25693. if tmp, ok := rawArgs["onlyPublished"]; ok {
  25694. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onlyPublished"))
  25695. arg0, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  25696. if err != nil {
  25697. return nil, err
  25698. }
  25699. }
  25700. args["onlyPublished"] = arg0
  25701. var arg1 *int
  25702. if tmp, ok := rawArgs["first"]; ok {
  25703. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  25704. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25705. if err != nil {
  25706. return nil, err
  25707. }
  25708. }
  25709. args["first"] = arg1
  25710. var arg2 *string
  25711. if tmp, ok := rawArgs["after"]; ok {
  25712. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  25713. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25714. if err != nil {
  25715. return nil, err
  25716. }
  25717. }
  25718. args["after"] = arg2
  25719. var arg3 *int
  25720. if tmp, ok := rawArgs["last"]; ok {
  25721. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  25722. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25723. if err != nil {
  25724. return nil, err
  25725. }
  25726. }
  25727. args["last"] = arg3
  25728. var arg4 *string
  25729. if tmp, ok := rawArgs["before"]; ok {
  25730. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  25731. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25732. if err != nil {
  25733. return nil, err
  25734. }
  25735. }
  25736. args["before"] = arg4
  25737. var arg5 *bool
  25738. if tmp, ok := rawArgs["reverse"]; ok {
  25739. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  25740. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  25741. if err != nil {
  25742. return nil, err
  25743. }
  25744. }
  25745. args["reverse"] = arg5
  25746. return args, nil
  25747. }
  25748. func (ec *executionContext) field_Collection_resourcePublications_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  25749. var err error
  25750. args := map[string]interface{}{}
  25751. var arg0 *bool
  25752. if tmp, ok := rawArgs["onlyPublished"]; ok {
  25753. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onlyPublished"))
  25754. arg0, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  25755. if err != nil {
  25756. return nil, err
  25757. }
  25758. }
  25759. args["onlyPublished"] = arg0
  25760. var arg1 *int
  25761. if tmp, ok := rawArgs["first"]; ok {
  25762. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  25763. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25764. if err != nil {
  25765. return nil, err
  25766. }
  25767. }
  25768. args["first"] = arg1
  25769. var arg2 *string
  25770. if tmp, ok := rawArgs["after"]; ok {
  25771. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  25772. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25773. if err != nil {
  25774. return nil, err
  25775. }
  25776. }
  25777. args["after"] = arg2
  25778. var arg3 *int
  25779. if tmp, ok := rawArgs["last"]; ok {
  25780. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  25781. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25782. if err != nil {
  25783. return nil, err
  25784. }
  25785. }
  25786. args["last"] = arg3
  25787. var arg4 *string
  25788. if tmp, ok := rawArgs["before"]; ok {
  25789. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  25790. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25791. if err != nil {
  25792. return nil, err
  25793. }
  25794. }
  25795. args["before"] = arg4
  25796. var arg5 *bool
  25797. if tmp, ok := rawArgs["reverse"]; ok {
  25798. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  25799. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  25800. if err != nil {
  25801. return nil, err
  25802. }
  25803. }
  25804. args["reverse"] = arg5
  25805. return args, nil
  25806. }
  25807. func (ec *executionContext) field_Collection_translations_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  25808. var err error
  25809. args := map[string]interface{}{}
  25810. var arg0 string
  25811. if tmp, ok := rawArgs["locale"]; ok {
  25812. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("locale"))
  25813. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  25814. if err != nil {
  25815. return nil, err
  25816. }
  25817. }
  25818. args["locale"] = arg0
  25819. var arg1 *string
  25820. if tmp, ok := rawArgs["marketId"]; ok {
  25821. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("marketId"))
  25822. arg1, err = ec.unmarshalOID2ᚖstring(ctx, tmp)
  25823. if err != nil {
  25824. return nil, err
  25825. }
  25826. }
  25827. args["marketId"] = arg1
  25828. return args, nil
  25829. }
  25830. func (ec *executionContext) field_Collection_unpublishedPublications_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  25831. var err error
  25832. args := map[string]interface{}{}
  25833. var arg0 *int
  25834. if tmp, ok := rawArgs["first"]; ok {
  25835. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  25836. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25837. if err != nil {
  25838. return nil, err
  25839. }
  25840. }
  25841. args["first"] = arg0
  25842. var arg1 *string
  25843. if tmp, ok := rawArgs["after"]; ok {
  25844. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  25845. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25846. if err != nil {
  25847. return nil, err
  25848. }
  25849. }
  25850. args["after"] = arg1
  25851. var arg2 *int
  25852. if tmp, ok := rawArgs["last"]; ok {
  25853. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  25854. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25855. if err != nil {
  25856. return nil, err
  25857. }
  25858. }
  25859. args["last"] = arg2
  25860. var arg3 *string
  25861. if tmp, ok := rawArgs["before"]; ok {
  25862. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  25863. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25864. if err != nil {
  25865. return nil, err
  25866. }
  25867. }
  25868. args["before"] = arg3
  25869. var arg4 *bool
  25870. if tmp, ok := rawArgs["reverse"]; ok {
  25871. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  25872. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  25873. if err != nil {
  25874. return nil, err
  25875. }
  25876. }
  25877. args["reverse"] = arg4
  25878. return args, nil
  25879. }
  25880. func (ec *executionContext) field_CompanyContact_draftOrders_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  25881. var err error
  25882. args := map[string]interface{}{}
  25883. var arg0 *int
  25884. if tmp, ok := rawArgs["first"]; ok {
  25885. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  25886. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25887. if err != nil {
  25888. return nil, err
  25889. }
  25890. }
  25891. args["first"] = arg0
  25892. var arg1 *string
  25893. if tmp, ok := rawArgs["after"]; ok {
  25894. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  25895. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25896. if err != nil {
  25897. return nil, err
  25898. }
  25899. }
  25900. args["after"] = arg1
  25901. var arg2 *int
  25902. if tmp, ok := rawArgs["last"]; ok {
  25903. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  25904. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25905. if err != nil {
  25906. return nil, err
  25907. }
  25908. }
  25909. args["last"] = arg2
  25910. var arg3 *string
  25911. if tmp, ok := rawArgs["before"]; ok {
  25912. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  25913. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25914. if err != nil {
  25915. return nil, err
  25916. }
  25917. }
  25918. args["before"] = arg3
  25919. var arg4 *bool
  25920. if tmp, ok := rawArgs["reverse"]; ok {
  25921. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  25922. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  25923. if err != nil {
  25924. return nil, err
  25925. }
  25926. }
  25927. args["reverse"] = arg4
  25928. var arg5 *DraftOrderSortKeys
  25929. if tmp, ok := rawArgs["sortKey"]; ok {
  25930. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  25931. arg5, err = ec.unmarshalODraftOrderSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderSortKeys(ctx, tmp)
  25932. if err != nil {
  25933. return nil, err
  25934. }
  25935. }
  25936. args["sortKey"] = arg5
  25937. var arg6 *string
  25938. if tmp, ok := rawArgs["query"]; ok {
  25939. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
  25940. arg6, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25941. if err != nil {
  25942. return nil, err
  25943. }
  25944. }
  25945. args["query"] = arg6
  25946. return args, nil
  25947. }
  25948. func (ec *executionContext) field_CompanyContact_orders_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  25949. var err error
  25950. args := map[string]interface{}{}
  25951. var arg0 *int
  25952. if tmp, ok := rawArgs["first"]; ok {
  25953. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  25954. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25955. if err != nil {
  25956. return nil, err
  25957. }
  25958. }
  25959. args["first"] = arg0
  25960. var arg1 *string
  25961. if tmp, ok := rawArgs["after"]; ok {
  25962. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  25963. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25964. if err != nil {
  25965. return nil, err
  25966. }
  25967. }
  25968. args["after"] = arg1
  25969. var arg2 *int
  25970. if tmp, ok := rawArgs["last"]; ok {
  25971. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  25972. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  25973. if err != nil {
  25974. return nil, err
  25975. }
  25976. }
  25977. args["last"] = arg2
  25978. var arg3 *string
  25979. if tmp, ok := rawArgs["before"]; ok {
  25980. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  25981. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  25982. if err != nil {
  25983. return nil, err
  25984. }
  25985. }
  25986. args["before"] = arg3
  25987. var arg4 *bool
  25988. if tmp, ok := rawArgs["reverse"]; ok {
  25989. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  25990. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  25991. if err != nil {
  25992. return nil, err
  25993. }
  25994. }
  25995. args["reverse"] = arg4
  25996. var arg5 *OrderSortKeys
  25997. if tmp, ok := rawArgs["sortKey"]; ok {
  25998. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  25999. arg5, err = ec.unmarshalOOrderSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderSortKeys(ctx, tmp)
  26000. if err != nil {
  26001. return nil, err
  26002. }
  26003. }
  26004. args["sortKey"] = arg5
  26005. return args, nil
  26006. }
  26007. func (ec *executionContext) field_CompanyContact_roleAssignments_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  26008. var err error
  26009. args := map[string]interface{}{}
  26010. var arg0 *int
  26011. if tmp, ok := rawArgs["first"]; ok {
  26012. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  26013. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26014. if err != nil {
  26015. return nil, err
  26016. }
  26017. }
  26018. args["first"] = arg0
  26019. var arg1 *string
  26020. if tmp, ok := rawArgs["after"]; ok {
  26021. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  26022. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26023. if err != nil {
  26024. return nil, err
  26025. }
  26026. }
  26027. args["after"] = arg1
  26028. var arg2 *int
  26029. if tmp, ok := rawArgs["last"]; ok {
  26030. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  26031. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26032. if err != nil {
  26033. return nil, err
  26034. }
  26035. }
  26036. args["last"] = arg2
  26037. var arg3 *string
  26038. if tmp, ok := rawArgs["before"]; ok {
  26039. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  26040. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26041. if err != nil {
  26042. return nil, err
  26043. }
  26044. }
  26045. args["before"] = arg3
  26046. var arg4 *bool
  26047. if tmp, ok := rawArgs["reverse"]; ok {
  26048. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  26049. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  26050. if err != nil {
  26051. return nil, err
  26052. }
  26053. }
  26054. args["reverse"] = arg4
  26055. var arg5 *CompanyContactRoleAssignmentSortKeys
  26056. if tmp, ok := rawArgs["sortKey"]; ok {
  26057. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  26058. arg5, err = ec.unmarshalOCompanyContactRoleAssignmentSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRoleAssignmentSortKeys(ctx, tmp)
  26059. if err != nil {
  26060. return nil, err
  26061. }
  26062. }
  26063. args["sortKey"] = arg5
  26064. var arg6 *string
  26065. if tmp, ok := rawArgs["query"]; ok {
  26066. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
  26067. arg6, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26068. if err != nil {
  26069. return nil, err
  26070. }
  26071. }
  26072. args["query"] = arg6
  26073. return args, nil
  26074. }
  26075. func (ec *executionContext) field_CompanyLocation_draftOrders_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  26076. var err error
  26077. args := map[string]interface{}{}
  26078. var arg0 *int
  26079. if tmp, ok := rawArgs["first"]; ok {
  26080. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  26081. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26082. if err != nil {
  26083. return nil, err
  26084. }
  26085. }
  26086. args["first"] = arg0
  26087. var arg1 *string
  26088. if tmp, ok := rawArgs["after"]; ok {
  26089. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  26090. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26091. if err != nil {
  26092. return nil, err
  26093. }
  26094. }
  26095. args["after"] = arg1
  26096. var arg2 *int
  26097. if tmp, ok := rawArgs["last"]; ok {
  26098. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  26099. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26100. if err != nil {
  26101. return nil, err
  26102. }
  26103. }
  26104. args["last"] = arg2
  26105. var arg3 *string
  26106. if tmp, ok := rawArgs["before"]; ok {
  26107. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  26108. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26109. if err != nil {
  26110. return nil, err
  26111. }
  26112. }
  26113. args["before"] = arg3
  26114. var arg4 *bool
  26115. if tmp, ok := rawArgs["reverse"]; ok {
  26116. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  26117. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  26118. if err != nil {
  26119. return nil, err
  26120. }
  26121. }
  26122. args["reverse"] = arg4
  26123. var arg5 *DraftOrderSortKeys
  26124. if tmp, ok := rawArgs["sortKey"]; ok {
  26125. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  26126. arg5, err = ec.unmarshalODraftOrderSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderSortKeys(ctx, tmp)
  26127. if err != nil {
  26128. return nil, err
  26129. }
  26130. }
  26131. args["sortKey"] = arg5
  26132. var arg6 *string
  26133. if tmp, ok := rawArgs["query"]; ok {
  26134. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
  26135. arg6, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26136. if err != nil {
  26137. return nil, err
  26138. }
  26139. }
  26140. args["query"] = arg6
  26141. return args, nil
  26142. }
  26143. func (ec *executionContext) field_CompanyLocation_events_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  26144. var err error
  26145. args := map[string]interface{}{}
  26146. var arg0 *int
  26147. if tmp, ok := rawArgs["first"]; ok {
  26148. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  26149. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26150. if err != nil {
  26151. return nil, err
  26152. }
  26153. }
  26154. args["first"] = arg0
  26155. var arg1 *string
  26156. if tmp, ok := rawArgs["after"]; ok {
  26157. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  26158. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26159. if err != nil {
  26160. return nil, err
  26161. }
  26162. }
  26163. args["after"] = arg1
  26164. var arg2 *int
  26165. if tmp, ok := rawArgs["last"]; ok {
  26166. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  26167. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26168. if err != nil {
  26169. return nil, err
  26170. }
  26171. }
  26172. args["last"] = arg2
  26173. var arg3 *string
  26174. if tmp, ok := rawArgs["before"]; ok {
  26175. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  26176. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26177. if err != nil {
  26178. return nil, err
  26179. }
  26180. }
  26181. args["before"] = arg3
  26182. var arg4 *bool
  26183. if tmp, ok := rawArgs["reverse"]; ok {
  26184. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  26185. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  26186. if err != nil {
  26187. return nil, err
  26188. }
  26189. }
  26190. args["reverse"] = arg4
  26191. var arg5 *EventSortKeys
  26192. if tmp, ok := rawArgs["sortKey"]; ok {
  26193. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  26194. arg5, err = ec.unmarshalOEventSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐEventSortKeys(ctx, tmp)
  26195. if err != nil {
  26196. return nil, err
  26197. }
  26198. }
  26199. args["sortKey"] = arg5
  26200. var arg6 *string
  26201. if tmp, ok := rawArgs["query"]; ok {
  26202. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
  26203. arg6, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26204. if err != nil {
  26205. return nil, err
  26206. }
  26207. }
  26208. args["query"] = arg6
  26209. return args, nil
  26210. }
  26211. func (ec *executionContext) field_CompanyLocation_orders_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  26212. var err error
  26213. args := map[string]interface{}{}
  26214. var arg0 *int
  26215. if tmp, ok := rawArgs["first"]; ok {
  26216. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  26217. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26218. if err != nil {
  26219. return nil, err
  26220. }
  26221. }
  26222. args["first"] = arg0
  26223. var arg1 *string
  26224. if tmp, ok := rawArgs["after"]; ok {
  26225. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  26226. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26227. if err != nil {
  26228. return nil, err
  26229. }
  26230. }
  26231. args["after"] = arg1
  26232. var arg2 *int
  26233. if tmp, ok := rawArgs["last"]; ok {
  26234. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  26235. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26236. if err != nil {
  26237. return nil, err
  26238. }
  26239. }
  26240. args["last"] = arg2
  26241. var arg3 *string
  26242. if tmp, ok := rawArgs["before"]; ok {
  26243. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  26244. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26245. if err != nil {
  26246. return nil, err
  26247. }
  26248. }
  26249. args["before"] = arg3
  26250. var arg4 *bool
  26251. if tmp, ok := rawArgs["reverse"]; ok {
  26252. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  26253. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  26254. if err != nil {
  26255. return nil, err
  26256. }
  26257. }
  26258. args["reverse"] = arg4
  26259. var arg5 *OrderSortKeys
  26260. if tmp, ok := rawArgs["sortKey"]; ok {
  26261. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  26262. arg5, err = ec.unmarshalOOrderSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderSortKeys(ctx, tmp)
  26263. if err != nil {
  26264. return nil, err
  26265. }
  26266. }
  26267. args["sortKey"] = arg5
  26268. return args, nil
  26269. }
  26270. func (ec *executionContext) field_CompanyLocation_roleAssignments_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  26271. var err error
  26272. args := map[string]interface{}{}
  26273. var arg0 *int
  26274. if tmp, ok := rawArgs["first"]; ok {
  26275. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  26276. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26277. if err != nil {
  26278. return nil, err
  26279. }
  26280. }
  26281. args["first"] = arg0
  26282. var arg1 *string
  26283. if tmp, ok := rawArgs["after"]; ok {
  26284. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  26285. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26286. if err != nil {
  26287. return nil, err
  26288. }
  26289. }
  26290. args["after"] = arg1
  26291. var arg2 *int
  26292. if tmp, ok := rawArgs["last"]; ok {
  26293. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  26294. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26295. if err != nil {
  26296. return nil, err
  26297. }
  26298. }
  26299. args["last"] = arg2
  26300. var arg3 *string
  26301. if tmp, ok := rawArgs["before"]; ok {
  26302. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  26303. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26304. if err != nil {
  26305. return nil, err
  26306. }
  26307. }
  26308. args["before"] = arg3
  26309. var arg4 *bool
  26310. if tmp, ok := rawArgs["reverse"]; ok {
  26311. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  26312. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  26313. if err != nil {
  26314. return nil, err
  26315. }
  26316. }
  26317. args["reverse"] = arg4
  26318. var arg5 *CompanyContactRoleAssignmentSortKeys
  26319. if tmp, ok := rawArgs["sortKey"]; ok {
  26320. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  26321. arg5, err = ec.unmarshalOCompanyContactRoleAssignmentSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRoleAssignmentSortKeys(ctx, tmp)
  26322. if err != nil {
  26323. return nil, err
  26324. }
  26325. }
  26326. args["sortKey"] = arg5
  26327. var arg6 *string
  26328. if tmp, ok := rawArgs["query"]; ok {
  26329. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
  26330. arg6, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26331. if err != nil {
  26332. return nil, err
  26333. }
  26334. }
  26335. args["query"] = arg6
  26336. return args, nil
  26337. }
  26338. func (ec *executionContext) field_Company_contactRoles_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  26339. var err error
  26340. args := map[string]interface{}{}
  26341. var arg0 *int
  26342. if tmp, ok := rawArgs["first"]; ok {
  26343. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  26344. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26345. if err != nil {
  26346. return nil, err
  26347. }
  26348. }
  26349. args["first"] = arg0
  26350. var arg1 *string
  26351. if tmp, ok := rawArgs["after"]; ok {
  26352. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  26353. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26354. if err != nil {
  26355. return nil, err
  26356. }
  26357. }
  26358. args["after"] = arg1
  26359. var arg2 *int
  26360. if tmp, ok := rawArgs["last"]; ok {
  26361. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  26362. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26363. if err != nil {
  26364. return nil, err
  26365. }
  26366. }
  26367. args["last"] = arg2
  26368. var arg3 *string
  26369. if tmp, ok := rawArgs["before"]; ok {
  26370. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  26371. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26372. if err != nil {
  26373. return nil, err
  26374. }
  26375. }
  26376. args["before"] = arg3
  26377. var arg4 *bool
  26378. if tmp, ok := rawArgs["reverse"]; ok {
  26379. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  26380. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  26381. if err != nil {
  26382. return nil, err
  26383. }
  26384. }
  26385. args["reverse"] = arg4
  26386. var arg5 *CompanyContactRoleSortKeys
  26387. if tmp, ok := rawArgs["sortKey"]; ok {
  26388. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  26389. arg5, err = ec.unmarshalOCompanyContactRoleSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRoleSortKeys(ctx, tmp)
  26390. if err != nil {
  26391. return nil, err
  26392. }
  26393. }
  26394. args["sortKey"] = arg5
  26395. return args, nil
  26396. }
  26397. func (ec *executionContext) field_Company_contacts_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  26398. var err error
  26399. args := map[string]interface{}{}
  26400. var arg0 *int
  26401. if tmp, ok := rawArgs["first"]; ok {
  26402. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  26403. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26404. if err != nil {
  26405. return nil, err
  26406. }
  26407. }
  26408. args["first"] = arg0
  26409. var arg1 *string
  26410. if tmp, ok := rawArgs["after"]; ok {
  26411. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  26412. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26413. if err != nil {
  26414. return nil, err
  26415. }
  26416. }
  26417. args["after"] = arg1
  26418. var arg2 *int
  26419. if tmp, ok := rawArgs["last"]; ok {
  26420. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  26421. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26422. if err != nil {
  26423. return nil, err
  26424. }
  26425. }
  26426. args["last"] = arg2
  26427. var arg3 *string
  26428. if tmp, ok := rawArgs["before"]; ok {
  26429. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  26430. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26431. if err != nil {
  26432. return nil, err
  26433. }
  26434. }
  26435. args["before"] = arg3
  26436. var arg4 *bool
  26437. if tmp, ok := rawArgs["reverse"]; ok {
  26438. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  26439. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  26440. if err != nil {
  26441. return nil, err
  26442. }
  26443. }
  26444. args["reverse"] = arg4
  26445. var arg5 *CompanyContactSortKeys
  26446. if tmp, ok := rawArgs["sortKey"]; ok {
  26447. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  26448. arg5, err = ec.unmarshalOCompanyContactSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactSortKeys(ctx, tmp)
  26449. if err != nil {
  26450. return nil, err
  26451. }
  26452. }
  26453. args["sortKey"] = arg5
  26454. var arg6 *string
  26455. if tmp, ok := rawArgs["query"]; ok {
  26456. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
  26457. arg6, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26458. if err != nil {
  26459. return nil, err
  26460. }
  26461. }
  26462. args["query"] = arg6
  26463. return args, nil
  26464. }
  26465. func (ec *executionContext) field_Company_draftOrders_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  26466. var err error
  26467. args := map[string]interface{}{}
  26468. var arg0 *int
  26469. if tmp, ok := rawArgs["first"]; ok {
  26470. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  26471. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26472. if err != nil {
  26473. return nil, err
  26474. }
  26475. }
  26476. args["first"] = arg0
  26477. var arg1 *string
  26478. if tmp, ok := rawArgs["after"]; ok {
  26479. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  26480. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26481. if err != nil {
  26482. return nil, err
  26483. }
  26484. }
  26485. args["after"] = arg1
  26486. var arg2 *int
  26487. if tmp, ok := rawArgs["last"]; ok {
  26488. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  26489. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26490. if err != nil {
  26491. return nil, err
  26492. }
  26493. }
  26494. args["last"] = arg2
  26495. var arg3 *string
  26496. if tmp, ok := rawArgs["before"]; ok {
  26497. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  26498. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26499. if err != nil {
  26500. return nil, err
  26501. }
  26502. }
  26503. args["before"] = arg3
  26504. var arg4 *bool
  26505. if tmp, ok := rawArgs["reverse"]; ok {
  26506. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  26507. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  26508. if err != nil {
  26509. return nil, err
  26510. }
  26511. }
  26512. args["reverse"] = arg4
  26513. var arg5 *DraftOrderSortKeys
  26514. if tmp, ok := rawArgs["sortKey"]; ok {
  26515. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  26516. arg5, err = ec.unmarshalODraftOrderSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderSortKeys(ctx, tmp)
  26517. if err != nil {
  26518. return nil, err
  26519. }
  26520. }
  26521. args["sortKey"] = arg5
  26522. var arg6 *string
  26523. if tmp, ok := rawArgs["query"]; ok {
  26524. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
  26525. arg6, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26526. if err != nil {
  26527. return nil, err
  26528. }
  26529. }
  26530. args["query"] = arg6
  26531. return args, nil
  26532. }
  26533. func (ec *executionContext) field_Company_events_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  26534. var err error
  26535. args := map[string]interface{}{}
  26536. var arg0 *int
  26537. if tmp, ok := rawArgs["first"]; ok {
  26538. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  26539. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26540. if err != nil {
  26541. return nil, err
  26542. }
  26543. }
  26544. args["first"] = arg0
  26545. var arg1 *string
  26546. if tmp, ok := rawArgs["after"]; ok {
  26547. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  26548. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26549. if err != nil {
  26550. return nil, err
  26551. }
  26552. }
  26553. args["after"] = arg1
  26554. var arg2 *int
  26555. if tmp, ok := rawArgs["last"]; ok {
  26556. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  26557. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26558. if err != nil {
  26559. return nil, err
  26560. }
  26561. }
  26562. args["last"] = arg2
  26563. var arg3 *string
  26564. if tmp, ok := rawArgs["before"]; ok {
  26565. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  26566. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26567. if err != nil {
  26568. return nil, err
  26569. }
  26570. }
  26571. args["before"] = arg3
  26572. var arg4 *bool
  26573. if tmp, ok := rawArgs["reverse"]; ok {
  26574. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  26575. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  26576. if err != nil {
  26577. return nil, err
  26578. }
  26579. }
  26580. args["reverse"] = arg4
  26581. var arg5 *EventSortKeys
  26582. if tmp, ok := rawArgs["sortKey"]; ok {
  26583. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  26584. arg5, err = ec.unmarshalOEventSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐEventSortKeys(ctx, tmp)
  26585. if err != nil {
  26586. return nil, err
  26587. }
  26588. }
  26589. args["sortKey"] = arg5
  26590. var arg6 *string
  26591. if tmp, ok := rawArgs["query"]; ok {
  26592. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
  26593. arg6, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26594. if err != nil {
  26595. return nil, err
  26596. }
  26597. }
  26598. args["query"] = arg6
  26599. return args, nil
  26600. }
  26601. func (ec *executionContext) field_Company_locations_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  26602. var err error
  26603. args := map[string]interface{}{}
  26604. var arg0 *int
  26605. if tmp, ok := rawArgs["first"]; ok {
  26606. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  26607. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26608. if err != nil {
  26609. return nil, err
  26610. }
  26611. }
  26612. args["first"] = arg0
  26613. var arg1 *string
  26614. if tmp, ok := rawArgs["after"]; ok {
  26615. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  26616. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26617. if err != nil {
  26618. return nil, err
  26619. }
  26620. }
  26621. args["after"] = arg1
  26622. var arg2 *int
  26623. if tmp, ok := rawArgs["last"]; ok {
  26624. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  26625. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26626. if err != nil {
  26627. return nil, err
  26628. }
  26629. }
  26630. args["last"] = arg2
  26631. var arg3 *string
  26632. if tmp, ok := rawArgs["before"]; ok {
  26633. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  26634. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26635. if err != nil {
  26636. return nil, err
  26637. }
  26638. }
  26639. args["before"] = arg3
  26640. var arg4 *bool
  26641. if tmp, ok := rawArgs["reverse"]; ok {
  26642. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  26643. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  26644. if err != nil {
  26645. return nil, err
  26646. }
  26647. }
  26648. args["reverse"] = arg4
  26649. var arg5 *CompanyLocationSortKeys
  26650. if tmp, ok := rawArgs["sortKey"]; ok {
  26651. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  26652. arg5, err = ec.unmarshalOCompanyLocationSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyLocationSortKeys(ctx, tmp)
  26653. if err != nil {
  26654. return nil, err
  26655. }
  26656. }
  26657. args["sortKey"] = arg5
  26658. var arg6 *string
  26659. if tmp, ok := rawArgs["query"]; ok {
  26660. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
  26661. arg6, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26662. if err != nil {
  26663. return nil, err
  26664. }
  26665. }
  26666. args["query"] = arg6
  26667. return args, nil
  26668. }
  26669. func (ec *executionContext) field_Company_orders_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  26670. var err error
  26671. args := map[string]interface{}{}
  26672. var arg0 *int
  26673. if tmp, ok := rawArgs["first"]; ok {
  26674. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  26675. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26676. if err != nil {
  26677. return nil, err
  26678. }
  26679. }
  26680. args["first"] = arg0
  26681. var arg1 *string
  26682. if tmp, ok := rawArgs["after"]; ok {
  26683. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  26684. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26685. if err != nil {
  26686. return nil, err
  26687. }
  26688. }
  26689. args["after"] = arg1
  26690. var arg2 *int
  26691. if tmp, ok := rawArgs["last"]; ok {
  26692. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  26693. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26694. if err != nil {
  26695. return nil, err
  26696. }
  26697. }
  26698. args["last"] = arg2
  26699. var arg3 *string
  26700. if tmp, ok := rawArgs["before"]; ok {
  26701. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  26702. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26703. if err != nil {
  26704. return nil, err
  26705. }
  26706. }
  26707. args["before"] = arg3
  26708. var arg4 *bool
  26709. if tmp, ok := rawArgs["reverse"]; ok {
  26710. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  26711. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  26712. if err != nil {
  26713. return nil, err
  26714. }
  26715. }
  26716. args["reverse"] = arg4
  26717. var arg5 *OrderSortKeys
  26718. if tmp, ok := rawArgs["sortKey"]; ok {
  26719. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  26720. arg5, err = ec.unmarshalOOrderSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderSortKeys(ctx, tmp)
  26721. if err != nil {
  26722. return nil, err
  26723. }
  26724. }
  26725. args["sortKey"] = arg5
  26726. return args, nil
  26727. }
  26728. func (ec *executionContext) field_CustomerJourneySummary_moments_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  26729. var err error
  26730. args := map[string]interface{}{}
  26731. var arg0 *int
  26732. if tmp, ok := rawArgs["first"]; ok {
  26733. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  26734. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26735. if err != nil {
  26736. return nil, err
  26737. }
  26738. }
  26739. args["first"] = arg0
  26740. var arg1 *string
  26741. if tmp, ok := rawArgs["after"]; ok {
  26742. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  26743. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26744. if err != nil {
  26745. return nil, err
  26746. }
  26747. }
  26748. args["after"] = arg1
  26749. var arg2 *int
  26750. if tmp, ok := rawArgs["last"]; ok {
  26751. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  26752. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26753. if err != nil {
  26754. return nil, err
  26755. }
  26756. }
  26757. args["last"] = arg2
  26758. var arg3 *string
  26759. if tmp, ok := rawArgs["before"]; ok {
  26760. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  26761. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26762. if err != nil {
  26763. return nil, err
  26764. }
  26765. }
  26766. args["before"] = arg3
  26767. var arg4 *bool
  26768. if tmp, ok := rawArgs["reverse"]; ok {
  26769. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  26770. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  26771. if err != nil {
  26772. return nil, err
  26773. }
  26774. }
  26775. args["reverse"] = arg4
  26776. return args, nil
  26777. }
  26778. func (ec *executionContext) field_CustomerPaymentMethod_subscriptionContracts_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  26779. var err error
  26780. args := map[string]interface{}{}
  26781. var arg0 *int
  26782. if tmp, ok := rawArgs["first"]; ok {
  26783. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  26784. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26785. if err != nil {
  26786. return nil, err
  26787. }
  26788. }
  26789. args["first"] = arg0
  26790. var arg1 *string
  26791. if tmp, ok := rawArgs["after"]; ok {
  26792. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  26793. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26794. if err != nil {
  26795. return nil, err
  26796. }
  26797. }
  26798. args["after"] = arg1
  26799. var arg2 *int
  26800. if tmp, ok := rawArgs["last"]; ok {
  26801. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  26802. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26803. if err != nil {
  26804. return nil, err
  26805. }
  26806. }
  26807. args["last"] = arg2
  26808. var arg3 *string
  26809. if tmp, ok := rawArgs["before"]; ok {
  26810. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  26811. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26812. if err != nil {
  26813. return nil, err
  26814. }
  26815. }
  26816. args["before"] = arg3
  26817. var arg4 *bool
  26818. if tmp, ok := rawArgs["reverse"]; ok {
  26819. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  26820. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  26821. if err != nil {
  26822. return nil, err
  26823. }
  26824. }
  26825. args["reverse"] = arg4
  26826. return args, nil
  26827. }
  26828. func (ec *executionContext) field_Customer_addresses_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  26829. var err error
  26830. args := map[string]interface{}{}
  26831. var arg0 *int
  26832. if tmp, ok := rawArgs["first"]; ok {
  26833. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  26834. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26835. if err != nil {
  26836. return nil, err
  26837. }
  26838. }
  26839. args["first"] = arg0
  26840. return args, nil
  26841. }
  26842. func (ec *executionContext) field_Customer_events_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  26843. var err error
  26844. args := map[string]interface{}{}
  26845. var arg0 *int
  26846. if tmp, ok := rawArgs["first"]; ok {
  26847. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  26848. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26849. if err != nil {
  26850. return nil, err
  26851. }
  26852. }
  26853. args["first"] = arg0
  26854. var arg1 *string
  26855. if tmp, ok := rawArgs["after"]; ok {
  26856. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  26857. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26858. if err != nil {
  26859. return nil, err
  26860. }
  26861. }
  26862. args["after"] = arg1
  26863. var arg2 *int
  26864. if tmp, ok := rawArgs["last"]; ok {
  26865. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  26866. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26867. if err != nil {
  26868. return nil, err
  26869. }
  26870. }
  26871. args["last"] = arg2
  26872. var arg3 *string
  26873. if tmp, ok := rawArgs["before"]; ok {
  26874. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  26875. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26876. if err != nil {
  26877. return nil, err
  26878. }
  26879. }
  26880. args["before"] = arg3
  26881. var arg4 *bool
  26882. if tmp, ok := rawArgs["reverse"]; ok {
  26883. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  26884. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  26885. if err != nil {
  26886. return nil, err
  26887. }
  26888. }
  26889. args["reverse"] = arg4
  26890. var arg5 *EventSortKeys
  26891. if tmp, ok := rawArgs["sortKey"]; ok {
  26892. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  26893. arg5, err = ec.unmarshalOEventSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐEventSortKeys(ctx, tmp)
  26894. if err != nil {
  26895. return nil, err
  26896. }
  26897. }
  26898. args["sortKey"] = arg5
  26899. var arg6 *string
  26900. if tmp, ok := rawArgs["query"]; ok {
  26901. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
  26902. arg6, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26903. if err != nil {
  26904. return nil, err
  26905. }
  26906. }
  26907. args["query"] = arg6
  26908. return args, nil
  26909. }
  26910. func (ec *executionContext) field_Customer_metafieldDefinitions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  26911. var err error
  26912. args := map[string]interface{}{}
  26913. var arg0 *string
  26914. if tmp, ok := rawArgs["namespace"]; ok {
  26915. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  26916. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26917. if err != nil {
  26918. return nil, err
  26919. }
  26920. }
  26921. args["namespace"] = arg0
  26922. var arg1 *MetafieldDefinitionPinnedStatus
  26923. if tmp, ok := rawArgs["pinnedStatus"]; ok {
  26924. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pinnedStatus"))
  26925. arg1, err = ec.unmarshalOMetafieldDefinitionPinnedStatus2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionPinnedStatus(ctx, tmp)
  26926. if err != nil {
  26927. return nil, err
  26928. }
  26929. }
  26930. args["pinnedStatus"] = arg1
  26931. var arg2 *int
  26932. if tmp, ok := rawArgs["first"]; ok {
  26933. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  26934. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26935. if err != nil {
  26936. return nil, err
  26937. }
  26938. }
  26939. args["first"] = arg2
  26940. var arg3 *string
  26941. if tmp, ok := rawArgs["after"]; ok {
  26942. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  26943. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26944. if err != nil {
  26945. return nil, err
  26946. }
  26947. }
  26948. args["after"] = arg3
  26949. var arg4 *int
  26950. if tmp, ok := rawArgs["last"]; ok {
  26951. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  26952. arg4, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  26953. if err != nil {
  26954. return nil, err
  26955. }
  26956. }
  26957. args["last"] = arg4
  26958. var arg5 *string
  26959. if tmp, ok := rawArgs["before"]; ok {
  26960. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  26961. arg5, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26962. if err != nil {
  26963. return nil, err
  26964. }
  26965. }
  26966. args["before"] = arg5
  26967. var arg6 *bool
  26968. if tmp, ok := rawArgs["reverse"]; ok {
  26969. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  26970. arg6, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  26971. if err != nil {
  26972. return nil, err
  26973. }
  26974. }
  26975. args["reverse"] = arg6
  26976. var arg7 *MetafieldDefinitionSortKeys
  26977. if tmp, ok := rawArgs["sortKey"]; ok {
  26978. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  26979. arg7, err = ec.unmarshalOMetafieldDefinitionSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionSortKeys(ctx, tmp)
  26980. if err != nil {
  26981. return nil, err
  26982. }
  26983. }
  26984. args["sortKey"] = arg7
  26985. var arg8 *string
  26986. if tmp, ok := rawArgs["query"]; ok {
  26987. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
  26988. arg8, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  26989. if err != nil {
  26990. return nil, err
  26991. }
  26992. }
  26993. args["query"] = arg8
  26994. return args, nil
  26995. }
  26996. func (ec *executionContext) field_Customer_metafield_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  26997. var err error
  26998. args := map[string]interface{}{}
  26999. var arg0 string
  27000. if tmp, ok := rawArgs["namespace"]; ok {
  27001. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  27002. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  27003. if err != nil {
  27004. return nil, err
  27005. }
  27006. }
  27007. args["namespace"] = arg0
  27008. var arg1 string
  27009. if tmp, ok := rawArgs["key"]; ok {
  27010. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key"))
  27011. arg1, err = ec.unmarshalNString2string(ctx, tmp)
  27012. if err != nil {
  27013. return nil, err
  27014. }
  27015. }
  27016. args["key"] = arg1
  27017. return args, nil
  27018. }
  27019. func (ec *executionContext) field_Customer_metafields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  27020. var err error
  27021. args := map[string]interface{}{}
  27022. var arg0 *string
  27023. if tmp, ok := rawArgs["namespace"]; ok {
  27024. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  27025. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27026. if err != nil {
  27027. return nil, err
  27028. }
  27029. }
  27030. args["namespace"] = arg0
  27031. var arg1 *int
  27032. if tmp, ok := rawArgs["first"]; ok {
  27033. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  27034. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27035. if err != nil {
  27036. return nil, err
  27037. }
  27038. }
  27039. args["first"] = arg1
  27040. var arg2 *string
  27041. if tmp, ok := rawArgs["after"]; ok {
  27042. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  27043. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27044. if err != nil {
  27045. return nil, err
  27046. }
  27047. }
  27048. args["after"] = arg2
  27049. var arg3 *int
  27050. if tmp, ok := rawArgs["last"]; ok {
  27051. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  27052. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27053. if err != nil {
  27054. return nil, err
  27055. }
  27056. }
  27057. args["last"] = arg3
  27058. var arg4 *string
  27059. if tmp, ok := rawArgs["before"]; ok {
  27060. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  27061. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27062. if err != nil {
  27063. return nil, err
  27064. }
  27065. }
  27066. args["before"] = arg4
  27067. var arg5 *bool
  27068. if tmp, ok := rawArgs["reverse"]; ok {
  27069. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  27070. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  27071. if err != nil {
  27072. return nil, err
  27073. }
  27074. }
  27075. args["reverse"] = arg5
  27076. return args, nil
  27077. }
  27078. func (ec *executionContext) field_Customer_orders_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  27079. var err error
  27080. args := map[string]interface{}{}
  27081. var arg0 *int
  27082. if tmp, ok := rawArgs["first"]; ok {
  27083. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  27084. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27085. if err != nil {
  27086. return nil, err
  27087. }
  27088. }
  27089. args["first"] = arg0
  27090. var arg1 *string
  27091. if tmp, ok := rawArgs["after"]; ok {
  27092. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  27093. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27094. if err != nil {
  27095. return nil, err
  27096. }
  27097. }
  27098. args["after"] = arg1
  27099. var arg2 *int
  27100. if tmp, ok := rawArgs["last"]; ok {
  27101. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  27102. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27103. if err != nil {
  27104. return nil, err
  27105. }
  27106. }
  27107. args["last"] = arg2
  27108. var arg3 *string
  27109. if tmp, ok := rawArgs["before"]; ok {
  27110. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  27111. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27112. if err != nil {
  27113. return nil, err
  27114. }
  27115. }
  27116. args["before"] = arg3
  27117. var arg4 *bool
  27118. if tmp, ok := rawArgs["reverse"]; ok {
  27119. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  27120. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  27121. if err != nil {
  27122. return nil, err
  27123. }
  27124. }
  27125. args["reverse"] = arg4
  27126. var arg5 *OrderSortKeys
  27127. if tmp, ok := rawArgs["sortKey"]; ok {
  27128. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  27129. arg5, err = ec.unmarshalOOrderSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderSortKeys(ctx, tmp)
  27130. if err != nil {
  27131. return nil, err
  27132. }
  27133. }
  27134. args["sortKey"] = arg5
  27135. var arg6 *string
  27136. if tmp, ok := rawArgs["query"]; ok {
  27137. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
  27138. arg6, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27139. if err != nil {
  27140. return nil, err
  27141. }
  27142. }
  27143. args["query"] = arg6
  27144. return args, nil
  27145. }
  27146. func (ec *executionContext) field_Customer_paymentMethods_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  27147. var err error
  27148. args := map[string]interface{}{}
  27149. var arg0 *bool
  27150. if tmp, ok := rawArgs["showRevoked"]; ok {
  27151. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("showRevoked"))
  27152. arg0, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  27153. if err != nil {
  27154. return nil, err
  27155. }
  27156. }
  27157. args["showRevoked"] = arg0
  27158. var arg1 *int
  27159. if tmp, ok := rawArgs["first"]; ok {
  27160. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  27161. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27162. if err != nil {
  27163. return nil, err
  27164. }
  27165. }
  27166. args["first"] = arg1
  27167. var arg2 *string
  27168. if tmp, ok := rawArgs["after"]; ok {
  27169. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  27170. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27171. if err != nil {
  27172. return nil, err
  27173. }
  27174. }
  27175. args["after"] = arg2
  27176. var arg3 *int
  27177. if tmp, ok := rawArgs["last"]; ok {
  27178. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  27179. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27180. if err != nil {
  27181. return nil, err
  27182. }
  27183. }
  27184. args["last"] = arg3
  27185. var arg4 *string
  27186. if tmp, ok := rawArgs["before"]; ok {
  27187. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  27188. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27189. if err != nil {
  27190. return nil, err
  27191. }
  27192. }
  27193. args["before"] = arg4
  27194. var arg5 *bool
  27195. if tmp, ok := rawArgs["reverse"]; ok {
  27196. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  27197. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  27198. if err != nil {
  27199. return nil, err
  27200. }
  27201. }
  27202. args["reverse"] = arg5
  27203. return args, nil
  27204. }
  27205. func (ec *executionContext) field_Customer_privateMetafield_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  27206. var err error
  27207. args := map[string]interface{}{}
  27208. var arg0 string
  27209. if tmp, ok := rawArgs["namespace"]; ok {
  27210. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  27211. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  27212. if err != nil {
  27213. return nil, err
  27214. }
  27215. }
  27216. args["namespace"] = arg0
  27217. var arg1 string
  27218. if tmp, ok := rawArgs["key"]; ok {
  27219. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key"))
  27220. arg1, err = ec.unmarshalNString2string(ctx, tmp)
  27221. if err != nil {
  27222. return nil, err
  27223. }
  27224. }
  27225. args["key"] = arg1
  27226. return args, nil
  27227. }
  27228. func (ec *executionContext) field_Customer_privateMetafields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  27229. var err error
  27230. args := map[string]interface{}{}
  27231. var arg0 *string
  27232. if tmp, ok := rawArgs["namespace"]; ok {
  27233. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  27234. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27235. if err != nil {
  27236. return nil, err
  27237. }
  27238. }
  27239. args["namespace"] = arg0
  27240. var arg1 *int
  27241. if tmp, ok := rawArgs["first"]; ok {
  27242. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  27243. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27244. if err != nil {
  27245. return nil, err
  27246. }
  27247. }
  27248. args["first"] = arg1
  27249. var arg2 *string
  27250. if tmp, ok := rawArgs["after"]; ok {
  27251. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  27252. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27253. if err != nil {
  27254. return nil, err
  27255. }
  27256. }
  27257. args["after"] = arg2
  27258. var arg3 *int
  27259. if tmp, ok := rawArgs["last"]; ok {
  27260. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  27261. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27262. if err != nil {
  27263. return nil, err
  27264. }
  27265. }
  27266. args["last"] = arg3
  27267. var arg4 *string
  27268. if tmp, ok := rawArgs["before"]; ok {
  27269. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  27270. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27271. if err != nil {
  27272. return nil, err
  27273. }
  27274. }
  27275. args["before"] = arg4
  27276. var arg5 *bool
  27277. if tmp, ok := rawArgs["reverse"]; ok {
  27278. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  27279. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  27280. if err != nil {
  27281. return nil, err
  27282. }
  27283. }
  27284. args["reverse"] = arg5
  27285. return args, nil
  27286. }
  27287. func (ec *executionContext) field_Customer_subscriptionContracts_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  27288. var err error
  27289. args := map[string]interface{}{}
  27290. var arg0 *int
  27291. if tmp, ok := rawArgs["first"]; ok {
  27292. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  27293. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27294. if err != nil {
  27295. return nil, err
  27296. }
  27297. }
  27298. args["first"] = arg0
  27299. var arg1 *string
  27300. if tmp, ok := rawArgs["after"]; ok {
  27301. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  27302. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27303. if err != nil {
  27304. return nil, err
  27305. }
  27306. }
  27307. args["after"] = arg1
  27308. var arg2 *int
  27309. if tmp, ok := rawArgs["last"]; ok {
  27310. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  27311. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27312. if err != nil {
  27313. return nil, err
  27314. }
  27315. }
  27316. args["last"] = arg2
  27317. var arg3 *string
  27318. if tmp, ok := rawArgs["before"]; ok {
  27319. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  27320. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27321. if err != nil {
  27322. return nil, err
  27323. }
  27324. }
  27325. args["before"] = arg3
  27326. var arg4 *bool
  27327. if tmp, ok := rawArgs["reverse"]; ok {
  27328. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  27329. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  27330. if err != nil {
  27331. return nil, err
  27332. }
  27333. }
  27334. args["reverse"] = arg4
  27335. return args, nil
  27336. }
  27337. func (ec *executionContext) field_DeliveryCarrierService_availableServicesForCountries_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  27338. var err error
  27339. args := map[string]interface{}{}
  27340. var arg0 []string
  27341. if tmp, ok := rawArgs["origins"]; ok {
  27342. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("origins"))
  27343. arg0, err = ec.unmarshalOID2ᚕstringᚄ(ctx, tmp)
  27344. if err != nil {
  27345. return nil, err
  27346. }
  27347. }
  27348. args["origins"] = arg0
  27349. var arg1 []CountryCode
  27350. if tmp, ok := rawArgs["countryCodes"]; ok {
  27351. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("countryCodes"))
  27352. arg1, err = ec.unmarshalOCountryCode2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCodeᚄ(ctx, tmp)
  27353. if err != nil {
  27354. return nil, err
  27355. }
  27356. }
  27357. args["countryCodes"] = arg1
  27358. var arg2 bool
  27359. if tmp, ok := rawArgs["restOfWorld"]; ok {
  27360. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("restOfWorld"))
  27361. arg2, err = ec.unmarshalNBoolean2bool(ctx, tmp)
  27362. if err != nil {
  27363. return nil, err
  27364. }
  27365. }
  27366. args["restOfWorld"] = arg2
  27367. return args, nil
  27368. }
  27369. func (ec *executionContext) field_DeliveryLocationGroupZone_methodDefinitions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  27370. var err error
  27371. args := map[string]interface{}{}
  27372. var arg0 *bool
  27373. if tmp, ok := rawArgs["eligible"]; ok {
  27374. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eligible"))
  27375. arg0, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  27376. if err != nil {
  27377. return nil, err
  27378. }
  27379. }
  27380. args["eligible"] = arg0
  27381. var arg1 *DeliveryMethodDefinitionType
  27382. if tmp, ok := rawArgs["type"]; ok {
  27383. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type"))
  27384. arg1, err = ec.unmarshalODeliveryMethodDefinitionType2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryMethodDefinitionType(ctx, tmp)
  27385. if err != nil {
  27386. return nil, err
  27387. }
  27388. }
  27389. args["type"] = arg1
  27390. var arg2 *int
  27391. if tmp, ok := rawArgs["first"]; ok {
  27392. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  27393. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27394. if err != nil {
  27395. return nil, err
  27396. }
  27397. }
  27398. args["first"] = arg2
  27399. var arg3 *string
  27400. if tmp, ok := rawArgs["after"]; ok {
  27401. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  27402. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27403. if err != nil {
  27404. return nil, err
  27405. }
  27406. }
  27407. args["after"] = arg3
  27408. var arg4 *int
  27409. if tmp, ok := rawArgs["last"]; ok {
  27410. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  27411. arg4, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27412. if err != nil {
  27413. return nil, err
  27414. }
  27415. }
  27416. args["last"] = arg4
  27417. var arg5 *string
  27418. if tmp, ok := rawArgs["before"]; ok {
  27419. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  27420. arg5, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27421. if err != nil {
  27422. return nil, err
  27423. }
  27424. }
  27425. args["before"] = arg5
  27426. var arg6 *bool
  27427. if tmp, ok := rawArgs["reverse"]; ok {
  27428. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  27429. arg6, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  27430. if err != nil {
  27431. return nil, err
  27432. }
  27433. }
  27434. args["reverse"] = arg6
  27435. var arg7 *MethodDefinitionSortKeys
  27436. if tmp, ok := rawArgs["sortKey"]; ok {
  27437. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  27438. arg7, err = ec.unmarshalOMethodDefinitionSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMethodDefinitionSortKeys(ctx, tmp)
  27439. if err != nil {
  27440. return nil, err
  27441. }
  27442. }
  27443. args["sortKey"] = arg7
  27444. return args, nil
  27445. }
  27446. func (ec *executionContext) field_DeliveryLocationGroup_locations_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  27447. var err error
  27448. args := map[string]interface{}{}
  27449. var arg0 *int
  27450. if tmp, ok := rawArgs["first"]; ok {
  27451. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  27452. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27453. if err != nil {
  27454. return nil, err
  27455. }
  27456. }
  27457. args["first"] = arg0
  27458. var arg1 *string
  27459. if tmp, ok := rawArgs["after"]; ok {
  27460. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  27461. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27462. if err != nil {
  27463. return nil, err
  27464. }
  27465. }
  27466. args["after"] = arg1
  27467. var arg2 *int
  27468. if tmp, ok := rawArgs["last"]; ok {
  27469. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  27470. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27471. if err != nil {
  27472. return nil, err
  27473. }
  27474. }
  27475. args["last"] = arg2
  27476. var arg3 *string
  27477. if tmp, ok := rawArgs["before"]; ok {
  27478. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  27479. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27480. if err != nil {
  27481. return nil, err
  27482. }
  27483. }
  27484. args["before"] = arg3
  27485. var arg4 *bool
  27486. if tmp, ok := rawArgs["reverse"]; ok {
  27487. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  27488. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  27489. if err != nil {
  27490. return nil, err
  27491. }
  27492. }
  27493. args["reverse"] = arg4
  27494. var arg5 *LocationSortKeys
  27495. if tmp, ok := rawArgs["sortKey"]; ok {
  27496. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  27497. arg5, err = ec.unmarshalOLocationSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocationSortKeys(ctx, tmp)
  27498. if err != nil {
  27499. return nil, err
  27500. }
  27501. }
  27502. args["sortKey"] = arg5
  27503. var arg6 *string
  27504. if tmp, ok := rawArgs["query"]; ok {
  27505. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
  27506. arg6, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27507. if err != nil {
  27508. return nil, err
  27509. }
  27510. }
  27511. args["query"] = arg6
  27512. var arg7 *bool
  27513. if tmp, ok := rawArgs["includeLegacy"]; ok {
  27514. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeLegacy"))
  27515. arg7, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  27516. if err != nil {
  27517. return nil, err
  27518. }
  27519. }
  27520. args["includeLegacy"] = arg7
  27521. var arg8 *bool
  27522. if tmp, ok := rawArgs["includeInactive"]; ok {
  27523. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeInactive"))
  27524. arg8, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  27525. if err != nil {
  27526. return nil, err
  27527. }
  27528. }
  27529. args["includeInactive"] = arg8
  27530. return args, nil
  27531. }
  27532. func (ec *executionContext) field_DeliveryProfileItem_variants_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  27533. var err error
  27534. args := map[string]interface{}{}
  27535. var arg0 *int
  27536. if tmp, ok := rawArgs["first"]; ok {
  27537. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  27538. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27539. if err != nil {
  27540. return nil, err
  27541. }
  27542. }
  27543. args["first"] = arg0
  27544. var arg1 *string
  27545. if tmp, ok := rawArgs["after"]; ok {
  27546. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  27547. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27548. if err != nil {
  27549. return nil, err
  27550. }
  27551. }
  27552. args["after"] = arg1
  27553. var arg2 *int
  27554. if tmp, ok := rawArgs["last"]; ok {
  27555. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  27556. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27557. if err != nil {
  27558. return nil, err
  27559. }
  27560. }
  27561. args["last"] = arg2
  27562. var arg3 *string
  27563. if tmp, ok := rawArgs["before"]; ok {
  27564. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  27565. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27566. if err != nil {
  27567. return nil, err
  27568. }
  27569. }
  27570. args["before"] = arg3
  27571. var arg4 *bool
  27572. if tmp, ok := rawArgs["reverse"]; ok {
  27573. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  27574. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  27575. if err != nil {
  27576. return nil, err
  27577. }
  27578. }
  27579. args["reverse"] = arg4
  27580. return args, nil
  27581. }
  27582. func (ec *executionContext) field_DeliveryProfileLocationGroup_locationGroupZones_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  27583. var err error
  27584. args := map[string]interface{}{}
  27585. var arg0 *int
  27586. if tmp, ok := rawArgs["first"]; ok {
  27587. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  27588. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27589. if err != nil {
  27590. return nil, err
  27591. }
  27592. }
  27593. args["first"] = arg0
  27594. var arg1 *string
  27595. if tmp, ok := rawArgs["after"]; ok {
  27596. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  27597. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27598. if err != nil {
  27599. return nil, err
  27600. }
  27601. }
  27602. args["after"] = arg1
  27603. var arg2 *int
  27604. if tmp, ok := rawArgs["last"]; ok {
  27605. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  27606. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27607. if err != nil {
  27608. return nil, err
  27609. }
  27610. }
  27611. args["last"] = arg2
  27612. var arg3 *string
  27613. if tmp, ok := rawArgs["before"]; ok {
  27614. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  27615. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27616. if err != nil {
  27617. return nil, err
  27618. }
  27619. }
  27620. args["before"] = arg3
  27621. var arg4 *bool
  27622. if tmp, ok := rawArgs["reverse"]; ok {
  27623. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  27624. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  27625. if err != nil {
  27626. return nil, err
  27627. }
  27628. }
  27629. args["reverse"] = arg4
  27630. return args, nil
  27631. }
  27632. func (ec *executionContext) field_DeliveryProfile_profileItems_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  27633. var err error
  27634. args := map[string]interface{}{}
  27635. var arg0 *int
  27636. if tmp, ok := rawArgs["first"]; ok {
  27637. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  27638. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27639. if err != nil {
  27640. return nil, err
  27641. }
  27642. }
  27643. args["first"] = arg0
  27644. var arg1 *string
  27645. if tmp, ok := rawArgs["after"]; ok {
  27646. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  27647. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27648. if err != nil {
  27649. return nil, err
  27650. }
  27651. }
  27652. args["after"] = arg1
  27653. var arg2 *int
  27654. if tmp, ok := rawArgs["last"]; ok {
  27655. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  27656. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27657. if err != nil {
  27658. return nil, err
  27659. }
  27660. }
  27661. args["last"] = arg2
  27662. var arg3 *string
  27663. if tmp, ok := rawArgs["before"]; ok {
  27664. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  27665. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27666. if err != nil {
  27667. return nil, err
  27668. }
  27669. }
  27670. args["before"] = arg3
  27671. var arg4 *bool
  27672. if tmp, ok := rawArgs["reverse"]; ok {
  27673. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  27674. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  27675. if err != nil {
  27676. return nil, err
  27677. }
  27678. }
  27679. args["reverse"] = arg4
  27680. return args, nil
  27681. }
  27682. func (ec *executionContext) field_DeliveryProfile_sellingPlanGroups_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  27683. var err error
  27684. args := map[string]interface{}{}
  27685. var arg0 *int
  27686. if tmp, ok := rawArgs["first"]; ok {
  27687. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  27688. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27689. if err != nil {
  27690. return nil, err
  27691. }
  27692. }
  27693. args["first"] = arg0
  27694. var arg1 *string
  27695. if tmp, ok := rawArgs["after"]; ok {
  27696. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  27697. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27698. if err != nil {
  27699. return nil, err
  27700. }
  27701. }
  27702. args["after"] = arg1
  27703. var arg2 *int
  27704. if tmp, ok := rawArgs["last"]; ok {
  27705. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  27706. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27707. if err != nil {
  27708. return nil, err
  27709. }
  27710. }
  27711. args["last"] = arg2
  27712. var arg3 *string
  27713. if tmp, ok := rawArgs["before"]; ok {
  27714. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  27715. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27716. if err != nil {
  27717. return nil, err
  27718. }
  27719. }
  27720. args["before"] = arg3
  27721. var arg4 *bool
  27722. if tmp, ok := rawArgs["reverse"]; ok {
  27723. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  27724. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  27725. if err != nil {
  27726. return nil, err
  27727. }
  27728. }
  27729. args["reverse"] = arg4
  27730. return args, nil
  27731. }
  27732. func (ec *executionContext) field_DraftOrder_events_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  27733. var err error
  27734. args := map[string]interface{}{}
  27735. var arg0 *int
  27736. if tmp, ok := rawArgs["first"]; ok {
  27737. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  27738. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27739. if err != nil {
  27740. return nil, err
  27741. }
  27742. }
  27743. args["first"] = arg0
  27744. var arg1 *string
  27745. if tmp, ok := rawArgs["after"]; ok {
  27746. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  27747. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27748. if err != nil {
  27749. return nil, err
  27750. }
  27751. }
  27752. args["after"] = arg1
  27753. var arg2 *int
  27754. if tmp, ok := rawArgs["last"]; ok {
  27755. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  27756. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27757. if err != nil {
  27758. return nil, err
  27759. }
  27760. }
  27761. args["last"] = arg2
  27762. var arg3 *string
  27763. if tmp, ok := rawArgs["before"]; ok {
  27764. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  27765. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27766. if err != nil {
  27767. return nil, err
  27768. }
  27769. }
  27770. args["before"] = arg3
  27771. var arg4 *bool
  27772. if tmp, ok := rawArgs["reverse"]; ok {
  27773. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  27774. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  27775. if err != nil {
  27776. return nil, err
  27777. }
  27778. }
  27779. args["reverse"] = arg4
  27780. var arg5 *EventSortKeys
  27781. if tmp, ok := rawArgs["sortKey"]; ok {
  27782. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  27783. arg5, err = ec.unmarshalOEventSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐEventSortKeys(ctx, tmp)
  27784. if err != nil {
  27785. return nil, err
  27786. }
  27787. }
  27788. args["sortKey"] = arg5
  27789. var arg6 *string
  27790. if tmp, ok := rawArgs["query"]; ok {
  27791. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
  27792. arg6, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27793. if err != nil {
  27794. return nil, err
  27795. }
  27796. }
  27797. args["query"] = arg6
  27798. return args, nil
  27799. }
  27800. func (ec *executionContext) field_DraftOrder_lineItems_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  27801. var err error
  27802. args := map[string]interface{}{}
  27803. var arg0 *int
  27804. if tmp, ok := rawArgs["first"]; ok {
  27805. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  27806. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27807. if err != nil {
  27808. return nil, err
  27809. }
  27810. }
  27811. args["first"] = arg0
  27812. var arg1 *string
  27813. if tmp, ok := rawArgs["after"]; ok {
  27814. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  27815. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27816. if err != nil {
  27817. return nil, err
  27818. }
  27819. }
  27820. args["after"] = arg1
  27821. var arg2 *int
  27822. if tmp, ok := rawArgs["last"]; ok {
  27823. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  27824. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27825. if err != nil {
  27826. return nil, err
  27827. }
  27828. }
  27829. args["last"] = arg2
  27830. var arg3 *string
  27831. if tmp, ok := rawArgs["before"]; ok {
  27832. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  27833. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27834. if err != nil {
  27835. return nil, err
  27836. }
  27837. }
  27838. args["before"] = arg3
  27839. var arg4 *bool
  27840. if tmp, ok := rawArgs["reverse"]; ok {
  27841. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  27842. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  27843. if err != nil {
  27844. return nil, err
  27845. }
  27846. }
  27847. args["reverse"] = arg4
  27848. return args, nil
  27849. }
  27850. func (ec *executionContext) field_DraftOrder_localizationExtensions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  27851. var err error
  27852. args := map[string]interface{}{}
  27853. var arg0 []CountryCode
  27854. if tmp, ok := rawArgs["countryCodes"]; ok {
  27855. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("countryCodes"))
  27856. arg0, err = ec.unmarshalOCountryCode2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCodeᚄ(ctx, tmp)
  27857. if err != nil {
  27858. return nil, err
  27859. }
  27860. }
  27861. args["countryCodes"] = arg0
  27862. var arg1 []LocalizationExtensionPurpose
  27863. if tmp, ok := rawArgs["purposes"]; ok {
  27864. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposes"))
  27865. arg1, err = ec.unmarshalOLocalizationExtensionPurpose2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocalizationExtensionPurposeᚄ(ctx, tmp)
  27866. if err != nil {
  27867. return nil, err
  27868. }
  27869. }
  27870. args["purposes"] = arg1
  27871. var arg2 *int
  27872. if tmp, ok := rawArgs["first"]; ok {
  27873. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  27874. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27875. if err != nil {
  27876. return nil, err
  27877. }
  27878. }
  27879. args["first"] = arg2
  27880. var arg3 *string
  27881. if tmp, ok := rawArgs["after"]; ok {
  27882. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  27883. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27884. if err != nil {
  27885. return nil, err
  27886. }
  27887. }
  27888. args["after"] = arg3
  27889. var arg4 *int
  27890. if tmp, ok := rawArgs["last"]; ok {
  27891. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  27892. arg4, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27893. if err != nil {
  27894. return nil, err
  27895. }
  27896. }
  27897. args["last"] = arg4
  27898. var arg5 *string
  27899. if tmp, ok := rawArgs["before"]; ok {
  27900. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  27901. arg5, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27902. if err != nil {
  27903. return nil, err
  27904. }
  27905. }
  27906. args["before"] = arg5
  27907. var arg6 *bool
  27908. if tmp, ok := rawArgs["reverse"]; ok {
  27909. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  27910. arg6, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  27911. if err != nil {
  27912. return nil, err
  27913. }
  27914. }
  27915. args["reverse"] = arg6
  27916. return args, nil
  27917. }
  27918. func (ec *executionContext) field_DraftOrder_metafield_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  27919. var err error
  27920. args := map[string]interface{}{}
  27921. var arg0 string
  27922. if tmp, ok := rawArgs["namespace"]; ok {
  27923. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  27924. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  27925. if err != nil {
  27926. return nil, err
  27927. }
  27928. }
  27929. args["namespace"] = arg0
  27930. var arg1 string
  27931. if tmp, ok := rawArgs["key"]; ok {
  27932. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key"))
  27933. arg1, err = ec.unmarshalNString2string(ctx, tmp)
  27934. if err != nil {
  27935. return nil, err
  27936. }
  27937. }
  27938. args["key"] = arg1
  27939. return args, nil
  27940. }
  27941. func (ec *executionContext) field_DraftOrder_metafields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  27942. var err error
  27943. args := map[string]interface{}{}
  27944. var arg0 *string
  27945. if tmp, ok := rawArgs["namespace"]; ok {
  27946. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  27947. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27948. if err != nil {
  27949. return nil, err
  27950. }
  27951. }
  27952. args["namespace"] = arg0
  27953. var arg1 *int
  27954. if tmp, ok := rawArgs["first"]; ok {
  27955. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  27956. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27957. if err != nil {
  27958. return nil, err
  27959. }
  27960. }
  27961. args["first"] = arg1
  27962. var arg2 *string
  27963. if tmp, ok := rawArgs["after"]; ok {
  27964. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  27965. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27966. if err != nil {
  27967. return nil, err
  27968. }
  27969. }
  27970. args["after"] = arg2
  27971. var arg3 *int
  27972. if tmp, ok := rawArgs["last"]; ok {
  27973. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  27974. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  27975. if err != nil {
  27976. return nil, err
  27977. }
  27978. }
  27979. args["last"] = arg3
  27980. var arg4 *string
  27981. if tmp, ok := rawArgs["before"]; ok {
  27982. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  27983. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  27984. if err != nil {
  27985. return nil, err
  27986. }
  27987. }
  27988. args["before"] = arg4
  27989. var arg5 *bool
  27990. if tmp, ok := rawArgs["reverse"]; ok {
  27991. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  27992. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  27993. if err != nil {
  27994. return nil, err
  27995. }
  27996. }
  27997. args["reverse"] = arg5
  27998. return args, nil
  27999. }
  28000. func (ec *executionContext) field_DraftOrder_privateMetafield_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  28001. var err error
  28002. args := map[string]interface{}{}
  28003. var arg0 string
  28004. if tmp, ok := rawArgs["namespace"]; ok {
  28005. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  28006. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  28007. if err != nil {
  28008. return nil, err
  28009. }
  28010. }
  28011. args["namespace"] = arg0
  28012. var arg1 string
  28013. if tmp, ok := rawArgs["key"]; ok {
  28014. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key"))
  28015. arg1, err = ec.unmarshalNString2string(ctx, tmp)
  28016. if err != nil {
  28017. return nil, err
  28018. }
  28019. }
  28020. args["key"] = arg1
  28021. return args, nil
  28022. }
  28023. func (ec *executionContext) field_DraftOrder_privateMetafields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  28024. var err error
  28025. args := map[string]interface{}{}
  28026. var arg0 *string
  28027. if tmp, ok := rawArgs["namespace"]; ok {
  28028. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  28029. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28030. if err != nil {
  28031. return nil, err
  28032. }
  28033. }
  28034. args["namespace"] = arg0
  28035. var arg1 *int
  28036. if tmp, ok := rawArgs["first"]; ok {
  28037. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  28038. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28039. if err != nil {
  28040. return nil, err
  28041. }
  28042. }
  28043. args["first"] = arg1
  28044. var arg2 *string
  28045. if tmp, ok := rawArgs["after"]; ok {
  28046. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  28047. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28048. if err != nil {
  28049. return nil, err
  28050. }
  28051. }
  28052. args["after"] = arg2
  28053. var arg3 *int
  28054. if tmp, ok := rawArgs["last"]; ok {
  28055. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  28056. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28057. if err != nil {
  28058. return nil, err
  28059. }
  28060. }
  28061. args["last"] = arg3
  28062. var arg4 *string
  28063. if tmp, ok := rawArgs["before"]; ok {
  28064. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  28065. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28066. if err != nil {
  28067. return nil, err
  28068. }
  28069. }
  28070. args["before"] = arg4
  28071. var arg5 *bool
  28072. if tmp, ok := rawArgs["reverse"]; ok {
  28073. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  28074. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  28075. if err != nil {
  28076. return nil, err
  28077. }
  28078. }
  28079. args["reverse"] = arg5
  28080. return args, nil
  28081. }
  28082. func (ec *executionContext) field_Entity_findProductByID_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  28083. var err error
  28084. args := map[string]interface{}{}
  28085. var arg0 string
  28086. if tmp, ok := rawArgs["id"]; ok {
  28087. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
  28088. arg0, err = ec.unmarshalNID2string(ctx, tmp)
  28089. if err != nil {
  28090. return nil, err
  28091. }
  28092. }
  28093. args["id"] = arg0
  28094. return args, nil
  28095. }
  28096. func (ec *executionContext) field_FulfillmentOrder_fulfillments_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  28097. var err error
  28098. args := map[string]interface{}{}
  28099. var arg0 *int
  28100. if tmp, ok := rawArgs["first"]; ok {
  28101. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  28102. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28103. if err != nil {
  28104. return nil, err
  28105. }
  28106. }
  28107. args["first"] = arg0
  28108. var arg1 *string
  28109. if tmp, ok := rawArgs["after"]; ok {
  28110. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  28111. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28112. if err != nil {
  28113. return nil, err
  28114. }
  28115. }
  28116. args["after"] = arg1
  28117. var arg2 *int
  28118. if tmp, ok := rawArgs["last"]; ok {
  28119. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  28120. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28121. if err != nil {
  28122. return nil, err
  28123. }
  28124. }
  28125. args["last"] = arg2
  28126. var arg3 *string
  28127. if tmp, ok := rawArgs["before"]; ok {
  28128. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  28129. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28130. if err != nil {
  28131. return nil, err
  28132. }
  28133. }
  28134. args["before"] = arg3
  28135. var arg4 *bool
  28136. if tmp, ok := rawArgs["reverse"]; ok {
  28137. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  28138. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  28139. if err != nil {
  28140. return nil, err
  28141. }
  28142. }
  28143. args["reverse"] = arg4
  28144. return args, nil
  28145. }
  28146. func (ec *executionContext) field_FulfillmentOrder_lineItems_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  28147. var err error
  28148. args := map[string]interface{}{}
  28149. var arg0 *int
  28150. if tmp, ok := rawArgs["first"]; ok {
  28151. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  28152. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28153. if err != nil {
  28154. return nil, err
  28155. }
  28156. }
  28157. args["first"] = arg0
  28158. var arg1 *string
  28159. if tmp, ok := rawArgs["after"]; ok {
  28160. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  28161. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28162. if err != nil {
  28163. return nil, err
  28164. }
  28165. }
  28166. args["after"] = arg1
  28167. var arg2 *int
  28168. if tmp, ok := rawArgs["last"]; ok {
  28169. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  28170. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28171. if err != nil {
  28172. return nil, err
  28173. }
  28174. }
  28175. args["last"] = arg2
  28176. var arg3 *string
  28177. if tmp, ok := rawArgs["before"]; ok {
  28178. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  28179. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28180. if err != nil {
  28181. return nil, err
  28182. }
  28183. }
  28184. args["before"] = arg3
  28185. var arg4 *bool
  28186. if tmp, ok := rawArgs["reverse"]; ok {
  28187. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  28188. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  28189. if err != nil {
  28190. return nil, err
  28191. }
  28192. }
  28193. args["reverse"] = arg4
  28194. return args, nil
  28195. }
  28196. func (ec *executionContext) field_FulfillmentOrder_locationsForMove_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  28197. var err error
  28198. args := map[string]interface{}{}
  28199. var arg0 *int
  28200. if tmp, ok := rawArgs["first"]; ok {
  28201. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  28202. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28203. if err != nil {
  28204. return nil, err
  28205. }
  28206. }
  28207. args["first"] = arg0
  28208. var arg1 *string
  28209. if tmp, ok := rawArgs["after"]; ok {
  28210. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  28211. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28212. if err != nil {
  28213. return nil, err
  28214. }
  28215. }
  28216. args["after"] = arg1
  28217. var arg2 *int
  28218. if tmp, ok := rawArgs["last"]; ok {
  28219. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  28220. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28221. if err != nil {
  28222. return nil, err
  28223. }
  28224. }
  28225. args["last"] = arg2
  28226. var arg3 *string
  28227. if tmp, ok := rawArgs["before"]; ok {
  28228. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  28229. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28230. if err != nil {
  28231. return nil, err
  28232. }
  28233. }
  28234. args["before"] = arg3
  28235. var arg4 *bool
  28236. if tmp, ok := rawArgs["reverse"]; ok {
  28237. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  28238. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  28239. if err != nil {
  28240. return nil, err
  28241. }
  28242. }
  28243. args["reverse"] = arg4
  28244. return args, nil
  28245. }
  28246. func (ec *executionContext) field_FulfillmentOrder_merchantRequests_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  28247. var err error
  28248. args := map[string]interface{}{}
  28249. var arg0 *FulfillmentOrderMerchantRequestKind
  28250. if tmp, ok := rawArgs["kind"]; ok {
  28251. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind"))
  28252. arg0, err = ec.unmarshalOFulfillmentOrderMerchantRequestKind2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderMerchantRequestKind(ctx, tmp)
  28253. if err != nil {
  28254. return nil, err
  28255. }
  28256. }
  28257. args["kind"] = arg0
  28258. var arg1 *int
  28259. if tmp, ok := rawArgs["first"]; ok {
  28260. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  28261. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28262. if err != nil {
  28263. return nil, err
  28264. }
  28265. }
  28266. args["first"] = arg1
  28267. var arg2 *string
  28268. if tmp, ok := rawArgs["after"]; ok {
  28269. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  28270. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28271. if err != nil {
  28272. return nil, err
  28273. }
  28274. }
  28275. args["after"] = arg2
  28276. var arg3 *int
  28277. if tmp, ok := rawArgs["last"]; ok {
  28278. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  28279. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28280. if err != nil {
  28281. return nil, err
  28282. }
  28283. }
  28284. args["last"] = arg3
  28285. var arg4 *string
  28286. if tmp, ok := rawArgs["before"]; ok {
  28287. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  28288. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28289. if err != nil {
  28290. return nil, err
  28291. }
  28292. }
  28293. args["before"] = arg4
  28294. var arg5 *bool
  28295. if tmp, ok := rawArgs["reverse"]; ok {
  28296. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  28297. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  28298. if err != nil {
  28299. return nil, err
  28300. }
  28301. }
  28302. args["reverse"] = arg5
  28303. return args, nil
  28304. }
  28305. func (ec *executionContext) field_Fulfillment_events_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  28306. var err error
  28307. args := map[string]interface{}{}
  28308. var arg0 *int
  28309. if tmp, ok := rawArgs["first"]; ok {
  28310. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  28311. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28312. if err != nil {
  28313. return nil, err
  28314. }
  28315. }
  28316. args["first"] = arg0
  28317. var arg1 *string
  28318. if tmp, ok := rawArgs["after"]; ok {
  28319. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  28320. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28321. if err != nil {
  28322. return nil, err
  28323. }
  28324. }
  28325. args["after"] = arg1
  28326. var arg2 *int
  28327. if tmp, ok := rawArgs["last"]; ok {
  28328. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  28329. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28330. if err != nil {
  28331. return nil, err
  28332. }
  28333. }
  28334. args["last"] = arg2
  28335. var arg3 *string
  28336. if tmp, ok := rawArgs["before"]; ok {
  28337. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  28338. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28339. if err != nil {
  28340. return nil, err
  28341. }
  28342. }
  28343. args["before"] = arg3
  28344. var arg4 *bool
  28345. if tmp, ok := rawArgs["reverse"]; ok {
  28346. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  28347. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  28348. if err != nil {
  28349. return nil, err
  28350. }
  28351. }
  28352. args["reverse"] = arg4
  28353. var arg5 *FulfillmentEventSortKeys
  28354. if tmp, ok := rawArgs["sortKey"]; ok {
  28355. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  28356. arg5, err = ec.unmarshalOFulfillmentEventSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentEventSortKeys(ctx, tmp)
  28357. if err != nil {
  28358. return nil, err
  28359. }
  28360. }
  28361. args["sortKey"] = arg5
  28362. return args, nil
  28363. }
  28364. func (ec *executionContext) field_Fulfillment_fulfillmentLineItems_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  28365. var err error
  28366. args := map[string]interface{}{}
  28367. var arg0 *int
  28368. if tmp, ok := rawArgs["first"]; ok {
  28369. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  28370. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28371. if err != nil {
  28372. return nil, err
  28373. }
  28374. }
  28375. args["first"] = arg0
  28376. var arg1 *string
  28377. if tmp, ok := rawArgs["after"]; ok {
  28378. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  28379. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28380. if err != nil {
  28381. return nil, err
  28382. }
  28383. }
  28384. args["after"] = arg1
  28385. var arg2 *int
  28386. if tmp, ok := rawArgs["last"]; ok {
  28387. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  28388. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28389. if err != nil {
  28390. return nil, err
  28391. }
  28392. }
  28393. args["last"] = arg2
  28394. var arg3 *string
  28395. if tmp, ok := rawArgs["before"]; ok {
  28396. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  28397. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28398. if err != nil {
  28399. return nil, err
  28400. }
  28401. }
  28402. args["before"] = arg3
  28403. var arg4 *bool
  28404. if tmp, ok := rawArgs["reverse"]; ok {
  28405. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  28406. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  28407. if err != nil {
  28408. return nil, err
  28409. }
  28410. }
  28411. args["reverse"] = arg4
  28412. return args, nil
  28413. }
  28414. func (ec *executionContext) field_Fulfillment_fulfillmentOrders_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  28415. var err error
  28416. args := map[string]interface{}{}
  28417. var arg0 *int
  28418. if tmp, ok := rawArgs["first"]; ok {
  28419. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  28420. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28421. if err != nil {
  28422. return nil, err
  28423. }
  28424. }
  28425. args["first"] = arg0
  28426. var arg1 *string
  28427. if tmp, ok := rawArgs["after"]; ok {
  28428. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  28429. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28430. if err != nil {
  28431. return nil, err
  28432. }
  28433. }
  28434. args["after"] = arg1
  28435. var arg2 *int
  28436. if tmp, ok := rawArgs["last"]; ok {
  28437. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  28438. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28439. if err != nil {
  28440. return nil, err
  28441. }
  28442. }
  28443. args["last"] = arg2
  28444. var arg3 *string
  28445. if tmp, ok := rawArgs["before"]; ok {
  28446. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  28447. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28448. if err != nil {
  28449. return nil, err
  28450. }
  28451. }
  28452. args["before"] = arg3
  28453. var arg4 *bool
  28454. if tmp, ok := rawArgs["reverse"]; ok {
  28455. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  28456. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  28457. if err != nil {
  28458. return nil, err
  28459. }
  28460. }
  28461. args["reverse"] = arg4
  28462. return args, nil
  28463. }
  28464. func (ec *executionContext) field_Fulfillment_trackingInfo_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  28465. var err error
  28466. args := map[string]interface{}{}
  28467. var arg0 *int
  28468. if tmp, ok := rawArgs["first"]; ok {
  28469. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  28470. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28471. if err != nil {
  28472. return nil, err
  28473. }
  28474. }
  28475. args["first"] = arg0
  28476. return args, nil
  28477. }
  28478. func (ec *executionContext) field_Image_metafield_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  28479. var err error
  28480. args := map[string]interface{}{}
  28481. var arg0 string
  28482. if tmp, ok := rawArgs["namespace"]; ok {
  28483. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  28484. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  28485. if err != nil {
  28486. return nil, err
  28487. }
  28488. }
  28489. args["namespace"] = arg0
  28490. var arg1 string
  28491. if tmp, ok := rawArgs["key"]; ok {
  28492. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key"))
  28493. arg1, err = ec.unmarshalNString2string(ctx, tmp)
  28494. if err != nil {
  28495. return nil, err
  28496. }
  28497. }
  28498. args["key"] = arg1
  28499. return args, nil
  28500. }
  28501. func (ec *executionContext) field_Image_metafields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  28502. var err error
  28503. args := map[string]interface{}{}
  28504. var arg0 *string
  28505. if tmp, ok := rawArgs["namespace"]; ok {
  28506. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  28507. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28508. if err != nil {
  28509. return nil, err
  28510. }
  28511. }
  28512. args["namespace"] = arg0
  28513. var arg1 *int
  28514. if tmp, ok := rawArgs["first"]; ok {
  28515. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  28516. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28517. if err != nil {
  28518. return nil, err
  28519. }
  28520. }
  28521. args["first"] = arg1
  28522. var arg2 *string
  28523. if tmp, ok := rawArgs["after"]; ok {
  28524. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  28525. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28526. if err != nil {
  28527. return nil, err
  28528. }
  28529. }
  28530. args["after"] = arg2
  28531. var arg3 *int
  28532. if tmp, ok := rawArgs["last"]; ok {
  28533. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  28534. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28535. if err != nil {
  28536. return nil, err
  28537. }
  28538. }
  28539. args["last"] = arg3
  28540. var arg4 *string
  28541. if tmp, ok := rawArgs["before"]; ok {
  28542. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  28543. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28544. if err != nil {
  28545. return nil, err
  28546. }
  28547. }
  28548. args["before"] = arg4
  28549. var arg5 *bool
  28550. if tmp, ok := rawArgs["reverse"]; ok {
  28551. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  28552. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  28553. if err != nil {
  28554. return nil, err
  28555. }
  28556. }
  28557. args["reverse"] = arg5
  28558. return args, nil
  28559. }
  28560. func (ec *executionContext) field_Image_privateMetafield_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  28561. var err error
  28562. args := map[string]interface{}{}
  28563. var arg0 string
  28564. if tmp, ok := rawArgs["namespace"]; ok {
  28565. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  28566. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  28567. if err != nil {
  28568. return nil, err
  28569. }
  28570. }
  28571. args["namespace"] = arg0
  28572. var arg1 string
  28573. if tmp, ok := rawArgs["key"]; ok {
  28574. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key"))
  28575. arg1, err = ec.unmarshalNString2string(ctx, tmp)
  28576. if err != nil {
  28577. return nil, err
  28578. }
  28579. }
  28580. args["key"] = arg1
  28581. return args, nil
  28582. }
  28583. func (ec *executionContext) field_Image_privateMetafields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  28584. var err error
  28585. args := map[string]interface{}{}
  28586. var arg0 *string
  28587. if tmp, ok := rawArgs["namespace"]; ok {
  28588. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  28589. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28590. if err != nil {
  28591. return nil, err
  28592. }
  28593. }
  28594. args["namespace"] = arg0
  28595. var arg1 *int
  28596. if tmp, ok := rawArgs["first"]; ok {
  28597. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  28598. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28599. if err != nil {
  28600. return nil, err
  28601. }
  28602. }
  28603. args["first"] = arg1
  28604. var arg2 *string
  28605. if tmp, ok := rawArgs["after"]; ok {
  28606. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  28607. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28608. if err != nil {
  28609. return nil, err
  28610. }
  28611. }
  28612. args["after"] = arg2
  28613. var arg3 *int
  28614. if tmp, ok := rawArgs["last"]; ok {
  28615. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  28616. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28617. if err != nil {
  28618. return nil, err
  28619. }
  28620. }
  28621. args["last"] = arg3
  28622. var arg4 *string
  28623. if tmp, ok := rawArgs["before"]; ok {
  28624. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  28625. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28626. if err != nil {
  28627. return nil, err
  28628. }
  28629. }
  28630. args["before"] = arg4
  28631. var arg5 *bool
  28632. if tmp, ok := rawArgs["reverse"]; ok {
  28633. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  28634. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  28635. if err != nil {
  28636. return nil, err
  28637. }
  28638. }
  28639. args["reverse"] = arg5
  28640. return args, nil
  28641. }
  28642. func (ec *executionContext) field_Image_url_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  28643. var err error
  28644. args := map[string]interface{}{}
  28645. var arg0 *ImageTransformInput
  28646. if tmp, ok := rawArgs["transform"]; ok {
  28647. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("transform"))
  28648. arg0, err = ec.unmarshalOImageTransformInput2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImageTransformInput(ctx, tmp)
  28649. if err != nil {
  28650. return nil, err
  28651. }
  28652. }
  28653. args["transform"] = arg0
  28654. return args, nil
  28655. }
  28656. func (ec *executionContext) field_InventoryItem_countryHarmonizedSystemCodes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  28657. var err error
  28658. args := map[string]interface{}{}
  28659. var arg0 *int
  28660. if tmp, ok := rawArgs["first"]; ok {
  28661. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  28662. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28663. if err != nil {
  28664. return nil, err
  28665. }
  28666. }
  28667. args["first"] = arg0
  28668. var arg1 *string
  28669. if tmp, ok := rawArgs["after"]; ok {
  28670. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  28671. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28672. if err != nil {
  28673. return nil, err
  28674. }
  28675. }
  28676. args["after"] = arg1
  28677. var arg2 *int
  28678. if tmp, ok := rawArgs["last"]; ok {
  28679. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  28680. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28681. if err != nil {
  28682. return nil, err
  28683. }
  28684. }
  28685. args["last"] = arg2
  28686. var arg3 *string
  28687. if tmp, ok := rawArgs["before"]; ok {
  28688. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  28689. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28690. if err != nil {
  28691. return nil, err
  28692. }
  28693. }
  28694. args["before"] = arg3
  28695. var arg4 *bool
  28696. if tmp, ok := rawArgs["reverse"]; ok {
  28697. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  28698. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  28699. if err != nil {
  28700. return nil, err
  28701. }
  28702. }
  28703. args["reverse"] = arg4
  28704. return args, nil
  28705. }
  28706. func (ec *executionContext) field_InventoryItem_inventoryLevel_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  28707. var err error
  28708. args := map[string]interface{}{}
  28709. var arg0 string
  28710. if tmp, ok := rawArgs["locationId"]; ok {
  28711. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("locationId"))
  28712. arg0, err = ec.unmarshalNID2string(ctx, tmp)
  28713. if err != nil {
  28714. return nil, err
  28715. }
  28716. }
  28717. args["locationId"] = arg0
  28718. return args, nil
  28719. }
  28720. func (ec *executionContext) field_InventoryItem_inventoryLevels_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  28721. var err error
  28722. args := map[string]interface{}{}
  28723. var arg0 *int
  28724. if tmp, ok := rawArgs["first"]; ok {
  28725. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  28726. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28727. if err != nil {
  28728. return nil, err
  28729. }
  28730. }
  28731. args["first"] = arg0
  28732. var arg1 *string
  28733. if tmp, ok := rawArgs["after"]; ok {
  28734. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  28735. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28736. if err != nil {
  28737. return nil, err
  28738. }
  28739. }
  28740. args["after"] = arg1
  28741. var arg2 *int
  28742. if tmp, ok := rawArgs["last"]; ok {
  28743. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  28744. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28745. if err != nil {
  28746. return nil, err
  28747. }
  28748. }
  28749. args["last"] = arg2
  28750. var arg3 *string
  28751. if tmp, ok := rawArgs["before"]; ok {
  28752. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  28753. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28754. if err != nil {
  28755. return nil, err
  28756. }
  28757. }
  28758. args["before"] = arg3
  28759. var arg4 *bool
  28760. if tmp, ok := rawArgs["reverse"]; ok {
  28761. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  28762. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  28763. if err != nil {
  28764. return nil, err
  28765. }
  28766. }
  28767. args["reverse"] = arg4
  28768. var arg5 *string
  28769. if tmp, ok := rawArgs["query"]; ok {
  28770. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
  28771. arg5, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28772. if err != nil {
  28773. return nil, err
  28774. }
  28775. }
  28776. args["query"] = arg5
  28777. return args, nil
  28778. }
  28779. func (ec *executionContext) field_LineItem_taxLines_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  28780. var err error
  28781. args := map[string]interface{}{}
  28782. var arg0 *int
  28783. if tmp, ok := rawArgs["first"]; ok {
  28784. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  28785. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28786. if err != nil {
  28787. return nil, err
  28788. }
  28789. }
  28790. args["first"] = arg0
  28791. return args, nil
  28792. }
  28793. func (ec *executionContext) field_Link_translations_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  28794. var err error
  28795. args := map[string]interface{}{}
  28796. var arg0 string
  28797. if tmp, ok := rawArgs["locale"]; ok {
  28798. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("locale"))
  28799. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  28800. if err != nil {
  28801. return nil, err
  28802. }
  28803. }
  28804. args["locale"] = arg0
  28805. var arg1 *string
  28806. if tmp, ok := rawArgs["marketId"]; ok {
  28807. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("marketId"))
  28808. arg1, err = ec.unmarshalOID2ᚖstring(ctx, tmp)
  28809. if err != nil {
  28810. return nil, err
  28811. }
  28812. }
  28813. args["marketId"] = arg1
  28814. return args, nil
  28815. }
  28816. func (ec *executionContext) field_Location_inventoryLevel_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  28817. var err error
  28818. args := map[string]interface{}{}
  28819. var arg0 string
  28820. if tmp, ok := rawArgs["inventoryItemId"]; ok {
  28821. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inventoryItemId"))
  28822. arg0, err = ec.unmarshalNID2string(ctx, tmp)
  28823. if err != nil {
  28824. return nil, err
  28825. }
  28826. }
  28827. args["inventoryItemId"] = arg0
  28828. return args, nil
  28829. }
  28830. func (ec *executionContext) field_Location_inventoryLevels_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  28831. var err error
  28832. args := map[string]interface{}{}
  28833. var arg0 *int
  28834. if tmp, ok := rawArgs["first"]; ok {
  28835. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  28836. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28837. if err != nil {
  28838. return nil, err
  28839. }
  28840. }
  28841. args["first"] = arg0
  28842. var arg1 *string
  28843. if tmp, ok := rawArgs["after"]; ok {
  28844. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  28845. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28846. if err != nil {
  28847. return nil, err
  28848. }
  28849. }
  28850. args["after"] = arg1
  28851. var arg2 *int
  28852. if tmp, ok := rawArgs["last"]; ok {
  28853. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  28854. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28855. if err != nil {
  28856. return nil, err
  28857. }
  28858. }
  28859. args["last"] = arg2
  28860. var arg3 *string
  28861. if tmp, ok := rawArgs["before"]; ok {
  28862. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  28863. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28864. if err != nil {
  28865. return nil, err
  28866. }
  28867. }
  28868. args["before"] = arg3
  28869. var arg4 *bool
  28870. if tmp, ok := rawArgs["reverse"]; ok {
  28871. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  28872. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  28873. if err != nil {
  28874. return nil, err
  28875. }
  28876. }
  28877. args["reverse"] = arg4
  28878. var arg5 *string
  28879. if tmp, ok := rawArgs["query"]; ok {
  28880. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
  28881. arg5, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28882. if err != nil {
  28883. return nil, err
  28884. }
  28885. }
  28886. args["query"] = arg5
  28887. return args, nil
  28888. }
  28889. func (ec *executionContext) field_Location_metafieldDefinitions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  28890. var err error
  28891. args := map[string]interface{}{}
  28892. var arg0 *string
  28893. if tmp, ok := rawArgs["namespace"]; ok {
  28894. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  28895. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28896. if err != nil {
  28897. return nil, err
  28898. }
  28899. }
  28900. args["namespace"] = arg0
  28901. var arg1 *MetafieldDefinitionPinnedStatus
  28902. if tmp, ok := rawArgs["pinnedStatus"]; ok {
  28903. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pinnedStatus"))
  28904. arg1, err = ec.unmarshalOMetafieldDefinitionPinnedStatus2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionPinnedStatus(ctx, tmp)
  28905. if err != nil {
  28906. return nil, err
  28907. }
  28908. }
  28909. args["pinnedStatus"] = arg1
  28910. var arg2 *int
  28911. if tmp, ok := rawArgs["first"]; ok {
  28912. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  28913. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28914. if err != nil {
  28915. return nil, err
  28916. }
  28917. }
  28918. args["first"] = arg2
  28919. var arg3 *string
  28920. if tmp, ok := rawArgs["after"]; ok {
  28921. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  28922. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28923. if err != nil {
  28924. return nil, err
  28925. }
  28926. }
  28927. args["after"] = arg3
  28928. var arg4 *int
  28929. if tmp, ok := rawArgs["last"]; ok {
  28930. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  28931. arg4, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  28932. if err != nil {
  28933. return nil, err
  28934. }
  28935. }
  28936. args["last"] = arg4
  28937. var arg5 *string
  28938. if tmp, ok := rawArgs["before"]; ok {
  28939. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  28940. arg5, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28941. if err != nil {
  28942. return nil, err
  28943. }
  28944. }
  28945. args["before"] = arg5
  28946. var arg6 *bool
  28947. if tmp, ok := rawArgs["reverse"]; ok {
  28948. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  28949. arg6, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  28950. if err != nil {
  28951. return nil, err
  28952. }
  28953. }
  28954. args["reverse"] = arg6
  28955. var arg7 *MetafieldDefinitionSortKeys
  28956. if tmp, ok := rawArgs["sortKey"]; ok {
  28957. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  28958. arg7, err = ec.unmarshalOMetafieldDefinitionSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionSortKeys(ctx, tmp)
  28959. if err != nil {
  28960. return nil, err
  28961. }
  28962. }
  28963. args["sortKey"] = arg7
  28964. var arg8 *string
  28965. if tmp, ok := rawArgs["query"]; ok {
  28966. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
  28967. arg8, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  28968. if err != nil {
  28969. return nil, err
  28970. }
  28971. }
  28972. args["query"] = arg8
  28973. return args, nil
  28974. }
  28975. func (ec *executionContext) field_Location_metafield_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  28976. var err error
  28977. args := map[string]interface{}{}
  28978. var arg0 string
  28979. if tmp, ok := rawArgs["namespace"]; ok {
  28980. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  28981. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  28982. if err != nil {
  28983. return nil, err
  28984. }
  28985. }
  28986. args["namespace"] = arg0
  28987. var arg1 string
  28988. if tmp, ok := rawArgs["key"]; ok {
  28989. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key"))
  28990. arg1, err = ec.unmarshalNString2string(ctx, tmp)
  28991. if err != nil {
  28992. return nil, err
  28993. }
  28994. }
  28995. args["key"] = arg1
  28996. return args, nil
  28997. }
  28998. func (ec *executionContext) field_Location_metafields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  28999. var err error
  29000. args := map[string]interface{}{}
  29001. var arg0 *string
  29002. if tmp, ok := rawArgs["namespace"]; ok {
  29003. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  29004. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29005. if err != nil {
  29006. return nil, err
  29007. }
  29008. }
  29009. args["namespace"] = arg0
  29010. var arg1 *int
  29011. if tmp, ok := rawArgs["first"]; ok {
  29012. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  29013. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29014. if err != nil {
  29015. return nil, err
  29016. }
  29017. }
  29018. args["first"] = arg1
  29019. var arg2 *string
  29020. if tmp, ok := rawArgs["after"]; ok {
  29021. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  29022. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29023. if err != nil {
  29024. return nil, err
  29025. }
  29026. }
  29027. args["after"] = arg2
  29028. var arg3 *int
  29029. if tmp, ok := rawArgs["last"]; ok {
  29030. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  29031. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29032. if err != nil {
  29033. return nil, err
  29034. }
  29035. }
  29036. args["last"] = arg3
  29037. var arg4 *string
  29038. if tmp, ok := rawArgs["before"]; ok {
  29039. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  29040. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29041. if err != nil {
  29042. return nil, err
  29043. }
  29044. }
  29045. args["before"] = arg4
  29046. var arg5 *bool
  29047. if tmp, ok := rawArgs["reverse"]; ok {
  29048. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  29049. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  29050. if err != nil {
  29051. return nil, err
  29052. }
  29053. }
  29054. args["reverse"] = arg5
  29055. return args, nil
  29056. }
  29057. func (ec *executionContext) field_Location_privateMetafield_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  29058. var err error
  29059. args := map[string]interface{}{}
  29060. var arg0 string
  29061. if tmp, ok := rawArgs["namespace"]; ok {
  29062. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  29063. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  29064. if err != nil {
  29065. return nil, err
  29066. }
  29067. }
  29068. args["namespace"] = arg0
  29069. var arg1 string
  29070. if tmp, ok := rawArgs["key"]; ok {
  29071. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key"))
  29072. arg1, err = ec.unmarshalNString2string(ctx, tmp)
  29073. if err != nil {
  29074. return nil, err
  29075. }
  29076. }
  29077. args["key"] = arg1
  29078. return args, nil
  29079. }
  29080. func (ec *executionContext) field_Location_privateMetafields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  29081. var err error
  29082. args := map[string]interface{}{}
  29083. var arg0 *string
  29084. if tmp, ok := rawArgs["namespace"]; ok {
  29085. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  29086. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29087. if err != nil {
  29088. return nil, err
  29089. }
  29090. }
  29091. args["namespace"] = arg0
  29092. var arg1 *int
  29093. if tmp, ok := rawArgs["first"]; ok {
  29094. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  29095. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29096. if err != nil {
  29097. return nil, err
  29098. }
  29099. }
  29100. args["first"] = arg1
  29101. var arg2 *string
  29102. if tmp, ok := rawArgs["after"]; ok {
  29103. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  29104. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29105. if err != nil {
  29106. return nil, err
  29107. }
  29108. }
  29109. args["after"] = arg2
  29110. var arg3 *int
  29111. if tmp, ok := rawArgs["last"]; ok {
  29112. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  29113. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29114. if err != nil {
  29115. return nil, err
  29116. }
  29117. }
  29118. args["last"] = arg3
  29119. var arg4 *string
  29120. if tmp, ok := rawArgs["before"]; ok {
  29121. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  29122. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29123. if err != nil {
  29124. return nil, err
  29125. }
  29126. }
  29127. args["before"] = arg4
  29128. var arg5 *bool
  29129. if tmp, ok := rawArgs["reverse"]; ok {
  29130. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  29131. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  29132. if err != nil {
  29133. return nil, err
  29134. }
  29135. }
  29136. args["reverse"] = arg5
  29137. return args, nil
  29138. }
  29139. func (ec *executionContext) field_Market_regions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  29140. var err error
  29141. args := map[string]interface{}{}
  29142. var arg0 *int
  29143. if tmp, ok := rawArgs["first"]; ok {
  29144. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  29145. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29146. if err != nil {
  29147. return nil, err
  29148. }
  29149. }
  29150. args["first"] = arg0
  29151. var arg1 *string
  29152. if tmp, ok := rawArgs["after"]; ok {
  29153. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  29154. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29155. if err != nil {
  29156. return nil, err
  29157. }
  29158. }
  29159. args["after"] = arg1
  29160. var arg2 *int
  29161. if tmp, ok := rawArgs["last"]; ok {
  29162. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  29163. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29164. if err != nil {
  29165. return nil, err
  29166. }
  29167. }
  29168. args["last"] = arg2
  29169. var arg3 *string
  29170. if tmp, ok := rawArgs["before"]; ok {
  29171. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  29172. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29173. if err != nil {
  29174. return nil, err
  29175. }
  29176. }
  29177. args["before"] = arg3
  29178. var arg4 *bool
  29179. if tmp, ok := rawArgs["reverse"]; ok {
  29180. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  29181. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  29182. if err != nil {
  29183. return nil, err
  29184. }
  29185. }
  29186. args["reverse"] = arg4
  29187. return args, nil
  29188. }
  29189. func (ec *executionContext) field_MetafieldDefinition_metafieldsCount_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  29190. var err error
  29191. args := map[string]interface{}{}
  29192. var arg0 *MetafieldValidationStatus
  29193. if tmp, ok := rawArgs["validationStatus"]; ok {
  29194. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("validationStatus"))
  29195. arg0, err = ec.unmarshalOMetafieldValidationStatus2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldValidationStatus(ctx, tmp)
  29196. if err != nil {
  29197. return nil, err
  29198. }
  29199. }
  29200. args["validationStatus"] = arg0
  29201. return args, nil
  29202. }
  29203. func (ec *executionContext) field_MetafieldDefinition_metafields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  29204. var err error
  29205. args := map[string]interface{}{}
  29206. var arg0 *MetafieldValidationStatus
  29207. if tmp, ok := rawArgs["validationStatus"]; ok {
  29208. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("validationStatus"))
  29209. arg0, err = ec.unmarshalOMetafieldValidationStatus2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldValidationStatus(ctx, tmp)
  29210. if err != nil {
  29211. return nil, err
  29212. }
  29213. }
  29214. args["validationStatus"] = arg0
  29215. var arg1 *int
  29216. if tmp, ok := rawArgs["first"]; ok {
  29217. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  29218. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29219. if err != nil {
  29220. return nil, err
  29221. }
  29222. }
  29223. args["first"] = arg1
  29224. var arg2 *string
  29225. if tmp, ok := rawArgs["after"]; ok {
  29226. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  29227. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29228. if err != nil {
  29229. return nil, err
  29230. }
  29231. }
  29232. args["after"] = arg2
  29233. var arg3 *int
  29234. if tmp, ok := rawArgs["last"]; ok {
  29235. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  29236. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29237. if err != nil {
  29238. return nil, err
  29239. }
  29240. }
  29241. args["last"] = arg3
  29242. var arg4 *string
  29243. if tmp, ok := rawArgs["before"]; ok {
  29244. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  29245. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29246. if err != nil {
  29247. return nil, err
  29248. }
  29249. }
  29250. args["before"] = arg4
  29251. var arg5 *bool
  29252. if tmp, ok := rawArgs["reverse"]; ok {
  29253. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  29254. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  29255. if err != nil {
  29256. return nil, err
  29257. }
  29258. }
  29259. args["reverse"] = arg5
  29260. return args, nil
  29261. }
  29262. func (ec *executionContext) field_Metafield_references_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  29263. var err error
  29264. args := map[string]interface{}{}
  29265. var arg0 *int
  29266. if tmp, ok := rawArgs["first"]; ok {
  29267. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  29268. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29269. if err != nil {
  29270. return nil, err
  29271. }
  29272. }
  29273. args["first"] = arg0
  29274. var arg1 *string
  29275. if tmp, ok := rawArgs["after"]; ok {
  29276. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  29277. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29278. if err != nil {
  29279. return nil, err
  29280. }
  29281. }
  29282. args["after"] = arg1
  29283. var arg2 *int
  29284. if tmp, ok := rawArgs["last"]; ok {
  29285. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  29286. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29287. if err != nil {
  29288. return nil, err
  29289. }
  29290. }
  29291. args["last"] = arg2
  29292. var arg3 *string
  29293. if tmp, ok := rawArgs["before"]; ok {
  29294. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  29295. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29296. if err != nil {
  29297. return nil, err
  29298. }
  29299. }
  29300. args["before"] = arg3
  29301. return args, nil
  29302. }
  29303. func (ec *executionContext) field_Mutation_customerCreate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  29304. var err error
  29305. args := map[string]interface{}{}
  29306. var arg0 CustomerInput
  29307. if tmp, ok := rawArgs["input"]; ok {
  29308. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
  29309. arg0, err = ec.unmarshalNCustomerInput2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerInput(ctx, tmp)
  29310. if err != nil {
  29311. return nil, err
  29312. }
  29313. }
  29314. args["input"] = arg0
  29315. return args, nil
  29316. }
  29317. func (ec *executionContext) field_OnlineStorePage_translations_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  29318. var err error
  29319. args := map[string]interface{}{}
  29320. var arg0 string
  29321. if tmp, ok := rawArgs["locale"]; ok {
  29322. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("locale"))
  29323. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  29324. if err != nil {
  29325. return nil, err
  29326. }
  29327. }
  29328. args["locale"] = arg0
  29329. var arg1 *string
  29330. if tmp, ok := rawArgs["marketId"]; ok {
  29331. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("marketId"))
  29332. arg1, err = ec.unmarshalOID2ᚖstring(ctx, tmp)
  29333. if err != nil {
  29334. return nil, err
  29335. }
  29336. }
  29337. args["marketId"] = arg1
  29338. return args, nil
  29339. }
  29340. func (ec *executionContext) field_Order_agreements_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  29341. var err error
  29342. args := map[string]interface{}{}
  29343. var arg0 *int
  29344. if tmp, ok := rawArgs["first"]; ok {
  29345. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  29346. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29347. if err != nil {
  29348. return nil, err
  29349. }
  29350. }
  29351. args["first"] = arg0
  29352. var arg1 *string
  29353. if tmp, ok := rawArgs["after"]; ok {
  29354. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  29355. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29356. if err != nil {
  29357. return nil, err
  29358. }
  29359. }
  29360. args["after"] = arg1
  29361. var arg2 *int
  29362. if tmp, ok := rawArgs["last"]; ok {
  29363. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  29364. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29365. if err != nil {
  29366. return nil, err
  29367. }
  29368. }
  29369. args["last"] = arg2
  29370. var arg3 *string
  29371. if tmp, ok := rawArgs["before"]; ok {
  29372. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  29373. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29374. if err != nil {
  29375. return nil, err
  29376. }
  29377. }
  29378. args["before"] = arg3
  29379. var arg4 *bool
  29380. if tmp, ok := rawArgs["reverse"]; ok {
  29381. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  29382. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  29383. if err != nil {
  29384. return nil, err
  29385. }
  29386. }
  29387. args["reverse"] = arg4
  29388. var arg5 *string
  29389. if tmp, ok := rawArgs["query"]; ok {
  29390. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
  29391. arg5, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29392. if err != nil {
  29393. return nil, err
  29394. }
  29395. }
  29396. args["query"] = arg5
  29397. return args, nil
  29398. }
  29399. func (ec *executionContext) field_Order_discountApplications_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  29400. var err error
  29401. args := map[string]interface{}{}
  29402. var arg0 *int
  29403. if tmp, ok := rawArgs["first"]; ok {
  29404. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  29405. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29406. if err != nil {
  29407. return nil, err
  29408. }
  29409. }
  29410. args["first"] = arg0
  29411. var arg1 *string
  29412. if tmp, ok := rawArgs["after"]; ok {
  29413. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  29414. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29415. if err != nil {
  29416. return nil, err
  29417. }
  29418. }
  29419. args["after"] = arg1
  29420. var arg2 *int
  29421. if tmp, ok := rawArgs["last"]; ok {
  29422. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  29423. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29424. if err != nil {
  29425. return nil, err
  29426. }
  29427. }
  29428. args["last"] = arg2
  29429. var arg3 *string
  29430. if tmp, ok := rawArgs["before"]; ok {
  29431. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  29432. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29433. if err != nil {
  29434. return nil, err
  29435. }
  29436. }
  29437. args["before"] = arg3
  29438. var arg4 *bool
  29439. if tmp, ok := rawArgs["reverse"]; ok {
  29440. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  29441. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  29442. if err != nil {
  29443. return nil, err
  29444. }
  29445. }
  29446. args["reverse"] = arg4
  29447. return args, nil
  29448. }
  29449. func (ec *executionContext) field_Order_events_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  29450. var err error
  29451. args := map[string]interface{}{}
  29452. var arg0 *int
  29453. if tmp, ok := rawArgs["first"]; ok {
  29454. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  29455. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29456. if err != nil {
  29457. return nil, err
  29458. }
  29459. }
  29460. args["first"] = arg0
  29461. var arg1 *string
  29462. if tmp, ok := rawArgs["after"]; ok {
  29463. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  29464. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29465. if err != nil {
  29466. return nil, err
  29467. }
  29468. }
  29469. args["after"] = arg1
  29470. var arg2 *int
  29471. if tmp, ok := rawArgs["last"]; ok {
  29472. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  29473. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29474. if err != nil {
  29475. return nil, err
  29476. }
  29477. }
  29478. args["last"] = arg2
  29479. var arg3 *string
  29480. if tmp, ok := rawArgs["before"]; ok {
  29481. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  29482. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29483. if err != nil {
  29484. return nil, err
  29485. }
  29486. }
  29487. args["before"] = arg3
  29488. var arg4 *bool
  29489. if tmp, ok := rawArgs["reverse"]; ok {
  29490. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  29491. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  29492. if err != nil {
  29493. return nil, err
  29494. }
  29495. }
  29496. args["reverse"] = arg4
  29497. var arg5 *EventSortKeys
  29498. if tmp, ok := rawArgs["sortKey"]; ok {
  29499. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  29500. arg5, err = ec.unmarshalOEventSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐEventSortKeys(ctx, tmp)
  29501. if err != nil {
  29502. return nil, err
  29503. }
  29504. }
  29505. args["sortKey"] = arg5
  29506. var arg6 *string
  29507. if tmp, ok := rawArgs["query"]; ok {
  29508. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
  29509. arg6, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29510. if err != nil {
  29511. return nil, err
  29512. }
  29513. }
  29514. args["query"] = arg6
  29515. return args, nil
  29516. }
  29517. func (ec *executionContext) field_Order_fulfillmentOrders_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  29518. var err error
  29519. args := map[string]interface{}{}
  29520. var arg0 *bool
  29521. if tmp, ok := rawArgs["displayable"]; ok {
  29522. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayable"))
  29523. arg0, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  29524. if err != nil {
  29525. return nil, err
  29526. }
  29527. }
  29528. args["displayable"] = arg0
  29529. var arg1 *int
  29530. if tmp, ok := rawArgs["first"]; ok {
  29531. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  29532. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29533. if err != nil {
  29534. return nil, err
  29535. }
  29536. }
  29537. args["first"] = arg1
  29538. var arg2 *string
  29539. if tmp, ok := rawArgs["after"]; ok {
  29540. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  29541. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29542. if err != nil {
  29543. return nil, err
  29544. }
  29545. }
  29546. args["after"] = arg2
  29547. var arg3 *int
  29548. if tmp, ok := rawArgs["last"]; ok {
  29549. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  29550. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29551. if err != nil {
  29552. return nil, err
  29553. }
  29554. }
  29555. args["last"] = arg3
  29556. var arg4 *string
  29557. if tmp, ok := rawArgs["before"]; ok {
  29558. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  29559. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29560. if err != nil {
  29561. return nil, err
  29562. }
  29563. }
  29564. args["before"] = arg4
  29565. var arg5 *bool
  29566. if tmp, ok := rawArgs["reverse"]; ok {
  29567. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  29568. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  29569. if err != nil {
  29570. return nil, err
  29571. }
  29572. }
  29573. args["reverse"] = arg5
  29574. var arg6 *string
  29575. if tmp, ok := rawArgs["query"]; ok {
  29576. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
  29577. arg6, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29578. if err != nil {
  29579. return nil, err
  29580. }
  29581. }
  29582. args["query"] = arg6
  29583. return args, nil
  29584. }
  29585. func (ec *executionContext) field_Order_fulfillments_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  29586. var err error
  29587. args := map[string]interface{}{}
  29588. var arg0 *int
  29589. if tmp, ok := rawArgs["first"]; ok {
  29590. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  29591. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29592. if err != nil {
  29593. return nil, err
  29594. }
  29595. }
  29596. args["first"] = arg0
  29597. return args, nil
  29598. }
  29599. func (ec *executionContext) field_Order_lineItems_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  29600. var err error
  29601. args := map[string]interface{}{}
  29602. var arg0 *int
  29603. if tmp, ok := rawArgs["first"]; ok {
  29604. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  29605. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29606. if err != nil {
  29607. return nil, err
  29608. }
  29609. }
  29610. args["first"] = arg0
  29611. var arg1 *string
  29612. if tmp, ok := rawArgs["after"]; ok {
  29613. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  29614. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29615. if err != nil {
  29616. return nil, err
  29617. }
  29618. }
  29619. args["after"] = arg1
  29620. var arg2 *int
  29621. if tmp, ok := rawArgs["last"]; ok {
  29622. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  29623. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29624. if err != nil {
  29625. return nil, err
  29626. }
  29627. }
  29628. args["last"] = arg2
  29629. var arg3 *string
  29630. if tmp, ok := rawArgs["before"]; ok {
  29631. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  29632. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29633. if err != nil {
  29634. return nil, err
  29635. }
  29636. }
  29637. args["before"] = arg3
  29638. var arg4 *bool
  29639. if tmp, ok := rawArgs["reverse"]; ok {
  29640. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  29641. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  29642. if err != nil {
  29643. return nil, err
  29644. }
  29645. }
  29646. args["reverse"] = arg4
  29647. return args, nil
  29648. }
  29649. func (ec *executionContext) field_Order_localizationExtensions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  29650. var err error
  29651. args := map[string]interface{}{}
  29652. var arg0 []CountryCode
  29653. if tmp, ok := rawArgs["countryCodes"]; ok {
  29654. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("countryCodes"))
  29655. arg0, err = ec.unmarshalOCountryCode2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCodeᚄ(ctx, tmp)
  29656. if err != nil {
  29657. return nil, err
  29658. }
  29659. }
  29660. args["countryCodes"] = arg0
  29661. var arg1 []LocalizationExtensionPurpose
  29662. if tmp, ok := rawArgs["purposes"]; ok {
  29663. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposes"))
  29664. arg1, err = ec.unmarshalOLocalizationExtensionPurpose2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocalizationExtensionPurposeᚄ(ctx, tmp)
  29665. if err != nil {
  29666. return nil, err
  29667. }
  29668. }
  29669. args["purposes"] = arg1
  29670. var arg2 *int
  29671. if tmp, ok := rawArgs["first"]; ok {
  29672. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  29673. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29674. if err != nil {
  29675. return nil, err
  29676. }
  29677. }
  29678. args["first"] = arg2
  29679. var arg3 *string
  29680. if tmp, ok := rawArgs["after"]; ok {
  29681. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  29682. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29683. if err != nil {
  29684. return nil, err
  29685. }
  29686. }
  29687. args["after"] = arg3
  29688. var arg4 *int
  29689. if tmp, ok := rawArgs["last"]; ok {
  29690. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  29691. arg4, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29692. if err != nil {
  29693. return nil, err
  29694. }
  29695. }
  29696. args["last"] = arg4
  29697. var arg5 *string
  29698. if tmp, ok := rawArgs["before"]; ok {
  29699. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  29700. arg5, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29701. if err != nil {
  29702. return nil, err
  29703. }
  29704. }
  29705. args["before"] = arg5
  29706. var arg6 *bool
  29707. if tmp, ok := rawArgs["reverse"]; ok {
  29708. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  29709. arg6, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  29710. if err != nil {
  29711. return nil, err
  29712. }
  29713. }
  29714. args["reverse"] = arg6
  29715. return args, nil
  29716. }
  29717. func (ec *executionContext) field_Order_metafieldDefinitions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  29718. var err error
  29719. args := map[string]interface{}{}
  29720. var arg0 *string
  29721. if tmp, ok := rawArgs["namespace"]; ok {
  29722. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  29723. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29724. if err != nil {
  29725. return nil, err
  29726. }
  29727. }
  29728. args["namespace"] = arg0
  29729. var arg1 *MetafieldDefinitionPinnedStatus
  29730. if tmp, ok := rawArgs["pinnedStatus"]; ok {
  29731. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pinnedStatus"))
  29732. arg1, err = ec.unmarshalOMetafieldDefinitionPinnedStatus2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionPinnedStatus(ctx, tmp)
  29733. if err != nil {
  29734. return nil, err
  29735. }
  29736. }
  29737. args["pinnedStatus"] = arg1
  29738. var arg2 *int
  29739. if tmp, ok := rawArgs["first"]; ok {
  29740. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  29741. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29742. if err != nil {
  29743. return nil, err
  29744. }
  29745. }
  29746. args["first"] = arg2
  29747. var arg3 *string
  29748. if tmp, ok := rawArgs["after"]; ok {
  29749. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  29750. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29751. if err != nil {
  29752. return nil, err
  29753. }
  29754. }
  29755. args["after"] = arg3
  29756. var arg4 *int
  29757. if tmp, ok := rawArgs["last"]; ok {
  29758. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  29759. arg4, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29760. if err != nil {
  29761. return nil, err
  29762. }
  29763. }
  29764. args["last"] = arg4
  29765. var arg5 *string
  29766. if tmp, ok := rawArgs["before"]; ok {
  29767. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  29768. arg5, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29769. if err != nil {
  29770. return nil, err
  29771. }
  29772. }
  29773. args["before"] = arg5
  29774. var arg6 *bool
  29775. if tmp, ok := rawArgs["reverse"]; ok {
  29776. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  29777. arg6, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  29778. if err != nil {
  29779. return nil, err
  29780. }
  29781. }
  29782. args["reverse"] = arg6
  29783. var arg7 *MetafieldDefinitionSortKeys
  29784. if tmp, ok := rawArgs["sortKey"]; ok {
  29785. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  29786. arg7, err = ec.unmarshalOMetafieldDefinitionSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionSortKeys(ctx, tmp)
  29787. if err != nil {
  29788. return nil, err
  29789. }
  29790. }
  29791. args["sortKey"] = arg7
  29792. var arg8 *string
  29793. if tmp, ok := rawArgs["query"]; ok {
  29794. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
  29795. arg8, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29796. if err != nil {
  29797. return nil, err
  29798. }
  29799. }
  29800. args["query"] = arg8
  29801. return args, nil
  29802. }
  29803. func (ec *executionContext) field_Order_metafield_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  29804. var err error
  29805. args := map[string]interface{}{}
  29806. var arg0 string
  29807. if tmp, ok := rawArgs["namespace"]; ok {
  29808. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  29809. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  29810. if err != nil {
  29811. return nil, err
  29812. }
  29813. }
  29814. args["namespace"] = arg0
  29815. var arg1 string
  29816. if tmp, ok := rawArgs["key"]; ok {
  29817. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key"))
  29818. arg1, err = ec.unmarshalNString2string(ctx, tmp)
  29819. if err != nil {
  29820. return nil, err
  29821. }
  29822. }
  29823. args["key"] = arg1
  29824. return args, nil
  29825. }
  29826. func (ec *executionContext) field_Order_metafields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  29827. var err error
  29828. args := map[string]interface{}{}
  29829. var arg0 *string
  29830. if tmp, ok := rawArgs["namespace"]; ok {
  29831. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  29832. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29833. if err != nil {
  29834. return nil, err
  29835. }
  29836. }
  29837. args["namespace"] = arg0
  29838. var arg1 *int
  29839. if tmp, ok := rawArgs["first"]; ok {
  29840. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  29841. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29842. if err != nil {
  29843. return nil, err
  29844. }
  29845. }
  29846. args["first"] = arg1
  29847. var arg2 *string
  29848. if tmp, ok := rawArgs["after"]; ok {
  29849. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  29850. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29851. if err != nil {
  29852. return nil, err
  29853. }
  29854. }
  29855. args["after"] = arg2
  29856. var arg3 *int
  29857. if tmp, ok := rawArgs["last"]; ok {
  29858. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  29859. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29860. if err != nil {
  29861. return nil, err
  29862. }
  29863. }
  29864. args["last"] = arg3
  29865. var arg4 *string
  29866. if tmp, ok := rawArgs["before"]; ok {
  29867. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  29868. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29869. if err != nil {
  29870. return nil, err
  29871. }
  29872. }
  29873. args["before"] = arg4
  29874. var arg5 *bool
  29875. if tmp, ok := rawArgs["reverse"]; ok {
  29876. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  29877. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  29878. if err != nil {
  29879. return nil, err
  29880. }
  29881. }
  29882. args["reverse"] = arg5
  29883. return args, nil
  29884. }
  29885. func (ec *executionContext) field_Order_nonFulfillableLineItems_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  29886. var err error
  29887. args := map[string]interface{}{}
  29888. var arg0 *int
  29889. if tmp, ok := rawArgs["first"]; ok {
  29890. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  29891. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29892. if err != nil {
  29893. return nil, err
  29894. }
  29895. }
  29896. args["first"] = arg0
  29897. var arg1 *string
  29898. if tmp, ok := rawArgs["after"]; ok {
  29899. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  29900. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29901. if err != nil {
  29902. return nil, err
  29903. }
  29904. }
  29905. args["after"] = arg1
  29906. var arg2 *int
  29907. if tmp, ok := rawArgs["last"]; ok {
  29908. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  29909. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29910. if err != nil {
  29911. return nil, err
  29912. }
  29913. }
  29914. args["last"] = arg2
  29915. var arg3 *string
  29916. if tmp, ok := rawArgs["before"]; ok {
  29917. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  29918. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29919. if err != nil {
  29920. return nil, err
  29921. }
  29922. }
  29923. args["before"] = arg3
  29924. var arg4 *bool
  29925. if tmp, ok := rawArgs["reverse"]; ok {
  29926. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  29927. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  29928. if err != nil {
  29929. return nil, err
  29930. }
  29931. }
  29932. args["reverse"] = arg4
  29933. return args, nil
  29934. }
  29935. func (ec *executionContext) field_Order_privateMetafield_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  29936. var err error
  29937. args := map[string]interface{}{}
  29938. var arg0 string
  29939. if tmp, ok := rawArgs["namespace"]; ok {
  29940. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  29941. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  29942. if err != nil {
  29943. return nil, err
  29944. }
  29945. }
  29946. args["namespace"] = arg0
  29947. var arg1 string
  29948. if tmp, ok := rawArgs["key"]; ok {
  29949. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key"))
  29950. arg1, err = ec.unmarshalNString2string(ctx, tmp)
  29951. if err != nil {
  29952. return nil, err
  29953. }
  29954. }
  29955. args["key"] = arg1
  29956. return args, nil
  29957. }
  29958. func (ec *executionContext) field_Order_privateMetafields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  29959. var err error
  29960. args := map[string]interface{}{}
  29961. var arg0 *string
  29962. if tmp, ok := rawArgs["namespace"]; ok {
  29963. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  29964. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29965. if err != nil {
  29966. return nil, err
  29967. }
  29968. }
  29969. args["namespace"] = arg0
  29970. var arg1 *int
  29971. if tmp, ok := rawArgs["first"]; ok {
  29972. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  29973. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29974. if err != nil {
  29975. return nil, err
  29976. }
  29977. }
  29978. args["first"] = arg1
  29979. var arg2 *string
  29980. if tmp, ok := rawArgs["after"]; ok {
  29981. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  29982. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  29983. if err != nil {
  29984. return nil, err
  29985. }
  29986. }
  29987. args["after"] = arg2
  29988. var arg3 *int
  29989. if tmp, ok := rawArgs["last"]; ok {
  29990. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  29991. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  29992. if err != nil {
  29993. return nil, err
  29994. }
  29995. }
  29996. args["last"] = arg3
  29997. var arg4 *string
  29998. if tmp, ok := rawArgs["before"]; ok {
  29999. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  30000. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30001. if err != nil {
  30002. return nil, err
  30003. }
  30004. }
  30005. args["before"] = arg4
  30006. var arg5 *bool
  30007. if tmp, ok := rawArgs["reverse"]; ok {
  30008. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  30009. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  30010. if err != nil {
  30011. return nil, err
  30012. }
  30013. }
  30014. args["reverse"] = arg5
  30015. return args, nil
  30016. }
  30017. func (ec *executionContext) field_Order_refunds_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  30018. var err error
  30019. args := map[string]interface{}{}
  30020. var arg0 *int
  30021. if tmp, ok := rawArgs["first"]; ok {
  30022. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  30023. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30024. if err != nil {
  30025. return nil, err
  30026. }
  30027. }
  30028. args["first"] = arg0
  30029. return args, nil
  30030. }
  30031. func (ec *executionContext) field_Order_risks_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  30032. var err error
  30033. args := map[string]interface{}{}
  30034. var arg0 *int
  30035. if tmp, ok := rawArgs["first"]; ok {
  30036. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  30037. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30038. if err != nil {
  30039. return nil, err
  30040. }
  30041. }
  30042. args["first"] = arg0
  30043. return args, nil
  30044. }
  30045. func (ec *executionContext) field_Order_shippingLines_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  30046. var err error
  30047. args := map[string]interface{}{}
  30048. var arg0 *int
  30049. if tmp, ok := rawArgs["first"]; ok {
  30050. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  30051. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30052. if err != nil {
  30053. return nil, err
  30054. }
  30055. }
  30056. args["first"] = arg0
  30057. var arg1 *string
  30058. if tmp, ok := rawArgs["after"]; ok {
  30059. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  30060. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30061. if err != nil {
  30062. return nil, err
  30063. }
  30064. }
  30065. args["after"] = arg1
  30066. var arg2 *int
  30067. if tmp, ok := rawArgs["last"]; ok {
  30068. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  30069. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30070. if err != nil {
  30071. return nil, err
  30072. }
  30073. }
  30074. args["last"] = arg2
  30075. var arg3 *string
  30076. if tmp, ok := rawArgs["before"]; ok {
  30077. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  30078. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30079. if err != nil {
  30080. return nil, err
  30081. }
  30082. }
  30083. args["before"] = arg3
  30084. var arg4 *bool
  30085. if tmp, ok := rawArgs["reverse"]; ok {
  30086. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  30087. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  30088. if err != nil {
  30089. return nil, err
  30090. }
  30091. }
  30092. args["reverse"] = arg4
  30093. return args, nil
  30094. }
  30095. func (ec *executionContext) field_Order_suggestedRefund_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  30096. var err error
  30097. args := map[string]interface{}{}
  30098. var arg0 *string
  30099. if tmp, ok := rawArgs["shippingAmount"]; ok {
  30100. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("shippingAmount"))
  30101. arg0, err = ec.unmarshalOMoney2ᚖstring(ctx, tmp)
  30102. if err != nil {
  30103. return nil, err
  30104. }
  30105. }
  30106. args["shippingAmount"] = arg0
  30107. var arg1 *bool
  30108. if tmp, ok := rawArgs["refundShipping"]; ok {
  30109. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refundShipping"))
  30110. arg1, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  30111. if err != nil {
  30112. return nil, err
  30113. }
  30114. }
  30115. args["refundShipping"] = arg1
  30116. var arg2 []*RefundLineItemInput
  30117. if tmp, ok := rawArgs["refundLineItems"]; ok {
  30118. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refundLineItems"))
  30119. arg2, err = ec.unmarshalORefundLineItemInput2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundLineItemInputᚄ(ctx, tmp)
  30120. if err != nil {
  30121. return nil, err
  30122. }
  30123. }
  30124. args["refundLineItems"] = arg2
  30125. var arg3 []*RefundDutyInput
  30126. if tmp, ok := rawArgs["refundDuties"]; ok {
  30127. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refundDuties"))
  30128. arg3, err = ec.unmarshalORefundDutyInput2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundDutyInputᚄ(ctx, tmp)
  30129. if err != nil {
  30130. return nil, err
  30131. }
  30132. }
  30133. args["refundDuties"] = arg3
  30134. var arg4 *bool
  30135. if tmp, ok := rawArgs["suggestFullRefund"]; ok {
  30136. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suggestFullRefund"))
  30137. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  30138. if err != nil {
  30139. return nil, err
  30140. }
  30141. }
  30142. args["suggestFullRefund"] = arg4
  30143. return args, nil
  30144. }
  30145. func (ec *executionContext) field_Order_transactions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  30146. var err error
  30147. args := map[string]interface{}{}
  30148. var arg0 *int
  30149. if tmp, ok := rawArgs["first"]; ok {
  30150. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  30151. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30152. if err != nil {
  30153. return nil, err
  30154. }
  30155. }
  30156. args["first"] = arg0
  30157. var arg1 *bool
  30158. if tmp, ok := rawArgs["capturable"]; ok {
  30159. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("capturable"))
  30160. arg1, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  30161. if err != nil {
  30162. return nil, err
  30163. }
  30164. }
  30165. args["capturable"] = arg1
  30166. var arg2 *bool
  30167. if tmp, ok := rawArgs["manuallyResolvable"]; ok {
  30168. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("manuallyResolvable"))
  30169. arg2, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  30170. if err != nil {
  30171. return nil, err
  30172. }
  30173. }
  30174. args["manuallyResolvable"] = arg2
  30175. return args, nil
  30176. }
  30177. func (ec *executionContext) field_PaymentTerms_paymentSchedules_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  30178. var err error
  30179. args := map[string]interface{}{}
  30180. var arg0 *int
  30181. if tmp, ok := rawArgs["first"]; ok {
  30182. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  30183. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30184. if err != nil {
  30185. return nil, err
  30186. }
  30187. }
  30188. args["first"] = arg0
  30189. var arg1 *string
  30190. if tmp, ok := rawArgs["after"]; ok {
  30191. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  30192. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30193. if err != nil {
  30194. return nil, err
  30195. }
  30196. }
  30197. args["after"] = arg1
  30198. var arg2 *int
  30199. if tmp, ok := rawArgs["last"]; ok {
  30200. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  30201. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30202. if err != nil {
  30203. return nil, err
  30204. }
  30205. }
  30206. args["last"] = arg2
  30207. var arg3 *string
  30208. if tmp, ok := rawArgs["before"]; ok {
  30209. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  30210. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30211. if err != nil {
  30212. return nil, err
  30213. }
  30214. }
  30215. args["before"] = arg3
  30216. var arg4 *bool
  30217. if tmp, ok := rawArgs["reverse"]; ok {
  30218. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  30219. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  30220. if err != nil {
  30221. return nil, err
  30222. }
  30223. }
  30224. args["reverse"] = arg4
  30225. return args, nil
  30226. }
  30227. func (ec *executionContext) field_PriceList_prices_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  30228. var err error
  30229. args := map[string]interface{}{}
  30230. var arg0 *PriceListPriceOriginType
  30231. if tmp, ok := rawArgs["originType"]; ok {
  30232. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("originType"))
  30233. arg0, err = ec.unmarshalOPriceListPriceOriginType2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceListPriceOriginType(ctx, tmp)
  30234. if err != nil {
  30235. return nil, err
  30236. }
  30237. }
  30238. args["originType"] = arg0
  30239. var arg1 *int
  30240. if tmp, ok := rawArgs["first"]; ok {
  30241. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  30242. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30243. if err != nil {
  30244. return nil, err
  30245. }
  30246. }
  30247. args["first"] = arg1
  30248. var arg2 *string
  30249. if tmp, ok := rawArgs["after"]; ok {
  30250. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  30251. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30252. if err != nil {
  30253. return nil, err
  30254. }
  30255. }
  30256. args["after"] = arg2
  30257. var arg3 *int
  30258. if tmp, ok := rawArgs["last"]; ok {
  30259. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  30260. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30261. if err != nil {
  30262. return nil, err
  30263. }
  30264. }
  30265. args["last"] = arg3
  30266. var arg4 *string
  30267. if tmp, ok := rawArgs["before"]; ok {
  30268. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  30269. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30270. if err != nil {
  30271. return nil, err
  30272. }
  30273. }
  30274. args["before"] = arg4
  30275. var arg5 *bool
  30276. if tmp, ok := rawArgs["reverse"]; ok {
  30277. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  30278. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  30279. if err != nil {
  30280. return nil, err
  30281. }
  30282. }
  30283. args["reverse"] = arg5
  30284. return args, nil
  30285. }
  30286. func (ec *executionContext) field_ProductOption_translations_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  30287. var err error
  30288. args := map[string]interface{}{}
  30289. var arg0 string
  30290. if tmp, ok := rawArgs["locale"]; ok {
  30291. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("locale"))
  30292. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  30293. if err != nil {
  30294. return nil, err
  30295. }
  30296. }
  30297. args["locale"] = arg0
  30298. var arg1 *string
  30299. if tmp, ok := rawArgs["marketId"]; ok {
  30300. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("marketId"))
  30301. arg1, err = ec.unmarshalOID2ᚖstring(ctx, tmp)
  30302. if err != nil {
  30303. return nil, err
  30304. }
  30305. }
  30306. args["marketId"] = arg1
  30307. return args, nil
  30308. }
  30309. func (ec *executionContext) field_ProductVariant_contextualPricing_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  30310. var err error
  30311. args := map[string]interface{}{}
  30312. var arg0 ContextualPricingContext
  30313. if tmp, ok := rawArgs["context"]; ok {
  30314. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("context"))
  30315. arg0, err = ec.unmarshalNContextualPricingContext2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐContextualPricingContext(ctx, tmp)
  30316. if err != nil {
  30317. return nil, err
  30318. }
  30319. }
  30320. args["context"] = arg0
  30321. return args, nil
  30322. }
  30323. func (ec *executionContext) field_ProductVariant_media_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  30324. var err error
  30325. args := map[string]interface{}{}
  30326. var arg0 *int
  30327. if tmp, ok := rawArgs["first"]; ok {
  30328. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  30329. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30330. if err != nil {
  30331. return nil, err
  30332. }
  30333. }
  30334. args["first"] = arg0
  30335. var arg1 *string
  30336. if tmp, ok := rawArgs["after"]; ok {
  30337. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  30338. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30339. if err != nil {
  30340. return nil, err
  30341. }
  30342. }
  30343. args["after"] = arg1
  30344. var arg2 *int
  30345. if tmp, ok := rawArgs["last"]; ok {
  30346. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  30347. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30348. if err != nil {
  30349. return nil, err
  30350. }
  30351. }
  30352. args["last"] = arg2
  30353. var arg3 *string
  30354. if tmp, ok := rawArgs["before"]; ok {
  30355. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  30356. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30357. if err != nil {
  30358. return nil, err
  30359. }
  30360. }
  30361. args["before"] = arg3
  30362. var arg4 *bool
  30363. if tmp, ok := rawArgs["reverse"]; ok {
  30364. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  30365. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  30366. if err != nil {
  30367. return nil, err
  30368. }
  30369. }
  30370. args["reverse"] = arg4
  30371. return args, nil
  30372. }
  30373. func (ec *executionContext) field_ProductVariant_metafieldDefinitions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  30374. var err error
  30375. args := map[string]interface{}{}
  30376. var arg0 *string
  30377. if tmp, ok := rawArgs["namespace"]; ok {
  30378. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  30379. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30380. if err != nil {
  30381. return nil, err
  30382. }
  30383. }
  30384. args["namespace"] = arg0
  30385. var arg1 *MetafieldDefinitionPinnedStatus
  30386. if tmp, ok := rawArgs["pinnedStatus"]; ok {
  30387. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pinnedStatus"))
  30388. arg1, err = ec.unmarshalOMetafieldDefinitionPinnedStatus2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionPinnedStatus(ctx, tmp)
  30389. if err != nil {
  30390. return nil, err
  30391. }
  30392. }
  30393. args["pinnedStatus"] = arg1
  30394. var arg2 *int
  30395. if tmp, ok := rawArgs["first"]; ok {
  30396. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  30397. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30398. if err != nil {
  30399. return nil, err
  30400. }
  30401. }
  30402. args["first"] = arg2
  30403. var arg3 *string
  30404. if tmp, ok := rawArgs["after"]; ok {
  30405. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  30406. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30407. if err != nil {
  30408. return nil, err
  30409. }
  30410. }
  30411. args["after"] = arg3
  30412. var arg4 *int
  30413. if tmp, ok := rawArgs["last"]; ok {
  30414. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  30415. arg4, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30416. if err != nil {
  30417. return nil, err
  30418. }
  30419. }
  30420. args["last"] = arg4
  30421. var arg5 *string
  30422. if tmp, ok := rawArgs["before"]; ok {
  30423. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  30424. arg5, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30425. if err != nil {
  30426. return nil, err
  30427. }
  30428. }
  30429. args["before"] = arg5
  30430. var arg6 *bool
  30431. if tmp, ok := rawArgs["reverse"]; ok {
  30432. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  30433. arg6, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  30434. if err != nil {
  30435. return nil, err
  30436. }
  30437. }
  30438. args["reverse"] = arg6
  30439. var arg7 *MetafieldDefinitionSortKeys
  30440. if tmp, ok := rawArgs["sortKey"]; ok {
  30441. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  30442. arg7, err = ec.unmarshalOMetafieldDefinitionSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionSortKeys(ctx, tmp)
  30443. if err != nil {
  30444. return nil, err
  30445. }
  30446. }
  30447. args["sortKey"] = arg7
  30448. var arg8 *string
  30449. if tmp, ok := rawArgs["query"]; ok {
  30450. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
  30451. arg8, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30452. if err != nil {
  30453. return nil, err
  30454. }
  30455. }
  30456. args["query"] = arg8
  30457. return args, nil
  30458. }
  30459. func (ec *executionContext) field_ProductVariant_metafield_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  30460. var err error
  30461. args := map[string]interface{}{}
  30462. var arg0 string
  30463. if tmp, ok := rawArgs["namespace"]; ok {
  30464. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  30465. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  30466. if err != nil {
  30467. return nil, err
  30468. }
  30469. }
  30470. args["namespace"] = arg0
  30471. var arg1 string
  30472. if tmp, ok := rawArgs["key"]; ok {
  30473. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key"))
  30474. arg1, err = ec.unmarshalNString2string(ctx, tmp)
  30475. if err != nil {
  30476. return nil, err
  30477. }
  30478. }
  30479. args["key"] = arg1
  30480. return args, nil
  30481. }
  30482. func (ec *executionContext) field_ProductVariant_metafields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  30483. var err error
  30484. args := map[string]interface{}{}
  30485. var arg0 *string
  30486. if tmp, ok := rawArgs["namespace"]; ok {
  30487. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  30488. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30489. if err != nil {
  30490. return nil, err
  30491. }
  30492. }
  30493. args["namespace"] = arg0
  30494. var arg1 *int
  30495. if tmp, ok := rawArgs["first"]; ok {
  30496. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  30497. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30498. if err != nil {
  30499. return nil, err
  30500. }
  30501. }
  30502. args["first"] = arg1
  30503. var arg2 *string
  30504. if tmp, ok := rawArgs["after"]; ok {
  30505. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  30506. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30507. if err != nil {
  30508. return nil, err
  30509. }
  30510. }
  30511. args["after"] = arg2
  30512. var arg3 *int
  30513. if tmp, ok := rawArgs["last"]; ok {
  30514. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  30515. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30516. if err != nil {
  30517. return nil, err
  30518. }
  30519. }
  30520. args["last"] = arg3
  30521. var arg4 *string
  30522. if tmp, ok := rawArgs["before"]; ok {
  30523. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  30524. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30525. if err != nil {
  30526. return nil, err
  30527. }
  30528. }
  30529. args["before"] = arg4
  30530. var arg5 *bool
  30531. if tmp, ok := rawArgs["reverse"]; ok {
  30532. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  30533. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  30534. if err != nil {
  30535. return nil, err
  30536. }
  30537. }
  30538. args["reverse"] = arg5
  30539. return args, nil
  30540. }
  30541. func (ec *executionContext) field_ProductVariant_privateMetafield_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  30542. var err error
  30543. args := map[string]interface{}{}
  30544. var arg0 string
  30545. if tmp, ok := rawArgs["namespace"]; ok {
  30546. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  30547. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  30548. if err != nil {
  30549. return nil, err
  30550. }
  30551. }
  30552. args["namespace"] = arg0
  30553. var arg1 string
  30554. if tmp, ok := rawArgs["key"]; ok {
  30555. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key"))
  30556. arg1, err = ec.unmarshalNString2string(ctx, tmp)
  30557. if err != nil {
  30558. return nil, err
  30559. }
  30560. }
  30561. args["key"] = arg1
  30562. return args, nil
  30563. }
  30564. func (ec *executionContext) field_ProductVariant_privateMetafields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  30565. var err error
  30566. args := map[string]interface{}{}
  30567. var arg0 *string
  30568. if tmp, ok := rawArgs["namespace"]; ok {
  30569. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  30570. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30571. if err != nil {
  30572. return nil, err
  30573. }
  30574. }
  30575. args["namespace"] = arg0
  30576. var arg1 *int
  30577. if tmp, ok := rawArgs["first"]; ok {
  30578. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  30579. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30580. if err != nil {
  30581. return nil, err
  30582. }
  30583. }
  30584. args["first"] = arg1
  30585. var arg2 *string
  30586. if tmp, ok := rawArgs["after"]; ok {
  30587. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  30588. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30589. if err != nil {
  30590. return nil, err
  30591. }
  30592. }
  30593. args["after"] = arg2
  30594. var arg3 *int
  30595. if tmp, ok := rawArgs["last"]; ok {
  30596. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  30597. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30598. if err != nil {
  30599. return nil, err
  30600. }
  30601. }
  30602. args["last"] = arg3
  30603. var arg4 *string
  30604. if tmp, ok := rawArgs["before"]; ok {
  30605. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  30606. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30607. if err != nil {
  30608. return nil, err
  30609. }
  30610. }
  30611. args["before"] = arg4
  30612. var arg5 *bool
  30613. if tmp, ok := rawArgs["reverse"]; ok {
  30614. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  30615. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  30616. if err != nil {
  30617. return nil, err
  30618. }
  30619. }
  30620. args["reverse"] = arg5
  30621. return args, nil
  30622. }
  30623. func (ec *executionContext) field_ProductVariant_sellingPlanGroups_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  30624. var err error
  30625. args := map[string]interface{}{}
  30626. var arg0 *int
  30627. if tmp, ok := rawArgs["first"]; ok {
  30628. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  30629. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30630. if err != nil {
  30631. return nil, err
  30632. }
  30633. }
  30634. args["first"] = arg0
  30635. var arg1 *string
  30636. if tmp, ok := rawArgs["after"]; ok {
  30637. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  30638. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30639. if err != nil {
  30640. return nil, err
  30641. }
  30642. }
  30643. args["after"] = arg1
  30644. var arg2 *int
  30645. if tmp, ok := rawArgs["last"]; ok {
  30646. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  30647. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30648. if err != nil {
  30649. return nil, err
  30650. }
  30651. }
  30652. args["last"] = arg2
  30653. var arg3 *string
  30654. if tmp, ok := rawArgs["before"]; ok {
  30655. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  30656. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30657. if err != nil {
  30658. return nil, err
  30659. }
  30660. }
  30661. args["before"] = arg3
  30662. var arg4 *bool
  30663. if tmp, ok := rawArgs["reverse"]; ok {
  30664. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  30665. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  30666. if err != nil {
  30667. return nil, err
  30668. }
  30669. }
  30670. args["reverse"] = arg4
  30671. return args, nil
  30672. }
  30673. func (ec *executionContext) field_ProductVariant_translations_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  30674. var err error
  30675. args := map[string]interface{}{}
  30676. var arg0 string
  30677. if tmp, ok := rawArgs["locale"]; ok {
  30678. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("locale"))
  30679. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  30680. if err != nil {
  30681. return nil, err
  30682. }
  30683. }
  30684. args["locale"] = arg0
  30685. var arg1 *string
  30686. if tmp, ok := rawArgs["marketId"]; ok {
  30687. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("marketId"))
  30688. arg1, err = ec.unmarshalOID2ᚖstring(ctx, tmp)
  30689. if err != nil {
  30690. return nil, err
  30691. }
  30692. }
  30693. args["marketId"] = arg1
  30694. return args, nil
  30695. }
  30696. func (ec *executionContext) field_Product_collections_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  30697. var err error
  30698. args := map[string]interface{}{}
  30699. var arg0 *int
  30700. if tmp, ok := rawArgs["first"]; ok {
  30701. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  30702. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30703. if err != nil {
  30704. return nil, err
  30705. }
  30706. }
  30707. args["first"] = arg0
  30708. var arg1 *string
  30709. if tmp, ok := rawArgs["after"]; ok {
  30710. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  30711. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30712. if err != nil {
  30713. return nil, err
  30714. }
  30715. }
  30716. args["after"] = arg1
  30717. var arg2 *int
  30718. if tmp, ok := rawArgs["last"]; ok {
  30719. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  30720. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30721. if err != nil {
  30722. return nil, err
  30723. }
  30724. }
  30725. args["last"] = arg2
  30726. var arg3 *string
  30727. if tmp, ok := rawArgs["before"]; ok {
  30728. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  30729. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30730. if err != nil {
  30731. return nil, err
  30732. }
  30733. }
  30734. args["before"] = arg3
  30735. var arg4 *bool
  30736. if tmp, ok := rawArgs["reverse"]; ok {
  30737. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  30738. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  30739. if err != nil {
  30740. return nil, err
  30741. }
  30742. }
  30743. args["reverse"] = arg4
  30744. var arg5 *CollectionSortKeys
  30745. if tmp, ok := rawArgs["sortKey"]; ok {
  30746. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  30747. arg5, err = ec.unmarshalOCollectionSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCollectionSortKeys(ctx, tmp)
  30748. if err != nil {
  30749. return nil, err
  30750. }
  30751. }
  30752. args["sortKey"] = arg5
  30753. var arg6 *string
  30754. if tmp, ok := rawArgs["query"]; ok {
  30755. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
  30756. arg6, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30757. if err != nil {
  30758. return nil, err
  30759. }
  30760. }
  30761. args["query"] = arg6
  30762. return args, nil
  30763. }
  30764. func (ec *executionContext) field_Product_contextualPricing_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  30765. var err error
  30766. args := map[string]interface{}{}
  30767. var arg0 ContextualPricingContext
  30768. if tmp, ok := rawArgs["context"]; ok {
  30769. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("context"))
  30770. arg0, err = ec.unmarshalNContextualPricingContext2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐContextualPricingContext(ctx, tmp)
  30771. if err != nil {
  30772. return nil, err
  30773. }
  30774. }
  30775. args["context"] = arg0
  30776. return args, nil
  30777. }
  30778. func (ec *executionContext) field_Product_description_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  30779. var err error
  30780. args := map[string]interface{}{}
  30781. var arg0 *int
  30782. if tmp, ok := rawArgs["truncateAt"]; ok {
  30783. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("truncateAt"))
  30784. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30785. if err != nil {
  30786. return nil, err
  30787. }
  30788. }
  30789. args["truncateAt"] = arg0
  30790. return args, nil
  30791. }
  30792. func (ec *executionContext) field_Product_images_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  30793. var err error
  30794. args := map[string]interface{}{}
  30795. var arg0 *int
  30796. if tmp, ok := rawArgs["first"]; ok {
  30797. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  30798. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30799. if err != nil {
  30800. return nil, err
  30801. }
  30802. }
  30803. args["first"] = arg0
  30804. var arg1 *string
  30805. if tmp, ok := rawArgs["after"]; ok {
  30806. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  30807. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30808. if err != nil {
  30809. return nil, err
  30810. }
  30811. }
  30812. args["after"] = arg1
  30813. var arg2 *int
  30814. if tmp, ok := rawArgs["last"]; ok {
  30815. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  30816. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30817. if err != nil {
  30818. return nil, err
  30819. }
  30820. }
  30821. args["last"] = arg2
  30822. var arg3 *string
  30823. if tmp, ok := rawArgs["before"]; ok {
  30824. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  30825. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30826. if err != nil {
  30827. return nil, err
  30828. }
  30829. }
  30830. args["before"] = arg3
  30831. var arg4 *bool
  30832. if tmp, ok := rawArgs["reverse"]; ok {
  30833. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  30834. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  30835. if err != nil {
  30836. return nil, err
  30837. }
  30838. }
  30839. args["reverse"] = arg4
  30840. var arg5 *ProductImageSortKeys
  30841. if tmp, ok := rawArgs["sortKey"]; ok {
  30842. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  30843. arg5, err = ec.unmarshalOProductImageSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductImageSortKeys(ctx, tmp)
  30844. if err != nil {
  30845. return nil, err
  30846. }
  30847. }
  30848. args["sortKey"] = arg5
  30849. return args, nil
  30850. }
  30851. func (ec *executionContext) field_Product_inCollection_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  30852. var err error
  30853. args := map[string]interface{}{}
  30854. var arg0 string
  30855. if tmp, ok := rawArgs["id"]; ok {
  30856. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
  30857. arg0, err = ec.unmarshalNID2string(ctx, tmp)
  30858. if err != nil {
  30859. return nil, err
  30860. }
  30861. }
  30862. args["id"] = arg0
  30863. return args, nil
  30864. }
  30865. func (ec *executionContext) field_Product_media_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  30866. var err error
  30867. args := map[string]interface{}{}
  30868. var arg0 *int
  30869. if tmp, ok := rawArgs["first"]; ok {
  30870. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  30871. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30872. if err != nil {
  30873. return nil, err
  30874. }
  30875. }
  30876. args["first"] = arg0
  30877. var arg1 *string
  30878. if tmp, ok := rawArgs["after"]; ok {
  30879. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  30880. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30881. if err != nil {
  30882. return nil, err
  30883. }
  30884. }
  30885. args["after"] = arg1
  30886. var arg2 *int
  30887. if tmp, ok := rawArgs["last"]; ok {
  30888. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  30889. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30890. if err != nil {
  30891. return nil, err
  30892. }
  30893. }
  30894. args["last"] = arg2
  30895. var arg3 *string
  30896. if tmp, ok := rawArgs["before"]; ok {
  30897. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  30898. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30899. if err != nil {
  30900. return nil, err
  30901. }
  30902. }
  30903. args["before"] = arg3
  30904. var arg4 *bool
  30905. if tmp, ok := rawArgs["reverse"]; ok {
  30906. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  30907. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  30908. if err != nil {
  30909. return nil, err
  30910. }
  30911. }
  30912. args["reverse"] = arg4
  30913. var arg5 *ProductMediaSortKeys
  30914. if tmp, ok := rawArgs["sortKey"]; ok {
  30915. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  30916. arg5, err = ec.unmarshalOProductMediaSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductMediaSortKeys(ctx, tmp)
  30917. if err != nil {
  30918. return nil, err
  30919. }
  30920. }
  30921. args["sortKey"] = arg5
  30922. return args, nil
  30923. }
  30924. func (ec *executionContext) field_Product_metafieldDefinitions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  30925. var err error
  30926. args := map[string]interface{}{}
  30927. var arg0 *string
  30928. if tmp, ok := rawArgs["namespace"]; ok {
  30929. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  30930. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30931. if err != nil {
  30932. return nil, err
  30933. }
  30934. }
  30935. args["namespace"] = arg0
  30936. var arg1 *MetafieldDefinitionPinnedStatus
  30937. if tmp, ok := rawArgs["pinnedStatus"]; ok {
  30938. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pinnedStatus"))
  30939. arg1, err = ec.unmarshalOMetafieldDefinitionPinnedStatus2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionPinnedStatus(ctx, tmp)
  30940. if err != nil {
  30941. return nil, err
  30942. }
  30943. }
  30944. args["pinnedStatus"] = arg1
  30945. var arg2 *int
  30946. if tmp, ok := rawArgs["first"]; ok {
  30947. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  30948. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30949. if err != nil {
  30950. return nil, err
  30951. }
  30952. }
  30953. args["first"] = arg2
  30954. var arg3 *string
  30955. if tmp, ok := rawArgs["after"]; ok {
  30956. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  30957. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30958. if err != nil {
  30959. return nil, err
  30960. }
  30961. }
  30962. args["after"] = arg3
  30963. var arg4 *int
  30964. if tmp, ok := rawArgs["last"]; ok {
  30965. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  30966. arg4, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  30967. if err != nil {
  30968. return nil, err
  30969. }
  30970. }
  30971. args["last"] = arg4
  30972. var arg5 *string
  30973. if tmp, ok := rawArgs["before"]; ok {
  30974. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  30975. arg5, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  30976. if err != nil {
  30977. return nil, err
  30978. }
  30979. }
  30980. args["before"] = arg5
  30981. var arg6 *bool
  30982. if tmp, ok := rawArgs["reverse"]; ok {
  30983. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  30984. arg6, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  30985. if err != nil {
  30986. return nil, err
  30987. }
  30988. }
  30989. args["reverse"] = arg6
  30990. var arg7 *MetafieldDefinitionSortKeys
  30991. if tmp, ok := rawArgs["sortKey"]; ok {
  30992. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  30993. arg7, err = ec.unmarshalOMetafieldDefinitionSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionSortKeys(ctx, tmp)
  30994. if err != nil {
  30995. return nil, err
  30996. }
  30997. }
  30998. args["sortKey"] = arg7
  30999. var arg8 *string
  31000. if tmp, ok := rawArgs["query"]; ok {
  31001. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
  31002. arg8, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31003. if err != nil {
  31004. return nil, err
  31005. }
  31006. }
  31007. args["query"] = arg8
  31008. return args, nil
  31009. }
  31010. func (ec *executionContext) field_Product_metafield_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31011. var err error
  31012. args := map[string]interface{}{}
  31013. var arg0 string
  31014. if tmp, ok := rawArgs["namespace"]; ok {
  31015. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  31016. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  31017. if err != nil {
  31018. return nil, err
  31019. }
  31020. }
  31021. args["namespace"] = arg0
  31022. var arg1 string
  31023. if tmp, ok := rawArgs["key"]; ok {
  31024. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key"))
  31025. arg1, err = ec.unmarshalNString2string(ctx, tmp)
  31026. if err != nil {
  31027. return nil, err
  31028. }
  31029. }
  31030. args["key"] = arg1
  31031. return args, nil
  31032. }
  31033. func (ec *executionContext) field_Product_metafields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31034. var err error
  31035. args := map[string]interface{}{}
  31036. var arg0 *string
  31037. if tmp, ok := rawArgs["namespace"]; ok {
  31038. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  31039. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31040. if err != nil {
  31041. return nil, err
  31042. }
  31043. }
  31044. args["namespace"] = arg0
  31045. var arg1 *int
  31046. if tmp, ok := rawArgs["first"]; ok {
  31047. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  31048. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31049. if err != nil {
  31050. return nil, err
  31051. }
  31052. }
  31053. args["first"] = arg1
  31054. var arg2 *string
  31055. if tmp, ok := rawArgs["after"]; ok {
  31056. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  31057. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31058. if err != nil {
  31059. return nil, err
  31060. }
  31061. }
  31062. args["after"] = arg2
  31063. var arg3 *int
  31064. if tmp, ok := rawArgs["last"]; ok {
  31065. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  31066. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31067. if err != nil {
  31068. return nil, err
  31069. }
  31070. }
  31071. args["last"] = arg3
  31072. var arg4 *string
  31073. if tmp, ok := rawArgs["before"]; ok {
  31074. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  31075. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31076. if err != nil {
  31077. return nil, err
  31078. }
  31079. }
  31080. args["before"] = arg4
  31081. var arg5 *bool
  31082. if tmp, ok := rawArgs["reverse"]; ok {
  31083. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  31084. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  31085. if err != nil {
  31086. return nil, err
  31087. }
  31088. }
  31089. args["reverse"] = arg5
  31090. return args, nil
  31091. }
  31092. func (ec *executionContext) field_Product_options_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31093. var err error
  31094. args := map[string]interface{}{}
  31095. var arg0 *int
  31096. if tmp, ok := rawArgs["first"]; ok {
  31097. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  31098. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31099. if err != nil {
  31100. return nil, err
  31101. }
  31102. }
  31103. args["first"] = arg0
  31104. return args, nil
  31105. }
  31106. func (ec *executionContext) field_Product_privateMetafield_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31107. var err error
  31108. args := map[string]interface{}{}
  31109. var arg0 string
  31110. if tmp, ok := rawArgs["namespace"]; ok {
  31111. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  31112. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  31113. if err != nil {
  31114. return nil, err
  31115. }
  31116. }
  31117. args["namespace"] = arg0
  31118. var arg1 string
  31119. if tmp, ok := rawArgs["key"]; ok {
  31120. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key"))
  31121. arg1, err = ec.unmarshalNString2string(ctx, tmp)
  31122. if err != nil {
  31123. return nil, err
  31124. }
  31125. }
  31126. args["key"] = arg1
  31127. return args, nil
  31128. }
  31129. func (ec *executionContext) field_Product_privateMetafields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31130. var err error
  31131. args := map[string]interface{}{}
  31132. var arg0 *string
  31133. if tmp, ok := rawArgs["namespace"]; ok {
  31134. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  31135. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31136. if err != nil {
  31137. return nil, err
  31138. }
  31139. }
  31140. args["namespace"] = arg0
  31141. var arg1 *int
  31142. if tmp, ok := rawArgs["first"]; ok {
  31143. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  31144. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31145. if err != nil {
  31146. return nil, err
  31147. }
  31148. }
  31149. args["first"] = arg1
  31150. var arg2 *string
  31151. if tmp, ok := rawArgs["after"]; ok {
  31152. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  31153. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31154. if err != nil {
  31155. return nil, err
  31156. }
  31157. }
  31158. args["after"] = arg2
  31159. var arg3 *int
  31160. if tmp, ok := rawArgs["last"]; ok {
  31161. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  31162. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31163. if err != nil {
  31164. return nil, err
  31165. }
  31166. }
  31167. args["last"] = arg3
  31168. var arg4 *string
  31169. if tmp, ok := rawArgs["before"]; ok {
  31170. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  31171. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31172. if err != nil {
  31173. return nil, err
  31174. }
  31175. }
  31176. args["before"] = arg4
  31177. var arg5 *bool
  31178. if tmp, ok := rawArgs["reverse"]; ok {
  31179. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  31180. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  31181. if err != nil {
  31182. return nil, err
  31183. }
  31184. }
  31185. args["reverse"] = arg5
  31186. return args, nil
  31187. }
  31188. func (ec *executionContext) field_Product_publicationCount_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31189. var err error
  31190. args := map[string]interface{}{}
  31191. var arg0 *bool
  31192. if tmp, ok := rawArgs["onlyPublished"]; ok {
  31193. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onlyPublished"))
  31194. arg0, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  31195. if err != nil {
  31196. return nil, err
  31197. }
  31198. }
  31199. args["onlyPublished"] = arg0
  31200. return args, nil
  31201. }
  31202. func (ec *executionContext) field_Product_publishedOnPublication_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31203. var err error
  31204. args := map[string]interface{}{}
  31205. var arg0 string
  31206. if tmp, ok := rawArgs["publicationId"]; ok {
  31207. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("publicationId"))
  31208. arg0, err = ec.unmarshalNID2string(ctx, tmp)
  31209. if err != nil {
  31210. return nil, err
  31211. }
  31212. }
  31213. args["publicationId"] = arg0
  31214. return args, nil
  31215. }
  31216. func (ec *executionContext) field_Product_resourcePublicationsV2_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31217. var err error
  31218. args := map[string]interface{}{}
  31219. var arg0 *bool
  31220. if tmp, ok := rawArgs["onlyPublished"]; ok {
  31221. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onlyPublished"))
  31222. arg0, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  31223. if err != nil {
  31224. return nil, err
  31225. }
  31226. }
  31227. args["onlyPublished"] = arg0
  31228. var arg1 *int
  31229. if tmp, ok := rawArgs["first"]; ok {
  31230. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  31231. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31232. if err != nil {
  31233. return nil, err
  31234. }
  31235. }
  31236. args["first"] = arg1
  31237. var arg2 *string
  31238. if tmp, ok := rawArgs["after"]; ok {
  31239. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  31240. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31241. if err != nil {
  31242. return nil, err
  31243. }
  31244. }
  31245. args["after"] = arg2
  31246. var arg3 *int
  31247. if tmp, ok := rawArgs["last"]; ok {
  31248. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  31249. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31250. if err != nil {
  31251. return nil, err
  31252. }
  31253. }
  31254. args["last"] = arg3
  31255. var arg4 *string
  31256. if tmp, ok := rawArgs["before"]; ok {
  31257. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  31258. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31259. if err != nil {
  31260. return nil, err
  31261. }
  31262. }
  31263. args["before"] = arg4
  31264. var arg5 *bool
  31265. if tmp, ok := rawArgs["reverse"]; ok {
  31266. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  31267. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  31268. if err != nil {
  31269. return nil, err
  31270. }
  31271. }
  31272. args["reverse"] = arg5
  31273. return args, nil
  31274. }
  31275. func (ec *executionContext) field_Product_resourcePublications_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31276. var err error
  31277. args := map[string]interface{}{}
  31278. var arg0 *bool
  31279. if tmp, ok := rawArgs["onlyPublished"]; ok {
  31280. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onlyPublished"))
  31281. arg0, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  31282. if err != nil {
  31283. return nil, err
  31284. }
  31285. }
  31286. args["onlyPublished"] = arg0
  31287. var arg1 *int
  31288. if tmp, ok := rawArgs["first"]; ok {
  31289. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  31290. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31291. if err != nil {
  31292. return nil, err
  31293. }
  31294. }
  31295. args["first"] = arg1
  31296. var arg2 *string
  31297. if tmp, ok := rawArgs["after"]; ok {
  31298. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  31299. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31300. if err != nil {
  31301. return nil, err
  31302. }
  31303. }
  31304. args["after"] = arg2
  31305. var arg3 *int
  31306. if tmp, ok := rawArgs["last"]; ok {
  31307. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  31308. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31309. if err != nil {
  31310. return nil, err
  31311. }
  31312. }
  31313. args["last"] = arg3
  31314. var arg4 *string
  31315. if tmp, ok := rawArgs["before"]; ok {
  31316. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  31317. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31318. if err != nil {
  31319. return nil, err
  31320. }
  31321. }
  31322. args["before"] = arg4
  31323. var arg5 *bool
  31324. if tmp, ok := rawArgs["reverse"]; ok {
  31325. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  31326. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  31327. if err != nil {
  31328. return nil, err
  31329. }
  31330. }
  31331. args["reverse"] = arg5
  31332. return args, nil
  31333. }
  31334. func (ec *executionContext) field_Product_sellingPlanGroups_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31335. var err error
  31336. args := map[string]interface{}{}
  31337. var arg0 *int
  31338. if tmp, ok := rawArgs["first"]; ok {
  31339. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  31340. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31341. if err != nil {
  31342. return nil, err
  31343. }
  31344. }
  31345. args["first"] = arg0
  31346. var arg1 *string
  31347. if tmp, ok := rawArgs["after"]; ok {
  31348. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  31349. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31350. if err != nil {
  31351. return nil, err
  31352. }
  31353. }
  31354. args["after"] = arg1
  31355. var arg2 *int
  31356. if tmp, ok := rawArgs["last"]; ok {
  31357. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  31358. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31359. if err != nil {
  31360. return nil, err
  31361. }
  31362. }
  31363. args["last"] = arg2
  31364. var arg3 *string
  31365. if tmp, ok := rawArgs["before"]; ok {
  31366. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  31367. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31368. if err != nil {
  31369. return nil, err
  31370. }
  31371. }
  31372. args["before"] = arg3
  31373. var arg4 *bool
  31374. if tmp, ok := rawArgs["reverse"]; ok {
  31375. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  31376. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  31377. if err != nil {
  31378. return nil, err
  31379. }
  31380. }
  31381. args["reverse"] = arg4
  31382. return args, nil
  31383. }
  31384. func (ec *executionContext) field_Product_translations_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31385. var err error
  31386. args := map[string]interface{}{}
  31387. var arg0 string
  31388. if tmp, ok := rawArgs["locale"]; ok {
  31389. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("locale"))
  31390. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  31391. if err != nil {
  31392. return nil, err
  31393. }
  31394. }
  31395. args["locale"] = arg0
  31396. var arg1 *string
  31397. if tmp, ok := rawArgs["marketId"]; ok {
  31398. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("marketId"))
  31399. arg1, err = ec.unmarshalOID2ᚖstring(ctx, tmp)
  31400. if err != nil {
  31401. return nil, err
  31402. }
  31403. }
  31404. args["marketId"] = arg1
  31405. return args, nil
  31406. }
  31407. func (ec *executionContext) field_Product_unpublishedPublications_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31408. var err error
  31409. args := map[string]interface{}{}
  31410. var arg0 *int
  31411. if tmp, ok := rawArgs["first"]; ok {
  31412. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  31413. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31414. if err != nil {
  31415. return nil, err
  31416. }
  31417. }
  31418. args["first"] = arg0
  31419. var arg1 *string
  31420. if tmp, ok := rawArgs["after"]; ok {
  31421. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  31422. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31423. if err != nil {
  31424. return nil, err
  31425. }
  31426. }
  31427. args["after"] = arg1
  31428. var arg2 *int
  31429. if tmp, ok := rawArgs["last"]; ok {
  31430. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  31431. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31432. if err != nil {
  31433. return nil, err
  31434. }
  31435. }
  31436. args["last"] = arg2
  31437. var arg3 *string
  31438. if tmp, ok := rawArgs["before"]; ok {
  31439. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  31440. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31441. if err != nil {
  31442. return nil, err
  31443. }
  31444. }
  31445. args["before"] = arg3
  31446. var arg4 *bool
  31447. if tmp, ok := rawArgs["reverse"]; ok {
  31448. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  31449. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  31450. if err != nil {
  31451. return nil, err
  31452. }
  31453. }
  31454. args["reverse"] = arg4
  31455. return args, nil
  31456. }
  31457. func (ec *executionContext) field_Product_variants_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31458. var err error
  31459. args := map[string]interface{}{}
  31460. var arg0 *int
  31461. if tmp, ok := rawArgs["first"]; ok {
  31462. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  31463. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31464. if err != nil {
  31465. return nil, err
  31466. }
  31467. }
  31468. args["first"] = arg0
  31469. var arg1 *string
  31470. if tmp, ok := rawArgs["after"]; ok {
  31471. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  31472. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31473. if err != nil {
  31474. return nil, err
  31475. }
  31476. }
  31477. args["after"] = arg1
  31478. var arg2 *int
  31479. if tmp, ok := rawArgs["last"]; ok {
  31480. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  31481. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31482. if err != nil {
  31483. return nil, err
  31484. }
  31485. }
  31486. args["last"] = arg2
  31487. var arg3 *string
  31488. if tmp, ok := rawArgs["before"]; ok {
  31489. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  31490. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31491. if err != nil {
  31492. return nil, err
  31493. }
  31494. }
  31495. args["before"] = arg3
  31496. var arg4 *bool
  31497. if tmp, ok := rawArgs["reverse"]; ok {
  31498. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  31499. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  31500. if err != nil {
  31501. return nil, err
  31502. }
  31503. }
  31504. args["reverse"] = arg4
  31505. var arg5 *ProductVariantSortKeys
  31506. if tmp, ok := rawArgs["sortKey"]; ok {
  31507. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  31508. arg5, err = ec.unmarshalOProductVariantSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantSortKeys(ctx, tmp)
  31509. if err != nil {
  31510. return nil, err
  31511. }
  31512. }
  31513. args["sortKey"] = arg5
  31514. return args, nil
  31515. }
  31516. func (ec *executionContext) field_Publication_collectionPublicationsV3_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31517. var err error
  31518. args := map[string]interface{}{}
  31519. var arg0 *int
  31520. if tmp, ok := rawArgs["first"]; ok {
  31521. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  31522. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31523. if err != nil {
  31524. return nil, err
  31525. }
  31526. }
  31527. args["first"] = arg0
  31528. var arg1 *string
  31529. if tmp, ok := rawArgs["after"]; ok {
  31530. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  31531. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31532. if err != nil {
  31533. return nil, err
  31534. }
  31535. }
  31536. args["after"] = arg1
  31537. var arg2 *int
  31538. if tmp, ok := rawArgs["last"]; ok {
  31539. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  31540. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31541. if err != nil {
  31542. return nil, err
  31543. }
  31544. }
  31545. args["last"] = arg2
  31546. var arg3 *string
  31547. if tmp, ok := rawArgs["before"]; ok {
  31548. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  31549. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31550. if err != nil {
  31551. return nil, err
  31552. }
  31553. }
  31554. args["before"] = arg3
  31555. var arg4 *bool
  31556. if tmp, ok := rawArgs["reverse"]; ok {
  31557. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  31558. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  31559. if err != nil {
  31560. return nil, err
  31561. }
  31562. }
  31563. args["reverse"] = arg4
  31564. return args, nil
  31565. }
  31566. func (ec *executionContext) field_Publication_collections_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31567. var err error
  31568. args := map[string]interface{}{}
  31569. var arg0 *int
  31570. if tmp, ok := rawArgs["first"]; ok {
  31571. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  31572. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31573. if err != nil {
  31574. return nil, err
  31575. }
  31576. }
  31577. args["first"] = arg0
  31578. var arg1 *string
  31579. if tmp, ok := rawArgs["after"]; ok {
  31580. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  31581. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31582. if err != nil {
  31583. return nil, err
  31584. }
  31585. }
  31586. args["after"] = arg1
  31587. var arg2 *int
  31588. if tmp, ok := rawArgs["last"]; ok {
  31589. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  31590. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31591. if err != nil {
  31592. return nil, err
  31593. }
  31594. }
  31595. args["last"] = arg2
  31596. var arg3 *string
  31597. if tmp, ok := rawArgs["before"]; ok {
  31598. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  31599. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31600. if err != nil {
  31601. return nil, err
  31602. }
  31603. }
  31604. args["before"] = arg3
  31605. var arg4 *bool
  31606. if tmp, ok := rawArgs["reverse"]; ok {
  31607. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  31608. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  31609. if err != nil {
  31610. return nil, err
  31611. }
  31612. }
  31613. args["reverse"] = arg4
  31614. return args, nil
  31615. }
  31616. func (ec *executionContext) field_Publication_hasCollection_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31617. var err error
  31618. args := map[string]interface{}{}
  31619. var arg0 string
  31620. if tmp, ok := rawArgs["id"]; ok {
  31621. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
  31622. arg0, err = ec.unmarshalNID2string(ctx, tmp)
  31623. if err != nil {
  31624. return nil, err
  31625. }
  31626. }
  31627. args["id"] = arg0
  31628. return args, nil
  31629. }
  31630. func (ec *executionContext) field_Publication_productPublicationsV3_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31631. var err error
  31632. args := map[string]interface{}{}
  31633. var arg0 *int
  31634. if tmp, ok := rawArgs["first"]; ok {
  31635. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  31636. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31637. if err != nil {
  31638. return nil, err
  31639. }
  31640. }
  31641. args["first"] = arg0
  31642. var arg1 *string
  31643. if tmp, ok := rawArgs["after"]; ok {
  31644. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  31645. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31646. if err != nil {
  31647. return nil, err
  31648. }
  31649. }
  31650. args["after"] = arg1
  31651. var arg2 *int
  31652. if tmp, ok := rawArgs["last"]; ok {
  31653. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  31654. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31655. if err != nil {
  31656. return nil, err
  31657. }
  31658. }
  31659. args["last"] = arg2
  31660. var arg3 *string
  31661. if tmp, ok := rawArgs["before"]; ok {
  31662. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  31663. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31664. if err != nil {
  31665. return nil, err
  31666. }
  31667. }
  31668. args["before"] = arg3
  31669. var arg4 *bool
  31670. if tmp, ok := rawArgs["reverse"]; ok {
  31671. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  31672. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  31673. if err != nil {
  31674. return nil, err
  31675. }
  31676. }
  31677. args["reverse"] = arg4
  31678. return args, nil
  31679. }
  31680. func (ec *executionContext) field_Publication_products_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31681. var err error
  31682. args := map[string]interface{}{}
  31683. var arg0 *int
  31684. if tmp, ok := rawArgs["first"]; ok {
  31685. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  31686. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31687. if err != nil {
  31688. return nil, err
  31689. }
  31690. }
  31691. args["first"] = arg0
  31692. var arg1 *string
  31693. if tmp, ok := rawArgs["after"]; ok {
  31694. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  31695. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31696. if err != nil {
  31697. return nil, err
  31698. }
  31699. }
  31700. args["after"] = arg1
  31701. var arg2 *int
  31702. if tmp, ok := rawArgs["last"]; ok {
  31703. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  31704. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31705. if err != nil {
  31706. return nil, err
  31707. }
  31708. }
  31709. args["last"] = arg2
  31710. var arg3 *string
  31711. if tmp, ok := rawArgs["before"]; ok {
  31712. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  31713. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31714. if err != nil {
  31715. return nil, err
  31716. }
  31717. }
  31718. args["before"] = arg3
  31719. var arg4 *bool
  31720. if tmp, ok := rawArgs["reverse"]; ok {
  31721. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  31722. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  31723. if err != nil {
  31724. return nil, err
  31725. }
  31726. }
  31727. args["reverse"] = arg4
  31728. return args, nil
  31729. }
  31730. func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31731. var err error
  31732. args := map[string]interface{}{}
  31733. var arg0 string
  31734. if tmp, ok := rawArgs["name"]; ok {
  31735. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
  31736. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  31737. if err != nil {
  31738. return nil, err
  31739. }
  31740. }
  31741. args["name"] = arg0
  31742. return args, nil
  31743. }
  31744. func (ec *executionContext) field_Query__entities_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31745. var err error
  31746. args := map[string]interface{}{}
  31747. var arg0 []map[string]interface{}
  31748. if tmp, ok := rawArgs["representations"]; ok {
  31749. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("representations"))
  31750. arg0, err = ec.unmarshalN_Any2ᚕmapᚄ(ctx, tmp)
  31751. if err != nil {
  31752. return nil, err
  31753. }
  31754. }
  31755. args["representations"] = arg0
  31756. return args, nil
  31757. }
  31758. func (ec *executionContext) field_Query_customer_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31759. var err error
  31760. args := map[string]interface{}{}
  31761. var arg0 string
  31762. if tmp, ok := rawArgs["id"]; ok {
  31763. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
  31764. arg0, err = ec.unmarshalNID2string(ctx, tmp)
  31765. if err != nil {
  31766. return nil, err
  31767. }
  31768. }
  31769. args["id"] = arg0
  31770. return args, nil
  31771. }
  31772. func (ec *executionContext) field_Refund_refundLineItems_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31773. var err error
  31774. args := map[string]interface{}{}
  31775. var arg0 *int
  31776. if tmp, ok := rawArgs["first"]; ok {
  31777. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  31778. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31779. if err != nil {
  31780. return nil, err
  31781. }
  31782. }
  31783. args["first"] = arg0
  31784. var arg1 *string
  31785. if tmp, ok := rawArgs["after"]; ok {
  31786. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  31787. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31788. if err != nil {
  31789. return nil, err
  31790. }
  31791. }
  31792. args["after"] = arg1
  31793. var arg2 *int
  31794. if tmp, ok := rawArgs["last"]; ok {
  31795. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  31796. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31797. if err != nil {
  31798. return nil, err
  31799. }
  31800. }
  31801. args["last"] = arg2
  31802. var arg3 *string
  31803. if tmp, ok := rawArgs["before"]; ok {
  31804. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  31805. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31806. if err != nil {
  31807. return nil, err
  31808. }
  31809. }
  31810. args["before"] = arg3
  31811. var arg4 *bool
  31812. if tmp, ok := rawArgs["reverse"]; ok {
  31813. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  31814. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  31815. if err != nil {
  31816. return nil, err
  31817. }
  31818. }
  31819. args["reverse"] = arg4
  31820. return args, nil
  31821. }
  31822. func (ec *executionContext) field_Refund_transactions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31823. var err error
  31824. args := map[string]interface{}{}
  31825. var arg0 *int
  31826. if tmp, ok := rawArgs["first"]; ok {
  31827. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  31828. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31829. if err != nil {
  31830. return nil, err
  31831. }
  31832. }
  31833. args["first"] = arg0
  31834. var arg1 *string
  31835. if tmp, ok := rawArgs["after"]; ok {
  31836. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  31837. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31838. if err != nil {
  31839. return nil, err
  31840. }
  31841. }
  31842. args["after"] = arg1
  31843. var arg2 *int
  31844. if tmp, ok := rawArgs["last"]; ok {
  31845. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  31846. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31847. if err != nil {
  31848. return nil, err
  31849. }
  31850. }
  31851. args["last"] = arg2
  31852. var arg3 *string
  31853. if tmp, ok := rawArgs["before"]; ok {
  31854. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  31855. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31856. if err != nil {
  31857. return nil, err
  31858. }
  31859. }
  31860. args["before"] = arg3
  31861. var arg4 *bool
  31862. if tmp, ok := rawArgs["reverse"]; ok {
  31863. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  31864. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  31865. if err != nil {
  31866. return nil, err
  31867. }
  31868. }
  31869. args["reverse"] = arg4
  31870. return args, nil
  31871. }
  31872. func (ec *executionContext) field_SellingPlanGroup_appliesToProductVariant_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31873. var err error
  31874. args := map[string]interface{}{}
  31875. var arg0 string
  31876. if tmp, ok := rawArgs["productVariantId"]; ok {
  31877. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("productVariantId"))
  31878. arg0, err = ec.unmarshalNID2string(ctx, tmp)
  31879. if err != nil {
  31880. return nil, err
  31881. }
  31882. }
  31883. args["productVariantId"] = arg0
  31884. return args, nil
  31885. }
  31886. func (ec *executionContext) field_SellingPlanGroup_appliesToProductVariants_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31887. var err error
  31888. args := map[string]interface{}{}
  31889. var arg0 string
  31890. if tmp, ok := rawArgs["productId"]; ok {
  31891. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("productId"))
  31892. arg0, err = ec.unmarshalNID2string(ctx, tmp)
  31893. if err != nil {
  31894. return nil, err
  31895. }
  31896. }
  31897. args["productId"] = arg0
  31898. return args, nil
  31899. }
  31900. func (ec *executionContext) field_SellingPlanGroup_appliesToProduct_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31901. var err error
  31902. args := map[string]interface{}{}
  31903. var arg0 string
  31904. if tmp, ok := rawArgs["productId"]; ok {
  31905. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("productId"))
  31906. arg0, err = ec.unmarshalNID2string(ctx, tmp)
  31907. if err != nil {
  31908. return nil, err
  31909. }
  31910. }
  31911. args["productId"] = arg0
  31912. return args, nil
  31913. }
  31914. func (ec *executionContext) field_SellingPlanGroup_productVariantCount_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31915. var err error
  31916. args := map[string]interface{}{}
  31917. var arg0 *string
  31918. if tmp, ok := rawArgs["productId"]; ok {
  31919. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("productId"))
  31920. arg0, err = ec.unmarshalOID2ᚖstring(ctx, tmp)
  31921. if err != nil {
  31922. return nil, err
  31923. }
  31924. }
  31925. args["productId"] = arg0
  31926. return args, nil
  31927. }
  31928. func (ec *executionContext) field_SellingPlanGroup_productVariants_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31929. var err error
  31930. args := map[string]interface{}{}
  31931. var arg0 *string
  31932. if tmp, ok := rawArgs["productId"]; ok {
  31933. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("productId"))
  31934. arg0, err = ec.unmarshalOID2ᚖstring(ctx, tmp)
  31935. if err != nil {
  31936. return nil, err
  31937. }
  31938. }
  31939. args["productId"] = arg0
  31940. var arg1 *int
  31941. if tmp, ok := rawArgs["first"]; ok {
  31942. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  31943. arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31944. if err != nil {
  31945. return nil, err
  31946. }
  31947. }
  31948. args["first"] = arg1
  31949. var arg2 *string
  31950. if tmp, ok := rawArgs["after"]; ok {
  31951. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  31952. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31953. if err != nil {
  31954. return nil, err
  31955. }
  31956. }
  31957. args["after"] = arg2
  31958. var arg3 *int
  31959. if tmp, ok := rawArgs["last"]; ok {
  31960. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  31961. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31962. if err != nil {
  31963. return nil, err
  31964. }
  31965. }
  31966. args["last"] = arg3
  31967. var arg4 *string
  31968. if tmp, ok := rawArgs["before"]; ok {
  31969. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  31970. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  31971. if err != nil {
  31972. return nil, err
  31973. }
  31974. }
  31975. args["before"] = arg4
  31976. var arg5 *bool
  31977. if tmp, ok := rawArgs["reverse"]; ok {
  31978. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  31979. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  31980. if err != nil {
  31981. return nil, err
  31982. }
  31983. }
  31984. args["reverse"] = arg5
  31985. return args, nil
  31986. }
  31987. func (ec *executionContext) field_SellingPlanGroup_products_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  31988. var err error
  31989. args := map[string]interface{}{}
  31990. var arg0 *int
  31991. if tmp, ok := rawArgs["first"]; ok {
  31992. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  31993. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  31994. if err != nil {
  31995. return nil, err
  31996. }
  31997. }
  31998. args["first"] = arg0
  31999. var arg1 *string
  32000. if tmp, ok := rawArgs["after"]; ok {
  32001. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  32002. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32003. if err != nil {
  32004. return nil, err
  32005. }
  32006. }
  32007. args["after"] = arg1
  32008. var arg2 *int
  32009. if tmp, ok := rawArgs["last"]; ok {
  32010. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  32011. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  32012. if err != nil {
  32013. return nil, err
  32014. }
  32015. }
  32016. args["last"] = arg2
  32017. var arg3 *string
  32018. if tmp, ok := rawArgs["before"]; ok {
  32019. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  32020. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32021. if err != nil {
  32022. return nil, err
  32023. }
  32024. }
  32025. args["before"] = arg3
  32026. var arg4 *bool
  32027. if tmp, ok := rawArgs["reverse"]; ok {
  32028. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  32029. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  32030. if err != nil {
  32031. return nil, err
  32032. }
  32033. }
  32034. args["reverse"] = arg4
  32035. return args, nil
  32036. }
  32037. func (ec *executionContext) field_SellingPlanGroup_sellingPlans_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  32038. var err error
  32039. args := map[string]interface{}{}
  32040. var arg0 *int
  32041. if tmp, ok := rawArgs["first"]; ok {
  32042. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  32043. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  32044. if err != nil {
  32045. return nil, err
  32046. }
  32047. }
  32048. args["first"] = arg0
  32049. var arg1 *string
  32050. if tmp, ok := rawArgs["after"]; ok {
  32051. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  32052. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32053. if err != nil {
  32054. return nil, err
  32055. }
  32056. }
  32057. args["after"] = arg1
  32058. var arg2 *int
  32059. if tmp, ok := rawArgs["last"]; ok {
  32060. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  32061. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  32062. if err != nil {
  32063. return nil, err
  32064. }
  32065. }
  32066. args["last"] = arg2
  32067. var arg3 *string
  32068. if tmp, ok := rawArgs["before"]; ok {
  32069. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  32070. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32071. if err != nil {
  32072. return nil, err
  32073. }
  32074. }
  32075. args["before"] = arg3
  32076. var arg4 *bool
  32077. if tmp, ok := rawArgs["reverse"]; ok {
  32078. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  32079. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  32080. if err != nil {
  32081. return nil, err
  32082. }
  32083. }
  32084. args["reverse"] = arg4
  32085. return args, nil
  32086. }
  32087. func (ec *executionContext) field_ShopPolicy_translations_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  32088. var err error
  32089. args := map[string]interface{}{}
  32090. var arg0 string
  32091. if tmp, ok := rawArgs["locale"]; ok {
  32092. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("locale"))
  32093. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  32094. if err != nil {
  32095. return nil, err
  32096. }
  32097. }
  32098. args["locale"] = arg0
  32099. var arg1 *string
  32100. if tmp, ok := rawArgs["marketId"]; ok {
  32101. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("marketId"))
  32102. arg1, err = ec.unmarshalOID2ᚖstring(ctx, tmp)
  32103. if err != nil {
  32104. return nil, err
  32105. }
  32106. }
  32107. args["marketId"] = arg1
  32108. return args, nil
  32109. }
  32110. func (ec *executionContext) field_Shop_assignedFulfillmentOrders_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  32111. var err error
  32112. args := map[string]interface{}{}
  32113. var arg0 *string
  32114. if tmp, ok := rawArgs["after"]; ok {
  32115. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  32116. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32117. if err != nil {
  32118. return nil, err
  32119. }
  32120. }
  32121. args["after"] = arg0
  32122. var arg1 *FulfillmentOrderAssignmentStatus
  32123. if tmp, ok := rawArgs["assignmentStatus"]; ok {
  32124. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("assignmentStatus"))
  32125. arg1, err = ec.unmarshalOFulfillmentOrderAssignmentStatus2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderAssignmentStatus(ctx, tmp)
  32126. if err != nil {
  32127. return nil, err
  32128. }
  32129. }
  32130. args["assignmentStatus"] = arg1
  32131. var arg2 *string
  32132. if tmp, ok := rawArgs["before"]; ok {
  32133. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  32134. arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32135. if err != nil {
  32136. return nil, err
  32137. }
  32138. }
  32139. args["before"] = arg2
  32140. var arg3 *int
  32141. if tmp, ok := rawArgs["first"]; ok {
  32142. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  32143. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  32144. if err != nil {
  32145. return nil, err
  32146. }
  32147. }
  32148. args["first"] = arg3
  32149. var arg4 *int
  32150. if tmp, ok := rawArgs["last"]; ok {
  32151. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  32152. arg4, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  32153. if err != nil {
  32154. return nil, err
  32155. }
  32156. }
  32157. args["last"] = arg4
  32158. var arg5 []string
  32159. if tmp, ok := rawArgs["locationIds"]; ok {
  32160. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("locationIds"))
  32161. arg5, err = ec.unmarshalOID2ᚕstringᚄ(ctx, tmp)
  32162. if err != nil {
  32163. return nil, err
  32164. }
  32165. }
  32166. args["locationIds"] = arg5
  32167. var arg6 *bool
  32168. if tmp, ok := rawArgs["reverse"]; ok {
  32169. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  32170. arg6, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  32171. if err != nil {
  32172. return nil, err
  32173. }
  32174. }
  32175. args["reverse"] = arg6
  32176. var arg7 *FulfillmentOrderSortKeys
  32177. if tmp, ok := rawArgs["sortKey"]; ok {
  32178. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  32179. arg7, err = ec.unmarshalOFulfillmentOrderSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderSortKeys(ctx, tmp)
  32180. if err != nil {
  32181. return nil, err
  32182. }
  32183. }
  32184. args["sortKey"] = arg7
  32185. return args, nil
  32186. }
  32187. func (ec *executionContext) field_Shop_availableChannelApps_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  32188. var err error
  32189. args := map[string]interface{}{}
  32190. var arg0 *string
  32191. if tmp, ok := rawArgs["after"]; ok {
  32192. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  32193. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32194. if err != nil {
  32195. return nil, err
  32196. }
  32197. }
  32198. args["after"] = arg0
  32199. var arg1 *string
  32200. if tmp, ok := rawArgs["before"]; ok {
  32201. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  32202. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32203. if err != nil {
  32204. return nil, err
  32205. }
  32206. }
  32207. args["before"] = arg1
  32208. var arg2 *int
  32209. if tmp, ok := rawArgs["first"]; ok {
  32210. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  32211. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  32212. if err != nil {
  32213. return nil, err
  32214. }
  32215. }
  32216. args["first"] = arg2
  32217. var arg3 *int
  32218. if tmp, ok := rawArgs["last"]; ok {
  32219. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  32220. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  32221. if err != nil {
  32222. return nil, err
  32223. }
  32224. }
  32225. args["last"] = arg3
  32226. var arg4 *bool
  32227. if tmp, ok := rawArgs["reverse"]; ok {
  32228. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  32229. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  32230. if err != nil {
  32231. return nil, err
  32232. }
  32233. }
  32234. args["reverse"] = arg4
  32235. return args, nil
  32236. }
  32237. func (ec *executionContext) field_Shop_currencySettings_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  32238. var err error
  32239. args := map[string]interface{}{}
  32240. var arg0 *string
  32241. if tmp, ok := rawArgs["after"]; ok {
  32242. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  32243. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32244. if err != nil {
  32245. return nil, err
  32246. }
  32247. }
  32248. args["after"] = arg0
  32249. var arg1 *string
  32250. if tmp, ok := rawArgs["before"]; ok {
  32251. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  32252. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32253. if err != nil {
  32254. return nil, err
  32255. }
  32256. }
  32257. args["before"] = arg1
  32258. var arg2 *int
  32259. if tmp, ok := rawArgs["first"]; ok {
  32260. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  32261. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  32262. if err != nil {
  32263. return nil, err
  32264. }
  32265. }
  32266. args["first"] = arg2
  32267. var arg3 *int
  32268. if tmp, ok := rawArgs["last"]; ok {
  32269. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  32270. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  32271. if err != nil {
  32272. return nil, err
  32273. }
  32274. }
  32275. args["last"] = arg3
  32276. var arg4 *bool
  32277. if tmp, ok := rawArgs["reverse"]; ok {
  32278. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  32279. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  32280. if err != nil {
  32281. return nil, err
  32282. }
  32283. }
  32284. args["reverse"] = arg4
  32285. return args, nil
  32286. }
  32287. func (ec *executionContext) field_Shop_customerTags_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  32288. var err error
  32289. args := map[string]interface{}{}
  32290. var arg0 int
  32291. if tmp, ok := rawArgs["first"]; ok {
  32292. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  32293. arg0, err = ec.unmarshalNInt2int(ctx, tmp)
  32294. if err != nil {
  32295. return nil, err
  32296. }
  32297. }
  32298. args["first"] = arg0
  32299. return args, nil
  32300. }
  32301. func (ec *executionContext) field_Shop_draftOrderTags_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  32302. var err error
  32303. args := map[string]interface{}{}
  32304. var arg0 int
  32305. if tmp, ok := rawArgs["first"]; ok {
  32306. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  32307. arg0, err = ec.unmarshalNInt2int(ctx, tmp)
  32308. if err != nil {
  32309. return nil, err
  32310. }
  32311. }
  32312. args["first"] = arg0
  32313. return args, nil
  32314. }
  32315. func (ec *executionContext) field_Shop_metafield_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  32316. var err error
  32317. args := map[string]interface{}{}
  32318. var arg0 string
  32319. if tmp, ok := rawArgs["key"]; ok {
  32320. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key"))
  32321. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  32322. if err != nil {
  32323. return nil, err
  32324. }
  32325. }
  32326. args["key"] = arg0
  32327. var arg1 string
  32328. if tmp, ok := rawArgs["namespace"]; ok {
  32329. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  32330. arg1, err = ec.unmarshalNString2string(ctx, tmp)
  32331. if err != nil {
  32332. return nil, err
  32333. }
  32334. }
  32335. args["namespace"] = arg1
  32336. return args, nil
  32337. }
  32338. func (ec *executionContext) field_Shop_metafields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  32339. var err error
  32340. args := map[string]interface{}{}
  32341. var arg0 *string
  32342. if tmp, ok := rawArgs["after"]; ok {
  32343. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  32344. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32345. if err != nil {
  32346. return nil, err
  32347. }
  32348. }
  32349. args["after"] = arg0
  32350. var arg1 *string
  32351. if tmp, ok := rawArgs["before"]; ok {
  32352. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  32353. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32354. if err != nil {
  32355. return nil, err
  32356. }
  32357. }
  32358. args["before"] = arg1
  32359. var arg2 *int
  32360. if tmp, ok := rawArgs["first"]; ok {
  32361. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  32362. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  32363. if err != nil {
  32364. return nil, err
  32365. }
  32366. }
  32367. args["first"] = arg2
  32368. var arg3 *int
  32369. if tmp, ok := rawArgs["last"]; ok {
  32370. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  32371. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  32372. if err != nil {
  32373. return nil, err
  32374. }
  32375. }
  32376. args["last"] = arg3
  32377. var arg4 *string
  32378. if tmp, ok := rawArgs["namespace"]; ok {
  32379. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  32380. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32381. if err != nil {
  32382. return nil, err
  32383. }
  32384. }
  32385. args["namespace"] = arg4
  32386. var arg5 *bool
  32387. if tmp, ok := rawArgs["reverse"]; ok {
  32388. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  32389. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  32390. if err != nil {
  32391. return nil, err
  32392. }
  32393. }
  32394. args["reverse"] = arg5
  32395. return args, nil
  32396. }
  32397. func (ec *executionContext) field_Shop_orderTags_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  32398. var err error
  32399. args := map[string]interface{}{}
  32400. var arg0 int
  32401. if tmp, ok := rawArgs["first"]; ok {
  32402. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  32403. arg0, err = ec.unmarshalNInt2int(ctx, tmp)
  32404. if err != nil {
  32405. return nil, err
  32406. }
  32407. }
  32408. args["first"] = arg0
  32409. var arg1 *ShopTagSort
  32410. if tmp, ok := rawArgs["sort"]; ok {
  32411. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sort"))
  32412. arg1, err = ec.unmarshalOShopTagSort2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopTagSort(ctx, tmp)
  32413. if err != nil {
  32414. return nil, err
  32415. }
  32416. }
  32417. args["sort"] = arg1
  32418. return args, nil
  32419. }
  32420. func (ec *executionContext) field_Shop_privateMetafield_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  32421. var err error
  32422. args := map[string]interface{}{}
  32423. var arg0 string
  32424. if tmp, ok := rawArgs["key"]; ok {
  32425. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key"))
  32426. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  32427. if err != nil {
  32428. return nil, err
  32429. }
  32430. }
  32431. args["key"] = arg0
  32432. var arg1 string
  32433. if tmp, ok := rawArgs["namespace"]; ok {
  32434. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  32435. arg1, err = ec.unmarshalNString2string(ctx, tmp)
  32436. if err != nil {
  32437. return nil, err
  32438. }
  32439. }
  32440. args["namespace"] = arg1
  32441. return args, nil
  32442. }
  32443. func (ec *executionContext) field_Shop_privateMetafields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  32444. var err error
  32445. args := map[string]interface{}{}
  32446. var arg0 *string
  32447. if tmp, ok := rawArgs["after"]; ok {
  32448. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  32449. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32450. if err != nil {
  32451. return nil, err
  32452. }
  32453. }
  32454. args["after"] = arg0
  32455. var arg1 *string
  32456. if tmp, ok := rawArgs["before"]; ok {
  32457. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  32458. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32459. if err != nil {
  32460. return nil, err
  32461. }
  32462. }
  32463. args["before"] = arg1
  32464. var arg2 *int
  32465. if tmp, ok := rawArgs["first"]; ok {
  32466. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  32467. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  32468. if err != nil {
  32469. return nil, err
  32470. }
  32471. }
  32472. args["first"] = arg2
  32473. var arg3 *int
  32474. if tmp, ok := rawArgs["last"]; ok {
  32475. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  32476. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  32477. if err != nil {
  32478. return nil, err
  32479. }
  32480. }
  32481. args["last"] = arg3
  32482. var arg4 *string
  32483. if tmp, ok := rawArgs["namespace"]; ok {
  32484. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  32485. arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32486. if err != nil {
  32487. return nil, err
  32488. }
  32489. }
  32490. args["namespace"] = arg4
  32491. var arg5 *bool
  32492. if tmp, ok := rawArgs["reverse"]; ok {
  32493. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  32494. arg5, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  32495. if err != nil {
  32496. return nil, err
  32497. }
  32498. }
  32499. args["reverse"] = arg5
  32500. return args, nil
  32501. }
  32502. func (ec *executionContext) field_Shop_productImages_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  32503. var err error
  32504. args := map[string]interface{}{}
  32505. var arg0 *string
  32506. if tmp, ok := rawArgs["after"]; ok {
  32507. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  32508. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32509. if err != nil {
  32510. return nil, err
  32511. }
  32512. }
  32513. args["after"] = arg0
  32514. var arg1 *string
  32515. if tmp, ok := rawArgs["before"]; ok {
  32516. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  32517. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32518. if err != nil {
  32519. return nil, err
  32520. }
  32521. }
  32522. args["before"] = arg1
  32523. var arg2 *int
  32524. if tmp, ok := rawArgs["first"]; ok {
  32525. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  32526. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  32527. if err != nil {
  32528. return nil, err
  32529. }
  32530. }
  32531. args["first"] = arg2
  32532. var arg3 *int
  32533. if tmp, ok := rawArgs["last"]; ok {
  32534. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  32535. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  32536. if err != nil {
  32537. return nil, err
  32538. }
  32539. }
  32540. args["last"] = arg3
  32541. var arg4 *bool
  32542. if tmp, ok := rawArgs["reverse"]; ok {
  32543. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  32544. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  32545. if err != nil {
  32546. return nil, err
  32547. }
  32548. }
  32549. args["reverse"] = arg4
  32550. var arg5 *ProductImageSortKeys
  32551. if tmp, ok := rawArgs["sortKey"]; ok {
  32552. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortKey"))
  32553. arg5, err = ec.unmarshalOProductImageSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductImageSortKeys(ctx, tmp)
  32554. if err != nil {
  32555. return nil, err
  32556. }
  32557. }
  32558. args["sortKey"] = arg5
  32559. return args, nil
  32560. }
  32561. func (ec *executionContext) field_Shop_productTags_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  32562. var err error
  32563. args := map[string]interface{}{}
  32564. var arg0 int
  32565. if tmp, ok := rawArgs["first"]; ok {
  32566. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  32567. arg0, err = ec.unmarshalNInt2int(ctx, tmp)
  32568. if err != nil {
  32569. return nil, err
  32570. }
  32571. }
  32572. args["first"] = arg0
  32573. return args, nil
  32574. }
  32575. func (ec *executionContext) field_Shop_productTypes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  32576. var err error
  32577. args := map[string]interface{}{}
  32578. var arg0 int
  32579. if tmp, ok := rawArgs["first"]; ok {
  32580. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  32581. arg0, err = ec.unmarshalNInt2int(ctx, tmp)
  32582. if err != nil {
  32583. return nil, err
  32584. }
  32585. }
  32586. args["first"] = arg0
  32587. return args, nil
  32588. }
  32589. func (ec *executionContext) field_Shop_productVendors_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  32590. var err error
  32591. args := map[string]interface{}{}
  32592. var arg0 int
  32593. if tmp, ok := rawArgs["first"]; ok {
  32594. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  32595. arg0, err = ec.unmarshalNInt2int(ctx, tmp)
  32596. if err != nil {
  32597. return nil, err
  32598. }
  32599. }
  32600. args["first"] = arg0
  32601. return args, nil
  32602. }
  32603. func (ec *executionContext) field_Shop_search_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  32604. var err error
  32605. args := map[string]interface{}{}
  32606. var arg0 *string
  32607. if tmp, ok := rawArgs["after"]; ok {
  32608. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  32609. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32610. if err != nil {
  32611. return nil, err
  32612. }
  32613. }
  32614. args["after"] = arg0
  32615. var arg1 int
  32616. if tmp, ok := rawArgs["first"]; ok {
  32617. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  32618. arg1, err = ec.unmarshalNInt2int(ctx, tmp)
  32619. if err != nil {
  32620. return nil, err
  32621. }
  32622. }
  32623. args["first"] = arg1
  32624. var arg2 string
  32625. if tmp, ok := rawArgs["query"]; ok {
  32626. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
  32627. arg2, err = ec.unmarshalNString2string(ctx, tmp)
  32628. if err != nil {
  32629. return nil, err
  32630. }
  32631. }
  32632. args["query"] = arg2
  32633. var arg3 []SearchResultType
  32634. if tmp, ok := rawArgs["types"]; ok {
  32635. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("types"))
  32636. arg3, err = ec.unmarshalOSearchResultType2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSearchResultTypeᚄ(ctx, tmp)
  32637. if err != nil {
  32638. return nil, err
  32639. }
  32640. }
  32641. args["types"] = arg3
  32642. return args, nil
  32643. }
  32644. func (ec *executionContext) field_Shop_staffMembers_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  32645. var err error
  32646. args := map[string]interface{}{}
  32647. var arg0 *string
  32648. if tmp, ok := rawArgs["after"]; ok {
  32649. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  32650. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32651. if err != nil {
  32652. return nil, err
  32653. }
  32654. }
  32655. args["after"] = arg0
  32656. var arg1 *string
  32657. if tmp, ok := rawArgs["before"]; ok {
  32658. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  32659. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32660. if err != nil {
  32661. return nil, err
  32662. }
  32663. }
  32664. args["before"] = arg1
  32665. var arg2 *int
  32666. if tmp, ok := rawArgs["first"]; ok {
  32667. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  32668. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  32669. if err != nil {
  32670. return nil, err
  32671. }
  32672. }
  32673. args["first"] = arg2
  32674. var arg3 *int
  32675. if tmp, ok := rawArgs["last"]; ok {
  32676. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  32677. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  32678. if err != nil {
  32679. return nil, err
  32680. }
  32681. }
  32682. args["last"] = arg3
  32683. var arg4 *bool
  32684. if tmp, ok := rawArgs["reverse"]; ok {
  32685. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  32686. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  32687. if err != nil {
  32688. return nil, err
  32689. }
  32690. }
  32691. args["reverse"] = arg4
  32692. return args, nil
  32693. }
  32694. func (ec *executionContext) field_Shop_storefrontAccessTokens_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  32695. var err error
  32696. args := map[string]interface{}{}
  32697. var arg0 *string
  32698. if tmp, ok := rawArgs["after"]; ok {
  32699. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  32700. arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32701. if err != nil {
  32702. return nil, err
  32703. }
  32704. }
  32705. args["after"] = arg0
  32706. var arg1 *string
  32707. if tmp, ok := rawArgs["before"]; ok {
  32708. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  32709. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32710. if err != nil {
  32711. return nil, err
  32712. }
  32713. }
  32714. args["before"] = arg1
  32715. var arg2 *int
  32716. if tmp, ok := rawArgs["first"]; ok {
  32717. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  32718. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  32719. if err != nil {
  32720. return nil, err
  32721. }
  32722. }
  32723. args["first"] = arg2
  32724. var arg3 *int
  32725. if tmp, ok := rawArgs["last"]; ok {
  32726. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  32727. arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  32728. if err != nil {
  32729. return nil, err
  32730. }
  32731. }
  32732. args["last"] = arg3
  32733. var arg4 *bool
  32734. if tmp, ok := rawArgs["reverse"]; ok {
  32735. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  32736. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  32737. if err != nil {
  32738. return nil, err
  32739. }
  32740. }
  32741. args["reverse"] = arg4
  32742. return args, nil
  32743. }
  32744. func (ec *executionContext) field_Shop_translations_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  32745. var err error
  32746. args := map[string]interface{}{}
  32747. var arg0 string
  32748. if tmp, ok := rawArgs["locale"]; ok {
  32749. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("locale"))
  32750. arg0, err = ec.unmarshalNString2string(ctx, tmp)
  32751. if err != nil {
  32752. return nil, err
  32753. }
  32754. }
  32755. args["locale"] = arg0
  32756. var arg1 *string
  32757. if tmp, ok := rawArgs["marketId"]; ok {
  32758. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("marketId"))
  32759. arg1, err = ec.unmarshalOID2ᚖstring(ctx, tmp)
  32760. if err != nil {
  32761. return nil, err
  32762. }
  32763. }
  32764. args["marketId"] = arg1
  32765. return args, nil
  32766. }
  32767. func (ec *executionContext) field_Shop_uploadedImagesByIds_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  32768. var err error
  32769. args := map[string]interface{}{}
  32770. var arg0 []string
  32771. if tmp, ok := rawArgs["imageIds"]; ok {
  32772. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("imageIds"))
  32773. arg0, err = ec.unmarshalNID2ᚕstringᚄ(ctx, tmp)
  32774. if err != nil {
  32775. return nil, err
  32776. }
  32777. }
  32778. args["imageIds"] = arg0
  32779. return args, nil
  32780. }
  32781. func (ec *executionContext) field_StaffMember_avatar_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  32782. var err error
  32783. args := map[string]interface{}{}
  32784. var arg0 *StaffMemberDefaultImage
  32785. if tmp, ok := rawArgs["fallback"]; ok {
  32786. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fallback"))
  32787. arg0, err = ec.unmarshalOStaffMemberDefaultImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStaffMemberDefaultImage(ctx, tmp)
  32788. if err != nil {
  32789. return nil, err
  32790. }
  32791. }
  32792. args["fallback"] = arg0
  32793. return args, nil
  32794. }
  32795. func (ec *executionContext) field_SubscriptionContract_billingAttempts_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  32796. var err error
  32797. args := map[string]interface{}{}
  32798. var arg0 *int
  32799. if tmp, ok := rawArgs["first"]; ok {
  32800. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  32801. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  32802. if err != nil {
  32803. return nil, err
  32804. }
  32805. }
  32806. args["first"] = arg0
  32807. var arg1 *string
  32808. if tmp, ok := rawArgs["after"]; ok {
  32809. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  32810. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32811. if err != nil {
  32812. return nil, err
  32813. }
  32814. }
  32815. args["after"] = arg1
  32816. var arg2 *int
  32817. if tmp, ok := rawArgs["last"]; ok {
  32818. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  32819. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  32820. if err != nil {
  32821. return nil, err
  32822. }
  32823. }
  32824. args["last"] = arg2
  32825. var arg3 *string
  32826. if tmp, ok := rawArgs["before"]; ok {
  32827. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  32828. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32829. if err != nil {
  32830. return nil, err
  32831. }
  32832. }
  32833. args["before"] = arg3
  32834. var arg4 *bool
  32835. if tmp, ok := rawArgs["reverse"]; ok {
  32836. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  32837. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  32838. if err != nil {
  32839. return nil, err
  32840. }
  32841. }
  32842. args["reverse"] = arg4
  32843. return args, nil
  32844. }
  32845. func (ec *executionContext) field_SubscriptionContract_customerPaymentMethod_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  32846. var err error
  32847. args := map[string]interface{}{}
  32848. var arg0 *bool
  32849. if tmp, ok := rawArgs["showRevoked"]; ok {
  32850. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("showRevoked"))
  32851. arg0, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  32852. if err != nil {
  32853. return nil, err
  32854. }
  32855. }
  32856. args["showRevoked"] = arg0
  32857. return args, nil
  32858. }
  32859. func (ec *executionContext) field_SubscriptionContract_discounts_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  32860. var err error
  32861. args := map[string]interface{}{}
  32862. var arg0 *int
  32863. if tmp, ok := rawArgs["first"]; ok {
  32864. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  32865. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  32866. if err != nil {
  32867. return nil, err
  32868. }
  32869. }
  32870. args["first"] = arg0
  32871. var arg1 *string
  32872. if tmp, ok := rawArgs["after"]; ok {
  32873. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  32874. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32875. if err != nil {
  32876. return nil, err
  32877. }
  32878. }
  32879. args["after"] = arg1
  32880. var arg2 *int
  32881. if tmp, ok := rawArgs["last"]; ok {
  32882. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  32883. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  32884. if err != nil {
  32885. return nil, err
  32886. }
  32887. }
  32888. args["last"] = arg2
  32889. var arg3 *string
  32890. if tmp, ok := rawArgs["before"]; ok {
  32891. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  32892. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32893. if err != nil {
  32894. return nil, err
  32895. }
  32896. }
  32897. args["before"] = arg3
  32898. var arg4 *bool
  32899. if tmp, ok := rawArgs["reverse"]; ok {
  32900. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  32901. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  32902. if err != nil {
  32903. return nil, err
  32904. }
  32905. }
  32906. args["reverse"] = arg4
  32907. return args, nil
  32908. }
  32909. func (ec *executionContext) field_SubscriptionContract_lines_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  32910. var err error
  32911. args := map[string]interface{}{}
  32912. var arg0 *int
  32913. if tmp, ok := rawArgs["first"]; ok {
  32914. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  32915. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  32916. if err != nil {
  32917. return nil, err
  32918. }
  32919. }
  32920. args["first"] = arg0
  32921. var arg1 *string
  32922. if tmp, ok := rawArgs["after"]; ok {
  32923. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  32924. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32925. if err != nil {
  32926. return nil, err
  32927. }
  32928. }
  32929. args["after"] = arg1
  32930. var arg2 *int
  32931. if tmp, ok := rawArgs["last"]; ok {
  32932. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  32933. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  32934. if err != nil {
  32935. return nil, err
  32936. }
  32937. }
  32938. args["last"] = arg2
  32939. var arg3 *string
  32940. if tmp, ok := rawArgs["before"]; ok {
  32941. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  32942. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32943. if err != nil {
  32944. return nil, err
  32945. }
  32946. }
  32947. args["before"] = arg3
  32948. var arg4 *bool
  32949. if tmp, ok := rawArgs["reverse"]; ok {
  32950. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  32951. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  32952. if err != nil {
  32953. return nil, err
  32954. }
  32955. }
  32956. args["reverse"] = arg4
  32957. return args, nil
  32958. }
  32959. func (ec *executionContext) field_SubscriptionContract_orders_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  32960. var err error
  32961. args := map[string]interface{}{}
  32962. var arg0 *int
  32963. if tmp, ok := rawArgs["first"]; ok {
  32964. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  32965. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  32966. if err != nil {
  32967. return nil, err
  32968. }
  32969. }
  32970. args["first"] = arg0
  32971. var arg1 *string
  32972. if tmp, ok := rawArgs["after"]; ok {
  32973. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  32974. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32975. if err != nil {
  32976. return nil, err
  32977. }
  32978. }
  32979. args["after"] = arg1
  32980. var arg2 *int
  32981. if tmp, ok := rawArgs["last"]; ok {
  32982. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  32983. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  32984. if err != nil {
  32985. return nil, err
  32986. }
  32987. }
  32988. args["last"] = arg2
  32989. var arg3 *string
  32990. if tmp, ok := rawArgs["before"]; ok {
  32991. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  32992. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  32993. if err != nil {
  32994. return nil, err
  32995. }
  32996. }
  32997. args["before"] = arg3
  32998. var arg4 *bool
  32999. if tmp, ok := rawArgs["reverse"]; ok {
  33000. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  33001. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  33002. if err != nil {
  33003. return nil, err
  33004. }
  33005. }
  33006. args["reverse"] = arg4
  33007. return args, nil
  33008. }
  33009. func (ec *executionContext) field_SubscriptionDiscountEntitledLines_lines_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  33010. var err error
  33011. args := map[string]interface{}{}
  33012. var arg0 *int
  33013. if tmp, ok := rawArgs["first"]; ok {
  33014. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
  33015. arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  33016. if err != nil {
  33017. return nil, err
  33018. }
  33019. }
  33020. args["first"] = arg0
  33021. var arg1 *string
  33022. if tmp, ok := rawArgs["after"]; ok {
  33023. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
  33024. arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  33025. if err != nil {
  33026. return nil, err
  33027. }
  33028. }
  33029. args["after"] = arg1
  33030. var arg2 *int
  33031. if tmp, ok := rawArgs["last"]; ok {
  33032. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
  33033. arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
  33034. if err != nil {
  33035. return nil, err
  33036. }
  33037. }
  33038. args["last"] = arg2
  33039. var arg3 *string
  33040. if tmp, ok := rawArgs["before"]; ok {
  33041. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
  33042. arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
  33043. if err != nil {
  33044. return nil, err
  33045. }
  33046. }
  33047. args["before"] = arg3
  33048. var arg4 *bool
  33049. if tmp, ok := rawArgs["reverse"]; ok {
  33050. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverse"))
  33051. arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
  33052. if err != nil {
  33053. return nil, err
  33054. }
  33055. }
  33056. args["reverse"] = arg4
  33057. return args, nil
  33058. }
  33059. func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  33060. var err error
  33061. args := map[string]interface{}{}
  33062. var arg0 bool
  33063. if tmp, ok := rawArgs["includeDeprecated"]; ok {
  33064. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated"))
  33065. arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp)
  33066. if err != nil {
  33067. return nil, err
  33068. }
  33069. }
  33070. args["includeDeprecated"] = arg0
  33071. return args, nil
  33072. }
  33073. func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
  33074. var err error
  33075. args := map[string]interface{}{}
  33076. var arg0 bool
  33077. if tmp, ok := rawArgs["includeDeprecated"]; ok {
  33078. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated"))
  33079. arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp)
  33080. if err != nil {
  33081. return nil, err
  33082. }
  33083. }
  33084. args["includeDeprecated"] = arg0
  33085. return args, nil
  33086. }
  33087. // endregion ***************************** args.gotpl *****************************
  33088. // region ************************** directives.gotpl **************************
  33089. func (ec *executionContext) _queryMiddleware(ctx context.Context, obj *ast.OperationDefinition, next func(ctx context.Context) (interface{}, error)) graphql.Marshaler {
  33090. for _, d := range obj.Directives {
  33091. switch d.Name {
  33092. case "inContext":
  33093. rawArgs := d.ArgumentMap(ec.Variables)
  33094. args, err := ec.dir_inContext_args(ctx, rawArgs)
  33095. if err != nil {
  33096. ec.Error(ctx, err)
  33097. return graphql.Null
  33098. }
  33099. n := next
  33100. next = func(ctx context.Context) (interface{}, error) {
  33101. if ec.directives.InContext == nil {
  33102. return nil, errors.New("directive inContext is not implemented")
  33103. }
  33104. return ec.directives.InContext(ctx, obj, n, args["language"].(*LanguageCode), args["country"].(*CountryCode))
  33105. }
  33106. }
  33107. }
  33108. tmp, err := next(ctx)
  33109. if err != nil {
  33110. ec.Error(ctx, err)
  33111. return graphql.Null
  33112. }
  33113. if data, ok := tmp.(graphql.Marshaler); ok {
  33114. return data
  33115. }
  33116. ec.Errorf(ctx, `unexpected type %T from directive, should be graphql.Marshaler`, tmp)
  33117. return graphql.Null
  33118. }
  33119. func (ec *executionContext) _mutationMiddleware(ctx context.Context, obj *ast.OperationDefinition, next func(ctx context.Context) (interface{}, error)) graphql.Marshaler {
  33120. for _, d := range obj.Directives {
  33121. switch d.Name {
  33122. case "inContext":
  33123. rawArgs := d.ArgumentMap(ec.Variables)
  33124. args, err := ec.dir_inContext_args(ctx, rawArgs)
  33125. if err != nil {
  33126. ec.Error(ctx, err)
  33127. return graphql.Null
  33128. }
  33129. n := next
  33130. next = func(ctx context.Context) (interface{}, error) {
  33131. if ec.directives.InContext == nil {
  33132. return nil, errors.New("directive inContext is not implemented")
  33133. }
  33134. return ec.directives.InContext(ctx, obj, n, args["language"].(*LanguageCode), args["country"].(*CountryCode))
  33135. }
  33136. }
  33137. }
  33138. tmp, err := next(ctx)
  33139. if err != nil {
  33140. ec.Error(ctx, err)
  33141. return graphql.Null
  33142. }
  33143. if data, ok := tmp.(graphql.Marshaler); ok {
  33144. return data
  33145. }
  33146. ec.Errorf(ctx, `unexpected type %T from directive, should be graphql.Marshaler`, tmp)
  33147. return graphql.Null
  33148. }
  33149. // endregion ************************** directives.gotpl **************************
  33150. // region **************************** field.gotpl *****************************
  33151. func (ec *executionContext) _AccessScope_description(ctx context.Context, field graphql.CollectedField, obj *AccessScope) (ret graphql.Marshaler) {
  33152. fc, err := ec.fieldContext_AccessScope_description(ctx, field)
  33153. if err != nil {
  33154. return graphql.Null
  33155. }
  33156. ctx = graphql.WithFieldContext(ctx, fc)
  33157. defer func() {
  33158. if r := recover(); r != nil {
  33159. ec.Error(ctx, ec.Recover(ctx, r))
  33160. ret = graphql.Null
  33161. }
  33162. }()
  33163. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  33164. ctx = rctx // use context from middleware stack in children
  33165. return obj.Description, nil
  33166. })
  33167. if err != nil {
  33168. ec.Error(ctx, err)
  33169. return graphql.Null
  33170. }
  33171. if resTmp == nil {
  33172. if !graphql.HasFieldError(ctx, fc) {
  33173. ec.Errorf(ctx, "must not be null")
  33174. }
  33175. return graphql.Null
  33176. }
  33177. res := resTmp.(string)
  33178. fc.Result = res
  33179. return ec.marshalNString2string(ctx, field.Selections, res)
  33180. }
  33181. func (ec *executionContext) fieldContext_AccessScope_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  33182. fc = &graphql.FieldContext{
  33183. Object: "AccessScope",
  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. func (ec *executionContext) _AccessScope_handle(ctx context.Context, field graphql.CollectedField, obj *AccessScope) (ret graphql.Marshaler) {
  33194. fc, err := ec.fieldContext_AccessScope_handle(ctx, field)
  33195. if err != nil {
  33196. return graphql.Null
  33197. }
  33198. ctx = graphql.WithFieldContext(ctx, fc)
  33199. defer func() {
  33200. if r := recover(); r != nil {
  33201. ec.Error(ctx, ec.Recover(ctx, r))
  33202. ret = graphql.Null
  33203. }
  33204. }()
  33205. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  33206. ctx = rctx // use context from middleware stack in children
  33207. return obj.Handle, nil
  33208. })
  33209. if err != nil {
  33210. ec.Error(ctx, err)
  33211. return graphql.Null
  33212. }
  33213. if resTmp == nil {
  33214. if !graphql.HasFieldError(ctx, fc) {
  33215. ec.Errorf(ctx, "must not be null")
  33216. }
  33217. return graphql.Null
  33218. }
  33219. res := resTmp.(string)
  33220. fc.Result = res
  33221. return ec.marshalNString2string(ctx, field.Selections, res)
  33222. }
  33223. func (ec *executionContext) fieldContext_AccessScope_handle(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  33224. fc = &graphql.FieldContext{
  33225. Object: "AccessScope",
  33226. Field: field,
  33227. IsMethod: false,
  33228. IsResolver: false,
  33229. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  33230. return nil, errors.New("field of type String does not have child fields")
  33231. },
  33232. }
  33233. return fc, nil
  33234. }
  33235. func (ec *executionContext) _App_apiKey(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  33236. fc, err := ec.fieldContext_App_apiKey(ctx, field)
  33237. if err != nil {
  33238. return graphql.Null
  33239. }
  33240. ctx = graphql.WithFieldContext(ctx, fc)
  33241. defer func() {
  33242. if r := recover(); r != nil {
  33243. ec.Error(ctx, ec.Recover(ctx, r))
  33244. ret = graphql.Null
  33245. }
  33246. }()
  33247. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  33248. ctx = rctx // use context from middleware stack in children
  33249. return obj.APIKey, nil
  33250. })
  33251. if err != nil {
  33252. ec.Error(ctx, err)
  33253. return graphql.Null
  33254. }
  33255. if resTmp == nil {
  33256. if !graphql.HasFieldError(ctx, fc) {
  33257. ec.Errorf(ctx, "must not be null")
  33258. }
  33259. return graphql.Null
  33260. }
  33261. res := resTmp.(string)
  33262. fc.Result = res
  33263. return ec.marshalNString2string(ctx, field.Selections, res)
  33264. }
  33265. func (ec *executionContext) fieldContext_App_apiKey(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  33266. fc = &graphql.FieldContext{
  33267. Object: "App",
  33268. Field: field,
  33269. IsMethod: false,
  33270. IsResolver: false,
  33271. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  33272. return nil, errors.New("field of type String does not have child fields")
  33273. },
  33274. }
  33275. return fc, nil
  33276. }
  33277. func (ec *executionContext) _App_appStoreAppUrl(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  33278. fc, err := ec.fieldContext_App_appStoreAppUrl(ctx, field)
  33279. if err != nil {
  33280. return graphql.Null
  33281. }
  33282. ctx = graphql.WithFieldContext(ctx, fc)
  33283. defer func() {
  33284. if r := recover(); r != nil {
  33285. ec.Error(ctx, ec.Recover(ctx, r))
  33286. ret = graphql.Null
  33287. }
  33288. }()
  33289. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  33290. ctx = rctx // use context from middleware stack in children
  33291. return obj.AppStoreAppURL, nil
  33292. })
  33293. if err != nil {
  33294. ec.Error(ctx, err)
  33295. return graphql.Null
  33296. }
  33297. if resTmp == nil {
  33298. return graphql.Null
  33299. }
  33300. res := resTmp.(*string)
  33301. fc.Result = res
  33302. return ec.marshalOURL2ᚖstring(ctx, field.Selections, res)
  33303. }
  33304. func (ec *executionContext) fieldContext_App_appStoreAppUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  33305. fc = &graphql.FieldContext{
  33306. Object: "App",
  33307. Field: field,
  33308. IsMethod: false,
  33309. IsResolver: false,
  33310. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  33311. return nil, errors.New("field of type URL does not have child fields")
  33312. },
  33313. }
  33314. return fc, nil
  33315. }
  33316. func (ec *executionContext) _App_appStoreDeveloperUrl(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  33317. fc, err := ec.fieldContext_App_appStoreDeveloperUrl(ctx, field)
  33318. if err != nil {
  33319. return graphql.Null
  33320. }
  33321. ctx = graphql.WithFieldContext(ctx, fc)
  33322. defer func() {
  33323. if r := recover(); r != nil {
  33324. ec.Error(ctx, ec.Recover(ctx, r))
  33325. ret = graphql.Null
  33326. }
  33327. }()
  33328. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  33329. ctx = rctx // use context from middleware stack in children
  33330. return obj.AppStoreDeveloperURL, nil
  33331. })
  33332. if err != nil {
  33333. ec.Error(ctx, err)
  33334. return graphql.Null
  33335. }
  33336. if resTmp == nil {
  33337. return graphql.Null
  33338. }
  33339. res := resTmp.(*string)
  33340. fc.Result = res
  33341. return ec.marshalOURL2ᚖstring(ctx, field.Selections, res)
  33342. }
  33343. func (ec *executionContext) fieldContext_App_appStoreDeveloperUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  33344. fc = &graphql.FieldContext{
  33345. Object: "App",
  33346. Field: field,
  33347. IsMethod: false,
  33348. IsResolver: false,
  33349. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  33350. return nil, errors.New("field of type URL does not have child fields")
  33351. },
  33352. }
  33353. return fc, nil
  33354. }
  33355. func (ec *executionContext) _App_availableAccessScopes(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  33356. fc, err := ec.fieldContext_App_availableAccessScopes(ctx, field)
  33357. if err != nil {
  33358. return graphql.Null
  33359. }
  33360. ctx = graphql.WithFieldContext(ctx, fc)
  33361. defer func() {
  33362. if r := recover(); r != nil {
  33363. ec.Error(ctx, ec.Recover(ctx, r))
  33364. ret = graphql.Null
  33365. }
  33366. }()
  33367. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  33368. ctx = rctx // use context from middleware stack in children
  33369. return obj.AvailableAccessScopes, nil
  33370. })
  33371. if err != nil {
  33372. ec.Error(ctx, err)
  33373. return graphql.Null
  33374. }
  33375. if resTmp == nil {
  33376. if !graphql.HasFieldError(ctx, fc) {
  33377. ec.Errorf(ctx, "must not be null")
  33378. }
  33379. return graphql.Null
  33380. }
  33381. res := resTmp.([]*AccessScope)
  33382. fc.Result = res
  33383. return ec.marshalNAccessScope2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAccessScopeᚄ(ctx, field.Selections, res)
  33384. }
  33385. func (ec *executionContext) fieldContext_App_availableAccessScopes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  33386. fc = &graphql.FieldContext{
  33387. Object: "App",
  33388. Field: field,
  33389. IsMethod: false,
  33390. IsResolver: false,
  33391. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  33392. switch field.Name {
  33393. case "description":
  33394. return ec.fieldContext_AccessScope_description(ctx, field)
  33395. case "handle":
  33396. return ec.fieldContext_AccessScope_handle(ctx, field)
  33397. }
  33398. return nil, fmt.Errorf("no field named %q was found under type AccessScope", field.Name)
  33399. },
  33400. }
  33401. return fc, nil
  33402. }
  33403. func (ec *executionContext) _App_banner(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  33404. fc, err := ec.fieldContext_App_banner(ctx, field)
  33405. if err != nil {
  33406. return graphql.Null
  33407. }
  33408. ctx = graphql.WithFieldContext(ctx, fc)
  33409. defer func() {
  33410. if r := recover(); r != nil {
  33411. ec.Error(ctx, ec.Recover(ctx, r))
  33412. ret = graphql.Null
  33413. }
  33414. }()
  33415. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  33416. ctx = rctx // use context from middleware stack in children
  33417. return obj.Banner, nil
  33418. })
  33419. if err != nil {
  33420. ec.Error(ctx, err)
  33421. return graphql.Null
  33422. }
  33423. if resTmp == nil {
  33424. if !graphql.HasFieldError(ctx, fc) {
  33425. ec.Errorf(ctx, "must not be null")
  33426. }
  33427. return graphql.Null
  33428. }
  33429. res := resTmp.(*Image)
  33430. fc.Result = res
  33431. return ec.marshalNImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImage(ctx, field.Selections, res)
  33432. }
  33433. func (ec *executionContext) fieldContext_App_banner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  33434. fc = &graphql.FieldContext{
  33435. Object: "App",
  33436. Field: field,
  33437. IsMethod: false,
  33438. IsResolver: false,
  33439. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  33440. switch field.Name {
  33441. case "altText":
  33442. return ec.fieldContext_Image_altText(ctx, field)
  33443. case "height":
  33444. return ec.fieldContext_Image_height(ctx, field)
  33445. case "id":
  33446. return ec.fieldContext_Image_id(ctx, field)
  33447. case "metafield":
  33448. return ec.fieldContext_Image_metafield(ctx, field)
  33449. case "metafields":
  33450. return ec.fieldContext_Image_metafields(ctx, field)
  33451. case "privateMetafield":
  33452. return ec.fieldContext_Image_privateMetafield(ctx, field)
  33453. case "privateMetafields":
  33454. return ec.fieldContext_Image_privateMetafields(ctx, field)
  33455. case "url":
  33456. return ec.fieldContext_Image_url(ctx, field)
  33457. case "width":
  33458. return ec.fieldContext_Image_width(ctx, field)
  33459. }
  33460. return nil, fmt.Errorf("no field named %q was found under type Image", field.Name)
  33461. },
  33462. }
  33463. return fc, nil
  33464. }
  33465. func (ec *executionContext) _App_description(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  33466. fc, err := ec.fieldContext_App_description(ctx, field)
  33467. if err != nil {
  33468. return graphql.Null
  33469. }
  33470. ctx = graphql.WithFieldContext(ctx, fc)
  33471. defer func() {
  33472. if r := recover(); r != nil {
  33473. ec.Error(ctx, ec.Recover(ctx, r))
  33474. ret = graphql.Null
  33475. }
  33476. }()
  33477. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  33478. ctx = rctx // use context from middleware stack in children
  33479. return obj.Description, nil
  33480. })
  33481. if err != nil {
  33482. ec.Error(ctx, err)
  33483. return graphql.Null
  33484. }
  33485. if resTmp == nil {
  33486. return graphql.Null
  33487. }
  33488. res := resTmp.(*string)
  33489. fc.Result = res
  33490. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  33491. }
  33492. func (ec *executionContext) fieldContext_App_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  33493. fc = &graphql.FieldContext{
  33494. Object: "App",
  33495. Field: field,
  33496. IsMethod: false,
  33497. IsResolver: false,
  33498. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  33499. return nil, errors.New("field of type String does not have child fields")
  33500. },
  33501. }
  33502. return fc, nil
  33503. }
  33504. func (ec *executionContext) _App_developerName(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  33505. fc, err := ec.fieldContext_App_developerName(ctx, field)
  33506. if err != nil {
  33507. return graphql.Null
  33508. }
  33509. ctx = graphql.WithFieldContext(ctx, fc)
  33510. defer func() {
  33511. if r := recover(); r != nil {
  33512. ec.Error(ctx, ec.Recover(ctx, r))
  33513. ret = graphql.Null
  33514. }
  33515. }()
  33516. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  33517. ctx = rctx // use context from middleware stack in children
  33518. return obj.DeveloperName, nil
  33519. })
  33520. if err != nil {
  33521. ec.Error(ctx, err)
  33522. return graphql.Null
  33523. }
  33524. if resTmp == nil {
  33525. return graphql.Null
  33526. }
  33527. res := resTmp.(*string)
  33528. fc.Result = res
  33529. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  33530. }
  33531. func (ec *executionContext) fieldContext_App_developerName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  33532. fc = &graphql.FieldContext{
  33533. Object: "App",
  33534. Field: field,
  33535. IsMethod: false,
  33536. IsResolver: false,
  33537. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  33538. return nil, errors.New("field of type String does not have child fields")
  33539. },
  33540. }
  33541. return fc, nil
  33542. }
  33543. func (ec *executionContext) _App_developerType(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  33544. fc, err := ec.fieldContext_App_developerType(ctx, field)
  33545. if err != nil {
  33546. return graphql.Null
  33547. }
  33548. ctx = graphql.WithFieldContext(ctx, fc)
  33549. defer func() {
  33550. if r := recover(); r != nil {
  33551. ec.Error(ctx, ec.Recover(ctx, r))
  33552. ret = graphql.Null
  33553. }
  33554. }()
  33555. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  33556. ctx = rctx // use context from middleware stack in children
  33557. return obj.DeveloperType, nil
  33558. })
  33559. if err != nil {
  33560. ec.Error(ctx, err)
  33561. return graphql.Null
  33562. }
  33563. if resTmp == nil {
  33564. if !graphql.HasFieldError(ctx, fc) {
  33565. ec.Errorf(ctx, "must not be null")
  33566. }
  33567. return graphql.Null
  33568. }
  33569. res := resTmp.(AppDeveloperType)
  33570. fc.Result = res
  33571. return ec.marshalNAppDeveloperType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppDeveloperType(ctx, field.Selections, res)
  33572. }
  33573. func (ec *executionContext) fieldContext_App_developerType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  33574. fc = &graphql.FieldContext{
  33575. Object: "App",
  33576. Field: field,
  33577. IsMethod: false,
  33578. IsResolver: false,
  33579. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  33580. return nil, errors.New("field of type AppDeveloperType does not have child fields")
  33581. },
  33582. }
  33583. return fc, nil
  33584. }
  33585. func (ec *executionContext) _App_embedded(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  33586. fc, err := ec.fieldContext_App_embedded(ctx, field)
  33587. if err != nil {
  33588. return graphql.Null
  33589. }
  33590. ctx = graphql.WithFieldContext(ctx, fc)
  33591. defer func() {
  33592. if r := recover(); r != nil {
  33593. ec.Error(ctx, ec.Recover(ctx, r))
  33594. ret = graphql.Null
  33595. }
  33596. }()
  33597. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  33598. ctx = rctx // use context from middleware stack in children
  33599. return obj.Embedded, nil
  33600. })
  33601. if err != nil {
  33602. ec.Error(ctx, err)
  33603. return graphql.Null
  33604. }
  33605. if resTmp == nil {
  33606. if !graphql.HasFieldError(ctx, fc) {
  33607. ec.Errorf(ctx, "must not be null")
  33608. }
  33609. return graphql.Null
  33610. }
  33611. res := resTmp.(bool)
  33612. fc.Result = res
  33613. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  33614. }
  33615. func (ec *executionContext) fieldContext_App_embedded(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  33616. fc = &graphql.FieldContext{
  33617. Object: "App",
  33618. Field: field,
  33619. IsMethod: false,
  33620. IsResolver: false,
  33621. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  33622. return nil, errors.New("field of type Boolean does not have child fields")
  33623. },
  33624. }
  33625. return fc, nil
  33626. }
  33627. func (ec *executionContext) _App_failedRequirements(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  33628. fc, err := ec.fieldContext_App_failedRequirements(ctx, field)
  33629. if err != nil {
  33630. return graphql.Null
  33631. }
  33632. ctx = graphql.WithFieldContext(ctx, fc)
  33633. defer func() {
  33634. if r := recover(); r != nil {
  33635. ec.Error(ctx, ec.Recover(ctx, r))
  33636. ret = graphql.Null
  33637. }
  33638. }()
  33639. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  33640. ctx = rctx // use context from middleware stack in children
  33641. return obj.FailedRequirements, nil
  33642. })
  33643. if err != nil {
  33644. ec.Error(ctx, err)
  33645. return graphql.Null
  33646. }
  33647. if resTmp == nil {
  33648. if !graphql.HasFieldError(ctx, fc) {
  33649. ec.Errorf(ctx, "must not be null")
  33650. }
  33651. return graphql.Null
  33652. }
  33653. res := resTmp.([]*FailedRequirement)
  33654. fc.Result = res
  33655. return ec.marshalNFailedRequirement2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFailedRequirementᚄ(ctx, field.Selections, res)
  33656. }
  33657. func (ec *executionContext) fieldContext_App_failedRequirements(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  33658. fc = &graphql.FieldContext{
  33659. Object: "App",
  33660. Field: field,
  33661. IsMethod: false,
  33662. IsResolver: false,
  33663. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  33664. switch field.Name {
  33665. case "action":
  33666. return ec.fieldContext_FailedRequirement_action(ctx, field)
  33667. case "message":
  33668. return ec.fieldContext_FailedRequirement_message(ctx, field)
  33669. }
  33670. return nil, fmt.Errorf("no field named %q was found under type FailedRequirement", field.Name)
  33671. },
  33672. }
  33673. return fc, nil
  33674. }
  33675. func (ec *executionContext) _App_features(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  33676. fc, err := ec.fieldContext_App_features(ctx, field)
  33677. if err != nil {
  33678. return graphql.Null
  33679. }
  33680. ctx = graphql.WithFieldContext(ctx, fc)
  33681. defer func() {
  33682. if r := recover(); r != nil {
  33683. ec.Error(ctx, ec.Recover(ctx, r))
  33684. ret = graphql.Null
  33685. }
  33686. }()
  33687. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  33688. ctx = rctx // use context from middleware stack in children
  33689. return obj.Features, nil
  33690. })
  33691. if err != nil {
  33692. ec.Error(ctx, err)
  33693. return graphql.Null
  33694. }
  33695. if resTmp == nil {
  33696. if !graphql.HasFieldError(ctx, fc) {
  33697. ec.Errorf(ctx, "must not be null")
  33698. }
  33699. return graphql.Null
  33700. }
  33701. res := resTmp.([]string)
  33702. fc.Result = res
  33703. return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
  33704. }
  33705. func (ec *executionContext) fieldContext_App_features(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  33706. fc = &graphql.FieldContext{
  33707. Object: "App",
  33708. Field: field,
  33709. IsMethod: false,
  33710. IsResolver: false,
  33711. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  33712. return nil, errors.New("field of type String does not have child fields")
  33713. },
  33714. }
  33715. return fc, nil
  33716. }
  33717. func (ec *executionContext) _App_feedback(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  33718. fc, err := ec.fieldContext_App_feedback(ctx, field)
  33719. if err != nil {
  33720. return graphql.Null
  33721. }
  33722. ctx = graphql.WithFieldContext(ctx, fc)
  33723. defer func() {
  33724. if r := recover(); r != nil {
  33725. ec.Error(ctx, ec.Recover(ctx, r))
  33726. ret = graphql.Null
  33727. }
  33728. }()
  33729. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  33730. ctx = rctx // use context from middleware stack in children
  33731. return obj.Feedback, nil
  33732. })
  33733. if err != nil {
  33734. ec.Error(ctx, err)
  33735. return graphql.Null
  33736. }
  33737. if resTmp == nil {
  33738. return graphql.Null
  33739. }
  33740. res := resTmp.(*AppFeedback)
  33741. fc.Result = res
  33742. return ec.marshalOAppFeedback2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppFeedback(ctx, field.Selections, res)
  33743. }
  33744. func (ec *executionContext) fieldContext_App_feedback(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  33745. fc = &graphql.FieldContext{
  33746. Object: "App",
  33747. Field: field,
  33748. IsMethod: false,
  33749. IsResolver: false,
  33750. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  33751. switch field.Name {
  33752. case "app":
  33753. return ec.fieldContext_AppFeedback_app(ctx, field)
  33754. case "link":
  33755. return ec.fieldContext_AppFeedback_link(ctx, field)
  33756. case "messages":
  33757. return ec.fieldContext_AppFeedback_messages(ctx, field)
  33758. }
  33759. return nil, fmt.Errorf("no field named %q was found under type AppFeedback", field.Name)
  33760. },
  33761. }
  33762. return fc, nil
  33763. }
  33764. func (ec *executionContext) _App_handle(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  33765. fc, err := ec.fieldContext_App_handle(ctx, field)
  33766. if err != nil {
  33767. return graphql.Null
  33768. }
  33769. ctx = graphql.WithFieldContext(ctx, fc)
  33770. defer func() {
  33771. if r := recover(); r != nil {
  33772. ec.Error(ctx, ec.Recover(ctx, r))
  33773. ret = graphql.Null
  33774. }
  33775. }()
  33776. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  33777. ctx = rctx // use context from middleware stack in children
  33778. return obj.Handle, nil
  33779. })
  33780. if err != nil {
  33781. ec.Error(ctx, err)
  33782. return graphql.Null
  33783. }
  33784. if resTmp == nil {
  33785. return graphql.Null
  33786. }
  33787. res := resTmp.(*string)
  33788. fc.Result = res
  33789. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  33790. }
  33791. func (ec *executionContext) fieldContext_App_handle(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  33792. fc = &graphql.FieldContext{
  33793. Object: "App",
  33794. Field: field,
  33795. IsMethod: false,
  33796. IsResolver: false,
  33797. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  33798. return nil, errors.New("field of type String does not have child fields")
  33799. },
  33800. }
  33801. return fc, nil
  33802. }
  33803. func (ec *executionContext) _App_icon(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  33804. fc, err := ec.fieldContext_App_icon(ctx, field)
  33805. if err != nil {
  33806. return graphql.Null
  33807. }
  33808. ctx = graphql.WithFieldContext(ctx, fc)
  33809. defer func() {
  33810. if r := recover(); r != nil {
  33811. ec.Error(ctx, ec.Recover(ctx, r))
  33812. ret = graphql.Null
  33813. }
  33814. }()
  33815. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  33816. ctx = rctx // use context from middleware stack in children
  33817. return obj.Icon, nil
  33818. })
  33819. if err != nil {
  33820. ec.Error(ctx, err)
  33821. return graphql.Null
  33822. }
  33823. if resTmp == nil {
  33824. if !graphql.HasFieldError(ctx, fc) {
  33825. ec.Errorf(ctx, "must not be null")
  33826. }
  33827. return graphql.Null
  33828. }
  33829. res := resTmp.(*Image)
  33830. fc.Result = res
  33831. return ec.marshalNImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImage(ctx, field.Selections, res)
  33832. }
  33833. func (ec *executionContext) fieldContext_App_icon(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  33834. fc = &graphql.FieldContext{
  33835. Object: "App",
  33836. Field: field,
  33837. IsMethod: false,
  33838. IsResolver: false,
  33839. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  33840. switch field.Name {
  33841. case "altText":
  33842. return ec.fieldContext_Image_altText(ctx, field)
  33843. case "height":
  33844. return ec.fieldContext_Image_height(ctx, field)
  33845. case "id":
  33846. return ec.fieldContext_Image_id(ctx, field)
  33847. case "metafield":
  33848. return ec.fieldContext_Image_metafield(ctx, field)
  33849. case "metafields":
  33850. return ec.fieldContext_Image_metafields(ctx, field)
  33851. case "privateMetafield":
  33852. return ec.fieldContext_Image_privateMetafield(ctx, field)
  33853. case "privateMetafields":
  33854. return ec.fieldContext_Image_privateMetafields(ctx, field)
  33855. case "url":
  33856. return ec.fieldContext_Image_url(ctx, field)
  33857. case "width":
  33858. return ec.fieldContext_Image_width(ctx, field)
  33859. }
  33860. return nil, fmt.Errorf("no field named %q was found under type Image", field.Name)
  33861. },
  33862. }
  33863. return fc, nil
  33864. }
  33865. func (ec *executionContext) _App_id(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  33866. fc, err := ec.fieldContext_App_id(ctx, field)
  33867. if err != nil {
  33868. return graphql.Null
  33869. }
  33870. ctx = graphql.WithFieldContext(ctx, fc)
  33871. defer func() {
  33872. if r := recover(); r != nil {
  33873. ec.Error(ctx, ec.Recover(ctx, r))
  33874. ret = graphql.Null
  33875. }
  33876. }()
  33877. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  33878. ctx = rctx // use context from middleware stack in children
  33879. return obj.ID, nil
  33880. })
  33881. if err != nil {
  33882. ec.Error(ctx, err)
  33883. return graphql.Null
  33884. }
  33885. if resTmp == nil {
  33886. if !graphql.HasFieldError(ctx, fc) {
  33887. ec.Errorf(ctx, "must not be null")
  33888. }
  33889. return graphql.Null
  33890. }
  33891. res := resTmp.(string)
  33892. fc.Result = res
  33893. return ec.marshalNID2string(ctx, field.Selections, res)
  33894. }
  33895. func (ec *executionContext) fieldContext_App_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  33896. fc = &graphql.FieldContext{
  33897. Object: "App",
  33898. Field: field,
  33899. IsMethod: false,
  33900. IsResolver: false,
  33901. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  33902. return nil, errors.New("field of type ID does not have child fields")
  33903. },
  33904. }
  33905. return fc, nil
  33906. }
  33907. func (ec *executionContext) _App_installUrl(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  33908. fc, err := ec.fieldContext_App_installUrl(ctx, field)
  33909. if err != nil {
  33910. return graphql.Null
  33911. }
  33912. ctx = graphql.WithFieldContext(ctx, fc)
  33913. defer func() {
  33914. if r := recover(); r != nil {
  33915. ec.Error(ctx, ec.Recover(ctx, r))
  33916. ret = graphql.Null
  33917. }
  33918. }()
  33919. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  33920. ctx = rctx // use context from middleware stack in children
  33921. return obj.InstallURL, nil
  33922. })
  33923. if err != nil {
  33924. ec.Error(ctx, err)
  33925. return graphql.Null
  33926. }
  33927. if resTmp == nil {
  33928. return graphql.Null
  33929. }
  33930. res := resTmp.(*string)
  33931. fc.Result = res
  33932. return ec.marshalOURL2ᚖstring(ctx, field.Selections, res)
  33933. }
  33934. func (ec *executionContext) fieldContext_App_installUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  33935. fc = &graphql.FieldContext{
  33936. Object: "App",
  33937. Field: field,
  33938. IsMethod: false,
  33939. IsResolver: false,
  33940. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  33941. return nil, errors.New("field of type URL does not have child fields")
  33942. },
  33943. }
  33944. return fc, nil
  33945. }
  33946. func (ec *executionContext) _App_installation(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  33947. fc, err := ec.fieldContext_App_installation(ctx, field)
  33948. if err != nil {
  33949. return graphql.Null
  33950. }
  33951. ctx = graphql.WithFieldContext(ctx, fc)
  33952. defer func() {
  33953. if r := recover(); r != nil {
  33954. ec.Error(ctx, ec.Recover(ctx, r))
  33955. ret = graphql.Null
  33956. }
  33957. }()
  33958. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  33959. ctx = rctx // use context from middleware stack in children
  33960. return obj.Installation, nil
  33961. })
  33962. if err != nil {
  33963. ec.Error(ctx, err)
  33964. return graphql.Null
  33965. }
  33966. if resTmp == nil {
  33967. return graphql.Null
  33968. }
  33969. res := resTmp.(*AppInstallation)
  33970. fc.Result = res
  33971. return ec.marshalOAppInstallation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppInstallation(ctx, field.Selections, res)
  33972. }
  33973. func (ec *executionContext) fieldContext_App_installation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  33974. fc = &graphql.FieldContext{
  33975. Object: "App",
  33976. Field: field,
  33977. IsMethod: false,
  33978. IsResolver: false,
  33979. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  33980. switch field.Name {
  33981. case "accessScopes":
  33982. return ec.fieldContext_AppInstallation_accessScopes(ctx, field)
  33983. case "activeSubscriptions":
  33984. return ec.fieldContext_AppInstallation_activeSubscriptions(ctx, field)
  33985. case "allSubscriptions":
  33986. return ec.fieldContext_AppInstallation_allSubscriptions(ctx, field)
  33987. case "app":
  33988. return ec.fieldContext_AppInstallation_app(ctx, field)
  33989. case "credits":
  33990. return ec.fieldContext_AppInstallation_credits(ctx, field)
  33991. case "id":
  33992. return ec.fieldContext_AppInstallation_id(ctx, field)
  33993. case "launchUrl":
  33994. return ec.fieldContext_AppInstallation_launchUrl(ctx, field)
  33995. case "metafield":
  33996. return ec.fieldContext_AppInstallation_metafield(ctx, field)
  33997. case "metafields":
  33998. return ec.fieldContext_AppInstallation_metafields(ctx, field)
  33999. case "oneTimePurchases":
  34000. return ec.fieldContext_AppInstallation_oneTimePurchases(ctx, field)
  34001. case "privateMetafield":
  34002. return ec.fieldContext_AppInstallation_privateMetafield(ctx, field)
  34003. case "privateMetafields":
  34004. return ec.fieldContext_AppInstallation_privateMetafields(ctx, field)
  34005. case "publication":
  34006. return ec.fieldContext_AppInstallation_publication(ctx, field)
  34007. case "revenueAttributionRecords":
  34008. return ec.fieldContext_AppInstallation_revenueAttributionRecords(ctx, field)
  34009. case "uninstallUrl":
  34010. return ec.fieldContext_AppInstallation_uninstallUrl(ctx, field)
  34011. }
  34012. return nil, fmt.Errorf("no field named %q was found under type AppInstallation", field.Name)
  34013. },
  34014. }
  34015. return fc, nil
  34016. }
  34017. func (ec *executionContext) _App_isPostPurchaseAppInUse(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  34018. fc, err := ec.fieldContext_App_isPostPurchaseAppInUse(ctx, field)
  34019. if err != nil {
  34020. return graphql.Null
  34021. }
  34022. ctx = graphql.WithFieldContext(ctx, fc)
  34023. defer func() {
  34024. if r := recover(); r != nil {
  34025. ec.Error(ctx, ec.Recover(ctx, r))
  34026. ret = graphql.Null
  34027. }
  34028. }()
  34029. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  34030. ctx = rctx // use context from middleware stack in children
  34031. return obj.IsPostPurchaseAppInUse, nil
  34032. })
  34033. if err != nil {
  34034. ec.Error(ctx, err)
  34035. return graphql.Null
  34036. }
  34037. if resTmp == nil {
  34038. if !graphql.HasFieldError(ctx, fc) {
  34039. ec.Errorf(ctx, "must not be null")
  34040. }
  34041. return graphql.Null
  34042. }
  34043. res := resTmp.(bool)
  34044. fc.Result = res
  34045. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  34046. }
  34047. func (ec *executionContext) fieldContext_App_isPostPurchaseAppInUse(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  34048. fc = &graphql.FieldContext{
  34049. Object: "App",
  34050. Field: field,
  34051. IsMethod: false,
  34052. IsResolver: false,
  34053. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  34054. return nil, errors.New("field of type Boolean does not have child fields")
  34055. },
  34056. }
  34057. return fc, nil
  34058. }
  34059. func (ec *executionContext) _App_previouslyInstalled(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  34060. fc, err := ec.fieldContext_App_previouslyInstalled(ctx, field)
  34061. if err != nil {
  34062. return graphql.Null
  34063. }
  34064. ctx = graphql.WithFieldContext(ctx, fc)
  34065. defer func() {
  34066. if r := recover(); r != nil {
  34067. ec.Error(ctx, ec.Recover(ctx, r))
  34068. ret = graphql.Null
  34069. }
  34070. }()
  34071. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  34072. ctx = rctx // use context from middleware stack in children
  34073. return obj.PreviouslyInstalled, nil
  34074. })
  34075. if err != nil {
  34076. ec.Error(ctx, err)
  34077. return graphql.Null
  34078. }
  34079. if resTmp == nil {
  34080. if !graphql.HasFieldError(ctx, fc) {
  34081. ec.Errorf(ctx, "must not be null")
  34082. }
  34083. return graphql.Null
  34084. }
  34085. res := resTmp.(bool)
  34086. fc.Result = res
  34087. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  34088. }
  34089. func (ec *executionContext) fieldContext_App_previouslyInstalled(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  34090. fc = &graphql.FieldContext{
  34091. Object: "App",
  34092. Field: field,
  34093. IsMethod: false,
  34094. IsResolver: false,
  34095. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  34096. return nil, errors.New("field of type Boolean does not have child fields")
  34097. },
  34098. }
  34099. return fc, nil
  34100. }
  34101. func (ec *executionContext) _App_pricingDetails(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  34102. fc, err := ec.fieldContext_App_pricingDetails(ctx, field)
  34103. if err != nil {
  34104. return graphql.Null
  34105. }
  34106. ctx = graphql.WithFieldContext(ctx, fc)
  34107. defer func() {
  34108. if r := recover(); r != nil {
  34109. ec.Error(ctx, ec.Recover(ctx, r))
  34110. ret = graphql.Null
  34111. }
  34112. }()
  34113. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  34114. ctx = rctx // use context from middleware stack in children
  34115. return obj.PricingDetails, nil
  34116. })
  34117. if err != nil {
  34118. ec.Error(ctx, err)
  34119. return graphql.Null
  34120. }
  34121. if resTmp == nil {
  34122. return graphql.Null
  34123. }
  34124. res := resTmp.(*string)
  34125. fc.Result = res
  34126. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  34127. }
  34128. func (ec *executionContext) fieldContext_App_pricingDetails(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  34129. fc = &graphql.FieldContext{
  34130. Object: "App",
  34131. Field: field,
  34132. IsMethod: false,
  34133. IsResolver: false,
  34134. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  34135. return nil, errors.New("field of type String does not have child fields")
  34136. },
  34137. }
  34138. return fc, nil
  34139. }
  34140. func (ec *executionContext) _App_pricingDetailsSummary(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  34141. fc, err := ec.fieldContext_App_pricingDetailsSummary(ctx, field)
  34142. if err != nil {
  34143. return graphql.Null
  34144. }
  34145. ctx = graphql.WithFieldContext(ctx, fc)
  34146. defer func() {
  34147. if r := recover(); r != nil {
  34148. ec.Error(ctx, ec.Recover(ctx, r))
  34149. ret = graphql.Null
  34150. }
  34151. }()
  34152. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  34153. ctx = rctx // use context from middleware stack in children
  34154. return obj.PricingDetailsSummary, nil
  34155. })
  34156. if err != nil {
  34157. ec.Error(ctx, err)
  34158. return graphql.Null
  34159. }
  34160. if resTmp == nil {
  34161. if !graphql.HasFieldError(ctx, fc) {
  34162. ec.Errorf(ctx, "must not be null")
  34163. }
  34164. return graphql.Null
  34165. }
  34166. res := resTmp.(string)
  34167. fc.Result = res
  34168. return ec.marshalNString2string(ctx, field.Selections, res)
  34169. }
  34170. func (ec *executionContext) fieldContext_App_pricingDetailsSummary(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  34171. fc = &graphql.FieldContext{
  34172. Object: "App",
  34173. Field: field,
  34174. IsMethod: false,
  34175. IsResolver: false,
  34176. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  34177. return nil, errors.New("field of type String does not have child fields")
  34178. },
  34179. }
  34180. return fc, nil
  34181. }
  34182. func (ec *executionContext) _App_privacyPolicyUrl(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  34183. fc, err := ec.fieldContext_App_privacyPolicyUrl(ctx, field)
  34184. if err != nil {
  34185. return graphql.Null
  34186. }
  34187. ctx = graphql.WithFieldContext(ctx, fc)
  34188. defer func() {
  34189. if r := recover(); r != nil {
  34190. ec.Error(ctx, ec.Recover(ctx, r))
  34191. ret = graphql.Null
  34192. }
  34193. }()
  34194. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  34195. ctx = rctx // use context from middleware stack in children
  34196. return obj.PrivacyPolicyURL, nil
  34197. })
  34198. if err != nil {
  34199. ec.Error(ctx, err)
  34200. return graphql.Null
  34201. }
  34202. if resTmp == nil {
  34203. return graphql.Null
  34204. }
  34205. res := resTmp.(*string)
  34206. fc.Result = res
  34207. return ec.marshalOURL2ᚖstring(ctx, field.Selections, res)
  34208. }
  34209. func (ec *executionContext) fieldContext_App_privacyPolicyUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  34210. fc = &graphql.FieldContext{
  34211. Object: "App",
  34212. Field: field,
  34213. IsMethod: false,
  34214. IsResolver: false,
  34215. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  34216. return nil, errors.New("field of type URL does not have child fields")
  34217. },
  34218. }
  34219. return fc, nil
  34220. }
  34221. func (ec *executionContext) _App_publicCategory(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  34222. fc, err := ec.fieldContext_App_publicCategory(ctx, field)
  34223. if err != nil {
  34224. return graphql.Null
  34225. }
  34226. ctx = graphql.WithFieldContext(ctx, fc)
  34227. defer func() {
  34228. if r := recover(); r != nil {
  34229. ec.Error(ctx, ec.Recover(ctx, r))
  34230. ret = graphql.Null
  34231. }
  34232. }()
  34233. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  34234. ctx = rctx // use context from middleware stack in children
  34235. return obj.PublicCategory, nil
  34236. })
  34237. if err != nil {
  34238. ec.Error(ctx, err)
  34239. return graphql.Null
  34240. }
  34241. if resTmp == nil {
  34242. if !graphql.HasFieldError(ctx, fc) {
  34243. ec.Errorf(ctx, "must not be null")
  34244. }
  34245. return graphql.Null
  34246. }
  34247. res := resTmp.(AppPublicCategory)
  34248. fc.Result = res
  34249. return ec.marshalNAppPublicCategory2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppPublicCategory(ctx, field.Selections, res)
  34250. }
  34251. func (ec *executionContext) fieldContext_App_publicCategory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  34252. fc = &graphql.FieldContext{
  34253. Object: "App",
  34254. Field: field,
  34255. IsMethod: false,
  34256. IsResolver: false,
  34257. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  34258. return nil, errors.New("field of type AppPublicCategory does not have child fields")
  34259. },
  34260. }
  34261. return fc, nil
  34262. }
  34263. func (ec *executionContext) _App_published(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  34264. fc, err := ec.fieldContext_App_published(ctx, field)
  34265. if err != nil {
  34266. return graphql.Null
  34267. }
  34268. ctx = graphql.WithFieldContext(ctx, fc)
  34269. defer func() {
  34270. if r := recover(); r != nil {
  34271. ec.Error(ctx, ec.Recover(ctx, r))
  34272. ret = graphql.Null
  34273. }
  34274. }()
  34275. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  34276. ctx = rctx // use context from middleware stack in children
  34277. return obj.Published, nil
  34278. })
  34279. if err != nil {
  34280. ec.Error(ctx, err)
  34281. return graphql.Null
  34282. }
  34283. if resTmp == nil {
  34284. if !graphql.HasFieldError(ctx, fc) {
  34285. ec.Errorf(ctx, "must not be null")
  34286. }
  34287. return graphql.Null
  34288. }
  34289. res := resTmp.(bool)
  34290. fc.Result = res
  34291. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  34292. }
  34293. func (ec *executionContext) fieldContext_App_published(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  34294. fc = &graphql.FieldContext{
  34295. Object: "App",
  34296. Field: field,
  34297. IsMethod: false,
  34298. IsResolver: false,
  34299. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  34300. return nil, errors.New("field of type Boolean does not have child fields")
  34301. },
  34302. }
  34303. return fc, nil
  34304. }
  34305. func (ec *executionContext) _App_requestedAccessScopes(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  34306. fc, err := ec.fieldContext_App_requestedAccessScopes(ctx, field)
  34307. if err != nil {
  34308. return graphql.Null
  34309. }
  34310. ctx = graphql.WithFieldContext(ctx, fc)
  34311. defer func() {
  34312. if r := recover(); r != nil {
  34313. ec.Error(ctx, ec.Recover(ctx, r))
  34314. ret = graphql.Null
  34315. }
  34316. }()
  34317. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  34318. ctx = rctx // use context from middleware stack in children
  34319. return obj.RequestedAccessScopes, nil
  34320. })
  34321. if err != nil {
  34322. ec.Error(ctx, err)
  34323. return graphql.Null
  34324. }
  34325. if resTmp == nil {
  34326. if !graphql.HasFieldError(ctx, fc) {
  34327. ec.Errorf(ctx, "must not be null")
  34328. }
  34329. return graphql.Null
  34330. }
  34331. res := resTmp.([]*AccessScope)
  34332. fc.Result = res
  34333. return ec.marshalNAccessScope2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAccessScopeᚄ(ctx, field.Selections, res)
  34334. }
  34335. func (ec *executionContext) fieldContext_App_requestedAccessScopes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  34336. fc = &graphql.FieldContext{
  34337. Object: "App",
  34338. Field: field,
  34339. IsMethod: false,
  34340. IsResolver: false,
  34341. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  34342. switch field.Name {
  34343. case "description":
  34344. return ec.fieldContext_AccessScope_description(ctx, field)
  34345. case "handle":
  34346. return ec.fieldContext_AccessScope_handle(ctx, field)
  34347. }
  34348. return nil, fmt.Errorf("no field named %q was found under type AccessScope", field.Name)
  34349. },
  34350. }
  34351. return fc, nil
  34352. }
  34353. func (ec *executionContext) _App_screenshots(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  34354. fc, err := ec.fieldContext_App_screenshots(ctx, field)
  34355. if err != nil {
  34356. return graphql.Null
  34357. }
  34358. ctx = graphql.WithFieldContext(ctx, fc)
  34359. defer func() {
  34360. if r := recover(); r != nil {
  34361. ec.Error(ctx, ec.Recover(ctx, r))
  34362. ret = graphql.Null
  34363. }
  34364. }()
  34365. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  34366. ctx = rctx // use context from middleware stack in children
  34367. return obj.Screenshots, nil
  34368. })
  34369. if err != nil {
  34370. ec.Error(ctx, err)
  34371. return graphql.Null
  34372. }
  34373. if resTmp == nil {
  34374. if !graphql.HasFieldError(ctx, fc) {
  34375. ec.Errorf(ctx, "must not be null")
  34376. }
  34377. return graphql.Null
  34378. }
  34379. res := resTmp.([]*Image)
  34380. fc.Result = res
  34381. return ec.marshalNImage2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImageᚄ(ctx, field.Selections, res)
  34382. }
  34383. func (ec *executionContext) fieldContext_App_screenshots(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  34384. fc = &graphql.FieldContext{
  34385. Object: "App",
  34386. Field: field,
  34387. IsMethod: false,
  34388. IsResolver: false,
  34389. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  34390. switch field.Name {
  34391. case "altText":
  34392. return ec.fieldContext_Image_altText(ctx, field)
  34393. case "height":
  34394. return ec.fieldContext_Image_height(ctx, field)
  34395. case "id":
  34396. return ec.fieldContext_Image_id(ctx, field)
  34397. case "metafield":
  34398. return ec.fieldContext_Image_metafield(ctx, field)
  34399. case "metafields":
  34400. return ec.fieldContext_Image_metafields(ctx, field)
  34401. case "privateMetafield":
  34402. return ec.fieldContext_Image_privateMetafield(ctx, field)
  34403. case "privateMetafields":
  34404. return ec.fieldContext_Image_privateMetafields(ctx, field)
  34405. case "url":
  34406. return ec.fieldContext_Image_url(ctx, field)
  34407. case "width":
  34408. return ec.fieldContext_Image_width(ctx, field)
  34409. }
  34410. return nil, fmt.Errorf("no field named %q was found under type Image", field.Name)
  34411. },
  34412. }
  34413. return fc, nil
  34414. }
  34415. func (ec *executionContext) _App_shopifyDeveloped(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  34416. fc, err := ec.fieldContext_App_shopifyDeveloped(ctx, field)
  34417. if err != nil {
  34418. return graphql.Null
  34419. }
  34420. ctx = graphql.WithFieldContext(ctx, fc)
  34421. defer func() {
  34422. if r := recover(); r != nil {
  34423. ec.Error(ctx, ec.Recover(ctx, r))
  34424. ret = graphql.Null
  34425. }
  34426. }()
  34427. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  34428. ctx = rctx // use context from middleware stack in children
  34429. return obj.ShopifyDeveloped, nil
  34430. })
  34431. if err != nil {
  34432. ec.Error(ctx, err)
  34433. return graphql.Null
  34434. }
  34435. if resTmp == nil {
  34436. if !graphql.HasFieldError(ctx, fc) {
  34437. ec.Errorf(ctx, "must not be null")
  34438. }
  34439. return graphql.Null
  34440. }
  34441. res := resTmp.(bool)
  34442. fc.Result = res
  34443. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  34444. }
  34445. func (ec *executionContext) fieldContext_App_shopifyDeveloped(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  34446. fc = &graphql.FieldContext{
  34447. Object: "App",
  34448. Field: field,
  34449. IsMethod: false,
  34450. IsResolver: false,
  34451. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  34452. return nil, errors.New("field of type Boolean does not have child fields")
  34453. },
  34454. }
  34455. return fc, nil
  34456. }
  34457. func (ec *executionContext) _App_title(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  34458. fc, err := ec.fieldContext_App_title(ctx, field)
  34459. if err != nil {
  34460. return graphql.Null
  34461. }
  34462. ctx = graphql.WithFieldContext(ctx, fc)
  34463. defer func() {
  34464. if r := recover(); r != nil {
  34465. ec.Error(ctx, ec.Recover(ctx, r))
  34466. ret = graphql.Null
  34467. }
  34468. }()
  34469. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  34470. ctx = rctx // use context from middleware stack in children
  34471. return obj.Title, nil
  34472. })
  34473. if err != nil {
  34474. ec.Error(ctx, err)
  34475. return graphql.Null
  34476. }
  34477. if resTmp == nil {
  34478. if !graphql.HasFieldError(ctx, fc) {
  34479. ec.Errorf(ctx, "must not be null")
  34480. }
  34481. return graphql.Null
  34482. }
  34483. res := resTmp.(string)
  34484. fc.Result = res
  34485. return ec.marshalNString2string(ctx, field.Selections, res)
  34486. }
  34487. func (ec *executionContext) fieldContext_App_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  34488. fc = &graphql.FieldContext{
  34489. Object: "App",
  34490. Field: field,
  34491. IsMethod: false,
  34492. IsResolver: false,
  34493. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  34494. return nil, errors.New("field of type String does not have child fields")
  34495. },
  34496. }
  34497. return fc, nil
  34498. }
  34499. func (ec *executionContext) _App_uninstallMessage(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  34500. fc, err := ec.fieldContext_App_uninstallMessage(ctx, field)
  34501. if err != nil {
  34502. return graphql.Null
  34503. }
  34504. ctx = graphql.WithFieldContext(ctx, fc)
  34505. defer func() {
  34506. if r := recover(); r != nil {
  34507. ec.Error(ctx, ec.Recover(ctx, r))
  34508. ret = graphql.Null
  34509. }
  34510. }()
  34511. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  34512. ctx = rctx // use context from middleware stack in children
  34513. return obj.UninstallMessage, nil
  34514. })
  34515. if err != nil {
  34516. ec.Error(ctx, err)
  34517. return graphql.Null
  34518. }
  34519. if resTmp == nil {
  34520. if !graphql.HasFieldError(ctx, fc) {
  34521. ec.Errorf(ctx, "must not be null")
  34522. }
  34523. return graphql.Null
  34524. }
  34525. res := resTmp.(string)
  34526. fc.Result = res
  34527. return ec.marshalNString2string(ctx, field.Selections, res)
  34528. }
  34529. func (ec *executionContext) fieldContext_App_uninstallMessage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  34530. fc = &graphql.FieldContext{
  34531. Object: "App",
  34532. Field: field,
  34533. IsMethod: false,
  34534. IsResolver: false,
  34535. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  34536. return nil, errors.New("field of type String does not have child fields")
  34537. },
  34538. }
  34539. return fc, nil
  34540. }
  34541. func (ec *executionContext) _App_webhookApiVersion(ctx context.Context, field graphql.CollectedField, obj *App) (ret graphql.Marshaler) {
  34542. fc, err := ec.fieldContext_App_webhookApiVersion(ctx, field)
  34543. if err != nil {
  34544. return graphql.Null
  34545. }
  34546. ctx = graphql.WithFieldContext(ctx, fc)
  34547. defer func() {
  34548. if r := recover(); r != nil {
  34549. ec.Error(ctx, ec.Recover(ctx, r))
  34550. ret = graphql.Null
  34551. }
  34552. }()
  34553. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  34554. ctx = rctx // use context from middleware stack in children
  34555. return obj.WebhookAPIVersion, nil
  34556. })
  34557. if err != nil {
  34558. ec.Error(ctx, err)
  34559. return graphql.Null
  34560. }
  34561. if resTmp == nil {
  34562. if !graphql.HasFieldError(ctx, fc) {
  34563. ec.Errorf(ctx, "must not be null")
  34564. }
  34565. return graphql.Null
  34566. }
  34567. res := resTmp.(string)
  34568. fc.Result = res
  34569. return ec.marshalNString2string(ctx, field.Selections, res)
  34570. }
  34571. func (ec *executionContext) fieldContext_App_webhookApiVersion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  34572. fc = &graphql.FieldContext{
  34573. Object: "App",
  34574. Field: field,
  34575. IsMethod: false,
  34576. IsResolver: false,
  34577. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  34578. return nil, errors.New("field of type String does not have child fields")
  34579. },
  34580. }
  34581. return fc, nil
  34582. }
  34583. func (ec *executionContext) _AppConnection_edges(ctx context.Context, field graphql.CollectedField, obj *AppConnection) (ret graphql.Marshaler) {
  34584. fc, err := ec.fieldContext_AppConnection_edges(ctx, field)
  34585. if err != nil {
  34586. return graphql.Null
  34587. }
  34588. ctx = graphql.WithFieldContext(ctx, fc)
  34589. defer func() {
  34590. if r := recover(); r != nil {
  34591. ec.Error(ctx, ec.Recover(ctx, r))
  34592. ret = graphql.Null
  34593. }
  34594. }()
  34595. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  34596. ctx = rctx // use context from middleware stack in children
  34597. return obj.Edges, nil
  34598. })
  34599. if err != nil {
  34600. ec.Error(ctx, err)
  34601. return graphql.Null
  34602. }
  34603. if resTmp == nil {
  34604. if !graphql.HasFieldError(ctx, fc) {
  34605. ec.Errorf(ctx, "must not be null")
  34606. }
  34607. return graphql.Null
  34608. }
  34609. res := resTmp.([]*AppEdge)
  34610. fc.Result = res
  34611. return ec.marshalNAppEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppEdgeᚄ(ctx, field.Selections, res)
  34612. }
  34613. func (ec *executionContext) fieldContext_AppConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  34614. fc = &graphql.FieldContext{
  34615. Object: "AppConnection",
  34616. Field: field,
  34617. IsMethod: false,
  34618. IsResolver: false,
  34619. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  34620. switch field.Name {
  34621. case "cursor":
  34622. return ec.fieldContext_AppEdge_cursor(ctx, field)
  34623. case "node":
  34624. return ec.fieldContext_AppEdge_node(ctx, field)
  34625. }
  34626. return nil, fmt.Errorf("no field named %q was found under type AppEdge", field.Name)
  34627. },
  34628. }
  34629. return fc, nil
  34630. }
  34631. func (ec *executionContext) _AppConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *AppConnection) (ret graphql.Marshaler) {
  34632. fc, err := ec.fieldContext_AppConnection_nodes(ctx, field)
  34633. if err != nil {
  34634. return graphql.Null
  34635. }
  34636. ctx = graphql.WithFieldContext(ctx, fc)
  34637. defer func() {
  34638. if r := recover(); r != nil {
  34639. ec.Error(ctx, ec.Recover(ctx, r))
  34640. ret = graphql.Null
  34641. }
  34642. }()
  34643. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  34644. ctx = rctx // use context from middleware stack in children
  34645. return obj.Nodes, nil
  34646. })
  34647. if err != nil {
  34648. ec.Error(ctx, err)
  34649. return graphql.Null
  34650. }
  34651. if resTmp == nil {
  34652. if !graphql.HasFieldError(ctx, fc) {
  34653. ec.Errorf(ctx, "must not be null")
  34654. }
  34655. return graphql.Null
  34656. }
  34657. res := resTmp.([]*App)
  34658. fc.Result = res
  34659. return ec.marshalNApp2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppᚄ(ctx, field.Selections, res)
  34660. }
  34661. func (ec *executionContext) fieldContext_AppConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  34662. fc = &graphql.FieldContext{
  34663. Object: "AppConnection",
  34664. Field: field,
  34665. IsMethod: false,
  34666. IsResolver: false,
  34667. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  34668. switch field.Name {
  34669. case "apiKey":
  34670. return ec.fieldContext_App_apiKey(ctx, field)
  34671. case "appStoreAppUrl":
  34672. return ec.fieldContext_App_appStoreAppUrl(ctx, field)
  34673. case "appStoreDeveloperUrl":
  34674. return ec.fieldContext_App_appStoreDeveloperUrl(ctx, field)
  34675. case "availableAccessScopes":
  34676. return ec.fieldContext_App_availableAccessScopes(ctx, field)
  34677. case "banner":
  34678. return ec.fieldContext_App_banner(ctx, field)
  34679. case "description":
  34680. return ec.fieldContext_App_description(ctx, field)
  34681. case "developerName":
  34682. return ec.fieldContext_App_developerName(ctx, field)
  34683. case "developerType":
  34684. return ec.fieldContext_App_developerType(ctx, field)
  34685. case "embedded":
  34686. return ec.fieldContext_App_embedded(ctx, field)
  34687. case "failedRequirements":
  34688. return ec.fieldContext_App_failedRequirements(ctx, field)
  34689. case "features":
  34690. return ec.fieldContext_App_features(ctx, field)
  34691. case "feedback":
  34692. return ec.fieldContext_App_feedback(ctx, field)
  34693. case "handle":
  34694. return ec.fieldContext_App_handle(ctx, field)
  34695. case "icon":
  34696. return ec.fieldContext_App_icon(ctx, field)
  34697. case "id":
  34698. return ec.fieldContext_App_id(ctx, field)
  34699. case "installUrl":
  34700. return ec.fieldContext_App_installUrl(ctx, field)
  34701. case "installation":
  34702. return ec.fieldContext_App_installation(ctx, field)
  34703. case "isPostPurchaseAppInUse":
  34704. return ec.fieldContext_App_isPostPurchaseAppInUse(ctx, field)
  34705. case "previouslyInstalled":
  34706. return ec.fieldContext_App_previouslyInstalled(ctx, field)
  34707. case "pricingDetails":
  34708. return ec.fieldContext_App_pricingDetails(ctx, field)
  34709. case "pricingDetailsSummary":
  34710. return ec.fieldContext_App_pricingDetailsSummary(ctx, field)
  34711. case "privacyPolicyUrl":
  34712. return ec.fieldContext_App_privacyPolicyUrl(ctx, field)
  34713. case "publicCategory":
  34714. return ec.fieldContext_App_publicCategory(ctx, field)
  34715. case "published":
  34716. return ec.fieldContext_App_published(ctx, field)
  34717. case "requestedAccessScopes":
  34718. return ec.fieldContext_App_requestedAccessScopes(ctx, field)
  34719. case "screenshots":
  34720. return ec.fieldContext_App_screenshots(ctx, field)
  34721. case "shopifyDeveloped":
  34722. return ec.fieldContext_App_shopifyDeveloped(ctx, field)
  34723. case "title":
  34724. return ec.fieldContext_App_title(ctx, field)
  34725. case "uninstallMessage":
  34726. return ec.fieldContext_App_uninstallMessage(ctx, field)
  34727. case "webhookApiVersion":
  34728. return ec.fieldContext_App_webhookApiVersion(ctx, field)
  34729. }
  34730. return nil, fmt.Errorf("no field named %q was found under type App", field.Name)
  34731. },
  34732. }
  34733. return fc, nil
  34734. }
  34735. func (ec *executionContext) _AppConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *AppConnection) (ret graphql.Marshaler) {
  34736. fc, err := ec.fieldContext_AppConnection_pageInfo(ctx, field)
  34737. if err != nil {
  34738. return graphql.Null
  34739. }
  34740. ctx = graphql.WithFieldContext(ctx, fc)
  34741. defer func() {
  34742. if r := recover(); r != nil {
  34743. ec.Error(ctx, ec.Recover(ctx, r))
  34744. ret = graphql.Null
  34745. }
  34746. }()
  34747. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  34748. ctx = rctx // use context from middleware stack in children
  34749. return obj.PageInfo, nil
  34750. })
  34751. if err != nil {
  34752. ec.Error(ctx, err)
  34753. return graphql.Null
  34754. }
  34755. if resTmp == nil {
  34756. if !graphql.HasFieldError(ctx, fc) {
  34757. ec.Errorf(ctx, "must not be null")
  34758. }
  34759. return graphql.Null
  34760. }
  34761. res := resTmp.(*PageInfo)
  34762. fc.Result = res
  34763. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  34764. }
  34765. func (ec *executionContext) fieldContext_AppConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  34766. fc = &graphql.FieldContext{
  34767. Object: "AppConnection",
  34768. Field: field,
  34769. IsMethod: false,
  34770. IsResolver: false,
  34771. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  34772. switch field.Name {
  34773. case "endCursor":
  34774. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  34775. case "hasNextPage":
  34776. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  34777. case "hasPreviousPage":
  34778. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  34779. case "startCursor":
  34780. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  34781. }
  34782. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  34783. },
  34784. }
  34785. return fc, nil
  34786. }
  34787. func (ec *executionContext) _AppCredit_amount(ctx context.Context, field graphql.CollectedField, obj *AppCredit) (ret graphql.Marshaler) {
  34788. fc, err := ec.fieldContext_AppCredit_amount(ctx, field)
  34789. if err != nil {
  34790. return graphql.Null
  34791. }
  34792. ctx = graphql.WithFieldContext(ctx, fc)
  34793. defer func() {
  34794. if r := recover(); r != nil {
  34795. ec.Error(ctx, ec.Recover(ctx, r))
  34796. ret = graphql.Null
  34797. }
  34798. }()
  34799. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  34800. ctx = rctx // use context from middleware stack in children
  34801. return obj.Amount, nil
  34802. })
  34803. if err != nil {
  34804. ec.Error(ctx, err)
  34805. return graphql.Null
  34806. }
  34807. if resTmp == nil {
  34808. if !graphql.HasFieldError(ctx, fc) {
  34809. ec.Errorf(ctx, "must not be null")
  34810. }
  34811. return graphql.Null
  34812. }
  34813. res := resTmp.(*MoneyV2)
  34814. fc.Result = res
  34815. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  34816. }
  34817. func (ec *executionContext) fieldContext_AppCredit_amount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  34818. fc = &graphql.FieldContext{
  34819. Object: "AppCredit",
  34820. Field: field,
  34821. IsMethod: false,
  34822. IsResolver: false,
  34823. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  34824. switch field.Name {
  34825. case "amount":
  34826. return ec.fieldContext_MoneyV2_amount(ctx, field)
  34827. case "currencyCode":
  34828. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  34829. }
  34830. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  34831. },
  34832. }
  34833. return fc, nil
  34834. }
  34835. func (ec *executionContext) _AppCredit_createdAt(ctx context.Context, field graphql.CollectedField, obj *AppCredit) (ret graphql.Marshaler) {
  34836. fc, err := ec.fieldContext_AppCredit_createdAt(ctx, field)
  34837. if err != nil {
  34838. return graphql.Null
  34839. }
  34840. ctx = graphql.WithFieldContext(ctx, fc)
  34841. defer func() {
  34842. if r := recover(); r != nil {
  34843. ec.Error(ctx, ec.Recover(ctx, r))
  34844. ret = graphql.Null
  34845. }
  34846. }()
  34847. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  34848. ctx = rctx // use context from middleware stack in children
  34849. return obj.CreatedAt, nil
  34850. })
  34851. if err != nil {
  34852. ec.Error(ctx, err)
  34853. return graphql.Null
  34854. }
  34855. if resTmp == nil {
  34856. if !graphql.HasFieldError(ctx, fc) {
  34857. ec.Errorf(ctx, "must not be null")
  34858. }
  34859. return graphql.Null
  34860. }
  34861. res := resTmp.(string)
  34862. fc.Result = res
  34863. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  34864. }
  34865. func (ec *executionContext) fieldContext_AppCredit_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  34866. fc = &graphql.FieldContext{
  34867. Object: "AppCredit",
  34868. Field: field,
  34869. IsMethod: false,
  34870. IsResolver: false,
  34871. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  34872. return nil, errors.New("field of type DateTime does not have child fields")
  34873. },
  34874. }
  34875. return fc, nil
  34876. }
  34877. func (ec *executionContext) _AppCredit_description(ctx context.Context, field graphql.CollectedField, obj *AppCredit) (ret graphql.Marshaler) {
  34878. fc, err := ec.fieldContext_AppCredit_description(ctx, field)
  34879. if err != nil {
  34880. return graphql.Null
  34881. }
  34882. ctx = graphql.WithFieldContext(ctx, fc)
  34883. defer func() {
  34884. if r := recover(); r != nil {
  34885. ec.Error(ctx, ec.Recover(ctx, r))
  34886. ret = graphql.Null
  34887. }
  34888. }()
  34889. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  34890. ctx = rctx // use context from middleware stack in children
  34891. return obj.Description, nil
  34892. })
  34893. if err != nil {
  34894. ec.Error(ctx, err)
  34895. return graphql.Null
  34896. }
  34897. if resTmp == nil {
  34898. if !graphql.HasFieldError(ctx, fc) {
  34899. ec.Errorf(ctx, "must not be null")
  34900. }
  34901. return graphql.Null
  34902. }
  34903. res := resTmp.(string)
  34904. fc.Result = res
  34905. return ec.marshalNString2string(ctx, field.Selections, res)
  34906. }
  34907. func (ec *executionContext) fieldContext_AppCredit_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  34908. fc = &graphql.FieldContext{
  34909. Object: "AppCredit",
  34910. Field: field,
  34911. IsMethod: false,
  34912. IsResolver: false,
  34913. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  34914. return nil, errors.New("field of type String does not have child fields")
  34915. },
  34916. }
  34917. return fc, nil
  34918. }
  34919. func (ec *executionContext) _AppCredit_id(ctx context.Context, field graphql.CollectedField, obj *AppCredit) (ret graphql.Marshaler) {
  34920. fc, err := ec.fieldContext_AppCredit_id(ctx, field)
  34921. if err != nil {
  34922. return graphql.Null
  34923. }
  34924. ctx = graphql.WithFieldContext(ctx, fc)
  34925. defer func() {
  34926. if r := recover(); r != nil {
  34927. ec.Error(ctx, ec.Recover(ctx, r))
  34928. ret = graphql.Null
  34929. }
  34930. }()
  34931. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  34932. ctx = rctx // use context from middleware stack in children
  34933. return obj.ID, nil
  34934. })
  34935. if err != nil {
  34936. ec.Error(ctx, err)
  34937. return graphql.Null
  34938. }
  34939. if resTmp == nil {
  34940. if !graphql.HasFieldError(ctx, fc) {
  34941. ec.Errorf(ctx, "must not be null")
  34942. }
  34943. return graphql.Null
  34944. }
  34945. res := resTmp.(string)
  34946. fc.Result = res
  34947. return ec.marshalNID2string(ctx, field.Selections, res)
  34948. }
  34949. func (ec *executionContext) fieldContext_AppCredit_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  34950. fc = &graphql.FieldContext{
  34951. Object: "AppCredit",
  34952. Field: field,
  34953. IsMethod: false,
  34954. IsResolver: false,
  34955. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  34956. return nil, errors.New("field of type ID does not have child fields")
  34957. },
  34958. }
  34959. return fc, nil
  34960. }
  34961. func (ec *executionContext) _AppCredit_test(ctx context.Context, field graphql.CollectedField, obj *AppCredit) (ret graphql.Marshaler) {
  34962. fc, err := ec.fieldContext_AppCredit_test(ctx, field)
  34963. if err != nil {
  34964. return graphql.Null
  34965. }
  34966. ctx = graphql.WithFieldContext(ctx, fc)
  34967. defer func() {
  34968. if r := recover(); r != nil {
  34969. ec.Error(ctx, ec.Recover(ctx, r))
  34970. ret = graphql.Null
  34971. }
  34972. }()
  34973. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  34974. ctx = rctx // use context from middleware stack in children
  34975. return obj.Test, nil
  34976. })
  34977. if err != nil {
  34978. ec.Error(ctx, err)
  34979. return graphql.Null
  34980. }
  34981. if resTmp == nil {
  34982. if !graphql.HasFieldError(ctx, fc) {
  34983. ec.Errorf(ctx, "must not be null")
  34984. }
  34985. return graphql.Null
  34986. }
  34987. res := resTmp.(bool)
  34988. fc.Result = res
  34989. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  34990. }
  34991. func (ec *executionContext) fieldContext_AppCredit_test(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  34992. fc = &graphql.FieldContext{
  34993. Object: "AppCredit",
  34994. Field: field,
  34995. IsMethod: false,
  34996. IsResolver: false,
  34997. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  34998. return nil, errors.New("field of type Boolean does not have child fields")
  34999. },
  35000. }
  35001. return fc, nil
  35002. }
  35003. func (ec *executionContext) _AppCreditConnection_edges(ctx context.Context, field graphql.CollectedField, obj *AppCreditConnection) (ret graphql.Marshaler) {
  35004. fc, err := ec.fieldContext_AppCreditConnection_edges(ctx, field)
  35005. if err != nil {
  35006. return graphql.Null
  35007. }
  35008. ctx = graphql.WithFieldContext(ctx, fc)
  35009. defer func() {
  35010. if r := recover(); r != nil {
  35011. ec.Error(ctx, ec.Recover(ctx, r))
  35012. ret = graphql.Null
  35013. }
  35014. }()
  35015. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  35016. ctx = rctx // use context from middleware stack in children
  35017. return obj.Edges, nil
  35018. })
  35019. if err != nil {
  35020. ec.Error(ctx, err)
  35021. return graphql.Null
  35022. }
  35023. if resTmp == nil {
  35024. if !graphql.HasFieldError(ctx, fc) {
  35025. ec.Errorf(ctx, "must not be null")
  35026. }
  35027. return graphql.Null
  35028. }
  35029. res := resTmp.([]*AppCreditEdge)
  35030. fc.Result = res
  35031. return ec.marshalNAppCreditEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppCreditEdgeᚄ(ctx, field.Selections, res)
  35032. }
  35033. func (ec *executionContext) fieldContext_AppCreditConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  35034. fc = &graphql.FieldContext{
  35035. Object: "AppCreditConnection",
  35036. Field: field,
  35037. IsMethod: false,
  35038. IsResolver: false,
  35039. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  35040. switch field.Name {
  35041. case "cursor":
  35042. return ec.fieldContext_AppCreditEdge_cursor(ctx, field)
  35043. case "node":
  35044. return ec.fieldContext_AppCreditEdge_node(ctx, field)
  35045. }
  35046. return nil, fmt.Errorf("no field named %q was found under type AppCreditEdge", field.Name)
  35047. },
  35048. }
  35049. return fc, nil
  35050. }
  35051. func (ec *executionContext) _AppCreditConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *AppCreditConnection) (ret graphql.Marshaler) {
  35052. fc, err := ec.fieldContext_AppCreditConnection_nodes(ctx, field)
  35053. if err != nil {
  35054. return graphql.Null
  35055. }
  35056. ctx = graphql.WithFieldContext(ctx, fc)
  35057. defer func() {
  35058. if r := recover(); r != nil {
  35059. ec.Error(ctx, ec.Recover(ctx, r))
  35060. ret = graphql.Null
  35061. }
  35062. }()
  35063. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  35064. ctx = rctx // use context from middleware stack in children
  35065. return obj.Nodes, nil
  35066. })
  35067. if err != nil {
  35068. ec.Error(ctx, err)
  35069. return graphql.Null
  35070. }
  35071. if resTmp == nil {
  35072. if !graphql.HasFieldError(ctx, fc) {
  35073. ec.Errorf(ctx, "must not be null")
  35074. }
  35075. return graphql.Null
  35076. }
  35077. res := resTmp.([]*AppCredit)
  35078. fc.Result = res
  35079. return ec.marshalNAppCredit2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppCreditᚄ(ctx, field.Selections, res)
  35080. }
  35081. func (ec *executionContext) fieldContext_AppCreditConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  35082. fc = &graphql.FieldContext{
  35083. Object: "AppCreditConnection",
  35084. Field: field,
  35085. IsMethod: false,
  35086. IsResolver: false,
  35087. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  35088. switch field.Name {
  35089. case "amount":
  35090. return ec.fieldContext_AppCredit_amount(ctx, field)
  35091. case "createdAt":
  35092. return ec.fieldContext_AppCredit_createdAt(ctx, field)
  35093. case "description":
  35094. return ec.fieldContext_AppCredit_description(ctx, field)
  35095. case "id":
  35096. return ec.fieldContext_AppCredit_id(ctx, field)
  35097. case "test":
  35098. return ec.fieldContext_AppCredit_test(ctx, field)
  35099. }
  35100. return nil, fmt.Errorf("no field named %q was found under type AppCredit", field.Name)
  35101. },
  35102. }
  35103. return fc, nil
  35104. }
  35105. func (ec *executionContext) _AppCreditConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *AppCreditConnection) (ret graphql.Marshaler) {
  35106. fc, err := ec.fieldContext_AppCreditConnection_pageInfo(ctx, field)
  35107. if err != nil {
  35108. return graphql.Null
  35109. }
  35110. ctx = graphql.WithFieldContext(ctx, fc)
  35111. defer func() {
  35112. if r := recover(); r != nil {
  35113. ec.Error(ctx, ec.Recover(ctx, r))
  35114. ret = graphql.Null
  35115. }
  35116. }()
  35117. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  35118. ctx = rctx // use context from middleware stack in children
  35119. return obj.PageInfo, nil
  35120. })
  35121. if err != nil {
  35122. ec.Error(ctx, err)
  35123. return graphql.Null
  35124. }
  35125. if resTmp == nil {
  35126. if !graphql.HasFieldError(ctx, fc) {
  35127. ec.Errorf(ctx, "must not be null")
  35128. }
  35129. return graphql.Null
  35130. }
  35131. res := resTmp.(*PageInfo)
  35132. fc.Result = res
  35133. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  35134. }
  35135. func (ec *executionContext) fieldContext_AppCreditConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  35136. fc = &graphql.FieldContext{
  35137. Object: "AppCreditConnection",
  35138. Field: field,
  35139. IsMethod: false,
  35140. IsResolver: false,
  35141. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  35142. switch field.Name {
  35143. case "endCursor":
  35144. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  35145. case "hasNextPage":
  35146. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  35147. case "hasPreviousPage":
  35148. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  35149. case "startCursor":
  35150. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  35151. }
  35152. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  35153. },
  35154. }
  35155. return fc, nil
  35156. }
  35157. func (ec *executionContext) _AppCreditEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *AppCreditEdge) (ret graphql.Marshaler) {
  35158. fc, err := ec.fieldContext_AppCreditEdge_cursor(ctx, field)
  35159. if err != nil {
  35160. return graphql.Null
  35161. }
  35162. ctx = graphql.WithFieldContext(ctx, fc)
  35163. defer func() {
  35164. if r := recover(); r != nil {
  35165. ec.Error(ctx, ec.Recover(ctx, r))
  35166. ret = graphql.Null
  35167. }
  35168. }()
  35169. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  35170. ctx = rctx // use context from middleware stack in children
  35171. return obj.Cursor, nil
  35172. })
  35173. if err != nil {
  35174. ec.Error(ctx, err)
  35175. return graphql.Null
  35176. }
  35177. if resTmp == nil {
  35178. if !graphql.HasFieldError(ctx, fc) {
  35179. ec.Errorf(ctx, "must not be null")
  35180. }
  35181. return graphql.Null
  35182. }
  35183. res := resTmp.(string)
  35184. fc.Result = res
  35185. return ec.marshalNString2string(ctx, field.Selections, res)
  35186. }
  35187. func (ec *executionContext) fieldContext_AppCreditEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  35188. fc = &graphql.FieldContext{
  35189. Object: "AppCreditEdge",
  35190. Field: field,
  35191. IsMethod: false,
  35192. IsResolver: false,
  35193. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  35194. return nil, errors.New("field of type String does not have child fields")
  35195. },
  35196. }
  35197. return fc, nil
  35198. }
  35199. func (ec *executionContext) _AppCreditEdge_node(ctx context.Context, field graphql.CollectedField, obj *AppCreditEdge) (ret graphql.Marshaler) {
  35200. fc, err := ec.fieldContext_AppCreditEdge_node(ctx, field)
  35201. if err != nil {
  35202. return graphql.Null
  35203. }
  35204. ctx = graphql.WithFieldContext(ctx, fc)
  35205. defer func() {
  35206. if r := recover(); r != nil {
  35207. ec.Error(ctx, ec.Recover(ctx, r))
  35208. ret = graphql.Null
  35209. }
  35210. }()
  35211. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  35212. ctx = rctx // use context from middleware stack in children
  35213. return obj.Node, nil
  35214. })
  35215. if err != nil {
  35216. ec.Error(ctx, err)
  35217. return graphql.Null
  35218. }
  35219. if resTmp == nil {
  35220. if !graphql.HasFieldError(ctx, fc) {
  35221. ec.Errorf(ctx, "must not be null")
  35222. }
  35223. return graphql.Null
  35224. }
  35225. res := resTmp.(*AppCredit)
  35226. fc.Result = res
  35227. return ec.marshalNAppCredit2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppCredit(ctx, field.Selections, res)
  35228. }
  35229. func (ec *executionContext) fieldContext_AppCreditEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  35230. fc = &graphql.FieldContext{
  35231. Object: "AppCreditEdge",
  35232. Field: field,
  35233. IsMethod: false,
  35234. IsResolver: false,
  35235. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  35236. switch field.Name {
  35237. case "amount":
  35238. return ec.fieldContext_AppCredit_amount(ctx, field)
  35239. case "createdAt":
  35240. return ec.fieldContext_AppCredit_createdAt(ctx, field)
  35241. case "description":
  35242. return ec.fieldContext_AppCredit_description(ctx, field)
  35243. case "id":
  35244. return ec.fieldContext_AppCredit_id(ctx, field)
  35245. case "test":
  35246. return ec.fieldContext_AppCredit_test(ctx, field)
  35247. }
  35248. return nil, fmt.Errorf("no field named %q was found under type AppCredit", field.Name)
  35249. },
  35250. }
  35251. return fc, nil
  35252. }
  35253. func (ec *executionContext) _AppEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *AppEdge) (ret graphql.Marshaler) {
  35254. fc, err := ec.fieldContext_AppEdge_cursor(ctx, field)
  35255. if err != nil {
  35256. return graphql.Null
  35257. }
  35258. ctx = graphql.WithFieldContext(ctx, fc)
  35259. defer func() {
  35260. if r := recover(); r != nil {
  35261. ec.Error(ctx, ec.Recover(ctx, r))
  35262. ret = graphql.Null
  35263. }
  35264. }()
  35265. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  35266. ctx = rctx // use context from middleware stack in children
  35267. return obj.Cursor, nil
  35268. })
  35269. if err != nil {
  35270. ec.Error(ctx, err)
  35271. return graphql.Null
  35272. }
  35273. if resTmp == nil {
  35274. if !graphql.HasFieldError(ctx, fc) {
  35275. ec.Errorf(ctx, "must not be null")
  35276. }
  35277. return graphql.Null
  35278. }
  35279. res := resTmp.(string)
  35280. fc.Result = res
  35281. return ec.marshalNString2string(ctx, field.Selections, res)
  35282. }
  35283. func (ec *executionContext) fieldContext_AppEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  35284. fc = &graphql.FieldContext{
  35285. Object: "AppEdge",
  35286. Field: field,
  35287. IsMethod: false,
  35288. IsResolver: false,
  35289. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  35290. return nil, errors.New("field of type String does not have child fields")
  35291. },
  35292. }
  35293. return fc, nil
  35294. }
  35295. func (ec *executionContext) _AppEdge_node(ctx context.Context, field graphql.CollectedField, obj *AppEdge) (ret graphql.Marshaler) {
  35296. fc, err := ec.fieldContext_AppEdge_node(ctx, field)
  35297. if err != nil {
  35298. return graphql.Null
  35299. }
  35300. ctx = graphql.WithFieldContext(ctx, fc)
  35301. defer func() {
  35302. if r := recover(); r != nil {
  35303. ec.Error(ctx, ec.Recover(ctx, r))
  35304. ret = graphql.Null
  35305. }
  35306. }()
  35307. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  35308. ctx = rctx // use context from middleware stack in children
  35309. return obj.Node, nil
  35310. })
  35311. if err != nil {
  35312. ec.Error(ctx, err)
  35313. return graphql.Null
  35314. }
  35315. if resTmp == nil {
  35316. if !graphql.HasFieldError(ctx, fc) {
  35317. ec.Errorf(ctx, "must not be null")
  35318. }
  35319. return graphql.Null
  35320. }
  35321. res := resTmp.(*App)
  35322. fc.Result = res
  35323. return ec.marshalNApp2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐApp(ctx, field.Selections, res)
  35324. }
  35325. func (ec *executionContext) fieldContext_AppEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  35326. fc = &graphql.FieldContext{
  35327. Object: "AppEdge",
  35328. Field: field,
  35329. IsMethod: false,
  35330. IsResolver: false,
  35331. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  35332. switch field.Name {
  35333. case "apiKey":
  35334. return ec.fieldContext_App_apiKey(ctx, field)
  35335. case "appStoreAppUrl":
  35336. return ec.fieldContext_App_appStoreAppUrl(ctx, field)
  35337. case "appStoreDeveloperUrl":
  35338. return ec.fieldContext_App_appStoreDeveloperUrl(ctx, field)
  35339. case "availableAccessScopes":
  35340. return ec.fieldContext_App_availableAccessScopes(ctx, field)
  35341. case "banner":
  35342. return ec.fieldContext_App_banner(ctx, field)
  35343. case "description":
  35344. return ec.fieldContext_App_description(ctx, field)
  35345. case "developerName":
  35346. return ec.fieldContext_App_developerName(ctx, field)
  35347. case "developerType":
  35348. return ec.fieldContext_App_developerType(ctx, field)
  35349. case "embedded":
  35350. return ec.fieldContext_App_embedded(ctx, field)
  35351. case "failedRequirements":
  35352. return ec.fieldContext_App_failedRequirements(ctx, field)
  35353. case "features":
  35354. return ec.fieldContext_App_features(ctx, field)
  35355. case "feedback":
  35356. return ec.fieldContext_App_feedback(ctx, field)
  35357. case "handle":
  35358. return ec.fieldContext_App_handle(ctx, field)
  35359. case "icon":
  35360. return ec.fieldContext_App_icon(ctx, field)
  35361. case "id":
  35362. return ec.fieldContext_App_id(ctx, field)
  35363. case "installUrl":
  35364. return ec.fieldContext_App_installUrl(ctx, field)
  35365. case "installation":
  35366. return ec.fieldContext_App_installation(ctx, field)
  35367. case "isPostPurchaseAppInUse":
  35368. return ec.fieldContext_App_isPostPurchaseAppInUse(ctx, field)
  35369. case "previouslyInstalled":
  35370. return ec.fieldContext_App_previouslyInstalled(ctx, field)
  35371. case "pricingDetails":
  35372. return ec.fieldContext_App_pricingDetails(ctx, field)
  35373. case "pricingDetailsSummary":
  35374. return ec.fieldContext_App_pricingDetailsSummary(ctx, field)
  35375. case "privacyPolicyUrl":
  35376. return ec.fieldContext_App_privacyPolicyUrl(ctx, field)
  35377. case "publicCategory":
  35378. return ec.fieldContext_App_publicCategory(ctx, field)
  35379. case "published":
  35380. return ec.fieldContext_App_published(ctx, field)
  35381. case "requestedAccessScopes":
  35382. return ec.fieldContext_App_requestedAccessScopes(ctx, field)
  35383. case "screenshots":
  35384. return ec.fieldContext_App_screenshots(ctx, field)
  35385. case "shopifyDeveloped":
  35386. return ec.fieldContext_App_shopifyDeveloped(ctx, field)
  35387. case "title":
  35388. return ec.fieldContext_App_title(ctx, field)
  35389. case "uninstallMessage":
  35390. return ec.fieldContext_App_uninstallMessage(ctx, field)
  35391. case "webhookApiVersion":
  35392. return ec.fieldContext_App_webhookApiVersion(ctx, field)
  35393. }
  35394. return nil, fmt.Errorf("no field named %q was found under type App", field.Name)
  35395. },
  35396. }
  35397. return fc, nil
  35398. }
  35399. func (ec *executionContext) _AppFeedback_app(ctx context.Context, field graphql.CollectedField, obj *AppFeedback) (ret graphql.Marshaler) {
  35400. fc, err := ec.fieldContext_AppFeedback_app(ctx, field)
  35401. if err != nil {
  35402. return graphql.Null
  35403. }
  35404. ctx = graphql.WithFieldContext(ctx, fc)
  35405. defer func() {
  35406. if r := recover(); r != nil {
  35407. ec.Error(ctx, ec.Recover(ctx, r))
  35408. ret = graphql.Null
  35409. }
  35410. }()
  35411. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  35412. ctx = rctx // use context from middleware stack in children
  35413. return obj.App, nil
  35414. })
  35415. if err != nil {
  35416. ec.Error(ctx, err)
  35417. return graphql.Null
  35418. }
  35419. if resTmp == nil {
  35420. if !graphql.HasFieldError(ctx, fc) {
  35421. ec.Errorf(ctx, "must not be null")
  35422. }
  35423. return graphql.Null
  35424. }
  35425. res := resTmp.(*App)
  35426. fc.Result = res
  35427. return ec.marshalNApp2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐApp(ctx, field.Selections, res)
  35428. }
  35429. func (ec *executionContext) fieldContext_AppFeedback_app(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  35430. fc = &graphql.FieldContext{
  35431. Object: "AppFeedback",
  35432. Field: field,
  35433. IsMethod: false,
  35434. IsResolver: false,
  35435. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  35436. switch field.Name {
  35437. case "apiKey":
  35438. return ec.fieldContext_App_apiKey(ctx, field)
  35439. case "appStoreAppUrl":
  35440. return ec.fieldContext_App_appStoreAppUrl(ctx, field)
  35441. case "appStoreDeveloperUrl":
  35442. return ec.fieldContext_App_appStoreDeveloperUrl(ctx, field)
  35443. case "availableAccessScopes":
  35444. return ec.fieldContext_App_availableAccessScopes(ctx, field)
  35445. case "banner":
  35446. return ec.fieldContext_App_banner(ctx, field)
  35447. case "description":
  35448. return ec.fieldContext_App_description(ctx, field)
  35449. case "developerName":
  35450. return ec.fieldContext_App_developerName(ctx, field)
  35451. case "developerType":
  35452. return ec.fieldContext_App_developerType(ctx, field)
  35453. case "embedded":
  35454. return ec.fieldContext_App_embedded(ctx, field)
  35455. case "failedRequirements":
  35456. return ec.fieldContext_App_failedRequirements(ctx, field)
  35457. case "features":
  35458. return ec.fieldContext_App_features(ctx, field)
  35459. case "feedback":
  35460. return ec.fieldContext_App_feedback(ctx, field)
  35461. case "handle":
  35462. return ec.fieldContext_App_handle(ctx, field)
  35463. case "icon":
  35464. return ec.fieldContext_App_icon(ctx, field)
  35465. case "id":
  35466. return ec.fieldContext_App_id(ctx, field)
  35467. case "installUrl":
  35468. return ec.fieldContext_App_installUrl(ctx, field)
  35469. case "installation":
  35470. return ec.fieldContext_App_installation(ctx, field)
  35471. case "isPostPurchaseAppInUse":
  35472. return ec.fieldContext_App_isPostPurchaseAppInUse(ctx, field)
  35473. case "previouslyInstalled":
  35474. return ec.fieldContext_App_previouslyInstalled(ctx, field)
  35475. case "pricingDetails":
  35476. return ec.fieldContext_App_pricingDetails(ctx, field)
  35477. case "pricingDetailsSummary":
  35478. return ec.fieldContext_App_pricingDetailsSummary(ctx, field)
  35479. case "privacyPolicyUrl":
  35480. return ec.fieldContext_App_privacyPolicyUrl(ctx, field)
  35481. case "publicCategory":
  35482. return ec.fieldContext_App_publicCategory(ctx, field)
  35483. case "published":
  35484. return ec.fieldContext_App_published(ctx, field)
  35485. case "requestedAccessScopes":
  35486. return ec.fieldContext_App_requestedAccessScopes(ctx, field)
  35487. case "screenshots":
  35488. return ec.fieldContext_App_screenshots(ctx, field)
  35489. case "shopifyDeveloped":
  35490. return ec.fieldContext_App_shopifyDeveloped(ctx, field)
  35491. case "title":
  35492. return ec.fieldContext_App_title(ctx, field)
  35493. case "uninstallMessage":
  35494. return ec.fieldContext_App_uninstallMessage(ctx, field)
  35495. case "webhookApiVersion":
  35496. return ec.fieldContext_App_webhookApiVersion(ctx, field)
  35497. }
  35498. return nil, fmt.Errorf("no field named %q was found under type App", field.Name)
  35499. },
  35500. }
  35501. return fc, nil
  35502. }
  35503. func (ec *executionContext) _AppFeedback_link(ctx context.Context, field graphql.CollectedField, obj *AppFeedback) (ret graphql.Marshaler) {
  35504. fc, err := ec.fieldContext_AppFeedback_link(ctx, field)
  35505. if err != nil {
  35506. return graphql.Null
  35507. }
  35508. ctx = graphql.WithFieldContext(ctx, fc)
  35509. defer func() {
  35510. if r := recover(); r != nil {
  35511. ec.Error(ctx, ec.Recover(ctx, r))
  35512. ret = graphql.Null
  35513. }
  35514. }()
  35515. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  35516. ctx = rctx // use context from middleware stack in children
  35517. return obj.Link, nil
  35518. })
  35519. if err != nil {
  35520. ec.Error(ctx, err)
  35521. return graphql.Null
  35522. }
  35523. if resTmp == nil {
  35524. return graphql.Null
  35525. }
  35526. res := resTmp.(*Link)
  35527. fc.Result = res
  35528. return ec.marshalOLink2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLink(ctx, field.Selections, res)
  35529. }
  35530. func (ec *executionContext) fieldContext_AppFeedback_link(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  35531. fc = &graphql.FieldContext{
  35532. Object: "AppFeedback",
  35533. Field: field,
  35534. IsMethod: false,
  35535. IsResolver: false,
  35536. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  35537. switch field.Name {
  35538. case "label":
  35539. return ec.fieldContext_Link_label(ctx, field)
  35540. case "translations":
  35541. return ec.fieldContext_Link_translations(ctx, field)
  35542. case "url":
  35543. return ec.fieldContext_Link_url(ctx, field)
  35544. }
  35545. return nil, fmt.Errorf("no field named %q was found under type Link", field.Name)
  35546. },
  35547. }
  35548. return fc, nil
  35549. }
  35550. func (ec *executionContext) _AppFeedback_messages(ctx context.Context, field graphql.CollectedField, obj *AppFeedback) (ret graphql.Marshaler) {
  35551. fc, err := ec.fieldContext_AppFeedback_messages(ctx, field)
  35552. if err != nil {
  35553. return graphql.Null
  35554. }
  35555. ctx = graphql.WithFieldContext(ctx, fc)
  35556. defer func() {
  35557. if r := recover(); r != nil {
  35558. ec.Error(ctx, ec.Recover(ctx, r))
  35559. ret = graphql.Null
  35560. }
  35561. }()
  35562. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  35563. ctx = rctx // use context from middleware stack in children
  35564. return obj.Messages, nil
  35565. })
  35566. if err != nil {
  35567. ec.Error(ctx, err)
  35568. return graphql.Null
  35569. }
  35570. if resTmp == nil {
  35571. if !graphql.HasFieldError(ctx, fc) {
  35572. ec.Errorf(ctx, "must not be null")
  35573. }
  35574. return graphql.Null
  35575. }
  35576. res := resTmp.([]*UserError)
  35577. fc.Result = res
  35578. return ec.marshalNUserError2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐUserErrorᚄ(ctx, field.Selections, res)
  35579. }
  35580. func (ec *executionContext) fieldContext_AppFeedback_messages(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  35581. fc = &graphql.FieldContext{
  35582. Object: "AppFeedback",
  35583. Field: field,
  35584. IsMethod: false,
  35585. IsResolver: false,
  35586. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  35587. switch field.Name {
  35588. case "field":
  35589. return ec.fieldContext_UserError_field(ctx, field)
  35590. case "message":
  35591. return ec.fieldContext_UserError_message(ctx, field)
  35592. }
  35593. return nil, fmt.Errorf("no field named %q was found under type UserError", field.Name)
  35594. },
  35595. }
  35596. return fc, nil
  35597. }
  35598. func (ec *executionContext) _AppInstallation_accessScopes(ctx context.Context, field graphql.CollectedField, obj *AppInstallation) (ret graphql.Marshaler) {
  35599. fc, err := ec.fieldContext_AppInstallation_accessScopes(ctx, field)
  35600. if err != nil {
  35601. return graphql.Null
  35602. }
  35603. ctx = graphql.WithFieldContext(ctx, fc)
  35604. defer func() {
  35605. if r := recover(); r != nil {
  35606. ec.Error(ctx, ec.Recover(ctx, r))
  35607. ret = graphql.Null
  35608. }
  35609. }()
  35610. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  35611. ctx = rctx // use context from middleware stack in children
  35612. return obj.AccessScopes, nil
  35613. })
  35614. if err != nil {
  35615. ec.Error(ctx, err)
  35616. return graphql.Null
  35617. }
  35618. if resTmp == nil {
  35619. if !graphql.HasFieldError(ctx, fc) {
  35620. ec.Errorf(ctx, "must not be null")
  35621. }
  35622. return graphql.Null
  35623. }
  35624. res := resTmp.([]*AccessScope)
  35625. fc.Result = res
  35626. return ec.marshalNAccessScope2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAccessScopeᚄ(ctx, field.Selections, res)
  35627. }
  35628. func (ec *executionContext) fieldContext_AppInstallation_accessScopes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  35629. fc = &graphql.FieldContext{
  35630. Object: "AppInstallation",
  35631. Field: field,
  35632. IsMethod: false,
  35633. IsResolver: false,
  35634. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  35635. switch field.Name {
  35636. case "description":
  35637. return ec.fieldContext_AccessScope_description(ctx, field)
  35638. case "handle":
  35639. return ec.fieldContext_AccessScope_handle(ctx, field)
  35640. }
  35641. return nil, fmt.Errorf("no field named %q was found under type AccessScope", field.Name)
  35642. },
  35643. }
  35644. return fc, nil
  35645. }
  35646. func (ec *executionContext) _AppInstallation_activeSubscriptions(ctx context.Context, field graphql.CollectedField, obj *AppInstallation) (ret graphql.Marshaler) {
  35647. fc, err := ec.fieldContext_AppInstallation_activeSubscriptions(ctx, field)
  35648. if err != nil {
  35649. return graphql.Null
  35650. }
  35651. ctx = graphql.WithFieldContext(ctx, fc)
  35652. defer func() {
  35653. if r := recover(); r != nil {
  35654. ec.Error(ctx, ec.Recover(ctx, r))
  35655. ret = graphql.Null
  35656. }
  35657. }()
  35658. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  35659. ctx = rctx // use context from middleware stack in children
  35660. return obj.ActiveSubscriptions, nil
  35661. })
  35662. if err != nil {
  35663. ec.Error(ctx, err)
  35664. return graphql.Null
  35665. }
  35666. if resTmp == nil {
  35667. if !graphql.HasFieldError(ctx, fc) {
  35668. ec.Errorf(ctx, "must not be null")
  35669. }
  35670. return graphql.Null
  35671. }
  35672. res := resTmp.([]*AppSubscription)
  35673. fc.Result = res
  35674. return ec.marshalNAppSubscription2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppSubscriptionᚄ(ctx, field.Selections, res)
  35675. }
  35676. func (ec *executionContext) fieldContext_AppInstallation_activeSubscriptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  35677. fc = &graphql.FieldContext{
  35678. Object: "AppInstallation",
  35679. Field: field,
  35680. IsMethod: false,
  35681. IsResolver: false,
  35682. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  35683. switch field.Name {
  35684. case "createdAt":
  35685. return ec.fieldContext_AppSubscription_createdAt(ctx, field)
  35686. case "currentPeriodEnd":
  35687. return ec.fieldContext_AppSubscription_currentPeriodEnd(ctx, field)
  35688. case "id":
  35689. return ec.fieldContext_AppSubscription_id(ctx, field)
  35690. case "lineItems":
  35691. return ec.fieldContext_AppSubscription_lineItems(ctx, field)
  35692. case "name":
  35693. return ec.fieldContext_AppSubscription_name(ctx, field)
  35694. case "returnUrl":
  35695. return ec.fieldContext_AppSubscription_returnUrl(ctx, field)
  35696. case "status":
  35697. return ec.fieldContext_AppSubscription_status(ctx, field)
  35698. case "test":
  35699. return ec.fieldContext_AppSubscription_test(ctx, field)
  35700. case "trialDays":
  35701. return ec.fieldContext_AppSubscription_trialDays(ctx, field)
  35702. }
  35703. return nil, fmt.Errorf("no field named %q was found under type AppSubscription", field.Name)
  35704. },
  35705. }
  35706. return fc, nil
  35707. }
  35708. func (ec *executionContext) _AppInstallation_allSubscriptions(ctx context.Context, field graphql.CollectedField, obj *AppInstallation) (ret graphql.Marshaler) {
  35709. fc, err := ec.fieldContext_AppInstallation_allSubscriptions(ctx, field)
  35710. if err != nil {
  35711. return graphql.Null
  35712. }
  35713. ctx = graphql.WithFieldContext(ctx, fc)
  35714. defer func() {
  35715. if r := recover(); r != nil {
  35716. ec.Error(ctx, ec.Recover(ctx, r))
  35717. ret = graphql.Null
  35718. }
  35719. }()
  35720. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  35721. ctx = rctx // use context from middleware stack in children
  35722. return obj.AllSubscriptions, nil
  35723. })
  35724. if err != nil {
  35725. ec.Error(ctx, err)
  35726. return graphql.Null
  35727. }
  35728. if resTmp == nil {
  35729. if !graphql.HasFieldError(ctx, fc) {
  35730. ec.Errorf(ctx, "must not be null")
  35731. }
  35732. return graphql.Null
  35733. }
  35734. res := resTmp.(*AppSubscriptionConnection)
  35735. fc.Result = res
  35736. return ec.marshalNAppSubscriptionConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppSubscriptionConnection(ctx, field.Selections, res)
  35737. }
  35738. func (ec *executionContext) fieldContext_AppInstallation_allSubscriptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  35739. fc = &graphql.FieldContext{
  35740. Object: "AppInstallation",
  35741. Field: field,
  35742. IsMethod: false,
  35743. IsResolver: false,
  35744. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  35745. switch field.Name {
  35746. case "edges":
  35747. return ec.fieldContext_AppSubscriptionConnection_edges(ctx, field)
  35748. case "nodes":
  35749. return ec.fieldContext_AppSubscriptionConnection_nodes(ctx, field)
  35750. case "pageInfo":
  35751. return ec.fieldContext_AppSubscriptionConnection_pageInfo(ctx, field)
  35752. }
  35753. return nil, fmt.Errorf("no field named %q was found under type AppSubscriptionConnection", field.Name)
  35754. },
  35755. }
  35756. defer func() {
  35757. if r := recover(); r != nil {
  35758. err = ec.Recover(ctx, r)
  35759. ec.Error(ctx, err)
  35760. }
  35761. }()
  35762. ctx = graphql.WithFieldContext(ctx, fc)
  35763. if fc.Args, err = ec.field_AppInstallation_allSubscriptions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  35764. ec.Error(ctx, err)
  35765. return
  35766. }
  35767. return fc, nil
  35768. }
  35769. func (ec *executionContext) _AppInstallation_app(ctx context.Context, field graphql.CollectedField, obj *AppInstallation) (ret graphql.Marshaler) {
  35770. fc, err := ec.fieldContext_AppInstallation_app(ctx, field)
  35771. if err != nil {
  35772. return graphql.Null
  35773. }
  35774. ctx = graphql.WithFieldContext(ctx, fc)
  35775. defer func() {
  35776. if r := recover(); r != nil {
  35777. ec.Error(ctx, ec.Recover(ctx, r))
  35778. ret = graphql.Null
  35779. }
  35780. }()
  35781. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  35782. ctx = rctx // use context from middleware stack in children
  35783. return obj.App, nil
  35784. })
  35785. if err != nil {
  35786. ec.Error(ctx, err)
  35787. return graphql.Null
  35788. }
  35789. if resTmp == nil {
  35790. if !graphql.HasFieldError(ctx, fc) {
  35791. ec.Errorf(ctx, "must not be null")
  35792. }
  35793. return graphql.Null
  35794. }
  35795. res := resTmp.(*App)
  35796. fc.Result = res
  35797. return ec.marshalNApp2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐApp(ctx, field.Selections, res)
  35798. }
  35799. func (ec *executionContext) fieldContext_AppInstallation_app(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  35800. fc = &graphql.FieldContext{
  35801. Object: "AppInstallation",
  35802. Field: field,
  35803. IsMethod: false,
  35804. IsResolver: false,
  35805. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  35806. switch field.Name {
  35807. case "apiKey":
  35808. return ec.fieldContext_App_apiKey(ctx, field)
  35809. case "appStoreAppUrl":
  35810. return ec.fieldContext_App_appStoreAppUrl(ctx, field)
  35811. case "appStoreDeveloperUrl":
  35812. return ec.fieldContext_App_appStoreDeveloperUrl(ctx, field)
  35813. case "availableAccessScopes":
  35814. return ec.fieldContext_App_availableAccessScopes(ctx, field)
  35815. case "banner":
  35816. return ec.fieldContext_App_banner(ctx, field)
  35817. case "description":
  35818. return ec.fieldContext_App_description(ctx, field)
  35819. case "developerName":
  35820. return ec.fieldContext_App_developerName(ctx, field)
  35821. case "developerType":
  35822. return ec.fieldContext_App_developerType(ctx, field)
  35823. case "embedded":
  35824. return ec.fieldContext_App_embedded(ctx, field)
  35825. case "failedRequirements":
  35826. return ec.fieldContext_App_failedRequirements(ctx, field)
  35827. case "features":
  35828. return ec.fieldContext_App_features(ctx, field)
  35829. case "feedback":
  35830. return ec.fieldContext_App_feedback(ctx, field)
  35831. case "handle":
  35832. return ec.fieldContext_App_handle(ctx, field)
  35833. case "icon":
  35834. return ec.fieldContext_App_icon(ctx, field)
  35835. case "id":
  35836. return ec.fieldContext_App_id(ctx, field)
  35837. case "installUrl":
  35838. return ec.fieldContext_App_installUrl(ctx, field)
  35839. case "installation":
  35840. return ec.fieldContext_App_installation(ctx, field)
  35841. case "isPostPurchaseAppInUse":
  35842. return ec.fieldContext_App_isPostPurchaseAppInUse(ctx, field)
  35843. case "previouslyInstalled":
  35844. return ec.fieldContext_App_previouslyInstalled(ctx, field)
  35845. case "pricingDetails":
  35846. return ec.fieldContext_App_pricingDetails(ctx, field)
  35847. case "pricingDetailsSummary":
  35848. return ec.fieldContext_App_pricingDetailsSummary(ctx, field)
  35849. case "privacyPolicyUrl":
  35850. return ec.fieldContext_App_privacyPolicyUrl(ctx, field)
  35851. case "publicCategory":
  35852. return ec.fieldContext_App_publicCategory(ctx, field)
  35853. case "published":
  35854. return ec.fieldContext_App_published(ctx, field)
  35855. case "requestedAccessScopes":
  35856. return ec.fieldContext_App_requestedAccessScopes(ctx, field)
  35857. case "screenshots":
  35858. return ec.fieldContext_App_screenshots(ctx, field)
  35859. case "shopifyDeveloped":
  35860. return ec.fieldContext_App_shopifyDeveloped(ctx, field)
  35861. case "title":
  35862. return ec.fieldContext_App_title(ctx, field)
  35863. case "uninstallMessage":
  35864. return ec.fieldContext_App_uninstallMessage(ctx, field)
  35865. case "webhookApiVersion":
  35866. return ec.fieldContext_App_webhookApiVersion(ctx, field)
  35867. }
  35868. return nil, fmt.Errorf("no field named %q was found under type App", field.Name)
  35869. },
  35870. }
  35871. return fc, nil
  35872. }
  35873. func (ec *executionContext) _AppInstallation_credits(ctx context.Context, field graphql.CollectedField, obj *AppInstallation) (ret graphql.Marshaler) {
  35874. fc, err := ec.fieldContext_AppInstallation_credits(ctx, field)
  35875. if err != nil {
  35876. return graphql.Null
  35877. }
  35878. ctx = graphql.WithFieldContext(ctx, fc)
  35879. defer func() {
  35880. if r := recover(); r != nil {
  35881. ec.Error(ctx, ec.Recover(ctx, r))
  35882. ret = graphql.Null
  35883. }
  35884. }()
  35885. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  35886. ctx = rctx // use context from middleware stack in children
  35887. return obj.Credits, nil
  35888. })
  35889. if err != nil {
  35890. ec.Error(ctx, err)
  35891. return graphql.Null
  35892. }
  35893. if resTmp == nil {
  35894. if !graphql.HasFieldError(ctx, fc) {
  35895. ec.Errorf(ctx, "must not be null")
  35896. }
  35897. return graphql.Null
  35898. }
  35899. res := resTmp.(*AppCreditConnection)
  35900. fc.Result = res
  35901. return ec.marshalNAppCreditConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppCreditConnection(ctx, field.Selections, res)
  35902. }
  35903. func (ec *executionContext) fieldContext_AppInstallation_credits(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  35904. fc = &graphql.FieldContext{
  35905. Object: "AppInstallation",
  35906. Field: field,
  35907. IsMethod: false,
  35908. IsResolver: false,
  35909. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  35910. switch field.Name {
  35911. case "edges":
  35912. return ec.fieldContext_AppCreditConnection_edges(ctx, field)
  35913. case "nodes":
  35914. return ec.fieldContext_AppCreditConnection_nodes(ctx, field)
  35915. case "pageInfo":
  35916. return ec.fieldContext_AppCreditConnection_pageInfo(ctx, field)
  35917. }
  35918. return nil, fmt.Errorf("no field named %q was found under type AppCreditConnection", field.Name)
  35919. },
  35920. }
  35921. defer func() {
  35922. if r := recover(); r != nil {
  35923. err = ec.Recover(ctx, r)
  35924. ec.Error(ctx, err)
  35925. }
  35926. }()
  35927. ctx = graphql.WithFieldContext(ctx, fc)
  35928. if fc.Args, err = ec.field_AppInstallation_credits_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  35929. ec.Error(ctx, err)
  35930. return
  35931. }
  35932. return fc, nil
  35933. }
  35934. func (ec *executionContext) _AppInstallation_id(ctx context.Context, field graphql.CollectedField, obj *AppInstallation) (ret graphql.Marshaler) {
  35935. fc, err := ec.fieldContext_AppInstallation_id(ctx, field)
  35936. if err != nil {
  35937. return graphql.Null
  35938. }
  35939. ctx = graphql.WithFieldContext(ctx, fc)
  35940. defer func() {
  35941. if r := recover(); r != nil {
  35942. ec.Error(ctx, ec.Recover(ctx, r))
  35943. ret = graphql.Null
  35944. }
  35945. }()
  35946. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  35947. ctx = rctx // use context from middleware stack in children
  35948. return obj.ID, nil
  35949. })
  35950. if err != nil {
  35951. ec.Error(ctx, err)
  35952. return graphql.Null
  35953. }
  35954. if resTmp == nil {
  35955. if !graphql.HasFieldError(ctx, fc) {
  35956. ec.Errorf(ctx, "must not be null")
  35957. }
  35958. return graphql.Null
  35959. }
  35960. res := resTmp.(string)
  35961. fc.Result = res
  35962. return ec.marshalNID2string(ctx, field.Selections, res)
  35963. }
  35964. func (ec *executionContext) fieldContext_AppInstallation_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  35965. fc = &graphql.FieldContext{
  35966. Object: "AppInstallation",
  35967. Field: field,
  35968. IsMethod: false,
  35969. IsResolver: false,
  35970. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  35971. return nil, errors.New("field of type ID does not have child fields")
  35972. },
  35973. }
  35974. return fc, nil
  35975. }
  35976. func (ec *executionContext) _AppInstallation_launchUrl(ctx context.Context, field graphql.CollectedField, obj *AppInstallation) (ret graphql.Marshaler) {
  35977. fc, err := ec.fieldContext_AppInstallation_launchUrl(ctx, field)
  35978. if err != nil {
  35979. return graphql.Null
  35980. }
  35981. ctx = graphql.WithFieldContext(ctx, fc)
  35982. defer func() {
  35983. if r := recover(); r != nil {
  35984. ec.Error(ctx, ec.Recover(ctx, r))
  35985. ret = graphql.Null
  35986. }
  35987. }()
  35988. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  35989. ctx = rctx // use context from middleware stack in children
  35990. return obj.LaunchURL, nil
  35991. })
  35992. if err != nil {
  35993. ec.Error(ctx, err)
  35994. return graphql.Null
  35995. }
  35996. if resTmp == nil {
  35997. if !graphql.HasFieldError(ctx, fc) {
  35998. ec.Errorf(ctx, "must not be null")
  35999. }
  36000. return graphql.Null
  36001. }
  36002. res := resTmp.(string)
  36003. fc.Result = res
  36004. return ec.marshalNURL2string(ctx, field.Selections, res)
  36005. }
  36006. func (ec *executionContext) fieldContext_AppInstallation_launchUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  36007. fc = &graphql.FieldContext{
  36008. Object: "AppInstallation",
  36009. Field: field,
  36010. IsMethod: false,
  36011. IsResolver: false,
  36012. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  36013. return nil, errors.New("field of type URL does not have child fields")
  36014. },
  36015. }
  36016. return fc, nil
  36017. }
  36018. func (ec *executionContext) _AppInstallation_metafield(ctx context.Context, field graphql.CollectedField, obj *AppInstallation) (ret graphql.Marshaler) {
  36019. fc, err := ec.fieldContext_AppInstallation_metafield(ctx, field)
  36020. if err != nil {
  36021. return graphql.Null
  36022. }
  36023. ctx = graphql.WithFieldContext(ctx, fc)
  36024. defer func() {
  36025. if r := recover(); r != nil {
  36026. ec.Error(ctx, ec.Recover(ctx, r))
  36027. ret = graphql.Null
  36028. }
  36029. }()
  36030. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  36031. ctx = rctx // use context from middleware stack in children
  36032. return obj.Metafield, nil
  36033. })
  36034. if err != nil {
  36035. ec.Error(ctx, err)
  36036. return graphql.Null
  36037. }
  36038. if resTmp == nil {
  36039. return graphql.Null
  36040. }
  36041. res := resTmp.(*Metafield)
  36042. fc.Result = res
  36043. return ec.marshalOMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafield(ctx, field.Selections, res)
  36044. }
  36045. func (ec *executionContext) fieldContext_AppInstallation_metafield(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  36046. fc = &graphql.FieldContext{
  36047. Object: "AppInstallation",
  36048. Field: field,
  36049. IsMethod: false,
  36050. IsResolver: false,
  36051. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  36052. switch field.Name {
  36053. case "createdAt":
  36054. return ec.fieldContext_Metafield_createdAt(ctx, field)
  36055. case "definition":
  36056. return ec.fieldContext_Metafield_definition(ctx, field)
  36057. case "description":
  36058. return ec.fieldContext_Metafield_description(ctx, field)
  36059. case "id":
  36060. return ec.fieldContext_Metafield_id(ctx, field)
  36061. case "key":
  36062. return ec.fieldContext_Metafield_key(ctx, field)
  36063. case "legacyResourceId":
  36064. return ec.fieldContext_Metafield_legacyResourceId(ctx, field)
  36065. case "namespace":
  36066. return ec.fieldContext_Metafield_namespace(ctx, field)
  36067. case "owner":
  36068. return ec.fieldContext_Metafield_owner(ctx, field)
  36069. case "ownerType":
  36070. return ec.fieldContext_Metafield_ownerType(ctx, field)
  36071. case "reference":
  36072. return ec.fieldContext_Metafield_reference(ctx, field)
  36073. case "references":
  36074. return ec.fieldContext_Metafield_references(ctx, field)
  36075. case "type":
  36076. return ec.fieldContext_Metafield_type(ctx, field)
  36077. case "updatedAt":
  36078. return ec.fieldContext_Metafield_updatedAt(ctx, field)
  36079. case "value":
  36080. return ec.fieldContext_Metafield_value(ctx, field)
  36081. }
  36082. return nil, fmt.Errorf("no field named %q was found under type Metafield", field.Name)
  36083. },
  36084. }
  36085. defer func() {
  36086. if r := recover(); r != nil {
  36087. err = ec.Recover(ctx, r)
  36088. ec.Error(ctx, err)
  36089. }
  36090. }()
  36091. ctx = graphql.WithFieldContext(ctx, fc)
  36092. if fc.Args, err = ec.field_AppInstallation_metafield_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  36093. ec.Error(ctx, err)
  36094. return
  36095. }
  36096. return fc, nil
  36097. }
  36098. func (ec *executionContext) _AppInstallation_metafields(ctx context.Context, field graphql.CollectedField, obj *AppInstallation) (ret graphql.Marshaler) {
  36099. fc, err := ec.fieldContext_AppInstallation_metafields(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.Metafields, 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.(*MetafieldConnection)
  36125. fc.Result = res
  36126. return ec.marshalNMetafieldConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldConnection(ctx, field.Selections, res)
  36127. }
  36128. func (ec *executionContext) fieldContext_AppInstallation_metafields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  36129. fc = &graphql.FieldContext{
  36130. Object: "AppInstallation",
  36131. Field: field,
  36132. IsMethod: false,
  36133. IsResolver: false,
  36134. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  36135. switch field.Name {
  36136. case "edges":
  36137. return ec.fieldContext_MetafieldConnection_edges(ctx, field)
  36138. case "nodes":
  36139. return ec.fieldContext_MetafieldConnection_nodes(ctx, field)
  36140. case "pageInfo":
  36141. return ec.fieldContext_MetafieldConnection_pageInfo(ctx, field)
  36142. }
  36143. return nil, fmt.Errorf("no field named %q was found under type MetafieldConnection", field.Name)
  36144. },
  36145. }
  36146. defer func() {
  36147. if r := recover(); r != nil {
  36148. err = ec.Recover(ctx, r)
  36149. ec.Error(ctx, err)
  36150. }
  36151. }()
  36152. ctx = graphql.WithFieldContext(ctx, fc)
  36153. if fc.Args, err = ec.field_AppInstallation_metafields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  36154. ec.Error(ctx, err)
  36155. return
  36156. }
  36157. return fc, nil
  36158. }
  36159. func (ec *executionContext) _AppInstallation_oneTimePurchases(ctx context.Context, field graphql.CollectedField, obj *AppInstallation) (ret graphql.Marshaler) {
  36160. fc, err := ec.fieldContext_AppInstallation_oneTimePurchases(ctx, field)
  36161. if err != nil {
  36162. return graphql.Null
  36163. }
  36164. ctx = graphql.WithFieldContext(ctx, fc)
  36165. defer func() {
  36166. if r := recover(); r != nil {
  36167. ec.Error(ctx, ec.Recover(ctx, r))
  36168. ret = graphql.Null
  36169. }
  36170. }()
  36171. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  36172. ctx = rctx // use context from middleware stack in children
  36173. return obj.OneTimePurchases, nil
  36174. })
  36175. if err != nil {
  36176. ec.Error(ctx, err)
  36177. return graphql.Null
  36178. }
  36179. if resTmp == nil {
  36180. if !graphql.HasFieldError(ctx, fc) {
  36181. ec.Errorf(ctx, "must not be null")
  36182. }
  36183. return graphql.Null
  36184. }
  36185. res := resTmp.(*AppPurchaseOneTimeConnection)
  36186. fc.Result = res
  36187. return ec.marshalNAppPurchaseOneTimeConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppPurchaseOneTimeConnection(ctx, field.Selections, res)
  36188. }
  36189. func (ec *executionContext) fieldContext_AppInstallation_oneTimePurchases(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  36190. fc = &graphql.FieldContext{
  36191. Object: "AppInstallation",
  36192. Field: field,
  36193. IsMethod: false,
  36194. IsResolver: false,
  36195. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  36196. switch field.Name {
  36197. case "edges":
  36198. return ec.fieldContext_AppPurchaseOneTimeConnection_edges(ctx, field)
  36199. case "nodes":
  36200. return ec.fieldContext_AppPurchaseOneTimeConnection_nodes(ctx, field)
  36201. case "pageInfo":
  36202. return ec.fieldContext_AppPurchaseOneTimeConnection_pageInfo(ctx, field)
  36203. }
  36204. return nil, fmt.Errorf("no field named %q was found under type AppPurchaseOneTimeConnection", field.Name)
  36205. },
  36206. }
  36207. defer func() {
  36208. if r := recover(); r != nil {
  36209. err = ec.Recover(ctx, r)
  36210. ec.Error(ctx, err)
  36211. }
  36212. }()
  36213. ctx = graphql.WithFieldContext(ctx, fc)
  36214. if fc.Args, err = ec.field_AppInstallation_oneTimePurchases_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  36215. ec.Error(ctx, err)
  36216. return
  36217. }
  36218. return fc, nil
  36219. }
  36220. func (ec *executionContext) _AppInstallation_privateMetafield(ctx context.Context, field graphql.CollectedField, obj *AppInstallation) (ret graphql.Marshaler) {
  36221. fc, err := ec.fieldContext_AppInstallation_privateMetafield(ctx, field)
  36222. if err != nil {
  36223. return graphql.Null
  36224. }
  36225. ctx = graphql.WithFieldContext(ctx, fc)
  36226. defer func() {
  36227. if r := recover(); r != nil {
  36228. ec.Error(ctx, ec.Recover(ctx, r))
  36229. ret = graphql.Null
  36230. }
  36231. }()
  36232. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  36233. ctx = rctx // use context from middleware stack in children
  36234. return obj.PrivateMetafield, nil
  36235. })
  36236. if err != nil {
  36237. ec.Error(ctx, err)
  36238. return graphql.Null
  36239. }
  36240. if resTmp == nil {
  36241. return graphql.Null
  36242. }
  36243. res := resTmp.(*PrivateMetafield)
  36244. fc.Result = res
  36245. return ec.marshalOPrivateMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafield(ctx, field.Selections, res)
  36246. }
  36247. func (ec *executionContext) fieldContext_AppInstallation_privateMetafield(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  36248. fc = &graphql.FieldContext{
  36249. Object: "AppInstallation",
  36250. Field: field,
  36251. IsMethod: false,
  36252. IsResolver: false,
  36253. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  36254. switch field.Name {
  36255. case "createdAt":
  36256. return ec.fieldContext_PrivateMetafield_createdAt(ctx, field)
  36257. case "id":
  36258. return ec.fieldContext_PrivateMetafield_id(ctx, field)
  36259. case "key":
  36260. return ec.fieldContext_PrivateMetafield_key(ctx, field)
  36261. case "namespace":
  36262. return ec.fieldContext_PrivateMetafield_namespace(ctx, field)
  36263. case "updatedAt":
  36264. return ec.fieldContext_PrivateMetafield_updatedAt(ctx, field)
  36265. case "value":
  36266. return ec.fieldContext_PrivateMetafield_value(ctx, field)
  36267. case "valueType":
  36268. return ec.fieldContext_PrivateMetafield_valueType(ctx, field)
  36269. }
  36270. return nil, fmt.Errorf("no field named %q was found under type PrivateMetafield", field.Name)
  36271. },
  36272. }
  36273. defer func() {
  36274. if r := recover(); r != nil {
  36275. err = ec.Recover(ctx, r)
  36276. ec.Error(ctx, err)
  36277. }
  36278. }()
  36279. ctx = graphql.WithFieldContext(ctx, fc)
  36280. if fc.Args, err = ec.field_AppInstallation_privateMetafield_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  36281. ec.Error(ctx, err)
  36282. return
  36283. }
  36284. return fc, nil
  36285. }
  36286. func (ec *executionContext) _AppInstallation_privateMetafields(ctx context.Context, field graphql.CollectedField, obj *AppInstallation) (ret graphql.Marshaler) {
  36287. fc, err := ec.fieldContext_AppInstallation_privateMetafields(ctx, field)
  36288. if err != nil {
  36289. return graphql.Null
  36290. }
  36291. ctx = graphql.WithFieldContext(ctx, fc)
  36292. defer func() {
  36293. if r := recover(); r != nil {
  36294. ec.Error(ctx, ec.Recover(ctx, r))
  36295. ret = graphql.Null
  36296. }
  36297. }()
  36298. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  36299. ctx = rctx // use context from middleware stack in children
  36300. return obj.PrivateMetafields, nil
  36301. })
  36302. if err != nil {
  36303. ec.Error(ctx, err)
  36304. return graphql.Null
  36305. }
  36306. if resTmp == nil {
  36307. if !graphql.HasFieldError(ctx, fc) {
  36308. ec.Errorf(ctx, "must not be null")
  36309. }
  36310. return graphql.Null
  36311. }
  36312. res := resTmp.(*PrivateMetafieldConnection)
  36313. fc.Result = res
  36314. return ec.marshalNPrivateMetafieldConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafieldConnection(ctx, field.Selections, res)
  36315. }
  36316. func (ec *executionContext) fieldContext_AppInstallation_privateMetafields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  36317. fc = &graphql.FieldContext{
  36318. Object: "AppInstallation",
  36319. Field: field,
  36320. IsMethod: false,
  36321. IsResolver: false,
  36322. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  36323. switch field.Name {
  36324. case "edges":
  36325. return ec.fieldContext_PrivateMetafieldConnection_edges(ctx, field)
  36326. case "nodes":
  36327. return ec.fieldContext_PrivateMetafieldConnection_nodes(ctx, field)
  36328. case "pageInfo":
  36329. return ec.fieldContext_PrivateMetafieldConnection_pageInfo(ctx, field)
  36330. }
  36331. return nil, fmt.Errorf("no field named %q was found under type PrivateMetafieldConnection", field.Name)
  36332. },
  36333. }
  36334. defer func() {
  36335. if r := recover(); r != nil {
  36336. err = ec.Recover(ctx, r)
  36337. ec.Error(ctx, err)
  36338. }
  36339. }()
  36340. ctx = graphql.WithFieldContext(ctx, fc)
  36341. if fc.Args, err = ec.field_AppInstallation_privateMetafields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  36342. ec.Error(ctx, err)
  36343. return
  36344. }
  36345. return fc, nil
  36346. }
  36347. func (ec *executionContext) _AppInstallation_publication(ctx context.Context, field graphql.CollectedField, obj *AppInstallation) (ret graphql.Marshaler) {
  36348. fc, err := ec.fieldContext_AppInstallation_publication(ctx, field)
  36349. if err != nil {
  36350. return graphql.Null
  36351. }
  36352. ctx = graphql.WithFieldContext(ctx, fc)
  36353. defer func() {
  36354. if r := recover(); r != nil {
  36355. ec.Error(ctx, ec.Recover(ctx, r))
  36356. ret = graphql.Null
  36357. }
  36358. }()
  36359. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  36360. ctx = rctx // use context from middleware stack in children
  36361. return obj.Publication, nil
  36362. })
  36363. if err != nil {
  36364. ec.Error(ctx, err)
  36365. return graphql.Null
  36366. }
  36367. if resTmp == nil {
  36368. return graphql.Null
  36369. }
  36370. res := resTmp.(*Publication)
  36371. fc.Result = res
  36372. return ec.marshalOPublication2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublication(ctx, field.Selections, res)
  36373. }
  36374. func (ec *executionContext) fieldContext_AppInstallation_publication(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  36375. fc = &graphql.FieldContext{
  36376. Object: "AppInstallation",
  36377. Field: field,
  36378. IsMethod: false,
  36379. IsResolver: false,
  36380. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  36381. switch field.Name {
  36382. case "app":
  36383. return ec.fieldContext_Publication_app(ctx, field)
  36384. case "collectionPublicationsV3":
  36385. return ec.fieldContext_Publication_collectionPublicationsV3(ctx, field)
  36386. case "collections":
  36387. return ec.fieldContext_Publication_collections(ctx, field)
  36388. case "hasCollection":
  36389. return ec.fieldContext_Publication_hasCollection(ctx, field)
  36390. case "id":
  36391. return ec.fieldContext_Publication_id(ctx, field)
  36392. case "name":
  36393. return ec.fieldContext_Publication_name(ctx, field)
  36394. case "productPublicationsV3":
  36395. return ec.fieldContext_Publication_productPublicationsV3(ctx, field)
  36396. case "products":
  36397. return ec.fieldContext_Publication_products(ctx, field)
  36398. case "supportsFuturePublishing":
  36399. return ec.fieldContext_Publication_supportsFuturePublishing(ctx, field)
  36400. }
  36401. return nil, fmt.Errorf("no field named %q was found under type Publication", field.Name)
  36402. },
  36403. }
  36404. return fc, nil
  36405. }
  36406. func (ec *executionContext) _AppInstallation_revenueAttributionRecords(ctx context.Context, field graphql.CollectedField, obj *AppInstallation) (ret graphql.Marshaler) {
  36407. fc, err := ec.fieldContext_AppInstallation_revenueAttributionRecords(ctx, field)
  36408. if err != nil {
  36409. return graphql.Null
  36410. }
  36411. ctx = graphql.WithFieldContext(ctx, fc)
  36412. defer func() {
  36413. if r := recover(); r != nil {
  36414. ec.Error(ctx, ec.Recover(ctx, r))
  36415. ret = graphql.Null
  36416. }
  36417. }()
  36418. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  36419. ctx = rctx // use context from middleware stack in children
  36420. return obj.RevenueAttributionRecords, nil
  36421. })
  36422. if err != nil {
  36423. ec.Error(ctx, err)
  36424. return graphql.Null
  36425. }
  36426. if resTmp == nil {
  36427. if !graphql.HasFieldError(ctx, fc) {
  36428. ec.Errorf(ctx, "must not be null")
  36429. }
  36430. return graphql.Null
  36431. }
  36432. res := resTmp.(*AppRevenueAttributionRecordConnection)
  36433. fc.Result = res
  36434. return ec.marshalNAppRevenueAttributionRecordConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppRevenueAttributionRecordConnection(ctx, field.Selections, res)
  36435. }
  36436. func (ec *executionContext) fieldContext_AppInstallation_revenueAttributionRecords(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  36437. fc = &graphql.FieldContext{
  36438. Object: "AppInstallation",
  36439. Field: field,
  36440. IsMethod: false,
  36441. IsResolver: false,
  36442. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  36443. switch field.Name {
  36444. case "edges":
  36445. return ec.fieldContext_AppRevenueAttributionRecordConnection_edges(ctx, field)
  36446. case "nodes":
  36447. return ec.fieldContext_AppRevenueAttributionRecordConnection_nodes(ctx, field)
  36448. case "pageInfo":
  36449. return ec.fieldContext_AppRevenueAttributionRecordConnection_pageInfo(ctx, field)
  36450. }
  36451. return nil, fmt.Errorf("no field named %q was found under type AppRevenueAttributionRecordConnection", field.Name)
  36452. },
  36453. }
  36454. defer func() {
  36455. if r := recover(); r != nil {
  36456. err = ec.Recover(ctx, r)
  36457. ec.Error(ctx, err)
  36458. }
  36459. }()
  36460. ctx = graphql.WithFieldContext(ctx, fc)
  36461. if fc.Args, err = ec.field_AppInstallation_revenueAttributionRecords_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  36462. ec.Error(ctx, err)
  36463. return
  36464. }
  36465. return fc, nil
  36466. }
  36467. func (ec *executionContext) _AppInstallation_uninstallUrl(ctx context.Context, field graphql.CollectedField, obj *AppInstallation) (ret graphql.Marshaler) {
  36468. fc, err := ec.fieldContext_AppInstallation_uninstallUrl(ctx, field)
  36469. if err != nil {
  36470. return graphql.Null
  36471. }
  36472. ctx = graphql.WithFieldContext(ctx, fc)
  36473. defer func() {
  36474. if r := recover(); r != nil {
  36475. ec.Error(ctx, ec.Recover(ctx, r))
  36476. ret = graphql.Null
  36477. }
  36478. }()
  36479. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  36480. ctx = rctx // use context from middleware stack in children
  36481. return obj.UninstallURL, nil
  36482. })
  36483. if err != nil {
  36484. ec.Error(ctx, err)
  36485. return graphql.Null
  36486. }
  36487. if resTmp == nil {
  36488. return graphql.Null
  36489. }
  36490. res := resTmp.(*string)
  36491. fc.Result = res
  36492. return ec.marshalOURL2ᚖstring(ctx, field.Selections, res)
  36493. }
  36494. func (ec *executionContext) fieldContext_AppInstallation_uninstallUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  36495. fc = &graphql.FieldContext{
  36496. Object: "AppInstallation",
  36497. Field: field,
  36498. IsMethod: false,
  36499. IsResolver: false,
  36500. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  36501. return nil, errors.New("field of type URL does not have child fields")
  36502. },
  36503. }
  36504. return fc, nil
  36505. }
  36506. func (ec *executionContext) _AppPlanV2_pricingDetails(ctx context.Context, field graphql.CollectedField, obj *AppPlanV2) (ret graphql.Marshaler) {
  36507. fc, err := ec.fieldContext_AppPlanV2_pricingDetails(ctx, field)
  36508. if err != nil {
  36509. return graphql.Null
  36510. }
  36511. ctx = graphql.WithFieldContext(ctx, fc)
  36512. defer func() {
  36513. if r := recover(); r != nil {
  36514. ec.Error(ctx, ec.Recover(ctx, r))
  36515. ret = graphql.Null
  36516. }
  36517. }()
  36518. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  36519. ctx = rctx // use context from middleware stack in children
  36520. return obj.PricingDetails, nil
  36521. })
  36522. if err != nil {
  36523. ec.Error(ctx, err)
  36524. return graphql.Null
  36525. }
  36526. if resTmp == nil {
  36527. if !graphql.HasFieldError(ctx, fc) {
  36528. ec.Errorf(ctx, "must not be null")
  36529. }
  36530. return graphql.Null
  36531. }
  36532. res := resTmp.(AppPricingDetails)
  36533. fc.Result = res
  36534. return ec.marshalNAppPricingDetails2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppPricingDetails(ctx, field.Selections, res)
  36535. }
  36536. func (ec *executionContext) fieldContext_AppPlanV2_pricingDetails(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  36537. fc = &graphql.FieldContext{
  36538. Object: "AppPlanV2",
  36539. Field: field,
  36540. IsMethod: false,
  36541. IsResolver: false,
  36542. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  36543. return nil, errors.New("field of type AppPricingDetails does not have child fields")
  36544. },
  36545. }
  36546. return fc, nil
  36547. }
  36548. func (ec *executionContext) _AppPurchaseOneTime_createdAt(ctx context.Context, field graphql.CollectedField, obj *AppPurchaseOneTime) (ret graphql.Marshaler) {
  36549. fc, err := ec.fieldContext_AppPurchaseOneTime_createdAt(ctx, field)
  36550. if err != nil {
  36551. return graphql.Null
  36552. }
  36553. ctx = graphql.WithFieldContext(ctx, fc)
  36554. defer func() {
  36555. if r := recover(); r != nil {
  36556. ec.Error(ctx, ec.Recover(ctx, r))
  36557. ret = graphql.Null
  36558. }
  36559. }()
  36560. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  36561. ctx = rctx // use context from middleware stack in children
  36562. return obj.CreatedAt, nil
  36563. })
  36564. if err != nil {
  36565. ec.Error(ctx, err)
  36566. return graphql.Null
  36567. }
  36568. if resTmp == nil {
  36569. if !graphql.HasFieldError(ctx, fc) {
  36570. ec.Errorf(ctx, "must not be null")
  36571. }
  36572. return graphql.Null
  36573. }
  36574. res := resTmp.(string)
  36575. fc.Result = res
  36576. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  36577. }
  36578. func (ec *executionContext) fieldContext_AppPurchaseOneTime_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  36579. fc = &graphql.FieldContext{
  36580. Object: "AppPurchaseOneTime",
  36581. Field: field,
  36582. IsMethod: false,
  36583. IsResolver: false,
  36584. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  36585. return nil, errors.New("field of type DateTime does not have child fields")
  36586. },
  36587. }
  36588. return fc, nil
  36589. }
  36590. func (ec *executionContext) _AppPurchaseOneTime_id(ctx context.Context, field graphql.CollectedField, obj *AppPurchaseOneTime) (ret graphql.Marshaler) {
  36591. fc, err := ec.fieldContext_AppPurchaseOneTime_id(ctx, field)
  36592. if err != nil {
  36593. return graphql.Null
  36594. }
  36595. ctx = graphql.WithFieldContext(ctx, fc)
  36596. defer func() {
  36597. if r := recover(); r != nil {
  36598. ec.Error(ctx, ec.Recover(ctx, r))
  36599. ret = graphql.Null
  36600. }
  36601. }()
  36602. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  36603. ctx = rctx // use context from middleware stack in children
  36604. return obj.ID, nil
  36605. })
  36606. if err != nil {
  36607. ec.Error(ctx, err)
  36608. return graphql.Null
  36609. }
  36610. if resTmp == nil {
  36611. if !graphql.HasFieldError(ctx, fc) {
  36612. ec.Errorf(ctx, "must not be null")
  36613. }
  36614. return graphql.Null
  36615. }
  36616. res := resTmp.(string)
  36617. fc.Result = res
  36618. return ec.marshalNID2string(ctx, field.Selections, res)
  36619. }
  36620. func (ec *executionContext) fieldContext_AppPurchaseOneTime_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  36621. fc = &graphql.FieldContext{
  36622. Object: "AppPurchaseOneTime",
  36623. Field: field,
  36624. IsMethod: false,
  36625. IsResolver: false,
  36626. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  36627. return nil, errors.New("field of type ID does not have child fields")
  36628. },
  36629. }
  36630. return fc, nil
  36631. }
  36632. func (ec *executionContext) _AppPurchaseOneTime_name(ctx context.Context, field graphql.CollectedField, obj *AppPurchaseOneTime) (ret graphql.Marshaler) {
  36633. fc, err := ec.fieldContext_AppPurchaseOneTime_name(ctx, field)
  36634. if err != nil {
  36635. return graphql.Null
  36636. }
  36637. ctx = graphql.WithFieldContext(ctx, fc)
  36638. defer func() {
  36639. if r := recover(); r != nil {
  36640. ec.Error(ctx, ec.Recover(ctx, r))
  36641. ret = graphql.Null
  36642. }
  36643. }()
  36644. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  36645. ctx = rctx // use context from middleware stack in children
  36646. return obj.Name, nil
  36647. })
  36648. if err != nil {
  36649. ec.Error(ctx, err)
  36650. return graphql.Null
  36651. }
  36652. if resTmp == nil {
  36653. if !graphql.HasFieldError(ctx, fc) {
  36654. ec.Errorf(ctx, "must not be null")
  36655. }
  36656. return graphql.Null
  36657. }
  36658. res := resTmp.(string)
  36659. fc.Result = res
  36660. return ec.marshalNString2string(ctx, field.Selections, res)
  36661. }
  36662. func (ec *executionContext) fieldContext_AppPurchaseOneTime_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  36663. fc = &graphql.FieldContext{
  36664. Object: "AppPurchaseOneTime",
  36665. Field: field,
  36666. IsMethod: false,
  36667. IsResolver: false,
  36668. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  36669. return nil, errors.New("field of type String does not have child fields")
  36670. },
  36671. }
  36672. return fc, nil
  36673. }
  36674. func (ec *executionContext) _AppPurchaseOneTime_price(ctx context.Context, field graphql.CollectedField, obj *AppPurchaseOneTime) (ret graphql.Marshaler) {
  36675. fc, err := ec.fieldContext_AppPurchaseOneTime_price(ctx, field)
  36676. if err != nil {
  36677. return graphql.Null
  36678. }
  36679. ctx = graphql.WithFieldContext(ctx, fc)
  36680. defer func() {
  36681. if r := recover(); r != nil {
  36682. ec.Error(ctx, ec.Recover(ctx, r))
  36683. ret = graphql.Null
  36684. }
  36685. }()
  36686. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  36687. ctx = rctx // use context from middleware stack in children
  36688. return obj.Price, nil
  36689. })
  36690. if err != nil {
  36691. ec.Error(ctx, err)
  36692. return graphql.Null
  36693. }
  36694. if resTmp == nil {
  36695. if !graphql.HasFieldError(ctx, fc) {
  36696. ec.Errorf(ctx, "must not be null")
  36697. }
  36698. return graphql.Null
  36699. }
  36700. res := resTmp.(*MoneyV2)
  36701. fc.Result = res
  36702. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  36703. }
  36704. func (ec *executionContext) fieldContext_AppPurchaseOneTime_price(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  36705. fc = &graphql.FieldContext{
  36706. Object: "AppPurchaseOneTime",
  36707. Field: field,
  36708. IsMethod: false,
  36709. IsResolver: false,
  36710. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  36711. switch field.Name {
  36712. case "amount":
  36713. return ec.fieldContext_MoneyV2_amount(ctx, field)
  36714. case "currencyCode":
  36715. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  36716. }
  36717. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  36718. },
  36719. }
  36720. return fc, nil
  36721. }
  36722. func (ec *executionContext) _AppPurchaseOneTime_status(ctx context.Context, field graphql.CollectedField, obj *AppPurchaseOneTime) (ret graphql.Marshaler) {
  36723. fc, err := ec.fieldContext_AppPurchaseOneTime_status(ctx, field)
  36724. if err != nil {
  36725. return graphql.Null
  36726. }
  36727. ctx = graphql.WithFieldContext(ctx, fc)
  36728. defer func() {
  36729. if r := recover(); r != nil {
  36730. ec.Error(ctx, ec.Recover(ctx, r))
  36731. ret = graphql.Null
  36732. }
  36733. }()
  36734. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  36735. ctx = rctx // use context from middleware stack in children
  36736. return obj.Status, nil
  36737. })
  36738. if err != nil {
  36739. ec.Error(ctx, err)
  36740. return graphql.Null
  36741. }
  36742. if resTmp == nil {
  36743. if !graphql.HasFieldError(ctx, fc) {
  36744. ec.Errorf(ctx, "must not be null")
  36745. }
  36746. return graphql.Null
  36747. }
  36748. res := resTmp.(AppPurchaseStatus)
  36749. fc.Result = res
  36750. return ec.marshalNAppPurchaseStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppPurchaseStatus(ctx, field.Selections, res)
  36751. }
  36752. func (ec *executionContext) fieldContext_AppPurchaseOneTime_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  36753. fc = &graphql.FieldContext{
  36754. Object: "AppPurchaseOneTime",
  36755. Field: field,
  36756. IsMethod: false,
  36757. IsResolver: false,
  36758. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  36759. return nil, errors.New("field of type AppPurchaseStatus does not have child fields")
  36760. },
  36761. }
  36762. return fc, nil
  36763. }
  36764. func (ec *executionContext) _AppPurchaseOneTime_test(ctx context.Context, field graphql.CollectedField, obj *AppPurchaseOneTime) (ret graphql.Marshaler) {
  36765. fc, err := ec.fieldContext_AppPurchaseOneTime_test(ctx, field)
  36766. if err != nil {
  36767. return graphql.Null
  36768. }
  36769. ctx = graphql.WithFieldContext(ctx, fc)
  36770. defer func() {
  36771. if r := recover(); r != nil {
  36772. ec.Error(ctx, ec.Recover(ctx, r))
  36773. ret = graphql.Null
  36774. }
  36775. }()
  36776. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  36777. ctx = rctx // use context from middleware stack in children
  36778. return obj.Test, nil
  36779. })
  36780. if err != nil {
  36781. ec.Error(ctx, err)
  36782. return graphql.Null
  36783. }
  36784. if resTmp == nil {
  36785. if !graphql.HasFieldError(ctx, fc) {
  36786. ec.Errorf(ctx, "must not be null")
  36787. }
  36788. return graphql.Null
  36789. }
  36790. res := resTmp.(bool)
  36791. fc.Result = res
  36792. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  36793. }
  36794. func (ec *executionContext) fieldContext_AppPurchaseOneTime_test(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  36795. fc = &graphql.FieldContext{
  36796. Object: "AppPurchaseOneTime",
  36797. Field: field,
  36798. IsMethod: false,
  36799. IsResolver: false,
  36800. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  36801. return nil, errors.New("field of type Boolean does not have child fields")
  36802. },
  36803. }
  36804. return fc, nil
  36805. }
  36806. func (ec *executionContext) _AppPurchaseOneTimeConnection_edges(ctx context.Context, field graphql.CollectedField, obj *AppPurchaseOneTimeConnection) (ret graphql.Marshaler) {
  36807. fc, err := ec.fieldContext_AppPurchaseOneTimeConnection_edges(ctx, field)
  36808. if err != nil {
  36809. return graphql.Null
  36810. }
  36811. ctx = graphql.WithFieldContext(ctx, fc)
  36812. defer func() {
  36813. if r := recover(); r != nil {
  36814. ec.Error(ctx, ec.Recover(ctx, r))
  36815. ret = graphql.Null
  36816. }
  36817. }()
  36818. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  36819. ctx = rctx // use context from middleware stack in children
  36820. return obj.Edges, nil
  36821. })
  36822. if err != nil {
  36823. ec.Error(ctx, err)
  36824. return graphql.Null
  36825. }
  36826. if resTmp == nil {
  36827. if !graphql.HasFieldError(ctx, fc) {
  36828. ec.Errorf(ctx, "must not be null")
  36829. }
  36830. return graphql.Null
  36831. }
  36832. res := resTmp.([]*AppPurchaseOneTimeEdge)
  36833. fc.Result = res
  36834. return ec.marshalNAppPurchaseOneTimeEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppPurchaseOneTimeEdgeᚄ(ctx, field.Selections, res)
  36835. }
  36836. func (ec *executionContext) fieldContext_AppPurchaseOneTimeConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  36837. fc = &graphql.FieldContext{
  36838. Object: "AppPurchaseOneTimeConnection",
  36839. Field: field,
  36840. IsMethod: false,
  36841. IsResolver: false,
  36842. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  36843. switch field.Name {
  36844. case "cursor":
  36845. return ec.fieldContext_AppPurchaseOneTimeEdge_cursor(ctx, field)
  36846. case "node":
  36847. return ec.fieldContext_AppPurchaseOneTimeEdge_node(ctx, field)
  36848. }
  36849. return nil, fmt.Errorf("no field named %q was found under type AppPurchaseOneTimeEdge", field.Name)
  36850. },
  36851. }
  36852. return fc, nil
  36853. }
  36854. func (ec *executionContext) _AppPurchaseOneTimeConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *AppPurchaseOneTimeConnection) (ret graphql.Marshaler) {
  36855. fc, err := ec.fieldContext_AppPurchaseOneTimeConnection_nodes(ctx, field)
  36856. if err != nil {
  36857. return graphql.Null
  36858. }
  36859. ctx = graphql.WithFieldContext(ctx, fc)
  36860. defer func() {
  36861. if r := recover(); r != nil {
  36862. ec.Error(ctx, ec.Recover(ctx, r))
  36863. ret = graphql.Null
  36864. }
  36865. }()
  36866. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  36867. ctx = rctx // use context from middleware stack in children
  36868. return obj.Nodes, nil
  36869. })
  36870. if err != nil {
  36871. ec.Error(ctx, err)
  36872. return graphql.Null
  36873. }
  36874. if resTmp == nil {
  36875. if !graphql.HasFieldError(ctx, fc) {
  36876. ec.Errorf(ctx, "must not be null")
  36877. }
  36878. return graphql.Null
  36879. }
  36880. res := resTmp.([]*AppPurchaseOneTime)
  36881. fc.Result = res
  36882. return ec.marshalNAppPurchaseOneTime2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppPurchaseOneTimeᚄ(ctx, field.Selections, res)
  36883. }
  36884. func (ec *executionContext) fieldContext_AppPurchaseOneTimeConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  36885. fc = &graphql.FieldContext{
  36886. Object: "AppPurchaseOneTimeConnection",
  36887. Field: field,
  36888. IsMethod: false,
  36889. IsResolver: false,
  36890. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  36891. switch field.Name {
  36892. case "createdAt":
  36893. return ec.fieldContext_AppPurchaseOneTime_createdAt(ctx, field)
  36894. case "id":
  36895. return ec.fieldContext_AppPurchaseOneTime_id(ctx, field)
  36896. case "name":
  36897. return ec.fieldContext_AppPurchaseOneTime_name(ctx, field)
  36898. case "price":
  36899. return ec.fieldContext_AppPurchaseOneTime_price(ctx, field)
  36900. case "status":
  36901. return ec.fieldContext_AppPurchaseOneTime_status(ctx, field)
  36902. case "test":
  36903. return ec.fieldContext_AppPurchaseOneTime_test(ctx, field)
  36904. }
  36905. return nil, fmt.Errorf("no field named %q was found under type AppPurchaseOneTime", field.Name)
  36906. },
  36907. }
  36908. return fc, nil
  36909. }
  36910. func (ec *executionContext) _AppPurchaseOneTimeConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *AppPurchaseOneTimeConnection) (ret graphql.Marshaler) {
  36911. fc, err := ec.fieldContext_AppPurchaseOneTimeConnection_pageInfo(ctx, field)
  36912. if err != nil {
  36913. return graphql.Null
  36914. }
  36915. ctx = graphql.WithFieldContext(ctx, fc)
  36916. defer func() {
  36917. if r := recover(); r != nil {
  36918. ec.Error(ctx, ec.Recover(ctx, r))
  36919. ret = graphql.Null
  36920. }
  36921. }()
  36922. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  36923. ctx = rctx // use context from middleware stack in children
  36924. return obj.PageInfo, nil
  36925. })
  36926. if err != nil {
  36927. ec.Error(ctx, err)
  36928. return graphql.Null
  36929. }
  36930. if resTmp == nil {
  36931. if !graphql.HasFieldError(ctx, fc) {
  36932. ec.Errorf(ctx, "must not be null")
  36933. }
  36934. return graphql.Null
  36935. }
  36936. res := resTmp.(*PageInfo)
  36937. fc.Result = res
  36938. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  36939. }
  36940. func (ec *executionContext) fieldContext_AppPurchaseOneTimeConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  36941. fc = &graphql.FieldContext{
  36942. Object: "AppPurchaseOneTimeConnection",
  36943. Field: field,
  36944. IsMethod: false,
  36945. IsResolver: false,
  36946. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  36947. switch field.Name {
  36948. case "endCursor":
  36949. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  36950. case "hasNextPage":
  36951. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  36952. case "hasPreviousPage":
  36953. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  36954. case "startCursor":
  36955. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  36956. }
  36957. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  36958. },
  36959. }
  36960. return fc, nil
  36961. }
  36962. func (ec *executionContext) _AppPurchaseOneTimeEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *AppPurchaseOneTimeEdge) (ret graphql.Marshaler) {
  36963. fc, err := ec.fieldContext_AppPurchaseOneTimeEdge_cursor(ctx, field)
  36964. if err != nil {
  36965. return graphql.Null
  36966. }
  36967. ctx = graphql.WithFieldContext(ctx, fc)
  36968. defer func() {
  36969. if r := recover(); r != nil {
  36970. ec.Error(ctx, ec.Recover(ctx, r))
  36971. ret = graphql.Null
  36972. }
  36973. }()
  36974. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  36975. ctx = rctx // use context from middleware stack in children
  36976. return obj.Cursor, nil
  36977. })
  36978. if err != nil {
  36979. ec.Error(ctx, err)
  36980. return graphql.Null
  36981. }
  36982. if resTmp == nil {
  36983. if !graphql.HasFieldError(ctx, fc) {
  36984. ec.Errorf(ctx, "must not be null")
  36985. }
  36986. return graphql.Null
  36987. }
  36988. res := resTmp.(string)
  36989. fc.Result = res
  36990. return ec.marshalNString2string(ctx, field.Selections, res)
  36991. }
  36992. func (ec *executionContext) fieldContext_AppPurchaseOneTimeEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  36993. fc = &graphql.FieldContext{
  36994. Object: "AppPurchaseOneTimeEdge",
  36995. Field: field,
  36996. IsMethod: false,
  36997. IsResolver: false,
  36998. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  36999. return nil, errors.New("field of type String does not have child fields")
  37000. },
  37001. }
  37002. return fc, nil
  37003. }
  37004. func (ec *executionContext) _AppPurchaseOneTimeEdge_node(ctx context.Context, field graphql.CollectedField, obj *AppPurchaseOneTimeEdge) (ret graphql.Marshaler) {
  37005. fc, err := ec.fieldContext_AppPurchaseOneTimeEdge_node(ctx, field)
  37006. if err != nil {
  37007. return graphql.Null
  37008. }
  37009. ctx = graphql.WithFieldContext(ctx, fc)
  37010. defer func() {
  37011. if r := recover(); r != nil {
  37012. ec.Error(ctx, ec.Recover(ctx, r))
  37013. ret = graphql.Null
  37014. }
  37015. }()
  37016. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  37017. ctx = rctx // use context from middleware stack in children
  37018. return obj.Node, nil
  37019. })
  37020. if err != nil {
  37021. ec.Error(ctx, err)
  37022. return graphql.Null
  37023. }
  37024. if resTmp == nil {
  37025. if !graphql.HasFieldError(ctx, fc) {
  37026. ec.Errorf(ctx, "must not be null")
  37027. }
  37028. return graphql.Null
  37029. }
  37030. res := resTmp.(*AppPurchaseOneTime)
  37031. fc.Result = res
  37032. return ec.marshalNAppPurchaseOneTime2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppPurchaseOneTime(ctx, field.Selections, res)
  37033. }
  37034. func (ec *executionContext) fieldContext_AppPurchaseOneTimeEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  37035. fc = &graphql.FieldContext{
  37036. Object: "AppPurchaseOneTimeEdge",
  37037. Field: field,
  37038. IsMethod: false,
  37039. IsResolver: false,
  37040. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  37041. switch field.Name {
  37042. case "createdAt":
  37043. return ec.fieldContext_AppPurchaseOneTime_createdAt(ctx, field)
  37044. case "id":
  37045. return ec.fieldContext_AppPurchaseOneTime_id(ctx, field)
  37046. case "name":
  37047. return ec.fieldContext_AppPurchaseOneTime_name(ctx, field)
  37048. case "price":
  37049. return ec.fieldContext_AppPurchaseOneTime_price(ctx, field)
  37050. case "status":
  37051. return ec.fieldContext_AppPurchaseOneTime_status(ctx, field)
  37052. case "test":
  37053. return ec.fieldContext_AppPurchaseOneTime_test(ctx, field)
  37054. }
  37055. return nil, fmt.Errorf("no field named %q was found under type AppPurchaseOneTime", field.Name)
  37056. },
  37057. }
  37058. return fc, nil
  37059. }
  37060. func (ec *executionContext) _AppRecurringPricing_discount(ctx context.Context, field graphql.CollectedField, obj *AppRecurringPricing) (ret graphql.Marshaler) {
  37061. fc, err := ec.fieldContext_AppRecurringPricing_discount(ctx, field)
  37062. if err != nil {
  37063. return graphql.Null
  37064. }
  37065. ctx = graphql.WithFieldContext(ctx, fc)
  37066. defer func() {
  37067. if r := recover(); r != nil {
  37068. ec.Error(ctx, ec.Recover(ctx, r))
  37069. ret = graphql.Null
  37070. }
  37071. }()
  37072. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  37073. ctx = rctx // use context from middleware stack in children
  37074. return obj.Discount, nil
  37075. })
  37076. if err != nil {
  37077. ec.Error(ctx, err)
  37078. return graphql.Null
  37079. }
  37080. if resTmp == nil {
  37081. return graphql.Null
  37082. }
  37083. res := resTmp.(*AppSubscriptionDiscount)
  37084. fc.Result = res
  37085. return ec.marshalOAppSubscriptionDiscount2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppSubscriptionDiscount(ctx, field.Selections, res)
  37086. }
  37087. func (ec *executionContext) fieldContext_AppRecurringPricing_discount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  37088. fc = &graphql.FieldContext{
  37089. Object: "AppRecurringPricing",
  37090. Field: field,
  37091. IsMethod: false,
  37092. IsResolver: false,
  37093. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  37094. switch field.Name {
  37095. case "durationLimitInIntervals":
  37096. return ec.fieldContext_AppSubscriptionDiscount_durationLimitInIntervals(ctx, field)
  37097. case "priceAfterDiscount":
  37098. return ec.fieldContext_AppSubscriptionDiscount_priceAfterDiscount(ctx, field)
  37099. case "remainingDurationInIntervals":
  37100. return ec.fieldContext_AppSubscriptionDiscount_remainingDurationInIntervals(ctx, field)
  37101. case "value":
  37102. return ec.fieldContext_AppSubscriptionDiscount_value(ctx, field)
  37103. }
  37104. return nil, fmt.Errorf("no field named %q was found under type AppSubscriptionDiscount", field.Name)
  37105. },
  37106. }
  37107. return fc, nil
  37108. }
  37109. func (ec *executionContext) _AppRecurringPricing_interval(ctx context.Context, field graphql.CollectedField, obj *AppRecurringPricing) (ret graphql.Marshaler) {
  37110. fc, err := ec.fieldContext_AppRecurringPricing_interval(ctx, field)
  37111. if err != nil {
  37112. return graphql.Null
  37113. }
  37114. ctx = graphql.WithFieldContext(ctx, fc)
  37115. defer func() {
  37116. if r := recover(); r != nil {
  37117. ec.Error(ctx, ec.Recover(ctx, r))
  37118. ret = graphql.Null
  37119. }
  37120. }()
  37121. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  37122. ctx = rctx // use context from middleware stack in children
  37123. return obj.Interval, nil
  37124. })
  37125. if err != nil {
  37126. ec.Error(ctx, err)
  37127. return graphql.Null
  37128. }
  37129. if resTmp == nil {
  37130. if !graphql.HasFieldError(ctx, fc) {
  37131. ec.Errorf(ctx, "must not be null")
  37132. }
  37133. return graphql.Null
  37134. }
  37135. res := resTmp.(AppPricingInterval)
  37136. fc.Result = res
  37137. return ec.marshalNAppPricingInterval2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppPricingInterval(ctx, field.Selections, res)
  37138. }
  37139. func (ec *executionContext) fieldContext_AppRecurringPricing_interval(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  37140. fc = &graphql.FieldContext{
  37141. Object: "AppRecurringPricing",
  37142. Field: field,
  37143. IsMethod: false,
  37144. IsResolver: false,
  37145. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  37146. return nil, errors.New("field of type AppPricingInterval does not have child fields")
  37147. },
  37148. }
  37149. return fc, nil
  37150. }
  37151. func (ec *executionContext) _AppRecurringPricing_price(ctx context.Context, field graphql.CollectedField, obj *AppRecurringPricing) (ret graphql.Marshaler) {
  37152. fc, err := ec.fieldContext_AppRecurringPricing_price(ctx, field)
  37153. if err != nil {
  37154. return graphql.Null
  37155. }
  37156. ctx = graphql.WithFieldContext(ctx, fc)
  37157. defer func() {
  37158. if r := recover(); r != nil {
  37159. ec.Error(ctx, ec.Recover(ctx, r))
  37160. ret = graphql.Null
  37161. }
  37162. }()
  37163. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  37164. ctx = rctx // use context from middleware stack in children
  37165. return obj.Price, nil
  37166. })
  37167. if err != nil {
  37168. ec.Error(ctx, err)
  37169. return graphql.Null
  37170. }
  37171. if resTmp == nil {
  37172. if !graphql.HasFieldError(ctx, fc) {
  37173. ec.Errorf(ctx, "must not be null")
  37174. }
  37175. return graphql.Null
  37176. }
  37177. res := resTmp.(*MoneyV2)
  37178. fc.Result = res
  37179. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  37180. }
  37181. func (ec *executionContext) fieldContext_AppRecurringPricing_price(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  37182. fc = &graphql.FieldContext{
  37183. Object: "AppRecurringPricing",
  37184. Field: field,
  37185. IsMethod: false,
  37186. IsResolver: false,
  37187. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  37188. switch field.Name {
  37189. case "amount":
  37190. return ec.fieldContext_MoneyV2_amount(ctx, field)
  37191. case "currencyCode":
  37192. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  37193. }
  37194. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  37195. },
  37196. }
  37197. return fc, nil
  37198. }
  37199. func (ec *executionContext) _AppRevenueAttributionRecord_amount(ctx context.Context, field graphql.CollectedField, obj *AppRevenueAttributionRecord) (ret graphql.Marshaler) {
  37200. fc, err := ec.fieldContext_AppRevenueAttributionRecord_amount(ctx, field)
  37201. if err != nil {
  37202. return graphql.Null
  37203. }
  37204. ctx = graphql.WithFieldContext(ctx, fc)
  37205. defer func() {
  37206. if r := recover(); r != nil {
  37207. ec.Error(ctx, ec.Recover(ctx, r))
  37208. ret = graphql.Null
  37209. }
  37210. }()
  37211. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  37212. ctx = rctx // use context from middleware stack in children
  37213. return obj.Amount, nil
  37214. })
  37215. if err != nil {
  37216. ec.Error(ctx, err)
  37217. return graphql.Null
  37218. }
  37219. if resTmp == nil {
  37220. if !graphql.HasFieldError(ctx, fc) {
  37221. ec.Errorf(ctx, "must not be null")
  37222. }
  37223. return graphql.Null
  37224. }
  37225. res := resTmp.(*MoneyV2)
  37226. fc.Result = res
  37227. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  37228. }
  37229. func (ec *executionContext) fieldContext_AppRevenueAttributionRecord_amount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  37230. fc = &graphql.FieldContext{
  37231. Object: "AppRevenueAttributionRecord",
  37232. Field: field,
  37233. IsMethod: false,
  37234. IsResolver: false,
  37235. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  37236. switch field.Name {
  37237. case "amount":
  37238. return ec.fieldContext_MoneyV2_amount(ctx, field)
  37239. case "currencyCode":
  37240. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  37241. }
  37242. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  37243. },
  37244. }
  37245. return fc, nil
  37246. }
  37247. func (ec *executionContext) _AppRevenueAttributionRecord_capturedAt(ctx context.Context, field graphql.CollectedField, obj *AppRevenueAttributionRecord) (ret graphql.Marshaler) {
  37248. fc, err := ec.fieldContext_AppRevenueAttributionRecord_capturedAt(ctx, field)
  37249. if err != nil {
  37250. return graphql.Null
  37251. }
  37252. ctx = graphql.WithFieldContext(ctx, fc)
  37253. defer func() {
  37254. if r := recover(); r != nil {
  37255. ec.Error(ctx, ec.Recover(ctx, r))
  37256. ret = graphql.Null
  37257. }
  37258. }()
  37259. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  37260. ctx = rctx // use context from middleware stack in children
  37261. return obj.CapturedAt, nil
  37262. })
  37263. if err != nil {
  37264. ec.Error(ctx, err)
  37265. return graphql.Null
  37266. }
  37267. if resTmp == nil {
  37268. if !graphql.HasFieldError(ctx, fc) {
  37269. ec.Errorf(ctx, "must not be null")
  37270. }
  37271. return graphql.Null
  37272. }
  37273. res := resTmp.(string)
  37274. fc.Result = res
  37275. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  37276. }
  37277. func (ec *executionContext) fieldContext_AppRevenueAttributionRecord_capturedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  37278. fc = &graphql.FieldContext{
  37279. Object: "AppRevenueAttributionRecord",
  37280. Field: field,
  37281. IsMethod: false,
  37282. IsResolver: false,
  37283. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  37284. return nil, errors.New("field of type DateTime does not have child fields")
  37285. },
  37286. }
  37287. return fc, nil
  37288. }
  37289. func (ec *executionContext) _AppRevenueAttributionRecord_createdAt(ctx context.Context, field graphql.CollectedField, obj *AppRevenueAttributionRecord) (ret graphql.Marshaler) {
  37290. fc, err := ec.fieldContext_AppRevenueAttributionRecord_createdAt(ctx, field)
  37291. if err != nil {
  37292. return graphql.Null
  37293. }
  37294. ctx = graphql.WithFieldContext(ctx, fc)
  37295. defer func() {
  37296. if r := recover(); r != nil {
  37297. ec.Error(ctx, ec.Recover(ctx, r))
  37298. ret = graphql.Null
  37299. }
  37300. }()
  37301. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  37302. ctx = rctx // use context from middleware stack in children
  37303. return obj.CreatedAt, nil
  37304. })
  37305. if err != nil {
  37306. ec.Error(ctx, err)
  37307. return graphql.Null
  37308. }
  37309. if resTmp == nil {
  37310. if !graphql.HasFieldError(ctx, fc) {
  37311. ec.Errorf(ctx, "must not be null")
  37312. }
  37313. return graphql.Null
  37314. }
  37315. res := resTmp.(string)
  37316. fc.Result = res
  37317. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  37318. }
  37319. func (ec *executionContext) fieldContext_AppRevenueAttributionRecord_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  37320. fc = &graphql.FieldContext{
  37321. Object: "AppRevenueAttributionRecord",
  37322. Field: field,
  37323. IsMethod: false,
  37324. IsResolver: false,
  37325. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  37326. return nil, errors.New("field of type DateTime does not have child fields")
  37327. },
  37328. }
  37329. return fc, nil
  37330. }
  37331. func (ec *executionContext) _AppRevenueAttributionRecord_id(ctx context.Context, field graphql.CollectedField, obj *AppRevenueAttributionRecord) (ret graphql.Marshaler) {
  37332. fc, err := ec.fieldContext_AppRevenueAttributionRecord_id(ctx, field)
  37333. if err != nil {
  37334. return graphql.Null
  37335. }
  37336. ctx = graphql.WithFieldContext(ctx, fc)
  37337. defer func() {
  37338. if r := recover(); r != nil {
  37339. ec.Error(ctx, ec.Recover(ctx, r))
  37340. ret = graphql.Null
  37341. }
  37342. }()
  37343. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  37344. ctx = rctx // use context from middleware stack in children
  37345. return obj.ID, nil
  37346. })
  37347. if err != nil {
  37348. ec.Error(ctx, err)
  37349. return graphql.Null
  37350. }
  37351. if resTmp == nil {
  37352. if !graphql.HasFieldError(ctx, fc) {
  37353. ec.Errorf(ctx, "must not be null")
  37354. }
  37355. return graphql.Null
  37356. }
  37357. res := resTmp.(string)
  37358. fc.Result = res
  37359. return ec.marshalNID2string(ctx, field.Selections, res)
  37360. }
  37361. func (ec *executionContext) fieldContext_AppRevenueAttributionRecord_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  37362. fc = &graphql.FieldContext{
  37363. Object: "AppRevenueAttributionRecord",
  37364. Field: field,
  37365. IsMethod: false,
  37366. IsResolver: false,
  37367. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  37368. return nil, errors.New("field of type ID does not have child fields")
  37369. },
  37370. }
  37371. return fc, nil
  37372. }
  37373. func (ec *executionContext) _AppRevenueAttributionRecord_idempotencyKey(ctx context.Context, field graphql.CollectedField, obj *AppRevenueAttributionRecord) (ret graphql.Marshaler) {
  37374. fc, err := ec.fieldContext_AppRevenueAttributionRecord_idempotencyKey(ctx, field)
  37375. if err != nil {
  37376. return graphql.Null
  37377. }
  37378. ctx = graphql.WithFieldContext(ctx, fc)
  37379. defer func() {
  37380. if r := recover(); r != nil {
  37381. ec.Error(ctx, ec.Recover(ctx, r))
  37382. ret = graphql.Null
  37383. }
  37384. }()
  37385. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  37386. ctx = rctx // use context from middleware stack in children
  37387. return obj.IdempotencyKey, nil
  37388. })
  37389. if err != nil {
  37390. ec.Error(ctx, err)
  37391. return graphql.Null
  37392. }
  37393. if resTmp == nil {
  37394. if !graphql.HasFieldError(ctx, fc) {
  37395. ec.Errorf(ctx, "must not be null")
  37396. }
  37397. return graphql.Null
  37398. }
  37399. res := resTmp.(string)
  37400. fc.Result = res
  37401. return ec.marshalNString2string(ctx, field.Selections, res)
  37402. }
  37403. func (ec *executionContext) fieldContext_AppRevenueAttributionRecord_idempotencyKey(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  37404. fc = &graphql.FieldContext{
  37405. Object: "AppRevenueAttributionRecord",
  37406. Field: field,
  37407. IsMethod: false,
  37408. IsResolver: false,
  37409. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  37410. return nil, errors.New("field of type String does not have child fields")
  37411. },
  37412. }
  37413. return fc, nil
  37414. }
  37415. func (ec *executionContext) _AppRevenueAttributionRecord_test(ctx context.Context, field graphql.CollectedField, obj *AppRevenueAttributionRecord) (ret graphql.Marshaler) {
  37416. fc, err := ec.fieldContext_AppRevenueAttributionRecord_test(ctx, field)
  37417. if err != nil {
  37418. return graphql.Null
  37419. }
  37420. ctx = graphql.WithFieldContext(ctx, fc)
  37421. defer func() {
  37422. if r := recover(); r != nil {
  37423. ec.Error(ctx, ec.Recover(ctx, r))
  37424. ret = graphql.Null
  37425. }
  37426. }()
  37427. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  37428. ctx = rctx // use context from middleware stack in children
  37429. return obj.Test, nil
  37430. })
  37431. if err != nil {
  37432. ec.Error(ctx, err)
  37433. return graphql.Null
  37434. }
  37435. if resTmp == nil {
  37436. if !graphql.HasFieldError(ctx, fc) {
  37437. ec.Errorf(ctx, "must not be null")
  37438. }
  37439. return graphql.Null
  37440. }
  37441. res := resTmp.(bool)
  37442. fc.Result = res
  37443. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  37444. }
  37445. func (ec *executionContext) fieldContext_AppRevenueAttributionRecord_test(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  37446. fc = &graphql.FieldContext{
  37447. Object: "AppRevenueAttributionRecord",
  37448. Field: field,
  37449. IsMethod: false,
  37450. IsResolver: false,
  37451. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  37452. return nil, errors.New("field of type Boolean does not have child fields")
  37453. },
  37454. }
  37455. return fc, nil
  37456. }
  37457. func (ec *executionContext) _AppRevenueAttributionRecord_type(ctx context.Context, field graphql.CollectedField, obj *AppRevenueAttributionRecord) (ret graphql.Marshaler) {
  37458. fc, err := ec.fieldContext_AppRevenueAttributionRecord_type(ctx, field)
  37459. if err != nil {
  37460. return graphql.Null
  37461. }
  37462. ctx = graphql.WithFieldContext(ctx, fc)
  37463. defer func() {
  37464. if r := recover(); r != nil {
  37465. ec.Error(ctx, ec.Recover(ctx, r))
  37466. ret = graphql.Null
  37467. }
  37468. }()
  37469. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  37470. ctx = rctx // use context from middleware stack in children
  37471. return obj.Type, nil
  37472. })
  37473. if err != nil {
  37474. ec.Error(ctx, err)
  37475. return graphql.Null
  37476. }
  37477. if resTmp == nil {
  37478. if !graphql.HasFieldError(ctx, fc) {
  37479. ec.Errorf(ctx, "must not be null")
  37480. }
  37481. return graphql.Null
  37482. }
  37483. res := resTmp.(AppRevenueAttributionType)
  37484. fc.Result = res
  37485. return ec.marshalNAppRevenueAttributionType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppRevenueAttributionType(ctx, field.Selections, res)
  37486. }
  37487. func (ec *executionContext) fieldContext_AppRevenueAttributionRecord_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  37488. fc = &graphql.FieldContext{
  37489. Object: "AppRevenueAttributionRecord",
  37490. Field: field,
  37491. IsMethod: false,
  37492. IsResolver: false,
  37493. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  37494. return nil, errors.New("field of type AppRevenueAttributionType does not have child fields")
  37495. },
  37496. }
  37497. return fc, nil
  37498. }
  37499. func (ec *executionContext) _AppRevenueAttributionRecordConnection_edges(ctx context.Context, field graphql.CollectedField, obj *AppRevenueAttributionRecordConnection) (ret graphql.Marshaler) {
  37500. fc, err := ec.fieldContext_AppRevenueAttributionRecordConnection_edges(ctx, field)
  37501. if err != nil {
  37502. return graphql.Null
  37503. }
  37504. ctx = graphql.WithFieldContext(ctx, fc)
  37505. defer func() {
  37506. if r := recover(); r != nil {
  37507. ec.Error(ctx, ec.Recover(ctx, r))
  37508. ret = graphql.Null
  37509. }
  37510. }()
  37511. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  37512. ctx = rctx // use context from middleware stack in children
  37513. return obj.Edges, nil
  37514. })
  37515. if err != nil {
  37516. ec.Error(ctx, err)
  37517. return graphql.Null
  37518. }
  37519. if resTmp == nil {
  37520. if !graphql.HasFieldError(ctx, fc) {
  37521. ec.Errorf(ctx, "must not be null")
  37522. }
  37523. return graphql.Null
  37524. }
  37525. res := resTmp.([]*AppRevenueAttributionRecordEdge)
  37526. fc.Result = res
  37527. return ec.marshalNAppRevenueAttributionRecordEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppRevenueAttributionRecordEdgeᚄ(ctx, field.Selections, res)
  37528. }
  37529. func (ec *executionContext) fieldContext_AppRevenueAttributionRecordConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  37530. fc = &graphql.FieldContext{
  37531. Object: "AppRevenueAttributionRecordConnection",
  37532. Field: field,
  37533. IsMethod: false,
  37534. IsResolver: false,
  37535. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  37536. switch field.Name {
  37537. case "cursor":
  37538. return ec.fieldContext_AppRevenueAttributionRecordEdge_cursor(ctx, field)
  37539. case "node":
  37540. return ec.fieldContext_AppRevenueAttributionRecordEdge_node(ctx, field)
  37541. }
  37542. return nil, fmt.Errorf("no field named %q was found under type AppRevenueAttributionRecordEdge", field.Name)
  37543. },
  37544. }
  37545. return fc, nil
  37546. }
  37547. func (ec *executionContext) _AppRevenueAttributionRecordConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *AppRevenueAttributionRecordConnection) (ret graphql.Marshaler) {
  37548. fc, err := ec.fieldContext_AppRevenueAttributionRecordConnection_nodes(ctx, field)
  37549. if err != nil {
  37550. return graphql.Null
  37551. }
  37552. ctx = graphql.WithFieldContext(ctx, fc)
  37553. defer func() {
  37554. if r := recover(); r != nil {
  37555. ec.Error(ctx, ec.Recover(ctx, r))
  37556. ret = graphql.Null
  37557. }
  37558. }()
  37559. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  37560. ctx = rctx // use context from middleware stack in children
  37561. return obj.Nodes, nil
  37562. })
  37563. if err != nil {
  37564. ec.Error(ctx, err)
  37565. return graphql.Null
  37566. }
  37567. if resTmp == nil {
  37568. if !graphql.HasFieldError(ctx, fc) {
  37569. ec.Errorf(ctx, "must not be null")
  37570. }
  37571. return graphql.Null
  37572. }
  37573. res := resTmp.([]*AppRevenueAttributionRecord)
  37574. fc.Result = res
  37575. return ec.marshalNAppRevenueAttributionRecord2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppRevenueAttributionRecordᚄ(ctx, field.Selections, res)
  37576. }
  37577. func (ec *executionContext) fieldContext_AppRevenueAttributionRecordConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  37578. fc = &graphql.FieldContext{
  37579. Object: "AppRevenueAttributionRecordConnection",
  37580. Field: field,
  37581. IsMethod: false,
  37582. IsResolver: false,
  37583. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  37584. switch field.Name {
  37585. case "amount":
  37586. return ec.fieldContext_AppRevenueAttributionRecord_amount(ctx, field)
  37587. case "capturedAt":
  37588. return ec.fieldContext_AppRevenueAttributionRecord_capturedAt(ctx, field)
  37589. case "createdAt":
  37590. return ec.fieldContext_AppRevenueAttributionRecord_createdAt(ctx, field)
  37591. case "id":
  37592. return ec.fieldContext_AppRevenueAttributionRecord_id(ctx, field)
  37593. case "idempotencyKey":
  37594. return ec.fieldContext_AppRevenueAttributionRecord_idempotencyKey(ctx, field)
  37595. case "test":
  37596. return ec.fieldContext_AppRevenueAttributionRecord_test(ctx, field)
  37597. case "type":
  37598. return ec.fieldContext_AppRevenueAttributionRecord_type(ctx, field)
  37599. }
  37600. return nil, fmt.Errorf("no field named %q was found under type AppRevenueAttributionRecord", field.Name)
  37601. },
  37602. }
  37603. return fc, nil
  37604. }
  37605. func (ec *executionContext) _AppRevenueAttributionRecordConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *AppRevenueAttributionRecordConnection) (ret graphql.Marshaler) {
  37606. fc, err := ec.fieldContext_AppRevenueAttributionRecordConnection_pageInfo(ctx, field)
  37607. if err != nil {
  37608. return graphql.Null
  37609. }
  37610. ctx = graphql.WithFieldContext(ctx, fc)
  37611. defer func() {
  37612. if r := recover(); r != nil {
  37613. ec.Error(ctx, ec.Recover(ctx, r))
  37614. ret = graphql.Null
  37615. }
  37616. }()
  37617. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  37618. ctx = rctx // use context from middleware stack in children
  37619. return obj.PageInfo, nil
  37620. })
  37621. if err != nil {
  37622. ec.Error(ctx, err)
  37623. return graphql.Null
  37624. }
  37625. if resTmp == nil {
  37626. if !graphql.HasFieldError(ctx, fc) {
  37627. ec.Errorf(ctx, "must not be null")
  37628. }
  37629. return graphql.Null
  37630. }
  37631. res := resTmp.(*PageInfo)
  37632. fc.Result = res
  37633. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  37634. }
  37635. func (ec *executionContext) fieldContext_AppRevenueAttributionRecordConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  37636. fc = &graphql.FieldContext{
  37637. Object: "AppRevenueAttributionRecordConnection",
  37638. Field: field,
  37639. IsMethod: false,
  37640. IsResolver: false,
  37641. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  37642. switch field.Name {
  37643. case "endCursor":
  37644. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  37645. case "hasNextPage":
  37646. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  37647. case "hasPreviousPage":
  37648. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  37649. case "startCursor":
  37650. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  37651. }
  37652. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  37653. },
  37654. }
  37655. return fc, nil
  37656. }
  37657. func (ec *executionContext) _AppRevenueAttributionRecordEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *AppRevenueAttributionRecordEdge) (ret graphql.Marshaler) {
  37658. fc, err := ec.fieldContext_AppRevenueAttributionRecordEdge_cursor(ctx, field)
  37659. if err != nil {
  37660. return graphql.Null
  37661. }
  37662. ctx = graphql.WithFieldContext(ctx, fc)
  37663. defer func() {
  37664. if r := recover(); r != nil {
  37665. ec.Error(ctx, ec.Recover(ctx, r))
  37666. ret = graphql.Null
  37667. }
  37668. }()
  37669. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  37670. ctx = rctx // use context from middleware stack in children
  37671. return obj.Cursor, nil
  37672. })
  37673. if err != nil {
  37674. ec.Error(ctx, err)
  37675. return graphql.Null
  37676. }
  37677. if resTmp == nil {
  37678. if !graphql.HasFieldError(ctx, fc) {
  37679. ec.Errorf(ctx, "must not be null")
  37680. }
  37681. return graphql.Null
  37682. }
  37683. res := resTmp.(string)
  37684. fc.Result = res
  37685. return ec.marshalNString2string(ctx, field.Selections, res)
  37686. }
  37687. func (ec *executionContext) fieldContext_AppRevenueAttributionRecordEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  37688. fc = &graphql.FieldContext{
  37689. Object: "AppRevenueAttributionRecordEdge",
  37690. Field: field,
  37691. IsMethod: false,
  37692. IsResolver: false,
  37693. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  37694. return nil, errors.New("field of type String does not have child fields")
  37695. },
  37696. }
  37697. return fc, nil
  37698. }
  37699. func (ec *executionContext) _AppRevenueAttributionRecordEdge_node(ctx context.Context, field graphql.CollectedField, obj *AppRevenueAttributionRecordEdge) (ret graphql.Marshaler) {
  37700. fc, err := ec.fieldContext_AppRevenueAttributionRecordEdge_node(ctx, field)
  37701. if err != nil {
  37702. return graphql.Null
  37703. }
  37704. ctx = graphql.WithFieldContext(ctx, fc)
  37705. defer func() {
  37706. if r := recover(); r != nil {
  37707. ec.Error(ctx, ec.Recover(ctx, r))
  37708. ret = graphql.Null
  37709. }
  37710. }()
  37711. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  37712. ctx = rctx // use context from middleware stack in children
  37713. return obj.Node, nil
  37714. })
  37715. if err != nil {
  37716. ec.Error(ctx, err)
  37717. return graphql.Null
  37718. }
  37719. if resTmp == nil {
  37720. if !graphql.HasFieldError(ctx, fc) {
  37721. ec.Errorf(ctx, "must not be null")
  37722. }
  37723. return graphql.Null
  37724. }
  37725. res := resTmp.(*AppRevenueAttributionRecord)
  37726. fc.Result = res
  37727. return ec.marshalNAppRevenueAttributionRecord2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppRevenueAttributionRecord(ctx, field.Selections, res)
  37728. }
  37729. func (ec *executionContext) fieldContext_AppRevenueAttributionRecordEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  37730. fc = &graphql.FieldContext{
  37731. Object: "AppRevenueAttributionRecordEdge",
  37732. Field: field,
  37733. IsMethod: false,
  37734. IsResolver: false,
  37735. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  37736. switch field.Name {
  37737. case "amount":
  37738. return ec.fieldContext_AppRevenueAttributionRecord_amount(ctx, field)
  37739. case "capturedAt":
  37740. return ec.fieldContext_AppRevenueAttributionRecord_capturedAt(ctx, field)
  37741. case "createdAt":
  37742. return ec.fieldContext_AppRevenueAttributionRecord_createdAt(ctx, field)
  37743. case "id":
  37744. return ec.fieldContext_AppRevenueAttributionRecord_id(ctx, field)
  37745. case "idempotencyKey":
  37746. return ec.fieldContext_AppRevenueAttributionRecord_idempotencyKey(ctx, field)
  37747. case "test":
  37748. return ec.fieldContext_AppRevenueAttributionRecord_test(ctx, field)
  37749. case "type":
  37750. return ec.fieldContext_AppRevenueAttributionRecord_type(ctx, field)
  37751. }
  37752. return nil, fmt.Errorf("no field named %q was found under type AppRevenueAttributionRecord", field.Name)
  37753. },
  37754. }
  37755. return fc, nil
  37756. }
  37757. func (ec *executionContext) _AppSubscription_createdAt(ctx context.Context, field graphql.CollectedField, obj *AppSubscription) (ret graphql.Marshaler) {
  37758. fc, err := ec.fieldContext_AppSubscription_createdAt(ctx, field)
  37759. if err != nil {
  37760. return graphql.Null
  37761. }
  37762. ctx = graphql.WithFieldContext(ctx, fc)
  37763. defer func() {
  37764. if r := recover(); r != nil {
  37765. ec.Error(ctx, ec.Recover(ctx, r))
  37766. ret = graphql.Null
  37767. }
  37768. }()
  37769. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  37770. ctx = rctx // use context from middleware stack in children
  37771. return obj.CreatedAt, nil
  37772. })
  37773. if err != nil {
  37774. ec.Error(ctx, err)
  37775. return graphql.Null
  37776. }
  37777. if resTmp == nil {
  37778. if !graphql.HasFieldError(ctx, fc) {
  37779. ec.Errorf(ctx, "must not be null")
  37780. }
  37781. return graphql.Null
  37782. }
  37783. res := resTmp.(string)
  37784. fc.Result = res
  37785. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  37786. }
  37787. func (ec *executionContext) fieldContext_AppSubscription_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  37788. fc = &graphql.FieldContext{
  37789. Object: "AppSubscription",
  37790. Field: field,
  37791. IsMethod: false,
  37792. IsResolver: false,
  37793. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  37794. return nil, errors.New("field of type DateTime does not have child fields")
  37795. },
  37796. }
  37797. return fc, nil
  37798. }
  37799. func (ec *executionContext) _AppSubscription_currentPeriodEnd(ctx context.Context, field graphql.CollectedField, obj *AppSubscription) (ret graphql.Marshaler) {
  37800. fc, err := ec.fieldContext_AppSubscription_currentPeriodEnd(ctx, field)
  37801. if err != nil {
  37802. return graphql.Null
  37803. }
  37804. ctx = graphql.WithFieldContext(ctx, fc)
  37805. defer func() {
  37806. if r := recover(); r != nil {
  37807. ec.Error(ctx, ec.Recover(ctx, r))
  37808. ret = graphql.Null
  37809. }
  37810. }()
  37811. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  37812. ctx = rctx // use context from middleware stack in children
  37813. return obj.CurrentPeriodEnd, nil
  37814. })
  37815. if err != nil {
  37816. ec.Error(ctx, err)
  37817. return graphql.Null
  37818. }
  37819. if resTmp == nil {
  37820. return graphql.Null
  37821. }
  37822. res := resTmp.(*string)
  37823. fc.Result = res
  37824. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  37825. }
  37826. func (ec *executionContext) fieldContext_AppSubscription_currentPeriodEnd(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  37827. fc = &graphql.FieldContext{
  37828. Object: "AppSubscription",
  37829. Field: field,
  37830. IsMethod: false,
  37831. IsResolver: false,
  37832. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  37833. return nil, errors.New("field of type DateTime does not have child fields")
  37834. },
  37835. }
  37836. return fc, nil
  37837. }
  37838. func (ec *executionContext) _AppSubscription_id(ctx context.Context, field graphql.CollectedField, obj *AppSubscription) (ret graphql.Marshaler) {
  37839. fc, err := ec.fieldContext_AppSubscription_id(ctx, field)
  37840. if err != nil {
  37841. return graphql.Null
  37842. }
  37843. ctx = graphql.WithFieldContext(ctx, fc)
  37844. defer func() {
  37845. if r := recover(); r != nil {
  37846. ec.Error(ctx, ec.Recover(ctx, r))
  37847. ret = graphql.Null
  37848. }
  37849. }()
  37850. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  37851. ctx = rctx // use context from middleware stack in children
  37852. return obj.ID, nil
  37853. })
  37854. if err != nil {
  37855. ec.Error(ctx, err)
  37856. return graphql.Null
  37857. }
  37858. if resTmp == nil {
  37859. if !graphql.HasFieldError(ctx, fc) {
  37860. ec.Errorf(ctx, "must not be null")
  37861. }
  37862. return graphql.Null
  37863. }
  37864. res := resTmp.(string)
  37865. fc.Result = res
  37866. return ec.marshalNID2string(ctx, field.Selections, res)
  37867. }
  37868. func (ec *executionContext) fieldContext_AppSubscription_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  37869. fc = &graphql.FieldContext{
  37870. Object: "AppSubscription",
  37871. Field: field,
  37872. IsMethod: false,
  37873. IsResolver: false,
  37874. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  37875. return nil, errors.New("field of type ID does not have child fields")
  37876. },
  37877. }
  37878. return fc, nil
  37879. }
  37880. func (ec *executionContext) _AppSubscription_lineItems(ctx context.Context, field graphql.CollectedField, obj *AppSubscription) (ret graphql.Marshaler) {
  37881. fc, err := ec.fieldContext_AppSubscription_lineItems(ctx, field)
  37882. if err != nil {
  37883. return graphql.Null
  37884. }
  37885. ctx = graphql.WithFieldContext(ctx, fc)
  37886. defer func() {
  37887. if r := recover(); r != nil {
  37888. ec.Error(ctx, ec.Recover(ctx, r))
  37889. ret = graphql.Null
  37890. }
  37891. }()
  37892. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  37893. ctx = rctx // use context from middleware stack in children
  37894. return obj.LineItems, nil
  37895. })
  37896. if err != nil {
  37897. ec.Error(ctx, err)
  37898. return graphql.Null
  37899. }
  37900. if resTmp == nil {
  37901. if !graphql.HasFieldError(ctx, fc) {
  37902. ec.Errorf(ctx, "must not be null")
  37903. }
  37904. return graphql.Null
  37905. }
  37906. res := resTmp.([]*AppSubscriptionLineItem)
  37907. fc.Result = res
  37908. return ec.marshalNAppSubscriptionLineItem2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppSubscriptionLineItemᚄ(ctx, field.Selections, res)
  37909. }
  37910. func (ec *executionContext) fieldContext_AppSubscription_lineItems(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  37911. fc = &graphql.FieldContext{
  37912. Object: "AppSubscription",
  37913. Field: field,
  37914. IsMethod: false,
  37915. IsResolver: false,
  37916. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  37917. switch field.Name {
  37918. case "id":
  37919. return ec.fieldContext_AppSubscriptionLineItem_id(ctx, field)
  37920. case "plan":
  37921. return ec.fieldContext_AppSubscriptionLineItem_plan(ctx, field)
  37922. case "usageRecords":
  37923. return ec.fieldContext_AppSubscriptionLineItem_usageRecords(ctx, field)
  37924. }
  37925. return nil, fmt.Errorf("no field named %q was found under type AppSubscriptionLineItem", field.Name)
  37926. },
  37927. }
  37928. return fc, nil
  37929. }
  37930. func (ec *executionContext) _AppSubscription_name(ctx context.Context, field graphql.CollectedField, obj *AppSubscription) (ret graphql.Marshaler) {
  37931. fc, err := ec.fieldContext_AppSubscription_name(ctx, field)
  37932. if err != nil {
  37933. return graphql.Null
  37934. }
  37935. ctx = graphql.WithFieldContext(ctx, fc)
  37936. defer func() {
  37937. if r := recover(); r != nil {
  37938. ec.Error(ctx, ec.Recover(ctx, r))
  37939. ret = graphql.Null
  37940. }
  37941. }()
  37942. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  37943. ctx = rctx // use context from middleware stack in children
  37944. return obj.Name, nil
  37945. })
  37946. if err != nil {
  37947. ec.Error(ctx, err)
  37948. return graphql.Null
  37949. }
  37950. if resTmp == nil {
  37951. if !graphql.HasFieldError(ctx, fc) {
  37952. ec.Errorf(ctx, "must not be null")
  37953. }
  37954. return graphql.Null
  37955. }
  37956. res := resTmp.(string)
  37957. fc.Result = res
  37958. return ec.marshalNString2string(ctx, field.Selections, res)
  37959. }
  37960. func (ec *executionContext) fieldContext_AppSubscription_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  37961. fc = &graphql.FieldContext{
  37962. Object: "AppSubscription",
  37963. Field: field,
  37964. IsMethod: false,
  37965. IsResolver: false,
  37966. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  37967. return nil, errors.New("field of type String does not have child fields")
  37968. },
  37969. }
  37970. return fc, nil
  37971. }
  37972. func (ec *executionContext) _AppSubscription_returnUrl(ctx context.Context, field graphql.CollectedField, obj *AppSubscription) (ret graphql.Marshaler) {
  37973. fc, err := ec.fieldContext_AppSubscription_returnUrl(ctx, field)
  37974. if err != nil {
  37975. return graphql.Null
  37976. }
  37977. ctx = graphql.WithFieldContext(ctx, fc)
  37978. defer func() {
  37979. if r := recover(); r != nil {
  37980. ec.Error(ctx, ec.Recover(ctx, r))
  37981. ret = graphql.Null
  37982. }
  37983. }()
  37984. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  37985. ctx = rctx // use context from middleware stack in children
  37986. return obj.ReturnURL, nil
  37987. })
  37988. if err != nil {
  37989. ec.Error(ctx, err)
  37990. return graphql.Null
  37991. }
  37992. if resTmp == nil {
  37993. if !graphql.HasFieldError(ctx, fc) {
  37994. ec.Errorf(ctx, "must not be null")
  37995. }
  37996. return graphql.Null
  37997. }
  37998. res := resTmp.(string)
  37999. fc.Result = res
  38000. return ec.marshalNURL2string(ctx, field.Selections, res)
  38001. }
  38002. func (ec *executionContext) fieldContext_AppSubscription_returnUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  38003. fc = &graphql.FieldContext{
  38004. Object: "AppSubscription",
  38005. Field: field,
  38006. IsMethod: false,
  38007. IsResolver: false,
  38008. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  38009. return nil, errors.New("field of type URL does not have child fields")
  38010. },
  38011. }
  38012. return fc, nil
  38013. }
  38014. func (ec *executionContext) _AppSubscription_status(ctx context.Context, field graphql.CollectedField, obj *AppSubscription) (ret graphql.Marshaler) {
  38015. fc, err := ec.fieldContext_AppSubscription_status(ctx, field)
  38016. if err != nil {
  38017. return graphql.Null
  38018. }
  38019. ctx = graphql.WithFieldContext(ctx, fc)
  38020. defer func() {
  38021. if r := recover(); r != nil {
  38022. ec.Error(ctx, ec.Recover(ctx, r))
  38023. ret = graphql.Null
  38024. }
  38025. }()
  38026. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  38027. ctx = rctx // use context from middleware stack in children
  38028. return obj.Status, nil
  38029. })
  38030. if err != nil {
  38031. ec.Error(ctx, err)
  38032. return graphql.Null
  38033. }
  38034. if resTmp == nil {
  38035. if !graphql.HasFieldError(ctx, fc) {
  38036. ec.Errorf(ctx, "must not be null")
  38037. }
  38038. return graphql.Null
  38039. }
  38040. res := resTmp.(AppSubscriptionStatus)
  38041. fc.Result = res
  38042. return ec.marshalNAppSubscriptionStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppSubscriptionStatus(ctx, field.Selections, res)
  38043. }
  38044. func (ec *executionContext) fieldContext_AppSubscription_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  38045. fc = &graphql.FieldContext{
  38046. Object: "AppSubscription",
  38047. Field: field,
  38048. IsMethod: false,
  38049. IsResolver: false,
  38050. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  38051. return nil, errors.New("field of type AppSubscriptionStatus does not have child fields")
  38052. },
  38053. }
  38054. return fc, nil
  38055. }
  38056. func (ec *executionContext) _AppSubscription_test(ctx context.Context, field graphql.CollectedField, obj *AppSubscription) (ret graphql.Marshaler) {
  38057. fc, err := ec.fieldContext_AppSubscription_test(ctx, field)
  38058. if err != nil {
  38059. return graphql.Null
  38060. }
  38061. ctx = graphql.WithFieldContext(ctx, fc)
  38062. defer func() {
  38063. if r := recover(); r != nil {
  38064. ec.Error(ctx, ec.Recover(ctx, r))
  38065. ret = graphql.Null
  38066. }
  38067. }()
  38068. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  38069. ctx = rctx // use context from middleware stack in children
  38070. return obj.Test, nil
  38071. })
  38072. if err != nil {
  38073. ec.Error(ctx, err)
  38074. return graphql.Null
  38075. }
  38076. if resTmp == nil {
  38077. if !graphql.HasFieldError(ctx, fc) {
  38078. ec.Errorf(ctx, "must not be null")
  38079. }
  38080. return graphql.Null
  38081. }
  38082. res := resTmp.(bool)
  38083. fc.Result = res
  38084. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  38085. }
  38086. func (ec *executionContext) fieldContext_AppSubscription_test(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  38087. fc = &graphql.FieldContext{
  38088. Object: "AppSubscription",
  38089. Field: field,
  38090. IsMethod: false,
  38091. IsResolver: false,
  38092. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  38093. return nil, errors.New("field of type Boolean does not have child fields")
  38094. },
  38095. }
  38096. return fc, nil
  38097. }
  38098. func (ec *executionContext) _AppSubscription_trialDays(ctx context.Context, field graphql.CollectedField, obj *AppSubscription) (ret graphql.Marshaler) {
  38099. fc, err := ec.fieldContext_AppSubscription_trialDays(ctx, field)
  38100. if err != nil {
  38101. return graphql.Null
  38102. }
  38103. ctx = graphql.WithFieldContext(ctx, fc)
  38104. defer func() {
  38105. if r := recover(); r != nil {
  38106. ec.Error(ctx, ec.Recover(ctx, r))
  38107. ret = graphql.Null
  38108. }
  38109. }()
  38110. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  38111. ctx = rctx // use context from middleware stack in children
  38112. return obj.TrialDays, nil
  38113. })
  38114. if err != nil {
  38115. ec.Error(ctx, err)
  38116. return graphql.Null
  38117. }
  38118. if resTmp == nil {
  38119. if !graphql.HasFieldError(ctx, fc) {
  38120. ec.Errorf(ctx, "must not be null")
  38121. }
  38122. return graphql.Null
  38123. }
  38124. res := resTmp.(int)
  38125. fc.Result = res
  38126. return ec.marshalNInt2int(ctx, field.Selections, res)
  38127. }
  38128. func (ec *executionContext) fieldContext_AppSubscription_trialDays(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  38129. fc = &graphql.FieldContext{
  38130. Object: "AppSubscription",
  38131. Field: field,
  38132. IsMethod: false,
  38133. IsResolver: false,
  38134. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  38135. return nil, errors.New("field of type Int does not have child fields")
  38136. },
  38137. }
  38138. return fc, nil
  38139. }
  38140. func (ec *executionContext) _AppSubscriptionConnection_edges(ctx context.Context, field graphql.CollectedField, obj *AppSubscriptionConnection) (ret graphql.Marshaler) {
  38141. fc, err := ec.fieldContext_AppSubscriptionConnection_edges(ctx, field)
  38142. if err != nil {
  38143. return graphql.Null
  38144. }
  38145. ctx = graphql.WithFieldContext(ctx, fc)
  38146. defer func() {
  38147. if r := recover(); r != nil {
  38148. ec.Error(ctx, ec.Recover(ctx, r))
  38149. ret = graphql.Null
  38150. }
  38151. }()
  38152. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  38153. ctx = rctx // use context from middleware stack in children
  38154. return obj.Edges, nil
  38155. })
  38156. if err != nil {
  38157. ec.Error(ctx, err)
  38158. return graphql.Null
  38159. }
  38160. if resTmp == nil {
  38161. if !graphql.HasFieldError(ctx, fc) {
  38162. ec.Errorf(ctx, "must not be null")
  38163. }
  38164. return graphql.Null
  38165. }
  38166. res := resTmp.([]*AppSubscriptionEdge)
  38167. fc.Result = res
  38168. return ec.marshalNAppSubscriptionEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppSubscriptionEdgeᚄ(ctx, field.Selections, res)
  38169. }
  38170. func (ec *executionContext) fieldContext_AppSubscriptionConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  38171. fc = &graphql.FieldContext{
  38172. Object: "AppSubscriptionConnection",
  38173. Field: field,
  38174. IsMethod: false,
  38175. IsResolver: false,
  38176. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  38177. switch field.Name {
  38178. case "cursor":
  38179. return ec.fieldContext_AppSubscriptionEdge_cursor(ctx, field)
  38180. case "node":
  38181. return ec.fieldContext_AppSubscriptionEdge_node(ctx, field)
  38182. }
  38183. return nil, fmt.Errorf("no field named %q was found under type AppSubscriptionEdge", field.Name)
  38184. },
  38185. }
  38186. return fc, nil
  38187. }
  38188. func (ec *executionContext) _AppSubscriptionConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *AppSubscriptionConnection) (ret graphql.Marshaler) {
  38189. fc, err := ec.fieldContext_AppSubscriptionConnection_nodes(ctx, field)
  38190. if err != nil {
  38191. return graphql.Null
  38192. }
  38193. ctx = graphql.WithFieldContext(ctx, fc)
  38194. defer func() {
  38195. if r := recover(); r != nil {
  38196. ec.Error(ctx, ec.Recover(ctx, r))
  38197. ret = graphql.Null
  38198. }
  38199. }()
  38200. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  38201. ctx = rctx // use context from middleware stack in children
  38202. return obj.Nodes, nil
  38203. })
  38204. if err != nil {
  38205. ec.Error(ctx, err)
  38206. return graphql.Null
  38207. }
  38208. if resTmp == nil {
  38209. if !graphql.HasFieldError(ctx, fc) {
  38210. ec.Errorf(ctx, "must not be null")
  38211. }
  38212. return graphql.Null
  38213. }
  38214. res := resTmp.([]*AppSubscription)
  38215. fc.Result = res
  38216. return ec.marshalNAppSubscription2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppSubscriptionᚄ(ctx, field.Selections, res)
  38217. }
  38218. func (ec *executionContext) fieldContext_AppSubscriptionConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  38219. fc = &graphql.FieldContext{
  38220. Object: "AppSubscriptionConnection",
  38221. Field: field,
  38222. IsMethod: false,
  38223. IsResolver: false,
  38224. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  38225. switch field.Name {
  38226. case "createdAt":
  38227. return ec.fieldContext_AppSubscription_createdAt(ctx, field)
  38228. case "currentPeriodEnd":
  38229. return ec.fieldContext_AppSubscription_currentPeriodEnd(ctx, field)
  38230. case "id":
  38231. return ec.fieldContext_AppSubscription_id(ctx, field)
  38232. case "lineItems":
  38233. return ec.fieldContext_AppSubscription_lineItems(ctx, field)
  38234. case "name":
  38235. return ec.fieldContext_AppSubscription_name(ctx, field)
  38236. case "returnUrl":
  38237. return ec.fieldContext_AppSubscription_returnUrl(ctx, field)
  38238. case "status":
  38239. return ec.fieldContext_AppSubscription_status(ctx, field)
  38240. case "test":
  38241. return ec.fieldContext_AppSubscription_test(ctx, field)
  38242. case "trialDays":
  38243. return ec.fieldContext_AppSubscription_trialDays(ctx, field)
  38244. }
  38245. return nil, fmt.Errorf("no field named %q was found under type AppSubscription", field.Name)
  38246. },
  38247. }
  38248. return fc, nil
  38249. }
  38250. func (ec *executionContext) _AppSubscriptionConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *AppSubscriptionConnection) (ret graphql.Marshaler) {
  38251. fc, err := ec.fieldContext_AppSubscriptionConnection_pageInfo(ctx, field)
  38252. if err != nil {
  38253. return graphql.Null
  38254. }
  38255. ctx = graphql.WithFieldContext(ctx, fc)
  38256. defer func() {
  38257. if r := recover(); r != nil {
  38258. ec.Error(ctx, ec.Recover(ctx, r))
  38259. ret = graphql.Null
  38260. }
  38261. }()
  38262. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  38263. ctx = rctx // use context from middleware stack in children
  38264. return obj.PageInfo, nil
  38265. })
  38266. if err != nil {
  38267. ec.Error(ctx, err)
  38268. return graphql.Null
  38269. }
  38270. if resTmp == nil {
  38271. if !graphql.HasFieldError(ctx, fc) {
  38272. ec.Errorf(ctx, "must not be null")
  38273. }
  38274. return graphql.Null
  38275. }
  38276. res := resTmp.(*PageInfo)
  38277. fc.Result = res
  38278. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  38279. }
  38280. func (ec *executionContext) fieldContext_AppSubscriptionConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  38281. fc = &graphql.FieldContext{
  38282. Object: "AppSubscriptionConnection",
  38283. Field: field,
  38284. IsMethod: false,
  38285. IsResolver: false,
  38286. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  38287. switch field.Name {
  38288. case "endCursor":
  38289. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  38290. case "hasNextPage":
  38291. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  38292. case "hasPreviousPage":
  38293. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  38294. case "startCursor":
  38295. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  38296. }
  38297. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  38298. },
  38299. }
  38300. return fc, nil
  38301. }
  38302. func (ec *executionContext) _AppSubscriptionDiscount_durationLimitInIntervals(ctx context.Context, field graphql.CollectedField, obj *AppSubscriptionDiscount) (ret graphql.Marshaler) {
  38303. fc, err := ec.fieldContext_AppSubscriptionDiscount_durationLimitInIntervals(ctx, field)
  38304. if err != nil {
  38305. return graphql.Null
  38306. }
  38307. ctx = graphql.WithFieldContext(ctx, fc)
  38308. defer func() {
  38309. if r := recover(); r != nil {
  38310. ec.Error(ctx, ec.Recover(ctx, r))
  38311. ret = graphql.Null
  38312. }
  38313. }()
  38314. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  38315. ctx = rctx // use context from middleware stack in children
  38316. return obj.DurationLimitInIntervals, nil
  38317. })
  38318. if err != nil {
  38319. ec.Error(ctx, err)
  38320. return graphql.Null
  38321. }
  38322. if resTmp == nil {
  38323. return graphql.Null
  38324. }
  38325. res := resTmp.(*int)
  38326. fc.Result = res
  38327. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  38328. }
  38329. func (ec *executionContext) fieldContext_AppSubscriptionDiscount_durationLimitInIntervals(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  38330. fc = &graphql.FieldContext{
  38331. Object: "AppSubscriptionDiscount",
  38332. Field: field,
  38333. IsMethod: false,
  38334. IsResolver: false,
  38335. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  38336. return nil, errors.New("field of type Int does not have child fields")
  38337. },
  38338. }
  38339. return fc, nil
  38340. }
  38341. func (ec *executionContext) _AppSubscriptionDiscount_priceAfterDiscount(ctx context.Context, field graphql.CollectedField, obj *AppSubscriptionDiscount) (ret graphql.Marshaler) {
  38342. fc, err := ec.fieldContext_AppSubscriptionDiscount_priceAfterDiscount(ctx, field)
  38343. if err != nil {
  38344. return graphql.Null
  38345. }
  38346. ctx = graphql.WithFieldContext(ctx, fc)
  38347. defer func() {
  38348. if r := recover(); r != nil {
  38349. ec.Error(ctx, ec.Recover(ctx, r))
  38350. ret = graphql.Null
  38351. }
  38352. }()
  38353. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  38354. ctx = rctx // use context from middleware stack in children
  38355. return obj.PriceAfterDiscount, nil
  38356. })
  38357. if err != nil {
  38358. ec.Error(ctx, err)
  38359. return graphql.Null
  38360. }
  38361. if resTmp == nil {
  38362. if !graphql.HasFieldError(ctx, fc) {
  38363. ec.Errorf(ctx, "must not be null")
  38364. }
  38365. return graphql.Null
  38366. }
  38367. res := resTmp.(*MoneyV2)
  38368. fc.Result = res
  38369. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  38370. }
  38371. func (ec *executionContext) fieldContext_AppSubscriptionDiscount_priceAfterDiscount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  38372. fc = &graphql.FieldContext{
  38373. Object: "AppSubscriptionDiscount",
  38374. Field: field,
  38375. IsMethod: false,
  38376. IsResolver: false,
  38377. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  38378. switch field.Name {
  38379. case "amount":
  38380. return ec.fieldContext_MoneyV2_amount(ctx, field)
  38381. case "currencyCode":
  38382. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  38383. }
  38384. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  38385. },
  38386. }
  38387. return fc, nil
  38388. }
  38389. func (ec *executionContext) _AppSubscriptionDiscount_remainingDurationInIntervals(ctx context.Context, field graphql.CollectedField, obj *AppSubscriptionDiscount) (ret graphql.Marshaler) {
  38390. fc, err := ec.fieldContext_AppSubscriptionDiscount_remainingDurationInIntervals(ctx, field)
  38391. if err != nil {
  38392. return graphql.Null
  38393. }
  38394. ctx = graphql.WithFieldContext(ctx, fc)
  38395. defer func() {
  38396. if r := recover(); r != nil {
  38397. ec.Error(ctx, ec.Recover(ctx, r))
  38398. ret = graphql.Null
  38399. }
  38400. }()
  38401. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  38402. ctx = rctx // use context from middleware stack in children
  38403. return obj.RemainingDurationInIntervals, nil
  38404. })
  38405. if err != nil {
  38406. ec.Error(ctx, err)
  38407. return graphql.Null
  38408. }
  38409. if resTmp == nil {
  38410. return graphql.Null
  38411. }
  38412. res := resTmp.(*int)
  38413. fc.Result = res
  38414. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  38415. }
  38416. func (ec *executionContext) fieldContext_AppSubscriptionDiscount_remainingDurationInIntervals(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  38417. fc = &graphql.FieldContext{
  38418. Object: "AppSubscriptionDiscount",
  38419. Field: field,
  38420. IsMethod: false,
  38421. IsResolver: false,
  38422. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  38423. return nil, errors.New("field of type Int does not have child fields")
  38424. },
  38425. }
  38426. return fc, nil
  38427. }
  38428. func (ec *executionContext) _AppSubscriptionDiscount_value(ctx context.Context, field graphql.CollectedField, obj *AppSubscriptionDiscount) (ret graphql.Marshaler) {
  38429. fc, err := ec.fieldContext_AppSubscriptionDiscount_value(ctx, field)
  38430. if err != nil {
  38431. return graphql.Null
  38432. }
  38433. ctx = graphql.WithFieldContext(ctx, fc)
  38434. defer func() {
  38435. if r := recover(); r != nil {
  38436. ec.Error(ctx, ec.Recover(ctx, r))
  38437. ret = graphql.Null
  38438. }
  38439. }()
  38440. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  38441. ctx = rctx // use context from middleware stack in children
  38442. return obj.Value, nil
  38443. })
  38444. if err != nil {
  38445. ec.Error(ctx, err)
  38446. return graphql.Null
  38447. }
  38448. if resTmp == nil {
  38449. if !graphql.HasFieldError(ctx, fc) {
  38450. ec.Errorf(ctx, "must not be null")
  38451. }
  38452. return graphql.Null
  38453. }
  38454. res := resTmp.(AppSubscriptionDiscountValue)
  38455. fc.Result = res
  38456. return ec.marshalNAppSubscriptionDiscountValue2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppSubscriptionDiscountValue(ctx, field.Selections, res)
  38457. }
  38458. func (ec *executionContext) fieldContext_AppSubscriptionDiscount_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  38459. fc = &graphql.FieldContext{
  38460. Object: "AppSubscriptionDiscount",
  38461. Field: field,
  38462. IsMethod: false,
  38463. IsResolver: false,
  38464. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  38465. return nil, errors.New("field of type AppSubscriptionDiscountValue does not have child fields")
  38466. },
  38467. }
  38468. return fc, nil
  38469. }
  38470. func (ec *executionContext) _AppSubscriptionDiscountAmount_amount(ctx context.Context, field graphql.CollectedField, obj *AppSubscriptionDiscountAmount) (ret graphql.Marshaler) {
  38471. fc, err := ec.fieldContext_AppSubscriptionDiscountAmount_amount(ctx, field)
  38472. if err != nil {
  38473. return graphql.Null
  38474. }
  38475. ctx = graphql.WithFieldContext(ctx, fc)
  38476. defer func() {
  38477. if r := recover(); r != nil {
  38478. ec.Error(ctx, ec.Recover(ctx, r))
  38479. ret = graphql.Null
  38480. }
  38481. }()
  38482. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  38483. ctx = rctx // use context from middleware stack in children
  38484. return obj.Amount, nil
  38485. })
  38486. if err != nil {
  38487. ec.Error(ctx, err)
  38488. return graphql.Null
  38489. }
  38490. if resTmp == nil {
  38491. if !graphql.HasFieldError(ctx, fc) {
  38492. ec.Errorf(ctx, "must not be null")
  38493. }
  38494. return graphql.Null
  38495. }
  38496. res := resTmp.(*MoneyV2)
  38497. fc.Result = res
  38498. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  38499. }
  38500. func (ec *executionContext) fieldContext_AppSubscriptionDiscountAmount_amount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  38501. fc = &graphql.FieldContext{
  38502. Object: "AppSubscriptionDiscountAmount",
  38503. Field: field,
  38504. IsMethod: false,
  38505. IsResolver: false,
  38506. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  38507. switch field.Name {
  38508. case "amount":
  38509. return ec.fieldContext_MoneyV2_amount(ctx, field)
  38510. case "currencyCode":
  38511. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  38512. }
  38513. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  38514. },
  38515. }
  38516. return fc, nil
  38517. }
  38518. func (ec *executionContext) _AppSubscriptionDiscountPercentage_percentage(ctx context.Context, field graphql.CollectedField, obj *AppSubscriptionDiscountPercentage) (ret graphql.Marshaler) {
  38519. fc, err := ec.fieldContext_AppSubscriptionDiscountPercentage_percentage(ctx, field)
  38520. if err != nil {
  38521. return graphql.Null
  38522. }
  38523. ctx = graphql.WithFieldContext(ctx, fc)
  38524. defer func() {
  38525. if r := recover(); r != nil {
  38526. ec.Error(ctx, ec.Recover(ctx, r))
  38527. ret = graphql.Null
  38528. }
  38529. }()
  38530. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  38531. ctx = rctx // use context from middleware stack in children
  38532. return obj.Percentage, nil
  38533. })
  38534. if err != nil {
  38535. ec.Error(ctx, err)
  38536. return graphql.Null
  38537. }
  38538. if resTmp == nil {
  38539. if !graphql.HasFieldError(ctx, fc) {
  38540. ec.Errorf(ctx, "must not be null")
  38541. }
  38542. return graphql.Null
  38543. }
  38544. res := resTmp.(float64)
  38545. fc.Result = res
  38546. return ec.marshalNFloat2float64(ctx, field.Selections, res)
  38547. }
  38548. func (ec *executionContext) fieldContext_AppSubscriptionDiscountPercentage_percentage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  38549. fc = &graphql.FieldContext{
  38550. Object: "AppSubscriptionDiscountPercentage",
  38551. Field: field,
  38552. IsMethod: false,
  38553. IsResolver: false,
  38554. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  38555. return nil, errors.New("field of type Float does not have child fields")
  38556. },
  38557. }
  38558. return fc, nil
  38559. }
  38560. func (ec *executionContext) _AppSubscriptionEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *AppSubscriptionEdge) (ret graphql.Marshaler) {
  38561. fc, err := ec.fieldContext_AppSubscriptionEdge_cursor(ctx, field)
  38562. if err != nil {
  38563. return graphql.Null
  38564. }
  38565. ctx = graphql.WithFieldContext(ctx, fc)
  38566. defer func() {
  38567. if r := recover(); r != nil {
  38568. ec.Error(ctx, ec.Recover(ctx, r))
  38569. ret = graphql.Null
  38570. }
  38571. }()
  38572. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  38573. ctx = rctx // use context from middleware stack in children
  38574. return obj.Cursor, nil
  38575. })
  38576. if err != nil {
  38577. ec.Error(ctx, err)
  38578. return graphql.Null
  38579. }
  38580. if resTmp == nil {
  38581. if !graphql.HasFieldError(ctx, fc) {
  38582. ec.Errorf(ctx, "must not be null")
  38583. }
  38584. return graphql.Null
  38585. }
  38586. res := resTmp.(string)
  38587. fc.Result = res
  38588. return ec.marshalNString2string(ctx, field.Selections, res)
  38589. }
  38590. func (ec *executionContext) fieldContext_AppSubscriptionEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  38591. fc = &graphql.FieldContext{
  38592. Object: "AppSubscriptionEdge",
  38593. Field: field,
  38594. IsMethod: false,
  38595. IsResolver: false,
  38596. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  38597. return nil, errors.New("field of type String does not have child fields")
  38598. },
  38599. }
  38600. return fc, nil
  38601. }
  38602. func (ec *executionContext) _AppSubscriptionEdge_node(ctx context.Context, field graphql.CollectedField, obj *AppSubscriptionEdge) (ret graphql.Marshaler) {
  38603. fc, err := ec.fieldContext_AppSubscriptionEdge_node(ctx, field)
  38604. if err != nil {
  38605. return graphql.Null
  38606. }
  38607. ctx = graphql.WithFieldContext(ctx, fc)
  38608. defer func() {
  38609. if r := recover(); r != nil {
  38610. ec.Error(ctx, ec.Recover(ctx, r))
  38611. ret = graphql.Null
  38612. }
  38613. }()
  38614. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  38615. ctx = rctx // use context from middleware stack in children
  38616. return obj.Node, nil
  38617. })
  38618. if err != nil {
  38619. ec.Error(ctx, err)
  38620. return graphql.Null
  38621. }
  38622. if resTmp == nil {
  38623. if !graphql.HasFieldError(ctx, fc) {
  38624. ec.Errorf(ctx, "must not be null")
  38625. }
  38626. return graphql.Null
  38627. }
  38628. res := resTmp.(*AppSubscription)
  38629. fc.Result = res
  38630. return ec.marshalNAppSubscription2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppSubscription(ctx, field.Selections, res)
  38631. }
  38632. func (ec *executionContext) fieldContext_AppSubscriptionEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  38633. fc = &graphql.FieldContext{
  38634. Object: "AppSubscriptionEdge",
  38635. Field: field,
  38636. IsMethod: false,
  38637. IsResolver: false,
  38638. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  38639. switch field.Name {
  38640. case "createdAt":
  38641. return ec.fieldContext_AppSubscription_createdAt(ctx, field)
  38642. case "currentPeriodEnd":
  38643. return ec.fieldContext_AppSubscription_currentPeriodEnd(ctx, field)
  38644. case "id":
  38645. return ec.fieldContext_AppSubscription_id(ctx, field)
  38646. case "lineItems":
  38647. return ec.fieldContext_AppSubscription_lineItems(ctx, field)
  38648. case "name":
  38649. return ec.fieldContext_AppSubscription_name(ctx, field)
  38650. case "returnUrl":
  38651. return ec.fieldContext_AppSubscription_returnUrl(ctx, field)
  38652. case "status":
  38653. return ec.fieldContext_AppSubscription_status(ctx, field)
  38654. case "test":
  38655. return ec.fieldContext_AppSubscription_test(ctx, field)
  38656. case "trialDays":
  38657. return ec.fieldContext_AppSubscription_trialDays(ctx, field)
  38658. }
  38659. return nil, fmt.Errorf("no field named %q was found under type AppSubscription", field.Name)
  38660. },
  38661. }
  38662. return fc, nil
  38663. }
  38664. func (ec *executionContext) _AppSubscriptionLineItem_id(ctx context.Context, field graphql.CollectedField, obj *AppSubscriptionLineItem) (ret graphql.Marshaler) {
  38665. fc, err := ec.fieldContext_AppSubscriptionLineItem_id(ctx, field)
  38666. if err != nil {
  38667. return graphql.Null
  38668. }
  38669. ctx = graphql.WithFieldContext(ctx, fc)
  38670. defer func() {
  38671. if r := recover(); r != nil {
  38672. ec.Error(ctx, ec.Recover(ctx, r))
  38673. ret = graphql.Null
  38674. }
  38675. }()
  38676. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  38677. ctx = rctx // use context from middleware stack in children
  38678. return obj.ID, nil
  38679. })
  38680. if err != nil {
  38681. ec.Error(ctx, err)
  38682. return graphql.Null
  38683. }
  38684. if resTmp == nil {
  38685. if !graphql.HasFieldError(ctx, fc) {
  38686. ec.Errorf(ctx, "must not be null")
  38687. }
  38688. return graphql.Null
  38689. }
  38690. res := resTmp.(string)
  38691. fc.Result = res
  38692. return ec.marshalNID2string(ctx, field.Selections, res)
  38693. }
  38694. func (ec *executionContext) fieldContext_AppSubscriptionLineItem_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  38695. fc = &graphql.FieldContext{
  38696. Object: "AppSubscriptionLineItem",
  38697. Field: field,
  38698. IsMethod: false,
  38699. IsResolver: false,
  38700. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  38701. return nil, errors.New("field of type ID does not have child fields")
  38702. },
  38703. }
  38704. return fc, nil
  38705. }
  38706. func (ec *executionContext) _AppSubscriptionLineItem_plan(ctx context.Context, field graphql.CollectedField, obj *AppSubscriptionLineItem) (ret graphql.Marshaler) {
  38707. fc, err := ec.fieldContext_AppSubscriptionLineItem_plan(ctx, field)
  38708. if err != nil {
  38709. return graphql.Null
  38710. }
  38711. ctx = graphql.WithFieldContext(ctx, fc)
  38712. defer func() {
  38713. if r := recover(); r != nil {
  38714. ec.Error(ctx, ec.Recover(ctx, r))
  38715. ret = graphql.Null
  38716. }
  38717. }()
  38718. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  38719. ctx = rctx // use context from middleware stack in children
  38720. return obj.Plan, nil
  38721. })
  38722. if err != nil {
  38723. ec.Error(ctx, err)
  38724. return graphql.Null
  38725. }
  38726. if resTmp == nil {
  38727. if !graphql.HasFieldError(ctx, fc) {
  38728. ec.Errorf(ctx, "must not be null")
  38729. }
  38730. return graphql.Null
  38731. }
  38732. res := resTmp.(*AppPlanV2)
  38733. fc.Result = res
  38734. return ec.marshalNAppPlanV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppPlanV2(ctx, field.Selections, res)
  38735. }
  38736. func (ec *executionContext) fieldContext_AppSubscriptionLineItem_plan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  38737. fc = &graphql.FieldContext{
  38738. Object: "AppSubscriptionLineItem",
  38739. Field: field,
  38740. IsMethod: false,
  38741. IsResolver: false,
  38742. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  38743. switch field.Name {
  38744. case "pricingDetails":
  38745. return ec.fieldContext_AppPlanV2_pricingDetails(ctx, field)
  38746. }
  38747. return nil, fmt.Errorf("no field named %q was found under type AppPlanV2", field.Name)
  38748. },
  38749. }
  38750. return fc, nil
  38751. }
  38752. func (ec *executionContext) _AppSubscriptionLineItem_usageRecords(ctx context.Context, field graphql.CollectedField, obj *AppSubscriptionLineItem) (ret graphql.Marshaler) {
  38753. fc, err := ec.fieldContext_AppSubscriptionLineItem_usageRecords(ctx, field)
  38754. if err != nil {
  38755. return graphql.Null
  38756. }
  38757. ctx = graphql.WithFieldContext(ctx, fc)
  38758. defer func() {
  38759. if r := recover(); r != nil {
  38760. ec.Error(ctx, ec.Recover(ctx, r))
  38761. ret = graphql.Null
  38762. }
  38763. }()
  38764. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  38765. ctx = rctx // use context from middleware stack in children
  38766. return obj.UsageRecords, nil
  38767. })
  38768. if err != nil {
  38769. ec.Error(ctx, err)
  38770. return graphql.Null
  38771. }
  38772. if resTmp == nil {
  38773. if !graphql.HasFieldError(ctx, fc) {
  38774. ec.Errorf(ctx, "must not be null")
  38775. }
  38776. return graphql.Null
  38777. }
  38778. res := resTmp.(*AppUsageRecordConnection)
  38779. fc.Result = res
  38780. return ec.marshalNAppUsageRecordConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppUsageRecordConnection(ctx, field.Selections, res)
  38781. }
  38782. func (ec *executionContext) fieldContext_AppSubscriptionLineItem_usageRecords(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  38783. fc = &graphql.FieldContext{
  38784. Object: "AppSubscriptionLineItem",
  38785. Field: field,
  38786. IsMethod: false,
  38787. IsResolver: false,
  38788. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  38789. switch field.Name {
  38790. case "edges":
  38791. return ec.fieldContext_AppUsageRecordConnection_edges(ctx, field)
  38792. case "nodes":
  38793. return ec.fieldContext_AppUsageRecordConnection_nodes(ctx, field)
  38794. case "pageInfo":
  38795. return ec.fieldContext_AppUsageRecordConnection_pageInfo(ctx, field)
  38796. }
  38797. return nil, fmt.Errorf("no field named %q was found under type AppUsageRecordConnection", field.Name)
  38798. },
  38799. }
  38800. defer func() {
  38801. if r := recover(); r != nil {
  38802. err = ec.Recover(ctx, r)
  38803. ec.Error(ctx, err)
  38804. }
  38805. }()
  38806. ctx = graphql.WithFieldContext(ctx, fc)
  38807. if fc.Args, err = ec.field_AppSubscriptionLineItem_usageRecords_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  38808. ec.Error(ctx, err)
  38809. return
  38810. }
  38811. return fc, nil
  38812. }
  38813. func (ec *executionContext) _AppUsagePricing_balanceUsed(ctx context.Context, field graphql.CollectedField, obj *AppUsagePricing) (ret graphql.Marshaler) {
  38814. fc, err := ec.fieldContext_AppUsagePricing_balanceUsed(ctx, field)
  38815. if err != nil {
  38816. return graphql.Null
  38817. }
  38818. ctx = graphql.WithFieldContext(ctx, fc)
  38819. defer func() {
  38820. if r := recover(); r != nil {
  38821. ec.Error(ctx, ec.Recover(ctx, r))
  38822. ret = graphql.Null
  38823. }
  38824. }()
  38825. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  38826. ctx = rctx // use context from middleware stack in children
  38827. return obj.BalanceUsed, nil
  38828. })
  38829. if err != nil {
  38830. ec.Error(ctx, err)
  38831. return graphql.Null
  38832. }
  38833. if resTmp == nil {
  38834. if !graphql.HasFieldError(ctx, fc) {
  38835. ec.Errorf(ctx, "must not be null")
  38836. }
  38837. return graphql.Null
  38838. }
  38839. res := resTmp.(*MoneyV2)
  38840. fc.Result = res
  38841. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  38842. }
  38843. func (ec *executionContext) fieldContext_AppUsagePricing_balanceUsed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  38844. fc = &graphql.FieldContext{
  38845. Object: "AppUsagePricing",
  38846. Field: field,
  38847. IsMethod: false,
  38848. IsResolver: false,
  38849. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  38850. switch field.Name {
  38851. case "amount":
  38852. return ec.fieldContext_MoneyV2_amount(ctx, field)
  38853. case "currencyCode":
  38854. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  38855. }
  38856. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  38857. },
  38858. }
  38859. return fc, nil
  38860. }
  38861. func (ec *executionContext) _AppUsagePricing_cappedAmount(ctx context.Context, field graphql.CollectedField, obj *AppUsagePricing) (ret graphql.Marshaler) {
  38862. fc, err := ec.fieldContext_AppUsagePricing_cappedAmount(ctx, field)
  38863. if err != nil {
  38864. return graphql.Null
  38865. }
  38866. ctx = graphql.WithFieldContext(ctx, fc)
  38867. defer func() {
  38868. if r := recover(); r != nil {
  38869. ec.Error(ctx, ec.Recover(ctx, r))
  38870. ret = graphql.Null
  38871. }
  38872. }()
  38873. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  38874. ctx = rctx // use context from middleware stack in children
  38875. return obj.CappedAmount, nil
  38876. })
  38877. if err != nil {
  38878. ec.Error(ctx, err)
  38879. return graphql.Null
  38880. }
  38881. if resTmp == nil {
  38882. if !graphql.HasFieldError(ctx, fc) {
  38883. ec.Errorf(ctx, "must not be null")
  38884. }
  38885. return graphql.Null
  38886. }
  38887. res := resTmp.(*MoneyV2)
  38888. fc.Result = res
  38889. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  38890. }
  38891. func (ec *executionContext) fieldContext_AppUsagePricing_cappedAmount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  38892. fc = &graphql.FieldContext{
  38893. Object: "AppUsagePricing",
  38894. Field: field,
  38895. IsMethod: false,
  38896. IsResolver: false,
  38897. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  38898. switch field.Name {
  38899. case "amount":
  38900. return ec.fieldContext_MoneyV2_amount(ctx, field)
  38901. case "currencyCode":
  38902. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  38903. }
  38904. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  38905. },
  38906. }
  38907. return fc, nil
  38908. }
  38909. func (ec *executionContext) _AppUsagePricing_interval(ctx context.Context, field graphql.CollectedField, obj *AppUsagePricing) (ret graphql.Marshaler) {
  38910. fc, err := ec.fieldContext_AppUsagePricing_interval(ctx, field)
  38911. if err != nil {
  38912. return graphql.Null
  38913. }
  38914. ctx = graphql.WithFieldContext(ctx, fc)
  38915. defer func() {
  38916. if r := recover(); r != nil {
  38917. ec.Error(ctx, ec.Recover(ctx, r))
  38918. ret = graphql.Null
  38919. }
  38920. }()
  38921. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  38922. ctx = rctx // use context from middleware stack in children
  38923. return obj.Interval, nil
  38924. })
  38925. if err != nil {
  38926. ec.Error(ctx, err)
  38927. return graphql.Null
  38928. }
  38929. if resTmp == nil {
  38930. if !graphql.HasFieldError(ctx, fc) {
  38931. ec.Errorf(ctx, "must not be null")
  38932. }
  38933. return graphql.Null
  38934. }
  38935. res := resTmp.(AppPricingInterval)
  38936. fc.Result = res
  38937. return ec.marshalNAppPricingInterval2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppPricingInterval(ctx, field.Selections, res)
  38938. }
  38939. func (ec *executionContext) fieldContext_AppUsagePricing_interval(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  38940. fc = &graphql.FieldContext{
  38941. Object: "AppUsagePricing",
  38942. Field: field,
  38943. IsMethod: false,
  38944. IsResolver: false,
  38945. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  38946. return nil, errors.New("field of type AppPricingInterval does not have child fields")
  38947. },
  38948. }
  38949. return fc, nil
  38950. }
  38951. func (ec *executionContext) _AppUsagePricing_terms(ctx context.Context, field graphql.CollectedField, obj *AppUsagePricing) (ret graphql.Marshaler) {
  38952. fc, err := ec.fieldContext_AppUsagePricing_terms(ctx, field)
  38953. if err != nil {
  38954. return graphql.Null
  38955. }
  38956. ctx = graphql.WithFieldContext(ctx, fc)
  38957. defer func() {
  38958. if r := recover(); r != nil {
  38959. ec.Error(ctx, ec.Recover(ctx, r))
  38960. ret = graphql.Null
  38961. }
  38962. }()
  38963. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  38964. ctx = rctx // use context from middleware stack in children
  38965. return obj.Terms, nil
  38966. })
  38967. if err != nil {
  38968. ec.Error(ctx, err)
  38969. return graphql.Null
  38970. }
  38971. if resTmp == nil {
  38972. if !graphql.HasFieldError(ctx, fc) {
  38973. ec.Errorf(ctx, "must not be null")
  38974. }
  38975. return graphql.Null
  38976. }
  38977. res := resTmp.(string)
  38978. fc.Result = res
  38979. return ec.marshalNString2string(ctx, field.Selections, res)
  38980. }
  38981. func (ec *executionContext) fieldContext_AppUsagePricing_terms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  38982. fc = &graphql.FieldContext{
  38983. Object: "AppUsagePricing",
  38984. Field: field,
  38985. IsMethod: false,
  38986. IsResolver: false,
  38987. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  38988. return nil, errors.New("field of type String does not have child fields")
  38989. },
  38990. }
  38991. return fc, nil
  38992. }
  38993. func (ec *executionContext) _AppUsageRecord_createdAt(ctx context.Context, field graphql.CollectedField, obj *AppUsageRecord) (ret graphql.Marshaler) {
  38994. fc, err := ec.fieldContext_AppUsageRecord_createdAt(ctx, field)
  38995. if err != nil {
  38996. return graphql.Null
  38997. }
  38998. ctx = graphql.WithFieldContext(ctx, fc)
  38999. defer func() {
  39000. if r := recover(); r != nil {
  39001. ec.Error(ctx, ec.Recover(ctx, r))
  39002. ret = graphql.Null
  39003. }
  39004. }()
  39005. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  39006. ctx = rctx // use context from middleware stack in children
  39007. return obj.CreatedAt, nil
  39008. })
  39009. if err != nil {
  39010. ec.Error(ctx, err)
  39011. return graphql.Null
  39012. }
  39013. if resTmp == nil {
  39014. if !graphql.HasFieldError(ctx, fc) {
  39015. ec.Errorf(ctx, "must not be null")
  39016. }
  39017. return graphql.Null
  39018. }
  39019. res := resTmp.(string)
  39020. fc.Result = res
  39021. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  39022. }
  39023. func (ec *executionContext) fieldContext_AppUsageRecord_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  39024. fc = &graphql.FieldContext{
  39025. Object: "AppUsageRecord",
  39026. Field: field,
  39027. IsMethod: false,
  39028. IsResolver: false,
  39029. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  39030. return nil, errors.New("field of type DateTime does not have child fields")
  39031. },
  39032. }
  39033. return fc, nil
  39034. }
  39035. func (ec *executionContext) _AppUsageRecord_description(ctx context.Context, field graphql.CollectedField, obj *AppUsageRecord) (ret graphql.Marshaler) {
  39036. fc, err := ec.fieldContext_AppUsageRecord_description(ctx, field)
  39037. if err != nil {
  39038. return graphql.Null
  39039. }
  39040. ctx = graphql.WithFieldContext(ctx, fc)
  39041. defer func() {
  39042. if r := recover(); r != nil {
  39043. ec.Error(ctx, ec.Recover(ctx, r))
  39044. ret = graphql.Null
  39045. }
  39046. }()
  39047. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  39048. ctx = rctx // use context from middleware stack in children
  39049. return obj.Description, nil
  39050. })
  39051. if err != nil {
  39052. ec.Error(ctx, err)
  39053. return graphql.Null
  39054. }
  39055. if resTmp == nil {
  39056. if !graphql.HasFieldError(ctx, fc) {
  39057. ec.Errorf(ctx, "must not be null")
  39058. }
  39059. return graphql.Null
  39060. }
  39061. res := resTmp.(string)
  39062. fc.Result = res
  39063. return ec.marshalNString2string(ctx, field.Selections, res)
  39064. }
  39065. func (ec *executionContext) fieldContext_AppUsageRecord_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  39066. fc = &graphql.FieldContext{
  39067. Object: "AppUsageRecord",
  39068. Field: field,
  39069. IsMethod: false,
  39070. IsResolver: false,
  39071. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  39072. return nil, errors.New("field of type String does not have child fields")
  39073. },
  39074. }
  39075. return fc, nil
  39076. }
  39077. func (ec *executionContext) _AppUsageRecord_id(ctx context.Context, field graphql.CollectedField, obj *AppUsageRecord) (ret graphql.Marshaler) {
  39078. fc, err := ec.fieldContext_AppUsageRecord_id(ctx, field)
  39079. if err != nil {
  39080. return graphql.Null
  39081. }
  39082. ctx = graphql.WithFieldContext(ctx, fc)
  39083. defer func() {
  39084. if r := recover(); r != nil {
  39085. ec.Error(ctx, ec.Recover(ctx, r))
  39086. ret = graphql.Null
  39087. }
  39088. }()
  39089. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  39090. ctx = rctx // use context from middleware stack in children
  39091. return obj.ID, nil
  39092. })
  39093. if err != nil {
  39094. ec.Error(ctx, err)
  39095. return graphql.Null
  39096. }
  39097. if resTmp == nil {
  39098. if !graphql.HasFieldError(ctx, fc) {
  39099. ec.Errorf(ctx, "must not be null")
  39100. }
  39101. return graphql.Null
  39102. }
  39103. res := resTmp.(string)
  39104. fc.Result = res
  39105. return ec.marshalNID2string(ctx, field.Selections, res)
  39106. }
  39107. func (ec *executionContext) fieldContext_AppUsageRecord_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  39108. fc = &graphql.FieldContext{
  39109. Object: "AppUsageRecord",
  39110. Field: field,
  39111. IsMethod: false,
  39112. IsResolver: false,
  39113. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  39114. return nil, errors.New("field of type ID does not have child fields")
  39115. },
  39116. }
  39117. return fc, nil
  39118. }
  39119. func (ec *executionContext) _AppUsageRecord_price(ctx context.Context, field graphql.CollectedField, obj *AppUsageRecord) (ret graphql.Marshaler) {
  39120. fc, err := ec.fieldContext_AppUsageRecord_price(ctx, field)
  39121. if err != nil {
  39122. return graphql.Null
  39123. }
  39124. ctx = graphql.WithFieldContext(ctx, fc)
  39125. defer func() {
  39126. if r := recover(); r != nil {
  39127. ec.Error(ctx, ec.Recover(ctx, r))
  39128. ret = graphql.Null
  39129. }
  39130. }()
  39131. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  39132. ctx = rctx // use context from middleware stack in children
  39133. return obj.Price, nil
  39134. })
  39135. if err != nil {
  39136. ec.Error(ctx, err)
  39137. return graphql.Null
  39138. }
  39139. if resTmp == nil {
  39140. if !graphql.HasFieldError(ctx, fc) {
  39141. ec.Errorf(ctx, "must not be null")
  39142. }
  39143. return graphql.Null
  39144. }
  39145. res := resTmp.(*MoneyV2)
  39146. fc.Result = res
  39147. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  39148. }
  39149. func (ec *executionContext) fieldContext_AppUsageRecord_price(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  39150. fc = &graphql.FieldContext{
  39151. Object: "AppUsageRecord",
  39152. Field: field,
  39153. IsMethod: false,
  39154. IsResolver: false,
  39155. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  39156. switch field.Name {
  39157. case "amount":
  39158. return ec.fieldContext_MoneyV2_amount(ctx, field)
  39159. case "currencyCode":
  39160. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  39161. }
  39162. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  39163. },
  39164. }
  39165. return fc, nil
  39166. }
  39167. func (ec *executionContext) _AppUsageRecord_subscriptionLineItem(ctx context.Context, field graphql.CollectedField, obj *AppUsageRecord) (ret graphql.Marshaler) {
  39168. fc, err := ec.fieldContext_AppUsageRecord_subscriptionLineItem(ctx, field)
  39169. if err != nil {
  39170. return graphql.Null
  39171. }
  39172. ctx = graphql.WithFieldContext(ctx, fc)
  39173. defer func() {
  39174. if r := recover(); r != nil {
  39175. ec.Error(ctx, ec.Recover(ctx, r))
  39176. ret = graphql.Null
  39177. }
  39178. }()
  39179. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  39180. ctx = rctx // use context from middleware stack in children
  39181. return obj.SubscriptionLineItem, nil
  39182. })
  39183. if err != nil {
  39184. ec.Error(ctx, err)
  39185. return graphql.Null
  39186. }
  39187. if resTmp == nil {
  39188. if !graphql.HasFieldError(ctx, fc) {
  39189. ec.Errorf(ctx, "must not be null")
  39190. }
  39191. return graphql.Null
  39192. }
  39193. res := resTmp.(*AppSubscriptionLineItem)
  39194. fc.Result = res
  39195. return ec.marshalNAppSubscriptionLineItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppSubscriptionLineItem(ctx, field.Selections, res)
  39196. }
  39197. func (ec *executionContext) fieldContext_AppUsageRecord_subscriptionLineItem(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  39198. fc = &graphql.FieldContext{
  39199. Object: "AppUsageRecord",
  39200. Field: field,
  39201. IsMethod: false,
  39202. IsResolver: false,
  39203. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  39204. switch field.Name {
  39205. case "id":
  39206. return ec.fieldContext_AppSubscriptionLineItem_id(ctx, field)
  39207. case "plan":
  39208. return ec.fieldContext_AppSubscriptionLineItem_plan(ctx, field)
  39209. case "usageRecords":
  39210. return ec.fieldContext_AppSubscriptionLineItem_usageRecords(ctx, field)
  39211. }
  39212. return nil, fmt.Errorf("no field named %q was found under type AppSubscriptionLineItem", field.Name)
  39213. },
  39214. }
  39215. return fc, nil
  39216. }
  39217. func (ec *executionContext) _AppUsageRecordConnection_edges(ctx context.Context, field graphql.CollectedField, obj *AppUsageRecordConnection) (ret graphql.Marshaler) {
  39218. fc, err := ec.fieldContext_AppUsageRecordConnection_edges(ctx, field)
  39219. if err != nil {
  39220. return graphql.Null
  39221. }
  39222. ctx = graphql.WithFieldContext(ctx, fc)
  39223. defer func() {
  39224. if r := recover(); r != nil {
  39225. ec.Error(ctx, ec.Recover(ctx, r))
  39226. ret = graphql.Null
  39227. }
  39228. }()
  39229. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  39230. ctx = rctx // use context from middleware stack in children
  39231. return obj.Edges, nil
  39232. })
  39233. if err != nil {
  39234. ec.Error(ctx, err)
  39235. return graphql.Null
  39236. }
  39237. if resTmp == nil {
  39238. if !graphql.HasFieldError(ctx, fc) {
  39239. ec.Errorf(ctx, "must not be null")
  39240. }
  39241. return graphql.Null
  39242. }
  39243. res := resTmp.([]*AppUsageRecordEdge)
  39244. fc.Result = res
  39245. return ec.marshalNAppUsageRecordEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppUsageRecordEdgeᚄ(ctx, field.Selections, res)
  39246. }
  39247. func (ec *executionContext) fieldContext_AppUsageRecordConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  39248. fc = &graphql.FieldContext{
  39249. Object: "AppUsageRecordConnection",
  39250. Field: field,
  39251. IsMethod: false,
  39252. IsResolver: false,
  39253. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  39254. switch field.Name {
  39255. case "cursor":
  39256. return ec.fieldContext_AppUsageRecordEdge_cursor(ctx, field)
  39257. case "node":
  39258. return ec.fieldContext_AppUsageRecordEdge_node(ctx, field)
  39259. }
  39260. return nil, fmt.Errorf("no field named %q was found under type AppUsageRecordEdge", field.Name)
  39261. },
  39262. }
  39263. return fc, nil
  39264. }
  39265. func (ec *executionContext) _AppUsageRecordConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *AppUsageRecordConnection) (ret graphql.Marshaler) {
  39266. fc, err := ec.fieldContext_AppUsageRecordConnection_nodes(ctx, field)
  39267. if err != nil {
  39268. return graphql.Null
  39269. }
  39270. ctx = graphql.WithFieldContext(ctx, fc)
  39271. defer func() {
  39272. if r := recover(); r != nil {
  39273. ec.Error(ctx, ec.Recover(ctx, r))
  39274. ret = graphql.Null
  39275. }
  39276. }()
  39277. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  39278. ctx = rctx // use context from middleware stack in children
  39279. return obj.Nodes, nil
  39280. })
  39281. if err != nil {
  39282. ec.Error(ctx, err)
  39283. return graphql.Null
  39284. }
  39285. if resTmp == nil {
  39286. if !graphql.HasFieldError(ctx, fc) {
  39287. ec.Errorf(ctx, "must not be null")
  39288. }
  39289. return graphql.Null
  39290. }
  39291. res := resTmp.([]*AppUsageRecord)
  39292. fc.Result = res
  39293. return ec.marshalNAppUsageRecord2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppUsageRecordᚄ(ctx, field.Selections, res)
  39294. }
  39295. func (ec *executionContext) fieldContext_AppUsageRecordConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  39296. fc = &graphql.FieldContext{
  39297. Object: "AppUsageRecordConnection",
  39298. Field: field,
  39299. IsMethod: false,
  39300. IsResolver: false,
  39301. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  39302. switch field.Name {
  39303. case "createdAt":
  39304. return ec.fieldContext_AppUsageRecord_createdAt(ctx, field)
  39305. case "description":
  39306. return ec.fieldContext_AppUsageRecord_description(ctx, field)
  39307. case "id":
  39308. return ec.fieldContext_AppUsageRecord_id(ctx, field)
  39309. case "price":
  39310. return ec.fieldContext_AppUsageRecord_price(ctx, field)
  39311. case "subscriptionLineItem":
  39312. return ec.fieldContext_AppUsageRecord_subscriptionLineItem(ctx, field)
  39313. }
  39314. return nil, fmt.Errorf("no field named %q was found under type AppUsageRecord", field.Name)
  39315. },
  39316. }
  39317. return fc, nil
  39318. }
  39319. func (ec *executionContext) _AppUsageRecordConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *AppUsageRecordConnection) (ret graphql.Marshaler) {
  39320. fc, err := ec.fieldContext_AppUsageRecordConnection_pageInfo(ctx, field)
  39321. if err != nil {
  39322. return graphql.Null
  39323. }
  39324. ctx = graphql.WithFieldContext(ctx, fc)
  39325. defer func() {
  39326. if r := recover(); r != nil {
  39327. ec.Error(ctx, ec.Recover(ctx, r))
  39328. ret = graphql.Null
  39329. }
  39330. }()
  39331. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  39332. ctx = rctx // use context from middleware stack in children
  39333. return obj.PageInfo, nil
  39334. })
  39335. if err != nil {
  39336. ec.Error(ctx, err)
  39337. return graphql.Null
  39338. }
  39339. if resTmp == nil {
  39340. if !graphql.HasFieldError(ctx, fc) {
  39341. ec.Errorf(ctx, "must not be null")
  39342. }
  39343. return graphql.Null
  39344. }
  39345. res := resTmp.(*PageInfo)
  39346. fc.Result = res
  39347. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  39348. }
  39349. func (ec *executionContext) fieldContext_AppUsageRecordConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  39350. fc = &graphql.FieldContext{
  39351. Object: "AppUsageRecordConnection",
  39352. Field: field,
  39353. IsMethod: false,
  39354. IsResolver: false,
  39355. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  39356. switch field.Name {
  39357. case "endCursor":
  39358. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  39359. case "hasNextPage":
  39360. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  39361. case "hasPreviousPage":
  39362. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  39363. case "startCursor":
  39364. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  39365. }
  39366. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  39367. },
  39368. }
  39369. return fc, nil
  39370. }
  39371. func (ec *executionContext) _AppUsageRecordEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *AppUsageRecordEdge) (ret graphql.Marshaler) {
  39372. fc, err := ec.fieldContext_AppUsageRecordEdge_cursor(ctx, field)
  39373. if err != nil {
  39374. return graphql.Null
  39375. }
  39376. ctx = graphql.WithFieldContext(ctx, fc)
  39377. defer func() {
  39378. if r := recover(); r != nil {
  39379. ec.Error(ctx, ec.Recover(ctx, r))
  39380. ret = graphql.Null
  39381. }
  39382. }()
  39383. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  39384. ctx = rctx // use context from middleware stack in children
  39385. return obj.Cursor, nil
  39386. })
  39387. if err != nil {
  39388. ec.Error(ctx, err)
  39389. return graphql.Null
  39390. }
  39391. if resTmp == nil {
  39392. if !graphql.HasFieldError(ctx, fc) {
  39393. ec.Errorf(ctx, "must not be null")
  39394. }
  39395. return graphql.Null
  39396. }
  39397. res := resTmp.(string)
  39398. fc.Result = res
  39399. return ec.marshalNString2string(ctx, field.Selections, res)
  39400. }
  39401. func (ec *executionContext) fieldContext_AppUsageRecordEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  39402. fc = &graphql.FieldContext{
  39403. Object: "AppUsageRecordEdge",
  39404. Field: field,
  39405. IsMethod: false,
  39406. IsResolver: false,
  39407. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  39408. return nil, errors.New("field of type String does not have child fields")
  39409. },
  39410. }
  39411. return fc, nil
  39412. }
  39413. func (ec *executionContext) _AppUsageRecordEdge_node(ctx context.Context, field graphql.CollectedField, obj *AppUsageRecordEdge) (ret graphql.Marshaler) {
  39414. fc, err := ec.fieldContext_AppUsageRecordEdge_node(ctx, field)
  39415. if err != nil {
  39416. return graphql.Null
  39417. }
  39418. ctx = graphql.WithFieldContext(ctx, fc)
  39419. defer func() {
  39420. if r := recover(); r != nil {
  39421. ec.Error(ctx, ec.Recover(ctx, r))
  39422. ret = graphql.Null
  39423. }
  39424. }()
  39425. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  39426. ctx = rctx // use context from middleware stack in children
  39427. return obj.Node, nil
  39428. })
  39429. if err != nil {
  39430. ec.Error(ctx, err)
  39431. return graphql.Null
  39432. }
  39433. if resTmp == nil {
  39434. if !graphql.HasFieldError(ctx, fc) {
  39435. ec.Errorf(ctx, "must not be null")
  39436. }
  39437. return graphql.Null
  39438. }
  39439. res := resTmp.(*AppUsageRecord)
  39440. fc.Result = res
  39441. return ec.marshalNAppUsageRecord2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppUsageRecord(ctx, field.Selections, res)
  39442. }
  39443. func (ec *executionContext) fieldContext_AppUsageRecordEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  39444. fc = &graphql.FieldContext{
  39445. Object: "AppUsageRecordEdge",
  39446. Field: field,
  39447. IsMethod: false,
  39448. IsResolver: false,
  39449. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  39450. switch field.Name {
  39451. case "createdAt":
  39452. return ec.fieldContext_AppUsageRecord_createdAt(ctx, field)
  39453. case "description":
  39454. return ec.fieldContext_AppUsageRecord_description(ctx, field)
  39455. case "id":
  39456. return ec.fieldContext_AppUsageRecord_id(ctx, field)
  39457. case "price":
  39458. return ec.fieldContext_AppUsageRecord_price(ctx, field)
  39459. case "subscriptionLineItem":
  39460. return ec.fieldContext_AppUsageRecord_subscriptionLineItem(ctx, field)
  39461. }
  39462. return nil, fmt.Errorf("no field named %q was found under type AppUsageRecord", field.Name)
  39463. },
  39464. }
  39465. return fc, nil
  39466. }
  39467. func (ec *executionContext) _Attribute_key(ctx context.Context, field graphql.CollectedField, obj *Attribute) (ret graphql.Marshaler) {
  39468. fc, err := ec.fieldContext_Attribute_key(ctx, field)
  39469. if err != nil {
  39470. return graphql.Null
  39471. }
  39472. ctx = graphql.WithFieldContext(ctx, fc)
  39473. defer func() {
  39474. if r := recover(); r != nil {
  39475. ec.Error(ctx, ec.Recover(ctx, r))
  39476. ret = graphql.Null
  39477. }
  39478. }()
  39479. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  39480. ctx = rctx // use context from middleware stack in children
  39481. return obj.Key, nil
  39482. })
  39483. if err != nil {
  39484. ec.Error(ctx, err)
  39485. return graphql.Null
  39486. }
  39487. if resTmp == nil {
  39488. if !graphql.HasFieldError(ctx, fc) {
  39489. ec.Errorf(ctx, "must not be null")
  39490. }
  39491. return graphql.Null
  39492. }
  39493. res := resTmp.(string)
  39494. fc.Result = res
  39495. return ec.marshalNString2string(ctx, field.Selections, res)
  39496. }
  39497. func (ec *executionContext) fieldContext_Attribute_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  39498. fc = &graphql.FieldContext{
  39499. Object: "Attribute",
  39500. Field: field,
  39501. IsMethod: false,
  39502. IsResolver: false,
  39503. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  39504. return nil, errors.New("field of type String does not have child fields")
  39505. },
  39506. }
  39507. return fc, nil
  39508. }
  39509. func (ec *executionContext) _Attribute_value(ctx context.Context, field graphql.CollectedField, obj *Attribute) (ret graphql.Marshaler) {
  39510. fc, err := ec.fieldContext_Attribute_value(ctx, field)
  39511. if err != nil {
  39512. return graphql.Null
  39513. }
  39514. ctx = graphql.WithFieldContext(ctx, fc)
  39515. defer func() {
  39516. if r := recover(); r != nil {
  39517. ec.Error(ctx, ec.Recover(ctx, r))
  39518. ret = graphql.Null
  39519. }
  39520. }()
  39521. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  39522. ctx = rctx // use context from middleware stack in children
  39523. return obj.Value, nil
  39524. })
  39525. if err != nil {
  39526. ec.Error(ctx, err)
  39527. return graphql.Null
  39528. }
  39529. if resTmp == nil {
  39530. return graphql.Null
  39531. }
  39532. res := resTmp.(*string)
  39533. fc.Result = res
  39534. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  39535. }
  39536. func (ec *executionContext) fieldContext_Attribute_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  39537. fc = &graphql.FieldContext{
  39538. Object: "Attribute",
  39539. Field: field,
  39540. IsMethod: false,
  39541. IsResolver: false,
  39542. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  39543. return nil, errors.New("field of type String does not have child fields")
  39544. },
  39545. }
  39546. return fc, nil
  39547. }
  39548. func (ec *executionContext) _AutomaticDiscountApplication_allocationMethod(ctx context.Context, field graphql.CollectedField, obj *AutomaticDiscountApplication) (ret graphql.Marshaler) {
  39549. fc, err := ec.fieldContext_AutomaticDiscountApplication_allocationMethod(ctx, field)
  39550. if err != nil {
  39551. return graphql.Null
  39552. }
  39553. ctx = graphql.WithFieldContext(ctx, fc)
  39554. defer func() {
  39555. if r := recover(); r != nil {
  39556. ec.Error(ctx, ec.Recover(ctx, r))
  39557. ret = graphql.Null
  39558. }
  39559. }()
  39560. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  39561. ctx = rctx // use context from middleware stack in children
  39562. return obj.AllocationMethod, nil
  39563. })
  39564. if err != nil {
  39565. ec.Error(ctx, err)
  39566. return graphql.Null
  39567. }
  39568. if resTmp == nil {
  39569. if !graphql.HasFieldError(ctx, fc) {
  39570. ec.Errorf(ctx, "must not be null")
  39571. }
  39572. return graphql.Null
  39573. }
  39574. res := resTmp.(DiscountApplicationAllocationMethod)
  39575. fc.Result = res
  39576. return ec.marshalNDiscountApplicationAllocationMethod2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplicationAllocationMethod(ctx, field.Selections, res)
  39577. }
  39578. func (ec *executionContext) fieldContext_AutomaticDiscountApplication_allocationMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  39579. fc = &graphql.FieldContext{
  39580. Object: "AutomaticDiscountApplication",
  39581. Field: field,
  39582. IsMethod: false,
  39583. IsResolver: false,
  39584. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  39585. return nil, errors.New("field of type DiscountApplicationAllocationMethod does not have child fields")
  39586. },
  39587. }
  39588. return fc, nil
  39589. }
  39590. func (ec *executionContext) _AutomaticDiscountApplication_index(ctx context.Context, field graphql.CollectedField, obj *AutomaticDiscountApplication) (ret graphql.Marshaler) {
  39591. fc, err := ec.fieldContext_AutomaticDiscountApplication_index(ctx, field)
  39592. if err != nil {
  39593. return graphql.Null
  39594. }
  39595. ctx = graphql.WithFieldContext(ctx, fc)
  39596. defer func() {
  39597. if r := recover(); r != nil {
  39598. ec.Error(ctx, ec.Recover(ctx, r))
  39599. ret = graphql.Null
  39600. }
  39601. }()
  39602. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  39603. ctx = rctx // use context from middleware stack in children
  39604. return obj.Index, nil
  39605. })
  39606. if err != nil {
  39607. ec.Error(ctx, err)
  39608. return graphql.Null
  39609. }
  39610. if resTmp == nil {
  39611. if !graphql.HasFieldError(ctx, fc) {
  39612. ec.Errorf(ctx, "must not be null")
  39613. }
  39614. return graphql.Null
  39615. }
  39616. res := resTmp.(int)
  39617. fc.Result = res
  39618. return ec.marshalNInt2int(ctx, field.Selections, res)
  39619. }
  39620. func (ec *executionContext) fieldContext_AutomaticDiscountApplication_index(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  39621. fc = &graphql.FieldContext{
  39622. Object: "AutomaticDiscountApplication",
  39623. Field: field,
  39624. IsMethod: false,
  39625. IsResolver: false,
  39626. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  39627. return nil, errors.New("field of type Int does not have child fields")
  39628. },
  39629. }
  39630. return fc, nil
  39631. }
  39632. func (ec *executionContext) _AutomaticDiscountApplication_targetSelection(ctx context.Context, field graphql.CollectedField, obj *AutomaticDiscountApplication) (ret graphql.Marshaler) {
  39633. fc, err := ec.fieldContext_AutomaticDiscountApplication_targetSelection(ctx, field)
  39634. if err != nil {
  39635. return graphql.Null
  39636. }
  39637. ctx = graphql.WithFieldContext(ctx, fc)
  39638. defer func() {
  39639. if r := recover(); r != nil {
  39640. ec.Error(ctx, ec.Recover(ctx, r))
  39641. ret = graphql.Null
  39642. }
  39643. }()
  39644. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  39645. ctx = rctx // use context from middleware stack in children
  39646. return obj.TargetSelection, nil
  39647. })
  39648. if err != nil {
  39649. ec.Error(ctx, err)
  39650. return graphql.Null
  39651. }
  39652. if resTmp == nil {
  39653. if !graphql.HasFieldError(ctx, fc) {
  39654. ec.Errorf(ctx, "must not be null")
  39655. }
  39656. return graphql.Null
  39657. }
  39658. res := resTmp.(DiscountApplicationTargetSelection)
  39659. fc.Result = res
  39660. return ec.marshalNDiscountApplicationTargetSelection2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplicationTargetSelection(ctx, field.Selections, res)
  39661. }
  39662. func (ec *executionContext) fieldContext_AutomaticDiscountApplication_targetSelection(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  39663. fc = &graphql.FieldContext{
  39664. Object: "AutomaticDiscountApplication",
  39665. Field: field,
  39666. IsMethod: false,
  39667. IsResolver: false,
  39668. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  39669. return nil, errors.New("field of type DiscountApplicationTargetSelection does not have child fields")
  39670. },
  39671. }
  39672. return fc, nil
  39673. }
  39674. func (ec *executionContext) _AutomaticDiscountApplication_targetType(ctx context.Context, field graphql.CollectedField, obj *AutomaticDiscountApplication) (ret graphql.Marshaler) {
  39675. fc, err := ec.fieldContext_AutomaticDiscountApplication_targetType(ctx, field)
  39676. if err != nil {
  39677. return graphql.Null
  39678. }
  39679. ctx = graphql.WithFieldContext(ctx, fc)
  39680. defer func() {
  39681. if r := recover(); r != nil {
  39682. ec.Error(ctx, ec.Recover(ctx, r))
  39683. ret = graphql.Null
  39684. }
  39685. }()
  39686. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  39687. ctx = rctx // use context from middleware stack in children
  39688. return obj.TargetType, nil
  39689. })
  39690. if err != nil {
  39691. ec.Error(ctx, err)
  39692. return graphql.Null
  39693. }
  39694. if resTmp == nil {
  39695. if !graphql.HasFieldError(ctx, fc) {
  39696. ec.Errorf(ctx, "must not be null")
  39697. }
  39698. return graphql.Null
  39699. }
  39700. res := resTmp.(DiscountApplicationTargetType)
  39701. fc.Result = res
  39702. return ec.marshalNDiscountApplicationTargetType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplicationTargetType(ctx, field.Selections, res)
  39703. }
  39704. func (ec *executionContext) fieldContext_AutomaticDiscountApplication_targetType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  39705. fc = &graphql.FieldContext{
  39706. Object: "AutomaticDiscountApplication",
  39707. Field: field,
  39708. IsMethod: false,
  39709. IsResolver: false,
  39710. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  39711. return nil, errors.New("field of type DiscountApplicationTargetType does not have child fields")
  39712. },
  39713. }
  39714. return fc, nil
  39715. }
  39716. func (ec *executionContext) _AutomaticDiscountApplication_title(ctx context.Context, field graphql.CollectedField, obj *AutomaticDiscountApplication) (ret graphql.Marshaler) {
  39717. fc, err := ec.fieldContext_AutomaticDiscountApplication_title(ctx, field)
  39718. if err != nil {
  39719. return graphql.Null
  39720. }
  39721. ctx = graphql.WithFieldContext(ctx, fc)
  39722. defer func() {
  39723. if r := recover(); r != nil {
  39724. ec.Error(ctx, ec.Recover(ctx, r))
  39725. ret = graphql.Null
  39726. }
  39727. }()
  39728. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  39729. ctx = rctx // use context from middleware stack in children
  39730. return obj.Title, nil
  39731. })
  39732. if err != nil {
  39733. ec.Error(ctx, err)
  39734. return graphql.Null
  39735. }
  39736. if resTmp == nil {
  39737. if !graphql.HasFieldError(ctx, fc) {
  39738. ec.Errorf(ctx, "must not be null")
  39739. }
  39740. return graphql.Null
  39741. }
  39742. res := resTmp.(string)
  39743. fc.Result = res
  39744. return ec.marshalNString2string(ctx, field.Selections, res)
  39745. }
  39746. func (ec *executionContext) fieldContext_AutomaticDiscountApplication_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  39747. fc = &graphql.FieldContext{
  39748. Object: "AutomaticDiscountApplication",
  39749. Field: field,
  39750. IsMethod: false,
  39751. IsResolver: false,
  39752. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  39753. return nil, errors.New("field of type String does not have child fields")
  39754. },
  39755. }
  39756. return fc, nil
  39757. }
  39758. func (ec *executionContext) _AutomaticDiscountApplication_value(ctx context.Context, field graphql.CollectedField, obj *AutomaticDiscountApplication) (ret graphql.Marshaler) {
  39759. fc, err := ec.fieldContext_AutomaticDiscountApplication_value(ctx, field)
  39760. if err != nil {
  39761. return graphql.Null
  39762. }
  39763. ctx = graphql.WithFieldContext(ctx, fc)
  39764. defer func() {
  39765. if r := recover(); r != nil {
  39766. ec.Error(ctx, ec.Recover(ctx, r))
  39767. ret = graphql.Null
  39768. }
  39769. }()
  39770. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  39771. ctx = rctx // use context from middleware stack in children
  39772. return obj.Value, nil
  39773. })
  39774. if err != nil {
  39775. ec.Error(ctx, err)
  39776. return graphql.Null
  39777. }
  39778. if resTmp == nil {
  39779. if !graphql.HasFieldError(ctx, fc) {
  39780. ec.Errorf(ctx, "must not be null")
  39781. }
  39782. return graphql.Null
  39783. }
  39784. res := resTmp.(PricingValue)
  39785. fc.Result = res
  39786. return ec.marshalNPricingValue2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPricingValue(ctx, field.Selections, res)
  39787. }
  39788. func (ec *executionContext) fieldContext_AutomaticDiscountApplication_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  39789. fc = &graphql.FieldContext{
  39790. Object: "AutomaticDiscountApplication",
  39791. Field: field,
  39792. IsMethod: false,
  39793. IsResolver: false,
  39794. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  39795. return nil, errors.New("field of type PricingValue does not have child fields")
  39796. },
  39797. }
  39798. return fc, nil
  39799. }
  39800. func (ec *executionContext) _AvailableChannelDefinitionsByChannel_channelDefinitions(ctx context.Context, field graphql.CollectedField, obj *AvailableChannelDefinitionsByChannel) (ret graphql.Marshaler) {
  39801. fc, err := ec.fieldContext_AvailableChannelDefinitionsByChannel_channelDefinitions(ctx, field)
  39802. if err != nil {
  39803. return graphql.Null
  39804. }
  39805. ctx = graphql.WithFieldContext(ctx, fc)
  39806. defer func() {
  39807. if r := recover(); r != nil {
  39808. ec.Error(ctx, ec.Recover(ctx, r))
  39809. ret = graphql.Null
  39810. }
  39811. }()
  39812. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  39813. ctx = rctx // use context from middleware stack in children
  39814. return obj.ChannelDefinitions, nil
  39815. })
  39816. if err != nil {
  39817. ec.Error(ctx, err)
  39818. return graphql.Null
  39819. }
  39820. if resTmp == nil {
  39821. if !graphql.HasFieldError(ctx, fc) {
  39822. ec.Errorf(ctx, "must not be null")
  39823. }
  39824. return graphql.Null
  39825. }
  39826. res := resTmp.([]*ChannelDefinition)
  39827. fc.Result = res
  39828. return ec.marshalNChannelDefinition2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐChannelDefinitionᚄ(ctx, field.Selections, res)
  39829. }
  39830. func (ec *executionContext) fieldContext_AvailableChannelDefinitionsByChannel_channelDefinitions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  39831. fc = &graphql.FieldContext{
  39832. Object: "AvailableChannelDefinitionsByChannel",
  39833. Field: field,
  39834. IsMethod: false,
  39835. IsResolver: false,
  39836. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  39837. switch field.Name {
  39838. case "channelName":
  39839. return ec.fieldContext_ChannelDefinition_channelName(ctx, field)
  39840. case "handle":
  39841. return ec.fieldContext_ChannelDefinition_handle(ctx, field)
  39842. case "id":
  39843. return ec.fieldContext_ChannelDefinition_id(ctx, field)
  39844. case "subChannelName":
  39845. return ec.fieldContext_ChannelDefinition_subChannelName(ctx, field)
  39846. case "svgIcon":
  39847. return ec.fieldContext_ChannelDefinition_svgIcon(ctx, field)
  39848. }
  39849. return nil, fmt.Errorf("no field named %q was found under type ChannelDefinition", field.Name)
  39850. },
  39851. }
  39852. return fc, nil
  39853. }
  39854. func (ec *executionContext) _AvailableChannelDefinitionsByChannel_channelName(ctx context.Context, field graphql.CollectedField, obj *AvailableChannelDefinitionsByChannel) (ret graphql.Marshaler) {
  39855. fc, err := ec.fieldContext_AvailableChannelDefinitionsByChannel_channelName(ctx, field)
  39856. if err != nil {
  39857. return graphql.Null
  39858. }
  39859. ctx = graphql.WithFieldContext(ctx, fc)
  39860. defer func() {
  39861. if r := recover(); r != nil {
  39862. ec.Error(ctx, ec.Recover(ctx, r))
  39863. ret = graphql.Null
  39864. }
  39865. }()
  39866. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  39867. ctx = rctx // use context from middleware stack in children
  39868. return obj.ChannelName, nil
  39869. })
  39870. if err != nil {
  39871. ec.Error(ctx, err)
  39872. return graphql.Null
  39873. }
  39874. if resTmp == nil {
  39875. if !graphql.HasFieldError(ctx, fc) {
  39876. ec.Errorf(ctx, "must not be null")
  39877. }
  39878. return graphql.Null
  39879. }
  39880. res := resTmp.(string)
  39881. fc.Result = res
  39882. return ec.marshalNString2string(ctx, field.Selections, res)
  39883. }
  39884. func (ec *executionContext) fieldContext_AvailableChannelDefinitionsByChannel_channelName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  39885. fc = &graphql.FieldContext{
  39886. Object: "AvailableChannelDefinitionsByChannel",
  39887. Field: field,
  39888. IsMethod: false,
  39889. IsResolver: false,
  39890. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  39891. return nil, errors.New("field of type String does not have child fields")
  39892. },
  39893. }
  39894. return fc, nil
  39895. }
  39896. func (ec *executionContext) _BasicEvent_appTitle(ctx context.Context, field graphql.CollectedField, obj *BasicEvent) (ret graphql.Marshaler) {
  39897. fc, err := ec.fieldContext_BasicEvent_appTitle(ctx, field)
  39898. if err != nil {
  39899. return graphql.Null
  39900. }
  39901. ctx = graphql.WithFieldContext(ctx, fc)
  39902. defer func() {
  39903. if r := recover(); r != nil {
  39904. ec.Error(ctx, ec.Recover(ctx, r))
  39905. ret = graphql.Null
  39906. }
  39907. }()
  39908. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  39909. ctx = rctx // use context from middleware stack in children
  39910. return obj.AppTitle, nil
  39911. })
  39912. if err != nil {
  39913. ec.Error(ctx, err)
  39914. return graphql.Null
  39915. }
  39916. if resTmp == nil {
  39917. return graphql.Null
  39918. }
  39919. res := resTmp.(*string)
  39920. fc.Result = res
  39921. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  39922. }
  39923. func (ec *executionContext) fieldContext_BasicEvent_appTitle(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  39924. fc = &graphql.FieldContext{
  39925. Object: "BasicEvent",
  39926. Field: field,
  39927. IsMethod: false,
  39928. IsResolver: false,
  39929. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  39930. return nil, errors.New("field of type String does not have child fields")
  39931. },
  39932. }
  39933. return fc, nil
  39934. }
  39935. func (ec *executionContext) _BasicEvent_attributeToApp(ctx context.Context, field graphql.CollectedField, obj *BasicEvent) (ret graphql.Marshaler) {
  39936. fc, err := ec.fieldContext_BasicEvent_attributeToApp(ctx, field)
  39937. if err != nil {
  39938. return graphql.Null
  39939. }
  39940. ctx = graphql.WithFieldContext(ctx, fc)
  39941. defer func() {
  39942. if r := recover(); r != nil {
  39943. ec.Error(ctx, ec.Recover(ctx, r))
  39944. ret = graphql.Null
  39945. }
  39946. }()
  39947. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  39948. ctx = rctx // use context from middleware stack in children
  39949. return obj.AttributeToApp, nil
  39950. })
  39951. if err != nil {
  39952. ec.Error(ctx, err)
  39953. return graphql.Null
  39954. }
  39955. if resTmp == nil {
  39956. if !graphql.HasFieldError(ctx, fc) {
  39957. ec.Errorf(ctx, "must not be null")
  39958. }
  39959. return graphql.Null
  39960. }
  39961. res := resTmp.(bool)
  39962. fc.Result = res
  39963. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  39964. }
  39965. func (ec *executionContext) fieldContext_BasicEvent_attributeToApp(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  39966. fc = &graphql.FieldContext{
  39967. Object: "BasicEvent",
  39968. Field: field,
  39969. IsMethod: false,
  39970. IsResolver: false,
  39971. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  39972. return nil, errors.New("field of type Boolean does not have child fields")
  39973. },
  39974. }
  39975. return fc, nil
  39976. }
  39977. func (ec *executionContext) _BasicEvent_attributeToUser(ctx context.Context, field graphql.CollectedField, obj *BasicEvent) (ret graphql.Marshaler) {
  39978. fc, err := ec.fieldContext_BasicEvent_attributeToUser(ctx, field)
  39979. if err != nil {
  39980. return graphql.Null
  39981. }
  39982. ctx = graphql.WithFieldContext(ctx, fc)
  39983. defer func() {
  39984. if r := recover(); r != nil {
  39985. ec.Error(ctx, ec.Recover(ctx, r))
  39986. ret = graphql.Null
  39987. }
  39988. }()
  39989. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  39990. ctx = rctx // use context from middleware stack in children
  39991. return obj.AttributeToUser, nil
  39992. })
  39993. if err != nil {
  39994. ec.Error(ctx, err)
  39995. return graphql.Null
  39996. }
  39997. if resTmp == nil {
  39998. if !graphql.HasFieldError(ctx, fc) {
  39999. ec.Errorf(ctx, "must not be null")
  40000. }
  40001. return graphql.Null
  40002. }
  40003. res := resTmp.(bool)
  40004. fc.Result = res
  40005. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  40006. }
  40007. func (ec *executionContext) fieldContext_BasicEvent_attributeToUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  40008. fc = &graphql.FieldContext{
  40009. Object: "BasicEvent",
  40010. Field: field,
  40011. IsMethod: false,
  40012. IsResolver: false,
  40013. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  40014. return nil, errors.New("field of type Boolean does not have child fields")
  40015. },
  40016. }
  40017. return fc, nil
  40018. }
  40019. func (ec *executionContext) _BasicEvent_createdAt(ctx context.Context, field graphql.CollectedField, obj *BasicEvent) (ret graphql.Marshaler) {
  40020. fc, err := ec.fieldContext_BasicEvent_createdAt(ctx, field)
  40021. if err != nil {
  40022. return graphql.Null
  40023. }
  40024. ctx = graphql.WithFieldContext(ctx, fc)
  40025. defer func() {
  40026. if r := recover(); r != nil {
  40027. ec.Error(ctx, ec.Recover(ctx, r))
  40028. ret = graphql.Null
  40029. }
  40030. }()
  40031. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  40032. ctx = rctx // use context from middleware stack in children
  40033. return obj.CreatedAt, nil
  40034. })
  40035. if err != nil {
  40036. ec.Error(ctx, err)
  40037. return graphql.Null
  40038. }
  40039. if resTmp == nil {
  40040. if !graphql.HasFieldError(ctx, fc) {
  40041. ec.Errorf(ctx, "must not be null")
  40042. }
  40043. return graphql.Null
  40044. }
  40045. res := resTmp.(string)
  40046. fc.Result = res
  40047. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  40048. }
  40049. func (ec *executionContext) fieldContext_BasicEvent_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  40050. fc = &graphql.FieldContext{
  40051. Object: "BasicEvent",
  40052. Field: field,
  40053. IsMethod: false,
  40054. IsResolver: false,
  40055. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  40056. return nil, errors.New("field of type DateTime does not have child fields")
  40057. },
  40058. }
  40059. return fc, nil
  40060. }
  40061. func (ec *executionContext) _BasicEvent_criticalAlert(ctx context.Context, field graphql.CollectedField, obj *BasicEvent) (ret graphql.Marshaler) {
  40062. fc, err := ec.fieldContext_BasicEvent_criticalAlert(ctx, field)
  40063. if err != nil {
  40064. return graphql.Null
  40065. }
  40066. ctx = graphql.WithFieldContext(ctx, fc)
  40067. defer func() {
  40068. if r := recover(); r != nil {
  40069. ec.Error(ctx, ec.Recover(ctx, r))
  40070. ret = graphql.Null
  40071. }
  40072. }()
  40073. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  40074. ctx = rctx // use context from middleware stack in children
  40075. return obj.CriticalAlert, nil
  40076. })
  40077. if err != nil {
  40078. ec.Error(ctx, err)
  40079. return graphql.Null
  40080. }
  40081. if resTmp == nil {
  40082. if !graphql.HasFieldError(ctx, fc) {
  40083. ec.Errorf(ctx, "must not be null")
  40084. }
  40085. return graphql.Null
  40086. }
  40087. res := resTmp.(bool)
  40088. fc.Result = res
  40089. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  40090. }
  40091. func (ec *executionContext) fieldContext_BasicEvent_criticalAlert(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  40092. fc = &graphql.FieldContext{
  40093. Object: "BasicEvent",
  40094. Field: field,
  40095. IsMethod: false,
  40096. IsResolver: false,
  40097. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  40098. return nil, errors.New("field of type Boolean does not have child fields")
  40099. },
  40100. }
  40101. return fc, nil
  40102. }
  40103. func (ec *executionContext) _BasicEvent_id(ctx context.Context, field graphql.CollectedField, obj *BasicEvent) (ret graphql.Marshaler) {
  40104. fc, err := ec.fieldContext_BasicEvent_id(ctx, field)
  40105. if err != nil {
  40106. return graphql.Null
  40107. }
  40108. ctx = graphql.WithFieldContext(ctx, fc)
  40109. defer func() {
  40110. if r := recover(); r != nil {
  40111. ec.Error(ctx, ec.Recover(ctx, r))
  40112. ret = graphql.Null
  40113. }
  40114. }()
  40115. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  40116. ctx = rctx // use context from middleware stack in children
  40117. return obj.ID, nil
  40118. })
  40119. if err != nil {
  40120. ec.Error(ctx, err)
  40121. return graphql.Null
  40122. }
  40123. if resTmp == nil {
  40124. if !graphql.HasFieldError(ctx, fc) {
  40125. ec.Errorf(ctx, "must not be null")
  40126. }
  40127. return graphql.Null
  40128. }
  40129. res := resTmp.(string)
  40130. fc.Result = res
  40131. return ec.marshalNID2string(ctx, field.Selections, res)
  40132. }
  40133. func (ec *executionContext) fieldContext_BasicEvent_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  40134. fc = &graphql.FieldContext{
  40135. Object: "BasicEvent",
  40136. Field: field,
  40137. IsMethod: false,
  40138. IsResolver: false,
  40139. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  40140. return nil, errors.New("field of type ID does not have child fields")
  40141. },
  40142. }
  40143. return fc, nil
  40144. }
  40145. func (ec *executionContext) _BasicEvent_message(ctx context.Context, field graphql.CollectedField, obj *BasicEvent) (ret graphql.Marshaler) {
  40146. fc, err := ec.fieldContext_BasicEvent_message(ctx, field)
  40147. if err != nil {
  40148. return graphql.Null
  40149. }
  40150. ctx = graphql.WithFieldContext(ctx, fc)
  40151. defer func() {
  40152. if r := recover(); r != nil {
  40153. ec.Error(ctx, ec.Recover(ctx, r))
  40154. ret = graphql.Null
  40155. }
  40156. }()
  40157. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  40158. ctx = rctx // use context from middleware stack in children
  40159. return obj.Message, nil
  40160. })
  40161. if err != nil {
  40162. ec.Error(ctx, err)
  40163. return graphql.Null
  40164. }
  40165. if resTmp == nil {
  40166. if !graphql.HasFieldError(ctx, fc) {
  40167. ec.Errorf(ctx, "must not be null")
  40168. }
  40169. return graphql.Null
  40170. }
  40171. res := resTmp.(string)
  40172. fc.Result = res
  40173. return ec.marshalNFormattedString2string(ctx, field.Selections, res)
  40174. }
  40175. func (ec *executionContext) fieldContext_BasicEvent_message(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  40176. fc = &graphql.FieldContext{
  40177. Object: "BasicEvent",
  40178. Field: field,
  40179. IsMethod: false,
  40180. IsResolver: false,
  40181. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  40182. return nil, errors.New("field of type FormattedString does not have child fields")
  40183. },
  40184. }
  40185. return fc, nil
  40186. }
  40187. func (ec *executionContext) _BuyerExperienceConfiguration_checkoutToDraft(ctx context.Context, field graphql.CollectedField, obj *BuyerExperienceConfiguration) (ret graphql.Marshaler) {
  40188. fc, err := ec.fieldContext_BuyerExperienceConfiguration_checkoutToDraft(ctx, field)
  40189. if err != nil {
  40190. return graphql.Null
  40191. }
  40192. ctx = graphql.WithFieldContext(ctx, fc)
  40193. defer func() {
  40194. if r := recover(); r != nil {
  40195. ec.Error(ctx, ec.Recover(ctx, r))
  40196. ret = graphql.Null
  40197. }
  40198. }()
  40199. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  40200. ctx = rctx // use context from middleware stack in children
  40201. return obj.CheckoutToDraft, nil
  40202. })
  40203. if err != nil {
  40204. ec.Error(ctx, err)
  40205. return graphql.Null
  40206. }
  40207. if resTmp == nil {
  40208. if !graphql.HasFieldError(ctx, fc) {
  40209. ec.Errorf(ctx, "must not be null")
  40210. }
  40211. return graphql.Null
  40212. }
  40213. res := resTmp.(bool)
  40214. fc.Result = res
  40215. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  40216. }
  40217. func (ec *executionContext) fieldContext_BuyerExperienceConfiguration_checkoutToDraft(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  40218. fc = &graphql.FieldContext{
  40219. Object: "BuyerExperienceConfiguration",
  40220. Field: field,
  40221. IsMethod: false,
  40222. IsResolver: false,
  40223. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  40224. return nil, errors.New("field of type Boolean does not have child fields")
  40225. },
  40226. }
  40227. return fc, nil
  40228. }
  40229. func (ec *executionContext) _BuyerExperienceConfiguration_payNowOnly(ctx context.Context, field graphql.CollectedField, obj *BuyerExperienceConfiguration) (ret graphql.Marshaler) {
  40230. fc, err := ec.fieldContext_BuyerExperienceConfiguration_payNowOnly(ctx, field)
  40231. if err != nil {
  40232. return graphql.Null
  40233. }
  40234. ctx = graphql.WithFieldContext(ctx, fc)
  40235. defer func() {
  40236. if r := recover(); r != nil {
  40237. ec.Error(ctx, ec.Recover(ctx, r))
  40238. ret = graphql.Null
  40239. }
  40240. }()
  40241. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  40242. ctx = rctx // use context from middleware stack in children
  40243. return obj.PayNowOnly, nil
  40244. })
  40245. if err != nil {
  40246. ec.Error(ctx, err)
  40247. return graphql.Null
  40248. }
  40249. if resTmp == nil {
  40250. if !graphql.HasFieldError(ctx, fc) {
  40251. ec.Errorf(ctx, "must not be null")
  40252. }
  40253. return graphql.Null
  40254. }
  40255. res := resTmp.(bool)
  40256. fc.Result = res
  40257. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  40258. }
  40259. func (ec *executionContext) fieldContext_BuyerExperienceConfiguration_payNowOnly(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  40260. fc = &graphql.FieldContext{
  40261. Object: "BuyerExperienceConfiguration",
  40262. Field: field,
  40263. IsMethod: false,
  40264. IsResolver: false,
  40265. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  40266. return nil, errors.New("field of type Boolean does not have child fields")
  40267. },
  40268. }
  40269. return fc, nil
  40270. }
  40271. func (ec *executionContext) _BuyerExperienceConfiguration_paymentTermsTemplate(ctx context.Context, field graphql.CollectedField, obj *BuyerExperienceConfiguration) (ret graphql.Marshaler) {
  40272. fc, err := ec.fieldContext_BuyerExperienceConfiguration_paymentTermsTemplate(ctx, field)
  40273. if err != nil {
  40274. return graphql.Null
  40275. }
  40276. ctx = graphql.WithFieldContext(ctx, fc)
  40277. defer func() {
  40278. if r := recover(); r != nil {
  40279. ec.Error(ctx, ec.Recover(ctx, r))
  40280. ret = graphql.Null
  40281. }
  40282. }()
  40283. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  40284. ctx = rctx // use context from middleware stack in children
  40285. return obj.PaymentTermsTemplate, nil
  40286. })
  40287. if err != nil {
  40288. ec.Error(ctx, err)
  40289. return graphql.Null
  40290. }
  40291. if resTmp == nil {
  40292. return graphql.Null
  40293. }
  40294. res := resTmp.(*PaymentTermsTemplate)
  40295. fc.Result = res
  40296. return ec.marshalOPaymentTermsTemplate2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentTermsTemplate(ctx, field.Selections, res)
  40297. }
  40298. func (ec *executionContext) fieldContext_BuyerExperienceConfiguration_paymentTermsTemplate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  40299. fc = &graphql.FieldContext{
  40300. Object: "BuyerExperienceConfiguration",
  40301. Field: field,
  40302. IsMethod: false,
  40303. IsResolver: false,
  40304. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  40305. switch field.Name {
  40306. case "description":
  40307. return ec.fieldContext_PaymentTermsTemplate_description(ctx, field)
  40308. case "dueInDays":
  40309. return ec.fieldContext_PaymentTermsTemplate_dueInDays(ctx, field)
  40310. case "id":
  40311. return ec.fieldContext_PaymentTermsTemplate_id(ctx, field)
  40312. case "name":
  40313. return ec.fieldContext_PaymentTermsTemplate_name(ctx, field)
  40314. case "paymentTermsType":
  40315. return ec.fieldContext_PaymentTermsTemplate_paymentTermsType(ctx, field)
  40316. case "translatedName":
  40317. return ec.fieldContext_PaymentTermsTemplate_translatedName(ctx, field)
  40318. }
  40319. return nil, fmt.Errorf("no field named %q was found under type PaymentTermsTemplate", field.Name)
  40320. },
  40321. }
  40322. return fc, nil
  40323. }
  40324. func (ec *executionContext) _ChannelDefinition_channelName(ctx context.Context, field graphql.CollectedField, obj *ChannelDefinition) (ret graphql.Marshaler) {
  40325. fc, err := ec.fieldContext_ChannelDefinition_channelName(ctx, field)
  40326. if err != nil {
  40327. return graphql.Null
  40328. }
  40329. ctx = graphql.WithFieldContext(ctx, fc)
  40330. defer func() {
  40331. if r := recover(); r != nil {
  40332. ec.Error(ctx, ec.Recover(ctx, r))
  40333. ret = graphql.Null
  40334. }
  40335. }()
  40336. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  40337. ctx = rctx // use context from middleware stack in children
  40338. return obj.ChannelName, nil
  40339. })
  40340. if err != nil {
  40341. ec.Error(ctx, err)
  40342. return graphql.Null
  40343. }
  40344. if resTmp == nil {
  40345. if !graphql.HasFieldError(ctx, fc) {
  40346. ec.Errorf(ctx, "must not be null")
  40347. }
  40348. return graphql.Null
  40349. }
  40350. res := resTmp.(string)
  40351. fc.Result = res
  40352. return ec.marshalNString2string(ctx, field.Selections, res)
  40353. }
  40354. func (ec *executionContext) fieldContext_ChannelDefinition_channelName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  40355. fc = &graphql.FieldContext{
  40356. Object: "ChannelDefinition",
  40357. Field: field,
  40358. IsMethod: false,
  40359. IsResolver: false,
  40360. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  40361. return nil, errors.New("field of type String does not have child fields")
  40362. },
  40363. }
  40364. return fc, nil
  40365. }
  40366. func (ec *executionContext) _ChannelDefinition_handle(ctx context.Context, field graphql.CollectedField, obj *ChannelDefinition) (ret graphql.Marshaler) {
  40367. fc, err := ec.fieldContext_ChannelDefinition_handle(ctx, field)
  40368. if err != nil {
  40369. return graphql.Null
  40370. }
  40371. ctx = graphql.WithFieldContext(ctx, fc)
  40372. defer func() {
  40373. if r := recover(); r != nil {
  40374. ec.Error(ctx, ec.Recover(ctx, r))
  40375. ret = graphql.Null
  40376. }
  40377. }()
  40378. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  40379. ctx = rctx // use context from middleware stack in children
  40380. return obj.Handle, nil
  40381. })
  40382. if err != nil {
  40383. ec.Error(ctx, err)
  40384. return graphql.Null
  40385. }
  40386. if resTmp == nil {
  40387. if !graphql.HasFieldError(ctx, fc) {
  40388. ec.Errorf(ctx, "must not be null")
  40389. }
  40390. return graphql.Null
  40391. }
  40392. res := resTmp.(string)
  40393. fc.Result = res
  40394. return ec.marshalNString2string(ctx, field.Selections, res)
  40395. }
  40396. func (ec *executionContext) fieldContext_ChannelDefinition_handle(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  40397. fc = &graphql.FieldContext{
  40398. Object: "ChannelDefinition",
  40399. Field: field,
  40400. IsMethod: false,
  40401. IsResolver: false,
  40402. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  40403. return nil, errors.New("field of type String does not have child fields")
  40404. },
  40405. }
  40406. return fc, nil
  40407. }
  40408. func (ec *executionContext) _ChannelDefinition_id(ctx context.Context, field graphql.CollectedField, obj *ChannelDefinition) (ret graphql.Marshaler) {
  40409. fc, err := ec.fieldContext_ChannelDefinition_id(ctx, field)
  40410. if err != nil {
  40411. return graphql.Null
  40412. }
  40413. ctx = graphql.WithFieldContext(ctx, fc)
  40414. defer func() {
  40415. if r := recover(); r != nil {
  40416. ec.Error(ctx, ec.Recover(ctx, r))
  40417. ret = graphql.Null
  40418. }
  40419. }()
  40420. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  40421. ctx = rctx // use context from middleware stack in children
  40422. return obj.ID, nil
  40423. })
  40424. if err != nil {
  40425. ec.Error(ctx, err)
  40426. return graphql.Null
  40427. }
  40428. if resTmp == nil {
  40429. if !graphql.HasFieldError(ctx, fc) {
  40430. ec.Errorf(ctx, "must not be null")
  40431. }
  40432. return graphql.Null
  40433. }
  40434. res := resTmp.(string)
  40435. fc.Result = res
  40436. return ec.marshalNID2string(ctx, field.Selections, res)
  40437. }
  40438. func (ec *executionContext) fieldContext_ChannelDefinition_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  40439. fc = &graphql.FieldContext{
  40440. Object: "ChannelDefinition",
  40441. Field: field,
  40442. IsMethod: false,
  40443. IsResolver: false,
  40444. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  40445. return nil, errors.New("field of type ID does not have child fields")
  40446. },
  40447. }
  40448. return fc, nil
  40449. }
  40450. func (ec *executionContext) _ChannelDefinition_subChannelName(ctx context.Context, field graphql.CollectedField, obj *ChannelDefinition) (ret graphql.Marshaler) {
  40451. fc, err := ec.fieldContext_ChannelDefinition_subChannelName(ctx, field)
  40452. if err != nil {
  40453. return graphql.Null
  40454. }
  40455. ctx = graphql.WithFieldContext(ctx, fc)
  40456. defer func() {
  40457. if r := recover(); r != nil {
  40458. ec.Error(ctx, ec.Recover(ctx, r))
  40459. ret = graphql.Null
  40460. }
  40461. }()
  40462. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  40463. ctx = rctx // use context from middleware stack in children
  40464. return obj.SubChannelName, nil
  40465. })
  40466. if err != nil {
  40467. ec.Error(ctx, err)
  40468. return graphql.Null
  40469. }
  40470. if resTmp == nil {
  40471. if !graphql.HasFieldError(ctx, fc) {
  40472. ec.Errorf(ctx, "must not be null")
  40473. }
  40474. return graphql.Null
  40475. }
  40476. res := resTmp.(string)
  40477. fc.Result = res
  40478. return ec.marshalNString2string(ctx, field.Selections, res)
  40479. }
  40480. func (ec *executionContext) fieldContext_ChannelDefinition_subChannelName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  40481. fc = &graphql.FieldContext{
  40482. Object: "ChannelDefinition",
  40483. Field: field,
  40484. IsMethod: false,
  40485. IsResolver: false,
  40486. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  40487. return nil, errors.New("field of type String does not have child fields")
  40488. },
  40489. }
  40490. return fc, nil
  40491. }
  40492. func (ec *executionContext) _ChannelDefinition_svgIcon(ctx context.Context, field graphql.CollectedField, obj *ChannelDefinition) (ret graphql.Marshaler) {
  40493. fc, err := ec.fieldContext_ChannelDefinition_svgIcon(ctx, field)
  40494. if err != nil {
  40495. return graphql.Null
  40496. }
  40497. ctx = graphql.WithFieldContext(ctx, fc)
  40498. defer func() {
  40499. if r := recover(); r != nil {
  40500. ec.Error(ctx, ec.Recover(ctx, r))
  40501. ret = graphql.Null
  40502. }
  40503. }()
  40504. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  40505. ctx = rctx // use context from middleware stack in children
  40506. return obj.SVGIcon, nil
  40507. })
  40508. if err != nil {
  40509. ec.Error(ctx, err)
  40510. return graphql.Null
  40511. }
  40512. if resTmp == nil {
  40513. return graphql.Null
  40514. }
  40515. res := resTmp.(*string)
  40516. fc.Result = res
  40517. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  40518. }
  40519. func (ec *executionContext) fieldContext_ChannelDefinition_svgIcon(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  40520. fc = &graphql.FieldContext{
  40521. Object: "ChannelDefinition",
  40522. Field: field,
  40523. IsMethod: false,
  40524. IsResolver: false,
  40525. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  40526. return nil, errors.New("field of type String does not have child fields")
  40527. },
  40528. }
  40529. return fc, nil
  40530. }
  40531. func (ec *executionContext) _ChannelInformation_app(ctx context.Context, field graphql.CollectedField, obj *ChannelInformation) (ret graphql.Marshaler) {
  40532. fc, err := ec.fieldContext_ChannelInformation_app(ctx, field)
  40533. if err != nil {
  40534. return graphql.Null
  40535. }
  40536. ctx = graphql.WithFieldContext(ctx, fc)
  40537. defer func() {
  40538. if r := recover(); r != nil {
  40539. ec.Error(ctx, ec.Recover(ctx, r))
  40540. ret = graphql.Null
  40541. }
  40542. }()
  40543. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  40544. ctx = rctx // use context from middleware stack in children
  40545. return obj.App, nil
  40546. })
  40547. if err != nil {
  40548. ec.Error(ctx, err)
  40549. return graphql.Null
  40550. }
  40551. if resTmp == nil {
  40552. if !graphql.HasFieldError(ctx, fc) {
  40553. ec.Errorf(ctx, "must not be null")
  40554. }
  40555. return graphql.Null
  40556. }
  40557. res := resTmp.(*App)
  40558. fc.Result = res
  40559. return ec.marshalNApp2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐApp(ctx, field.Selections, res)
  40560. }
  40561. func (ec *executionContext) fieldContext_ChannelInformation_app(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  40562. fc = &graphql.FieldContext{
  40563. Object: "ChannelInformation",
  40564. Field: field,
  40565. IsMethod: false,
  40566. IsResolver: false,
  40567. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  40568. switch field.Name {
  40569. case "apiKey":
  40570. return ec.fieldContext_App_apiKey(ctx, field)
  40571. case "appStoreAppUrl":
  40572. return ec.fieldContext_App_appStoreAppUrl(ctx, field)
  40573. case "appStoreDeveloperUrl":
  40574. return ec.fieldContext_App_appStoreDeveloperUrl(ctx, field)
  40575. case "availableAccessScopes":
  40576. return ec.fieldContext_App_availableAccessScopes(ctx, field)
  40577. case "banner":
  40578. return ec.fieldContext_App_banner(ctx, field)
  40579. case "description":
  40580. return ec.fieldContext_App_description(ctx, field)
  40581. case "developerName":
  40582. return ec.fieldContext_App_developerName(ctx, field)
  40583. case "developerType":
  40584. return ec.fieldContext_App_developerType(ctx, field)
  40585. case "embedded":
  40586. return ec.fieldContext_App_embedded(ctx, field)
  40587. case "failedRequirements":
  40588. return ec.fieldContext_App_failedRequirements(ctx, field)
  40589. case "features":
  40590. return ec.fieldContext_App_features(ctx, field)
  40591. case "feedback":
  40592. return ec.fieldContext_App_feedback(ctx, field)
  40593. case "handle":
  40594. return ec.fieldContext_App_handle(ctx, field)
  40595. case "icon":
  40596. return ec.fieldContext_App_icon(ctx, field)
  40597. case "id":
  40598. return ec.fieldContext_App_id(ctx, field)
  40599. case "installUrl":
  40600. return ec.fieldContext_App_installUrl(ctx, field)
  40601. case "installation":
  40602. return ec.fieldContext_App_installation(ctx, field)
  40603. case "isPostPurchaseAppInUse":
  40604. return ec.fieldContext_App_isPostPurchaseAppInUse(ctx, field)
  40605. case "previouslyInstalled":
  40606. return ec.fieldContext_App_previouslyInstalled(ctx, field)
  40607. case "pricingDetails":
  40608. return ec.fieldContext_App_pricingDetails(ctx, field)
  40609. case "pricingDetailsSummary":
  40610. return ec.fieldContext_App_pricingDetailsSummary(ctx, field)
  40611. case "privacyPolicyUrl":
  40612. return ec.fieldContext_App_privacyPolicyUrl(ctx, field)
  40613. case "publicCategory":
  40614. return ec.fieldContext_App_publicCategory(ctx, field)
  40615. case "published":
  40616. return ec.fieldContext_App_published(ctx, field)
  40617. case "requestedAccessScopes":
  40618. return ec.fieldContext_App_requestedAccessScopes(ctx, field)
  40619. case "screenshots":
  40620. return ec.fieldContext_App_screenshots(ctx, field)
  40621. case "shopifyDeveloped":
  40622. return ec.fieldContext_App_shopifyDeveloped(ctx, field)
  40623. case "title":
  40624. return ec.fieldContext_App_title(ctx, field)
  40625. case "uninstallMessage":
  40626. return ec.fieldContext_App_uninstallMessage(ctx, field)
  40627. case "webhookApiVersion":
  40628. return ec.fieldContext_App_webhookApiVersion(ctx, field)
  40629. }
  40630. return nil, fmt.Errorf("no field named %q was found under type App", field.Name)
  40631. },
  40632. }
  40633. return fc, nil
  40634. }
  40635. func (ec *executionContext) _ChannelInformation_channelDefinition(ctx context.Context, field graphql.CollectedField, obj *ChannelInformation) (ret graphql.Marshaler) {
  40636. fc, err := ec.fieldContext_ChannelInformation_channelDefinition(ctx, field)
  40637. if err != nil {
  40638. return graphql.Null
  40639. }
  40640. ctx = graphql.WithFieldContext(ctx, fc)
  40641. defer func() {
  40642. if r := recover(); r != nil {
  40643. ec.Error(ctx, ec.Recover(ctx, r))
  40644. ret = graphql.Null
  40645. }
  40646. }()
  40647. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  40648. ctx = rctx // use context from middleware stack in children
  40649. return obj.ChannelDefinition, nil
  40650. })
  40651. if err != nil {
  40652. ec.Error(ctx, err)
  40653. return graphql.Null
  40654. }
  40655. if resTmp == nil {
  40656. return graphql.Null
  40657. }
  40658. res := resTmp.(*ChannelDefinition)
  40659. fc.Result = res
  40660. return ec.marshalOChannelDefinition2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐChannelDefinition(ctx, field.Selections, res)
  40661. }
  40662. func (ec *executionContext) fieldContext_ChannelInformation_channelDefinition(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  40663. fc = &graphql.FieldContext{
  40664. Object: "ChannelInformation",
  40665. Field: field,
  40666. IsMethod: false,
  40667. IsResolver: false,
  40668. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  40669. switch field.Name {
  40670. case "channelName":
  40671. return ec.fieldContext_ChannelDefinition_channelName(ctx, field)
  40672. case "handle":
  40673. return ec.fieldContext_ChannelDefinition_handle(ctx, field)
  40674. case "id":
  40675. return ec.fieldContext_ChannelDefinition_id(ctx, field)
  40676. case "subChannelName":
  40677. return ec.fieldContext_ChannelDefinition_subChannelName(ctx, field)
  40678. case "svgIcon":
  40679. return ec.fieldContext_ChannelDefinition_svgIcon(ctx, field)
  40680. }
  40681. return nil, fmt.Errorf("no field named %q was found under type ChannelDefinition", field.Name)
  40682. },
  40683. }
  40684. return fc, nil
  40685. }
  40686. func (ec *executionContext) _ChannelInformation_channelId(ctx context.Context, field graphql.CollectedField, obj *ChannelInformation) (ret graphql.Marshaler) {
  40687. fc, err := ec.fieldContext_ChannelInformation_channelId(ctx, field)
  40688. if err != nil {
  40689. return graphql.Null
  40690. }
  40691. ctx = graphql.WithFieldContext(ctx, fc)
  40692. defer func() {
  40693. if r := recover(); r != nil {
  40694. ec.Error(ctx, ec.Recover(ctx, r))
  40695. ret = graphql.Null
  40696. }
  40697. }()
  40698. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  40699. ctx = rctx // use context from middleware stack in children
  40700. return obj.ChannelID, nil
  40701. })
  40702. if err != nil {
  40703. ec.Error(ctx, err)
  40704. return graphql.Null
  40705. }
  40706. if resTmp == nil {
  40707. if !graphql.HasFieldError(ctx, fc) {
  40708. ec.Errorf(ctx, "must not be null")
  40709. }
  40710. return graphql.Null
  40711. }
  40712. res := resTmp.(string)
  40713. fc.Result = res
  40714. return ec.marshalNID2string(ctx, field.Selections, res)
  40715. }
  40716. func (ec *executionContext) fieldContext_ChannelInformation_channelId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  40717. fc = &graphql.FieldContext{
  40718. Object: "ChannelInformation",
  40719. Field: field,
  40720. IsMethod: false,
  40721. IsResolver: false,
  40722. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  40723. return nil, errors.New("field of type ID does not have child fields")
  40724. },
  40725. }
  40726. return fc, nil
  40727. }
  40728. func (ec *executionContext) _ChannelInformation_id(ctx context.Context, field graphql.CollectedField, obj *ChannelInformation) (ret graphql.Marshaler) {
  40729. fc, err := ec.fieldContext_ChannelInformation_id(ctx, field)
  40730. if err != nil {
  40731. return graphql.Null
  40732. }
  40733. ctx = graphql.WithFieldContext(ctx, fc)
  40734. defer func() {
  40735. if r := recover(); r != nil {
  40736. ec.Error(ctx, ec.Recover(ctx, r))
  40737. ret = graphql.Null
  40738. }
  40739. }()
  40740. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  40741. ctx = rctx // use context from middleware stack in children
  40742. return obj.ID, nil
  40743. })
  40744. if err != nil {
  40745. ec.Error(ctx, err)
  40746. return graphql.Null
  40747. }
  40748. if resTmp == nil {
  40749. if !graphql.HasFieldError(ctx, fc) {
  40750. ec.Errorf(ctx, "must not be null")
  40751. }
  40752. return graphql.Null
  40753. }
  40754. res := resTmp.(string)
  40755. fc.Result = res
  40756. return ec.marshalNID2string(ctx, field.Selections, res)
  40757. }
  40758. func (ec *executionContext) fieldContext_ChannelInformation_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  40759. fc = &graphql.FieldContext{
  40760. Object: "ChannelInformation",
  40761. Field: field,
  40762. IsMethod: false,
  40763. IsResolver: false,
  40764. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  40765. return nil, errors.New("field of type ID does not have child fields")
  40766. },
  40767. }
  40768. return fc, nil
  40769. }
  40770. func (ec *executionContext) _Collection_availablePublicationCount(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  40771. fc, err := ec.fieldContext_Collection_availablePublicationCount(ctx, field)
  40772. if err != nil {
  40773. return graphql.Null
  40774. }
  40775. ctx = graphql.WithFieldContext(ctx, fc)
  40776. defer func() {
  40777. if r := recover(); r != nil {
  40778. ec.Error(ctx, ec.Recover(ctx, r))
  40779. ret = graphql.Null
  40780. }
  40781. }()
  40782. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  40783. ctx = rctx // use context from middleware stack in children
  40784. return obj.AvailablePublicationCount, nil
  40785. })
  40786. if err != nil {
  40787. ec.Error(ctx, err)
  40788. return graphql.Null
  40789. }
  40790. if resTmp == nil {
  40791. if !graphql.HasFieldError(ctx, fc) {
  40792. ec.Errorf(ctx, "must not be null")
  40793. }
  40794. return graphql.Null
  40795. }
  40796. res := resTmp.(int)
  40797. fc.Result = res
  40798. return ec.marshalNInt2int(ctx, field.Selections, res)
  40799. }
  40800. func (ec *executionContext) fieldContext_Collection_availablePublicationCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  40801. fc = &graphql.FieldContext{
  40802. Object: "Collection",
  40803. Field: field,
  40804. IsMethod: false,
  40805. IsResolver: false,
  40806. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  40807. return nil, errors.New("field of type Int does not have child fields")
  40808. },
  40809. }
  40810. return fc, nil
  40811. }
  40812. func (ec *executionContext) _Collection_description(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  40813. fc, err := ec.fieldContext_Collection_description(ctx, field)
  40814. if err != nil {
  40815. return graphql.Null
  40816. }
  40817. ctx = graphql.WithFieldContext(ctx, fc)
  40818. defer func() {
  40819. if r := recover(); r != nil {
  40820. ec.Error(ctx, ec.Recover(ctx, r))
  40821. ret = graphql.Null
  40822. }
  40823. }()
  40824. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  40825. ctx = rctx // use context from middleware stack in children
  40826. return obj.Description, nil
  40827. })
  40828. if err != nil {
  40829. ec.Error(ctx, err)
  40830. return graphql.Null
  40831. }
  40832. if resTmp == nil {
  40833. if !graphql.HasFieldError(ctx, fc) {
  40834. ec.Errorf(ctx, "must not be null")
  40835. }
  40836. return graphql.Null
  40837. }
  40838. res := resTmp.(string)
  40839. fc.Result = res
  40840. return ec.marshalNString2string(ctx, field.Selections, res)
  40841. }
  40842. func (ec *executionContext) fieldContext_Collection_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  40843. fc = &graphql.FieldContext{
  40844. Object: "Collection",
  40845. Field: field,
  40846. IsMethod: false,
  40847. IsResolver: false,
  40848. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  40849. return nil, errors.New("field of type String does not have child fields")
  40850. },
  40851. }
  40852. defer func() {
  40853. if r := recover(); r != nil {
  40854. err = ec.Recover(ctx, r)
  40855. ec.Error(ctx, err)
  40856. }
  40857. }()
  40858. ctx = graphql.WithFieldContext(ctx, fc)
  40859. if fc.Args, err = ec.field_Collection_description_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  40860. ec.Error(ctx, err)
  40861. return
  40862. }
  40863. return fc, nil
  40864. }
  40865. func (ec *executionContext) _Collection_descriptionHtml(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  40866. fc, err := ec.fieldContext_Collection_descriptionHtml(ctx, field)
  40867. if err != nil {
  40868. return graphql.Null
  40869. }
  40870. ctx = graphql.WithFieldContext(ctx, fc)
  40871. defer func() {
  40872. if r := recover(); r != nil {
  40873. ec.Error(ctx, ec.Recover(ctx, r))
  40874. ret = graphql.Null
  40875. }
  40876. }()
  40877. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  40878. ctx = rctx // use context from middleware stack in children
  40879. return obj.DescriptionHTML, nil
  40880. })
  40881. if err != nil {
  40882. ec.Error(ctx, err)
  40883. return graphql.Null
  40884. }
  40885. if resTmp == nil {
  40886. if !graphql.HasFieldError(ctx, fc) {
  40887. ec.Errorf(ctx, "must not be null")
  40888. }
  40889. return graphql.Null
  40890. }
  40891. res := resTmp.(string)
  40892. fc.Result = res
  40893. return ec.marshalNHTML2string(ctx, field.Selections, res)
  40894. }
  40895. func (ec *executionContext) fieldContext_Collection_descriptionHtml(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  40896. fc = &graphql.FieldContext{
  40897. Object: "Collection",
  40898. Field: field,
  40899. IsMethod: false,
  40900. IsResolver: false,
  40901. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  40902. return nil, errors.New("field of type HTML does not have child fields")
  40903. },
  40904. }
  40905. return fc, nil
  40906. }
  40907. func (ec *executionContext) _Collection_feedback(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  40908. fc, err := ec.fieldContext_Collection_feedback(ctx, field)
  40909. if err != nil {
  40910. return graphql.Null
  40911. }
  40912. ctx = graphql.WithFieldContext(ctx, fc)
  40913. defer func() {
  40914. if r := recover(); r != nil {
  40915. ec.Error(ctx, ec.Recover(ctx, r))
  40916. ret = graphql.Null
  40917. }
  40918. }()
  40919. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  40920. ctx = rctx // use context from middleware stack in children
  40921. return obj.Feedback, nil
  40922. })
  40923. if err != nil {
  40924. ec.Error(ctx, err)
  40925. return graphql.Null
  40926. }
  40927. if resTmp == nil {
  40928. return graphql.Null
  40929. }
  40930. res := resTmp.(*ResourceFeedback)
  40931. fc.Result = res
  40932. return ec.marshalOResourceFeedback2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourceFeedback(ctx, field.Selections, res)
  40933. }
  40934. func (ec *executionContext) fieldContext_Collection_feedback(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  40935. fc = &graphql.FieldContext{
  40936. Object: "Collection",
  40937. Field: field,
  40938. IsMethod: false,
  40939. IsResolver: false,
  40940. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  40941. switch field.Name {
  40942. case "details":
  40943. return ec.fieldContext_ResourceFeedback_details(ctx, field)
  40944. case "summary":
  40945. return ec.fieldContext_ResourceFeedback_summary(ctx, field)
  40946. }
  40947. return nil, fmt.Errorf("no field named %q was found under type ResourceFeedback", field.Name)
  40948. },
  40949. }
  40950. return fc, nil
  40951. }
  40952. func (ec *executionContext) _Collection_handle(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  40953. fc, err := ec.fieldContext_Collection_handle(ctx, field)
  40954. if err != nil {
  40955. return graphql.Null
  40956. }
  40957. ctx = graphql.WithFieldContext(ctx, fc)
  40958. defer func() {
  40959. if r := recover(); r != nil {
  40960. ec.Error(ctx, ec.Recover(ctx, r))
  40961. ret = graphql.Null
  40962. }
  40963. }()
  40964. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  40965. ctx = rctx // use context from middleware stack in children
  40966. return obj.Handle, nil
  40967. })
  40968. if err != nil {
  40969. ec.Error(ctx, err)
  40970. return graphql.Null
  40971. }
  40972. if resTmp == nil {
  40973. if !graphql.HasFieldError(ctx, fc) {
  40974. ec.Errorf(ctx, "must not be null")
  40975. }
  40976. return graphql.Null
  40977. }
  40978. res := resTmp.(string)
  40979. fc.Result = res
  40980. return ec.marshalNString2string(ctx, field.Selections, res)
  40981. }
  40982. func (ec *executionContext) fieldContext_Collection_handle(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  40983. fc = &graphql.FieldContext{
  40984. Object: "Collection",
  40985. Field: field,
  40986. IsMethod: false,
  40987. IsResolver: false,
  40988. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  40989. return nil, errors.New("field of type String does not have child fields")
  40990. },
  40991. }
  40992. return fc, nil
  40993. }
  40994. func (ec *executionContext) _Collection_hasProduct(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  40995. fc, err := ec.fieldContext_Collection_hasProduct(ctx, field)
  40996. if err != nil {
  40997. return graphql.Null
  40998. }
  40999. ctx = graphql.WithFieldContext(ctx, fc)
  41000. defer func() {
  41001. if r := recover(); r != nil {
  41002. ec.Error(ctx, ec.Recover(ctx, r))
  41003. ret = graphql.Null
  41004. }
  41005. }()
  41006. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  41007. ctx = rctx // use context from middleware stack in children
  41008. return obj.HasProduct, nil
  41009. })
  41010. if err != nil {
  41011. ec.Error(ctx, err)
  41012. return graphql.Null
  41013. }
  41014. if resTmp == nil {
  41015. if !graphql.HasFieldError(ctx, fc) {
  41016. ec.Errorf(ctx, "must not be null")
  41017. }
  41018. return graphql.Null
  41019. }
  41020. res := resTmp.(bool)
  41021. fc.Result = res
  41022. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  41023. }
  41024. func (ec *executionContext) fieldContext_Collection_hasProduct(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  41025. fc = &graphql.FieldContext{
  41026. Object: "Collection",
  41027. Field: field,
  41028. IsMethod: false,
  41029. IsResolver: false,
  41030. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  41031. return nil, errors.New("field of type Boolean does not have child fields")
  41032. },
  41033. }
  41034. defer func() {
  41035. if r := recover(); r != nil {
  41036. err = ec.Recover(ctx, r)
  41037. ec.Error(ctx, err)
  41038. }
  41039. }()
  41040. ctx = graphql.WithFieldContext(ctx, fc)
  41041. if fc.Args, err = ec.field_Collection_hasProduct_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  41042. ec.Error(ctx, err)
  41043. return
  41044. }
  41045. return fc, nil
  41046. }
  41047. func (ec *executionContext) _Collection_id(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  41048. fc, err := ec.fieldContext_Collection_id(ctx, field)
  41049. if err != nil {
  41050. return graphql.Null
  41051. }
  41052. ctx = graphql.WithFieldContext(ctx, fc)
  41053. defer func() {
  41054. if r := recover(); r != nil {
  41055. ec.Error(ctx, ec.Recover(ctx, r))
  41056. ret = graphql.Null
  41057. }
  41058. }()
  41059. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  41060. ctx = rctx // use context from middleware stack in children
  41061. return obj.ID, nil
  41062. })
  41063. if err != nil {
  41064. ec.Error(ctx, err)
  41065. return graphql.Null
  41066. }
  41067. if resTmp == nil {
  41068. if !graphql.HasFieldError(ctx, fc) {
  41069. ec.Errorf(ctx, "must not be null")
  41070. }
  41071. return graphql.Null
  41072. }
  41073. res := resTmp.(string)
  41074. fc.Result = res
  41075. return ec.marshalNID2string(ctx, field.Selections, res)
  41076. }
  41077. func (ec *executionContext) fieldContext_Collection_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  41078. fc = &graphql.FieldContext{
  41079. Object: "Collection",
  41080. Field: field,
  41081. IsMethod: false,
  41082. IsResolver: false,
  41083. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  41084. return nil, errors.New("field of type ID does not have child fields")
  41085. },
  41086. }
  41087. return fc, nil
  41088. }
  41089. func (ec *executionContext) _Collection_image(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  41090. fc, err := ec.fieldContext_Collection_image(ctx, field)
  41091. if err != nil {
  41092. return graphql.Null
  41093. }
  41094. ctx = graphql.WithFieldContext(ctx, fc)
  41095. defer func() {
  41096. if r := recover(); r != nil {
  41097. ec.Error(ctx, ec.Recover(ctx, r))
  41098. ret = graphql.Null
  41099. }
  41100. }()
  41101. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  41102. ctx = rctx // use context from middleware stack in children
  41103. return obj.Image, nil
  41104. })
  41105. if err != nil {
  41106. ec.Error(ctx, err)
  41107. return graphql.Null
  41108. }
  41109. if resTmp == nil {
  41110. return graphql.Null
  41111. }
  41112. res := resTmp.(*Image)
  41113. fc.Result = res
  41114. return ec.marshalOImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImage(ctx, field.Selections, res)
  41115. }
  41116. func (ec *executionContext) fieldContext_Collection_image(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  41117. fc = &graphql.FieldContext{
  41118. Object: "Collection",
  41119. Field: field,
  41120. IsMethod: false,
  41121. IsResolver: false,
  41122. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  41123. switch field.Name {
  41124. case "altText":
  41125. return ec.fieldContext_Image_altText(ctx, field)
  41126. case "height":
  41127. return ec.fieldContext_Image_height(ctx, field)
  41128. case "id":
  41129. return ec.fieldContext_Image_id(ctx, field)
  41130. case "metafield":
  41131. return ec.fieldContext_Image_metafield(ctx, field)
  41132. case "metafields":
  41133. return ec.fieldContext_Image_metafields(ctx, field)
  41134. case "privateMetafield":
  41135. return ec.fieldContext_Image_privateMetafield(ctx, field)
  41136. case "privateMetafields":
  41137. return ec.fieldContext_Image_privateMetafields(ctx, field)
  41138. case "url":
  41139. return ec.fieldContext_Image_url(ctx, field)
  41140. case "width":
  41141. return ec.fieldContext_Image_width(ctx, field)
  41142. }
  41143. return nil, fmt.Errorf("no field named %q was found under type Image", field.Name)
  41144. },
  41145. }
  41146. return fc, nil
  41147. }
  41148. func (ec *executionContext) _Collection_legacyResourceId(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  41149. fc, err := ec.fieldContext_Collection_legacyResourceId(ctx, field)
  41150. if err != nil {
  41151. return graphql.Null
  41152. }
  41153. ctx = graphql.WithFieldContext(ctx, fc)
  41154. defer func() {
  41155. if r := recover(); r != nil {
  41156. ec.Error(ctx, ec.Recover(ctx, r))
  41157. ret = graphql.Null
  41158. }
  41159. }()
  41160. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  41161. ctx = rctx // use context from middleware stack in children
  41162. return obj.LegacyResourceID, nil
  41163. })
  41164. if err != nil {
  41165. ec.Error(ctx, err)
  41166. return graphql.Null
  41167. }
  41168. if resTmp == nil {
  41169. if !graphql.HasFieldError(ctx, fc) {
  41170. ec.Errorf(ctx, "must not be null")
  41171. }
  41172. return graphql.Null
  41173. }
  41174. res := resTmp.(string)
  41175. fc.Result = res
  41176. return ec.marshalNUnsignedInt642string(ctx, field.Selections, res)
  41177. }
  41178. func (ec *executionContext) fieldContext_Collection_legacyResourceId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  41179. fc = &graphql.FieldContext{
  41180. Object: "Collection",
  41181. Field: field,
  41182. IsMethod: false,
  41183. IsResolver: false,
  41184. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  41185. return nil, errors.New("field of type UnsignedInt64 does not have child fields")
  41186. },
  41187. }
  41188. return fc, nil
  41189. }
  41190. func (ec *executionContext) _Collection_metafield(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  41191. fc, err := ec.fieldContext_Collection_metafield(ctx, field)
  41192. if err != nil {
  41193. return graphql.Null
  41194. }
  41195. ctx = graphql.WithFieldContext(ctx, fc)
  41196. defer func() {
  41197. if r := recover(); r != nil {
  41198. ec.Error(ctx, ec.Recover(ctx, r))
  41199. ret = graphql.Null
  41200. }
  41201. }()
  41202. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  41203. ctx = rctx // use context from middleware stack in children
  41204. return obj.Metafield, nil
  41205. })
  41206. if err != nil {
  41207. ec.Error(ctx, err)
  41208. return graphql.Null
  41209. }
  41210. if resTmp == nil {
  41211. return graphql.Null
  41212. }
  41213. res := resTmp.(*Metafield)
  41214. fc.Result = res
  41215. return ec.marshalOMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafield(ctx, field.Selections, res)
  41216. }
  41217. func (ec *executionContext) fieldContext_Collection_metafield(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  41218. fc = &graphql.FieldContext{
  41219. Object: "Collection",
  41220. Field: field,
  41221. IsMethod: false,
  41222. IsResolver: false,
  41223. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  41224. switch field.Name {
  41225. case "createdAt":
  41226. return ec.fieldContext_Metafield_createdAt(ctx, field)
  41227. case "definition":
  41228. return ec.fieldContext_Metafield_definition(ctx, field)
  41229. case "description":
  41230. return ec.fieldContext_Metafield_description(ctx, field)
  41231. case "id":
  41232. return ec.fieldContext_Metafield_id(ctx, field)
  41233. case "key":
  41234. return ec.fieldContext_Metafield_key(ctx, field)
  41235. case "legacyResourceId":
  41236. return ec.fieldContext_Metafield_legacyResourceId(ctx, field)
  41237. case "namespace":
  41238. return ec.fieldContext_Metafield_namespace(ctx, field)
  41239. case "owner":
  41240. return ec.fieldContext_Metafield_owner(ctx, field)
  41241. case "ownerType":
  41242. return ec.fieldContext_Metafield_ownerType(ctx, field)
  41243. case "reference":
  41244. return ec.fieldContext_Metafield_reference(ctx, field)
  41245. case "references":
  41246. return ec.fieldContext_Metafield_references(ctx, field)
  41247. case "type":
  41248. return ec.fieldContext_Metafield_type(ctx, field)
  41249. case "updatedAt":
  41250. return ec.fieldContext_Metafield_updatedAt(ctx, field)
  41251. case "value":
  41252. return ec.fieldContext_Metafield_value(ctx, field)
  41253. }
  41254. return nil, fmt.Errorf("no field named %q was found under type Metafield", field.Name)
  41255. },
  41256. }
  41257. defer func() {
  41258. if r := recover(); r != nil {
  41259. err = ec.Recover(ctx, r)
  41260. ec.Error(ctx, err)
  41261. }
  41262. }()
  41263. ctx = graphql.WithFieldContext(ctx, fc)
  41264. if fc.Args, err = ec.field_Collection_metafield_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  41265. ec.Error(ctx, err)
  41266. return
  41267. }
  41268. return fc, nil
  41269. }
  41270. func (ec *executionContext) _Collection_metafieldDefinitions(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  41271. fc, err := ec.fieldContext_Collection_metafieldDefinitions(ctx, field)
  41272. if err != nil {
  41273. return graphql.Null
  41274. }
  41275. ctx = graphql.WithFieldContext(ctx, fc)
  41276. defer func() {
  41277. if r := recover(); r != nil {
  41278. ec.Error(ctx, ec.Recover(ctx, r))
  41279. ret = graphql.Null
  41280. }
  41281. }()
  41282. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  41283. ctx = rctx // use context from middleware stack in children
  41284. return obj.MetafieldDefinitions, nil
  41285. })
  41286. if err != nil {
  41287. ec.Error(ctx, err)
  41288. return graphql.Null
  41289. }
  41290. if resTmp == nil {
  41291. if !graphql.HasFieldError(ctx, fc) {
  41292. ec.Errorf(ctx, "must not be null")
  41293. }
  41294. return graphql.Null
  41295. }
  41296. res := resTmp.(*MetafieldDefinitionConnection)
  41297. fc.Result = res
  41298. return ec.marshalNMetafieldDefinitionConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionConnection(ctx, field.Selections, res)
  41299. }
  41300. func (ec *executionContext) fieldContext_Collection_metafieldDefinitions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  41301. fc = &graphql.FieldContext{
  41302. Object: "Collection",
  41303. Field: field,
  41304. IsMethod: false,
  41305. IsResolver: false,
  41306. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  41307. switch field.Name {
  41308. case "edges":
  41309. return ec.fieldContext_MetafieldDefinitionConnection_edges(ctx, field)
  41310. case "nodes":
  41311. return ec.fieldContext_MetafieldDefinitionConnection_nodes(ctx, field)
  41312. case "pageInfo":
  41313. return ec.fieldContext_MetafieldDefinitionConnection_pageInfo(ctx, field)
  41314. }
  41315. return nil, fmt.Errorf("no field named %q was found under type MetafieldDefinitionConnection", field.Name)
  41316. },
  41317. }
  41318. defer func() {
  41319. if r := recover(); r != nil {
  41320. err = ec.Recover(ctx, r)
  41321. ec.Error(ctx, err)
  41322. }
  41323. }()
  41324. ctx = graphql.WithFieldContext(ctx, fc)
  41325. if fc.Args, err = ec.field_Collection_metafieldDefinitions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  41326. ec.Error(ctx, err)
  41327. return
  41328. }
  41329. return fc, nil
  41330. }
  41331. func (ec *executionContext) _Collection_metafields(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  41332. fc, err := ec.fieldContext_Collection_metafields(ctx, field)
  41333. if err != nil {
  41334. return graphql.Null
  41335. }
  41336. ctx = graphql.WithFieldContext(ctx, fc)
  41337. defer func() {
  41338. if r := recover(); r != nil {
  41339. ec.Error(ctx, ec.Recover(ctx, r))
  41340. ret = graphql.Null
  41341. }
  41342. }()
  41343. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  41344. ctx = rctx // use context from middleware stack in children
  41345. return obj.Metafields, nil
  41346. })
  41347. if err != nil {
  41348. ec.Error(ctx, err)
  41349. return graphql.Null
  41350. }
  41351. if resTmp == nil {
  41352. if !graphql.HasFieldError(ctx, fc) {
  41353. ec.Errorf(ctx, "must not be null")
  41354. }
  41355. return graphql.Null
  41356. }
  41357. res := resTmp.(*MetafieldConnection)
  41358. fc.Result = res
  41359. return ec.marshalNMetafieldConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldConnection(ctx, field.Selections, res)
  41360. }
  41361. func (ec *executionContext) fieldContext_Collection_metafields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  41362. fc = &graphql.FieldContext{
  41363. Object: "Collection",
  41364. Field: field,
  41365. IsMethod: false,
  41366. IsResolver: false,
  41367. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  41368. switch field.Name {
  41369. case "edges":
  41370. return ec.fieldContext_MetafieldConnection_edges(ctx, field)
  41371. case "nodes":
  41372. return ec.fieldContext_MetafieldConnection_nodes(ctx, field)
  41373. case "pageInfo":
  41374. return ec.fieldContext_MetafieldConnection_pageInfo(ctx, field)
  41375. }
  41376. return nil, fmt.Errorf("no field named %q was found under type MetafieldConnection", field.Name)
  41377. },
  41378. }
  41379. defer func() {
  41380. if r := recover(); r != nil {
  41381. err = ec.Recover(ctx, r)
  41382. ec.Error(ctx, err)
  41383. }
  41384. }()
  41385. ctx = graphql.WithFieldContext(ctx, fc)
  41386. if fc.Args, err = ec.field_Collection_metafields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  41387. ec.Error(ctx, err)
  41388. return
  41389. }
  41390. return fc, nil
  41391. }
  41392. func (ec *executionContext) _Collection_privateMetafield(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  41393. fc, err := ec.fieldContext_Collection_privateMetafield(ctx, field)
  41394. if err != nil {
  41395. return graphql.Null
  41396. }
  41397. ctx = graphql.WithFieldContext(ctx, fc)
  41398. defer func() {
  41399. if r := recover(); r != nil {
  41400. ec.Error(ctx, ec.Recover(ctx, r))
  41401. ret = graphql.Null
  41402. }
  41403. }()
  41404. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  41405. ctx = rctx // use context from middleware stack in children
  41406. return obj.PrivateMetafield, nil
  41407. })
  41408. if err != nil {
  41409. ec.Error(ctx, err)
  41410. return graphql.Null
  41411. }
  41412. if resTmp == nil {
  41413. return graphql.Null
  41414. }
  41415. res := resTmp.(*PrivateMetafield)
  41416. fc.Result = res
  41417. return ec.marshalOPrivateMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafield(ctx, field.Selections, res)
  41418. }
  41419. func (ec *executionContext) fieldContext_Collection_privateMetafield(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  41420. fc = &graphql.FieldContext{
  41421. Object: "Collection",
  41422. Field: field,
  41423. IsMethod: false,
  41424. IsResolver: false,
  41425. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  41426. switch field.Name {
  41427. case "createdAt":
  41428. return ec.fieldContext_PrivateMetafield_createdAt(ctx, field)
  41429. case "id":
  41430. return ec.fieldContext_PrivateMetafield_id(ctx, field)
  41431. case "key":
  41432. return ec.fieldContext_PrivateMetafield_key(ctx, field)
  41433. case "namespace":
  41434. return ec.fieldContext_PrivateMetafield_namespace(ctx, field)
  41435. case "updatedAt":
  41436. return ec.fieldContext_PrivateMetafield_updatedAt(ctx, field)
  41437. case "value":
  41438. return ec.fieldContext_PrivateMetafield_value(ctx, field)
  41439. case "valueType":
  41440. return ec.fieldContext_PrivateMetafield_valueType(ctx, field)
  41441. }
  41442. return nil, fmt.Errorf("no field named %q was found under type PrivateMetafield", field.Name)
  41443. },
  41444. }
  41445. defer func() {
  41446. if r := recover(); r != nil {
  41447. err = ec.Recover(ctx, r)
  41448. ec.Error(ctx, err)
  41449. }
  41450. }()
  41451. ctx = graphql.WithFieldContext(ctx, fc)
  41452. if fc.Args, err = ec.field_Collection_privateMetafield_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  41453. ec.Error(ctx, err)
  41454. return
  41455. }
  41456. return fc, nil
  41457. }
  41458. func (ec *executionContext) _Collection_privateMetafields(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  41459. fc, err := ec.fieldContext_Collection_privateMetafields(ctx, field)
  41460. if err != nil {
  41461. return graphql.Null
  41462. }
  41463. ctx = graphql.WithFieldContext(ctx, fc)
  41464. defer func() {
  41465. if r := recover(); r != nil {
  41466. ec.Error(ctx, ec.Recover(ctx, r))
  41467. ret = graphql.Null
  41468. }
  41469. }()
  41470. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  41471. ctx = rctx // use context from middleware stack in children
  41472. return obj.PrivateMetafields, nil
  41473. })
  41474. if err != nil {
  41475. ec.Error(ctx, err)
  41476. return graphql.Null
  41477. }
  41478. if resTmp == nil {
  41479. if !graphql.HasFieldError(ctx, fc) {
  41480. ec.Errorf(ctx, "must not be null")
  41481. }
  41482. return graphql.Null
  41483. }
  41484. res := resTmp.(*PrivateMetafieldConnection)
  41485. fc.Result = res
  41486. return ec.marshalNPrivateMetafieldConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafieldConnection(ctx, field.Selections, res)
  41487. }
  41488. func (ec *executionContext) fieldContext_Collection_privateMetafields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  41489. fc = &graphql.FieldContext{
  41490. Object: "Collection",
  41491. Field: field,
  41492. IsMethod: false,
  41493. IsResolver: false,
  41494. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  41495. switch field.Name {
  41496. case "edges":
  41497. return ec.fieldContext_PrivateMetafieldConnection_edges(ctx, field)
  41498. case "nodes":
  41499. return ec.fieldContext_PrivateMetafieldConnection_nodes(ctx, field)
  41500. case "pageInfo":
  41501. return ec.fieldContext_PrivateMetafieldConnection_pageInfo(ctx, field)
  41502. }
  41503. return nil, fmt.Errorf("no field named %q was found under type PrivateMetafieldConnection", field.Name)
  41504. },
  41505. }
  41506. defer func() {
  41507. if r := recover(); r != nil {
  41508. err = ec.Recover(ctx, r)
  41509. ec.Error(ctx, err)
  41510. }
  41511. }()
  41512. ctx = graphql.WithFieldContext(ctx, fc)
  41513. if fc.Args, err = ec.field_Collection_privateMetafields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  41514. ec.Error(ctx, err)
  41515. return
  41516. }
  41517. return fc, nil
  41518. }
  41519. func (ec *executionContext) _Collection_products(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  41520. fc, err := ec.fieldContext_Collection_products(ctx, field)
  41521. if err != nil {
  41522. return graphql.Null
  41523. }
  41524. ctx = graphql.WithFieldContext(ctx, fc)
  41525. defer func() {
  41526. if r := recover(); r != nil {
  41527. ec.Error(ctx, ec.Recover(ctx, r))
  41528. ret = graphql.Null
  41529. }
  41530. }()
  41531. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  41532. ctx = rctx // use context from middleware stack in children
  41533. return obj.Products, nil
  41534. })
  41535. if err != nil {
  41536. ec.Error(ctx, err)
  41537. return graphql.Null
  41538. }
  41539. if resTmp == nil {
  41540. if !graphql.HasFieldError(ctx, fc) {
  41541. ec.Errorf(ctx, "must not be null")
  41542. }
  41543. return graphql.Null
  41544. }
  41545. res := resTmp.(*ProductConnection)
  41546. fc.Result = res
  41547. return ec.marshalNProductConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductConnection(ctx, field.Selections, res)
  41548. }
  41549. func (ec *executionContext) fieldContext_Collection_products(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  41550. fc = &graphql.FieldContext{
  41551. Object: "Collection",
  41552. Field: field,
  41553. IsMethod: false,
  41554. IsResolver: false,
  41555. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  41556. switch field.Name {
  41557. case "edges":
  41558. return ec.fieldContext_ProductConnection_edges(ctx, field)
  41559. case "nodes":
  41560. return ec.fieldContext_ProductConnection_nodes(ctx, field)
  41561. case "pageInfo":
  41562. return ec.fieldContext_ProductConnection_pageInfo(ctx, field)
  41563. }
  41564. return nil, fmt.Errorf("no field named %q was found under type ProductConnection", field.Name)
  41565. },
  41566. }
  41567. defer func() {
  41568. if r := recover(); r != nil {
  41569. err = ec.Recover(ctx, r)
  41570. ec.Error(ctx, err)
  41571. }
  41572. }()
  41573. ctx = graphql.WithFieldContext(ctx, fc)
  41574. if fc.Args, err = ec.field_Collection_products_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  41575. ec.Error(ctx, err)
  41576. return
  41577. }
  41578. return fc, nil
  41579. }
  41580. func (ec *executionContext) _Collection_productsCount(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  41581. fc, err := ec.fieldContext_Collection_productsCount(ctx, field)
  41582. if err != nil {
  41583. return graphql.Null
  41584. }
  41585. ctx = graphql.WithFieldContext(ctx, fc)
  41586. defer func() {
  41587. if r := recover(); r != nil {
  41588. ec.Error(ctx, ec.Recover(ctx, r))
  41589. ret = graphql.Null
  41590. }
  41591. }()
  41592. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  41593. ctx = rctx // use context from middleware stack in children
  41594. return obj.ProductsCount, nil
  41595. })
  41596. if err != nil {
  41597. ec.Error(ctx, err)
  41598. return graphql.Null
  41599. }
  41600. if resTmp == nil {
  41601. if !graphql.HasFieldError(ctx, fc) {
  41602. ec.Errorf(ctx, "must not be null")
  41603. }
  41604. return graphql.Null
  41605. }
  41606. res := resTmp.(int)
  41607. fc.Result = res
  41608. return ec.marshalNInt2int(ctx, field.Selections, res)
  41609. }
  41610. func (ec *executionContext) fieldContext_Collection_productsCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  41611. fc = &graphql.FieldContext{
  41612. Object: "Collection",
  41613. Field: field,
  41614. IsMethod: false,
  41615. IsResolver: false,
  41616. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  41617. return nil, errors.New("field of type Int does not have child fields")
  41618. },
  41619. }
  41620. return fc, nil
  41621. }
  41622. func (ec *executionContext) _Collection_publicationCount(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  41623. fc, err := ec.fieldContext_Collection_publicationCount(ctx, field)
  41624. if err != nil {
  41625. return graphql.Null
  41626. }
  41627. ctx = graphql.WithFieldContext(ctx, fc)
  41628. defer func() {
  41629. if r := recover(); r != nil {
  41630. ec.Error(ctx, ec.Recover(ctx, r))
  41631. ret = graphql.Null
  41632. }
  41633. }()
  41634. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  41635. ctx = rctx // use context from middleware stack in children
  41636. return obj.PublicationCount, nil
  41637. })
  41638. if err != nil {
  41639. ec.Error(ctx, err)
  41640. return graphql.Null
  41641. }
  41642. if resTmp == nil {
  41643. if !graphql.HasFieldError(ctx, fc) {
  41644. ec.Errorf(ctx, "must not be null")
  41645. }
  41646. return graphql.Null
  41647. }
  41648. res := resTmp.(int)
  41649. fc.Result = res
  41650. return ec.marshalNInt2int(ctx, field.Selections, res)
  41651. }
  41652. func (ec *executionContext) fieldContext_Collection_publicationCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  41653. fc = &graphql.FieldContext{
  41654. Object: "Collection",
  41655. Field: field,
  41656. IsMethod: false,
  41657. IsResolver: false,
  41658. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  41659. return nil, errors.New("field of type Int does not have child fields")
  41660. },
  41661. }
  41662. defer func() {
  41663. if r := recover(); r != nil {
  41664. err = ec.Recover(ctx, r)
  41665. ec.Error(ctx, err)
  41666. }
  41667. }()
  41668. ctx = graphql.WithFieldContext(ctx, fc)
  41669. if fc.Args, err = ec.field_Collection_publicationCount_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  41670. ec.Error(ctx, err)
  41671. return
  41672. }
  41673. return fc, nil
  41674. }
  41675. func (ec *executionContext) _Collection_publishedOnCurrentPublication(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  41676. fc, err := ec.fieldContext_Collection_publishedOnCurrentPublication(ctx, field)
  41677. if err != nil {
  41678. return graphql.Null
  41679. }
  41680. ctx = graphql.WithFieldContext(ctx, fc)
  41681. defer func() {
  41682. if r := recover(); r != nil {
  41683. ec.Error(ctx, ec.Recover(ctx, r))
  41684. ret = graphql.Null
  41685. }
  41686. }()
  41687. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  41688. ctx = rctx // use context from middleware stack in children
  41689. return obj.PublishedOnCurrentPublication, nil
  41690. })
  41691. if err != nil {
  41692. ec.Error(ctx, err)
  41693. return graphql.Null
  41694. }
  41695. if resTmp == nil {
  41696. if !graphql.HasFieldError(ctx, fc) {
  41697. ec.Errorf(ctx, "must not be null")
  41698. }
  41699. return graphql.Null
  41700. }
  41701. res := resTmp.(bool)
  41702. fc.Result = res
  41703. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  41704. }
  41705. func (ec *executionContext) fieldContext_Collection_publishedOnCurrentPublication(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  41706. fc = &graphql.FieldContext{
  41707. Object: "Collection",
  41708. Field: field,
  41709. IsMethod: false,
  41710. IsResolver: false,
  41711. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  41712. return nil, errors.New("field of type Boolean does not have child fields")
  41713. },
  41714. }
  41715. return fc, nil
  41716. }
  41717. func (ec *executionContext) _Collection_publishedOnPublication(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  41718. fc, err := ec.fieldContext_Collection_publishedOnPublication(ctx, field)
  41719. if err != nil {
  41720. return graphql.Null
  41721. }
  41722. ctx = graphql.WithFieldContext(ctx, fc)
  41723. defer func() {
  41724. if r := recover(); r != nil {
  41725. ec.Error(ctx, ec.Recover(ctx, r))
  41726. ret = graphql.Null
  41727. }
  41728. }()
  41729. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  41730. ctx = rctx // use context from middleware stack in children
  41731. return obj.PublishedOnPublication, nil
  41732. })
  41733. if err != nil {
  41734. ec.Error(ctx, err)
  41735. return graphql.Null
  41736. }
  41737. if resTmp == nil {
  41738. if !graphql.HasFieldError(ctx, fc) {
  41739. ec.Errorf(ctx, "must not be null")
  41740. }
  41741. return graphql.Null
  41742. }
  41743. res := resTmp.(bool)
  41744. fc.Result = res
  41745. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  41746. }
  41747. func (ec *executionContext) fieldContext_Collection_publishedOnPublication(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  41748. fc = &graphql.FieldContext{
  41749. Object: "Collection",
  41750. Field: field,
  41751. IsMethod: false,
  41752. IsResolver: false,
  41753. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  41754. return nil, errors.New("field of type Boolean does not have child fields")
  41755. },
  41756. }
  41757. defer func() {
  41758. if r := recover(); r != nil {
  41759. err = ec.Recover(ctx, r)
  41760. ec.Error(ctx, err)
  41761. }
  41762. }()
  41763. ctx = graphql.WithFieldContext(ctx, fc)
  41764. if fc.Args, err = ec.field_Collection_publishedOnPublication_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  41765. ec.Error(ctx, err)
  41766. return
  41767. }
  41768. return fc, nil
  41769. }
  41770. func (ec *executionContext) _Collection_resourcePublications(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  41771. fc, err := ec.fieldContext_Collection_resourcePublications(ctx, field)
  41772. if err != nil {
  41773. return graphql.Null
  41774. }
  41775. ctx = graphql.WithFieldContext(ctx, fc)
  41776. defer func() {
  41777. if r := recover(); r != nil {
  41778. ec.Error(ctx, ec.Recover(ctx, r))
  41779. ret = graphql.Null
  41780. }
  41781. }()
  41782. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  41783. ctx = rctx // use context from middleware stack in children
  41784. return obj.ResourcePublications, nil
  41785. })
  41786. if err != nil {
  41787. ec.Error(ctx, err)
  41788. return graphql.Null
  41789. }
  41790. if resTmp == nil {
  41791. if !graphql.HasFieldError(ctx, fc) {
  41792. ec.Errorf(ctx, "must not be null")
  41793. }
  41794. return graphql.Null
  41795. }
  41796. res := resTmp.(*ResourcePublicationConnection)
  41797. fc.Result = res
  41798. return ec.marshalNResourcePublicationConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublicationConnection(ctx, field.Selections, res)
  41799. }
  41800. func (ec *executionContext) fieldContext_Collection_resourcePublications(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  41801. fc = &graphql.FieldContext{
  41802. Object: "Collection",
  41803. Field: field,
  41804. IsMethod: false,
  41805. IsResolver: false,
  41806. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  41807. switch field.Name {
  41808. case "edges":
  41809. return ec.fieldContext_ResourcePublicationConnection_edges(ctx, field)
  41810. case "nodes":
  41811. return ec.fieldContext_ResourcePublicationConnection_nodes(ctx, field)
  41812. case "pageInfo":
  41813. return ec.fieldContext_ResourcePublicationConnection_pageInfo(ctx, field)
  41814. }
  41815. return nil, fmt.Errorf("no field named %q was found under type ResourcePublicationConnection", field.Name)
  41816. },
  41817. }
  41818. defer func() {
  41819. if r := recover(); r != nil {
  41820. err = ec.Recover(ctx, r)
  41821. ec.Error(ctx, err)
  41822. }
  41823. }()
  41824. ctx = graphql.WithFieldContext(ctx, fc)
  41825. if fc.Args, err = ec.field_Collection_resourcePublications_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  41826. ec.Error(ctx, err)
  41827. return
  41828. }
  41829. return fc, nil
  41830. }
  41831. func (ec *executionContext) _Collection_resourcePublicationsV2(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  41832. fc, err := ec.fieldContext_Collection_resourcePublicationsV2(ctx, field)
  41833. if err != nil {
  41834. return graphql.Null
  41835. }
  41836. ctx = graphql.WithFieldContext(ctx, fc)
  41837. defer func() {
  41838. if r := recover(); r != nil {
  41839. ec.Error(ctx, ec.Recover(ctx, r))
  41840. ret = graphql.Null
  41841. }
  41842. }()
  41843. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  41844. ctx = rctx // use context from middleware stack in children
  41845. return obj.ResourcePublicationsV2, nil
  41846. })
  41847. if err != nil {
  41848. ec.Error(ctx, err)
  41849. return graphql.Null
  41850. }
  41851. if resTmp == nil {
  41852. if !graphql.HasFieldError(ctx, fc) {
  41853. ec.Errorf(ctx, "must not be null")
  41854. }
  41855. return graphql.Null
  41856. }
  41857. res := resTmp.(*ResourcePublicationV2Connection)
  41858. fc.Result = res
  41859. return ec.marshalNResourcePublicationV2Connection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublicationV2Connection(ctx, field.Selections, res)
  41860. }
  41861. func (ec *executionContext) fieldContext_Collection_resourcePublicationsV2(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  41862. fc = &graphql.FieldContext{
  41863. Object: "Collection",
  41864. Field: field,
  41865. IsMethod: false,
  41866. IsResolver: false,
  41867. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  41868. switch field.Name {
  41869. case "edges":
  41870. return ec.fieldContext_ResourcePublicationV2Connection_edges(ctx, field)
  41871. case "nodes":
  41872. return ec.fieldContext_ResourcePublicationV2Connection_nodes(ctx, field)
  41873. case "pageInfo":
  41874. return ec.fieldContext_ResourcePublicationV2Connection_pageInfo(ctx, field)
  41875. }
  41876. return nil, fmt.Errorf("no field named %q was found under type ResourcePublicationV2Connection", field.Name)
  41877. },
  41878. }
  41879. defer func() {
  41880. if r := recover(); r != nil {
  41881. err = ec.Recover(ctx, r)
  41882. ec.Error(ctx, err)
  41883. }
  41884. }()
  41885. ctx = graphql.WithFieldContext(ctx, fc)
  41886. if fc.Args, err = ec.field_Collection_resourcePublicationsV2_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  41887. ec.Error(ctx, err)
  41888. return
  41889. }
  41890. return fc, nil
  41891. }
  41892. func (ec *executionContext) _Collection_ruleSet(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  41893. fc, err := ec.fieldContext_Collection_ruleSet(ctx, field)
  41894. if err != nil {
  41895. return graphql.Null
  41896. }
  41897. ctx = graphql.WithFieldContext(ctx, fc)
  41898. defer func() {
  41899. if r := recover(); r != nil {
  41900. ec.Error(ctx, ec.Recover(ctx, r))
  41901. ret = graphql.Null
  41902. }
  41903. }()
  41904. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  41905. ctx = rctx // use context from middleware stack in children
  41906. return obj.RuleSet, nil
  41907. })
  41908. if err != nil {
  41909. ec.Error(ctx, err)
  41910. return graphql.Null
  41911. }
  41912. if resTmp == nil {
  41913. return graphql.Null
  41914. }
  41915. res := resTmp.(*CollectionRuleSet)
  41916. fc.Result = res
  41917. return ec.marshalOCollectionRuleSet2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCollectionRuleSet(ctx, field.Selections, res)
  41918. }
  41919. func (ec *executionContext) fieldContext_Collection_ruleSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  41920. fc = &graphql.FieldContext{
  41921. Object: "Collection",
  41922. Field: field,
  41923. IsMethod: false,
  41924. IsResolver: false,
  41925. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  41926. switch field.Name {
  41927. case "appliedDisjunctively":
  41928. return ec.fieldContext_CollectionRuleSet_appliedDisjunctively(ctx, field)
  41929. case "rules":
  41930. return ec.fieldContext_CollectionRuleSet_rules(ctx, field)
  41931. }
  41932. return nil, fmt.Errorf("no field named %q was found under type CollectionRuleSet", field.Name)
  41933. },
  41934. }
  41935. return fc, nil
  41936. }
  41937. func (ec *executionContext) _Collection_seo(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  41938. fc, err := ec.fieldContext_Collection_seo(ctx, field)
  41939. if err != nil {
  41940. return graphql.Null
  41941. }
  41942. ctx = graphql.WithFieldContext(ctx, fc)
  41943. defer func() {
  41944. if r := recover(); r != nil {
  41945. ec.Error(ctx, ec.Recover(ctx, r))
  41946. ret = graphql.Null
  41947. }
  41948. }()
  41949. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  41950. ctx = rctx // use context from middleware stack in children
  41951. return obj.Seo, nil
  41952. })
  41953. if err != nil {
  41954. ec.Error(ctx, err)
  41955. return graphql.Null
  41956. }
  41957. if resTmp == nil {
  41958. if !graphql.HasFieldError(ctx, fc) {
  41959. ec.Errorf(ctx, "must not be null")
  41960. }
  41961. return graphql.Null
  41962. }
  41963. res := resTmp.(*Seo)
  41964. fc.Result = res
  41965. return ec.marshalNSEO2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSeo(ctx, field.Selections, res)
  41966. }
  41967. func (ec *executionContext) fieldContext_Collection_seo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  41968. fc = &graphql.FieldContext{
  41969. Object: "Collection",
  41970. Field: field,
  41971. IsMethod: false,
  41972. IsResolver: false,
  41973. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  41974. switch field.Name {
  41975. case "description":
  41976. return ec.fieldContext_SEO_description(ctx, field)
  41977. case "title":
  41978. return ec.fieldContext_SEO_title(ctx, field)
  41979. }
  41980. return nil, fmt.Errorf("no field named %q was found under type SEO", field.Name)
  41981. },
  41982. }
  41983. return fc, nil
  41984. }
  41985. func (ec *executionContext) _Collection_sortOrder(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  41986. fc, err := ec.fieldContext_Collection_sortOrder(ctx, field)
  41987. if err != nil {
  41988. return graphql.Null
  41989. }
  41990. ctx = graphql.WithFieldContext(ctx, fc)
  41991. defer func() {
  41992. if r := recover(); r != nil {
  41993. ec.Error(ctx, ec.Recover(ctx, r))
  41994. ret = graphql.Null
  41995. }
  41996. }()
  41997. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  41998. ctx = rctx // use context from middleware stack in children
  41999. return obj.SortOrder, nil
  42000. })
  42001. if err != nil {
  42002. ec.Error(ctx, err)
  42003. return graphql.Null
  42004. }
  42005. if resTmp == nil {
  42006. if !graphql.HasFieldError(ctx, fc) {
  42007. ec.Errorf(ctx, "must not be null")
  42008. }
  42009. return graphql.Null
  42010. }
  42011. res := resTmp.(CollectionSortOrder)
  42012. fc.Result = res
  42013. return ec.marshalNCollectionSortOrder2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCollectionSortOrder(ctx, field.Selections, res)
  42014. }
  42015. func (ec *executionContext) fieldContext_Collection_sortOrder(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  42016. fc = &graphql.FieldContext{
  42017. Object: "Collection",
  42018. Field: field,
  42019. IsMethod: false,
  42020. IsResolver: false,
  42021. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  42022. return nil, errors.New("field of type CollectionSortOrder does not have child fields")
  42023. },
  42024. }
  42025. return fc, nil
  42026. }
  42027. func (ec *executionContext) _Collection_templateSuffix(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  42028. fc, err := ec.fieldContext_Collection_templateSuffix(ctx, field)
  42029. if err != nil {
  42030. return graphql.Null
  42031. }
  42032. ctx = graphql.WithFieldContext(ctx, fc)
  42033. defer func() {
  42034. if r := recover(); r != nil {
  42035. ec.Error(ctx, ec.Recover(ctx, r))
  42036. ret = graphql.Null
  42037. }
  42038. }()
  42039. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  42040. ctx = rctx // use context from middleware stack in children
  42041. return obj.TemplateSuffix, nil
  42042. })
  42043. if err != nil {
  42044. ec.Error(ctx, err)
  42045. return graphql.Null
  42046. }
  42047. if resTmp == nil {
  42048. return graphql.Null
  42049. }
  42050. res := resTmp.(*string)
  42051. fc.Result = res
  42052. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  42053. }
  42054. func (ec *executionContext) fieldContext_Collection_templateSuffix(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  42055. fc = &graphql.FieldContext{
  42056. Object: "Collection",
  42057. Field: field,
  42058. IsMethod: false,
  42059. IsResolver: false,
  42060. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  42061. return nil, errors.New("field of type String does not have child fields")
  42062. },
  42063. }
  42064. return fc, nil
  42065. }
  42066. func (ec *executionContext) _Collection_title(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  42067. fc, err := ec.fieldContext_Collection_title(ctx, field)
  42068. if err != nil {
  42069. return graphql.Null
  42070. }
  42071. ctx = graphql.WithFieldContext(ctx, fc)
  42072. defer func() {
  42073. if r := recover(); r != nil {
  42074. ec.Error(ctx, ec.Recover(ctx, r))
  42075. ret = graphql.Null
  42076. }
  42077. }()
  42078. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  42079. ctx = rctx // use context from middleware stack in children
  42080. return obj.Title, nil
  42081. })
  42082. if err != nil {
  42083. ec.Error(ctx, err)
  42084. return graphql.Null
  42085. }
  42086. if resTmp == nil {
  42087. if !graphql.HasFieldError(ctx, fc) {
  42088. ec.Errorf(ctx, "must not be null")
  42089. }
  42090. return graphql.Null
  42091. }
  42092. res := resTmp.(string)
  42093. fc.Result = res
  42094. return ec.marshalNString2string(ctx, field.Selections, res)
  42095. }
  42096. func (ec *executionContext) fieldContext_Collection_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  42097. fc = &graphql.FieldContext{
  42098. Object: "Collection",
  42099. Field: field,
  42100. IsMethod: false,
  42101. IsResolver: false,
  42102. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  42103. return nil, errors.New("field of type String does not have child fields")
  42104. },
  42105. }
  42106. return fc, nil
  42107. }
  42108. func (ec *executionContext) _Collection_translations(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  42109. fc, err := ec.fieldContext_Collection_translations(ctx, field)
  42110. if err != nil {
  42111. return graphql.Null
  42112. }
  42113. ctx = graphql.WithFieldContext(ctx, fc)
  42114. defer func() {
  42115. if r := recover(); r != nil {
  42116. ec.Error(ctx, ec.Recover(ctx, r))
  42117. ret = graphql.Null
  42118. }
  42119. }()
  42120. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  42121. ctx = rctx // use context from middleware stack in children
  42122. return obj.Translations, nil
  42123. })
  42124. if err != nil {
  42125. ec.Error(ctx, err)
  42126. return graphql.Null
  42127. }
  42128. if resTmp == nil {
  42129. if !graphql.HasFieldError(ctx, fc) {
  42130. ec.Errorf(ctx, "must not be null")
  42131. }
  42132. return graphql.Null
  42133. }
  42134. res := resTmp.([]*PublishedTranslation)
  42135. fc.Result = res
  42136. return ec.marshalNPublishedTranslation2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublishedTranslationᚄ(ctx, field.Selections, res)
  42137. }
  42138. func (ec *executionContext) fieldContext_Collection_translations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  42139. fc = &graphql.FieldContext{
  42140. Object: "Collection",
  42141. Field: field,
  42142. IsMethod: false,
  42143. IsResolver: false,
  42144. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  42145. switch field.Name {
  42146. case "key":
  42147. return ec.fieldContext_PublishedTranslation_key(ctx, field)
  42148. case "locale":
  42149. return ec.fieldContext_PublishedTranslation_locale(ctx, field)
  42150. case "marketId":
  42151. return ec.fieldContext_PublishedTranslation_marketId(ctx, field)
  42152. case "value":
  42153. return ec.fieldContext_PublishedTranslation_value(ctx, field)
  42154. }
  42155. return nil, fmt.Errorf("no field named %q was found under type PublishedTranslation", field.Name)
  42156. },
  42157. }
  42158. defer func() {
  42159. if r := recover(); r != nil {
  42160. err = ec.Recover(ctx, r)
  42161. ec.Error(ctx, err)
  42162. }
  42163. }()
  42164. ctx = graphql.WithFieldContext(ctx, fc)
  42165. if fc.Args, err = ec.field_Collection_translations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  42166. ec.Error(ctx, err)
  42167. return
  42168. }
  42169. return fc, nil
  42170. }
  42171. func (ec *executionContext) _Collection_unpublishedPublications(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  42172. fc, err := ec.fieldContext_Collection_unpublishedPublications(ctx, field)
  42173. if err != nil {
  42174. return graphql.Null
  42175. }
  42176. ctx = graphql.WithFieldContext(ctx, fc)
  42177. defer func() {
  42178. if r := recover(); r != nil {
  42179. ec.Error(ctx, ec.Recover(ctx, r))
  42180. ret = graphql.Null
  42181. }
  42182. }()
  42183. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  42184. ctx = rctx // use context from middleware stack in children
  42185. return obj.UnpublishedPublications, nil
  42186. })
  42187. if err != nil {
  42188. ec.Error(ctx, err)
  42189. return graphql.Null
  42190. }
  42191. if resTmp == nil {
  42192. if !graphql.HasFieldError(ctx, fc) {
  42193. ec.Errorf(ctx, "must not be null")
  42194. }
  42195. return graphql.Null
  42196. }
  42197. res := resTmp.(*PublicationConnection)
  42198. fc.Result = res
  42199. return ec.marshalNPublicationConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublicationConnection(ctx, field.Selections, res)
  42200. }
  42201. func (ec *executionContext) fieldContext_Collection_unpublishedPublications(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  42202. fc = &graphql.FieldContext{
  42203. Object: "Collection",
  42204. Field: field,
  42205. IsMethod: false,
  42206. IsResolver: false,
  42207. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  42208. switch field.Name {
  42209. case "edges":
  42210. return ec.fieldContext_PublicationConnection_edges(ctx, field)
  42211. case "nodes":
  42212. return ec.fieldContext_PublicationConnection_nodes(ctx, field)
  42213. case "pageInfo":
  42214. return ec.fieldContext_PublicationConnection_pageInfo(ctx, field)
  42215. }
  42216. return nil, fmt.Errorf("no field named %q was found under type PublicationConnection", field.Name)
  42217. },
  42218. }
  42219. defer func() {
  42220. if r := recover(); r != nil {
  42221. err = ec.Recover(ctx, r)
  42222. ec.Error(ctx, err)
  42223. }
  42224. }()
  42225. ctx = graphql.WithFieldContext(ctx, fc)
  42226. if fc.Args, err = ec.field_Collection_unpublishedPublications_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  42227. ec.Error(ctx, err)
  42228. return
  42229. }
  42230. return fc, nil
  42231. }
  42232. func (ec *executionContext) _Collection_updatedAt(ctx context.Context, field graphql.CollectedField, obj *Collection) (ret graphql.Marshaler) {
  42233. fc, err := ec.fieldContext_Collection_updatedAt(ctx, field)
  42234. if err != nil {
  42235. return graphql.Null
  42236. }
  42237. ctx = graphql.WithFieldContext(ctx, fc)
  42238. defer func() {
  42239. if r := recover(); r != nil {
  42240. ec.Error(ctx, ec.Recover(ctx, r))
  42241. ret = graphql.Null
  42242. }
  42243. }()
  42244. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  42245. ctx = rctx // use context from middleware stack in children
  42246. return obj.UpdatedAt, nil
  42247. })
  42248. if err != nil {
  42249. ec.Error(ctx, err)
  42250. return graphql.Null
  42251. }
  42252. if resTmp == nil {
  42253. if !graphql.HasFieldError(ctx, fc) {
  42254. ec.Errorf(ctx, "must not be null")
  42255. }
  42256. return graphql.Null
  42257. }
  42258. res := resTmp.(string)
  42259. fc.Result = res
  42260. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  42261. }
  42262. func (ec *executionContext) fieldContext_Collection_updatedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  42263. fc = &graphql.FieldContext{
  42264. Object: "Collection",
  42265. Field: field,
  42266. IsMethod: false,
  42267. IsResolver: false,
  42268. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  42269. return nil, errors.New("field of type DateTime does not have child fields")
  42270. },
  42271. }
  42272. return fc, nil
  42273. }
  42274. func (ec *executionContext) _CollectionConnection_edges(ctx context.Context, field graphql.CollectedField, obj *CollectionConnection) (ret graphql.Marshaler) {
  42275. fc, err := ec.fieldContext_CollectionConnection_edges(ctx, field)
  42276. if err != nil {
  42277. return graphql.Null
  42278. }
  42279. ctx = graphql.WithFieldContext(ctx, fc)
  42280. defer func() {
  42281. if r := recover(); r != nil {
  42282. ec.Error(ctx, ec.Recover(ctx, r))
  42283. ret = graphql.Null
  42284. }
  42285. }()
  42286. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  42287. ctx = rctx // use context from middleware stack in children
  42288. return obj.Edges, nil
  42289. })
  42290. if err != nil {
  42291. ec.Error(ctx, err)
  42292. return graphql.Null
  42293. }
  42294. if resTmp == nil {
  42295. if !graphql.HasFieldError(ctx, fc) {
  42296. ec.Errorf(ctx, "must not be null")
  42297. }
  42298. return graphql.Null
  42299. }
  42300. res := resTmp.([]*CollectionEdge)
  42301. fc.Result = res
  42302. return ec.marshalNCollectionEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCollectionEdgeᚄ(ctx, field.Selections, res)
  42303. }
  42304. func (ec *executionContext) fieldContext_CollectionConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  42305. fc = &graphql.FieldContext{
  42306. Object: "CollectionConnection",
  42307. Field: field,
  42308. IsMethod: false,
  42309. IsResolver: false,
  42310. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  42311. switch field.Name {
  42312. case "cursor":
  42313. return ec.fieldContext_CollectionEdge_cursor(ctx, field)
  42314. case "node":
  42315. return ec.fieldContext_CollectionEdge_node(ctx, field)
  42316. }
  42317. return nil, fmt.Errorf("no field named %q was found under type CollectionEdge", field.Name)
  42318. },
  42319. }
  42320. return fc, nil
  42321. }
  42322. func (ec *executionContext) _CollectionConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *CollectionConnection) (ret graphql.Marshaler) {
  42323. fc, err := ec.fieldContext_CollectionConnection_nodes(ctx, field)
  42324. if err != nil {
  42325. return graphql.Null
  42326. }
  42327. ctx = graphql.WithFieldContext(ctx, fc)
  42328. defer func() {
  42329. if r := recover(); r != nil {
  42330. ec.Error(ctx, ec.Recover(ctx, r))
  42331. ret = graphql.Null
  42332. }
  42333. }()
  42334. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  42335. ctx = rctx // use context from middleware stack in children
  42336. return obj.Nodes, nil
  42337. })
  42338. if err != nil {
  42339. ec.Error(ctx, err)
  42340. return graphql.Null
  42341. }
  42342. if resTmp == nil {
  42343. if !graphql.HasFieldError(ctx, fc) {
  42344. ec.Errorf(ctx, "must not be null")
  42345. }
  42346. return graphql.Null
  42347. }
  42348. res := resTmp.([]*Collection)
  42349. fc.Result = res
  42350. return ec.marshalNCollection2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCollectionᚄ(ctx, field.Selections, res)
  42351. }
  42352. func (ec *executionContext) fieldContext_CollectionConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  42353. fc = &graphql.FieldContext{
  42354. Object: "CollectionConnection",
  42355. Field: field,
  42356. IsMethod: false,
  42357. IsResolver: false,
  42358. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  42359. switch field.Name {
  42360. case "availablePublicationCount":
  42361. return ec.fieldContext_Collection_availablePublicationCount(ctx, field)
  42362. case "description":
  42363. return ec.fieldContext_Collection_description(ctx, field)
  42364. case "descriptionHtml":
  42365. return ec.fieldContext_Collection_descriptionHtml(ctx, field)
  42366. case "feedback":
  42367. return ec.fieldContext_Collection_feedback(ctx, field)
  42368. case "handle":
  42369. return ec.fieldContext_Collection_handle(ctx, field)
  42370. case "hasProduct":
  42371. return ec.fieldContext_Collection_hasProduct(ctx, field)
  42372. case "id":
  42373. return ec.fieldContext_Collection_id(ctx, field)
  42374. case "image":
  42375. return ec.fieldContext_Collection_image(ctx, field)
  42376. case "legacyResourceId":
  42377. return ec.fieldContext_Collection_legacyResourceId(ctx, field)
  42378. case "metafield":
  42379. return ec.fieldContext_Collection_metafield(ctx, field)
  42380. case "metafieldDefinitions":
  42381. return ec.fieldContext_Collection_metafieldDefinitions(ctx, field)
  42382. case "metafields":
  42383. return ec.fieldContext_Collection_metafields(ctx, field)
  42384. case "privateMetafield":
  42385. return ec.fieldContext_Collection_privateMetafield(ctx, field)
  42386. case "privateMetafields":
  42387. return ec.fieldContext_Collection_privateMetafields(ctx, field)
  42388. case "products":
  42389. return ec.fieldContext_Collection_products(ctx, field)
  42390. case "productsCount":
  42391. return ec.fieldContext_Collection_productsCount(ctx, field)
  42392. case "publicationCount":
  42393. return ec.fieldContext_Collection_publicationCount(ctx, field)
  42394. case "publishedOnCurrentPublication":
  42395. return ec.fieldContext_Collection_publishedOnCurrentPublication(ctx, field)
  42396. case "publishedOnPublication":
  42397. return ec.fieldContext_Collection_publishedOnPublication(ctx, field)
  42398. case "resourcePublications":
  42399. return ec.fieldContext_Collection_resourcePublications(ctx, field)
  42400. case "resourcePublicationsV2":
  42401. return ec.fieldContext_Collection_resourcePublicationsV2(ctx, field)
  42402. case "ruleSet":
  42403. return ec.fieldContext_Collection_ruleSet(ctx, field)
  42404. case "seo":
  42405. return ec.fieldContext_Collection_seo(ctx, field)
  42406. case "sortOrder":
  42407. return ec.fieldContext_Collection_sortOrder(ctx, field)
  42408. case "templateSuffix":
  42409. return ec.fieldContext_Collection_templateSuffix(ctx, field)
  42410. case "title":
  42411. return ec.fieldContext_Collection_title(ctx, field)
  42412. case "translations":
  42413. return ec.fieldContext_Collection_translations(ctx, field)
  42414. case "unpublishedPublications":
  42415. return ec.fieldContext_Collection_unpublishedPublications(ctx, field)
  42416. case "updatedAt":
  42417. return ec.fieldContext_Collection_updatedAt(ctx, field)
  42418. }
  42419. return nil, fmt.Errorf("no field named %q was found under type Collection", field.Name)
  42420. },
  42421. }
  42422. return fc, nil
  42423. }
  42424. func (ec *executionContext) _CollectionConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *CollectionConnection) (ret graphql.Marshaler) {
  42425. fc, err := ec.fieldContext_CollectionConnection_pageInfo(ctx, field)
  42426. if err != nil {
  42427. return graphql.Null
  42428. }
  42429. ctx = graphql.WithFieldContext(ctx, fc)
  42430. defer func() {
  42431. if r := recover(); r != nil {
  42432. ec.Error(ctx, ec.Recover(ctx, r))
  42433. ret = graphql.Null
  42434. }
  42435. }()
  42436. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  42437. ctx = rctx // use context from middleware stack in children
  42438. return obj.PageInfo, nil
  42439. })
  42440. if err != nil {
  42441. ec.Error(ctx, err)
  42442. return graphql.Null
  42443. }
  42444. if resTmp == nil {
  42445. if !graphql.HasFieldError(ctx, fc) {
  42446. ec.Errorf(ctx, "must not be null")
  42447. }
  42448. return graphql.Null
  42449. }
  42450. res := resTmp.(*PageInfo)
  42451. fc.Result = res
  42452. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  42453. }
  42454. func (ec *executionContext) fieldContext_CollectionConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  42455. fc = &graphql.FieldContext{
  42456. Object: "CollectionConnection",
  42457. Field: field,
  42458. IsMethod: false,
  42459. IsResolver: false,
  42460. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  42461. switch field.Name {
  42462. case "endCursor":
  42463. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  42464. case "hasNextPage":
  42465. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  42466. case "hasPreviousPage":
  42467. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  42468. case "startCursor":
  42469. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  42470. }
  42471. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  42472. },
  42473. }
  42474. return fc, nil
  42475. }
  42476. func (ec *executionContext) _CollectionEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *CollectionEdge) (ret graphql.Marshaler) {
  42477. fc, err := ec.fieldContext_CollectionEdge_cursor(ctx, field)
  42478. if err != nil {
  42479. return graphql.Null
  42480. }
  42481. ctx = graphql.WithFieldContext(ctx, fc)
  42482. defer func() {
  42483. if r := recover(); r != nil {
  42484. ec.Error(ctx, ec.Recover(ctx, r))
  42485. ret = graphql.Null
  42486. }
  42487. }()
  42488. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  42489. ctx = rctx // use context from middleware stack in children
  42490. return obj.Cursor, nil
  42491. })
  42492. if err != nil {
  42493. ec.Error(ctx, err)
  42494. return graphql.Null
  42495. }
  42496. if resTmp == nil {
  42497. if !graphql.HasFieldError(ctx, fc) {
  42498. ec.Errorf(ctx, "must not be null")
  42499. }
  42500. return graphql.Null
  42501. }
  42502. res := resTmp.(string)
  42503. fc.Result = res
  42504. return ec.marshalNString2string(ctx, field.Selections, res)
  42505. }
  42506. func (ec *executionContext) fieldContext_CollectionEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  42507. fc = &graphql.FieldContext{
  42508. Object: "CollectionEdge",
  42509. Field: field,
  42510. IsMethod: false,
  42511. IsResolver: false,
  42512. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  42513. return nil, errors.New("field of type String does not have child fields")
  42514. },
  42515. }
  42516. return fc, nil
  42517. }
  42518. func (ec *executionContext) _CollectionEdge_node(ctx context.Context, field graphql.CollectedField, obj *CollectionEdge) (ret graphql.Marshaler) {
  42519. fc, err := ec.fieldContext_CollectionEdge_node(ctx, field)
  42520. if err != nil {
  42521. return graphql.Null
  42522. }
  42523. ctx = graphql.WithFieldContext(ctx, fc)
  42524. defer func() {
  42525. if r := recover(); r != nil {
  42526. ec.Error(ctx, ec.Recover(ctx, r))
  42527. ret = graphql.Null
  42528. }
  42529. }()
  42530. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  42531. ctx = rctx // use context from middleware stack in children
  42532. return obj.Node, nil
  42533. })
  42534. if err != nil {
  42535. ec.Error(ctx, err)
  42536. return graphql.Null
  42537. }
  42538. if resTmp == nil {
  42539. if !graphql.HasFieldError(ctx, fc) {
  42540. ec.Errorf(ctx, "must not be null")
  42541. }
  42542. return graphql.Null
  42543. }
  42544. res := resTmp.(*Collection)
  42545. fc.Result = res
  42546. return ec.marshalNCollection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCollection(ctx, field.Selections, res)
  42547. }
  42548. func (ec *executionContext) fieldContext_CollectionEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  42549. fc = &graphql.FieldContext{
  42550. Object: "CollectionEdge",
  42551. Field: field,
  42552. IsMethod: false,
  42553. IsResolver: false,
  42554. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  42555. switch field.Name {
  42556. case "availablePublicationCount":
  42557. return ec.fieldContext_Collection_availablePublicationCount(ctx, field)
  42558. case "description":
  42559. return ec.fieldContext_Collection_description(ctx, field)
  42560. case "descriptionHtml":
  42561. return ec.fieldContext_Collection_descriptionHtml(ctx, field)
  42562. case "feedback":
  42563. return ec.fieldContext_Collection_feedback(ctx, field)
  42564. case "handle":
  42565. return ec.fieldContext_Collection_handle(ctx, field)
  42566. case "hasProduct":
  42567. return ec.fieldContext_Collection_hasProduct(ctx, field)
  42568. case "id":
  42569. return ec.fieldContext_Collection_id(ctx, field)
  42570. case "image":
  42571. return ec.fieldContext_Collection_image(ctx, field)
  42572. case "legacyResourceId":
  42573. return ec.fieldContext_Collection_legacyResourceId(ctx, field)
  42574. case "metafield":
  42575. return ec.fieldContext_Collection_metafield(ctx, field)
  42576. case "metafieldDefinitions":
  42577. return ec.fieldContext_Collection_metafieldDefinitions(ctx, field)
  42578. case "metafields":
  42579. return ec.fieldContext_Collection_metafields(ctx, field)
  42580. case "privateMetafield":
  42581. return ec.fieldContext_Collection_privateMetafield(ctx, field)
  42582. case "privateMetafields":
  42583. return ec.fieldContext_Collection_privateMetafields(ctx, field)
  42584. case "products":
  42585. return ec.fieldContext_Collection_products(ctx, field)
  42586. case "productsCount":
  42587. return ec.fieldContext_Collection_productsCount(ctx, field)
  42588. case "publicationCount":
  42589. return ec.fieldContext_Collection_publicationCount(ctx, field)
  42590. case "publishedOnCurrentPublication":
  42591. return ec.fieldContext_Collection_publishedOnCurrentPublication(ctx, field)
  42592. case "publishedOnPublication":
  42593. return ec.fieldContext_Collection_publishedOnPublication(ctx, field)
  42594. case "resourcePublications":
  42595. return ec.fieldContext_Collection_resourcePublications(ctx, field)
  42596. case "resourcePublicationsV2":
  42597. return ec.fieldContext_Collection_resourcePublicationsV2(ctx, field)
  42598. case "ruleSet":
  42599. return ec.fieldContext_Collection_ruleSet(ctx, field)
  42600. case "seo":
  42601. return ec.fieldContext_Collection_seo(ctx, field)
  42602. case "sortOrder":
  42603. return ec.fieldContext_Collection_sortOrder(ctx, field)
  42604. case "templateSuffix":
  42605. return ec.fieldContext_Collection_templateSuffix(ctx, field)
  42606. case "title":
  42607. return ec.fieldContext_Collection_title(ctx, field)
  42608. case "translations":
  42609. return ec.fieldContext_Collection_translations(ctx, field)
  42610. case "unpublishedPublications":
  42611. return ec.fieldContext_Collection_unpublishedPublications(ctx, field)
  42612. case "updatedAt":
  42613. return ec.fieldContext_Collection_updatedAt(ctx, field)
  42614. }
  42615. return nil, fmt.Errorf("no field named %q was found under type Collection", field.Name)
  42616. },
  42617. }
  42618. return fc, nil
  42619. }
  42620. func (ec *executionContext) _CollectionRule_appliedDisjunctively(ctx context.Context, field graphql.CollectedField, obj *CollectionRule) (ret graphql.Marshaler) {
  42621. fc, err := ec.fieldContext_CollectionRule_appliedDisjunctively(ctx, field)
  42622. if err != nil {
  42623. return graphql.Null
  42624. }
  42625. ctx = graphql.WithFieldContext(ctx, fc)
  42626. defer func() {
  42627. if r := recover(); r != nil {
  42628. ec.Error(ctx, ec.Recover(ctx, r))
  42629. ret = graphql.Null
  42630. }
  42631. }()
  42632. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  42633. ctx = rctx // use context from middleware stack in children
  42634. return obj.AppliedDisjunctively, nil
  42635. })
  42636. if err != nil {
  42637. ec.Error(ctx, err)
  42638. return graphql.Null
  42639. }
  42640. if resTmp == nil {
  42641. if !graphql.HasFieldError(ctx, fc) {
  42642. ec.Errorf(ctx, "must not be null")
  42643. }
  42644. return graphql.Null
  42645. }
  42646. res := resTmp.(bool)
  42647. fc.Result = res
  42648. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  42649. }
  42650. func (ec *executionContext) fieldContext_CollectionRule_appliedDisjunctively(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  42651. fc = &graphql.FieldContext{
  42652. Object: "CollectionRule",
  42653. Field: field,
  42654. IsMethod: false,
  42655. IsResolver: false,
  42656. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  42657. return nil, errors.New("field of type Boolean does not have child fields")
  42658. },
  42659. }
  42660. return fc, nil
  42661. }
  42662. func (ec *executionContext) _CollectionRule_rules(ctx context.Context, field graphql.CollectedField, obj *CollectionRule) (ret graphql.Marshaler) {
  42663. fc, err := ec.fieldContext_CollectionRule_rules(ctx, field)
  42664. if err != nil {
  42665. return graphql.Null
  42666. }
  42667. ctx = graphql.WithFieldContext(ctx, fc)
  42668. defer func() {
  42669. if r := recover(); r != nil {
  42670. ec.Error(ctx, ec.Recover(ctx, r))
  42671. ret = graphql.Null
  42672. }
  42673. }()
  42674. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  42675. ctx = rctx // use context from middleware stack in children
  42676. return obj.Rules, nil
  42677. })
  42678. if err != nil {
  42679. ec.Error(ctx, err)
  42680. return graphql.Null
  42681. }
  42682. if resTmp == nil {
  42683. if !graphql.HasFieldError(ctx, fc) {
  42684. ec.Errorf(ctx, "must not be null")
  42685. }
  42686. return graphql.Null
  42687. }
  42688. res := resTmp.([]*CollectionRule)
  42689. fc.Result = res
  42690. return ec.marshalNCollectionRule2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCollectionRuleᚄ(ctx, field.Selections, res)
  42691. }
  42692. func (ec *executionContext) fieldContext_CollectionRule_rules(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  42693. fc = &graphql.FieldContext{
  42694. Object: "CollectionRule",
  42695. Field: field,
  42696. IsMethod: false,
  42697. IsResolver: false,
  42698. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  42699. switch field.Name {
  42700. case "appliedDisjunctively":
  42701. return ec.fieldContext_CollectionRule_appliedDisjunctively(ctx, field)
  42702. case "rules":
  42703. return ec.fieldContext_CollectionRule_rules(ctx, field)
  42704. }
  42705. return nil, fmt.Errorf("no field named %q was found under type CollectionRule", field.Name)
  42706. },
  42707. }
  42708. return fc, nil
  42709. }
  42710. func (ec *executionContext) _CollectionRuleSet_appliedDisjunctively(ctx context.Context, field graphql.CollectedField, obj *CollectionRuleSet) (ret graphql.Marshaler) {
  42711. fc, err := ec.fieldContext_CollectionRuleSet_appliedDisjunctively(ctx, field)
  42712. if err != nil {
  42713. return graphql.Null
  42714. }
  42715. ctx = graphql.WithFieldContext(ctx, fc)
  42716. defer func() {
  42717. if r := recover(); r != nil {
  42718. ec.Error(ctx, ec.Recover(ctx, r))
  42719. ret = graphql.Null
  42720. }
  42721. }()
  42722. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  42723. ctx = rctx // use context from middleware stack in children
  42724. return obj.AppliedDisjunctively, nil
  42725. })
  42726. if err != nil {
  42727. ec.Error(ctx, err)
  42728. return graphql.Null
  42729. }
  42730. if resTmp == nil {
  42731. if !graphql.HasFieldError(ctx, fc) {
  42732. ec.Errorf(ctx, "must not be null")
  42733. }
  42734. return graphql.Null
  42735. }
  42736. res := resTmp.(bool)
  42737. fc.Result = res
  42738. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  42739. }
  42740. func (ec *executionContext) fieldContext_CollectionRuleSet_appliedDisjunctively(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  42741. fc = &graphql.FieldContext{
  42742. Object: "CollectionRuleSet",
  42743. Field: field,
  42744. IsMethod: false,
  42745. IsResolver: false,
  42746. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  42747. return nil, errors.New("field of type Boolean does not have child fields")
  42748. },
  42749. }
  42750. return fc, nil
  42751. }
  42752. func (ec *executionContext) _CollectionRuleSet_rules(ctx context.Context, field graphql.CollectedField, obj *CollectionRuleSet) (ret graphql.Marshaler) {
  42753. fc, err := ec.fieldContext_CollectionRuleSet_rules(ctx, field)
  42754. if err != nil {
  42755. return graphql.Null
  42756. }
  42757. ctx = graphql.WithFieldContext(ctx, fc)
  42758. defer func() {
  42759. if r := recover(); r != nil {
  42760. ec.Error(ctx, ec.Recover(ctx, r))
  42761. ret = graphql.Null
  42762. }
  42763. }()
  42764. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  42765. ctx = rctx // use context from middleware stack in children
  42766. return obj.Rules, nil
  42767. })
  42768. if err != nil {
  42769. ec.Error(ctx, err)
  42770. return graphql.Null
  42771. }
  42772. if resTmp == nil {
  42773. if !graphql.HasFieldError(ctx, fc) {
  42774. ec.Errorf(ctx, "must not be null")
  42775. }
  42776. return graphql.Null
  42777. }
  42778. res := resTmp.([]*CollectionRule)
  42779. fc.Result = res
  42780. return ec.marshalNCollectionRule2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCollectionRuleᚄ(ctx, field.Selections, res)
  42781. }
  42782. func (ec *executionContext) fieldContext_CollectionRuleSet_rules(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  42783. fc = &graphql.FieldContext{
  42784. Object: "CollectionRuleSet",
  42785. Field: field,
  42786. IsMethod: false,
  42787. IsResolver: false,
  42788. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  42789. switch field.Name {
  42790. case "appliedDisjunctively":
  42791. return ec.fieldContext_CollectionRule_appliedDisjunctively(ctx, field)
  42792. case "rules":
  42793. return ec.fieldContext_CollectionRule_rules(ctx, field)
  42794. }
  42795. return nil, fmt.Errorf("no field named %q was found under type CollectionRule", field.Name)
  42796. },
  42797. }
  42798. return fc, nil
  42799. }
  42800. func (ec *executionContext) _CommentEvent_appTitle(ctx context.Context, field graphql.CollectedField, obj *CommentEvent) (ret graphql.Marshaler) {
  42801. fc, err := ec.fieldContext_CommentEvent_appTitle(ctx, field)
  42802. if err != nil {
  42803. return graphql.Null
  42804. }
  42805. ctx = graphql.WithFieldContext(ctx, fc)
  42806. defer func() {
  42807. if r := recover(); r != nil {
  42808. ec.Error(ctx, ec.Recover(ctx, r))
  42809. ret = graphql.Null
  42810. }
  42811. }()
  42812. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  42813. ctx = rctx // use context from middleware stack in children
  42814. return obj.AppTitle, nil
  42815. })
  42816. if err != nil {
  42817. ec.Error(ctx, err)
  42818. return graphql.Null
  42819. }
  42820. if resTmp == nil {
  42821. return graphql.Null
  42822. }
  42823. res := resTmp.(*string)
  42824. fc.Result = res
  42825. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  42826. }
  42827. func (ec *executionContext) fieldContext_CommentEvent_appTitle(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  42828. fc = &graphql.FieldContext{
  42829. Object: "CommentEvent",
  42830. Field: field,
  42831. IsMethod: false,
  42832. IsResolver: false,
  42833. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  42834. return nil, errors.New("field of type String does not have child fields")
  42835. },
  42836. }
  42837. return fc, nil
  42838. }
  42839. func (ec *executionContext) _CommentEvent_attachments(ctx context.Context, field graphql.CollectedField, obj *CommentEvent) (ret graphql.Marshaler) {
  42840. fc, err := ec.fieldContext_CommentEvent_attachments(ctx, field)
  42841. if err != nil {
  42842. return graphql.Null
  42843. }
  42844. ctx = graphql.WithFieldContext(ctx, fc)
  42845. defer func() {
  42846. if r := recover(); r != nil {
  42847. ec.Error(ctx, ec.Recover(ctx, r))
  42848. ret = graphql.Null
  42849. }
  42850. }()
  42851. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  42852. ctx = rctx // use context from middleware stack in children
  42853. return obj.Attachments, nil
  42854. })
  42855. if err != nil {
  42856. ec.Error(ctx, err)
  42857. return graphql.Null
  42858. }
  42859. if resTmp == nil {
  42860. if !graphql.HasFieldError(ctx, fc) {
  42861. ec.Errorf(ctx, "must not be null")
  42862. }
  42863. return graphql.Null
  42864. }
  42865. res := resTmp.([]*CommentEventAttachment)
  42866. fc.Result = res
  42867. return ec.marshalNCommentEventAttachment2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCommentEventAttachmentᚄ(ctx, field.Selections, res)
  42868. }
  42869. func (ec *executionContext) fieldContext_CommentEvent_attachments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  42870. fc = &graphql.FieldContext{
  42871. Object: "CommentEvent",
  42872. Field: field,
  42873. IsMethod: false,
  42874. IsResolver: false,
  42875. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  42876. switch field.Name {
  42877. case "fileExtension":
  42878. return ec.fieldContext_CommentEventAttachment_fileExtension(ctx, field)
  42879. case "id":
  42880. return ec.fieldContext_CommentEventAttachment_id(ctx, field)
  42881. case "image":
  42882. return ec.fieldContext_CommentEventAttachment_image(ctx, field)
  42883. case "name":
  42884. return ec.fieldContext_CommentEventAttachment_name(ctx, field)
  42885. case "size":
  42886. return ec.fieldContext_CommentEventAttachment_size(ctx, field)
  42887. case "url":
  42888. return ec.fieldContext_CommentEventAttachment_url(ctx, field)
  42889. }
  42890. return nil, fmt.Errorf("no field named %q was found under type CommentEventAttachment", field.Name)
  42891. },
  42892. }
  42893. return fc, nil
  42894. }
  42895. func (ec *executionContext) _CommentEvent_attributeToApp(ctx context.Context, field graphql.CollectedField, obj *CommentEvent) (ret graphql.Marshaler) {
  42896. fc, err := ec.fieldContext_CommentEvent_attributeToApp(ctx, field)
  42897. if err != nil {
  42898. return graphql.Null
  42899. }
  42900. ctx = graphql.WithFieldContext(ctx, fc)
  42901. defer func() {
  42902. if r := recover(); r != nil {
  42903. ec.Error(ctx, ec.Recover(ctx, r))
  42904. ret = graphql.Null
  42905. }
  42906. }()
  42907. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  42908. ctx = rctx // use context from middleware stack in children
  42909. return obj.AttributeToApp, nil
  42910. })
  42911. if err != nil {
  42912. ec.Error(ctx, err)
  42913. return graphql.Null
  42914. }
  42915. if resTmp == nil {
  42916. if !graphql.HasFieldError(ctx, fc) {
  42917. ec.Errorf(ctx, "must not be null")
  42918. }
  42919. return graphql.Null
  42920. }
  42921. res := resTmp.(bool)
  42922. fc.Result = res
  42923. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  42924. }
  42925. func (ec *executionContext) fieldContext_CommentEvent_attributeToApp(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  42926. fc = &graphql.FieldContext{
  42927. Object: "CommentEvent",
  42928. Field: field,
  42929. IsMethod: false,
  42930. IsResolver: false,
  42931. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  42932. return nil, errors.New("field of type Boolean does not have child fields")
  42933. },
  42934. }
  42935. return fc, nil
  42936. }
  42937. func (ec *executionContext) _CommentEvent_attributeToUser(ctx context.Context, field graphql.CollectedField, obj *CommentEvent) (ret graphql.Marshaler) {
  42938. fc, err := ec.fieldContext_CommentEvent_attributeToUser(ctx, field)
  42939. if err != nil {
  42940. return graphql.Null
  42941. }
  42942. ctx = graphql.WithFieldContext(ctx, fc)
  42943. defer func() {
  42944. if r := recover(); r != nil {
  42945. ec.Error(ctx, ec.Recover(ctx, r))
  42946. ret = graphql.Null
  42947. }
  42948. }()
  42949. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  42950. ctx = rctx // use context from middleware stack in children
  42951. return obj.AttributeToUser, nil
  42952. })
  42953. if err != nil {
  42954. ec.Error(ctx, err)
  42955. return graphql.Null
  42956. }
  42957. if resTmp == nil {
  42958. if !graphql.HasFieldError(ctx, fc) {
  42959. ec.Errorf(ctx, "must not be null")
  42960. }
  42961. return graphql.Null
  42962. }
  42963. res := resTmp.(bool)
  42964. fc.Result = res
  42965. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  42966. }
  42967. func (ec *executionContext) fieldContext_CommentEvent_attributeToUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  42968. fc = &graphql.FieldContext{
  42969. Object: "CommentEvent",
  42970. Field: field,
  42971. IsMethod: false,
  42972. IsResolver: false,
  42973. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  42974. return nil, errors.New("field of type Boolean does not have child fields")
  42975. },
  42976. }
  42977. return fc, nil
  42978. }
  42979. func (ec *executionContext) _CommentEvent_author(ctx context.Context, field graphql.CollectedField, obj *CommentEvent) (ret graphql.Marshaler) {
  42980. fc, err := ec.fieldContext_CommentEvent_author(ctx, field)
  42981. if err != nil {
  42982. return graphql.Null
  42983. }
  42984. ctx = graphql.WithFieldContext(ctx, fc)
  42985. defer func() {
  42986. if r := recover(); r != nil {
  42987. ec.Error(ctx, ec.Recover(ctx, r))
  42988. ret = graphql.Null
  42989. }
  42990. }()
  42991. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  42992. ctx = rctx // use context from middleware stack in children
  42993. return obj.Author, nil
  42994. })
  42995. if err != nil {
  42996. ec.Error(ctx, err)
  42997. return graphql.Null
  42998. }
  42999. if resTmp == nil {
  43000. if !graphql.HasFieldError(ctx, fc) {
  43001. ec.Errorf(ctx, "must not be null")
  43002. }
  43003. return graphql.Null
  43004. }
  43005. res := resTmp.(*StaffMember)
  43006. fc.Result = res
  43007. return ec.marshalNStaffMember2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStaffMember(ctx, field.Selections, res)
  43008. }
  43009. func (ec *executionContext) fieldContext_CommentEvent_author(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  43010. fc = &graphql.FieldContext{
  43011. Object: "CommentEvent",
  43012. Field: field,
  43013. IsMethod: false,
  43014. IsResolver: false,
  43015. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  43016. switch field.Name {
  43017. case "active":
  43018. return ec.fieldContext_StaffMember_active(ctx, field)
  43019. case "avatar":
  43020. return ec.fieldContext_StaffMember_avatar(ctx, field)
  43021. case "email":
  43022. return ec.fieldContext_StaffMember_email(ctx, field)
  43023. case "exists":
  43024. return ec.fieldContext_StaffMember_exists(ctx, field)
  43025. case "firstName":
  43026. return ec.fieldContext_StaffMember_firstName(ctx, field)
  43027. case "id":
  43028. return ec.fieldContext_StaffMember_id(ctx, field)
  43029. case "initials":
  43030. return ec.fieldContext_StaffMember_initials(ctx, field)
  43031. case "isShopOwner":
  43032. return ec.fieldContext_StaffMember_isShopOwner(ctx, field)
  43033. case "lastName":
  43034. return ec.fieldContext_StaffMember_lastName(ctx, field)
  43035. case "locale":
  43036. return ec.fieldContext_StaffMember_locale(ctx, field)
  43037. case "name":
  43038. return ec.fieldContext_StaffMember_name(ctx, field)
  43039. case "phone":
  43040. return ec.fieldContext_StaffMember_phone(ctx, field)
  43041. case "privateData":
  43042. return ec.fieldContext_StaffMember_privateData(ctx, field)
  43043. }
  43044. return nil, fmt.Errorf("no field named %q was found under type StaffMember", field.Name)
  43045. },
  43046. }
  43047. return fc, nil
  43048. }
  43049. func (ec *executionContext) _CommentEvent_canDelete(ctx context.Context, field graphql.CollectedField, obj *CommentEvent) (ret graphql.Marshaler) {
  43050. fc, err := ec.fieldContext_CommentEvent_canDelete(ctx, field)
  43051. if err != nil {
  43052. return graphql.Null
  43053. }
  43054. ctx = graphql.WithFieldContext(ctx, fc)
  43055. defer func() {
  43056. if r := recover(); r != nil {
  43057. ec.Error(ctx, ec.Recover(ctx, r))
  43058. ret = graphql.Null
  43059. }
  43060. }()
  43061. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  43062. ctx = rctx // use context from middleware stack in children
  43063. return obj.CanDelete, nil
  43064. })
  43065. if err != nil {
  43066. ec.Error(ctx, err)
  43067. return graphql.Null
  43068. }
  43069. if resTmp == nil {
  43070. if !graphql.HasFieldError(ctx, fc) {
  43071. ec.Errorf(ctx, "must not be null")
  43072. }
  43073. return graphql.Null
  43074. }
  43075. res := resTmp.(bool)
  43076. fc.Result = res
  43077. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  43078. }
  43079. func (ec *executionContext) fieldContext_CommentEvent_canDelete(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  43080. fc = &graphql.FieldContext{
  43081. Object: "CommentEvent",
  43082. Field: field,
  43083. IsMethod: false,
  43084. IsResolver: false,
  43085. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  43086. return nil, errors.New("field of type Boolean does not have child fields")
  43087. },
  43088. }
  43089. return fc, nil
  43090. }
  43091. func (ec *executionContext) _CommentEvent_canEdit(ctx context.Context, field graphql.CollectedField, obj *CommentEvent) (ret graphql.Marshaler) {
  43092. fc, err := ec.fieldContext_CommentEvent_canEdit(ctx, field)
  43093. if err != nil {
  43094. return graphql.Null
  43095. }
  43096. ctx = graphql.WithFieldContext(ctx, fc)
  43097. defer func() {
  43098. if r := recover(); r != nil {
  43099. ec.Error(ctx, ec.Recover(ctx, r))
  43100. ret = graphql.Null
  43101. }
  43102. }()
  43103. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  43104. ctx = rctx // use context from middleware stack in children
  43105. return obj.CanEdit, nil
  43106. })
  43107. if err != nil {
  43108. ec.Error(ctx, err)
  43109. return graphql.Null
  43110. }
  43111. if resTmp == nil {
  43112. if !graphql.HasFieldError(ctx, fc) {
  43113. ec.Errorf(ctx, "must not be null")
  43114. }
  43115. return graphql.Null
  43116. }
  43117. res := resTmp.(bool)
  43118. fc.Result = res
  43119. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  43120. }
  43121. func (ec *executionContext) fieldContext_CommentEvent_canEdit(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  43122. fc = &graphql.FieldContext{
  43123. Object: "CommentEvent",
  43124. Field: field,
  43125. IsMethod: false,
  43126. IsResolver: false,
  43127. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  43128. return nil, errors.New("field of type Boolean does not have child fields")
  43129. },
  43130. }
  43131. return fc, nil
  43132. }
  43133. func (ec *executionContext) _CommentEvent_createdAt(ctx context.Context, field graphql.CollectedField, obj *CommentEvent) (ret graphql.Marshaler) {
  43134. fc, err := ec.fieldContext_CommentEvent_createdAt(ctx, field)
  43135. if err != nil {
  43136. return graphql.Null
  43137. }
  43138. ctx = graphql.WithFieldContext(ctx, fc)
  43139. defer func() {
  43140. if r := recover(); r != nil {
  43141. ec.Error(ctx, ec.Recover(ctx, r))
  43142. ret = graphql.Null
  43143. }
  43144. }()
  43145. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  43146. ctx = rctx // use context from middleware stack in children
  43147. return obj.CreatedAt, nil
  43148. })
  43149. if err != nil {
  43150. ec.Error(ctx, err)
  43151. return graphql.Null
  43152. }
  43153. if resTmp == nil {
  43154. if !graphql.HasFieldError(ctx, fc) {
  43155. ec.Errorf(ctx, "must not be null")
  43156. }
  43157. return graphql.Null
  43158. }
  43159. res := resTmp.(string)
  43160. fc.Result = res
  43161. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  43162. }
  43163. func (ec *executionContext) fieldContext_CommentEvent_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  43164. fc = &graphql.FieldContext{
  43165. Object: "CommentEvent",
  43166. Field: field,
  43167. IsMethod: false,
  43168. IsResolver: false,
  43169. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  43170. return nil, errors.New("field of type DateTime does not have child fields")
  43171. },
  43172. }
  43173. return fc, nil
  43174. }
  43175. func (ec *executionContext) _CommentEvent_criticalAlert(ctx context.Context, field graphql.CollectedField, obj *CommentEvent) (ret graphql.Marshaler) {
  43176. fc, err := ec.fieldContext_CommentEvent_criticalAlert(ctx, field)
  43177. if err != nil {
  43178. return graphql.Null
  43179. }
  43180. ctx = graphql.WithFieldContext(ctx, fc)
  43181. defer func() {
  43182. if r := recover(); r != nil {
  43183. ec.Error(ctx, ec.Recover(ctx, r))
  43184. ret = graphql.Null
  43185. }
  43186. }()
  43187. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  43188. ctx = rctx // use context from middleware stack in children
  43189. return obj.CriticalAlert, nil
  43190. })
  43191. if err != nil {
  43192. ec.Error(ctx, err)
  43193. return graphql.Null
  43194. }
  43195. if resTmp == nil {
  43196. if !graphql.HasFieldError(ctx, fc) {
  43197. ec.Errorf(ctx, "must not be null")
  43198. }
  43199. return graphql.Null
  43200. }
  43201. res := resTmp.(bool)
  43202. fc.Result = res
  43203. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  43204. }
  43205. func (ec *executionContext) fieldContext_CommentEvent_criticalAlert(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  43206. fc = &graphql.FieldContext{
  43207. Object: "CommentEvent",
  43208. Field: field,
  43209. IsMethod: false,
  43210. IsResolver: false,
  43211. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  43212. return nil, errors.New("field of type Boolean does not have child fields")
  43213. },
  43214. }
  43215. return fc, nil
  43216. }
  43217. func (ec *executionContext) _CommentEvent_edited(ctx context.Context, field graphql.CollectedField, obj *CommentEvent) (ret graphql.Marshaler) {
  43218. fc, err := ec.fieldContext_CommentEvent_edited(ctx, field)
  43219. if err != nil {
  43220. return graphql.Null
  43221. }
  43222. ctx = graphql.WithFieldContext(ctx, fc)
  43223. defer func() {
  43224. if r := recover(); r != nil {
  43225. ec.Error(ctx, ec.Recover(ctx, r))
  43226. ret = graphql.Null
  43227. }
  43228. }()
  43229. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  43230. ctx = rctx // use context from middleware stack in children
  43231. return obj.Edited, nil
  43232. })
  43233. if err != nil {
  43234. ec.Error(ctx, err)
  43235. return graphql.Null
  43236. }
  43237. if resTmp == nil {
  43238. if !graphql.HasFieldError(ctx, fc) {
  43239. ec.Errorf(ctx, "must not be null")
  43240. }
  43241. return graphql.Null
  43242. }
  43243. res := resTmp.(bool)
  43244. fc.Result = res
  43245. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  43246. }
  43247. func (ec *executionContext) fieldContext_CommentEvent_edited(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  43248. fc = &graphql.FieldContext{
  43249. Object: "CommentEvent",
  43250. Field: field,
  43251. IsMethod: false,
  43252. IsResolver: false,
  43253. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  43254. return nil, errors.New("field of type Boolean does not have child fields")
  43255. },
  43256. }
  43257. return fc, nil
  43258. }
  43259. func (ec *executionContext) _CommentEvent_embed(ctx context.Context, field graphql.CollectedField, obj *CommentEvent) (ret graphql.Marshaler) {
  43260. fc, err := ec.fieldContext_CommentEvent_embed(ctx, field)
  43261. if err != nil {
  43262. return graphql.Null
  43263. }
  43264. ctx = graphql.WithFieldContext(ctx, fc)
  43265. defer func() {
  43266. if r := recover(); r != nil {
  43267. ec.Error(ctx, ec.Recover(ctx, r))
  43268. ret = graphql.Null
  43269. }
  43270. }()
  43271. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  43272. ctx = rctx // use context from middleware stack in children
  43273. return obj.Embed, nil
  43274. })
  43275. if err != nil {
  43276. ec.Error(ctx, err)
  43277. return graphql.Null
  43278. }
  43279. if resTmp == nil {
  43280. return graphql.Null
  43281. }
  43282. res := resTmp.(CommentEventEmbed)
  43283. fc.Result = res
  43284. return ec.marshalOCommentEventEmbed2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCommentEventEmbed(ctx, field.Selections, res)
  43285. }
  43286. func (ec *executionContext) fieldContext_CommentEvent_embed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  43287. fc = &graphql.FieldContext{
  43288. Object: "CommentEvent",
  43289. Field: field,
  43290. IsMethod: false,
  43291. IsResolver: false,
  43292. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  43293. return nil, errors.New("field of type CommentEventEmbed does not have child fields")
  43294. },
  43295. }
  43296. return fc, nil
  43297. }
  43298. func (ec *executionContext) _CommentEvent_id(ctx context.Context, field graphql.CollectedField, obj *CommentEvent) (ret graphql.Marshaler) {
  43299. fc, err := ec.fieldContext_CommentEvent_id(ctx, field)
  43300. if err != nil {
  43301. return graphql.Null
  43302. }
  43303. ctx = graphql.WithFieldContext(ctx, fc)
  43304. defer func() {
  43305. if r := recover(); r != nil {
  43306. ec.Error(ctx, ec.Recover(ctx, r))
  43307. ret = graphql.Null
  43308. }
  43309. }()
  43310. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  43311. ctx = rctx // use context from middleware stack in children
  43312. return obj.ID, nil
  43313. })
  43314. if err != nil {
  43315. ec.Error(ctx, err)
  43316. return graphql.Null
  43317. }
  43318. if resTmp == nil {
  43319. if !graphql.HasFieldError(ctx, fc) {
  43320. ec.Errorf(ctx, "must not be null")
  43321. }
  43322. return graphql.Null
  43323. }
  43324. res := resTmp.(string)
  43325. fc.Result = res
  43326. return ec.marshalNID2string(ctx, field.Selections, res)
  43327. }
  43328. func (ec *executionContext) fieldContext_CommentEvent_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  43329. fc = &graphql.FieldContext{
  43330. Object: "CommentEvent",
  43331. Field: field,
  43332. IsMethod: false,
  43333. IsResolver: false,
  43334. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  43335. return nil, errors.New("field of type ID does not have child fields")
  43336. },
  43337. }
  43338. return fc, nil
  43339. }
  43340. func (ec *executionContext) _CommentEvent_message(ctx context.Context, field graphql.CollectedField, obj *CommentEvent) (ret graphql.Marshaler) {
  43341. fc, err := ec.fieldContext_CommentEvent_message(ctx, field)
  43342. if err != nil {
  43343. return graphql.Null
  43344. }
  43345. ctx = graphql.WithFieldContext(ctx, fc)
  43346. defer func() {
  43347. if r := recover(); r != nil {
  43348. ec.Error(ctx, ec.Recover(ctx, r))
  43349. ret = graphql.Null
  43350. }
  43351. }()
  43352. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  43353. ctx = rctx // use context from middleware stack in children
  43354. return obj.Message, nil
  43355. })
  43356. if err != nil {
  43357. ec.Error(ctx, err)
  43358. return graphql.Null
  43359. }
  43360. if resTmp == nil {
  43361. if !graphql.HasFieldError(ctx, fc) {
  43362. ec.Errorf(ctx, "must not be null")
  43363. }
  43364. return graphql.Null
  43365. }
  43366. res := resTmp.(string)
  43367. fc.Result = res
  43368. return ec.marshalNFormattedString2string(ctx, field.Selections, res)
  43369. }
  43370. func (ec *executionContext) fieldContext_CommentEvent_message(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  43371. fc = &graphql.FieldContext{
  43372. Object: "CommentEvent",
  43373. Field: field,
  43374. IsMethod: false,
  43375. IsResolver: false,
  43376. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  43377. return nil, errors.New("field of type FormattedString does not have child fields")
  43378. },
  43379. }
  43380. return fc, nil
  43381. }
  43382. func (ec *executionContext) _CommentEvent_rawMessage(ctx context.Context, field graphql.CollectedField, obj *CommentEvent) (ret graphql.Marshaler) {
  43383. fc, err := ec.fieldContext_CommentEvent_rawMessage(ctx, field)
  43384. if err != nil {
  43385. return graphql.Null
  43386. }
  43387. ctx = graphql.WithFieldContext(ctx, fc)
  43388. defer func() {
  43389. if r := recover(); r != nil {
  43390. ec.Error(ctx, ec.Recover(ctx, r))
  43391. ret = graphql.Null
  43392. }
  43393. }()
  43394. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  43395. ctx = rctx // use context from middleware stack in children
  43396. return obj.RawMessage, nil
  43397. })
  43398. if err != nil {
  43399. ec.Error(ctx, err)
  43400. return graphql.Null
  43401. }
  43402. if resTmp == nil {
  43403. if !graphql.HasFieldError(ctx, fc) {
  43404. ec.Errorf(ctx, "must not be null")
  43405. }
  43406. return graphql.Null
  43407. }
  43408. res := resTmp.(string)
  43409. fc.Result = res
  43410. return ec.marshalNString2string(ctx, field.Selections, res)
  43411. }
  43412. func (ec *executionContext) fieldContext_CommentEvent_rawMessage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  43413. fc = &graphql.FieldContext{
  43414. Object: "CommentEvent",
  43415. Field: field,
  43416. IsMethod: false,
  43417. IsResolver: false,
  43418. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  43419. return nil, errors.New("field of type String does not have child fields")
  43420. },
  43421. }
  43422. return fc, nil
  43423. }
  43424. func (ec *executionContext) _CommentEvent_subject(ctx context.Context, field graphql.CollectedField, obj *CommentEvent) (ret graphql.Marshaler) {
  43425. fc, err := ec.fieldContext_CommentEvent_subject(ctx, field)
  43426. if err != nil {
  43427. return graphql.Null
  43428. }
  43429. ctx = graphql.WithFieldContext(ctx, fc)
  43430. defer func() {
  43431. if r := recover(); r != nil {
  43432. ec.Error(ctx, ec.Recover(ctx, r))
  43433. ret = graphql.Null
  43434. }
  43435. }()
  43436. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  43437. ctx = rctx // use context from middleware stack in children
  43438. return obj.Subject, nil
  43439. })
  43440. if err != nil {
  43441. ec.Error(ctx, err)
  43442. return graphql.Null
  43443. }
  43444. if resTmp == nil {
  43445. if !graphql.HasFieldError(ctx, fc) {
  43446. ec.Errorf(ctx, "must not be null")
  43447. }
  43448. return graphql.Null
  43449. }
  43450. res := resTmp.(CommentEventSubject)
  43451. fc.Result = res
  43452. return ec.marshalNCommentEventSubject2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCommentEventSubject(ctx, field.Selections, res)
  43453. }
  43454. func (ec *executionContext) fieldContext_CommentEvent_subject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  43455. fc = &graphql.FieldContext{
  43456. Object: "CommentEvent",
  43457. Field: field,
  43458. IsMethod: false,
  43459. IsResolver: false,
  43460. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  43461. return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
  43462. },
  43463. }
  43464. return fc, nil
  43465. }
  43466. func (ec *executionContext) _CommentEventAttachment_fileExtension(ctx context.Context, field graphql.CollectedField, obj *CommentEventAttachment) (ret graphql.Marshaler) {
  43467. fc, err := ec.fieldContext_CommentEventAttachment_fileExtension(ctx, field)
  43468. if err != nil {
  43469. return graphql.Null
  43470. }
  43471. ctx = graphql.WithFieldContext(ctx, fc)
  43472. defer func() {
  43473. if r := recover(); r != nil {
  43474. ec.Error(ctx, ec.Recover(ctx, r))
  43475. ret = graphql.Null
  43476. }
  43477. }()
  43478. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  43479. ctx = rctx // use context from middleware stack in children
  43480. return obj.FileExtension, nil
  43481. })
  43482. if err != nil {
  43483. ec.Error(ctx, err)
  43484. return graphql.Null
  43485. }
  43486. if resTmp == nil {
  43487. return graphql.Null
  43488. }
  43489. res := resTmp.(*string)
  43490. fc.Result = res
  43491. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  43492. }
  43493. func (ec *executionContext) fieldContext_CommentEventAttachment_fileExtension(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  43494. fc = &graphql.FieldContext{
  43495. Object: "CommentEventAttachment",
  43496. Field: field,
  43497. IsMethod: false,
  43498. IsResolver: false,
  43499. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  43500. return nil, errors.New("field of type String does not have child fields")
  43501. },
  43502. }
  43503. return fc, nil
  43504. }
  43505. func (ec *executionContext) _CommentEventAttachment_id(ctx context.Context, field graphql.CollectedField, obj *CommentEventAttachment) (ret graphql.Marshaler) {
  43506. fc, err := ec.fieldContext_CommentEventAttachment_id(ctx, field)
  43507. if err != nil {
  43508. return graphql.Null
  43509. }
  43510. ctx = graphql.WithFieldContext(ctx, fc)
  43511. defer func() {
  43512. if r := recover(); r != nil {
  43513. ec.Error(ctx, ec.Recover(ctx, r))
  43514. ret = graphql.Null
  43515. }
  43516. }()
  43517. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  43518. ctx = rctx // use context from middleware stack in children
  43519. return obj.ID, nil
  43520. })
  43521. if err != nil {
  43522. ec.Error(ctx, err)
  43523. return graphql.Null
  43524. }
  43525. if resTmp == nil {
  43526. if !graphql.HasFieldError(ctx, fc) {
  43527. ec.Errorf(ctx, "must not be null")
  43528. }
  43529. return graphql.Null
  43530. }
  43531. res := resTmp.(string)
  43532. fc.Result = res
  43533. return ec.marshalNID2string(ctx, field.Selections, res)
  43534. }
  43535. func (ec *executionContext) fieldContext_CommentEventAttachment_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  43536. fc = &graphql.FieldContext{
  43537. Object: "CommentEventAttachment",
  43538. Field: field,
  43539. IsMethod: false,
  43540. IsResolver: false,
  43541. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  43542. return nil, errors.New("field of type ID does not have child fields")
  43543. },
  43544. }
  43545. return fc, nil
  43546. }
  43547. func (ec *executionContext) _CommentEventAttachment_image(ctx context.Context, field graphql.CollectedField, obj *CommentEventAttachment) (ret graphql.Marshaler) {
  43548. fc, err := ec.fieldContext_CommentEventAttachment_image(ctx, field)
  43549. if err != nil {
  43550. return graphql.Null
  43551. }
  43552. ctx = graphql.WithFieldContext(ctx, fc)
  43553. defer func() {
  43554. if r := recover(); r != nil {
  43555. ec.Error(ctx, ec.Recover(ctx, r))
  43556. ret = graphql.Null
  43557. }
  43558. }()
  43559. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  43560. ctx = rctx // use context from middleware stack in children
  43561. return obj.Image, nil
  43562. })
  43563. if err != nil {
  43564. ec.Error(ctx, err)
  43565. return graphql.Null
  43566. }
  43567. if resTmp == nil {
  43568. return graphql.Null
  43569. }
  43570. res := resTmp.(*Image)
  43571. fc.Result = res
  43572. return ec.marshalOImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImage(ctx, field.Selections, res)
  43573. }
  43574. func (ec *executionContext) fieldContext_CommentEventAttachment_image(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  43575. fc = &graphql.FieldContext{
  43576. Object: "CommentEventAttachment",
  43577. Field: field,
  43578. IsMethod: false,
  43579. IsResolver: false,
  43580. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  43581. switch field.Name {
  43582. case "altText":
  43583. return ec.fieldContext_Image_altText(ctx, field)
  43584. case "height":
  43585. return ec.fieldContext_Image_height(ctx, field)
  43586. case "id":
  43587. return ec.fieldContext_Image_id(ctx, field)
  43588. case "metafield":
  43589. return ec.fieldContext_Image_metafield(ctx, field)
  43590. case "metafields":
  43591. return ec.fieldContext_Image_metafields(ctx, field)
  43592. case "privateMetafield":
  43593. return ec.fieldContext_Image_privateMetafield(ctx, field)
  43594. case "privateMetafields":
  43595. return ec.fieldContext_Image_privateMetafields(ctx, field)
  43596. case "url":
  43597. return ec.fieldContext_Image_url(ctx, field)
  43598. case "width":
  43599. return ec.fieldContext_Image_width(ctx, field)
  43600. }
  43601. return nil, fmt.Errorf("no field named %q was found under type Image", field.Name)
  43602. },
  43603. }
  43604. return fc, nil
  43605. }
  43606. func (ec *executionContext) _CommentEventAttachment_name(ctx context.Context, field graphql.CollectedField, obj *CommentEventAttachment) (ret graphql.Marshaler) {
  43607. fc, err := ec.fieldContext_CommentEventAttachment_name(ctx, field)
  43608. if err != nil {
  43609. return graphql.Null
  43610. }
  43611. ctx = graphql.WithFieldContext(ctx, fc)
  43612. defer func() {
  43613. if r := recover(); r != nil {
  43614. ec.Error(ctx, ec.Recover(ctx, r))
  43615. ret = graphql.Null
  43616. }
  43617. }()
  43618. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  43619. ctx = rctx // use context from middleware stack in children
  43620. return obj.Name, nil
  43621. })
  43622. if err != nil {
  43623. ec.Error(ctx, err)
  43624. return graphql.Null
  43625. }
  43626. if resTmp == nil {
  43627. if !graphql.HasFieldError(ctx, fc) {
  43628. ec.Errorf(ctx, "must not be null")
  43629. }
  43630. return graphql.Null
  43631. }
  43632. res := resTmp.(string)
  43633. fc.Result = res
  43634. return ec.marshalNString2string(ctx, field.Selections, res)
  43635. }
  43636. func (ec *executionContext) fieldContext_CommentEventAttachment_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  43637. fc = &graphql.FieldContext{
  43638. Object: "CommentEventAttachment",
  43639. Field: field,
  43640. IsMethod: false,
  43641. IsResolver: false,
  43642. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  43643. return nil, errors.New("field of type String does not have child fields")
  43644. },
  43645. }
  43646. return fc, nil
  43647. }
  43648. func (ec *executionContext) _CommentEventAttachment_size(ctx context.Context, field graphql.CollectedField, obj *CommentEventAttachment) (ret graphql.Marshaler) {
  43649. fc, err := ec.fieldContext_CommentEventAttachment_size(ctx, field)
  43650. if err != nil {
  43651. return graphql.Null
  43652. }
  43653. ctx = graphql.WithFieldContext(ctx, fc)
  43654. defer func() {
  43655. if r := recover(); r != nil {
  43656. ec.Error(ctx, ec.Recover(ctx, r))
  43657. ret = graphql.Null
  43658. }
  43659. }()
  43660. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  43661. ctx = rctx // use context from middleware stack in children
  43662. return obj.Size, nil
  43663. })
  43664. if err != nil {
  43665. ec.Error(ctx, err)
  43666. return graphql.Null
  43667. }
  43668. if resTmp == nil {
  43669. if !graphql.HasFieldError(ctx, fc) {
  43670. ec.Errorf(ctx, "must not be null")
  43671. }
  43672. return graphql.Null
  43673. }
  43674. res := resTmp.(int)
  43675. fc.Result = res
  43676. return ec.marshalNInt2int(ctx, field.Selections, res)
  43677. }
  43678. func (ec *executionContext) fieldContext_CommentEventAttachment_size(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  43679. fc = &graphql.FieldContext{
  43680. Object: "CommentEventAttachment",
  43681. Field: field,
  43682. IsMethod: false,
  43683. IsResolver: false,
  43684. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  43685. return nil, errors.New("field of type Int does not have child fields")
  43686. },
  43687. }
  43688. return fc, nil
  43689. }
  43690. func (ec *executionContext) _CommentEventAttachment_url(ctx context.Context, field graphql.CollectedField, obj *CommentEventAttachment) (ret graphql.Marshaler) {
  43691. fc, err := ec.fieldContext_CommentEventAttachment_url(ctx, field)
  43692. if err != nil {
  43693. return graphql.Null
  43694. }
  43695. ctx = graphql.WithFieldContext(ctx, fc)
  43696. defer func() {
  43697. if r := recover(); r != nil {
  43698. ec.Error(ctx, ec.Recover(ctx, r))
  43699. ret = graphql.Null
  43700. }
  43701. }()
  43702. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  43703. ctx = rctx // use context from middleware stack in children
  43704. return obj.URL, nil
  43705. })
  43706. if err != nil {
  43707. ec.Error(ctx, err)
  43708. return graphql.Null
  43709. }
  43710. if resTmp == nil {
  43711. if !graphql.HasFieldError(ctx, fc) {
  43712. ec.Errorf(ctx, "must not be null")
  43713. }
  43714. return graphql.Null
  43715. }
  43716. res := resTmp.(string)
  43717. fc.Result = res
  43718. return ec.marshalNURL2string(ctx, field.Selections, res)
  43719. }
  43720. func (ec *executionContext) fieldContext_CommentEventAttachment_url(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  43721. fc = &graphql.FieldContext{
  43722. Object: "CommentEventAttachment",
  43723. Field: field,
  43724. IsMethod: false,
  43725. IsResolver: false,
  43726. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  43727. return nil, errors.New("field of type URL does not have child fields")
  43728. },
  43729. }
  43730. return fc, nil
  43731. }
  43732. func (ec *executionContext) _Company_contactCount(ctx context.Context, field graphql.CollectedField, obj *Company) (ret graphql.Marshaler) {
  43733. fc, err := ec.fieldContext_Company_contactCount(ctx, field)
  43734. if err != nil {
  43735. return graphql.Null
  43736. }
  43737. ctx = graphql.WithFieldContext(ctx, fc)
  43738. defer func() {
  43739. if r := recover(); r != nil {
  43740. ec.Error(ctx, ec.Recover(ctx, r))
  43741. ret = graphql.Null
  43742. }
  43743. }()
  43744. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  43745. ctx = rctx // use context from middleware stack in children
  43746. return obj.ContactCount, nil
  43747. })
  43748. if err != nil {
  43749. ec.Error(ctx, err)
  43750. return graphql.Null
  43751. }
  43752. if resTmp == nil {
  43753. if !graphql.HasFieldError(ctx, fc) {
  43754. ec.Errorf(ctx, "must not be null")
  43755. }
  43756. return graphql.Null
  43757. }
  43758. res := resTmp.(int)
  43759. fc.Result = res
  43760. return ec.marshalNInt2int(ctx, field.Selections, res)
  43761. }
  43762. func (ec *executionContext) fieldContext_Company_contactCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  43763. fc = &graphql.FieldContext{
  43764. Object: "Company",
  43765. Field: field,
  43766. IsMethod: false,
  43767. IsResolver: false,
  43768. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  43769. return nil, errors.New("field of type Int does not have child fields")
  43770. },
  43771. }
  43772. return fc, nil
  43773. }
  43774. func (ec *executionContext) _Company_contactRoles(ctx context.Context, field graphql.CollectedField, obj *Company) (ret graphql.Marshaler) {
  43775. fc, err := ec.fieldContext_Company_contactRoles(ctx, field)
  43776. if err != nil {
  43777. return graphql.Null
  43778. }
  43779. ctx = graphql.WithFieldContext(ctx, fc)
  43780. defer func() {
  43781. if r := recover(); r != nil {
  43782. ec.Error(ctx, ec.Recover(ctx, r))
  43783. ret = graphql.Null
  43784. }
  43785. }()
  43786. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  43787. ctx = rctx // use context from middleware stack in children
  43788. return obj.ContactRoles, nil
  43789. })
  43790. if err != nil {
  43791. ec.Error(ctx, err)
  43792. return graphql.Null
  43793. }
  43794. if resTmp == nil {
  43795. if !graphql.HasFieldError(ctx, fc) {
  43796. ec.Errorf(ctx, "must not be null")
  43797. }
  43798. return graphql.Null
  43799. }
  43800. res := resTmp.(*CompanyContactRoleConnection)
  43801. fc.Result = res
  43802. return ec.marshalNCompanyContactRoleConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRoleConnection(ctx, field.Selections, res)
  43803. }
  43804. func (ec *executionContext) fieldContext_Company_contactRoles(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  43805. fc = &graphql.FieldContext{
  43806. Object: "Company",
  43807. Field: field,
  43808. IsMethod: false,
  43809. IsResolver: false,
  43810. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  43811. switch field.Name {
  43812. case "edges":
  43813. return ec.fieldContext_CompanyContactRoleConnection_edges(ctx, field)
  43814. case "nodes":
  43815. return ec.fieldContext_CompanyContactRoleConnection_nodes(ctx, field)
  43816. case "pageInfo":
  43817. return ec.fieldContext_CompanyContactRoleConnection_pageInfo(ctx, field)
  43818. }
  43819. return nil, fmt.Errorf("no field named %q was found under type CompanyContactRoleConnection", field.Name)
  43820. },
  43821. }
  43822. defer func() {
  43823. if r := recover(); r != nil {
  43824. err = ec.Recover(ctx, r)
  43825. ec.Error(ctx, err)
  43826. }
  43827. }()
  43828. ctx = graphql.WithFieldContext(ctx, fc)
  43829. if fc.Args, err = ec.field_Company_contactRoles_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  43830. ec.Error(ctx, err)
  43831. return
  43832. }
  43833. return fc, nil
  43834. }
  43835. func (ec *executionContext) _Company_contacts(ctx context.Context, field graphql.CollectedField, obj *Company) (ret graphql.Marshaler) {
  43836. fc, err := ec.fieldContext_Company_contacts(ctx, field)
  43837. if err != nil {
  43838. return graphql.Null
  43839. }
  43840. ctx = graphql.WithFieldContext(ctx, fc)
  43841. defer func() {
  43842. if r := recover(); r != nil {
  43843. ec.Error(ctx, ec.Recover(ctx, r))
  43844. ret = graphql.Null
  43845. }
  43846. }()
  43847. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  43848. ctx = rctx // use context from middleware stack in children
  43849. return obj.Contacts, nil
  43850. })
  43851. if err != nil {
  43852. ec.Error(ctx, err)
  43853. return graphql.Null
  43854. }
  43855. if resTmp == nil {
  43856. if !graphql.HasFieldError(ctx, fc) {
  43857. ec.Errorf(ctx, "must not be null")
  43858. }
  43859. return graphql.Null
  43860. }
  43861. res := resTmp.(*CompanyContactConnection)
  43862. fc.Result = res
  43863. return ec.marshalNCompanyContactConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactConnection(ctx, field.Selections, res)
  43864. }
  43865. func (ec *executionContext) fieldContext_Company_contacts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  43866. fc = &graphql.FieldContext{
  43867. Object: "Company",
  43868. Field: field,
  43869. IsMethod: false,
  43870. IsResolver: false,
  43871. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  43872. switch field.Name {
  43873. case "edges":
  43874. return ec.fieldContext_CompanyContactConnection_edges(ctx, field)
  43875. case "nodes":
  43876. return ec.fieldContext_CompanyContactConnection_nodes(ctx, field)
  43877. case "pageInfo":
  43878. return ec.fieldContext_CompanyContactConnection_pageInfo(ctx, field)
  43879. }
  43880. return nil, fmt.Errorf("no field named %q was found under type CompanyContactConnection", field.Name)
  43881. },
  43882. }
  43883. defer func() {
  43884. if r := recover(); r != nil {
  43885. err = ec.Recover(ctx, r)
  43886. ec.Error(ctx, err)
  43887. }
  43888. }()
  43889. ctx = graphql.WithFieldContext(ctx, fc)
  43890. if fc.Args, err = ec.field_Company_contacts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  43891. ec.Error(ctx, err)
  43892. return
  43893. }
  43894. return fc, nil
  43895. }
  43896. func (ec *executionContext) _Company_createdAt(ctx context.Context, field graphql.CollectedField, obj *Company) (ret graphql.Marshaler) {
  43897. fc, err := ec.fieldContext_Company_createdAt(ctx, field)
  43898. if err != nil {
  43899. return graphql.Null
  43900. }
  43901. ctx = graphql.WithFieldContext(ctx, fc)
  43902. defer func() {
  43903. if r := recover(); r != nil {
  43904. ec.Error(ctx, ec.Recover(ctx, r))
  43905. ret = graphql.Null
  43906. }
  43907. }()
  43908. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  43909. ctx = rctx // use context from middleware stack in children
  43910. return obj.CreatedAt, nil
  43911. })
  43912. if err != nil {
  43913. ec.Error(ctx, err)
  43914. return graphql.Null
  43915. }
  43916. if resTmp == nil {
  43917. if !graphql.HasFieldError(ctx, fc) {
  43918. ec.Errorf(ctx, "must not be null")
  43919. }
  43920. return graphql.Null
  43921. }
  43922. res := resTmp.(string)
  43923. fc.Result = res
  43924. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  43925. }
  43926. func (ec *executionContext) fieldContext_Company_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  43927. fc = &graphql.FieldContext{
  43928. Object: "Company",
  43929. Field: field,
  43930. IsMethod: false,
  43931. IsResolver: false,
  43932. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  43933. return nil, errors.New("field of type DateTime does not have child fields")
  43934. },
  43935. }
  43936. return fc, nil
  43937. }
  43938. func (ec *executionContext) _Company_customerSince(ctx context.Context, field graphql.CollectedField, obj *Company) (ret graphql.Marshaler) {
  43939. fc, err := ec.fieldContext_Company_customerSince(ctx, field)
  43940. if err != nil {
  43941. return graphql.Null
  43942. }
  43943. ctx = graphql.WithFieldContext(ctx, fc)
  43944. defer func() {
  43945. if r := recover(); r != nil {
  43946. ec.Error(ctx, ec.Recover(ctx, r))
  43947. ret = graphql.Null
  43948. }
  43949. }()
  43950. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  43951. ctx = rctx // use context from middleware stack in children
  43952. return obj.CustomerSince, nil
  43953. })
  43954. if err != nil {
  43955. ec.Error(ctx, err)
  43956. return graphql.Null
  43957. }
  43958. if resTmp == nil {
  43959. if !graphql.HasFieldError(ctx, fc) {
  43960. ec.Errorf(ctx, "must not be null")
  43961. }
  43962. return graphql.Null
  43963. }
  43964. res := resTmp.(string)
  43965. fc.Result = res
  43966. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  43967. }
  43968. func (ec *executionContext) fieldContext_Company_customerSince(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  43969. fc = &graphql.FieldContext{
  43970. Object: "Company",
  43971. Field: field,
  43972. IsMethod: false,
  43973. IsResolver: false,
  43974. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  43975. return nil, errors.New("field of type DateTime does not have child fields")
  43976. },
  43977. }
  43978. return fc, nil
  43979. }
  43980. func (ec *executionContext) _Company_defaultCursor(ctx context.Context, field graphql.CollectedField, obj *Company) (ret graphql.Marshaler) {
  43981. fc, err := ec.fieldContext_Company_defaultCursor(ctx, field)
  43982. if err != nil {
  43983. return graphql.Null
  43984. }
  43985. ctx = graphql.WithFieldContext(ctx, fc)
  43986. defer func() {
  43987. if r := recover(); r != nil {
  43988. ec.Error(ctx, ec.Recover(ctx, r))
  43989. ret = graphql.Null
  43990. }
  43991. }()
  43992. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  43993. ctx = rctx // use context from middleware stack in children
  43994. return obj.DefaultCursor, nil
  43995. })
  43996. if err != nil {
  43997. ec.Error(ctx, err)
  43998. return graphql.Null
  43999. }
  44000. if resTmp == nil {
  44001. if !graphql.HasFieldError(ctx, fc) {
  44002. ec.Errorf(ctx, "must not be null")
  44003. }
  44004. return graphql.Null
  44005. }
  44006. res := resTmp.(string)
  44007. fc.Result = res
  44008. return ec.marshalNString2string(ctx, field.Selections, res)
  44009. }
  44010. func (ec *executionContext) fieldContext_Company_defaultCursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  44011. fc = &graphql.FieldContext{
  44012. Object: "Company",
  44013. Field: field,
  44014. IsMethod: false,
  44015. IsResolver: false,
  44016. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  44017. return nil, errors.New("field of type String does not have child fields")
  44018. },
  44019. }
  44020. return fc, nil
  44021. }
  44022. func (ec *executionContext) _Company_defaultRole(ctx context.Context, field graphql.CollectedField, obj *Company) (ret graphql.Marshaler) {
  44023. fc, err := ec.fieldContext_Company_defaultRole(ctx, field)
  44024. if err != nil {
  44025. return graphql.Null
  44026. }
  44027. ctx = graphql.WithFieldContext(ctx, fc)
  44028. defer func() {
  44029. if r := recover(); r != nil {
  44030. ec.Error(ctx, ec.Recover(ctx, r))
  44031. ret = graphql.Null
  44032. }
  44033. }()
  44034. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  44035. ctx = rctx // use context from middleware stack in children
  44036. return obj.DefaultRole, nil
  44037. })
  44038. if err != nil {
  44039. ec.Error(ctx, err)
  44040. return graphql.Null
  44041. }
  44042. if resTmp == nil {
  44043. return graphql.Null
  44044. }
  44045. res := resTmp.(*CompanyContactRole)
  44046. fc.Result = res
  44047. return ec.marshalOCompanyContactRole2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRole(ctx, field.Selections, res)
  44048. }
  44049. func (ec *executionContext) fieldContext_Company_defaultRole(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  44050. fc = &graphql.FieldContext{
  44051. Object: "Company",
  44052. Field: field,
  44053. IsMethod: false,
  44054. IsResolver: false,
  44055. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  44056. switch field.Name {
  44057. case "id":
  44058. return ec.fieldContext_CompanyContactRole_id(ctx, field)
  44059. case "name":
  44060. return ec.fieldContext_CompanyContactRole_name(ctx, field)
  44061. case "note":
  44062. return ec.fieldContext_CompanyContactRole_note(ctx, field)
  44063. }
  44064. return nil, fmt.Errorf("no field named %q was found under type CompanyContactRole", field.Name)
  44065. },
  44066. }
  44067. return fc, nil
  44068. }
  44069. func (ec *executionContext) _Company_draftOrders(ctx context.Context, field graphql.CollectedField, obj *Company) (ret graphql.Marshaler) {
  44070. fc, err := ec.fieldContext_Company_draftOrders(ctx, field)
  44071. if err != nil {
  44072. return graphql.Null
  44073. }
  44074. ctx = graphql.WithFieldContext(ctx, fc)
  44075. defer func() {
  44076. if r := recover(); r != nil {
  44077. ec.Error(ctx, ec.Recover(ctx, r))
  44078. ret = graphql.Null
  44079. }
  44080. }()
  44081. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  44082. ctx = rctx // use context from middleware stack in children
  44083. return obj.DraftOrders, nil
  44084. })
  44085. if err != nil {
  44086. ec.Error(ctx, err)
  44087. return graphql.Null
  44088. }
  44089. if resTmp == nil {
  44090. if !graphql.HasFieldError(ctx, fc) {
  44091. ec.Errorf(ctx, "must not be null")
  44092. }
  44093. return graphql.Null
  44094. }
  44095. res := resTmp.(*DraftOrderConnection)
  44096. fc.Result = res
  44097. return ec.marshalNDraftOrderConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderConnection(ctx, field.Selections, res)
  44098. }
  44099. func (ec *executionContext) fieldContext_Company_draftOrders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  44100. fc = &graphql.FieldContext{
  44101. Object: "Company",
  44102. Field: field,
  44103. IsMethod: false,
  44104. IsResolver: false,
  44105. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  44106. switch field.Name {
  44107. case "edges":
  44108. return ec.fieldContext_DraftOrderConnection_edges(ctx, field)
  44109. case "nodes":
  44110. return ec.fieldContext_DraftOrderConnection_nodes(ctx, field)
  44111. case "pageInfo":
  44112. return ec.fieldContext_DraftOrderConnection_pageInfo(ctx, field)
  44113. }
  44114. return nil, fmt.Errorf("no field named %q was found under type DraftOrderConnection", field.Name)
  44115. },
  44116. }
  44117. defer func() {
  44118. if r := recover(); r != nil {
  44119. err = ec.Recover(ctx, r)
  44120. ec.Error(ctx, err)
  44121. }
  44122. }()
  44123. ctx = graphql.WithFieldContext(ctx, fc)
  44124. if fc.Args, err = ec.field_Company_draftOrders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  44125. ec.Error(ctx, err)
  44126. return
  44127. }
  44128. return fc, nil
  44129. }
  44130. func (ec *executionContext) _Company_events(ctx context.Context, field graphql.CollectedField, obj *Company) (ret graphql.Marshaler) {
  44131. fc, err := ec.fieldContext_Company_events(ctx, field)
  44132. if err != nil {
  44133. return graphql.Null
  44134. }
  44135. ctx = graphql.WithFieldContext(ctx, fc)
  44136. defer func() {
  44137. if r := recover(); r != nil {
  44138. ec.Error(ctx, ec.Recover(ctx, r))
  44139. ret = graphql.Null
  44140. }
  44141. }()
  44142. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  44143. ctx = rctx // use context from middleware stack in children
  44144. return obj.Events, nil
  44145. })
  44146. if err != nil {
  44147. ec.Error(ctx, err)
  44148. return graphql.Null
  44149. }
  44150. if resTmp == nil {
  44151. if !graphql.HasFieldError(ctx, fc) {
  44152. ec.Errorf(ctx, "must not be null")
  44153. }
  44154. return graphql.Null
  44155. }
  44156. res := resTmp.(*EventConnection)
  44157. fc.Result = res
  44158. return ec.marshalNEventConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐEventConnection(ctx, field.Selections, res)
  44159. }
  44160. func (ec *executionContext) fieldContext_Company_events(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  44161. fc = &graphql.FieldContext{
  44162. Object: "Company",
  44163. Field: field,
  44164. IsMethod: false,
  44165. IsResolver: false,
  44166. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  44167. switch field.Name {
  44168. case "edges":
  44169. return ec.fieldContext_EventConnection_edges(ctx, field)
  44170. case "nodes":
  44171. return ec.fieldContext_EventConnection_nodes(ctx, field)
  44172. case "pageInfo":
  44173. return ec.fieldContext_EventConnection_pageInfo(ctx, field)
  44174. }
  44175. return nil, fmt.Errorf("no field named %q was found under type EventConnection", field.Name)
  44176. },
  44177. }
  44178. defer func() {
  44179. if r := recover(); r != nil {
  44180. err = ec.Recover(ctx, r)
  44181. ec.Error(ctx, err)
  44182. }
  44183. }()
  44184. ctx = graphql.WithFieldContext(ctx, fc)
  44185. if fc.Args, err = ec.field_Company_events_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  44186. ec.Error(ctx, err)
  44187. return
  44188. }
  44189. return fc, nil
  44190. }
  44191. func (ec *executionContext) _Company_externalId(ctx context.Context, field graphql.CollectedField, obj *Company) (ret graphql.Marshaler) {
  44192. fc, err := ec.fieldContext_Company_externalId(ctx, field)
  44193. if err != nil {
  44194. return graphql.Null
  44195. }
  44196. ctx = graphql.WithFieldContext(ctx, fc)
  44197. defer func() {
  44198. if r := recover(); r != nil {
  44199. ec.Error(ctx, ec.Recover(ctx, r))
  44200. ret = graphql.Null
  44201. }
  44202. }()
  44203. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  44204. ctx = rctx // use context from middleware stack in children
  44205. return obj.ExternalID, nil
  44206. })
  44207. if err != nil {
  44208. ec.Error(ctx, err)
  44209. return graphql.Null
  44210. }
  44211. if resTmp == nil {
  44212. return graphql.Null
  44213. }
  44214. res := resTmp.(*string)
  44215. fc.Result = res
  44216. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  44217. }
  44218. func (ec *executionContext) fieldContext_Company_externalId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  44219. fc = &graphql.FieldContext{
  44220. Object: "Company",
  44221. Field: field,
  44222. IsMethod: false,
  44223. IsResolver: false,
  44224. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  44225. return nil, errors.New("field of type String does not have child fields")
  44226. },
  44227. }
  44228. return fc, nil
  44229. }
  44230. func (ec *executionContext) _Company_hasTimelineComment(ctx context.Context, field graphql.CollectedField, obj *Company) (ret graphql.Marshaler) {
  44231. fc, err := ec.fieldContext_Company_hasTimelineComment(ctx, field)
  44232. if err != nil {
  44233. return graphql.Null
  44234. }
  44235. ctx = graphql.WithFieldContext(ctx, fc)
  44236. defer func() {
  44237. if r := recover(); r != nil {
  44238. ec.Error(ctx, ec.Recover(ctx, r))
  44239. ret = graphql.Null
  44240. }
  44241. }()
  44242. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  44243. ctx = rctx // use context from middleware stack in children
  44244. return obj.HasTimelineComment, nil
  44245. })
  44246. if err != nil {
  44247. ec.Error(ctx, err)
  44248. return graphql.Null
  44249. }
  44250. if resTmp == nil {
  44251. if !graphql.HasFieldError(ctx, fc) {
  44252. ec.Errorf(ctx, "must not be null")
  44253. }
  44254. return graphql.Null
  44255. }
  44256. res := resTmp.(bool)
  44257. fc.Result = res
  44258. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  44259. }
  44260. func (ec *executionContext) fieldContext_Company_hasTimelineComment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  44261. fc = &graphql.FieldContext{
  44262. Object: "Company",
  44263. Field: field,
  44264. IsMethod: false,
  44265. IsResolver: false,
  44266. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  44267. return nil, errors.New("field of type Boolean does not have child fields")
  44268. },
  44269. }
  44270. return fc, nil
  44271. }
  44272. func (ec *executionContext) _Company_id(ctx context.Context, field graphql.CollectedField, obj *Company) (ret graphql.Marshaler) {
  44273. fc, err := ec.fieldContext_Company_id(ctx, field)
  44274. if err != nil {
  44275. return graphql.Null
  44276. }
  44277. ctx = graphql.WithFieldContext(ctx, fc)
  44278. defer func() {
  44279. if r := recover(); r != nil {
  44280. ec.Error(ctx, ec.Recover(ctx, r))
  44281. ret = graphql.Null
  44282. }
  44283. }()
  44284. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  44285. ctx = rctx // use context from middleware stack in children
  44286. return obj.ID, nil
  44287. })
  44288. if err != nil {
  44289. ec.Error(ctx, err)
  44290. return graphql.Null
  44291. }
  44292. if resTmp == nil {
  44293. if !graphql.HasFieldError(ctx, fc) {
  44294. ec.Errorf(ctx, "must not be null")
  44295. }
  44296. return graphql.Null
  44297. }
  44298. res := resTmp.(string)
  44299. fc.Result = res
  44300. return ec.marshalNID2string(ctx, field.Selections, res)
  44301. }
  44302. func (ec *executionContext) fieldContext_Company_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  44303. fc = &graphql.FieldContext{
  44304. Object: "Company",
  44305. Field: field,
  44306. IsMethod: false,
  44307. IsResolver: false,
  44308. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  44309. return nil, errors.New("field of type ID does not have child fields")
  44310. },
  44311. }
  44312. return fc, nil
  44313. }
  44314. func (ec *executionContext) _Company_lifetimeDuration(ctx context.Context, field graphql.CollectedField, obj *Company) (ret graphql.Marshaler) {
  44315. fc, err := ec.fieldContext_Company_lifetimeDuration(ctx, field)
  44316. if err != nil {
  44317. return graphql.Null
  44318. }
  44319. ctx = graphql.WithFieldContext(ctx, fc)
  44320. defer func() {
  44321. if r := recover(); r != nil {
  44322. ec.Error(ctx, ec.Recover(ctx, r))
  44323. ret = graphql.Null
  44324. }
  44325. }()
  44326. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  44327. ctx = rctx // use context from middleware stack in children
  44328. return obj.LifetimeDuration, nil
  44329. })
  44330. if err != nil {
  44331. ec.Error(ctx, err)
  44332. return graphql.Null
  44333. }
  44334. if resTmp == nil {
  44335. if !graphql.HasFieldError(ctx, fc) {
  44336. ec.Errorf(ctx, "must not be null")
  44337. }
  44338. return graphql.Null
  44339. }
  44340. res := resTmp.(string)
  44341. fc.Result = res
  44342. return ec.marshalNString2string(ctx, field.Selections, res)
  44343. }
  44344. func (ec *executionContext) fieldContext_Company_lifetimeDuration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  44345. fc = &graphql.FieldContext{
  44346. Object: "Company",
  44347. Field: field,
  44348. IsMethod: false,
  44349. IsResolver: false,
  44350. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  44351. return nil, errors.New("field of type String does not have child fields")
  44352. },
  44353. }
  44354. return fc, nil
  44355. }
  44356. func (ec *executionContext) _Company_locationCount(ctx context.Context, field graphql.CollectedField, obj *Company) (ret graphql.Marshaler) {
  44357. fc, err := ec.fieldContext_Company_locationCount(ctx, field)
  44358. if err != nil {
  44359. return graphql.Null
  44360. }
  44361. ctx = graphql.WithFieldContext(ctx, fc)
  44362. defer func() {
  44363. if r := recover(); r != nil {
  44364. ec.Error(ctx, ec.Recover(ctx, r))
  44365. ret = graphql.Null
  44366. }
  44367. }()
  44368. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  44369. ctx = rctx // use context from middleware stack in children
  44370. return obj.LocationCount, nil
  44371. })
  44372. if err != nil {
  44373. ec.Error(ctx, err)
  44374. return graphql.Null
  44375. }
  44376. if resTmp == nil {
  44377. if !graphql.HasFieldError(ctx, fc) {
  44378. ec.Errorf(ctx, "must not be null")
  44379. }
  44380. return graphql.Null
  44381. }
  44382. res := resTmp.(int)
  44383. fc.Result = res
  44384. return ec.marshalNInt2int(ctx, field.Selections, res)
  44385. }
  44386. func (ec *executionContext) fieldContext_Company_locationCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  44387. fc = &graphql.FieldContext{
  44388. Object: "Company",
  44389. Field: field,
  44390. IsMethod: false,
  44391. IsResolver: false,
  44392. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  44393. return nil, errors.New("field of type Int does not have child fields")
  44394. },
  44395. }
  44396. return fc, nil
  44397. }
  44398. func (ec *executionContext) _Company_locations(ctx context.Context, field graphql.CollectedField, obj *Company) (ret graphql.Marshaler) {
  44399. fc, err := ec.fieldContext_Company_locations(ctx, field)
  44400. if err != nil {
  44401. return graphql.Null
  44402. }
  44403. ctx = graphql.WithFieldContext(ctx, fc)
  44404. defer func() {
  44405. if r := recover(); r != nil {
  44406. ec.Error(ctx, ec.Recover(ctx, r))
  44407. ret = graphql.Null
  44408. }
  44409. }()
  44410. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  44411. ctx = rctx // use context from middleware stack in children
  44412. return obj.Locations, nil
  44413. })
  44414. if err != nil {
  44415. ec.Error(ctx, err)
  44416. return graphql.Null
  44417. }
  44418. if resTmp == nil {
  44419. if !graphql.HasFieldError(ctx, fc) {
  44420. ec.Errorf(ctx, "must not be null")
  44421. }
  44422. return graphql.Null
  44423. }
  44424. res := resTmp.(*CompanyLocationConnection)
  44425. fc.Result = res
  44426. return ec.marshalNCompanyLocationConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyLocationConnection(ctx, field.Selections, res)
  44427. }
  44428. func (ec *executionContext) fieldContext_Company_locations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  44429. fc = &graphql.FieldContext{
  44430. Object: "Company",
  44431. Field: field,
  44432. IsMethod: false,
  44433. IsResolver: false,
  44434. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  44435. switch field.Name {
  44436. case "edges":
  44437. return ec.fieldContext_CompanyLocationConnection_edges(ctx, field)
  44438. case "nodes":
  44439. return ec.fieldContext_CompanyLocationConnection_nodes(ctx, field)
  44440. case "pageInfo":
  44441. return ec.fieldContext_CompanyLocationConnection_pageInfo(ctx, field)
  44442. }
  44443. return nil, fmt.Errorf("no field named %q was found under type CompanyLocationConnection", field.Name)
  44444. },
  44445. }
  44446. defer func() {
  44447. if r := recover(); r != nil {
  44448. err = ec.Recover(ctx, r)
  44449. ec.Error(ctx, err)
  44450. }
  44451. }()
  44452. ctx = graphql.WithFieldContext(ctx, fc)
  44453. if fc.Args, err = ec.field_Company_locations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  44454. ec.Error(ctx, err)
  44455. return
  44456. }
  44457. return fc, nil
  44458. }
  44459. func (ec *executionContext) _Company_mainContact(ctx context.Context, field graphql.CollectedField, obj *Company) (ret graphql.Marshaler) {
  44460. fc, err := ec.fieldContext_Company_mainContact(ctx, field)
  44461. if err != nil {
  44462. return graphql.Null
  44463. }
  44464. ctx = graphql.WithFieldContext(ctx, fc)
  44465. defer func() {
  44466. if r := recover(); r != nil {
  44467. ec.Error(ctx, ec.Recover(ctx, r))
  44468. ret = graphql.Null
  44469. }
  44470. }()
  44471. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  44472. ctx = rctx // use context from middleware stack in children
  44473. return obj.MainContact, nil
  44474. })
  44475. if err != nil {
  44476. ec.Error(ctx, err)
  44477. return graphql.Null
  44478. }
  44479. if resTmp == nil {
  44480. return graphql.Null
  44481. }
  44482. res := resTmp.(*CompanyContact)
  44483. fc.Result = res
  44484. return ec.marshalOCompanyContact2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContact(ctx, field.Selections, res)
  44485. }
  44486. func (ec *executionContext) fieldContext_Company_mainContact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  44487. fc = &graphql.FieldContext{
  44488. Object: "Company",
  44489. Field: field,
  44490. IsMethod: false,
  44491. IsResolver: false,
  44492. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  44493. switch field.Name {
  44494. case "company":
  44495. return ec.fieldContext_CompanyContact_company(ctx, field)
  44496. case "createdAt":
  44497. return ec.fieldContext_CompanyContact_createdAt(ctx, field)
  44498. case "customer":
  44499. return ec.fieldContext_CompanyContact_customer(ctx, field)
  44500. case "draftOrders":
  44501. return ec.fieldContext_CompanyContact_draftOrders(ctx, field)
  44502. case "id":
  44503. return ec.fieldContext_CompanyContact_id(ctx, field)
  44504. case "isMainContact":
  44505. return ec.fieldContext_CompanyContact_isMainContact(ctx, field)
  44506. case "lifetimeDuration":
  44507. return ec.fieldContext_CompanyContact_lifetimeDuration(ctx, field)
  44508. case "locale":
  44509. return ec.fieldContext_CompanyContact_locale(ctx, field)
  44510. case "orders":
  44511. return ec.fieldContext_CompanyContact_orders(ctx, field)
  44512. case "roleAssignments":
  44513. return ec.fieldContext_CompanyContact_roleAssignments(ctx, field)
  44514. case "title":
  44515. return ec.fieldContext_CompanyContact_title(ctx, field)
  44516. case "updatedAt":
  44517. return ec.fieldContext_CompanyContact_updatedAt(ctx, field)
  44518. }
  44519. return nil, fmt.Errorf("no field named %q was found under type CompanyContact", field.Name)
  44520. },
  44521. }
  44522. return fc, nil
  44523. }
  44524. func (ec *executionContext) _Company_name(ctx context.Context, field graphql.CollectedField, obj *Company) (ret graphql.Marshaler) {
  44525. fc, err := ec.fieldContext_Company_name(ctx, field)
  44526. if err != nil {
  44527. return graphql.Null
  44528. }
  44529. ctx = graphql.WithFieldContext(ctx, fc)
  44530. defer func() {
  44531. if r := recover(); r != nil {
  44532. ec.Error(ctx, ec.Recover(ctx, r))
  44533. ret = graphql.Null
  44534. }
  44535. }()
  44536. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  44537. ctx = rctx // use context from middleware stack in children
  44538. return obj.Name, nil
  44539. })
  44540. if err != nil {
  44541. ec.Error(ctx, err)
  44542. return graphql.Null
  44543. }
  44544. if resTmp == nil {
  44545. if !graphql.HasFieldError(ctx, fc) {
  44546. ec.Errorf(ctx, "must not be null")
  44547. }
  44548. return graphql.Null
  44549. }
  44550. res := resTmp.(string)
  44551. fc.Result = res
  44552. return ec.marshalNString2string(ctx, field.Selections, res)
  44553. }
  44554. func (ec *executionContext) fieldContext_Company_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  44555. fc = &graphql.FieldContext{
  44556. Object: "Company",
  44557. Field: field,
  44558. IsMethod: false,
  44559. IsResolver: false,
  44560. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  44561. return nil, errors.New("field of type String does not have child fields")
  44562. },
  44563. }
  44564. return fc, nil
  44565. }
  44566. func (ec *executionContext) _Company_note(ctx context.Context, field graphql.CollectedField, obj *Company) (ret graphql.Marshaler) {
  44567. fc, err := ec.fieldContext_Company_note(ctx, field)
  44568. if err != nil {
  44569. return graphql.Null
  44570. }
  44571. ctx = graphql.WithFieldContext(ctx, fc)
  44572. defer func() {
  44573. if r := recover(); r != nil {
  44574. ec.Error(ctx, ec.Recover(ctx, r))
  44575. ret = graphql.Null
  44576. }
  44577. }()
  44578. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  44579. ctx = rctx // use context from middleware stack in children
  44580. return obj.Note, nil
  44581. })
  44582. if err != nil {
  44583. ec.Error(ctx, err)
  44584. return graphql.Null
  44585. }
  44586. if resTmp == nil {
  44587. return graphql.Null
  44588. }
  44589. res := resTmp.(*string)
  44590. fc.Result = res
  44591. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  44592. }
  44593. func (ec *executionContext) fieldContext_Company_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  44594. fc = &graphql.FieldContext{
  44595. Object: "Company",
  44596. Field: field,
  44597. IsMethod: false,
  44598. IsResolver: false,
  44599. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  44600. return nil, errors.New("field of type String does not have child fields")
  44601. },
  44602. }
  44603. return fc, nil
  44604. }
  44605. func (ec *executionContext) _Company_orderCount(ctx context.Context, field graphql.CollectedField, obj *Company) (ret graphql.Marshaler) {
  44606. fc, err := ec.fieldContext_Company_orderCount(ctx, field)
  44607. if err != nil {
  44608. return graphql.Null
  44609. }
  44610. ctx = graphql.WithFieldContext(ctx, fc)
  44611. defer func() {
  44612. if r := recover(); r != nil {
  44613. ec.Error(ctx, ec.Recover(ctx, r))
  44614. ret = graphql.Null
  44615. }
  44616. }()
  44617. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  44618. ctx = rctx // use context from middleware stack in children
  44619. return obj.OrderCount, nil
  44620. })
  44621. if err != nil {
  44622. ec.Error(ctx, err)
  44623. return graphql.Null
  44624. }
  44625. if resTmp == nil {
  44626. if !graphql.HasFieldError(ctx, fc) {
  44627. ec.Errorf(ctx, "must not be null")
  44628. }
  44629. return graphql.Null
  44630. }
  44631. res := resTmp.(int)
  44632. fc.Result = res
  44633. return ec.marshalNInt2int(ctx, field.Selections, res)
  44634. }
  44635. func (ec *executionContext) fieldContext_Company_orderCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  44636. fc = &graphql.FieldContext{
  44637. Object: "Company",
  44638. Field: field,
  44639. IsMethod: false,
  44640. IsResolver: false,
  44641. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  44642. return nil, errors.New("field of type Int does not have child fields")
  44643. },
  44644. }
  44645. return fc, nil
  44646. }
  44647. func (ec *executionContext) _Company_orders(ctx context.Context, field graphql.CollectedField, obj *Company) (ret graphql.Marshaler) {
  44648. fc, err := ec.fieldContext_Company_orders(ctx, field)
  44649. if err != nil {
  44650. return graphql.Null
  44651. }
  44652. ctx = graphql.WithFieldContext(ctx, fc)
  44653. defer func() {
  44654. if r := recover(); r != nil {
  44655. ec.Error(ctx, ec.Recover(ctx, r))
  44656. ret = graphql.Null
  44657. }
  44658. }()
  44659. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  44660. ctx = rctx // use context from middleware stack in children
  44661. return obj.Orders, nil
  44662. })
  44663. if err != nil {
  44664. ec.Error(ctx, err)
  44665. return graphql.Null
  44666. }
  44667. if resTmp == nil {
  44668. if !graphql.HasFieldError(ctx, fc) {
  44669. ec.Errorf(ctx, "must not be null")
  44670. }
  44671. return graphql.Null
  44672. }
  44673. res := resTmp.(*OrderConnection)
  44674. fc.Result = res
  44675. return ec.marshalNOrderConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderConnection(ctx, field.Selections, res)
  44676. }
  44677. func (ec *executionContext) fieldContext_Company_orders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  44678. fc = &graphql.FieldContext{
  44679. Object: "Company",
  44680. Field: field,
  44681. IsMethod: false,
  44682. IsResolver: false,
  44683. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  44684. switch field.Name {
  44685. case "edges":
  44686. return ec.fieldContext_OrderConnection_edges(ctx, field)
  44687. case "nodes":
  44688. return ec.fieldContext_OrderConnection_nodes(ctx, field)
  44689. case "pageInfo":
  44690. return ec.fieldContext_OrderConnection_pageInfo(ctx, field)
  44691. }
  44692. return nil, fmt.Errorf("no field named %q was found under type OrderConnection", field.Name)
  44693. },
  44694. }
  44695. defer func() {
  44696. if r := recover(); r != nil {
  44697. err = ec.Recover(ctx, r)
  44698. ec.Error(ctx, err)
  44699. }
  44700. }()
  44701. ctx = graphql.WithFieldContext(ctx, fc)
  44702. if fc.Args, err = ec.field_Company_orders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  44703. ec.Error(ctx, err)
  44704. return
  44705. }
  44706. return fc, nil
  44707. }
  44708. func (ec *executionContext) _Company_totalSpent(ctx context.Context, field graphql.CollectedField, obj *Company) (ret graphql.Marshaler) {
  44709. fc, err := ec.fieldContext_Company_totalSpent(ctx, field)
  44710. if err != nil {
  44711. return graphql.Null
  44712. }
  44713. ctx = graphql.WithFieldContext(ctx, fc)
  44714. defer func() {
  44715. if r := recover(); r != nil {
  44716. ec.Error(ctx, ec.Recover(ctx, r))
  44717. ret = graphql.Null
  44718. }
  44719. }()
  44720. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  44721. ctx = rctx // use context from middleware stack in children
  44722. return obj.TotalSpent, nil
  44723. })
  44724. if err != nil {
  44725. ec.Error(ctx, err)
  44726. return graphql.Null
  44727. }
  44728. if resTmp == nil {
  44729. if !graphql.HasFieldError(ctx, fc) {
  44730. ec.Errorf(ctx, "must not be null")
  44731. }
  44732. return graphql.Null
  44733. }
  44734. res := resTmp.(*MoneyV2)
  44735. fc.Result = res
  44736. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  44737. }
  44738. func (ec *executionContext) fieldContext_Company_totalSpent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  44739. fc = &graphql.FieldContext{
  44740. Object: "Company",
  44741. Field: field,
  44742. IsMethod: false,
  44743. IsResolver: false,
  44744. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  44745. switch field.Name {
  44746. case "amount":
  44747. return ec.fieldContext_MoneyV2_amount(ctx, field)
  44748. case "currencyCode":
  44749. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  44750. }
  44751. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  44752. },
  44753. }
  44754. return fc, nil
  44755. }
  44756. func (ec *executionContext) _Company_updatedAt(ctx context.Context, field graphql.CollectedField, obj *Company) (ret graphql.Marshaler) {
  44757. fc, err := ec.fieldContext_Company_updatedAt(ctx, field)
  44758. if err != nil {
  44759. return graphql.Null
  44760. }
  44761. ctx = graphql.WithFieldContext(ctx, fc)
  44762. defer func() {
  44763. if r := recover(); r != nil {
  44764. ec.Error(ctx, ec.Recover(ctx, r))
  44765. ret = graphql.Null
  44766. }
  44767. }()
  44768. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  44769. ctx = rctx // use context from middleware stack in children
  44770. return obj.UpdatedAt, nil
  44771. })
  44772. if err != nil {
  44773. ec.Error(ctx, err)
  44774. return graphql.Null
  44775. }
  44776. if resTmp == nil {
  44777. if !graphql.HasFieldError(ctx, fc) {
  44778. ec.Errorf(ctx, "must not be null")
  44779. }
  44780. return graphql.Null
  44781. }
  44782. res := resTmp.(string)
  44783. fc.Result = res
  44784. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  44785. }
  44786. func (ec *executionContext) fieldContext_Company_updatedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  44787. fc = &graphql.FieldContext{
  44788. Object: "Company",
  44789. Field: field,
  44790. IsMethod: false,
  44791. IsResolver: false,
  44792. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  44793. return nil, errors.New("field of type DateTime does not have child fields")
  44794. },
  44795. }
  44796. return fc, nil
  44797. }
  44798. func (ec *executionContext) _CompanyAddress_address1(ctx context.Context, field graphql.CollectedField, obj *CompanyAddress) (ret graphql.Marshaler) {
  44799. fc, err := ec.fieldContext_CompanyAddress_address1(ctx, field)
  44800. if err != nil {
  44801. return graphql.Null
  44802. }
  44803. ctx = graphql.WithFieldContext(ctx, fc)
  44804. defer func() {
  44805. if r := recover(); r != nil {
  44806. ec.Error(ctx, ec.Recover(ctx, r))
  44807. ret = graphql.Null
  44808. }
  44809. }()
  44810. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  44811. ctx = rctx // use context from middleware stack in children
  44812. return obj.Address1, nil
  44813. })
  44814. if err != nil {
  44815. ec.Error(ctx, err)
  44816. return graphql.Null
  44817. }
  44818. if resTmp == nil {
  44819. if !graphql.HasFieldError(ctx, fc) {
  44820. ec.Errorf(ctx, "must not be null")
  44821. }
  44822. return graphql.Null
  44823. }
  44824. res := resTmp.(string)
  44825. fc.Result = res
  44826. return ec.marshalNString2string(ctx, field.Selections, res)
  44827. }
  44828. func (ec *executionContext) fieldContext_CompanyAddress_address1(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  44829. fc = &graphql.FieldContext{
  44830. Object: "CompanyAddress",
  44831. Field: field,
  44832. IsMethod: false,
  44833. IsResolver: false,
  44834. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  44835. return nil, errors.New("field of type String does not have child fields")
  44836. },
  44837. }
  44838. return fc, nil
  44839. }
  44840. func (ec *executionContext) _CompanyAddress_address2(ctx context.Context, field graphql.CollectedField, obj *CompanyAddress) (ret graphql.Marshaler) {
  44841. fc, err := ec.fieldContext_CompanyAddress_address2(ctx, field)
  44842. if err != nil {
  44843. return graphql.Null
  44844. }
  44845. ctx = graphql.WithFieldContext(ctx, fc)
  44846. defer func() {
  44847. if r := recover(); r != nil {
  44848. ec.Error(ctx, ec.Recover(ctx, r))
  44849. ret = graphql.Null
  44850. }
  44851. }()
  44852. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  44853. ctx = rctx // use context from middleware stack in children
  44854. return obj.Address2, nil
  44855. })
  44856. if err != nil {
  44857. ec.Error(ctx, err)
  44858. return graphql.Null
  44859. }
  44860. if resTmp == nil {
  44861. return graphql.Null
  44862. }
  44863. res := resTmp.(*string)
  44864. fc.Result = res
  44865. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  44866. }
  44867. func (ec *executionContext) fieldContext_CompanyAddress_address2(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  44868. fc = &graphql.FieldContext{
  44869. Object: "CompanyAddress",
  44870. Field: field,
  44871. IsMethod: false,
  44872. IsResolver: false,
  44873. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  44874. return nil, errors.New("field of type String does not have child fields")
  44875. },
  44876. }
  44877. return fc, nil
  44878. }
  44879. func (ec *executionContext) _CompanyAddress_city(ctx context.Context, field graphql.CollectedField, obj *CompanyAddress) (ret graphql.Marshaler) {
  44880. fc, err := ec.fieldContext_CompanyAddress_city(ctx, field)
  44881. if err != nil {
  44882. return graphql.Null
  44883. }
  44884. ctx = graphql.WithFieldContext(ctx, fc)
  44885. defer func() {
  44886. if r := recover(); r != nil {
  44887. ec.Error(ctx, ec.Recover(ctx, r))
  44888. ret = graphql.Null
  44889. }
  44890. }()
  44891. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  44892. ctx = rctx // use context from middleware stack in children
  44893. return obj.City, nil
  44894. })
  44895. if err != nil {
  44896. ec.Error(ctx, err)
  44897. return graphql.Null
  44898. }
  44899. if resTmp == nil {
  44900. return graphql.Null
  44901. }
  44902. res := resTmp.(*string)
  44903. fc.Result = res
  44904. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  44905. }
  44906. func (ec *executionContext) fieldContext_CompanyAddress_city(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  44907. fc = &graphql.FieldContext{
  44908. Object: "CompanyAddress",
  44909. Field: field,
  44910. IsMethod: false,
  44911. IsResolver: false,
  44912. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  44913. return nil, errors.New("field of type String does not have child fields")
  44914. },
  44915. }
  44916. return fc, nil
  44917. }
  44918. func (ec *executionContext) _CompanyAddress_companyName(ctx context.Context, field graphql.CollectedField, obj *CompanyAddress) (ret graphql.Marshaler) {
  44919. fc, err := ec.fieldContext_CompanyAddress_companyName(ctx, field)
  44920. if err != nil {
  44921. return graphql.Null
  44922. }
  44923. ctx = graphql.WithFieldContext(ctx, fc)
  44924. defer func() {
  44925. if r := recover(); r != nil {
  44926. ec.Error(ctx, ec.Recover(ctx, r))
  44927. ret = graphql.Null
  44928. }
  44929. }()
  44930. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  44931. ctx = rctx // use context from middleware stack in children
  44932. return obj.CompanyName, nil
  44933. })
  44934. if err != nil {
  44935. ec.Error(ctx, err)
  44936. return graphql.Null
  44937. }
  44938. if resTmp == nil {
  44939. if !graphql.HasFieldError(ctx, fc) {
  44940. ec.Errorf(ctx, "must not be null")
  44941. }
  44942. return graphql.Null
  44943. }
  44944. res := resTmp.(string)
  44945. fc.Result = res
  44946. return ec.marshalNString2string(ctx, field.Selections, res)
  44947. }
  44948. func (ec *executionContext) fieldContext_CompanyAddress_companyName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  44949. fc = &graphql.FieldContext{
  44950. Object: "CompanyAddress",
  44951. Field: field,
  44952. IsMethod: false,
  44953. IsResolver: false,
  44954. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  44955. return nil, errors.New("field of type String does not have child fields")
  44956. },
  44957. }
  44958. return fc, nil
  44959. }
  44960. func (ec *executionContext) _CompanyAddress_country(ctx context.Context, field graphql.CollectedField, obj *CompanyAddress) (ret graphql.Marshaler) {
  44961. fc, err := ec.fieldContext_CompanyAddress_country(ctx, field)
  44962. if err != nil {
  44963. return graphql.Null
  44964. }
  44965. ctx = graphql.WithFieldContext(ctx, fc)
  44966. defer func() {
  44967. if r := recover(); r != nil {
  44968. ec.Error(ctx, ec.Recover(ctx, r))
  44969. ret = graphql.Null
  44970. }
  44971. }()
  44972. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  44973. ctx = rctx // use context from middleware stack in children
  44974. return obj.Country, nil
  44975. })
  44976. if err != nil {
  44977. ec.Error(ctx, err)
  44978. return graphql.Null
  44979. }
  44980. if resTmp == nil {
  44981. return graphql.Null
  44982. }
  44983. res := resTmp.(*string)
  44984. fc.Result = res
  44985. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  44986. }
  44987. func (ec *executionContext) fieldContext_CompanyAddress_country(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  44988. fc = &graphql.FieldContext{
  44989. Object: "CompanyAddress",
  44990. Field: field,
  44991. IsMethod: false,
  44992. IsResolver: false,
  44993. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  44994. return nil, errors.New("field of type String does not have child fields")
  44995. },
  44996. }
  44997. return fc, nil
  44998. }
  44999. func (ec *executionContext) _CompanyAddress_countryCode(ctx context.Context, field graphql.CollectedField, obj *CompanyAddress) (ret graphql.Marshaler) {
  45000. fc, err := ec.fieldContext_CompanyAddress_countryCode(ctx, field)
  45001. if err != nil {
  45002. return graphql.Null
  45003. }
  45004. ctx = graphql.WithFieldContext(ctx, fc)
  45005. defer func() {
  45006. if r := recover(); r != nil {
  45007. ec.Error(ctx, ec.Recover(ctx, r))
  45008. ret = graphql.Null
  45009. }
  45010. }()
  45011. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  45012. ctx = rctx // use context from middleware stack in children
  45013. return obj.CountryCode, nil
  45014. })
  45015. if err != nil {
  45016. ec.Error(ctx, err)
  45017. return graphql.Null
  45018. }
  45019. if resTmp == nil {
  45020. if !graphql.HasFieldError(ctx, fc) {
  45021. ec.Errorf(ctx, "must not be null")
  45022. }
  45023. return graphql.Null
  45024. }
  45025. res := resTmp.(CountryCode)
  45026. fc.Result = res
  45027. return ec.marshalNCountryCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCode(ctx, field.Selections, res)
  45028. }
  45029. func (ec *executionContext) fieldContext_CompanyAddress_countryCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  45030. fc = &graphql.FieldContext{
  45031. Object: "CompanyAddress",
  45032. Field: field,
  45033. IsMethod: false,
  45034. IsResolver: false,
  45035. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  45036. return nil, errors.New("field of type CountryCode does not have child fields")
  45037. },
  45038. }
  45039. return fc, nil
  45040. }
  45041. func (ec *executionContext) _CompanyAddress_createdAt(ctx context.Context, field graphql.CollectedField, obj *CompanyAddress) (ret graphql.Marshaler) {
  45042. fc, err := ec.fieldContext_CompanyAddress_createdAt(ctx, field)
  45043. if err != nil {
  45044. return graphql.Null
  45045. }
  45046. ctx = graphql.WithFieldContext(ctx, fc)
  45047. defer func() {
  45048. if r := recover(); r != nil {
  45049. ec.Error(ctx, ec.Recover(ctx, r))
  45050. ret = graphql.Null
  45051. }
  45052. }()
  45053. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  45054. ctx = rctx // use context from middleware stack in children
  45055. return obj.CreatedAt, nil
  45056. })
  45057. if err != nil {
  45058. ec.Error(ctx, err)
  45059. return graphql.Null
  45060. }
  45061. if resTmp == nil {
  45062. if !graphql.HasFieldError(ctx, fc) {
  45063. ec.Errorf(ctx, "must not be null")
  45064. }
  45065. return graphql.Null
  45066. }
  45067. res := resTmp.(string)
  45068. fc.Result = res
  45069. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  45070. }
  45071. func (ec *executionContext) fieldContext_CompanyAddress_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  45072. fc = &graphql.FieldContext{
  45073. Object: "CompanyAddress",
  45074. Field: field,
  45075. IsMethod: false,
  45076. IsResolver: false,
  45077. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  45078. return nil, errors.New("field of type DateTime does not have child fields")
  45079. },
  45080. }
  45081. return fc, nil
  45082. }
  45083. func (ec *executionContext) _CompanyAddress_formattedArea(ctx context.Context, field graphql.CollectedField, obj *CompanyAddress) (ret graphql.Marshaler) {
  45084. fc, err := ec.fieldContext_CompanyAddress_formattedArea(ctx, field)
  45085. if err != nil {
  45086. return graphql.Null
  45087. }
  45088. ctx = graphql.WithFieldContext(ctx, fc)
  45089. defer func() {
  45090. if r := recover(); r != nil {
  45091. ec.Error(ctx, ec.Recover(ctx, r))
  45092. ret = graphql.Null
  45093. }
  45094. }()
  45095. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  45096. ctx = rctx // use context from middleware stack in children
  45097. return obj.FormattedArea, nil
  45098. })
  45099. if err != nil {
  45100. ec.Error(ctx, err)
  45101. return graphql.Null
  45102. }
  45103. if resTmp == nil {
  45104. return graphql.Null
  45105. }
  45106. res := resTmp.(*string)
  45107. fc.Result = res
  45108. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  45109. }
  45110. func (ec *executionContext) fieldContext_CompanyAddress_formattedArea(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  45111. fc = &graphql.FieldContext{
  45112. Object: "CompanyAddress",
  45113. Field: field,
  45114. IsMethod: false,
  45115. IsResolver: false,
  45116. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  45117. return nil, errors.New("field of type String does not have child fields")
  45118. },
  45119. }
  45120. return fc, nil
  45121. }
  45122. func (ec *executionContext) _CompanyAddress_id(ctx context.Context, field graphql.CollectedField, obj *CompanyAddress) (ret graphql.Marshaler) {
  45123. fc, err := ec.fieldContext_CompanyAddress_id(ctx, field)
  45124. if err != nil {
  45125. return graphql.Null
  45126. }
  45127. ctx = graphql.WithFieldContext(ctx, fc)
  45128. defer func() {
  45129. if r := recover(); r != nil {
  45130. ec.Error(ctx, ec.Recover(ctx, r))
  45131. ret = graphql.Null
  45132. }
  45133. }()
  45134. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  45135. ctx = rctx // use context from middleware stack in children
  45136. return obj.ID, nil
  45137. })
  45138. if err != nil {
  45139. ec.Error(ctx, err)
  45140. return graphql.Null
  45141. }
  45142. if resTmp == nil {
  45143. if !graphql.HasFieldError(ctx, fc) {
  45144. ec.Errorf(ctx, "must not be null")
  45145. }
  45146. return graphql.Null
  45147. }
  45148. res := resTmp.(string)
  45149. fc.Result = res
  45150. return ec.marshalNID2string(ctx, field.Selections, res)
  45151. }
  45152. func (ec *executionContext) fieldContext_CompanyAddress_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  45153. fc = &graphql.FieldContext{
  45154. Object: "CompanyAddress",
  45155. Field: field,
  45156. IsMethod: false,
  45157. IsResolver: false,
  45158. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  45159. return nil, errors.New("field of type ID does not have child fields")
  45160. },
  45161. }
  45162. return fc, nil
  45163. }
  45164. func (ec *executionContext) _CompanyAddress_phone(ctx context.Context, field graphql.CollectedField, obj *CompanyAddress) (ret graphql.Marshaler) {
  45165. fc, err := ec.fieldContext_CompanyAddress_phone(ctx, field)
  45166. if err != nil {
  45167. return graphql.Null
  45168. }
  45169. ctx = graphql.WithFieldContext(ctx, fc)
  45170. defer func() {
  45171. if r := recover(); r != nil {
  45172. ec.Error(ctx, ec.Recover(ctx, r))
  45173. ret = graphql.Null
  45174. }
  45175. }()
  45176. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  45177. ctx = rctx // use context from middleware stack in children
  45178. return obj.Phone, nil
  45179. })
  45180. if err != nil {
  45181. ec.Error(ctx, err)
  45182. return graphql.Null
  45183. }
  45184. if resTmp == nil {
  45185. return graphql.Null
  45186. }
  45187. res := resTmp.(*string)
  45188. fc.Result = res
  45189. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  45190. }
  45191. func (ec *executionContext) fieldContext_CompanyAddress_phone(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  45192. fc = &graphql.FieldContext{
  45193. Object: "CompanyAddress",
  45194. Field: field,
  45195. IsMethod: false,
  45196. IsResolver: false,
  45197. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  45198. return nil, errors.New("field of type String does not have child fields")
  45199. },
  45200. }
  45201. return fc, nil
  45202. }
  45203. func (ec *executionContext) _CompanyAddress_province(ctx context.Context, field graphql.CollectedField, obj *CompanyAddress) (ret graphql.Marshaler) {
  45204. fc, err := ec.fieldContext_CompanyAddress_province(ctx, field)
  45205. if err != nil {
  45206. return graphql.Null
  45207. }
  45208. ctx = graphql.WithFieldContext(ctx, fc)
  45209. defer func() {
  45210. if r := recover(); r != nil {
  45211. ec.Error(ctx, ec.Recover(ctx, r))
  45212. ret = graphql.Null
  45213. }
  45214. }()
  45215. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  45216. ctx = rctx // use context from middleware stack in children
  45217. return obj.Province, nil
  45218. })
  45219. if err != nil {
  45220. ec.Error(ctx, err)
  45221. return graphql.Null
  45222. }
  45223. if resTmp == nil {
  45224. return graphql.Null
  45225. }
  45226. res := resTmp.(*string)
  45227. fc.Result = res
  45228. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  45229. }
  45230. func (ec *executionContext) fieldContext_CompanyAddress_province(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  45231. fc = &graphql.FieldContext{
  45232. Object: "CompanyAddress",
  45233. Field: field,
  45234. IsMethod: false,
  45235. IsResolver: false,
  45236. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  45237. return nil, errors.New("field of type String does not have child fields")
  45238. },
  45239. }
  45240. return fc, nil
  45241. }
  45242. func (ec *executionContext) _CompanyAddress_recipient(ctx context.Context, field graphql.CollectedField, obj *CompanyAddress) (ret graphql.Marshaler) {
  45243. fc, err := ec.fieldContext_CompanyAddress_recipient(ctx, field)
  45244. if err != nil {
  45245. return graphql.Null
  45246. }
  45247. ctx = graphql.WithFieldContext(ctx, fc)
  45248. defer func() {
  45249. if r := recover(); r != nil {
  45250. ec.Error(ctx, ec.Recover(ctx, r))
  45251. ret = graphql.Null
  45252. }
  45253. }()
  45254. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  45255. ctx = rctx // use context from middleware stack in children
  45256. return obj.Recipient, nil
  45257. })
  45258. if err != nil {
  45259. ec.Error(ctx, err)
  45260. return graphql.Null
  45261. }
  45262. if resTmp == nil {
  45263. return graphql.Null
  45264. }
  45265. res := resTmp.(*string)
  45266. fc.Result = res
  45267. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  45268. }
  45269. func (ec *executionContext) fieldContext_CompanyAddress_recipient(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  45270. fc = &graphql.FieldContext{
  45271. Object: "CompanyAddress",
  45272. Field: field,
  45273. IsMethod: false,
  45274. IsResolver: false,
  45275. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  45276. return nil, errors.New("field of type String does not have child fields")
  45277. },
  45278. }
  45279. return fc, nil
  45280. }
  45281. func (ec *executionContext) _CompanyAddress_updatedAt(ctx context.Context, field graphql.CollectedField, obj *CompanyAddress) (ret graphql.Marshaler) {
  45282. fc, err := ec.fieldContext_CompanyAddress_updatedAt(ctx, field)
  45283. if err != nil {
  45284. return graphql.Null
  45285. }
  45286. ctx = graphql.WithFieldContext(ctx, fc)
  45287. defer func() {
  45288. if r := recover(); r != nil {
  45289. ec.Error(ctx, ec.Recover(ctx, r))
  45290. ret = graphql.Null
  45291. }
  45292. }()
  45293. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  45294. ctx = rctx // use context from middleware stack in children
  45295. return obj.UpdatedAt, nil
  45296. })
  45297. if err != nil {
  45298. ec.Error(ctx, err)
  45299. return graphql.Null
  45300. }
  45301. if resTmp == nil {
  45302. if !graphql.HasFieldError(ctx, fc) {
  45303. ec.Errorf(ctx, "must not be null")
  45304. }
  45305. return graphql.Null
  45306. }
  45307. res := resTmp.(string)
  45308. fc.Result = res
  45309. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  45310. }
  45311. func (ec *executionContext) fieldContext_CompanyAddress_updatedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  45312. fc = &graphql.FieldContext{
  45313. Object: "CompanyAddress",
  45314. Field: field,
  45315. IsMethod: false,
  45316. IsResolver: false,
  45317. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  45318. return nil, errors.New("field of type DateTime does not have child fields")
  45319. },
  45320. }
  45321. return fc, nil
  45322. }
  45323. func (ec *executionContext) _CompanyAddress_zip(ctx context.Context, field graphql.CollectedField, obj *CompanyAddress) (ret graphql.Marshaler) {
  45324. fc, err := ec.fieldContext_CompanyAddress_zip(ctx, field)
  45325. if err != nil {
  45326. return graphql.Null
  45327. }
  45328. ctx = graphql.WithFieldContext(ctx, fc)
  45329. defer func() {
  45330. if r := recover(); r != nil {
  45331. ec.Error(ctx, ec.Recover(ctx, r))
  45332. ret = graphql.Null
  45333. }
  45334. }()
  45335. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  45336. ctx = rctx // use context from middleware stack in children
  45337. return obj.Zip, nil
  45338. })
  45339. if err != nil {
  45340. ec.Error(ctx, err)
  45341. return graphql.Null
  45342. }
  45343. if resTmp == nil {
  45344. return graphql.Null
  45345. }
  45346. res := resTmp.(*string)
  45347. fc.Result = res
  45348. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  45349. }
  45350. func (ec *executionContext) fieldContext_CompanyAddress_zip(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  45351. fc = &graphql.FieldContext{
  45352. Object: "CompanyAddress",
  45353. Field: field,
  45354. IsMethod: false,
  45355. IsResolver: false,
  45356. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  45357. return nil, errors.New("field of type String does not have child fields")
  45358. },
  45359. }
  45360. return fc, nil
  45361. }
  45362. func (ec *executionContext) _CompanyAddress_zoneCode(ctx context.Context, field graphql.CollectedField, obj *CompanyAddress) (ret graphql.Marshaler) {
  45363. fc, err := ec.fieldContext_CompanyAddress_zoneCode(ctx, field)
  45364. if err != nil {
  45365. return graphql.Null
  45366. }
  45367. ctx = graphql.WithFieldContext(ctx, fc)
  45368. defer func() {
  45369. if r := recover(); r != nil {
  45370. ec.Error(ctx, ec.Recover(ctx, r))
  45371. ret = graphql.Null
  45372. }
  45373. }()
  45374. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  45375. ctx = rctx // use context from middleware stack in children
  45376. return obj.ZoneCode, nil
  45377. })
  45378. if err != nil {
  45379. ec.Error(ctx, err)
  45380. return graphql.Null
  45381. }
  45382. if resTmp == nil {
  45383. return graphql.Null
  45384. }
  45385. res := resTmp.(*string)
  45386. fc.Result = res
  45387. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  45388. }
  45389. func (ec *executionContext) fieldContext_CompanyAddress_zoneCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  45390. fc = &graphql.FieldContext{
  45391. Object: "CompanyAddress",
  45392. Field: field,
  45393. IsMethod: false,
  45394. IsResolver: false,
  45395. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  45396. return nil, errors.New("field of type String does not have child fields")
  45397. },
  45398. }
  45399. return fc, nil
  45400. }
  45401. func (ec *executionContext) _CompanyContact_company(ctx context.Context, field graphql.CollectedField, obj *CompanyContact) (ret graphql.Marshaler) {
  45402. fc, err := ec.fieldContext_CompanyContact_company(ctx, field)
  45403. if err != nil {
  45404. return graphql.Null
  45405. }
  45406. ctx = graphql.WithFieldContext(ctx, fc)
  45407. defer func() {
  45408. if r := recover(); r != nil {
  45409. ec.Error(ctx, ec.Recover(ctx, r))
  45410. ret = graphql.Null
  45411. }
  45412. }()
  45413. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  45414. ctx = rctx // use context from middleware stack in children
  45415. return obj.Company, nil
  45416. })
  45417. if err != nil {
  45418. ec.Error(ctx, err)
  45419. return graphql.Null
  45420. }
  45421. if resTmp == nil {
  45422. if !graphql.HasFieldError(ctx, fc) {
  45423. ec.Errorf(ctx, "must not be null")
  45424. }
  45425. return graphql.Null
  45426. }
  45427. res := resTmp.(*Company)
  45428. fc.Result = res
  45429. return ec.marshalNCompany2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompany(ctx, field.Selections, res)
  45430. }
  45431. func (ec *executionContext) fieldContext_CompanyContact_company(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  45432. fc = &graphql.FieldContext{
  45433. Object: "CompanyContact",
  45434. Field: field,
  45435. IsMethod: false,
  45436. IsResolver: false,
  45437. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  45438. switch field.Name {
  45439. case "contactCount":
  45440. return ec.fieldContext_Company_contactCount(ctx, field)
  45441. case "contactRoles":
  45442. return ec.fieldContext_Company_contactRoles(ctx, field)
  45443. case "contacts":
  45444. return ec.fieldContext_Company_contacts(ctx, field)
  45445. case "createdAt":
  45446. return ec.fieldContext_Company_createdAt(ctx, field)
  45447. case "customerSince":
  45448. return ec.fieldContext_Company_customerSince(ctx, field)
  45449. case "defaultCursor":
  45450. return ec.fieldContext_Company_defaultCursor(ctx, field)
  45451. case "defaultRole":
  45452. return ec.fieldContext_Company_defaultRole(ctx, field)
  45453. case "draftOrders":
  45454. return ec.fieldContext_Company_draftOrders(ctx, field)
  45455. case "events":
  45456. return ec.fieldContext_Company_events(ctx, field)
  45457. case "externalId":
  45458. return ec.fieldContext_Company_externalId(ctx, field)
  45459. case "hasTimelineComment":
  45460. return ec.fieldContext_Company_hasTimelineComment(ctx, field)
  45461. case "id":
  45462. return ec.fieldContext_Company_id(ctx, field)
  45463. case "lifetimeDuration":
  45464. return ec.fieldContext_Company_lifetimeDuration(ctx, field)
  45465. case "locationCount":
  45466. return ec.fieldContext_Company_locationCount(ctx, field)
  45467. case "locations":
  45468. return ec.fieldContext_Company_locations(ctx, field)
  45469. case "mainContact":
  45470. return ec.fieldContext_Company_mainContact(ctx, field)
  45471. case "name":
  45472. return ec.fieldContext_Company_name(ctx, field)
  45473. case "note":
  45474. return ec.fieldContext_Company_note(ctx, field)
  45475. case "orderCount":
  45476. return ec.fieldContext_Company_orderCount(ctx, field)
  45477. case "orders":
  45478. return ec.fieldContext_Company_orders(ctx, field)
  45479. case "totalSpent":
  45480. return ec.fieldContext_Company_totalSpent(ctx, field)
  45481. case "updatedAt":
  45482. return ec.fieldContext_Company_updatedAt(ctx, field)
  45483. }
  45484. return nil, fmt.Errorf("no field named %q was found under type Company", field.Name)
  45485. },
  45486. }
  45487. return fc, nil
  45488. }
  45489. func (ec *executionContext) _CompanyContact_createdAt(ctx context.Context, field graphql.CollectedField, obj *CompanyContact) (ret graphql.Marshaler) {
  45490. fc, err := ec.fieldContext_CompanyContact_createdAt(ctx, field)
  45491. if err != nil {
  45492. return graphql.Null
  45493. }
  45494. ctx = graphql.WithFieldContext(ctx, fc)
  45495. defer func() {
  45496. if r := recover(); r != nil {
  45497. ec.Error(ctx, ec.Recover(ctx, r))
  45498. ret = graphql.Null
  45499. }
  45500. }()
  45501. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  45502. ctx = rctx // use context from middleware stack in children
  45503. return obj.CreatedAt, nil
  45504. })
  45505. if err != nil {
  45506. ec.Error(ctx, err)
  45507. return graphql.Null
  45508. }
  45509. if resTmp == nil {
  45510. if !graphql.HasFieldError(ctx, fc) {
  45511. ec.Errorf(ctx, "must not be null")
  45512. }
  45513. return graphql.Null
  45514. }
  45515. res := resTmp.(string)
  45516. fc.Result = res
  45517. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  45518. }
  45519. func (ec *executionContext) fieldContext_CompanyContact_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  45520. fc = &graphql.FieldContext{
  45521. Object: "CompanyContact",
  45522. Field: field,
  45523. IsMethod: false,
  45524. IsResolver: false,
  45525. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  45526. return nil, errors.New("field of type DateTime does not have child fields")
  45527. },
  45528. }
  45529. return fc, nil
  45530. }
  45531. func (ec *executionContext) _CompanyContact_customer(ctx context.Context, field graphql.CollectedField, obj *CompanyContact) (ret graphql.Marshaler) {
  45532. fc, err := ec.fieldContext_CompanyContact_customer(ctx, field)
  45533. if err != nil {
  45534. return graphql.Null
  45535. }
  45536. ctx = graphql.WithFieldContext(ctx, fc)
  45537. defer func() {
  45538. if r := recover(); r != nil {
  45539. ec.Error(ctx, ec.Recover(ctx, r))
  45540. ret = graphql.Null
  45541. }
  45542. }()
  45543. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  45544. ctx = rctx // use context from middleware stack in children
  45545. return obj.Customer, nil
  45546. })
  45547. if err != nil {
  45548. ec.Error(ctx, err)
  45549. return graphql.Null
  45550. }
  45551. if resTmp == nil {
  45552. if !graphql.HasFieldError(ctx, fc) {
  45553. ec.Errorf(ctx, "must not be null")
  45554. }
  45555. return graphql.Null
  45556. }
  45557. res := resTmp.(*Customer)
  45558. fc.Result = res
  45559. return ec.marshalNCustomer2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomer(ctx, field.Selections, res)
  45560. }
  45561. func (ec *executionContext) fieldContext_CompanyContact_customer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  45562. fc = &graphql.FieldContext{
  45563. Object: "CompanyContact",
  45564. Field: field,
  45565. IsMethod: false,
  45566. IsResolver: false,
  45567. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  45568. switch field.Name {
  45569. case "addresses":
  45570. return ec.fieldContext_Customer_addresses(ctx, field)
  45571. case "amountSpent":
  45572. return ec.fieldContext_Customer_amountSpent(ctx, field)
  45573. case "averageOrderAmountV2":
  45574. return ec.fieldContext_Customer_averageOrderAmountV2(ctx, field)
  45575. case "canDelete":
  45576. return ec.fieldContext_Customer_canDelete(ctx, field)
  45577. case "companyContactProfiles":
  45578. return ec.fieldContext_Customer_companyContactProfiles(ctx, field)
  45579. case "createdAt":
  45580. return ec.fieldContext_Customer_createdAt(ctx, field)
  45581. case "defaultAddress":
  45582. return ec.fieldContext_Customer_defaultAddress(ctx, field)
  45583. case "displayName":
  45584. return ec.fieldContext_Customer_displayName(ctx, field)
  45585. case "email":
  45586. return ec.fieldContext_Customer_email(ctx, field)
  45587. case "emailMarketingConsent":
  45588. return ec.fieldContext_Customer_emailMarketingConsent(ctx, field)
  45589. case "events":
  45590. return ec.fieldContext_Customer_events(ctx, field)
  45591. case "firstName":
  45592. return ec.fieldContext_Customer_firstName(ctx, field)
  45593. case "hasTimelineComment":
  45594. return ec.fieldContext_Customer_hasTimelineComment(ctx, field)
  45595. case "id":
  45596. return ec.fieldContext_Customer_id(ctx, field)
  45597. case "image":
  45598. return ec.fieldContext_Customer_image(ctx, field)
  45599. case "lastName":
  45600. return ec.fieldContext_Customer_lastName(ctx, field)
  45601. case "lastOrder":
  45602. return ec.fieldContext_Customer_lastOrder(ctx, field)
  45603. case "legacyResourceId":
  45604. return ec.fieldContext_Customer_legacyResourceId(ctx, field)
  45605. case "lifetimeDuration":
  45606. return ec.fieldContext_Customer_lifetimeDuration(ctx, field)
  45607. case "locale":
  45608. return ec.fieldContext_Customer_locale(ctx, field)
  45609. case "market":
  45610. return ec.fieldContext_Customer_market(ctx, field)
  45611. case "metafield":
  45612. return ec.fieldContext_Customer_metafield(ctx, field)
  45613. case "metafieldDefinitions":
  45614. return ec.fieldContext_Customer_metafieldDefinitions(ctx, field)
  45615. case "metafields":
  45616. return ec.fieldContext_Customer_metafields(ctx, field)
  45617. case "multipassIdentifier":
  45618. return ec.fieldContext_Customer_multipassIdentifier(ctx, field)
  45619. case "note":
  45620. return ec.fieldContext_Customer_note(ctx, field)
  45621. case "numberOfOrders":
  45622. return ec.fieldContext_Customer_numberOfOrders(ctx, field)
  45623. case "orders":
  45624. return ec.fieldContext_Customer_orders(ctx, field)
  45625. case "paymentMethods":
  45626. return ec.fieldContext_Customer_paymentMethods(ctx, field)
  45627. case "phone":
  45628. return ec.fieldContext_Customer_phone(ctx, field)
  45629. case "privateMetafield":
  45630. return ec.fieldContext_Customer_privateMetafield(ctx, field)
  45631. case "privateMetafields":
  45632. return ec.fieldContext_Customer_privateMetafields(ctx, field)
  45633. case "productSubscriberStatus":
  45634. return ec.fieldContext_Customer_productSubscriberStatus(ctx, field)
  45635. case "smsMarketingConsent":
  45636. return ec.fieldContext_Customer_smsMarketingConsent(ctx, field)
  45637. case "state":
  45638. return ec.fieldContext_Customer_state(ctx, field)
  45639. case "statistics":
  45640. return ec.fieldContext_Customer_statistics(ctx, field)
  45641. case "subscriptionContracts":
  45642. return ec.fieldContext_Customer_subscriptionContracts(ctx, field)
  45643. case "tags":
  45644. return ec.fieldContext_Customer_tags(ctx, field)
  45645. case "taxExempt":
  45646. return ec.fieldContext_Customer_taxExempt(ctx, field)
  45647. case "taxExemptions":
  45648. return ec.fieldContext_Customer_taxExemptions(ctx, field)
  45649. case "unsubscribeUrl":
  45650. return ec.fieldContext_Customer_unsubscribeUrl(ctx, field)
  45651. case "updatedAt":
  45652. return ec.fieldContext_Customer_updatedAt(ctx, field)
  45653. case "validEmailAddress":
  45654. return ec.fieldContext_Customer_validEmailAddress(ctx, field)
  45655. case "verifiedEmail":
  45656. return ec.fieldContext_Customer_verifiedEmail(ctx, field)
  45657. }
  45658. return nil, fmt.Errorf("no field named %q was found under type Customer", field.Name)
  45659. },
  45660. }
  45661. return fc, nil
  45662. }
  45663. func (ec *executionContext) _CompanyContact_draftOrders(ctx context.Context, field graphql.CollectedField, obj *CompanyContact) (ret graphql.Marshaler) {
  45664. fc, err := ec.fieldContext_CompanyContact_draftOrders(ctx, field)
  45665. if err != nil {
  45666. return graphql.Null
  45667. }
  45668. ctx = graphql.WithFieldContext(ctx, fc)
  45669. defer func() {
  45670. if r := recover(); r != nil {
  45671. ec.Error(ctx, ec.Recover(ctx, r))
  45672. ret = graphql.Null
  45673. }
  45674. }()
  45675. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  45676. ctx = rctx // use context from middleware stack in children
  45677. return obj.DraftOrders, nil
  45678. })
  45679. if err != nil {
  45680. ec.Error(ctx, err)
  45681. return graphql.Null
  45682. }
  45683. if resTmp == nil {
  45684. if !graphql.HasFieldError(ctx, fc) {
  45685. ec.Errorf(ctx, "must not be null")
  45686. }
  45687. return graphql.Null
  45688. }
  45689. res := resTmp.(*DraftOrderConnection)
  45690. fc.Result = res
  45691. return ec.marshalNDraftOrderConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderConnection(ctx, field.Selections, res)
  45692. }
  45693. func (ec *executionContext) fieldContext_CompanyContact_draftOrders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  45694. fc = &graphql.FieldContext{
  45695. Object: "CompanyContact",
  45696. Field: field,
  45697. IsMethod: false,
  45698. IsResolver: false,
  45699. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  45700. switch field.Name {
  45701. case "edges":
  45702. return ec.fieldContext_DraftOrderConnection_edges(ctx, field)
  45703. case "nodes":
  45704. return ec.fieldContext_DraftOrderConnection_nodes(ctx, field)
  45705. case "pageInfo":
  45706. return ec.fieldContext_DraftOrderConnection_pageInfo(ctx, field)
  45707. }
  45708. return nil, fmt.Errorf("no field named %q was found under type DraftOrderConnection", field.Name)
  45709. },
  45710. }
  45711. defer func() {
  45712. if r := recover(); r != nil {
  45713. err = ec.Recover(ctx, r)
  45714. ec.Error(ctx, err)
  45715. }
  45716. }()
  45717. ctx = graphql.WithFieldContext(ctx, fc)
  45718. if fc.Args, err = ec.field_CompanyContact_draftOrders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  45719. ec.Error(ctx, err)
  45720. return
  45721. }
  45722. return fc, nil
  45723. }
  45724. func (ec *executionContext) _CompanyContact_id(ctx context.Context, field graphql.CollectedField, obj *CompanyContact) (ret graphql.Marshaler) {
  45725. fc, err := ec.fieldContext_CompanyContact_id(ctx, field)
  45726. if err != nil {
  45727. return graphql.Null
  45728. }
  45729. ctx = graphql.WithFieldContext(ctx, fc)
  45730. defer func() {
  45731. if r := recover(); r != nil {
  45732. ec.Error(ctx, ec.Recover(ctx, r))
  45733. ret = graphql.Null
  45734. }
  45735. }()
  45736. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  45737. ctx = rctx // use context from middleware stack in children
  45738. return obj.ID, nil
  45739. })
  45740. if err != nil {
  45741. ec.Error(ctx, err)
  45742. return graphql.Null
  45743. }
  45744. if resTmp == nil {
  45745. if !graphql.HasFieldError(ctx, fc) {
  45746. ec.Errorf(ctx, "must not be null")
  45747. }
  45748. return graphql.Null
  45749. }
  45750. res := resTmp.(string)
  45751. fc.Result = res
  45752. return ec.marshalNID2string(ctx, field.Selections, res)
  45753. }
  45754. func (ec *executionContext) fieldContext_CompanyContact_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  45755. fc = &graphql.FieldContext{
  45756. Object: "CompanyContact",
  45757. Field: field,
  45758. IsMethod: false,
  45759. IsResolver: false,
  45760. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  45761. return nil, errors.New("field of type ID does not have child fields")
  45762. },
  45763. }
  45764. return fc, nil
  45765. }
  45766. func (ec *executionContext) _CompanyContact_isMainContact(ctx context.Context, field graphql.CollectedField, obj *CompanyContact) (ret graphql.Marshaler) {
  45767. fc, err := ec.fieldContext_CompanyContact_isMainContact(ctx, field)
  45768. if err != nil {
  45769. return graphql.Null
  45770. }
  45771. ctx = graphql.WithFieldContext(ctx, fc)
  45772. defer func() {
  45773. if r := recover(); r != nil {
  45774. ec.Error(ctx, ec.Recover(ctx, r))
  45775. ret = graphql.Null
  45776. }
  45777. }()
  45778. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  45779. ctx = rctx // use context from middleware stack in children
  45780. return obj.IsMainContact, nil
  45781. })
  45782. if err != nil {
  45783. ec.Error(ctx, err)
  45784. return graphql.Null
  45785. }
  45786. if resTmp == nil {
  45787. if !graphql.HasFieldError(ctx, fc) {
  45788. ec.Errorf(ctx, "must not be null")
  45789. }
  45790. return graphql.Null
  45791. }
  45792. res := resTmp.(bool)
  45793. fc.Result = res
  45794. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  45795. }
  45796. func (ec *executionContext) fieldContext_CompanyContact_isMainContact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  45797. fc = &graphql.FieldContext{
  45798. Object: "CompanyContact",
  45799. Field: field,
  45800. IsMethod: false,
  45801. IsResolver: false,
  45802. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  45803. return nil, errors.New("field of type Boolean does not have child fields")
  45804. },
  45805. }
  45806. return fc, nil
  45807. }
  45808. func (ec *executionContext) _CompanyContact_lifetimeDuration(ctx context.Context, field graphql.CollectedField, obj *CompanyContact) (ret graphql.Marshaler) {
  45809. fc, err := ec.fieldContext_CompanyContact_lifetimeDuration(ctx, field)
  45810. if err != nil {
  45811. return graphql.Null
  45812. }
  45813. ctx = graphql.WithFieldContext(ctx, fc)
  45814. defer func() {
  45815. if r := recover(); r != nil {
  45816. ec.Error(ctx, ec.Recover(ctx, r))
  45817. ret = graphql.Null
  45818. }
  45819. }()
  45820. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  45821. ctx = rctx // use context from middleware stack in children
  45822. return obj.LifetimeDuration, nil
  45823. })
  45824. if err != nil {
  45825. ec.Error(ctx, err)
  45826. return graphql.Null
  45827. }
  45828. if resTmp == nil {
  45829. if !graphql.HasFieldError(ctx, fc) {
  45830. ec.Errorf(ctx, "must not be null")
  45831. }
  45832. return graphql.Null
  45833. }
  45834. res := resTmp.(string)
  45835. fc.Result = res
  45836. return ec.marshalNString2string(ctx, field.Selections, res)
  45837. }
  45838. func (ec *executionContext) fieldContext_CompanyContact_lifetimeDuration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  45839. fc = &graphql.FieldContext{
  45840. Object: "CompanyContact",
  45841. Field: field,
  45842. IsMethod: false,
  45843. IsResolver: false,
  45844. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  45845. return nil, errors.New("field of type String does not have child fields")
  45846. },
  45847. }
  45848. return fc, nil
  45849. }
  45850. func (ec *executionContext) _CompanyContact_locale(ctx context.Context, field graphql.CollectedField, obj *CompanyContact) (ret graphql.Marshaler) {
  45851. fc, err := ec.fieldContext_CompanyContact_locale(ctx, field)
  45852. if err != nil {
  45853. return graphql.Null
  45854. }
  45855. ctx = graphql.WithFieldContext(ctx, fc)
  45856. defer func() {
  45857. if r := recover(); r != nil {
  45858. ec.Error(ctx, ec.Recover(ctx, r))
  45859. ret = graphql.Null
  45860. }
  45861. }()
  45862. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  45863. ctx = rctx // use context from middleware stack in children
  45864. return obj.Locale, nil
  45865. })
  45866. if err != nil {
  45867. ec.Error(ctx, err)
  45868. return graphql.Null
  45869. }
  45870. if resTmp == nil {
  45871. return graphql.Null
  45872. }
  45873. res := resTmp.(*string)
  45874. fc.Result = res
  45875. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  45876. }
  45877. func (ec *executionContext) fieldContext_CompanyContact_locale(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  45878. fc = &graphql.FieldContext{
  45879. Object: "CompanyContact",
  45880. Field: field,
  45881. IsMethod: false,
  45882. IsResolver: false,
  45883. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  45884. return nil, errors.New("field of type String does not have child fields")
  45885. },
  45886. }
  45887. return fc, nil
  45888. }
  45889. func (ec *executionContext) _CompanyContact_orders(ctx context.Context, field graphql.CollectedField, obj *CompanyContact) (ret graphql.Marshaler) {
  45890. fc, err := ec.fieldContext_CompanyContact_orders(ctx, field)
  45891. if err != nil {
  45892. return graphql.Null
  45893. }
  45894. ctx = graphql.WithFieldContext(ctx, fc)
  45895. defer func() {
  45896. if r := recover(); r != nil {
  45897. ec.Error(ctx, ec.Recover(ctx, r))
  45898. ret = graphql.Null
  45899. }
  45900. }()
  45901. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  45902. ctx = rctx // use context from middleware stack in children
  45903. return obj.Orders, nil
  45904. })
  45905. if err != nil {
  45906. ec.Error(ctx, err)
  45907. return graphql.Null
  45908. }
  45909. if resTmp == nil {
  45910. if !graphql.HasFieldError(ctx, fc) {
  45911. ec.Errorf(ctx, "must not be null")
  45912. }
  45913. return graphql.Null
  45914. }
  45915. res := resTmp.(*OrderConnection)
  45916. fc.Result = res
  45917. return ec.marshalNOrderConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderConnection(ctx, field.Selections, res)
  45918. }
  45919. func (ec *executionContext) fieldContext_CompanyContact_orders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  45920. fc = &graphql.FieldContext{
  45921. Object: "CompanyContact",
  45922. Field: field,
  45923. IsMethod: false,
  45924. IsResolver: false,
  45925. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  45926. switch field.Name {
  45927. case "edges":
  45928. return ec.fieldContext_OrderConnection_edges(ctx, field)
  45929. case "nodes":
  45930. return ec.fieldContext_OrderConnection_nodes(ctx, field)
  45931. case "pageInfo":
  45932. return ec.fieldContext_OrderConnection_pageInfo(ctx, field)
  45933. }
  45934. return nil, fmt.Errorf("no field named %q was found under type OrderConnection", field.Name)
  45935. },
  45936. }
  45937. defer func() {
  45938. if r := recover(); r != nil {
  45939. err = ec.Recover(ctx, r)
  45940. ec.Error(ctx, err)
  45941. }
  45942. }()
  45943. ctx = graphql.WithFieldContext(ctx, fc)
  45944. if fc.Args, err = ec.field_CompanyContact_orders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  45945. ec.Error(ctx, err)
  45946. return
  45947. }
  45948. return fc, nil
  45949. }
  45950. func (ec *executionContext) _CompanyContact_roleAssignments(ctx context.Context, field graphql.CollectedField, obj *CompanyContact) (ret graphql.Marshaler) {
  45951. fc, err := ec.fieldContext_CompanyContact_roleAssignments(ctx, field)
  45952. if err != nil {
  45953. return graphql.Null
  45954. }
  45955. ctx = graphql.WithFieldContext(ctx, fc)
  45956. defer func() {
  45957. if r := recover(); r != nil {
  45958. ec.Error(ctx, ec.Recover(ctx, r))
  45959. ret = graphql.Null
  45960. }
  45961. }()
  45962. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  45963. ctx = rctx // use context from middleware stack in children
  45964. return obj.RoleAssignments, nil
  45965. })
  45966. if err != nil {
  45967. ec.Error(ctx, err)
  45968. return graphql.Null
  45969. }
  45970. if resTmp == nil {
  45971. if !graphql.HasFieldError(ctx, fc) {
  45972. ec.Errorf(ctx, "must not be null")
  45973. }
  45974. return graphql.Null
  45975. }
  45976. res := resTmp.(*CompanyContactRoleAssignmentConnection)
  45977. fc.Result = res
  45978. return ec.marshalNCompanyContactRoleAssignmentConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRoleAssignmentConnection(ctx, field.Selections, res)
  45979. }
  45980. func (ec *executionContext) fieldContext_CompanyContact_roleAssignments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  45981. fc = &graphql.FieldContext{
  45982. Object: "CompanyContact",
  45983. Field: field,
  45984. IsMethod: false,
  45985. IsResolver: false,
  45986. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  45987. switch field.Name {
  45988. case "edges":
  45989. return ec.fieldContext_CompanyContactRoleAssignmentConnection_edges(ctx, field)
  45990. case "nodes":
  45991. return ec.fieldContext_CompanyContactRoleAssignmentConnection_nodes(ctx, field)
  45992. case "pageInfo":
  45993. return ec.fieldContext_CompanyContactRoleAssignmentConnection_pageInfo(ctx, field)
  45994. }
  45995. return nil, fmt.Errorf("no field named %q was found under type CompanyContactRoleAssignmentConnection", field.Name)
  45996. },
  45997. }
  45998. defer func() {
  45999. if r := recover(); r != nil {
  46000. err = ec.Recover(ctx, r)
  46001. ec.Error(ctx, err)
  46002. }
  46003. }()
  46004. ctx = graphql.WithFieldContext(ctx, fc)
  46005. if fc.Args, err = ec.field_CompanyContact_roleAssignments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  46006. ec.Error(ctx, err)
  46007. return
  46008. }
  46009. return fc, nil
  46010. }
  46011. func (ec *executionContext) _CompanyContact_title(ctx context.Context, field graphql.CollectedField, obj *CompanyContact) (ret graphql.Marshaler) {
  46012. fc, err := ec.fieldContext_CompanyContact_title(ctx, field)
  46013. if err != nil {
  46014. return graphql.Null
  46015. }
  46016. ctx = graphql.WithFieldContext(ctx, fc)
  46017. defer func() {
  46018. if r := recover(); r != nil {
  46019. ec.Error(ctx, ec.Recover(ctx, r))
  46020. ret = graphql.Null
  46021. }
  46022. }()
  46023. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  46024. ctx = rctx // use context from middleware stack in children
  46025. return obj.Title, nil
  46026. })
  46027. if err != nil {
  46028. ec.Error(ctx, err)
  46029. return graphql.Null
  46030. }
  46031. if resTmp == nil {
  46032. return graphql.Null
  46033. }
  46034. res := resTmp.(*string)
  46035. fc.Result = res
  46036. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  46037. }
  46038. func (ec *executionContext) fieldContext_CompanyContact_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  46039. fc = &graphql.FieldContext{
  46040. Object: "CompanyContact",
  46041. Field: field,
  46042. IsMethod: false,
  46043. IsResolver: false,
  46044. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  46045. return nil, errors.New("field of type String does not have child fields")
  46046. },
  46047. }
  46048. return fc, nil
  46049. }
  46050. func (ec *executionContext) _CompanyContact_updatedAt(ctx context.Context, field graphql.CollectedField, obj *CompanyContact) (ret graphql.Marshaler) {
  46051. fc, err := ec.fieldContext_CompanyContact_updatedAt(ctx, field)
  46052. if err != nil {
  46053. return graphql.Null
  46054. }
  46055. ctx = graphql.WithFieldContext(ctx, fc)
  46056. defer func() {
  46057. if r := recover(); r != nil {
  46058. ec.Error(ctx, ec.Recover(ctx, r))
  46059. ret = graphql.Null
  46060. }
  46061. }()
  46062. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  46063. ctx = rctx // use context from middleware stack in children
  46064. return obj.UpdatedAt, nil
  46065. })
  46066. if err != nil {
  46067. ec.Error(ctx, err)
  46068. return graphql.Null
  46069. }
  46070. if resTmp == nil {
  46071. if !graphql.HasFieldError(ctx, fc) {
  46072. ec.Errorf(ctx, "must not be null")
  46073. }
  46074. return graphql.Null
  46075. }
  46076. res := resTmp.(string)
  46077. fc.Result = res
  46078. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  46079. }
  46080. func (ec *executionContext) fieldContext_CompanyContact_updatedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  46081. fc = &graphql.FieldContext{
  46082. Object: "CompanyContact",
  46083. Field: field,
  46084. IsMethod: false,
  46085. IsResolver: false,
  46086. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  46087. return nil, errors.New("field of type DateTime does not have child fields")
  46088. },
  46089. }
  46090. return fc, nil
  46091. }
  46092. func (ec *executionContext) _CompanyContactConnection_edges(ctx context.Context, field graphql.CollectedField, obj *CompanyContactConnection) (ret graphql.Marshaler) {
  46093. fc, err := ec.fieldContext_CompanyContactConnection_edges(ctx, field)
  46094. if err != nil {
  46095. return graphql.Null
  46096. }
  46097. ctx = graphql.WithFieldContext(ctx, fc)
  46098. defer func() {
  46099. if r := recover(); r != nil {
  46100. ec.Error(ctx, ec.Recover(ctx, r))
  46101. ret = graphql.Null
  46102. }
  46103. }()
  46104. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  46105. ctx = rctx // use context from middleware stack in children
  46106. return obj.Edges, nil
  46107. })
  46108. if err != nil {
  46109. ec.Error(ctx, err)
  46110. return graphql.Null
  46111. }
  46112. if resTmp == nil {
  46113. if !graphql.HasFieldError(ctx, fc) {
  46114. ec.Errorf(ctx, "must not be null")
  46115. }
  46116. return graphql.Null
  46117. }
  46118. res := resTmp.([]*CompanyContactEdge)
  46119. fc.Result = res
  46120. return ec.marshalNCompanyContactEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactEdgeᚄ(ctx, field.Selections, res)
  46121. }
  46122. func (ec *executionContext) fieldContext_CompanyContactConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  46123. fc = &graphql.FieldContext{
  46124. Object: "CompanyContactConnection",
  46125. Field: field,
  46126. IsMethod: false,
  46127. IsResolver: false,
  46128. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  46129. switch field.Name {
  46130. case "cursor":
  46131. return ec.fieldContext_CompanyContactEdge_cursor(ctx, field)
  46132. case "node":
  46133. return ec.fieldContext_CompanyContactEdge_node(ctx, field)
  46134. }
  46135. return nil, fmt.Errorf("no field named %q was found under type CompanyContactEdge", field.Name)
  46136. },
  46137. }
  46138. return fc, nil
  46139. }
  46140. func (ec *executionContext) _CompanyContactConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *CompanyContactConnection) (ret graphql.Marshaler) {
  46141. fc, err := ec.fieldContext_CompanyContactConnection_nodes(ctx, field)
  46142. if err != nil {
  46143. return graphql.Null
  46144. }
  46145. ctx = graphql.WithFieldContext(ctx, fc)
  46146. defer func() {
  46147. if r := recover(); r != nil {
  46148. ec.Error(ctx, ec.Recover(ctx, r))
  46149. ret = graphql.Null
  46150. }
  46151. }()
  46152. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  46153. ctx = rctx // use context from middleware stack in children
  46154. return obj.Nodes, nil
  46155. })
  46156. if err != nil {
  46157. ec.Error(ctx, err)
  46158. return graphql.Null
  46159. }
  46160. if resTmp == nil {
  46161. if !graphql.HasFieldError(ctx, fc) {
  46162. ec.Errorf(ctx, "must not be null")
  46163. }
  46164. return graphql.Null
  46165. }
  46166. res := resTmp.([]*CompanyContact)
  46167. fc.Result = res
  46168. return ec.marshalNCompanyContact2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactᚄ(ctx, field.Selections, res)
  46169. }
  46170. func (ec *executionContext) fieldContext_CompanyContactConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  46171. fc = &graphql.FieldContext{
  46172. Object: "CompanyContactConnection",
  46173. Field: field,
  46174. IsMethod: false,
  46175. IsResolver: false,
  46176. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  46177. switch field.Name {
  46178. case "company":
  46179. return ec.fieldContext_CompanyContact_company(ctx, field)
  46180. case "createdAt":
  46181. return ec.fieldContext_CompanyContact_createdAt(ctx, field)
  46182. case "customer":
  46183. return ec.fieldContext_CompanyContact_customer(ctx, field)
  46184. case "draftOrders":
  46185. return ec.fieldContext_CompanyContact_draftOrders(ctx, field)
  46186. case "id":
  46187. return ec.fieldContext_CompanyContact_id(ctx, field)
  46188. case "isMainContact":
  46189. return ec.fieldContext_CompanyContact_isMainContact(ctx, field)
  46190. case "lifetimeDuration":
  46191. return ec.fieldContext_CompanyContact_lifetimeDuration(ctx, field)
  46192. case "locale":
  46193. return ec.fieldContext_CompanyContact_locale(ctx, field)
  46194. case "orders":
  46195. return ec.fieldContext_CompanyContact_orders(ctx, field)
  46196. case "roleAssignments":
  46197. return ec.fieldContext_CompanyContact_roleAssignments(ctx, field)
  46198. case "title":
  46199. return ec.fieldContext_CompanyContact_title(ctx, field)
  46200. case "updatedAt":
  46201. return ec.fieldContext_CompanyContact_updatedAt(ctx, field)
  46202. }
  46203. return nil, fmt.Errorf("no field named %q was found under type CompanyContact", field.Name)
  46204. },
  46205. }
  46206. return fc, nil
  46207. }
  46208. func (ec *executionContext) _CompanyContactConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *CompanyContactConnection) (ret graphql.Marshaler) {
  46209. fc, err := ec.fieldContext_CompanyContactConnection_pageInfo(ctx, field)
  46210. if err != nil {
  46211. return graphql.Null
  46212. }
  46213. ctx = graphql.WithFieldContext(ctx, fc)
  46214. defer func() {
  46215. if r := recover(); r != nil {
  46216. ec.Error(ctx, ec.Recover(ctx, r))
  46217. ret = graphql.Null
  46218. }
  46219. }()
  46220. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  46221. ctx = rctx // use context from middleware stack in children
  46222. return obj.PageInfo, nil
  46223. })
  46224. if err != nil {
  46225. ec.Error(ctx, err)
  46226. return graphql.Null
  46227. }
  46228. if resTmp == nil {
  46229. if !graphql.HasFieldError(ctx, fc) {
  46230. ec.Errorf(ctx, "must not be null")
  46231. }
  46232. return graphql.Null
  46233. }
  46234. res := resTmp.(*PageInfo)
  46235. fc.Result = res
  46236. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  46237. }
  46238. func (ec *executionContext) fieldContext_CompanyContactConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  46239. fc = &graphql.FieldContext{
  46240. Object: "CompanyContactConnection",
  46241. Field: field,
  46242. IsMethod: false,
  46243. IsResolver: false,
  46244. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  46245. switch field.Name {
  46246. case "endCursor":
  46247. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  46248. case "hasNextPage":
  46249. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  46250. case "hasPreviousPage":
  46251. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  46252. case "startCursor":
  46253. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  46254. }
  46255. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  46256. },
  46257. }
  46258. return fc, nil
  46259. }
  46260. func (ec *executionContext) _CompanyContactEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *CompanyContactEdge) (ret graphql.Marshaler) {
  46261. fc, err := ec.fieldContext_CompanyContactEdge_cursor(ctx, field)
  46262. if err != nil {
  46263. return graphql.Null
  46264. }
  46265. ctx = graphql.WithFieldContext(ctx, fc)
  46266. defer func() {
  46267. if r := recover(); r != nil {
  46268. ec.Error(ctx, ec.Recover(ctx, r))
  46269. ret = graphql.Null
  46270. }
  46271. }()
  46272. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  46273. ctx = rctx // use context from middleware stack in children
  46274. return obj.Cursor, nil
  46275. })
  46276. if err != nil {
  46277. ec.Error(ctx, err)
  46278. return graphql.Null
  46279. }
  46280. if resTmp == nil {
  46281. if !graphql.HasFieldError(ctx, fc) {
  46282. ec.Errorf(ctx, "must not be null")
  46283. }
  46284. return graphql.Null
  46285. }
  46286. res := resTmp.(string)
  46287. fc.Result = res
  46288. return ec.marshalNString2string(ctx, field.Selections, res)
  46289. }
  46290. func (ec *executionContext) fieldContext_CompanyContactEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  46291. fc = &graphql.FieldContext{
  46292. Object: "CompanyContactEdge",
  46293. Field: field,
  46294. IsMethod: false,
  46295. IsResolver: false,
  46296. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  46297. return nil, errors.New("field of type String does not have child fields")
  46298. },
  46299. }
  46300. return fc, nil
  46301. }
  46302. func (ec *executionContext) _CompanyContactEdge_node(ctx context.Context, field graphql.CollectedField, obj *CompanyContactEdge) (ret graphql.Marshaler) {
  46303. fc, err := ec.fieldContext_CompanyContactEdge_node(ctx, field)
  46304. if err != nil {
  46305. return graphql.Null
  46306. }
  46307. ctx = graphql.WithFieldContext(ctx, fc)
  46308. defer func() {
  46309. if r := recover(); r != nil {
  46310. ec.Error(ctx, ec.Recover(ctx, r))
  46311. ret = graphql.Null
  46312. }
  46313. }()
  46314. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  46315. ctx = rctx // use context from middleware stack in children
  46316. return obj.Node, nil
  46317. })
  46318. if err != nil {
  46319. ec.Error(ctx, err)
  46320. return graphql.Null
  46321. }
  46322. if resTmp == nil {
  46323. if !graphql.HasFieldError(ctx, fc) {
  46324. ec.Errorf(ctx, "must not be null")
  46325. }
  46326. return graphql.Null
  46327. }
  46328. res := resTmp.(*CompanyContact)
  46329. fc.Result = res
  46330. return ec.marshalNCompanyContact2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContact(ctx, field.Selections, res)
  46331. }
  46332. func (ec *executionContext) fieldContext_CompanyContactEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  46333. fc = &graphql.FieldContext{
  46334. Object: "CompanyContactEdge",
  46335. Field: field,
  46336. IsMethod: false,
  46337. IsResolver: false,
  46338. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  46339. switch field.Name {
  46340. case "company":
  46341. return ec.fieldContext_CompanyContact_company(ctx, field)
  46342. case "createdAt":
  46343. return ec.fieldContext_CompanyContact_createdAt(ctx, field)
  46344. case "customer":
  46345. return ec.fieldContext_CompanyContact_customer(ctx, field)
  46346. case "draftOrders":
  46347. return ec.fieldContext_CompanyContact_draftOrders(ctx, field)
  46348. case "id":
  46349. return ec.fieldContext_CompanyContact_id(ctx, field)
  46350. case "isMainContact":
  46351. return ec.fieldContext_CompanyContact_isMainContact(ctx, field)
  46352. case "lifetimeDuration":
  46353. return ec.fieldContext_CompanyContact_lifetimeDuration(ctx, field)
  46354. case "locale":
  46355. return ec.fieldContext_CompanyContact_locale(ctx, field)
  46356. case "orders":
  46357. return ec.fieldContext_CompanyContact_orders(ctx, field)
  46358. case "roleAssignments":
  46359. return ec.fieldContext_CompanyContact_roleAssignments(ctx, field)
  46360. case "title":
  46361. return ec.fieldContext_CompanyContact_title(ctx, field)
  46362. case "updatedAt":
  46363. return ec.fieldContext_CompanyContact_updatedAt(ctx, field)
  46364. }
  46365. return nil, fmt.Errorf("no field named %q was found under type CompanyContact", field.Name)
  46366. },
  46367. }
  46368. return fc, nil
  46369. }
  46370. func (ec *executionContext) _CompanyContactRole_id(ctx context.Context, field graphql.CollectedField, obj *CompanyContactRole) (ret graphql.Marshaler) {
  46371. fc, err := ec.fieldContext_CompanyContactRole_id(ctx, field)
  46372. if err != nil {
  46373. return graphql.Null
  46374. }
  46375. ctx = graphql.WithFieldContext(ctx, fc)
  46376. defer func() {
  46377. if r := recover(); r != nil {
  46378. ec.Error(ctx, ec.Recover(ctx, r))
  46379. ret = graphql.Null
  46380. }
  46381. }()
  46382. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  46383. ctx = rctx // use context from middleware stack in children
  46384. return obj.ID, nil
  46385. })
  46386. if err != nil {
  46387. ec.Error(ctx, err)
  46388. return graphql.Null
  46389. }
  46390. if resTmp == nil {
  46391. if !graphql.HasFieldError(ctx, fc) {
  46392. ec.Errorf(ctx, "must not be null")
  46393. }
  46394. return graphql.Null
  46395. }
  46396. res := resTmp.(string)
  46397. fc.Result = res
  46398. return ec.marshalNID2string(ctx, field.Selections, res)
  46399. }
  46400. func (ec *executionContext) fieldContext_CompanyContactRole_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  46401. fc = &graphql.FieldContext{
  46402. Object: "CompanyContactRole",
  46403. Field: field,
  46404. IsMethod: false,
  46405. IsResolver: false,
  46406. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  46407. return nil, errors.New("field of type ID does not have child fields")
  46408. },
  46409. }
  46410. return fc, nil
  46411. }
  46412. func (ec *executionContext) _CompanyContactRole_name(ctx context.Context, field graphql.CollectedField, obj *CompanyContactRole) (ret graphql.Marshaler) {
  46413. fc, err := ec.fieldContext_CompanyContactRole_name(ctx, field)
  46414. if err != nil {
  46415. return graphql.Null
  46416. }
  46417. ctx = graphql.WithFieldContext(ctx, fc)
  46418. defer func() {
  46419. if r := recover(); r != nil {
  46420. ec.Error(ctx, ec.Recover(ctx, r))
  46421. ret = graphql.Null
  46422. }
  46423. }()
  46424. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  46425. ctx = rctx // use context from middleware stack in children
  46426. return obj.Name, nil
  46427. })
  46428. if err != nil {
  46429. ec.Error(ctx, err)
  46430. return graphql.Null
  46431. }
  46432. if resTmp == nil {
  46433. if !graphql.HasFieldError(ctx, fc) {
  46434. ec.Errorf(ctx, "must not be null")
  46435. }
  46436. return graphql.Null
  46437. }
  46438. res := resTmp.(string)
  46439. fc.Result = res
  46440. return ec.marshalNString2string(ctx, field.Selections, res)
  46441. }
  46442. func (ec *executionContext) fieldContext_CompanyContactRole_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  46443. fc = &graphql.FieldContext{
  46444. Object: "CompanyContactRole",
  46445. Field: field,
  46446. IsMethod: false,
  46447. IsResolver: false,
  46448. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  46449. return nil, errors.New("field of type String does not have child fields")
  46450. },
  46451. }
  46452. return fc, nil
  46453. }
  46454. func (ec *executionContext) _CompanyContactRole_note(ctx context.Context, field graphql.CollectedField, obj *CompanyContactRole) (ret graphql.Marshaler) {
  46455. fc, err := ec.fieldContext_CompanyContactRole_note(ctx, field)
  46456. if err != nil {
  46457. return graphql.Null
  46458. }
  46459. ctx = graphql.WithFieldContext(ctx, fc)
  46460. defer func() {
  46461. if r := recover(); r != nil {
  46462. ec.Error(ctx, ec.Recover(ctx, r))
  46463. ret = graphql.Null
  46464. }
  46465. }()
  46466. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  46467. ctx = rctx // use context from middleware stack in children
  46468. return obj.Note, nil
  46469. })
  46470. if err != nil {
  46471. ec.Error(ctx, err)
  46472. return graphql.Null
  46473. }
  46474. if resTmp == nil {
  46475. return graphql.Null
  46476. }
  46477. res := resTmp.(*string)
  46478. fc.Result = res
  46479. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  46480. }
  46481. func (ec *executionContext) fieldContext_CompanyContactRole_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  46482. fc = &graphql.FieldContext{
  46483. Object: "CompanyContactRole",
  46484. Field: field,
  46485. IsMethod: false,
  46486. IsResolver: false,
  46487. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  46488. return nil, errors.New("field of type String does not have child fields")
  46489. },
  46490. }
  46491. return fc, nil
  46492. }
  46493. func (ec *executionContext) _CompanyContactRoleAssignment_company(ctx context.Context, field graphql.CollectedField, obj *CompanyContactRoleAssignment) (ret graphql.Marshaler) {
  46494. fc, err := ec.fieldContext_CompanyContactRoleAssignment_company(ctx, field)
  46495. if err != nil {
  46496. return graphql.Null
  46497. }
  46498. ctx = graphql.WithFieldContext(ctx, fc)
  46499. defer func() {
  46500. if r := recover(); r != nil {
  46501. ec.Error(ctx, ec.Recover(ctx, r))
  46502. ret = graphql.Null
  46503. }
  46504. }()
  46505. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  46506. ctx = rctx // use context from middleware stack in children
  46507. return obj.Company, nil
  46508. })
  46509. if err != nil {
  46510. ec.Error(ctx, err)
  46511. return graphql.Null
  46512. }
  46513. if resTmp == nil {
  46514. if !graphql.HasFieldError(ctx, fc) {
  46515. ec.Errorf(ctx, "must not be null")
  46516. }
  46517. return graphql.Null
  46518. }
  46519. res := resTmp.(*Company)
  46520. fc.Result = res
  46521. return ec.marshalNCompany2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompany(ctx, field.Selections, res)
  46522. }
  46523. func (ec *executionContext) fieldContext_CompanyContactRoleAssignment_company(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  46524. fc = &graphql.FieldContext{
  46525. Object: "CompanyContactRoleAssignment",
  46526. Field: field,
  46527. IsMethod: false,
  46528. IsResolver: false,
  46529. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  46530. switch field.Name {
  46531. case "contactCount":
  46532. return ec.fieldContext_Company_contactCount(ctx, field)
  46533. case "contactRoles":
  46534. return ec.fieldContext_Company_contactRoles(ctx, field)
  46535. case "contacts":
  46536. return ec.fieldContext_Company_contacts(ctx, field)
  46537. case "createdAt":
  46538. return ec.fieldContext_Company_createdAt(ctx, field)
  46539. case "customerSince":
  46540. return ec.fieldContext_Company_customerSince(ctx, field)
  46541. case "defaultCursor":
  46542. return ec.fieldContext_Company_defaultCursor(ctx, field)
  46543. case "defaultRole":
  46544. return ec.fieldContext_Company_defaultRole(ctx, field)
  46545. case "draftOrders":
  46546. return ec.fieldContext_Company_draftOrders(ctx, field)
  46547. case "events":
  46548. return ec.fieldContext_Company_events(ctx, field)
  46549. case "externalId":
  46550. return ec.fieldContext_Company_externalId(ctx, field)
  46551. case "hasTimelineComment":
  46552. return ec.fieldContext_Company_hasTimelineComment(ctx, field)
  46553. case "id":
  46554. return ec.fieldContext_Company_id(ctx, field)
  46555. case "lifetimeDuration":
  46556. return ec.fieldContext_Company_lifetimeDuration(ctx, field)
  46557. case "locationCount":
  46558. return ec.fieldContext_Company_locationCount(ctx, field)
  46559. case "locations":
  46560. return ec.fieldContext_Company_locations(ctx, field)
  46561. case "mainContact":
  46562. return ec.fieldContext_Company_mainContact(ctx, field)
  46563. case "name":
  46564. return ec.fieldContext_Company_name(ctx, field)
  46565. case "note":
  46566. return ec.fieldContext_Company_note(ctx, field)
  46567. case "orderCount":
  46568. return ec.fieldContext_Company_orderCount(ctx, field)
  46569. case "orders":
  46570. return ec.fieldContext_Company_orders(ctx, field)
  46571. case "totalSpent":
  46572. return ec.fieldContext_Company_totalSpent(ctx, field)
  46573. case "updatedAt":
  46574. return ec.fieldContext_Company_updatedAt(ctx, field)
  46575. }
  46576. return nil, fmt.Errorf("no field named %q was found under type Company", field.Name)
  46577. },
  46578. }
  46579. return fc, nil
  46580. }
  46581. func (ec *executionContext) _CompanyContactRoleAssignment_companyContact(ctx context.Context, field graphql.CollectedField, obj *CompanyContactRoleAssignment) (ret graphql.Marshaler) {
  46582. fc, err := ec.fieldContext_CompanyContactRoleAssignment_companyContact(ctx, field)
  46583. if err != nil {
  46584. return graphql.Null
  46585. }
  46586. ctx = graphql.WithFieldContext(ctx, fc)
  46587. defer func() {
  46588. if r := recover(); r != nil {
  46589. ec.Error(ctx, ec.Recover(ctx, r))
  46590. ret = graphql.Null
  46591. }
  46592. }()
  46593. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  46594. ctx = rctx // use context from middleware stack in children
  46595. return obj.CompanyContact, nil
  46596. })
  46597. if err != nil {
  46598. ec.Error(ctx, err)
  46599. return graphql.Null
  46600. }
  46601. if resTmp == nil {
  46602. if !graphql.HasFieldError(ctx, fc) {
  46603. ec.Errorf(ctx, "must not be null")
  46604. }
  46605. return graphql.Null
  46606. }
  46607. res := resTmp.(*CompanyContact)
  46608. fc.Result = res
  46609. return ec.marshalNCompanyContact2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContact(ctx, field.Selections, res)
  46610. }
  46611. func (ec *executionContext) fieldContext_CompanyContactRoleAssignment_companyContact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  46612. fc = &graphql.FieldContext{
  46613. Object: "CompanyContactRoleAssignment",
  46614. Field: field,
  46615. IsMethod: false,
  46616. IsResolver: false,
  46617. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  46618. switch field.Name {
  46619. case "company":
  46620. return ec.fieldContext_CompanyContact_company(ctx, field)
  46621. case "createdAt":
  46622. return ec.fieldContext_CompanyContact_createdAt(ctx, field)
  46623. case "customer":
  46624. return ec.fieldContext_CompanyContact_customer(ctx, field)
  46625. case "draftOrders":
  46626. return ec.fieldContext_CompanyContact_draftOrders(ctx, field)
  46627. case "id":
  46628. return ec.fieldContext_CompanyContact_id(ctx, field)
  46629. case "isMainContact":
  46630. return ec.fieldContext_CompanyContact_isMainContact(ctx, field)
  46631. case "lifetimeDuration":
  46632. return ec.fieldContext_CompanyContact_lifetimeDuration(ctx, field)
  46633. case "locale":
  46634. return ec.fieldContext_CompanyContact_locale(ctx, field)
  46635. case "orders":
  46636. return ec.fieldContext_CompanyContact_orders(ctx, field)
  46637. case "roleAssignments":
  46638. return ec.fieldContext_CompanyContact_roleAssignments(ctx, field)
  46639. case "title":
  46640. return ec.fieldContext_CompanyContact_title(ctx, field)
  46641. case "updatedAt":
  46642. return ec.fieldContext_CompanyContact_updatedAt(ctx, field)
  46643. }
  46644. return nil, fmt.Errorf("no field named %q was found under type CompanyContact", field.Name)
  46645. },
  46646. }
  46647. return fc, nil
  46648. }
  46649. func (ec *executionContext) _CompanyContactRoleAssignment_companyLocation(ctx context.Context, field graphql.CollectedField, obj *CompanyContactRoleAssignment) (ret graphql.Marshaler) {
  46650. fc, err := ec.fieldContext_CompanyContactRoleAssignment_companyLocation(ctx, field)
  46651. if err != nil {
  46652. return graphql.Null
  46653. }
  46654. ctx = graphql.WithFieldContext(ctx, fc)
  46655. defer func() {
  46656. if r := recover(); r != nil {
  46657. ec.Error(ctx, ec.Recover(ctx, r))
  46658. ret = graphql.Null
  46659. }
  46660. }()
  46661. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  46662. ctx = rctx // use context from middleware stack in children
  46663. return obj.CompanyLocation, nil
  46664. })
  46665. if err != nil {
  46666. ec.Error(ctx, err)
  46667. return graphql.Null
  46668. }
  46669. if resTmp == nil {
  46670. if !graphql.HasFieldError(ctx, fc) {
  46671. ec.Errorf(ctx, "must not be null")
  46672. }
  46673. return graphql.Null
  46674. }
  46675. res := resTmp.(*CompanyLocation)
  46676. fc.Result = res
  46677. return ec.marshalNCompanyLocation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyLocation(ctx, field.Selections, res)
  46678. }
  46679. func (ec *executionContext) fieldContext_CompanyContactRoleAssignment_companyLocation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  46680. fc = &graphql.FieldContext{
  46681. Object: "CompanyContactRoleAssignment",
  46682. Field: field,
  46683. IsMethod: false,
  46684. IsResolver: false,
  46685. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  46686. switch field.Name {
  46687. case "billingAddress":
  46688. return ec.fieldContext_CompanyLocation_billingAddress(ctx, field)
  46689. case "buyerExperienceConfiguration":
  46690. return ec.fieldContext_CompanyLocation_buyerExperienceConfiguration(ctx, field)
  46691. case "company":
  46692. return ec.fieldContext_CompanyLocation_company(ctx, field)
  46693. case "createdAt":
  46694. return ec.fieldContext_CompanyLocation_createdAt(ctx, field)
  46695. case "currency":
  46696. return ec.fieldContext_CompanyLocation_currency(ctx, field)
  46697. case "defaultCursor":
  46698. return ec.fieldContext_CompanyLocation_defaultCursor(ctx, field)
  46699. case "draftOrders":
  46700. return ec.fieldContext_CompanyLocation_draftOrders(ctx, field)
  46701. case "events":
  46702. return ec.fieldContext_CompanyLocation_events(ctx, field)
  46703. case "externalId":
  46704. return ec.fieldContext_CompanyLocation_externalId(ctx, field)
  46705. case "hasTimelineComment":
  46706. return ec.fieldContext_CompanyLocation_hasTimelineComment(ctx, field)
  46707. case "id":
  46708. return ec.fieldContext_CompanyLocation_id(ctx, field)
  46709. case "locale":
  46710. return ec.fieldContext_CompanyLocation_locale(ctx, field)
  46711. case "market":
  46712. return ec.fieldContext_CompanyLocation_market(ctx, field)
  46713. case "name":
  46714. return ec.fieldContext_CompanyLocation_name(ctx, field)
  46715. case "note":
  46716. return ec.fieldContext_CompanyLocation_note(ctx, field)
  46717. case "orderCount":
  46718. return ec.fieldContext_CompanyLocation_orderCount(ctx, field)
  46719. case "orders":
  46720. return ec.fieldContext_CompanyLocation_orders(ctx, field)
  46721. case "phone":
  46722. return ec.fieldContext_CompanyLocation_phone(ctx, field)
  46723. case "roleAssignments":
  46724. return ec.fieldContext_CompanyLocation_roleAssignments(ctx, field)
  46725. case "shippingAddress":
  46726. return ec.fieldContext_CompanyLocation_shippingAddress(ctx, field)
  46727. case "taxExemptions":
  46728. return ec.fieldContext_CompanyLocation_taxExemptions(ctx, field)
  46729. case "taxRegistrationId":
  46730. return ec.fieldContext_CompanyLocation_taxRegistrationId(ctx, field)
  46731. case "totalSpent":
  46732. return ec.fieldContext_CompanyLocation_totalSpent(ctx, field)
  46733. case "updatedAt":
  46734. return ec.fieldContext_CompanyLocation_updatedAt(ctx, field)
  46735. }
  46736. return nil, fmt.Errorf("no field named %q was found under type CompanyLocation", field.Name)
  46737. },
  46738. }
  46739. return fc, nil
  46740. }
  46741. func (ec *executionContext) _CompanyContactRoleAssignment_createdAt(ctx context.Context, field graphql.CollectedField, obj *CompanyContactRoleAssignment) (ret graphql.Marshaler) {
  46742. fc, err := ec.fieldContext_CompanyContactRoleAssignment_createdAt(ctx, field)
  46743. if err != nil {
  46744. return graphql.Null
  46745. }
  46746. ctx = graphql.WithFieldContext(ctx, fc)
  46747. defer func() {
  46748. if r := recover(); r != nil {
  46749. ec.Error(ctx, ec.Recover(ctx, r))
  46750. ret = graphql.Null
  46751. }
  46752. }()
  46753. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  46754. ctx = rctx // use context from middleware stack in children
  46755. return obj.CreatedAt, nil
  46756. })
  46757. if err != nil {
  46758. ec.Error(ctx, err)
  46759. return graphql.Null
  46760. }
  46761. if resTmp == nil {
  46762. if !graphql.HasFieldError(ctx, fc) {
  46763. ec.Errorf(ctx, "must not be null")
  46764. }
  46765. return graphql.Null
  46766. }
  46767. res := resTmp.(string)
  46768. fc.Result = res
  46769. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  46770. }
  46771. func (ec *executionContext) fieldContext_CompanyContactRoleAssignment_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  46772. fc = &graphql.FieldContext{
  46773. Object: "CompanyContactRoleAssignment",
  46774. Field: field,
  46775. IsMethod: false,
  46776. IsResolver: false,
  46777. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  46778. return nil, errors.New("field of type DateTime does not have child fields")
  46779. },
  46780. }
  46781. return fc, nil
  46782. }
  46783. func (ec *executionContext) _CompanyContactRoleAssignment_id(ctx context.Context, field graphql.CollectedField, obj *CompanyContactRoleAssignment) (ret graphql.Marshaler) {
  46784. fc, err := ec.fieldContext_CompanyContactRoleAssignment_id(ctx, field)
  46785. if err != nil {
  46786. return graphql.Null
  46787. }
  46788. ctx = graphql.WithFieldContext(ctx, fc)
  46789. defer func() {
  46790. if r := recover(); r != nil {
  46791. ec.Error(ctx, ec.Recover(ctx, r))
  46792. ret = graphql.Null
  46793. }
  46794. }()
  46795. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  46796. ctx = rctx // use context from middleware stack in children
  46797. return obj.ID, nil
  46798. })
  46799. if err != nil {
  46800. ec.Error(ctx, err)
  46801. return graphql.Null
  46802. }
  46803. if resTmp == nil {
  46804. if !graphql.HasFieldError(ctx, fc) {
  46805. ec.Errorf(ctx, "must not be null")
  46806. }
  46807. return graphql.Null
  46808. }
  46809. res := resTmp.(string)
  46810. fc.Result = res
  46811. return ec.marshalNID2string(ctx, field.Selections, res)
  46812. }
  46813. func (ec *executionContext) fieldContext_CompanyContactRoleAssignment_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  46814. fc = &graphql.FieldContext{
  46815. Object: "CompanyContactRoleAssignment",
  46816. Field: field,
  46817. IsMethod: false,
  46818. IsResolver: false,
  46819. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  46820. return nil, errors.New("field of type ID does not have child fields")
  46821. },
  46822. }
  46823. return fc, nil
  46824. }
  46825. func (ec *executionContext) _CompanyContactRoleAssignment_role(ctx context.Context, field graphql.CollectedField, obj *CompanyContactRoleAssignment) (ret graphql.Marshaler) {
  46826. fc, err := ec.fieldContext_CompanyContactRoleAssignment_role(ctx, field)
  46827. if err != nil {
  46828. return graphql.Null
  46829. }
  46830. ctx = graphql.WithFieldContext(ctx, fc)
  46831. defer func() {
  46832. if r := recover(); r != nil {
  46833. ec.Error(ctx, ec.Recover(ctx, r))
  46834. ret = graphql.Null
  46835. }
  46836. }()
  46837. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  46838. ctx = rctx // use context from middleware stack in children
  46839. return obj.Role, nil
  46840. })
  46841. if err != nil {
  46842. ec.Error(ctx, err)
  46843. return graphql.Null
  46844. }
  46845. if resTmp == nil {
  46846. if !graphql.HasFieldError(ctx, fc) {
  46847. ec.Errorf(ctx, "must not be null")
  46848. }
  46849. return graphql.Null
  46850. }
  46851. res := resTmp.(*CompanyContactRole)
  46852. fc.Result = res
  46853. return ec.marshalNCompanyContactRole2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRole(ctx, field.Selections, res)
  46854. }
  46855. func (ec *executionContext) fieldContext_CompanyContactRoleAssignment_role(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  46856. fc = &graphql.FieldContext{
  46857. Object: "CompanyContactRoleAssignment",
  46858. Field: field,
  46859. IsMethod: false,
  46860. IsResolver: false,
  46861. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  46862. switch field.Name {
  46863. case "id":
  46864. return ec.fieldContext_CompanyContactRole_id(ctx, field)
  46865. case "name":
  46866. return ec.fieldContext_CompanyContactRole_name(ctx, field)
  46867. case "note":
  46868. return ec.fieldContext_CompanyContactRole_note(ctx, field)
  46869. }
  46870. return nil, fmt.Errorf("no field named %q was found under type CompanyContactRole", field.Name)
  46871. },
  46872. }
  46873. return fc, nil
  46874. }
  46875. func (ec *executionContext) _CompanyContactRoleAssignment_updatedAt(ctx context.Context, field graphql.CollectedField, obj *CompanyContactRoleAssignment) (ret graphql.Marshaler) {
  46876. fc, err := ec.fieldContext_CompanyContactRoleAssignment_updatedAt(ctx, field)
  46877. if err != nil {
  46878. return graphql.Null
  46879. }
  46880. ctx = graphql.WithFieldContext(ctx, fc)
  46881. defer func() {
  46882. if r := recover(); r != nil {
  46883. ec.Error(ctx, ec.Recover(ctx, r))
  46884. ret = graphql.Null
  46885. }
  46886. }()
  46887. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  46888. ctx = rctx // use context from middleware stack in children
  46889. return obj.UpdatedAt, nil
  46890. })
  46891. if err != nil {
  46892. ec.Error(ctx, err)
  46893. return graphql.Null
  46894. }
  46895. if resTmp == nil {
  46896. if !graphql.HasFieldError(ctx, fc) {
  46897. ec.Errorf(ctx, "must not be null")
  46898. }
  46899. return graphql.Null
  46900. }
  46901. res := resTmp.(string)
  46902. fc.Result = res
  46903. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  46904. }
  46905. func (ec *executionContext) fieldContext_CompanyContactRoleAssignment_updatedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  46906. fc = &graphql.FieldContext{
  46907. Object: "CompanyContactRoleAssignment",
  46908. Field: field,
  46909. IsMethod: false,
  46910. IsResolver: false,
  46911. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  46912. return nil, errors.New("field of type DateTime does not have child fields")
  46913. },
  46914. }
  46915. return fc, nil
  46916. }
  46917. func (ec *executionContext) _CompanyContactRoleAssignmentConnection_edges(ctx context.Context, field graphql.CollectedField, obj *CompanyContactRoleAssignmentConnection) (ret graphql.Marshaler) {
  46918. fc, err := ec.fieldContext_CompanyContactRoleAssignmentConnection_edges(ctx, field)
  46919. if err != nil {
  46920. return graphql.Null
  46921. }
  46922. ctx = graphql.WithFieldContext(ctx, fc)
  46923. defer func() {
  46924. if r := recover(); r != nil {
  46925. ec.Error(ctx, ec.Recover(ctx, r))
  46926. ret = graphql.Null
  46927. }
  46928. }()
  46929. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  46930. ctx = rctx // use context from middleware stack in children
  46931. return obj.Edges, nil
  46932. })
  46933. if err != nil {
  46934. ec.Error(ctx, err)
  46935. return graphql.Null
  46936. }
  46937. if resTmp == nil {
  46938. if !graphql.HasFieldError(ctx, fc) {
  46939. ec.Errorf(ctx, "must not be null")
  46940. }
  46941. return graphql.Null
  46942. }
  46943. res := resTmp.([]*CompanyContactRoleAssignmentEdge)
  46944. fc.Result = res
  46945. return ec.marshalNCompanyContactRoleAssignmentEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRoleAssignmentEdgeᚄ(ctx, field.Selections, res)
  46946. }
  46947. func (ec *executionContext) fieldContext_CompanyContactRoleAssignmentConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  46948. fc = &graphql.FieldContext{
  46949. Object: "CompanyContactRoleAssignmentConnection",
  46950. Field: field,
  46951. IsMethod: false,
  46952. IsResolver: false,
  46953. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  46954. switch field.Name {
  46955. case "cursor":
  46956. return ec.fieldContext_CompanyContactRoleAssignmentEdge_cursor(ctx, field)
  46957. case "node":
  46958. return ec.fieldContext_CompanyContactRoleAssignmentEdge_node(ctx, field)
  46959. }
  46960. return nil, fmt.Errorf("no field named %q was found under type CompanyContactRoleAssignmentEdge", field.Name)
  46961. },
  46962. }
  46963. return fc, nil
  46964. }
  46965. func (ec *executionContext) _CompanyContactRoleAssignmentConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *CompanyContactRoleAssignmentConnection) (ret graphql.Marshaler) {
  46966. fc, err := ec.fieldContext_CompanyContactRoleAssignmentConnection_nodes(ctx, field)
  46967. if err != nil {
  46968. return graphql.Null
  46969. }
  46970. ctx = graphql.WithFieldContext(ctx, fc)
  46971. defer func() {
  46972. if r := recover(); r != nil {
  46973. ec.Error(ctx, ec.Recover(ctx, r))
  46974. ret = graphql.Null
  46975. }
  46976. }()
  46977. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  46978. ctx = rctx // use context from middleware stack in children
  46979. return obj.Nodes, nil
  46980. })
  46981. if err != nil {
  46982. ec.Error(ctx, err)
  46983. return graphql.Null
  46984. }
  46985. if resTmp == nil {
  46986. if !graphql.HasFieldError(ctx, fc) {
  46987. ec.Errorf(ctx, "must not be null")
  46988. }
  46989. return graphql.Null
  46990. }
  46991. res := resTmp.([]*CompanyContactRoleAssignment)
  46992. fc.Result = res
  46993. return ec.marshalNCompanyContactRoleAssignment2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRoleAssignmentᚄ(ctx, field.Selections, res)
  46994. }
  46995. func (ec *executionContext) fieldContext_CompanyContactRoleAssignmentConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  46996. fc = &graphql.FieldContext{
  46997. Object: "CompanyContactRoleAssignmentConnection",
  46998. Field: field,
  46999. IsMethod: false,
  47000. IsResolver: false,
  47001. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  47002. switch field.Name {
  47003. case "company":
  47004. return ec.fieldContext_CompanyContactRoleAssignment_company(ctx, field)
  47005. case "companyContact":
  47006. return ec.fieldContext_CompanyContactRoleAssignment_companyContact(ctx, field)
  47007. case "companyLocation":
  47008. return ec.fieldContext_CompanyContactRoleAssignment_companyLocation(ctx, field)
  47009. case "createdAt":
  47010. return ec.fieldContext_CompanyContactRoleAssignment_createdAt(ctx, field)
  47011. case "id":
  47012. return ec.fieldContext_CompanyContactRoleAssignment_id(ctx, field)
  47013. case "role":
  47014. return ec.fieldContext_CompanyContactRoleAssignment_role(ctx, field)
  47015. case "updatedAt":
  47016. return ec.fieldContext_CompanyContactRoleAssignment_updatedAt(ctx, field)
  47017. }
  47018. return nil, fmt.Errorf("no field named %q was found under type CompanyContactRoleAssignment", field.Name)
  47019. },
  47020. }
  47021. return fc, nil
  47022. }
  47023. func (ec *executionContext) _CompanyContactRoleAssignmentConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *CompanyContactRoleAssignmentConnection) (ret graphql.Marshaler) {
  47024. fc, err := ec.fieldContext_CompanyContactRoleAssignmentConnection_pageInfo(ctx, field)
  47025. if err != nil {
  47026. return graphql.Null
  47027. }
  47028. ctx = graphql.WithFieldContext(ctx, fc)
  47029. defer func() {
  47030. if r := recover(); r != nil {
  47031. ec.Error(ctx, ec.Recover(ctx, r))
  47032. ret = graphql.Null
  47033. }
  47034. }()
  47035. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  47036. ctx = rctx // use context from middleware stack in children
  47037. return obj.PageInfo, nil
  47038. })
  47039. if err != nil {
  47040. ec.Error(ctx, err)
  47041. return graphql.Null
  47042. }
  47043. if resTmp == nil {
  47044. if !graphql.HasFieldError(ctx, fc) {
  47045. ec.Errorf(ctx, "must not be null")
  47046. }
  47047. return graphql.Null
  47048. }
  47049. res := resTmp.(*PageInfo)
  47050. fc.Result = res
  47051. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  47052. }
  47053. func (ec *executionContext) fieldContext_CompanyContactRoleAssignmentConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  47054. fc = &graphql.FieldContext{
  47055. Object: "CompanyContactRoleAssignmentConnection",
  47056. Field: field,
  47057. IsMethod: false,
  47058. IsResolver: false,
  47059. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  47060. switch field.Name {
  47061. case "endCursor":
  47062. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  47063. case "hasNextPage":
  47064. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  47065. case "hasPreviousPage":
  47066. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  47067. case "startCursor":
  47068. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  47069. }
  47070. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  47071. },
  47072. }
  47073. return fc, nil
  47074. }
  47075. func (ec *executionContext) _CompanyContactRoleAssignmentEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *CompanyContactRoleAssignmentEdge) (ret graphql.Marshaler) {
  47076. fc, err := ec.fieldContext_CompanyContactRoleAssignmentEdge_cursor(ctx, field)
  47077. if err != nil {
  47078. return graphql.Null
  47079. }
  47080. ctx = graphql.WithFieldContext(ctx, fc)
  47081. defer func() {
  47082. if r := recover(); r != nil {
  47083. ec.Error(ctx, ec.Recover(ctx, r))
  47084. ret = graphql.Null
  47085. }
  47086. }()
  47087. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  47088. ctx = rctx // use context from middleware stack in children
  47089. return obj.Cursor, nil
  47090. })
  47091. if err != nil {
  47092. ec.Error(ctx, err)
  47093. return graphql.Null
  47094. }
  47095. if resTmp == nil {
  47096. if !graphql.HasFieldError(ctx, fc) {
  47097. ec.Errorf(ctx, "must not be null")
  47098. }
  47099. return graphql.Null
  47100. }
  47101. res := resTmp.(string)
  47102. fc.Result = res
  47103. return ec.marshalNString2string(ctx, field.Selections, res)
  47104. }
  47105. func (ec *executionContext) fieldContext_CompanyContactRoleAssignmentEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  47106. fc = &graphql.FieldContext{
  47107. Object: "CompanyContactRoleAssignmentEdge",
  47108. Field: field,
  47109. IsMethod: false,
  47110. IsResolver: false,
  47111. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  47112. return nil, errors.New("field of type String does not have child fields")
  47113. },
  47114. }
  47115. return fc, nil
  47116. }
  47117. func (ec *executionContext) _CompanyContactRoleAssignmentEdge_node(ctx context.Context, field graphql.CollectedField, obj *CompanyContactRoleAssignmentEdge) (ret graphql.Marshaler) {
  47118. fc, err := ec.fieldContext_CompanyContactRoleAssignmentEdge_node(ctx, field)
  47119. if err != nil {
  47120. return graphql.Null
  47121. }
  47122. ctx = graphql.WithFieldContext(ctx, fc)
  47123. defer func() {
  47124. if r := recover(); r != nil {
  47125. ec.Error(ctx, ec.Recover(ctx, r))
  47126. ret = graphql.Null
  47127. }
  47128. }()
  47129. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  47130. ctx = rctx // use context from middleware stack in children
  47131. return obj.Node, nil
  47132. })
  47133. if err != nil {
  47134. ec.Error(ctx, err)
  47135. return graphql.Null
  47136. }
  47137. if resTmp == nil {
  47138. if !graphql.HasFieldError(ctx, fc) {
  47139. ec.Errorf(ctx, "must not be null")
  47140. }
  47141. return graphql.Null
  47142. }
  47143. res := resTmp.(*CompanyContactRoleAssignment)
  47144. fc.Result = res
  47145. return ec.marshalNCompanyContactRoleAssignment2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRoleAssignment(ctx, field.Selections, res)
  47146. }
  47147. func (ec *executionContext) fieldContext_CompanyContactRoleAssignmentEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  47148. fc = &graphql.FieldContext{
  47149. Object: "CompanyContactRoleAssignmentEdge",
  47150. Field: field,
  47151. IsMethod: false,
  47152. IsResolver: false,
  47153. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  47154. switch field.Name {
  47155. case "company":
  47156. return ec.fieldContext_CompanyContactRoleAssignment_company(ctx, field)
  47157. case "companyContact":
  47158. return ec.fieldContext_CompanyContactRoleAssignment_companyContact(ctx, field)
  47159. case "companyLocation":
  47160. return ec.fieldContext_CompanyContactRoleAssignment_companyLocation(ctx, field)
  47161. case "createdAt":
  47162. return ec.fieldContext_CompanyContactRoleAssignment_createdAt(ctx, field)
  47163. case "id":
  47164. return ec.fieldContext_CompanyContactRoleAssignment_id(ctx, field)
  47165. case "role":
  47166. return ec.fieldContext_CompanyContactRoleAssignment_role(ctx, field)
  47167. case "updatedAt":
  47168. return ec.fieldContext_CompanyContactRoleAssignment_updatedAt(ctx, field)
  47169. }
  47170. return nil, fmt.Errorf("no field named %q was found under type CompanyContactRoleAssignment", field.Name)
  47171. },
  47172. }
  47173. return fc, nil
  47174. }
  47175. func (ec *executionContext) _CompanyContactRoleConnection_edges(ctx context.Context, field graphql.CollectedField, obj *CompanyContactRoleConnection) (ret graphql.Marshaler) {
  47176. fc, err := ec.fieldContext_CompanyContactRoleConnection_edges(ctx, field)
  47177. if err != nil {
  47178. return graphql.Null
  47179. }
  47180. ctx = graphql.WithFieldContext(ctx, fc)
  47181. defer func() {
  47182. if r := recover(); r != nil {
  47183. ec.Error(ctx, ec.Recover(ctx, r))
  47184. ret = graphql.Null
  47185. }
  47186. }()
  47187. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  47188. ctx = rctx // use context from middleware stack in children
  47189. return obj.Edges, nil
  47190. })
  47191. if err != nil {
  47192. ec.Error(ctx, err)
  47193. return graphql.Null
  47194. }
  47195. if resTmp == nil {
  47196. if !graphql.HasFieldError(ctx, fc) {
  47197. ec.Errorf(ctx, "must not be null")
  47198. }
  47199. return graphql.Null
  47200. }
  47201. res := resTmp.([]*CompanyContactRoleEdge)
  47202. fc.Result = res
  47203. return ec.marshalNCompanyContactRoleEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRoleEdgeᚄ(ctx, field.Selections, res)
  47204. }
  47205. func (ec *executionContext) fieldContext_CompanyContactRoleConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  47206. fc = &graphql.FieldContext{
  47207. Object: "CompanyContactRoleConnection",
  47208. Field: field,
  47209. IsMethod: false,
  47210. IsResolver: false,
  47211. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  47212. switch field.Name {
  47213. case "cursor":
  47214. return ec.fieldContext_CompanyContactRoleEdge_cursor(ctx, field)
  47215. case "node":
  47216. return ec.fieldContext_CompanyContactRoleEdge_node(ctx, field)
  47217. }
  47218. return nil, fmt.Errorf("no field named %q was found under type CompanyContactRoleEdge", field.Name)
  47219. },
  47220. }
  47221. return fc, nil
  47222. }
  47223. func (ec *executionContext) _CompanyContactRoleConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *CompanyContactRoleConnection) (ret graphql.Marshaler) {
  47224. fc, err := ec.fieldContext_CompanyContactRoleConnection_nodes(ctx, field)
  47225. if err != nil {
  47226. return graphql.Null
  47227. }
  47228. ctx = graphql.WithFieldContext(ctx, fc)
  47229. defer func() {
  47230. if r := recover(); r != nil {
  47231. ec.Error(ctx, ec.Recover(ctx, r))
  47232. ret = graphql.Null
  47233. }
  47234. }()
  47235. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  47236. ctx = rctx // use context from middleware stack in children
  47237. return obj.Nodes, nil
  47238. })
  47239. if err != nil {
  47240. ec.Error(ctx, err)
  47241. return graphql.Null
  47242. }
  47243. if resTmp == nil {
  47244. if !graphql.HasFieldError(ctx, fc) {
  47245. ec.Errorf(ctx, "must not be null")
  47246. }
  47247. return graphql.Null
  47248. }
  47249. res := resTmp.([]*CompanyContactRole)
  47250. fc.Result = res
  47251. return ec.marshalNCompanyContactRole2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRoleᚄ(ctx, field.Selections, res)
  47252. }
  47253. func (ec *executionContext) fieldContext_CompanyContactRoleConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  47254. fc = &graphql.FieldContext{
  47255. Object: "CompanyContactRoleConnection",
  47256. Field: field,
  47257. IsMethod: false,
  47258. IsResolver: false,
  47259. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  47260. switch field.Name {
  47261. case "id":
  47262. return ec.fieldContext_CompanyContactRole_id(ctx, field)
  47263. case "name":
  47264. return ec.fieldContext_CompanyContactRole_name(ctx, field)
  47265. case "note":
  47266. return ec.fieldContext_CompanyContactRole_note(ctx, field)
  47267. }
  47268. return nil, fmt.Errorf("no field named %q was found under type CompanyContactRole", field.Name)
  47269. },
  47270. }
  47271. return fc, nil
  47272. }
  47273. func (ec *executionContext) _CompanyContactRoleConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *CompanyContactRoleConnection) (ret graphql.Marshaler) {
  47274. fc, err := ec.fieldContext_CompanyContactRoleConnection_pageInfo(ctx, field)
  47275. if err != nil {
  47276. return graphql.Null
  47277. }
  47278. ctx = graphql.WithFieldContext(ctx, fc)
  47279. defer func() {
  47280. if r := recover(); r != nil {
  47281. ec.Error(ctx, ec.Recover(ctx, r))
  47282. ret = graphql.Null
  47283. }
  47284. }()
  47285. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  47286. ctx = rctx // use context from middleware stack in children
  47287. return obj.PageInfo, nil
  47288. })
  47289. if err != nil {
  47290. ec.Error(ctx, err)
  47291. return graphql.Null
  47292. }
  47293. if resTmp == nil {
  47294. if !graphql.HasFieldError(ctx, fc) {
  47295. ec.Errorf(ctx, "must not be null")
  47296. }
  47297. return graphql.Null
  47298. }
  47299. res := resTmp.(*PageInfo)
  47300. fc.Result = res
  47301. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  47302. }
  47303. func (ec *executionContext) fieldContext_CompanyContactRoleConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  47304. fc = &graphql.FieldContext{
  47305. Object: "CompanyContactRoleConnection",
  47306. Field: field,
  47307. IsMethod: false,
  47308. IsResolver: false,
  47309. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  47310. switch field.Name {
  47311. case "endCursor":
  47312. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  47313. case "hasNextPage":
  47314. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  47315. case "hasPreviousPage":
  47316. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  47317. case "startCursor":
  47318. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  47319. }
  47320. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  47321. },
  47322. }
  47323. return fc, nil
  47324. }
  47325. func (ec *executionContext) _CompanyContactRoleEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *CompanyContactRoleEdge) (ret graphql.Marshaler) {
  47326. fc, err := ec.fieldContext_CompanyContactRoleEdge_cursor(ctx, field)
  47327. if err != nil {
  47328. return graphql.Null
  47329. }
  47330. ctx = graphql.WithFieldContext(ctx, fc)
  47331. defer func() {
  47332. if r := recover(); r != nil {
  47333. ec.Error(ctx, ec.Recover(ctx, r))
  47334. ret = graphql.Null
  47335. }
  47336. }()
  47337. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  47338. ctx = rctx // use context from middleware stack in children
  47339. return obj.Cursor, nil
  47340. })
  47341. if err != nil {
  47342. ec.Error(ctx, err)
  47343. return graphql.Null
  47344. }
  47345. if resTmp == nil {
  47346. if !graphql.HasFieldError(ctx, fc) {
  47347. ec.Errorf(ctx, "must not be null")
  47348. }
  47349. return graphql.Null
  47350. }
  47351. res := resTmp.(string)
  47352. fc.Result = res
  47353. return ec.marshalNString2string(ctx, field.Selections, res)
  47354. }
  47355. func (ec *executionContext) fieldContext_CompanyContactRoleEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  47356. fc = &graphql.FieldContext{
  47357. Object: "CompanyContactRoleEdge",
  47358. Field: field,
  47359. IsMethod: false,
  47360. IsResolver: false,
  47361. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  47362. return nil, errors.New("field of type String does not have child fields")
  47363. },
  47364. }
  47365. return fc, nil
  47366. }
  47367. func (ec *executionContext) _CompanyContactRoleEdge_node(ctx context.Context, field graphql.CollectedField, obj *CompanyContactRoleEdge) (ret graphql.Marshaler) {
  47368. fc, err := ec.fieldContext_CompanyContactRoleEdge_node(ctx, field)
  47369. if err != nil {
  47370. return graphql.Null
  47371. }
  47372. ctx = graphql.WithFieldContext(ctx, fc)
  47373. defer func() {
  47374. if r := recover(); r != nil {
  47375. ec.Error(ctx, ec.Recover(ctx, r))
  47376. ret = graphql.Null
  47377. }
  47378. }()
  47379. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  47380. ctx = rctx // use context from middleware stack in children
  47381. return obj.Node, nil
  47382. })
  47383. if err != nil {
  47384. ec.Error(ctx, err)
  47385. return graphql.Null
  47386. }
  47387. if resTmp == nil {
  47388. if !graphql.HasFieldError(ctx, fc) {
  47389. ec.Errorf(ctx, "must not be null")
  47390. }
  47391. return graphql.Null
  47392. }
  47393. res := resTmp.(*CompanyContactRole)
  47394. fc.Result = res
  47395. return ec.marshalNCompanyContactRole2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRole(ctx, field.Selections, res)
  47396. }
  47397. func (ec *executionContext) fieldContext_CompanyContactRoleEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  47398. fc = &graphql.FieldContext{
  47399. Object: "CompanyContactRoleEdge",
  47400. Field: field,
  47401. IsMethod: false,
  47402. IsResolver: false,
  47403. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  47404. switch field.Name {
  47405. case "id":
  47406. return ec.fieldContext_CompanyContactRole_id(ctx, field)
  47407. case "name":
  47408. return ec.fieldContext_CompanyContactRole_name(ctx, field)
  47409. case "note":
  47410. return ec.fieldContext_CompanyContactRole_note(ctx, field)
  47411. }
  47412. return nil, fmt.Errorf("no field named %q was found under type CompanyContactRole", field.Name)
  47413. },
  47414. }
  47415. return fc, nil
  47416. }
  47417. func (ec *executionContext) _CompanyLocation_billingAddress(ctx context.Context, field graphql.CollectedField, obj *CompanyLocation) (ret graphql.Marshaler) {
  47418. fc, err := ec.fieldContext_CompanyLocation_billingAddress(ctx, field)
  47419. if err != nil {
  47420. return graphql.Null
  47421. }
  47422. ctx = graphql.WithFieldContext(ctx, fc)
  47423. defer func() {
  47424. if r := recover(); r != nil {
  47425. ec.Error(ctx, ec.Recover(ctx, r))
  47426. ret = graphql.Null
  47427. }
  47428. }()
  47429. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  47430. ctx = rctx // use context from middleware stack in children
  47431. return obj.BillingAddress, nil
  47432. })
  47433. if err != nil {
  47434. ec.Error(ctx, err)
  47435. return graphql.Null
  47436. }
  47437. if resTmp == nil {
  47438. return graphql.Null
  47439. }
  47440. res := resTmp.(*CompanyAddress)
  47441. fc.Result = res
  47442. return ec.marshalOCompanyAddress2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyAddress(ctx, field.Selections, res)
  47443. }
  47444. func (ec *executionContext) fieldContext_CompanyLocation_billingAddress(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  47445. fc = &graphql.FieldContext{
  47446. Object: "CompanyLocation",
  47447. Field: field,
  47448. IsMethod: false,
  47449. IsResolver: false,
  47450. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  47451. switch field.Name {
  47452. case "address1":
  47453. return ec.fieldContext_CompanyAddress_address1(ctx, field)
  47454. case "address2":
  47455. return ec.fieldContext_CompanyAddress_address2(ctx, field)
  47456. case "city":
  47457. return ec.fieldContext_CompanyAddress_city(ctx, field)
  47458. case "companyName":
  47459. return ec.fieldContext_CompanyAddress_companyName(ctx, field)
  47460. case "country":
  47461. return ec.fieldContext_CompanyAddress_country(ctx, field)
  47462. case "countryCode":
  47463. return ec.fieldContext_CompanyAddress_countryCode(ctx, field)
  47464. case "createdAt":
  47465. return ec.fieldContext_CompanyAddress_createdAt(ctx, field)
  47466. case "formattedArea":
  47467. return ec.fieldContext_CompanyAddress_formattedArea(ctx, field)
  47468. case "id":
  47469. return ec.fieldContext_CompanyAddress_id(ctx, field)
  47470. case "phone":
  47471. return ec.fieldContext_CompanyAddress_phone(ctx, field)
  47472. case "province":
  47473. return ec.fieldContext_CompanyAddress_province(ctx, field)
  47474. case "recipient":
  47475. return ec.fieldContext_CompanyAddress_recipient(ctx, field)
  47476. case "updatedAt":
  47477. return ec.fieldContext_CompanyAddress_updatedAt(ctx, field)
  47478. case "zip":
  47479. return ec.fieldContext_CompanyAddress_zip(ctx, field)
  47480. case "zoneCode":
  47481. return ec.fieldContext_CompanyAddress_zoneCode(ctx, field)
  47482. }
  47483. return nil, fmt.Errorf("no field named %q was found under type CompanyAddress", field.Name)
  47484. },
  47485. }
  47486. return fc, nil
  47487. }
  47488. func (ec *executionContext) _CompanyLocation_buyerExperienceConfiguration(ctx context.Context, field graphql.CollectedField, obj *CompanyLocation) (ret graphql.Marshaler) {
  47489. fc, err := ec.fieldContext_CompanyLocation_buyerExperienceConfiguration(ctx, field)
  47490. if err != nil {
  47491. return graphql.Null
  47492. }
  47493. ctx = graphql.WithFieldContext(ctx, fc)
  47494. defer func() {
  47495. if r := recover(); r != nil {
  47496. ec.Error(ctx, ec.Recover(ctx, r))
  47497. ret = graphql.Null
  47498. }
  47499. }()
  47500. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  47501. ctx = rctx // use context from middleware stack in children
  47502. return obj.BuyerExperienceConfiguration, nil
  47503. })
  47504. if err != nil {
  47505. ec.Error(ctx, err)
  47506. return graphql.Null
  47507. }
  47508. if resTmp == nil {
  47509. return graphql.Null
  47510. }
  47511. res := resTmp.(*BuyerExperienceConfiguration)
  47512. fc.Result = res
  47513. return ec.marshalOBuyerExperienceConfiguration2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐBuyerExperienceConfiguration(ctx, field.Selections, res)
  47514. }
  47515. func (ec *executionContext) fieldContext_CompanyLocation_buyerExperienceConfiguration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  47516. fc = &graphql.FieldContext{
  47517. Object: "CompanyLocation",
  47518. Field: field,
  47519. IsMethod: false,
  47520. IsResolver: false,
  47521. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  47522. switch field.Name {
  47523. case "checkoutToDraft":
  47524. return ec.fieldContext_BuyerExperienceConfiguration_checkoutToDraft(ctx, field)
  47525. case "payNowOnly":
  47526. return ec.fieldContext_BuyerExperienceConfiguration_payNowOnly(ctx, field)
  47527. case "paymentTermsTemplate":
  47528. return ec.fieldContext_BuyerExperienceConfiguration_paymentTermsTemplate(ctx, field)
  47529. }
  47530. return nil, fmt.Errorf("no field named %q was found under type BuyerExperienceConfiguration", field.Name)
  47531. },
  47532. }
  47533. return fc, nil
  47534. }
  47535. func (ec *executionContext) _CompanyLocation_company(ctx context.Context, field graphql.CollectedField, obj *CompanyLocation) (ret graphql.Marshaler) {
  47536. fc, err := ec.fieldContext_CompanyLocation_company(ctx, field)
  47537. if err != nil {
  47538. return graphql.Null
  47539. }
  47540. ctx = graphql.WithFieldContext(ctx, fc)
  47541. defer func() {
  47542. if r := recover(); r != nil {
  47543. ec.Error(ctx, ec.Recover(ctx, r))
  47544. ret = graphql.Null
  47545. }
  47546. }()
  47547. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  47548. ctx = rctx // use context from middleware stack in children
  47549. return obj.Company, nil
  47550. })
  47551. if err != nil {
  47552. ec.Error(ctx, err)
  47553. return graphql.Null
  47554. }
  47555. if resTmp == nil {
  47556. if !graphql.HasFieldError(ctx, fc) {
  47557. ec.Errorf(ctx, "must not be null")
  47558. }
  47559. return graphql.Null
  47560. }
  47561. res := resTmp.(*Company)
  47562. fc.Result = res
  47563. return ec.marshalNCompany2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompany(ctx, field.Selections, res)
  47564. }
  47565. func (ec *executionContext) fieldContext_CompanyLocation_company(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  47566. fc = &graphql.FieldContext{
  47567. Object: "CompanyLocation",
  47568. Field: field,
  47569. IsMethod: false,
  47570. IsResolver: false,
  47571. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  47572. switch field.Name {
  47573. case "contactCount":
  47574. return ec.fieldContext_Company_contactCount(ctx, field)
  47575. case "contactRoles":
  47576. return ec.fieldContext_Company_contactRoles(ctx, field)
  47577. case "contacts":
  47578. return ec.fieldContext_Company_contacts(ctx, field)
  47579. case "createdAt":
  47580. return ec.fieldContext_Company_createdAt(ctx, field)
  47581. case "customerSince":
  47582. return ec.fieldContext_Company_customerSince(ctx, field)
  47583. case "defaultCursor":
  47584. return ec.fieldContext_Company_defaultCursor(ctx, field)
  47585. case "defaultRole":
  47586. return ec.fieldContext_Company_defaultRole(ctx, field)
  47587. case "draftOrders":
  47588. return ec.fieldContext_Company_draftOrders(ctx, field)
  47589. case "events":
  47590. return ec.fieldContext_Company_events(ctx, field)
  47591. case "externalId":
  47592. return ec.fieldContext_Company_externalId(ctx, field)
  47593. case "hasTimelineComment":
  47594. return ec.fieldContext_Company_hasTimelineComment(ctx, field)
  47595. case "id":
  47596. return ec.fieldContext_Company_id(ctx, field)
  47597. case "lifetimeDuration":
  47598. return ec.fieldContext_Company_lifetimeDuration(ctx, field)
  47599. case "locationCount":
  47600. return ec.fieldContext_Company_locationCount(ctx, field)
  47601. case "locations":
  47602. return ec.fieldContext_Company_locations(ctx, field)
  47603. case "mainContact":
  47604. return ec.fieldContext_Company_mainContact(ctx, field)
  47605. case "name":
  47606. return ec.fieldContext_Company_name(ctx, field)
  47607. case "note":
  47608. return ec.fieldContext_Company_note(ctx, field)
  47609. case "orderCount":
  47610. return ec.fieldContext_Company_orderCount(ctx, field)
  47611. case "orders":
  47612. return ec.fieldContext_Company_orders(ctx, field)
  47613. case "totalSpent":
  47614. return ec.fieldContext_Company_totalSpent(ctx, field)
  47615. case "updatedAt":
  47616. return ec.fieldContext_Company_updatedAt(ctx, field)
  47617. }
  47618. return nil, fmt.Errorf("no field named %q was found under type Company", field.Name)
  47619. },
  47620. }
  47621. return fc, nil
  47622. }
  47623. func (ec *executionContext) _CompanyLocation_createdAt(ctx context.Context, field graphql.CollectedField, obj *CompanyLocation) (ret graphql.Marshaler) {
  47624. fc, err := ec.fieldContext_CompanyLocation_createdAt(ctx, field)
  47625. if err != nil {
  47626. return graphql.Null
  47627. }
  47628. ctx = graphql.WithFieldContext(ctx, fc)
  47629. defer func() {
  47630. if r := recover(); r != nil {
  47631. ec.Error(ctx, ec.Recover(ctx, r))
  47632. ret = graphql.Null
  47633. }
  47634. }()
  47635. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  47636. ctx = rctx // use context from middleware stack in children
  47637. return obj.CreatedAt, nil
  47638. })
  47639. if err != nil {
  47640. ec.Error(ctx, err)
  47641. return graphql.Null
  47642. }
  47643. if resTmp == nil {
  47644. if !graphql.HasFieldError(ctx, fc) {
  47645. ec.Errorf(ctx, "must not be null")
  47646. }
  47647. return graphql.Null
  47648. }
  47649. res := resTmp.(string)
  47650. fc.Result = res
  47651. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  47652. }
  47653. func (ec *executionContext) fieldContext_CompanyLocation_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  47654. fc = &graphql.FieldContext{
  47655. Object: "CompanyLocation",
  47656. Field: field,
  47657. IsMethod: false,
  47658. IsResolver: false,
  47659. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  47660. return nil, errors.New("field of type DateTime does not have child fields")
  47661. },
  47662. }
  47663. return fc, nil
  47664. }
  47665. func (ec *executionContext) _CompanyLocation_currency(ctx context.Context, field graphql.CollectedField, obj *CompanyLocation) (ret graphql.Marshaler) {
  47666. fc, err := ec.fieldContext_CompanyLocation_currency(ctx, field)
  47667. if err != nil {
  47668. return graphql.Null
  47669. }
  47670. ctx = graphql.WithFieldContext(ctx, fc)
  47671. defer func() {
  47672. if r := recover(); r != nil {
  47673. ec.Error(ctx, ec.Recover(ctx, r))
  47674. ret = graphql.Null
  47675. }
  47676. }()
  47677. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  47678. ctx = rctx // use context from middleware stack in children
  47679. return obj.Currency, nil
  47680. })
  47681. if err != nil {
  47682. ec.Error(ctx, err)
  47683. return graphql.Null
  47684. }
  47685. if resTmp == nil {
  47686. if !graphql.HasFieldError(ctx, fc) {
  47687. ec.Errorf(ctx, "must not be null")
  47688. }
  47689. return graphql.Null
  47690. }
  47691. res := resTmp.(CurrencyCode)
  47692. fc.Result = res
  47693. return ec.marshalNCurrencyCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencyCode(ctx, field.Selections, res)
  47694. }
  47695. func (ec *executionContext) fieldContext_CompanyLocation_currency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  47696. fc = &graphql.FieldContext{
  47697. Object: "CompanyLocation",
  47698. Field: field,
  47699. IsMethod: false,
  47700. IsResolver: false,
  47701. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  47702. return nil, errors.New("field of type CurrencyCode does not have child fields")
  47703. },
  47704. }
  47705. return fc, nil
  47706. }
  47707. func (ec *executionContext) _CompanyLocation_defaultCursor(ctx context.Context, field graphql.CollectedField, obj *CompanyLocation) (ret graphql.Marshaler) {
  47708. fc, err := ec.fieldContext_CompanyLocation_defaultCursor(ctx, field)
  47709. if err != nil {
  47710. return graphql.Null
  47711. }
  47712. ctx = graphql.WithFieldContext(ctx, fc)
  47713. defer func() {
  47714. if r := recover(); r != nil {
  47715. ec.Error(ctx, ec.Recover(ctx, r))
  47716. ret = graphql.Null
  47717. }
  47718. }()
  47719. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  47720. ctx = rctx // use context from middleware stack in children
  47721. return obj.DefaultCursor, nil
  47722. })
  47723. if err != nil {
  47724. ec.Error(ctx, err)
  47725. return graphql.Null
  47726. }
  47727. if resTmp == nil {
  47728. if !graphql.HasFieldError(ctx, fc) {
  47729. ec.Errorf(ctx, "must not be null")
  47730. }
  47731. return graphql.Null
  47732. }
  47733. res := resTmp.(string)
  47734. fc.Result = res
  47735. return ec.marshalNString2string(ctx, field.Selections, res)
  47736. }
  47737. func (ec *executionContext) fieldContext_CompanyLocation_defaultCursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  47738. fc = &graphql.FieldContext{
  47739. Object: "CompanyLocation",
  47740. Field: field,
  47741. IsMethod: false,
  47742. IsResolver: false,
  47743. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  47744. return nil, errors.New("field of type String does not have child fields")
  47745. },
  47746. }
  47747. return fc, nil
  47748. }
  47749. func (ec *executionContext) _CompanyLocation_draftOrders(ctx context.Context, field graphql.CollectedField, obj *CompanyLocation) (ret graphql.Marshaler) {
  47750. fc, err := ec.fieldContext_CompanyLocation_draftOrders(ctx, field)
  47751. if err != nil {
  47752. return graphql.Null
  47753. }
  47754. ctx = graphql.WithFieldContext(ctx, fc)
  47755. defer func() {
  47756. if r := recover(); r != nil {
  47757. ec.Error(ctx, ec.Recover(ctx, r))
  47758. ret = graphql.Null
  47759. }
  47760. }()
  47761. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  47762. ctx = rctx // use context from middleware stack in children
  47763. return obj.DraftOrders, nil
  47764. })
  47765. if err != nil {
  47766. ec.Error(ctx, err)
  47767. return graphql.Null
  47768. }
  47769. if resTmp == nil {
  47770. if !graphql.HasFieldError(ctx, fc) {
  47771. ec.Errorf(ctx, "must not be null")
  47772. }
  47773. return graphql.Null
  47774. }
  47775. res := resTmp.(*DraftOrderConnection)
  47776. fc.Result = res
  47777. return ec.marshalNDraftOrderConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderConnection(ctx, field.Selections, res)
  47778. }
  47779. func (ec *executionContext) fieldContext_CompanyLocation_draftOrders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  47780. fc = &graphql.FieldContext{
  47781. Object: "CompanyLocation",
  47782. Field: field,
  47783. IsMethod: false,
  47784. IsResolver: false,
  47785. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  47786. switch field.Name {
  47787. case "edges":
  47788. return ec.fieldContext_DraftOrderConnection_edges(ctx, field)
  47789. case "nodes":
  47790. return ec.fieldContext_DraftOrderConnection_nodes(ctx, field)
  47791. case "pageInfo":
  47792. return ec.fieldContext_DraftOrderConnection_pageInfo(ctx, field)
  47793. }
  47794. return nil, fmt.Errorf("no field named %q was found under type DraftOrderConnection", field.Name)
  47795. },
  47796. }
  47797. defer func() {
  47798. if r := recover(); r != nil {
  47799. err = ec.Recover(ctx, r)
  47800. ec.Error(ctx, err)
  47801. }
  47802. }()
  47803. ctx = graphql.WithFieldContext(ctx, fc)
  47804. if fc.Args, err = ec.field_CompanyLocation_draftOrders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  47805. ec.Error(ctx, err)
  47806. return
  47807. }
  47808. return fc, nil
  47809. }
  47810. func (ec *executionContext) _CompanyLocation_events(ctx context.Context, field graphql.CollectedField, obj *CompanyLocation) (ret graphql.Marshaler) {
  47811. fc, err := ec.fieldContext_CompanyLocation_events(ctx, field)
  47812. if err != nil {
  47813. return graphql.Null
  47814. }
  47815. ctx = graphql.WithFieldContext(ctx, fc)
  47816. defer func() {
  47817. if r := recover(); r != nil {
  47818. ec.Error(ctx, ec.Recover(ctx, r))
  47819. ret = graphql.Null
  47820. }
  47821. }()
  47822. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  47823. ctx = rctx // use context from middleware stack in children
  47824. return obj.Events, nil
  47825. })
  47826. if err != nil {
  47827. ec.Error(ctx, err)
  47828. return graphql.Null
  47829. }
  47830. if resTmp == nil {
  47831. if !graphql.HasFieldError(ctx, fc) {
  47832. ec.Errorf(ctx, "must not be null")
  47833. }
  47834. return graphql.Null
  47835. }
  47836. res := resTmp.(*EventConnection)
  47837. fc.Result = res
  47838. return ec.marshalNEventConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐEventConnection(ctx, field.Selections, res)
  47839. }
  47840. func (ec *executionContext) fieldContext_CompanyLocation_events(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  47841. fc = &graphql.FieldContext{
  47842. Object: "CompanyLocation",
  47843. Field: field,
  47844. IsMethod: false,
  47845. IsResolver: false,
  47846. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  47847. switch field.Name {
  47848. case "edges":
  47849. return ec.fieldContext_EventConnection_edges(ctx, field)
  47850. case "nodes":
  47851. return ec.fieldContext_EventConnection_nodes(ctx, field)
  47852. case "pageInfo":
  47853. return ec.fieldContext_EventConnection_pageInfo(ctx, field)
  47854. }
  47855. return nil, fmt.Errorf("no field named %q was found under type EventConnection", field.Name)
  47856. },
  47857. }
  47858. defer func() {
  47859. if r := recover(); r != nil {
  47860. err = ec.Recover(ctx, r)
  47861. ec.Error(ctx, err)
  47862. }
  47863. }()
  47864. ctx = graphql.WithFieldContext(ctx, fc)
  47865. if fc.Args, err = ec.field_CompanyLocation_events_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  47866. ec.Error(ctx, err)
  47867. return
  47868. }
  47869. return fc, nil
  47870. }
  47871. func (ec *executionContext) _CompanyLocation_externalId(ctx context.Context, field graphql.CollectedField, obj *CompanyLocation) (ret graphql.Marshaler) {
  47872. fc, err := ec.fieldContext_CompanyLocation_externalId(ctx, field)
  47873. if err != nil {
  47874. return graphql.Null
  47875. }
  47876. ctx = graphql.WithFieldContext(ctx, fc)
  47877. defer func() {
  47878. if r := recover(); r != nil {
  47879. ec.Error(ctx, ec.Recover(ctx, r))
  47880. ret = graphql.Null
  47881. }
  47882. }()
  47883. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  47884. ctx = rctx // use context from middleware stack in children
  47885. return obj.ExternalID, nil
  47886. })
  47887. if err != nil {
  47888. ec.Error(ctx, err)
  47889. return graphql.Null
  47890. }
  47891. if resTmp == nil {
  47892. return graphql.Null
  47893. }
  47894. res := resTmp.(*string)
  47895. fc.Result = res
  47896. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  47897. }
  47898. func (ec *executionContext) fieldContext_CompanyLocation_externalId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  47899. fc = &graphql.FieldContext{
  47900. Object: "CompanyLocation",
  47901. Field: field,
  47902. IsMethod: false,
  47903. IsResolver: false,
  47904. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  47905. return nil, errors.New("field of type String does not have child fields")
  47906. },
  47907. }
  47908. return fc, nil
  47909. }
  47910. func (ec *executionContext) _CompanyLocation_hasTimelineComment(ctx context.Context, field graphql.CollectedField, obj *CompanyLocation) (ret graphql.Marshaler) {
  47911. fc, err := ec.fieldContext_CompanyLocation_hasTimelineComment(ctx, field)
  47912. if err != nil {
  47913. return graphql.Null
  47914. }
  47915. ctx = graphql.WithFieldContext(ctx, fc)
  47916. defer func() {
  47917. if r := recover(); r != nil {
  47918. ec.Error(ctx, ec.Recover(ctx, r))
  47919. ret = graphql.Null
  47920. }
  47921. }()
  47922. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  47923. ctx = rctx // use context from middleware stack in children
  47924. return obj.HasTimelineComment, nil
  47925. })
  47926. if err != nil {
  47927. ec.Error(ctx, err)
  47928. return graphql.Null
  47929. }
  47930. if resTmp == nil {
  47931. if !graphql.HasFieldError(ctx, fc) {
  47932. ec.Errorf(ctx, "must not be null")
  47933. }
  47934. return graphql.Null
  47935. }
  47936. res := resTmp.(bool)
  47937. fc.Result = res
  47938. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  47939. }
  47940. func (ec *executionContext) fieldContext_CompanyLocation_hasTimelineComment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  47941. fc = &graphql.FieldContext{
  47942. Object: "CompanyLocation",
  47943. Field: field,
  47944. IsMethod: false,
  47945. IsResolver: false,
  47946. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  47947. return nil, errors.New("field of type Boolean does not have child fields")
  47948. },
  47949. }
  47950. return fc, nil
  47951. }
  47952. func (ec *executionContext) _CompanyLocation_id(ctx context.Context, field graphql.CollectedField, obj *CompanyLocation) (ret graphql.Marshaler) {
  47953. fc, err := ec.fieldContext_CompanyLocation_id(ctx, field)
  47954. if err != nil {
  47955. return graphql.Null
  47956. }
  47957. ctx = graphql.WithFieldContext(ctx, fc)
  47958. defer func() {
  47959. if r := recover(); r != nil {
  47960. ec.Error(ctx, ec.Recover(ctx, r))
  47961. ret = graphql.Null
  47962. }
  47963. }()
  47964. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  47965. ctx = rctx // use context from middleware stack in children
  47966. return obj.ID, nil
  47967. })
  47968. if err != nil {
  47969. ec.Error(ctx, err)
  47970. return graphql.Null
  47971. }
  47972. if resTmp == nil {
  47973. if !graphql.HasFieldError(ctx, fc) {
  47974. ec.Errorf(ctx, "must not be null")
  47975. }
  47976. return graphql.Null
  47977. }
  47978. res := resTmp.(string)
  47979. fc.Result = res
  47980. return ec.marshalNID2string(ctx, field.Selections, res)
  47981. }
  47982. func (ec *executionContext) fieldContext_CompanyLocation_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  47983. fc = &graphql.FieldContext{
  47984. Object: "CompanyLocation",
  47985. Field: field,
  47986. IsMethod: false,
  47987. IsResolver: false,
  47988. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  47989. return nil, errors.New("field of type ID does not have child fields")
  47990. },
  47991. }
  47992. return fc, nil
  47993. }
  47994. func (ec *executionContext) _CompanyLocation_locale(ctx context.Context, field graphql.CollectedField, obj *CompanyLocation) (ret graphql.Marshaler) {
  47995. fc, err := ec.fieldContext_CompanyLocation_locale(ctx, field)
  47996. if err != nil {
  47997. return graphql.Null
  47998. }
  47999. ctx = graphql.WithFieldContext(ctx, fc)
  48000. defer func() {
  48001. if r := recover(); r != nil {
  48002. ec.Error(ctx, ec.Recover(ctx, r))
  48003. ret = graphql.Null
  48004. }
  48005. }()
  48006. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  48007. ctx = rctx // use context from middleware stack in children
  48008. return obj.Locale, nil
  48009. })
  48010. if err != nil {
  48011. ec.Error(ctx, err)
  48012. return graphql.Null
  48013. }
  48014. if resTmp == nil {
  48015. return graphql.Null
  48016. }
  48017. res := resTmp.(*string)
  48018. fc.Result = res
  48019. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  48020. }
  48021. func (ec *executionContext) fieldContext_CompanyLocation_locale(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  48022. fc = &graphql.FieldContext{
  48023. Object: "CompanyLocation",
  48024. Field: field,
  48025. IsMethod: false,
  48026. IsResolver: false,
  48027. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  48028. return nil, errors.New("field of type String does not have child fields")
  48029. },
  48030. }
  48031. return fc, nil
  48032. }
  48033. func (ec *executionContext) _CompanyLocation_market(ctx context.Context, field graphql.CollectedField, obj *CompanyLocation) (ret graphql.Marshaler) {
  48034. fc, err := ec.fieldContext_CompanyLocation_market(ctx, field)
  48035. if err != nil {
  48036. return graphql.Null
  48037. }
  48038. ctx = graphql.WithFieldContext(ctx, fc)
  48039. defer func() {
  48040. if r := recover(); r != nil {
  48041. ec.Error(ctx, ec.Recover(ctx, r))
  48042. ret = graphql.Null
  48043. }
  48044. }()
  48045. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  48046. ctx = rctx // use context from middleware stack in children
  48047. return obj.Market, nil
  48048. })
  48049. if err != nil {
  48050. ec.Error(ctx, err)
  48051. return graphql.Null
  48052. }
  48053. if resTmp == nil {
  48054. if !graphql.HasFieldError(ctx, fc) {
  48055. ec.Errorf(ctx, "must not be null")
  48056. }
  48057. return graphql.Null
  48058. }
  48059. res := resTmp.(*Market)
  48060. fc.Result = res
  48061. return ec.marshalNMarket2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarket(ctx, field.Selections, res)
  48062. }
  48063. func (ec *executionContext) fieldContext_CompanyLocation_market(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  48064. fc = &graphql.FieldContext{
  48065. Object: "CompanyLocation",
  48066. Field: field,
  48067. IsMethod: false,
  48068. IsResolver: false,
  48069. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  48070. switch field.Name {
  48071. case "currencySettings":
  48072. return ec.fieldContext_Market_currencySettings(ctx, field)
  48073. case "enabled":
  48074. return ec.fieldContext_Market_enabled(ctx, field)
  48075. case "id":
  48076. return ec.fieldContext_Market_id(ctx, field)
  48077. case "name":
  48078. return ec.fieldContext_Market_name(ctx, field)
  48079. case "priceList":
  48080. return ec.fieldContext_Market_priceList(ctx, field)
  48081. case "primary":
  48082. return ec.fieldContext_Market_primary(ctx, field)
  48083. case "regions":
  48084. return ec.fieldContext_Market_regions(ctx, field)
  48085. case "webPresence":
  48086. return ec.fieldContext_Market_webPresence(ctx, field)
  48087. }
  48088. return nil, fmt.Errorf("no field named %q was found under type Market", field.Name)
  48089. },
  48090. }
  48091. return fc, nil
  48092. }
  48093. func (ec *executionContext) _CompanyLocation_name(ctx context.Context, field graphql.CollectedField, obj *CompanyLocation) (ret graphql.Marshaler) {
  48094. fc, err := ec.fieldContext_CompanyLocation_name(ctx, field)
  48095. if err != nil {
  48096. return graphql.Null
  48097. }
  48098. ctx = graphql.WithFieldContext(ctx, fc)
  48099. defer func() {
  48100. if r := recover(); r != nil {
  48101. ec.Error(ctx, ec.Recover(ctx, r))
  48102. ret = graphql.Null
  48103. }
  48104. }()
  48105. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  48106. ctx = rctx // use context from middleware stack in children
  48107. return obj.Name, nil
  48108. })
  48109. if err != nil {
  48110. ec.Error(ctx, err)
  48111. return graphql.Null
  48112. }
  48113. if resTmp == nil {
  48114. if !graphql.HasFieldError(ctx, fc) {
  48115. ec.Errorf(ctx, "must not be null")
  48116. }
  48117. return graphql.Null
  48118. }
  48119. res := resTmp.(string)
  48120. fc.Result = res
  48121. return ec.marshalNString2string(ctx, field.Selections, res)
  48122. }
  48123. func (ec *executionContext) fieldContext_CompanyLocation_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  48124. fc = &graphql.FieldContext{
  48125. Object: "CompanyLocation",
  48126. Field: field,
  48127. IsMethod: false,
  48128. IsResolver: false,
  48129. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  48130. return nil, errors.New("field of type String does not have child fields")
  48131. },
  48132. }
  48133. return fc, nil
  48134. }
  48135. func (ec *executionContext) _CompanyLocation_note(ctx context.Context, field graphql.CollectedField, obj *CompanyLocation) (ret graphql.Marshaler) {
  48136. fc, err := ec.fieldContext_CompanyLocation_note(ctx, field)
  48137. if err != nil {
  48138. return graphql.Null
  48139. }
  48140. ctx = graphql.WithFieldContext(ctx, fc)
  48141. defer func() {
  48142. if r := recover(); r != nil {
  48143. ec.Error(ctx, ec.Recover(ctx, r))
  48144. ret = graphql.Null
  48145. }
  48146. }()
  48147. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  48148. ctx = rctx // use context from middleware stack in children
  48149. return obj.Note, nil
  48150. })
  48151. if err != nil {
  48152. ec.Error(ctx, err)
  48153. return graphql.Null
  48154. }
  48155. if resTmp == nil {
  48156. return graphql.Null
  48157. }
  48158. res := resTmp.(*string)
  48159. fc.Result = res
  48160. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  48161. }
  48162. func (ec *executionContext) fieldContext_CompanyLocation_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  48163. fc = &graphql.FieldContext{
  48164. Object: "CompanyLocation",
  48165. Field: field,
  48166. IsMethod: false,
  48167. IsResolver: false,
  48168. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  48169. return nil, errors.New("field of type String does not have child fields")
  48170. },
  48171. }
  48172. return fc, nil
  48173. }
  48174. func (ec *executionContext) _CompanyLocation_orderCount(ctx context.Context, field graphql.CollectedField, obj *CompanyLocation) (ret graphql.Marshaler) {
  48175. fc, err := ec.fieldContext_CompanyLocation_orderCount(ctx, field)
  48176. if err != nil {
  48177. return graphql.Null
  48178. }
  48179. ctx = graphql.WithFieldContext(ctx, fc)
  48180. defer func() {
  48181. if r := recover(); r != nil {
  48182. ec.Error(ctx, ec.Recover(ctx, r))
  48183. ret = graphql.Null
  48184. }
  48185. }()
  48186. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  48187. ctx = rctx // use context from middleware stack in children
  48188. return obj.OrderCount, nil
  48189. })
  48190. if err != nil {
  48191. ec.Error(ctx, err)
  48192. return graphql.Null
  48193. }
  48194. if resTmp == nil {
  48195. if !graphql.HasFieldError(ctx, fc) {
  48196. ec.Errorf(ctx, "must not be null")
  48197. }
  48198. return graphql.Null
  48199. }
  48200. res := resTmp.(int)
  48201. fc.Result = res
  48202. return ec.marshalNInt2int(ctx, field.Selections, res)
  48203. }
  48204. func (ec *executionContext) fieldContext_CompanyLocation_orderCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  48205. fc = &graphql.FieldContext{
  48206. Object: "CompanyLocation",
  48207. Field: field,
  48208. IsMethod: false,
  48209. IsResolver: false,
  48210. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  48211. return nil, errors.New("field of type Int does not have child fields")
  48212. },
  48213. }
  48214. return fc, nil
  48215. }
  48216. func (ec *executionContext) _CompanyLocation_orders(ctx context.Context, field graphql.CollectedField, obj *CompanyLocation) (ret graphql.Marshaler) {
  48217. fc, err := ec.fieldContext_CompanyLocation_orders(ctx, field)
  48218. if err != nil {
  48219. return graphql.Null
  48220. }
  48221. ctx = graphql.WithFieldContext(ctx, fc)
  48222. defer func() {
  48223. if r := recover(); r != nil {
  48224. ec.Error(ctx, ec.Recover(ctx, r))
  48225. ret = graphql.Null
  48226. }
  48227. }()
  48228. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  48229. ctx = rctx // use context from middleware stack in children
  48230. return obj.Orders, nil
  48231. })
  48232. if err != nil {
  48233. ec.Error(ctx, err)
  48234. return graphql.Null
  48235. }
  48236. if resTmp == nil {
  48237. if !graphql.HasFieldError(ctx, fc) {
  48238. ec.Errorf(ctx, "must not be null")
  48239. }
  48240. return graphql.Null
  48241. }
  48242. res := resTmp.(*OrderConnection)
  48243. fc.Result = res
  48244. return ec.marshalNOrderConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderConnection(ctx, field.Selections, res)
  48245. }
  48246. func (ec *executionContext) fieldContext_CompanyLocation_orders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  48247. fc = &graphql.FieldContext{
  48248. Object: "CompanyLocation",
  48249. Field: field,
  48250. IsMethod: false,
  48251. IsResolver: false,
  48252. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  48253. switch field.Name {
  48254. case "edges":
  48255. return ec.fieldContext_OrderConnection_edges(ctx, field)
  48256. case "nodes":
  48257. return ec.fieldContext_OrderConnection_nodes(ctx, field)
  48258. case "pageInfo":
  48259. return ec.fieldContext_OrderConnection_pageInfo(ctx, field)
  48260. }
  48261. return nil, fmt.Errorf("no field named %q was found under type OrderConnection", field.Name)
  48262. },
  48263. }
  48264. defer func() {
  48265. if r := recover(); r != nil {
  48266. err = ec.Recover(ctx, r)
  48267. ec.Error(ctx, err)
  48268. }
  48269. }()
  48270. ctx = graphql.WithFieldContext(ctx, fc)
  48271. if fc.Args, err = ec.field_CompanyLocation_orders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  48272. ec.Error(ctx, err)
  48273. return
  48274. }
  48275. return fc, nil
  48276. }
  48277. func (ec *executionContext) _CompanyLocation_phone(ctx context.Context, field graphql.CollectedField, obj *CompanyLocation) (ret graphql.Marshaler) {
  48278. fc, err := ec.fieldContext_CompanyLocation_phone(ctx, field)
  48279. if err != nil {
  48280. return graphql.Null
  48281. }
  48282. ctx = graphql.WithFieldContext(ctx, fc)
  48283. defer func() {
  48284. if r := recover(); r != nil {
  48285. ec.Error(ctx, ec.Recover(ctx, r))
  48286. ret = graphql.Null
  48287. }
  48288. }()
  48289. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  48290. ctx = rctx // use context from middleware stack in children
  48291. return obj.Phone, nil
  48292. })
  48293. if err != nil {
  48294. ec.Error(ctx, err)
  48295. return graphql.Null
  48296. }
  48297. if resTmp == nil {
  48298. return graphql.Null
  48299. }
  48300. res := resTmp.(*string)
  48301. fc.Result = res
  48302. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  48303. }
  48304. func (ec *executionContext) fieldContext_CompanyLocation_phone(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  48305. fc = &graphql.FieldContext{
  48306. Object: "CompanyLocation",
  48307. Field: field,
  48308. IsMethod: false,
  48309. IsResolver: false,
  48310. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  48311. return nil, errors.New("field of type String does not have child fields")
  48312. },
  48313. }
  48314. return fc, nil
  48315. }
  48316. func (ec *executionContext) _CompanyLocation_roleAssignments(ctx context.Context, field graphql.CollectedField, obj *CompanyLocation) (ret graphql.Marshaler) {
  48317. fc, err := ec.fieldContext_CompanyLocation_roleAssignments(ctx, field)
  48318. if err != nil {
  48319. return graphql.Null
  48320. }
  48321. ctx = graphql.WithFieldContext(ctx, fc)
  48322. defer func() {
  48323. if r := recover(); r != nil {
  48324. ec.Error(ctx, ec.Recover(ctx, r))
  48325. ret = graphql.Null
  48326. }
  48327. }()
  48328. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  48329. ctx = rctx // use context from middleware stack in children
  48330. return obj.RoleAssignments, nil
  48331. })
  48332. if err != nil {
  48333. ec.Error(ctx, err)
  48334. return graphql.Null
  48335. }
  48336. if resTmp == nil {
  48337. if !graphql.HasFieldError(ctx, fc) {
  48338. ec.Errorf(ctx, "must not be null")
  48339. }
  48340. return graphql.Null
  48341. }
  48342. res := resTmp.(*CompanyContactRoleAssignmentConnection)
  48343. fc.Result = res
  48344. return ec.marshalNCompanyContactRoleAssignmentConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRoleAssignmentConnection(ctx, field.Selections, res)
  48345. }
  48346. func (ec *executionContext) fieldContext_CompanyLocation_roleAssignments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  48347. fc = &graphql.FieldContext{
  48348. Object: "CompanyLocation",
  48349. Field: field,
  48350. IsMethod: false,
  48351. IsResolver: false,
  48352. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  48353. switch field.Name {
  48354. case "edges":
  48355. return ec.fieldContext_CompanyContactRoleAssignmentConnection_edges(ctx, field)
  48356. case "nodes":
  48357. return ec.fieldContext_CompanyContactRoleAssignmentConnection_nodes(ctx, field)
  48358. case "pageInfo":
  48359. return ec.fieldContext_CompanyContactRoleAssignmentConnection_pageInfo(ctx, field)
  48360. }
  48361. return nil, fmt.Errorf("no field named %q was found under type CompanyContactRoleAssignmentConnection", field.Name)
  48362. },
  48363. }
  48364. defer func() {
  48365. if r := recover(); r != nil {
  48366. err = ec.Recover(ctx, r)
  48367. ec.Error(ctx, err)
  48368. }
  48369. }()
  48370. ctx = graphql.WithFieldContext(ctx, fc)
  48371. if fc.Args, err = ec.field_CompanyLocation_roleAssignments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  48372. ec.Error(ctx, err)
  48373. return
  48374. }
  48375. return fc, nil
  48376. }
  48377. func (ec *executionContext) _CompanyLocation_shippingAddress(ctx context.Context, field graphql.CollectedField, obj *CompanyLocation) (ret graphql.Marshaler) {
  48378. fc, err := ec.fieldContext_CompanyLocation_shippingAddress(ctx, field)
  48379. if err != nil {
  48380. return graphql.Null
  48381. }
  48382. ctx = graphql.WithFieldContext(ctx, fc)
  48383. defer func() {
  48384. if r := recover(); r != nil {
  48385. ec.Error(ctx, ec.Recover(ctx, r))
  48386. ret = graphql.Null
  48387. }
  48388. }()
  48389. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  48390. ctx = rctx // use context from middleware stack in children
  48391. return obj.ShippingAddress, nil
  48392. })
  48393. if err != nil {
  48394. ec.Error(ctx, err)
  48395. return graphql.Null
  48396. }
  48397. if resTmp == nil {
  48398. return graphql.Null
  48399. }
  48400. res := resTmp.(*CompanyAddress)
  48401. fc.Result = res
  48402. return ec.marshalOCompanyAddress2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyAddress(ctx, field.Selections, res)
  48403. }
  48404. func (ec *executionContext) fieldContext_CompanyLocation_shippingAddress(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  48405. fc = &graphql.FieldContext{
  48406. Object: "CompanyLocation",
  48407. Field: field,
  48408. IsMethod: false,
  48409. IsResolver: false,
  48410. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  48411. switch field.Name {
  48412. case "address1":
  48413. return ec.fieldContext_CompanyAddress_address1(ctx, field)
  48414. case "address2":
  48415. return ec.fieldContext_CompanyAddress_address2(ctx, field)
  48416. case "city":
  48417. return ec.fieldContext_CompanyAddress_city(ctx, field)
  48418. case "companyName":
  48419. return ec.fieldContext_CompanyAddress_companyName(ctx, field)
  48420. case "country":
  48421. return ec.fieldContext_CompanyAddress_country(ctx, field)
  48422. case "countryCode":
  48423. return ec.fieldContext_CompanyAddress_countryCode(ctx, field)
  48424. case "createdAt":
  48425. return ec.fieldContext_CompanyAddress_createdAt(ctx, field)
  48426. case "formattedArea":
  48427. return ec.fieldContext_CompanyAddress_formattedArea(ctx, field)
  48428. case "id":
  48429. return ec.fieldContext_CompanyAddress_id(ctx, field)
  48430. case "phone":
  48431. return ec.fieldContext_CompanyAddress_phone(ctx, field)
  48432. case "province":
  48433. return ec.fieldContext_CompanyAddress_province(ctx, field)
  48434. case "recipient":
  48435. return ec.fieldContext_CompanyAddress_recipient(ctx, field)
  48436. case "updatedAt":
  48437. return ec.fieldContext_CompanyAddress_updatedAt(ctx, field)
  48438. case "zip":
  48439. return ec.fieldContext_CompanyAddress_zip(ctx, field)
  48440. case "zoneCode":
  48441. return ec.fieldContext_CompanyAddress_zoneCode(ctx, field)
  48442. }
  48443. return nil, fmt.Errorf("no field named %q was found under type CompanyAddress", field.Name)
  48444. },
  48445. }
  48446. return fc, nil
  48447. }
  48448. func (ec *executionContext) _CompanyLocation_taxExemptions(ctx context.Context, field graphql.CollectedField, obj *CompanyLocation) (ret graphql.Marshaler) {
  48449. fc, err := ec.fieldContext_CompanyLocation_taxExemptions(ctx, field)
  48450. if err != nil {
  48451. return graphql.Null
  48452. }
  48453. ctx = graphql.WithFieldContext(ctx, fc)
  48454. defer func() {
  48455. if r := recover(); r != nil {
  48456. ec.Error(ctx, ec.Recover(ctx, r))
  48457. ret = graphql.Null
  48458. }
  48459. }()
  48460. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  48461. ctx = rctx // use context from middleware stack in children
  48462. return obj.TaxExemptions, nil
  48463. })
  48464. if err != nil {
  48465. ec.Error(ctx, err)
  48466. return graphql.Null
  48467. }
  48468. if resTmp == nil {
  48469. if !graphql.HasFieldError(ctx, fc) {
  48470. ec.Errorf(ctx, "must not be null")
  48471. }
  48472. return graphql.Null
  48473. }
  48474. res := resTmp.([]TaxExemption)
  48475. fc.Result = res
  48476. return ec.marshalNTaxExemption2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐTaxExemptionᚄ(ctx, field.Selections, res)
  48477. }
  48478. func (ec *executionContext) fieldContext_CompanyLocation_taxExemptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  48479. fc = &graphql.FieldContext{
  48480. Object: "CompanyLocation",
  48481. Field: field,
  48482. IsMethod: false,
  48483. IsResolver: false,
  48484. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  48485. return nil, errors.New("field of type TaxExemption does not have child fields")
  48486. },
  48487. }
  48488. return fc, nil
  48489. }
  48490. func (ec *executionContext) _CompanyLocation_taxRegistrationId(ctx context.Context, field graphql.CollectedField, obj *CompanyLocation) (ret graphql.Marshaler) {
  48491. fc, err := ec.fieldContext_CompanyLocation_taxRegistrationId(ctx, field)
  48492. if err != nil {
  48493. return graphql.Null
  48494. }
  48495. ctx = graphql.WithFieldContext(ctx, fc)
  48496. defer func() {
  48497. if r := recover(); r != nil {
  48498. ec.Error(ctx, ec.Recover(ctx, r))
  48499. ret = graphql.Null
  48500. }
  48501. }()
  48502. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  48503. ctx = rctx // use context from middleware stack in children
  48504. return obj.TaxRegistrationID, nil
  48505. })
  48506. if err != nil {
  48507. ec.Error(ctx, err)
  48508. return graphql.Null
  48509. }
  48510. if resTmp == nil {
  48511. return graphql.Null
  48512. }
  48513. res := resTmp.(*string)
  48514. fc.Result = res
  48515. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  48516. }
  48517. func (ec *executionContext) fieldContext_CompanyLocation_taxRegistrationId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  48518. fc = &graphql.FieldContext{
  48519. Object: "CompanyLocation",
  48520. Field: field,
  48521. IsMethod: false,
  48522. IsResolver: false,
  48523. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  48524. return nil, errors.New("field of type String does not have child fields")
  48525. },
  48526. }
  48527. return fc, nil
  48528. }
  48529. func (ec *executionContext) _CompanyLocation_totalSpent(ctx context.Context, field graphql.CollectedField, obj *CompanyLocation) (ret graphql.Marshaler) {
  48530. fc, err := ec.fieldContext_CompanyLocation_totalSpent(ctx, field)
  48531. if err != nil {
  48532. return graphql.Null
  48533. }
  48534. ctx = graphql.WithFieldContext(ctx, fc)
  48535. defer func() {
  48536. if r := recover(); r != nil {
  48537. ec.Error(ctx, ec.Recover(ctx, r))
  48538. ret = graphql.Null
  48539. }
  48540. }()
  48541. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  48542. ctx = rctx // use context from middleware stack in children
  48543. return obj.TotalSpent, nil
  48544. })
  48545. if err != nil {
  48546. ec.Error(ctx, err)
  48547. return graphql.Null
  48548. }
  48549. if resTmp == nil {
  48550. if !graphql.HasFieldError(ctx, fc) {
  48551. ec.Errorf(ctx, "must not be null")
  48552. }
  48553. return graphql.Null
  48554. }
  48555. res := resTmp.(*MoneyV2)
  48556. fc.Result = res
  48557. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  48558. }
  48559. func (ec *executionContext) fieldContext_CompanyLocation_totalSpent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  48560. fc = &graphql.FieldContext{
  48561. Object: "CompanyLocation",
  48562. Field: field,
  48563. IsMethod: false,
  48564. IsResolver: false,
  48565. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  48566. switch field.Name {
  48567. case "amount":
  48568. return ec.fieldContext_MoneyV2_amount(ctx, field)
  48569. case "currencyCode":
  48570. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  48571. }
  48572. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  48573. },
  48574. }
  48575. return fc, nil
  48576. }
  48577. func (ec *executionContext) _CompanyLocation_updatedAt(ctx context.Context, field graphql.CollectedField, obj *CompanyLocation) (ret graphql.Marshaler) {
  48578. fc, err := ec.fieldContext_CompanyLocation_updatedAt(ctx, field)
  48579. if err != nil {
  48580. return graphql.Null
  48581. }
  48582. ctx = graphql.WithFieldContext(ctx, fc)
  48583. defer func() {
  48584. if r := recover(); r != nil {
  48585. ec.Error(ctx, ec.Recover(ctx, r))
  48586. ret = graphql.Null
  48587. }
  48588. }()
  48589. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  48590. ctx = rctx // use context from middleware stack in children
  48591. return obj.UpdatedAt, nil
  48592. })
  48593. if err != nil {
  48594. ec.Error(ctx, err)
  48595. return graphql.Null
  48596. }
  48597. if resTmp == nil {
  48598. if !graphql.HasFieldError(ctx, fc) {
  48599. ec.Errorf(ctx, "must not be null")
  48600. }
  48601. return graphql.Null
  48602. }
  48603. res := resTmp.(string)
  48604. fc.Result = res
  48605. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  48606. }
  48607. func (ec *executionContext) fieldContext_CompanyLocation_updatedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  48608. fc = &graphql.FieldContext{
  48609. Object: "CompanyLocation",
  48610. Field: field,
  48611. IsMethod: false,
  48612. IsResolver: false,
  48613. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  48614. return nil, errors.New("field of type DateTime does not have child fields")
  48615. },
  48616. }
  48617. return fc, nil
  48618. }
  48619. func (ec *executionContext) _CompanyLocationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *CompanyLocationConnection) (ret graphql.Marshaler) {
  48620. fc, err := ec.fieldContext_CompanyLocationConnection_edges(ctx, field)
  48621. if err != nil {
  48622. return graphql.Null
  48623. }
  48624. ctx = graphql.WithFieldContext(ctx, fc)
  48625. defer func() {
  48626. if r := recover(); r != nil {
  48627. ec.Error(ctx, ec.Recover(ctx, r))
  48628. ret = graphql.Null
  48629. }
  48630. }()
  48631. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  48632. ctx = rctx // use context from middleware stack in children
  48633. return obj.Edges, nil
  48634. })
  48635. if err != nil {
  48636. ec.Error(ctx, err)
  48637. return graphql.Null
  48638. }
  48639. if resTmp == nil {
  48640. if !graphql.HasFieldError(ctx, fc) {
  48641. ec.Errorf(ctx, "must not be null")
  48642. }
  48643. return graphql.Null
  48644. }
  48645. res := resTmp.([]*CompanyLocationEdge)
  48646. fc.Result = res
  48647. return ec.marshalNCompanyLocationEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyLocationEdgeᚄ(ctx, field.Selections, res)
  48648. }
  48649. func (ec *executionContext) fieldContext_CompanyLocationConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  48650. fc = &graphql.FieldContext{
  48651. Object: "CompanyLocationConnection",
  48652. Field: field,
  48653. IsMethod: false,
  48654. IsResolver: false,
  48655. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  48656. switch field.Name {
  48657. case "cursor":
  48658. return ec.fieldContext_CompanyLocationEdge_cursor(ctx, field)
  48659. case "node":
  48660. return ec.fieldContext_CompanyLocationEdge_node(ctx, field)
  48661. }
  48662. return nil, fmt.Errorf("no field named %q was found under type CompanyLocationEdge", field.Name)
  48663. },
  48664. }
  48665. return fc, nil
  48666. }
  48667. func (ec *executionContext) _CompanyLocationConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *CompanyLocationConnection) (ret graphql.Marshaler) {
  48668. fc, err := ec.fieldContext_CompanyLocationConnection_nodes(ctx, field)
  48669. if err != nil {
  48670. return graphql.Null
  48671. }
  48672. ctx = graphql.WithFieldContext(ctx, fc)
  48673. defer func() {
  48674. if r := recover(); r != nil {
  48675. ec.Error(ctx, ec.Recover(ctx, r))
  48676. ret = graphql.Null
  48677. }
  48678. }()
  48679. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  48680. ctx = rctx // use context from middleware stack in children
  48681. return obj.Nodes, nil
  48682. })
  48683. if err != nil {
  48684. ec.Error(ctx, err)
  48685. return graphql.Null
  48686. }
  48687. if resTmp == nil {
  48688. if !graphql.HasFieldError(ctx, fc) {
  48689. ec.Errorf(ctx, "must not be null")
  48690. }
  48691. return graphql.Null
  48692. }
  48693. res := resTmp.([]*CompanyLocation)
  48694. fc.Result = res
  48695. return ec.marshalNCompanyLocation2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyLocationᚄ(ctx, field.Selections, res)
  48696. }
  48697. func (ec *executionContext) fieldContext_CompanyLocationConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  48698. fc = &graphql.FieldContext{
  48699. Object: "CompanyLocationConnection",
  48700. Field: field,
  48701. IsMethod: false,
  48702. IsResolver: false,
  48703. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  48704. switch field.Name {
  48705. case "billingAddress":
  48706. return ec.fieldContext_CompanyLocation_billingAddress(ctx, field)
  48707. case "buyerExperienceConfiguration":
  48708. return ec.fieldContext_CompanyLocation_buyerExperienceConfiguration(ctx, field)
  48709. case "company":
  48710. return ec.fieldContext_CompanyLocation_company(ctx, field)
  48711. case "createdAt":
  48712. return ec.fieldContext_CompanyLocation_createdAt(ctx, field)
  48713. case "currency":
  48714. return ec.fieldContext_CompanyLocation_currency(ctx, field)
  48715. case "defaultCursor":
  48716. return ec.fieldContext_CompanyLocation_defaultCursor(ctx, field)
  48717. case "draftOrders":
  48718. return ec.fieldContext_CompanyLocation_draftOrders(ctx, field)
  48719. case "events":
  48720. return ec.fieldContext_CompanyLocation_events(ctx, field)
  48721. case "externalId":
  48722. return ec.fieldContext_CompanyLocation_externalId(ctx, field)
  48723. case "hasTimelineComment":
  48724. return ec.fieldContext_CompanyLocation_hasTimelineComment(ctx, field)
  48725. case "id":
  48726. return ec.fieldContext_CompanyLocation_id(ctx, field)
  48727. case "locale":
  48728. return ec.fieldContext_CompanyLocation_locale(ctx, field)
  48729. case "market":
  48730. return ec.fieldContext_CompanyLocation_market(ctx, field)
  48731. case "name":
  48732. return ec.fieldContext_CompanyLocation_name(ctx, field)
  48733. case "note":
  48734. return ec.fieldContext_CompanyLocation_note(ctx, field)
  48735. case "orderCount":
  48736. return ec.fieldContext_CompanyLocation_orderCount(ctx, field)
  48737. case "orders":
  48738. return ec.fieldContext_CompanyLocation_orders(ctx, field)
  48739. case "phone":
  48740. return ec.fieldContext_CompanyLocation_phone(ctx, field)
  48741. case "roleAssignments":
  48742. return ec.fieldContext_CompanyLocation_roleAssignments(ctx, field)
  48743. case "shippingAddress":
  48744. return ec.fieldContext_CompanyLocation_shippingAddress(ctx, field)
  48745. case "taxExemptions":
  48746. return ec.fieldContext_CompanyLocation_taxExemptions(ctx, field)
  48747. case "taxRegistrationId":
  48748. return ec.fieldContext_CompanyLocation_taxRegistrationId(ctx, field)
  48749. case "totalSpent":
  48750. return ec.fieldContext_CompanyLocation_totalSpent(ctx, field)
  48751. case "updatedAt":
  48752. return ec.fieldContext_CompanyLocation_updatedAt(ctx, field)
  48753. }
  48754. return nil, fmt.Errorf("no field named %q was found under type CompanyLocation", field.Name)
  48755. },
  48756. }
  48757. return fc, nil
  48758. }
  48759. func (ec *executionContext) _CompanyLocationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *CompanyLocationConnection) (ret graphql.Marshaler) {
  48760. fc, err := ec.fieldContext_CompanyLocationConnection_pageInfo(ctx, field)
  48761. if err != nil {
  48762. return graphql.Null
  48763. }
  48764. ctx = graphql.WithFieldContext(ctx, fc)
  48765. defer func() {
  48766. if r := recover(); r != nil {
  48767. ec.Error(ctx, ec.Recover(ctx, r))
  48768. ret = graphql.Null
  48769. }
  48770. }()
  48771. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  48772. ctx = rctx // use context from middleware stack in children
  48773. return obj.PageInfo, nil
  48774. })
  48775. if err != nil {
  48776. ec.Error(ctx, err)
  48777. return graphql.Null
  48778. }
  48779. if resTmp == nil {
  48780. if !graphql.HasFieldError(ctx, fc) {
  48781. ec.Errorf(ctx, "must not be null")
  48782. }
  48783. return graphql.Null
  48784. }
  48785. res := resTmp.(*PageInfo)
  48786. fc.Result = res
  48787. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  48788. }
  48789. func (ec *executionContext) fieldContext_CompanyLocationConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  48790. fc = &graphql.FieldContext{
  48791. Object: "CompanyLocationConnection",
  48792. Field: field,
  48793. IsMethod: false,
  48794. IsResolver: false,
  48795. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  48796. switch field.Name {
  48797. case "endCursor":
  48798. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  48799. case "hasNextPage":
  48800. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  48801. case "hasPreviousPage":
  48802. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  48803. case "startCursor":
  48804. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  48805. }
  48806. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  48807. },
  48808. }
  48809. return fc, nil
  48810. }
  48811. func (ec *executionContext) _CompanyLocationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *CompanyLocationEdge) (ret graphql.Marshaler) {
  48812. fc, err := ec.fieldContext_CompanyLocationEdge_cursor(ctx, field)
  48813. if err != nil {
  48814. return graphql.Null
  48815. }
  48816. ctx = graphql.WithFieldContext(ctx, fc)
  48817. defer func() {
  48818. if r := recover(); r != nil {
  48819. ec.Error(ctx, ec.Recover(ctx, r))
  48820. ret = graphql.Null
  48821. }
  48822. }()
  48823. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  48824. ctx = rctx // use context from middleware stack in children
  48825. return obj.Cursor, nil
  48826. })
  48827. if err != nil {
  48828. ec.Error(ctx, err)
  48829. return graphql.Null
  48830. }
  48831. if resTmp == nil {
  48832. if !graphql.HasFieldError(ctx, fc) {
  48833. ec.Errorf(ctx, "must not be null")
  48834. }
  48835. return graphql.Null
  48836. }
  48837. res := resTmp.(string)
  48838. fc.Result = res
  48839. return ec.marshalNString2string(ctx, field.Selections, res)
  48840. }
  48841. func (ec *executionContext) fieldContext_CompanyLocationEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  48842. fc = &graphql.FieldContext{
  48843. Object: "CompanyLocationEdge",
  48844. Field: field,
  48845. IsMethod: false,
  48846. IsResolver: false,
  48847. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  48848. return nil, errors.New("field of type String does not have child fields")
  48849. },
  48850. }
  48851. return fc, nil
  48852. }
  48853. func (ec *executionContext) _CompanyLocationEdge_node(ctx context.Context, field graphql.CollectedField, obj *CompanyLocationEdge) (ret graphql.Marshaler) {
  48854. fc, err := ec.fieldContext_CompanyLocationEdge_node(ctx, field)
  48855. if err != nil {
  48856. return graphql.Null
  48857. }
  48858. ctx = graphql.WithFieldContext(ctx, fc)
  48859. defer func() {
  48860. if r := recover(); r != nil {
  48861. ec.Error(ctx, ec.Recover(ctx, r))
  48862. ret = graphql.Null
  48863. }
  48864. }()
  48865. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  48866. ctx = rctx // use context from middleware stack in children
  48867. return obj.Node, nil
  48868. })
  48869. if err != nil {
  48870. ec.Error(ctx, err)
  48871. return graphql.Null
  48872. }
  48873. if resTmp == nil {
  48874. if !graphql.HasFieldError(ctx, fc) {
  48875. ec.Errorf(ctx, "must not be null")
  48876. }
  48877. return graphql.Null
  48878. }
  48879. res := resTmp.(*CompanyLocation)
  48880. fc.Result = res
  48881. return ec.marshalNCompanyLocation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyLocation(ctx, field.Selections, res)
  48882. }
  48883. func (ec *executionContext) fieldContext_CompanyLocationEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  48884. fc = &graphql.FieldContext{
  48885. Object: "CompanyLocationEdge",
  48886. Field: field,
  48887. IsMethod: false,
  48888. IsResolver: false,
  48889. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  48890. switch field.Name {
  48891. case "billingAddress":
  48892. return ec.fieldContext_CompanyLocation_billingAddress(ctx, field)
  48893. case "buyerExperienceConfiguration":
  48894. return ec.fieldContext_CompanyLocation_buyerExperienceConfiguration(ctx, field)
  48895. case "company":
  48896. return ec.fieldContext_CompanyLocation_company(ctx, field)
  48897. case "createdAt":
  48898. return ec.fieldContext_CompanyLocation_createdAt(ctx, field)
  48899. case "currency":
  48900. return ec.fieldContext_CompanyLocation_currency(ctx, field)
  48901. case "defaultCursor":
  48902. return ec.fieldContext_CompanyLocation_defaultCursor(ctx, field)
  48903. case "draftOrders":
  48904. return ec.fieldContext_CompanyLocation_draftOrders(ctx, field)
  48905. case "events":
  48906. return ec.fieldContext_CompanyLocation_events(ctx, field)
  48907. case "externalId":
  48908. return ec.fieldContext_CompanyLocation_externalId(ctx, field)
  48909. case "hasTimelineComment":
  48910. return ec.fieldContext_CompanyLocation_hasTimelineComment(ctx, field)
  48911. case "id":
  48912. return ec.fieldContext_CompanyLocation_id(ctx, field)
  48913. case "locale":
  48914. return ec.fieldContext_CompanyLocation_locale(ctx, field)
  48915. case "market":
  48916. return ec.fieldContext_CompanyLocation_market(ctx, field)
  48917. case "name":
  48918. return ec.fieldContext_CompanyLocation_name(ctx, field)
  48919. case "note":
  48920. return ec.fieldContext_CompanyLocation_note(ctx, field)
  48921. case "orderCount":
  48922. return ec.fieldContext_CompanyLocation_orderCount(ctx, field)
  48923. case "orders":
  48924. return ec.fieldContext_CompanyLocation_orders(ctx, field)
  48925. case "phone":
  48926. return ec.fieldContext_CompanyLocation_phone(ctx, field)
  48927. case "roleAssignments":
  48928. return ec.fieldContext_CompanyLocation_roleAssignments(ctx, field)
  48929. case "shippingAddress":
  48930. return ec.fieldContext_CompanyLocation_shippingAddress(ctx, field)
  48931. case "taxExemptions":
  48932. return ec.fieldContext_CompanyLocation_taxExemptions(ctx, field)
  48933. case "taxRegistrationId":
  48934. return ec.fieldContext_CompanyLocation_taxRegistrationId(ctx, field)
  48935. case "totalSpent":
  48936. return ec.fieldContext_CompanyLocation_totalSpent(ctx, field)
  48937. case "updatedAt":
  48938. return ec.fieldContext_CompanyLocation_updatedAt(ctx, field)
  48939. }
  48940. return nil, fmt.Errorf("no field named %q was found under type CompanyLocation", field.Name)
  48941. },
  48942. }
  48943. return fc, nil
  48944. }
  48945. func (ec *executionContext) _CountriesInShippingZones_countryCodes(ctx context.Context, field graphql.CollectedField, obj *CountriesInShippingZones) (ret graphql.Marshaler) {
  48946. fc, err := ec.fieldContext_CountriesInShippingZones_countryCodes(ctx, field)
  48947. if err != nil {
  48948. return graphql.Null
  48949. }
  48950. ctx = graphql.WithFieldContext(ctx, fc)
  48951. defer func() {
  48952. if r := recover(); r != nil {
  48953. ec.Error(ctx, ec.Recover(ctx, r))
  48954. ret = graphql.Null
  48955. }
  48956. }()
  48957. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  48958. ctx = rctx // use context from middleware stack in children
  48959. return obj.CountryCodes, nil
  48960. })
  48961. if err != nil {
  48962. ec.Error(ctx, err)
  48963. return graphql.Null
  48964. }
  48965. if resTmp == nil {
  48966. if !graphql.HasFieldError(ctx, fc) {
  48967. ec.Errorf(ctx, "must not be null")
  48968. }
  48969. return graphql.Null
  48970. }
  48971. res := resTmp.([]CountryCode)
  48972. fc.Result = res
  48973. return ec.marshalNCountryCode2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCodeᚄ(ctx, field.Selections, res)
  48974. }
  48975. func (ec *executionContext) fieldContext_CountriesInShippingZones_countryCodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  48976. fc = &graphql.FieldContext{
  48977. Object: "CountriesInShippingZones",
  48978. Field: field,
  48979. IsMethod: false,
  48980. IsResolver: false,
  48981. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  48982. return nil, errors.New("field of type CountryCode does not have child fields")
  48983. },
  48984. }
  48985. return fc, nil
  48986. }
  48987. func (ec *executionContext) _CountriesInShippingZones_includeRestOfWorld(ctx context.Context, field graphql.CollectedField, obj *CountriesInShippingZones) (ret graphql.Marshaler) {
  48988. fc, err := ec.fieldContext_CountriesInShippingZones_includeRestOfWorld(ctx, field)
  48989. if err != nil {
  48990. return graphql.Null
  48991. }
  48992. ctx = graphql.WithFieldContext(ctx, fc)
  48993. defer func() {
  48994. if r := recover(); r != nil {
  48995. ec.Error(ctx, ec.Recover(ctx, r))
  48996. ret = graphql.Null
  48997. }
  48998. }()
  48999. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  49000. ctx = rctx // use context from middleware stack in children
  49001. return obj.IncludeRestOfWorld, nil
  49002. })
  49003. if err != nil {
  49004. ec.Error(ctx, err)
  49005. return graphql.Null
  49006. }
  49007. if resTmp == nil {
  49008. if !graphql.HasFieldError(ctx, fc) {
  49009. ec.Errorf(ctx, "must not be null")
  49010. }
  49011. return graphql.Null
  49012. }
  49013. res := resTmp.(bool)
  49014. fc.Result = res
  49015. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  49016. }
  49017. func (ec *executionContext) fieldContext_CountriesInShippingZones_includeRestOfWorld(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  49018. fc = &graphql.FieldContext{
  49019. Object: "CountriesInShippingZones",
  49020. Field: field,
  49021. IsMethod: false,
  49022. IsResolver: false,
  49023. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  49024. return nil, errors.New("field of type Boolean does not have child fields")
  49025. },
  49026. }
  49027. return fc, nil
  49028. }
  49029. func (ec *executionContext) _CountryHarmonizedSystemCode_countryCode(ctx context.Context, field graphql.CollectedField, obj *CountryHarmonizedSystemCode) (ret graphql.Marshaler) {
  49030. fc, err := ec.fieldContext_CountryHarmonizedSystemCode_countryCode(ctx, field)
  49031. if err != nil {
  49032. return graphql.Null
  49033. }
  49034. ctx = graphql.WithFieldContext(ctx, fc)
  49035. defer func() {
  49036. if r := recover(); r != nil {
  49037. ec.Error(ctx, ec.Recover(ctx, r))
  49038. ret = graphql.Null
  49039. }
  49040. }()
  49041. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  49042. ctx = rctx // use context from middleware stack in children
  49043. return obj.CountryCode, nil
  49044. })
  49045. if err != nil {
  49046. ec.Error(ctx, err)
  49047. return graphql.Null
  49048. }
  49049. if resTmp == nil {
  49050. if !graphql.HasFieldError(ctx, fc) {
  49051. ec.Errorf(ctx, "must not be null")
  49052. }
  49053. return graphql.Null
  49054. }
  49055. res := resTmp.(CountryCode)
  49056. fc.Result = res
  49057. return ec.marshalNCountryCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCode(ctx, field.Selections, res)
  49058. }
  49059. func (ec *executionContext) fieldContext_CountryHarmonizedSystemCode_countryCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  49060. fc = &graphql.FieldContext{
  49061. Object: "CountryHarmonizedSystemCode",
  49062. Field: field,
  49063. IsMethod: false,
  49064. IsResolver: false,
  49065. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  49066. return nil, errors.New("field of type CountryCode does not have child fields")
  49067. },
  49068. }
  49069. return fc, nil
  49070. }
  49071. func (ec *executionContext) _CountryHarmonizedSystemCode_harmonizedSystemCode(ctx context.Context, field graphql.CollectedField, obj *CountryHarmonizedSystemCode) (ret graphql.Marshaler) {
  49072. fc, err := ec.fieldContext_CountryHarmonizedSystemCode_harmonizedSystemCode(ctx, field)
  49073. if err != nil {
  49074. return graphql.Null
  49075. }
  49076. ctx = graphql.WithFieldContext(ctx, fc)
  49077. defer func() {
  49078. if r := recover(); r != nil {
  49079. ec.Error(ctx, ec.Recover(ctx, r))
  49080. ret = graphql.Null
  49081. }
  49082. }()
  49083. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  49084. ctx = rctx // use context from middleware stack in children
  49085. return obj.HarmonizedSystemCode, nil
  49086. })
  49087. if err != nil {
  49088. ec.Error(ctx, err)
  49089. return graphql.Null
  49090. }
  49091. if resTmp == nil {
  49092. if !graphql.HasFieldError(ctx, fc) {
  49093. ec.Errorf(ctx, "must not be null")
  49094. }
  49095. return graphql.Null
  49096. }
  49097. res := resTmp.(string)
  49098. fc.Result = res
  49099. return ec.marshalNString2string(ctx, field.Selections, res)
  49100. }
  49101. func (ec *executionContext) fieldContext_CountryHarmonizedSystemCode_harmonizedSystemCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  49102. fc = &graphql.FieldContext{
  49103. Object: "CountryHarmonizedSystemCode",
  49104. Field: field,
  49105. IsMethod: false,
  49106. IsResolver: false,
  49107. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  49108. return nil, errors.New("field of type String does not have child fields")
  49109. },
  49110. }
  49111. return fc, nil
  49112. }
  49113. func (ec *executionContext) _CountryHarmonizedSystemCodeConnection_edges(ctx context.Context, field graphql.CollectedField, obj *CountryHarmonizedSystemCodeConnection) (ret graphql.Marshaler) {
  49114. fc, err := ec.fieldContext_CountryHarmonizedSystemCodeConnection_edges(ctx, field)
  49115. if err != nil {
  49116. return graphql.Null
  49117. }
  49118. ctx = graphql.WithFieldContext(ctx, fc)
  49119. defer func() {
  49120. if r := recover(); r != nil {
  49121. ec.Error(ctx, ec.Recover(ctx, r))
  49122. ret = graphql.Null
  49123. }
  49124. }()
  49125. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  49126. ctx = rctx // use context from middleware stack in children
  49127. return obj.Edges, nil
  49128. })
  49129. if err != nil {
  49130. ec.Error(ctx, err)
  49131. return graphql.Null
  49132. }
  49133. if resTmp == nil {
  49134. if !graphql.HasFieldError(ctx, fc) {
  49135. ec.Errorf(ctx, "must not be null")
  49136. }
  49137. return graphql.Null
  49138. }
  49139. res := resTmp.([]*CountryHarmonizedSystemCodeEdge)
  49140. fc.Result = res
  49141. return ec.marshalNCountryHarmonizedSystemCodeEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryHarmonizedSystemCodeEdgeᚄ(ctx, field.Selections, res)
  49142. }
  49143. func (ec *executionContext) fieldContext_CountryHarmonizedSystemCodeConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  49144. fc = &graphql.FieldContext{
  49145. Object: "CountryHarmonizedSystemCodeConnection",
  49146. Field: field,
  49147. IsMethod: false,
  49148. IsResolver: false,
  49149. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  49150. switch field.Name {
  49151. case "cursor":
  49152. return ec.fieldContext_CountryHarmonizedSystemCodeEdge_cursor(ctx, field)
  49153. case "node":
  49154. return ec.fieldContext_CountryHarmonizedSystemCodeEdge_node(ctx, field)
  49155. }
  49156. return nil, fmt.Errorf("no field named %q was found under type CountryHarmonizedSystemCodeEdge", field.Name)
  49157. },
  49158. }
  49159. return fc, nil
  49160. }
  49161. func (ec *executionContext) _CountryHarmonizedSystemCodeConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *CountryHarmonizedSystemCodeConnection) (ret graphql.Marshaler) {
  49162. fc, err := ec.fieldContext_CountryHarmonizedSystemCodeConnection_nodes(ctx, field)
  49163. if err != nil {
  49164. return graphql.Null
  49165. }
  49166. ctx = graphql.WithFieldContext(ctx, fc)
  49167. defer func() {
  49168. if r := recover(); r != nil {
  49169. ec.Error(ctx, ec.Recover(ctx, r))
  49170. ret = graphql.Null
  49171. }
  49172. }()
  49173. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  49174. ctx = rctx // use context from middleware stack in children
  49175. return obj.Nodes, nil
  49176. })
  49177. if err != nil {
  49178. ec.Error(ctx, err)
  49179. return graphql.Null
  49180. }
  49181. if resTmp == nil {
  49182. if !graphql.HasFieldError(ctx, fc) {
  49183. ec.Errorf(ctx, "must not be null")
  49184. }
  49185. return graphql.Null
  49186. }
  49187. res := resTmp.([]*CountryHarmonizedSystemCode)
  49188. fc.Result = res
  49189. return ec.marshalNCountryHarmonizedSystemCode2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryHarmonizedSystemCodeᚄ(ctx, field.Selections, res)
  49190. }
  49191. func (ec *executionContext) fieldContext_CountryHarmonizedSystemCodeConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  49192. fc = &graphql.FieldContext{
  49193. Object: "CountryHarmonizedSystemCodeConnection",
  49194. Field: field,
  49195. IsMethod: false,
  49196. IsResolver: false,
  49197. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  49198. switch field.Name {
  49199. case "countryCode":
  49200. return ec.fieldContext_CountryHarmonizedSystemCode_countryCode(ctx, field)
  49201. case "harmonizedSystemCode":
  49202. return ec.fieldContext_CountryHarmonizedSystemCode_harmonizedSystemCode(ctx, field)
  49203. }
  49204. return nil, fmt.Errorf("no field named %q was found under type CountryHarmonizedSystemCode", field.Name)
  49205. },
  49206. }
  49207. return fc, nil
  49208. }
  49209. func (ec *executionContext) _CountryHarmonizedSystemCodeConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *CountryHarmonizedSystemCodeConnection) (ret graphql.Marshaler) {
  49210. fc, err := ec.fieldContext_CountryHarmonizedSystemCodeConnection_pageInfo(ctx, field)
  49211. if err != nil {
  49212. return graphql.Null
  49213. }
  49214. ctx = graphql.WithFieldContext(ctx, fc)
  49215. defer func() {
  49216. if r := recover(); r != nil {
  49217. ec.Error(ctx, ec.Recover(ctx, r))
  49218. ret = graphql.Null
  49219. }
  49220. }()
  49221. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  49222. ctx = rctx // use context from middleware stack in children
  49223. return obj.PageInfo, nil
  49224. })
  49225. if err != nil {
  49226. ec.Error(ctx, err)
  49227. return graphql.Null
  49228. }
  49229. if resTmp == nil {
  49230. if !graphql.HasFieldError(ctx, fc) {
  49231. ec.Errorf(ctx, "must not be null")
  49232. }
  49233. return graphql.Null
  49234. }
  49235. res := resTmp.(*PageInfo)
  49236. fc.Result = res
  49237. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  49238. }
  49239. func (ec *executionContext) fieldContext_CountryHarmonizedSystemCodeConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  49240. fc = &graphql.FieldContext{
  49241. Object: "CountryHarmonizedSystemCodeConnection",
  49242. Field: field,
  49243. IsMethod: false,
  49244. IsResolver: false,
  49245. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  49246. switch field.Name {
  49247. case "endCursor":
  49248. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  49249. case "hasNextPage":
  49250. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  49251. case "hasPreviousPage":
  49252. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  49253. case "startCursor":
  49254. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  49255. }
  49256. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  49257. },
  49258. }
  49259. return fc, nil
  49260. }
  49261. func (ec *executionContext) _CountryHarmonizedSystemCodeEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *CountryHarmonizedSystemCodeEdge) (ret graphql.Marshaler) {
  49262. fc, err := ec.fieldContext_CountryHarmonizedSystemCodeEdge_cursor(ctx, field)
  49263. if err != nil {
  49264. return graphql.Null
  49265. }
  49266. ctx = graphql.WithFieldContext(ctx, fc)
  49267. defer func() {
  49268. if r := recover(); r != nil {
  49269. ec.Error(ctx, ec.Recover(ctx, r))
  49270. ret = graphql.Null
  49271. }
  49272. }()
  49273. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  49274. ctx = rctx // use context from middleware stack in children
  49275. return obj.Cursor, nil
  49276. })
  49277. if err != nil {
  49278. ec.Error(ctx, err)
  49279. return graphql.Null
  49280. }
  49281. if resTmp == nil {
  49282. if !graphql.HasFieldError(ctx, fc) {
  49283. ec.Errorf(ctx, "must not be null")
  49284. }
  49285. return graphql.Null
  49286. }
  49287. res := resTmp.(string)
  49288. fc.Result = res
  49289. return ec.marshalNString2string(ctx, field.Selections, res)
  49290. }
  49291. func (ec *executionContext) fieldContext_CountryHarmonizedSystemCodeEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  49292. fc = &graphql.FieldContext{
  49293. Object: "CountryHarmonizedSystemCodeEdge",
  49294. Field: field,
  49295. IsMethod: false,
  49296. IsResolver: false,
  49297. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  49298. return nil, errors.New("field of type String does not have child fields")
  49299. },
  49300. }
  49301. return fc, nil
  49302. }
  49303. func (ec *executionContext) _CountryHarmonizedSystemCodeEdge_node(ctx context.Context, field graphql.CollectedField, obj *CountryHarmonizedSystemCodeEdge) (ret graphql.Marshaler) {
  49304. fc, err := ec.fieldContext_CountryHarmonizedSystemCodeEdge_node(ctx, field)
  49305. if err != nil {
  49306. return graphql.Null
  49307. }
  49308. ctx = graphql.WithFieldContext(ctx, fc)
  49309. defer func() {
  49310. if r := recover(); r != nil {
  49311. ec.Error(ctx, ec.Recover(ctx, r))
  49312. ret = graphql.Null
  49313. }
  49314. }()
  49315. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  49316. ctx = rctx // use context from middleware stack in children
  49317. return obj.Node, nil
  49318. })
  49319. if err != nil {
  49320. ec.Error(ctx, err)
  49321. return graphql.Null
  49322. }
  49323. if resTmp == nil {
  49324. if !graphql.HasFieldError(ctx, fc) {
  49325. ec.Errorf(ctx, "must not be null")
  49326. }
  49327. return graphql.Null
  49328. }
  49329. res := resTmp.(*CountryHarmonizedSystemCode)
  49330. fc.Result = res
  49331. return ec.marshalNCountryHarmonizedSystemCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryHarmonizedSystemCode(ctx, field.Selections, res)
  49332. }
  49333. func (ec *executionContext) fieldContext_CountryHarmonizedSystemCodeEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  49334. fc = &graphql.FieldContext{
  49335. Object: "CountryHarmonizedSystemCodeEdge",
  49336. Field: field,
  49337. IsMethod: false,
  49338. IsResolver: false,
  49339. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  49340. switch field.Name {
  49341. case "countryCode":
  49342. return ec.fieldContext_CountryHarmonizedSystemCode_countryCode(ctx, field)
  49343. case "harmonizedSystemCode":
  49344. return ec.fieldContext_CountryHarmonizedSystemCode_harmonizedSystemCode(ctx, field)
  49345. }
  49346. return nil, fmt.Errorf("no field named %q was found under type CountryHarmonizedSystemCode", field.Name)
  49347. },
  49348. }
  49349. return fc, nil
  49350. }
  49351. func (ec *executionContext) _CurrencyFormats_moneyFormat(ctx context.Context, field graphql.CollectedField, obj *CurrencyFormats) (ret graphql.Marshaler) {
  49352. fc, err := ec.fieldContext_CurrencyFormats_moneyFormat(ctx, field)
  49353. if err != nil {
  49354. return graphql.Null
  49355. }
  49356. ctx = graphql.WithFieldContext(ctx, fc)
  49357. defer func() {
  49358. if r := recover(); r != nil {
  49359. ec.Error(ctx, ec.Recover(ctx, r))
  49360. ret = graphql.Null
  49361. }
  49362. }()
  49363. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  49364. ctx = rctx // use context from middleware stack in children
  49365. return obj.MoneyFormat, nil
  49366. })
  49367. if err != nil {
  49368. ec.Error(ctx, err)
  49369. return graphql.Null
  49370. }
  49371. if resTmp == nil {
  49372. if !graphql.HasFieldError(ctx, fc) {
  49373. ec.Errorf(ctx, "must not be null")
  49374. }
  49375. return graphql.Null
  49376. }
  49377. res := resTmp.(string)
  49378. fc.Result = res
  49379. return ec.marshalNFormattedString2string(ctx, field.Selections, res)
  49380. }
  49381. func (ec *executionContext) fieldContext_CurrencyFormats_moneyFormat(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  49382. fc = &graphql.FieldContext{
  49383. Object: "CurrencyFormats",
  49384. Field: field,
  49385. IsMethod: false,
  49386. IsResolver: false,
  49387. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  49388. return nil, errors.New("field of type FormattedString does not have child fields")
  49389. },
  49390. }
  49391. return fc, nil
  49392. }
  49393. func (ec *executionContext) _CurrencyFormats_moneyInEmailsFormat(ctx context.Context, field graphql.CollectedField, obj *CurrencyFormats) (ret graphql.Marshaler) {
  49394. fc, err := ec.fieldContext_CurrencyFormats_moneyInEmailsFormat(ctx, field)
  49395. if err != nil {
  49396. return graphql.Null
  49397. }
  49398. ctx = graphql.WithFieldContext(ctx, fc)
  49399. defer func() {
  49400. if r := recover(); r != nil {
  49401. ec.Error(ctx, ec.Recover(ctx, r))
  49402. ret = graphql.Null
  49403. }
  49404. }()
  49405. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  49406. ctx = rctx // use context from middleware stack in children
  49407. return obj.MoneyInEmailsFormat, nil
  49408. })
  49409. if err != nil {
  49410. ec.Error(ctx, err)
  49411. return graphql.Null
  49412. }
  49413. if resTmp == nil {
  49414. if !graphql.HasFieldError(ctx, fc) {
  49415. ec.Errorf(ctx, "must not be null")
  49416. }
  49417. return graphql.Null
  49418. }
  49419. res := resTmp.(string)
  49420. fc.Result = res
  49421. return ec.marshalNString2string(ctx, field.Selections, res)
  49422. }
  49423. func (ec *executionContext) fieldContext_CurrencyFormats_moneyInEmailsFormat(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  49424. fc = &graphql.FieldContext{
  49425. Object: "CurrencyFormats",
  49426. Field: field,
  49427. IsMethod: false,
  49428. IsResolver: false,
  49429. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  49430. return nil, errors.New("field of type String does not have child fields")
  49431. },
  49432. }
  49433. return fc, nil
  49434. }
  49435. func (ec *executionContext) _CurrencyFormats_moneyWithCurrencyFormat(ctx context.Context, field graphql.CollectedField, obj *CurrencyFormats) (ret graphql.Marshaler) {
  49436. fc, err := ec.fieldContext_CurrencyFormats_moneyWithCurrencyFormat(ctx, field)
  49437. if err != nil {
  49438. return graphql.Null
  49439. }
  49440. ctx = graphql.WithFieldContext(ctx, fc)
  49441. defer func() {
  49442. if r := recover(); r != nil {
  49443. ec.Error(ctx, ec.Recover(ctx, r))
  49444. ret = graphql.Null
  49445. }
  49446. }()
  49447. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  49448. ctx = rctx // use context from middleware stack in children
  49449. return obj.MoneyWithCurrencyFormat, nil
  49450. })
  49451. if err != nil {
  49452. ec.Error(ctx, err)
  49453. return graphql.Null
  49454. }
  49455. if resTmp == nil {
  49456. if !graphql.HasFieldError(ctx, fc) {
  49457. ec.Errorf(ctx, "must not be null")
  49458. }
  49459. return graphql.Null
  49460. }
  49461. res := resTmp.(string)
  49462. fc.Result = res
  49463. return ec.marshalNFormattedString2string(ctx, field.Selections, res)
  49464. }
  49465. func (ec *executionContext) fieldContext_CurrencyFormats_moneyWithCurrencyFormat(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  49466. fc = &graphql.FieldContext{
  49467. Object: "CurrencyFormats",
  49468. Field: field,
  49469. IsMethod: false,
  49470. IsResolver: false,
  49471. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  49472. return nil, errors.New("field of type FormattedString does not have child fields")
  49473. },
  49474. }
  49475. return fc, nil
  49476. }
  49477. func (ec *executionContext) _CurrencyFormats_moneyWithCurrencyInEmailsFormat(ctx context.Context, field graphql.CollectedField, obj *CurrencyFormats) (ret graphql.Marshaler) {
  49478. fc, err := ec.fieldContext_CurrencyFormats_moneyWithCurrencyInEmailsFormat(ctx, field)
  49479. if err != nil {
  49480. return graphql.Null
  49481. }
  49482. ctx = graphql.WithFieldContext(ctx, fc)
  49483. defer func() {
  49484. if r := recover(); r != nil {
  49485. ec.Error(ctx, ec.Recover(ctx, r))
  49486. ret = graphql.Null
  49487. }
  49488. }()
  49489. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  49490. ctx = rctx // use context from middleware stack in children
  49491. return obj.MoneyWithCurrencyInEmailsFormat, nil
  49492. })
  49493. if err != nil {
  49494. ec.Error(ctx, err)
  49495. return graphql.Null
  49496. }
  49497. if resTmp == nil {
  49498. if !graphql.HasFieldError(ctx, fc) {
  49499. ec.Errorf(ctx, "must not be null")
  49500. }
  49501. return graphql.Null
  49502. }
  49503. res := resTmp.(string)
  49504. fc.Result = res
  49505. return ec.marshalNString2string(ctx, field.Selections, res)
  49506. }
  49507. func (ec *executionContext) fieldContext_CurrencyFormats_moneyWithCurrencyInEmailsFormat(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  49508. fc = &graphql.FieldContext{
  49509. Object: "CurrencyFormats",
  49510. Field: field,
  49511. IsMethod: false,
  49512. IsResolver: false,
  49513. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  49514. return nil, errors.New("field of type String does not have child fields")
  49515. },
  49516. }
  49517. return fc, nil
  49518. }
  49519. func (ec *executionContext) _CurrencySetting_currencyCode(ctx context.Context, field graphql.CollectedField, obj *CurrencySetting) (ret graphql.Marshaler) {
  49520. fc, err := ec.fieldContext_CurrencySetting_currencyCode(ctx, field)
  49521. if err != nil {
  49522. return graphql.Null
  49523. }
  49524. ctx = graphql.WithFieldContext(ctx, fc)
  49525. defer func() {
  49526. if r := recover(); r != nil {
  49527. ec.Error(ctx, ec.Recover(ctx, r))
  49528. ret = graphql.Null
  49529. }
  49530. }()
  49531. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  49532. ctx = rctx // use context from middleware stack in children
  49533. return obj.CurrencyCode, nil
  49534. })
  49535. if err != nil {
  49536. ec.Error(ctx, err)
  49537. return graphql.Null
  49538. }
  49539. if resTmp == nil {
  49540. if !graphql.HasFieldError(ctx, fc) {
  49541. ec.Errorf(ctx, "must not be null")
  49542. }
  49543. return graphql.Null
  49544. }
  49545. res := resTmp.(CurrencyCode)
  49546. fc.Result = res
  49547. return ec.marshalNCurrencyCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencyCode(ctx, field.Selections, res)
  49548. }
  49549. func (ec *executionContext) fieldContext_CurrencySetting_currencyCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  49550. fc = &graphql.FieldContext{
  49551. Object: "CurrencySetting",
  49552. Field: field,
  49553. IsMethod: false,
  49554. IsResolver: false,
  49555. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  49556. return nil, errors.New("field of type CurrencyCode does not have child fields")
  49557. },
  49558. }
  49559. return fc, nil
  49560. }
  49561. func (ec *executionContext) _CurrencySetting_currencyName(ctx context.Context, field graphql.CollectedField, obj *CurrencySetting) (ret graphql.Marshaler) {
  49562. fc, err := ec.fieldContext_CurrencySetting_currencyName(ctx, field)
  49563. if err != nil {
  49564. return graphql.Null
  49565. }
  49566. ctx = graphql.WithFieldContext(ctx, fc)
  49567. defer func() {
  49568. if r := recover(); r != nil {
  49569. ec.Error(ctx, ec.Recover(ctx, r))
  49570. ret = graphql.Null
  49571. }
  49572. }()
  49573. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  49574. ctx = rctx // use context from middleware stack in children
  49575. return obj.CurrencyName, nil
  49576. })
  49577. if err != nil {
  49578. ec.Error(ctx, err)
  49579. return graphql.Null
  49580. }
  49581. if resTmp == nil {
  49582. if !graphql.HasFieldError(ctx, fc) {
  49583. ec.Errorf(ctx, "must not be null")
  49584. }
  49585. return graphql.Null
  49586. }
  49587. res := resTmp.(string)
  49588. fc.Result = res
  49589. return ec.marshalNString2string(ctx, field.Selections, res)
  49590. }
  49591. func (ec *executionContext) fieldContext_CurrencySetting_currencyName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  49592. fc = &graphql.FieldContext{
  49593. Object: "CurrencySetting",
  49594. Field: field,
  49595. IsMethod: false,
  49596. IsResolver: false,
  49597. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  49598. return nil, errors.New("field of type String does not have child fields")
  49599. },
  49600. }
  49601. return fc, nil
  49602. }
  49603. func (ec *executionContext) _CurrencySetting_enabled(ctx context.Context, field graphql.CollectedField, obj *CurrencySetting) (ret graphql.Marshaler) {
  49604. fc, err := ec.fieldContext_CurrencySetting_enabled(ctx, field)
  49605. if err != nil {
  49606. return graphql.Null
  49607. }
  49608. ctx = graphql.WithFieldContext(ctx, fc)
  49609. defer func() {
  49610. if r := recover(); r != nil {
  49611. ec.Error(ctx, ec.Recover(ctx, r))
  49612. ret = graphql.Null
  49613. }
  49614. }()
  49615. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  49616. ctx = rctx // use context from middleware stack in children
  49617. return obj.Enabled, nil
  49618. })
  49619. if err != nil {
  49620. ec.Error(ctx, err)
  49621. return graphql.Null
  49622. }
  49623. if resTmp == nil {
  49624. if !graphql.HasFieldError(ctx, fc) {
  49625. ec.Errorf(ctx, "must not be null")
  49626. }
  49627. return graphql.Null
  49628. }
  49629. res := resTmp.(bool)
  49630. fc.Result = res
  49631. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  49632. }
  49633. func (ec *executionContext) fieldContext_CurrencySetting_enabled(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  49634. fc = &graphql.FieldContext{
  49635. Object: "CurrencySetting",
  49636. Field: field,
  49637. IsMethod: false,
  49638. IsResolver: false,
  49639. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  49640. return nil, errors.New("field of type Boolean does not have child fields")
  49641. },
  49642. }
  49643. return fc, nil
  49644. }
  49645. func (ec *executionContext) _CurrencySetting_rateUpdatedAt(ctx context.Context, field graphql.CollectedField, obj *CurrencySetting) (ret graphql.Marshaler) {
  49646. fc, err := ec.fieldContext_CurrencySetting_rateUpdatedAt(ctx, field)
  49647. if err != nil {
  49648. return graphql.Null
  49649. }
  49650. ctx = graphql.WithFieldContext(ctx, fc)
  49651. defer func() {
  49652. if r := recover(); r != nil {
  49653. ec.Error(ctx, ec.Recover(ctx, r))
  49654. ret = graphql.Null
  49655. }
  49656. }()
  49657. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  49658. ctx = rctx // use context from middleware stack in children
  49659. return obj.RateUpdatedAt, nil
  49660. })
  49661. if err != nil {
  49662. ec.Error(ctx, err)
  49663. return graphql.Null
  49664. }
  49665. if resTmp == nil {
  49666. return graphql.Null
  49667. }
  49668. res := resTmp.(*string)
  49669. fc.Result = res
  49670. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  49671. }
  49672. func (ec *executionContext) fieldContext_CurrencySetting_rateUpdatedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  49673. fc = &graphql.FieldContext{
  49674. Object: "CurrencySetting",
  49675. Field: field,
  49676. IsMethod: false,
  49677. IsResolver: false,
  49678. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  49679. return nil, errors.New("field of type DateTime does not have child fields")
  49680. },
  49681. }
  49682. return fc, nil
  49683. }
  49684. func (ec *executionContext) _CurrencySettingConnection_edges(ctx context.Context, field graphql.CollectedField, obj *CurrencySettingConnection) (ret graphql.Marshaler) {
  49685. fc, err := ec.fieldContext_CurrencySettingConnection_edges(ctx, field)
  49686. if err != nil {
  49687. return graphql.Null
  49688. }
  49689. ctx = graphql.WithFieldContext(ctx, fc)
  49690. defer func() {
  49691. if r := recover(); r != nil {
  49692. ec.Error(ctx, ec.Recover(ctx, r))
  49693. ret = graphql.Null
  49694. }
  49695. }()
  49696. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  49697. ctx = rctx // use context from middleware stack in children
  49698. return obj.Edges, nil
  49699. })
  49700. if err != nil {
  49701. ec.Error(ctx, err)
  49702. return graphql.Null
  49703. }
  49704. if resTmp == nil {
  49705. if !graphql.HasFieldError(ctx, fc) {
  49706. ec.Errorf(ctx, "must not be null")
  49707. }
  49708. return graphql.Null
  49709. }
  49710. res := resTmp.([]*CurrencySettingEdge)
  49711. fc.Result = res
  49712. return ec.marshalNCurrencySettingEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencySettingEdgeᚄ(ctx, field.Selections, res)
  49713. }
  49714. func (ec *executionContext) fieldContext_CurrencySettingConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  49715. fc = &graphql.FieldContext{
  49716. Object: "CurrencySettingConnection",
  49717. Field: field,
  49718. IsMethod: false,
  49719. IsResolver: false,
  49720. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  49721. switch field.Name {
  49722. case "cursor":
  49723. return ec.fieldContext_CurrencySettingEdge_cursor(ctx, field)
  49724. case "node":
  49725. return ec.fieldContext_CurrencySettingEdge_node(ctx, field)
  49726. }
  49727. return nil, fmt.Errorf("no field named %q was found under type CurrencySettingEdge", field.Name)
  49728. },
  49729. }
  49730. return fc, nil
  49731. }
  49732. func (ec *executionContext) _CurrencySettingConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *CurrencySettingConnection) (ret graphql.Marshaler) {
  49733. fc, err := ec.fieldContext_CurrencySettingConnection_nodes(ctx, field)
  49734. if err != nil {
  49735. return graphql.Null
  49736. }
  49737. ctx = graphql.WithFieldContext(ctx, fc)
  49738. defer func() {
  49739. if r := recover(); r != nil {
  49740. ec.Error(ctx, ec.Recover(ctx, r))
  49741. ret = graphql.Null
  49742. }
  49743. }()
  49744. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  49745. ctx = rctx // use context from middleware stack in children
  49746. return obj.Nodes, nil
  49747. })
  49748. if err != nil {
  49749. ec.Error(ctx, err)
  49750. return graphql.Null
  49751. }
  49752. if resTmp == nil {
  49753. if !graphql.HasFieldError(ctx, fc) {
  49754. ec.Errorf(ctx, "must not be null")
  49755. }
  49756. return graphql.Null
  49757. }
  49758. res := resTmp.([]*CurrencySetting)
  49759. fc.Result = res
  49760. return ec.marshalNCurrencySetting2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencySettingᚄ(ctx, field.Selections, res)
  49761. }
  49762. func (ec *executionContext) fieldContext_CurrencySettingConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  49763. fc = &graphql.FieldContext{
  49764. Object: "CurrencySettingConnection",
  49765. Field: field,
  49766. IsMethod: false,
  49767. IsResolver: false,
  49768. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  49769. switch field.Name {
  49770. case "currencyCode":
  49771. return ec.fieldContext_CurrencySetting_currencyCode(ctx, field)
  49772. case "currencyName":
  49773. return ec.fieldContext_CurrencySetting_currencyName(ctx, field)
  49774. case "enabled":
  49775. return ec.fieldContext_CurrencySetting_enabled(ctx, field)
  49776. case "rateUpdatedAt":
  49777. return ec.fieldContext_CurrencySetting_rateUpdatedAt(ctx, field)
  49778. }
  49779. return nil, fmt.Errorf("no field named %q was found under type CurrencySetting", field.Name)
  49780. },
  49781. }
  49782. return fc, nil
  49783. }
  49784. func (ec *executionContext) _CurrencySettingConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *CurrencySettingConnection) (ret graphql.Marshaler) {
  49785. fc, err := ec.fieldContext_CurrencySettingConnection_pageInfo(ctx, field)
  49786. if err != nil {
  49787. return graphql.Null
  49788. }
  49789. ctx = graphql.WithFieldContext(ctx, fc)
  49790. defer func() {
  49791. if r := recover(); r != nil {
  49792. ec.Error(ctx, ec.Recover(ctx, r))
  49793. ret = graphql.Null
  49794. }
  49795. }()
  49796. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  49797. ctx = rctx // use context from middleware stack in children
  49798. return obj.PageInfo, nil
  49799. })
  49800. if err != nil {
  49801. ec.Error(ctx, err)
  49802. return graphql.Null
  49803. }
  49804. if resTmp == nil {
  49805. if !graphql.HasFieldError(ctx, fc) {
  49806. ec.Errorf(ctx, "must not be null")
  49807. }
  49808. return graphql.Null
  49809. }
  49810. res := resTmp.(*PageInfo)
  49811. fc.Result = res
  49812. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  49813. }
  49814. func (ec *executionContext) fieldContext_CurrencySettingConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  49815. fc = &graphql.FieldContext{
  49816. Object: "CurrencySettingConnection",
  49817. Field: field,
  49818. IsMethod: false,
  49819. IsResolver: false,
  49820. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  49821. switch field.Name {
  49822. case "endCursor":
  49823. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  49824. case "hasNextPage":
  49825. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  49826. case "hasPreviousPage":
  49827. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  49828. case "startCursor":
  49829. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  49830. }
  49831. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  49832. },
  49833. }
  49834. return fc, nil
  49835. }
  49836. func (ec *executionContext) _CurrencySettingEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *CurrencySettingEdge) (ret graphql.Marshaler) {
  49837. fc, err := ec.fieldContext_CurrencySettingEdge_cursor(ctx, field)
  49838. if err != nil {
  49839. return graphql.Null
  49840. }
  49841. ctx = graphql.WithFieldContext(ctx, fc)
  49842. defer func() {
  49843. if r := recover(); r != nil {
  49844. ec.Error(ctx, ec.Recover(ctx, r))
  49845. ret = graphql.Null
  49846. }
  49847. }()
  49848. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  49849. ctx = rctx // use context from middleware stack in children
  49850. return obj.Cursor, nil
  49851. })
  49852. if err != nil {
  49853. ec.Error(ctx, err)
  49854. return graphql.Null
  49855. }
  49856. if resTmp == nil {
  49857. if !graphql.HasFieldError(ctx, fc) {
  49858. ec.Errorf(ctx, "must not be null")
  49859. }
  49860. return graphql.Null
  49861. }
  49862. res := resTmp.(string)
  49863. fc.Result = res
  49864. return ec.marshalNString2string(ctx, field.Selections, res)
  49865. }
  49866. func (ec *executionContext) fieldContext_CurrencySettingEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  49867. fc = &graphql.FieldContext{
  49868. Object: "CurrencySettingEdge",
  49869. Field: field,
  49870. IsMethod: false,
  49871. IsResolver: false,
  49872. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  49873. return nil, errors.New("field of type String does not have child fields")
  49874. },
  49875. }
  49876. return fc, nil
  49877. }
  49878. func (ec *executionContext) _CurrencySettingEdge_node(ctx context.Context, field graphql.CollectedField, obj *CurrencySettingEdge) (ret graphql.Marshaler) {
  49879. fc, err := ec.fieldContext_CurrencySettingEdge_node(ctx, field)
  49880. if err != nil {
  49881. return graphql.Null
  49882. }
  49883. ctx = graphql.WithFieldContext(ctx, fc)
  49884. defer func() {
  49885. if r := recover(); r != nil {
  49886. ec.Error(ctx, ec.Recover(ctx, r))
  49887. ret = graphql.Null
  49888. }
  49889. }()
  49890. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  49891. ctx = rctx // use context from middleware stack in children
  49892. return obj.Node, nil
  49893. })
  49894. if err != nil {
  49895. ec.Error(ctx, err)
  49896. return graphql.Null
  49897. }
  49898. if resTmp == nil {
  49899. if !graphql.HasFieldError(ctx, fc) {
  49900. ec.Errorf(ctx, "must not be null")
  49901. }
  49902. return graphql.Null
  49903. }
  49904. res := resTmp.(*CurrencySetting)
  49905. fc.Result = res
  49906. return ec.marshalNCurrencySetting2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencySetting(ctx, field.Selections, res)
  49907. }
  49908. func (ec *executionContext) fieldContext_CurrencySettingEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  49909. fc = &graphql.FieldContext{
  49910. Object: "CurrencySettingEdge",
  49911. Field: field,
  49912. IsMethod: false,
  49913. IsResolver: false,
  49914. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  49915. switch field.Name {
  49916. case "currencyCode":
  49917. return ec.fieldContext_CurrencySetting_currencyCode(ctx, field)
  49918. case "currencyName":
  49919. return ec.fieldContext_CurrencySetting_currencyName(ctx, field)
  49920. case "enabled":
  49921. return ec.fieldContext_CurrencySetting_enabled(ctx, field)
  49922. case "rateUpdatedAt":
  49923. return ec.fieldContext_CurrencySetting_rateUpdatedAt(ctx, field)
  49924. }
  49925. return nil, fmt.Errorf("no field named %q was found under type CurrencySetting", field.Name)
  49926. },
  49927. }
  49928. return fc, nil
  49929. }
  49930. func (ec *executionContext) _Customer_addresses(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  49931. fc, err := ec.fieldContext_Customer_addresses(ctx, field)
  49932. if err != nil {
  49933. return graphql.Null
  49934. }
  49935. ctx = graphql.WithFieldContext(ctx, fc)
  49936. defer func() {
  49937. if r := recover(); r != nil {
  49938. ec.Error(ctx, ec.Recover(ctx, r))
  49939. ret = graphql.Null
  49940. }
  49941. }()
  49942. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  49943. ctx = rctx // use context from middleware stack in children
  49944. return obj.Addresses, nil
  49945. })
  49946. if err != nil {
  49947. ec.Error(ctx, err)
  49948. return graphql.Null
  49949. }
  49950. if resTmp == nil {
  49951. if !graphql.HasFieldError(ctx, fc) {
  49952. ec.Errorf(ctx, "must not be null")
  49953. }
  49954. return graphql.Null
  49955. }
  49956. res := resTmp.([]*MailingAddress)
  49957. fc.Result = res
  49958. return ec.marshalNMailingAddress2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMailingAddressᚄ(ctx, field.Selections, res)
  49959. }
  49960. func (ec *executionContext) fieldContext_Customer_addresses(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  49961. fc = &graphql.FieldContext{
  49962. Object: "Customer",
  49963. Field: field,
  49964. IsMethod: false,
  49965. IsResolver: false,
  49966. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  49967. switch field.Name {
  49968. case "address1":
  49969. return ec.fieldContext_MailingAddress_address1(ctx, field)
  49970. case "address2":
  49971. return ec.fieldContext_MailingAddress_address2(ctx, field)
  49972. case "city":
  49973. return ec.fieldContext_MailingAddress_city(ctx, field)
  49974. case "company":
  49975. return ec.fieldContext_MailingAddress_company(ctx, field)
  49976. case "coordinatesValidated":
  49977. return ec.fieldContext_MailingAddress_coordinatesValidated(ctx, field)
  49978. case "country":
  49979. return ec.fieldContext_MailingAddress_country(ctx, field)
  49980. case "countryCodeV2":
  49981. return ec.fieldContext_MailingAddress_countryCodeV2(ctx, field)
  49982. case "firstName":
  49983. return ec.fieldContext_MailingAddress_firstName(ctx, field)
  49984. case "formattedArea":
  49985. return ec.fieldContext_MailingAddress_formattedArea(ctx, field)
  49986. case "id":
  49987. return ec.fieldContext_MailingAddress_id(ctx, field)
  49988. case "lastName":
  49989. return ec.fieldContext_MailingAddress_lastName(ctx, field)
  49990. case "latitude":
  49991. return ec.fieldContext_MailingAddress_latitude(ctx, field)
  49992. case "longitude":
  49993. return ec.fieldContext_MailingAddress_longitude(ctx, field)
  49994. case "name":
  49995. return ec.fieldContext_MailingAddress_name(ctx, field)
  49996. case "phone":
  49997. return ec.fieldContext_MailingAddress_phone(ctx, field)
  49998. case "province":
  49999. return ec.fieldContext_MailingAddress_province(ctx, field)
  50000. case "provinceCode":
  50001. return ec.fieldContext_MailingAddress_provinceCode(ctx, field)
  50002. case "zip":
  50003. return ec.fieldContext_MailingAddress_zip(ctx, field)
  50004. }
  50005. return nil, fmt.Errorf("no field named %q was found under type MailingAddress", field.Name)
  50006. },
  50007. }
  50008. defer func() {
  50009. if r := recover(); r != nil {
  50010. err = ec.Recover(ctx, r)
  50011. ec.Error(ctx, err)
  50012. }
  50013. }()
  50014. ctx = graphql.WithFieldContext(ctx, fc)
  50015. if fc.Args, err = ec.field_Customer_addresses_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  50016. ec.Error(ctx, err)
  50017. return
  50018. }
  50019. return fc, nil
  50020. }
  50021. func (ec *executionContext) _Customer_amountSpent(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  50022. fc, err := ec.fieldContext_Customer_amountSpent(ctx, field)
  50023. if err != nil {
  50024. return graphql.Null
  50025. }
  50026. ctx = graphql.WithFieldContext(ctx, fc)
  50027. defer func() {
  50028. if r := recover(); r != nil {
  50029. ec.Error(ctx, ec.Recover(ctx, r))
  50030. ret = graphql.Null
  50031. }
  50032. }()
  50033. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  50034. ctx = rctx // use context from middleware stack in children
  50035. return obj.AmountSpent, nil
  50036. })
  50037. if err != nil {
  50038. ec.Error(ctx, err)
  50039. return graphql.Null
  50040. }
  50041. if resTmp == nil {
  50042. if !graphql.HasFieldError(ctx, fc) {
  50043. ec.Errorf(ctx, "must not be null")
  50044. }
  50045. return graphql.Null
  50046. }
  50047. res := resTmp.(*MoneyV2)
  50048. fc.Result = res
  50049. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  50050. }
  50051. func (ec *executionContext) fieldContext_Customer_amountSpent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  50052. fc = &graphql.FieldContext{
  50053. Object: "Customer",
  50054. Field: field,
  50055. IsMethod: false,
  50056. IsResolver: false,
  50057. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  50058. switch field.Name {
  50059. case "amount":
  50060. return ec.fieldContext_MoneyV2_amount(ctx, field)
  50061. case "currencyCode":
  50062. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  50063. }
  50064. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  50065. },
  50066. }
  50067. return fc, nil
  50068. }
  50069. func (ec *executionContext) _Customer_averageOrderAmountV2(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  50070. fc, err := ec.fieldContext_Customer_averageOrderAmountV2(ctx, field)
  50071. if err != nil {
  50072. return graphql.Null
  50073. }
  50074. ctx = graphql.WithFieldContext(ctx, fc)
  50075. defer func() {
  50076. if r := recover(); r != nil {
  50077. ec.Error(ctx, ec.Recover(ctx, r))
  50078. ret = graphql.Null
  50079. }
  50080. }()
  50081. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  50082. ctx = rctx // use context from middleware stack in children
  50083. return obj.AverageOrderAmountV2, nil
  50084. })
  50085. if err != nil {
  50086. ec.Error(ctx, err)
  50087. return graphql.Null
  50088. }
  50089. if resTmp == nil {
  50090. return graphql.Null
  50091. }
  50092. res := resTmp.(*MoneyV2)
  50093. fc.Result = res
  50094. return ec.marshalOMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  50095. }
  50096. func (ec *executionContext) fieldContext_Customer_averageOrderAmountV2(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  50097. fc = &graphql.FieldContext{
  50098. Object: "Customer",
  50099. Field: field,
  50100. IsMethod: false,
  50101. IsResolver: false,
  50102. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  50103. switch field.Name {
  50104. case "amount":
  50105. return ec.fieldContext_MoneyV2_amount(ctx, field)
  50106. case "currencyCode":
  50107. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  50108. }
  50109. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  50110. },
  50111. }
  50112. return fc, nil
  50113. }
  50114. func (ec *executionContext) _Customer_canDelete(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  50115. fc, err := ec.fieldContext_Customer_canDelete(ctx, field)
  50116. if err != nil {
  50117. return graphql.Null
  50118. }
  50119. ctx = graphql.WithFieldContext(ctx, fc)
  50120. defer func() {
  50121. if r := recover(); r != nil {
  50122. ec.Error(ctx, ec.Recover(ctx, r))
  50123. ret = graphql.Null
  50124. }
  50125. }()
  50126. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  50127. ctx = rctx // use context from middleware stack in children
  50128. return obj.CanDelete, nil
  50129. })
  50130. if err != nil {
  50131. ec.Error(ctx, err)
  50132. return graphql.Null
  50133. }
  50134. if resTmp == nil {
  50135. if !graphql.HasFieldError(ctx, fc) {
  50136. ec.Errorf(ctx, "must not be null")
  50137. }
  50138. return graphql.Null
  50139. }
  50140. res := resTmp.(bool)
  50141. fc.Result = res
  50142. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  50143. }
  50144. func (ec *executionContext) fieldContext_Customer_canDelete(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  50145. fc = &graphql.FieldContext{
  50146. Object: "Customer",
  50147. Field: field,
  50148. IsMethod: false,
  50149. IsResolver: false,
  50150. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  50151. return nil, errors.New("field of type Boolean does not have child fields")
  50152. },
  50153. }
  50154. return fc, nil
  50155. }
  50156. func (ec *executionContext) _Customer_companyContactProfiles(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  50157. fc, err := ec.fieldContext_Customer_companyContactProfiles(ctx, field)
  50158. if err != nil {
  50159. return graphql.Null
  50160. }
  50161. ctx = graphql.WithFieldContext(ctx, fc)
  50162. defer func() {
  50163. if r := recover(); r != nil {
  50164. ec.Error(ctx, ec.Recover(ctx, r))
  50165. ret = graphql.Null
  50166. }
  50167. }()
  50168. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  50169. ctx = rctx // use context from middleware stack in children
  50170. return obj.CompanyContactProfiles, nil
  50171. })
  50172. if err != nil {
  50173. ec.Error(ctx, err)
  50174. return graphql.Null
  50175. }
  50176. if resTmp == nil {
  50177. if !graphql.HasFieldError(ctx, fc) {
  50178. ec.Errorf(ctx, "must not be null")
  50179. }
  50180. return graphql.Null
  50181. }
  50182. res := resTmp.([]*CompanyContact)
  50183. fc.Result = res
  50184. return ec.marshalNCompanyContact2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactᚄ(ctx, field.Selections, res)
  50185. }
  50186. func (ec *executionContext) fieldContext_Customer_companyContactProfiles(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  50187. fc = &graphql.FieldContext{
  50188. Object: "Customer",
  50189. Field: field,
  50190. IsMethod: false,
  50191. IsResolver: false,
  50192. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  50193. switch field.Name {
  50194. case "company":
  50195. return ec.fieldContext_CompanyContact_company(ctx, field)
  50196. case "createdAt":
  50197. return ec.fieldContext_CompanyContact_createdAt(ctx, field)
  50198. case "customer":
  50199. return ec.fieldContext_CompanyContact_customer(ctx, field)
  50200. case "draftOrders":
  50201. return ec.fieldContext_CompanyContact_draftOrders(ctx, field)
  50202. case "id":
  50203. return ec.fieldContext_CompanyContact_id(ctx, field)
  50204. case "isMainContact":
  50205. return ec.fieldContext_CompanyContact_isMainContact(ctx, field)
  50206. case "lifetimeDuration":
  50207. return ec.fieldContext_CompanyContact_lifetimeDuration(ctx, field)
  50208. case "locale":
  50209. return ec.fieldContext_CompanyContact_locale(ctx, field)
  50210. case "orders":
  50211. return ec.fieldContext_CompanyContact_orders(ctx, field)
  50212. case "roleAssignments":
  50213. return ec.fieldContext_CompanyContact_roleAssignments(ctx, field)
  50214. case "title":
  50215. return ec.fieldContext_CompanyContact_title(ctx, field)
  50216. case "updatedAt":
  50217. return ec.fieldContext_CompanyContact_updatedAt(ctx, field)
  50218. }
  50219. return nil, fmt.Errorf("no field named %q was found under type CompanyContact", field.Name)
  50220. },
  50221. }
  50222. return fc, nil
  50223. }
  50224. func (ec *executionContext) _Customer_createdAt(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  50225. fc, err := ec.fieldContext_Customer_createdAt(ctx, field)
  50226. if err != nil {
  50227. return graphql.Null
  50228. }
  50229. ctx = graphql.WithFieldContext(ctx, fc)
  50230. defer func() {
  50231. if r := recover(); r != nil {
  50232. ec.Error(ctx, ec.Recover(ctx, r))
  50233. ret = graphql.Null
  50234. }
  50235. }()
  50236. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  50237. ctx = rctx // use context from middleware stack in children
  50238. return obj.CreatedAt, nil
  50239. })
  50240. if err != nil {
  50241. ec.Error(ctx, err)
  50242. return graphql.Null
  50243. }
  50244. if resTmp == nil {
  50245. if !graphql.HasFieldError(ctx, fc) {
  50246. ec.Errorf(ctx, "must not be null")
  50247. }
  50248. return graphql.Null
  50249. }
  50250. res := resTmp.(string)
  50251. fc.Result = res
  50252. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  50253. }
  50254. func (ec *executionContext) fieldContext_Customer_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  50255. fc = &graphql.FieldContext{
  50256. Object: "Customer",
  50257. Field: field,
  50258. IsMethod: false,
  50259. IsResolver: false,
  50260. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  50261. return nil, errors.New("field of type DateTime does not have child fields")
  50262. },
  50263. }
  50264. return fc, nil
  50265. }
  50266. func (ec *executionContext) _Customer_defaultAddress(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  50267. fc, err := ec.fieldContext_Customer_defaultAddress(ctx, field)
  50268. if err != nil {
  50269. return graphql.Null
  50270. }
  50271. ctx = graphql.WithFieldContext(ctx, fc)
  50272. defer func() {
  50273. if r := recover(); r != nil {
  50274. ec.Error(ctx, ec.Recover(ctx, r))
  50275. ret = graphql.Null
  50276. }
  50277. }()
  50278. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  50279. ctx = rctx // use context from middleware stack in children
  50280. return obj.DefaultAddress, nil
  50281. })
  50282. if err != nil {
  50283. ec.Error(ctx, err)
  50284. return graphql.Null
  50285. }
  50286. if resTmp == nil {
  50287. return graphql.Null
  50288. }
  50289. res := resTmp.(*MailingAddress)
  50290. fc.Result = res
  50291. return ec.marshalOMailingAddress2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMailingAddress(ctx, field.Selections, res)
  50292. }
  50293. func (ec *executionContext) fieldContext_Customer_defaultAddress(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  50294. fc = &graphql.FieldContext{
  50295. Object: "Customer",
  50296. Field: field,
  50297. IsMethod: false,
  50298. IsResolver: false,
  50299. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  50300. switch field.Name {
  50301. case "address1":
  50302. return ec.fieldContext_MailingAddress_address1(ctx, field)
  50303. case "address2":
  50304. return ec.fieldContext_MailingAddress_address2(ctx, field)
  50305. case "city":
  50306. return ec.fieldContext_MailingAddress_city(ctx, field)
  50307. case "company":
  50308. return ec.fieldContext_MailingAddress_company(ctx, field)
  50309. case "coordinatesValidated":
  50310. return ec.fieldContext_MailingAddress_coordinatesValidated(ctx, field)
  50311. case "country":
  50312. return ec.fieldContext_MailingAddress_country(ctx, field)
  50313. case "countryCodeV2":
  50314. return ec.fieldContext_MailingAddress_countryCodeV2(ctx, field)
  50315. case "firstName":
  50316. return ec.fieldContext_MailingAddress_firstName(ctx, field)
  50317. case "formattedArea":
  50318. return ec.fieldContext_MailingAddress_formattedArea(ctx, field)
  50319. case "id":
  50320. return ec.fieldContext_MailingAddress_id(ctx, field)
  50321. case "lastName":
  50322. return ec.fieldContext_MailingAddress_lastName(ctx, field)
  50323. case "latitude":
  50324. return ec.fieldContext_MailingAddress_latitude(ctx, field)
  50325. case "longitude":
  50326. return ec.fieldContext_MailingAddress_longitude(ctx, field)
  50327. case "name":
  50328. return ec.fieldContext_MailingAddress_name(ctx, field)
  50329. case "phone":
  50330. return ec.fieldContext_MailingAddress_phone(ctx, field)
  50331. case "province":
  50332. return ec.fieldContext_MailingAddress_province(ctx, field)
  50333. case "provinceCode":
  50334. return ec.fieldContext_MailingAddress_provinceCode(ctx, field)
  50335. case "zip":
  50336. return ec.fieldContext_MailingAddress_zip(ctx, field)
  50337. }
  50338. return nil, fmt.Errorf("no field named %q was found under type MailingAddress", field.Name)
  50339. },
  50340. }
  50341. return fc, nil
  50342. }
  50343. func (ec *executionContext) _Customer_displayName(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  50344. fc, err := ec.fieldContext_Customer_displayName(ctx, field)
  50345. if err != nil {
  50346. return graphql.Null
  50347. }
  50348. ctx = graphql.WithFieldContext(ctx, fc)
  50349. defer func() {
  50350. if r := recover(); r != nil {
  50351. ec.Error(ctx, ec.Recover(ctx, r))
  50352. ret = graphql.Null
  50353. }
  50354. }()
  50355. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  50356. ctx = rctx // use context from middleware stack in children
  50357. return obj.DisplayName, nil
  50358. })
  50359. if err != nil {
  50360. ec.Error(ctx, err)
  50361. return graphql.Null
  50362. }
  50363. if resTmp == nil {
  50364. if !graphql.HasFieldError(ctx, fc) {
  50365. ec.Errorf(ctx, "must not be null")
  50366. }
  50367. return graphql.Null
  50368. }
  50369. res := resTmp.(string)
  50370. fc.Result = res
  50371. return ec.marshalNString2string(ctx, field.Selections, res)
  50372. }
  50373. func (ec *executionContext) fieldContext_Customer_displayName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  50374. fc = &graphql.FieldContext{
  50375. Object: "Customer",
  50376. Field: field,
  50377. IsMethod: false,
  50378. IsResolver: false,
  50379. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  50380. return nil, errors.New("field of type String does not have child fields")
  50381. },
  50382. }
  50383. return fc, nil
  50384. }
  50385. func (ec *executionContext) _Customer_email(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  50386. fc, err := ec.fieldContext_Customer_email(ctx, field)
  50387. if err != nil {
  50388. return graphql.Null
  50389. }
  50390. ctx = graphql.WithFieldContext(ctx, fc)
  50391. defer func() {
  50392. if r := recover(); r != nil {
  50393. ec.Error(ctx, ec.Recover(ctx, r))
  50394. ret = graphql.Null
  50395. }
  50396. }()
  50397. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  50398. ctx = rctx // use context from middleware stack in children
  50399. return obj.Email, nil
  50400. })
  50401. if err != nil {
  50402. ec.Error(ctx, err)
  50403. return graphql.Null
  50404. }
  50405. if resTmp == nil {
  50406. return graphql.Null
  50407. }
  50408. res := resTmp.(*string)
  50409. fc.Result = res
  50410. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  50411. }
  50412. func (ec *executionContext) fieldContext_Customer_email(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  50413. fc = &graphql.FieldContext{
  50414. Object: "Customer",
  50415. Field: field,
  50416. IsMethod: false,
  50417. IsResolver: false,
  50418. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  50419. return nil, errors.New("field of type String does not have child fields")
  50420. },
  50421. }
  50422. return fc, nil
  50423. }
  50424. func (ec *executionContext) _Customer_emailMarketingConsent(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  50425. fc, err := ec.fieldContext_Customer_emailMarketingConsent(ctx, field)
  50426. if err != nil {
  50427. return graphql.Null
  50428. }
  50429. ctx = graphql.WithFieldContext(ctx, fc)
  50430. defer func() {
  50431. if r := recover(); r != nil {
  50432. ec.Error(ctx, ec.Recover(ctx, r))
  50433. ret = graphql.Null
  50434. }
  50435. }()
  50436. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  50437. ctx = rctx // use context from middleware stack in children
  50438. return obj.EmailMarketingConsent, nil
  50439. })
  50440. if err != nil {
  50441. ec.Error(ctx, err)
  50442. return graphql.Null
  50443. }
  50444. if resTmp == nil {
  50445. return graphql.Null
  50446. }
  50447. res := resTmp.(*CustomerEmailMarketingConsentState)
  50448. fc.Result = res
  50449. return ec.marshalOCustomerEmailMarketingConsentState2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerEmailMarketingConsentState(ctx, field.Selections, res)
  50450. }
  50451. func (ec *executionContext) fieldContext_Customer_emailMarketingConsent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  50452. fc = &graphql.FieldContext{
  50453. Object: "Customer",
  50454. Field: field,
  50455. IsMethod: false,
  50456. IsResolver: false,
  50457. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  50458. switch field.Name {
  50459. case "consentUpdatedAt":
  50460. return ec.fieldContext_CustomerEmailMarketingConsentState_consentUpdatedAt(ctx, field)
  50461. case "marketingOptInLevel":
  50462. return ec.fieldContext_CustomerEmailMarketingConsentState_marketingOptInLevel(ctx, field)
  50463. case "marketingState":
  50464. return ec.fieldContext_CustomerEmailMarketingConsentState_marketingState(ctx, field)
  50465. }
  50466. return nil, fmt.Errorf("no field named %q was found under type CustomerEmailMarketingConsentState", field.Name)
  50467. },
  50468. }
  50469. return fc, nil
  50470. }
  50471. func (ec *executionContext) _Customer_events(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  50472. fc, err := ec.fieldContext_Customer_events(ctx, field)
  50473. if err != nil {
  50474. return graphql.Null
  50475. }
  50476. ctx = graphql.WithFieldContext(ctx, fc)
  50477. defer func() {
  50478. if r := recover(); r != nil {
  50479. ec.Error(ctx, ec.Recover(ctx, r))
  50480. ret = graphql.Null
  50481. }
  50482. }()
  50483. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  50484. ctx = rctx // use context from middleware stack in children
  50485. return obj.Events, nil
  50486. })
  50487. if err != nil {
  50488. ec.Error(ctx, err)
  50489. return graphql.Null
  50490. }
  50491. if resTmp == nil {
  50492. if !graphql.HasFieldError(ctx, fc) {
  50493. ec.Errorf(ctx, "must not be null")
  50494. }
  50495. return graphql.Null
  50496. }
  50497. res := resTmp.(*EventConnection)
  50498. fc.Result = res
  50499. return ec.marshalNEventConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐEventConnection(ctx, field.Selections, res)
  50500. }
  50501. func (ec *executionContext) fieldContext_Customer_events(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  50502. fc = &graphql.FieldContext{
  50503. Object: "Customer",
  50504. Field: field,
  50505. IsMethod: false,
  50506. IsResolver: false,
  50507. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  50508. switch field.Name {
  50509. case "edges":
  50510. return ec.fieldContext_EventConnection_edges(ctx, field)
  50511. case "nodes":
  50512. return ec.fieldContext_EventConnection_nodes(ctx, field)
  50513. case "pageInfo":
  50514. return ec.fieldContext_EventConnection_pageInfo(ctx, field)
  50515. }
  50516. return nil, fmt.Errorf("no field named %q was found under type EventConnection", field.Name)
  50517. },
  50518. }
  50519. defer func() {
  50520. if r := recover(); r != nil {
  50521. err = ec.Recover(ctx, r)
  50522. ec.Error(ctx, err)
  50523. }
  50524. }()
  50525. ctx = graphql.WithFieldContext(ctx, fc)
  50526. if fc.Args, err = ec.field_Customer_events_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  50527. ec.Error(ctx, err)
  50528. return
  50529. }
  50530. return fc, nil
  50531. }
  50532. func (ec *executionContext) _Customer_firstName(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  50533. fc, err := ec.fieldContext_Customer_firstName(ctx, field)
  50534. if err != nil {
  50535. return graphql.Null
  50536. }
  50537. ctx = graphql.WithFieldContext(ctx, fc)
  50538. defer func() {
  50539. if r := recover(); r != nil {
  50540. ec.Error(ctx, ec.Recover(ctx, r))
  50541. ret = graphql.Null
  50542. }
  50543. }()
  50544. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  50545. ctx = rctx // use context from middleware stack in children
  50546. return obj.FirstName, nil
  50547. })
  50548. if err != nil {
  50549. ec.Error(ctx, err)
  50550. return graphql.Null
  50551. }
  50552. if resTmp == nil {
  50553. return graphql.Null
  50554. }
  50555. res := resTmp.(*string)
  50556. fc.Result = res
  50557. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  50558. }
  50559. func (ec *executionContext) fieldContext_Customer_firstName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  50560. fc = &graphql.FieldContext{
  50561. Object: "Customer",
  50562. Field: field,
  50563. IsMethod: false,
  50564. IsResolver: false,
  50565. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  50566. return nil, errors.New("field of type String does not have child fields")
  50567. },
  50568. }
  50569. return fc, nil
  50570. }
  50571. func (ec *executionContext) _Customer_hasTimelineComment(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  50572. fc, err := ec.fieldContext_Customer_hasTimelineComment(ctx, field)
  50573. if err != nil {
  50574. return graphql.Null
  50575. }
  50576. ctx = graphql.WithFieldContext(ctx, fc)
  50577. defer func() {
  50578. if r := recover(); r != nil {
  50579. ec.Error(ctx, ec.Recover(ctx, r))
  50580. ret = graphql.Null
  50581. }
  50582. }()
  50583. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  50584. ctx = rctx // use context from middleware stack in children
  50585. return obj.HasTimelineComment, nil
  50586. })
  50587. if err != nil {
  50588. ec.Error(ctx, err)
  50589. return graphql.Null
  50590. }
  50591. if resTmp == nil {
  50592. if !graphql.HasFieldError(ctx, fc) {
  50593. ec.Errorf(ctx, "must not be null")
  50594. }
  50595. return graphql.Null
  50596. }
  50597. res := resTmp.(bool)
  50598. fc.Result = res
  50599. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  50600. }
  50601. func (ec *executionContext) fieldContext_Customer_hasTimelineComment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  50602. fc = &graphql.FieldContext{
  50603. Object: "Customer",
  50604. Field: field,
  50605. IsMethod: false,
  50606. IsResolver: false,
  50607. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  50608. return nil, errors.New("field of type Boolean does not have child fields")
  50609. },
  50610. }
  50611. return fc, nil
  50612. }
  50613. func (ec *executionContext) _Customer_id(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  50614. fc, err := ec.fieldContext_Customer_id(ctx, field)
  50615. if err != nil {
  50616. return graphql.Null
  50617. }
  50618. ctx = graphql.WithFieldContext(ctx, fc)
  50619. defer func() {
  50620. if r := recover(); r != nil {
  50621. ec.Error(ctx, ec.Recover(ctx, r))
  50622. ret = graphql.Null
  50623. }
  50624. }()
  50625. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  50626. ctx = rctx // use context from middleware stack in children
  50627. return obj.ID, nil
  50628. })
  50629. if err != nil {
  50630. ec.Error(ctx, err)
  50631. return graphql.Null
  50632. }
  50633. if resTmp == nil {
  50634. if !graphql.HasFieldError(ctx, fc) {
  50635. ec.Errorf(ctx, "must not be null")
  50636. }
  50637. return graphql.Null
  50638. }
  50639. res := resTmp.(string)
  50640. fc.Result = res
  50641. return ec.marshalNID2string(ctx, field.Selections, res)
  50642. }
  50643. func (ec *executionContext) fieldContext_Customer_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  50644. fc = &graphql.FieldContext{
  50645. Object: "Customer",
  50646. Field: field,
  50647. IsMethod: false,
  50648. IsResolver: false,
  50649. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  50650. return nil, errors.New("field of type ID does not have child fields")
  50651. },
  50652. }
  50653. return fc, nil
  50654. }
  50655. func (ec *executionContext) _Customer_image(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  50656. fc, err := ec.fieldContext_Customer_image(ctx, field)
  50657. if err != nil {
  50658. return graphql.Null
  50659. }
  50660. ctx = graphql.WithFieldContext(ctx, fc)
  50661. defer func() {
  50662. if r := recover(); r != nil {
  50663. ec.Error(ctx, ec.Recover(ctx, r))
  50664. ret = graphql.Null
  50665. }
  50666. }()
  50667. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  50668. ctx = rctx // use context from middleware stack in children
  50669. return obj.Image, nil
  50670. })
  50671. if err != nil {
  50672. ec.Error(ctx, err)
  50673. return graphql.Null
  50674. }
  50675. if resTmp == nil {
  50676. if !graphql.HasFieldError(ctx, fc) {
  50677. ec.Errorf(ctx, "must not be null")
  50678. }
  50679. return graphql.Null
  50680. }
  50681. res := resTmp.(*Image)
  50682. fc.Result = res
  50683. return ec.marshalNImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImage(ctx, field.Selections, res)
  50684. }
  50685. func (ec *executionContext) fieldContext_Customer_image(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  50686. fc = &graphql.FieldContext{
  50687. Object: "Customer",
  50688. Field: field,
  50689. IsMethod: false,
  50690. IsResolver: false,
  50691. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  50692. switch field.Name {
  50693. case "altText":
  50694. return ec.fieldContext_Image_altText(ctx, field)
  50695. case "height":
  50696. return ec.fieldContext_Image_height(ctx, field)
  50697. case "id":
  50698. return ec.fieldContext_Image_id(ctx, field)
  50699. case "metafield":
  50700. return ec.fieldContext_Image_metafield(ctx, field)
  50701. case "metafields":
  50702. return ec.fieldContext_Image_metafields(ctx, field)
  50703. case "privateMetafield":
  50704. return ec.fieldContext_Image_privateMetafield(ctx, field)
  50705. case "privateMetafields":
  50706. return ec.fieldContext_Image_privateMetafields(ctx, field)
  50707. case "url":
  50708. return ec.fieldContext_Image_url(ctx, field)
  50709. case "width":
  50710. return ec.fieldContext_Image_width(ctx, field)
  50711. }
  50712. return nil, fmt.Errorf("no field named %q was found under type Image", field.Name)
  50713. },
  50714. }
  50715. return fc, nil
  50716. }
  50717. func (ec *executionContext) _Customer_lastName(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  50718. fc, err := ec.fieldContext_Customer_lastName(ctx, field)
  50719. if err != nil {
  50720. return graphql.Null
  50721. }
  50722. ctx = graphql.WithFieldContext(ctx, fc)
  50723. defer func() {
  50724. if r := recover(); r != nil {
  50725. ec.Error(ctx, ec.Recover(ctx, r))
  50726. ret = graphql.Null
  50727. }
  50728. }()
  50729. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  50730. ctx = rctx // use context from middleware stack in children
  50731. return obj.LastName, nil
  50732. })
  50733. if err != nil {
  50734. ec.Error(ctx, err)
  50735. return graphql.Null
  50736. }
  50737. if resTmp == nil {
  50738. return graphql.Null
  50739. }
  50740. res := resTmp.(*string)
  50741. fc.Result = res
  50742. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  50743. }
  50744. func (ec *executionContext) fieldContext_Customer_lastName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  50745. fc = &graphql.FieldContext{
  50746. Object: "Customer",
  50747. Field: field,
  50748. IsMethod: false,
  50749. IsResolver: false,
  50750. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  50751. return nil, errors.New("field of type String does not have child fields")
  50752. },
  50753. }
  50754. return fc, nil
  50755. }
  50756. func (ec *executionContext) _Customer_lastOrder(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  50757. fc, err := ec.fieldContext_Customer_lastOrder(ctx, field)
  50758. if err != nil {
  50759. return graphql.Null
  50760. }
  50761. ctx = graphql.WithFieldContext(ctx, fc)
  50762. defer func() {
  50763. if r := recover(); r != nil {
  50764. ec.Error(ctx, ec.Recover(ctx, r))
  50765. ret = graphql.Null
  50766. }
  50767. }()
  50768. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  50769. ctx = rctx // use context from middleware stack in children
  50770. return obj.LastOrder, nil
  50771. })
  50772. if err != nil {
  50773. ec.Error(ctx, err)
  50774. return graphql.Null
  50775. }
  50776. if resTmp == nil {
  50777. return graphql.Null
  50778. }
  50779. res := resTmp.(*Order)
  50780. fc.Result = res
  50781. return ec.marshalOOrder2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrder(ctx, field.Selections, res)
  50782. }
  50783. func (ec *executionContext) fieldContext_Customer_lastOrder(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  50784. fc = &graphql.FieldContext{
  50785. Object: "Customer",
  50786. Field: field,
  50787. IsMethod: false,
  50788. IsResolver: false,
  50789. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  50790. switch field.Name {
  50791. case "agreements":
  50792. return ec.fieldContext_Order_agreements(ctx, field)
  50793. case "alerts":
  50794. return ec.fieldContext_Order_alerts(ctx, field)
  50795. case "app":
  50796. return ec.fieldContext_Order_app(ctx, field)
  50797. case "billingAddress":
  50798. return ec.fieldContext_Order_billingAddress(ctx, field)
  50799. case "billingAddressMatchesShippingAddress":
  50800. return ec.fieldContext_Order_billingAddressMatchesShippingAddress(ctx, field)
  50801. case "canMarkAsPaid":
  50802. return ec.fieldContext_Order_canMarkAsPaid(ctx, field)
  50803. case "canNotifyCustomer":
  50804. return ec.fieldContext_Order_canNotifyCustomer(ctx, field)
  50805. case "cancelReason":
  50806. return ec.fieldContext_Order_cancelReason(ctx, field)
  50807. case "cancelledAt":
  50808. return ec.fieldContext_Order_cancelledAt(ctx, field)
  50809. case "capturable":
  50810. return ec.fieldContext_Order_capturable(ctx, field)
  50811. case "cartDiscountAmountSet":
  50812. return ec.fieldContext_Order_cartDiscountAmountSet(ctx, field)
  50813. case "channelInformation":
  50814. return ec.fieldContext_Order_channelInformation(ctx, field)
  50815. case "clientIp":
  50816. return ec.fieldContext_Order_clientIp(ctx, field)
  50817. case "closed":
  50818. return ec.fieldContext_Order_closed(ctx, field)
  50819. case "closedAt":
  50820. return ec.fieldContext_Order_closedAt(ctx, field)
  50821. case "confirmed":
  50822. return ec.fieldContext_Order_confirmed(ctx, field)
  50823. case "createdAt":
  50824. return ec.fieldContext_Order_createdAt(ctx, field)
  50825. case "currencyCode":
  50826. return ec.fieldContext_Order_currencyCode(ctx, field)
  50827. case "currentCartDiscountAmountSet":
  50828. return ec.fieldContext_Order_currentCartDiscountAmountSet(ctx, field)
  50829. case "currentSubtotalLineItemsQuantity":
  50830. return ec.fieldContext_Order_currentSubtotalLineItemsQuantity(ctx, field)
  50831. case "currentSubtotalPriceSet":
  50832. return ec.fieldContext_Order_currentSubtotalPriceSet(ctx, field)
  50833. case "currentTaxLines":
  50834. return ec.fieldContext_Order_currentTaxLines(ctx, field)
  50835. case "currentTotalDiscountsSet":
  50836. return ec.fieldContext_Order_currentTotalDiscountsSet(ctx, field)
  50837. case "currentTotalDutiesSet":
  50838. return ec.fieldContext_Order_currentTotalDutiesSet(ctx, field)
  50839. case "currentTotalPriceSet":
  50840. return ec.fieldContext_Order_currentTotalPriceSet(ctx, field)
  50841. case "currentTotalTaxSet":
  50842. return ec.fieldContext_Order_currentTotalTaxSet(ctx, field)
  50843. case "currentTotalWeight":
  50844. return ec.fieldContext_Order_currentTotalWeight(ctx, field)
  50845. case "customAttributes":
  50846. return ec.fieldContext_Order_customAttributes(ctx, field)
  50847. case "customer":
  50848. return ec.fieldContext_Order_customer(ctx, field)
  50849. case "customerAcceptsMarketing":
  50850. return ec.fieldContext_Order_customerAcceptsMarketing(ctx, field)
  50851. case "customerJourneySummary":
  50852. return ec.fieldContext_Order_customerJourneySummary(ctx, field)
  50853. case "customerLocale":
  50854. return ec.fieldContext_Order_customerLocale(ctx, field)
  50855. case "discountApplications":
  50856. return ec.fieldContext_Order_discountApplications(ctx, field)
  50857. case "discountCode":
  50858. return ec.fieldContext_Order_discountCode(ctx, field)
  50859. case "discountCodes":
  50860. return ec.fieldContext_Order_discountCodes(ctx, field)
  50861. case "displayAddress":
  50862. return ec.fieldContext_Order_displayAddress(ctx, field)
  50863. case "displayFinancialStatus":
  50864. return ec.fieldContext_Order_displayFinancialStatus(ctx, field)
  50865. case "displayFulfillmentStatus":
  50866. return ec.fieldContext_Order_displayFulfillmentStatus(ctx, field)
  50867. case "disputes":
  50868. return ec.fieldContext_Order_disputes(ctx, field)
  50869. case "edited":
  50870. return ec.fieldContext_Order_edited(ctx, field)
  50871. case "email":
  50872. return ec.fieldContext_Order_email(ctx, field)
  50873. case "estimatedTaxes":
  50874. return ec.fieldContext_Order_estimatedTaxes(ctx, field)
  50875. case "events":
  50876. return ec.fieldContext_Order_events(ctx, field)
  50877. case "fulfillable":
  50878. return ec.fieldContext_Order_fulfillable(ctx, field)
  50879. case "fulfillmentOrders":
  50880. return ec.fieldContext_Order_fulfillmentOrders(ctx, field)
  50881. case "fulfillments":
  50882. return ec.fieldContext_Order_fulfillments(ctx, field)
  50883. case "fullyPaid":
  50884. return ec.fieldContext_Order_fullyPaid(ctx, field)
  50885. case "hasTimelineComment":
  50886. return ec.fieldContext_Order_hasTimelineComment(ctx, field)
  50887. case "id":
  50888. return ec.fieldContext_Order_id(ctx, field)
  50889. case "legacyResourceId":
  50890. return ec.fieldContext_Order_legacyResourceId(ctx, field)
  50891. case "lineItems":
  50892. return ec.fieldContext_Order_lineItems(ctx, field)
  50893. case "localizationExtensions":
  50894. return ec.fieldContext_Order_localizationExtensions(ctx, field)
  50895. case "merchantEditable":
  50896. return ec.fieldContext_Order_merchantEditable(ctx, field)
  50897. case "merchantEditableErrors":
  50898. return ec.fieldContext_Order_merchantEditableErrors(ctx, field)
  50899. case "merchantOfRecordApp":
  50900. return ec.fieldContext_Order_merchantOfRecordApp(ctx, field)
  50901. case "metafield":
  50902. return ec.fieldContext_Order_metafield(ctx, field)
  50903. case "metafieldDefinitions":
  50904. return ec.fieldContext_Order_metafieldDefinitions(ctx, field)
  50905. case "metafields":
  50906. return ec.fieldContext_Order_metafields(ctx, field)
  50907. case "name":
  50908. return ec.fieldContext_Order_name(ctx, field)
  50909. case "netPaymentSet":
  50910. return ec.fieldContext_Order_netPaymentSet(ctx, field)
  50911. case "nonFulfillableLineItems":
  50912. return ec.fieldContext_Order_nonFulfillableLineItems(ctx, field)
  50913. case "note":
  50914. return ec.fieldContext_Order_note(ctx, field)
  50915. case "originalTotalDutiesSet":
  50916. return ec.fieldContext_Order_originalTotalDutiesSet(ctx, field)
  50917. case "originalTotalPriceSet":
  50918. return ec.fieldContext_Order_originalTotalPriceSet(ctx, field)
  50919. case "paymentCollectionDetails":
  50920. return ec.fieldContext_Order_paymentCollectionDetails(ctx, field)
  50921. case "paymentGatewayNames":
  50922. return ec.fieldContext_Order_paymentGatewayNames(ctx, field)
  50923. case "paymentTerms":
  50924. return ec.fieldContext_Order_paymentTerms(ctx, field)
  50925. case "phone":
  50926. return ec.fieldContext_Order_phone(ctx, field)
  50927. case "physicalLocation":
  50928. return ec.fieldContext_Order_physicalLocation(ctx, field)
  50929. case "presentmentCurrencyCode":
  50930. return ec.fieldContext_Order_presentmentCurrencyCode(ctx, field)
  50931. case "privateMetafield":
  50932. return ec.fieldContext_Order_privateMetafield(ctx, field)
  50933. case "privateMetafields":
  50934. return ec.fieldContext_Order_privateMetafields(ctx, field)
  50935. case "processedAt":
  50936. return ec.fieldContext_Order_processedAt(ctx, field)
  50937. case "publication":
  50938. return ec.fieldContext_Order_publication(ctx, field)
  50939. case "purchasingEntity":
  50940. return ec.fieldContext_Order_purchasingEntity(ctx, field)
  50941. case "refundDiscrepancySet":
  50942. return ec.fieldContext_Order_refundDiscrepancySet(ctx, field)
  50943. case "refundable":
  50944. return ec.fieldContext_Order_refundable(ctx, field)
  50945. case "refunds":
  50946. return ec.fieldContext_Order_refunds(ctx, field)
  50947. case "registeredSourceUrl":
  50948. return ec.fieldContext_Order_registeredSourceUrl(ctx, field)
  50949. case "requiresShipping":
  50950. return ec.fieldContext_Order_requiresShipping(ctx, field)
  50951. case "restockable":
  50952. return ec.fieldContext_Order_restockable(ctx, field)
  50953. case "riskLevel":
  50954. return ec.fieldContext_Order_riskLevel(ctx, field)
  50955. case "risks":
  50956. return ec.fieldContext_Order_risks(ctx, field)
  50957. case "shippingAddress":
  50958. return ec.fieldContext_Order_shippingAddress(ctx, field)
  50959. case "shippingLine":
  50960. return ec.fieldContext_Order_shippingLine(ctx, field)
  50961. case "shippingLines":
  50962. return ec.fieldContext_Order_shippingLines(ctx, field)
  50963. case "sourceIdentifier":
  50964. return ec.fieldContext_Order_sourceIdentifier(ctx, field)
  50965. case "subtotalLineItemsQuantity":
  50966. return ec.fieldContext_Order_subtotalLineItemsQuantity(ctx, field)
  50967. case "subtotalPriceSet":
  50968. return ec.fieldContext_Order_subtotalPriceSet(ctx, field)
  50969. case "suggestedRefund":
  50970. return ec.fieldContext_Order_suggestedRefund(ctx, field)
  50971. case "tags":
  50972. return ec.fieldContext_Order_tags(ctx, field)
  50973. case "taxLines":
  50974. return ec.fieldContext_Order_taxLines(ctx, field)
  50975. case "taxesIncluded":
  50976. return ec.fieldContext_Order_taxesIncluded(ctx, field)
  50977. case "test":
  50978. return ec.fieldContext_Order_test(ctx, field)
  50979. case "totalCapturableSet":
  50980. return ec.fieldContext_Order_totalCapturableSet(ctx, field)
  50981. case "totalDiscountsSet":
  50982. return ec.fieldContext_Order_totalDiscountsSet(ctx, field)
  50983. case "totalOutstandingSet":
  50984. return ec.fieldContext_Order_totalOutstandingSet(ctx, field)
  50985. case "totalPriceSet":
  50986. return ec.fieldContext_Order_totalPriceSet(ctx, field)
  50987. case "totalReceivedSet":
  50988. return ec.fieldContext_Order_totalReceivedSet(ctx, field)
  50989. case "totalRefundedSet":
  50990. return ec.fieldContext_Order_totalRefundedSet(ctx, field)
  50991. case "totalRefundedShippingSet":
  50992. return ec.fieldContext_Order_totalRefundedShippingSet(ctx, field)
  50993. case "totalShippingPriceSet":
  50994. return ec.fieldContext_Order_totalShippingPriceSet(ctx, field)
  50995. case "totalTaxSet":
  50996. return ec.fieldContext_Order_totalTaxSet(ctx, field)
  50997. case "totalTipReceivedSet":
  50998. return ec.fieldContext_Order_totalTipReceivedSet(ctx, field)
  50999. case "totalWeight":
  51000. return ec.fieldContext_Order_totalWeight(ctx, field)
  51001. case "transactions":
  51002. return ec.fieldContext_Order_transactions(ctx, field)
  51003. case "unpaid":
  51004. return ec.fieldContext_Order_unpaid(ctx, field)
  51005. case "updatedAt":
  51006. return ec.fieldContext_Order_updatedAt(ctx, field)
  51007. }
  51008. return nil, fmt.Errorf("no field named %q was found under type Order", field.Name)
  51009. },
  51010. }
  51011. return fc, nil
  51012. }
  51013. func (ec *executionContext) _Customer_legacyResourceId(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  51014. fc, err := ec.fieldContext_Customer_legacyResourceId(ctx, field)
  51015. if err != nil {
  51016. return graphql.Null
  51017. }
  51018. ctx = graphql.WithFieldContext(ctx, fc)
  51019. defer func() {
  51020. if r := recover(); r != nil {
  51021. ec.Error(ctx, ec.Recover(ctx, r))
  51022. ret = graphql.Null
  51023. }
  51024. }()
  51025. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  51026. ctx = rctx // use context from middleware stack in children
  51027. return obj.LegacyResourceID, nil
  51028. })
  51029. if err != nil {
  51030. ec.Error(ctx, err)
  51031. return graphql.Null
  51032. }
  51033. if resTmp == nil {
  51034. if !graphql.HasFieldError(ctx, fc) {
  51035. ec.Errorf(ctx, "must not be null")
  51036. }
  51037. return graphql.Null
  51038. }
  51039. res := resTmp.(string)
  51040. fc.Result = res
  51041. return ec.marshalNUnsignedInt642string(ctx, field.Selections, res)
  51042. }
  51043. func (ec *executionContext) fieldContext_Customer_legacyResourceId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  51044. fc = &graphql.FieldContext{
  51045. Object: "Customer",
  51046. Field: field,
  51047. IsMethod: false,
  51048. IsResolver: false,
  51049. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  51050. return nil, errors.New("field of type UnsignedInt64 does not have child fields")
  51051. },
  51052. }
  51053. return fc, nil
  51054. }
  51055. func (ec *executionContext) _Customer_lifetimeDuration(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  51056. fc, err := ec.fieldContext_Customer_lifetimeDuration(ctx, field)
  51057. if err != nil {
  51058. return graphql.Null
  51059. }
  51060. ctx = graphql.WithFieldContext(ctx, fc)
  51061. defer func() {
  51062. if r := recover(); r != nil {
  51063. ec.Error(ctx, ec.Recover(ctx, r))
  51064. ret = graphql.Null
  51065. }
  51066. }()
  51067. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  51068. ctx = rctx // use context from middleware stack in children
  51069. return obj.LifetimeDuration, nil
  51070. })
  51071. if err != nil {
  51072. ec.Error(ctx, err)
  51073. return graphql.Null
  51074. }
  51075. if resTmp == nil {
  51076. if !graphql.HasFieldError(ctx, fc) {
  51077. ec.Errorf(ctx, "must not be null")
  51078. }
  51079. return graphql.Null
  51080. }
  51081. res := resTmp.(string)
  51082. fc.Result = res
  51083. return ec.marshalNString2string(ctx, field.Selections, res)
  51084. }
  51085. func (ec *executionContext) fieldContext_Customer_lifetimeDuration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  51086. fc = &graphql.FieldContext{
  51087. Object: "Customer",
  51088. Field: field,
  51089. IsMethod: false,
  51090. IsResolver: false,
  51091. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  51092. return nil, errors.New("field of type String does not have child fields")
  51093. },
  51094. }
  51095. return fc, nil
  51096. }
  51097. func (ec *executionContext) _Customer_locale(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  51098. fc, err := ec.fieldContext_Customer_locale(ctx, field)
  51099. if err != nil {
  51100. return graphql.Null
  51101. }
  51102. ctx = graphql.WithFieldContext(ctx, fc)
  51103. defer func() {
  51104. if r := recover(); r != nil {
  51105. ec.Error(ctx, ec.Recover(ctx, r))
  51106. ret = graphql.Null
  51107. }
  51108. }()
  51109. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  51110. ctx = rctx // use context from middleware stack in children
  51111. return obj.Locale, nil
  51112. })
  51113. if err != nil {
  51114. ec.Error(ctx, err)
  51115. return graphql.Null
  51116. }
  51117. if resTmp == nil {
  51118. if !graphql.HasFieldError(ctx, fc) {
  51119. ec.Errorf(ctx, "must not be null")
  51120. }
  51121. return graphql.Null
  51122. }
  51123. res := resTmp.(string)
  51124. fc.Result = res
  51125. return ec.marshalNString2string(ctx, field.Selections, res)
  51126. }
  51127. func (ec *executionContext) fieldContext_Customer_locale(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  51128. fc = &graphql.FieldContext{
  51129. Object: "Customer",
  51130. Field: field,
  51131. IsMethod: false,
  51132. IsResolver: false,
  51133. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  51134. return nil, errors.New("field of type String does not have child fields")
  51135. },
  51136. }
  51137. return fc, nil
  51138. }
  51139. func (ec *executionContext) _Customer_market(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  51140. fc, err := ec.fieldContext_Customer_market(ctx, field)
  51141. if err != nil {
  51142. return graphql.Null
  51143. }
  51144. ctx = graphql.WithFieldContext(ctx, fc)
  51145. defer func() {
  51146. if r := recover(); r != nil {
  51147. ec.Error(ctx, ec.Recover(ctx, r))
  51148. ret = graphql.Null
  51149. }
  51150. }()
  51151. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  51152. ctx = rctx // use context from middleware stack in children
  51153. return obj.Market, nil
  51154. })
  51155. if err != nil {
  51156. ec.Error(ctx, err)
  51157. return graphql.Null
  51158. }
  51159. if resTmp == nil {
  51160. return graphql.Null
  51161. }
  51162. res := resTmp.(*Market)
  51163. fc.Result = res
  51164. return ec.marshalOMarket2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarket(ctx, field.Selections, res)
  51165. }
  51166. func (ec *executionContext) fieldContext_Customer_market(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  51167. fc = &graphql.FieldContext{
  51168. Object: "Customer",
  51169. Field: field,
  51170. IsMethod: false,
  51171. IsResolver: false,
  51172. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  51173. switch field.Name {
  51174. case "currencySettings":
  51175. return ec.fieldContext_Market_currencySettings(ctx, field)
  51176. case "enabled":
  51177. return ec.fieldContext_Market_enabled(ctx, field)
  51178. case "id":
  51179. return ec.fieldContext_Market_id(ctx, field)
  51180. case "name":
  51181. return ec.fieldContext_Market_name(ctx, field)
  51182. case "priceList":
  51183. return ec.fieldContext_Market_priceList(ctx, field)
  51184. case "primary":
  51185. return ec.fieldContext_Market_primary(ctx, field)
  51186. case "regions":
  51187. return ec.fieldContext_Market_regions(ctx, field)
  51188. case "webPresence":
  51189. return ec.fieldContext_Market_webPresence(ctx, field)
  51190. }
  51191. return nil, fmt.Errorf("no field named %q was found under type Market", field.Name)
  51192. },
  51193. }
  51194. return fc, nil
  51195. }
  51196. func (ec *executionContext) _Customer_metafield(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  51197. fc, err := ec.fieldContext_Customer_metafield(ctx, field)
  51198. if err != nil {
  51199. return graphql.Null
  51200. }
  51201. ctx = graphql.WithFieldContext(ctx, fc)
  51202. defer func() {
  51203. if r := recover(); r != nil {
  51204. ec.Error(ctx, ec.Recover(ctx, r))
  51205. ret = graphql.Null
  51206. }
  51207. }()
  51208. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  51209. ctx = rctx // use context from middleware stack in children
  51210. return obj.Metafield, nil
  51211. })
  51212. if err != nil {
  51213. ec.Error(ctx, err)
  51214. return graphql.Null
  51215. }
  51216. if resTmp == nil {
  51217. return graphql.Null
  51218. }
  51219. res := resTmp.(*Metafield)
  51220. fc.Result = res
  51221. return ec.marshalOMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafield(ctx, field.Selections, res)
  51222. }
  51223. func (ec *executionContext) fieldContext_Customer_metafield(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  51224. fc = &graphql.FieldContext{
  51225. Object: "Customer",
  51226. Field: field,
  51227. IsMethod: false,
  51228. IsResolver: false,
  51229. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  51230. switch field.Name {
  51231. case "createdAt":
  51232. return ec.fieldContext_Metafield_createdAt(ctx, field)
  51233. case "definition":
  51234. return ec.fieldContext_Metafield_definition(ctx, field)
  51235. case "description":
  51236. return ec.fieldContext_Metafield_description(ctx, field)
  51237. case "id":
  51238. return ec.fieldContext_Metafield_id(ctx, field)
  51239. case "key":
  51240. return ec.fieldContext_Metafield_key(ctx, field)
  51241. case "legacyResourceId":
  51242. return ec.fieldContext_Metafield_legacyResourceId(ctx, field)
  51243. case "namespace":
  51244. return ec.fieldContext_Metafield_namespace(ctx, field)
  51245. case "owner":
  51246. return ec.fieldContext_Metafield_owner(ctx, field)
  51247. case "ownerType":
  51248. return ec.fieldContext_Metafield_ownerType(ctx, field)
  51249. case "reference":
  51250. return ec.fieldContext_Metafield_reference(ctx, field)
  51251. case "references":
  51252. return ec.fieldContext_Metafield_references(ctx, field)
  51253. case "type":
  51254. return ec.fieldContext_Metafield_type(ctx, field)
  51255. case "updatedAt":
  51256. return ec.fieldContext_Metafield_updatedAt(ctx, field)
  51257. case "value":
  51258. return ec.fieldContext_Metafield_value(ctx, field)
  51259. }
  51260. return nil, fmt.Errorf("no field named %q was found under type Metafield", field.Name)
  51261. },
  51262. }
  51263. defer func() {
  51264. if r := recover(); r != nil {
  51265. err = ec.Recover(ctx, r)
  51266. ec.Error(ctx, err)
  51267. }
  51268. }()
  51269. ctx = graphql.WithFieldContext(ctx, fc)
  51270. if fc.Args, err = ec.field_Customer_metafield_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  51271. ec.Error(ctx, err)
  51272. return
  51273. }
  51274. return fc, nil
  51275. }
  51276. func (ec *executionContext) _Customer_metafieldDefinitions(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  51277. fc, err := ec.fieldContext_Customer_metafieldDefinitions(ctx, field)
  51278. if err != nil {
  51279. return graphql.Null
  51280. }
  51281. ctx = graphql.WithFieldContext(ctx, fc)
  51282. defer func() {
  51283. if r := recover(); r != nil {
  51284. ec.Error(ctx, ec.Recover(ctx, r))
  51285. ret = graphql.Null
  51286. }
  51287. }()
  51288. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  51289. ctx = rctx // use context from middleware stack in children
  51290. return obj.MetafieldDefinitions, nil
  51291. })
  51292. if err != nil {
  51293. ec.Error(ctx, err)
  51294. return graphql.Null
  51295. }
  51296. if resTmp == nil {
  51297. if !graphql.HasFieldError(ctx, fc) {
  51298. ec.Errorf(ctx, "must not be null")
  51299. }
  51300. return graphql.Null
  51301. }
  51302. res := resTmp.(*MetafieldDefinitionConnection)
  51303. fc.Result = res
  51304. return ec.marshalNMetafieldDefinitionConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionConnection(ctx, field.Selections, res)
  51305. }
  51306. func (ec *executionContext) fieldContext_Customer_metafieldDefinitions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  51307. fc = &graphql.FieldContext{
  51308. Object: "Customer",
  51309. Field: field,
  51310. IsMethod: false,
  51311. IsResolver: false,
  51312. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  51313. switch field.Name {
  51314. case "edges":
  51315. return ec.fieldContext_MetafieldDefinitionConnection_edges(ctx, field)
  51316. case "nodes":
  51317. return ec.fieldContext_MetafieldDefinitionConnection_nodes(ctx, field)
  51318. case "pageInfo":
  51319. return ec.fieldContext_MetafieldDefinitionConnection_pageInfo(ctx, field)
  51320. }
  51321. return nil, fmt.Errorf("no field named %q was found under type MetafieldDefinitionConnection", field.Name)
  51322. },
  51323. }
  51324. defer func() {
  51325. if r := recover(); r != nil {
  51326. err = ec.Recover(ctx, r)
  51327. ec.Error(ctx, err)
  51328. }
  51329. }()
  51330. ctx = graphql.WithFieldContext(ctx, fc)
  51331. if fc.Args, err = ec.field_Customer_metafieldDefinitions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  51332. ec.Error(ctx, err)
  51333. return
  51334. }
  51335. return fc, nil
  51336. }
  51337. func (ec *executionContext) _Customer_metafields(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  51338. fc, err := ec.fieldContext_Customer_metafields(ctx, field)
  51339. if err != nil {
  51340. return graphql.Null
  51341. }
  51342. ctx = graphql.WithFieldContext(ctx, fc)
  51343. defer func() {
  51344. if r := recover(); r != nil {
  51345. ec.Error(ctx, ec.Recover(ctx, r))
  51346. ret = graphql.Null
  51347. }
  51348. }()
  51349. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  51350. ctx = rctx // use context from middleware stack in children
  51351. return obj.Metafields, nil
  51352. })
  51353. if err != nil {
  51354. ec.Error(ctx, err)
  51355. return graphql.Null
  51356. }
  51357. if resTmp == nil {
  51358. if !graphql.HasFieldError(ctx, fc) {
  51359. ec.Errorf(ctx, "must not be null")
  51360. }
  51361. return graphql.Null
  51362. }
  51363. res := resTmp.(*MetafieldConnection)
  51364. fc.Result = res
  51365. return ec.marshalNMetafieldConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldConnection(ctx, field.Selections, res)
  51366. }
  51367. func (ec *executionContext) fieldContext_Customer_metafields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  51368. fc = &graphql.FieldContext{
  51369. Object: "Customer",
  51370. Field: field,
  51371. IsMethod: false,
  51372. IsResolver: false,
  51373. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  51374. switch field.Name {
  51375. case "edges":
  51376. return ec.fieldContext_MetafieldConnection_edges(ctx, field)
  51377. case "nodes":
  51378. return ec.fieldContext_MetafieldConnection_nodes(ctx, field)
  51379. case "pageInfo":
  51380. return ec.fieldContext_MetafieldConnection_pageInfo(ctx, field)
  51381. }
  51382. return nil, fmt.Errorf("no field named %q was found under type MetafieldConnection", field.Name)
  51383. },
  51384. }
  51385. defer func() {
  51386. if r := recover(); r != nil {
  51387. err = ec.Recover(ctx, r)
  51388. ec.Error(ctx, err)
  51389. }
  51390. }()
  51391. ctx = graphql.WithFieldContext(ctx, fc)
  51392. if fc.Args, err = ec.field_Customer_metafields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  51393. ec.Error(ctx, err)
  51394. return
  51395. }
  51396. return fc, nil
  51397. }
  51398. func (ec *executionContext) _Customer_multipassIdentifier(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  51399. fc, err := ec.fieldContext_Customer_multipassIdentifier(ctx, field)
  51400. if err != nil {
  51401. return graphql.Null
  51402. }
  51403. ctx = graphql.WithFieldContext(ctx, fc)
  51404. defer func() {
  51405. if r := recover(); r != nil {
  51406. ec.Error(ctx, ec.Recover(ctx, r))
  51407. ret = graphql.Null
  51408. }
  51409. }()
  51410. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  51411. ctx = rctx // use context from middleware stack in children
  51412. return obj.MultipassIdentifier, nil
  51413. })
  51414. if err != nil {
  51415. ec.Error(ctx, err)
  51416. return graphql.Null
  51417. }
  51418. if resTmp == nil {
  51419. return graphql.Null
  51420. }
  51421. res := resTmp.(*string)
  51422. fc.Result = res
  51423. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  51424. }
  51425. func (ec *executionContext) fieldContext_Customer_multipassIdentifier(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  51426. fc = &graphql.FieldContext{
  51427. Object: "Customer",
  51428. Field: field,
  51429. IsMethod: false,
  51430. IsResolver: false,
  51431. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  51432. return nil, errors.New("field of type String does not have child fields")
  51433. },
  51434. }
  51435. return fc, nil
  51436. }
  51437. func (ec *executionContext) _Customer_note(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  51438. fc, err := ec.fieldContext_Customer_note(ctx, field)
  51439. if err != nil {
  51440. return graphql.Null
  51441. }
  51442. ctx = graphql.WithFieldContext(ctx, fc)
  51443. defer func() {
  51444. if r := recover(); r != nil {
  51445. ec.Error(ctx, ec.Recover(ctx, r))
  51446. ret = graphql.Null
  51447. }
  51448. }()
  51449. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  51450. ctx = rctx // use context from middleware stack in children
  51451. return obj.Note, nil
  51452. })
  51453. if err != nil {
  51454. ec.Error(ctx, err)
  51455. return graphql.Null
  51456. }
  51457. if resTmp == nil {
  51458. return graphql.Null
  51459. }
  51460. res := resTmp.(*string)
  51461. fc.Result = res
  51462. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  51463. }
  51464. func (ec *executionContext) fieldContext_Customer_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  51465. fc = &graphql.FieldContext{
  51466. Object: "Customer",
  51467. Field: field,
  51468. IsMethod: false,
  51469. IsResolver: false,
  51470. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  51471. return nil, errors.New("field of type String does not have child fields")
  51472. },
  51473. }
  51474. return fc, nil
  51475. }
  51476. func (ec *executionContext) _Customer_numberOfOrders(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  51477. fc, err := ec.fieldContext_Customer_numberOfOrders(ctx, field)
  51478. if err != nil {
  51479. return graphql.Null
  51480. }
  51481. ctx = graphql.WithFieldContext(ctx, fc)
  51482. defer func() {
  51483. if r := recover(); r != nil {
  51484. ec.Error(ctx, ec.Recover(ctx, r))
  51485. ret = graphql.Null
  51486. }
  51487. }()
  51488. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  51489. ctx = rctx // use context from middleware stack in children
  51490. return obj.NumberOfOrders, nil
  51491. })
  51492. if err != nil {
  51493. ec.Error(ctx, err)
  51494. return graphql.Null
  51495. }
  51496. if resTmp == nil {
  51497. if !graphql.HasFieldError(ctx, fc) {
  51498. ec.Errorf(ctx, "must not be null")
  51499. }
  51500. return graphql.Null
  51501. }
  51502. res := resTmp.(string)
  51503. fc.Result = res
  51504. return ec.marshalNUnsignedInt642string(ctx, field.Selections, res)
  51505. }
  51506. func (ec *executionContext) fieldContext_Customer_numberOfOrders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  51507. fc = &graphql.FieldContext{
  51508. Object: "Customer",
  51509. Field: field,
  51510. IsMethod: false,
  51511. IsResolver: false,
  51512. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  51513. return nil, errors.New("field of type UnsignedInt64 does not have child fields")
  51514. },
  51515. }
  51516. return fc, nil
  51517. }
  51518. func (ec *executionContext) _Customer_orders(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  51519. fc, err := ec.fieldContext_Customer_orders(ctx, field)
  51520. if err != nil {
  51521. return graphql.Null
  51522. }
  51523. ctx = graphql.WithFieldContext(ctx, fc)
  51524. defer func() {
  51525. if r := recover(); r != nil {
  51526. ec.Error(ctx, ec.Recover(ctx, r))
  51527. ret = graphql.Null
  51528. }
  51529. }()
  51530. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  51531. ctx = rctx // use context from middleware stack in children
  51532. return obj.Orders, nil
  51533. })
  51534. if err != nil {
  51535. ec.Error(ctx, err)
  51536. return graphql.Null
  51537. }
  51538. if resTmp == nil {
  51539. if !graphql.HasFieldError(ctx, fc) {
  51540. ec.Errorf(ctx, "must not be null")
  51541. }
  51542. return graphql.Null
  51543. }
  51544. res := resTmp.(*OrderConnection)
  51545. fc.Result = res
  51546. return ec.marshalNOrderConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderConnection(ctx, field.Selections, res)
  51547. }
  51548. func (ec *executionContext) fieldContext_Customer_orders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  51549. fc = &graphql.FieldContext{
  51550. Object: "Customer",
  51551. Field: field,
  51552. IsMethod: false,
  51553. IsResolver: false,
  51554. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  51555. switch field.Name {
  51556. case "edges":
  51557. return ec.fieldContext_OrderConnection_edges(ctx, field)
  51558. case "nodes":
  51559. return ec.fieldContext_OrderConnection_nodes(ctx, field)
  51560. case "pageInfo":
  51561. return ec.fieldContext_OrderConnection_pageInfo(ctx, field)
  51562. }
  51563. return nil, fmt.Errorf("no field named %q was found under type OrderConnection", field.Name)
  51564. },
  51565. }
  51566. defer func() {
  51567. if r := recover(); r != nil {
  51568. err = ec.Recover(ctx, r)
  51569. ec.Error(ctx, err)
  51570. }
  51571. }()
  51572. ctx = graphql.WithFieldContext(ctx, fc)
  51573. if fc.Args, err = ec.field_Customer_orders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  51574. ec.Error(ctx, err)
  51575. return
  51576. }
  51577. return fc, nil
  51578. }
  51579. func (ec *executionContext) _Customer_paymentMethods(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  51580. fc, err := ec.fieldContext_Customer_paymentMethods(ctx, field)
  51581. if err != nil {
  51582. return graphql.Null
  51583. }
  51584. ctx = graphql.WithFieldContext(ctx, fc)
  51585. defer func() {
  51586. if r := recover(); r != nil {
  51587. ec.Error(ctx, ec.Recover(ctx, r))
  51588. ret = graphql.Null
  51589. }
  51590. }()
  51591. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  51592. ctx = rctx // use context from middleware stack in children
  51593. return obj.PaymentMethods, nil
  51594. })
  51595. if err != nil {
  51596. ec.Error(ctx, err)
  51597. return graphql.Null
  51598. }
  51599. if resTmp == nil {
  51600. if !graphql.HasFieldError(ctx, fc) {
  51601. ec.Errorf(ctx, "must not be null")
  51602. }
  51603. return graphql.Null
  51604. }
  51605. res := resTmp.(*CustomerPaymentMethodConnection)
  51606. fc.Result = res
  51607. return ec.marshalNCustomerPaymentMethodConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerPaymentMethodConnection(ctx, field.Selections, res)
  51608. }
  51609. func (ec *executionContext) fieldContext_Customer_paymentMethods(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  51610. fc = &graphql.FieldContext{
  51611. Object: "Customer",
  51612. Field: field,
  51613. IsMethod: false,
  51614. IsResolver: false,
  51615. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  51616. switch field.Name {
  51617. case "edges":
  51618. return ec.fieldContext_CustomerPaymentMethodConnection_edges(ctx, field)
  51619. case "nodes":
  51620. return ec.fieldContext_CustomerPaymentMethodConnection_nodes(ctx, field)
  51621. case "pageInfo":
  51622. return ec.fieldContext_CustomerPaymentMethodConnection_pageInfo(ctx, field)
  51623. }
  51624. return nil, fmt.Errorf("no field named %q was found under type CustomerPaymentMethodConnection", field.Name)
  51625. },
  51626. }
  51627. defer func() {
  51628. if r := recover(); r != nil {
  51629. err = ec.Recover(ctx, r)
  51630. ec.Error(ctx, err)
  51631. }
  51632. }()
  51633. ctx = graphql.WithFieldContext(ctx, fc)
  51634. if fc.Args, err = ec.field_Customer_paymentMethods_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  51635. ec.Error(ctx, err)
  51636. return
  51637. }
  51638. return fc, nil
  51639. }
  51640. func (ec *executionContext) _Customer_phone(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  51641. fc, err := ec.fieldContext_Customer_phone(ctx, field)
  51642. if err != nil {
  51643. return graphql.Null
  51644. }
  51645. ctx = graphql.WithFieldContext(ctx, fc)
  51646. defer func() {
  51647. if r := recover(); r != nil {
  51648. ec.Error(ctx, ec.Recover(ctx, r))
  51649. ret = graphql.Null
  51650. }
  51651. }()
  51652. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  51653. ctx = rctx // use context from middleware stack in children
  51654. return obj.Phone, nil
  51655. })
  51656. if err != nil {
  51657. ec.Error(ctx, err)
  51658. return graphql.Null
  51659. }
  51660. if resTmp == nil {
  51661. return graphql.Null
  51662. }
  51663. res := resTmp.(*string)
  51664. fc.Result = res
  51665. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  51666. }
  51667. func (ec *executionContext) fieldContext_Customer_phone(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  51668. fc = &graphql.FieldContext{
  51669. Object: "Customer",
  51670. Field: field,
  51671. IsMethod: false,
  51672. IsResolver: false,
  51673. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  51674. return nil, errors.New("field of type String does not have child fields")
  51675. },
  51676. }
  51677. return fc, nil
  51678. }
  51679. func (ec *executionContext) _Customer_privateMetafield(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  51680. fc, err := ec.fieldContext_Customer_privateMetafield(ctx, field)
  51681. if err != nil {
  51682. return graphql.Null
  51683. }
  51684. ctx = graphql.WithFieldContext(ctx, fc)
  51685. defer func() {
  51686. if r := recover(); r != nil {
  51687. ec.Error(ctx, ec.Recover(ctx, r))
  51688. ret = graphql.Null
  51689. }
  51690. }()
  51691. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  51692. ctx = rctx // use context from middleware stack in children
  51693. return obj.PrivateMetafield, nil
  51694. })
  51695. if err != nil {
  51696. ec.Error(ctx, err)
  51697. return graphql.Null
  51698. }
  51699. if resTmp == nil {
  51700. return graphql.Null
  51701. }
  51702. res := resTmp.(*PrivateMetafield)
  51703. fc.Result = res
  51704. return ec.marshalOPrivateMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafield(ctx, field.Selections, res)
  51705. }
  51706. func (ec *executionContext) fieldContext_Customer_privateMetafield(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  51707. fc = &graphql.FieldContext{
  51708. Object: "Customer",
  51709. Field: field,
  51710. IsMethod: false,
  51711. IsResolver: false,
  51712. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  51713. switch field.Name {
  51714. case "createdAt":
  51715. return ec.fieldContext_PrivateMetafield_createdAt(ctx, field)
  51716. case "id":
  51717. return ec.fieldContext_PrivateMetafield_id(ctx, field)
  51718. case "key":
  51719. return ec.fieldContext_PrivateMetafield_key(ctx, field)
  51720. case "namespace":
  51721. return ec.fieldContext_PrivateMetafield_namespace(ctx, field)
  51722. case "updatedAt":
  51723. return ec.fieldContext_PrivateMetafield_updatedAt(ctx, field)
  51724. case "value":
  51725. return ec.fieldContext_PrivateMetafield_value(ctx, field)
  51726. case "valueType":
  51727. return ec.fieldContext_PrivateMetafield_valueType(ctx, field)
  51728. }
  51729. return nil, fmt.Errorf("no field named %q was found under type PrivateMetafield", field.Name)
  51730. },
  51731. }
  51732. defer func() {
  51733. if r := recover(); r != nil {
  51734. err = ec.Recover(ctx, r)
  51735. ec.Error(ctx, err)
  51736. }
  51737. }()
  51738. ctx = graphql.WithFieldContext(ctx, fc)
  51739. if fc.Args, err = ec.field_Customer_privateMetafield_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  51740. ec.Error(ctx, err)
  51741. return
  51742. }
  51743. return fc, nil
  51744. }
  51745. func (ec *executionContext) _Customer_privateMetafields(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  51746. fc, err := ec.fieldContext_Customer_privateMetafields(ctx, field)
  51747. if err != nil {
  51748. return graphql.Null
  51749. }
  51750. ctx = graphql.WithFieldContext(ctx, fc)
  51751. defer func() {
  51752. if r := recover(); r != nil {
  51753. ec.Error(ctx, ec.Recover(ctx, r))
  51754. ret = graphql.Null
  51755. }
  51756. }()
  51757. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  51758. ctx = rctx // use context from middleware stack in children
  51759. return obj.PrivateMetafields, nil
  51760. })
  51761. if err != nil {
  51762. ec.Error(ctx, err)
  51763. return graphql.Null
  51764. }
  51765. if resTmp == nil {
  51766. if !graphql.HasFieldError(ctx, fc) {
  51767. ec.Errorf(ctx, "must not be null")
  51768. }
  51769. return graphql.Null
  51770. }
  51771. res := resTmp.(*PrivateMetafieldConnection)
  51772. fc.Result = res
  51773. return ec.marshalNPrivateMetafieldConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafieldConnection(ctx, field.Selections, res)
  51774. }
  51775. func (ec *executionContext) fieldContext_Customer_privateMetafields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  51776. fc = &graphql.FieldContext{
  51777. Object: "Customer",
  51778. Field: field,
  51779. IsMethod: false,
  51780. IsResolver: false,
  51781. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  51782. switch field.Name {
  51783. case "edges":
  51784. return ec.fieldContext_PrivateMetafieldConnection_edges(ctx, field)
  51785. case "nodes":
  51786. return ec.fieldContext_PrivateMetafieldConnection_nodes(ctx, field)
  51787. case "pageInfo":
  51788. return ec.fieldContext_PrivateMetafieldConnection_pageInfo(ctx, field)
  51789. }
  51790. return nil, fmt.Errorf("no field named %q was found under type PrivateMetafieldConnection", field.Name)
  51791. },
  51792. }
  51793. defer func() {
  51794. if r := recover(); r != nil {
  51795. err = ec.Recover(ctx, r)
  51796. ec.Error(ctx, err)
  51797. }
  51798. }()
  51799. ctx = graphql.WithFieldContext(ctx, fc)
  51800. if fc.Args, err = ec.field_Customer_privateMetafields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  51801. ec.Error(ctx, err)
  51802. return
  51803. }
  51804. return fc, nil
  51805. }
  51806. func (ec *executionContext) _Customer_productSubscriberStatus(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  51807. fc, err := ec.fieldContext_Customer_productSubscriberStatus(ctx, field)
  51808. if err != nil {
  51809. return graphql.Null
  51810. }
  51811. ctx = graphql.WithFieldContext(ctx, fc)
  51812. defer func() {
  51813. if r := recover(); r != nil {
  51814. ec.Error(ctx, ec.Recover(ctx, r))
  51815. ret = graphql.Null
  51816. }
  51817. }()
  51818. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  51819. ctx = rctx // use context from middleware stack in children
  51820. return obj.ProductSubscriberStatus, nil
  51821. })
  51822. if err != nil {
  51823. ec.Error(ctx, err)
  51824. return graphql.Null
  51825. }
  51826. if resTmp == nil {
  51827. if !graphql.HasFieldError(ctx, fc) {
  51828. ec.Errorf(ctx, "must not be null")
  51829. }
  51830. return graphql.Null
  51831. }
  51832. res := resTmp.(CustomerProductSubscriberStatus)
  51833. fc.Result = res
  51834. return ec.marshalNCustomerProductSubscriberStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerProductSubscriberStatus(ctx, field.Selections, res)
  51835. }
  51836. func (ec *executionContext) fieldContext_Customer_productSubscriberStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  51837. fc = &graphql.FieldContext{
  51838. Object: "Customer",
  51839. Field: field,
  51840. IsMethod: false,
  51841. IsResolver: false,
  51842. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  51843. return nil, errors.New("field of type CustomerProductSubscriberStatus does not have child fields")
  51844. },
  51845. }
  51846. return fc, nil
  51847. }
  51848. func (ec *executionContext) _Customer_smsMarketingConsent(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  51849. fc, err := ec.fieldContext_Customer_smsMarketingConsent(ctx, field)
  51850. if err != nil {
  51851. return graphql.Null
  51852. }
  51853. ctx = graphql.WithFieldContext(ctx, fc)
  51854. defer func() {
  51855. if r := recover(); r != nil {
  51856. ec.Error(ctx, ec.Recover(ctx, r))
  51857. ret = graphql.Null
  51858. }
  51859. }()
  51860. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  51861. ctx = rctx // use context from middleware stack in children
  51862. return obj.SmsMarketingConsent, nil
  51863. })
  51864. if err != nil {
  51865. ec.Error(ctx, err)
  51866. return graphql.Null
  51867. }
  51868. if resTmp == nil {
  51869. return graphql.Null
  51870. }
  51871. res := resTmp.(*CustomerSmsMarketingConsentState)
  51872. fc.Result = res
  51873. return ec.marshalOCustomerSmsMarketingConsentState2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerSmsMarketingConsentState(ctx, field.Selections, res)
  51874. }
  51875. func (ec *executionContext) fieldContext_Customer_smsMarketingConsent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  51876. fc = &graphql.FieldContext{
  51877. Object: "Customer",
  51878. Field: field,
  51879. IsMethod: false,
  51880. IsResolver: false,
  51881. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  51882. switch field.Name {
  51883. case "consentCollectedFrom":
  51884. return ec.fieldContext_CustomerSmsMarketingConsentState_consentCollectedFrom(ctx, field)
  51885. case "consentUpdatedAt":
  51886. return ec.fieldContext_CustomerSmsMarketingConsentState_consentUpdatedAt(ctx, field)
  51887. case "marketingOptInLevel":
  51888. return ec.fieldContext_CustomerSmsMarketingConsentState_marketingOptInLevel(ctx, field)
  51889. case "marketingState":
  51890. return ec.fieldContext_CustomerSmsMarketingConsentState_marketingState(ctx, field)
  51891. }
  51892. return nil, fmt.Errorf("no field named %q was found under type CustomerSmsMarketingConsentState", field.Name)
  51893. },
  51894. }
  51895. return fc, nil
  51896. }
  51897. func (ec *executionContext) _Customer_state(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  51898. fc, err := ec.fieldContext_Customer_state(ctx, field)
  51899. if err != nil {
  51900. return graphql.Null
  51901. }
  51902. ctx = graphql.WithFieldContext(ctx, fc)
  51903. defer func() {
  51904. if r := recover(); r != nil {
  51905. ec.Error(ctx, ec.Recover(ctx, r))
  51906. ret = graphql.Null
  51907. }
  51908. }()
  51909. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  51910. ctx = rctx // use context from middleware stack in children
  51911. return obj.State, nil
  51912. })
  51913. if err != nil {
  51914. ec.Error(ctx, err)
  51915. return graphql.Null
  51916. }
  51917. if resTmp == nil {
  51918. if !graphql.HasFieldError(ctx, fc) {
  51919. ec.Errorf(ctx, "must not be null")
  51920. }
  51921. return graphql.Null
  51922. }
  51923. res := resTmp.(CustomerState)
  51924. fc.Result = res
  51925. return ec.marshalNCustomerState2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerState(ctx, field.Selections, res)
  51926. }
  51927. func (ec *executionContext) fieldContext_Customer_state(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  51928. fc = &graphql.FieldContext{
  51929. Object: "Customer",
  51930. Field: field,
  51931. IsMethod: false,
  51932. IsResolver: false,
  51933. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  51934. return nil, errors.New("field of type CustomerState does not have child fields")
  51935. },
  51936. }
  51937. return fc, nil
  51938. }
  51939. func (ec *executionContext) _Customer_statistics(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  51940. fc, err := ec.fieldContext_Customer_statistics(ctx, field)
  51941. if err != nil {
  51942. return graphql.Null
  51943. }
  51944. ctx = graphql.WithFieldContext(ctx, fc)
  51945. defer func() {
  51946. if r := recover(); r != nil {
  51947. ec.Error(ctx, ec.Recover(ctx, r))
  51948. ret = graphql.Null
  51949. }
  51950. }()
  51951. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  51952. ctx = rctx // use context from middleware stack in children
  51953. return obj.Statistics, nil
  51954. })
  51955. if err != nil {
  51956. ec.Error(ctx, err)
  51957. return graphql.Null
  51958. }
  51959. if resTmp == nil {
  51960. if !graphql.HasFieldError(ctx, fc) {
  51961. ec.Errorf(ctx, "must not be null")
  51962. }
  51963. return graphql.Null
  51964. }
  51965. res := resTmp.(*CustomerStatistics)
  51966. fc.Result = res
  51967. return ec.marshalNCustomerStatistics2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerStatistics(ctx, field.Selections, res)
  51968. }
  51969. func (ec *executionContext) fieldContext_Customer_statistics(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  51970. fc = &graphql.FieldContext{
  51971. Object: "Customer",
  51972. Field: field,
  51973. IsMethod: false,
  51974. IsResolver: false,
  51975. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  51976. switch field.Name {
  51977. case "predictedSpendTier":
  51978. return ec.fieldContext_CustomerStatistics_predictedSpendTier(ctx, field)
  51979. }
  51980. return nil, fmt.Errorf("no field named %q was found under type CustomerStatistics", field.Name)
  51981. },
  51982. }
  51983. return fc, nil
  51984. }
  51985. func (ec *executionContext) _Customer_subscriptionContracts(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  51986. fc, err := ec.fieldContext_Customer_subscriptionContracts(ctx, field)
  51987. if err != nil {
  51988. return graphql.Null
  51989. }
  51990. ctx = graphql.WithFieldContext(ctx, fc)
  51991. defer func() {
  51992. if r := recover(); r != nil {
  51993. ec.Error(ctx, ec.Recover(ctx, r))
  51994. ret = graphql.Null
  51995. }
  51996. }()
  51997. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  51998. ctx = rctx // use context from middleware stack in children
  51999. return obj.SubscriptionContracts, nil
  52000. })
  52001. if err != nil {
  52002. ec.Error(ctx, err)
  52003. return graphql.Null
  52004. }
  52005. if resTmp == nil {
  52006. if !graphql.HasFieldError(ctx, fc) {
  52007. ec.Errorf(ctx, "must not be null")
  52008. }
  52009. return graphql.Null
  52010. }
  52011. res := resTmp.(*SubscriptionContractConnection)
  52012. fc.Result = res
  52013. return ec.marshalNSubscriptionContractConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionContractConnection(ctx, field.Selections, res)
  52014. }
  52015. func (ec *executionContext) fieldContext_Customer_subscriptionContracts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  52016. fc = &graphql.FieldContext{
  52017. Object: "Customer",
  52018. Field: field,
  52019. IsMethod: false,
  52020. IsResolver: false,
  52021. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  52022. switch field.Name {
  52023. case "edges":
  52024. return ec.fieldContext_SubscriptionContractConnection_edges(ctx, field)
  52025. case "nodes":
  52026. return ec.fieldContext_SubscriptionContractConnection_nodes(ctx, field)
  52027. case "pageInfo":
  52028. return ec.fieldContext_SubscriptionContractConnection_pageInfo(ctx, field)
  52029. }
  52030. return nil, fmt.Errorf("no field named %q was found under type SubscriptionContractConnection", field.Name)
  52031. },
  52032. }
  52033. defer func() {
  52034. if r := recover(); r != nil {
  52035. err = ec.Recover(ctx, r)
  52036. ec.Error(ctx, err)
  52037. }
  52038. }()
  52039. ctx = graphql.WithFieldContext(ctx, fc)
  52040. if fc.Args, err = ec.field_Customer_subscriptionContracts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  52041. ec.Error(ctx, err)
  52042. return
  52043. }
  52044. return fc, nil
  52045. }
  52046. func (ec *executionContext) _Customer_tags(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  52047. fc, err := ec.fieldContext_Customer_tags(ctx, field)
  52048. if err != nil {
  52049. return graphql.Null
  52050. }
  52051. ctx = graphql.WithFieldContext(ctx, fc)
  52052. defer func() {
  52053. if r := recover(); r != nil {
  52054. ec.Error(ctx, ec.Recover(ctx, r))
  52055. ret = graphql.Null
  52056. }
  52057. }()
  52058. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  52059. ctx = rctx // use context from middleware stack in children
  52060. return obj.Tags, nil
  52061. })
  52062. if err != nil {
  52063. ec.Error(ctx, err)
  52064. return graphql.Null
  52065. }
  52066. if resTmp == nil {
  52067. if !graphql.HasFieldError(ctx, fc) {
  52068. ec.Errorf(ctx, "must not be null")
  52069. }
  52070. return graphql.Null
  52071. }
  52072. res := resTmp.([]string)
  52073. fc.Result = res
  52074. return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
  52075. }
  52076. func (ec *executionContext) fieldContext_Customer_tags(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  52077. fc = &graphql.FieldContext{
  52078. Object: "Customer",
  52079. Field: field,
  52080. IsMethod: false,
  52081. IsResolver: false,
  52082. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  52083. return nil, errors.New("field of type String does not have child fields")
  52084. },
  52085. }
  52086. return fc, nil
  52087. }
  52088. func (ec *executionContext) _Customer_taxExempt(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  52089. fc, err := ec.fieldContext_Customer_taxExempt(ctx, field)
  52090. if err != nil {
  52091. return graphql.Null
  52092. }
  52093. ctx = graphql.WithFieldContext(ctx, fc)
  52094. defer func() {
  52095. if r := recover(); r != nil {
  52096. ec.Error(ctx, ec.Recover(ctx, r))
  52097. ret = graphql.Null
  52098. }
  52099. }()
  52100. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  52101. ctx = rctx // use context from middleware stack in children
  52102. return obj.TaxExempt, nil
  52103. })
  52104. if err != nil {
  52105. ec.Error(ctx, err)
  52106. return graphql.Null
  52107. }
  52108. if resTmp == nil {
  52109. if !graphql.HasFieldError(ctx, fc) {
  52110. ec.Errorf(ctx, "must not be null")
  52111. }
  52112. return graphql.Null
  52113. }
  52114. res := resTmp.(bool)
  52115. fc.Result = res
  52116. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  52117. }
  52118. func (ec *executionContext) fieldContext_Customer_taxExempt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  52119. fc = &graphql.FieldContext{
  52120. Object: "Customer",
  52121. Field: field,
  52122. IsMethod: false,
  52123. IsResolver: false,
  52124. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  52125. return nil, errors.New("field of type Boolean does not have child fields")
  52126. },
  52127. }
  52128. return fc, nil
  52129. }
  52130. func (ec *executionContext) _Customer_taxExemptions(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  52131. fc, err := ec.fieldContext_Customer_taxExemptions(ctx, field)
  52132. if err != nil {
  52133. return graphql.Null
  52134. }
  52135. ctx = graphql.WithFieldContext(ctx, fc)
  52136. defer func() {
  52137. if r := recover(); r != nil {
  52138. ec.Error(ctx, ec.Recover(ctx, r))
  52139. ret = graphql.Null
  52140. }
  52141. }()
  52142. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  52143. ctx = rctx // use context from middleware stack in children
  52144. return obj.TaxExemptions, nil
  52145. })
  52146. if err != nil {
  52147. ec.Error(ctx, err)
  52148. return graphql.Null
  52149. }
  52150. if resTmp == nil {
  52151. if !graphql.HasFieldError(ctx, fc) {
  52152. ec.Errorf(ctx, "must not be null")
  52153. }
  52154. return graphql.Null
  52155. }
  52156. res := resTmp.([]TaxExemption)
  52157. fc.Result = res
  52158. return ec.marshalNTaxExemption2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐTaxExemptionᚄ(ctx, field.Selections, res)
  52159. }
  52160. func (ec *executionContext) fieldContext_Customer_taxExemptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  52161. fc = &graphql.FieldContext{
  52162. Object: "Customer",
  52163. Field: field,
  52164. IsMethod: false,
  52165. IsResolver: false,
  52166. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  52167. return nil, errors.New("field of type TaxExemption does not have child fields")
  52168. },
  52169. }
  52170. return fc, nil
  52171. }
  52172. func (ec *executionContext) _Customer_unsubscribeUrl(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  52173. fc, err := ec.fieldContext_Customer_unsubscribeUrl(ctx, field)
  52174. if err != nil {
  52175. return graphql.Null
  52176. }
  52177. ctx = graphql.WithFieldContext(ctx, fc)
  52178. defer func() {
  52179. if r := recover(); r != nil {
  52180. ec.Error(ctx, ec.Recover(ctx, r))
  52181. ret = graphql.Null
  52182. }
  52183. }()
  52184. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  52185. ctx = rctx // use context from middleware stack in children
  52186. return obj.UnsubscribeURL, nil
  52187. })
  52188. if err != nil {
  52189. ec.Error(ctx, err)
  52190. return graphql.Null
  52191. }
  52192. if resTmp == nil {
  52193. if !graphql.HasFieldError(ctx, fc) {
  52194. ec.Errorf(ctx, "must not be null")
  52195. }
  52196. return graphql.Null
  52197. }
  52198. res := resTmp.(string)
  52199. fc.Result = res
  52200. return ec.marshalNURL2string(ctx, field.Selections, res)
  52201. }
  52202. func (ec *executionContext) fieldContext_Customer_unsubscribeUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  52203. fc = &graphql.FieldContext{
  52204. Object: "Customer",
  52205. Field: field,
  52206. IsMethod: false,
  52207. IsResolver: false,
  52208. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  52209. return nil, errors.New("field of type URL does not have child fields")
  52210. },
  52211. }
  52212. return fc, nil
  52213. }
  52214. func (ec *executionContext) _Customer_updatedAt(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  52215. fc, err := ec.fieldContext_Customer_updatedAt(ctx, field)
  52216. if err != nil {
  52217. return graphql.Null
  52218. }
  52219. ctx = graphql.WithFieldContext(ctx, fc)
  52220. defer func() {
  52221. if r := recover(); r != nil {
  52222. ec.Error(ctx, ec.Recover(ctx, r))
  52223. ret = graphql.Null
  52224. }
  52225. }()
  52226. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  52227. ctx = rctx // use context from middleware stack in children
  52228. return obj.UpdatedAt, nil
  52229. })
  52230. if err != nil {
  52231. ec.Error(ctx, err)
  52232. return graphql.Null
  52233. }
  52234. if resTmp == nil {
  52235. if !graphql.HasFieldError(ctx, fc) {
  52236. ec.Errorf(ctx, "must not be null")
  52237. }
  52238. return graphql.Null
  52239. }
  52240. res := resTmp.(string)
  52241. fc.Result = res
  52242. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  52243. }
  52244. func (ec *executionContext) fieldContext_Customer_updatedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  52245. fc = &graphql.FieldContext{
  52246. Object: "Customer",
  52247. Field: field,
  52248. IsMethod: false,
  52249. IsResolver: false,
  52250. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  52251. return nil, errors.New("field of type DateTime does not have child fields")
  52252. },
  52253. }
  52254. return fc, nil
  52255. }
  52256. func (ec *executionContext) _Customer_validEmailAddress(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  52257. fc, err := ec.fieldContext_Customer_validEmailAddress(ctx, field)
  52258. if err != nil {
  52259. return graphql.Null
  52260. }
  52261. ctx = graphql.WithFieldContext(ctx, fc)
  52262. defer func() {
  52263. if r := recover(); r != nil {
  52264. ec.Error(ctx, ec.Recover(ctx, r))
  52265. ret = graphql.Null
  52266. }
  52267. }()
  52268. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  52269. ctx = rctx // use context from middleware stack in children
  52270. return obj.ValidEmailAddress, nil
  52271. })
  52272. if err != nil {
  52273. ec.Error(ctx, err)
  52274. return graphql.Null
  52275. }
  52276. if resTmp == nil {
  52277. if !graphql.HasFieldError(ctx, fc) {
  52278. ec.Errorf(ctx, "must not be null")
  52279. }
  52280. return graphql.Null
  52281. }
  52282. res := resTmp.(bool)
  52283. fc.Result = res
  52284. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  52285. }
  52286. func (ec *executionContext) fieldContext_Customer_validEmailAddress(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  52287. fc = &graphql.FieldContext{
  52288. Object: "Customer",
  52289. Field: field,
  52290. IsMethod: false,
  52291. IsResolver: false,
  52292. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  52293. return nil, errors.New("field of type Boolean does not have child fields")
  52294. },
  52295. }
  52296. return fc, nil
  52297. }
  52298. func (ec *executionContext) _Customer_verifiedEmail(ctx context.Context, field graphql.CollectedField, obj *Customer) (ret graphql.Marshaler) {
  52299. fc, err := ec.fieldContext_Customer_verifiedEmail(ctx, field)
  52300. if err != nil {
  52301. return graphql.Null
  52302. }
  52303. ctx = graphql.WithFieldContext(ctx, fc)
  52304. defer func() {
  52305. if r := recover(); r != nil {
  52306. ec.Error(ctx, ec.Recover(ctx, r))
  52307. ret = graphql.Null
  52308. }
  52309. }()
  52310. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  52311. ctx = rctx // use context from middleware stack in children
  52312. return obj.VerifiedEmail, nil
  52313. })
  52314. if err != nil {
  52315. ec.Error(ctx, err)
  52316. return graphql.Null
  52317. }
  52318. if resTmp == nil {
  52319. if !graphql.HasFieldError(ctx, fc) {
  52320. ec.Errorf(ctx, "must not be null")
  52321. }
  52322. return graphql.Null
  52323. }
  52324. res := resTmp.(bool)
  52325. fc.Result = res
  52326. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  52327. }
  52328. func (ec *executionContext) fieldContext_Customer_verifiedEmail(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  52329. fc = &graphql.FieldContext{
  52330. Object: "Customer",
  52331. Field: field,
  52332. IsMethod: false,
  52333. IsResolver: false,
  52334. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  52335. return nil, errors.New("field of type Boolean does not have child fields")
  52336. },
  52337. }
  52338. return fc, nil
  52339. }
  52340. func (ec *executionContext) _CustomerCreatePayload_customer(ctx context.Context, field graphql.CollectedField, obj *CustomerCreatePayload) (ret graphql.Marshaler) {
  52341. fc, err := ec.fieldContext_CustomerCreatePayload_customer(ctx, field)
  52342. if err != nil {
  52343. return graphql.Null
  52344. }
  52345. ctx = graphql.WithFieldContext(ctx, fc)
  52346. defer func() {
  52347. if r := recover(); r != nil {
  52348. ec.Error(ctx, ec.Recover(ctx, r))
  52349. ret = graphql.Null
  52350. }
  52351. }()
  52352. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  52353. ctx = rctx // use context from middleware stack in children
  52354. return obj.Customer, nil
  52355. })
  52356. if err != nil {
  52357. ec.Error(ctx, err)
  52358. return graphql.Null
  52359. }
  52360. if resTmp == nil {
  52361. return graphql.Null
  52362. }
  52363. res := resTmp.(*Customer)
  52364. fc.Result = res
  52365. return ec.marshalOCustomer2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomer(ctx, field.Selections, res)
  52366. }
  52367. func (ec *executionContext) fieldContext_CustomerCreatePayload_customer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  52368. fc = &graphql.FieldContext{
  52369. Object: "CustomerCreatePayload",
  52370. Field: field,
  52371. IsMethod: false,
  52372. IsResolver: false,
  52373. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  52374. switch field.Name {
  52375. case "addresses":
  52376. return ec.fieldContext_Customer_addresses(ctx, field)
  52377. case "amountSpent":
  52378. return ec.fieldContext_Customer_amountSpent(ctx, field)
  52379. case "averageOrderAmountV2":
  52380. return ec.fieldContext_Customer_averageOrderAmountV2(ctx, field)
  52381. case "canDelete":
  52382. return ec.fieldContext_Customer_canDelete(ctx, field)
  52383. case "companyContactProfiles":
  52384. return ec.fieldContext_Customer_companyContactProfiles(ctx, field)
  52385. case "createdAt":
  52386. return ec.fieldContext_Customer_createdAt(ctx, field)
  52387. case "defaultAddress":
  52388. return ec.fieldContext_Customer_defaultAddress(ctx, field)
  52389. case "displayName":
  52390. return ec.fieldContext_Customer_displayName(ctx, field)
  52391. case "email":
  52392. return ec.fieldContext_Customer_email(ctx, field)
  52393. case "emailMarketingConsent":
  52394. return ec.fieldContext_Customer_emailMarketingConsent(ctx, field)
  52395. case "events":
  52396. return ec.fieldContext_Customer_events(ctx, field)
  52397. case "firstName":
  52398. return ec.fieldContext_Customer_firstName(ctx, field)
  52399. case "hasTimelineComment":
  52400. return ec.fieldContext_Customer_hasTimelineComment(ctx, field)
  52401. case "id":
  52402. return ec.fieldContext_Customer_id(ctx, field)
  52403. case "image":
  52404. return ec.fieldContext_Customer_image(ctx, field)
  52405. case "lastName":
  52406. return ec.fieldContext_Customer_lastName(ctx, field)
  52407. case "lastOrder":
  52408. return ec.fieldContext_Customer_lastOrder(ctx, field)
  52409. case "legacyResourceId":
  52410. return ec.fieldContext_Customer_legacyResourceId(ctx, field)
  52411. case "lifetimeDuration":
  52412. return ec.fieldContext_Customer_lifetimeDuration(ctx, field)
  52413. case "locale":
  52414. return ec.fieldContext_Customer_locale(ctx, field)
  52415. case "market":
  52416. return ec.fieldContext_Customer_market(ctx, field)
  52417. case "metafield":
  52418. return ec.fieldContext_Customer_metafield(ctx, field)
  52419. case "metafieldDefinitions":
  52420. return ec.fieldContext_Customer_metafieldDefinitions(ctx, field)
  52421. case "metafields":
  52422. return ec.fieldContext_Customer_metafields(ctx, field)
  52423. case "multipassIdentifier":
  52424. return ec.fieldContext_Customer_multipassIdentifier(ctx, field)
  52425. case "note":
  52426. return ec.fieldContext_Customer_note(ctx, field)
  52427. case "numberOfOrders":
  52428. return ec.fieldContext_Customer_numberOfOrders(ctx, field)
  52429. case "orders":
  52430. return ec.fieldContext_Customer_orders(ctx, field)
  52431. case "paymentMethods":
  52432. return ec.fieldContext_Customer_paymentMethods(ctx, field)
  52433. case "phone":
  52434. return ec.fieldContext_Customer_phone(ctx, field)
  52435. case "privateMetafield":
  52436. return ec.fieldContext_Customer_privateMetafield(ctx, field)
  52437. case "privateMetafields":
  52438. return ec.fieldContext_Customer_privateMetafields(ctx, field)
  52439. case "productSubscriberStatus":
  52440. return ec.fieldContext_Customer_productSubscriberStatus(ctx, field)
  52441. case "smsMarketingConsent":
  52442. return ec.fieldContext_Customer_smsMarketingConsent(ctx, field)
  52443. case "state":
  52444. return ec.fieldContext_Customer_state(ctx, field)
  52445. case "statistics":
  52446. return ec.fieldContext_Customer_statistics(ctx, field)
  52447. case "subscriptionContracts":
  52448. return ec.fieldContext_Customer_subscriptionContracts(ctx, field)
  52449. case "tags":
  52450. return ec.fieldContext_Customer_tags(ctx, field)
  52451. case "taxExempt":
  52452. return ec.fieldContext_Customer_taxExempt(ctx, field)
  52453. case "taxExemptions":
  52454. return ec.fieldContext_Customer_taxExemptions(ctx, field)
  52455. case "unsubscribeUrl":
  52456. return ec.fieldContext_Customer_unsubscribeUrl(ctx, field)
  52457. case "updatedAt":
  52458. return ec.fieldContext_Customer_updatedAt(ctx, field)
  52459. case "validEmailAddress":
  52460. return ec.fieldContext_Customer_validEmailAddress(ctx, field)
  52461. case "verifiedEmail":
  52462. return ec.fieldContext_Customer_verifiedEmail(ctx, field)
  52463. }
  52464. return nil, fmt.Errorf("no field named %q was found under type Customer", field.Name)
  52465. },
  52466. }
  52467. return fc, nil
  52468. }
  52469. func (ec *executionContext) _CustomerCreatePayload_userErrors(ctx context.Context, field graphql.CollectedField, obj *CustomerCreatePayload) (ret graphql.Marshaler) {
  52470. fc, err := ec.fieldContext_CustomerCreatePayload_userErrors(ctx, field)
  52471. if err != nil {
  52472. return graphql.Null
  52473. }
  52474. ctx = graphql.WithFieldContext(ctx, fc)
  52475. defer func() {
  52476. if r := recover(); r != nil {
  52477. ec.Error(ctx, ec.Recover(ctx, r))
  52478. ret = graphql.Null
  52479. }
  52480. }()
  52481. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  52482. ctx = rctx // use context from middleware stack in children
  52483. return obj.UserErrors, nil
  52484. })
  52485. if err != nil {
  52486. ec.Error(ctx, err)
  52487. return graphql.Null
  52488. }
  52489. if resTmp == nil {
  52490. if !graphql.HasFieldError(ctx, fc) {
  52491. ec.Errorf(ctx, "must not be null")
  52492. }
  52493. return graphql.Null
  52494. }
  52495. res := resTmp.([]*UserError)
  52496. fc.Result = res
  52497. return ec.marshalNUserError2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐUserErrorᚄ(ctx, field.Selections, res)
  52498. }
  52499. func (ec *executionContext) fieldContext_CustomerCreatePayload_userErrors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  52500. fc = &graphql.FieldContext{
  52501. Object: "CustomerCreatePayload",
  52502. Field: field,
  52503. IsMethod: false,
  52504. IsResolver: false,
  52505. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  52506. switch field.Name {
  52507. case "field":
  52508. return ec.fieldContext_UserError_field(ctx, field)
  52509. case "message":
  52510. return ec.fieldContext_UserError_message(ctx, field)
  52511. }
  52512. return nil, fmt.Errorf("no field named %q was found under type UserError", field.Name)
  52513. },
  52514. }
  52515. return fc, nil
  52516. }
  52517. func (ec *executionContext) _CustomerCreditCard_billingAddress(ctx context.Context, field graphql.CollectedField, obj *CustomerCreditCard) (ret graphql.Marshaler) {
  52518. fc, err := ec.fieldContext_CustomerCreditCard_billingAddress(ctx, field)
  52519. if err != nil {
  52520. return graphql.Null
  52521. }
  52522. ctx = graphql.WithFieldContext(ctx, fc)
  52523. defer func() {
  52524. if r := recover(); r != nil {
  52525. ec.Error(ctx, ec.Recover(ctx, r))
  52526. ret = graphql.Null
  52527. }
  52528. }()
  52529. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  52530. ctx = rctx // use context from middleware stack in children
  52531. return obj.BillingAddress, nil
  52532. })
  52533. if err != nil {
  52534. ec.Error(ctx, err)
  52535. return graphql.Null
  52536. }
  52537. if resTmp == nil {
  52538. return graphql.Null
  52539. }
  52540. res := resTmp.(*CustomerCreditCardBillingAddress)
  52541. fc.Result = res
  52542. return ec.marshalOCustomerCreditCardBillingAddress2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerCreditCardBillingAddress(ctx, field.Selections, res)
  52543. }
  52544. func (ec *executionContext) fieldContext_CustomerCreditCard_billingAddress(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  52545. fc = &graphql.FieldContext{
  52546. Object: "CustomerCreditCard",
  52547. Field: field,
  52548. IsMethod: false,
  52549. IsResolver: false,
  52550. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  52551. switch field.Name {
  52552. case "address1":
  52553. return ec.fieldContext_CustomerCreditCardBillingAddress_address1(ctx, field)
  52554. case "city":
  52555. return ec.fieldContext_CustomerCreditCardBillingAddress_city(ctx, field)
  52556. case "country":
  52557. return ec.fieldContext_CustomerCreditCardBillingAddress_country(ctx, field)
  52558. case "countryCode":
  52559. return ec.fieldContext_CustomerCreditCardBillingAddress_countryCode(ctx, field)
  52560. case "province":
  52561. return ec.fieldContext_CustomerCreditCardBillingAddress_province(ctx, field)
  52562. case "provinceCode":
  52563. return ec.fieldContext_CustomerCreditCardBillingAddress_provinceCode(ctx, field)
  52564. case "zip":
  52565. return ec.fieldContext_CustomerCreditCardBillingAddress_zip(ctx, field)
  52566. }
  52567. return nil, fmt.Errorf("no field named %q was found under type CustomerCreditCardBillingAddress", field.Name)
  52568. },
  52569. }
  52570. return fc, nil
  52571. }
  52572. func (ec *executionContext) _CustomerCreditCard_brand(ctx context.Context, field graphql.CollectedField, obj *CustomerCreditCard) (ret graphql.Marshaler) {
  52573. fc, err := ec.fieldContext_CustomerCreditCard_brand(ctx, field)
  52574. if err != nil {
  52575. return graphql.Null
  52576. }
  52577. ctx = graphql.WithFieldContext(ctx, fc)
  52578. defer func() {
  52579. if r := recover(); r != nil {
  52580. ec.Error(ctx, ec.Recover(ctx, r))
  52581. ret = graphql.Null
  52582. }
  52583. }()
  52584. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  52585. ctx = rctx // use context from middleware stack in children
  52586. return obj.Brand, nil
  52587. })
  52588. if err != nil {
  52589. ec.Error(ctx, err)
  52590. return graphql.Null
  52591. }
  52592. if resTmp == nil {
  52593. if !graphql.HasFieldError(ctx, fc) {
  52594. ec.Errorf(ctx, "must not be null")
  52595. }
  52596. return graphql.Null
  52597. }
  52598. res := resTmp.(string)
  52599. fc.Result = res
  52600. return ec.marshalNString2string(ctx, field.Selections, res)
  52601. }
  52602. func (ec *executionContext) fieldContext_CustomerCreditCard_brand(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  52603. fc = &graphql.FieldContext{
  52604. Object: "CustomerCreditCard",
  52605. Field: field,
  52606. IsMethod: false,
  52607. IsResolver: false,
  52608. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  52609. return nil, errors.New("field of type String does not have child fields")
  52610. },
  52611. }
  52612. return fc, nil
  52613. }
  52614. func (ec *executionContext) _CustomerCreditCard_expiresSoon(ctx context.Context, field graphql.CollectedField, obj *CustomerCreditCard) (ret graphql.Marshaler) {
  52615. fc, err := ec.fieldContext_CustomerCreditCard_expiresSoon(ctx, field)
  52616. if err != nil {
  52617. return graphql.Null
  52618. }
  52619. ctx = graphql.WithFieldContext(ctx, fc)
  52620. defer func() {
  52621. if r := recover(); r != nil {
  52622. ec.Error(ctx, ec.Recover(ctx, r))
  52623. ret = graphql.Null
  52624. }
  52625. }()
  52626. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  52627. ctx = rctx // use context from middleware stack in children
  52628. return obj.ExpiresSoon, nil
  52629. })
  52630. if err != nil {
  52631. ec.Error(ctx, err)
  52632. return graphql.Null
  52633. }
  52634. if resTmp == nil {
  52635. if !graphql.HasFieldError(ctx, fc) {
  52636. ec.Errorf(ctx, "must not be null")
  52637. }
  52638. return graphql.Null
  52639. }
  52640. res := resTmp.(bool)
  52641. fc.Result = res
  52642. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  52643. }
  52644. func (ec *executionContext) fieldContext_CustomerCreditCard_expiresSoon(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  52645. fc = &graphql.FieldContext{
  52646. Object: "CustomerCreditCard",
  52647. Field: field,
  52648. IsMethod: false,
  52649. IsResolver: false,
  52650. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  52651. return nil, errors.New("field of type Boolean does not have child fields")
  52652. },
  52653. }
  52654. return fc, nil
  52655. }
  52656. func (ec *executionContext) _CustomerCreditCard_expiryMonth(ctx context.Context, field graphql.CollectedField, obj *CustomerCreditCard) (ret graphql.Marshaler) {
  52657. fc, err := ec.fieldContext_CustomerCreditCard_expiryMonth(ctx, field)
  52658. if err != nil {
  52659. return graphql.Null
  52660. }
  52661. ctx = graphql.WithFieldContext(ctx, fc)
  52662. defer func() {
  52663. if r := recover(); r != nil {
  52664. ec.Error(ctx, ec.Recover(ctx, r))
  52665. ret = graphql.Null
  52666. }
  52667. }()
  52668. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  52669. ctx = rctx // use context from middleware stack in children
  52670. return obj.ExpiryMonth, nil
  52671. })
  52672. if err != nil {
  52673. ec.Error(ctx, err)
  52674. return graphql.Null
  52675. }
  52676. if resTmp == nil {
  52677. if !graphql.HasFieldError(ctx, fc) {
  52678. ec.Errorf(ctx, "must not be null")
  52679. }
  52680. return graphql.Null
  52681. }
  52682. res := resTmp.(int)
  52683. fc.Result = res
  52684. return ec.marshalNInt2int(ctx, field.Selections, res)
  52685. }
  52686. func (ec *executionContext) fieldContext_CustomerCreditCard_expiryMonth(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  52687. fc = &graphql.FieldContext{
  52688. Object: "CustomerCreditCard",
  52689. Field: field,
  52690. IsMethod: false,
  52691. IsResolver: false,
  52692. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  52693. return nil, errors.New("field of type Int does not have child fields")
  52694. },
  52695. }
  52696. return fc, nil
  52697. }
  52698. func (ec *executionContext) _CustomerCreditCard_expiryYear(ctx context.Context, field graphql.CollectedField, obj *CustomerCreditCard) (ret graphql.Marshaler) {
  52699. fc, err := ec.fieldContext_CustomerCreditCard_expiryYear(ctx, field)
  52700. if err != nil {
  52701. return graphql.Null
  52702. }
  52703. ctx = graphql.WithFieldContext(ctx, fc)
  52704. defer func() {
  52705. if r := recover(); r != nil {
  52706. ec.Error(ctx, ec.Recover(ctx, r))
  52707. ret = graphql.Null
  52708. }
  52709. }()
  52710. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  52711. ctx = rctx // use context from middleware stack in children
  52712. return obj.ExpiryYear, nil
  52713. })
  52714. if err != nil {
  52715. ec.Error(ctx, err)
  52716. return graphql.Null
  52717. }
  52718. if resTmp == nil {
  52719. if !graphql.HasFieldError(ctx, fc) {
  52720. ec.Errorf(ctx, "must not be null")
  52721. }
  52722. return graphql.Null
  52723. }
  52724. res := resTmp.(int)
  52725. fc.Result = res
  52726. return ec.marshalNInt2int(ctx, field.Selections, res)
  52727. }
  52728. func (ec *executionContext) fieldContext_CustomerCreditCard_expiryYear(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  52729. fc = &graphql.FieldContext{
  52730. Object: "CustomerCreditCard",
  52731. Field: field,
  52732. IsMethod: false,
  52733. IsResolver: false,
  52734. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  52735. return nil, errors.New("field of type Int does not have child fields")
  52736. },
  52737. }
  52738. return fc, nil
  52739. }
  52740. func (ec *executionContext) _CustomerCreditCard_firstDigits(ctx context.Context, field graphql.CollectedField, obj *CustomerCreditCard) (ret graphql.Marshaler) {
  52741. fc, err := ec.fieldContext_CustomerCreditCard_firstDigits(ctx, field)
  52742. if err != nil {
  52743. return graphql.Null
  52744. }
  52745. ctx = graphql.WithFieldContext(ctx, fc)
  52746. defer func() {
  52747. if r := recover(); r != nil {
  52748. ec.Error(ctx, ec.Recover(ctx, r))
  52749. ret = graphql.Null
  52750. }
  52751. }()
  52752. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  52753. ctx = rctx // use context from middleware stack in children
  52754. return obj.FirstDigits, nil
  52755. })
  52756. if err != nil {
  52757. ec.Error(ctx, err)
  52758. return graphql.Null
  52759. }
  52760. if resTmp == nil {
  52761. return graphql.Null
  52762. }
  52763. res := resTmp.(*string)
  52764. fc.Result = res
  52765. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  52766. }
  52767. func (ec *executionContext) fieldContext_CustomerCreditCard_firstDigits(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  52768. fc = &graphql.FieldContext{
  52769. Object: "CustomerCreditCard",
  52770. Field: field,
  52771. IsMethod: false,
  52772. IsResolver: false,
  52773. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  52774. return nil, errors.New("field of type String does not have child fields")
  52775. },
  52776. }
  52777. return fc, nil
  52778. }
  52779. func (ec *executionContext) _CustomerCreditCard_isRevocable(ctx context.Context, field graphql.CollectedField, obj *CustomerCreditCard) (ret graphql.Marshaler) {
  52780. fc, err := ec.fieldContext_CustomerCreditCard_isRevocable(ctx, field)
  52781. if err != nil {
  52782. return graphql.Null
  52783. }
  52784. ctx = graphql.WithFieldContext(ctx, fc)
  52785. defer func() {
  52786. if r := recover(); r != nil {
  52787. ec.Error(ctx, ec.Recover(ctx, r))
  52788. ret = graphql.Null
  52789. }
  52790. }()
  52791. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  52792. ctx = rctx // use context from middleware stack in children
  52793. return obj.IsRevocable, nil
  52794. })
  52795. if err != nil {
  52796. ec.Error(ctx, err)
  52797. return graphql.Null
  52798. }
  52799. if resTmp == nil {
  52800. if !graphql.HasFieldError(ctx, fc) {
  52801. ec.Errorf(ctx, "must not be null")
  52802. }
  52803. return graphql.Null
  52804. }
  52805. res := resTmp.(bool)
  52806. fc.Result = res
  52807. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  52808. }
  52809. func (ec *executionContext) fieldContext_CustomerCreditCard_isRevocable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  52810. fc = &graphql.FieldContext{
  52811. Object: "CustomerCreditCard",
  52812. Field: field,
  52813. IsMethod: false,
  52814. IsResolver: false,
  52815. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  52816. return nil, errors.New("field of type Boolean does not have child fields")
  52817. },
  52818. }
  52819. return fc, nil
  52820. }
  52821. func (ec *executionContext) _CustomerCreditCard_lastDigits(ctx context.Context, field graphql.CollectedField, obj *CustomerCreditCard) (ret graphql.Marshaler) {
  52822. fc, err := ec.fieldContext_CustomerCreditCard_lastDigits(ctx, field)
  52823. if err != nil {
  52824. return graphql.Null
  52825. }
  52826. ctx = graphql.WithFieldContext(ctx, fc)
  52827. defer func() {
  52828. if r := recover(); r != nil {
  52829. ec.Error(ctx, ec.Recover(ctx, r))
  52830. ret = graphql.Null
  52831. }
  52832. }()
  52833. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  52834. ctx = rctx // use context from middleware stack in children
  52835. return obj.LastDigits, nil
  52836. })
  52837. if err != nil {
  52838. ec.Error(ctx, err)
  52839. return graphql.Null
  52840. }
  52841. if resTmp == nil {
  52842. if !graphql.HasFieldError(ctx, fc) {
  52843. ec.Errorf(ctx, "must not be null")
  52844. }
  52845. return graphql.Null
  52846. }
  52847. res := resTmp.(string)
  52848. fc.Result = res
  52849. return ec.marshalNString2string(ctx, field.Selections, res)
  52850. }
  52851. func (ec *executionContext) fieldContext_CustomerCreditCard_lastDigits(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  52852. fc = &graphql.FieldContext{
  52853. Object: "CustomerCreditCard",
  52854. Field: field,
  52855. IsMethod: false,
  52856. IsResolver: false,
  52857. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  52858. return nil, errors.New("field of type String does not have child fields")
  52859. },
  52860. }
  52861. return fc, nil
  52862. }
  52863. func (ec *executionContext) _CustomerCreditCard_maskedNumber(ctx context.Context, field graphql.CollectedField, obj *CustomerCreditCard) (ret graphql.Marshaler) {
  52864. fc, err := ec.fieldContext_CustomerCreditCard_maskedNumber(ctx, field)
  52865. if err != nil {
  52866. return graphql.Null
  52867. }
  52868. ctx = graphql.WithFieldContext(ctx, fc)
  52869. defer func() {
  52870. if r := recover(); r != nil {
  52871. ec.Error(ctx, ec.Recover(ctx, r))
  52872. ret = graphql.Null
  52873. }
  52874. }()
  52875. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  52876. ctx = rctx // use context from middleware stack in children
  52877. return obj.MaskedNumber, nil
  52878. })
  52879. if err != nil {
  52880. ec.Error(ctx, err)
  52881. return graphql.Null
  52882. }
  52883. if resTmp == nil {
  52884. if !graphql.HasFieldError(ctx, fc) {
  52885. ec.Errorf(ctx, "must not be null")
  52886. }
  52887. return graphql.Null
  52888. }
  52889. res := resTmp.(string)
  52890. fc.Result = res
  52891. return ec.marshalNString2string(ctx, field.Selections, res)
  52892. }
  52893. func (ec *executionContext) fieldContext_CustomerCreditCard_maskedNumber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  52894. fc = &graphql.FieldContext{
  52895. Object: "CustomerCreditCard",
  52896. Field: field,
  52897. IsMethod: false,
  52898. IsResolver: false,
  52899. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  52900. return nil, errors.New("field of type String does not have child fields")
  52901. },
  52902. }
  52903. return fc, nil
  52904. }
  52905. func (ec *executionContext) _CustomerCreditCard_name(ctx context.Context, field graphql.CollectedField, obj *CustomerCreditCard) (ret graphql.Marshaler) {
  52906. fc, err := ec.fieldContext_CustomerCreditCard_name(ctx, field)
  52907. if err != nil {
  52908. return graphql.Null
  52909. }
  52910. ctx = graphql.WithFieldContext(ctx, fc)
  52911. defer func() {
  52912. if r := recover(); r != nil {
  52913. ec.Error(ctx, ec.Recover(ctx, r))
  52914. ret = graphql.Null
  52915. }
  52916. }()
  52917. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  52918. ctx = rctx // use context from middleware stack in children
  52919. return obj.Name, nil
  52920. })
  52921. if err != nil {
  52922. ec.Error(ctx, err)
  52923. return graphql.Null
  52924. }
  52925. if resTmp == nil {
  52926. if !graphql.HasFieldError(ctx, fc) {
  52927. ec.Errorf(ctx, "must not be null")
  52928. }
  52929. return graphql.Null
  52930. }
  52931. res := resTmp.(string)
  52932. fc.Result = res
  52933. return ec.marshalNString2string(ctx, field.Selections, res)
  52934. }
  52935. func (ec *executionContext) fieldContext_CustomerCreditCard_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  52936. fc = &graphql.FieldContext{
  52937. Object: "CustomerCreditCard",
  52938. Field: field,
  52939. IsMethod: false,
  52940. IsResolver: false,
  52941. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  52942. return nil, errors.New("field of type String does not have child fields")
  52943. },
  52944. }
  52945. return fc, nil
  52946. }
  52947. func (ec *executionContext) _CustomerCreditCard_source(ctx context.Context, field graphql.CollectedField, obj *CustomerCreditCard) (ret graphql.Marshaler) {
  52948. fc, err := ec.fieldContext_CustomerCreditCard_source(ctx, field)
  52949. if err != nil {
  52950. return graphql.Null
  52951. }
  52952. ctx = graphql.WithFieldContext(ctx, fc)
  52953. defer func() {
  52954. if r := recover(); r != nil {
  52955. ec.Error(ctx, ec.Recover(ctx, r))
  52956. ret = graphql.Null
  52957. }
  52958. }()
  52959. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  52960. ctx = rctx // use context from middleware stack in children
  52961. return obj.Source, nil
  52962. })
  52963. if err != nil {
  52964. ec.Error(ctx, err)
  52965. return graphql.Null
  52966. }
  52967. if resTmp == nil {
  52968. return graphql.Null
  52969. }
  52970. res := resTmp.(*string)
  52971. fc.Result = res
  52972. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  52973. }
  52974. func (ec *executionContext) fieldContext_CustomerCreditCard_source(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  52975. fc = &graphql.FieldContext{
  52976. Object: "CustomerCreditCard",
  52977. Field: field,
  52978. IsMethod: false,
  52979. IsResolver: false,
  52980. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  52981. return nil, errors.New("field of type String does not have child fields")
  52982. },
  52983. }
  52984. return fc, nil
  52985. }
  52986. func (ec *executionContext) _CustomerCreditCard_virtualLastDigits(ctx context.Context, field graphql.CollectedField, obj *CustomerCreditCard) (ret graphql.Marshaler) {
  52987. fc, err := ec.fieldContext_CustomerCreditCard_virtualLastDigits(ctx, field)
  52988. if err != nil {
  52989. return graphql.Null
  52990. }
  52991. ctx = graphql.WithFieldContext(ctx, fc)
  52992. defer func() {
  52993. if r := recover(); r != nil {
  52994. ec.Error(ctx, ec.Recover(ctx, r))
  52995. ret = graphql.Null
  52996. }
  52997. }()
  52998. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  52999. ctx = rctx // use context from middleware stack in children
  53000. return obj.VirtualLastDigits, nil
  53001. })
  53002. if err != nil {
  53003. ec.Error(ctx, err)
  53004. return graphql.Null
  53005. }
  53006. if resTmp == nil {
  53007. return graphql.Null
  53008. }
  53009. res := resTmp.(*string)
  53010. fc.Result = res
  53011. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  53012. }
  53013. func (ec *executionContext) fieldContext_CustomerCreditCard_virtualLastDigits(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  53014. fc = &graphql.FieldContext{
  53015. Object: "CustomerCreditCard",
  53016. Field: field,
  53017. IsMethod: false,
  53018. IsResolver: false,
  53019. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  53020. return nil, errors.New("field of type String does not have child fields")
  53021. },
  53022. }
  53023. return fc, nil
  53024. }
  53025. func (ec *executionContext) _CustomerCreditCardBillingAddress_address1(ctx context.Context, field graphql.CollectedField, obj *CustomerCreditCardBillingAddress) (ret graphql.Marshaler) {
  53026. fc, err := ec.fieldContext_CustomerCreditCardBillingAddress_address1(ctx, field)
  53027. if err != nil {
  53028. return graphql.Null
  53029. }
  53030. ctx = graphql.WithFieldContext(ctx, fc)
  53031. defer func() {
  53032. if r := recover(); r != nil {
  53033. ec.Error(ctx, ec.Recover(ctx, r))
  53034. ret = graphql.Null
  53035. }
  53036. }()
  53037. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  53038. ctx = rctx // use context from middleware stack in children
  53039. return obj.Address1, nil
  53040. })
  53041. if err != nil {
  53042. ec.Error(ctx, err)
  53043. return graphql.Null
  53044. }
  53045. if resTmp == nil {
  53046. return graphql.Null
  53047. }
  53048. res := resTmp.(*string)
  53049. fc.Result = res
  53050. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  53051. }
  53052. func (ec *executionContext) fieldContext_CustomerCreditCardBillingAddress_address1(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  53053. fc = &graphql.FieldContext{
  53054. Object: "CustomerCreditCardBillingAddress",
  53055. Field: field,
  53056. IsMethod: false,
  53057. IsResolver: false,
  53058. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  53059. return nil, errors.New("field of type String does not have child fields")
  53060. },
  53061. }
  53062. return fc, nil
  53063. }
  53064. func (ec *executionContext) _CustomerCreditCardBillingAddress_city(ctx context.Context, field graphql.CollectedField, obj *CustomerCreditCardBillingAddress) (ret graphql.Marshaler) {
  53065. fc, err := ec.fieldContext_CustomerCreditCardBillingAddress_city(ctx, field)
  53066. if err != nil {
  53067. return graphql.Null
  53068. }
  53069. ctx = graphql.WithFieldContext(ctx, fc)
  53070. defer func() {
  53071. if r := recover(); r != nil {
  53072. ec.Error(ctx, ec.Recover(ctx, r))
  53073. ret = graphql.Null
  53074. }
  53075. }()
  53076. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  53077. ctx = rctx // use context from middleware stack in children
  53078. return obj.City, nil
  53079. })
  53080. if err != nil {
  53081. ec.Error(ctx, err)
  53082. return graphql.Null
  53083. }
  53084. if resTmp == nil {
  53085. return graphql.Null
  53086. }
  53087. res := resTmp.(*string)
  53088. fc.Result = res
  53089. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  53090. }
  53091. func (ec *executionContext) fieldContext_CustomerCreditCardBillingAddress_city(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  53092. fc = &graphql.FieldContext{
  53093. Object: "CustomerCreditCardBillingAddress",
  53094. Field: field,
  53095. IsMethod: false,
  53096. IsResolver: false,
  53097. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  53098. return nil, errors.New("field of type String does not have child fields")
  53099. },
  53100. }
  53101. return fc, nil
  53102. }
  53103. func (ec *executionContext) _CustomerCreditCardBillingAddress_country(ctx context.Context, field graphql.CollectedField, obj *CustomerCreditCardBillingAddress) (ret graphql.Marshaler) {
  53104. fc, err := ec.fieldContext_CustomerCreditCardBillingAddress_country(ctx, field)
  53105. if err != nil {
  53106. return graphql.Null
  53107. }
  53108. ctx = graphql.WithFieldContext(ctx, fc)
  53109. defer func() {
  53110. if r := recover(); r != nil {
  53111. ec.Error(ctx, ec.Recover(ctx, r))
  53112. ret = graphql.Null
  53113. }
  53114. }()
  53115. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  53116. ctx = rctx // use context from middleware stack in children
  53117. return obj.Country, nil
  53118. })
  53119. if err != nil {
  53120. ec.Error(ctx, err)
  53121. return graphql.Null
  53122. }
  53123. if resTmp == nil {
  53124. return graphql.Null
  53125. }
  53126. res := resTmp.(*string)
  53127. fc.Result = res
  53128. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  53129. }
  53130. func (ec *executionContext) fieldContext_CustomerCreditCardBillingAddress_country(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  53131. fc = &graphql.FieldContext{
  53132. Object: "CustomerCreditCardBillingAddress",
  53133. Field: field,
  53134. IsMethod: false,
  53135. IsResolver: false,
  53136. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  53137. return nil, errors.New("field of type String does not have child fields")
  53138. },
  53139. }
  53140. return fc, nil
  53141. }
  53142. func (ec *executionContext) _CustomerCreditCardBillingAddress_countryCode(ctx context.Context, field graphql.CollectedField, obj *CustomerCreditCardBillingAddress) (ret graphql.Marshaler) {
  53143. fc, err := ec.fieldContext_CustomerCreditCardBillingAddress_countryCode(ctx, field)
  53144. if err != nil {
  53145. return graphql.Null
  53146. }
  53147. ctx = graphql.WithFieldContext(ctx, fc)
  53148. defer func() {
  53149. if r := recover(); r != nil {
  53150. ec.Error(ctx, ec.Recover(ctx, r))
  53151. ret = graphql.Null
  53152. }
  53153. }()
  53154. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  53155. ctx = rctx // use context from middleware stack in children
  53156. return obj.CountryCode, nil
  53157. })
  53158. if err != nil {
  53159. ec.Error(ctx, err)
  53160. return graphql.Null
  53161. }
  53162. if resTmp == nil {
  53163. return graphql.Null
  53164. }
  53165. res := resTmp.(*CountryCode)
  53166. fc.Result = res
  53167. return ec.marshalOCountryCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCode(ctx, field.Selections, res)
  53168. }
  53169. func (ec *executionContext) fieldContext_CustomerCreditCardBillingAddress_countryCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  53170. fc = &graphql.FieldContext{
  53171. Object: "CustomerCreditCardBillingAddress",
  53172. Field: field,
  53173. IsMethod: false,
  53174. IsResolver: false,
  53175. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  53176. return nil, errors.New("field of type CountryCode does not have child fields")
  53177. },
  53178. }
  53179. return fc, nil
  53180. }
  53181. func (ec *executionContext) _CustomerCreditCardBillingAddress_province(ctx context.Context, field graphql.CollectedField, obj *CustomerCreditCardBillingAddress) (ret graphql.Marshaler) {
  53182. fc, err := ec.fieldContext_CustomerCreditCardBillingAddress_province(ctx, field)
  53183. if err != nil {
  53184. return graphql.Null
  53185. }
  53186. ctx = graphql.WithFieldContext(ctx, fc)
  53187. defer func() {
  53188. if r := recover(); r != nil {
  53189. ec.Error(ctx, ec.Recover(ctx, r))
  53190. ret = graphql.Null
  53191. }
  53192. }()
  53193. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  53194. ctx = rctx // use context from middleware stack in children
  53195. return obj.Province, nil
  53196. })
  53197. if err != nil {
  53198. ec.Error(ctx, err)
  53199. return graphql.Null
  53200. }
  53201. if resTmp == nil {
  53202. return graphql.Null
  53203. }
  53204. res := resTmp.(*string)
  53205. fc.Result = res
  53206. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  53207. }
  53208. func (ec *executionContext) fieldContext_CustomerCreditCardBillingAddress_province(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  53209. fc = &graphql.FieldContext{
  53210. Object: "CustomerCreditCardBillingAddress",
  53211. Field: field,
  53212. IsMethod: false,
  53213. IsResolver: false,
  53214. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  53215. return nil, errors.New("field of type String does not have child fields")
  53216. },
  53217. }
  53218. return fc, nil
  53219. }
  53220. func (ec *executionContext) _CustomerCreditCardBillingAddress_provinceCode(ctx context.Context, field graphql.CollectedField, obj *CustomerCreditCardBillingAddress) (ret graphql.Marshaler) {
  53221. fc, err := ec.fieldContext_CustomerCreditCardBillingAddress_provinceCode(ctx, field)
  53222. if err != nil {
  53223. return graphql.Null
  53224. }
  53225. ctx = graphql.WithFieldContext(ctx, fc)
  53226. defer func() {
  53227. if r := recover(); r != nil {
  53228. ec.Error(ctx, ec.Recover(ctx, r))
  53229. ret = graphql.Null
  53230. }
  53231. }()
  53232. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  53233. ctx = rctx // use context from middleware stack in children
  53234. return obj.ProvinceCode, nil
  53235. })
  53236. if err != nil {
  53237. ec.Error(ctx, err)
  53238. return graphql.Null
  53239. }
  53240. if resTmp == nil {
  53241. return graphql.Null
  53242. }
  53243. res := resTmp.(*string)
  53244. fc.Result = res
  53245. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  53246. }
  53247. func (ec *executionContext) fieldContext_CustomerCreditCardBillingAddress_provinceCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  53248. fc = &graphql.FieldContext{
  53249. Object: "CustomerCreditCardBillingAddress",
  53250. Field: field,
  53251. IsMethod: false,
  53252. IsResolver: false,
  53253. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  53254. return nil, errors.New("field of type String does not have child fields")
  53255. },
  53256. }
  53257. return fc, nil
  53258. }
  53259. func (ec *executionContext) _CustomerCreditCardBillingAddress_zip(ctx context.Context, field graphql.CollectedField, obj *CustomerCreditCardBillingAddress) (ret graphql.Marshaler) {
  53260. fc, err := ec.fieldContext_CustomerCreditCardBillingAddress_zip(ctx, field)
  53261. if err != nil {
  53262. return graphql.Null
  53263. }
  53264. ctx = graphql.WithFieldContext(ctx, fc)
  53265. defer func() {
  53266. if r := recover(); r != nil {
  53267. ec.Error(ctx, ec.Recover(ctx, r))
  53268. ret = graphql.Null
  53269. }
  53270. }()
  53271. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  53272. ctx = rctx // use context from middleware stack in children
  53273. return obj.Zip, nil
  53274. })
  53275. if err != nil {
  53276. ec.Error(ctx, err)
  53277. return graphql.Null
  53278. }
  53279. if resTmp == nil {
  53280. return graphql.Null
  53281. }
  53282. res := resTmp.(*string)
  53283. fc.Result = res
  53284. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  53285. }
  53286. func (ec *executionContext) fieldContext_CustomerCreditCardBillingAddress_zip(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  53287. fc = &graphql.FieldContext{
  53288. Object: "CustomerCreditCardBillingAddress",
  53289. Field: field,
  53290. IsMethod: false,
  53291. IsResolver: false,
  53292. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  53293. return nil, errors.New("field of type String does not have child fields")
  53294. },
  53295. }
  53296. return fc, nil
  53297. }
  53298. func (ec *executionContext) _CustomerEmailMarketingConsentState_consentUpdatedAt(ctx context.Context, field graphql.CollectedField, obj *CustomerEmailMarketingConsentState) (ret graphql.Marshaler) {
  53299. fc, err := ec.fieldContext_CustomerEmailMarketingConsentState_consentUpdatedAt(ctx, field)
  53300. if err != nil {
  53301. return graphql.Null
  53302. }
  53303. ctx = graphql.WithFieldContext(ctx, fc)
  53304. defer func() {
  53305. if r := recover(); r != nil {
  53306. ec.Error(ctx, ec.Recover(ctx, r))
  53307. ret = graphql.Null
  53308. }
  53309. }()
  53310. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  53311. ctx = rctx // use context from middleware stack in children
  53312. return obj.ConsentUpdatedAt, nil
  53313. })
  53314. if err != nil {
  53315. ec.Error(ctx, err)
  53316. return graphql.Null
  53317. }
  53318. if resTmp == nil {
  53319. return graphql.Null
  53320. }
  53321. res := resTmp.(*string)
  53322. fc.Result = res
  53323. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  53324. }
  53325. func (ec *executionContext) fieldContext_CustomerEmailMarketingConsentState_consentUpdatedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  53326. fc = &graphql.FieldContext{
  53327. Object: "CustomerEmailMarketingConsentState",
  53328. Field: field,
  53329. IsMethod: false,
  53330. IsResolver: false,
  53331. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  53332. return nil, errors.New("field of type DateTime does not have child fields")
  53333. },
  53334. }
  53335. return fc, nil
  53336. }
  53337. func (ec *executionContext) _CustomerEmailMarketingConsentState_marketingOptInLevel(ctx context.Context, field graphql.CollectedField, obj *CustomerEmailMarketingConsentState) (ret graphql.Marshaler) {
  53338. fc, err := ec.fieldContext_CustomerEmailMarketingConsentState_marketingOptInLevel(ctx, field)
  53339. if err != nil {
  53340. return graphql.Null
  53341. }
  53342. ctx = graphql.WithFieldContext(ctx, fc)
  53343. defer func() {
  53344. if r := recover(); r != nil {
  53345. ec.Error(ctx, ec.Recover(ctx, r))
  53346. ret = graphql.Null
  53347. }
  53348. }()
  53349. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  53350. ctx = rctx // use context from middleware stack in children
  53351. return obj.MarketingOptInLevel, nil
  53352. })
  53353. if err != nil {
  53354. ec.Error(ctx, err)
  53355. return graphql.Null
  53356. }
  53357. if resTmp == nil {
  53358. return graphql.Null
  53359. }
  53360. res := resTmp.(*CustomerMarketingOptInLevel)
  53361. fc.Result = res
  53362. return ec.marshalOCustomerMarketingOptInLevel2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerMarketingOptInLevel(ctx, field.Selections, res)
  53363. }
  53364. func (ec *executionContext) fieldContext_CustomerEmailMarketingConsentState_marketingOptInLevel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  53365. fc = &graphql.FieldContext{
  53366. Object: "CustomerEmailMarketingConsentState",
  53367. Field: field,
  53368. IsMethod: false,
  53369. IsResolver: false,
  53370. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  53371. return nil, errors.New("field of type CustomerMarketingOptInLevel does not have child fields")
  53372. },
  53373. }
  53374. return fc, nil
  53375. }
  53376. func (ec *executionContext) _CustomerEmailMarketingConsentState_marketingState(ctx context.Context, field graphql.CollectedField, obj *CustomerEmailMarketingConsentState) (ret graphql.Marshaler) {
  53377. fc, err := ec.fieldContext_CustomerEmailMarketingConsentState_marketingState(ctx, field)
  53378. if err != nil {
  53379. return graphql.Null
  53380. }
  53381. ctx = graphql.WithFieldContext(ctx, fc)
  53382. defer func() {
  53383. if r := recover(); r != nil {
  53384. ec.Error(ctx, ec.Recover(ctx, r))
  53385. ret = graphql.Null
  53386. }
  53387. }()
  53388. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  53389. ctx = rctx // use context from middleware stack in children
  53390. return obj.MarketingState, nil
  53391. })
  53392. if err != nil {
  53393. ec.Error(ctx, err)
  53394. return graphql.Null
  53395. }
  53396. if resTmp == nil {
  53397. if !graphql.HasFieldError(ctx, fc) {
  53398. ec.Errorf(ctx, "must not be null")
  53399. }
  53400. return graphql.Null
  53401. }
  53402. res := resTmp.(CustomerEmailMarketingState)
  53403. fc.Result = res
  53404. return ec.marshalNCustomerEmailMarketingState2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerEmailMarketingState(ctx, field.Selections, res)
  53405. }
  53406. func (ec *executionContext) fieldContext_CustomerEmailMarketingConsentState_marketingState(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  53407. fc = &graphql.FieldContext{
  53408. Object: "CustomerEmailMarketingConsentState",
  53409. Field: field,
  53410. IsMethod: false,
  53411. IsResolver: false,
  53412. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  53413. return nil, errors.New("field of type CustomerEmailMarketingState does not have child fields")
  53414. },
  53415. }
  53416. return fc, nil
  53417. }
  53418. func (ec *executionContext) _CustomerJourneySummary_customerOrderIndex(ctx context.Context, field graphql.CollectedField, obj *CustomerJourneySummary) (ret graphql.Marshaler) {
  53419. fc, err := ec.fieldContext_CustomerJourneySummary_customerOrderIndex(ctx, field)
  53420. if err != nil {
  53421. return graphql.Null
  53422. }
  53423. ctx = graphql.WithFieldContext(ctx, fc)
  53424. defer func() {
  53425. if r := recover(); r != nil {
  53426. ec.Error(ctx, ec.Recover(ctx, r))
  53427. ret = graphql.Null
  53428. }
  53429. }()
  53430. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  53431. ctx = rctx // use context from middleware stack in children
  53432. return obj.CustomerOrderIndex, nil
  53433. })
  53434. if err != nil {
  53435. ec.Error(ctx, err)
  53436. return graphql.Null
  53437. }
  53438. if resTmp == nil {
  53439. return graphql.Null
  53440. }
  53441. res := resTmp.(*int)
  53442. fc.Result = res
  53443. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  53444. }
  53445. func (ec *executionContext) fieldContext_CustomerJourneySummary_customerOrderIndex(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  53446. fc = &graphql.FieldContext{
  53447. Object: "CustomerJourneySummary",
  53448. Field: field,
  53449. IsMethod: false,
  53450. IsResolver: false,
  53451. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  53452. return nil, errors.New("field of type Int does not have child fields")
  53453. },
  53454. }
  53455. return fc, nil
  53456. }
  53457. func (ec *executionContext) _CustomerJourneySummary_daysToConversion(ctx context.Context, field graphql.CollectedField, obj *CustomerJourneySummary) (ret graphql.Marshaler) {
  53458. fc, err := ec.fieldContext_CustomerJourneySummary_daysToConversion(ctx, field)
  53459. if err != nil {
  53460. return graphql.Null
  53461. }
  53462. ctx = graphql.WithFieldContext(ctx, fc)
  53463. defer func() {
  53464. if r := recover(); r != nil {
  53465. ec.Error(ctx, ec.Recover(ctx, r))
  53466. ret = graphql.Null
  53467. }
  53468. }()
  53469. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  53470. ctx = rctx // use context from middleware stack in children
  53471. return obj.DaysToConversion, nil
  53472. })
  53473. if err != nil {
  53474. ec.Error(ctx, err)
  53475. return graphql.Null
  53476. }
  53477. if resTmp == nil {
  53478. return graphql.Null
  53479. }
  53480. res := resTmp.(*int)
  53481. fc.Result = res
  53482. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  53483. }
  53484. func (ec *executionContext) fieldContext_CustomerJourneySummary_daysToConversion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  53485. fc = &graphql.FieldContext{
  53486. Object: "CustomerJourneySummary",
  53487. Field: field,
  53488. IsMethod: false,
  53489. IsResolver: false,
  53490. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  53491. return nil, errors.New("field of type Int does not have child fields")
  53492. },
  53493. }
  53494. return fc, nil
  53495. }
  53496. func (ec *executionContext) _CustomerJourneySummary_firstVisit(ctx context.Context, field graphql.CollectedField, obj *CustomerJourneySummary) (ret graphql.Marshaler) {
  53497. fc, err := ec.fieldContext_CustomerJourneySummary_firstVisit(ctx, field)
  53498. if err != nil {
  53499. return graphql.Null
  53500. }
  53501. ctx = graphql.WithFieldContext(ctx, fc)
  53502. defer func() {
  53503. if r := recover(); r != nil {
  53504. ec.Error(ctx, ec.Recover(ctx, r))
  53505. ret = graphql.Null
  53506. }
  53507. }()
  53508. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  53509. ctx = rctx // use context from middleware stack in children
  53510. return obj.FirstVisit, nil
  53511. })
  53512. if err != nil {
  53513. ec.Error(ctx, err)
  53514. return graphql.Null
  53515. }
  53516. if resTmp == nil {
  53517. return graphql.Null
  53518. }
  53519. res := resTmp.(*CustomerVisit)
  53520. fc.Result = res
  53521. return ec.marshalOCustomerVisit2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerVisit(ctx, field.Selections, res)
  53522. }
  53523. func (ec *executionContext) fieldContext_CustomerJourneySummary_firstVisit(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  53524. fc = &graphql.FieldContext{
  53525. Object: "CustomerJourneySummary",
  53526. Field: field,
  53527. IsMethod: false,
  53528. IsResolver: false,
  53529. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  53530. switch field.Name {
  53531. case "id":
  53532. return ec.fieldContext_CustomerVisit_id(ctx, field)
  53533. case "landingPage":
  53534. return ec.fieldContext_CustomerVisit_landingPage(ctx, field)
  53535. case "landingPageHtml":
  53536. return ec.fieldContext_CustomerVisit_landingPageHtml(ctx, field)
  53537. case "marketingEvent":
  53538. return ec.fieldContext_CustomerVisit_marketingEvent(ctx, field)
  53539. case "occurredAt":
  53540. return ec.fieldContext_CustomerVisit_occurredAt(ctx, field)
  53541. case "referralCode":
  53542. return ec.fieldContext_CustomerVisit_referralCode(ctx, field)
  53543. case "referralInfoHtml":
  53544. return ec.fieldContext_CustomerVisit_referralInfoHtml(ctx, field)
  53545. case "referrerUrl":
  53546. return ec.fieldContext_CustomerVisit_referrerUrl(ctx, field)
  53547. case "source":
  53548. return ec.fieldContext_CustomerVisit_source(ctx, field)
  53549. case "sourceDescription":
  53550. return ec.fieldContext_CustomerVisit_sourceDescription(ctx, field)
  53551. case "sourceType":
  53552. return ec.fieldContext_CustomerVisit_sourceType(ctx, field)
  53553. case "utmParameters":
  53554. return ec.fieldContext_CustomerVisit_utmParameters(ctx, field)
  53555. }
  53556. return nil, fmt.Errorf("no field named %q was found under type CustomerVisit", field.Name)
  53557. },
  53558. }
  53559. return fc, nil
  53560. }
  53561. func (ec *executionContext) _CustomerJourneySummary_lastVisit(ctx context.Context, field graphql.CollectedField, obj *CustomerJourneySummary) (ret graphql.Marshaler) {
  53562. fc, err := ec.fieldContext_CustomerJourneySummary_lastVisit(ctx, field)
  53563. if err != nil {
  53564. return graphql.Null
  53565. }
  53566. ctx = graphql.WithFieldContext(ctx, fc)
  53567. defer func() {
  53568. if r := recover(); r != nil {
  53569. ec.Error(ctx, ec.Recover(ctx, r))
  53570. ret = graphql.Null
  53571. }
  53572. }()
  53573. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  53574. ctx = rctx // use context from middleware stack in children
  53575. return obj.LastVisit, nil
  53576. })
  53577. if err != nil {
  53578. ec.Error(ctx, err)
  53579. return graphql.Null
  53580. }
  53581. if resTmp == nil {
  53582. return graphql.Null
  53583. }
  53584. res := resTmp.(*CustomerVisit)
  53585. fc.Result = res
  53586. return ec.marshalOCustomerVisit2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerVisit(ctx, field.Selections, res)
  53587. }
  53588. func (ec *executionContext) fieldContext_CustomerJourneySummary_lastVisit(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  53589. fc = &graphql.FieldContext{
  53590. Object: "CustomerJourneySummary",
  53591. Field: field,
  53592. IsMethod: false,
  53593. IsResolver: false,
  53594. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  53595. switch field.Name {
  53596. case "id":
  53597. return ec.fieldContext_CustomerVisit_id(ctx, field)
  53598. case "landingPage":
  53599. return ec.fieldContext_CustomerVisit_landingPage(ctx, field)
  53600. case "landingPageHtml":
  53601. return ec.fieldContext_CustomerVisit_landingPageHtml(ctx, field)
  53602. case "marketingEvent":
  53603. return ec.fieldContext_CustomerVisit_marketingEvent(ctx, field)
  53604. case "occurredAt":
  53605. return ec.fieldContext_CustomerVisit_occurredAt(ctx, field)
  53606. case "referralCode":
  53607. return ec.fieldContext_CustomerVisit_referralCode(ctx, field)
  53608. case "referralInfoHtml":
  53609. return ec.fieldContext_CustomerVisit_referralInfoHtml(ctx, field)
  53610. case "referrerUrl":
  53611. return ec.fieldContext_CustomerVisit_referrerUrl(ctx, field)
  53612. case "source":
  53613. return ec.fieldContext_CustomerVisit_source(ctx, field)
  53614. case "sourceDescription":
  53615. return ec.fieldContext_CustomerVisit_sourceDescription(ctx, field)
  53616. case "sourceType":
  53617. return ec.fieldContext_CustomerVisit_sourceType(ctx, field)
  53618. case "utmParameters":
  53619. return ec.fieldContext_CustomerVisit_utmParameters(ctx, field)
  53620. }
  53621. return nil, fmt.Errorf("no field named %q was found under type CustomerVisit", field.Name)
  53622. },
  53623. }
  53624. return fc, nil
  53625. }
  53626. func (ec *executionContext) _CustomerJourneySummary_moments(ctx context.Context, field graphql.CollectedField, obj *CustomerJourneySummary) (ret graphql.Marshaler) {
  53627. fc, err := ec.fieldContext_CustomerJourneySummary_moments(ctx, field)
  53628. if err != nil {
  53629. return graphql.Null
  53630. }
  53631. ctx = graphql.WithFieldContext(ctx, fc)
  53632. defer func() {
  53633. if r := recover(); r != nil {
  53634. ec.Error(ctx, ec.Recover(ctx, r))
  53635. ret = graphql.Null
  53636. }
  53637. }()
  53638. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  53639. ctx = rctx // use context from middleware stack in children
  53640. return obj.Moments, nil
  53641. })
  53642. if err != nil {
  53643. ec.Error(ctx, err)
  53644. return graphql.Null
  53645. }
  53646. if resTmp == nil {
  53647. return graphql.Null
  53648. }
  53649. res := resTmp.(*CustomerMomentConnection)
  53650. fc.Result = res
  53651. return ec.marshalOCustomerMomentConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerMomentConnection(ctx, field.Selections, res)
  53652. }
  53653. func (ec *executionContext) fieldContext_CustomerJourneySummary_moments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  53654. fc = &graphql.FieldContext{
  53655. Object: "CustomerJourneySummary",
  53656. Field: field,
  53657. IsMethod: false,
  53658. IsResolver: false,
  53659. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  53660. switch field.Name {
  53661. case "edges":
  53662. return ec.fieldContext_CustomerMomentConnection_edges(ctx, field)
  53663. case "nodes":
  53664. return ec.fieldContext_CustomerMomentConnection_nodes(ctx, field)
  53665. case "pageInfo":
  53666. return ec.fieldContext_CustomerMomentConnection_pageInfo(ctx, field)
  53667. }
  53668. return nil, fmt.Errorf("no field named %q was found under type CustomerMomentConnection", field.Name)
  53669. },
  53670. }
  53671. defer func() {
  53672. if r := recover(); r != nil {
  53673. err = ec.Recover(ctx, r)
  53674. ec.Error(ctx, err)
  53675. }
  53676. }()
  53677. ctx = graphql.WithFieldContext(ctx, fc)
  53678. if fc.Args, err = ec.field_CustomerJourneySummary_moments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  53679. ec.Error(ctx, err)
  53680. return
  53681. }
  53682. return fc, nil
  53683. }
  53684. func (ec *executionContext) _CustomerJourneySummary_momentsCount(ctx context.Context, field graphql.CollectedField, obj *CustomerJourneySummary) (ret graphql.Marshaler) {
  53685. fc, err := ec.fieldContext_CustomerJourneySummary_momentsCount(ctx, field)
  53686. if err != nil {
  53687. return graphql.Null
  53688. }
  53689. ctx = graphql.WithFieldContext(ctx, fc)
  53690. defer func() {
  53691. if r := recover(); r != nil {
  53692. ec.Error(ctx, ec.Recover(ctx, r))
  53693. ret = graphql.Null
  53694. }
  53695. }()
  53696. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  53697. ctx = rctx // use context from middleware stack in children
  53698. return obj.MomentsCount, nil
  53699. })
  53700. if err != nil {
  53701. ec.Error(ctx, err)
  53702. return graphql.Null
  53703. }
  53704. if resTmp == nil {
  53705. return graphql.Null
  53706. }
  53707. res := resTmp.(*int)
  53708. fc.Result = res
  53709. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  53710. }
  53711. func (ec *executionContext) fieldContext_CustomerJourneySummary_momentsCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  53712. fc = &graphql.FieldContext{
  53713. Object: "CustomerJourneySummary",
  53714. Field: field,
  53715. IsMethod: false,
  53716. IsResolver: false,
  53717. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  53718. return nil, errors.New("field of type Int does not have child fields")
  53719. },
  53720. }
  53721. return fc, nil
  53722. }
  53723. func (ec *executionContext) _CustomerJourneySummary_ready(ctx context.Context, field graphql.CollectedField, obj *CustomerJourneySummary) (ret graphql.Marshaler) {
  53724. fc, err := ec.fieldContext_CustomerJourneySummary_ready(ctx, field)
  53725. if err != nil {
  53726. return graphql.Null
  53727. }
  53728. ctx = graphql.WithFieldContext(ctx, fc)
  53729. defer func() {
  53730. if r := recover(); r != nil {
  53731. ec.Error(ctx, ec.Recover(ctx, r))
  53732. ret = graphql.Null
  53733. }
  53734. }()
  53735. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  53736. ctx = rctx // use context from middleware stack in children
  53737. return obj.Ready, nil
  53738. })
  53739. if err != nil {
  53740. ec.Error(ctx, err)
  53741. return graphql.Null
  53742. }
  53743. if resTmp == nil {
  53744. if !graphql.HasFieldError(ctx, fc) {
  53745. ec.Errorf(ctx, "must not be null")
  53746. }
  53747. return graphql.Null
  53748. }
  53749. res := resTmp.(bool)
  53750. fc.Result = res
  53751. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  53752. }
  53753. func (ec *executionContext) fieldContext_CustomerJourneySummary_ready(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  53754. fc = &graphql.FieldContext{
  53755. Object: "CustomerJourneySummary",
  53756. Field: field,
  53757. IsMethod: false,
  53758. IsResolver: false,
  53759. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  53760. return nil, errors.New("field of type Boolean does not have child fields")
  53761. },
  53762. }
  53763. return fc, nil
  53764. }
  53765. func (ec *executionContext) _CustomerMomentConnection_edges(ctx context.Context, field graphql.CollectedField, obj *CustomerMomentConnection) (ret graphql.Marshaler) {
  53766. fc, err := ec.fieldContext_CustomerMomentConnection_edges(ctx, field)
  53767. if err != nil {
  53768. return graphql.Null
  53769. }
  53770. ctx = graphql.WithFieldContext(ctx, fc)
  53771. defer func() {
  53772. if r := recover(); r != nil {
  53773. ec.Error(ctx, ec.Recover(ctx, r))
  53774. ret = graphql.Null
  53775. }
  53776. }()
  53777. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  53778. ctx = rctx // use context from middleware stack in children
  53779. return obj.Edges, nil
  53780. })
  53781. if err != nil {
  53782. ec.Error(ctx, err)
  53783. return graphql.Null
  53784. }
  53785. if resTmp == nil {
  53786. if !graphql.HasFieldError(ctx, fc) {
  53787. ec.Errorf(ctx, "must not be null")
  53788. }
  53789. return graphql.Null
  53790. }
  53791. res := resTmp.([]*CustomerMomentEdge)
  53792. fc.Result = res
  53793. return ec.marshalNCustomerMomentEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerMomentEdgeᚄ(ctx, field.Selections, res)
  53794. }
  53795. func (ec *executionContext) fieldContext_CustomerMomentConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  53796. fc = &graphql.FieldContext{
  53797. Object: "CustomerMomentConnection",
  53798. Field: field,
  53799. IsMethod: false,
  53800. IsResolver: false,
  53801. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  53802. switch field.Name {
  53803. case "cursor":
  53804. return ec.fieldContext_CustomerMomentEdge_cursor(ctx, field)
  53805. case "node":
  53806. return ec.fieldContext_CustomerMomentEdge_node(ctx, field)
  53807. }
  53808. return nil, fmt.Errorf("no field named %q was found under type CustomerMomentEdge", field.Name)
  53809. },
  53810. }
  53811. return fc, nil
  53812. }
  53813. func (ec *executionContext) _CustomerMomentConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *CustomerMomentConnection) (ret graphql.Marshaler) {
  53814. fc, err := ec.fieldContext_CustomerMomentConnection_nodes(ctx, field)
  53815. if err != nil {
  53816. return graphql.Null
  53817. }
  53818. ctx = graphql.WithFieldContext(ctx, fc)
  53819. defer func() {
  53820. if r := recover(); r != nil {
  53821. ec.Error(ctx, ec.Recover(ctx, r))
  53822. ret = graphql.Null
  53823. }
  53824. }()
  53825. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  53826. ctx = rctx // use context from middleware stack in children
  53827. return obj.Nodes, nil
  53828. })
  53829. if err != nil {
  53830. ec.Error(ctx, err)
  53831. return graphql.Null
  53832. }
  53833. if resTmp == nil {
  53834. if !graphql.HasFieldError(ctx, fc) {
  53835. ec.Errorf(ctx, "must not be null")
  53836. }
  53837. return graphql.Null
  53838. }
  53839. res := resTmp.([]CustomerMoment)
  53840. fc.Result = res
  53841. return ec.marshalNCustomerMoment2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerMomentᚄ(ctx, field.Selections, res)
  53842. }
  53843. func (ec *executionContext) fieldContext_CustomerMomentConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  53844. fc = &graphql.FieldContext{
  53845. Object: "CustomerMomentConnection",
  53846. Field: field,
  53847. IsMethod: false,
  53848. IsResolver: false,
  53849. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  53850. return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
  53851. },
  53852. }
  53853. return fc, nil
  53854. }
  53855. func (ec *executionContext) _CustomerMomentConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *CustomerMomentConnection) (ret graphql.Marshaler) {
  53856. fc, err := ec.fieldContext_CustomerMomentConnection_pageInfo(ctx, field)
  53857. if err != nil {
  53858. return graphql.Null
  53859. }
  53860. ctx = graphql.WithFieldContext(ctx, fc)
  53861. defer func() {
  53862. if r := recover(); r != nil {
  53863. ec.Error(ctx, ec.Recover(ctx, r))
  53864. ret = graphql.Null
  53865. }
  53866. }()
  53867. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  53868. ctx = rctx // use context from middleware stack in children
  53869. return obj.PageInfo, nil
  53870. })
  53871. if err != nil {
  53872. ec.Error(ctx, err)
  53873. return graphql.Null
  53874. }
  53875. if resTmp == nil {
  53876. if !graphql.HasFieldError(ctx, fc) {
  53877. ec.Errorf(ctx, "must not be null")
  53878. }
  53879. return graphql.Null
  53880. }
  53881. res := resTmp.(*PageInfo)
  53882. fc.Result = res
  53883. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  53884. }
  53885. func (ec *executionContext) fieldContext_CustomerMomentConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  53886. fc = &graphql.FieldContext{
  53887. Object: "CustomerMomentConnection",
  53888. Field: field,
  53889. IsMethod: false,
  53890. IsResolver: false,
  53891. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  53892. switch field.Name {
  53893. case "endCursor":
  53894. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  53895. case "hasNextPage":
  53896. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  53897. case "hasPreviousPage":
  53898. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  53899. case "startCursor":
  53900. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  53901. }
  53902. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  53903. },
  53904. }
  53905. return fc, nil
  53906. }
  53907. func (ec *executionContext) _CustomerMomentEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *CustomerMomentEdge) (ret graphql.Marshaler) {
  53908. fc, err := ec.fieldContext_CustomerMomentEdge_cursor(ctx, field)
  53909. if err != nil {
  53910. return graphql.Null
  53911. }
  53912. ctx = graphql.WithFieldContext(ctx, fc)
  53913. defer func() {
  53914. if r := recover(); r != nil {
  53915. ec.Error(ctx, ec.Recover(ctx, r))
  53916. ret = graphql.Null
  53917. }
  53918. }()
  53919. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  53920. ctx = rctx // use context from middleware stack in children
  53921. return obj.Cursor, nil
  53922. })
  53923. if err != nil {
  53924. ec.Error(ctx, err)
  53925. return graphql.Null
  53926. }
  53927. if resTmp == nil {
  53928. if !graphql.HasFieldError(ctx, fc) {
  53929. ec.Errorf(ctx, "must not be null")
  53930. }
  53931. return graphql.Null
  53932. }
  53933. res := resTmp.(string)
  53934. fc.Result = res
  53935. return ec.marshalNString2string(ctx, field.Selections, res)
  53936. }
  53937. func (ec *executionContext) fieldContext_CustomerMomentEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  53938. fc = &graphql.FieldContext{
  53939. Object: "CustomerMomentEdge",
  53940. Field: field,
  53941. IsMethod: false,
  53942. IsResolver: false,
  53943. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  53944. return nil, errors.New("field of type String does not have child fields")
  53945. },
  53946. }
  53947. return fc, nil
  53948. }
  53949. func (ec *executionContext) _CustomerMomentEdge_node(ctx context.Context, field graphql.CollectedField, obj *CustomerMomentEdge) (ret graphql.Marshaler) {
  53950. fc, err := ec.fieldContext_CustomerMomentEdge_node(ctx, field)
  53951. if err != nil {
  53952. return graphql.Null
  53953. }
  53954. ctx = graphql.WithFieldContext(ctx, fc)
  53955. defer func() {
  53956. if r := recover(); r != nil {
  53957. ec.Error(ctx, ec.Recover(ctx, r))
  53958. ret = graphql.Null
  53959. }
  53960. }()
  53961. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  53962. ctx = rctx // use context from middleware stack in children
  53963. return obj.Node, nil
  53964. })
  53965. if err != nil {
  53966. ec.Error(ctx, err)
  53967. return graphql.Null
  53968. }
  53969. if resTmp == nil {
  53970. if !graphql.HasFieldError(ctx, fc) {
  53971. ec.Errorf(ctx, "must not be null")
  53972. }
  53973. return graphql.Null
  53974. }
  53975. res := resTmp.(CustomerMoment)
  53976. fc.Result = res
  53977. return ec.marshalNCustomerMoment2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerMoment(ctx, field.Selections, res)
  53978. }
  53979. func (ec *executionContext) fieldContext_CustomerMomentEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  53980. fc = &graphql.FieldContext{
  53981. Object: "CustomerMomentEdge",
  53982. Field: field,
  53983. IsMethod: false,
  53984. IsResolver: false,
  53985. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  53986. return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
  53987. },
  53988. }
  53989. return fc, nil
  53990. }
  53991. func (ec *executionContext) _CustomerPaymentInstrumentBillingAddress_address1(ctx context.Context, field graphql.CollectedField, obj *CustomerPaymentInstrumentBillingAddress) (ret graphql.Marshaler) {
  53992. fc, err := ec.fieldContext_CustomerPaymentInstrumentBillingAddress_address1(ctx, field)
  53993. if err != nil {
  53994. return graphql.Null
  53995. }
  53996. ctx = graphql.WithFieldContext(ctx, fc)
  53997. defer func() {
  53998. if r := recover(); r != nil {
  53999. ec.Error(ctx, ec.Recover(ctx, r))
  54000. ret = graphql.Null
  54001. }
  54002. }()
  54003. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  54004. ctx = rctx // use context from middleware stack in children
  54005. return obj.Address1, nil
  54006. })
  54007. if err != nil {
  54008. ec.Error(ctx, err)
  54009. return graphql.Null
  54010. }
  54011. if resTmp == nil {
  54012. return graphql.Null
  54013. }
  54014. res := resTmp.(*string)
  54015. fc.Result = res
  54016. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  54017. }
  54018. func (ec *executionContext) fieldContext_CustomerPaymentInstrumentBillingAddress_address1(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  54019. fc = &graphql.FieldContext{
  54020. Object: "CustomerPaymentInstrumentBillingAddress",
  54021. Field: field,
  54022. IsMethod: false,
  54023. IsResolver: false,
  54024. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  54025. return nil, errors.New("field of type String does not have child fields")
  54026. },
  54027. }
  54028. return fc, nil
  54029. }
  54030. func (ec *executionContext) _CustomerPaymentInstrumentBillingAddress_city(ctx context.Context, field graphql.CollectedField, obj *CustomerPaymentInstrumentBillingAddress) (ret graphql.Marshaler) {
  54031. fc, err := ec.fieldContext_CustomerPaymentInstrumentBillingAddress_city(ctx, field)
  54032. if err != nil {
  54033. return graphql.Null
  54034. }
  54035. ctx = graphql.WithFieldContext(ctx, fc)
  54036. defer func() {
  54037. if r := recover(); r != nil {
  54038. ec.Error(ctx, ec.Recover(ctx, r))
  54039. ret = graphql.Null
  54040. }
  54041. }()
  54042. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  54043. ctx = rctx // use context from middleware stack in children
  54044. return obj.City, nil
  54045. })
  54046. if err != nil {
  54047. ec.Error(ctx, err)
  54048. return graphql.Null
  54049. }
  54050. if resTmp == nil {
  54051. return graphql.Null
  54052. }
  54053. res := resTmp.(*string)
  54054. fc.Result = res
  54055. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  54056. }
  54057. func (ec *executionContext) fieldContext_CustomerPaymentInstrumentBillingAddress_city(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  54058. fc = &graphql.FieldContext{
  54059. Object: "CustomerPaymentInstrumentBillingAddress",
  54060. Field: field,
  54061. IsMethod: false,
  54062. IsResolver: false,
  54063. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  54064. return nil, errors.New("field of type String does not have child fields")
  54065. },
  54066. }
  54067. return fc, nil
  54068. }
  54069. func (ec *executionContext) _CustomerPaymentInstrumentBillingAddress_country(ctx context.Context, field graphql.CollectedField, obj *CustomerPaymentInstrumentBillingAddress) (ret graphql.Marshaler) {
  54070. fc, err := ec.fieldContext_CustomerPaymentInstrumentBillingAddress_country(ctx, field)
  54071. if err != nil {
  54072. return graphql.Null
  54073. }
  54074. ctx = graphql.WithFieldContext(ctx, fc)
  54075. defer func() {
  54076. if r := recover(); r != nil {
  54077. ec.Error(ctx, ec.Recover(ctx, r))
  54078. ret = graphql.Null
  54079. }
  54080. }()
  54081. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  54082. ctx = rctx // use context from middleware stack in children
  54083. return obj.Country, nil
  54084. })
  54085. if err != nil {
  54086. ec.Error(ctx, err)
  54087. return graphql.Null
  54088. }
  54089. if resTmp == nil {
  54090. return graphql.Null
  54091. }
  54092. res := resTmp.(*string)
  54093. fc.Result = res
  54094. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  54095. }
  54096. func (ec *executionContext) fieldContext_CustomerPaymentInstrumentBillingAddress_country(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  54097. fc = &graphql.FieldContext{
  54098. Object: "CustomerPaymentInstrumentBillingAddress",
  54099. Field: field,
  54100. IsMethod: false,
  54101. IsResolver: false,
  54102. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  54103. return nil, errors.New("field of type String does not have child fields")
  54104. },
  54105. }
  54106. return fc, nil
  54107. }
  54108. func (ec *executionContext) _CustomerPaymentInstrumentBillingAddress_countryCode(ctx context.Context, field graphql.CollectedField, obj *CustomerPaymentInstrumentBillingAddress) (ret graphql.Marshaler) {
  54109. fc, err := ec.fieldContext_CustomerPaymentInstrumentBillingAddress_countryCode(ctx, field)
  54110. if err != nil {
  54111. return graphql.Null
  54112. }
  54113. ctx = graphql.WithFieldContext(ctx, fc)
  54114. defer func() {
  54115. if r := recover(); r != nil {
  54116. ec.Error(ctx, ec.Recover(ctx, r))
  54117. ret = graphql.Null
  54118. }
  54119. }()
  54120. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  54121. ctx = rctx // use context from middleware stack in children
  54122. return obj.CountryCode, nil
  54123. })
  54124. if err != nil {
  54125. ec.Error(ctx, err)
  54126. return graphql.Null
  54127. }
  54128. if resTmp == nil {
  54129. return graphql.Null
  54130. }
  54131. res := resTmp.(*CountryCode)
  54132. fc.Result = res
  54133. return ec.marshalOCountryCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCode(ctx, field.Selections, res)
  54134. }
  54135. func (ec *executionContext) fieldContext_CustomerPaymentInstrumentBillingAddress_countryCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  54136. fc = &graphql.FieldContext{
  54137. Object: "CustomerPaymentInstrumentBillingAddress",
  54138. Field: field,
  54139. IsMethod: false,
  54140. IsResolver: false,
  54141. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  54142. return nil, errors.New("field of type CountryCode does not have child fields")
  54143. },
  54144. }
  54145. return fc, nil
  54146. }
  54147. func (ec *executionContext) _CustomerPaymentInstrumentBillingAddress_name(ctx context.Context, field graphql.CollectedField, obj *CustomerPaymentInstrumentBillingAddress) (ret graphql.Marshaler) {
  54148. fc, err := ec.fieldContext_CustomerPaymentInstrumentBillingAddress_name(ctx, field)
  54149. if err != nil {
  54150. return graphql.Null
  54151. }
  54152. ctx = graphql.WithFieldContext(ctx, fc)
  54153. defer func() {
  54154. if r := recover(); r != nil {
  54155. ec.Error(ctx, ec.Recover(ctx, r))
  54156. ret = graphql.Null
  54157. }
  54158. }()
  54159. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  54160. ctx = rctx // use context from middleware stack in children
  54161. return obj.Name, nil
  54162. })
  54163. if err != nil {
  54164. ec.Error(ctx, err)
  54165. return graphql.Null
  54166. }
  54167. if resTmp == nil {
  54168. return graphql.Null
  54169. }
  54170. res := resTmp.(*string)
  54171. fc.Result = res
  54172. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  54173. }
  54174. func (ec *executionContext) fieldContext_CustomerPaymentInstrumentBillingAddress_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  54175. fc = &graphql.FieldContext{
  54176. Object: "CustomerPaymentInstrumentBillingAddress",
  54177. Field: field,
  54178. IsMethod: false,
  54179. IsResolver: false,
  54180. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  54181. return nil, errors.New("field of type String does not have child fields")
  54182. },
  54183. }
  54184. return fc, nil
  54185. }
  54186. func (ec *executionContext) _CustomerPaymentInstrumentBillingAddress_province(ctx context.Context, field graphql.CollectedField, obj *CustomerPaymentInstrumentBillingAddress) (ret graphql.Marshaler) {
  54187. fc, err := ec.fieldContext_CustomerPaymentInstrumentBillingAddress_province(ctx, field)
  54188. if err != nil {
  54189. return graphql.Null
  54190. }
  54191. ctx = graphql.WithFieldContext(ctx, fc)
  54192. defer func() {
  54193. if r := recover(); r != nil {
  54194. ec.Error(ctx, ec.Recover(ctx, r))
  54195. ret = graphql.Null
  54196. }
  54197. }()
  54198. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  54199. ctx = rctx // use context from middleware stack in children
  54200. return obj.Province, nil
  54201. })
  54202. if err != nil {
  54203. ec.Error(ctx, err)
  54204. return graphql.Null
  54205. }
  54206. if resTmp == nil {
  54207. return graphql.Null
  54208. }
  54209. res := resTmp.(*string)
  54210. fc.Result = res
  54211. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  54212. }
  54213. func (ec *executionContext) fieldContext_CustomerPaymentInstrumentBillingAddress_province(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  54214. fc = &graphql.FieldContext{
  54215. Object: "CustomerPaymentInstrumentBillingAddress",
  54216. Field: field,
  54217. IsMethod: false,
  54218. IsResolver: false,
  54219. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  54220. return nil, errors.New("field of type String does not have child fields")
  54221. },
  54222. }
  54223. return fc, nil
  54224. }
  54225. func (ec *executionContext) _CustomerPaymentInstrumentBillingAddress_provinceCode(ctx context.Context, field graphql.CollectedField, obj *CustomerPaymentInstrumentBillingAddress) (ret graphql.Marshaler) {
  54226. fc, err := ec.fieldContext_CustomerPaymentInstrumentBillingAddress_provinceCode(ctx, field)
  54227. if err != nil {
  54228. return graphql.Null
  54229. }
  54230. ctx = graphql.WithFieldContext(ctx, fc)
  54231. defer func() {
  54232. if r := recover(); r != nil {
  54233. ec.Error(ctx, ec.Recover(ctx, r))
  54234. ret = graphql.Null
  54235. }
  54236. }()
  54237. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  54238. ctx = rctx // use context from middleware stack in children
  54239. return obj.ProvinceCode, nil
  54240. })
  54241. if err != nil {
  54242. ec.Error(ctx, err)
  54243. return graphql.Null
  54244. }
  54245. if resTmp == nil {
  54246. return graphql.Null
  54247. }
  54248. res := resTmp.(*string)
  54249. fc.Result = res
  54250. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  54251. }
  54252. func (ec *executionContext) fieldContext_CustomerPaymentInstrumentBillingAddress_provinceCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  54253. fc = &graphql.FieldContext{
  54254. Object: "CustomerPaymentInstrumentBillingAddress",
  54255. Field: field,
  54256. IsMethod: false,
  54257. IsResolver: false,
  54258. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  54259. return nil, errors.New("field of type String does not have child fields")
  54260. },
  54261. }
  54262. return fc, nil
  54263. }
  54264. func (ec *executionContext) _CustomerPaymentInstrumentBillingAddress_zip(ctx context.Context, field graphql.CollectedField, obj *CustomerPaymentInstrumentBillingAddress) (ret graphql.Marshaler) {
  54265. fc, err := ec.fieldContext_CustomerPaymentInstrumentBillingAddress_zip(ctx, field)
  54266. if err != nil {
  54267. return graphql.Null
  54268. }
  54269. ctx = graphql.WithFieldContext(ctx, fc)
  54270. defer func() {
  54271. if r := recover(); r != nil {
  54272. ec.Error(ctx, ec.Recover(ctx, r))
  54273. ret = graphql.Null
  54274. }
  54275. }()
  54276. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  54277. ctx = rctx // use context from middleware stack in children
  54278. return obj.Zip, nil
  54279. })
  54280. if err != nil {
  54281. ec.Error(ctx, err)
  54282. return graphql.Null
  54283. }
  54284. if resTmp == nil {
  54285. return graphql.Null
  54286. }
  54287. res := resTmp.(*string)
  54288. fc.Result = res
  54289. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  54290. }
  54291. func (ec *executionContext) fieldContext_CustomerPaymentInstrumentBillingAddress_zip(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  54292. fc = &graphql.FieldContext{
  54293. Object: "CustomerPaymentInstrumentBillingAddress",
  54294. Field: field,
  54295. IsMethod: false,
  54296. IsResolver: false,
  54297. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  54298. return nil, errors.New("field of type String does not have child fields")
  54299. },
  54300. }
  54301. return fc, nil
  54302. }
  54303. func (ec *executionContext) _CustomerPaymentMethod_customer(ctx context.Context, field graphql.CollectedField, obj *CustomerPaymentMethod) (ret graphql.Marshaler) {
  54304. fc, err := ec.fieldContext_CustomerPaymentMethod_customer(ctx, field)
  54305. if err != nil {
  54306. return graphql.Null
  54307. }
  54308. ctx = graphql.WithFieldContext(ctx, fc)
  54309. defer func() {
  54310. if r := recover(); r != nil {
  54311. ec.Error(ctx, ec.Recover(ctx, r))
  54312. ret = graphql.Null
  54313. }
  54314. }()
  54315. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  54316. ctx = rctx // use context from middleware stack in children
  54317. return obj.Customer, nil
  54318. })
  54319. if err != nil {
  54320. ec.Error(ctx, err)
  54321. return graphql.Null
  54322. }
  54323. if resTmp == nil {
  54324. return graphql.Null
  54325. }
  54326. res := resTmp.(*Customer)
  54327. fc.Result = res
  54328. return ec.marshalOCustomer2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomer(ctx, field.Selections, res)
  54329. }
  54330. func (ec *executionContext) fieldContext_CustomerPaymentMethod_customer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  54331. fc = &graphql.FieldContext{
  54332. Object: "CustomerPaymentMethod",
  54333. Field: field,
  54334. IsMethod: false,
  54335. IsResolver: false,
  54336. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  54337. switch field.Name {
  54338. case "addresses":
  54339. return ec.fieldContext_Customer_addresses(ctx, field)
  54340. case "amountSpent":
  54341. return ec.fieldContext_Customer_amountSpent(ctx, field)
  54342. case "averageOrderAmountV2":
  54343. return ec.fieldContext_Customer_averageOrderAmountV2(ctx, field)
  54344. case "canDelete":
  54345. return ec.fieldContext_Customer_canDelete(ctx, field)
  54346. case "companyContactProfiles":
  54347. return ec.fieldContext_Customer_companyContactProfiles(ctx, field)
  54348. case "createdAt":
  54349. return ec.fieldContext_Customer_createdAt(ctx, field)
  54350. case "defaultAddress":
  54351. return ec.fieldContext_Customer_defaultAddress(ctx, field)
  54352. case "displayName":
  54353. return ec.fieldContext_Customer_displayName(ctx, field)
  54354. case "email":
  54355. return ec.fieldContext_Customer_email(ctx, field)
  54356. case "emailMarketingConsent":
  54357. return ec.fieldContext_Customer_emailMarketingConsent(ctx, field)
  54358. case "events":
  54359. return ec.fieldContext_Customer_events(ctx, field)
  54360. case "firstName":
  54361. return ec.fieldContext_Customer_firstName(ctx, field)
  54362. case "hasTimelineComment":
  54363. return ec.fieldContext_Customer_hasTimelineComment(ctx, field)
  54364. case "id":
  54365. return ec.fieldContext_Customer_id(ctx, field)
  54366. case "image":
  54367. return ec.fieldContext_Customer_image(ctx, field)
  54368. case "lastName":
  54369. return ec.fieldContext_Customer_lastName(ctx, field)
  54370. case "lastOrder":
  54371. return ec.fieldContext_Customer_lastOrder(ctx, field)
  54372. case "legacyResourceId":
  54373. return ec.fieldContext_Customer_legacyResourceId(ctx, field)
  54374. case "lifetimeDuration":
  54375. return ec.fieldContext_Customer_lifetimeDuration(ctx, field)
  54376. case "locale":
  54377. return ec.fieldContext_Customer_locale(ctx, field)
  54378. case "market":
  54379. return ec.fieldContext_Customer_market(ctx, field)
  54380. case "metafield":
  54381. return ec.fieldContext_Customer_metafield(ctx, field)
  54382. case "metafieldDefinitions":
  54383. return ec.fieldContext_Customer_metafieldDefinitions(ctx, field)
  54384. case "metafields":
  54385. return ec.fieldContext_Customer_metafields(ctx, field)
  54386. case "multipassIdentifier":
  54387. return ec.fieldContext_Customer_multipassIdentifier(ctx, field)
  54388. case "note":
  54389. return ec.fieldContext_Customer_note(ctx, field)
  54390. case "numberOfOrders":
  54391. return ec.fieldContext_Customer_numberOfOrders(ctx, field)
  54392. case "orders":
  54393. return ec.fieldContext_Customer_orders(ctx, field)
  54394. case "paymentMethods":
  54395. return ec.fieldContext_Customer_paymentMethods(ctx, field)
  54396. case "phone":
  54397. return ec.fieldContext_Customer_phone(ctx, field)
  54398. case "privateMetafield":
  54399. return ec.fieldContext_Customer_privateMetafield(ctx, field)
  54400. case "privateMetafields":
  54401. return ec.fieldContext_Customer_privateMetafields(ctx, field)
  54402. case "productSubscriberStatus":
  54403. return ec.fieldContext_Customer_productSubscriberStatus(ctx, field)
  54404. case "smsMarketingConsent":
  54405. return ec.fieldContext_Customer_smsMarketingConsent(ctx, field)
  54406. case "state":
  54407. return ec.fieldContext_Customer_state(ctx, field)
  54408. case "statistics":
  54409. return ec.fieldContext_Customer_statistics(ctx, field)
  54410. case "subscriptionContracts":
  54411. return ec.fieldContext_Customer_subscriptionContracts(ctx, field)
  54412. case "tags":
  54413. return ec.fieldContext_Customer_tags(ctx, field)
  54414. case "taxExempt":
  54415. return ec.fieldContext_Customer_taxExempt(ctx, field)
  54416. case "taxExemptions":
  54417. return ec.fieldContext_Customer_taxExemptions(ctx, field)
  54418. case "unsubscribeUrl":
  54419. return ec.fieldContext_Customer_unsubscribeUrl(ctx, field)
  54420. case "updatedAt":
  54421. return ec.fieldContext_Customer_updatedAt(ctx, field)
  54422. case "validEmailAddress":
  54423. return ec.fieldContext_Customer_validEmailAddress(ctx, field)
  54424. case "verifiedEmail":
  54425. return ec.fieldContext_Customer_verifiedEmail(ctx, field)
  54426. }
  54427. return nil, fmt.Errorf("no field named %q was found under type Customer", field.Name)
  54428. },
  54429. }
  54430. return fc, nil
  54431. }
  54432. func (ec *executionContext) _CustomerPaymentMethod_id(ctx context.Context, field graphql.CollectedField, obj *CustomerPaymentMethod) (ret graphql.Marshaler) {
  54433. fc, err := ec.fieldContext_CustomerPaymentMethod_id(ctx, field)
  54434. if err != nil {
  54435. return graphql.Null
  54436. }
  54437. ctx = graphql.WithFieldContext(ctx, fc)
  54438. defer func() {
  54439. if r := recover(); r != nil {
  54440. ec.Error(ctx, ec.Recover(ctx, r))
  54441. ret = graphql.Null
  54442. }
  54443. }()
  54444. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  54445. ctx = rctx // use context from middleware stack in children
  54446. return obj.ID, nil
  54447. })
  54448. if err != nil {
  54449. ec.Error(ctx, err)
  54450. return graphql.Null
  54451. }
  54452. if resTmp == nil {
  54453. if !graphql.HasFieldError(ctx, fc) {
  54454. ec.Errorf(ctx, "must not be null")
  54455. }
  54456. return graphql.Null
  54457. }
  54458. res := resTmp.(string)
  54459. fc.Result = res
  54460. return ec.marshalNID2string(ctx, field.Selections, res)
  54461. }
  54462. func (ec *executionContext) fieldContext_CustomerPaymentMethod_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  54463. fc = &graphql.FieldContext{
  54464. Object: "CustomerPaymentMethod",
  54465. Field: field,
  54466. IsMethod: false,
  54467. IsResolver: false,
  54468. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  54469. return nil, errors.New("field of type ID does not have child fields")
  54470. },
  54471. }
  54472. return fc, nil
  54473. }
  54474. func (ec *executionContext) _CustomerPaymentMethod_instrument(ctx context.Context, field graphql.CollectedField, obj *CustomerPaymentMethod) (ret graphql.Marshaler) {
  54475. fc, err := ec.fieldContext_CustomerPaymentMethod_instrument(ctx, field)
  54476. if err != nil {
  54477. return graphql.Null
  54478. }
  54479. ctx = graphql.WithFieldContext(ctx, fc)
  54480. defer func() {
  54481. if r := recover(); r != nil {
  54482. ec.Error(ctx, ec.Recover(ctx, r))
  54483. ret = graphql.Null
  54484. }
  54485. }()
  54486. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  54487. ctx = rctx // use context from middleware stack in children
  54488. return obj.Instrument, nil
  54489. })
  54490. if err != nil {
  54491. ec.Error(ctx, err)
  54492. return graphql.Null
  54493. }
  54494. if resTmp == nil {
  54495. return graphql.Null
  54496. }
  54497. res := resTmp.(CustomerPaymentInstrument)
  54498. fc.Result = res
  54499. return ec.marshalOCustomerPaymentInstrument2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerPaymentInstrument(ctx, field.Selections, res)
  54500. }
  54501. func (ec *executionContext) fieldContext_CustomerPaymentMethod_instrument(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  54502. fc = &graphql.FieldContext{
  54503. Object: "CustomerPaymentMethod",
  54504. Field: field,
  54505. IsMethod: false,
  54506. IsResolver: false,
  54507. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  54508. return nil, errors.New("field of type CustomerPaymentInstrument does not have child fields")
  54509. },
  54510. }
  54511. return fc, nil
  54512. }
  54513. func (ec *executionContext) _CustomerPaymentMethod_revokedAt(ctx context.Context, field graphql.CollectedField, obj *CustomerPaymentMethod) (ret graphql.Marshaler) {
  54514. fc, err := ec.fieldContext_CustomerPaymentMethod_revokedAt(ctx, field)
  54515. if err != nil {
  54516. return graphql.Null
  54517. }
  54518. ctx = graphql.WithFieldContext(ctx, fc)
  54519. defer func() {
  54520. if r := recover(); r != nil {
  54521. ec.Error(ctx, ec.Recover(ctx, r))
  54522. ret = graphql.Null
  54523. }
  54524. }()
  54525. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  54526. ctx = rctx // use context from middleware stack in children
  54527. return obj.RevokedAt, nil
  54528. })
  54529. if err != nil {
  54530. ec.Error(ctx, err)
  54531. return graphql.Null
  54532. }
  54533. if resTmp == nil {
  54534. return graphql.Null
  54535. }
  54536. res := resTmp.(*string)
  54537. fc.Result = res
  54538. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  54539. }
  54540. func (ec *executionContext) fieldContext_CustomerPaymentMethod_revokedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  54541. fc = &graphql.FieldContext{
  54542. Object: "CustomerPaymentMethod",
  54543. Field: field,
  54544. IsMethod: false,
  54545. IsResolver: false,
  54546. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  54547. return nil, errors.New("field of type DateTime does not have child fields")
  54548. },
  54549. }
  54550. return fc, nil
  54551. }
  54552. func (ec *executionContext) _CustomerPaymentMethod_revokedReason(ctx context.Context, field graphql.CollectedField, obj *CustomerPaymentMethod) (ret graphql.Marshaler) {
  54553. fc, err := ec.fieldContext_CustomerPaymentMethod_revokedReason(ctx, field)
  54554. if err != nil {
  54555. return graphql.Null
  54556. }
  54557. ctx = graphql.WithFieldContext(ctx, fc)
  54558. defer func() {
  54559. if r := recover(); r != nil {
  54560. ec.Error(ctx, ec.Recover(ctx, r))
  54561. ret = graphql.Null
  54562. }
  54563. }()
  54564. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  54565. ctx = rctx // use context from middleware stack in children
  54566. return obj.RevokedReason, nil
  54567. })
  54568. if err != nil {
  54569. ec.Error(ctx, err)
  54570. return graphql.Null
  54571. }
  54572. if resTmp == nil {
  54573. return graphql.Null
  54574. }
  54575. res := resTmp.(*CustomerPaymentMethodRevocationReason)
  54576. fc.Result = res
  54577. return ec.marshalOCustomerPaymentMethodRevocationReason2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerPaymentMethodRevocationReason(ctx, field.Selections, res)
  54578. }
  54579. func (ec *executionContext) fieldContext_CustomerPaymentMethod_revokedReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  54580. fc = &graphql.FieldContext{
  54581. Object: "CustomerPaymentMethod",
  54582. Field: field,
  54583. IsMethod: false,
  54584. IsResolver: false,
  54585. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  54586. return nil, errors.New("field of type CustomerPaymentMethodRevocationReason does not have child fields")
  54587. },
  54588. }
  54589. return fc, nil
  54590. }
  54591. func (ec *executionContext) _CustomerPaymentMethod_subscriptionContracts(ctx context.Context, field graphql.CollectedField, obj *CustomerPaymentMethod) (ret graphql.Marshaler) {
  54592. fc, err := ec.fieldContext_CustomerPaymentMethod_subscriptionContracts(ctx, field)
  54593. if err != nil {
  54594. return graphql.Null
  54595. }
  54596. ctx = graphql.WithFieldContext(ctx, fc)
  54597. defer func() {
  54598. if r := recover(); r != nil {
  54599. ec.Error(ctx, ec.Recover(ctx, r))
  54600. ret = graphql.Null
  54601. }
  54602. }()
  54603. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  54604. ctx = rctx // use context from middleware stack in children
  54605. return obj.SubscriptionContracts, nil
  54606. })
  54607. if err != nil {
  54608. ec.Error(ctx, err)
  54609. return graphql.Null
  54610. }
  54611. if resTmp == nil {
  54612. if !graphql.HasFieldError(ctx, fc) {
  54613. ec.Errorf(ctx, "must not be null")
  54614. }
  54615. return graphql.Null
  54616. }
  54617. res := resTmp.(*SubscriptionContractConnection)
  54618. fc.Result = res
  54619. return ec.marshalNSubscriptionContractConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionContractConnection(ctx, field.Selections, res)
  54620. }
  54621. func (ec *executionContext) fieldContext_CustomerPaymentMethod_subscriptionContracts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  54622. fc = &graphql.FieldContext{
  54623. Object: "CustomerPaymentMethod",
  54624. Field: field,
  54625. IsMethod: false,
  54626. IsResolver: false,
  54627. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  54628. switch field.Name {
  54629. case "edges":
  54630. return ec.fieldContext_SubscriptionContractConnection_edges(ctx, field)
  54631. case "nodes":
  54632. return ec.fieldContext_SubscriptionContractConnection_nodes(ctx, field)
  54633. case "pageInfo":
  54634. return ec.fieldContext_SubscriptionContractConnection_pageInfo(ctx, field)
  54635. }
  54636. return nil, fmt.Errorf("no field named %q was found under type SubscriptionContractConnection", field.Name)
  54637. },
  54638. }
  54639. defer func() {
  54640. if r := recover(); r != nil {
  54641. err = ec.Recover(ctx, r)
  54642. ec.Error(ctx, err)
  54643. }
  54644. }()
  54645. ctx = graphql.WithFieldContext(ctx, fc)
  54646. if fc.Args, err = ec.field_CustomerPaymentMethod_subscriptionContracts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  54647. ec.Error(ctx, err)
  54648. return
  54649. }
  54650. return fc, nil
  54651. }
  54652. func (ec *executionContext) _CustomerPaymentMethodConnection_edges(ctx context.Context, field graphql.CollectedField, obj *CustomerPaymentMethodConnection) (ret graphql.Marshaler) {
  54653. fc, err := ec.fieldContext_CustomerPaymentMethodConnection_edges(ctx, field)
  54654. if err != nil {
  54655. return graphql.Null
  54656. }
  54657. ctx = graphql.WithFieldContext(ctx, fc)
  54658. defer func() {
  54659. if r := recover(); r != nil {
  54660. ec.Error(ctx, ec.Recover(ctx, r))
  54661. ret = graphql.Null
  54662. }
  54663. }()
  54664. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  54665. ctx = rctx // use context from middleware stack in children
  54666. return obj.Edges, nil
  54667. })
  54668. if err != nil {
  54669. ec.Error(ctx, err)
  54670. return graphql.Null
  54671. }
  54672. if resTmp == nil {
  54673. if !graphql.HasFieldError(ctx, fc) {
  54674. ec.Errorf(ctx, "must not be null")
  54675. }
  54676. return graphql.Null
  54677. }
  54678. res := resTmp.([]*CustomerPaymentMethodEdge)
  54679. fc.Result = res
  54680. return ec.marshalNCustomerPaymentMethodEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerPaymentMethodEdgeᚄ(ctx, field.Selections, res)
  54681. }
  54682. func (ec *executionContext) fieldContext_CustomerPaymentMethodConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  54683. fc = &graphql.FieldContext{
  54684. Object: "CustomerPaymentMethodConnection",
  54685. Field: field,
  54686. IsMethod: false,
  54687. IsResolver: false,
  54688. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  54689. switch field.Name {
  54690. case "cursor":
  54691. return ec.fieldContext_CustomerPaymentMethodEdge_cursor(ctx, field)
  54692. case "node":
  54693. return ec.fieldContext_CustomerPaymentMethodEdge_node(ctx, field)
  54694. }
  54695. return nil, fmt.Errorf("no field named %q was found under type CustomerPaymentMethodEdge", field.Name)
  54696. },
  54697. }
  54698. return fc, nil
  54699. }
  54700. func (ec *executionContext) _CustomerPaymentMethodConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *CustomerPaymentMethodConnection) (ret graphql.Marshaler) {
  54701. fc, err := ec.fieldContext_CustomerPaymentMethodConnection_nodes(ctx, field)
  54702. if err != nil {
  54703. return graphql.Null
  54704. }
  54705. ctx = graphql.WithFieldContext(ctx, fc)
  54706. defer func() {
  54707. if r := recover(); r != nil {
  54708. ec.Error(ctx, ec.Recover(ctx, r))
  54709. ret = graphql.Null
  54710. }
  54711. }()
  54712. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  54713. ctx = rctx // use context from middleware stack in children
  54714. return obj.Nodes, nil
  54715. })
  54716. if err != nil {
  54717. ec.Error(ctx, err)
  54718. return graphql.Null
  54719. }
  54720. if resTmp == nil {
  54721. if !graphql.HasFieldError(ctx, fc) {
  54722. ec.Errorf(ctx, "must not be null")
  54723. }
  54724. return graphql.Null
  54725. }
  54726. res := resTmp.([]*CustomerPaymentMethod)
  54727. fc.Result = res
  54728. return ec.marshalNCustomerPaymentMethod2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerPaymentMethodᚄ(ctx, field.Selections, res)
  54729. }
  54730. func (ec *executionContext) fieldContext_CustomerPaymentMethodConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  54731. fc = &graphql.FieldContext{
  54732. Object: "CustomerPaymentMethodConnection",
  54733. Field: field,
  54734. IsMethod: false,
  54735. IsResolver: false,
  54736. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  54737. switch field.Name {
  54738. case "customer":
  54739. return ec.fieldContext_CustomerPaymentMethod_customer(ctx, field)
  54740. case "id":
  54741. return ec.fieldContext_CustomerPaymentMethod_id(ctx, field)
  54742. case "instrument":
  54743. return ec.fieldContext_CustomerPaymentMethod_instrument(ctx, field)
  54744. case "revokedAt":
  54745. return ec.fieldContext_CustomerPaymentMethod_revokedAt(ctx, field)
  54746. case "revokedReason":
  54747. return ec.fieldContext_CustomerPaymentMethod_revokedReason(ctx, field)
  54748. case "subscriptionContracts":
  54749. return ec.fieldContext_CustomerPaymentMethod_subscriptionContracts(ctx, field)
  54750. }
  54751. return nil, fmt.Errorf("no field named %q was found under type CustomerPaymentMethod", field.Name)
  54752. },
  54753. }
  54754. return fc, nil
  54755. }
  54756. func (ec *executionContext) _CustomerPaymentMethodConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *CustomerPaymentMethodConnection) (ret graphql.Marshaler) {
  54757. fc, err := ec.fieldContext_CustomerPaymentMethodConnection_pageInfo(ctx, field)
  54758. if err != nil {
  54759. return graphql.Null
  54760. }
  54761. ctx = graphql.WithFieldContext(ctx, fc)
  54762. defer func() {
  54763. if r := recover(); r != nil {
  54764. ec.Error(ctx, ec.Recover(ctx, r))
  54765. ret = graphql.Null
  54766. }
  54767. }()
  54768. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  54769. ctx = rctx // use context from middleware stack in children
  54770. return obj.PageInfo, nil
  54771. })
  54772. if err != nil {
  54773. ec.Error(ctx, err)
  54774. return graphql.Null
  54775. }
  54776. if resTmp == nil {
  54777. if !graphql.HasFieldError(ctx, fc) {
  54778. ec.Errorf(ctx, "must not be null")
  54779. }
  54780. return graphql.Null
  54781. }
  54782. res := resTmp.(*PageInfo)
  54783. fc.Result = res
  54784. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  54785. }
  54786. func (ec *executionContext) fieldContext_CustomerPaymentMethodConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  54787. fc = &graphql.FieldContext{
  54788. Object: "CustomerPaymentMethodConnection",
  54789. Field: field,
  54790. IsMethod: false,
  54791. IsResolver: false,
  54792. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  54793. switch field.Name {
  54794. case "endCursor":
  54795. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  54796. case "hasNextPage":
  54797. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  54798. case "hasPreviousPage":
  54799. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  54800. case "startCursor":
  54801. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  54802. }
  54803. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  54804. },
  54805. }
  54806. return fc, nil
  54807. }
  54808. func (ec *executionContext) _CustomerPaymentMethodEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *CustomerPaymentMethodEdge) (ret graphql.Marshaler) {
  54809. fc, err := ec.fieldContext_CustomerPaymentMethodEdge_cursor(ctx, field)
  54810. if err != nil {
  54811. return graphql.Null
  54812. }
  54813. ctx = graphql.WithFieldContext(ctx, fc)
  54814. defer func() {
  54815. if r := recover(); r != nil {
  54816. ec.Error(ctx, ec.Recover(ctx, r))
  54817. ret = graphql.Null
  54818. }
  54819. }()
  54820. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  54821. ctx = rctx // use context from middleware stack in children
  54822. return obj.Cursor, nil
  54823. })
  54824. if err != nil {
  54825. ec.Error(ctx, err)
  54826. return graphql.Null
  54827. }
  54828. if resTmp == nil {
  54829. if !graphql.HasFieldError(ctx, fc) {
  54830. ec.Errorf(ctx, "must not be null")
  54831. }
  54832. return graphql.Null
  54833. }
  54834. res := resTmp.(string)
  54835. fc.Result = res
  54836. return ec.marshalNString2string(ctx, field.Selections, res)
  54837. }
  54838. func (ec *executionContext) fieldContext_CustomerPaymentMethodEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  54839. fc = &graphql.FieldContext{
  54840. Object: "CustomerPaymentMethodEdge",
  54841. Field: field,
  54842. IsMethod: false,
  54843. IsResolver: false,
  54844. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  54845. return nil, errors.New("field of type String does not have child fields")
  54846. },
  54847. }
  54848. return fc, nil
  54849. }
  54850. func (ec *executionContext) _CustomerPaymentMethodEdge_node(ctx context.Context, field graphql.CollectedField, obj *CustomerPaymentMethodEdge) (ret graphql.Marshaler) {
  54851. fc, err := ec.fieldContext_CustomerPaymentMethodEdge_node(ctx, field)
  54852. if err != nil {
  54853. return graphql.Null
  54854. }
  54855. ctx = graphql.WithFieldContext(ctx, fc)
  54856. defer func() {
  54857. if r := recover(); r != nil {
  54858. ec.Error(ctx, ec.Recover(ctx, r))
  54859. ret = graphql.Null
  54860. }
  54861. }()
  54862. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  54863. ctx = rctx // use context from middleware stack in children
  54864. return obj.Node, nil
  54865. })
  54866. if err != nil {
  54867. ec.Error(ctx, err)
  54868. return graphql.Null
  54869. }
  54870. if resTmp == nil {
  54871. if !graphql.HasFieldError(ctx, fc) {
  54872. ec.Errorf(ctx, "must not be null")
  54873. }
  54874. return graphql.Null
  54875. }
  54876. res := resTmp.(*CustomerPaymentMethod)
  54877. fc.Result = res
  54878. return ec.marshalNCustomerPaymentMethod2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerPaymentMethod(ctx, field.Selections, res)
  54879. }
  54880. func (ec *executionContext) fieldContext_CustomerPaymentMethodEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  54881. fc = &graphql.FieldContext{
  54882. Object: "CustomerPaymentMethodEdge",
  54883. Field: field,
  54884. IsMethod: false,
  54885. IsResolver: false,
  54886. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  54887. switch field.Name {
  54888. case "customer":
  54889. return ec.fieldContext_CustomerPaymentMethod_customer(ctx, field)
  54890. case "id":
  54891. return ec.fieldContext_CustomerPaymentMethod_id(ctx, field)
  54892. case "instrument":
  54893. return ec.fieldContext_CustomerPaymentMethod_instrument(ctx, field)
  54894. case "revokedAt":
  54895. return ec.fieldContext_CustomerPaymentMethod_revokedAt(ctx, field)
  54896. case "revokedReason":
  54897. return ec.fieldContext_CustomerPaymentMethod_revokedReason(ctx, field)
  54898. case "subscriptionContracts":
  54899. return ec.fieldContext_CustomerPaymentMethod_subscriptionContracts(ctx, field)
  54900. }
  54901. return nil, fmt.Errorf("no field named %q was found under type CustomerPaymentMethod", field.Name)
  54902. },
  54903. }
  54904. return fc, nil
  54905. }
  54906. func (ec *executionContext) _CustomerPaypalBillingAgreement_billingAddress(ctx context.Context, field graphql.CollectedField, obj *CustomerPaypalBillingAgreement) (ret graphql.Marshaler) {
  54907. fc, err := ec.fieldContext_CustomerPaypalBillingAgreement_billingAddress(ctx, field)
  54908. if err != nil {
  54909. return graphql.Null
  54910. }
  54911. ctx = graphql.WithFieldContext(ctx, fc)
  54912. defer func() {
  54913. if r := recover(); r != nil {
  54914. ec.Error(ctx, ec.Recover(ctx, r))
  54915. ret = graphql.Null
  54916. }
  54917. }()
  54918. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  54919. ctx = rctx // use context from middleware stack in children
  54920. return obj.BillingAddress, nil
  54921. })
  54922. if err != nil {
  54923. ec.Error(ctx, err)
  54924. return graphql.Null
  54925. }
  54926. if resTmp == nil {
  54927. return graphql.Null
  54928. }
  54929. res := resTmp.(*CustomerPaymentInstrumentBillingAddress)
  54930. fc.Result = res
  54931. return ec.marshalOCustomerPaymentInstrumentBillingAddress2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerPaymentInstrumentBillingAddress(ctx, field.Selections, res)
  54932. }
  54933. func (ec *executionContext) fieldContext_CustomerPaypalBillingAgreement_billingAddress(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  54934. fc = &graphql.FieldContext{
  54935. Object: "CustomerPaypalBillingAgreement",
  54936. Field: field,
  54937. IsMethod: false,
  54938. IsResolver: false,
  54939. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  54940. switch field.Name {
  54941. case "address1":
  54942. return ec.fieldContext_CustomerPaymentInstrumentBillingAddress_address1(ctx, field)
  54943. case "city":
  54944. return ec.fieldContext_CustomerPaymentInstrumentBillingAddress_city(ctx, field)
  54945. case "country":
  54946. return ec.fieldContext_CustomerPaymentInstrumentBillingAddress_country(ctx, field)
  54947. case "countryCode":
  54948. return ec.fieldContext_CustomerPaymentInstrumentBillingAddress_countryCode(ctx, field)
  54949. case "name":
  54950. return ec.fieldContext_CustomerPaymentInstrumentBillingAddress_name(ctx, field)
  54951. case "province":
  54952. return ec.fieldContext_CustomerPaymentInstrumentBillingAddress_province(ctx, field)
  54953. case "provinceCode":
  54954. return ec.fieldContext_CustomerPaymentInstrumentBillingAddress_provinceCode(ctx, field)
  54955. case "zip":
  54956. return ec.fieldContext_CustomerPaymentInstrumentBillingAddress_zip(ctx, field)
  54957. }
  54958. return nil, fmt.Errorf("no field named %q was found under type CustomerPaymentInstrumentBillingAddress", field.Name)
  54959. },
  54960. }
  54961. return fc, nil
  54962. }
  54963. func (ec *executionContext) _CustomerPaypalBillingAgreement_inactive(ctx context.Context, field graphql.CollectedField, obj *CustomerPaypalBillingAgreement) (ret graphql.Marshaler) {
  54964. fc, err := ec.fieldContext_CustomerPaypalBillingAgreement_inactive(ctx, field)
  54965. if err != nil {
  54966. return graphql.Null
  54967. }
  54968. ctx = graphql.WithFieldContext(ctx, fc)
  54969. defer func() {
  54970. if r := recover(); r != nil {
  54971. ec.Error(ctx, ec.Recover(ctx, r))
  54972. ret = graphql.Null
  54973. }
  54974. }()
  54975. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  54976. ctx = rctx // use context from middleware stack in children
  54977. return obj.Inactive, nil
  54978. })
  54979. if err != nil {
  54980. ec.Error(ctx, err)
  54981. return graphql.Null
  54982. }
  54983. if resTmp == nil {
  54984. if !graphql.HasFieldError(ctx, fc) {
  54985. ec.Errorf(ctx, "must not be null")
  54986. }
  54987. return graphql.Null
  54988. }
  54989. res := resTmp.(bool)
  54990. fc.Result = res
  54991. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  54992. }
  54993. func (ec *executionContext) fieldContext_CustomerPaypalBillingAgreement_inactive(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  54994. fc = &graphql.FieldContext{
  54995. Object: "CustomerPaypalBillingAgreement",
  54996. Field: field,
  54997. IsMethod: false,
  54998. IsResolver: false,
  54999. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  55000. return nil, errors.New("field of type Boolean does not have child fields")
  55001. },
  55002. }
  55003. return fc, nil
  55004. }
  55005. func (ec *executionContext) _CustomerPaypalBillingAgreement_isRevocable(ctx context.Context, field graphql.CollectedField, obj *CustomerPaypalBillingAgreement) (ret graphql.Marshaler) {
  55006. fc, err := ec.fieldContext_CustomerPaypalBillingAgreement_isRevocable(ctx, field)
  55007. if err != nil {
  55008. return graphql.Null
  55009. }
  55010. ctx = graphql.WithFieldContext(ctx, fc)
  55011. defer func() {
  55012. if r := recover(); r != nil {
  55013. ec.Error(ctx, ec.Recover(ctx, r))
  55014. ret = graphql.Null
  55015. }
  55016. }()
  55017. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  55018. ctx = rctx // use context from middleware stack in children
  55019. return obj.IsRevocable, nil
  55020. })
  55021. if err != nil {
  55022. ec.Error(ctx, err)
  55023. return graphql.Null
  55024. }
  55025. if resTmp == nil {
  55026. if !graphql.HasFieldError(ctx, fc) {
  55027. ec.Errorf(ctx, "must not be null")
  55028. }
  55029. return graphql.Null
  55030. }
  55031. res := resTmp.(bool)
  55032. fc.Result = res
  55033. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  55034. }
  55035. func (ec *executionContext) fieldContext_CustomerPaypalBillingAgreement_isRevocable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  55036. fc = &graphql.FieldContext{
  55037. Object: "CustomerPaypalBillingAgreement",
  55038. Field: field,
  55039. IsMethod: false,
  55040. IsResolver: false,
  55041. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  55042. return nil, errors.New("field of type Boolean does not have child fields")
  55043. },
  55044. }
  55045. return fc, nil
  55046. }
  55047. func (ec *executionContext) _CustomerPaypalBillingAgreement_paypalAccountEmail(ctx context.Context, field graphql.CollectedField, obj *CustomerPaypalBillingAgreement) (ret graphql.Marshaler) {
  55048. fc, err := ec.fieldContext_CustomerPaypalBillingAgreement_paypalAccountEmail(ctx, field)
  55049. if err != nil {
  55050. return graphql.Null
  55051. }
  55052. ctx = graphql.WithFieldContext(ctx, fc)
  55053. defer func() {
  55054. if r := recover(); r != nil {
  55055. ec.Error(ctx, ec.Recover(ctx, r))
  55056. ret = graphql.Null
  55057. }
  55058. }()
  55059. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  55060. ctx = rctx // use context from middleware stack in children
  55061. return obj.PaypalAccountEmail, nil
  55062. })
  55063. if err != nil {
  55064. ec.Error(ctx, err)
  55065. return graphql.Null
  55066. }
  55067. if resTmp == nil {
  55068. return graphql.Null
  55069. }
  55070. res := resTmp.(*string)
  55071. fc.Result = res
  55072. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  55073. }
  55074. func (ec *executionContext) fieldContext_CustomerPaypalBillingAgreement_paypalAccountEmail(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  55075. fc = &graphql.FieldContext{
  55076. Object: "CustomerPaypalBillingAgreement",
  55077. Field: field,
  55078. IsMethod: false,
  55079. IsResolver: false,
  55080. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  55081. return nil, errors.New("field of type String does not have child fields")
  55082. },
  55083. }
  55084. return fc, nil
  55085. }
  55086. func (ec *executionContext) _CustomerShopPayAgreement_expiresSoon(ctx context.Context, field graphql.CollectedField, obj *CustomerShopPayAgreement) (ret graphql.Marshaler) {
  55087. fc, err := ec.fieldContext_CustomerShopPayAgreement_expiresSoon(ctx, field)
  55088. if err != nil {
  55089. return graphql.Null
  55090. }
  55091. ctx = graphql.WithFieldContext(ctx, fc)
  55092. defer func() {
  55093. if r := recover(); r != nil {
  55094. ec.Error(ctx, ec.Recover(ctx, r))
  55095. ret = graphql.Null
  55096. }
  55097. }()
  55098. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  55099. ctx = rctx // use context from middleware stack in children
  55100. return obj.ExpiresSoon, nil
  55101. })
  55102. if err != nil {
  55103. ec.Error(ctx, err)
  55104. return graphql.Null
  55105. }
  55106. if resTmp == nil {
  55107. if !graphql.HasFieldError(ctx, fc) {
  55108. ec.Errorf(ctx, "must not be null")
  55109. }
  55110. return graphql.Null
  55111. }
  55112. res := resTmp.(bool)
  55113. fc.Result = res
  55114. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  55115. }
  55116. func (ec *executionContext) fieldContext_CustomerShopPayAgreement_expiresSoon(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  55117. fc = &graphql.FieldContext{
  55118. Object: "CustomerShopPayAgreement",
  55119. Field: field,
  55120. IsMethod: false,
  55121. IsResolver: false,
  55122. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  55123. return nil, errors.New("field of type Boolean does not have child fields")
  55124. },
  55125. }
  55126. return fc, nil
  55127. }
  55128. func (ec *executionContext) _CustomerShopPayAgreement_expiryMonth(ctx context.Context, field graphql.CollectedField, obj *CustomerShopPayAgreement) (ret graphql.Marshaler) {
  55129. fc, err := ec.fieldContext_CustomerShopPayAgreement_expiryMonth(ctx, field)
  55130. if err != nil {
  55131. return graphql.Null
  55132. }
  55133. ctx = graphql.WithFieldContext(ctx, fc)
  55134. defer func() {
  55135. if r := recover(); r != nil {
  55136. ec.Error(ctx, ec.Recover(ctx, r))
  55137. ret = graphql.Null
  55138. }
  55139. }()
  55140. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  55141. ctx = rctx // use context from middleware stack in children
  55142. return obj.ExpiryMonth, nil
  55143. })
  55144. if err != nil {
  55145. ec.Error(ctx, err)
  55146. return graphql.Null
  55147. }
  55148. if resTmp == nil {
  55149. if !graphql.HasFieldError(ctx, fc) {
  55150. ec.Errorf(ctx, "must not be null")
  55151. }
  55152. return graphql.Null
  55153. }
  55154. res := resTmp.(int)
  55155. fc.Result = res
  55156. return ec.marshalNInt2int(ctx, field.Selections, res)
  55157. }
  55158. func (ec *executionContext) fieldContext_CustomerShopPayAgreement_expiryMonth(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  55159. fc = &graphql.FieldContext{
  55160. Object: "CustomerShopPayAgreement",
  55161. Field: field,
  55162. IsMethod: false,
  55163. IsResolver: false,
  55164. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  55165. return nil, errors.New("field of type Int does not have child fields")
  55166. },
  55167. }
  55168. return fc, nil
  55169. }
  55170. func (ec *executionContext) _CustomerShopPayAgreement_expiryYear(ctx context.Context, field graphql.CollectedField, obj *CustomerShopPayAgreement) (ret graphql.Marshaler) {
  55171. fc, err := ec.fieldContext_CustomerShopPayAgreement_expiryYear(ctx, field)
  55172. if err != nil {
  55173. return graphql.Null
  55174. }
  55175. ctx = graphql.WithFieldContext(ctx, fc)
  55176. defer func() {
  55177. if r := recover(); r != nil {
  55178. ec.Error(ctx, ec.Recover(ctx, r))
  55179. ret = graphql.Null
  55180. }
  55181. }()
  55182. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  55183. ctx = rctx // use context from middleware stack in children
  55184. return obj.ExpiryYear, nil
  55185. })
  55186. if err != nil {
  55187. ec.Error(ctx, err)
  55188. return graphql.Null
  55189. }
  55190. if resTmp == nil {
  55191. if !graphql.HasFieldError(ctx, fc) {
  55192. ec.Errorf(ctx, "must not be null")
  55193. }
  55194. return graphql.Null
  55195. }
  55196. res := resTmp.(int)
  55197. fc.Result = res
  55198. return ec.marshalNInt2int(ctx, field.Selections, res)
  55199. }
  55200. func (ec *executionContext) fieldContext_CustomerShopPayAgreement_expiryYear(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  55201. fc = &graphql.FieldContext{
  55202. Object: "CustomerShopPayAgreement",
  55203. Field: field,
  55204. IsMethod: false,
  55205. IsResolver: false,
  55206. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  55207. return nil, errors.New("field of type Int does not have child fields")
  55208. },
  55209. }
  55210. return fc, nil
  55211. }
  55212. func (ec *executionContext) _CustomerShopPayAgreement_inactive(ctx context.Context, field graphql.CollectedField, obj *CustomerShopPayAgreement) (ret graphql.Marshaler) {
  55213. fc, err := ec.fieldContext_CustomerShopPayAgreement_inactive(ctx, field)
  55214. if err != nil {
  55215. return graphql.Null
  55216. }
  55217. ctx = graphql.WithFieldContext(ctx, fc)
  55218. defer func() {
  55219. if r := recover(); r != nil {
  55220. ec.Error(ctx, ec.Recover(ctx, r))
  55221. ret = graphql.Null
  55222. }
  55223. }()
  55224. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  55225. ctx = rctx // use context from middleware stack in children
  55226. return obj.Inactive, nil
  55227. })
  55228. if err != nil {
  55229. ec.Error(ctx, err)
  55230. return graphql.Null
  55231. }
  55232. if resTmp == nil {
  55233. if !graphql.HasFieldError(ctx, fc) {
  55234. ec.Errorf(ctx, "must not be null")
  55235. }
  55236. return graphql.Null
  55237. }
  55238. res := resTmp.(bool)
  55239. fc.Result = res
  55240. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  55241. }
  55242. func (ec *executionContext) fieldContext_CustomerShopPayAgreement_inactive(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  55243. fc = &graphql.FieldContext{
  55244. Object: "CustomerShopPayAgreement",
  55245. Field: field,
  55246. IsMethod: false,
  55247. IsResolver: false,
  55248. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  55249. return nil, errors.New("field of type Boolean does not have child fields")
  55250. },
  55251. }
  55252. return fc, nil
  55253. }
  55254. func (ec *executionContext) _CustomerShopPayAgreement_isRevocable(ctx context.Context, field graphql.CollectedField, obj *CustomerShopPayAgreement) (ret graphql.Marshaler) {
  55255. fc, err := ec.fieldContext_CustomerShopPayAgreement_isRevocable(ctx, field)
  55256. if err != nil {
  55257. return graphql.Null
  55258. }
  55259. ctx = graphql.WithFieldContext(ctx, fc)
  55260. defer func() {
  55261. if r := recover(); r != nil {
  55262. ec.Error(ctx, ec.Recover(ctx, r))
  55263. ret = graphql.Null
  55264. }
  55265. }()
  55266. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  55267. ctx = rctx // use context from middleware stack in children
  55268. return obj.IsRevocable, nil
  55269. })
  55270. if err != nil {
  55271. ec.Error(ctx, err)
  55272. return graphql.Null
  55273. }
  55274. if resTmp == nil {
  55275. if !graphql.HasFieldError(ctx, fc) {
  55276. ec.Errorf(ctx, "must not be null")
  55277. }
  55278. return graphql.Null
  55279. }
  55280. res := resTmp.(bool)
  55281. fc.Result = res
  55282. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  55283. }
  55284. func (ec *executionContext) fieldContext_CustomerShopPayAgreement_isRevocable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  55285. fc = &graphql.FieldContext{
  55286. Object: "CustomerShopPayAgreement",
  55287. Field: field,
  55288. IsMethod: false,
  55289. IsResolver: false,
  55290. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  55291. return nil, errors.New("field of type Boolean does not have child fields")
  55292. },
  55293. }
  55294. return fc, nil
  55295. }
  55296. func (ec *executionContext) _CustomerShopPayAgreement_lastDigits(ctx context.Context, field graphql.CollectedField, obj *CustomerShopPayAgreement) (ret graphql.Marshaler) {
  55297. fc, err := ec.fieldContext_CustomerShopPayAgreement_lastDigits(ctx, field)
  55298. if err != nil {
  55299. return graphql.Null
  55300. }
  55301. ctx = graphql.WithFieldContext(ctx, fc)
  55302. defer func() {
  55303. if r := recover(); r != nil {
  55304. ec.Error(ctx, ec.Recover(ctx, r))
  55305. ret = graphql.Null
  55306. }
  55307. }()
  55308. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  55309. ctx = rctx // use context from middleware stack in children
  55310. return obj.LastDigits, nil
  55311. })
  55312. if err != nil {
  55313. ec.Error(ctx, err)
  55314. return graphql.Null
  55315. }
  55316. if resTmp == nil {
  55317. if !graphql.HasFieldError(ctx, fc) {
  55318. ec.Errorf(ctx, "must not be null")
  55319. }
  55320. return graphql.Null
  55321. }
  55322. res := resTmp.(string)
  55323. fc.Result = res
  55324. return ec.marshalNString2string(ctx, field.Selections, res)
  55325. }
  55326. func (ec *executionContext) fieldContext_CustomerShopPayAgreement_lastDigits(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  55327. fc = &graphql.FieldContext{
  55328. Object: "CustomerShopPayAgreement",
  55329. Field: field,
  55330. IsMethod: false,
  55331. IsResolver: false,
  55332. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  55333. return nil, errors.New("field of type String does not have child fields")
  55334. },
  55335. }
  55336. return fc, nil
  55337. }
  55338. func (ec *executionContext) _CustomerShopPayAgreement_maskedNumber(ctx context.Context, field graphql.CollectedField, obj *CustomerShopPayAgreement) (ret graphql.Marshaler) {
  55339. fc, err := ec.fieldContext_CustomerShopPayAgreement_maskedNumber(ctx, field)
  55340. if err != nil {
  55341. return graphql.Null
  55342. }
  55343. ctx = graphql.WithFieldContext(ctx, fc)
  55344. defer func() {
  55345. if r := recover(); r != nil {
  55346. ec.Error(ctx, ec.Recover(ctx, r))
  55347. ret = graphql.Null
  55348. }
  55349. }()
  55350. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  55351. ctx = rctx // use context from middleware stack in children
  55352. return obj.MaskedNumber, nil
  55353. })
  55354. if err != nil {
  55355. ec.Error(ctx, err)
  55356. return graphql.Null
  55357. }
  55358. if resTmp == nil {
  55359. if !graphql.HasFieldError(ctx, fc) {
  55360. ec.Errorf(ctx, "must not be null")
  55361. }
  55362. return graphql.Null
  55363. }
  55364. res := resTmp.(string)
  55365. fc.Result = res
  55366. return ec.marshalNString2string(ctx, field.Selections, res)
  55367. }
  55368. func (ec *executionContext) fieldContext_CustomerShopPayAgreement_maskedNumber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  55369. fc = &graphql.FieldContext{
  55370. Object: "CustomerShopPayAgreement",
  55371. Field: field,
  55372. IsMethod: false,
  55373. IsResolver: false,
  55374. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  55375. return nil, errors.New("field of type String does not have child fields")
  55376. },
  55377. }
  55378. return fc, nil
  55379. }
  55380. func (ec *executionContext) _CustomerShopPayAgreement_name(ctx context.Context, field graphql.CollectedField, obj *CustomerShopPayAgreement) (ret graphql.Marshaler) {
  55381. fc, err := ec.fieldContext_CustomerShopPayAgreement_name(ctx, field)
  55382. if err != nil {
  55383. return graphql.Null
  55384. }
  55385. ctx = graphql.WithFieldContext(ctx, fc)
  55386. defer func() {
  55387. if r := recover(); r != nil {
  55388. ec.Error(ctx, ec.Recover(ctx, r))
  55389. ret = graphql.Null
  55390. }
  55391. }()
  55392. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  55393. ctx = rctx // use context from middleware stack in children
  55394. return obj.Name, nil
  55395. })
  55396. if err != nil {
  55397. ec.Error(ctx, err)
  55398. return graphql.Null
  55399. }
  55400. if resTmp == nil {
  55401. if !graphql.HasFieldError(ctx, fc) {
  55402. ec.Errorf(ctx, "must not be null")
  55403. }
  55404. return graphql.Null
  55405. }
  55406. res := resTmp.(string)
  55407. fc.Result = res
  55408. return ec.marshalNString2string(ctx, field.Selections, res)
  55409. }
  55410. func (ec *executionContext) fieldContext_CustomerShopPayAgreement_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  55411. fc = &graphql.FieldContext{
  55412. Object: "CustomerShopPayAgreement",
  55413. Field: field,
  55414. IsMethod: false,
  55415. IsResolver: false,
  55416. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  55417. return nil, errors.New("field of type String does not have child fields")
  55418. },
  55419. }
  55420. return fc, nil
  55421. }
  55422. func (ec *executionContext) _CustomerSmsMarketingConsentState_consentCollectedFrom(ctx context.Context, field graphql.CollectedField, obj *CustomerSmsMarketingConsentState) (ret graphql.Marshaler) {
  55423. fc, err := ec.fieldContext_CustomerSmsMarketingConsentState_consentCollectedFrom(ctx, field)
  55424. if err != nil {
  55425. return graphql.Null
  55426. }
  55427. ctx = graphql.WithFieldContext(ctx, fc)
  55428. defer func() {
  55429. if r := recover(); r != nil {
  55430. ec.Error(ctx, ec.Recover(ctx, r))
  55431. ret = graphql.Null
  55432. }
  55433. }()
  55434. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  55435. ctx = rctx // use context from middleware stack in children
  55436. return obj.ConsentCollectedFrom, nil
  55437. })
  55438. if err != nil {
  55439. ec.Error(ctx, err)
  55440. return graphql.Null
  55441. }
  55442. if resTmp == nil {
  55443. return graphql.Null
  55444. }
  55445. res := resTmp.(*CustomerConsentCollectedFrom)
  55446. fc.Result = res
  55447. return ec.marshalOCustomerConsentCollectedFrom2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerConsentCollectedFrom(ctx, field.Selections, res)
  55448. }
  55449. func (ec *executionContext) fieldContext_CustomerSmsMarketingConsentState_consentCollectedFrom(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  55450. fc = &graphql.FieldContext{
  55451. Object: "CustomerSmsMarketingConsentState",
  55452. Field: field,
  55453. IsMethod: false,
  55454. IsResolver: false,
  55455. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  55456. return nil, errors.New("field of type CustomerConsentCollectedFrom does not have child fields")
  55457. },
  55458. }
  55459. return fc, nil
  55460. }
  55461. func (ec *executionContext) _CustomerSmsMarketingConsentState_consentUpdatedAt(ctx context.Context, field graphql.CollectedField, obj *CustomerSmsMarketingConsentState) (ret graphql.Marshaler) {
  55462. fc, err := ec.fieldContext_CustomerSmsMarketingConsentState_consentUpdatedAt(ctx, field)
  55463. if err != nil {
  55464. return graphql.Null
  55465. }
  55466. ctx = graphql.WithFieldContext(ctx, fc)
  55467. defer func() {
  55468. if r := recover(); r != nil {
  55469. ec.Error(ctx, ec.Recover(ctx, r))
  55470. ret = graphql.Null
  55471. }
  55472. }()
  55473. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  55474. ctx = rctx // use context from middleware stack in children
  55475. return obj.ConsentUpdatedAt, nil
  55476. })
  55477. if err != nil {
  55478. ec.Error(ctx, err)
  55479. return graphql.Null
  55480. }
  55481. if resTmp == nil {
  55482. return graphql.Null
  55483. }
  55484. res := resTmp.(*string)
  55485. fc.Result = res
  55486. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  55487. }
  55488. func (ec *executionContext) fieldContext_CustomerSmsMarketingConsentState_consentUpdatedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  55489. fc = &graphql.FieldContext{
  55490. Object: "CustomerSmsMarketingConsentState",
  55491. Field: field,
  55492. IsMethod: false,
  55493. IsResolver: false,
  55494. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  55495. return nil, errors.New("field of type DateTime does not have child fields")
  55496. },
  55497. }
  55498. return fc, nil
  55499. }
  55500. func (ec *executionContext) _CustomerSmsMarketingConsentState_marketingOptInLevel(ctx context.Context, field graphql.CollectedField, obj *CustomerSmsMarketingConsentState) (ret graphql.Marshaler) {
  55501. fc, err := ec.fieldContext_CustomerSmsMarketingConsentState_marketingOptInLevel(ctx, field)
  55502. if err != nil {
  55503. return graphql.Null
  55504. }
  55505. ctx = graphql.WithFieldContext(ctx, fc)
  55506. defer func() {
  55507. if r := recover(); r != nil {
  55508. ec.Error(ctx, ec.Recover(ctx, r))
  55509. ret = graphql.Null
  55510. }
  55511. }()
  55512. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  55513. ctx = rctx // use context from middleware stack in children
  55514. return obj.MarketingOptInLevel, nil
  55515. })
  55516. if err != nil {
  55517. ec.Error(ctx, err)
  55518. return graphql.Null
  55519. }
  55520. if resTmp == nil {
  55521. if !graphql.HasFieldError(ctx, fc) {
  55522. ec.Errorf(ctx, "must not be null")
  55523. }
  55524. return graphql.Null
  55525. }
  55526. res := resTmp.(CustomerMarketingOptInLevel)
  55527. fc.Result = res
  55528. return ec.marshalNCustomerMarketingOptInLevel2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerMarketingOptInLevel(ctx, field.Selections, res)
  55529. }
  55530. func (ec *executionContext) fieldContext_CustomerSmsMarketingConsentState_marketingOptInLevel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  55531. fc = &graphql.FieldContext{
  55532. Object: "CustomerSmsMarketingConsentState",
  55533. Field: field,
  55534. IsMethod: false,
  55535. IsResolver: false,
  55536. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  55537. return nil, errors.New("field of type CustomerMarketingOptInLevel does not have child fields")
  55538. },
  55539. }
  55540. return fc, nil
  55541. }
  55542. func (ec *executionContext) _CustomerSmsMarketingConsentState_marketingState(ctx context.Context, field graphql.CollectedField, obj *CustomerSmsMarketingConsentState) (ret graphql.Marshaler) {
  55543. fc, err := ec.fieldContext_CustomerSmsMarketingConsentState_marketingState(ctx, field)
  55544. if err != nil {
  55545. return graphql.Null
  55546. }
  55547. ctx = graphql.WithFieldContext(ctx, fc)
  55548. defer func() {
  55549. if r := recover(); r != nil {
  55550. ec.Error(ctx, ec.Recover(ctx, r))
  55551. ret = graphql.Null
  55552. }
  55553. }()
  55554. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  55555. ctx = rctx // use context from middleware stack in children
  55556. return obj.MarketingState, nil
  55557. })
  55558. if err != nil {
  55559. ec.Error(ctx, err)
  55560. return graphql.Null
  55561. }
  55562. if resTmp == nil {
  55563. if !graphql.HasFieldError(ctx, fc) {
  55564. ec.Errorf(ctx, "must not be null")
  55565. }
  55566. return graphql.Null
  55567. }
  55568. res := resTmp.(CustomerSmsMarketingState)
  55569. fc.Result = res
  55570. return ec.marshalNCustomerSmsMarketingState2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerSmsMarketingState(ctx, field.Selections, res)
  55571. }
  55572. func (ec *executionContext) fieldContext_CustomerSmsMarketingConsentState_marketingState(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  55573. fc = &graphql.FieldContext{
  55574. Object: "CustomerSmsMarketingConsentState",
  55575. Field: field,
  55576. IsMethod: false,
  55577. IsResolver: false,
  55578. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  55579. return nil, errors.New("field of type CustomerSmsMarketingState does not have child fields")
  55580. },
  55581. }
  55582. return fc, nil
  55583. }
  55584. func (ec *executionContext) _CustomerStatistics_predictedSpendTier(ctx context.Context, field graphql.CollectedField, obj *CustomerStatistics) (ret graphql.Marshaler) {
  55585. fc, err := ec.fieldContext_CustomerStatistics_predictedSpendTier(ctx, field)
  55586. if err != nil {
  55587. return graphql.Null
  55588. }
  55589. ctx = graphql.WithFieldContext(ctx, fc)
  55590. defer func() {
  55591. if r := recover(); r != nil {
  55592. ec.Error(ctx, ec.Recover(ctx, r))
  55593. ret = graphql.Null
  55594. }
  55595. }()
  55596. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  55597. ctx = rctx // use context from middleware stack in children
  55598. return obj.PredictedSpendTier, nil
  55599. })
  55600. if err != nil {
  55601. ec.Error(ctx, err)
  55602. return graphql.Null
  55603. }
  55604. if resTmp == nil {
  55605. return graphql.Null
  55606. }
  55607. res := resTmp.(*CustomerPredictedSpendTier)
  55608. fc.Result = res
  55609. return ec.marshalOCustomerPredictedSpendTier2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerPredictedSpendTier(ctx, field.Selections, res)
  55610. }
  55611. func (ec *executionContext) fieldContext_CustomerStatistics_predictedSpendTier(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  55612. fc = &graphql.FieldContext{
  55613. Object: "CustomerStatistics",
  55614. Field: field,
  55615. IsMethod: false,
  55616. IsResolver: false,
  55617. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  55618. return nil, errors.New("field of type CustomerPredictedSpendTier does not have child fields")
  55619. },
  55620. }
  55621. return fc, nil
  55622. }
  55623. func (ec *executionContext) _CustomerVisit_id(ctx context.Context, field graphql.CollectedField, obj *CustomerVisit) (ret graphql.Marshaler) {
  55624. fc, err := ec.fieldContext_CustomerVisit_id(ctx, field)
  55625. if err != nil {
  55626. return graphql.Null
  55627. }
  55628. ctx = graphql.WithFieldContext(ctx, fc)
  55629. defer func() {
  55630. if r := recover(); r != nil {
  55631. ec.Error(ctx, ec.Recover(ctx, r))
  55632. ret = graphql.Null
  55633. }
  55634. }()
  55635. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  55636. ctx = rctx // use context from middleware stack in children
  55637. return obj.ID, nil
  55638. })
  55639. if err != nil {
  55640. ec.Error(ctx, err)
  55641. return graphql.Null
  55642. }
  55643. if resTmp == nil {
  55644. if !graphql.HasFieldError(ctx, fc) {
  55645. ec.Errorf(ctx, "must not be null")
  55646. }
  55647. return graphql.Null
  55648. }
  55649. res := resTmp.(string)
  55650. fc.Result = res
  55651. return ec.marshalNID2string(ctx, field.Selections, res)
  55652. }
  55653. func (ec *executionContext) fieldContext_CustomerVisit_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  55654. fc = &graphql.FieldContext{
  55655. Object: "CustomerVisit",
  55656. Field: field,
  55657. IsMethod: false,
  55658. IsResolver: false,
  55659. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  55660. return nil, errors.New("field of type ID does not have child fields")
  55661. },
  55662. }
  55663. return fc, nil
  55664. }
  55665. func (ec *executionContext) _CustomerVisit_landingPage(ctx context.Context, field graphql.CollectedField, obj *CustomerVisit) (ret graphql.Marshaler) {
  55666. fc, err := ec.fieldContext_CustomerVisit_landingPage(ctx, field)
  55667. if err != nil {
  55668. return graphql.Null
  55669. }
  55670. ctx = graphql.WithFieldContext(ctx, fc)
  55671. defer func() {
  55672. if r := recover(); r != nil {
  55673. ec.Error(ctx, ec.Recover(ctx, r))
  55674. ret = graphql.Null
  55675. }
  55676. }()
  55677. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  55678. ctx = rctx // use context from middleware stack in children
  55679. return obj.LandingPage, nil
  55680. })
  55681. if err != nil {
  55682. ec.Error(ctx, err)
  55683. return graphql.Null
  55684. }
  55685. if resTmp == nil {
  55686. return graphql.Null
  55687. }
  55688. res := resTmp.(*string)
  55689. fc.Result = res
  55690. return ec.marshalOURL2ᚖstring(ctx, field.Selections, res)
  55691. }
  55692. func (ec *executionContext) fieldContext_CustomerVisit_landingPage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  55693. fc = &graphql.FieldContext{
  55694. Object: "CustomerVisit",
  55695. Field: field,
  55696. IsMethod: false,
  55697. IsResolver: false,
  55698. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  55699. return nil, errors.New("field of type URL does not have child fields")
  55700. },
  55701. }
  55702. return fc, nil
  55703. }
  55704. func (ec *executionContext) _CustomerVisit_landingPageHtml(ctx context.Context, field graphql.CollectedField, obj *CustomerVisit) (ret graphql.Marshaler) {
  55705. fc, err := ec.fieldContext_CustomerVisit_landingPageHtml(ctx, field)
  55706. if err != nil {
  55707. return graphql.Null
  55708. }
  55709. ctx = graphql.WithFieldContext(ctx, fc)
  55710. defer func() {
  55711. if r := recover(); r != nil {
  55712. ec.Error(ctx, ec.Recover(ctx, r))
  55713. ret = graphql.Null
  55714. }
  55715. }()
  55716. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  55717. ctx = rctx // use context from middleware stack in children
  55718. return obj.LandingPageHTML, nil
  55719. })
  55720. if err != nil {
  55721. ec.Error(ctx, err)
  55722. return graphql.Null
  55723. }
  55724. if resTmp == nil {
  55725. return graphql.Null
  55726. }
  55727. res := resTmp.(*string)
  55728. fc.Result = res
  55729. return ec.marshalOHTML2ᚖstring(ctx, field.Selections, res)
  55730. }
  55731. func (ec *executionContext) fieldContext_CustomerVisit_landingPageHtml(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  55732. fc = &graphql.FieldContext{
  55733. Object: "CustomerVisit",
  55734. Field: field,
  55735. IsMethod: false,
  55736. IsResolver: false,
  55737. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  55738. return nil, errors.New("field of type HTML does not have child fields")
  55739. },
  55740. }
  55741. return fc, nil
  55742. }
  55743. func (ec *executionContext) _CustomerVisit_marketingEvent(ctx context.Context, field graphql.CollectedField, obj *CustomerVisit) (ret graphql.Marshaler) {
  55744. fc, err := ec.fieldContext_CustomerVisit_marketingEvent(ctx, field)
  55745. if err != nil {
  55746. return graphql.Null
  55747. }
  55748. ctx = graphql.WithFieldContext(ctx, fc)
  55749. defer func() {
  55750. if r := recover(); r != nil {
  55751. ec.Error(ctx, ec.Recover(ctx, r))
  55752. ret = graphql.Null
  55753. }
  55754. }()
  55755. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  55756. ctx = rctx // use context from middleware stack in children
  55757. return obj.MarketingEvent, nil
  55758. })
  55759. if err != nil {
  55760. ec.Error(ctx, err)
  55761. return graphql.Null
  55762. }
  55763. if resTmp == nil {
  55764. return graphql.Null
  55765. }
  55766. res := resTmp.(*MarketingEvent)
  55767. fc.Result = res
  55768. return ec.marshalOMarketingEvent2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketingEvent(ctx, field.Selections, res)
  55769. }
  55770. func (ec *executionContext) fieldContext_CustomerVisit_marketingEvent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  55771. fc = &graphql.FieldContext{
  55772. Object: "CustomerVisit",
  55773. Field: field,
  55774. IsMethod: false,
  55775. IsResolver: false,
  55776. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  55777. switch field.Name {
  55778. case "app":
  55779. return ec.fieldContext_MarketingEvent_app(ctx, field)
  55780. case "channel":
  55781. return ec.fieldContext_MarketingEvent_channel(ctx, field)
  55782. case "description":
  55783. return ec.fieldContext_MarketingEvent_description(ctx, field)
  55784. case "endedAt":
  55785. return ec.fieldContext_MarketingEvent_endedAt(ctx, field)
  55786. case "id":
  55787. return ec.fieldContext_MarketingEvent_id(ctx, field)
  55788. case "legacyResourceId":
  55789. return ec.fieldContext_MarketingEvent_legacyResourceId(ctx, field)
  55790. case "manageUrl":
  55791. return ec.fieldContext_MarketingEvent_manageUrl(ctx, field)
  55792. case "previewUrl":
  55793. return ec.fieldContext_MarketingEvent_previewUrl(ctx, field)
  55794. case "remoteId":
  55795. return ec.fieldContext_MarketingEvent_remoteId(ctx, field)
  55796. case "scheduledToEndAt":
  55797. return ec.fieldContext_MarketingEvent_scheduledToEndAt(ctx, field)
  55798. case "sourceAndMedium":
  55799. return ec.fieldContext_MarketingEvent_sourceAndMedium(ctx, field)
  55800. case "startedAt":
  55801. return ec.fieldContext_MarketingEvent_startedAt(ctx, field)
  55802. case "type":
  55803. return ec.fieldContext_MarketingEvent_type(ctx, field)
  55804. case "utmCampaign":
  55805. return ec.fieldContext_MarketingEvent_utmCampaign(ctx, field)
  55806. case "utmMedium":
  55807. return ec.fieldContext_MarketingEvent_utmMedium(ctx, field)
  55808. case "utmSource":
  55809. return ec.fieldContext_MarketingEvent_utmSource(ctx, field)
  55810. }
  55811. return nil, fmt.Errorf("no field named %q was found under type MarketingEvent", field.Name)
  55812. },
  55813. }
  55814. return fc, nil
  55815. }
  55816. func (ec *executionContext) _CustomerVisit_occurredAt(ctx context.Context, field graphql.CollectedField, obj *CustomerVisit) (ret graphql.Marshaler) {
  55817. fc, err := ec.fieldContext_CustomerVisit_occurredAt(ctx, field)
  55818. if err != nil {
  55819. return graphql.Null
  55820. }
  55821. ctx = graphql.WithFieldContext(ctx, fc)
  55822. defer func() {
  55823. if r := recover(); r != nil {
  55824. ec.Error(ctx, ec.Recover(ctx, r))
  55825. ret = graphql.Null
  55826. }
  55827. }()
  55828. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  55829. ctx = rctx // use context from middleware stack in children
  55830. return obj.OccurredAt, nil
  55831. })
  55832. if err != nil {
  55833. ec.Error(ctx, err)
  55834. return graphql.Null
  55835. }
  55836. if resTmp == nil {
  55837. if !graphql.HasFieldError(ctx, fc) {
  55838. ec.Errorf(ctx, "must not be null")
  55839. }
  55840. return graphql.Null
  55841. }
  55842. res := resTmp.(string)
  55843. fc.Result = res
  55844. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  55845. }
  55846. func (ec *executionContext) fieldContext_CustomerVisit_occurredAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  55847. fc = &graphql.FieldContext{
  55848. Object: "CustomerVisit",
  55849. Field: field,
  55850. IsMethod: false,
  55851. IsResolver: false,
  55852. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  55853. return nil, errors.New("field of type DateTime does not have child fields")
  55854. },
  55855. }
  55856. return fc, nil
  55857. }
  55858. func (ec *executionContext) _CustomerVisit_referralCode(ctx context.Context, field graphql.CollectedField, obj *CustomerVisit) (ret graphql.Marshaler) {
  55859. fc, err := ec.fieldContext_CustomerVisit_referralCode(ctx, field)
  55860. if err != nil {
  55861. return graphql.Null
  55862. }
  55863. ctx = graphql.WithFieldContext(ctx, fc)
  55864. defer func() {
  55865. if r := recover(); r != nil {
  55866. ec.Error(ctx, ec.Recover(ctx, r))
  55867. ret = graphql.Null
  55868. }
  55869. }()
  55870. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  55871. ctx = rctx // use context from middleware stack in children
  55872. return obj.ReferralCode, nil
  55873. })
  55874. if err != nil {
  55875. ec.Error(ctx, err)
  55876. return graphql.Null
  55877. }
  55878. if resTmp == nil {
  55879. return graphql.Null
  55880. }
  55881. res := resTmp.(*string)
  55882. fc.Result = res
  55883. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  55884. }
  55885. func (ec *executionContext) fieldContext_CustomerVisit_referralCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  55886. fc = &graphql.FieldContext{
  55887. Object: "CustomerVisit",
  55888. Field: field,
  55889. IsMethod: false,
  55890. IsResolver: false,
  55891. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  55892. return nil, errors.New("field of type String does not have child fields")
  55893. },
  55894. }
  55895. return fc, nil
  55896. }
  55897. func (ec *executionContext) _CustomerVisit_referralInfoHtml(ctx context.Context, field graphql.CollectedField, obj *CustomerVisit) (ret graphql.Marshaler) {
  55898. fc, err := ec.fieldContext_CustomerVisit_referralInfoHtml(ctx, field)
  55899. if err != nil {
  55900. return graphql.Null
  55901. }
  55902. ctx = graphql.WithFieldContext(ctx, fc)
  55903. defer func() {
  55904. if r := recover(); r != nil {
  55905. ec.Error(ctx, ec.Recover(ctx, r))
  55906. ret = graphql.Null
  55907. }
  55908. }()
  55909. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  55910. ctx = rctx // use context from middleware stack in children
  55911. return obj.ReferralInfoHTML, nil
  55912. })
  55913. if err != nil {
  55914. ec.Error(ctx, err)
  55915. return graphql.Null
  55916. }
  55917. if resTmp == nil {
  55918. if !graphql.HasFieldError(ctx, fc) {
  55919. ec.Errorf(ctx, "must not be null")
  55920. }
  55921. return graphql.Null
  55922. }
  55923. res := resTmp.(string)
  55924. fc.Result = res
  55925. return ec.marshalNFormattedString2string(ctx, field.Selections, res)
  55926. }
  55927. func (ec *executionContext) fieldContext_CustomerVisit_referralInfoHtml(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  55928. fc = &graphql.FieldContext{
  55929. Object: "CustomerVisit",
  55930. Field: field,
  55931. IsMethod: false,
  55932. IsResolver: false,
  55933. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  55934. return nil, errors.New("field of type FormattedString does not have child fields")
  55935. },
  55936. }
  55937. return fc, nil
  55938. }
  55939. func (ec *executionContext) _CustomerVisit_referrerUrl(ctx context.Context, field graphql.CollectedField, obj *CustomerVisit) (ret graphql.Marshaler) {
  55940. fc, err := ec.fieldContext_CustomerVisit_referrerUrl(ctx, field)
  55941. if err != nil {
  55942. return graphql.Null
  55943. }
  55944. ctx = graphql.WithFieldContext(ctx, fc)
  55945. defer func() {
  55946. if r := recover(); r != nil {
  55947. ec.Error(ctx, ec.Recover(ctx, r))
  55948. ret = graphql.Null
  55949. }
  55950. }()
  55951. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  55952. ctx = rctx // use context from middleware stack in children
  55953. return obj.ReferrerURL, nil
  55954. })
  55955. if err != nil {
  55956. ec.Error(ctx, err)
  55957. return graphql.Null
  55958. }
  55959. if resTmp == nil {
  55960. return graphql.Null
  55961. }
  55962. res := resTmp.(*string)
  55963. fc.Result = res
  55964. return ec.marshalOURL2ᚖstring(ctx, field.Selections, res)
  55965. }
  55966. func (ec *executionContext) fieldContext_CustomerVisit_referrerUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  55967. fc = &graphql.FieldContext{
  55968. Object: "CustomerVisit",
  55969. Field: field,
  55970. IsMethod: false,
  55971. IsResolver: false,
  55972. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  55973. return nil, errors.New("field of type URL does not have child fields")
  55974. },
  55975. }
  55976. return fc, nil
  55977. }
  55978. func (ec *executionContext) _CustomerVisit_source(ctx context.Context, field graphql.CollectedField, obj *CustomerVisit) (ret graphql.Marshaler) {
  55979. fc, err := ec.fieldContext_CustomerVisit_source(ctx, field)
  55980. if err != nil {
  55981. return graphql.Null
  55982. }
  55983. ctx = graphql.WithFieldContext(ctx, fc)
  55984. defer func() {
  55985. if r := recover(); r != nil {
  55986. ec.Error(ctx, ec.Recover(ctx, r))
  55987. ret = graphql.Null
  55988. }
  55989. }()
  55990. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  55991. ctx = rctx // use context from middleware stack in children
  55992. return obj.Source, nil
  55993. })
  55994. if err != nil {
  55995. ec.Error(ctx, err)
  55996. return graphql.Null
  55997. }
  55998. if resTmp == nil {
  55999. if !graphql.HasFieldError(ctx, fc) {
  56000. ec.Errorf(ctx, "must not be null")
  56001. }
  56002. return graphql.Null
  56003. }
  56004. res := resTmp.(string)
  56005. fc.Result = res
  56006. return ec.marshalNString2string(ctx, field.Selections, res)
  56007. }
  56008. func (ec *executionContext) fieldContext_CustomerVisit_source(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  56009. fc = &graphql.FieldContext{
  56010. Object: "CustomerVisit",
  56011. Field: field,
  56012. IsMethod: false,
  56013. IsResolver: false,
  56014. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  56015. return nil, errors.New("field of type String does not have child fields")
  56016. },
  56017. }
  56018. return fc, nil
  56019. }
  56020. func (ec *executionContext) _CustomerVisit_sourceDescription(ctx context.Context, field graphql.CollectedField, obj *CustomerVisit) (ret graphql.Marshaler) {
  56021. fc, err := ec.fieldContext_CustomerVisit_sourceDescription(ctx, field)
  56022. if err != nil {
  56023. return graphql.Null
  56024. }
  56025. ctx = graphql.WithFieldContext(ctx, fc)
  56026. defer func() {
  56027. if r := recover(); r != nil {
  56028. ec.Error(ctx, ec.Recover(ctx, r))
  56029. ret = graphql.Null
  56030. }
  56031. }()
  56032. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  56033. ctx = rctx // use context from middleware stack in children
  56034. return obj.SourceDescription, nil
  56035. })
  56036. if err != nil {
  56037. ec.Error(ctx, err)
  56038. return graphql.Null
  56039. }
  56040. if resTmp == nil {
  56041. return graphql.Null
  56042. }
  56043. res := resTmp.(*string)
  56044. fc.Result = res
  56045. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  56046. }
  56047. func (ec *executionContext) fieldContext_CustomerVisit_sourceDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  56048. fc = &graphql.FieldContext{
  56049. Object: "CustomerVisit",
  56050. Field: field,
  56051. IsMethod: false,
  56052. IsResolver: false,
  56053. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  56054. return nil, errors.New("field of type String does not have child fields")
  56055. },
  56056. }
  56057. return fc, nil
  56058. }
  56059. func (ec *executionContext) _CustomerVisit_sourceType(ctx context.Context, field graphql.CollectedField, obj *CustomerVisit) (ret graphql.Marshaler) {
  56060. fc, err := ec.fieldContext_CustomerVisit_sourceType(ctx, field)
  56061. if err != nil {
  56062. return graphql.Null
  56063. }
  56064. ctx = graphql.WithFieldContext(ctx, fc)
  56065. defer func() {
  56066. if r := recover(); r != nil {
  56067. ec.Error(ctx, ec.Recover(ctx, r))
  56068. ret = graphql.Null
  56069. }
  56070. }()
  56071. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  56072. ctx = rctx // use context from middleware stack in children
  56073. return obj.SourceType, nil
  56074. })
  56075. if err != nil {
  56076. ec.Error(ctx, err)
  56077. return graphql.Null
  56078. }
  56079. if resTmp == nil {
  56080. return graphql.Null
  56081. }
  56082. res := resTmp.(*MarketingTactic)
  56083. fc.Result = res
  56084. return ec.marshalOMarketingTactic2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketingTactic(ctx, field.Selections, res)
  56085. }
  56086. func (ec *executionContext) fieldContext_CustomerVisit_sourceType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  56087. fc = &graphql.FieldContext{
  56088. Object: "CustomerVisit",
  56089. Field: field,
  56090. IsMethod: false,
  56091. IsResolver: false,
  56092. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  56093. return nil, errors.New("field of type MarketingTactic does not have child fields")
  56094. },
  56095. }
  56096. return fc, nil
  56097. }
  56098. func (ec *executionContext) _CustomerVisit_utmParameters(ctx context.Context, field graphql.CollectedField, obj *CustomerVisit) (ret graphql.Marshaler) {
  56099. fc, err := ec.fieldContext_CustomerVisit_utmParameters(ctx, field)
  56100. if err != nil {
  56101. return graphql.Null
  56102. }
  56103. ctx = graphql.WithFieldContext(ctx, fc)
  56104. defer func() {
  56105. if r := recover(); r != nil {
  56106. ec.Error(ctx, ec.Recover(ctx, r))
  56107. ret = graphql.Null
  56108. }
  56109. }()
  56110. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  56111. ctx = rctx // use context from middleware stack in children
  56112. return obj.UtmParameters, nil
  56113. })
  56114. if err != nil {
  56115. ec.Error(ctx, err)
  56116. return graphql.Null
  56117. }
  56118. if resTmp == nil {
  56119. return graphql.Null
  56120. }
  56121. res := resTmp.(*UTMParameters)
  56122. fc.Result = res
  56123. return ec.marshalOUTMParameters2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐUTMParameters(ctx, field.Selections, res)
  56124. }
  56125. func (ec *executionContext) fieldContext_CustomerVisit_utmParameters(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  56126. fc = &graphql.FieldContext{
  56127. Object: "CustomerVisit",
  56128. Field: field,
  56129. IsMethod: false,
  56130. IsResolver: false,
  56131. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  56132. switch field.Name {
  56133. case "campaign":
  56134. return ec.fieldContext_UTMParameters_campaign(ctx, field)
  56135. case "content":
  56136. return ec.fieldContext_UTMParameters_content(ctx, field)
  56137. case "medium":
  56138. return ec.fieldContext_UTMParameters_medium(ctx, field)
  56139. case "source":
  56140. return ec.fieldContext_UTMParameters_source(ctx, field)
  56141. case "term":
  56142. return ec.fieldContext_UTMParameters_term(ctx, field)
  56143. }
  56144. return nil, fmt.Errorf("no field named %q was found under type UTMParameters", field.Name)
  56145. },
  56146. }
  56147. return fc, nil
  56148. }
  56149. func (ec *executionContext) _DeliveryAvailableService_countries(ctx context.Context, field graphql.CollectedField, obj *DeliveryAvailableService) (ret graphql.Marshaler) {
  56150. fc, err := ec.fieldContext_DeliveryAvailableService_countries(ctx, field)
  56151. if err != nil {
  56152. return graphql.Null
  56153. }
  56154. ctx = graphql.WithFieldContext(ctx, fc)
  56155. defer func() {
  56156. if r := recover(); r != nil {
  56157. ec.Error(ctx, ec.Recover(ctx, r))
  56158. ret = graphql.Null
  56159. }
  56160. }()
  56161. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  56162. ctx = rctx // use context from middleware stack in children
  56163. return obj.Countries, nil
  56164. })
  56165. if err != nil {
  56166. ec.Error(ctx, err)
  56167. return graphql.Null
  56168. }
  56169. if resTmp == nil {
  56170. if !graphql.HasFieldError(ctx, fc) {
  56171. ec.Errorf(ctx, "must not be null")
  56172. }
  56173. return graphql.Null
  56174. }
  56175. res := resTmp.(*DeliveryCountryCodesOrRestOfWorld)
  56176. fc.Result = res
  56177. return ec.marshalNDeliveryCountryCodesOrRestOfWorld2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryCountryCodesOrRestOfWorld(ctx, field.Selections, res)
  56178. }
  56179. func (ec *executionContext) fieldContext_DeliveryAvailableService_countries(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  56180. fc = &graphql.FieldContext{
  56181. Object: "DeliveryAvailableService",
  56182. Field: field,
  56183. IsMethod: false,
  56184. IsResolver: false,
  56185. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  56186. switch field.Name {
  56187. case "countryCodes":
  56188. return ec.fieldContext_DeliveryCountryCodesOrRestOfWorld_countryCodes(ctx, field)
  56189. case "restOfWorld":
  56190. return ec.fieldContext_DeliveryCountryCodesOrRestOfWorld_restOfWorld(ctx, field)
  56191. }
  56192. return nil, fmt.Errorf("no field named %q was found under type DeliveryCountryCodesOrRestOfWorld", field.Name)
  56193. },
  56194. }
  56195. return fc, nil
  56196. }
  56197. func (ec *executionContext) _DeliveryAvailableService_name(ctx context.Context, field graphql.CollectedField, obj *DeliveryAvailableService) (ret graphql.Marshaler) {
  56198. fc, err := ec.fieldContext_DeliveryAvailableService_name(ctx, field)
  56199. if err != nil {
  56200. return graphql.Null
  56201. }
  56202. ctx = graphql.WithFieldContext(ctx, fc)
  56203. defer func() {
  56204. if r := recover(); r != nil {
  56205. ec.Error(ctx, ec.Recover(ctx, r))
  56206. ret = graphql.Null
  56207. }
  56208. }()
  56209. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  56210. ctx = rctx // use context from middleware stack in children
  56211. return obj.Name, nil
  56212. })
  56213. if err != nil {
  56214. ec.Error(ctx, err)
  56215. return graphql.Null
  56216. }
  56217. if resTmp == nil {
  56218. if !graphql.HasFieldError(ctx, fc) {
  56219. ec.Errorf(ctx, "must not be null")
  56220. }
  56221. return graphql.Null
  56222. }
  56223. res := resTmp.(string)
  56224. fc.Result = res
  56225. return ec.marshalNString2string(ctx, field.Selections, res)
  56226. }
  56227. func (ec *executionContext) fieldContext_DeliveryAvailableService_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  56228. fc = &graphql.FieldContext{
  56229. Object: "DeliveryAvailableService",
  56230. Field: field,
  56231. IsMethod: false,
  56232. IsResolver: false,
  56233. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  56234. return nil, errors.New("field of type String does not have child fields")
  56235. },
  56236. }
  56237. return fc, nil
  56238. }
  56239. func (ec *executionContext) _DeliveryCarrierService_availableServicesForCountries(ctx context.Context, field graphql.CollectedField, obj *DeliveryCarrierService) (ret graphql.Marshaler) {
  56240. fc, err := ec.fieldContext_DeliveryCarrierService_availableServicesForCountries(ctx, field)
  56241. if err != nil {
  56242. return graphql.Null
  56243. }
  56244. ctx = graphql.WithFieldContext(ctx, fc)
  56245. defer func() {
  56246. if r := recover(); r != nil {
  56247. ec.Error(ctx, ec.Recover(ctx, r))
  56248. ret = graphql.Null
  56249. }
  56250. }()
  56251. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  56252. ctx = rctx // use context from middleware stack in children
  56253. return obj.AvailableServicesForCountries, nil
  56254. })
  56255. if err != nil {
  56256. ec.Error(ctx, err)
  56257. return graphql.Null
  56258. }
  56259. if resTmp == nil {
  56260. if !graphql.HasFieldError(ctx, fc) {
  56261. ec.Errorf(ctx, "must not be null")
  56262. }
  56263. return graphql.Null
  56264. }
  56265. res := resTmp.([]*DeliveryAvailableService)
  56266. fc.Result = res
  56267. return ec.marshalNDeliveryAvailableService2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryAvailableServiceᚄ(ctx, field.Selections, res)
  56268. }
  56269. func (ec *executionContext) fieldContext_DeliveryCarrierService_availableServicesForCountries(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  56270. fc = &graphql.FieldContext{
  56271. Object: "DeliveryCarrierService",
  56272. Field: field,
  56273. IsMethod: false,
  56274. IsResolver: false,
  56275. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  56276. switch field.Name {
  56277. case "countries":
  56278. return ec.fieldContext_DeliveryAvailableService_countries(ctx, field)
  56279. case "name":
  56280. return ec.fieldContext_DeliveryAvailableService_name(ctx, field)
  56281. }
  56282. return nil, fmt.Errorf("no field named %q was found under type DeliveryAvailableService", field.Name)
  56283. },
  56284. }
  56285. defer func() {
  56286. if r := recover(); r != nil {
  56287. err = ec.Recover(ctx, r)
  56288. ec.Error(ctx, err)
  56289. }
  56290. }()
  56291. ctx = graphql.WithFieldContext(ctx, fc)
  56292. if fc.Args, err = ec.field_DeliveryCarrierService_availableServicesForCountries_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  56293. ec.Error(ctx, err)
  56294. return
  56295. }
  56296. return fc, nil
  56297. }
  56298. func (ec *executionContext) _DeliveryCarrierService_formattedName(ctx context.Context, field graphql.CollectedField, obj *DeliveryCarrierService) (ret graphql.Marshaler) {
  56299. fc, err := ec.fieldContext_DeliveryCarrierService_formattedName(ctx, field)
  56300. if err != nil {
  56301. return graphql.Null
  56302. }
  56303. ctx = graphql.WithFieldContext(ctx, fc)
  56304. defer func() {
  56305. if r := recover(); r != nil {
  56306. ec.Error(ctx, ec.Recover(ctx, r))
  56307. ret = graphql.Null
  56308. }
  56309. }()
  56310. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  56311. ctx = rctx // use context from middleware stack in children
  56312. return obj.FormattedName, nil
  56313. })
  56314. if err != nil {
  56315. ec.Error(ctx, err)
  56316. return graphql.Null
  56317. }
  56318. if resTmp == nil {
  56319. return graphql.Null
  56320. }
  56321. res := resTmp.(*string)
  56322. fc.Result = res
  56323. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  56324. }
  56325. func (ec *executionContext) fieldContext_DeliveryCarrierService_formattedName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  56326. fc = &graphql.FieldContext{
  56327. Object: "DeliveryCarrierService",
  56328. Field: field,
  56329. IsMethod: false,
  56330. IsResolver: false,
  56331. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  56332. return nil, errors.New("field of type String does not have child fields")
  56333. },
  56334. }
  56335. return fc, nil
  56336. }
  56337. func (ec *executionContext) _DeliveryCarrierService_icon(ctx context.Context, field graphql.CollectedField, obj *DeliveryCarrierService) (ret graphql.Marshaler) {
  56338. fc, err := ec.fieldContext_DeliveryCarrierService_icon(ctx, field)
  56339. if err != nil {
  56340. return graphql.Null
  56341. }
  56342. ctx = graphql.WithFieldContext(ctx, fc)
  56343. defer func() {
  56344. if r := recover(); r != nil {
  56345. ec.Error(ctx, ec.Recover(ctx, r))
  56346. ret = graphql.Null
  56347. }
  56348. }()
  56349. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  56350. ctx = rctx // use context from middleware stack in children
  56351. return obj.Icon, nil
  56352. })
  56353. if err != nil {
  56354. ec.Error(ctx, err)
  56355. return graphql.Null
  56356. }
  56357. if resTmp == nil {
  56358. if !graphql.HasFieldError(ctx, fc) {
  56359. ec.Errorf(ctx, "must not be null")
  56360. }
  56361. return graphql.Null
  56362. }
  56363. res := resTmp.(*Image)
  56364. fc.Result = res
  56365. return ec.marshalNImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImage(ctx, field.Selections, res)
  56366. }
  56367. func (ec *executionContext) fieldContext_DeliveryCarrierService_icon(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  56368. fc = &graphql.FieldContext{
  56369. Object: "DeliveryCarrierService",
  56370. Field: field,
  56371. IsMethod: false,
  56372. IsResolver: false,
  56373. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  56374. switch field.Name {
  56375. case "altText":
  56376. return ec.fieldContext_Image_altText(ctx, field)
  56377. case "height":
  56378. return ec.fieldContext_Image_height(ctx, field)
  56379. case "id":
  56380. return ec.fieldContext_Image_id(ctx, field)
  56381. case "metafield":
  56382. return ec.fieldContext_Image_metafield(ctx, field)
  56383. case "metafields":
  56384. return ec.fieldContext_Image_metafields(ctx, field)
  56385. case "privateMetafield":
  56386. return ec.fieldContext_Image_privateMetafield(ctx, field)
  56387. case "privateMetafields":
  56388. return ec.fieldContext_Image_privateMetafields(ctx, field)
  56389. case "url":
  56390. return ec.fieldContext_Image_url(ctx, field)
  56391. case "width":
  56392. return ec.fieldContext_Image_width(ctx, field)
  56393. }
  56394. return nil, fmt.Errorf("no field named %q was found under type Image", field.Name)
  56395. },
  56396. }
  56397. return fc, nil
  56398. }
  56399. func (ec *executionContext) _DeliveryCarrierService_id(ctx context.Context, field graphql.CollectedField, obj *DeliveryCarrierService) (ret graphql.Marshaler) {
  56400. fc, err := ec.fieldContext_DeliveryCarrierService_id(ctx, field)
  56401. if err != nil {
  56402. return graphql.Null
  56403. }
  56404. ctx = graphql.WithFieldContext(ctx, fc)
  56405. defer func() {
  56406. if r := recover(); r != nil {
  56407. ec.Error(ctx, ec.Recover(ctx, r))
  56408. ret = graphql.Null
  56409. }
  56410. }()
  56411. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  56412. ctx = rctx // use context from middleware stack in children
  56413. return obj.ID, nil
  56414. })
  56415. if err != nil {
  56416. ec.Error(ctx, err)
  56417. return graphql.Null
  56418. }
  56419. if resTmp == nil {
  56420. if !graphql.HasFieldError(ctx, fc) {
  56421. ec.Errorf(ctx, "must not be null")
  56422. }
  56423. return graphql.Null
  56424. }
  56425. res := resTmp.(string)
  56426. fc.Result = res
  56427. return ec.marshalNID2string(ctx, field.Selections, res)
  56428. }
  56429. func (ec *executionContext) fieldContext_DeliveryCarrierService_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  56430. fc = &graphql.FieldContext{
  56431. Object: "DeliveryCarrierService",
  56432. Field: field,
  56433. IsMethod: false,
  56434. IsResolver: false,
  56435. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  56436. return nil, errors.New("field of type ID does not have child fields")
  56437. },
  56438. }
  56439. return fc, nil
  56440. }
  56441. func (ec *executionContext) _DeliveryCarrierService_name(ctx context.Context, field graphql.CollectedField, obj *DeliveryCarrierService) (ret graphql.Marshaler) {
  56442. fc, err := ec.fieldContext_DeliveryCarrierService_name(ctx, field)
  56443. if err != nil {
  56444. return graphql.Null
  56445. }
  56446. ctx = graphql.WithFieldContext(ctx, fc)
  56447. defer func() {
  56448. if r := recover(); r != nil {
  56449. ec.Error(ctx, ec.Recover(ctx, r))
  56450. ret = graphql.Null
  56451. }
  56452. }()
  56453. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  56454. ctx = rctx // use context from middleware stack in children
  56455. return obj.Name, nil
  56456. })
  56457. if err != nil {
  56458. ec.Error(ctx, err)
  56459. return graphql.Null
  56460. }
  56461. if resTmp == nil {
  56462. return graphql.Null
  56463. }
  56464. res := resTmp.(*string)
  56465. fc.Result = res
  56466. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  56467. }
  56468. func (ec *executionContext) fieldContext_DeliveryCarrierService_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  56469. fc = &graphql.FieldContext{
  56470. Object: "DeliveryCarrierService",
  56471. Field: field,
  56472. IsMethod: false,
  56473. IsResolver: false,
  56474. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  56475. return nil, errors.New("field of type String does not have child fields")
  56476. },
  56477. }
  56478. return fc, nil
  56479. }
  56480. func (ec *executionContext) _DeliveryCondition_conditionCriteria(ctx context.Context, field graphql.CollectedField, obj *DeliveryCondition) (ret graphql.Marshaler) {
  56481. fc, err := ec.fieldContext_DeliveryCondition_conditionCriteria(ctx, field)
  56482. if err != nil {
  56483. return graphql.Null
  56484. }
  56485. ctx = graphql.WithFieldContext(ctx, fc)
  56486. defer func() {
  56487. if r := recover(); r != nil {
  56488. ec.Error(ctx, ec.Recover(ctx, r))
  56489. ret = graphql.Null
  56490. }
  56491. }()
  56492. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  56493. ctx = rctx // use context from middleware stack in children
  56494. return obj.ConditionCriteria, nil
  56495. })
  56496. if err != nil {
  56497. ec.Error(ctx, err)
  56498. return graphql.Null
  56499. }
  56500. if resTmp == nil {
  56501. if !graphql.HasFieldError(ctx, fc) {
  56502. ec.Errorf(ctx, "must not be null")
  56503. }
  56504. return graphql.Null
  56505. }
  56506. res := resTmp.(DeliveryConditionCriteria)
  56507. fc.Result = res
  56508. return ec.marshalNDeliveryConditionCriteria2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryConditionCriteria(ctx, field.Selections, res)
  56509. }
  56510. func (ec *executionContext) fieldContext_DeliveryCondition_conditionCriteria(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  56511. fc = &graphql.FieldContext{
  56512. Object: "DeliveryCondition",
  56513. Field: field,
  56514. IsMethod: false,
  56515. IsResolver: false,
  56516. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  56517. return nil, errors.New("field of type DeliveryConditionCriteria does not have child fields")
  56518. },
  56519. }
  56520. return fc, nil
  56521. }
  56522. func (ec *executionContext) _DeliveryCondition_field(ctx context.Context, field graphql.CollectedField, obj *DeliveryCondition) (ret graphql.Marshaler) {
  56523. fc, err := ec.fieldContext_DeliveryCondition_field(ctx, field)
  56524. if err != nil {
  56525. return graphql.Null
  56526. }
  56527. ctx = graphql.WithFieldContext(ctx, fc)
  56528. defer func() {
  56529. if r := recover(); r != nil {
  56530. ec.Error(ctx, ec.Recover(ctx, r))
  56531. ret = graphql.Null
  56532. }
  56533. }()
  56534. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  56535. ctx = rctx // use context from middleware stack in children
  56536. return obj.Field, nil
  56537. })
  56538. if err != nil {
  56539. ec.Error(ctx, err)
  56540. return graphql.Null
  56541. }
  56542. if resTmp == nil {
  56543. if !graphql.HasFieldError(ctx, fc) {
  56544. ec.Errorf(ctx, "must not be null")
  56545. }
  56546. return graphql.Null
  56547. }
  56548. res := resTmp.(DeliveryConditionField)
  56549. fc.Result = res
  56550. return ec.marshalNDeliveryConditionField2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryConditionField(ctx, field.Selections, res)
  56551. }
  56552. func (ec *executionContext) fieldContext_DeliveryCondition_field(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  56553. fc = &graphql.FieldContext{
  56554. Object: "DeliveryCondition",
  56555. Field: field,
  56556. IsMethod: false,
  56557. IsResolver: false,
  56558. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  56559. return nil, errors.New("field of type DeliveryConditionField does not have child fields")
  56560. },
  56561. }
  56562. return fc, nil
  56563. }
  56564. func (ec *executionContext) _DeliveryCondition_id(ctx context.Context, field graphql.CollectedField, obj *DeliveryCondition) (ret graphql.Marshaler) {
  56565. fc, err := ec.fieldContext_DeliveryCondition_id(ctx, field)
  56566. if err != nil {
  56567. return graphql.Null
  56568. }
  56569. ctx = graphql.WithFieldContext(ctx, fc)
  56570. defer func() {
  56571. if r := recover(); r != nil {
  56572. ec.Error(ctx, ec.Recover(ctx, r))
  56573. ret = graphql.Null
  56574. }
  56575. }()
  56576. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  56577. ctx = rctx // use context from middleware stack in children
  56578. return obj.ID, nil
  56579. })
  56580. if err != nil {
  56581. ec.Error(ctx, err)
  56582. return graphql.Null
  56583. }
  56584. if resTmp == nil {
  56585. if !graphql.HasFieldError(ctx, fc) {
  56586. ec.Errorf(ctx, "must not be null")
  56587. }
  56588. return graphql.Null
  56589. }
  56590. res := resTmp.(string)
  56591. fc.Result = res
  56592. return ec.marshalNID2string(ctx, field.Selections, res)
  56593. }
  56594. func (ec *executionContext) fieldContext_DeliveryCondition_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  56595. fc = &graphql.FieldContext{
  56596. Object: "DeliveryCondition",
  56597. Field: field,
  56598. IsMethod: false,
  56599. IsResolver: false,
  56600. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  56601. return nil, errors.New("field of type ID does not have child fields")
  56602. },
  56603. }
  56604. return fc, nil
  56605. }
  56606. func (ec *executionContext) _DeliveryCondition_operator(ctx context.Context, field graphql.CollectedField, obj *DeliveryCondition) (ret graphql.Marshaler) {
  56607. fc, err := ec.fieldContext_DeliveryCondition_operator(ctx, field)
  56608. if err != nil {
  56609. return graphql.Null
  56610. }
  56611. ctx = graphql.WithFieldContext(ctx, fc)
  56612. defer func() {
  56613. if r := recover(); r != nil {
  56614. ec.Error(ctx, ec.Recover(ctx, r))
  56615. ret = graphql.Null
  56616. }
  56617. }()
  56618. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  56619. ctx = rctx // use context from middleware stack in children
  56620. return obj.Operator, nil
  56621. })
  56622. if err != nil {
  56623. ec.Error(ctx, err)
  56624. return graphql.Null
  56625. }
  56626. if resTmp == nil {
  56627. if !graphql.HasFieldError(ctx, fc) {
  56628. ec.Errorf(ctx, "must not be null")
  56629. }
  56630. return graphql.Null
  56631. }
  56632. res := resTmp.(DeliveryConditionOperator)
  56633. fc.Result = res
  56634. return ec.marshalNDeliveryConditionOperator2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryConditionOperator(ctx, field.Selections, res)
  56635. }
  56636. func (ec *executionContext) fieldContext_DeliveryCondition_operator(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  56637. fc = &graphql.FieldContext{
  56638. Object: "DeliveryCondition",
  56639. Field: field,
  56640. IsMethod: false,
  56641. IsResolver: false,
  56642. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  56643. return nil, errors.New("field of type DeliveryConditionOperator does not have child fields")
  56644. },
  56645. }
  56646. return fc, nil
  56647. }
  56648. func (ec *executionContext) _DeliveryCountry_code(ctx context.Context, field graphql.CollectedField, obj *DeliveryCountry) (ret graphql.Marshaler) {
  56649. fc, err := ec.fieldContext_DeliveryCountry_code(ctx, field)
  56650. if err != nil {
  56651. return graphql.Null
  56652. }
  56653. ctx = graphql.WithFieldContext(ctx, fc)
  56654. defer func() {
  56655. if r := recover(); r != nil {
  56656. ec.Error(ctx, ec.Recover(ctx, r))
  56657. ret = graphql.Null
  56658. }
  56659. }()
  56660. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  56661. ctx = rctx // use context from middleware stack in children
  56662. return obj.Code, nil
  56663. })
  56664. if err != nil {
  56665. ec.Error(ctx, err)
  56666. return graphql.Null
  56667. }
  56668. if resTmp == nil {
  56669. if !graphql.HasFieldError(ctx, fc) {
  56670. ec.Errorf(ctx, "must not be null")
  56671. }
  56672. return graphql.Null
  56673. }
  56674. res := resTmp.(*DeliveryCountryCodeOrRestOfWorld)
  56675. fc.Result = res
  56676. return ec.marshalNDeliveryCountryCodeOrRestOfWorld2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryCountryCodeOrRestOfWorld(ctx, field.Selections, res)
  56677. }
  56678. func (ec *executionContext) fieldContext_DeliveryCountry_code(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  56679. fc = &graphql.FieldContext{
  56680. Object: "DeliveryCountry",
  56681. Field: field,
  56682. IsMethod: false,
  56683. IsResolver: false,
  56684. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  56685. switch field.Name {
  56686. case "countryCode":
  56687. return ec.fieldContext_DeliveryCountryCodeOrRestOfWorld_countryCode(ctx, field)
  56688. case "restOfWorld":
  56689. return ec.fieldContext_DeliveryCountryCodeOrRestOfWorld_restOfWorld(ctx, field)
  56690. }
  56691. return nil, fmt.Errorf("no field named %q was found under type DeliveryCountryCodeOrRestOfWorld", field.Name)
  56692. },
  56693. }
  56694. return fc, nil
  56695. }
  56696. func (ec *executionContext) _DeliveryCountry_id(ctx context.Context, field graphql.CollectedField, obj *DeliveryCountry) (ret graphql.Marshaler) {
  56697. fc, err := ec.fieldContext_DeliveryCountry_id(ctx, field)
  56698. if err != nil {
  56699. return graphql.Null
  56700. }
  56701. ctx = graphql.WithFieldContext(ctx, fc)
  56702. defer func() {
  56703. if r := recover(); r != nil {
  56704. ec.Error(ctx, ec.Recover(ctx, r))
  56705. ret = graphql.Null
  56706. }
  56707. }()
  56708. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  56709. ctx = rctx // use context from middleware stack in children
  56710. return obj.ID, nil
  56711. })
  56712. if err != nil {
  56713. ec.Error(ctx, err)
  56714. return graphql.Null
  56715. }
  56716. if resTmp == nil {
  56717. if !graphql.HasFieldError(ctx, fc) {
  56718. ec.Errorf(ctx, "must not be null")
  56719. }
  56720. return graphql.Null
  56721. }
  56722. res := resTmp.(string)
  56723. fc.Result = res
  56724. return ec.marshalNID2string(ctx, field.Selections, res)
  56725. }
  56726. func (ec *executionContext) fieldContext_DeliveryCountry_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  56727. fc = &graphql.FieldContext{
  56728. Object: "DeliveryCountry",
  56729. Field: field,
  56730. IsMethod: false,
  56731. IsResolver: false,
  56732. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  56733. return nil, errors.New("field of type ID does not have child fields")
  56734. },
  56735. }
  56736. return fc, nil
  56737. }
  56738. func (ec *executionContext) _DeliveryCountry_name(ctx context.Context, field graphql.CollectedField, obj *DeliveryCountry) (ret graphql.Marshaler) {
  56739. fc, err := ec.fieldContext_DeliveryCountry_name(ctx, field)
  56740. if err != nil {
  56741. return graphql.Null
  56742. }
  56743. ctx = graphql.WithFieldContext(ctx, fc)
  56744. defer func() {
  56745. if r := recover(); r != nil {
  56746. ec.Error(ctx, ec.Recover(ctx, r))
  56747. ret = graphql.Null
  56748. }
  56749. }()
  56750. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  56751. ctx = rctx // use context from middleware stack in children
  56752. return obj.Name, nil
  56753. })
  56754. if err != nil {
  56755. ec.Error(ctx, err)
  56756. return graphql.Null
  56757. }
  56758. if resTmp == nil {
  56759. if !graphql.HasFieldError(ctx, fc) {
  56760. ec.Errorf(ctx, "must not be null")
  56761. }
  56762. return graphql.Null
  56763. }
  56764. res := resTmp.(string)
  56765. fc.Result = res
  56766. return ec.marshalNString2string(ctx, field.Selections, res)
  56767. }
  56768. func (ec *executionContext) fieldContext_DeliveryCountry_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  56769. fc = &graphql.FieldContext{
  56770. Object: "DeliveryCountry",
  56771. Field: field,
  56772. IsMethod: false,
  56773. IsResolver: false,
  56774. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  56775. return nil, errors.New("field of type String does not have child fields")
  56776. },
  56777. }
  56778. return fc, nil
  56779. }
  56780. func (ec *executionContext) _DeliveryCountry_provinces(ctx context.Context, field graphql.CollectedField, obj *DeliveryCountry) (ret graphql.Marshaler) {
  56781. fc, err := ec.fieldContext_DeliveryCountry_provinces(ctx, field)
  56782. if err != nil {
  56783. return graphql.Null
  56784. }
  56785. ctx = graphql.WithFieldContext(ctx, fc)
  56786. defer func() {
  56787. if r := recover(); r != nil {
  56788. ec.Error(ctx, ec.Recover(ctx, r))
  56789. ret = graphql.Null
  56790. }
  56791. }()
  56792. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  56793. ctx = rctx // use context from middleware stack in children
  56794. return obj.Provinces, nil
  56795. })
  56796. if err != nil {
  56797. ec.Error(ctx, err)
  56798. return graphql.Null
  56799. }
  56800. if resTmp == nil {
  56801. if !graphql.HasFieldError(ctx, fc) {
  56802. ec.Errorf(ctx, "must not be null")
  56803. }
  56804. return graphql.Null
  56805. }
  56806. res := resTmp.([]*DeliveryProvince)
  56807. fc.Result = res
  56808. return ec.marshalNDeliveryProvince2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryProvinceᚄ(ctx, field.Selections, res)
  56809. }
  56810. func (ec *executionContext) fieldContext_DeliveryCountry_provinces(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  56811. fc = &graphql.FieldContext{
  56812. Object: "DeliveryCountry",
  56813. Field: field,
  56814. IsMethod: false,
  56815. IsResolver: false,
  56816. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  56817. switch field.Name {
  56818. case "code":
  56819. return ec.fieldContext_DeliveryProvince_code(ctx, field)
  56820. case "id":
  56821. return ec.fieldContext_DeliveryProvince_id(ctx, field)
  56822. case "name":
  56823. return ec.fieldContext_DeliveryProvince_name(ctx, field)
  56824. case "translatedName":
  56825. return ec.fieldContext_DeliveryProvince_translatedName(ctx, field)
  56826. }
  56827. return nil, fmt.Errorf("no field named %q was found under type DeliveryProvince", field.Name)
  56828. },
  56829. }
  56830. return fc, nil
  56831. }
  56832. func (ec *executionContext) _DeliveryCountry_translatedName(ctx context.Context, field graphql.CollectedField, obj *DeliveryCountry) (ret graphql.Marshaler) {
  56833. fc, err := ec.fieldContext_DeliveryCountry_translatedName(ctx, field)
  56834. if err != nil {
  56835. return graphql.Null
  56836. }
  56837. ctx = graphql.WithFieldContext(ctx, fc)
  56838. defer func() {
  56839. if r := recover(); r != nil {
  56840. ec.Error(ctx, ec.Recover(ctx, r))
  56841. ret = graphql.Null
  56842. }
  56843. }()
  56844. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  56845. ctx = rctx // use context from middleware stack in children
  56846. return obj.TranslatedName, nil
  56847. })
  56848. if err != nil {
  56849. ec.Error(ctx, err)
  56850. return graphql.Null
  56851. }
  56852. if resTmp == nil {
  56853. if !graphql.HasFieldError(ctx, fc) {
  56854. ec.Errorf(ctx, "must not be null")
  56855. }
  56856. return graphql.Null
  56857. }
  56858. res := resTmp.(string)
  56859. fc.Result = res
  56860. return ec.marshalNString2string(ctx, field.Selections, res)
  56861. }
  56862. func (ec *executionContext) fieldContext_DeliveryCountry_translatedName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  56863. fc = &graphql.FieldContext{
  56864. Object: "DeliveryCountry",
  56865. Field: field,
  56866. IsMethod: false,
  56867. IsResolver: false,
  56868. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  56869. return nil, errors.New("field of type String does not have child fields")
  56870. },
  56871. }
  56872. return fc, nil
  56873. }
  56874. func (ec *executionContext) _DeliveryCountryAndZone_country(ctx context.Context, field graphql.CollectedField, obj *DeliveryCountryAndZone) (ret graphql.Marshaler) {
  56875. fc, err := ec.fieldContext_DeliveryCountryAndZone_country(ctx, field)
  56876. if err != nil {
  56877. return graphql.Null
  56878. }
  56879. ctx = graphql.WithFieldContext(ctx, fc)
  56880. defer func() {
  56881. if r := recover(); r != nil {
  56882. ec.Error(ctx, ec.Recover(ctx, r))
  56883. ret = graphql.Null
  56884. }
  56885. }()
  56886. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  56887. ctx = rctx // use context from middleware stack in children
  56888. return obj.Country, nil
  56889. })
  56890. if err != nil {
  56891. ec.Error(ctx, err)
  56892. return graphql.Null
  56893. }
  56894. if resTmp == nil {
  56895. if !graphql.HasFieldError(ctx, fc) {
  56896. ec.Errorf(ctx, "must not be null")
  56897. }
  56898. return graphql.Null
  56899. }
  56900. res := resTmp.(*DeliveryCountry)
  56901. fc.Result = res
  56902. return ec.marshalNDeliveryCountry2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryCountry(ctx, field.Selections, res)
  56903. }
  56904. func (ec *executionContext) fieldContext_DeliveryCountryAndZone_country(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  56905. fc = &graphql.FieldContext{
  56906. Object: "DeliveryCountryAndZone",
  56907. Field: field,
  56908. IsMethod: false,
  56909. IsResolver: false,
  56910. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  56911. switch field.Name {
  56912. case "code":
  56913. return ec.fieldContext_DeliveryCountry_code(ctx, field)
  56914. case "id":
  56915. return ec.fieldContext_DeliveryCountry_id(ctx, field)
  56916. case "name":
  56917. return ec.fieldContext_DeliveryCountry_name(ctx, field)
  56918. case "provinces":
  56919. return ec.fieldContext_DeliveryCountry_provinces(ctx, field)
  56920. case "translatedName":
  56921. return ec.fieldContext_DeliveryCountry_translatedName(ctx, field)
  56922. }
  56923. return nil, fmt.Errorf("no field named %q was found under type DeliveryCountry", field.Name)
  56924. },
  56925. }
  56926. return fc, nil
  56927. }
  56928. func (ec *executionContext) _DeliveryCountryAndZone_zone(ctx context.Context, field graphql.CollectedField, obj *DeliveryCountryAndZone) (ret graphql.Marshaler) {
  56929. fc, err := ec.fieldContext_DeliveryCountryAndZone_zone(ctx, field)
  56930. if err != nil {
  56931. return graphql.Null
  56932. }
  56933. ctx = graphql.WithFieldContext(ctx, fc)
  56934. defer func() {
  56935. if r := recover(); r != nil {
  56936. ec.Error(ctx, ec.Recover(ctx, r))
  56937. ret = graphql.Null
  56938. }
  56939. }()
  56940. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  56941. ctx = rctx // use context from middleware stack in children
  56942. return obj.Zone, nil
  56943. })
  56944. if err != nil {
  56945. ec.Error(ctx, err)
  56946. return graphql.Null
  56947. }
  56948. if resTmp == nil {
  56949. if !graphql.HasFieldError(ctx, fc) {
  56950. ec.Errorf(ctx, "must not be null")
  56951. }
  56952. return graphql.Null
  56953. }
  56954. res := resTmp.(string)
  56955. fc.Result = res
  56956. return ec.marshalNString2string(ctx, field.Selections, res)
  56957. }
  56958. func (ec *executionContext) fieldContext_DeliveryCountryAndZone_zone(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  56959. fc = &graphql.FieldContext{
  56960. Object: "DeliveryCountryAndZone",
  56961. Field: field,
  56962. IsMethod: false,
  56963. IsResolver: false,
  56964. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  56965. return nil, errors.New("field of type String does not have child fields")
  56966. },
  56967. }
  56968. return fc, nil
  56969. }
  56970. func (ec *executionContext) _DeliveryCountryCodeOrRestOfWorld_countryCode(ctx context.Context, field graphql.CollectedField, obj *DeliveryCountryCodeOrRestOfWorld) (ret graphql.Marshaler) {
  56971. fc, err := ec.fieldContext_DeliveryCountryCodeOrRestOfWorld_countryCode(ctx, field)
  56972. if err != nil {
  56973. return graphql.Null
  56974. }
  56975. ctx = graphql.WithFieldContext(ctx, fc)
  56976. defer func() {
  56977. if r := recover(); r != nil {
  56978. ec.Error(ctx, ec.Recover(ctx, r))
  56979. ret = graphql.Null
  56980. }
  56981. }()
  56982. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  56983. ctx = rctx // use context from middleware stack in children
  56984. return obj.CountryCode, nil
  56985. })
  56986. if err != nil {
  56987. ec.Error(ctx, err)
  56988. return graphql.Null
  56989. }
  56990. if resTmp == nil {
  56991. return graphql.Null
  56992. }
  56993. res := resTmp.(*CountryCode)
  56994. fc.Result = res
  56995. return ec.marshalOCountryCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCode(ctx, field.Selections, res)
  56996. }
  56997. func (ec *executionContext) fieldContext_DeliveryCountryCodeOrRestOfWorld_countryCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  56998. fc = &graphql.FieldContext{
  56999. Object: "DeliveryCountryCodeOrRestOfWorld",
  57000. Field: field,
  57001. IsMethod: false,
  57002. IsResolver: false,
  57003. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  57004. return nil, errors.New("field of type CountryCode does not have child fields")
  57005. },
  57006. }
  57007. return fc, nil
  57008. }
  57009. func (ec *executionContext) _DeliveryCountryCodeOrRestOfWorld_restOfWorld(ctx context.Context, field graphql.CollectedField, obj *DeliveryCountryCodeOrRestOfWorld) (ret graphql.Marshaler) {
  57010. fc, err := ec.fieldContext_DeliveryCountryCodeOrRestOfWorld_restOfWorld(ctx, field)
  57011. if err != nil {
  57012. return graphql.Null
  57013. }
  57014. ctx = graphql.WithFieldContext(ctx, fc)
  57015. defer func() {
  57016. if r := recover(); r != nil {
  57017. ec.Error(ctx, ec.Recover(ctx, r))
  57018. ret = graphql.Null
  57019. }
  57020. }()
  57021. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  57022. ctx = rctx // use context from middleware stack in children
  57023. return obj.RestOfWorld, nil
  57024. })
  57025. if err != nil {
  57026. ec.Error(ctx, err)
  57027. return graphql.Null
  57028. }
  57029. if resTmp == nil {
  57030. if !graphql.HasFieldError(ctx, fc) {
  57031. ec.Errorf(ctx, "must not be null")
  57032. }
  57033. return graphql.Null
  57034. }
  57035. res := resTmp.(bool)
  57036. fc.Result = res
  57037. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  57038. }
  57039. func (ec *executionContext) fieldContext_DeliveryCountryCodeOrRestOfWorld_restOfWorld(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  57040. fc = &graphql.FieldContext{
  57041. Object: "DeliveryCountryCodeOrRestOfWorld",
  57042. Field: field,
  57043. IsMethod: false,
  57044. IsResolver: false,
  57045. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  57046. return nil, errors.New("field of type Boolean does not have child fields")
  57047. },
  57048. }
  57049. return fc, nil
  57050. }
  57051. func (ec *executionContext) _DeliveryCountryCodesOrRestOfWorld_countryCodes(ctx context.Context, field graphql.CollectedField, obj *DeliveryCountryCodesOrRestOfWorld) (ret graphql.Marshaler) {
  57052. fc, err := ec.fieldContext_DeliveryCountryCodesOrRestOfWorld_countryCodes(ctx, field)
  57053. if err != nil {
  57054. return graphql.Null
  57055. }
  57056. ctx = graphql.WithFieldContext(ctx, fc)
  57057. defer func() {
  57058. if r := recover(); r != nil {
  57059. ec.Error(ctx, ec.Recover(ctx, r))
  57060. ret = graphql.Null
  57061. }
  57062. }()
  57063. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  57064. ctx = rctx // use context from middleware stack in children
  57065. return obj.CountryCodes, nil
  57066. })
  57067. if err != nil {
  57068. ec.Error(ctx, err)
  57069. return graphql.Null
  57070. }
  57071. if resTmp == nil {
  57072. if !graphql.HasFieldError(ctx, fc) {
  57073. ec.Errorf(ctx, "must not be null")
  57074. }
  57075. return graphql.Null
  57076. }
  57077. res := resTmp.([]CountryCode)
  57078. fc.Result = res
  57079. return ec.marshalNCountryCode2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCodeᚄ(ctx, field.Selections, res)
  57080. }
  57081. func (ec *executionContext) fieldContext_DeliveryCountryCodesOrRestOfWorld_countryCodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  57082. fc = &graphql.FieldContext{
  57083. Object: "DeliveryCountryCodesOrRestOfWorld",
  57084. Field: field,
  57085. IsMethod: false,
  57086. IsResolver: false,
  57087. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  57088. return nil, errors.New("field of type CountryCode does not have child fields")
  57089. },
  57090. }
  57091. return fc, nil
  57092. }
  57093. func (ec *executionContext) _DeliveryCountryCodesOrRestOfWorld_restOfWorld(ctx context.Context, field graphql.CollectedField, obj *DeliveryCountryCodesOrRestOfWorld) (ret graphql.Marshaler) {
  57094. fc, err := ec.fieldContext_DeliveryCountryCodesOrRestOfWorld_restOfWorld(ctx, field)
  57095. if err != nil {
  57096. return graphql.Null
  57097. }
  57098. ctx = graphql.WithFieldContext(ctx, fc)
  57099. defer func() {
  57100. if r := recover(); r != nil {
  57101. ec.Error(ctx, ec.Recover(ctx, r))
  57102. ret = graphql.Null
  57103. }
  57104. }()
  57105. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  57106. ctx = rctx // use context from middleware stack in children
  57107. return obj.RestOfWorld, nil
  57108. })
  57109. if err != nil {
  57110. ec.Error(ctx, err)
  57111. return graphql.Null
  57112. }
  57113. if resTmp == nil {
  57114. if !graphql.HasFieldError(ctx, fc) {
  57115. ec.Errorf(ctx, "must not be null")
  57116. }
  57117. return graphql.Null
  57118. }
  57119. res := resTmp.(bool)
  57120. fc.Result = res
  57121. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  57122. }
  57123. func (ec *executionContext) fieldContext_DeliveryCountryCodesOrRestOfWorld_restOfWorld(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  57124. fc = &graphql.FieldContext{
  57125. Object: "DeliveryCountryCodesOrRestOfWorld",
  57126. Field: field,
  57127. IsMethod: false,
  57128. IsResolver: false,
  57129. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  57130. return nil, errors.New("field of type Boolean does not have child fields")
  57131. },
  57132. }
  57133. return fc, nil
  57134. }
  57135. func (ec *executionContext) _DeliveryLocationGroup_id(ctx context.Context, field graphql.CollectedField, obj *DeliveryLocationGroup) (ret graphql.Marshaler) {
  57136. fc, err := ec.fieldContext_DeliveryLocationGroup_id(ctx, field)
  57137. if err != nil {
  57138. return graphql.Null
  57139. }
  57140. ctx = graphql.WithFieldContext(ctx, fc)
  57141. defer func() {
  57142. if r := recover(); r != nil {
  57143. ec.Error(ctx, ec.Recover(ctx, r))
  57144. ret = graphql.Null
  57145. }
  57146. }()
  57147. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  57148. ctx = rctx // use context from middleware stack in children
  57149. return obj.ID, nil
  57150. })
  57151. if err != nil {
  57152. ec.Error(ctx, err)
  57153. return graphql.Null
  57154. }
  57155. if resTmp == nil {
  57156. if !graphql.HasFieldError(ctx, fc) {
  57157. ec.Errorf(ctx, "must not be null")
  57158. }
  57159. return graphql.Null
  57160. }
  57161. res := resTmp.(string)
  57162. fc.Result = res
  57163. return ec.marshalNID2string(ctx, field.Selections, res)
  57164. }
  57165. func (ec *executionContext) fieldContext_DeliveryLocationGroup_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  57166. fc = &graphql.FieldContext{
  57167. Object: "DeliveryLocationGroup",
  57168. Field: field,
  57169. IsMethod: false,
  57170. IsResolver: false,
  57171. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  57172. return nil, errors.New("field of type ID does not have child fields")
  57173. },
  57174. }
  57175. return fc, nil
  57176. }
  57177. func (ec *executionContext) _DeliveryLocationGroup_locations(ctx context.Context, field graphql.CollectedField, obj *DeliveryLocationGroup) (ret graphql.Marshaler) {
  57178. fc, err := ec.fieldContext_DeliveryLocationGroup_locations(ctx, field)
  57179. if err != nil {
  57180. return graphql.Null
  57181. }
  57182. ctx = graphql.WithFieldContext(ctx, fc)
  57183. defer func() {
  57184. if r := recover(); r != nil {
  57185. ec.Error(ctx, ec.Recover(ctx, r))
  57186. ret = graphql.Null
  57187. }
  57188. }()
  57189. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  57190. ctx = rctx // use context from middleware stack in children
  57191. return obj.Locations, nil
  57192. })
  57193. if err != nil {
  57194. ec.Error(ctx, err)
  57195. return graphql.Null
  57196. }
  57197. if resTmp == nil {
  57198. if !graphql.HasFieldError(ctx, fc) {
  57199. ec.Errorf(ctx, "must not be null")
  57200. }
  57201. return graphql.Null
  57202. }
  57203. res := resTmp.(*LocationConnection)
  57204. fc.Result = res
  57205. return ec.marshalNLocationConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocationConnection(ctx, field.Selections, res)
  57206. }
  57207. func (ec *executionContext) fieldContext_DeliveryLocationGroup_locations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  57208. fc = &graphql.FieldContext{
  57209. Object: "DeliveryLocationGroup",
  57210. Field: field,
  57211. IsMethod: false,
  57212. IsResolver: false,
  57213. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  57214. switch field.Name {
  57215. case "edges":
  57216. return ec.fieldContext_LocationConnection_edges(ctx, field)
  57217. case "nodes":
  57218. return ec.fieldContext_LocationConnection_nodes(ctx, field)
  57219. case "pageInfo":
  57220. return ec.fieldContext_LocationConnection_pageInfo(ctx, field)
  57221. }
  57222. return nil, fmt.Errorf("no field named %q was found under type LocationConnection", field.Name)
  57223. },
  57224. }
  57225. defer func() {
  57226. if r := recover(); r != nil {
  57227. err = ec.Recover(ctx, r)
  57228. ec.Error(ctx, err)
  57229. }
  57230. }()
  57231. ctx = graphql.WithFieldContext(ctx, fc)
  57232. if fc.Args, err = ec.field_DeliveryLocationGroup_locations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  57233. ec.Error(ctx, err)
  57234. return
  57235. }
  57236. return fc, nil
  57237. }
  57238. func (ec *executionContext) _DeliveryLocationGroupZone_methodDefinitionCounts(ctx context.Context, field graphql.CollectedField, obj *DeliveryLocationGroupZone) (ret graphql.Marshaler) {
  57239. fc, err := ec.fieldContext_DeliveryLocationGroupZone_methodDefinitionCounts(ctx, field)
  57240. if err != nil {
  57241. return graphql.Null
  57242. }
  57243. ctx = graphql.WithFieldContext(ctx, fc)
  57244. defer func() {
  57245. if r := recover(); r != nil {
  57246. ec.Error(ctx, ec.Recover(ctx, r))
  57247. ret = graphql.Null
  57248. }
  57249. }()
  57250. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  57251. ctx = rctx // use context from middleware stack in children
  57252. return obj.MethodDefinitionCounts, nil
  57253. })
  57254. if err != nil {
  57255. ec.Error(ctx, err)
  57256. return graphql.Null
  57257. }
  57258. if resTmp == nil {
  57259. if !graphql.HasFieldError(ctx, fc) {
  57260. ec.Errorf(ctx, "must not be null")
  57261. }
  57262. return graphql.Null
  57263. }
  57264. res := resTmp.(*DeliveryMethodDefinitionCounts)
  57265. fc.Result = res
  57266. return ec.marshalNDeliveryMethodDefinitionCounts2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryMethodDefinitionCounts(ctx, field.Selections, res)
  57267. }
  57268. func (ec *executionContext) fieldContext_DeliveryLocationGroupZone_methodDefinitionCounts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  57269. fc = &graphql.FieldContext{
  57270. Object: "DeliveryLocationGroupZone",
  57271. Field: field,
  57272. IsMethod: false,
  57273. IsResolver: false,
  57274. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  57275. switch field.Name {
  57276. case "participantDefinitionsCount":
  57277. return ec.fieldContext_DeliveryMethodDefinitionCounts_participantDefinitionsCount(ctx, field)
  57278. case "rateDefinitionsCount":
  57279. return ec.fieldContext_DeliveryMethodDefinitionCounts_rateDefinitionsCount(ctx, field)
  57280. }
  57281. return nil, fmt.Errorf("no field named %q was found under type DeliveryMethodDefinitionCounts", field.Name)
  57282. },
  57283. }
  57284. return fc, nil
  57285. }
  57286. func (ec *executionContext) _DeliveryLocationGroupZone_methodDefinitions(ctx context.Context, field graphql.CollectedField, obj *DeliveryLocationGroupZone) (ret graphql.Marshaler) {
  57287. fc, err := ec.fieldContext_DeliveryLocationGroupZone_methodDefinitions(ctx, field)
  57288. if err != nil {
  57289. return graphql.Null
  57290. }
  57291. ctx = graphql.WithFieldContext(ctx, fc)
  57292. defer func() {
  57293. if r := recover(); r != nil {
  57294. ec.Error(ctx, ec.Recover(ctx, r))
  57295. ret = graphql.Null
  57296. }
  57297. }()
  57298. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  57299. ctx = rctx // use context from middleware stack in children
  57300. return obj.MethodDefinitions, nil
  57301. })
  57302. if err != nil {
  57303. ec.Error(ctx, err)
  57304. return graphql.Null
  57305. }
  57306. if resTmp == nil {
  57307. if !graphql.HasFieldError(ctx, fc) {
  57308. ec.Errorf(ctx, "must not be null")
  57309. }
  57310. return graphql.Null
  57311. }
  57312. res := resTmp.(*DeliveryMethodDefinitionConnection)
  57313. fc.Result = res
  57314. return ec.marshalNDeliveryMethodDefinitionConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryMethodDefinitionConnection(ctx, field.Selections, res)
  57315. }
  57316. func (ec *executionContext) fieldContext_DeliveryLocationGroupZone_methodDefinitions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  57317. fc = &graphql.FieldContext{
  57318. Object: "DeliveryLocationGroupZone",
  57319. Field: field,
  57320. IsMethod: false,
  57321. IsResolver: false,
  57322. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  57323. switch field.Name {
  57324. case "edges":
  57325. return ec.fieldContext_DeliveryMethodDefinitionConnection_edges(ctx, field)
  57326. case "nodes":
  57327. return ec.fieldContext_DeliveryMethodDefinitionConnection_nodes(ctx, field)
  57328. case "pageInfo":
  57329. return ec.fieldContext_DeliveryMethodDefinitionConnection_pageInfo(ctx, field)
  57330. }
  57331. return nil, fmt.Errorf("no field named %q was found under type DeliveryMethodDefinitionConnection", field.Name)
  57332. },
  57333. }
  57334. defer func() {
  57335. if r := recover(); r != nil {
  57336. err = ec.Recover(ctx, r)
  57337. ec.Error(ctx, err)
  57338. }
  57339. }()
  57340. ctx = graphql.WithFieldContext(ctx, fc)
  57341. if fc.Args, err = ec.field_DeliveryLocationGroupZone_methodDefinitions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  57342. ec.Error(ctx, err)
  57343. return
  57344. }
  57345. return fc, nil
  57346. }
  57347. func (ec *executionContext) _DeliveryLocationGroupZone_zone(ctx context.Context, field graphql.CollectedField, obj *DeliveryLocationGroupZone) (ret graphql.Marshaler) {
  57348. fc, err := ec.fieldContext_DeliveryLocationGroupZone_zone(ctx, field)
  57349. if err != nil {
  57350. return graphql.Null
  57351. }
  57352. ctx = graphql.WithFieldContext(ctx, fc)
  57353. defer func() {
  57354. if r := recover(); r != nil {
  57355. ec.Error(ctx, ec.Recover(ctx, r))
  57356. ret = graphql.Null
  57357. }
  57358. }()
  57359. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  57360. ctx = rctx // use context from middleware stack in children
  57361. return obj.Zone, nil
  57362. })
  57363. if err != nil {
  57364. ec.Error(ctx, err)
  57365. return graphql.Null
  57366. }
  57367. if resTmp == nil {
  57368. if !graphql.HasFieldError(ctx, fc) {
  57369. ec.Errorf(ctx, "must not be null")
  57370. }
  57371. return graphql.Null
  57372. }
  57373. res := resTmp.(*DeliveryZone)
  57374. fc.Result = res
  57375. return ec.marshalNDeliveryZone2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryZone(ctx, field.Selections, res)
  57376. }
  57377. func (ec *executionContext) fieldContext_DeliveryLocationGroupZone_zone(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  57378. fc = &graphql.FieldContext{
  57379. Object: "DeliveryLocationGroupZone",
  57380. Field: field,
  57381. IsMethod: false,
  57382. IsResolver: false,
  57383. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  57384. switch field.Name {
  57385. case "countries":
  57386. return ec.fieldContext_DeliveryZone_countries(ctx, field)
  57387. case "id":
  57388. return ec.fieldContext_DeliveryZone_id(ctx, field)
  57389. case "name":
  57390. return ec.fieldContext_DeliveryZone_name(ctx, field)
  57391. }
  57392. return nil, fmt.Errorf("no field named %q was found under type DeliveryZone", field.Name)
  57393. },
  57394. }
  57395. return fc, nil
  57396. }
  57397. func (ec *executionContext) _DeliveryLocationGroupZoneConnection_edges(ctx context.Context, field graphql.CollectedField, obj *DeliveryLocationGroupZoneConnection) (ret graphql.Marshaler) {
  57398. fc, err := ec.fieldContext_DeliveryLocationGroupZoneConnection_edges(ctx, field)
  57399. if err != nil {
  57400. return graphql.Null
  57401. }
  57402. ctx = graphql.WithFieldContext(ctx, fc)
  57403. defer func() {
  57404. if r := recover(); r != nil {
  57405. ec.Error(ctx, ec.Recover(ctx, r))
  57406. ret = graphql.Null
  57407. }
  57408. }()
  57409. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  57410. ctx = rctx // use context from middleware stack in children
  57411. return obj.Edges, nil
  57412. })
  57413. if err != nil {
  57414. ec.Error(ctx, err)
  57415. return graphql.Null
  57416. }
  57417. if resTmp == nil {
  57418. if !graphql.HasFieldError(ctx, fc) {
  57419. ec.Errorf(ctx, "must not be null")
  57420. }
  57421. return graphql.Null
  57422. }
  57423. res := resTmp.([]*DeliveryLocationGroupZoneEdge)
  57424. fc.Result = res
  57425. return ec.marshalNDeliveryLocationGroupZoneEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryLocationGroupZoneEdgeᚄ(ctx, field.Selections, res)
  57426. }
  57427. func (ec *executionContext) fieldContext_DeliveryLocationGroupZoneConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  57428. fc = &graphql.FieldContext{
  57429. Object: "DeliveryLocationGroupZoneConnection",
  57430. Field: field,
  57431. IsMethod: false,
  57432. IsResolver: false,
  57433. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  57434. switch field.Name {
  57435. case "cursor":
  57436. return ec.fieldContext_DeliveryLocationGroupZoneEdge_cursor(ctx, field)
  57437. case "node":
  57438. return ec.fieldContext_DeliveryLocationGroupZoneEdge_node(ctx, field)
  57439. }
  57440. return nil, fmt.Errorf("no field named %q was found under type DeliveryLocationGroupZoneEdge", field.Name)
  57441. },
  57442. }
  57443. return fc, nil
  57444. }
  57445. func (ec *executionContext) _DeliveryLocationGroupZoneConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *DeliveryLocationGroupZoneConnection) (ret graphql.Marshaler) {
  57446. fc, err := ec.fieldContext_DeliveryLocationGroupZoneConnection_nodes(ctx, field)
  57447. if err != nil {
  57448. return graphql.Null
  57449. }
  57450. ctx = graphql.WithFieldContext(ctx, fc)
  57451. defer func() {
  57452. if r := recover(); r != nil {
  57453. ec.Error(ctx, ec.Recover(ctx, r))
  57454. ret = graphql.Null
  57455. }
  57456. }()
  57457. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  57458. ctx = rctx // use context from middleware stack in children
  57459. return obj.Nodes, nil
  57460. })
  57461. if err != nil {
  57462. ec.Error(ctx, err)
  57463. return graphql.Null
  57464. }
  57465. if resTmp == nil {
  57466. if !graphql.HasFieldError(ctx, fc) {
  57467. ec.Errorf(ctx, "must not be null")
  57468. }
  57469. return graphql.Null
  57470. }
  57471. res := resTmp.([]*DeliveryLocationGroupZone)
  57472. fc.Result = res
  57473. return ec.marshalNDeliveryLocationGroupZone2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryLocationGroupZoneᚄ(ctx, field.Selections, res)
  57474. }
  57475. func (ec *executionContext) fieldContext_DeliveryLocationGroupZoneConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  57476. fc = &graphql.FieldContext{
  57477. Object: "DeliveryLocationGroupZoneConnection",
  57478. Field: field,
  57479. IsMethod: false,
  57480. IsResolver: false,
  57481. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  57482. switch field.Name {
  57483. case "methodDefinitionCounts":
  57484. return ec.fieldContext_DeliveryLocationGroupZone_methodDefinitionCounts(ctx, field)
  57485. case "methodDefinitions":
  57486. return ec.fieldContext_DeliveryLocationGroupZone_methodDefinitions(ctx, field)
  57487. case "zone":
  57488. return ec.fieldContext_DeliveryLocationGroupZone_zone(ctx, field)
  57489. }
  57490. return nil, fmt.Errorf("no field named %q was found under type DeliveryLocationGroupZone", field.Name)
  57491. },
  57492. }
  57493. return fc, nil
  57494. }
  57495. func (ec *executionContext) _DeliveryLocationGroupZoneConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *DeliveryLocationGroupZoneConnection) (ret graphql.Marshaler) {
  57496. fc, err := ec.fieldContext_DeliveryLocationGroupZoneConnection_pageInfo(ctx, field)
  57497. if err != nil {
  57498. return graphql.Null
  57499. }
  57500. ctx = graphql.WithFieldContext(ctx, fc)
  57501. defer func() {
  57502. if r := recover(); r != nil {
  57503. ec.Error(ctx, ec.Recover(ctx, r))
  57504. ret = graphql.Null
  57505. }
  57506. }()
  57507. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  57508. ctx = rctx // use context from middleware stack in children
  57509. return obj.PageInfo, nil
  57510. })
  57511. if err != nil {
  57512. ec.Error(ctx, err)
  57513. return graphql.Null
  57514. }
  57515. if resTmp == nil {
  57516. if !graphql.HasFieldError(ctx, fc) {
  57517. ec.Errorf(ctx, "must not be null")
  57518. }
  57519. return graphql.Null
  57520. }
  57521. res := resTmp.(*PageInfo)
  57522. fc.Result = res
  57523. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  57524. }
  57525. func (ec *executionContext) fieldContext_DeliveryLocationGroupZoneConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  57526. fc = &graphql.FieldContext{
  57527. Object: "DeliveryLocationGroupZoneConnection",
  57528. Field: field,
  57529. IsMethod: false,
  57530. IsResolver: false,
  57531. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  57532. switch field.Name {
  57533. case "endCursor":
  57534. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  57535. case "hasNextPage":
  57536. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  57537. case "hasPreviousPage":
  57538. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  57539. case "startCursor":
  57540. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  57541. }
  57542. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  57543. },
  57544. }
  57545. return fc, nil
  57546. }
  57547. func (ec *executionContext) _DeliveryLocationGroupZoneEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *DeliveryLocationGroupZoneEdge) (ret graphql.Marshaler) {
  57548. fc, err := ec.fieldContext_DeliveryLocationGroupZoneEdge_cursor(ctx, field)
  57549. if err != nil {
  57550. return graphql.Null
  57551. }
  57552. ctx = graphql.WithFieldContext(ctx, fc)
  57553. defer func() {
  57554. if r := recover(); r != nil {
  57555. ec.Error(ctx, ec.Recover(ctx, r))
  57556. ret = graphql.Null
  57557. }
  57558. }()
  57559. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  57560. ctx = rctx // use context from middleware stack in children
  57561. return obj.Cursor, nil
  57562. })
  57563. if err != nil {
  57564. ec.Error(ctx, err)
  57565. return graphql.Null
  57566. }
  57567. if resTmp == nil {
  57568. if !graphql.HasFieldError(ctx, fc) {
  57569. ec.Errorf(ctx, "must not be null")
  57570. }
  57571. return graphql.Null
  57572. }
  57573. res := resTmp.(string)
  57574. fc.Result = res
  57575. return ec.marshalNString2string(ctx, field.Selections, res)
  57576. }
  57577. func (ec *executionContext) fieldContext_DeliveryLocationGroupZoneEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  57578. fc = &graphql.FieldContext{
  57579. Object: "DeliveryLocationGroupZoneEdge",
  57580. Field: field,
  57581. IsMethod: false,
  57582. IsResolver: false,
  57583. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  57584. return nil, errors.New("field of type String does not have child fields")
  57585. },
  57586. }
  57587. return fc, nil
  57588. }
  57589. func (ec *executionContext) _DeliveryLocationGroupZoneEdge_node(ctx context.Context, field graphql.CollectedField, obj *DeliveryLocationGroupZoneEdge) (ret graphql.Marshaler) {
  57590. fc, err := ec.fieldContext_DeliveryLocationGroupZoneEdge_node(ctx, field)
  57591. if err != nil {
  57592. return graphql.Null
  57593. }
  57594. ctx = graphql.WithFieldContext(ctx, fc)
  57595. defer func() {
  57596. if r := recover(); r != nil {
  57597. ec.Error(ctx, ec.Recover(ctx, r))
  57598. ret = graphql.Null
  57599. }
  57600. }()
  57601. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  57602. ctx = rctx // use context from middleware stack in children
  57603. return obj.Node, nil
  57604. })
  57605. if err != nil {
  57606. ec.Error(ctx, err)
  57607. return graphql.Null
  57608. }
  57609. if resTmp == nil {
  57610. if !graphql.HasFieldError(ctx, fc) {
  57611. ec.Errorf(ctx, "must not be null")
  57612. }
  57613. return graphql.Null
  57614. }
  57615. res := resTmp.(*DeliveryLocationGroupZone)
  57616. fc.Result = res
  57617. return ec.marshalNDeliveryLocationGroupZone2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryLocationGroupZone(ctx, field.Selections, res)
  57618. }
  57619. func (ec *executionContext) fieldContext_DeliveryLocationGroupZoneEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  57620. fc = &graphql.FieldContext{
  57621. Object: "DeliveryLocationGroupZoneEdge",
  57622. Field: field,
  57623. IsMethod: false,
  57624. IsResolver: false,
  57625. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  57626. switch field.Name {
  57627. case "methodDefinitionCounts":
  57628. return ec.fieldContext_DeliveryLocationGroupZone_methodDefinitionCounts(ctx, field)
  57629. case "methodDefinitions":
  57630. return ec.fieldContext_DeliveryLocationGroupZone_methodDefinitions(ctx, field)
  57631. case "zone":
  57632. return ec.fieldContext_DeliveryLocationGroupZone_zone(ctx, field)
  57633. }
  57634. return nil, fmt.Errorf("no field named %q was found under type DeliveryLocationGroupZone", field.Name)
  57635. },
  57636. }
  57637. return fc, nil
  57638. }
  57639. func (ec *executionContext) _DeliveryMethod_id(ctx context.Context, field graphql.CollectedField, obj *DeliveryMethod) (ret graphql.Marshaler) {
  57640. fc, err := ec.fieldContext_DeliveryMethod_id(ctx, field)
  57641. if err != nil {
  57642. return graphql.Null
  57643. }
  57644. ctx = graphql.WithFieldContext(ctx, fc)
  57645. defer func() {
  57646. if r := recover(); r != nil {
  57647. ec.Error(ctx, ec.Recover(ctx, r))
  57648. ret = graphql.Null
  57649. }
  57650. }()
  57651. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  57652. ctx = rctx // use context from middleware stack in children
  57653. return obj.ID, nil
  57654. })
  57655. if err != nil {
  57656. ec.Error(ctx, err)
  57657. return graphql.Null
  57658. }
  57659. if resTmp == nil {
  57660. if !graphql.HasFieldError(ctx, fc) {
  57661. ec.Errorf(ctx, "must not be null")
  57662. }
  57663. return graphql.Null
  57664. }
  57665. res := resTmp.(string)
  57666. fc.Result = res
  57667. return ec.marshalNID2string(ctx, field.Selections, res)
  57668. }
  57669. func (ec *executionContext) fieldContext_DeliveryMethod_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  57670. fc = &graphql.FieldContext{
  57671. Object: "DeliveryMethod",
  57672. Field: field,
  57673. IsMethod: false,
  57674. IsResolver: false,
  57675. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  57676. return nil, errors.New("field of type ID does not have child fields")
  57677. },
  57678. }
  57679. return fc, nil
  57680. }
  57681. func (ec *executionContext) _DeliveryMethod_maxDeliveryDateTime(ctx context.Context, field graphql.CollectedField, obj *DeliveryMethod) (ret graphql.Marshaler) {
  57682. fc, err := ec.fieldContext_DeliveryMethod_maxDeliveryDateTime(ctx, field)
  57683. if err != nil {
  57684. return graphql.Null
  57685. }
  57686. ctx = graphql.WithFieldContext(ctx, fc)
  57687. defer func() {
  57688. if r := recover(); r != nil {
  57689. ec.Error(ctx, ec.Recover(ctx, r))
  57690. ret = graphql.Null
  57691. }
  57692. }()
  57693. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  57694. ctx = rctx // use context from middleware stack in children
  57695. return obj.MaxDeliveryDateTime, nil
  57696. })
  57697. if err != nil {
  57698. ec.Error(ctx, err)
  57699. return graphql.Null
  57700. }
  57701. if resTmp == nil {
  57702. return graphql.Null
  57703. }
  57704. res := resTmp.(*string)
  57705. fc.Result = res
  57706. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  57707. }
  57708. func (ec *executionContext) fieldContext_DeliveryMethod_maxDeliveryDateTime(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  57709. fc = &graphql.FieldContext{
  57710. Object: "DeliveryMethod",
  57711. Field: field,
  57712. IsMethod: false,
  57713. IsResolver: false,
  57714. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  57715. return nil, errors.New("field of type DateTime does not have child fields")
  57716. },
  57717. }
  57718. return fc, nil
  57719. }
  57720. func (ec *executionContext) _DeliveryMethod_methodType(ctx context.Context, field graphql.CollectedField, obj *DeliveryMethod) (ret graphql.Marshaler) {
  57721. fc, err := ec.fieldContext_DeliveryMethod_methodType(ctx, field)
  57722. if err != nil {
  57723. return graphql.Null
  57724. }
  57725. ctx = graphql.WithFieldContext(ctx, fc)
  57726. defer func() {
  57727. if r := recover(); r != nil {
  57728. ec.Error(ctx, ec.Recover(ctx, r))
  57729. ret = graphql.Null
  57730. }
  57731. }()
  57732. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  57733. ctx = rctx // use context from middleware stack in children
  57734. return obj.MethodType, nil
  57735. })
  57736. if err != nil {
  57737. ec.Error(ctx, err)
  57738. return graphql.Null
  57739. }
  57740. if resTmp == nil {
  57741. if !graphql.HasFieldError(ctx, fc) {
  57742. ec.Errorf(ctx, "must not be null")
  57743. }
  57744. return graphql.Null
  57745. }
  57746. res := resTmp.(DeliveryMethodType)
  57747. fc.Result = res
  57748. return ec.marshalNDeliveryMethodType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryMethodType(ctx, field.Selections, res)
  57749. }
  57750. func (ec *executionContext) fieldContext_DeliveryMethod_methodType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  57751. fc = &graphql.FieldContext{
  57752. Object: "DeliveryMethod",
  57753. Field: field,
  57754. IsMethod: false,
  57755. IsResolver: false,
  57756. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  57757. return nil, errors.New("field of type DeliveryMethodType does not have child fields")
  57758. },
  57759. }
  57760. return fc, nil
  57761. }
  57762. func (ec *executionContext) _DeliveryMethod_minDeliveryDateTime(ctx context.Context, field graphql.CollectedField, obj *DeliveryMethod) (ret graphql.Marshaler) {
  57763. fc, err := ec.fieldContext_DeliveryMethod_minDeliveryDateTime(ctx, field)
  57764. if err != nil {
  57765. return graphql.Null
  57766. }
  57767. ctx = graphql.WithFieldContext(ctx, fc)
  57768. defer func() {
  57769. if r := recover(); r != nil {
  57770. ec.Error(ctx, ec.Recover(ctx, r))
  57771. ret = graphql.Null
  57772. }
  57773. }()
  57774. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  57775. ctx = rctx // use context from middleware stack in children
  57776. return obj.MinDeliveryDateTime, nil
  57777. })
  57778. if err != nil {
  57779. ec.Error(ctx, err)
  57780. return graphql.Null
  57781. }
  57782. if resTmp == nil {
  57783. return graphql.Null
  57784. }
  57785. res := resTmp.(*string)
  57786. fc.Result = res
  57787. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  57788. }
  57789. func (ec *executionContext) fieldContext_DeliveryMethod_minDeliveryDateTime(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  57790. fc = &graphql.FieldContext{
  57791. Object: "DeliveryMethod",
  57792. Field: field,
  57793. IsMethod: false,
  57794. IsResolver: false,
  57795. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  57796. return nil, errors.New("field of type DateTime does not have child fields")
  57797. },
  57798. }
  57799. return fc, nil
  57800. }
  57801. func (ec *executionContext) _DeliveryMethodDefinition_active(ctx context.Context, field graphql.CollectedField, obj *DeliveryMethodDefinition) (ret graphql.Marshaler) {
  57802. fc, err := ec.fieldContext_DeliveryMethodDefinition_active(ctx, field)
  57803. if err != nil {
  57804. return graphql.Null
  57805. }
  57806. ctx = graphql.WithFieldContext(ctx, fc)
  57807. defer func() {
  57808. if r := recover(); r != nil {
  57809. ec.Error(ctx, ec.Recover(ctx, r))
  57810. ret = graphql.Null
  57811. }
  57812. }()
  57813. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  57814. ctx = rctx // use context from middleware stack in children
  57815. return obj.Active, nil
  57816. })
  57817. if err != nil {
  57818. ec.Error(ctx, err)
  57819. return graphql.Null
  57820. }
  57821. if resTmp == nil {
  57822. if !graphql.HasFieldError(ctx, fc) {
  57823. ec.Errorf(ctx, "must not be null")
  57824. }
  57825. return graphql.Null
  57826. }
  57827. res := resTmp.(bool)
  57828. fc.Result = res
  57829. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  57830. }
  57831. func (ec *executionContext) fieldContext_DeliveryMethodDefinition_active(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  57832. fc = &graphql.FieldContext{
  57833. Object: "DeliveryMethodDefinition",
  57834. Field: field,
  57835. IsMethod: false,
  57836. IsResolver: false,
  57837. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  57838. return nil, errors.New("field of type Boolean does not have child fields")
  57839. },
  57840. }
  57841. return fc, nil
  57842. }
  57843. func (ec *executionContext) _DeliveryMethodDefinition_description(ctx context.Context, field graphql.CollectedField, obj *DeliveryMethodDefinition) (ret graphql.Marshaler) {
  57844. fc, err := ec.fieldContext_DeliveryMethodDefinition_description(ctx, field)
  57845. if err != nil {
  57846. return graphql.Null
  57847. }
  57848. ctx = graphql.WithFieldContext(ctx, fc)
  57849. defer func() {
  57850. if r := recover(); r != nil {
  57851. ec.Error(ctx, ec.Recover(ctx, r))
  57852. ret = graphql.Null
  57853. }
  57854. }()
  57855. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  57856. ctx = rctx // use context from middleware stack in children
  57857. return obj.Description, nil
  57858. })
  57859. if err != nil {
  57860. ec.Error(ctx, err)
  57861. return graphql.Null
  57862. }
  57863. if resTmp == nil {
  57864. return graphql.Null
  57865. }
  57866. res := resTmp.(*string)
  57867. fc.Result = res
  57868. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  57869. }
  57870. func (ec *executionContext) fieldContext_DeliveryMethodDefinition_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  57871. fc = &graphql.FieldContext{
  57872. Object: "DeliveryMethodDefinition",
  57873. Field: field,
  57874. IsMethod: false,
  57875. IsResolver: false,
  57876. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  57877. return nil, errors.New("field of type String does not have child fields")
  57878. },
  57879. }
  57880. return fc, nil
  57881. }
  57882. func (ec *executionContext) _DeliveryMethodDefinition_id(ctx context.Context, field graphql.CollectedField, obj *DeliveryMethodDefinition) (ret graphql.Marshaler) {
  57883. fc, err := ec.fieldContext_DeliveryMethodDefinition_id(ctx, field)
  57884. if err != nil {
  57885. return graphql.Null
  57886. }
  57887. ctx = graphql.WithFieldContext(ctx, fc)
  57888. defer func() {
  57889. if r := recover(); r != nil {
  57890. ec.Error(ctx, ec.Recover(ctx, r))
  57891. ret = graphql.Null
  57892. }
  57893. }()
  57894. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  57895. ctx = rctx // use context from middleware stack in children
  57896. return obj.ID, nil
  57897. })
  57898. if err != nil {
  57899. ec.Error(ctx, err)
  57900. return graphql.Null
  57901. }
  57902. if resTmp == nil {
  57903. if !graphql.HasFieldError(ctx, fc) {
  57904. ec.Errorf(ctx, "must not be null")
  57905. }
  57906. return graphql.Null
  57907. }
  57908. res := resTmp.(string)
  57909. fc.Result = res
  57910. return ec.marshalNID2string(ctx, field.Selections, res)
  57911. }
  57912. func (ec *executionContext) fieldContext_DeliveryMethodDefinition_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  57913. fc = &graphql.FieldContext{
  57914. Object: "DeliveryMethodDefinition",
  57915. Field: field,
  57916. IsMethod: false,
  57917. IsResolver: false,
  57918. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  57919. return nil, errors.New("field of type ID does not have child fields")
  57920. },
  57921. }
  57922. return fc, nil
  57923. }
  57924. func (ec *executionContext) _DeliveryMethodDefinition_methodConditions(ctx context.Context, field graphql.CollectedField, obj *DeliveryMethodDefinition) (ret graphql.Marshaler) {
  57925. fc, err := ec.fieldContext_DeliveryMethodDefinition_methodConditions(ctx, field)
  57926. if err != nil {
  57927. return graphql.Null
  57928. }
  57929. ctx = graphql.WithFieldContext(ctx, fc)
  57930. defer func() {
  57931. if r := recover(); r != nil {
  57932. ec.Error(ctx, ec.Recover(ctx, r))
  57933. ret = graphql.Null
  57934. }
  57935. }()
  57936. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  57937. ctx = rctx // use context from middleware stack in children
  57938. return obj.MethodConditions, nil
  57939. })
  57940. if err != nil {
  57941. ec.Error(ctx, err)
  57942. return graphql.Null
  57943. }
  57944. if resTmp == nil {
  57945. if !graphql.HasFieldError(ctx, fc) {
  57946. ec.Errorf(ctx, "must not be null")
  57947. }
  57948. return graphql.Null
  57949. }
  57950. res := resTmp.([]*DeliveryCondition)
  57951. fc.Result = res
  57952. return ec.marshalNDeliveryCondition2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryConditionᚄ(ctx, field.Selections, res)
  57953. }
  57954. func (ec *executionContext) fieldContext_DeliveryMethodDefinition_methodConditions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  57955. fc = &graphql.FieldContext{
  57956. Object: "DeliveryMethodDefinition",
  57957. Field: field,
  57958. IsMethod: false,
  57959. IsResolver: false,
  57960. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  57961. switch field.Name {
  57962. case "conditionCriteria":
  57963. return ec.fieldContext_DeliveryCondition_conditionCriteria(ctx, field)
  57964. case "field":
  57965. return ec.fieldContext_DeliveryCondition_field(ctx, field)
  57966. case "id":
  57967. return ec.fieldContext_DeliveryCondition_id(ctx, field)
  57968. case "operator":
  57969. return ec.fieldContext_DeliveryCondition_operator(ctx, field)
  57970. }
  57971. return nil, fmt.Errorf("no field named %q was found under type DeliveryCondition", field.Name)
  57972. },
  57973. }
  57974. return fc, nil
  57975. }
  57976. func (ec *executionContext) _DeliveryMethodDefinition_name(ctx context.Context, field graphql.CollectedField, obj *DeliveryMethodDefinition) (ret graphql.Marshaler) {
  57977. fc, err := ec.fieldContext_DeliveryMethodDefinition_name(ctx, field)
  57978. if err != nil {
  57979. return graphql.Null
  57980. }
  57981. ctx = graphql.WithFieldContext(ctx, fc)
  57982. defer func() {
  57983. if r := recover(); r != nil {
  57984. ec.Error(ctx, ec.Recover(ctx, r))
  57985. ret = graphql.Null
  57986. }
  57987. }()
  57988. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  57989. ctx = rctx // use context from middleware stack in children
  57990. return obj.Name, nil
  57991. })
  57992. if err != nil {
  57993. ec.Error(ctx, err)
  57994. return graphql.Null
  57995. }
  57996. if resTmp == nil {
  57997. if !graphql.HasFieldError(ctx, fc) {
  57998. ec.Errorf(ctx, "must not be null")
  57999. }
  58000. return graphql.Null
  58001. }
  58002. res := resTmp.(string)
  58003. fc.Result = res
  58004. return ec.marshalNString2string(ctx, field.Selections, res)
  58005. }
  58006. func (ec *executionContext) fieldContext_DeliveryMethodDefinition_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  58007. fc = &graphql.FieldContext{
  58008. Object: "DeliveryMethodDefinition",
  58009. Field: field,
  58010. IsMethod: false,
  58011. IsResolver: false,
  58012. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  58013. return nil, errors.New("field of type String does not have child fields")
  58014. },
  58015. }
  58016. return fc, nil
  58017. }
  58018. func (ec *executionContext) _DeliveryMethodDefinition_rateProvider(ctx context.Context, field graphql.CollectedField, obj *DeliveryMethodDefinition) (ret graphql.Marshaler) {
  58019. fc, err := ec.fieldContext_DeliveryMethodDefinition_rateProvider(ctx, field)
  58020. if err != nil {
  58021. return graphql.Null
  58022. }
  58023. ctx = graphql.WithFieldContext(ctx, fc)
  58024. defer func() {
  58025. if r := recover(); r != nil {
  58026. ec.Error(ctx, ec.Recover(ctx, r))
  58027. ret = graphql.Null
  58028. }
  58029. }()
  58030. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  58031. ctx = rctx // use context from middleware stack in children
  58032. return obj.RateProvider, nil
  58033. })
  58034. if err != nil {
  58035. ec.Error(ctx, err)
  58036. return graphql.Null
  58037. }
  58038. if resTmp == nil {
  58039. if !graphql.HasFieldError(ctx, fc) {
  58040. ec.Errorf(ctx, "must not be null")
  58041. }
  58042. return graphql.Null
  58043. }
  58044. res := resTmp.(DeliveryRateProvider)
  58045. fc.Result = res
  58046. return ec.marshalNDeliveryRateProvider2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryRateProvider(ctx, field.Selections, res)
  58047. }
  58048. func (ec *executionContext) fieldContext_DeliveryMethodDefinition_rateProvider(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  58049. fc = &graphql.FieldContext{
  58050. Object: "DeliveryMethodDefinition",
  58051. Field: field,
  58052. IsMethod: false,
  58053. IsResolver: false,
  58054. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  58055. return nil, errors.New("field of type DeliveryRateProvider does not have child fields")
  58056. },
  58057. }
  58058. return fc, nil
  58059. }
  58060. func (ec *executionContext) _DeliveryMethodDefinitionConnection_edges(ctx context.Context, field graphql.CollectedField, obj *DeliveryMethodDefinitionConnection) (ret graphql.Marshaler) {
  58061. fc, err := ec.fieldContext_DeliveryMethodDefinitionConnection_edges(ctx, field)
  58062. if err != nil {
  58063. return graphql.Null
  58064. }
  58065. ctx = graphql.WithFieldContext(ctx, fc)
  58066. defer func() {
  58067. if r := recover(); r != nil {
  58068. ec.Error(ctx, ec.Recover(ctx, r))
  58069. ret = graphql.Null
  58070. }
  58071. }()
  58072. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  58073. ctx = rctx // use context from middleware stack in children
  58074. return obj.Edges, nil
  58075. })
  58076. if err != nil {
  58077. ec.Error(ctx, err)
  58078. return graphql.Null
  58079. }
  58080. if resTmp == nil {
  58081. if !graphql.HasFieldError(ctx, fc) {
  58082. ec.Errorf(ctx, "must not be null")
  58083. }
  58084. return graphql.Null
  58085. }
  58086. res := resTmp.([]*DeliveryMethodDefinitionEdge)
  58087. fc.Result = res
  58088. return ec.marshalNDeliveryMethodDefinitionEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryMethodDefinitionEdgeᚄ(ctx, field.Selections, res)
  58089. }
  58090. func (ec *executionContext) fieldContext_DeliveryMethodDefinitionConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  58091. fc = &graphql.FieldContext{
  58092. Object: "DeliveryMethodDefinitionConnection",
  58093. Field: field,
  58094. IsMethod: false,
  58095. IsResolver: false,
  58096. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  58097. switch field.Name {
  58098. case "cursor":
  58099. return ec.fieldContext_DeliveryMethodDefinitionEdge_cursor(ctx, field)
  58100. case "node":
  58101. return ec.fieldContext_DeliveryMethodDefinitionEdge_node(ctx, field)
  58102. }
  58103. return nil, fmt.Errorf("no field named %q was found under type DeliveryMethodDefinitionEdge", field.Name)
  58104. },
  58105. }
  58106. return fc, nil
  58107. }
  58108. func (ec *executionContext) _DeliveryMethodDefinitionConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *DeliveryMethodDefinitionConnection) (ret graphql.Marshaler) {
  58109. fc, err := ec.fieldContext_DeliveryMethodDefinitionConnection_nodes(ctx, field)
  58110. if err != nil {
  58111. return graphql.Null
  58112. }
  58113. ctx = graphql.WithFieldContext(ctx, fc)
  58114. defer func() {
  58115. if r := recover(); r != nil {
  58116. ec.Error(ctx, ec.Recover(ctx, r))
  58117. ret = graphql.Null
  58118. }
  58119. }()
  58120. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  58121. ctx = rctx // use context from middleware stack in children
  58122. return obj.Nodes, nil
  58123. })
  58124. if err != nil {
  58125. ec.Error(ctx, err)
  58126. return graphql.Null
  58127. }
  58128. if resTmp == nil {
  58129. if !graphql.HasFieldError(ctx, fc) {
  58130. ec.Errorf(ctx, "must not be null")
  58131. }
  58132. return graphql.Null
  58133. }
  58134. res := resTmp.([]*DeliveryMethodDefinition)
  58135. fc.Result = res
  58136. return ec.marshalNDeliveryMethodDefinition2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryMethodDefinitionᚄ(ctx, field.Selections, res)
  58137. }
  58138. func (ec *executionContext) fieldContext_DeliveryMethodDefinitionConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  58139. fc = &graphql.FieldContext{
  58140. Object: "DeliveryMethodDefinitionConnection",
  58141. Field: field,
  58142. IsMethod: false,
  58143. IsResolver: false,
  58144. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  58145. switch field.Name {
  58146. case "active":
  58147. return ec.fieldContext_DeliveryMethodDefinition_active(ctx, field)
  58148. case "description":
  58149. return ec.fieldContext_DeliveryMethodDefinition_description(ctx, field)
  58150. case "id":
  58151. return ec.fieldContext_DeliveryMethodDefinition_id(ctx, field)
  58152. case "methodConditions":
  58153. return ec.fieldContext_DeliveryMethodDefinition_methodConditions(ctx, field)
  58154. case "name":
  58155. return ec.fieldContext_DeliveryMethodDefinition_name(ctx, field)
  58156. case "rateProvider":
  58157. return ec.fieldContext_DeliveryMethodDefinition_rateProvider(ctx, field)
  58158. }
  58159. return nil, fmt.Errorf("no field named %q was found under type DeliveryMethodDefinition", field.Name)
  58160. },
  58161. }
  58162. return fc, nil
  58163. }
  58164. func (ec *executionContext) _DeliveryMethodDefinitionConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *DeliveryMethodDefinitionConnection) (ret graphql.Marshaler) {
  58165. fc, err := ec.fieldContext_DeliveryMethodDefinitionConnection_pageInfo(ctx, field)
  58166. if err != nil {
  58167. return graphql.Null
  58168. }
  58169. ctx = graphql.WithFieldContext(ctx, fc)
  58170. defer func() {
  58171. if r := recover(); r != nil {
  58172. ec.Error(ctx, ec.Recover(ctx, r))
  58173. ret = graphql.Null
  58174. }
  58175. }()
  58176. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  58177. ctx = rctx // use context from middleware stack in children
  58178. return obj.PageInfo, nil
  58179. })
  58180. if err != nil {
  58181. ec.Error(ctx, err)
  58182. return graphql.Null
  58183. }
  58184. if resTmp == nil {
  58185. if !graphql.HasFieldError(ctx, fc) {
  58186. ec.Errorf(ctx, "must not be null")
  58187. }
  58188. return graphql.Null
  58189. }
  58190. res := resTmp.(*PageInfo)
  58191. fc.Result = res
  58192. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  58193. }
  58194. func (ec *executionContext) fieldContext_DeliveryMethodDefinitionConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  58195. fc = &graphql.FieldContext{
  58196. Object: "DeliveryMethodDefinitionConnection",
  58197. Field: field,
  58198. IsMethod: false,
  58199. IsResolver: false,
  58200. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  58201. switch field.Name {
  58202. case "endCursor":
  58203. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  58204. case "hasNextPage":
  58205. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  58206. case "hasPreviousPage":
  58207. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  58208. case "startCursor":
  58209. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  58210. }
  58211. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  58212. },
  58213. }
  58214. return fc, nil
  58215. }
  58216. func (ec *executionContext) _DeliveryMethodDefinitionCounts_participantDefinitionsCount(ctx context.Context, field graphql.CollectedField, obj *DeliveryMethodDefinitionCounts) (ret graphql.Marshaler) {
  58217. fc, err := ec.fieldContext_DeliveryMethodDefinitionCounts_participantDefinitionsCount(ctx, field)
  58218. if err != nil {
  58219. return graphql.Null
  58220. }
  58221. ctx = graphql.WithFieldContext(ctx, fc)
  58222. defer func() {
  58223. if r := recover(); r != nil {
  58224. ec.Error(ctx, ec.Recover(ctx, r))
  58225. ret = graphql.Null
  58226. }
  58227. }()
  58228. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  58229. ctx = rctx // use context from middleware stack in children
  58230. return obj.ParticipantDefinitionsCount, nil
  58231. })
  58232. if err != nil {
  58233. ec.Error(ctx, err)
  58234. return graphql.Null
  58235. }
  58236. if resTmp == nil {
  58237. if !graphql.HasFieldError(ctx, fc) {
  58238. ec.Errorf(ctx, "must not be null")
  58239. }
  58240. return graphql.Null
  58241. }
  58242. res := resTmp.(int)
  58243. fc.Result = res
  58244. return ec.marshalNInt2int(ctx, field.Selections, res)
  58245. }
  58246. func (ec *executionContext) fieldContext_DeliveryMethodDefinitionCounts_participantDefinitionsCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  58247. fc = &graphql.FieldContext{
  58248. Object: "DeliveryMethodDefinitionCounts",
  58249. Field: field,
  58250. IsMethod: false,
  58251. IsResolver: false,
  58252. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  58253. return nil, errors.New("field of type Int does not have child fields")
  58254. },
  58255. }
  58256. return fc, nil
  58257. }
  58258. func (ec *executionContext) _DeliveryMethodDefinitionCounts_rateDefinitionsCount(ctx context.Context, field graphql.CollectedField, obj *DeliveryMethodDefinitionCounts) (ret graphql.Marshaler) {
  58259. fc, err := ec.fieldContext_DeliveryMethodDefinitionCounts_rateDefinitionsCount(ctx, field)
  58260. if err != nil {
  58261. return graphql.Null
  58262. }
  58263. ctx = graphql.WithFieldContext(ctx, fc)
  58264. defer func() {
  58265. if r := recover(); r != nil {
  58266. ec.Error(ctx, ec.Recover(ctx, r))
  58267. ret = graphql.Null
  58268. }
  58269. }()
  58270. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  58271. ctx = rctx // use context from middleware stack in children
  58272. return obj.RateDefinitionsCount, nil
  58273. })
  58274. if err != nil {
  58275. ec.Error(ctx, err)
  58276. return graphql.Null
  58277. }
  58278. if resTmp == nil {
  58279. if !graphql.HasFieldError(ctx, fc) {
  58280. ec.Errorf(ctx, "must not be null")
  58281. }
  58282. return graphql.Null
  58283. }
  58284. res := resTmp.(int)
  58285. fc.Result = res
  58286. return ec.marshalNInt2int(ctx, field.Selections, res)
  58287. }
  58288. func (ec *executionContext) fieldContext_DeliveryMethodDefinitionCounts_rateDefinitionsCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  58289. fc = &graphql.FieldContext{
  58290. Object: "DeliveryMethodDefinitionCounts",
  58291. Field: field,
  58292. IsMethod: false,
  58293. IsResolver: false,
  58294. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  58295. return nil, errors.New("field of type Int does not have child fields")
  58296. },
  58297. }
  58298. return fc, nil
  58299. }
  58300. func (ec *executionContext) _DeliveryMethodDefinitionEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *DeliveryMethodDefinitionEdge) (ret graphql.Marshaler) {
  58301. fc, err := ec.fieldContext_DeliveryMethodDefinitionEdge_cursor(ctx, field)
  58302. if err != nil {
  58303. return graphql.Null
  58304. }
  58305. ctx = graphql.WithFieldContext(ctx, fc)
  58306. defer func() {
  58307. if r := recover(); r != nil {
  58308. ec.Error(ctx, ec.Recover(ctx, r))
  58309. ret = graphql.Null
  58310. }
  58311. }()
  58312. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  58313. ctx = rctx // use context from middleware stack in children
  58314. return obj.Cursor, nil
  58315. })
  58316. if err != nil {
  58317. ec.Error(ctx, err)
  58318. return graphql.Null
  58319. }
  58320. if resTmp == nil {
  58321. if !graphql.HasFieldError(ctx, fc) {
  58322. ec.Errorf(ctx, "must not be null")
  58323. }
  58324. return graphql.Null
  58325. }
  58326. res := resTmp.(string)
  58327. fc.Result = res
  58328. return ec.marshalNString2string(ctx, field.Selections, res)
  58329. }
  58330. func (ec *executionContext) fieldContext_DeliveryMethodDefinitionEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  58331. fc = &graphql.FieldContext{
  58332. Object: "DeliveryMethodDefinitionEdge",
  58333. Field: field,
  58334. IsMethod: false,
  58335. IsResolver: false,
  58336. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  58337. return nil, errors.New("field of type String does not have child fields")
  58338. },
  58339. }
  58340. return fc, nil
  58341. }
  58342. func (ec *executionContext) _DeliveryMethodDefinitionEdge_node(ctx context.Context, field graphql.CollectedField, obj *DeliveryMethodDefinitionEdge) (ret graphql.Marshaler) {
  58343. fc, err := ec.fieldContext_DeliveryMethodDefinitionEdge_node(ctx, field)
  58344. if err != nil {
  58345. return graphql.Null
  58346. }
  58347. ctx = graphql.WithFieldContext(ctx, fc)
  58348. defer func() {
  58349. if r := recover(); r != nil {
  58350. ec.Error(ctx, ec.Recover(ctx, r))
  58351. ret = graphql.Null
  58352. }
  58353. }()
  58354. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  58355. ctx = rctx // use context from middleware stack in children
  58356. return obj.Node, nil
  58357. })
  58358. if err != nil {
  58359. ec.Error(ctx, err)
  58360. return graphql.Null
  58361. }
  58362. if resTmp == nil {
  58363. if !graphql.HasFieldError(ctx, fc) {
  58364. ec.Errorf(ctx, "must not be null")
  58365. }
  58366. return graphql.Null
  58367. }
  58368. res := resTmp.(*DeliveryMethodDefinition)
  58369. fc.Result = res
  58370. return ec.marshalNDeliveryMethodDefinition2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryMethodDefinition(ctx, field.Selections, res)
  58371. }
  58372. func (ec *executionContext) fieldContext_DeliveryMethodDefinitionEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  58373. fc = &graphql.FieldContext{
  58374. Object: "DeliveryMethodDefinitionEdge",
  58375. Field: field,
  58376. IsMethod: false,
  58377. IsResolver: false,
  58378. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  58379. switch field.Name {
  58380. case "active":
  58381. return ec.fieldContext_DeliveryMethodDefinition_active(ctx, field)
  58382. case "description":
  58383. return ec.fieldContext_DeliveryMethodDefinition_description(ctx, field)
  58384. case "id":
  58385. return ec.fieldContext_DeliveryMethodDefinition_id(ctx, field)
  58386. case "methodConditions":
  58387. return ec.fieldContext_DeliveryMethodDefinition_methodConditions(ctx, field)
  58388. case "name":
  58389. return ec.fieldContext_DeliveryMethodDefinition_name(ctx, field)
  58390. case "rateProvider":
  58391. return ec.fieldContext_DeliveryMethodDefinition_rateProvider(ctx, field)
  58392. }
  58393. return nil, fmt.Errorf("no field named %q was found under type DeliveryMethodDefinition", field.Name)
  58394. },
  58395. }
  58396. return fc, nil
  58397. }
  58398. func (ec *executionContext) _DeliveryParticipant_adaptToNewServicesFlag(ctx context.Context, field graphql.CollectedField, obj *DeliveryParticipant) (ret graphql.Marshaler) {
  58399. fc, err := ec.fieldContext_DeliveryParticipant_adaptToNewServicesFlag(ctx, field)
  58400. if err != nil {
  58401. return graphql.Null
  58402. }
  58403. ctx = graphql.WithFieldContext(ctx, fc)
  58404. defer func() {
  58405. if r := recover(); r != nil {
  58406. ec.Error(ctx, ec.Recover(ctx, r))
  58407. ret = graphql.Null
  58408. }
  58409. }()
  58410. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  58411. ctx = rctx // use context from middleware stack in children
  58412. return obj.AdaptToNewServicesFlag, nil
  58413. })
  58414. if err != nil {
  58415. ec.Error(ctx, err)
  58416. return graphql.Null
  58417. }
  58418. if resTmp == nil {
  58419. if !graphql.HasFieldError(ctx, fc) {
  58420. ec.Errorf(ctx, "must not be null")
  58421. }
  58422. return graphql.Null
  58423. }
  58424. res := resTmp.(bool)
  58425. fc.Result = res
  58426. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  58427. }
  58428. func (ec *executionContext) fieldContext_DeliveryParticipant_adaptToNewServicesFlag(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  58429. fc = &graphql.FieldContext{
  58430. Object: "DeliveryParticipant",
  58431. Field: field,
  58432. IsMethod: false,
  58433. IsResolver: false,
  58434. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  58435. return nil, errors.New("field of type Boolean does not have child fields")
  58436. },
  58437. }
  58438. return fc, nil
  58439. }
  58440. func (ec *executionContext) _DeliveryParticipant_carrierService(ctx context.Context, field graphql.CollectedField, obj *DeliveryParticipant) (ret graphql.Marshaler) {
  58441. fc, err := ec.fieldContext_DeliveryParticipant_carrierService(ctx, field)
  58442. if err != nil {
  58443. return graphql.Null
  58444. }
  58445. ctx = graphql.WithFieldContext(ctx, fc)
  58446. defer func() {
  58447. if r := recover(); r != nil {
  58448. ec.Error(ctx, ec.Recover(ctx, r))
  58449. ret = graphql.Null
  58450. }
  58451. }()
  58452. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  58453. ctx = rctx // use context from middleware stack in children
  58454. return obj.CarrierService, nil
  58455. })
  58456. if err != nil {
  58457. ec.Error(ctx, err)
  58458. return graphql.Null
  58459. }
  58460. if resTmp == nil {
  58461. if !graphql.HasFieldError(ctx, fc) {
  58462. ec.Errorf(ctx, "must not be null")
  58463. }
  58464. return graphql.Null
  58465. }
  58466. res := resTmp.(*DeliveryCarrierService)
  58467. fc.Result = res
  58468. return ec.marshalNDeliveryCarrierService2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryCarrierService(ctx, field.Selections, res)
  58469. }
  58470. func (ec *executionContext) fieldContext_DeliveryParticipant_carrierService(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  58471. fc = &graphql.FieldContext{
  58472. Object: "DeliveryParticipant",
  58473. Field: field,
  58474. IsMethod: false,
  58475. IsResolver: false,
  58476. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  58477. switch field.Name {
  58478. case "availableServicesForCountries":
  58479. return ec.fieldContext_DeliveryCarrierService_availableServicesForCountries(ctx, field)
  58480. case "formattedName":
  58481. return ec.fieldContext_DeliveryCarrierService_formattedName(ctx, field)
  58482. case "icon":
  58483. return ec.fieldContext_DeliveryCarrierService_icon(ctx, field)
  58484. case "id":
  58485. return ec.fieldContext_DeliveryCarrierService_id(ctx, field)
  58486. case "name":
  58487. return ec.fieldContext_DeliveryCarrierService_name(ctx, field)
  58488. }
  58489. return nil, fmt.Errorf("no field named %q was found under type DeliveryCarrierService", field.Name)
  58490. },
  58491. }
  58492. return fc, nil
  58493. }
  58494. func (ec *executionContext) _DeliveryParticipant_fixedFee(ctx context.Context, field graphql.CollectedField, obj *DeliveryParticipant) (ret graphql.Marshaler) {
  58495. fc, err := ec.fieldContext_DeliveryParticipant_fixedFee(ctx, field)
  58496. if err != nil {
  58497. return graphql.Null
  58498. }
  58499. ctx = graphql.WithFieldContext(ctx, fc)
  58500. defer func() {
  58501. if r := recover(); r != nil {
  58502. ec.Error(ctx, ec.Recover(ctx, r))
  58503. ret = graphql.Null
  58504. }
  58505. }()
  58506. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  58507. ctx = rctx // use context from middleware stack in children
  58508. return obj.FixedFee, nil
  58509. })
  58510. if err != nil {
  58511. ec.Error(ctx, err)
  58512. return graphql.Null
  58513. }
  58514. if resTmp == nil {
  58515. return graphql.Null
  58516. }
  58517. res := resTmp.(*MoneyV2)
  58518. fc.Result = res
  58519. return ec.marshalOMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  58520. }
  58521. func (ec *executionContext) fieldContext_DeliveryParticipant_fixedFee(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  58522. fc = &graphql.FieldContext{
  58523. Object: "DeliveryParticipant",
  58524. Field: field,
  58525. IsMethod: false,
  58526. IsResolver: false,
  58527. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  58528. switch field.Name {
  58529. case "amount":
  58530. return ec.fieldContext_MoneyV2_amount(ctx, field)
  58531. case "currencyCode":
  58532. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  58533. }
  58534. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  58535. },
  58536. }
  58537. return fc, nil
  58538. }
  58539. func (ec *executionContext) _DeliveryParticipant_id(ctx context.Context, field graphql.CollectedField, obj *DeliveryParticipant) (ret graphql.Marshaler) {
  58540. fc, err := ec.fieldContext_DeliveryParticipant_id(ctx, field)
  58541. if err != nil {
  58542. return graphql.Null
  58543. }
  58544. ctx = graphql.WithFieldContext(ctx, fc)
  58545. defer func() {
  58546. if r := recover(); r != nil {
  58547. ec.Error(ctx, ec.Recover(ctx, r))
  58548. ret = graphql.Null
  58549. }
  58550. }()
  58551. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  58552. ctx = rctx // use context from middleware stack in children
  58553. return obj.ID, nil
  58554. })
  58555. if err != nil {
  58556. ec.Error(ctx, err)
  58557. return graphql.Null
  58558. }
  58559. if resTmp == nil {
  58560. if !graphql.HasFieldError(ctx, fc) {
  58561. ec.Errorf(ctx, "must not be null")
  58562. }
  58563. return graphql.Null
  58564. }
  58565. res := resTmp.(string)
  58566. fc.Result = res
  58567. return ec.marshalNID2string(ctx, field.Selections, res)
  58568. }
  58569. func (ec *executionContext) fieldContext_DeliveryParticipant_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  58570. fc = &graphql.FieldContext{
  58571. Object: "DeliveryParticipant",
  58572. Field: field,
  58573. IsMethod: false,
  58574. IsResolver: false,
  58575. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  58576. return nil, errors.New("field of type ID does not have child fields")
  58577. },
  58578. }
  58579. return fc, nil
  58580. }
  58581. func (ec *executionContext) _DeliveryParticipant_participantServices(ctx context.Context, field graphql.CollectedField, obj *DeliveryParticipant) (ret graphql.Marshaler) {
  58582. fc, err := ec.fieldContext_DeliveryParticipant_participantServices(ctx, field)
  58583. if err != nil {
  58584. return graphql.Null
  58585. }
  58586. ctx = graphql.WithFieldContext(ctx, fc)
  58587. defer func() {
  58588. if r := recover(); r != nil {
  58589. ec.Error(ctx, ec.Recover(ctx, r))
  58590. ret = graphql.Null
  58591. }
  58592. }()
  58593. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  58594. ctx = rctx // use context from middleware stack in children
  58595. return obj.ParticipantServices, nil
  58596. })
  58597. if err != nil {
  58598. ec.Error(ctx, err)
  58599. return graphql.Null
  58600. }
  58601. if resTmp == nil {
  58602. if !graphql.HasFieldError(ctx, fc) {
  58603. ec.Errorf(ctx, "must not be null")
  58604. }
  58605. return graphql.Null
  58606. }
  58607. res := resTmp.([]*DeliveryParticipantService)
  58608. fc.Result = res
  58609. return ec.marshalNDeliveryParticipantService2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryParticipantServiceᚄ(ctx, field.Selections, res)
  58610. }
  58611. func (ec *executionContext) fieldContext_DeliveryParticipant_participantServices(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  58612. fc = &graphql.FieldContext{
  58613. Object: "DeliveryParticipant",
  58614. Field: field,
  58615. IsMethod: false,
  58616. IsResolver: false,
  58617. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  58618. switch field.Name {
  58619. case "active":
  58620. return ec.fieldContext_DeliveryParticipantService_active(ctx, field)
  58621. case "name":
  58622. return ec.fieldContext_DeliveryParticipantService_name(ctx, field)
  58623. }
  58624. return nil, fmt.Errorf("no field named %q was found under type DeliveryParticipantService", field.Name)
  58625. },
  58626. }
  58627. return fc, nil
  58628. }
  58629. func (ec *executionContext) _DeliveryParticipant_percentageOfRateFee(ctx context.Context, field graphql.CollectedField, obj *DeliveryParticipant) (ret graphql.Marshaler) {
  58630. fc, err := ec.fieldContext_DeliveryParticipant_percentageOfRateFee(ctx, field)
  58631. if err != nil {
  58632. return graphql.Null
  58633. }
  58634. ctx = graphql.WithFieldContext(ctx, fc)
  58635. defer func() {
  58636. if r := recover(); r != nil {
  58637. ec.Error(ctx, ec.Recover(ctx, r))
  58638. ret = graphql.Null
  58639. }
  58640. }()
  58641. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  58642. ctx = rctx // use context from middleware stack in children
  58643. return obj.PercentageOfRateFee, nil
  58644. })
  58645. if err != nil {
  58646. ec.Error(ctx, err)
  58647. return graphql.Null
  58648. }
  58649. if resTmp == nil {
  58650. if !graphql.HasFieldError(ctx, fc) {
  58651. ec.Errorf(ctx, "must not be null")
  58652. }
  58653. return graphql.Null
  58654. }
  58655. res := resTmp.(float64)
  58656. fc.Result = res
  58657. return ec.marshalNFloat2float64(ctx, field.Selections, res)
  58658. }
  58659. func (ec *executionContext) fieldContext_DeliveryParticipant_percentageOfRateFee(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  58660. fc = &graphql.FieldContext{
  58661. Object: "DeliveryParticipant",
  58662. Field: field,
  58663. IsMethod: false,
  58664. IsResolver: false,
  58665. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  58666. return nil, errors.New("field of type Float does not have child fields")
  58667. },
  58668. }
  58669. return fc, nil
  58670. }
  58671. func (ec *executionContext) _DeliveryParticipantService_active(ctx context.Context, field graphql.CollectedField, obj *DeliveryParticipantService) (ret graphql.Marshaler) {
  58672. fc, err := ec.fieldContext_DeliveryParticipantService_active(ctx, field)
  58673. if err != nil {
  58674. return graphql.Null
  58675. }
  58676. ctx = graphql.WithFieldContext(ctx, fc)
  58677. defer func() {
  58678. if r := recover(); r != nil {
  58679. ec.Error(ctx, ec.Recover(ctx, r))
  58680. ret = graphql.Null
  58681. }
  58682. }()
  58683. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  58684. ctx = rctx // use context from middleware stack in children
  58685. return obj.Active, nil
  58686. })
  58687. if err != nil {
  58688. ec.Error(ctx, err)
  58689. return graphql.Null
  58690. }
  58691. if resTmp == nil {
  58692. if !graphql.HasFieldError(ctx, fc) {
  58693. ec.Errorf(ctx, "must not be null")
  58694. }
  58695. return graphql.Null
  58696. }
  58697. res := resTmp.(bool)
  58698. fc.Result = res
  58699. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  58700. }
  58701. func (ec *executionContext) fieldContext_DeliveryParticipantService_active(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  58702. fc = &graphql.FieldContext{
  58703. Object: "DeliveryParticipantService",
  58704. Field: field,
  58705. IsMethod: false,
  58706. IsResolver: false,
  58707. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  58708. return nil, errors.New("field of type Boolean does not have child fields")
  58709. },
  58710. }
  58711. return fc, nil
  58712. }
  58713. func (ec *executionContext) _DeliveryParticipantService_name(ctx context.Context, field graphql.CollectedField, obj *DeliveryParticipantService) (ret graphql.Marshaler) {
  58714. fc, err := ec.fieldContext_DeliveryParticipantService_name(ctx, field)
  58715. if err != nil {
  58716. return graphql.Null
  58717. }
  58718. ctx = graphql.WithFieldContext(ctx, fc)
  58719. defer func() {
  58720. if r := recover(); r != nil {
  58721. ec.Error(ctx, ec.Recover(ctx, r))
  58722. ret = graphql.Null
  58723. }
  58724. }()
  58725. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  58726. ctx = rctx // use context from middleware stack in children
  58727. return obj.Name, nil
  58728. })
  58729. if err != nil {
  58730. ec.Error(ctx, err)
  58731. return graphql.Null
  58732. }
  58733. if resTmp == nil {
  58734. if !graphql.HasFieldError(ctx, fc) {
  58735. ec.Errorf(ctx, "must not be null")
  58736. }
  58737. return graphql.Null
  58738. }
  58739. res := resTmp.(string)
  58740. fc.Result = res
  58741. return ec.marshalNString2string(ctx, field.Selections, res)
  58742. }
  58743. func (ec *executionContext) fieldContext_DeliveryParticipantService_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  58744. fc = &graphql.FieldContext{
  58745. Object: "DeliveryParticipantService",
  58746. Field: field,
  58747. IsMethod: false,
  58748. IsResolver: false,
  58749. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  58750. return nil, errors.New("field of type String does not have child fields")
  58751. },
  58752. }
  58753. return fc, nil
  58754. }
  58755. func (ec *executionContext) _DeliveryProductVariantsCount_capped(ctx context.Context, field graphql.CollectedField, obj *DeliveryProductVariantsCount) (ret graphql.Marshaler) {
  58756. fc, err := ec.fieldContext_DeliveryProductVariantsCount_capped(ctx, field)
  58757. if err != nil {
  58758. return graphql.Null
  58759. }
  58760. ctx = graphql.WithFieldContext(ctx, fc)
  58761. defer func() {
  58762. if r := recover(); r != nil {
  58763. ec.Error(ctx, ec.Recover(ctx, r))
  58764. ret = graphql.Null
  58765. }
  58766. }()
  58767. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  58768. ctx = rctx // use context from middleware stack in children
  58769. return obj.Capped, nil
  58770. })
  58771. if err != nil {
  58772. ec.Error(ctx, err)
  58773. return graphql.Null
  58774. }
  58775. if resTmp == nil {
  58776. if !graphql.HasFieldError(ctx, fc) {
  58777. ec.Errorf(ctx, "must not be null")
  58778. }
  58779. return graphql.Null
  58780. }
  58781. res := resTmp.(bool)
  58782. fc.Result = res
  58783. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  58784. }
  58785. func (ec *executionContext) fieldContext_DeliveryProductVariantsCount_capped(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  58786. fc = &graphql.FieldContext{
  58787. Object: "DeliveryProductVariantsCount",
  58788. Field: field,
  58789. IsMethod: false,
  58790. IsResolver: false,
  58791. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  58792. return nil, errors.New("field of type Boolean does not have child fields")
  58793. },
  58794. }
  58795. return fc, nil
  58796. }
  58797. func (ec *executionContext) _DeliveryProductVariantsCount_count(ctx context.Context, field graphql.CollectedField, obj *DeliveryProductVariantsCount) (ret graphql.Marshaler) {
  58798. fc, err := ec.fieldContext_DeliveryProductVariantsCount_count(ctx, field)
  58799. if err != nil {
  58800. return graphql.Null
  58801. }
  58802. ctx = graphql.WithFieldContext(ctx, fc)
  58803. defer func() {
  58804. if r := recover(); r != nil {
  58805. ec.Error(ctx, ec.Recover(ctx, r))
  58806. ret = graphql.Null
  58807. }
  58808. }()
  58809. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  58810. ctx = rctx // use context from middleware stack in children
  58811. return obj.Count, nil
  58812. })
  58813. if err != nil {
  58814. ec.Error(ctx, err)
  58815. return graphql.Null
  58816. }
  58817. if resTmp == nil {
  58818. if !graphql.HasFieldError(ctx, fc) {
  58819. ec.Errorf(ctx, "must not be null")
  58820. }
  58821. return graphql.Null
  58822. }
  58823. res := resTmp.(int)
  58824. fc.Result = res
  58825. return ec.marshalNInt2int(ctx, field.Selections, res)
  58826. }
  58827. func (ec *executionContext) fieldContext_DeliveryProductVariantsCount_count(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  58828. fc = &graphql.FieldContext{
  58829. Object: "DeliveryProductVariantsCount",
  58830. Field: field,
  58831. IsMethod: false,
  58832. IsResolver: false,
  58833. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  58834. return nil, errors.New("field of type Int does not have child fields")
  58835. },
  58836. }
  58837. return fc, nil
  58838. }
  58839. func (ec *executionContext) _DeliveryProfile_activeMethodDefinitionsCount(ctx context.Context, field graphql.CollectedField, obj *DeliveryProfile) (ret graphql.Marshaler) {
  58840. fc, err := ec.fieldContext_DeliveryProfile_activeMethodDefinitionsCount(ctx, field)
  58841. if err != nil {
  58842. return graphql.Null
  58843. }
  58844. ctx = graphql.WithFieldContext(ctx, fc)
  58845. defer func() {
  58846. if r := recover(); r != nil {
  58847. ec.Error(ctx, ec.Recover(ctx, r))
  58848. ret = graphql.Null
  58849. }
  58850. }()
  58851. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  58852. ctx = rctx // use context from middleware stack in children
  58853. return obj.ActiveMethodDefinitionsCount, nil
  58854. })
  58855. if err != nil {
  58856. ec.Error(ctx, err)
  58857. return graphql.Null
  58858. }
  58859. if resTmp == nil {
  58860. if !graphql.HasFieldError(ctx, fc) {
  58861. ec.Errorf(ctx, "must not be null")
  58862. }
  58863. return graphql.Null
  58864. }
  58865. res := resTmp.(int)
  58866. fc.Result = res
  58867. return ec.marshalNInt2int(ctx, field.Selections, res)
  58868. }
  58869. func (ec *executionContext) fieldContext_DeliveryProfile_activeMethodDefinitionsCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  58870. fc = &graphql.FieldContext{
  58871. Object: "DeliveryProfile",
  58872. Field: field,
  58873. IsMethod: false,
  58874. IsResolver: false,
  58875. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  58876. return nil, errors.New("field of type Int does not have child fields")
  58877. },
  58878. }
  58879. return fc, nil
  58880. }
  58881. func (ec *executionContext) _DeliveryProfile_default(ctx context.Context, field graphql.CollectedField, obj *DeliveryProfile) (ret graphql.Marshaler) {
  58882. fc, err := ec.fieldContext_DeliveryProfile_default(ctx, field)
  58883. if err != nil {
  58884. return graphql.Null
  58885. }
  58886. ctx = graphql.WithFieldContext(ctx, fc)
  58887. defer func() {
  58888. if r := recover(); r != nil {
  58889. ec.Error(ctx, ec.Recover(ctx, r))
  58890. ret = graphql.Null
  58891. }
  58892. }()
  58893. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  58894. ctx = rctx // use context from middleware stack in children
  58895. return obj.Default, nil
  58896. })
  58897. if err != nil {
  58898. ec.Error(ctx, err)
  58899. return graphql.Null
  58900. }
  58901. if resTmp == nil {
  58902. if !graphql.HasFieldError(ctx, fc) {
  58903. ec.Errorf(ctx, "must not be null")
  58904. }
  58905. return graphql.Null
  58906. }
  58907. res := resTmp.(bool)
  58908. fc.Result = res
  58909. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  58910. }
  58911. func (ec *executionContext) fieldContext_DeliveryProfile_default(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  58912. fc = &graphql.FieldContext{
  58913. Object: "DeliveryProfile",
  58914. Field: field,
  58915. IsMethod: false,
  58916. IsResolver: false,
  58917. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  58918. return nil, errors.New("field of type Boolean does not have child fields")
  58919. },
  58920. }
  58921. return fc, nil
  58922. }
  58923. func (ec *executionContext) _DeliveryProfile_id(ctx context.Context, field graphql.CollectedField, obj *DeliveryProfile) (ret graphql.Marshaler) {
  58924. fc, err := ec.fieldContext_DeliveryProfile_id(ctx, field)
  58925. if err != nil {
  58926. return graphql.Null
  58927. }
  58928. ctx = graphql.WithFieldContext(ctx, fc)
  58929. defer func() {
  58930. if r := recover(); r != nil {
  58931. ec.Error(ctx, ec.Recover(ctx, r))
  58932. ret = graphql.Null
  58933. }
  58934. }()
  58935. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  58936. ctx = rctx // use context from middleware stack in children
  58937. return obj.ID, nil
  58938. })
  58939. if err != nil {
  58940. ec.Error(ctx, err)
  58941. return graphql.Null
  58942. }
  58943. if resTmp == nil {
  58944. if !graphql.HasFieldError(ctx, fc) {
  58945. ec.Errorf(ctx, "must not be null")
  58946. }
  58947. return graphql.Null
  58948. }
  58949. res := resTmp.(string)
  58950. fc.Result = res
  58951. return ec.marshalNID2string(ctx, field.Selections, res)
  58952. }
  58953. func (ec *executionContext) fieldContext_DeliveryProfile_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  58954. fc = &graphql.FieldContext{
  58955. Object: "DeliveryProfile",
  58956. Field: field,
  58957. IsMethod: false,
  58958. IsResolver: false,
  58959. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  58960. return nil, errors.New("field of type ID does not have child fields")
  58961. },
  58962. }
  58963. return fc, nil
  58964. }
  58965. func (ec *executionContext) _DeliveryProfile_legacyMode(ctx context.Context, field graphql.CollectedField, obj *DeliveryProfile) (ret graphql.Marshaler) {
  58966. fc, err := ec.fieldContext_DeliveryProfile_legacyMode(ctx, field)
  58967. if err != nil {
  58968. return graphql.Null
  58969. }
  58970. ctx = graphql.WithFieldContext(ctx, fc)
  58971. defer func() {
  58972. if r := recover(); r != nil {
  58973. ec.Error(ctx, ec.Recover(ctx, r))
  58974. ret = graphql.Null
  58975. }
  58976. }()
  58977. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  58978. ctx = rctx // use context from middleware stack in children
  58979. return obj.LegacyMode, nil
  58980. })
  58981. if err != nil {
  58982. ec.Error(ctx, err)
  58983. return graphql.Null
  58984. }
  58985. if resTmp == nil {
  58986. if !graphql.HasFieldError(ctx, fc) {
  58987. ec.Errorf(ctx, "must not be null")
  58988. }
  58989. return graphql.Null
  58990. }
  58991. res := resTmp.(bool)
  58992. fc.Result = res
  58993. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  58994. }
  58995. func (ec *executionContext) fieldContext_DeliveryProfile_legacyMode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  58996. fc = &graphql.FieldContext{
  58997. Object: "DeliveryProfile",
  58998. Field: field,
  58999. IsMethod: false,
  59000. IsResolver: false,
  59001. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  59002. return nil, errors.New("field of type Boolean does not have child fields")
  59003. },
  59004. }
  59005. return fc, nil
  59006. }
  59007. func (ec *executionContext) _DeliveryProfile_locationsWithoutRatesCount(ctx context.Context, field graphql.CollectedField, obj *DeliveryProfile) (ret graphql.Marshaler) {
  59008. fc, err := ec.fieldContext_DeliveryProfile_locationsWithoutRatesCount(ctx, field)
  59009. if err != nil {
  59010. return graphql.Null
  59011. }
  59012. ctx = graphql.WithFieldContext(ctx, fc)
  59013. defer func() {
  59014. if r := recover(); r != nil {
  59015. ec.Error(ctx, ec.Recover(ctx, r))
  59016. ret = graphql.Null
  59017. }
  59018. }()
  59019. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  59020. ctx = rctx // use context from middleware stack in children
  59021. return obj.LocationsWithoutRatesCount, nil
  59022. })
  59023. if err != nil {
  59024. ec.Error(ctx, err)
  59025. return graphql.Null
  59026. }
  59027. if resTmp == nil {
  59028. if !graphql.HasFieldError(ctx, fc) {
  59029. ec.Errorf(ctx, "must not be null")
  59030. }
  59031. return graphql.Null
  59032. }
  59033. res := resTmp.(int)
  59034. fc.Result = res
  59035. return ec.marshalNInt2int(ctx, field.Selections, res)
  59036. }
  59037. func (ec *executionContext) fieldContext_DeliveryProfile_locationsWithoutRatesCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  59038. fc = &graphql.FieldContext{
  59039. Object: "DeliveryProfile",
  59040. Field: field,
  59041. IsMethod: false,
  59042. IsResolver: false,
  59043. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  59044. return nil, errors.New("field of type Int does not have child fields")
  59045. },
  59046. }
  59047. return fc, nil
  59048. }
  59049. func (ec *executionContext) _DeliveryProfile_name(ctx context.Context, field graphql.CollectedField, obj *DeliveryProfile) (ret graphql.Marshaler) {
  59050. fc, err := ec.fieldContext_DeliveryProfile_name(ctx, field)
  59051. if err != nil {
  59052. return graphql.Null
  59053. }
  59054. ctx = graphql.WithFieldContext(ctx, fc)
  59055. defer func() {
  59056. if r := recover(); r != nil {
  59057. ec.Error(ctx, ec.Recover(ctx, r))
  59058. ret = graphql.Null
  59059. }
  59060. }()
  59061. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  59062. ctx = rctx // use context from middleware stack in children
  59063. return obj.Name, nil
  59064. })
  59065. if err != nil {
  59066. ec.Error(ctx, err)
  59067. return graphql.Null
  59068. }
  59069. if resTmp == nil {
  59070. if !graphql.HasFieldError(ctx, fc) {
  59071. ec.Errorf(ctx, "must not be null")
  59072. }
  59073. return graphql.Null
  59074. }
  59075. res := resTmp.(string)
  59076. fc.Result = res
  59077. return ec.marshalNString2string(ctx, field.Selections, res)
  59078. }
  59079. func (ec *executionContext) fieldContext_DeliveryProfile_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  59080. fc = &graphql.FieldContext{
  59081. Object: "DeliveryProfile",
  59082. Field: field,
  59083. IsMethod: false,
  59084. IsResolver: false,
  59085. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  59086. return nil, errors.New("field of type String does not have child fields")
  59087. },
  59088. }
  59089. return fc, nil
  59090. }
  59091. func (ec *executionContext) _DeliveryProfile_originLocationCount(ctx context.Context, field graphql.CollectedField, obj *DeliveryProfile) (ret graphql.Marshaler) {
  59092. fc, err := ec.fieldContext_DeliveryProfile_originLocationCount(ctx, field)
  59093. if err != nil {
  59094. return graphql.Null
  59095. }
  59096. ctx = graphql.WithFieldContext(ctx, fc)
  59097. defer func() {
  59098. if r := recover(); r != nil {
  59099. ec.Error(ctx, ec.Recover(ctx, r))
  59100. ret = graphql.Null
  59101. }
  59102. }()
  59103. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  59104. ctx = rctx // use context from middleware stack in children
  59105. return obj.OriginLocationCount, nil
  59106. })
  59107. if err != nil {
  59108. ec.Error(ctx, err)
  59109. return graphql.Null
  59110. }
  59111. if resTmp == nil {
  59112. if !graphql.HasFieldError(ctx, fc) {
  59113. ec.Errorf(ctx, "must not be null")
  59114. }
  59115. return graphql.Null
  59116. }
  59117. res := resTmp.(int)
  59118. fc.Result = res
  59119. return ec.marshalNInt2int(ctx, field.Selections, res)
  59120. }
  59121. func (ec *executionContext) fieldContext_DeliveryProfile_originLocationCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  59122. fc = &graphql.FieldContext{
  59123. Object: "DeliveryProfile",
  59124. Field: field,
  59125. IsMethod: false,
  59126. IsResolver: false,
  59127. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  59128. return nil, errors.New("field of type Int does not have child fields")
  59129. },
  59130. }
  59131. return fc, nil
  59132. }
  59133. func (ec *executionContext) _DeliveryProfile_productVariantsCountV2(ctx context.Context, field graphql.CollectedField, obj *DeliveryProfile) (ret graphql.Marshaler) {
  59134. fc, err := ec.fieldContext_DeliveryProfile_productVariantsCountV2(ctx, field)
  59135. if err != nil {
  59136. return graphql.Null
  59137. }
  59138. ctx = graphql.WithFieldContext(ctx, fc)
  59139. defer func() {
  59140. if r := recover(); r != nil {
  59141. ec.Error(ctx, ec.Recover(ctx, r))
  59142. ret = graphql.Null
  59143. }
  59144. }()
  59145. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  59146. ctx = rctx // use context from middleware stack in children
  59147. return obj.ProductVariantsCountV2, nil
  59148. })
  59149. if err != nil {
  59150. ec.Error(ctx, err)
  59151. return graphql.Null
  59152. }
  59153. if resTmp == nil {
  59154. if !graphql.HasFieldError(ctx, fc) {
  59155. ec.Errorf(ctx, "must not be null")
  59156. }
  59157. return graphql.Null
  59158. }
  59159. res := resTmp.(*DeliveryProductVariantsCount)
  59160. fc.Result = res
  59161. return ec.marshalNDeliveryProductVariantsCount2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryProductVariantsCount(ctx, field.Selections, res)
  59162. }
  59163. func (ec *executionContext) fieldContext_DeliveryProfile_productVariantsCountV2(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  59164. fc = &graphql.FieldContext{
  59165. Object: "DeliveryProfile",
  59166. Field: field,
  59167. IsMethod: false,
  59168. IsResolver: false,
  59169. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  59170. switch field.Name {
  59171. case "capped":
  59172. return ec.fieldContext_DeliveryProductVariantsCount_capped(ctx, field)
  59173. case "count":
  59174. return ec.fieldContext_DeliveryProductVariantsCount_count(ctx, field)
  59175. }
  59176. return nil, fmt.Errorf("no field named %q was found under type DeliveryProductVariantsCount", field.Name)
  59177. },
  59178. }
  59179. return fc, nil
  59180. }
  59181. func (ec *executionContext) _DeliveryProfile_profileItems(ctx context.Context, field graphql.CollectedField, obj *DeliveryProfile) (ret graphql.Marshaler) {
  59182. fc, err := ec.fieldContext_DeliveryProfile_profileItems(ctx, field)
  59183. if err != nil {
  59184. return graphql.Null
  59185. }
  59186. ctx = graphql.WithFieldContext(ctx, fc)
  59187. defer func() {
  59188. if r := recover(); r != nil {
  59189. ec.Error(ctx, ec.Recover(ctx, r))
  59190. ret = graphql.Null
  59191. }
  59192. }()
  59193. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  59194. ctx = rctx // use context from middleware stack in children
  59195. return obj.ProfileItems, nil
  59196. })
  59197. if err != nil {
  59198. ec.Error(ctx, err)
  59199. return graphql.Null
  59200. }
  59201. if resTmp == nil {
  59202. if !graphql.HasFieldError(ctx, fc) {
  59203. ec.Errorf(ctx, "must not be null")
  59204. }
  59205. return graphql.Null
  59206. }
  59207. res := resTmp.(*DeliveryProfileItemConnection)
  59208. fc.Result = res
  59209. return ec.marshalNDeliveryProfileItemConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryProfileItemConnection(ctx, field.Selections, res)
  59210. }
  59211. func (ec *executionContext) fieldContext_DeliveryProfile_profileItems(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  59212. fc = &graphql.FieldContext{
  59213. Object: "DeliveryProfile",
  59214. Field: field,
  59215. IsMethod: false,
  59216. IsResolver: false,
  59217. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  59218. switch field.Name {
  59219. case "edges":
  59220. return ec.fieldContext_DeliveryProfileItemConnection_edges(ctx, field)
  59221. case "nodes":
  59222. return ec.fieldContext_DeliveryProfileItemConnection_nodes(ctx, field)
  59223. case "pageInfo":
  59224. return ec.fieldContext_DeliveryProfileItemConnection_pageInfo(ctx, field)
  59225. }
  59226. return nil, fmt.Errorf("no field named %q was found under type DeliveryProfileItemConnection", field.Name)
  59227. },
  59228. }
  59229. defer func() {
  59230. if r := recover(); r != nil {
  59231. err = ec.Recover(ctx, r)
  59232. ec.Error(ctx, err)
  59233. }
  59234. }()
  59235. ctx = graphql.WithFieldContext(ctx, fc)
  59236. if fc.Args, err = ec.field_DeliveryProfile_profileItems_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  59237. ec.Error(ctx, err)
  59238. return
  59239. }
  59240. return fc, nil
  59241. }
  59242. func (ec *executionContext) _DeliveryProfile_profileLocationGroups(ctx context.Context, field graphql.CollectedField, obj *DeliveryProfile) (ret graphql.Marshaler) {
  59243. fc, err := ec.fieldContext_DeliveryProfile_profileLocationGroups(ctx, field)
  59244. if err != nil {
  59245. return graphql.Null
  59246. }
  59247. ctx = graphql.WithFieldContext(ctx, fc)
  59248. defer func() {
  59249. if r := recover(); r != nil {
  59250. ec.Error(ctx, ec.Recover(ctx, r))
  59251. ret = graphql.Null
  59252. }
  59253. }()
  59254. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  59255. ctx = rctx // use context from middleware stack in children
  59256. return obj.ProfileLocationGroups, nil
  59257. })
  59258. if err != nil {
  59259. ec.Error(ctx, err)
  59260. return graphql.Null
  59261. }
  59262. if resTmp == nil {
  59263. if !graphql.HasFieldError(ctx, fc) {
  59264. ec.Errorf(ctx, "must not be null")
  59265. }
  59266. return graphql.Null
  59267. }
  59268. res := resTmp.([]*DeliveryProfileLocationGroup)
  59269. fc.Result = res
  59270. return ec.marshalNDeliveryProfileLocationGroup2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryProfileLocationGroupᚄ(ctx, field.Selections, res)
  59271. }
  59272. func (ec *executionContext) fieldContext_DeliveryProfile_profileLocationGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  59273. fc = &graphql.FieldContext{
  59274. Object: "DeliveryProfile",
  59275. Field: field,
  59276. IsMethod: false,
  59277. IsResolver: false,
  59278. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  59279. switch field.Name {
  59280. case "countriesInAnyZone":
  59281. return ec.fieldContext_DeliveryProfileLocationGroup_countriesInAnyZone(ctx, field)
  59282. case "locationGroup":
  59283. return ec.fieldContext_DeliveryProfileLocationGroup_locationGroup(ctx, field)
  59284. case "locationGroupZones":
  59285. return ec.fieldContext_DeliveryProfileLocationGroup_locationGroupZones(ctx, field)
  59286. }
  59287. return nil, fmt.Errorf("no field named %q was found under type DeliveryProfileLocationGroup", field.Name)
  59288. },
  59289. }
  59290. return fc, nil
  59291. }
  59292. func (ec *executionContext) _DeliveryProfile_sellingPlanGroups(ctx context.Context, field graphql.CollectedField, obj *DeliveryProfile) (ret graphql.Marshaler) {
  59293. fc, err := ec.fieldContext_DeliveryProfile_sellingPlanGroups(ctx, field)
  59294. if err != nil {
  59295. return graphql.Null
  59296. }
  59297. ctx = graphql.WithFieldContext(ctx, fc)
  59298. defer func() {
  59299. if r := recover(); r != nil {
  59300. ec.Error(ctx, ec.Recover(ctx, r))
  59301. ret = graphql.Null
  59302. }
  59303. }()
  59304. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  59305. ctx = rctx // use context from middleware stack in children
  59306. return obj.SellingPlanGroups, nil
  59307. })
  59308. if err != nil {
  59309. ec.Error(ctx, err)
  59310. return graphql.Null
  59311. }
  59312. if resTmp == nil {
  59313. if !graphql.HasFieldError(ctx, fc) {
  59314. ec.Errorf(ctx, "must not be null")
  59315. }
  59316. return graphql.Null
  59317. }
  59318. res := resTmp.(*SellingPlanGroupConnection)
  59319. fc.Result = res
  59320. return ec.marshalNSellingPlanGroupConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanGroupConnection(ctx, field.Selections, res)
  59321. }
  59322. func (ec *executionContext) fieldContext_DeliveryProfile_sellingPlanGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  59323. fc = &graphql.FieldContext{
  59324. Object: "DeliveryProfile",
  59325. Field: field,
  59326. IsMethod: false,
  59327. IsResolver: false,
  59328. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  59329. switch field.Name {
  59330. case "edges":
  59331. return ec.fieldContext_SellingPlanGroupConnection_edges(ctx, field)
  59332. case "nodes":
  59333. return ec.fieldContext_SellingPlanGroupConnection_nodes(ctx, field)
  59334. case "pageInfo":
  59335. return ec.fieldContext_SellingPlanGroupConnection_pageInfo(ctx, field)
  59336. }
  59337. return nil, fmt.Errorf("no field named %q was found under type SellingPlanGroupConnection", field.Name)
  59338. },
  59339. }
  59340. defer func() {
  59341. if r := recover(); r != nil {
  59342. err = ec.Recover(ctx, r)
  59343. ec.Error(ctx, err)
  59344. }
  59345. }()
  59346. ctx = graphql.WithFieldContext(ctx, fc)
  59347. if fc.Args, err = ec.field_DeliveryProfile_sellingPlanGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  59348. ec.Error(ctx, err)
  59349. return
  59350. }
  59351. return fc, nil
  59352. }
  59353. func (ec *executionContext) _DeliveryProfile_unassignedLocations(ctx context.Context, field graphql.CollectedField, obj *DeliveryProfile) (ret graphql.Marshaler) {
  59354. fc, err := ec.fieldContext_DeliveryProfile_unassignedLocations(ctx, field)
  59355. if err != nil {
  59356. return graphql.Null
  59357. }
  59358. ctx = graphql.WithFieldContext(ctx, fc)
  59359. defer func() {
  59360. if r := recover(); r != nil {
  59361. ec.Error(ctx, ec.Recover(ctx, r))
  59362. ret = graphql.Null
  59363. }
  59364. }()
  59365. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  59366. ctx = rctx // use context from middleware stack in children
  59367. return obj.UnassignedLocations, nil
  59368. })
  59369. if err != nil {
  59370. ec.Error(ctx, err)
  59371. return graphql.Null
  59372. }
  59373. if resTmp == nil {
  59374. if !graphql.HasFieldError(ctx, fc) {
  59375. ec.Errorf(ctx, "must not be null")
  59376. }
  59377. return graphql.Null
  59378. }
  59379. res := resTmp.([]*Location)
  59380. fc.Result = res
  59381. return ec.marshalNLocation2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocationᚄ(ctx, field.Selections, res)
  59382. }
  59383. func (ec *executionContext) fieldContext_DeliveryProfile_unassignedLocations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  59384. fc = &graphql.FieldContext{
  59385. Object: "DeliveryProfile",
  59386. Field: field,
  59387. IsMethod: false,
  59388. IsResolver: false,
  59389. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  59390. switch field.Name {
  59391. case "activatable":
  59392. return ec.fieldContext_Location_activatable(ctx, field)
  59393. case "address":
  59394. return ec.fieldContext_Location_address(ctx, field)
  59395. case "addressVerified":
  59396. return ec.fieldContext_Location_addressVerified(ctx, field)
  59397. case "deactivatable":
  59398. return ec.fieldContext_Location_deactivatable(ctx, field)
  59399. case "deactivatedAt":
  59400. return ec.fieldContext_Location_deactivatedAt(ctx, field)
  59401. case "deletable":
  59402. return ec.fieldContext_Location_deletable(ctx, field)
  59403. case "fulfillmentService":
  59404. return ec.fieldContext_Location_fulfillmentService(ctx, field)
  59405. case "fulfillsOnlineOrders":
  59406. return ec.fieldContext_Location_fulfillsOnlineOrders(ctx, field)
  59407. case "hasActiveInventory":
  59408. return ec.fieldContext_Location_hasActiveInventory(ctx, field)
  59409. case "hasUnfulfilledOrders":
  59410. return ec.fieldContext_Location_hasUnfulfilledOrders(ctx, field)
  59411. case "id":
  59412. return ec.fieldContext_Location_id(ctx, field)
  59413. case "inventoryLevel":
  59414. return ec.fieldContext_Location_inventoryLevel(ctx, field)
  59415. case "inventoryLevels":
  59416. return ec.fieldContext_Location_inventoryLevels(ctx, field)
  59417. case "isActive":
  59418. return ec.fieldContext_Location_isActive(ctx, field)
  59419. case "legacyResourceId":
  59420. return ec.fieldContext_Location_legacyResourceId(ctx, field)
  59421. case "metafield":
  59422. return ec.fieldContext_Location_metafield(ctx, field)
  59423. case "metafieldDefinitions":
  59424. return ec.fieldContext_Location_metafieldDefinitions(ctx, field)
  59425. case "metafields":
  59426. return ec.fieldContext_Location_metafields(ctx, field)
  59427. case "name":
  59428. return ec.fieldContext_Location_name(ctx, field)
  59429. case "privateMetafield":
  59430. return ec.fieldContext_Location_privateMetafield(ctx, field)
  59431. case "privateMetafields":
  59432. return ec.fieldContext_Location_privateMetafields(ctx, field)
  59433. case "shipsInventory":
  59434. return ec.fieldContext_Location_shipsInventory(ctx, field)
  59435. case "suggestedAddresses":
  59436. return ec.fieldContext_Location_suggestedAddresses(ctx, field)
  59437. }
  59438. return nil, fmt.Errorf("no field named %q was found under type Location", field.Name)
  59439. },
  59440. }
  59441. return fc, nil
  59442. }
  59443. func (ec *executionContext) _DeliveryProfile_zoneCountryCount(ctx context.Context, field graphql.CollectedField, obj *DeliveryProfile) (ret graphql.Marshaler) {
  59444. fc, err := ec.fieldContext_DeliveryProfile_zoneCountryCount(ctx, field)
  59445. if err != nil {
  59446. return graphql.Null
  59447. }
  59448. ctx = graphql.WithFieldContext(ctx, fc)
  59449. defer func() {
  59450. if r := recover(); r != nil {
  59451. ec.Error(ctx, ec.Recover(ctx, r))
  59452. ret = graphql.Null
  59453. }
  59454. }()
  59455. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  59456. ctx = rctx // use context from middleware stack in children
  59457. return obj.ZoneCountryCount, nil
  59458. })
  59459. if err != nil {
  59460. ec.Error(ctx, err)
  59461. return graphql.Null
  59462. }
  59463. if resTmp == nil {
  59464. if !graphql.HasFieldError(ctx, fc) {
  59465. ec.Errorf(ctx, "must not be null")
  59466. }
  59467. return graphql.Null
  59468. }
  59469. res := resTmp.(int)
  59470. fc.Result = res
  59471. return ec.marshalNInt2int(ctx, field.Selections, res)
  59472. }
  59473. func (ec *executionContext) fieldContext_DeliveryProfile_zoneCountryCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  59474. fc = &graphql.FieldContext{
  59475. Object: "DeliveryProfile",
  59476. Field: field,
  59477. IsMethod: false,
  59478. IsResolver: false,
  59479. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  59480. return nil, errors.New("field of type Int does not have child fields")
  59481. },
  59482. }
  59483. return fc, nil
  59484. }
  59485. func (ec *executionContext) _DeliveryProfileItem_id(ctx context.Context, field graphql.CollectedField, obj *DeliveryProfileItem) (ret graphql.Marshaler) {
  59486. fc, err := ec.fieldContext_DeliveryProfileItem_id(ctx, field)
  59487. if err != nil {
  59488. return graphql.Null
  59489. }
  59490. ctx = graphql.WithFieldContext(ctx, fc)
  59491. defer func() {
  59492. if r := recover(); r != nil {
  59493. ec.Error(ctx, ec.Recover(ctx, r))
  59494. ret = graphql.Null
  59495. }
  59496. }()
  59497. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  59498. ctx = rctx // use context from middleware stack in children
  59499. return obj.ID, nil
  59500. })
  59501. if err != nil {
  59502. ec.Error(ctx, err)
  59503. return graphql.Null
  59504. }
  59505. if resTmp == nil {
  59506. if !graphql.HasFieldError(ctx, fc) {
  59507. ec.Errorf(ctx, "must not be null")
  59508. }
  59509. return graphql.Null
  59510. }
  59511. res := resTmp.(string)
  59512. fc.Result = res
  59513. return ec.marshalNID2string(ctx, field.Selections, res)
  59514. }
  59515. func (ec *executionContext) fieldContext_DeliveryProfileItem_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  59516. fc = &graphql.FieldContext{
  59517. Object: "DeliveryProfileItem",
  59518. Field: field,
  59519. IsMethod: false,
  59520. IsResolver: false,
  59521. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  59522. return nil, errors.New("field of type ID does not have child fields")
  59523. },
  59524. }
  59525. return fc, nil
  59526. }
  59527. func (ec *executionContext) _DeliveryProfileItem_product(ctx context.Context, field graphql.CollectedField, obj *DeliveryProfileItem) (ret graphql.Marshaler) {
  59528. fc, err := ec.fieldContext_DeliveryProfileItem_product(ctx, field)
  59529. if err != nil {
  59530. return graphql.Null
  59531. }
  59532. ctx = graphql.WithFieldContext(ctx, fc)
  59533. defer func() {
  59534. if r := recover(); r != nil {
  59535. ec.Error(ctx, ec.Recover(ctx, r))
  59536. ret = graphql.Null
  59537. }
  59538. }()
  59539. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  59540. ctx = rctx // use context from middleware stack in children
  59541. return obj.Product, nil
  59542. })
  59543. if err != nil {
  59544. ec.Error(ctx, err)
  59545. return graphql.Null
  59546. }
  59547. if resTmp == nil {
  59548. if !graphql.HasFieldError(ctx, fc) {
  59549. ec.Errorf(ctx, "must not be null")
  59550. }
  59551. return graphql.Null
  59552. }
  59553. res := resTmp.(*Product)
  59554. fc.Result = res
  59555. return ec.marshalNProduct2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProduct(ctx, field.Selections, res)
  59556. }
  59557. func (ec *executionContext) fieldContext_DeliveryProfileItem_product(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  59558. fc = &graphql.FieldContext{
  59559. Object: "DeliveryProfileItem",
  59560. Field: field,
  59561. IsMethod: false,
  59562. IsResolver: false,
  59563. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  59564. switch field.Name {
  59565. case "availablePublicationCount":
  59566. return ec.fieldContext_Product_availablePublicationCount(ctx, field)
  59567. case "collections":
  59568. return ec.fieldContext_Product_collections(ctx, field)
  59569. case "contextualPricing":
  59570. return ec.fieldContext_Product_contextualPricing(ctx, field)
  59571. case "createdAt":
  59572. return ec.fieldContext_Product_createdAt(ctx, field)
  59573. case "defaultCursor":
  59574. return ec.fieldContext_Product_defaultCursor(ctx, field)
  59575. case "description":
  59576. return ec.fieldContext_Product_description(ctx, field)
  59577. case "descriptionHtml":
  59578. return ec.fieldContext_Product_descriptionHtml(ctx, field)
  59579. case "featuredImage":
  59580. return ec.fieldContext_Product_featuredImage(ctx, field)
  59581. case "featuredMedia":
  59582. return ec.fieldContext_Product_featuredMedia(ctx, field)
  59583. case "feedback":
  59584. return ec.fieldContext_Product_feedback(ctx, field)
  59585. case "giftCardTemplateSuffix":
  59586. return ec.fieldContext_Product_giftCardTemplateSuffix(ctx, field)
  59587. case "handle":
  59588. return ec.fieldContext_Product_handle(ctx, field)
  59589. case "hasOnlyDefaultVariant":
  59590. return ec.fieldContext_Product_hasOnlyDefaultVariant(ctx, field)
  59591. case "hasOutOfStockVariants":
  59592. return ec.fieldContext_Product_hasOutOfStockVariants(ctx, field)
  59593. case "id":
  59594. return ec.fieldContext_Product_id(ctx, field)
  59595. case "images":
  59596. return ec.fieldContext_Product_images(ctx, field)
  59597. case "inCollection":
  59598. return ec.fieldContext_Product_inCollection(ctx, field)
  59599. case "isGiftCard":
  59600. return ec.fieldContext_Product_isGiftCard(ctx, field)
  59601. case "legacyResourceId":
  59602. return ec.fieldContext_Product_legacyResourceId(ctx, field)
  59603. case "media":
  59604. return ec.fieldContext_Product_media(ctx, field)
  59605. case "mediaCount":
  59606. return ec.fieldContext_Product_mediaCount(ctx, field)
  59607. case "metafield":
  59608. return ec.fieldContext_Product_metafield(ctx, field)
  59609. case "metafieldDefinitions":
  59610. return ec.fieldContext_Product_metafieldDefinitions(ctx, field)
  59611. case "metafields":
  59612. return ec.fieldContext_Product_metafields(ctx, field)
  59613. case "onlineStorePreviewUrl":
  59614. return ec.fieldContext_Product_onlineStorePreviewUrl(ctx, field)
  59615. case "onlineStoreUrl":
  59616. return ec.fieldContext_Product_onlineStoreUrl(ctx, field)
  59617. case "options":
  59618. return ec.fieldContext_Product_options(ctx, field)
  59619. case "priceRangeV2":
  59620. return ec.fieldContext_Product_priceRangeV2(ctx, field)
  59621. case "privateMetafield":
  59622. return ec.fieldContext_Product_privateMetafield(ctx, field)
  59623. case "privateMetafields":
  59624. return ec.fieldContext_Product_privateMetafields(ctx, field)
  59625. case "productCategory":
  59626. return ec.fieldContext_Product_productCategory(ctx, field)
  59627. case "productType":
  59628. return ec.fieldContext_Product_productType(ctx, field)
  59629. case "publicationCount":
  59630. return ec.fieldContext_Product_publicationCount(ctx, field)
  59631. case "publishedAt":
  59632. return ec.fieldContext_Product_publishedAt(ctx, field)
  59633. case "publishedOnCurrentPublication":
  59634. return ec.fieldContext_Product_publishedOnCurrentPublication(ctx, field)
  59635. case "publishedOnPublication":
  59636. return ec.fieldContext_Product_publishedOnPublication(ctx, field)
  59637. case "requiresSellingPlan":
  59638. return ec.fieldContext_Product_requiresSellingPlan(ctx, field)
  59639. case "resourcePublicationOnCurrentPublication":
  59640. return ec.fieldContext_Product_resourcePublicationOnCurrentPublication(ctx, field)
  59641. case "resourcePublications":
  59642. return ec.fieldContext_Product_resourcePublications(ctx, field)
  59643. case "resourcePublicationsV2":
  59644. return ec.fieldContext_Product_resourcePublicationsV2(ctx, field)
  59645. case "sellingPlanGroupCount":
  59646. return ec.fieldContext_Product_sellingPlanGroupCount(ctx, field)
  59647. case "sellingPlanGroups":
  59648. return ec.fieldContext_Product_sellingPlanGroups(ctx, field)
  59649. case "seo":
  59650. return ec.fieldContext_Product_seo(ctx, field)
  59651. case "status":
  59652. return ec.fieldContext_Product_status(ctx, field)
  59653. case "tags":
  59654. return ec.fieldContext_Product_tags(ctx, field)
  59655. case "templateSuffix":
  59656. return ec.fieldContext_Product_templateSuffix(ctx, field)
  59657. case "title":
  59658. return ec.fieldContext_Product_title(ctx, field)
  59659. case "totalInventory":
  59660. return ec.fieldContext_Product_totalInventory(ctx, field)
  59661. case "totalVariants":
  59662. return ec.fieldContext_Product_totalVariants(ctx, field)
  59663. case "tracksInventory":
  59664. return ec.fieldContext_Product_tracksInventory(ctx, field)
  59665. case "translations":
  59666. return ec.fieldContext_Product_translations(ctx, field)
  59667. case "unpublishedPublications":
  59668. return ec.fieldContext_Product_unpublishedPublications(ctx, field)
  59669. case "updatedAt":
  59670. return ec.fieldContext_Product_updatedAt(ctx, field)
  59671. case "variants":
  59672. return ec.fieldContext_Product_variants(ctx, field)
  59673. case "vendor":
  59674. return ec.fieldContext_Product_vendor(ctx, field)
  59675. }
  59676. return nil, fmt.Errorf("no field named %q was found under type Product", field.Name)
  59677. },
  59678. }
  59679. return fc, nil
  59680. }
  59681. func (ec *executionContext) _DeliveryProfileItem_variants(ctx context.Context, field graphql.CollectedField, obj *DeliveryProfileItem) (ret graphql.Marshaler) {
  59682. fc, err := ec.fieldContext_DeliveryProfileItem_variants(ctx, field)
  59683. if err != nil {
  59684. return graphql.Null
  59685. }
  59686. ctx = graphql.WithFieldContext(ctx, fc)
  59687. defer func() {
  59688. if r := recover(); r != nil {
  59689. ec.Error(ctx, ec.Recover(ctx, r))
  59690. ret = graphql.Null
  59691. }
  59692. }()
  59693. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  59694. ctx = rctx // use context from middleware stack in children
  59695. return obj.Variants, nil
  59696. })
  59697. if err != nil {
  59698. ec.Error(ctx, err)
  59699. return graphql.Null
  59700. }
  59701. if resTmp == nil {
  59702. if !graphql.HasFieldError(ctx, fc) {
  59703. ec.Errorf(ctx, "must not be null")
  59704. }
  59705. return graphql.Null
  59706. }
  59707. res := resTmp.(*ProductVariantConnection)
  59708. fc.Result = res
  59709. return ec.marshalNProductVariantConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantConnection(ctx, field.Selections, res)
  59710. }
  59711. func (ec *executionContext) fieldContext_DeliveryProfileItem_variants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  59712. fc = &graphql.FieldContext{
  59713. Object: "DeliveryProfileItem",
  59714. Field: field,
  59715. IsMethod: false,
  59716. IsResolver: false,
  59717. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  59718. switch field.Name {
  59719. case "edges":
  59720. return ec.fieldContext_ProductVariantConnection_edges(ctx, field)
  59721. case "nodes":
  59722. return ec.fieldContext_ProductVariantConnection_nodes(ctx, field)
  59723. case "pageInfo":
  59724. return ec.fieldContext_ProductVariantConnection_pageInfo(ctx, field)
  59725. }
  59726. return nil, fmt.Errorf("no field named %q was found under type ProductVariantConnection", field.Name)
  59727. },
  59728. }
  59729. defer func() {
  59730. if r := recover(); r != nil {
  59731. err = ec.Recover(ctx, r)
  59732. ec.Error(ctx, err)
  59733. }
  59734. }()
  59735. ctx = graphql.WithFieldContext(ctx, fc)
  59736. if fc.Args, err = ec.field_DeliveryProfileItem_variants_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  59737. ec.Error(ctx, err)
  59738. return
  59739. }
  59740. return fc, nil
  59741. }
  59742. func (ec *executionContext) _DeliveryProfileItemConnection_edges(ctx context.Context, field graphql.CollectedField, obj *DeliveryProfileItemConnection) (ret graphql.Marshaler) {
  59743. fc, err := ec.fieldContext_DeliveryProfileItemConnection_edges(ctx, field)
  59744. if err != nil {
  59745. return graphql.Null
  59746. }
  59747. ctx = graphql.WithFieldContext(ctx, fc)
  59748. defer func() {
  59749. if r := recover(); r != nil {
  59750. ec.Error(ctx, ec.Recover(ctx, r))
  59751. ret = graphql.Null
  59752. }
  59753. }()
  59754. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  59755. ctx = rctx // use context from middleware stack in children
  59756. return obj.Edges, nil
  59757. })
  59758. if err != nil {
  59759. ec.Error(ctx, err)
  59760. return graphql.Null
  59761. }
  59762. if resTmp == nil {
  59763. if !graphql.HasFieldError(ctx, fc) {
  59764. ec.Errorf(ctx, "must not be null")
  59765. }
  59766. return graphql.Null
  59767. }
  59768. res := resTmp.([]*DeliveryProfileItemEdge)
  59769. fc.Result = res
  59770. return ec.marshalNDeliveryProfileItemEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryProfileItemEdgeᚄ(ctx, field.Selections, res)
  59771. }
  59772. func (ec *executionContext) fieldContext_DeliveryProfileItemConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  59773. fc = &graphql.FieldContext{
  59774. Object: "DeliveryProfileItemConnection",
  59775. Field: field,
  59776. IsMethod: false,
  59777. IsResolver: false,
  59778. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  59779. switch field.Name {
  59780. case "cursor":
  59781. return ec.fieldContext_DeliveryProfileItemEdge_cursor(ctx, field)
  59782. case "node":
  59783. return ec.fieldContext_DeliveryProfileItemEdge_node(ctx, field)
  59784. }
  59785. return nil, fmt.Errorf("no field named %q was found under type DeliveryProfileItemEdge", field.Name)
  59786. },
  59787. }
  59788. return fc, nil
  59789. }
  59790. func (ec *executionContext) _DeliveryProfileItemConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *DeliveryProfileItemConnection) (ret graphql.Marshaler) {
  59791. fc, err := ec.fieldContext_DeliveryProfileItemConnection_nodes(ctx, field)
  59792. if err != nil {
  59793. return graphql.Null
  59794. }
  59795. ctx = graphql.WithFieldContext(ctx, fc)
  59796. defer func() {
  59797. if r := recover(); r != nil {
  59798. ec.Error(ctx, ec.Recover(ctx, r))
  59799. ret = graphql.Null
  59800. }
  59801. }()
  59802. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  59803. ctx = rctx // use context from middleware stack in children
  59804. return obj.Nodes, nil
  59805. })
  59806. if err != nil {
  59807. ec.Error(ctx, err)
  59808. return graphql.Null
  59809. }
  59810. if resTmp == nil {
  59811. if !graphql.HasFieldError(ctx, fc) {
  59812. ec.Errorf(ctx, "must not be null")
  59813. }
  59814. return graphql.Null
  59815. }
  59816. res := resTmp.([]*DeliveryProfileItem)
  59817. fc.Result = res
  59818. return ec.marshalNDeliveryProfileItem2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryProfileItemᚄ(ctx, field.Selections, res)
  59819. }
  59820. func (ec *executionContext) fieldContext_DeliveryProfileItemConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  59821. fc = &graphql.FieldContext{
  59822. Object: "DeliveryProfileItemConnection",
  59823. Field: field,
  59824. IsMethod: false,
  59825. IsResolver: false,
  59826. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  59827. switch field.Name {
  59828. case "id":
  59829. return ec.fieldContext_DeliveryProfileItem_id(ctx, field)
  59830. case "product":
  59831. return ec.fieldContext_DeliveryProfileItem_product(ctx, field)
  59832. case "variants":
  59833. return ec.fieldContext_DeliveryProfileItem_variants(ctx, field)
  59834. }
  59835. return nil, fmt.Errorf("no field named %q was found under type DeliveryProfileItem", field.Name)
  59836. },
  59837. }
  59838. return fc, nil
  59839. }
  59840. func (ec *executionContext) _DeliveryProfileItemConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *DeliveryProfileItemConnection) (ret graphql.Marshaler) {
  59841. fc, err := ec.fieldContext_DeliveryProfileItemConnection_pageInfo(ctx, field)
  59842. if err != nil {
  59843. return graphql.Null
  59844. }
  59845. ctx = graphql.WithFieldContext(ctx, fc)
  59846. defer func() {
  59847. if r := recover(); r != nil {
  59848. ec.Error(ctx, ec.Recover(ctx, r))
  59849. ret = graphql.Null
  59850. }
  59851. }()
  59852. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  59853. ctx = rctx // use context from middleware stack in children
  59854. return obj.PageInfo, nil
  59855. })
  59856. if err != nil {
  59857. ec.Error(ctx, err)
  59858. return graphql.Null
  59859. }
  59860. if resTmp == nil {
  59861. if !graphql.HasFieldError(ctx, fc) {
  59862. ec.Errorf(ctx, "must not be null")
  59863. }
  59864. return graphql.Null
  59865. }
  59866. res := resTmp.(*PageInfo)
  59867. fc.Result = res
  59868. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  59869. }
  59870. func (ec *executionContext) fieldContext_DeliveryProfileItemConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  59871. fc = &graphql.FieldContext{
  59872. Object: "DeliveryProfileItemConnection",
  59873. Field: field,
  59874. IsMethod: false,
  59875. IsResolver: false,
  59876. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  59877. switch field.Name {
  59878. case "endCursor":
  59879. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  59880. case "hasNextPage":
  59881. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  59882. case "hasPreviousPage":
  59883. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  59884. case "startCursor":
  59885. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  59886. }
  59887. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  59888. },
  59889. }
  59890. return fc, nil
  59891. }
  59892. func (ec *executionContext) _DeliveryProfileItemEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *DeliveryProfileItemEdge) (ret graphql.Marshaler) {
  59893. fc, err := ec.fieldContext_DeliveryProfileItemEdge_cursor(ctx, field)
  59894. if err != nil {
  59895. return graphql.Null
  59896. }
  59897. ctx = graphql.WithFieldContext(ctx, fc)
  59898. defer func() {
  59899. if r := recover(); r != nil {
  59900. ec.Error(ctx, ec.Recover(ctx, r))
  59901. ret = graphql.Null
  59902. }
  59903. }()
  59904. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  59905. ctx = rctx // use context from middleware stack in children
  59906. return obj.Cursor, nil
  59907. })
  59908. if err != nil {
  59909. ec.Error(ctx, err)
  59910. return graphql.Null
  59911. }
  59912. if resTmp == nil {
  59913. if !graphql.HasFieldError(ctx, fc) {
  59914. ec.Errorf(ctx, "must not be null")
  59915. }
  59916. return graphql.Null
  59917. }
  59918. res := resTmp.(string)
  59919. fc.Result = res
  59920. return ec.marshalNString2string(ctx, field.Selections, res)
  59921. }
  59922. func (ec *executionContext) fieldContext_DeliveryProfileItemEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  59923. fc = &graphql.FieldContext{
  59924. Object: "DeliveryProfileItemEdge",
  59925. Field: field,
  59926. IsMethod: false,
  59927. IsResolver: false,
  59928. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  59929. return nil, errors.New("field of type String does not have child fields")
  59930. },
  59931. }
  59932. return fc, nil
  59933. }
  59934. func (ec *executionContext) _DeliveryProfileItemEdge_node(ctx context.Context, field graphql.CollectedField, obj *DeliveryProfileItemEdge) (ret graphql.Marshaler) {
  59935. fc, err := ec.fieldContext_DeliveryProfileItemEdge_node(ctx, field)
  59936. if err != nil {
  59937. return graphql.Null
  59938. }
  59939. ctx = graphql.WithFieldContext(ctx, fc)
  59940. defer func() {
  59941. if r := recover(); r != nil {
  59942. ec.Error(ctx, ec.Recover(ctx, r))
  59943. ret = graphql.Null
  59944. }
  59945. }()
  59946. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  59947. ctx = rctx // use context from middleware stack in children
  59948. return obj.Node, nil
  59949. })
  59950. if err != nil {
  59951. ec.Error(ctx, err)
  59952. return graphql.Null
  59953. }
  59954. if resTmp == nil {
  59955. if !graphql.HasFieldError(ctx, fc) {
  59956. ec.Errorf(ctx, "must not be null")
  59957. }
  59958. return graphql.Null
  59959. }
  59960. res := resTmp.(*DeliveryProfileItem)
  59961. fc.Result = res
  59962. return ec.marshalNDeliveryProfileItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryProfileItem(ctx, field.Selections, res)
  59963. }
  59964. func (ec *executionContext) fieldContext_DeliveryProfileItemEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  59965. fc = &graphql.FieldContext{
  59966. Object: "DeliveryProfileItemEdge",
  59967. Field: field,
  59968. IsMethod: false,
  59969. IsResolver: false,
  59970. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  59971. switch field.Name {
  59972. case "id":
  59973. return ec.fieldContext_DeliveryProfileItem_id(ctx, field)
  59974. case "product":
  59975. return ec.fieldContext_DeliveryProfileItem_product(ctx, field)
  59976. case "variants":
  59977. return ec.fieldContext_DeliveryProfileItem_variants(ctx, field)
  59978. }
  59979. return nil, fmt.Errorf("no field named %q was found under type DeliveryProfileItem", field.Name)
  59980. },
  59981. }
  59982. return fc, nil
  59983. }
  59984. func (ec *executionContext) _DeliveryProfileLocationGroup_countriesInAnyZone(ctx context.Context, field graphql.CollectedField, obj *DeliveryProfileLocationGroup) (ret graphql.Marshaler) {
  59985. fc, err := ec.fieldContext_DeliveryProfileLocationGroup_countriesInAnyZone(ctx, field)
  59986. if err != nil {
  59987. return graphql.Null
  59988. }
  59989. ctx = graphql.WithFieldContext(ctx, fc)
  59990. defer func() {
  59991. if r := recover(); r != nil {
  59992. ec.Error(ctx, ec.Recover(ctx, r))
  59993. ret = graphql.Null
  59994. }
  59995. }()
  59996. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  59997. ctx = rctx // use context from middleware stack in children
  59998. return obj.CountriesInAnyZone, nil
  59999. })
  60000. if err != nil {
  60001. ec.Error(ctx, err)
  60002. return graphql.Null
  60003. }
  60004. if resTmp == nil {
  60005. if !graphql.HasFieldError(ctx, fc) {
  60006. ec.Errorf(ctx, "must not be null")
  60007. }
  60008. return graphql.Null
  60009. }
  60010. res := resTmp.([]*DeliveryCountryAndZone)
  60011. fc.Result = res
  60012. return ec.marshalNDeliveryCountryAndZone2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryCountryAndZoneᚄ(ctx, field.Selections, res)
  60013. }
  60014. func (ec *executionContext) fieldContext_DeliveryProfileLocationGroup_countriesInAnyZone(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  60015. fc = &graphql.FieldContext{
  60016. Object: "DeliveryProfileLocationGroup",
  60017. Field: field,
  60018. IsMethod: false,
  60019. IsResolver: false,
  60020. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  60021. switch field.Name {
  60022. case "country":
  60023. return ec.fieldContext_DeliveryCountryAndZone_country(ctx, field)
  60024. case "zone":
  60025. return ec.fieldContext_DeliveryCountryAndZone_zone(ctx, field)
  60026. }
  60027. return nil, fmt.Errorf("no field named %q was found under type DeliveryCountryAndZone", field.Name)
  60028. },
  60029. }
  60030. return fc, nil
  60031. }
  60032. func (ec *executionContext) _DeliveryProfileLocationGroup_locationGroup(ctx context.Context, field graphql.CollectedField, obj *DeliveryProfileLocationGroup) (ret graphql.Marshaler) {
  60033. fc, err := ec.fieldContext_DeliveryProfileLocationGroup_locationGroup(ctx, field)
  60034. if err != nil {
  60035. return graphql.Null
  60036. }
  60037. ctx = graphql.WithFieldContext(ctx, fc)
  60038. defer func() {
  60039. if r := recover(); r != nil {
  60040. ec.Error(ctx, ec.Recover(ctx, r))
  60041. ret = graphql.Null
  60042. }
  60043. }()
  60044. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  60045. ctx = rctx // use context from middleware stack in children
  60046. return obj.LocationGroup, nil
  60047. })
  60048. if err != nil {
  60049. ec.Error(ctx, err)
  60050. return graphql.Null
  60051. }
  60052. if resTmp == nil {
  60053. if !graphql.HasFieldError(ctx, fc) {
  60054. ec.Errorf(ctx, "must not be null")
  60055. }
  60056. return graphql.Null
  60057. }
  60058. res := resTmp.(*DeliveryLocationGroup)
  60059. fc.Result = res
  60060. return ec.marshalNDeliveryLocationGroup2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryLocationGroup(ctx, field.Selections, res)
  60061. }
  60062. func (ec *executionContext) fieldContext_DeliveryProfileLocationGroup_locationGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  60063. fc = &graphql.FieldContext{
  60064. Object: "DeliveryProfileLocationGroup",
  60065. Field: field,
  60066. IsMethod: false,
  60067. IsResolver: false,
  60068. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  60069. switch field.Name {
  60070. case "id":
  60071. return ec.fieldContext_DeliveryLocationGroup_id(ctx, field)
  60072. case "locations":
  60073. return ec.fieldContext_DeliveryLocationGroup_locations(ctx, field)
  60074. }
  60075. return nil, fmt.Errorf("no field named %q was found under type DeliveryLocationGroup", field.Name)
  60076. },
  60077. }
  60078. return fc, nil
  60079. }
  60080. func (ec *executionContext) _DeliveryProfileLocationGroup_locationGroupZones(ctx context.Context, field graphql.CollectedField, obj *DeliveryProfileLocationGroup) (ret graphql.Marshaler) {
  60081. fc, err := ec.fieldContext_DeliveryProfileLocationGroup_locationGroupZones(ctx, field)
  60082. if err != nil {
  60083. return graphql.Null
  60084. }
  60085. ctx = graphql.WithFieldContext(ctx, fc)
  60086. defer func() {
  60087. if r := recover(); r != nil {
  60088. ec.Error(ctx, ec.Recover(ctx, r))
  60089. ret = graphql.Null
  60090. }
  60091. }()
  60092. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  60093. ctx = rctx // use context from middleware stack in children
  60094. return obj.LocationGroupZones, nil
  60095. })
  60096. if err != nil {
  60097. ec.Error(ctx, err)
  60098. return graphql.Null
  60099. }
  60100. if resTmp == nil {
  60101. if !graphql.HasFieldError(ctx, fc) {
  60102. ec.Errorf(ctx, "must not be null")
  60103. }
  60104. return graphql.Null
  60105. }
  60106. res := resTmp.(*DeliveryLocationGroupZoneConnection)
  60107. fc.Result = res
  60108. return ec.marshalNDeliveryLocationGroupZoneConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryLocationGroupZoneConnection(ctx, field.Selections, res)
  60109. }
  60110. func (ec *executionContext) fieldContext_DeliveryProfileLocationGroup_locationGroupZones(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  60111. fc = &graphql.FieldContext{
  60112. Object: "DeliveryProfileLocationGroup",
  60113. Field: field,
  60114. IsMethod: false,
  60115. IsResolver: false,
  60116. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  60117. switch field.Name {
  60118. case "edges":
  60119. return ec.fieldContext_DeliveryLocationGroupZoneConnection_edges(ctx, field)
  60120. case "nodes":
  60121. return ec.fieldContext_DeliveryLocationGroupZoneConnection_nodes(ctx, field)
  60122. case "pageInfo":
  60123. return ec.fieldContext_DeliveryLocationGroupZoneConnection_pageInfo(ctx, field)
  60124. }
  60125. return nil, fmt.Errorf("no field named %q was found under type DeliveryLocationGroupZoneConnection", field.Name)
  60126. },
  60127. }
  60128. defer func() {
  60129. if r := recover(); r != nil {
  60130. err = ec.Recover(ctx, r)
  60131. ec.Error(ctx, err)
  60132. }
  60133. }()
  60134. ctx = graphql.WithFieldContext(ctx, fc)
  60135. if fc.Args, err = ec.field_DeliveryProfileLocationGroup_locationGroupZones_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  60136. ec.Error(ctx, err)
  60137. return
  60138. }
  60139. return fc, nil
  60140. }
  60141. func (ec *executionContext) _DeliveryProvince_code(ctx context.Context, field graphql.CollectedField, obj *DeliveryProvince) (ret graphql.Marshaler) {
  60142. fc, err := ec.fieldContext_DeliveryProvince_code(ctx, field)
  60143. if err != nil {
  60144. return graphql.Null
  60145. }
  60146. ctx = graphql.WithFieldContext(ctx, fc)
  60147. defer func() {
  60148. if r := recover(); r != nil {
  60149. ec.Error(ctx, ec.Recover(ctx, r))
  60150. ret = graphql.Null
  60151. }
  60152. }()
  60153. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  60154. ctx = rctx // use context from middleware stack in children
  60155. return obj.Code, nil
  60156. })
  60157. if err != nil {
  60158. ec.Error(ctx, err)
  60159. return graphql.Null
  60160. }
  60161. if resTmp == nil {
  60162. if !graphql.HasFieldError(ctx, fc) {
  60163. ec.Errorf(ctx, "must not be null")
  60164. }
  60165. return graphql.Null
  60166. }
  60167. res := resTmp.(string)
  60168. fc.Result = res
  60169. return ec.marshalNString2string(ctx, field.Selections, res)
  60170. }
  60171. func (ec *executionContext) fieldContext_DeliveryProvince_code(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  60172. fc = &graphql.FieldContext{
  60173. Object: "DeliveryProvince",
  60174. Field: field,
  60175. IsMethod: false,
  60176. IsResolver: false,
  60177. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  60178. return nil, errors.New("field of type String does not have child fields")
  60179. },
  60180. }
  60181. return fc, nil
  60182. }
  60183. func (ec *executionContext) _DeliveryProvince_id(ctx context.Context, field graphql.CollectedField, obj *DeliveryProvince) (ret graphql.Marshaler) {
  60184. fc, err := ec.fieldContext_DeliveryProvince_id(ctx, field)
  60185. if err != nil {
  60186. return graphql.Null
  60187. }
  60188. ctx = graphql.WithFieldContext(ctx, fc)
  60189. defer func() {
  60190. if r := recover(); r != nil {
  60191. ec.Error(ctx, ec.Recover(ctx, r))
  60192. ret = graphql.Null
  60193. }
  60194. }()
  60195. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  60196. ctx = rctx // use context from middleware stack in children
  60197. return obj.ID, nil
  60198. })
  60199. if err != nil {
  60200. ec.Error(ctx, err)
  60201. return graphql.Null
  60202. }
  60203. if resTmp == nil {
  60204. if !graphql.HasFieldError(ctx, fc) {
  60205. ec.Errorf(ctx, "must not be null")
  60206. }
  60207. return graphql.Null
  60208. }
  60209. res := resTmp.(string)
  60210. fc.Result = res
  60211. return ec.marshalNID2string(ctx, field.Selections, res)
  60212. }
  60213. func (ec *executionContext) fieldContext_DeliveryProvince_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  60214. fc = &graphql.FieldContext{
  60215. Object: "DeliveryProvince",
  60216. Field: field,
  60217. IsMethod: false,
  60218. IsResolver: false,
  60219. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  60220. return nil, errors.New("field of type ID does not have child fields")
  60221. },
  60222. }
  60223. return fc, nil
  60224. }
  60225. func (ec *executionContext) _DeliveryProvince_name(ctx context.Context, field graphql.CollectedField, obj *DeliveryProvince) (ret graphql.Marshaler) {
  60226. fc, err := ec.fieldContext_DeliveryProvince_name(ctx, field)
  60227. if err != nil {
  60228. return graphql.Null
  60229. }
  60230. ctx = graphql.WithFieldContext(ctx, fc)
  60231. defer func() {
  60232. if r := recover(); r != nil {
  60233. ec.Error(ctx, ec.Recover(ctx, r))
  60234. ret = graphql.Null
  60235. }
  60236. }()
  60237. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  60238. ctx = rctx // use context from middleware stack in children
  60239. return obj.Name, nil
  60240. })
  60241. if err != nil {
  60242. ec.Error(ctx, err)
  60243. return graphql.Null
  60244. }
  60245. if resTmp == nil {
  60246. if !graphql.HasFieldError(ctx, fc) {
  60247. ec.Errorf(ctx, "must not be null")
  60248. }
  60249. return graphql.Null
  60250. }
  60251. res := resTmp.(string)
  60252. fc.Result = res
  60253. return ec.marshalNString2string(ctx, field.Selections, res)
  60254. }
  60255. func (ec *executionContext) fieldContext_DeliveryProvince_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  60256. fc = &graphql.FieldContext{
  60257. Object: "DeliveryProvince",
  60258. Field: field,
  60259. IsMethod: false,
  60260. IsResolver: false,
  60261. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  60262. return nil, errors.New("field of type String does not have child fields")
  60263. },
  60264. }
  60265. return fc, nil
  60266. }
  60267. func (ec *executionContext) _DeliveryProvince_translatedName(ctx context.Context, field graphql.CollectedField, obj *DeliveryProvince) (ret graphql.Marshaler) {
  60268. fc, err := ec.fieldContext_DeliveryProvince_translatedName(ctx, field)
  60269. if err != nil {
  60270. return graphql.Null
  60271. }
  60272. ctx = graphql.WithFieldContext(ctx, fc)
  60273. defer func() {
  60274. if r := recover(); r != nil {
  60275. ec.Error(ctx, ec.Recover(ctx, r))
  60276. ret = graphql.Null
  60277. }
  60278. }()
  60279. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  60280. ctx = rctx // use context from middleware stack in children
  60281. return obj.TranslatedName, nil
  60282. })
  60283. if err != nil {
  60284. ec.Error(ctx, err)
  60285. return graphql.Null
  60286. }
  60287. if resTmp == nil {
  60288. if !graphql.HasFieldError(ctx, fc) {
  60289. ec.Errorf(ctx, "must not be null")
  60290. }
  60291. return graphql.Null
  60292. }
  60293. res := resTmp.(string)
  60294. fc.Result = res
  60295. return ec.marshalNString2string(ctx, field.Selections, res)
  60296. }
  60297. func (ec *executionContext) fieldContext_DeliveryProvince_translatedName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  60298. fc = &graphql.FieldContext{
  60299. Object: "DeliveryProvince",
  60300. Field: field,
  60301. IsMethod: false,
  60302. IsResolver: false,
  60303. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  60304. return nil, errors.New("field of type String does not have child fields")
  60305. },
  60306. }
  60307. return fc, nil
  60308. }
  60309. func (ec *executionContext) _DeliveryRateDefinition_id(ctx context.Context, field graphql.CollectedField, obj *DeliveryRateDefinition) (ret graphql.Marshaler) {
  60310. fc, err := ec.fieldContext_DeliveryRateDefinition_id(ctx, field)
  60311. if err != nil {
  60312. return graphql.Null
  60313. }
  60314. ctx = graphql.WithFieldContext(ctx, fc)
  60315. defer func() {
  60316. if r := recover(); r != nil {
  60317. ec.Error(ctx, ec.Recover(ctx, r))
  60318. ret = graphql.Null
  60319. }
  60320. }()
  60321. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  60322. ctx = rctx // use context from middleware stack in children
  60323. return obj.ID, nil
  60324. })
  60325. if err != nil {
  60326. ec.Error(ctx, err)
  60327. return graphql.Null
  60328. }
  60329. if resTmp == nil {
  60330. if !graphql.HasFieldError(ctx, fc) {
  60331. ec.Errorf(ctx, "must not be null")
  60332. }
  60333. return graphql.Null
  60334. }
  60335. res := resTmp.(string)
  60336. fc.Result = res
  60337. return ec.marshalNID2string(ctx, field.Selections, res)
  60338. }
  60339. func (ec *executionContext) fieldContext_DeliveryRateDefinition_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  60340. fc = &graphql.FieldContext{
  60341. Object: "DeliveryRateDefinition",
  60342. Field: field,
  60343. IsMethod: false,
  60344. IsResolver: false,
  60345. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  60346. return nil, errors.New("field of type ID does not have child fields")
  60347. },
  60348. }
  60349. return fc, nil
  60350. }
  60351. func (ec *executionContext) _DeliveryRateDefinition_price(ctx context.Context, field graphql.CollectedField, obj *DeliveryRateDefinition) (ret graphql.Marshaler) {
  60352. fc, err := ec.fieldContext_DeliveryRateDefinition_price(ctx, field)
  60353. if err != nil {
  60354. return graphql.Null
  60355. }
  60356. ctx = graphql.WithFieldContext(ctx, fc)
  60357. defer func() {
  60358. if r := recover(); r != nil {
  60359. ec.Error(ctx, ec.Recover(ctx, r))
  60360. ret = graphql.Null
  60361. }
  60362. }()
  60363. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  60364. ctx = rctx // use context from middleware stack in children
  60365. return obj.Price, nil
  60366. })
  60367. if err != nil {
  60368. ec.Error(ctx, err)
  60369. return graphql.Null
  60370. }
  60371. if resTmp == nil {
  60372. if !graphql.HasFieldError(ctx, fc) {
  60373. ec.Errorf(ctx, "must not be null")
  60374. }
  60375. return graphql.Null
  60376. }
  60377. res := resTmp.(*MoneyV2)
  60378. fc.Result = res
  60379. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  60380. }
  60381. func (ec *executionContext) fieldContext_DeliveryRateDefinition_price(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  60382. fc = &graphql.FieldContext{
  60383. Object: "DeliveryRateDefinition",
  60384. Field: field,
  60385. IsMethod: false,
  60386. IsResolver: false,
  60387. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  60388. switch field.Name {
  60389. case "amount":
  60390. return ec.fieldContext_MoneyV2_amount(ctx, field)
  60391. case "currencyCode":
  60392. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  60393. }
  60394. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  60395. },
  60396. }
  60397. return fc, nil
  60398. }
  60399. func (ec *executionContext) _DeliveryZone_countries(ctx context.Context, field graphql.CollectedField, obj *DeliveryZone) (ret graphql.Marshaler) {
  60400. fc, err := ec.fieldContext_DeliveryZone_countries(ctx, field)
  60401. if err != nil {
  60402. return graphql.Null
  60403. }
  60404. ctx = graphql.WithFieldContext(ctx, fc)
  60405. defer func() {
  60406. if r := recover(); r != nil {
  60407. ec.Error(ctx, ec.Recover(ctx, r))
  60408. ret = graphql.Null
  60409. }
  60410. }()
  60411. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  60412. ctx = rctx // use context from middleware stack in children
  60413. return obj.Countries, nil
  60414. })
  60415. if err != nil {
  60416. ec.Error(ctx, err)
  60417. return graphql.Null
  60418. }
  60419. if resTmp == nil {
  60420. if !graphql.HasFieldError(ctx, fc) {
  60421. ec.Errorf(ctx, "must not be null")
  60422. }
  60423. return graphql.Null
  60424. }
  60425. res := resTmp.([]*DeliveryCountry)
  60426. fc.Result = res
  60427. return ec.marshalNDeliveryCountry2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryCountryᚄ(ctx, field.Selections, res)
  60428. }
  60429. func (ec *executionContext) fieldContext_DeliveryZone_countries(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  60430. fc = &graphql.FieldContext{
  60431. Object: "DeliveryZone",
  60432. Field: field,
  60433. IsMethod: false,
  60434. IsResolver: false,
  60435. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  60436. switch field.Name {
  60437. case "code":
  60438. return ec.fieldContext_DeliveryCountry_code(ctx, field)
  60439. case "id":
  60440. return ec.fieldContext_DeliveryCountry_id(ctx, field)
  60441. case "name":
  60442. return ec.fieldContext_DeliveryCountry_name(ctx, field)
  60443. case "provinces":
  60444. return ec.fieldContext_DeliveryCountry_provinces(ctx, field)
  60445. case "translatedName":
  60446. return ec.fieldContext_DeliveryCountry_translatedName(ctx, field)
  60447. }
  60448. return nil, fmt.Errorf("no field named %q was found under type DeliveryCountry", field.Name)
  60449. },
  60450. }
  60451. return fc, nil
  60452. }
  60453. func (ec *executionContext) _DeliveryZone_id(ctx context.Context, field graphql.CollectedField, obj *DeliveryZone) (ret graphql.Marshaler) {
  60454. fc, err := ec.fieldContext_DeliveryZone_id(ctx, field)
  60455. if err != nil {
  60456. return graphql.Null
  60457. }
  60458. ctx = graphql.WithFieldContext(ctx, fc)
  60459. defer func() {
  60460. if r := recover(); r != nil {
  60461. ec.Error(ctx, ec.Recover(ctx, r))
  60462. ret = graphql.Null
  60463. }
  60464. }()
  60465. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  60466. ctx = rctx // use context from middleware stack in children
  60467. return obj.ID, nil
  60468. })
  60469. if err != nil {
  60470. ec.Error(ctx, err)
  60471. return graphql.Null
  60472. }
  60473. if resTmp == nil {
  60474. if !graphql.HasFieldError(ctx, fc) {
  60475. ec.Errorf(ctx, "must not be null")
  60476. }
  60477. return graphql.Null
  60478. }
  60479. res := resTmp.(string)
  60480. fc.Result = res
  60481. return ec.marshalNID2string(ctx, field.Selections, res)
  60482. }
  60483. func (ec *executionContext) fieldContext_DeliveryZone_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  60484. fc = &graphql.FieldContext{
  60485. Object: "DeliveryZone",
  60486. Field: field,
  60487. IsMethod: false,
  60488. IsResolver: false,
  60489. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  60490. return nil, errors.New("field of type ID does not have child fields")
  60491. },
  60492. }
  60493. return fc, nil
  60494. }
  60495. func (ec *executionContext) _DeliveryZone_name(ctx context.Context, field graphql.CollectedField, obj *DeliveryZone) (ret graphql.Marshaler) {
  60496. fc, err := ec.fieldContext_DeliveryZone_name(ctx, field)
  60497. if err != nil {
  60498. return graphql.Null
  60499. }
  60500. ctx = graphql.WithFieldContext(ctx, fc)
  60501. defer func() {
  60502. if r := recover(); r != nil {
  60503. ec.Error(ctx, ec.Recover(ctx, r))
  60504. ret = graphql.Null
  60505. }
  60506. }()
  60507. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  60508. ctx = rctx // use context from middleware stack in children
  60509. return obj.Name, nil
  60510. })
  60511. if err != nil {
  60512. ec.Error(ctx, err)
  60513. return graphql.Null
  60514. }
  60515. if resTmp == nil {
  60516. if !graphql.HasFieldError(ctx, fc) {
  60517. ec.Errorf(ctx, "must not be null")
  60518. }
  60519. return graphql.Null
  60520. }
  60521. res := resTmp.(string)
  60522. fc.Result = res
  60523. return ec.marshalNString2string(ctx, field.Selections, res)
  60524. }
  60525. func (ec *executionContext) fieldContext_DeliveryZone_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  60526. fc = &graphql.FieldContext{
  60527. Object: "DeliveryZone",
  60528. Field: field,
  60529. IsMethod: false,
  60530. IsResolver: false,
  60531. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  60532. return nil, errors.New("field of type String does not have child fields")
  60533. },
  60534. }
  60535. return fc, nil
  60536. }
  60537. func (ec *executionContext) _DiscountAllocation_allocatedAmountSet(ctx context.Context, field graphql.CollectedField, obj *DiscountAllocation) (ret graphql.Marshaler) {
  60538. fc, err := ec.fieldContext_DiscountAllocation_allocatedAmountSet(ctx, field)
  60539. if err != nil {
  60540. return graphql.Null
  60541. }
  60542. ctx = graphql.WithFieldContext(ctx, fc)
  60543. defer func() {
  60544. if r := recover(); r != nil {
  60545. ec.Error(ctx, ec.Recover(ctx, r))
  60546. ret = graphql.Null
  60547. }
  60548. }()
  60549. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  60550. ctx = rctx // use context from middleware stack in children
  60551. return obj.AllocatedAmountSet, nil
  60552. })
  60553. if err != nil {
  60554. ec.Error(ctx, err)
  60555. return graphql.Null
  60556. }
  60557. if resTmp == nil {
  60558. if !graphql.HasFieldError(ctx, fc) {
  60559. ec.Errorf(ctx, "must not be null")
  60560. }
  60561. return graphql.Null
  60562. }
  60563. res := resTmp.(*MoneyBag)
  60564. fc.Result = res
  60565. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  60566. }
  60567. func (ec *executionContext) fieldContext_DiscountAllocation_allocatedAmountSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  60568. fc = &graphql.FieldContext{
  60569. Object: "DiscountAllocation",
  60570. Field: field,
  60571. IsMethod: false,
  60572. IsResolver: false,
  60573. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  60574. switch field.Name {
  60575. case "presentmentMoney":
  60576. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  60577. case "shopMoney":
  60578. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  60579. }
  60580. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  60581. },
  60582. }
  60583. return fc, nil
  60584. }
  60585. func (ec *executionContext) _DiscountAllocation_discountApplication(ctx context.Context, field graphql.CollectedField, obj *DiscountAllocation) (ret graphql.Marshaler) {
  60586. fc, err := ec.fieldContext_DiscountAllocation_discountApplication(ctx, field)
  60587. if err != nil {
  60588. return graphql.Null
  60589. }
  60590. ctx = graphql.WithFieldContext(ctx, fc)
  60591. defer func() {
  60592. if r := recover(); r != nil {
  60593. ec.Error(ctx, ec.Recover(ctx, r))
  60594. ret = graphql.Null
  60595. }
  60596. }()
  60597. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  60598. ctx = rctx // use context from middleware stack in children
  60599. return obj.DiscountApplication, nil
  60600. })
  60601. if err != nil {
  60602. ec.Error(ctx, err)
  60603. return graphql.Null
  60604. }
  60605. if resTmp == nil {
  60606. if !graphql.HasFieldError(ctx, fc) {
  60607. ec.Errorf(ctx, "must not be null")
  60608. }
  60609. return graphql.Null
  60610. }
  60611. res := resTmp.(DiscountApplication)
  60612. fc.Result = res
  60613. return ec.marshalNDiscountApplication2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplication(ctx, field.Selections, res)
  60614. }
  60615. func (ec *executionContext) fieldContext_DiscountAllocation_discountApplication(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  60616. fc = &graphql.FieldContext{
  60617. Object: "DiscountAllocation",
  60618. Field: field,
  60619. IsMethod: false,
  60620. IsResolver: false,
  60621. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  60622. return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
  60623. },
  60624. }
  60625. return fc, nil
  60626. }
  60627. func (ec *executionContext) _DiscountApplicationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *DiscountApplicationConnection) (ret graphql.Marshaler) {
  60628. fc, err := ec.fieldContext_DiscountApplicationConnection_edges(ctx, field)
  60629. if err != nil {
  60630. return graphql.Null
  60631. }
  60632. ctx = graphql.WithFieldContext(ctx, fc)
  60633. defer func() {
  60634. if r := recover(); r != nil {
  60635. ec.Error(ctx, ec.Recover(ctx, r))
  60636. ret = graphql.Null
  60637. }
  60638. }()
  60639. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  60640. ctx = rctx // use context from middleware stack in children
  60641. return obj.Edges, nil
  60642. })
  60643. if err != nil {
  60644. ec.Error(ctx, err)
  60645. return graphql.Null
  60646. }
  60647. if resTmp == nil {
  60648. if !graphql.HasFieldError(ctx, fc) {
  60649. ec.Errorf(ctx, "must not be null")
  60650. }
  60651. return graphql.Null
  60652. }
  60653. res := resTmp.([]*DiscountApplicationEdge)
  60654. fc.Result = res
  60655. return ec.marshalNDiscountApplicationEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplicationEdgeᚄ(ctx, field.Selections, res)
  60656. }
  60657. func (ec *executionContext) fieldContext_DiscountApplicationConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  60658. fc = &graphql.FieldContext{
  60659. Object: "DiscountApplicationConnection",
  60660. Field: field,
  60661. IsMethod: false,
  60662. IsResolver: false,
  60663. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  60664. switch field.Name {
  60665. case "cursor":
  60666. return ec.fieldContext_DiscountApplicationEdge_cursor(ctx, field)
  60667. case "node":
  60668. return ec.fieldContext_DiscountApplicationEdge_node(ctx, field)
  60669. }
  60670. return nil, fmt.Errorf("no field named %q was found under type DiscountApplicationEdge", field.Name)
  60671. },
  60672. }
  60673. return fc, nil
  60674. }
  60675. func (ec *executionContext) _DiscountApplicationConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *DiscountApplicationConnection) (ret graphql.Marshaler) {
  60676. fc, err := ec.fieldContext_DiscountApplicationConnection_nodes(ctx, field)
  60677. if err != nil {
  60678. return graphql.Null
  60679. }
  60680. ctx = graphql.WithFieldContext(ctx, fc)
  60681. defer func() {
  60682. if r := recover(); r != nil {
  60683. ec.Error(ctx, ec.Recover(ctx, r))
  60684. ret = graphql.Null
  60685. }
  60686. }()
  60687. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  60688. ctx = rctx // use context from middleware stack in children
  60689. return obj.Nodes, nil
  60690. })
  60691. if err != nil {
  60692. ec.Error(ctx, err)
  60693. return graphql.Null
  60694. }
  60695. if resTmp == nil {
  60696. if !graphql.HasFieldError(ctx, fc) {
  60697. ec.Errorf(ctx, "must not be null")
  60698. }
  60699. return graphql.Null
  60700. }
  60701. res := resTmp.([]DiscountApplication)
  60702. fc.Result = res
  60703. return ec.marshalNDiscountApplication2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplicationᚄ(ctx, field.Selections, res)
  60704. }
  60705. func (ec *executionContext) fieldContext_DiscountApplicationConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  60706. fc = &graphql.FieldContext{
  60707. Object: "DiscountApplicationConnection",
  60708. Field: field,
  60709. IsMethod: false,
  60710. IsResolver: false,
  60711. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  60712. return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
  60713. },
  60714. }
  60715. return fc, nil
  60716. }
  60717. func (ec *executionContext) _DiscountApplicationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *DiscountApplicationConnection) (ret graphql.Marshaler) {
  60718. fc, err := ec.fieldContext_DiscountApplicationConnection_pageInfo(ctx, field)
  60719. if err != nil {
  60720. return graphql.Null
  60721. }
  60722. ctx = graphql.WithFieldContext(ctx, fc)
  60723. defer func() {
  60724. if r := recover(); r != nil {
  60725. ec.Error(ctx, ec.Recover(ctx, r))
  60726. ret = graphql.Null
  60727. }
  60728. }()
  60729. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  60730. ctx = rctx // use context from middleware stack in children
  60731. return obj.PageInfo, nil
  60732. })
  60733. if err != nil {
  60734. ec.Error(ctx, err)
  60735. return graphql.Null
  60736. }
  60737. if resTmp == nil {
  60738. if !graphql.HasFieldError(ctx, fc) {
  60739. ec.Errorf(ctx, "must not be null")
  60740. }
  60741. return graphql.Null
  60742. }
  60743. res := resTmp.(*PageInfo)
  60744. fc.Result = res
  60745. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  60746. }
  60747. func (ec *executionContext) fieldContext_DiscountApplicationConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  60748. fc = &graphql.FieldContext{
  60749. Object: "DiscountApplicationConnection",
  60750. Field: field,
  60751. IsMethod: false,
  60752. IsResolver: false,
  60753. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  60754. switch field.Name {
  60755. case "endCursor":
  60756. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  60757. case "hasNextPage":
  60758. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  60759. case "hasPreviousPage":
  60760. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  60761. case "startCursor":
  60762. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  60763. }
  60764. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  60765. },
  60766. }
  60767. return fc, nil
  60768. }
  60769. func (ec *executionContext) _DiscountApplicationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *DiscountApplicationEdge) (ret graphql.Marshaler) {
  60770. fc, err := ec.fieldContext_DiscountApplicationEdge_cursor(ctx, field)
  60771. if err != nil {
  60772. return graphql.Null
  60773. }
  60774. ctx = graphql.WithFieldContext(ctx, fc)
  60775. defer func() {
  60776. if r := recover(); r != nil {
  60777. ec.Error(ctx, ec.Recover(ctx, r))
  60778. ret = graphql.Null
  60779. }
  60780. }()
  60781. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  60782. ctx = rctx // use context from middleware stack in children
  60783. return obj.Cursor, nil
  60784. })
  60785. if err != nil {
  60786. ec.Error(ctx, err)
  60787. return graphql.Null
  60788. }
  60789. if resTmp == nil {
  60790. if !graphql.HasFieldError(ctx, fc) {
  60791. ec.Errorf(ctx, "must not be null")
  60792. }
  60793. return graphql.Null
  60794. }
  60795. res := resTmp.(string)
  60796. fc.Result = res
  60797. return ec.marshalNString2string(ctx, field.Selections, res)
  60798. }
  60799. func (ec *executionContext) fieldContext_DiscountApplicationEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  60800. fc = &graphql.FieldContext{
  60801. Object: "DiscountApplicationEdge",
  60802. Field: field,
  60803. IsMethod: false,
  60804. IsResolver: false,
  60805. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  60806. return nil, errors.New("field of type String does not have child fields")
  60807. },
  60808. }
  60809. return fc, nil
  60810. }
  60811. func (ec *executionContext) _DiscountApplicationEdge_node(ctx context.Context, field graphql.CollectedField, obj *DiscountApplicationEdge) (ret graphql.Marshaler) {
  60812. fc, err := ec.fieldContext_DiscountApplicationEdge_node(ctx, field)
  60813. if err != nil {
  60814. return graphql.Null
  60815. }
  60816. ctx = graphql.WithFieldContext(ctx, fc)
  60817. defer func() {
  60818. if r := recover(); r != nil {
  60819. ec.Error(ctx, ec.Recover(ctx, r))
  60820. ret = graphql.Null
  60821. }
  60822. }()
  60823. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  60824. ctx = rctx // use context from middleware stack in children
  60825. return obj.Node, nil
  60826. })
  60827. if err != nil {
  60828. ec.Error(ctx, err)
  60829. return graphql.Null
  60830. }
  60831. if resTmp == nil {
  60832. if !graphql.HasFieldError(ctx, fc) {
  60833. ec.Errorf(ctx, "must not be null")
  60834. }
  60835. return graphql.Null
  60836. }
  60837. res := resTmp.(DiscountApplication)
  60838. fc.Result = res
  60839. return ec.marshalNDiscountApplication2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplication(ctx, field.Selections, res)
  60840. }
  60841. func (ec *executionContext) fieldContext_DiscountApplicationEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  60842. fc = &graphql.FieldContext{
  60843. Object: "DiscountApplicationEdge",
  60844. Field: field,
  60845. IsMethod: false,
  60846. IsResolver: false,
  60847. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  60848. return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
  60849. },
  60850. }
  60851. return fc, nil
  60852. }
  60853. func (ec *executionContext) _DiscountCodeApplication_allocationMethod(ctx context.Context, field graphql.CollectedField, obj *DiscountCodeApplication) (ret graphql.Marshaler) {
  60854. fc, err := ec.fieldContext_DiscountCodeApplication_allocationMethod(ctx, field)
  60855. if err != nil {
  60856. return graphql.Null
  60857. }
  60858. ctx = graphql.WithFieldContext(ctx, fc)
  60859. defer func() {
  60860. if r := recover(); r != nil {
  60861. ec.Error(ctx, ec.Recover(ctx, r))
  60862. ret = graphql.Null
  60863. }
  60864. }()
  60865. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  60866. ctx = rctx // use context from middleware stack in children
  60867. return obj.AllocationMethod, nil
  60868. })
  60869. if err != nil {
  60870. ec.Error(ctx, err)
  60871. return graphql.Null
  60872. }
  60873. if resTmp == nil {
  60874. if !graphql.HasFieldError(ctx, fc) {
  60875. ec.Errorf(ctx, "must not be null")
  60876. }
  60877. return graphql.Null
  60878. }
  60879. res := resTmp.(DiscountApplicationAllocationMethod)
  60880. fc.Result = res
  60881. return ec.marshalNDiscountApplicationAllocationMethod2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplicationAllocationMethod(ctx, field.Selections, res)
  60882. }
  60883. func (ec *executionContext) fieldContext_DiscountCodeApplication_allocationMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  60884. fc = &graphql.FieldContext{
  60885. Object: "DiscountCodeApplication",
  60886. Field: field,
  60887. IsMethod: false,
  60888. IsResolver: false,
  60889. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  60890. return nil, errors.New("field of type DiscountApplicationAllocationMethod does not have child fields")
  60891. },
  60892. }
  60893. return fc, nil
  60894. }
  60895. func (ec *executionContext) _DiscountCodeApplication_code(ctx context.Context, field graphql.CollectedField, obj *DiscountCodeApplication) (ret graphql.Marshaler) {
  60896. fc, err := ec.fieldContext_DiscountCodeApplication_code(ctx, field)
  60897. if err != nil {
  60898. return graphql.Null
  60899. }
  60900. ctx = graphql.WithFieldContext(ctx, fc)
  60901. defer func() {
  60902. if r := recover(); r != nil {
  60903. ec.Error(ctx, ec.Recover(ctx, r))
  60904. ret = graphql.Null
  60905. }
  60906. }()
  60907. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  60908. ctx = rctx // use context from middleware stack in children
  60909. return obj.Code, nil
  60910. })
  60911. if err != nil {
  60912. ec.Error(ctx, err)
  60913. return graphql.Null
  60914. }
  60915. if resTmp == nil {
  60916. if !graphql.HasFieldError(ctx, fc) {
  60917. ec.Errorf(ctx, "must not be null")
  60918. }
  60919. return graphql.Null
  60920. }
  60921. res := resTmp.(string)
  60922. fc.Result = res
  60923. return ec.marshalNString2string(ctx, field.Selections, res)
  60924. }
  60925. func (ec *executionContext) fieldContext_DiscountCodeApplication_code(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  60926. fc = &graphql.FieldContext{
  60927. Object: "DiscountCodeApplication",
  60928. Field: field,
  60929. IsMethod: false,
  60930. IsResolver: false,
  60931. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  60932. return nil, errors.New("field of type String does not have child fields")
  60933. },
  60934. }
  60935. return fc, nil
  60936. }
  60937. func (ec *executionContext) _DiscountCodeApplication_index(ctx context.Context, field graphql.CollectedField, obj *DiscountCodeApplication) (ret graphql.Marshaler) {
  60938. fc, err := ec.fieldContext_DiscountCodeApplication_index(ctx, field)
  60939. if err != nil {
  60940. return graphql.Null
  60941. }
  60942. ctx = graphql.WithFieldContext(ctx, fc)
  60943. defer func() {
  60944. if r := recover(); r != nil {
  60945. ec.Error(ctx, ec.Recover(ctx, r))
  60946. ret = graphql.Null
  60947. }
  60948. }()
  60949. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  60950. ctx = rctx // use context from middleware stack in children
  60951. return obj.Index, nil
  60952. })
  60953. if err != nil {
  60954. ec.Error(ctx, err)
  60955. return graphql.Null
  60956. }
  60957. if resTmp == nil {
  60958. if !graphql.HasFieldError(ctx, fc) {
  60959. ec.Errorf(ctx, "must not be null")
  60960. }
  60961. return graphql.Null
  60962. }
  60963. res := resTmp.(int)
  60964. fc.Result = res
  60965. return ec.marshalNInt2int(ctx, field.Selections, res)
  60966. }
  60967. func (ec *executionContext) fieldContext_DiscountCodeApplication_index(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  60968. fc = &graphql.FieldContext{
  60969. Object: "DiscountCodeApplication",
  60970. Field: field,
  60971. IsMethod: false,
  60972. IsResolver: false,
  60973. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  60974. return nil, errors.New("field of type Int does not have child fields")
  60975. },
  60976. }
  60977. return fc, nil
  60978. }
  60979. func (ec *executionContext) _DiscountCodeApplication_targetSelection(ctx context.Context, field graphql.CollectedField, obj *DiscountCodeApplication) (ret graphql.Marshaler) {
  60980. fc, err := ec.fieldContext_DiscountCodeApplication_targetSelection(ctx, field)
  60981. if err != nil {
  60982. return graphql.Null
  60983. }
  60984. ctx = graphql.WithFieldContext(ctx, fc)
  60985. defer func() {
  60986. if r := recover(); r != nil {
  60987. ec.Error(ctx, ec.Recover(ctx, r))
  60988. ret = graphql.Null
  60989. }
  60990. }()
  60991. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  60992. ctx = rctx // use context from middleware stack in children
  60993. return obj.TargetSelection, nil
  60994. })
  60995. if err != nil {
  60996. ec.Error(ctx, err)
  60997. return graphql.Null
  60998. }
  60999. if resTmp == nil {
  61000. if !graphql.HasFieldError(ctx, fc) {
  61001. ec.Errorf(ctx, "must not be null")
  61002. }
  61003. return graphql.Null
  61004. }
  61005. res := resTmp.(DiscountApplicationTargetSelection)
  61006. fc.Result = res
  61007. return ec.marshalNDiscountApplicationTargetSelection2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplicationTargetSelection(ctx, field.Selections, res)
  61008. }
  61009. func (ec *executionContext) fieldContext_DiscountCodeApplication_targetSelection(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  61010. fc = &graphql.FieldContext{
  61011. Object: "DiscountCodeApplication",
  61012. Field: field,
  61013. IsMethod: false,
  61014. IsResolver: false,
  61015. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  61016. return nil, errors.New("field of type DiscountApplicationTargetSelection does not have child fields")
  61017. },
  61018. }
  61019. return fc, nil
  61020. }
  61021. func (ec *executionContext) _DiscountCodeApplication_targetType(ctx context.Context, field graphql.CollectedField, obj *DiscountCodeApplication) (ret graphql.Marshaler) {
  61022. fc, err := ec.fieldContext_DiscountCodeApplication_targetType(ctx, field)
  61023. if err != nil {
  61024. return graphql.Null
  61025. }
  61026. ctx = graphql.WithFieldContext(ctx, fc)
  61027. defer func() {
  61028. if r := recover(); r != nil {
  61029. ec.Error(ctx, ec.Recover(ctx, r))
  61030. ret = graphql.Null
  61031. }
  61032. }()
  61033. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  61034. ctx = rctx // use context from middleware stack in children
  61035. return obj.TargetType, nil
  61036. })
  61037. if err != nil {
  61038. ec.Error(ctx, err)
  61039. return graphql.Null
  61040. }
  61041. if resTmp == nil {
  61042. if !graphql.HasFieldError(ctx, fc) {
  61043. ec.Errorf(ctx, "must not be null")
  61044. }
  61045. return graphql.Null
  61046. }
  61047. res := resTmp.(DiscountApplicationTargetType)
  61048. fc.Result = res
  61049. return ec.marshalNDiscountApplicationTargetType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplicationTargetType(ctx, field.Selections, res)
  61050. }
  61051. func (ec *executionContext) fieldContext_DiscountCodeApplication_targetType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  61052. fc = &graphql.FieldContext{
  61053. Object: "DiscountCodeApplication",
  61054. Field: field,
  61055. IsMethod: false,
  61056. IsResolver: false,
  61057. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  61058. return nil, errors.New("field of type DiscountApplicationTargetType does not have child fields")
  61059. },
  61060. }
  61061. return fc, nil
  61062. }
  61063. func (ec *executionContext) _DiscountCodeApplication_value(ctx context.Context, field graphql.CollectedField, obj *DiscountCodeApplication) (ret graphql.Marshaler) {
  61064. fc, err := ec.fieldContext_DiscountCodeApplication_value(ctx, field)
  61065. if err != nil {
  61066. return graphql.Null
  61067. }
  61068. ctx = graphql.WithFieldContext(ctx, fc)
  61069. defer func() {
  61070. if r := recover(); r != nil {
  61071. ec.Error(ctx, ec.Recover(ctx, r))
  61072. ret = graphql.Null
  61073. }
  61074. }()
  61075. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  61076. ctx = rctx // use context from middleware stack in children
  61077. return obj.Value, nil
  61078. })
  61079. if err != nil {
  61080. ec.Error(ctx, err)
  61081. return graphql.Null
  61082. }
  61083. if resTmp == nil {
  61084. if !graphql.HasFieldError(ctx, fc) {
  61085. ec.Errorf(ctx, "must not be null")
  61086. }
  61087. return graphql.Null
  61088. }
  61089. res := resTmp.(PricingValue)
  61090. fc.Result = res
  61091. return ec.marshalNPricingValue2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPricingValue(ctx, field.Selections, res)
  61092. }
  61093. func (ec *executionContext) fieldContext_DiscountCodeApplication_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  61094. fc = &graphql.FieldContext{
  61095. Object: "DiscountCodeApplication",
  61096. Field: field,
  61097. IsMethod: false,
  61098. IsResolver: false,
  61099. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  61100. return nil, errors.New("field of type PricingValue does not have child fields")
  61101. },
  61102. }
  61103. return fc, nil
  61104. }
  61105. func (ec *executionContext) _Domain_host(ctx context.Context, field graphql.CollectedField, obj *Domain) (ret graphql.Marshaler) {
  61106. fc, err := ec.fieldContext_Domain_host(ctx, field)
  61107. if err != nil {
  61108. return graphql.Null
  61109. }
  61110. ctx = graphql.WithFieldContext(ctx, fc)
  61111. defer func() {
  61112. if r := recover(); r != nil {
  61113. ec.Error(ctx, ec.Recover(ctx, r))
  61114. ret = graphql.Null
  61115. }
  61116. }()
  61117. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  61118. ctx = rctx // use context from middleware stack in children
  61119. return obj.Host, nil
  61120. })
  61121. if err != nil {
  61122. ec.Error(ctx, err)
  61123. return graphql.Null
  61124. }
  61125. if resTmp == nil {
  61126. if !graphql.HasFieldError(ctx, fc) {
  61127. ec.Errorf(ctx, "must not be null")
  61128. }
  61129. return graphql.Null
  61130. }
  61131. res := resTmp.(string)
  61132. fc.Result = res
  61133. return ec.marshalNString2string(ctx, field.Selections, res)
  61134. }
  61135. func (ec *executionContext) fieldContext_Domain_host(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  61136. fc = &graphql.FieldContext{
  61137. Object: "Domain",
  61138. Field: field,
  61139. IsMethod: false,
  61140. IsResolver: false,
  61141. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  61142. return nil, errors.New("field of type String does not have child fields")
  61143. },
  61144. }
  61145. return fc, nil
  61146. }
  61147. func (ec *executionContext) _Domain_id(ctx context.Context, field graphql.CollectedField, obj *Domain) (ret graphql.Marshaler) {
  61148. fc, err := ec.fieldContext_Domain_id(ctx, field)
  61149. if err != nil {
  61150. return graphql.Null
  61151. }
  61152. ctx = graphql.WithFieldContext(ctx, fc)
  61153. defer func() {
  61154. if r := recover(); r != nil {
  61155. ec.Error(ctx, ec.Recover(ctx, r))
  61156. ret = graphql.Null
  61157. }
  61158. }()
  61159. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  61160. ctx = rctx // use context from middleware stack in children
  61161. return obj.ID, nil
  61162. })
  61163. if err != nil {
  61164. ec.Error(ctx, err)
  61165. return graphql.Null
  61166. }
  61167. if resTmp == nil {
  61168. if !graphql.HasFieldError(ctx, fc) {
  61169. ec.Errorf(ctx, "must not be null")
  61170. }
  61171. return graphql.Null
  61172. }
  61173. res := resTmp.(string)
  61174. fc.Result = res
  61175. return ec.marshalNID2string(ctx, field.Selections, res)
  61176. }
  61177. func (ec *executionContext) fieldContext_Domain_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  61178. fc = &graphql.FieldContext{
  61179. Object: "Domain",
  61180. Field: field,
  61181. IsMethod: false,
  61182. IsResolver: false,
  61183. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  61184. return nil, errors.New("field of type ID does not have child fields")
  61185. },
  61186. }
  61187. return fc, nil
  61188. }
  61189. func (ec *executionContext) _Domain_localization(ctx context.Context, field graphql.CollectedField, obj *Domain) (ret graphql.Marshaler) {
  61190. fc, err := ec.fieldContext_Domain_localization(ctx, field)
  61191. if err != nil {
  61192. return graphql.Null
  61193. }
  61194. ctx = graphql.WithFieldContext(ctx, fc)
  61195. defer func() {
  61196. if r := recover(); r != nil {
  61197. ec.Error(ctx, ec.Recover(ctx, r))
  61198. ret = graphql.Null
  61199. }
  61200. }()
  61201. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  61202. ctx = rctx // use context from middleware stack in children
  61203. return obj.Localization, nil
  61204. })
  61205. if err != nil {
  61206. ec.Error(ctx, err)
  61207. return graphql.Null
  61208. }
  61209. if resTmp == nil {
  61210. return graphql.Null
  61211. }
  61212. res := resTmp.(*DomainLocalization)
  61213. fc.Result = res
  61214. return ec.marshalODomainLocalization2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDomainLocalization(ctx, field.Selections, res)
  61215. }
  61216. func (ec *executionContext) fieldContext_Domain_localization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  61217. fc = &graphql.FieldContext{
  61218. Object: "Domain",
  61219. Field: field,
  61220. IsMethod: false,
  61221. IsResolver: false,
  61222. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  61223. switch field.Name {
  61224. case "alternateLocales":
  61225. return ec.fieldContext_DomainLocalization_alternateLocales(ctx, field)
  61226. case "country":
  61227. return ec.fieldContext_DomainLocalization_country(ctx, field)
  61228. case "defaultLocale":
  61229. return ec.fieldContext_DomainLocalization_defaultLocale(ctx, field)
  61230. }
  61231. return nil, fmt.Errorf("no field named %q was found under type DomainLocalization", field.Name)
  61232. },
  61233. }
  61234. return fc, nil
  61235. }
  61236. func (ec *executionContext) _Domain_marketWebPresence(ctx context.Context, field graphql.CollectedField, obj *Domain) (ret graphql.Marshaler) {
  61237. fc, err := ec.fieldContext_Domain_marketWebPresence(ctx, field)
  61238. if err != nil {
  61239. return graphql.Null
  61240. }
  61241. ctx = graphql.WithFieldContext(ctx, fc)
  61242. defer func() {
  61243. if r := recover(); r != nil {
  61244. ec.Error(ctx, ec.Recover(ctx, r))
  61245. ret = graphql.Null
  61246. }
  61247. }()
  61248. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  61249. ctx = rctx // use context from middleware stack in children
  61250. return obj.MarketWebPresence, nil
  61251. })
  61252. if err != nil {
  61253. ec.Error(ctx, err)
  61254. return graphql.Null
  61255. }
  61256. if resTmp == nil {
  61257. return graphql.Null
  61258. }
  61259. res := resTmp.(*MarketWebPresence)
  61260. fc.Result = res
  61261. return ec.marshalOMarketWebPresence2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketWebPresence(ctx, field.Selections, res)
  61262. }
  61263. func (ec *executionContext) fieldContext_Domain_marketWebPresence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  61264. fc = &graphql.FieldContext{
  61265. Object: "Domain",
  61266. Field: field,
  61267. IsMethod: false,
  61268. IsResolver: false,
  61269. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  61270. switch field.Name {
  61271. case "alternateLocales":
  61272. return ec.fieldContext_MarketWebPresence_alternateLocales(ctx, field)
  61273. case "defaultLocale":
  61274. return ec.fieldContext_MarketWebPresence_defaultLocale(ctx, field)
  61275. case "domain":
  61276. return ec.fieldContext_MarketWebPresence_domain(ctx, field)
  61277. case "id":
  61278. return ec.fieldContext_MarketWebPresence_id(ctx, field)
  61279. case "market":
  61280. return ec.fieldContext_MarketWebPresence_market(ctx, field)
  61281. case "rootUrls":
  61282. return ec.fieldContext_MarketWebPresence_rootUrls(ctx, field)
  61283. case "subfolderSuffix":
  61284. return ec.fieldContext_MarketWebPresence_subfolderSuffix(ctx, field)
  61285. }
  61286. return nil, fmt.Errorf("no field named %q was found under type MarketWebPresence", field.Name)
  61287. },
  61288. }
  61289. return fc, nil
  61290. }
  61291. func (ec *executionContext) _Domain_sslEnabled(ctx context.Context, field graphql.CollectedField, obj *Domain) (ret graphql.Marshaler) {
  61292. fc, err := ec.fieldContext_Domain_sslEnabled(ctx, field)
  61293. if err != nil {
  61294. return graphql.Null
  61295. }
  61296. ctx = graphql.WithFieldContext(ctx, fc)
  61297. defer func() {
  61298. if r := recover(); r != nil {
  61299. ec.Error(ctx, ec.Recover(ctx, r))
  61300. ret = graphql.Null
  61301. }
  61302. }()
  61303. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  61304. ctx = rctx // use context from middleware stack in children
  61305. return obj.SslEnabled, nil
  61306. })
  61307. if err != nil {
  61308. ec.Error(ctx, err)
  61309. return graphql.Null
  61310. }
  61311. if resTmp == nil {
  61312. if !graphql.HasFieldError(ctx, fc) {
  61313. ec.Errorf(ctx, "must not be null")
  61314. }
  61315. return graphql.Null
  61316. }
  61317. res := resTmp.(bool)
  61318. fc.Result = res
  61319. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  61320. }
  61321. func (ec *executionContext) fieldContext_Domain_sslEnabled(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  61322. fc = &graphql.FieldContext{
  61323. Object: "Domain",
  61324. Field: field,
  61325. IsMethod: false,
  61326. IsResolver: false,
  61327. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  61328. return nil, errors.New("field of type Boolean does not have child fields")
  61329. },
  61330. }
  61331. return fc, nil
  61332. }
  61333. func (ec *executionContext) _Domain_url(ctx context.Context, field graphql.CollectedField, obj *Domain) (ret graphql.Marshaler) {
  61334. fc, err := ec.fieldContext_Domain_url(ctx, field)
  61335. if err != nil {
  61336. return graphql.Null
  61337. }
  61338. ctx = graphql.WithFieldContext(ctx, fc)
  61339. defer func() {
  61340. if r := recover(); r != nil {
  61341. ec.Error(ctx, ec.Recover(ctx, r))
  61342. ret = graphql.Null
  61343. }
  61344. }()
  61345. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  61346. ctx = rctx // use context from middleware stack in children
  61347. return obj.URL, nil
  61348. })
  61349. if err != nil {
  61350. ec.Error(ctx, err)
  61351. return graphql.Null
  61352. }
  61353. if resTmp == nil {
  61354. if !graphql.HasFieldError(ctx, fc) {
  61355. ec.Errorf(ctx, "must not be null")
  61356. }
  61357. return graphql.Null
  61358. }
  61359. res := resTmp.(string)
  61360. fc.Result = res
  61361. return ec.marshalNURL2string(ctx, field.Selections, res)
  61362. }
  61363. func (ec *executionContext) fieldContext_Domain_url(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  61364. fc = &graphql.FieldContext{
  61365. Object: "Domain",
  61366. Field: field,
  61367. IsMethod: false,
  61368. IsResolver: false,
  61369. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  61370. return nil, errors.New("field of type URL does not have child fields")
  61371. },
  61372. }
  61373. return fc, nil
  61374. }
  61375. func (ec *executionContext) _DomainLocalization_alternateLocales(ctx context.Context, field graphql.CollectedField, obj *DomainLocalization) (ret graphql.Marshaler) {
  61376. fc, err := ec.fieldContext_DomainLocalization_alternateLocales(ctx, field)
  61377. if err != nil {
  61378. return graphql.Null
  61379. }
  61380. ctx = graphql.WithFieldContext(ctx, fc)
  61381. defer func() {
  61382. if r := recover(); r != nil {
  61383. ec.Error(ctx, ec.Recover(ctx, r))
  61384. ret = graphql.Null
  61385. }
  61386. }()
  61387. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  61388. ctx = rctx // use context from middleware stack in children
  61389. return obj.AlternateLocales, nil
  61390. })
  61391. if err != nil {
  61392. ec.Error(ctx, err)
  61393. return graphql.Null
  61394. }
  61395. if resTmp == nil {
  61396. if !graphql.HasFieldError(ctx, fc) {
  61397. ec.Errorf(ctx, "must not be null")
  61398. }
  61399. return graphql.Null
  61400. }
  61401. res := resTmp.([]string)
  61402. fc.Result = res
  61403. return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
  61404. }
  61405. func (ec *executionContext) fieldContext_DomainLocalization_alternateLocales(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  61406. fc = &graphql.FieldContext{
  61407. Object: "DomainLocalization",
  61408. Field: field,
  61409. IsMethod: false,
  61410. IsResolver: false,
  61411. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  61412. return nil, errors.New("field of type String does not have child fields")
  61413. },
  61414. }
  61415. return fc, nil
  61416. }
  61417. func (ec *executionContext) _DomainLocalization_country(ctx context.Context, field graphql.CollectedField, obj *DomainLocalization) (ret graphql.Marshaler) {
  61418. fc, err := ec.fieldContext_DomainLocalization_country(ctx, field)
  61419. if err != nil {
  61420. return graphql.Null
  61421. }
  61422. ctx = graphql.WithFieldContext(ctx, fc)
  61423. defer func() {
  61424. if r := recover(); r != nil {
  61425. ec.Error(ctx, ec.Recover(ctx, r))
  61426. ret = graphql.Null
  61427. }
  61428. }()
  61429. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  61430. ctx = rctx // use context from middleware stack in children
  61431. return obj.Country, nil
  61432. })
  61433. if err != nil {
  61434. ec.Error(ctx, err)
  61435. return graphql.Null
  61436. }
  61437. if resTmp == nil {
  61438. return graphql.Null
  61439. }
  61440. res := resTmp.(*string)
  61441. fc.Result = res
  61442. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  61443. }
  61444. func (ec *executionContext) fieldContext_DomainLocalization_country(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  61445. fc = &graphql.FieldContext{
  61446. Object: "DomainLocalization",
  61447. Field: field,
  61448. IsMethod: false,
  61449. IsResolver: false,
  61450. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  61451. return nil, errors.New("field of type String does not have child fields")
  61452. },
  61453. }
  61454. return fc, nil
  61455. }
  61456. func (ec *executionContext) _DomainLocalization_defaultLocale(ctx context.Context, field graphql.CollectedField, obj *DomainLocalization) (ret graphql.Marshaler) {
  61457. fc, err := ec.fieldContext_DomainLocalization_defaultLocale(ctx, field)
  61458. if err != nil {
  61459. return graphql.Null
  61460. }
  61461. ctx = graphql.WithFieldContext(ctx, fc)
  61462. defer func() {
  61463. if r := recover(); r != nil {
  61464. ec.Error(ctx, ec.Recover(ctx, r))
  61465. ret = graphql.Null
  61466. }
  61467. }()
  61468. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  61469. ctx = rctx // use context from middleware stack in children
  61470. return obj.DefaultLocale, nil
  61471. })
  61472. if err != nil {
  61473. ec.Error(ctx, err)
  61474. return graphql.Null
  61475. }
  61476. if resTmp == nil {
  61477. if !graphql.HasFieldError(ctx, fc) {
  61478. ec.Errorf(ctx, "must not be null")
  61479. }
  61480. return graphql.Null
  61481. }
  61482. res := resTmp.(string)
  61483. fc.Result = res
  61484. return ec.marshalNString2string(ctx, field.Selections, res)
  61485. }
  61486. func (ec *executionContext) fieldContext_DomainLocalization_defaultLocale(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  61487. fc = &graphql.FieldContext{
  61488. Object: "DomainLocalization",
  61489. Field: field,
  61490. IsMethod: false,
  61491. IsResolver: false,
  61492. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  61493. return nil, errors.New("field of type String does not have child fields")
  61494. },
  61495. }
  61496. return fc, nil
  61497. }
  61498. func (ec *executionContext) _DraftOrder_appliedDiscount(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  61499. fc, err := ec.fieldContext_DraftOrder_appliedDiscount(ctx, field)
  61500. if err != nil {
  61501. return graphql.Null
  61502. }
  61503. ctx = graphql.WithFieldContext(ctx, fc)
  61504. defer func() {
  61505. if r := recover(); r != nil {
  61506. ec.Error(ctx, ec.Recover(ctx, r))
  61507. ret = graphql.Null
  61508. }
  61509. }()
  61510. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  61511. ctx = rctx // use context from middleware stack in children
  61512. return obj.AppliedDiscount, nil
  61513. })
  61514. if err != nil {
  61515. ec.Error(ctx, err)
  61516. return graphql.Null
  61517. }
  61518. if resTmp == nil {
  61519. return graphql.Null
  61520. }
  61521. res := resTmp.(*DraftOrderAppliedDiscount)
  61522. fc.Result = res
  61523. return ec.marshalODraftOrderAppliedDiscount2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderAppliedDiscount(ctx, field.Selections, res)
  61524. }
  61525. func (ec *executionContext) fieldContext_DraftOrder_appliedDiscount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  61526. fc = &graphql.FieldContext{
  61527. Object: "DraftOrder",
  61528. Field: field,
  61529. IsMethod: false,
  61530. IsResolver: false,
  61531. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  61532. switch field.Name {
  61533. case "amountSet":
  61534. return ec.fieldContext_DraftOrderAppliedDiscount_amountSet(ctx, field)
  61535. case "amountV2":
  61536. return ec.fieldContext_DraftOrderAppliedDiscount_amountV2(ctx, field)
  61537. case "description":
  61538. return ec.fieldContext_DraftOrderAppliedDiscount_description(ctx, field)
  61539. case "title":
  61540. return ec.fieldContext_DraftOrderAppliedDiscount_title(ctx, field)
  61541. case "value":
  61542. return ec.fieldContext_DraftOrderAppliedDiscount_value(ctx, field)
  61543. case "valueType":
  61544. return ec.fieldContext_DraftOrderAppliedDiscount_valueType(ctx, field)
  61545. }
  61546. return nil, fmt.Errorf("no field named %q was found under type DraftOrderAppliedDiscount", field.Name)
  61547. },
  61548. }
  61549. return fc, nil
  61550. }
  61551. func (ec *executionContext) _DraftOrder_billingAddress(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  61552. fc, err := ec.fieldContext_DraftOrder_billingAddress(ctx, field)
  61553. if err != nil {
  61554. return graphql.Null
  61555. }
  61556. ctx = graphql.WithFieldContext(ctx, fc)
  61557. defer func() {
  61558. if r := recover(); r != nil {
  61559. ec.Error(ctx, ec.Recover(ctx, r))
  61560. ret = graphql.Null
  61561. }
  61562. }()
  61563. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  61564. ctx = rctx // use context from middleware stack in children
  61565. return obj.BillingAddress, nil
  61566. })
  61567. if err != nil {
  61568. ec.Error(ctx, err)
  61569. return graphql.Null
  61570. }
  61571. if resTmp == nil {
  61572. return graphql.Null
  61573. }
  61574. res := resTmp.(*MailingAddress)
  61575. fc.Result = res
  61576. return ec.marshalOMailingAddress2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMailingAddress(ctx, field.Selections, res)
  61577. }
  61578. func (ec *executionContext) fieldContext_DraftOrder_billingAddress(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  61579. fc = &graphql.FieldContext{
  61580. Object: "DraftOrder",
  61581. Field: field,
  61582. IsMethod: false,
  61583. IsResolver: false,
  61584. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  61585. switch field.Name {
  61586. case "address1":
  61587. return ec.fieldContext_MailingAddress_address1(ctx, field)
  61588. case "address2":
  61589. return ec.fieldContext_MailingAddress_address2(ctx, field)
  61590. case "city":
  61591. return ec.fieldContext_MailingAddress_city(ctx, field)
  61592. case "company":
  61593. return ec.fieldContext_MailingAddress_company(ctx, field)
  61594. case "coordinatesValidated":
  61595. return ec.fieldContext_MailingAddress_coordinatesValidated(ctx, field)
  61596. case "country":
  61597. return ec.fieldContext_MailingAddress_country(ctx, field)
  61598. case "countryCodeV2":
  61599. return ec.fieldContext_MailingAddress_countryCodeV2(ctx, field)
  61600. case "firstName":
  61601. return ec.fieldContext_MailingAddress_firstName(ctx, field)
  61602. case "formattedArea":
  61603. return ec.fieldContext_MailingAddress_formattedArea(ctx, field)
  61604. case "id":
  61605. return ec.fieldContext_MailingAddress_id(ctx, field)
  61606. case "lastName":
  61607. return ec.fieldContext_MailingAddress_lastName(ctx, field)
  61608. case "latitude":
  61609. return ec.fieldContext_MailingAddress_latitude(ctx, field)
  61610. case "longitude":
  61611. return ec.fieldContext_MailingAddress_longitude(ctx, field)
  61612. case "name":
  61613. return ec.fieldContext_MailingAddress_name(ctx, field)
  61614. case "phone":
  61615. return ec.fieldContext_MailingAddress_phone(ctx, field)
  61616. case "province":
  61617. return ec.fieldContext_MailingAddress_province(ctx, field)
  61618. case "provinceCode":
  61619. return ec.fieldContext_MailingAddress_provinceCode(ctx, field)
  61620. case "zip":
  61621. return ec.fieldContext_MailingAddress_zip(ctx, field)
  61622. }
  61623. return nil, fmt.Errorf("no field named %q was found under type MailingAddress", field.Name)
  61624. },
  61625. }
  61626. return fc, nil
  61627. }
  61628. func (ec *executionContext) _DraftOrder_billingAddressMatchesShippingAddress(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  61629. fc, err := ec.fieldContext_DraftOrder_billingAddressMatchesShippingAddress(ctx, field)
  61630. if err != nil {
  61631. return graphql.Null
  61632. }
  61633. ctx = graphql.WithFieldContext(ctx, fc)
  61634. defer func() {
  61635. if r := recover(); r != nil {
  61636. ec.Error(ctx, ec.Recover(ctx, r))
  61637. ret = graphql.Null
  61638. }
  61639. }()
  61640. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  61641. ctx = rctx // use context from middleware stack in children
  61642. return obj.BillingAddressMatchesShippingAddress, nil
  61643. })
  61644. if err != nil {
  61645. ec.Error(ctx, err)
  61646. return graphql.Null
  61647. }
  61648. if resTmp == nil {
  61649. if !graphql.HasFieldError(ctx, fc) {
  61650. ec.Errorf(ctx, "must not be null")
  61651. }
  61652. return graphql.Null
  61653. }
  61654. res := resTmp.(bool)
  61655. fc.Result = res
  61656. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  61657. }
  61658. func (ec *executionContext) fieldContext_DraftOrder_billingAddressMatchesShippingAddress(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  61659. fc = &graphql.FieldContext{
  61660. Object: "DraftOrder",
  61661. Field: field,
  61662. IsMethod: false,
  61663. IsResolver: false,
  61664. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  61665. return nil, errors.New("field of type Boolean does not have child fields")
  61666. },
  61667. }
  61668. return fc, nil
  61669. }
  61670. func (ec *executionContext) _DraftOrder_completedAt(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  61671. fc, err := ec.fieldContext_DraftOrder_completedAt(ctx, field)
  61672. if err != nil {
  61673. return graphql.Null
  61674. }
  61675. ctx = graphql.WithFieldContext(ctx, fc)
  61676. defer func() {
  61677. if r := recover(); r != nil {
  61678. ec.Error(ctx, ec.Recover(ctx, r))
  61679. ret = graphql.Null
  61680. }
  61681. }()
  61682. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  61683. ctx = rctx // use context from middleware stack in children
  61684. return obj.CompletedAt, nil
  61685. })
  61686. if err != nil {
  61687. ec.Error(ctx, err)
  61688. return graphql.Null
  61689. }
  61690. if resTmp == nil {
  61691. return graphql.Null
  61692. }
  61693. res := resTmp.(*string)
  61694. fc.Result = res
  61695. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  61696. }
  61697. func (ec *executionContext) fieldContext_DraftOrder_completedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  61698. fc = &graphql.FieldContext{
  61699. Object: "DraftOrder",
  61700. Field: field,
  61701. IsMethod: false,
  61702. IsResolver: false,
  61703. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  61704. return nil, errors.New("field of type DateTime does not have child fields")
  61705. },
  61706. }
  61707. return fc, nil
  61708. }
  61709. func (ec *executionContext) _DraftOrder_createdAt(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  61710. fc, err := ec.fieldContext_DraftOrder_createdAt(ctx, field)
  61711. if err != nil {
  61712. return graphql.Null
  61713. }
  61714. ctx = graphql.WithFieldContext(ctx, fc)
  61715. defer func() {
  61716. if r := recover(); r != nil {
  61717. ec.Error(ctx, ec.Recover(ctx, r))
  61718. ret = graphql.Null
  61719. }
  61720. }()
  61721. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  61722. ctx = rctx // use context from middleware stack in children
  61723. return obj.CreatedAt, nil
  61724. })
  61725. if err != nil {
  61726. ec.Error(ctx, err)
  61727. return graphql.Null
  61728. }
  61729. if resTmp == nil {
  61730. if !graphql.HasFieldError(ctx, fc) {
  61731. ec.Errorf(ctx, "must not be null")
  61732. }
  61733. return graphql.Null
  61734. }
  61735. res := resTmp.(string)
  61736. fc.Result = res
  61737. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  61738. }
  61739. func (ec *executionContext) fieldContext_DraftOrder_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  61740. fc = &graphql.FieldContext{
  61741. Object: "DraftOrder",
  61742. Field: field,
  61743. IsMethod: false,
  61744. IsResolver: false,
  61745. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  61746. return nil, errors.New("field of type DateTime does not have child fields")
  61747. },
  61748. }
  61749. return fc, nil
  61750. }
  61751. func (ec *executionContext) _DraftOrder_currencyCode(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  61752. fc, err := ec.fieldContext_DraftOrder_currencyCode(ctx, field)
  61753. if err != nil {
  61754. return graphql.Null
  61755. }
  61756. ctx = graphql.WithFieldContext(ctx, fc)
  61757. defer func() {
  61758. if r := recover(); r != nil {
  61759. ec.Error(ctx, ec.Recover(ctx, r))
  61760. ret = graphql.Null
  61761. }
  61762. }()
  61763. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  61764. ctx = rctx // use context from middleware stack in children
  61765. return obj.CurrencyCode, nil
  61766. })
  61767. if err != nil {
  61768. ec.Error(ctx, err)
  61769. return graphql.Null
  61770. }
  61771. if resTmp == nil {
  61772. if !graphql.HasFieldError(ctx, fc) {
  61773. ec.Errorf(ctx, "must not be null")
  61774. }
  61775. return graphql.Null
  61776. }
  61777. res := resTmp.(CurrencyCode)
  61778. fc.Result = res
  61779. return ec.marshalNCurrencyCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencyCode(ctx, field.Selections, res)
  61780. }
  61781. func (ec *executionContext) fieldContext_DraftOrder_currencyCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  61782. fc = &graphql.FieldContext{
  61783. Object: "DraftOrder",
  61784. Field: field,
  61785. IsMethod: false,
  61786. IsResolver: false,
  61787. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  61788. return nil, errors.New("field of type CurrencyCode does not have child fields")
  61789. },
  61790. }
  61791. return fc, nil
  61792. }
  61793. func (ec *executionContext) _DraftOrder_customAttributes(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  61794. fc, err := ec.fieldContext_DraftOrder_customAttributes(ctx, field)
  61795. if err != nil {
  61796. return graphql.Null
  61797. }
  61798. ctx = graphql.WithFieldContext(ctx, fc)
  61799. defer func() {
  61800. if r := recover(); r != nil {
  61801. ec.Error(ctx, ec.Recover(ctx, r))
  61802. ret = graphql.Null
  61803. }
  61804. }()
  61805. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  61806. ctx = rctx // use context from middleware stack in children
  61807. return obj.CustomAttributes, nil
  61808. })
  61809. if err != nil {
  61810. ec.Error(ctx, err)
  61811. return graphql.Null
  61812. }
  61813. if resTmp == nil {
  61814. if !graphql.HasFieldError(ctx, fc) {
  61815. ec.Errorf(ctx, "must not be null")
  61816. }
  61817. return graphql.Null
  61818. }
  61819. res := resTmp.([]*Attribute)
  61820. fc.Result = res
  61821. return ec.marshalNAttribute2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAttributeᚄ(ctx, field.Selections, res)
  61822. }
  61823. func (ec *executionContext) fieldContext_DraftOrder_customAttributes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  61824. fc = &graphql.FieldContext{
  61825. Object: "DraftOrder",
  61826. Field: field,
  61827. IsMethod: false,
  61828. IsResolver: false,
  61829. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  61830. switch field.Name {
  61831. case "key":
  61832. return ec.fieldContext_Attribute_key(ctx, field)
  61833. case "value":
  61834. return ec.fieldContext_Attribute_value(ctx, field)
  61835. }
  61836. return nil, fmt.Errorf("no field named %q was found under type Attribute", field.Name)
  61837. },
  61838. }
  61839. return fc, nil
  61840. }
  61841. func (ec *executionContext) _DraftOrder_customer(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  61842. fc, err := ec.fieldContext_DraftOrder_customer(ctx, field)
  61843. if err != nil {
  61844. return graphql.Null
  61845. }
  61846. ctx = graphql.WithFieldContext(ctx, fc)
  61847. defer func() {
  61848. if r := recover(); r != nil {
  61849. ec.Error(ctx, ec.Recover(ctx, r))
  61850. ret = graphql.Null
  61851. }
  61852. }()
  61853. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  61854. ctx = rctx // use context from middleware stack in children
  61855. return obj.Customer, nil
  61856. })
  61857. if err != nil {
  61858. ec.Error(ctx, err)
  61859. return graphql.Null
  61860. }
  61861. if resTmp == nil {
  61862. return graphql.Null
  61863. }
  61864. res := resTmp.(*Customer)
  61865. fc.Result = res
  61866. return ec.marshalOCustomer2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomer(ctx, field.Selections, res)
  61867. }
  61868. func (ec *executionContext) fieldContext_DraftOrder_customer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  61869. fc = &graphql.FieldContext{
  61870. Object: "DraftOrder",
  61871. Field: field,
  61872. IsMethod: false,
  61873. IsResolver: false,
  61874. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  61875. switch field.Name {
  61876. case "addresses":
  61877. return ec.fieldContext_Customer_addresses(ctx, field)
  61878. case "amountSpent":
  61879. return ec.fieldContext_Customer_amountSpent(ctx, field)
  61880. case "averageOrderAmountV2":
  61881. return ec.fieldContext_Customer_averageOrderAmountV2(ctx, field)
  61882. case "canDelete":
  61883. return ec.fieldContext_Customer_canDelete(ctx, field)
  61884. case "companyContactProfiles":
  61885. return ec.fieldContext_Customer_companyContactProfiles(ctx, field)
  61886. case "createdAt":
  61887. return ec.fieldContext_Customer_createdAt(ctx, field)
  61888. case "defaultAddress":
  61889. return ec.fieldContext_Customer_defaultAddress(ctx, field)
  61890. case "displayName":
  61891. return ec.fieldContext_Customer_displayName(ctx, field)
  61892. case "email":
  61893. return ec.fieldContext_Customer_email(ctx, field)
  61894. case "emailMarketingConsent":
  61895. return ec.fieldContext_Customer_emailMarketingConsent(ctx, field)
  61896. case "events":
  61897. return ec.fieldContext_Customer_events(ctx, field)
  61898. case "firstName":
  61899. return ec.fieldContext_Customer_firstName(ctx, field)
  61900. case "hasTimelineComment":
  61901. return ec.fieldContext_Customer_hasTimelineComment(ctx, field)
  61902. case "id":
  61903. return ec.fieldContext_Customer_id(ctx, field)
  61904. case "image":
  61905. return ec.fieldContext_Customer_image(ctx, field)
  61906. case "lastName":
  61907. return ec.fieldContext_Customer_lastName(ctx, field)
  61908. case "lastOrder":
  61909. return ec.fieldContext_Customer_lastOrder(ctx, field)
  61910. case "legacyResourceId":
  61911. return ec.fieldContext_Customer_legacyResourceId(ctx, field)
  61912. case "lifetimeDuration":
  61913. return ec.fieldContext_Customer_lifetimeDuration(ctx, field)
  61914. case "locale":
  61915. return ec.fieldContext_Customer_locale(ctx, field)
  61916. case "market":
  61917. return ec.fieldContext_Customer_market(ctx, field)
  61918. case "metafield":
  61919. return ec.fieldContext_Customer_metafield(ctx, field)
  61920. case "metafieldDefinitions":
  61921. return ec.fieldContext_Customer_metafieldDefinitions(ctx, field)
  61922. case "metafields":
  61923. return ec.fieldContext_Customer_metafields(ctx, field)
  61924. case "multipassIdentifier":
  61925. return ec.fieldContext_Customer_multipassIdentifier(ctx, field)
  61926. case "note":
  61927. return ec.fieldContext_Customer_note(ctx, field)
  61928. case "numberOfOrders":
  61929. return ec.fieldContext_Customer_numberOfOrders(ctx, field)
  61930. case "orders":
  61931. return ec.fieldContext_Customer_orders(ctx, field)
  61932. case "paymentMethods":
  61933. return ec.fieldContext_Customer_paymentMethods(ctx, field)
  61934. case "phone":
  61935. return ec.fieldContext_Customer_phone(ctx, field)
  61936. case "privateMetafield":
  61937. return ec.fieldContext_Customer_privateMetafield(ctx, field)
  61938. case "privateMetafields":
  61939. return ec.fieldContext_Customer_privateMetafields(ctx, field)
  61940. case "productSubscriberStatus":
  61941. return ec.fieldContext_Customer_productSubscriberStatus(ctx, field)
  61942. case "smsMarketingConsent":
  61943. return ec.fieldContext_Customer_smsMarketingConsent(ctx, field)
  61944. case "state":
  61945. return ec.fieldContext_Customer_state(ctx, field)
  61946. case "statistics":
  61947. return ec.fieldContext_Customer_statistics(ctx, field)
  61948. case "subscriptionContracts":
  61949. return ec.fieldContext_Customer_subscriptionContracts(ctx, field)
  61950. case "tags":
  61951. return ec.fieldContext_Customer_tags(ctx, field)
  61952. case "taxExempt":
  61953. return ec.fieldContext_Customer_taxExempt(ctx, field)
  61954. case "taxExemptions":
  61955. return ec.fieldContext_Customer_taxExemptions(ctx, field)
  61956. case "unsubscribeUrl":
  61957. return ec.fieldContext_Customer_unsubscribeUrl(ctx, field)
  61958. case "updatedAt":
  61959. return ec.fieldContext_Customer_updatedAt(ctx, field)
  61960. case "validEmailAddress":
  61961. return ec.fieldContext_Customer_validEmailAddress(ctx, field)
  61962. case "verifiedEmail":
  61963. return ec.fieldContext_Customer_verifiedEmail(ctx, field)
  61964. }
  61965. return nil, fmt.Errorf("no field named %q was found under type Customer", field.Name)
  61966. },
  61967. }
  61968. return fc, nil
  61969. }
  61970. func (ec *executionContext) _DraftOrder_defaultCursor(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  61971. fc, err := ec.fieldContext_DraftOrder_defaultCursor(ctx, field)
  61972. if err != nil {
  61973. return graphql.Null
  61974. }
  61975. ctx = graphql.WithFieldContext(ctx, fc)
  61976. defer func() {
  61977. if r := recover(); r != nil {
  61978. ec.Error(ctx, ec.Recover(ctx, r))
  61979. ret = graphql.Null
  61980. }
  61981. }()
  61982. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  61983. ctx = rctx // use context from middleware stack in children
  61984. return obj.DefaultCursor, nil
  61985. })
  61986. if err != nil {
  61987. ec.Error(ctx, err)
  61988. return graphql.Null
  61989. }
  61990. if resTmp == nil {
  61991. if !graphql.HasFieldError(ctx, fc) {
  61992. ec.Errorf(ctx, "must not be null")
  61993. }
  61994. return graphql.Null
  61995. }
  61996. res := resTmp.(string)
  61997. fc.Result = res
  61998. return ec.marshalNString2string(ctx, field.Selections, res)
  61999. }
  62000. func (ec *executionContext) fieldContext_DraftOrder_defaultCursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  62001. fc = &graphql.FieldContext{
  62002. Object: "DraftOrder",
  62003. Field: field,
  62004. IsMethod: false,
  62005. IsResolver: false,
  62006. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  62007. return nil, errors.New("field of type String does not have child fields")
  62008. },
  62009. }
  62010. return fc, nil
  62011. }
  62012. func (ec *executionContext) _DraftOrder_email(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  62013. fc, err := ec.fieldContext_DraftOrder_email(ctx, field)
  62014. if err != nil {
  62015. return graphql.Null
  62016. }
  62017. ctx = graphql.WithFieldContext(ctx, fc)
  62018. defer func() {
  62019. if r := recover(); r != nil {
  62020. ec.Error(ctx, ec.Recover(ctx, r))
  62021. ret = graphql.Null
  62022. }
  62023. }()
  62024. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  62025. ctx = rctx // use context from middleware stack in children
  62026. return obj.Email, nil
  62027. })
  62028. if err != nil {
  62029. ec.Error(ctx, err)
  62030. return graphql.Null
  62031. }
  62032. if resTmp == nil {
  62033. return graphql.Null
  62034. }
  62035. res := resTmp.(*string)
  62036. fc.Result = res
  62037. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  62038. }
  62039. func (ec *executionContext) fieldContext_DraftOrder_email(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  62040. fc = &graphql.FieldContext{
  62041. Object: "DraftOrder",
  62042. Field: field,
  62043. IsMethod: false,
  62044. IsResolver: false,
  62045. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  62046. return nil, errors.New("field of type String does not have child fields")
  62047. },
  62048. }
  62049. return fc, nil
  62050. }
  62051. func (ec *executionContext) _DraftOrder_events(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  62052. fc, err := ec.fieldContext_DraftOrder_events(ctx, field)
  62053. if err != nil {
  62054. return graphql.Null
  62055. }
  62056. ctx = graphql.WithFieldContext(ctx, fc)
  62057. defer func() {
  62058. if r := recover(); r != nil {
  62059. ec.Error(ctx, ec.Recover(ctx, r))
  62060. ret = graphql.Null
  62061. }
  62062. }()
  62063. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  62064. ctx = rctx // use context from middleware stack in children
  62065. return obj.Events, nil
  62066. })
  62067. if err != nil {
  62068. ec.Error(ctx, err)
  62069. return graphql.Null
  62070. }
  62071. if resTmp == nil {
  62072. if !graphql.HasFieldError(ctx, fc) {
  62073. ec.Errorf(ctx, "must not be null")
  62074. }
  62075. return graphql.Null
  62076. }
  62077. res := resTmp.(*EventConnection)
  62078. fc.Result = res
  62079. return ec.marshalNEventConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐEventConnection(ctx, field.Selections, res)
  62080. }
  62081. func (ec *executionContext) fieldContext_DraftOrder_events(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  62082. fc = &graphql.FieldContext{
  62083. Object: "DraftOrder",
  62084. Field: field,
  62085. IsMethod: false,
  62086. IsResolver: false,
  62087. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  62088. switch field.Name {
  62089. case "edges":
  62090. return ec.fieldContext_EventConnection_edges(ctx, field)
  62091. case "nodes":
  62092. return ec.fieldContext_EventConnection_nodes(ctx, field)
  62093. case "pageInfo":
  62094. return ec.fieldContext_EventConnection_pageInfo(ctx, field)
  62095. }
  62096. return nil, fmt.Errorf("no field named %q was found under type EventConnection", field.Name)
  62097. },
  62098. }
  62099. defer func() {
  62100. if r := recover(); r != nil {
  62101. err = ec.Recover(ctx, r)
  62102. ec.Error(ctx, err)
  62103. }
  62104. }()
  62105. ctx = graphql.WithFieldContext(ctx, fc)
  62106. if fc.Args, err = ec.field_DraftOrder_events_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  62107. ec.Error(ctx, err)
  62108. return
  62109. }
  62110. return fc, nil
  62111. }
  62112. func (ec *executionContext) _DraftOrder_hasTimelineComment(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  62113. fc, err := ec.fieldContext_DraftOrder_hasTimelineComment(ctx, field)
  62114. if err != nil {
  62115. return graphql.Null
  62116. }
  62117. ctx = graphql.WithFieldContext(ctx, fc)
  62118. defer func() {
  62119. if r := recover(); r != nil {
  62120. ec.Error(ctx, ec.Recover(ctx, r))
  62121. ret = graphql.Null
  62122. }
  62123. }()
  62124. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  62125. ctx = rctx // use context from middleware stack in children
  62126. return obj.HasTimelineComment, nil
  62127. })
  62128. if err != nil {
  62129. ec.Error(ctx, err)
  62130. return graphql.Null
  62131. }
  62132. if resTmp == nil {
  62133. if !graphql.HasFieldError(ctx, fc) {
  62134. ec.Errorf(ctx, "must not be null")
  62135. }
  62136. return graphql.Null
  62137. }
  62138. res := resTmp.(bool)
  62139. fc.Result = res
  62140. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  62141. }
  62142. func (ec *executionContext) fieldContext_DraftOrder_hasTimelineComment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  62143. fc = &graphql.FieldContext{
  62144. Object: "DraftOrder",
  62145. Field: field,
  62146. IsMethod: false,
  62147. IsResolver: false,
  62148. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  62149. return nil, errors.New("field of type Boolean does not have child fields")
  62150. },
  62151. }
  62152. return fc, nil
  62153. }
  62154. func (ec *executionContext) _DraftOrder_id(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  62155. fc, err := ec.fieldContext_DraftOrder_id(ctx, field)
  62156. if err != nil {
  62157. return graphql.Null
  62158. }
  62159. ctx = graphql.WithFieldContext(ctx, fc)
  62160. defer func() {
  62161. if r := recover(); r != nil {
  62162. ec.Error(ctx, ec.Recover(ctx, r))
  62163. ret = graphql.Null
  62164. }
  62165. }()
  62166. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  62167. ctx = rctx // use context from middleware stack in children
  62168. return obj.ID, nil
  62169. })
  62170. if err != nil {
  62171. ec.Error(ctx, err)
  62172. return graphql.Null
  62173. }
  62174. if resTmp == nil {
  62175. if !graphql.HasFieldError(ctx, fc) {
  62176. ec.Errorf(ctx, "must not be null")
  62177. }
  62178. return graphql.Null
  62179. }
  62180. res := resTmp.(string)
  62181. fc.Result = res
  62182. return ec.marshalNID2string(ctx, field.Selections, res)
  62183. }
  62184. func (ec *executionContext) fieldContext_DraftOrder_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  62185. fc = &graphql.FieldContext{
  62186. Object: "DraftOrder",
  62187. Field: field,
  62188. IsMethod: false,
  62189. IsResolver: false,
  62190. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  62191. return nil, errors.New("field of type ID does not have child fields")
  62192. },
  62193. }
  62194. return fc, nil
  62195. }
  62196. func (ec *executionContext) _DraftOrder_invoiceEmailTemplateSubject(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  62197. fc, err := ec.fieldContext_DraftOrder_invoiceEmailTemplateSubject(ctx, field)
  62198. if err != nil {
  62199. return graphql.Null
  62200. }
  62201. ctx = graphql.WithFieldContext(ctx, fc)
  62202. defer func() {
  62203. if r := recover(); r != nil {
  62204. ec.Error(ctx, ec.Recover(ctx, r))
  62205. ret = graphql.Null
  62206. }
  62207. }()
  62208. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  62209. ctx = rctx // use context from middleware stack in children
  62210. return obj.InvoiceEmailTemplateSubject, nil
  62211. })
  62212. if err != nil {
  62213. ec.Error(ctx, err)
  62214. return graphql.Null
  62215. }
  62216. if resTmp == nil {
  62217. if !graphql.HasFieldError(ctx, fc) {
  62218. ec.Errorf(ctx, "must not be null")
  62219. }
  62220. return graphql.Null
  62221. }
  62222. res := resTmp.(string)
  62223. fc.Result = res
  62224. return ec.marshalNString2string(ctx, field.Selections, res)
  62225. }
  62226. func (ec *executionContext) fieldContext_DraftOrder_invoiceEmailTemplateSubject(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  62227. fc = &graphql.FieldContext{
  62228. Object: "DraftOrder",
  62229. Field: field,
  62230. IsMethod: false,
  62231. IsResolver: false,
  62232. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  62233. return nil, errors.New("field of type String does not have child fields")
  62234. },
  62235. }
  62236. return fc, nil
  62237. }
  62238. func (ec *executionContext) _DraftOrder_invoiceSentAt(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  62239. fc, err := ec.fieldContext_DraftOrder_invoiceSentAt(ctx, field)
  62240. if err != nil {
  62241. return graphql.Null
  62242. }
  62243. ctx = graphql.WithFieldContext(ctx, fc)
  62244. defer func() {
  62245. if r := recover(); r != nil {
  62246. ec.Error(ctx, ec.Recover(ctx, r))
  62247. ret = graphql.Null
  62248. }
  62249. }()
  62250. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  62251. ctx = rctx // use context from middleware stack in children
  62252. return obj.InvoiceSentAt, nil
  62253. })
  62254. if err != nil {
  62255. ec.Error(ctx, err)
  62256. return graphql.Null
  62257. }
  62258. if resTmp == nil {
  62259. return graphql.Null
  62260. }
  62261. res := resTmp.(*string)
  62262. fc.Result = res
  62263. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  62264. }
  62265. func (ec *executionContext) fieldContext_DraftOrder_invoiceSentAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  62266. fc = &graphql.FieldContext{
  62267. Object: "DraftOrder",
  62268. Field: field,
  62269. IsMethod: false,
  62270. IsResolver: false,
  62271. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  62272. return nil, errors.New("field of type DateTime does not have child fields")
  62273. },
  62274. }
  62275. return fc, nil
  62276. }
  62277. func (ec *executionContext) _DraftOrder_invoiceUrl(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  62278. fc, err := ec.fieldContext_DraftOrder_invoiceUrl(ctx, field)
  62279. if err != nil {
  62280. return graphql.Null
  62281. }
  62282. ctx = graphql.WithFieldContext(ctx, fc)
  62283. defer func() {
  62284. if r := recover(); r != nil {
  62285. ec.Error(ctx, ec.Recover(ctx, r))
  62286. ret = graphql.Null
  62287. }
  62288. }()
  62289. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  62290. ctx = rctx // use context from middleware stack in children
  62291. return obj.InvoiceURL, nil
  62292. })
  62293. if err != nil {
  62294. ec.Error(ctx, err)
  62295. return graphql.Null
  62296. }
  62297. if resTmp == nil {
  62298. return graphql.Null
  62299. }
  62300. res := resTmp.(*string)
  62301. fc.Result = res
  62302. return ec.marshalOURL2ᚖstring(ctx, field.Selections, res)
  62303. }
  62304. func (ec *executionContext) fieldContext_DraftOrder_invoiceUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  62305. fc = &graphql.FieldContext{
  62306. Object: "DraftOrder",
  62307. Field: field,
  62308. IsMethod: false,
  62309. IsResolver: false,
  62310. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  62311. return nil, errors.New("field of type URL does not have child fields")
  62312. },
  62313. }
  62314. return fc, nil
  62315. }
  62316. func (ec *executionContext) _DraftOrder_legacyResourceId(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  62317. fc, err := ec.fieldContext_DraftOrder_legacyResourceId(ctx, field)
  62318. if err != nil {
  62319. return graphql.Null
  62320. }
  62321. ctx = graphql.WithFieldContext(ctx, fc)
  62322. defer func() {
  62323. if r := recover(); r != nil {
  62324. ec.Error(ctx, ec.Recover(ctx, r))
  62325. ret = graphql.Null
  62326. }
  62327. }()
  62328. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  62329. ctx = rctx // use context from middleware stack in children
  62330. return obj.LegacyResourceID, nil
  62331. })
  62332. if err != nil {
  62333. ec.Error(ctx, err)
  62334. return graphql.Null
  62335. }
  62336. if resTmp == nil {
  62337. if !graphql.HasFieldError(ctx, fc) {
  62338. ec.Errorf(ctx, "must not be null")
  62339. }
  62340. return graphql.Null
  62341. }
  62342. res := resTmp.(string)
  62343. fc.Result = res
  62344. return ec.marshalNUnsignedInt642string(ctx, field.Selections, res)
  62345. }
  62346. func (ec *executionContext) fieldContext_DraftOrder_legacyResourceId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  62347. fc = &graphql.FieldContext{
  62348. Object: "DraftOrder",
  62349. Field: field,
  62350. IsMethod: false,
  62351. IsResolver: false,
  62352. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  62353. return nil, errors.New("field of type UnsignedInt64 does not have child fields")
  62354. },
  62355. }
  62356. return fc, nil
  62357. }
  62358. func (ec *executionContext) _DraftOrder_lineItems(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  62359. fc, err := ec.fieldContext_DraftOrder_lineItems(ctx, field)
  62360. if err != nil {
  62361. return graphql.Null
  62362. }
  62363. ctx = graphql.WithFieldContext(ctx, fc)
  62364. defer func() {
  62365. if r := recover(); r != nil {
  62366. ec.Error(ctx, ec.Recover(ctx, r))
  62367. ret = graphql.Null
  62368. }
  62369. }()
  62370. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  62371. ctx = rctx // use context from middleware stack in children
  62372. return obj.LineItems, nil
  62373. })
  62374. if err != nil {
  62375. ec.Error(ctx, err)
  62376. return graphql.Null
  62377. }
  62378. if resTmp == nil {
  62379. if !graphql.HasFieldError(ctx, fc) {
  62380. ec.Errorf(ctx, "must not be null")
  62381. }
  62382. return graphql.Null
  62383. }
  62384. res := resTmp.(*DraftOrderLineItemConnection)
  62385. fc.Result = res
  62386. return ec.marshalNDraftOrderLineItemConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderLineItemConnection(ctx, field.Selections, res)
  62387. }
  62388. func (ec *executionContext) fieldContext_DraftOrder_lineItems(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  62389. fc = &graphql.FieldContext{
  62390. Object: "DraftOrder",
  62391. Field: field,
  62392. IsMethod: false,
  62393. IsResolver: false,
  62394. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  62395. switch field.Name {
  62396. case "edges":
  62397. return ec.fieldContext_DraftOrderLineItemConnection_edges(ctx, field)
  62398. case "nodes":
  62399. return ec.fieldContext_DraftOrderLineItemConnection_nodes(ctx, field)
  62400. case "pageInfo":
  62401. return ec.fieldContext_DraftOrderLineItemConnection_pageInfo(ctx, field)
  62402. }
  62403. return nil, fmt.Errorf("no field named %q was found under type DraftOrderLineItemConnection", field.Name)
  62404. },
  62405. }
  62406. defer func() {
  62407. if r := recover(); r != nil {
  62408. err = ec.Recover(ctx, r)
  62409. ec.Error(ctx, err)
  62410. }
  62411. }()
  62412. ctx = graphql.WithFieldContext(ctx, fc)
  62413. if fc.Args, err = ec.field_DraftOrder_lineItems_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  62414. ec.Error(ctx, err)
  62415. return
  62416. }
  62417. return fc, nil
  62418. }
  62419. func (ec *executionContext) _DraftOrder_lineItemsSubtotalPrice(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  62420. fc, err := ec.fieldContext_DraftOrder_lineItemsSubtotalPrice(ctx, field)
  62421. if err != nil {
  62422. return graphql.Null
  62423. }
  62424. ctx = graphql.WithFieldContext(ctx, fc)
  62425. defer func() {
  62426. if r := recover(); r != nil {
  62427. ec.Error(ctx, ec.Recover(ctx, r))
  62428. ret = graphql.Null
  62429. }
  62430. }()
  62431. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  62432. ctx = rctx // use context from middleware stack in children
  62433. return obj.LineItemsSubtotalPrice, nil
  62434. })
  62435. if err != nil {
  62436. ec.Error(ctx, err)
  62437. return graphql.Null
  62438. }
  62439. if resTmp == nil {
  62440. if !graphql.HasFieldError(ctx, fc) {
  62441. ec.Errorf(ctx, "must not be null")
  62442. }
  62443. return graphql.Null
  62444. }
  62445. res := resTmp.(*MoneyBag)
  62446. fc.Result = res
  62447. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  62448. }
  62449. func (ec *executionContext) fieldContext_DraftOrder_lineItemsSubtotalPrice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  62450. fc = &graphql.FieldContext{
  62451. Object: "DraftOrder",
  62452. Field: field,
  62453. IsMethod: false,
  62454. IsResolver: false,
  62455. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  62456. switch field.Name {
  62457. case "presentmentMoney":
  62458. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  62459. case "shopMoney":
  62460. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  62461. }
  62462. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  62463. },
  62464. }
  62465. return fc, nil
  62466. }
  62467. func (ec *executionContext) _DraftOrder_localizationExtensions(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  62468. fc, err := ec.fieldContext_DraftOrder_localizationExtensions(ctx, field)
  62469. if err != nil {
  62470. return graphql.Null
  62471. }
  62472. ctx = graphql.WithFieldContext(ctx, fc)
  62473. defer func() {
  62474. if r := recover(); r != nil {
  62475. ec.Error(ctx, ec.Recover(ctx, r))
  62476. ret = graphql.Null
  62477. }
  62478. }()
  62479. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  62480. ctx = rctx // use context from middleware stack in children
  62481. return obj.LocalizationExtensions, nil
  62482. })
  62483. if err != nil {
  62484. ec.Error(ctx, err)
  62485. return graphql.Null
  62486. }
  62487. if resTmp == nil {
  62488. if !graphql.HasFieldError(ctx, fc) {
  62489. ec.Errorf(ctx, "must not be null")
  62490. }
  62491. return graphql.Null
  62492. }
  62493. res := resTmp.(*LocalizationExtensionConnection)
  62494. fc.Result = res
  62495. return ec.marshalNLocalizationExtensionConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocalizationExtensionConnection(ctx, field.Selections, res)
  62496. }
  62497. func (ec *executionContext) fieldContext_DraftOrder_localizationExtensions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  62498. fc = &graphql.FieldContext{
  62499. Object: "DraftOrder",
  62500. Field: field,
  62501. IsMethod: false,
  62502. IsResolver: false,
  62503. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  62504. switch field.Name {
  62505. case "edges":
  62506. return ec.fieldContext_LocalizationExtensionConnection_edges(ctx, field)
  62507. case "nodes":
  62508. return ec.fieldContext_LocalizationExtensionConnection_nodes(ctx, field)
  62509. case "pageInfo":
  62510. return ec.fieldContext_LocalizationExtensionConnection_pageInfo(ctx, field)
  62511. }
  62512. return nil, fmt.Errorf("no field named %q was found under type LocalizationExtensionConnection", field.Name)
  62513. },
  62514. }
  62515. defer func() {
  62516. if r := recover(); r != nil {
  62517. err = ec.Recover(ctx, r)
  62518. ec.Error(ctx, err)
  62519. }
  62520. }()
  62521. ctx = graphql.WithFieldContext(ctx, fc)
  62522. if fc.Args, err = ec.field_DraftOrder_localizationExtensions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  62523. ec.Error(ctx, err)
  62524. return
  62525. }
  62526. return fc, nil
  62527. }
  62528. func (ec *executionContext) _DraftOrder_marketName(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  62529. fc, err := ec.fieldContext_DraftOrder_marketName(ctx, field)
  62530. if err != nil {
  62531. return graphql.Null
  62532. }
  62533. ctx = graphql.WithFieldContext(ctx, fc)
  62534. defer func() {
  62535. if r := recover(); r != nil {
  62536. ec.Error(ctx, ec.Recover(ctx, r))
  62537. ret = graphql.Null
  62538. }
  62539. }()
  62540. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  62541. ctx = rctx // use context from middleware stack in children
  62542. return obj.MarketName, nil
  62543. })
  62544. if err != nil {
  62545. ec.Error(ctx, err)
  62546. return graphql.Null
  62547. }
  62548. if resTmp == nil {
  62549. if !graphql.HasFieldError(ctx, fc) {
  62550. ec.Errorf(ctx, "must not be null")
  62551. }
  62552. return graphql.Null
  62553. }
  62554. res := resTmp.(string)
  62555. fc.Result = res
  62556. return ec.marshalNString2string(ctx, field.Selections, res)
  62557. }
  62558. func (ec *executionContext) fieldContext_DraftOrder_marketName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  62559. fc = &graphql.FieldContext{
  62560. Object: "DraftOrder",
  62561. Field: field,
  62562. IsMethod: false,
  62563. IsResolver: false,
  62564. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  62565. return nil, errors.New("field of type String does not have child fields")
  62566. },
  62567. }
  62568. return fc, nil
  62569. }
  62570. func (ec *executionContext) _DraftOrder_marketRegionCountryCode(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  62571. fc, err := ec.fieldContext_DraftOrder_marketRegionCountryCode(ctx, field)
  62572. if err != nil {
  62573. return graphql.Null
  62574. }
  62575. ctx = graphql.WithFieldContext(ctx, fc)
  62576. defer func() {
  62577. if r := recover(); r != nil {
  62578. ec.Error(ctx, ec.Recover(ctx, r))
  62579. ret = graphql.Null
  62580. }
  62581. }()
  62582. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  62583. ctx = rctx // use context from middleware stack in children
  62584. return obj.MarketRegionCountryCode, nil
  62585. })
  62586. if err != nil {
  62587. ec.Error(ctx, err)
  62588. return graphql.Null
  62589. }
  62590. if resTmp == nil {
  62591. if !graphql.HasFieldError(ctx, fc) {
  62592. ec.Errorf(ctx, "must not be null")
  62593. }
  62594. return graphql.Null
  62595. }
  62596. res := resTmp.(CountryCode)
  62597. fc.Result = res
  62598. return ec.marshalNCountryCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCode(ctx, field.Selections, res)
  62599. }
  62600. func (ec *executionContext) fieldContext_DraftOrder_marketRegionCountryCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  62601. fc = &graphql.FieldContext{
  62602. Object: "DraftOrder",
  62603. Field: field,
  62604. IsMethod: false,
  62605. IsResolver: false,
  62606. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  62607. return nil, errors.New("field of type CountryCode does not have child fields")
  62608. },
  62609. }
  62610. return fc, nil
  62611. }
  62612. func (ec *executionContext) _DraftOrder_metafield(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  62613. fc, err := ec.fieldContext_DraftOrder_metafield(ctx, field)
  62614. if err != nil {
  62615. return graphql.Null
  62616. }
  62617. ctx = graphql.WithFieldContext(ctx, fc)
  62618. defer func() {
  62619. if r := recover(); r != nil {
  62620. ec.Error(ctx, ec.Recover(ctx, r))
  62621. ret = graphql.Null
  62622. }
  62623. }()
  62624. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  62625. ctx = rctx // use context from middleware stack in children
  62626. return obj.Metafield, nil
  62627. })
  62628. if err != nil {
  62629. ec.Error(ctx, err)
  62630. return graphql.Null
  62631. }
  62632. if resTmp == nil {
  62633. return graphql.Null
  62634. }
  62635. res := resTmp.(*Metafield)
  62636. fc.Result = res
  62637. return ec.marshalOMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafield(ctx, field.Selections, res)
  62638. }
  62639. func (ec *executionContext) fieldContext_DraftOrder_metafield(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  62640. fc = &graphql.FieldContext{
  62641. Object: "DraftOrder",
  62642. Field: field,
  62643. IsMethod: false,
  62644. IsResolver: false,
  62645. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  62646. switch field.Name {
  62647. case "createdAt":
  62648. return ec.fieldContext_Metafield_createdAt(ctx, field)
  62649. case "definition":
  62650. return ec.fieldContext_Metafield_definition(ctx, field)
  62651. case "description":
  62652. return ec.fieldContext_Metafield_description(ctx, field)
  62653. case "id":
  62654. return ec.fieldContext_Metafield_id(ctx, field)
  62655. case "key":
  62656. return ec.fieldContext_Metafield_key(ctx, field)
  62657. case "legacyResourceId":
  62658. return ec.fieldContext_Metafield_legacyResourceId(ctx, field)
  62659. case "namespace":
  62660. return ec.fieldContext_Metafield_namespace(ctx, field)
  62661. case "owner":
  62662. return ec.fieldContext_Metafield_owner(ctx, field)
  62663. case "ownerType":
  62664. return ec.fieldContext_Metafield_ownerType(ctx, field)
  62665. case "reference":
  62666. return ec.fieldContext_Metafield_reference(ctx, field)
  62667. case "references":
  62668. return ec.fieldContext_Metafield_references(ctx, field)
  62669. case "type":
  62670. return ec.fieldContext_Metafield_type(ctx, field)
  62671. case "updatedAt":
  62672. return ec.fieldContext_Metafield_updatedAt(ctx, field)
  62673. case "value":
  62674. return ec.fieldContext_Metafield_value(ctx, field)
  62675. }
  62676. return nil, fmt.Errorf("no field named %q was found under type Metafield", field.Name)
  62677. },
  62678. }
  62679. defer func() {
  62680. if r := recover(); r != nil {
  62681. err = ec.Recover(ctx, r)
  62682. ec.Error(ctx, err)
  62683. }
  62684. }()
  62685. ctx = graphql.WithFieldContext(ctx, fc)
  62686. if fc.Args, err = ec.field_DraftOrder_metafield_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  62687. ec.Error(ctx, err)
  62688. return
  62689. }
  62690. return fc, nil
  62691. }
  62692. func (ec *executionContext) _DraftOrder_metafields(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  62693. fc, err := ec.fieldContext_DraftOrder_metafields(ctx, field)
  62694. if err != nil {
  62695. return graphql.Null
  62696. }
  62697. ctx = graphql.WithFieldContext(ctx, fc)
  62698. defer func() {
  62699. if r := recover(); r != nil {
  62700. ec.Error(ctx, ec.Recover(ctx, r))
  62701. ret = graphql.Null
  62702. }
  62703. }()
  62704. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  62705. ctx = rctx // use context from middleware stack in children
  62706. return obj.Metafields, nil
  62707. })
  62708. if err != nil {
  62709. ec.Error(ctx, err)
  62710. return graphql.Null
  62711. }
  62712. if resTmp == nil {
  62713. if !graphql.HasFieldError(ctx, fc) {
  62714. ec.Errorf(ctx, "must not be null")
  62715. }
  62716. return graphql.Null
  62717. }
  62718. res := resTmp.(*MetafieldConnection)
  62719. fc.Result = res
  62720. return ec.marshalNMetafieldConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldConnection(ctx, field.Selections, res)
  62721. }
  62722. func (ec *executionContext) fieldContext_DraftOrder_metafields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  62723. fc = &graphql.FieldContext{
  62724. Object: "DraftOrder",
  62725. Field: field,
  62726. IsMethod: false,
  62727. IsResolver: false,
  62728. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  62729. switch field.Name {
  62730. case "edges":
  62731. return ec.fieldContext_MetafieldConnection_edges(ctx, field)
  62732. case "nodes":
  62733. return ec.fieldContext_MetafieldConnection_nodes(ctx, field)
  62734. case "pageInfo":
  62735. return ec.fieldContext_MetafieldConnection_pageInfo(ctx, field)
  62736. }
  62737. return nil, fmt.Errorf("no field named %q was found under type MetafieldConnection", field.Name)
  62738. },
  62739. }
  62740. defer func() {
  62741. if r := recover(); r != nil {
  62742. err = ec.Recover(ctx, r)
  62743. ec.Error(ctx, err)
  62744. }
  62745. }()
  62746. ctx = graphql.WithFieldContext(ctx, fc)
  62747. if fc.Args, err = ec.field_DraftOrder_metafields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  62748. ec.Error(ctx, err)
  62749. return
  62750. }
  62751. return fc, nil
  62752. }
  62753. func (ec *executionContext) _DraftOrder_name(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  62754. fc, err := ec.fieldContext_DraftOrder_name(ctx, field)
  62755. if err != nil {
  62756. return graphql.Null
  62757. }
  62758. ctx = graphql.WithFieldContext(ctx, fc)
  62759. defer func() {
  62760. if r := recover(); r != nil {
  62761. ec.Error(ctx, ec.Recover(ctx, r))
  62762. ret = graphql.Null
  62763. }
  62764. }()
  62765. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  62766. ctx = rctx // use context from middleware stack in children
  62767. return obj.Name, nil
  62768. })
  62769. if err != nil {
  62770. ec.Error(ctx, err)
  62771. return graphql.Null
  62772. }
  62773. if resTmp == nil {
  62774. if !graphql.HasFieldError(ctx, fc) {
  62775. ec.Errorf(ctx, "must not be null")
  62776. }
  62777. return graphql.Null
  62778. }
  62779. res := resTmp.(string)
  62780. fc.Result = res
  62781. return ec.marshalNString2string(ctx, field.Selections, res)
  62782. }
  62783. func (ec *executionContext) fieldContext_DraftOrder_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  62784. fc = &graphql.FieldContext{
  62785. Object: "DraftOrder",
  62786. Field: field,
  62787. IsMethod: false,
  62788. IsResolver: false,
  62789. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  62790. return nil, errors.New("field of type String does not have child fields")
  62791. },
  62792. }
  62793. return fc, nil
  62794. }
  62795. func (ec *executionContext) _DraftOrder_note2(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  62796. fc, err := ec.fieldContext_DraftOrder_note2(ctx, field)
  62797. if err != nil {
  62798. return graphql.Null
  62799. }
  62800. ctx = graphql.WithFieldContext(ctx, fc)
  62801. defer func() {
  62802. if r := recover(); r != nil {
  62803. ec.Error(ctx, ec.Recover(ctx, r))
  62804. ret = graphql.Null
  62805. }
  62806. }()
  62807. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  62808. ctx = rctx // use context from middleware stack in children
  62809. return obj.Note2, nil
  62810. })
  62811. if err != nil {
  62812. ec.Error(ctx, err)
  62813. return graphql.Null
  62814. }
  62815. if resTmp == nil {
  62816. return graphql.Null
  62817. }
  62818. res := resTmp.(*string)
  62819. fc.Result = res
  62820. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  62821. }
  62822. func (ec *executionContext) fieldContext_DraftOrder_note2(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  62823. fc = &graphql.FieldContext{
  62824. Object: "DraftOrder",
  62825. Field: field,
  62826. IsMethod: false,
  62827. IsResolver: false,
  62828. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  62829. return nil, errors.New("field of type String does not have child fields")
  62830. },
  62831. }
  62832. return fc, nil
  62833. }
  62834. func (ec *executionContext) _DraftOrder_order(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  62835. fc, err := ec.fieldContext_DraftOrder_order(ctx, field)
  62836. if err != nil {
  62837. return graphql.Null
  62838. }
  62839. ctx = graphql.WithFieldContext(ctx, fc)
  62840. defer func() {
  62841. if r := recover(); r != nil {
  62842. ec.Error(ctx, ec.Recover(ctx, r))
  62843. ret = graphql.Null
  62844. }
  62845. }()
  62846. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  62847. ctx = rctx // use context from middleware stack in children
  62848. return obj.Order, nil
  62849. })
  62850. if err != nil {
  62851. ec.Error(ctx, err)
  62852. return graphql.Null
  62853. }
  62854. if resTmp == nil {
  62855. return graphql.Null
  62856. }
  62857. res := resTmp.(*Order)
  62858. fc.Result = res
  62859. return ec.marshalOOrder2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrder(ctx, field.Selections, res)
  62860. }
  62861. func (ec *executionContext) fieldContext_DraftOrder_order(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  62862. fc = &graphql.FieldContext{
  62863. Object: "DraftOrder",
  62864. Field: field,
  62865. IsMethod: false,
  62866. IsResolver: false,
  62867. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  62868. switch field.Name {
  62869. case "agreements":
  62870. return ec.fieldContext_Order_agreements(ctx, field)
  62871. case "alerts":
  62872. return ec.fieldContext_Order_alerts(ctx, field)
  62873. case "app":
  62874. return ec.fieldContext_Order_app(ctx, field)
  62875. case "billingAddress":
  62876. return ec.fieldContext_Order_billingAddress(ctx, field)
  62877. case "billingAddressMatchesShippingAddress":
  62878. return ec.fieldContext_Order_billingAddressMatchesShippingAddress(ctx, field)
  62879. case "canMarkAsPaid":
  62880. return ec.fieldContext_Order_canMarkAsPaid(ctx, field)
  62881. case "canNotifyCustomer":
  62882. return ec.fieldContext_Order_canNotifyCustomer(ctx, field)
  62883. case "cancelReason":
  62884. return ec.fieldContext_Order_cancelReason(ctx, field)
  62885. case "cancelledAt":
  62886. return ec.fieldContext_Order_cancelledAt(ctx, field)
  62887. case "capturable":
  62888. return ec.fieldContext_Order_capturable(ctx, field)
  62889. case "cartDiscountAmountSet":
  62890. return ec.fieldContext_Order_cartDiscountAmountSet(ctx, field)
  62891. case "channelInformation":
  62892. return ec.fieldContext_Order_channelInformation(ctx, field)
  62893. case "clientIp":
  62894. return ec.fieldContext_Order_clientIp(ctx, field)
  62895. case "closed":
  62896. return ec.fieldContext_Order_closed(ctx, field)
  62897. case "closedAt":
  62898. return ec.fieldContext_Order_closedAt(ctx, field)
  62899. case "confirmed":
  62900. return ec.fieldContext_Order_confirmed(ctx, field)
  62901. case "createdAt":
  62902. return ec.fieldContext_Order_createdAt(ctx, field)
  62903. case "currencyCode":
  62904. return ec.fieldContext_Order_currencyCode(ctx, field)
  62905. case "currentCartDiscountAmountSet":
  62906. return ec.fieldContext_Order_currentCartDiscountAmountSet(ctx, field)
  62907. case "currentSubtotalLineItemsQuantity":
  62908. return ec.fieldContext_Order_currentSubtotalLineItemsQuantity(ctx, field)
  62909. case "currentSubtotalPriceSet":
  62910. return ec.fieldContext_Order_currentSubtotalPriceSet(ctx, field)
  62911. case "currentTaxLines":
  62912. return ec.fieldContext_Order_currentTaxLines(ctx, field)
  62913. case "currentTotalDiscountsSet":
  62914. return ec.fieldContext_Order_currentTotalDiscountsSet(ctx, field)
  62915. case "currentTotalDutiesSet":
  62916. return ec.fieldContext_Order_currentTotalDutiesSet(ctx, field)
  62917. case "currentTotalPriceSet":
  62918. return ec.fieldContext_Order_currentTotalPriceSet(ctx, field)
  62919. case "currentTotalTaxSet":
  62920. return ec.fieldContext_Order_currentTotalTaxSet(ctx, field)
  62921. case "currentTotalWeight":
  62922. return ec.fieldContext_Order_currentTotalWeight(ctx, field)
  62923. case "customAttributes":
  62924. return ec.fieldContext_Order_customAttributes(ctx, field)
  62925. case "customer":
  62926. return ec.fieldContext_Order_customer(ctx, field)
  62927. case "customerAcceptsMarketing":
  62928. return ec.fieldContext_Order_customerAcceptsMarketing(ctx, field)
  62929. case "customerJourneySummary":
  62930. return ec.fieldContext_Order_customerJourneySummary(ctx, field)
  62931. case "customerLocale":
  62932. return ec.fieldContext_Order_customerLocale(ctx, field)
  62933. case "discountApplications":
  62934. return ec.fieldContext_Order_discountApplications(ctx, field)
  62935. case "discountCode":
  62936. return ec.fieldContext_Order_discountCode(ctx, field)
  62937. case "discountCodes":
  62938. return ec.fieldContext_Order_discountCodes(ctx, field)
  62939. case "displayAddress":
  62940. return ec.fieldContext_Order_displayAddress(ctx, field)
  62941. case "displayFinancialStatus":
  62942. return ec.fieldContext_Order_displayFinancialStatus(ctx, field)
  62943. case "displayFulfillmentStatus":
  62944. return ec.fieldContext_Order_displayFulfillmentStatus(ctx, field)
  62945. case "disputes":
  62946. return ec.fieldContext_Order_disputes(ctx, field)
  62947. case "edited":
  62948. return ec.fieldContext_Order_edited(ctx, field)
  62949. case "email":
  62950. return ec.fieldContext_Order_email(ctx, field)
  62951. case "estimatedTaxes":
  62952. return ec.fieldContext_Order_estimatedTaxes(ctx, field)
  62953. case "events":
  62954. return ec.fieldContext_Order_events(ctx, field)
  62955. case "fulfillable":
  62956. return ec.fieldContext_Order_fulfillable(ctx, field)
  62957. case "fulfillmentOrders":
  62958. return ec.fieldContext_Order_fulfillmentOrders(ctx, field)
  62959. case "fulfillments":
  62960. return ec.fieldContext_Order_fulfillments(ctx, field)
  62961. case "fullyPaid":
  62962. return ec.fieldContext_Order_fullyPaid(ctx, field)
  62963. case "hasTimelineComment":
  62964. return ec.fieldContext_Order_hasTimelineComment(ctx, field)
  62965. case "id":
  62966. return ec.fieldContext_Order_id(ctx, field)
  62967. case "legacyResourceId":
  62968. return ec.fieldContext_Order_legacyResourceId(ctx, field)
  62969. case "lineItems":
  62970. return ec.fieldContext_Order_lineItems(ctx, field)
  62971. case "localizationExtensions":
  62972. return ec.fieldContext_Order_localizationExtensions(ctx, field)
  62973. case "merchantEditable":
  62974. return ec.fieldContext_Order_merchantEditable(ctx, field)
  62975. case "merchantEditableErrors":
  62976. return ec.fieldContext_Order_merchantEditableErrors(ctx, field)
  62977. case "merchantOfRecordApp":
  62978. return ec.fieldContext_Order_merchantOfRecordApp(ctx, field)
  62979. case "metafield":
  62980. return ec.fieldContext_Order_metafield(ctx, field)
  62981. case "metafieldDefinitions":
  62982. return ec.fieldContext_Order_metafieldDefinitions(ctx, field)
  62983. case "metafields":
  62984. return ec.fieldContext_Order_metafields(ctx, field)
  62985. case "name":
  62986. return ec.fieldContext_Order_name(ctx, field)
  62987. case "netPaymentSet":
  62988. return ec.fieldContext_Order_netPaymentSet(ctx, field)
  62989. case "nonFulfillableLineItems":
  62990. return ec.fieldContext_Order_nonFulfillableLineItems(ctx, field)
  62991. case "note":
  62992. return ec.fieldContext_Order_note(ctx, field)
  62993. case "originalTotalDutiesSet":
  62994. return ec.fieldContext_Order_originalTotalDutiesSet(ctx, field)
  62995. case "originalTotalPriceSet":
  62996. return ec.fieldContext_Order_originalTotalPriceSet(ctx, field)
  62997. case "paymentCollectionDetails":
  62998. return ec.fieldContext_Order_paymentCollectionDetails(ctx, field)
  62999. case "paymentGatewayNames":
  63000. return ec.fieldContext_Order_paymentGatewayNames(ctx, field)
  63001. case "paymentTerms":
  63002. return ec.fieldContext_Order_paymentTerms(ctx, field)
  63003. case "phone":
  63004. return ec.fieldContext_Order_phone(ctx, field)
  63005. case "physicalLocation":
  63006. return ec.fieldContext_Order_physicalLocation(ctx, field)
  63007. case "presentmentCurrencyCode":
  63008. return ec.fieldContext_Order_presentmentCurrencyCode(ctx, field)
  63009. case "privateMetafield":
  63010. return ec.fieldContext_Order_privateMetafield(ctx, field)
  63011. case "privateMetafields":
  63012. return ec.fieldContext_Order_privateMetafields(ctx, field)
  63013. case "processedAt":
  63014. return ec.fieldContext_Order_processedAt(ctx, field)
  63015. case "publication":
  63016. return ec.fieldContext_Order_publication(ctx, field)
  63017. case "purchasingEntity":
  63018. return ec.fieldContext_Order_purchasingEntity(ctx, field)
  63019. case "refundDiscrepancySet":
  63020. return ec.fieldContext_Order_refundDiscrepancySet(ctx, field)
  63021. case "refundable":
  63022. return ec.fieldContext_Order_refundable(ctx, field)
  63023. case "refunds":
  63024. return ec.fieldContext_Order_refunds(ctx, field)
  63025. case "registeredSourceUrl":
  63026. return ec.fieldContext_Order_registeredSourceUrl(ctx, field)
  63027. case "requiresShipping":
  63028. return ec.fieldContext_Order_requiresShipping(ctx, field)
  63029. case "restockable":
  63030. return ec.fieldContext_Order_restockable(ctx, field)
  63031. case "riskLevel":
  63032. return ec.fieldContext_Order_riskLevel(ctx, field)
  63033. case "risks":
  63034. return ec.fieldContext_Order_risks(ctx, field)
  63035. case "shippingAddress":
  63036. return ec.fieldContext_Order_shippingAddress(ctx, field)
  63037. case "shippingLine":
  63038. return ec.fieldContext_Order_shippingLine(ctx, field)
  63039. case "shippingLines":
  63040. return ec.fieldContext_Order_shippingLines(ctx, field)
  63041. case "sourceIdentifier":
  63042. return ec.fieldContext_Order_sourceIdentifier(ctx, field)
  63043. case "subtotalLineItemsQuantity":
  63044. return ec.fieldContext_Order_subtotalLineItemsQuantity(ctx, field)
  63045. case "subtotalPriceSet":
  63046. return ec.fieldContext_Order_subtotalPriceSet(ctx, field)
  63047. case "suggestedRefund":
  63048. return ec.fieldContext_Order_suggestedRefund(ctx, field)
  63049. case "tags":
  63050. return ec.fieldContext_Order_tags(ctx, field)
  63051. case "taxLines":
  63052. return ec.fieldContext_Order_taxLines(ctx, field)
  63053. case "taxesIncluded":
  63054. return ec.fieldContext_Order_taxesIncluded(ctx, field)
  63055. case "test":
  63056. return ec.fieldContext_Order_test(ctx, field)
  63057. case "totalCapturableSet":
  63058. return ec.fieldContext_Order_totalCapturableSet(ctx, field)
  63059. case "totalDiscountsSet":
  63060. return ec.fieldContext_Order_totalDiscountsSet(ctx, field)
  63061. case "totalOutstandingSet":
  63062. return ec.fieldContext_Order_totalOutstandingSet(ctx, field)
  63063. case "totalPriceSet":
  63064. return ec.fieldContext_Order_totalPriceSet(ctx, field)
  63065. case "totalReceivedSet":
  63066. return ec.fieldContext_Order_totalReceivedSet(ctx, field)
  63067. case "totalRefundedSet":
  63068. return ec.fieldContext_Order_totalRefundedSet(ctx, field)
  63069. case "totalRefundedShippingSet":
  63070. return ec.fieldContext_Order_totalRefundedShippingSet(ctx, field)
  63071. case "totalShippingPriceSet":
  63072. return ec.fieldContext_Order_totalShippingPriceSet(ctx, field)
  63073. case "totalTaxSet":
  63074. return ec.fieldContext_Order_totalTaxSet(ctx, field)
  63075. case "totalTipReceivedSet":
  63076. return ec.fieldContext_Order_totalTipReceivedSet(ctx, field)
  63077. case "totalWeight":
  63078. return ec.fieldContext_Order_totalWeight(ctx, field)
  63079. case "transactions":
  63080. return ec.fieldContext_Order_transactions(ctx, field)
  63081. case "unpaid":
  63082. return ec.fieldContext_Order_unpaid(ctx, field)
  63083. case "updatedAt":
  63084. return ec.fieldContext_Order_updatedAt(ctx, field)
  63085. }
  63086. return nil, fmt.Errorf("no field named %q was found under type Order", field.Name)
  63087. },
  63088. }
  63089. return fc, nil
  63090. }
  63091. func (ec *executionContext) _DraftOrder_paymentTerms(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  63092. fc, err := ec.fieldContext_DraftOrder_paymentTerms(ctx, field)
  63093. if err != nil {
  63094. return graphql.Null
  63095. }
  63096. ctx = graphql.WithFieldContext(ctx, fc)
  63097. defer func() {
  63098. if r := recover(); r != nil {
  63099. ec.Error(ctx, ec.Recover(ctx, r))
  63100. ret = graphql.Null
  63101. }
  63102. }()
  63103. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  63104. ctx = rctx // use context from middleware stack in children
  63105. return obj.PaymentTerms, nil
  63106. })
  63107. if err != nil {
  63108. ec.Error(ctx, err)
  63109. return graphql.Null
  63110. }
  63111. if resTmp == nil {
  63112. return graphql.Null
  63113. }
  63114. res := resTmp.(*PaymentTerms)
  63115. fc.Result = res
  63116. return ec.marshalOPaymentTerms2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentTerms(ctx, field.Selections, res)
  63117. }
  63118. func (ec *executionContext) fieldContext_DraftOrder_paymentTerms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  63119. fc = &graphql.FieldContext{
  63120. Object: "DraftOrder",
  63121. Field: field,
  63122. IsMethod: false,
  63123. IsResolver: false,
  63124. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  63125. switch field.Name {
  63126. case "dueInDays":
  63127. return ec.fieldContext_PaymentTerms_dueInDays(ctx, field)
  63128. case "id":
  63129. return ec.fieldContext_PaymentTerms_id(ctx, field)
  63130. case "overdue":
  63131. return ec.fieldContext_PaymentTerms_overdue(ctx, field)
  63132. case "paymentSchedules":
  63133. return ec.fieldContext_PaymentTerms_paymentSchedules(ctx, field)
  63134. case "paymentTermsName":
  63135. return ec.fieldContext_PaymentTerms_paymentTermsName(ctx, field)
  63136. case "paymentTermsType":
  63137. return ec.fieldContext_PaymentTerms_paymentTermsType(ctx, field)
  63138. case "translatedName":
  63139. return ec.fieldContext_PaymentTerms_translatedName(ctx, field)
  63140. }
  63141. return nil, fmt.Errorf("no field named %q was found under type PaymentTerms", field.Name)
  63142. },
  63143. }
  63144. return fc, nil
  63145. }
  63146. func (ec *executionContext) _DraftOrder_phone(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  63147. fc, err := ec.fieldContext_DraftOrder_phone(ctx, field)
  63148. if err != nil {
  63149. return graphql.Null
  63150. }
  63151. ctx = graphql.WithFieldContext(ctx, fc)
  63152. defer func() {
  63153. if r := recover(); r != nil {
  63154. ec.Error(ctx, ec.Recover(ctx, r))
  63155. ret = graphql.Null
  63156. }
  63157. }()
  63158. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  63159. ctx = rctx // use context from middleware stack in children
  63160. return obj.Phone, nil
  63161. })
  63162. if err != nil {
  63163. ec.Error(ctx, err)
  63164. return graphql.Null
  63165. }
  63166. if resTmp == nil {
  63167. return graphql.Null
  63168. }
  63169. res := resTmp.(*string)
  63170. fc.Result = res
  63171. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  63172. }
  63173. func (ec *executionContext) fieldContext_DraftOrder_phone(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  63174. fc = &graphql.FieldContext{
  63175. Object: "DraftOrder",
  63176. Field: field,
  63177. IsMethod: false,
  63178. IsResolver: false,
  63179. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  63180. return nil, errors.New("field of type String does not have child fields")
  63181. },
  63182. }
  63183. return fc, nil
  63184. }
  63185. func (ec *executionContext) _DraftOrder_presentmentCurrencyCode(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  63186. fc, err := ec.fieldContext_DraftOrder_presentmentCurrencyCode(ctx, field)
  63187. if err != nil {
  63188. return graphql.Null
  63189. }
  63190. ctx = graphql.WithFieldContext(ctx, fc)
  63191. defer func() {
  63192. if r := recover(); r != nil {
  63193. ec.Error(ctx, ec.Recover(ctx, r))
  63194. ret = graphql.Null
  63195. }
  63196. }()
  63197. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  63198. ctx = rctx // use context from middleware stack in children
  63199. return obj.PresentmentCurrencyCode, nil
  63200. })
  63201. if err != nil {
  63202. ec.Error(ctx, err)
  63203. return graphql.Null
  63204. }
  63205. if resTmp == nil {
  63206. if !graphql.HasFieldError(ctx, fc) {
  63207. ec.Errorf(ctx, "must not be null")
  63208. }
  63209. return graphql.Null
  63210. }
  63211. res := resTmp.(CurrencyCode)
  63212. fc.Result = res
  63213. return ec.marshalNCurrencyCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencyCode(ctx, field.Selections, res)
  63214. }
  63215. func (ec *executionContext) fieldContext_DraftOrder_presentmentCurrencyCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  63216. fc = &graphql.FieldContext{
  63217. Object: "DraftOrder",
  63218. Field: field,
  63219. IsMethod: false,
  63220. IsResolver: false,
  63221. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  63222. return nil, errors.New("field of type CurrencyCode does not have child fields")
  63223. },
  63224. }
  63225. return fc, nil
  63226. }
  63227. func (ec *executionContext) _DraftOrder_privateMetafield(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  63228. fc, err := ec.fieldContext_DraftOrder_privateMetafield(ctx, field)
  63229. if err != nil {
  63230. return graphql.Null
  63231. }
  63232. ctx = graphql.WithFieldContext(ctx, fc)
  63233. defer func() {
  63234. if r := recover(); r != nil {
  63235. ec.Error(ctx, ec.Recover(ctx, r))
  63236. ret = graphql.Null
  63237. }
  63238. }()
  63239. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  63240. ctx = rctx // use context from middleware stack in children
  63241. return obj.PrivateMetafield, nil
  63242. })
  63243. if err != nil {
  63244. ec.Error(ctx, err)
  63245. return graphql.Null
  63246. }
  63247. if resTmp == nil {
  63248. return graphql.Null
  63249. }
  63250. res := resTmp.(*PrivateMetafield)
  63251. fc.Result = res
  63252. return ec.marshalOPrivateMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafield(ctx, field.Selections, res)
  63253. }
  63254. func (ec *executionContext) fieldContext_DraftOrder_privateMetafield(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  63255. fc = &graphql.FieldContext{
  63256. Object: "DraftOrder",
  63257. Field: field,
  63258. IsMethod: false,
  63259. IsResolver: false,
  63260. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  63261. switch field.Name {
  63262. case "createdAt":
  63263. return ec.fieldContext_PrivateMetafield_createdAt(ctx, field)
  63264. case "id":
  63265. return ec.fieldContext_PrivateMetafield_id(ctx, field)
  63266. case "key":
  63267. return ec.fieldContext_PrivateMetafield_key(ctx, field)
  63268. case "namespace":
  63269. return ec.fieldContext_PrivateMetafield_namespace(ctx, field)
  63270. case "updatedAt":
  63271. return ec.fieldContext_PrivateMetafield_updatedAt(ctx, field)
  63272. case "value":
  63273. return ec.fieldContext_PrivateMetafield_value(ctx, field)
  63274. case "valueType":
  63275. return ec.fieldContext_PrivateMetafield_valueType(ctx, field)
  63276. }
  63277. return nil, fmt.Errorf("no field named %q was found under type PrivateMetafield", field.Name)
  63278. },
  63279. }
  63280. defer func() {
  63281. if r := recover(); r != nil {
  63282. err = ec.Recover(ctx, r)
  63283. ec.Error(ctx, err)
  63284. }
  63285. }()
  63286. ctx = graphql.WithFieldContext(ctx, fc)
  63287. if fc.Args, err = ec.field_DraftOrder_privateMetafield_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  63288. ec.Error(ctx, err)
  63289. return
  63290. }
  63291. return fc, nil
  63292. }
  63293. func (ec *executionContext) _DraftOrder_privateMetafields(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  63294. fc, err := ec.fieldContext_DraftOrder_privateMetafields(ctx, field)
  63295. if err != nil {
  63296. return graphql.Null
  63297. }
  63298. ctx = graphql.WithFieldContext(ctx, fc)
  63299. defer func() {
  63300. if r := recover(); r != nil {
  63301. ec.Error(ctx, ec.Recover(ctx, r))
  63302. ret = graphql.Null
  63303. }
  63304. }()
  63305. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  63306. ctx = rctx // use context from middleware stack in children
  63307. return obj.PrivateMetafields, nil
  63308. })
  63309. if err != nil {
  63310. ec.Error(ctx, err)
  63311. return graphql.Null
  63312. }
  63313. if resTmp == nil {
  63314. if !graphql.HasFieldError(ctx, fc) {
  63315. ec.Errorf(ctx, "must not be null")
  63316. }
  63317. return graphql.Null
  63318. }
  63319. res := resTmp.(*PrivateMetafieldConnection)
  63320. fc.Result = res
  63321. return ec.marshalNPrivateMetafieldConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafieldConnection(ctx, field.Selections, res)
  63322. }
  63323. func (ec *executionContext) fieldContext_DraftOrder_privateMetafields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  63324. fc = &graphql.FieldContext{
  63325. Object: "DraftOrder",
  63326. Field: field,
  63327. IsMethod: false,
  63328. IsResolver: false,
  63329. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  63330. switch field.Name {
  63331. case "edges":
  63332. return ec.fieldContext_PrivateMetafieldConnection_edges(ctx, field)
  63333. case "nodes":
  63334. return ec.fieldContext_PrivateMetafieldConnection_nodes(ctx, field)
  63335. case "pageInfo":
  63336. return ec.fieldContext_PrivateMetafieldConnection_pageInfo(ctx, field)
  63337. }
  63338. return nil, fmt.Errorf("no field named %q was found under type PrivateMetafieldConnection", field.Name)
  63339. },
  63340. }
  63341. defer func() {
  63342. if r := recover(); r != nil {
  63343. err = ec.Recover(ctx, r)
  63344. ec.Error(ctx, err)
  63345. }
  63346. }()
  63347. ctx = graphql.WithFieldContext(ctx, fc)
  63348. if fc.Args, err = ec.field_DraftOrder_privateMetafields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  63349. ec.Error(ctx, err)
  63350. return
  63351. }
  63352. return fc, nil
  63353. }
  63354. func (ec *executionContext) _DraftOrder_purchasingEntity(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  63355. fc, err := ec.fieldContext_DraftOrder_purchasingEntity(ctx, field)
  63356. if err != nil {
  63357. return graphql.Null
  63358. }
  63359. ctx = graphql.WithFieldContext(ctx, fc)
  63360. defer func() {
  63361. if r := recover(); r != nil {
  63362. ec.Error(ctx, ec.Recover(ctx, r))
  63363. ret = graphql.Null
  63364. }
  63365. }()
  63366. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  63367. ctx = rctx // use context from middleware stack in children
  63368. return obj.PurchasingEntity, nil
  63369. })
  63370. if err != nil {
  63371. ec.Error(ctx, err)
  63372. return graphql.Null
  63373. }
  63374. if resTmp == nil {
  63375. return graphql.Null
  63376. }
  63377. res := resTmp.(PurchasingEntity)
  63378. fc.Result = res
  63379. return ec.marshalOPurchasingEntity2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPurchasingEntity(ctx, field.Selections, res)
  63380. }
  63381. func (ec *executionContext) fieldContext_DraftOrder_purchasingEntity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  63382. fc = &graphql.FieldContext{
  63383. Object: "DraftOrder",
  63384. Field: field,
  63385. IsMethod: false,
  63386. IsResolver: false,
  63387. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  63388. return nil, errors.New("field of type PurchasingEntity does not have child fields")
  63389. },
  63390. }
  63391. return fc, nil
  63392. }
  63393. func (ec *executionContext) _DraftOrder_ready(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  63394. fc, err := ec.fieldContext_DraftOrder_ready(ctx, field)
  63395. if err != nil {
  63396. return graphql.Null
  63397. }
  63398. ctx = graphql.WithFieldContext(ctx, fc)
  63399. defer func() {
  63400. if r := recover(); r != nil {
  63401. ec.Error(ctx, ec.Recover(ctx, r))
  63402. ret = graphql.Null
  63403. }
  63404. }()
  63405. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  63406. ctx = rctx // use context from middleware stack in children
  63407. return obj.Ready, nil
  63408. })
  63409. if err != nil {
  63410. ec.Error(ctx, err)
  63411. return graphql.Null
  63412. }
  63413. if resTmp == nil {
  63414. if !graphql.HasFieldError(ctx, fc) {
  63415. ec.Errorf(ctx, "must not be null")
  63416. }
  63417. return graphql.Null
  63418. }
  63419. res := resTmp.(bool)
  63420. fc.Result = res
  63421. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  63422. }
  63423. func (ec *executionContext) fieldContext_DraftOrder_ready(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  63424. fc = &graphql.FieldContext{
  63425. Object: "DraftOrder",
  63426. Field: field,
  63427. IsMethod: false,
  63428. IsResolver: false,
  63429. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  63430. return nil, errors.New("field of type Boolean does not have child fields")
  63431. },
  63432. }
  63433. return fc, nil
  63434. }
  63435. func (ec *executionContext) _DraftOrder_reserveInventoryUntil(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  63436. fc, err := ec.fieldContext_DraftOrder_reserveInventoryUntil(ctx, field)
  63437. if err != nil {
  63438. return graphql.Null
  63439. }
  63440. ctx = graphql.WithFieldContext(ctx, fc)
  63441. defer func() {
  63442. if r := recover(); r != nil {
  63443. ec.Error(ctx, ec.Recover(ctx, r))
  63444. ret = graphql.Null
  63445. }
  63446. }()
  63447. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  63448. ctx = rctx // use context from middleware stack in children
  63449. return obj.ReserveInventoryUntil, nil
  63450. })
  63451. if err != nil {
  63452. ec.Error(ctx, err)
  63453. return graphql.Null
  63454. }
  63455. if resTmp == nil {
  63456. return graphql.Null
  63457. }
  63458. res := resTmp.(*string)
  63459. fc.Result = res
  63460. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  63461. }
  63462. func (ec *executionContext) fieldContext_DraftOrder_reserveInventoryUntil(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  63463. fc = &graphql.FieldContext{
  63464. Object: "DraftOrder",
  63465. Field: field,
  63466. IsMethod: false,
  63467. IsResolver: false,
  63468. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  63469. return nil, errors.New("field of type DateTime does not have child fields")
  63470. },
  63471. }
  63472. return fc, nil
  63473. }
  63474. func (ec *executionContext) _DraftOrder_shippingAddress(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  63475. fc, err := ec.fieldContext_DraftOrder_shippingAddress(ctx, field)
  63476. if err != nil {
  63477. return graphql.Null
  63478. }
  63479. ctx = graphql.WithFieldContext(ctx, fc)
  63480. defer func() {
  63481. if r := recover(); r != nil {
  63482. ec.Error(ctx, ec.Recover(ctx, r))
  63483. ret = graphql.Null
  63484. }
  63485. }()
  63486. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  63487. ctx = rctx // use context from middleware stack in children
  63488. return obj.ShippingAddress, nil
  63489. })
  63490. if err != nil {
  63491. ec.Error(ctx, err)
  63492. return graphql.Null
  63493. }
  63494. if resTmp == nil {
  63495. return graphql.Null
  63496. }
  63497. res := resTmp.(*MailingAddress)
  63498. fc.Result = res
  63499. return ec.marshalOMailingAddress2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMailingAddress(ctx, field.Selections, res)
  63500. }
  63501. func (ec *executionContext) fieldContext_DraftOrder_shippingAddress(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  63502. fc = &graphql.FieldContext{
  63503. Object: "DraftOrder",
  63504. Field: field,
  63505. IsMethod: false,
  63506. IsResolver: false,
  63507. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  63508. switch field.Name {
  63509. case "address1":
  63510. return ec.fieldContext_MailingAddress_address1(ctx, field)
  63511. case "address2":
  63512. return ec.fieldContext_MailingAddress_address2(ctx, field)
  63513. case "city":
  63514. return ec.fieldContext_MailingAddress_city(ctx, field)
  63515. case "company":
  63516. return ec.fieldContext_MailingAddress_company(ctx, field)
  63517. case "coordinatesValidated":
  63518. return ec.fieldContext_MailingAddress_coordinatesValidated(ctx, field)
  63519. case "country":
  63520. return ec.fieldContext_MailingAddress_country(ctx, field)
  63521. case "countryCodeV2":
  63522. return ec.fieldContext_MailingAddress_countryCodeV2(ctx, field)
  63523. case "firstName":
  63524. return ec.fieldContext_MailingAddress_firstName(ctx, field)
  63525. case "formattedArea":
  63526. return ec.fieldContext_MailingAddress_formattedArea(ctx, field)
  63527. case "id":
  63528. return ec.fieldContext_MailingAddress_id(ctx, field)
  63529. case "lastName":
  63530. return ec.fieldContext_MailingAddress_lastName(ctx, field)
  63531. case "latitude":
  63532. return ec.fieldContext_MailingAddress_latitude(ctx, field)
  63533. case "longitude":
  63534. return ec.fieldContext_MailingAddress_longitude(ctx, field)
  63535. case "name":
  63536. return ec.fieldContext_MailingAddress_name(ctx, field)
  63537. case "phone":
  63538. return ec.fieldContext_MailingAddress_phone(ctx, field)
  63539. case "province":
  63540. return ec.fieldContext_MailingAddress_province(ctx, field)
  63541. case "provinceCode":
  63542. return ec.fieldContext_MailingAddress_provinceCode(ctx, field)
  63543. case "zip":
  63544. return ec.fieldContext_MailingAddress_zip(ctx, field)
  63545. }
  63546. return nil, fmt.Errorf("no field named %q was found under type MailingAddress", field.Name)
  63547. },
  63548. }
  63549. return fc, nil
  63550. }
  63551. func (ec *executionContext) _DraftOrder_shippingLine(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  63552. fc, err := ec.fieldContext_DraftOrder_shippingLine(ctx, field)
  63553. if err != nil {
  63554. return graphql.Null
  63555. }
  63556. ctx = graphql.WithFieldContext(ctx, fc)
  63557. defer func() {
  63558. if r := recover(); r != nil {
  63559. ec.Error(ctx, ec.Recover(ctx, r))
  63560. ret = graphql.Null
  63561. }
  63562. }()
  63563. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  63564. ctx = rctx // use context from middleware stack in children
  63565. return obj.ShippingLine, nil
  63566. })
  63567. if err != nil {
  63568. ec.Error(ctx, err)
  63569. return graphql.Null
  63570. }
  63571. if resTmp == nil {
  63572. return graphql.Null
  63573. }
  63574. res := resTmp.(*ShippingLine)
  63575. fc.Result = res
  63576. return ec.marshalOShippingLine2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShippingLine(ctx, field.Selections, res)
  63577. }
  63578. func (ec *executionContext) fieldContext_DraftOrder_shippingLine(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  63579. fc = &graphql.FieldContext{
  63580. Object: "DraftOrder",
  63581. Field: field,
  63582. IsMethod: false,
  63583. IsResolver: false,
  63584. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  63585. switch field.Name {
  63586. case "carrierIdentifier":
  63587. return ec.fieldContext_ShippingLine_carrierIdentifier(ctx, field)
  63588. case "code":
  63589. return ec.fieldContext_ShippingLine_code(ctx, field)
  63590. case "custom":
  63591. return ec.fieldContext_ShippingLine_custom(ctx, field)
  63592. case "deliveryCategory":
  63593. return ec.fieldContext_ShippingLine_deliveryCategory(ctx, field)
  63594. case "discountAllocations":
  63595. return ec.fieldContext_ShippingLine_discountAllocations(ctx, field)
  63596. case "discountedPriceSet":
  63597. return ec.fieldContext_ShippingLine_discountedPriceSet(ctx, field)
  63598. case "id":
  63599. return ec.fieldContext_ShippingLine_id(ctx, field)
  63600. case "originalPriceSet":
  63601. return ec.fieldContext_ShippingLine_originalPriceSet(ctx, field)
  63602. case "phone":
  63603. return ec.fieldContext_ShippingLine_phone(ctx, field)
  63604. case "requestedFulfillmentService":
  63605. return ec.fieldContext_ShippingLine_requestedFulfillmentService(ctx, field)
  63606. case "shippingRateHandle":
  63607. return ec.fieldContext_ShippingLine_shippingRateHandle(ctx, field)
  63608. case "source":
  63609. return ec.fieldContext_ShippingLine_source(ctx, field)
  63610. case "taxLines":
  63611. return ec.fieldContext_ShippingLine_taxLines(ctx, field)
  63612. case "title":
  63613. return ec.fieldContext_ShippingLine_title(ctx, field)
  63614. }
  63615. return nil, fmt.Errorf("no field named %q was found under type ShippingLine", field.Name)
  63616. },
  63617. }
  63618. return fc, nil
  63619. }
  63620. func (ec *executionContext) _DraftOrder_status(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  63621. fc, err := ec.fieldContext_DraftOrder_status(ctx, field)
  63622. if err != nil {
  63623. return graphql.Null
  63624. }
  63625. ctx = graphql.WithFieldContext(ctx, fc)
  63626. defer func() {
  63627. if r := recover(); r != nil {
  63628. ec.Error(ctx, ec.Recover(ctx, r))
  63629. ret = graphql.Null
  63630. }
  63631. }()
  63632. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  63633. ctx = rctx // use context from middleware stack in children
  63634. return obj.Status, nil
  63635. })
  63636. if err != nil {
  63637. ec.Error(ctx, err)
  63638. return graphql.Null
  63639. }
  63640. if resTmp == nil {
  63641. if !graphql.HasFieldError(ctx, fc) {
  63642. ec.Errorf(ctx, "must not be null")
  63643. }
  63644. return graphql.Null
  63645. }
  63646. res := resTmp.(DraftOrderStatus)
  63647. fc.Result = res
  63648. return ec.marshalNDraftOrderStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderStatus(ctx, field.Selections, res)
  63649. }
  63650. func (ec *executionContext) fieldContext_DraftOrder_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  63651. fc = &graphql.FieldContext{
  63652. Object: "DraftOrder",
  63653. Field: field,
  63654. IsMethod: false,
  63655. IsResolver: false,
  63656. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  63657. return nil, errors.New("field of type DraftOrderStatus does not have child fields")
  63658. },
  63659. }
  63660. return fc, nil
  63661. }
  63662. func (ec *executionContext) _DraftOrder_subtotalPrice(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  63663. fc, err := ec.fieldContext_DraftOrder_subtotalPrice(ctx, field)
  63664. if err != nil {
  63665. return graphql.Null
  63666. }
  63667. ctx = graphql.WithFieldContext(ctx, fc)
  63668. defer func() {
  63669. if r := recover(); r != nil {
  63670. ec.Error(ctx, ec.Recover(ctx, r))
  63671. ret = graphql.Null
  63672. }
  63673. }()
  63674. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  63675. ctx = rctx // use context from middleware stack in children
  63676. return obj.SubtotalPrice, nil
  63677. })
  63678. if err != nil {
  63679. ec.Error(ctx, err)
  63680. return graphql.Null
  63681. }
  63682. if resTmp == nil {
  63683. if !graphql.HasFieldError(ctx, fc) {
  63684. ec.Errorf(ctx, "must not be null")
  63685. }
  63686. return graphql.Null
  63687. }
  63688. res := resTmp.(string)
  63689. fc.Result = res
  63690. return ec.marshalNMoney2string(ctx, field.Selections, res)
  63691. }
  63692. func (ec *executionContext) fieldContext_DraftOrder_subtotalPrice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  63693. fc = &graphql.FieldContext{
  63694. Object: "DraftOrder",
  63695. Field: field,
  63696. IsMethod: false,
  63697. IsResolver: false,
  63698. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  63699. return nil, errors.New("field of type Money does not have child fields")
  63700. },
  63701. }
  63702. return fc, nil
  63703. }
  63704. func (ec *executionContext) _DraftOrder_subtotalPriceSet(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  63705. fc, err := ec.fieldContext_DraftOrder_subtotalPriceSet(ctx, field)
  63706. if err != nil {
  63707. return graphql.Null
  63708. }
  63709. ctx = graphql.WithFieldContext(ctx, fc)
  63710. defer func() {
  63711. if r := recover(); r != nil {
  63712. ec.Error(ctx, ec.Recover(ctx, r))
  63713. ret = graphql.Null
  63714. }
  63715. }()
  63716. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  63717. ctx = rctx // use context from middleware stack in children
  63718. return obj.SubtotalPriceSet, nil
  63719. })
  63720. if err != nil {
  63721. ec.Error(ctx, err)
  63722. return graphql.Null
  63723. }
  63724. if resTmp == nil {
  63725. if !graphql.HasFieldError(ctx, fc) {
  63726. ec.Errorf(ctx, "must not be null")
  63727. }
  63728. return graphql.Null
  63729. }
  63730. res := resTmp.(*MoneyBag)
  63731. fc.Result = res
  63732. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  63733. }
  63734. func (ec *executionContext) fieldContext_DraftOrder_subtotalPriceSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  63735. fc = &graphql.FieldContext{
  63736. Object: "DraftOrder",
  63737. Field: field,
  63738. IsMethod: false,
  63739. IsResolver: false,
  63740. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  63741. switch field.Name {
  63742. case "presentmentMoney":
  63743. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  63744. case "shopMoney":
  63745. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  63746. }
  63747. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  63748. },
  63749. }
  63750. return fc, nil
  63751. }
  63752. func (ec *executionContext) _DraftOrder_tags(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  63753. fc, err := ec.fieldContext_DraftOrder_tags(ctx, field)
  63754. if err != nil {
  63755. return graphql.Null
  63756. }
  63757. ctx = graphql.WithFieldContext(ctx, fc)
  63758. defer func() {
  63759. if r := recover(); r != nil {
  63760. ec.Error(ctx, ec.Recover(ctx, r))
  63761. ret = graphql.Null
  63762. }
  63763. }()
  63764. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  63765. ctx = rctx // use context from middleware stack in children
  63766. return obj.Tags, nil
  63767. })
  63768. if err != nil {
  63769. ec.Error(ctx, err)
  63770. return graphql.Null
  63771. }
  63772. if resTmp == nil {
  63773. if !graphql.HasFieldError(ctx, fc) {
  63774. ec.Errorf(ctx, "must not be null")
  63775. }
  63776. return graphql.Null
  63777. }
  63778. res := resTmp.([]string)
  63779. fc.Result = res
  63780. return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
  63781. }
  63782. func (ec *executionContext) fieldContext_DraftOrder_tags(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  63783. fc = &graphql.FieldContext{
  63784. Object: "DraftOrder",
  63785. Field: field,
  63786. IsMethod: false,
  63787. IsResolver: false,
  63788. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  63789. return nil, errors.New("field of type String does not have child fields")
  63790. },
  63791. }
  63792. return fc, nil
  63793. }
  63794. func (ec *executionContext) _DraftOrder_taxExempt(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  63795. fc, err := ec.fieldContext_DraftOrder_taxExempt(ctx, field)
  63796. if err != nil {
  63797. return graphql.Null
  63798. }
  63799. ctx = graphql.WithFieldContext(ctx, fc)
  63800. defer func() {
  63801. if r := recover(); r != nil {
  63802. ec.Error(ctx, ec.Recover(ctx, r))
  63803. ret = graphql.Null
  63804. }
  63805. }()
  63806. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  63807. ctx = rctx // use context from middleware stack in children
  63808. return obj.TaxExempt, nil
  63809. })
  63810. if err != nil {
  63811. ec.Error(ctx, err)
  63812. return graphql.Null
  63813. }
  63814. if resTmp == nil {
  63815. if !graphql.HasFieldError(ctx, fc) {
  63816. ec.Errorf(ctx, "must not be null")
  63817. }
  63818. return graphql.Null
  63819. }
  63820. res := resTmp.(bool)
  63821. fc.Result = res
  63822. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  63823. }
  63824. func (ec *executionContext) fieldContext_DraftOrder_taxExempt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  63825. fc = &graphql.FieldContext{
  63826. Object: "DraftOrder",
  63827. Field: field,
  63828. IsMethod: false,
  63829. IsResolver: false,
  63830. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  63831. return nil, errors.New("field of type Boolean does not have child fields")
  63832. },
  63833. }
  63834. return fc, nil
  63835. }
  63836. func (ec *executionContext) _DraftOrder_taxLines(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  63837. fc, err := ec.fieldContext_DraftOrder_taxLines(ctx, field)
  63838. if err != nil {
  63839. return graphql.Null
  63840. }
  63841. ctx = graphql.WithFieldContext(ctx, fc)
  63842. defer func() {
  63843. if r := recover(); r != nil {
  63844. ec.Error(ctx, ec.Recover(ctx, r))
  63845. ret = graphql.Null
  63846. }
  63847. }()
  63848. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  63849. ctx = rctx // use context from middleware stack in children
  63850. return obj.TaxLines, nil
  63851. })
  63852. if err != nil {
  63853. ec.Error(ctx, err)
  63854. return graphql.Null
  63855. }
  63856. if resTmp == nil {
  63857. if !graphql.HasFieldError(ctx, fc) {
  63858. ec.Errorf(ctx, "must not be null")
  63859. }
  63860. return graphql.Null
  63861. }
  63862. res := resTmp.([]*TaxLine)
  63863. fc.Result = res
  63864. return ec.marshalNTaxLine2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐTaxLineᚄ(ctx, field.Selections, res)
  63865. }
  63866. func (ec *executionContext) fieldContext_DraftOrder_taxLines(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  63867. fc = &graphql.FieldContext{
  63868. Object: "DraftOrder",
  63869. Field: field,
  63870. IsMethod: false,
  63871. IsResolver: false,
  63872. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  63873. switch field.Name {
  63874. case "channelLiable":
  63875. return ec.fieldContext_TaxLine_channelLiable(ctx, field)
  63876. case "priceSet":
  63877. return ec.fieldContext_TaxLine_priceSet(ctx, field)
  63878. case "rate":
  63879. return ec.fieldContext_TaxLine_rate(ctx, field)
  63880. case "ratePercentage":
  63881. return ec.fieldContext_TaxLine_ratePercentage(ctx, field)
  63882. case "title":
  63883. return ec.fieldContext_TaxLine_title(ctx, field)
  63884. }
  63885. return nil, fmt.Errorf("no field named %q was found under type TaxLine", field.Name)
  63886. },
  63887. }
  63888. return fc, nil
  63889. }
  63890. func (ec *executionContext) _DraftOrder_taxesIncluded(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  63891. fc, err := ec.fieldContext_DraftOrder_taxesIncluded(ctx, field)
  63892. if err != nil {
  63893. return graphql.Null
  63894. }
  63895. ctx = graphql.WithFieldContext(ctx, fc)
  63896. defer func() {
  63897. if r := recover(); r != nil {
  63898. ec.Error(ctx, ec.Recover(ctx, r))
  63899. ret = graphql.Null
  63900. }
  63901. }()
  63902. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  63903. ctx = rctx // use context from middleware stack in children
  63904. return obj.TaxesIncluded, nil
  63905. })
  63906. if err != nil {
  63907. ec.Error(ctx, err)
  63908. return graphql.Null
  63909. }
  63910. if resTmp == nil {
  63911. if !graphql.HasFieldError(ctx, fc) {
  63912. ec.Errorf(ctx, "must not be null")
  63913. }
  63914. return graphql.Null
  63915. }
  63916. res := resTmp.(bool)
  63917. fc.Result = res
  63918. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  63919. }
  63920. func (ec *executionContext) fieldContext_DraftOrder_taxesIncluded(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  63921. fc = &graphql.FieldContext{
  63922. Object: "DraftOrder",
  63923. Field: field,
  63924. IsMethod: false,
  63925. IsResolver: false,
  63926. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  63927. return nil, errors.New("field of type Boolean does not have child fields")
  63928. },
  63929. }
  63930. return fc, nil
  63931. }
  63932. func (ec *executionContext) _DraftOrder_totalDiscountsSet(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  63933. fc, err := ec.fieldContext_DraftOrder_totalDiscountsSet(ctx, field)
  63934. if err != nil {
  63935. return graphql.Null
  63936. }
  63937. ctx = graphql.WithFieldContext(ctx, fc)
  63938. defer func() {
  63939. if r := recover(); r != nil {
  63940. ec.Error(ctx, ec.Recover(ctx, r))
  63941. ret = graphql.Null
  63942. }
  63943. }()
  63944. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  63945. ctx = rctx // use context from middleware stack in children
  63946. return obj.TotalDiscountsSet, nil
  63947. })
  63948. if err != nil {
  63949. ec.Error(ctx, err)
  63950. return graphql.Null
  63951. }
  63952. if resTmp == nil {
  63953. if !graphql.HasFieldError(ctx, fc) {
  63954. ec.Errorf(ctx, "must not be null")
  63955. }
  63956. return graphql.Null
  63957. }
  63958. res := resTmp.(*MoneyBag)
  63959. fc.Result = res
  63960. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  63961. }
  63962. func (ec *executionContext) fieldContext_DraftOrder_totalDiscountsSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  63963. fc = &graphql.FieldContext{
  63964. Object: "DraftOrder",
  63965. Field: field,
  63966. IsMethod: false,
  63967. IsResolver: false,
  63968. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  63969. switch field.Name {
  63970. case "presentmentMoney":
  63971. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  63972. case "shopMoney":
  63973. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  63974. }
  63975. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  63976. },
  63977. }
  63978. return fc, nil
  63979. }
  63980. func (ec *executionContext) _DraftOrder_totalLineItemsPriceSet(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  63981. fc, err := ec.fieldContext_DraftOrder_totalLineItemsPriceSet(ctx, field)
  63982. if err != nil {
  63983. return graphql.Null
  63984. }
  63985. ctx = graphql.WithFieldContext(ctx, fc)
  63986. defer func() {
  63987. if r := recover(); r != nil {
  63988. ec.Error(ctx, ec.Recover(ctx, r))
  63989. ret = graphql.Null
  63990. }
  63991. }()
  63992. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  63993. ctx = rctx // use context from middleware stack in children
  63994. return obj.TotalLineItemsPriceSet, nil
  63995. })
  63996. if err != nil {
  63997. ec.Error(ctx, err)
  63998. return graphql.Null
  63999. }
  64000. if resTmp == nil {
  64001. if !graphql.HasFieldError(ctx, fc) {
  64002. ec.Errorf(ctx, "must not be null")
  64003. }
  64004. return graphql.Null
  64005. }
  64006. res := resTmp.(*MoneyBag)
  64007. fc.Result = res
  64008. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  64009. }
  64010. func (ec *executionContext) fieldContext_DraftOrder_totalLineItemsPriceSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  64011. fc = &graphql.FieldContext{
  64012. Object: "DraftOrder",
  64013. Field: field,
  64014. IsMethod: false,
  64015. IsResolver: false,
  64016. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  64017. switch field.Name {
  64018. case "presentmentMoney":
  64019. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  64020. case "shopMoney":
  64021. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  64022. }
  64023. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  64024. },
  64025. }
  64026. return fc, nil
  64027. }
  64028. func (ec *executionContext) _DraftOrder_totalPrice(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  64029. fc, err := ec.fieldContext_DraftOrder_totalPrice(ctx, field)
  64030. if err != nil {
  64031. return graphql.Null
  64032. }
  64033. ctx = graphql.WithFieldContext(ctx, fc)
  64034. defer func() {
  64035. if r := recover(); r != nil {
  64036. ec.Error(ctx, ec.Recover(ctx, r))
  64037. ret = graphql.Null
  64038. }
  64039. }()
  64040. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  64041. ctx = rctx // use context from middleware stack in children
  64042. return obj.TotalPrice, nil
  64043. })
  64044. if err != nil {
  64045. ec.Error(ctx, err)
  64046. return graphql.Null
  64047. }
  64048. if resTmp == nil {
  64049. if !graphql.HasFieldError(ctx, fc) {
  64050. ec.Errorf(ctx, "must not be null")
  64051. }
  64052. return graphql.Null
  64053. }
  64054. res := resTmp.(string)
  64055. fc.Result = res
  64056. return ec.marshalNMoney2string(ctx, field.Selections, res)
  64057. }
  64058. func (ec *executionContext) fieldContext_DraftOrder_totalPrice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  64059. fc = &graphql.FieldContext{
  64060. Object: "DraftOrder",
  64061. Field: field,
  64062. IsMethod: false,
  64063. IsResolver: false,
  64064. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  64065. return nil, errors.New("field of type Money does not have child fields")
  64066. },
  64067. }
  64068. return fc, nil
  64069. }
  64070. func (ec *executionContext) _DraftOrder_totalPriceSet(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  64071. fc, err := ec.fieldContext_DraftOrder_totalPriceSet(ctx, field)
  64072. if err != nil {
  64073. return graphql.Null
  64074. }
  64075. ctx = graphql.WithFieldContext(ctx, fc)
  64076. defer func() {
  64077. if r := recover(); r != nil {
  64078. ec.Error(ctx, ec.Recover(ctx, r))
  64079. ret = graphql.Null
  64080. }
  64081. }()
  64082. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  64083. ctx = rctx // use context from middleware stack in children
  64084. return obj.TotalPriceSet, nil
  64085. })
  64086. if err != nil {
  64087. ec.Error(ctx, err)
  64088. return graphql.Null
  64089. }
  64090. if resTmp == nil {
  64091. if !graphql.HasFieldError(ctx, fc) {
  64092. ec.Errorf(ctx, "must not be null")
  64093. }
  64094. return graphql.Null
  64095. }
  64096. res := resTmp.(*MoneyBag)
  64097. fc.Result = res
  64098. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  64099. }
  64100. func (ec *executionContext) fieldContext_DraftOrder_totalPriceSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  64101. fc = &graphql.FieldContext{
  64102. Object: "DraftOrder",
  64103. Field: field,
  64104. IsMethod: false,
  64105. IsResolver: false,
  64106. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  64107. switch field.Name {
  64108. case "presentmentMoney":
  64109. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  64110. case "shopMoney":
  64111. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  64112. }
  64113. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  64114. },
  64115. }
  64116. return fc, nil
  64117. }
  64118. func (ec *executionContext) _DraftOrder_totalShippingPrice(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  64119. fc, err := ec.fieldContext_DraftOrder_totalShippingPrice(ctx, field)
  64120. if err != nil {
  64121. return graphql.Null
  64122. }
  64123. ctx = graphql.WithFieldContext(ctx, fc)
  64124. defer func() {
  64125. if r := recover(); r != nil {
  64126. ec.Error(ctx, ec.Recover(ctx, r))
  64127. ret = graphql.Null
  64128. }
  64129. }()
  64130. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  64131. ctx = rctx // use context from middleware stack in children
  64132. return obj.TotalShippingPrice, nil
  64133. })
  64134. if err != nil {
  64135. ec.Error(ctx, err)
  64136. return graphql.Null
  64137. }
  64138. if resTmp == nil {
  64139. if !graphql.HasFieldError(ctx, fc) {
  64140. ec.Errorf(ctx, "must not be null")
  64141. }
  64142. return graphql.Null
  64143. }
  64144. res := resTmp.(string)
  64145. fc.Result = res
  64146. return ec.marshalNMoney2string(ctx, field.Selections, res)
  64147. }
  64148. func (ec *executionContext) fieldContext_DraftOrder_totalShippingPrice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  64149. fc = &graphql.FieldContext{
  64150. Object: "DraftOrder",
  64151. Field: field,
  64152. IsMethod: false,
  64153. IsResolver: false,
  64154. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  64155. return nil, errors.New("field of type Money does not have child fields")
  64156. },
  64157. }
  64158. return fc, nil
  64159. }
  64160. func (ec *executionContext) _DraftOrder_totalShippingPriceSet(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  64161. fc, err := ec.fieldContext_DraftOrder_totalShippingPriceSet(ctx, field)
  64162. if err != nil {
  64163. return graphql.Null
  64164. }
  64165. ctx = graphql.WithFieldContext(ctx, fc)
  64166. defer func() {
  64167. if r := recover(); r != nil {
  64168. ec.Error(ctx, ec.Recover(ctx, r))
  64169. ret = graphql.Null
  64170. }
  64171. }()
  64172. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  64173. ctx = rctx // use context from middleware stack in children
  64174. return obj.TotalShippingPriceSet, nil
  64175. })
  64176. if err != nil {
  64177. ec.Error(ctx, err)
  64178. return graphql.Null
  64179. }
  64180. if resTmp == nil {
  64181. if !graphql.HasFieldError(ctx, fc) {
  64182. ec.Errorf(ctx, "must not be null")
  64183. }
  64184. return graphql.Null
  64185. }
  64186. res := resTmp.(*MoneyBag)
  64187. fc.Result = res
  64188. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  64189. }
  64190. func (ec *executionContext) fieldContext_DraftOrder_totalShippingPriceSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  64191. fc = &graphql.FieldContext{
  64192. Object: "DraftOrder",
  64193. Field: field,
  64194. IsMethod: false,
  64195. IsResolver: false,
  64196. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  64197. switch field.Name {
  64198. case "presentmentMoney":
  64199. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  64200. case "shopMoney":
  64201. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  64202. }
  64203. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  64204. },
  64205. }
  64206. return fc, nil
  64207. }
  64208. func (ec *executionContext) _DraftOrder_totalTax(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  64209. fc, err := ec.fieldContext_DraftOrder_totalTax(ctx, field)
  64210. if err != nil {
  64211. return graphql.Null
  64212. }
  64213. ctx = graphql.WithFieldContext(ctx, fc)
  64214. defer func() {
  64215. if r := recover(); r != nil {
  64216. ec.Error(ctx, ec.Recover(ctx, r))
  64217. ret = graphql.Null
  64218. }
  64219. }()
  64220. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  64221. ctx = rctx // use context from middleware stack in children
  64222. return obj.TotalTax, nil
  64223. })
  64224. if err != nil {
  64225. ec.Error(ctx, err)
  64226. return graphql.Null
  64227. }
  64228. if resTmp == nil {
  64229. if !graphql.HasFieldError(ctx, fc) {
  64230. ec.Errorf(ctx, "must not be null")
  64231. }
  64232. return graphql.Null
  64233. }
  64234. res := resTmp.(string)
  64235. fc.Result = res
  64236. return ec.marshalNMoney2string(ctx, field.Selections, res)
  64237. }
  64238. func (ec *executionContext) fieldContext_DraftOrder_totalTax(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  64239. fc = &graphql.FieldContext{
  64240. Object: "DraftOrder",
  64241. Field: field,
  64242. IsMethod: false,
  64243. IsResolver: false,
  64244. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  64245. return nil, errors.New("field of type Money does not have child fields")
  64246. },
  64247. }
  64248. return fc, nil
  64249. }
  64250. func (ec *executionContext) _DraftOrder_totalTaxSet(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  64251. fc, err := ec.fieldContext_DraftOrder_totalTaxSet(ctx, field)
  64252. if err != nil {
  64253. return graphql.Null
  64254. }
  64255. ctx = graphql.WithFieldContext(ctx, fc)
  64256. defer func() {
  64257. if r := recover(); r != nil {
  64258. ec.Error(ctx, ec.Recover(ctx, r))
  64259. ret = graphql.Null
  64260. }
  64261. }()
  64262. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  64263. ctx = rctx // use context from middleware stack in children
  64264. return obj.TotalTaxSet, nil
  64265. })
  64266. if err != nil {
  64267. ec.Error(ctx, err)
  64268. return graphql.Null
  64269. }
  64270. if resTmp == nil {
  64271. if !graphql.HasFieldError(ctx, fc) {
  64272. ec.Errorf(ctx, "must not be null")
  64273. }
  64274. return graphql.Null
  64275. }
  64276. res := resTmp.(*MoneyBag)
  64277. fc.Result = res
  64278. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  64279. }
  64280. func (ec *executionContext) fieldContext_DraftOrder_totalTaxSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  64281. fc = &graphql.FieldContext{
  64282. Object: "DraftOrder",
  64283. Field: field,
  64284. IsMethod: false,
  64285. IsResolver: false,
  64286. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  64287. switch field.Name {
  64288. case "presentmentMoney":
  64289. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  64290. case "shopMoney":
  64291. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  64292. }
  64293. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  64294. },
  64295. }
  64296. return fc, nil
  64297. }
  64298. func (ec *executionContext) _DraftOrder_totalWeight(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  64299. fc, err := ec.fieldContext_DraftOrder_totalWeight(ctx, field)
  64300. if err != nil {
  64301. return graphql.Null
  64302. }
  64303. ctx = graphql.WithFieldContext(ctx, fc)
  64304. defer func() {
  64305. if r := recover(); r != nil {
  64306. ec.Error(ctx, ec.Recover(ctx, r))
  64307. ret = graphql.Null
  64308. }
  64309. }()
  64310. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  64311. ctx = rctx // use context from middleware stack in children
  64312. return obj.TotalWeight, nil
  64313. })
  64314. if err != nil {
  64315. ec.Error(ctx, err)
  64316. return graphql.Null
  64317. }
  64318. if resTmp == nil {
  64319. if !graphql.HasFieldError(ctx, fc) {
  64320. ec.Errorf(ctx, "must not be null")
  64321. }
  64322. return graphql.Null
  64323. }
  64324. res := resTmp.(string)
  64325. fc.Result = res
  64326. return ec.marshalNUnsignedInt642string(ctx, field.Selections, res)
  64327. }
  64328. func (ec *executionContext) fieldContext_DraftOrder_totalWeight(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  64329. fc = &graphql.FieldContext{
  64330. Object: "DraftOrder",
  64331. Field: field,
  64332. IsMethod: false,
  64333. IsResolver: false,
  64334. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  64335. return nil, errors.New("field of type UnsignedInt64 does not have child fields")
  64336. },
  64337. }
  64338. return fc, nil
  64339. }
  64340. func (ec *executionContext) _DraftOrder_updatedAt(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  64341. fc, err := ec.fieldContext_DraftOrder_updatedAt(ctx, field)
  64342. if err != nil {
  64343. return graphql.Null
  64344. }
  64345. ctx = graphql.WithFieldContext(ctx, fc)
  64346. defer func() {
  64347. if r := recover(); r != nil {
  64348. ec.Error(ctx, ec.Recover(ctx, r))
  64349. ret = graphql.Null
  64350. }
  64351. }()
  64352. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  64353. ctx = rctx // use context from middleware stack in children
  64354. return obj.UpdatedAt, nil
  64355. })
  64356. if err != nil {
  64357. ec.Error(ctx, err)
  64358. return graphql.Null
  64359. }
  64360. if resTmp == nil {
  64361. if !graphql.HasFieldError(ctx, fc) {
  64362. ec.Errorf(ctx, "must not be null")
  64363. }
  64364. return graphql.Null
  64365. }
  64366. res := resTmp.(string)
  64367. fc.Result = res
  64368. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  64369. }
  64370. func (ec *executionContext) fieldContext_DraftOrder_updatedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  64371. fc = &graphql.FieldContext{
  64372. Object: "DraftOrder",
  64373. Field: field,
  64374. IsMethod: false,
  64375. IsResolver: false,
  64376. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  64377. return nil, errors.New("field of type DateTime does not have child fields")
  64378. },
  64379. }
  64380. return fc, nil
  64381. }
  64382. func (ec *executionContext) _DraftOrder_visibleToCustomer(ctx context.Context, field graphql.CollectedField, obj *DraftOrder) (ret graphql.Marshaler) {
  64383. fc, err := ec.fieldContext_DraftOrder_visibleToCustomer(ctx, field)
  64384. if err != nil {
  64385. return graphql.Null
  64386. }
  64387. ctx = graphql.WithFieldContext(ctx, fc)
  64388. defer func() {
  64389. if r := recover(); r != nil {
  64390. ec.Error(ctx, ec.Recover(ctx, r))
  64391. ret = graphql.Null
  64392. }
  64393. }()
  64394. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  64395. ctx = rctx // use context from middleware stack in children
  64396. return obj.VisibleToCustomer, nil
  64397. })
  64398. if err != nil {
  64399. ec.Error(ctx, err)
  64400. return graphql.Null
  64401. }
  64402. if resTmp == nil {
  64403. if !graphql.HasFieldError(ctx, fc) {
  64404. ec.Errorf(ctx, "must not be null")
  64405. }
  64406. return graphql.Null
  64407. }
  64408. res := resTmp.(bool)
  64409. fc.Result = res
  64410. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  64411. }
  64412. func (ec *executionContext) fieldContext_DraftOrder_visibleToCustomer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  64413. fc = &graphql.FieldContext{
  64414. Object: "DraftOrder",
  64415. Field: field,
  64416. IsMethod: false,
  64417. IsResolver: false,
  64418. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  64419. return nil, errors.New("field of type Boolean does not have child fields")
  64420. },
  64421. }
  64422. return fc, nil
  64423. }
  64424. func (ec *executionContext) _DraftOrderAppliedDiscount_amountSet(ctx context.Context, field graphql.CollectedField, obj *DraftOrderAppliedDiscount) (ret graphql.Marshaler) {
  64425. fc, err := ec.fieldContext_DraftOrderAppliedDiscount_amountSet(ctx, field)
  64426. if err != nil {
  64427. return graphql.Null
  64428. }
  64429. ctx = graphql.WithFieldContext(ctx, fc)
  64430. defer func() {
  64431. if r := recover(); r != nil {
  64432. ec.Error(ctx, ec.Recover(ctx, r))
  64433. ret = graphql.Null
  64434. }
  64435. }()
  64436. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  64437. ctx = rctx // use context from middleware stack in children
  64438. return obj.AmountSet, nil
  64439. })
  64440. if err != nil {
  64441. ec.Error(ctx, err)
  64442. return graphql.Null
  64443. }
  64444. if resTmp == nil {
  64445. if !graphql.HasFieldError(ctx, fc) {
  64446. ec.Errorf(ctx, "must not be null")
  64447. }
  64448. return graphql.Null
  64449. }
  64450. res := resTmp.(*MoneyBag)
  64451. fc.Result = res
  64452. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  64453. }
  64454. func (ec *executionContext) fieldContext_DraftOrderAppliedDiscount_amountSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  64455. fc = &graphql.FieldContext{
  64456. Object: "DraftOrderAppliedDiscount",
  64457. Field: field,
  64458. IsMethod: false,
  64459. IsResolver: false,
  64460. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  64461. switch field.Name {
  64462. case "presentmentMoney":
  64463. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  64464. case "shopMoney":
  64465. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  64466. }
  64467. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  64468. },
  64469. }
  64470. return fc, nil
  64471. }
  64472. func (ec *executionContext) _DraftOrderAppliedDiscount_amountV2(ctx context.Context, field graphql.CollectedField, obj *DraftOrderAppliedDiscount) (ret graphql.Marshaler) {
  64473. fc, err := ec.fieldContext_DraftOrderAppliedDiscount_amountV2(ctx, field)
  64474. if err != nil {
  64475. return graphql.Null
  64476. }
  64477. ctx = graphql.WithFieldContext(ctx, fc)
  64478. defer func() {
  64479. if r := recover(); r != nil {
  64480. ec.Error(ctx, ec.Recover(ctx, r))
  64481. ret = graphql.Null
  64482. }
  64483. }()
  64484. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  64485. ctx = rctx // use context from middleware stack in children
  64486. return obj.AmountV2, nil
  64487. })
  64488. if err != nil {
  64489. ec.Error(ctx, err)
  64490. return graphql.Null
  64491. }
  64492. if resTmp == nil {
  64493. if !graphql.HasFieldError(ctx, fc) {
  64494. ec.Errorf(ctx, "must not be null")
  64495. }
  64496. return graphql.Null
  64497. }
  64498. res := resTmp.(*MoneyV2)
  64499. fc.Result = res
  64500. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  64501. }
  64502. func (ec *executionContext) fieldContext_DraftOrderAppliedDiscount_amountV2(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  64503. fc = &graphql.FieldContext{
  64504. Object: "DraftOrderAppliedDiscount",
  64505. Field: field,
  64506. IsMethod: false,
  64507. IsResolver: false,
  64508. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  64509. switch field.Name {
  64510. case "amount":
  64511. return ec.fieldContext_MoneyV2_amount(ctx, field)
  64512. case "currencyCode":
  64513. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  64514. }
  64515. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  64516. },
  64517. }
  64518. return fc, nil
  64519. }
  64520. func (ec *executionContext) _DraftOrderAppliedDiscount_description(ctx context.Context, field graphql.CollectedField, obj *DraftOrderAppliedDiscount) (ret graphql.Marshaler) {
  64521. fc, err := ec.fieldContext_DraftOrderAppliedDiscount_description(ctx, field)
  64522. if err != nil {
  64523. return graphql.Null
  64524. }
  64525. ctx = graphql.WithFieldContext(ctx, fc)
  64526. defer func() {
  64527. if r := recover(); r != nil {
  64528. ec.Error(ctx, ec.Recover(ctx, r))
  64529. ret = graphql.Null
  64530. }
  64531. }()
  64532. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  64533. ctx = rctx // use context from middleware stack in children
  64534. return obj.Description, nil
  64535. })
  64536. if err != nil {
  64537. ec.Error(ctx, err)
  64538. return graphql.Null
  64539. }
  64540. if resTmp == nil {
  64541. if !graphql.HasFieldError(ctx, fc) {
  64542. ec.Errorf(ctx, "must not be null")
  64543. }
  64544. return graphql.Null
  64545. }
  64546. res := resTmp.(string)
  64547. fc.Result = res
  64548. return ec.marshalNString2string(ctx, field.Selections, res)
  64549. }
  64550. func (ec *executionContext) fieldContext_DraftOrderAppliedDiscount_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  64551. fc = &graphql.FieldContext{
  64552. Object: "DraftOrderAppliedDiscount",
  64553. Field: field,
  64554. IsMethod: false,
  64555. IsResolver: false,
  64556. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  64557. return nil, errors.New("field of type String does not have child fields")
  64558. },
  64559. }
  64560. return fc, nil
  64561. }
  64562. func (ec *executionContext) _DraftOrderAppliedDiscount_title(ctx context.Context, field graphql.CollectedField, obj *DraftOrderAppliedDiscount) (ret graphql.Marshaler) {
  64563. fc, err := ec.fieldContext_DraftOrderAppliedDiscount_title(ctx, field)
  64564. if err != nil {
  64565. return graphql.Null
  64566. }
  64567. ctx = graphql.WithFieldContext(ctx, fc)
  64568. defer func() {
  64569. if r := recover(); r != nil {
  64570. ec.Error(ctx, ec.Recover(ctx, r))
  64571. ret = graphql.Null
  64572. }
  64573. }()
  64574. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  64575. ctx = rctx // use context from middleware stack in children
  64576. return obj.Title, nil
  64577. })
  64578. if err != nil {
  64579. ec.Error(ctx, err)
  64580. return graphql.Null
  64581. }
  64582. if resTmp == nil {
  64583. return graphql.Null
  64584. }
  64585. res := resTmp.(*string)
  64586. fc.Result = res
  64587. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  64588. }
  64589. func (ec *executionContext) fieldContext_DraftOrderAppliedDiscount_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  64590. fc = &graphql.FieldContext{
  64591. Object: "DraftOrderAppliedDiscount",
  64592. Field: field,
  64593. IsMethod: false,
  64594. IsResolver: false,
  64595. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  64596. return nil, errors.New("field of type String does not have child fields")
  64597. },
  64598. }
  64599. return fc, nil
  64600. }
  64601. func (ec *executionContext) _DraftOrderAppliedDiscount_value(ctx context.Context, field graphql.CollectedField, obj *DraftOrderAppliedDiscount) (ret graphql.Marshaler) {
  64602. fc, err := ec.fieldContext_DraftOrderAppliedDiscount_value(ctx, field)
  64603. if err != nil {
  64604. return graphql.Null
  64605. }
  64606. ctx = graphql.WithFieldContext(ctx, fc)
  64607. defer func() {
  64608. if r := recover(); r != nil {
  64609. ec.Error(ctx, ec.Recover(ctx, r))
  64610. ret = graphql.Null
  64611. }
  64612. }()
  64613. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  64614. ctx = rctx // use context from middleware stack in children
  64615. return obj.Value, nil
  64616. })
  64617. if err != nil {
  64618. ec.Error(ctx, err)
  64619. return graphql.Null
  64620. }
  64621. if resTmp == nil {
  64622. if !graphql.HasFieldError(ctx, fc) {
  64623. ec.Errorf(ctx, "must not be null")
  64624. }
  64625. return graphql.Null
  64626. }
  64627. res := resTmp.(float64)
  64628. fc.Result = res
  64629. return ec.marshalNFloat2float64(ctx, field.Selections, res)
  64630. }
  64631. func (ec *executionContext) fieldContext_DraftOrderAppliedDiscount_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  64632. fc = &graphql.FieldContext{
  64633. Object: "DraftOrderAppliedDiscount",
  64634. Field: field,
  64635. IsMethod: false,
  64636. IsResolver: false,
  64637. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  64638. return nil, errors.New("field of type Float does not have child fields")
  64639. },
  64640. }
  64641. return fc, nil
  64642. }
  64643. func (ec *executionContext) _DraftOrderAppliedDiscount_valueType(ctx context.Context, field graphql.CollectedField, obj *DraftOrderAppliedDiscount) (ret graphql.Marshaler) {
  64644. fc, err := ec.fieldContext_DraftOrderAppliedDiscount_valueType(ctx, field)
  64645. if err != nil {
  64646. return graphql.Null
  64647. }
  64648. ctx = graphql.WithFieldContext(ctx, fc)
  64649. defer func() {
  64650. if r := recover(); r != nil {
  64651. ec.Error(ctx, ec.Recover(ctx, r))
  64652. ret = graphql.Null
  64653. }
  64654. }()
  64655. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  64656. ctx = rctx // use context from middleware stack in children
  64657. return obj.ValueType, nil
  64658. })
  64659. if err != nil {
  64660. ec.Error(ctx, err)
  64661. return graphql.Null
  64662. }
  64663. if resTmp == nil {
  64664. if !graphql.HasFieldError(ctx, fc) {
  64665. ec.Errorf(ctx, "must not be null")
  64666. }
  64667. return graphql.Null
  64668. }
  64669. res := resTmp.(DraftOrderAppliedDiscountType)
  64670. fc.Result = res
  64671. return ec.marshalNDraftOrderAppliedDiscountType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderAppliedDiscountType(ctx, field.Selections, res)
  64672. }
  64673. func (ec *executionContext) fieldContext_DraftOrderAppliedDiscount_valueType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  64674. fc = &graphql.FieldContext{
  64675. Object: "DraftOrderAppliedDiscount",
  64676. Field: field,
  64677. IsMethod: false,
  64678. IsResolver: false,
  64679. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  64680. return nil, errors.New("field of type DraftOrderAppliedDiscountType does not have child fields")
  64681. },
  64682. }
  64683. return fc, nil
  64684. }
  64685. func (ec *executionContext) _DraftOrderConnection_edges(ctx context.Context, field graphql.CollectedField, obj *DraftOrderConnection) (ret graphql.Marshaler) {
  64686. fc, err := ec.fieldContext_DraftOrderConnection_edges(ctx, field)
  64687. if err != nil {
  64688. return graphql.Null
  64689. }
  64690. ctx = graphql.WithFieldContext(ctx, fc)
  64691. defer func() {
  64692. if r := recover(); r != nil {
  64693. ec.Error(ctx, ec.Recover(ctx, r))
  64694. ret = graphql.Null
  64695. }
  64696. }()
  64697. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  64698. ctx = rctx // use context from middleware stack in children
  64699. return obj.Edges, nil
  64700. })
  64701. if err != nil {
  64702. ec.Error(ctx, err)
  64703. return graphql.Null
  64704. }
  64705. if resTmp == nil {
  64706. if !graphql.HasFieldError(ctx, fc) {
  64707. ec.Errorf(ctx, "must not be null")
  64708. }
  64709. return graphql.Null
  64710. }
  64711. res := resTmp.([]*DraftOrderEdge)
  64712. fc.Result = res
  64713. return ec.marshalNDraftOrderEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderEdgeᚄ(ctx, field.Selections, res)
  64714. }
  64715. func (ec *executionContext) fieldContext_DraftOrderConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  64716. fc = &graphql.FieldContext{
  64717. Object: "DraftOrderConnection",
  64718. Field: field,
  64719. IsMethod: false,
  64720. IsResolver: false,
  64721. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  64722. switch field.Name {
  64723. case "cursor":
  64724. return ec.fieldContext_DraftOrderEdge_cursor(ctx, field)
  64725. case "node":
  64726. return ec.fieldContext_DraftOrderEdge_node(ctx, field)
  64727. }
  64728. return nil, fmt.Errorf("no field named %q was found under type DraftOrderEdge", field.Name)
  64729. },
  64730. }
  64731. return fc, nil
  64732. }
  64733. func (ec *executionContext) _DraftOrderConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *DraftOrderConnection) (ret graphql.Marshaler) {
  64734. fc, err := ec.fieldContext_DraftOrderConnection_nodes(ctx, field)
  64735. if err != nil {
  64736. return graphql.Null
  64737. }
  64738. ctx = graphql.WithFieldContext(ctx, fc)
  64739. defer func() {
  64740. if r := recover(); r != nil {
  64741. ec.Error(ctx, ec.Recover(ctx, r))
  64742. ret = graphql.Null
  64743. }
  64744. }()
  64745. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  64746. ctx = rctx // use context from middleware stack in children
  64747. return obj.Nodes, nil
  64748. })
  64749. if err != nil {
  64750. ec.Error(ctx, err)
  64751. return graphql.Null
  64752. }
  64753. if resTmp == nil {
  64754. if !graphql.HasFieldError(ctx, fc) {
  64755. ec.Errorf(ctx, "must not be null")
  64756. }
  64757. return graphql.Null
  64758. }
  64759. res := resTmp.([]*DraftOrder)
  64760. fc.Result = res
  64761. return ec.marshalNDraftOrder2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderᚄ(ctx, field.Selections, res)
  64762. }
  64763. func (ec *executionContext) fieldContext_DraftOrderConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  64764. fc = &graphql.FieldContext{
  64765. Object: "DraftOrderConnection",
  64766. Field: field,
  64767. IsMethod: false,
  64768. IsResolver: false,
  64769. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  64770. switch field.Name {
  64771. case "appliedDiscount":
  64772. return ec.fieldContext_DraftOrder_appliedDiscount(ctx, field)
  64773. case "billingAddress":
  64774. return ec.fieldContext_DraftOrder_billingAddress(ctx, field)
  64775. case "billingAddressMatchesShippingAddress":
  64776. return ec.fieldContext_DraftOrder_billingAddressMatchesShippingAddress(ctx, field)
  64777. case "completedAt":
  64778. return ec.fieldContext_DraftOrder_completedAt(ctx, field)
  64779. case "createdAt":
  64780. return ec.fieldContext_DraftOrder_createdAt(ctx, field)
  64781. case "currencyCode":
  64782. return ec.fieldContext_DraftOrder_currencyCode(ctx, field)
  64783. case "customAttributes":
  64784. return ec.fieldContext_DraftOrder_customAttributes(ctx, field)
  64785. case "customer":
  64786. return ec.fieldContext_DraftOrder_customer(ctx, field)
  64787. case "defaultCursor":
  64788. return ec.fieldContext_DraftOrder_defaultCursor(ctx, field)
  64789. case "email":
  64790. return ec.fieldContext_DraftOrder_email(ctx, field)
  64791. case "events":
  64792. return ec.fieldContext_DraftOrder_events(ctx, field)
  64793. case "hasTimelineComment":
  64794. return ec.fieldContext_DraftOrder_hasTimelineComment(ctx, field)
  64795. case "id":
  64796. return ec.fieldContext_DraftOrder_id(ctx, field)
  64797. case "invoiceEmailTemplateSubject":
  64798. return ec.fieldContext_DraftOrder_invoiceEmailTemplateSubject(ctx, field)
  64799. case "invoiceSentAt":
  64800. return ec.fieldContext_DraftOrder_invoiceSentAt(ctx, field)
  64801. case "invoiceUrl":
  64802. return ec.fieldContext_DraftOrder_invoiceUrl(ctx, field)
  64803. case "legacyResourceId":
  64804. return ec.fieldContext_DraftOrder_legacyResourceId(ctx, field)
  64805. case "lineItems":
  64806. return ec.fieldContext_DraftOrder_lineItems(ctx, field)
  64807. case "lineItemsSubtotalPrice":
  64808. return ec.fieldContext_DraftOrder_lineItemsSubtotalPrice(ctx, field)
  64809. case "localizationExtensions":
  64810. return ec.fieldContext_DraftOrder_localizationExtensions(ctx, field)
  64811. case "marketName":
  64812. return ec.fieldContext_DraftOrder_marketName(ctx, field)
  64813. case "marketRegionCountryCode":
  64814. return ec.fieldContext_DraftOrder_marketRegionCountryCode(ctx, field)
  64815. case "metafield":
  64816. return ec.fieldContext_DraftOrder_metafield(ctx, field)
  64817. case "metafields":
  64818. return ec.fieldContext_DraftOrder_metafields(ctx, field)
  64819. case "name":
  64820. return ec.fieldContext_DraftOrder_name(ctx, field)
  64821. case "note2":
  64822. return ec.fieldContext_DraftOrder_note2(ctx, field)
  64823. case "order":
  64824. return ec.fieldContext_DraftOrder_order(ctx, field)
  64825. case "paymentTerms":
  64826. return ec.fieldContext_DraftOrder_paymentTerms(ctx, field)
  64827. case "phone":
  64828. return ec.fieldContext_DraftOrder_phone(ctx, field)
  64829. case "presentmentCurrencyCode":
  64830. return ec.fieldContext_DraftOrder_presentmentCurrencyCode(ctx, field)
  64831. case "privateMetafield":
  64832. return ec.fieldContext_DraftOrder_privateMetafield(ctx, field)
  64833. case "privateMetafields":
  64834. return ec.fieldContext_DraftOrder_privateMetafields(ctx, field)
  64835. case "purchasingEntity":
  64836. return ec.fieldContext_DraftOrder_purchasingEntity(ctx, field)
  64837. case "ready":
  64838. return ec.fieldContext_DraftOrder_ready(ctx, field)
  64839. case "reserveInventoryUntil":
  64840. return ec.fieldContext_DraftOrder_reserveInventoryUntil(ctx, field)
  64841. case "shippingAddress":
  64842. return ec.fieldContext_DraftOrder_shippingAddress(ctx, field)
  64843. case "shippingLine":
  64844. return ec.fieldContext_DraftOrder_shippingLine(ctx, field)
  64845. case "status":
  64846. return ec.fieldContext_DraftOrder_status(ctx, field)
  64847. case "subtotalPrice":
  64848. return ec.fieldContext_DraftOrder_subtotalPrice(ctx, field)
  64849. case "subtotalPriceSet":
  64850. return ec.fieldContext_DraftOrder_subtotalPriceSet(ctx, field)
  64851. case "tags":
  64852. return ec.fieldContext_DraftOrder_tags(ctx, field)
  64853. case "taxExempt":
  64854. return ec.fieldContext_DraftOrder_taxExempt(ctx, field)
  64855. case "taxLines":
  64856. return ec.fieldContext_DraftOrder_taxLines(ctx, field)
  64857. case "taxesIncluded":
  64858. return ec.fieldContext_DraftOrder_taxesIncluded(ctx, field)
  64859. case "totalDiscountsSet":
  64860. return ec.fieldContext_DraftOrder_totalDiscountsSet(ctx, field)
  64861. case "totalLineItemsPriceSet":
  64862. return ec.fieldContext_DraftOrder_totalLineItemsPriceSet(ctx, field)
  64863. case "totalPrice":
  64864. return ec.fieldContext_DraftOrder_totalPrice(ctx, field)
  64865. case "totalPriceSet":
  64866. return ec.fieldContext_DraftOrder_totalPriceSet(ctx, field)
  64867. case "totalShippingPrice":
  64868. return ec.fieldContext_DraftOrder_totalShippingPrice(ctx, field)
  64869. case "totalShippingPriceSet":
  64870. return ec.fieldContext_DraftOrder_totalShippingPriceSet(ctx, field)
  64871. case "totalTax":
  64872. return ec.fieldContext_DraftOrder_totalTax(ctx, field)
  64873. case "totalTaxSet":
  64874. return ec.fieldContext_DraftOrder_totalTaxSet(ctx, field)
  64875. case "totalWeight":
  64876. return ec.fieldContext_DraftOrder_totalWeight(ctx, field)
  64877. case "updatedAt":
  64878. return ec.fieldContext_DraftOrder_updatedAt(ctx, field)
  64879. case "visibleToCustomer":
  64880. return ec.fieldContext_DraftOrder_visibleToCustomer(ctx, field)
  64881. }
  64882. return nil, fmt.Errorf("no field named %q was found under type DraftOrder", field.Name)
  64883. },
  64884. }
  64885. return fc, nil
  64886. }
  64887. func (ec *executionContext) _DraftOrderConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *DraftOrderConnection) (ret graphql.Marshaler) {
  64888. fc, err := ec.fieldContext_DraftOrderConnection_pageInfo(ctx, field)
  64889. if err != nil {
  64890. return graphql.Null
  64891. }
  64892. ctx = graphql.WithFieldContext(ctx, fc)
  64893. defer func() {
  64894. if r := recover(); r != nil {
  64895. ec.Error(ctx, ec.Recover(ctx, r))
  64896. ret = graphql.Null
  64897. }
  64898. }()
  64899. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  64900. ctx = rctx // use context from middleware stack in children
  64901. return obj.PageInfo, nil
  64902. })
  64903. if err != nil {
  64904. ec.Error(ctx, err)
  64905. return graphql.Null
  64906. }
  64907. if resTmp == nil {
  64908. if !graphql.HasFieldError(ctx, fc) {
  64909. ec.Errorf(ctx, "must not be null")
  64910. }
  64911. return graphql.Null
  64912. }
  64913. res := resTmp.(*PageInfo)
  64914. fc.Result = res
  64915. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  64916. }
  64917. func (ec *executionContext) fieldContext_DraftOrderConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  64918. fc = &graphql.FieldContext{
  64919. Object: "DraftOrderConnection",
  64920. Field: field,
  64921. IsMethod: false,
  64922. IsResolver: false,
  64923. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  64924. switch field.Name {
  64925. case "endCursor":
  64926. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  64927. case "hasNextPage":
  64928. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  64929. case "hasPreviousPage":
  64930. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  64931. case "startCursor":
  64932. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  64933. }
  64934. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  64935. },
  64936. }
  64937. return fc, nil
  64938. }
  64939. func (ec *executionContext) _DraftOrderEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *DraftOrderEdge) (ret graphql.Marshaler) {
  64940. fc, err := ec.fieldContext_DraftOrderEdge_cursor(ctx, field)
  64941. if err != nil {
  64942. return graphql.Null
  64943. }
  64944. ctx = graphql.WithFieldContext(ctx, fc)
  64945. defer func() {
  64946. if r := recover(); r != nil {
  64947. ec.Error(ctx, ec.Recover(ctx, r))
  64948. ret = graphql.Null
  64949. }
  64950. }()
  64951. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  64952. ctx = rctx // use context from middleware stack in children
  64953. return obj.Cursor, nil
  64954. })
  64955. if err != nil {
  64956. ec.Error(ctx, err)
  64957. return graphql.Null
  64958. }
  64959. if resTmp == nil {
  64960. if !graphql.HasFieldError(ctx, fc) {
  64961. ec.Errorf(ctx, "must not be null")
  64962. }
  64963. return graphql.Null
  64964. }
  64965. res := resTmp.(string)
  64966. fc.Result = res
  64967. return ec.marshalNString2string(ctx, field.Selections, res)
  64968. }
  64969. func (ec *executionContext) fieldContext_DraftOrderEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  64970. fc = &graphql.FieldContext{
  64971. Object: "DraftOrderEdge",
  64972. Field: field,
  64973. IsMethod: false,
  64974. IsResolver: false,
  64975. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  64976. return nil, errors.New("field of type String does not have child fields")
  64977. },
  64978. }
  64979. return fc, nil
  64980. }
  64981. func (ec *executionContext) _DraftOrderEdge_node(ctx context.Context, field graphql.CollectedField, obj *DraftOrderEdge) (ret graphql.Marshaler) {
  64982. fc, err := ec.fieldContext_DraftOrderEdge_node(ctx, field)
  64983. if err != nil {
  64984. return graphql.Null
  64985. }
  64986. ctx = graphql.WithFieldContext(ctx, fc)
  64987. defer func() {
  64988. if r := recover(); r != nil {
  64989. ec.Error(ctx, ec.Recover(ctx, r))
  64990. ret = graphql.Null
  64991. }
  64992. }()
  64993. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  64994. ctx = rctx // use context from middleware stack in children
  64995. return obj.Node, nil
  64996. })
  64997. if err != nil {
  64998. ec.Error(ctx, err)
  64999. return graphql.Null
  65000. }
  65001. if resTmp == nil {
  65002. if !graphql.HasFieldError(ctx, fc) {
  65003. ec.Errorf(ctx, "must not be null")
  65004. }
  65005. return graphql.Null
  65006. }
  65007. res := resTmp.(*DraftOrder)
  65008. fc.Result = res
  65009. return ec.marshalNDraftOrder2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrder(ctx, field.Selections, res)
  65010. }
  65011. func (ec *executionContext) fieldContext_DraftOrderEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  65012. fc = &graphql.FieldContext{
  65013. Object: "DraftOrderEdge",
  65014. Field: field,
  65015. IsMethod: false,
  65016. IsResolver: false,
  65017. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  65018. switch field.Name {
  65019. case "appliedDiscount":
  65020. return ec.fieldContext_DraftOrder_appliedDiscount(ctx, field)
  65021. case "billingAddress":
  65022. return ec.fieldContext_DraftOrder_billingAddress(ctx, field)
  65023. case "billingAddressMatchesShippingAddress":
  65024. return ec.fieldContext_DraftOrder_billingAddressMatchesShippingAddress(ctx, field)
  65025. case "completedAt":
  65026. return ec.fieldContext_DraftOrder_completedAt(ctx, field)
  65027. case "createdAt":
  65028. return ec.fieldContext_DraftOrder_createdAt(ctx, field)
  65029. case "currencyCode":
  65030. return ec.fieldContext_DraftOrder_currencyCode(ctx, field)
  65031. case "customAttributes":
  65032. return ec.fieldContext_DraftOrder_customAttributes(ctx, field)
  65033. case "customer":
  65034. return ec.fieldContext_DraftOrder_customer(ctx, field)
  65035. case "defaultCursor":
  65036. return ec.fieldContext_DraftOrder_defaultCursor(ctx, field)
  65037. case "email":
  65038. return ec.fieldContext_DraftOrder_email(ctx, field)
  65039. case "events":
  65040. return ec.fieldContext_DraftOrder_events(ctx, field)
  65041. case "hasTimelineComment":
  65042. return ec.fieldContext_DraftOrder_hasTimelineComment(ctx, field)
  65043. case "id":
  65044. return ec.fieldContext_DraftOrder_id(ctx, field)
  65045. case "invoiceEmailTemplateSubject":
  65046. return ec.fieldContext_DraftOrder_invoiceEmailTemplateSubject(ctx, field)
  65047. case "invoiceSentAt":
  65048. return ec.fieldContext_DraftOrder_invoiceSentAt(ctx, field)
  65049. case "invoiceUrl":
  65050. return ec.fieldContext_DraftOrder_invoiceUrl(ctx, field)
  65051. case "legacyResourceId":
  65052. return ec.fieldContext_DraftOrder_legacyResourceId(ctx, field)
  65053. case "lineItems":
  65054. return ec.fieldContext_DraftOrder_lineItems(ctx, field)
  65055. case "lineItemsSubtotalPrice":
  65056. return ec.fieldContext_DraftOrder_lineItemsSubtotalPrice(ctx, field)
  65057. case "localizationExtensions":
  65058. return ec.fieldContext_DraftOrder_localizationExtensions(ctx, field)
  65059. case "marketName":
  65060. return ec.fieldContext_DraftOrder_marketName(ctx, field)
  65061. case "marketRegionCountryCode":
  65062. return ec.fieldContext_DraftOrder_marketRegionCountryCode(ctx, field)
  65063. case "metafield":
  65064. return ec.fieldContext_DraftOrder_metafield(ctx, field)
  65065. case "metafields":
  65066. return ec.fieldContext_DraftOrder_metafields(ctx, field)
  65067. case "name":
  65068. return ec.fieldContext_DraftOrder_name(ctx, field)
  65069. case "note2":
  65070. return ec.fieldContext_DraftOrder_note2(ctx, field)
  65071. case "order":
  65072. return ec.fieldContext_DraftOrder_order(ctx, field)
  65073. case "paymentTerms":
  65074. return ec.fieldContext_DraftOrder_paymentTerms(ctx, field)
  65075. case "phone":
  65076. return ec.fieldContext_DraftOrder_phone(ctx, field)
  65077. case "presentmentCurrencyCode":
  65078. return ec.fieldContext_DraftOrder_presentmentCurrencyCode(ctx, field)
  65079. case "privateMetafield":
  65080. return ec.fieldContext_DraftOrder_privateMetafield(ctx, field)
  65081. case "privateMetafields":
  65082. return ec.fieldContext_DraftOrder_privateMetafields(ctx, field)
  65083. case "purchasingEntity":
  65084. return ec.fieldContext_DraftOrder_purchasingEntity(ctx, field)
  65085. case "ready":
  65086. return ec.fieldContext_DraftOrder_ready(ctx, field)
  65087. case "reserveInventoryUntil":
  65088. return ec.fieldContext_DraftOrder_reserveInventoryUntil(ctx, field)
  65089. case "shippingAddress":
  65090. return ec.fieldContext_DraftOrder_shippingAddress(ctx, field)
  65091. case "shippingLine":
  65092. return ec.fieldContext_DraftOrder_shippingLine(ctx, field)
  65093. case "status":
  65094. return ec.fieldContext_DraftOrder_status(ctx, field)
  65095. case "subtotalPrice":
  65096. return ec.fieldContext_DraftOrder_subtotalPrice(ctx, field)
  65097. case "subtotalPriceSet":
  65098. return ec.fieldContext_DraftOrder_subtotalPriceSet(ctx, field)
  65099. case "tags":
  65100. return ec.fieldContext_DraftOrder_tags(ctx, field)
  65101. case "taxExempt":
  65102. return ec.fieldContext_DraftOrder_taxExempt(ctx, field)
  65103. case "taxLines":
  65104. return ec.fieldContext_DraftOrder_taxLines(ctx, field)
  65105. case "taxesIncluded":
  65106. return ec.fieldContext_DraftOrder_taxesIncluded(ctx, field)
  65107. case "totalDiscountsSet":
  65108. return ec.fieldContext_DraftOrder_totalDiscountsSet(ctx, field)
  65109. case "totalLineItemsPriceSet":
  65110. return ec.fieldContext_DraftOrder_totalLineItemsPriceSet(ctx, field)
  65111. case "totalPrice":
  65112. return ec.fieldContext_DraftOrder_totalPrice(ctx, field)
  65113. case "totalPriceSet":
  65114. return ec.fieldContext_DraftOrder_totalPriceSet(ctx, field)
  65115. case "totalShippingPrice":
  65116. return ec.fieldContext_DraftOrder_totalShippingPrice(ctx, field)
  65117. case "totalShippingPriceSet":
  65118. return ec.fieldContext_DraftOrder_totalShippingPriceSet(ctx, field)
  65119. case "totalTax":
  65120. return ec.fieldContext_DraftOrder_totalTax(ctx, field)
  65121. case "totalTaxSet":
  65122. return ec.fieldContext_DraftOrder_totalTaxSet(ctx, field)
  65123. case "totalWeight":
  65124. return ec.fieldContext_DraftOrder_totalWeight(ctx, field)
  65125. case "updatedAt":
  65126. return ec.fieldContext_DraftOrder_updatedAt(ctx, field)
  65127. case "visibleToCustomer":
  65128. return ec.fieldContext_DraftOrder_visibleToCustomer(ctx, field)
  65129. }
  65130. return nil, fmt.Errorf("no field named %q was found under type DraftOrder", field.Name)
  65131. },
  65132. }
  65133. return fc, nil
  65134. }
  65135. func (ec *executionContext) _DraftOrderLineItem_appliedDiscount(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  65136. fc, err := ec.fieldContext_DraftOrderLineItem_appliedDiscount(ctx, field)
  65137. if err != nil {
  65138. return graphql.Null
  65139. }
  65140. ctx = graphql.WithFieldContext(ctx, fc)
  65141. defer func() {
  65142. if r := recover(); r != nil {
  65143. ec.Error(ctx, ec.Recover(ctx, r))
  65144. ret = graphql.Null
  65145. }
  65146. }()
  65147. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  65148. ctx = rctx // use context from middleware stack in children
  65149. return obj.AppliedDiscount, nil
  65150. })
  65151. if err != nil {
  65152. ec.Error(ctx, err)
  65153. return graphql.Null
  65154. }
  65155. if resTmp == nil {
  65156. return graphql.Null
  65157. }
  65158. res := resTmp.(*DraftOrderAppliedDiscount)
  65159. fc.Result = res
  65160. return ec.marshalODraftOrderAppliedDiscount2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderAppliedDiscount(ctx, field.Selections, res)
  65161. }
  65162. func (ec *executionContext) fieldContext_DraftOrderLineItem_appliedDiscount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  65163. fc = &graphql.FieldContext{
  65164. Object: "DraftOrderLineItem",
  65165. Field: field,
  65166. IsMethod: false,
  65167. IsResolver: false,
  65168. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  65169. switch field.Name {
  65170. case "amountSet":
  65171. return ec.fieldContext_DraftOrderAppliedDiscount_amountSet(ctx, field)
  65172. case "amountV2":
  65173. return ec.fieldContext_DraftOrderAppliedDiscount_amountV2(ctx, field)
  65174. case "description":
  65175. return ec.fieldContext_DraftOrderAppliedDiscount_description(ctx, field)
  65176. case "title":
  65177. return ec.fieldContext_DraftOrderAppliedDiscount_title(ctx, field)
  65178. case "value":
  65179. return ec.fieldContext_DraftOrderAppliedDiscount_value(ctx, field)
  65180. case "valueType":
  65181. return ec.fieldContext_DraftOrderAppliedDiscount_valueType(ctx, field)
  65182. }
  65183. return nil, fmt.Errorf("no field named %q was found under type DraftOrderAppliedDiscount", field.Name)
  65184. },
  65185. }
  65186. return fc, nil
  65187. }
  65188. func (ec *executionContext) _DraftOrderLineItem_custom(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  65189. fc, err := ec.fieldContext_DraftOrderLineItem_custom(ctx, field)
  65190. if err != nil {
  65191. return graphql.Null
  65192. }
  65193. ctx = graphql.WithFieldContext(ctx, fc)
  65194. defer func() {
  65195. if r := recover(); r != nil {
  65196. ec.Error(ctx, ec.Recover(ctx, r))
  65197. ret = graphql.Null
  65198. }
  65199. }()
  65200. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  65201. ctx = rctx // use context from middleware stack in children
  65202. return obj.Custom, nil
  65203. })
  65204. if err != nil {
  65205. ec.Error(ctx, err)
  65206. return graphql.Null
  65207. }
  65208. if resTmp == nil {
  65209. if !graphql.HasFieldError(ctx, fc) {
  65210. ec.Errorf(ctx, "must not be null")
  65211. }
  65212. return graphql.Null
  65213. }
  65214. res := resTmp.(bool)
  65215. fc.Result = res
  65216. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  65217. }
  65218. func (ec *executionContext) fieldContext_DraftOrderLineItem_custom(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  65219. fc = &graphql.FieldContext{
  65220. Object: "DraftOrderLineItem",
  65221. Field: field,
  65222. IsMethod: false,
  65223. IsResolver: false,
  65224. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  65225. return nil, errors.New("field of type Boolean does not have child fields")
  65226. },
  65227. }
  65228. return fc, nil
  65229. }
  65230. func (ec *executionContext) _DraftOrderLineItem_customAttributes(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  65231. fc, err := ec.fieldContext_DraftOrderLineItem_customAttributes(ctx, field)
  65232. if err != nil {
  65233. return graphql.Null
  65234. }
  65235. ctx = graphql.WithFieldContext(ctx, fc)
  65236. defer func() {
  65237. if r := recover(); r != nil {
  65238. ec.Error(ctx, ec.Recover(ctx, r))
  65239. ret = graphql.Null
  65240. }
  65241. }()
  65242. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  65243. ctx = rctx // use context from middleware stack in children
  65244. return obj.CustomAttributes, nil
  65245. })
  65246. if err != nil {
  65247. ec.Error(ctx, err)
  65248. return graphql.Null
  65249. }
  65250. if resTmp == nil {
  65251. if !graphql.HasFieldError(ctx, fc) {
  65252. ec.Errorf(ctx, "must not be null")
  65253. }
  65254. return graphql.Null
  65255. }
  65256. res := resTmp.([]*Attribute)
  65257. fc.Result = res
  65258. return ec.marshalNAttribute2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAttributeᚄ(ctx, field.Selections, res)
  65259. }
  65260. func (ec *executionContext) fieldContext_DraftOrderLineItem_customAttributes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  65261. fc = &graphql.FieldContext{
  65262. Object: "DraftOrderLineItem",
  65263. Field: field,
  65264. IsMethod: false,
  65265. IsResolver: false,
  65266. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  65267. switch field.Name {
  65268. case "key":
  65269. return ec.fieldContext_Attribute_key(ctx, field)
  65270. case "value":
  65271. return ec.fieldContext_Attribute_value(ctx, field)
  65272. }
  65273. return nil, fmt.Errorf("no field named %q was found under type Attribute", field.Name)
  65274. },
  65275. }
  65276. return fc, nil
  65277. }
  65278. func (ec *executionContext) _DraftOrderLineItem_customAttributesV2(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  65279. fc, err := ec.fieldContext_DraftOrderLineItem_customAttributesV2(ctx, field)
  65280. if err != nil {
  65281. return graphql.Null
  65282. }
  65283. ctx = graphql.WithFieldContext(ctx, fc)
  65284. defer func() {
  65285. if r := recover(); r != nil {
  65286. ec.Error(ctx, ec.Recover(ctx, r))
  65287. ret = graphql.Null
  65288. }
  65289. }()
  65290. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  65291. ctx = rctx // use context from middleware stack in children
  65292. return obj.CustomAttributesV2, nil
  65293. })
  65294. if err != nil {
  65295. ec.Error(ctx, err)
  65296. return graphql.Null
  65297. }
  65298. if resTmp == nil {
  65299. if !graphql.HasFieldError(ctx, fc) {
  65300. ec.Errorf(ctx, "must not be null")
  65301. }
  65302. return graphql.Null
  65303. }
  65304. res := resTmp.([]*TypedAttribute)
  65305. fc.Result = res
  65306. return ec.marshalNTypedAttribute2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐTypedAttributeᚄ(ctx, field.Selections, res)
  65307. }
  65308. func (ec *executionContext) fieldContext_DraftOrderLineItem_customAttributesV2(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  65309. fc = &graphql.FieldContext{
  65310. Object: "DraftOrderLineItem",
  65311. Field: field,
  65312. IsMethod: false,
  65313. IsResolver: false,
  65314. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  65315. switch field.Name {
  65316. case "key":
  65317. return ec.fieldContext_TypedAttribute_key(ctx, field)
  65318. case "value":
  65319. return ec.fieldContext_TypedAttribute_value(ctx, field)
  65320. }
  65321. return nil, fmt.Errorf("no field named %q was found under type TypedAttribute", field.Name)
  65322. },
  65323. }
  65324. return fc, nil
  65325. }
  65326. func (ec *executionContext) _DraftOrderLineItem_discountedTotal(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  65327. fc, err := ec.fieldContext_DraftOrderLineItem_discountedTotal(ctx, field)
  65328. if err != nil {
  65329. return graphql.Null
  65330. }
  65331. ctx = graphql.WithFieldContext(ctx, fc)
  65332. defer func() {
  65333. if r := recover(); r != nil {
  65334. ec.Error(ctx, ec.Recover(ctx, r))
  65335. ret = graphql.Null
  65336. }
  65337. }()
  65338. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  65339. ctx = rctx // use context from middleware stack in children
  65340. return obj.DiscountedTotal, nil
  65341. })
  65342. if err != nil {
  65343. ec.Error(ctx, err)
  65344. return graphql.Null
  65345. }
  65346. if resTmp == nil {
  65347. if !graphql.HasFieldError(ctx, fc) {
  65348. ec.Errorf(ctx, "must not be null")
  65349. }
  65350. return graphql.Null
  65351. }
  65352. res := resTmp.(string)
  65353. fc.Result = res
  65354. return ec.marshalNMoney2string(ctx, field.Selections, res)
  65355. }
  65356. func (ec *executionContext) fieldContext_DraftOrderLineItem_discountedTotal(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  65357. fc = &graphql.FieldContext{
  65358. Object: "DraftOrderLineItem",
  65359. Field: field,
  65360. IsMethod: false,
  65361. IsResolver: false,
  65362. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  65363. return nil, errors.New("field of type Money does not have child fields")
  65364. },
  65365. }
  65366. return fc, nil
  65367. }
  65368. func (ec *executionContext) _DraftOrderLineItem_discountedTotalSet(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  65369. fc, err := ec.fieldContext_DraftOrderLineItem_discountedTotalSet(ctx, field)
  65370. if err != nil {
  65371. return graphql.Null
  65372. }
  65373. ctx = graphql.WithFieldContext(ctx, fc)
  65374. defer func() {
  65375. if r := recover(); r != nil {
  65376. ec.Error(ctx, ec.Recover(ctx, r))
  65377. ret = graphql.Null
  65378. }
  65379. }()
  65380. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  65381. ctx = rctx // use context from middleware stack in children
  65382. return obj.DiscountedTotalSet, nil
  65383. })
  65384. if err != nil {
  65385. ec.Error(ctx, err)
  65386. return graphql.Null
  65387. }
  65388. if resTmp == nil {
  65389. if !graphql.HasFieldError(ctx, fc) {
  65390. ec.Errorf(ctx, "must not be null")
  65391. }
  65392. return graphql.Null
  65393. }
  65394. res := resTmp.(*MoneyBag)
  65395. fc.Result = res
  65396. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  65397. }
  65398. func (ec *executionContext) fieldContext_DraftOrderLineItem_discountedTotalSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  65399. fc = &graphql.FieldContext{
  65400. Object: "DraftOrderLineItem",
  65401. Field: field,
  65402. IsMethod: false,
  65403. IsResolver: false,
  65404. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  65405. switch field.Name {
  65406. case "presentmentMoney":
  65407. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  65408. case "shopMoney":
  65409. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  65410. }
  65411. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  65412. },
  65413. }
  65414. return fc, nil
  65415. }
  65416. func (ec *executionContext) _DraftOrderLineItem_discountedUnitPrice(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  65417. fc, err := ec.fieldContext_DraftOrderLineItem_discountedUnitPrice(ctx, field)
  65418. if err != nil {
  65419. return graphql.Null
  65420. }
  65421. ctx = graphql.WithFieldContext(ctx, fc)
  65422. defer func() {
  65423. if r := recover(); r != nil {
  65424. ec.Error(ctx, ec.Recover(ctx, r))
  65425. ret = graphql.Null
  65426. }
  65427. }()
  65428. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  65429. ctx = rctx // use context from middleware stack in children
  65430. return obj.DiscountedUnitPrice, nil
  65431. })
  65432. if err != nil {
  65433. ec.Error(ctx, err)
  65434. return graphql.Null
  65435. }
  65436. if resTmp == nil {
  65437. if !graphql.HasFieldError(ctx, fc) {
  65438. ec.Errorf(ctx, "must not be null")
  65439. }
  65440. return graphql.Null
  65441. }
  65442. res := resTmp.(string)
  65443. fc.Result = res
  65444. return ec.marshalNMoney2string(ctx, field.Selections, res)
  65445. }
  65446. func (ec *executionContext) fieldContext_DraftOrderLineItem_discountedUnitPrice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  65447. fc = &graphql.FieldContext{
  65448. Object: "DraftOrderLineItem",
  65449. Field: field,
  65450. IsMethod: false,
  65451. IsResolver: false,
  65452. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  65453. return nil, errors.New("field of type Money does not have child fields")
  65454. },
  65455. }
  65456. return fc, nil
  65457. }
  65458. func (ec *executionContext) _DraftOrderLineItem_discountedUnitPriceSet(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  65459. fc, err := ec.fieldContext_DraftOrderLineItem_discountedUnitPriceSet(ctx, field)
  65460. if err != nil {
  65461. return graphql.Null
  65462. }
  65463. ctx = graphql.WithFieldContext(ctx, fc)
  65464. defer func() {
  65465. if r := recover(); r != nil {
  65466. ec.Error(ctx, ec.Recover(ctx, r))
  65467. ret = graphql.Null
  65468. }
  65469. }()
  65470. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  65471. ctx = rctx // use context from middleware stack in children
  65472. return obj.DiscountedUnitPriceSet, nil
  65473. })
  65474. if err != nil {
  65475. ec.Error(ctx, err)
  65476. return graphql.Null
  65477. }
  65478. if resTmp == nil {
  65479. if !graphql.HasFieldError(ctx, fc) {
  65480. ec.Errorf(ctx, "must not be null")
  65481. }
  65482. return graphql.Null
  65483. }
  65484. res := resTmp.(*MoneyBag)
  65485. fc.Result = res
  65486. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  65487. }
  65488. func (ec *executionContext) fieldContext_DraftOrderLineItem_discountedUnitPriceSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  65489. fc = &graphql.FieldContext{
  65490. Object: "DraftOrderLineItem",
  65491. Field: field,
  65492. IsMethod: false,
  65493. IsResolver: false,
  65494. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  65495. switch field.Name {
  65496. case "presentmentMoney":
  65497. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  65498. case "shopMoney":
  65499. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  65500. }
  65501. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  65502. },
  65503. }
  65504. return fc, nil
  65505. }
  65506. func (ec *executionContext) _DraftOrderLineItem_fulfillmentService(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  65507. fc, err := ec.fieldContext_DraftOrderLineItem_fulfillmentService(ctx, field)
  65508. if err != nil {
  65509. return graphql.Null
  65510. }
  65511. ctx = graphql.WithFieldContext(ctx, fc)
  65512. defer func() {
  65513. if r := recover(); r != nil {
  65514. ec.Error(ctx, ec.Recover(ctx, r))
  65515. ret = graphql.Null
  65516. }
  65517. }()
  65518. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  65519. ctx = rctx // use context from middleware stack in children
  65520. return obj.FulfillmentService, nil
  65521. })
  65522. if err != nil {
  65523. ec.Error(ctx, err)
  65524. return graphql.Null
  65525. }
  65526. if resTmp == nil {
  65527. return graphql.Null
  65528. }
  65529. res := resTmp.(*FulfillmentService)
  65530. fc.Result = res
  65531. return ec.marshalOFulfillmentService2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentService(ctx, field.Selections, res)
  65532. }
  65533. func (ec *executionContext) fieldContext_DraftOrderLineItem_fulfillmentService(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  65534. fc = &graphql.FieldContext{
  65535. Object: "DraftOrderLineItem",
  65536. Field: field,
  65537. IsMethod: false,
  65538. IsResolver: false,
  65539. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  65540. switch field.Name {
  65541. case "callbackUrl":
  65542. return ec.fieldContext_FulfillmentService_callbackUrl(ctx, field)
  65543. case "fulfillmentOrdersOptIn":
  65544. return ec.fieldContext_FulfillmentService_fulfillmentOrdersOptIn(ctx, field)
  65545. case "handle":
  65546. return ec.fieldContext_FulfillmentService_handle(ctx, field)
  65547. case "id":
  65548. return ec.fieldContext_FulfillmentService_id(ctx, field)
  65549. case "inventoryManagement":
  65550. return ec.fieldContext_FulfillmentService_inventoryManagement(ctx, field)
  65551. case "location":
  65552. return ec.fieldContext_FulfillmentService_location(ctx, field)
  65553. case "permitsSkuSharing":
  65554. return ec.fieldContext_FulfillmentService_permitsSkuSharing(ctx, field)
  65555. case "productBased":
  65556. return ec.fieldContext_FulfillmentService_productBased(ctx, field)
  65557. case "serviceName":
  65558. return ec.fieldContext_FulfillmentService_serviceName(ctx, field)
  65559. case "type":
  65560. return ec.fieldContext_FulfillmentService_type(ctx, field)
  65561. }
  65562. return nil, fmt.Errorf("no field named %q was found under type FulfillmentService", field.Name)
  65563. },
  65564. }
  65565. return fc, nil
  65566. }
  65567. func (ec *executionContext) _DraftOrderLineItem_id(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  65568. fc, err := ec.fieldContext_DraftOrderLineItem_id(ctx, field)
  65569. if err != nil {
  65570. return graphql.Null
  65571. }
  65572. ctx = graphql.WithFieldContext(ctx, fc)
  65573. defer func() {
  65574. if r := recover(); r != nil {
  65575. ec.Error(ctx, ec.Recover(ctx, r))
  65576. ret = graphql.Null
  65577. }
  65578. }()
  65579. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  65580. ctx = rctx // use context from middleware stack in children
  65581. return obj.ID, nil
  65582. })
  65583. if err != nil {
  65584. ec.Error(ctx, err)
  65585. return graphql.Null
  65586. }
  65587. if resTmp == nil {
  65588. if !graphql.HasFieldError(ctx, fc) {
  65589. ec.Errorf(ctx, "must not be null")
  65590. }
  65591. return graphql.Null
  65592. }
  65593. res := resTmp.(string)
  65594. fc.Result = res
  65595. return ec.marshalNID2string(ctx, field.Selections, res)
  65596. }
  65597. func (ec *executionContext) fieldContext_DraftOrderLineItem_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  65598. fc = &graphql.FieldContext{
  65599. Object: "DraftOrderLineItem",
  65600. Field: field,
  65601. IsMethod: false,
  65602. IsResolver: false,
  65603. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  65604. return nil, errors.New("field of type ID does not have child fields")
  65605. },
  65606. }
  65607. return fc, nil
  65608. }
  65609. func (ec *executionContext) _DraftOrderLineItem_image(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  65610. fc, err := ec.fieldContext_DraftOrderLineItem_image(ctx, field)
  65611. if err != nil {
  65612. return graphql.Null
  65613. }
  65614. ctx = graphql.WithFieldContext(ctx, fc)
  65615. defer func() {
  65616. if r := recover(); r != nil {
  65617. ec.Error(ctx, ec.Recover(ctx, r))
  65618. ret = graphql.Null
  65619. }
  65620. }()
  65621. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  65622. ctx = rctx // use context from middleware stack in children
  65623. return obj.Image, nil
  65624. })
  65625. if err != nil {
  65626. ec.Error(ctx, err)
  65627. return graphql.Null
  65628. }
  65629. if resTmp == nil {
  65630. return graphql.Null
  65631. }
  65632. res := resTmp.(*Image)
  65633. fc.Result = res
  65634. return ec.marshalOImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImage(ctx, field.Selections, res)
  65635. }
  65636. func (ec *executionContext) fieldContext_DraftOrderLineItem_image(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  65637. fc = &graphql.FieldContext{
  65638. Object: "DraftOrderLineItem",
  65639. Field: field,
  65640. IsMethod: false,
  65641. IsResolver: false,
  65642. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  65643. switch field.Name {
  65644. case "altText":
  65645. return ec.fieldContext_Image_altText(ctx, field)
  65646. case "height":
  65647. return ec.fieldContext_Image_height(ctx, field)
  65648. case "id":
  65649. return ec.fieldContext_Image_id(ctx, field)
  65650. case "metafield":
  65651. return ec.fieldContext_Image_metafield(ctx, field)
  65652. case "metafields":
  65653. return ec.fieldContext_Image_metafields(ctx, field)
  65654. case "privateMetafield":
  65655. return ec.fieldContext_Image_privateMetafield(ctx, field)
  65656. case "privateMetafields":
  65657. return ec.fieldContext_Image_privateMetafields(ctx, field)
  65658. case "url":
  65659. return ec.fieldContext_Image_url(ctx, field)
  65660. case "width":
  65661. return ec.fieldContext_Image_width(ctx, field)
  65662. }
  65663. return nil, fmt.Errorf("no field named %q was found under type Image", field.Name)
  65664. },
  65665. }
  65666. return fc, nil
  65667. }
  65668. func (ec *executionContext) _DraftOrderLineItem_isGiftCard(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  65669. fc, err := ec.fieldContext_DraftOrderLineItem_isGiftCard(ctx, field)
  65670. if err != nil {
  65671. return graphql.Null
  65672. }
  65673. ctx = graphql.WithFieldContext(ctx, fc)
  65674. defer func() {
  65675. if r := recover(); r != nil {
  65676. ec.Error(ctx, ec.Recover(ctx, r))
  65677. ret = graphql.Null
  65678. }
  65679. }()
  65680. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  65681. ctx = rctx // use context from middleware stack in children
  65682. return obj.IsGiftCard, nil
  65683. })
  65684. if err != nil {
  65685. ec.Error(ctx, err)
  65686. return graphql.Null
  65687. }
  65688. if resTmp == nil {
  65689. if !graphql.HasFieldError(ctx, fc) {
  65690. ec.Errorf(ctx, "must not be null")
  65691. }
  65692. return graphql.Null
  65693. }
  65694. res := resTmp.(bool)
  65695. fc.Result = res
  65696. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  65697. }
  65698. func (ec *executionContext) fieldContext_DraftOrderLineItem_isGiftCard(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  65699. fc = &graphql.FieldContext{
  65700. Object: "DraftOrderLineItem",
  65701. Field: field,
  65702. IsMethod: false,
  65703. IsResolver: false,
  65704. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  65705. return nil, errors.New("field of type Boolean does not have child fields")
  65706. },
  65707. }
  65708. return fc, nil
  65709. }
  65710. func (ec *executionContext) _DraftOrderLineItem_name(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  65711. fc, err := ec.fieldContext_DraftOrderLineItem_name(ctx, field)
  65712. if err != nil {
  65713. return graphql.Null
  65714. }
  65715. ctx = graphql.WithFieldContext(ctx, fc)
  65716. defer func() {
  65717. if r := recover(); r != nil {
  65718. ec.Error(ctx, ec.Recover(ctx, r))
  65719. ret = graphql.Null
  65720. }
  65721. }()
  65722. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  65723. ctx = rctx // use context from middleware stack in children
  65724. return obj.Name, nil
  65725. })
  65726. if err != nil {
  65727. ec.Error(ctx, err)
  65728. return graphql.Null
  65729. }
  65730. if resTmp == nil {
  65731. if !graphql.HasFieldError(ctx, fc) {
  65732. ec.Errorf(ctx, "must not be null")
  65733. }
  65734. return graphql.Null
  65735. }
  65736. res := resTmp.(string)
  65737. fc.Result = res
  65738. return ec.marshalNString2string(ctx, field.Selections, res)
  65739. }
  65740. func (ec *executionContext) fieldContext_DraftOrderLineItem_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  65741. fc = &graphql.FieldContext{
  65742. Object: "DraftOrderLineItem",
  65743. Field: field,
  65744. IsMethod: false,
  65745. IsResolver: false,
  65746. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  65747. return nil, errors.New("field of type String does not have child fields")
  65748. },
  65749. }
  65750. return fc, nil
  65751. }
  65752. func (ec *executionContext) _DraftOrderLineItem_originalTotal(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  65753. fc, err := ec.fieldContext_DraftOrderLineItem_originalTotal(ctx, field)
  65754. if err != nil {
  65755. return graphql.Null
  65756. }
  65757. ctx = graphql.WithFieldContext(ctx, fc)
  65758. defer func() {
  65759. if r := recover(); r != nil {
  65760. ec.Error(ctx, ec.Recover(ctx, r))
  65761. ret = graphql.Null
  65762. }
  65763. }()
  65764. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  65765. ctx = rctx // use context from middleware stack in children
  65766. return obj.OriginalTotal, nil
  65767. })
  65768. if err != nil {
  65769. ec.Error(ctx, err)
  65770. return graphql.Null
  65771. }
  65772. if resTmp == nil {
  65773. if !graphql.HasFieldError(ctx, fc) {
  65774. ec.Errorf(ctx, "must not be null")
  65775. }
  65776. return graphql.Null
  65777. }
  65778. res := resTmp.(string)
  65779. fc.Result = res
  65780. return ec.marshalNMoney2string(ctx, field.Selections, res)
  65781. }
  65782. func (ec *executionContext) fieldContext_DraftOrderLineItem_originalTotal(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  65783. fc = &graphql.FieldContext{
  65784. Object: "DraftOrderLineItem",
  65785. Field: field,
  65786. IsMethod: false,
  65787. IsResolver: false,
  65788. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  65789. return nil, errors.New("field of type Money does not have child fields")
  65790. },
  65791. }
  65792. return fc, nil
  65793. }
  65794. func (ec *executionContext) _DraftOrderLineItem_originalTotalSet(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  65795. fc, err := ec.fieldContext_DraftOrderLineItem_originalTotalSet(ctx, field)
  65796. if err != nil {
  65797. return graphql.Null
  65798. }
  65799. ctx = graphql.WithFieldContext(ctx, fc)
  65800. defer func() {
  65801. if r := recover(); r != nil {
  65802. ec.Error(ctx, ec.Recover(ctx, r))
  65803. ret = graphql.Null
  65804. }
  65805. }()
  65806. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  65807. ctx = rctx // use context from middleware stack in children
  65808. return obj.OriginalTotalSet, nil
  65809. })
  65810. if err != nil {
  65811. ec.Error(ctx, err)
  65812. return graphql.Null
  65813. }
  65814. if resTmp == nil {
  65815. if !graphql.HasFieldError(ctx, fc) {
  65816. ec.Errorf(ctx, "must not be null")
  65817. }
  65818. return graphql.Null
  65819. }
  65820. res := resTmp.(*MoneyBag)
  65821. fc.Result = res
  65822. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  65823. }
  65824. func (ec *executionContext) fieldContext_DraftOrderLineItem_originalTotalSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  65825. fc = &graphql.FieldContext{
  65826. Object: "DraftOrderLineItem",
  65827. Field: field,
  65828. IsMethod: false,
  65829. IsResolver: false,
  65830. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  65831. switch field.Name {
  65832. case "presentmentMoney":
  65833. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  65834. case "shopMoney":
  65835. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  65836. }
  65837. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  65838. },
  65839. }
  65840. return fc, nil
  65841. }
  65842. func (ec *executionContext) _DraftOrderLineItem_originalUnitPrice(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  65843. fc, err := ec.fieldContext_DraftOrderLineItem_originalUnitPrice(ctx, field)
  65844. if err != nil {
  65845. return graphql.Null
  65846. }
  65847. ctx = graphql.WithFieldContext(ctx, fc)
  65848. defer func() {
  65849. if r := recover(); r != nil {
  65850. ec.Error(ctx, ec.Recover(ctx, r))
  65851. ret = graphql.Null
  65852. }
  65853. }()
  65854. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  65855. ctx = rctx // use context from middleware stack in children
  65856. return obj.OriginalUnitPrice, nil
  65857. })
  65858. if err != nil {
  65859. ec.Error(ctx, err)
  65860. return graphql.Null
  65861. }
  65862. if resTmp == nil {
  65863. if !graphql.HasFieldError(ctx, fc) {
  65864. ec.Errorf(ctx, "must not be null")
  65865. }
  65866. return graphql.Null
  65867. }
  65868. res := resTmp.(string)
  65869. fc.Result = res
  65870. return ec.marshalNMoney2string(ctx, field.Selections, res)
  65871. }
  65872. func (ec *executionContext) fieldContext_DraftOrderLineItem_originalUnitPrice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  65873. fc = &graphql.FieldContext{
  65874. Object: "DraftOrderLineItem",
  65875. Field: field,
  65876. IsMethod: false,
  65877. IsResolver: false,
  65878. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  65879. return nil, errors.New("field of type Money does not have child fields")
  65880. },
  65881. }
  65882. return fc, nil
  65883. }
  65884. func (ec *executionContext) _DraftOrderLineItem_originalUnitPriceSet(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  65885. fc, err := ec.fieldContext_DraftOrderLineItem_originalUnitPriceSet(ctx, field)
  65886. if err != nil {
  65887. return graphql.Null
  65888. }
  65889. ctx = graphql.WithFieldContext(ctx, fc)
  65890. defer func() {
  65891. if r := recover(); r != nil {
  65892. ec.Error(ctx, ec.Recover(ctx, r))
  65893. ret = graphql.Null
  65894. }
  65895. }()
  65896. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  65897. ctx = rctx // use context from middleware stack in children
  65898. return obj.OriginalUnitPriceSet, nil
  65899. })
  65900. if err != nil {
  65901. ec.Error(ctx, err)
  65902. return graphql.Null
  65903. }
  65904. if resTmp == nil {
  65905. if !graphql.HasFieldError(ctx, fc) {
  65906. ec.Errorf(ctx, "must not be null")
  65907. }
  65908. return graphql.Null
  65909. }
  65910. res := resTmp.(*MoneyBag)
  65911. fc.Result = res
  65912. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  65913. }
  65914. func (ec *executionContext) fieldContext_DraftOrderLineItem_originalUnitPriceSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  65915. fc = &graphql.FieldContext{
  65916. Object: "DraftOrderLineItem",
  65917. Field: field,
  65918. IsMethod: false,
  65919. IsResolver: false,
  65920. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  65921. switch field.Name {
  65922. case "presentmentMoney":
  65923. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  65924. case "shopMoney":
  65925. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  65926. }
  65927. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  65928. },
  65929. }
  65930. return fc, nil
  65931. }
  65932. func (ec *executionContext) _DraftOrderLineItem_product(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  65933. fc, err := ec.fieldContext_DraftOrderLineItem_product(ctx, field)
  65934. if err != nil {
  65935. return graphql.Null
  65936. }
  65937. ctx = graphql.WithFieldContext(ctx, fc)
  65938. defer func() {
  65939. if r := recover(); r != nil {
  65940. ec.Error(ctx, ec.Recover(ctx, r))
  65941. ret = graphql.Null
  65942. }
  65943. }()
  65944. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  65945. ctx = rctx // use context from middleware stack in children
  65946. return obj.Product, nil
  65947. })
  65948. if err != nil {
  65949. ec.Error(ctx, err)
  65950. return graphql.Null
  65951. }
  65952. if resTmp == nil {
  65953. return graphql.Null
  65954. }
  65955. res := resTmp.(*Product)
  65956. fc.Result = res
  65957. return ec.marshalOProduct2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProduct(ctx, field.Selections, res)
  65958. }
  65959. func (ec *executionContext) fieldContext_DraftOrderLineItem_product(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  65960. fc = &graphql.FieldContext{
  65961. Object: "DraftOrderLineItem",
  65962. Field: field,
  65963. IsMethod: false,
  65964. IsResolver: false,
  65965. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  65966. switch field.Name {
  65967. case "availablePublicationCount":
  65968. return ec.fieldContext_Product_availablePublicationCount(ctx, field)
  65969. case "collections":
  65970. return ec.fieldContext_Product_collections(ctx, field)
  65971. case "contextualPricing":
  65972. return ec.fieldContext_Product_contextualPricing(ctx, field)
  65973. case "createdAt":
  65974. return ec.fieldContext_Product_createdAt(ctx, field)
  65975. case "defaultCursor":
  65976. return ec.fieldContext_Product_defaultCursor(ctx, field)
  65977. case "description":
  65978. return ec.fieldContext_Product_description(ctx, field)
  65979. case "descriptionHtml":
  65980. return ec.fieldContext_Product_descriptionHtml(ctx, field)
  65981. case "featuredImage":
  65982. return ec.fieldContext_Product_featuredImage(ctx, field)
  65983. case "featuredMedia":
  65984. return ec.fieldContext_Product_featuredMedia(ctx, field)
  65985. case "feedback":
  65986. return ec.fieldContext_Product_feedback(ctx, field)
  65987. case "giftCardTemplateSuffix":
  65988. return ec.fieldContext_Product_giftCardTemplateSuffix(ctx, field)
  65989. case "handle":
  65990. return ec.fieldContext_Product_handle(ctx, field)
  65991. case "hasOnlyDefaultVariant":
  65992. return ec.fieldContext_Product_hasOnlyDefaultVariant(ctx, field)
  65993. case "hasOutOfStockVariants":
  65994. return ec.fieldContext_Product_hasOutOfStockVariants(ctx, field)
  65995. case "id":
  65996. return ec.fieldContext_Product_id(ctx, field)
  65997. case "images":
  65998. return ec.fieldContext_Product_images(ctx, field)
  65999. case "inCollection":
  66000. return ec.fieldContext_Product_inCollection(ctx, field)
  66001. case "isGiftCard":
  66002. return ec.fieldContext_Product_isGiftCard(ctx, field)
  66003. case "legacyResourceId":
  66004. return ec.fieldContext_Product_legacyResourceId(ctx, field)
  66005. case "media":
  66006. return ec.fieldContext_Product_media(ctx, field)
  66007. case "mediaCount":
  66008. return ec.fieldContext_Product_mediaCount(ctx, field)
  66009. case "metafield":
  66010. return ec.fieldContext_Product_metafield(ctx, field)
  66011. case "metafieldDefinitions":
  66012. return ec.fieldContext_Product_metafieldDefinitions(ctx, field)
  66013. case "metafields":
  66014. return ec.fieldContext_Product_metafields(ctx, field)
  66015. case "onlineStorePreviewUrl":
  66016. return ec.fieldContext_Product_onlineStorePreviewUrl(ctx, field)
  66017. case "onlineStoreUrl":
  66018. return ec.fieldContext_Product_onlineStoreUrl(ctx, field)
  66019. case "options":
  66020. return ec.fieldContext_Product_options(ctx, field)
  66021. case "priceRangeV2":
  66022. return ec.fieldContext_Product_priceRangeV2(ctx, field)
  66023. case "privateMetafield":
  66024. return ec.fieldContext_Product_privateMetafield(ctx, field)
  66025. case "privateMetafields":
  66026. return ec.fieldContext_Product_privateMetafields(ctx, field)
  66027. case "productCategory":
  66028. return ec.fieldContext_Product_productCategory(ctx, field)
  66029. case "productType":
  66030. return ec.fieldContext_Product_productType(ctx, field)
  66031. case "publicationCount":
  66032. return ec.fieldContext_Product_publicationCount(ctx, field)
  66033. case "publishedAt":
  66034. return ec.fieldContext_Product_publishedAt(ctx, field)
  66035. case "publishedOnCurrentPublication":
  66036. return ec.fieldContext_Product_publishedOnCurrentPublication(ctx, field)
  66037. case "publishedOnPublication":
  66038. return ec.fieldContext_Product_publishedOnPublication(ctx, field)
  66039. case "requiresSellingPlan":
  66040. return ec.fieldContext_Product_requiresSellingPlan(ctx, field)
  66041. case "resourcePublicationOnCurrentPublication":
  66042. return ec.fieldContext_Product_resourcePublicationOnCurrentPublication(ctx, field)
  66043. case "resourcePublications":
  66044. return ec.fieldContext_Product_resourcePublications(ctx, field)
  66045. case "resourcePublicationsV2":
  66046. return ec.fieldContext_Product_resourcePublicationsV2(ctx, field)
  66047. case "sellingPlanGroupCount":
  66048. return ec.fieldContext_Product_sellingPlanGroupCount(ctx, field)
  66049. case "sellingPlanGroups":
  66050. return ec.fieldContext_Product_sellingPlanGroups(ctx, field)
  66051. case "seo":
  66052. return ec.fieldContext_Product_seo(ctx, field)
  66053. case "status":
  66054. return ec.fieldContext_Product_status(ctx, field)
  66055. case "tags":
  66056. return ec.fieldContext_Product_tags(ctx, field)
  66057. case "templateSuffix":
  66058. return ec.fieldContext_Product_templateSuffix(ctx, field)
  66059. case "title":
  66060. return ec.fieldContext_Product_title(ctx, field)
  66061. case "totalInventory":
  66062. return ec.fieldContext_Product_totalInventory(ctx, field)
  66063. case "totalVariants":
  66064. return ec.fieldContext_Product_totalVariants(ctx, field)
  66065. case "tracksInventory":
  66066. return ec.fieldContext_Product_tracksInventory(ctx, field)
  66067. case "translations":
  66068. return ec.fieldContext_Product_translations(ctx, field)
  66069. case "unpublishedPublications":
  66070. return ec.fieldContext_Product_unpublishedPublications(ctx, field)
  66071. case "updatedAt":
  66072. return ec.fieldContext_Product_updatedAt(ctx, field)
  66073. case "variants":
  66074. return ec.fieldContext_Product_variants(ctx, field)
  66075. case "vendor":
  66076. return ec.fieldContext_Product_vendor(ctx, field)
  66077. }
  66078. return nil, fmt.Errorf("no field named %q was found under type Product", field.Name)
  66079. },
  66080. }
  66081. return fc, nil
  66082. }
  66083. func (ec *executionContext) _DraftOrderLineItem_quantity(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  66084. fc, err := ec.fieldContext_DraftOrderLineItem_quantity(ctx, field)
  66085. if err != nil {
  66086. return graphql.Null
  66087. }
  66088. ctx = graphql.WithFieldContext(ctx, fc)
  66089. defer func() {
  66090. if r := recover(); r != nil {
  66091. ec.Error(ctx, ec.Recover(ctx, r))
  66092. ret = graphql.Null
  66093. }
  66094. }()
  66095. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  66096. ctx = rctx // use context from middleware stack in children
  66097. return obj.Quantity, nil
  66098. })
  66099. if err != nil {
  66100. ec.Error(ctx, err)
  66101. return graphql.Null
  66102. }
  66103. if resTmp == nil {
  66104. if !graphql.HasFieldError(ctx, fc) {
  66105. ec.Errorf(ctx, "must not be null")
  66106. }
  66107. return graphql.Null
  66108. }
  66109. res := resTmp.(int)
  66110. fc.Result = res
  66111. return ec.marshalNInt2int(ctx, field.Selections, res)
  66112. }
  66113. func (ec *executionContext) fieldContext_DraftOrderLineItem_quantity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  66114. fc = &graphql.FieldContext{
  66115. Object: "DraftOrderLineItem",
  66116. Field: field,
  66117. IsMethod: false,
  66118. IsResolver: false,
  66119. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  66120. return nil, errors.New("field of type Int does not have child fields")
  66121. },
  66122. }
  66123. return fc, nil
  66124. }
  66125. func (ec *executionContext) _DraftOrderLineItem_requiresShipping(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  66126. fc, err := ec.fieldContext_DraftOrderLineItem_requiresShipping(ctx, field)
  66127. if err != nil {
  66128. return graphql.Null
  66129. }
  66130. ctx = graphql.WithFieldContext(ctx, fc)
  66131. defer func() {
  66132. if r := recover(); r != nil {
  66133. ec.Error(ctx, ec.Recover(ctx, r))
  66134. ret = graphql.Null
  66135. }
  66136. }()
  66137. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  66138. ctx = rctx // use context from middleware stack in children
  66139. return obj.RequiresShipping, nil
  66140. })
  66141. if err != nil {
  66142. ec.Error(ctx, err)
  66143. return graphql.Null
  66144. }
  66145. if resTmp == nil {
  66146. if !graphql.HasFieldError(ctx, fc) {
  66147. ec.Errorf(ctx, "must not be null")
  66148. }
  66149. return graphql.Null
  66150. }
  66151. res := resTmp.(bool)
  66152. fc.Result = res
  66153. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  66154. }
  66155. func (ec *executionContext) fieldContext_DraftOrderLineItem_requiresShipping(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  66156. fc = &graphql.FieldContext{
  66157. Object: "DraftOrderLineItem",
  66158. Field: field,
  66159. IsMethod: false,
  66160. IsResolver: false,
  66161. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  66162. return nil, errors.New("field of type Boolean does not have child fields")
  66163. },
  66164. }
  66165. return fc, nil
  66166. }
  66167. func (ec *executionContext) _DraftOrderLineItem_sku(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  66168. fc, err := ec.fieldContext_DraftOrderLineItem_sku(ctx, field)
  66169. if err != nil {
  66170. return graphql.Null
  66171. }
  66172. ctx = graphql.WithFieldContext(ctx, fc)
  66173. defer func() {
  66174. if r := recover(); r != nil {
  66175. ec.Error(ctx, ec.Recover(ctx, r))
  66176. ret = graphql.Null
  66177. }
  66178. }()
  66179. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  66180. ctx = rctx // use context from middleware stack in children
  66181. return obj.Sku, nil
  66182. })
  66183. if err != nil {
  66184. ec.Error(ctx, err)
  66185. return graphql.Null
  66186. }
  66187. if resTmp == nil {
  66188. return graphql.Null
  66189. }
  66190. res := resTmp.(*string)
  66191. fc.Result = res
  66192. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  66193. }
  66194. func (ec *executionContext) fieldContext_DraftOrderLineItem_sku(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  66195. fc = &graphql.FieldContext{
  66196. Object: "DraftOrderLineItem",
  66197. Field: field,
  66198. IsMethod: false,
  66199. IsResolver: false,
  66200. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  66201. return nil, errors.New("field of type String does not have child fields")
  66202. },
  66203. }
  66204. return fc, nil
  66205. }
  66206. func (ec *executionContext) _DraftOrderLineItem_taxLines(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  66207. fc, err := ec.fieldContext_DraftOrderLineItem_taxLines(ctx, field)
  66208. if err != nil {
  66209. return graphql.Null
  66210. }
  66211. ctx = graphql.WithFieldContext(ctx, fc)
  66212. defer func() {
  66213. if r := recover(); r != nil {
  66214. ec.Error(ctx, ec.Recover(ctx, r))
  66215. ret = graphql.Null
  66216. }
  66217. }()
  66218. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  66219. ctx = rctx // use context from middleware stack in children
  66220. return obj.TaxLines, nil
  66221. })
  66222. if err != nil {
  66223. ec.Error(ctx, err)
  66224. return graphql.Null
  66225. }
  66226. if resTmp == nil {
  66227. if !graphql.HasFieldError(ctx, fc) {
  66228. ec.Errorf(ctx, "must not be null")
  66229. }
  66230. return graphql.Null
  66231. }
  66232. res := resTmp.([]*TaxLine)
  66233. fc.Result = res
  66234. return ec.marshalNTaxLine2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐTaxLineᚄ(ctx, field.Selections, res)
  66235. }
  66236. func (ec *executionContext) fieldContext_DraftOrderLineItem_taxLines(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  66237. fc = &graphql.FieldContext{
  66238. Object: "DraftOrderLineItem",
  66239. Field: field,
  66240. IsMethod: false,
  66241. IsResolver: false,
  66242. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  66243. switch field.Name {
  66244. case "channelLiable":
  66245. return ec.fieldContext_TaxLine_channelLiable(ctx, field)
  66246. case "priceSet":
  66247. return ec.fieldContext_TaxLine_priceSet(ctx, field)
  66248. case "rate":
  66249. return ec.fieldContext_TaxLine_rate(ctx, field)
  66250. case "ratePercentage":
  66251. return ec.fieldContext_TaxLine_ratePercentage(ctx, field)
  66252. case "title":
  66253. return ec.fieldContext_TaxLine_title(ctx, field)
  66254. }
  66255. return nil, fmt.Errorf("no field named %q was found under type TaxLine", field.Name)
  66256. },
  66257. }
  66258. return fc, nil
  66259. }
  66260. func (ec *executionContext) _DraftOrderLineItem_taxable(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  66261. fc, err := ec.fieldContext_DraftOrderLineItem_taxable(ctx, field)
  66262. if err != nil {
  66263. return graphql.Null
  66264. }
  66265. ctx = graphql.WithFieldContext(ctx, fc)
  66266. defer func() {
  66267. if r := recover(); r != nil {
  66268. ec.Error(ctx, ec.Recover(ctx, r))
  66269. ret = graphql.Null
  66270. }
  66271. }()
  66272. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  66273. ctx = rctx // use context from middleware stack in children
  66274. return obj.Taxable, nil
  66275. })
  66276. if err != nil {
  66277. ec.Error(ctx, err)
  66278. return graphql.Null
  66279. }
  66280. if resTmp == nil {
  66281. if !graphql.HasFieldError(ctx, fc) {
  66282. ec.Errorf(ctx, "must not be null")
  66283. }
  66284. return graphql.Null
  66285. }
  66286. res := resTmp.(bool)
  66287. fc.Result = res
  66288. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  66289. }
  66290. func (ec *executionContext) fieldContext_DraftOrderLineItem_taxable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  66291. fc = &graphql.FieldContext{
  66292. Object: "DraftOrderLineItem",
  66293. Field: field,
  66294. IsMethod: false,
  66295. IsResolver: false,
  66296. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  66297. return nil, errors.New("field of type Boolean does not have child fields")
  66298. },
  66299. }
  66300. return fc, nil
  66301. }
  66302. func (ec *executionContext) _DraftOrderLineItem_title(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  66303. fc, err := ec.fieldContext_DraftOrderLineItem_title(ctx, field)
  66304. if err != nil {
  66305. return graphql.Null
  66306. }
  66307. ctx = graphql.WithFieldContext(ctx, fc)
  66308. defer func() {
  66309. if r := recover(); r != nil {
  66310. ec.Error(ctx, ec.Recover(ctx, r))
  66311. ret = graphql.Null
  66312. }
  66313. }()
  66314. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  66315. ctx = rctx // use context from middleware stack in children
  66316. return obj.Title, nil
  66317. })
  66318. if err != nil {
  66319. ec.Error(ctx, err)
  66320. return graphql.Null
  66321. }
  66322. if resTmp == nil {
  66323. if !graphql.HasFieldError(ctx, fc) {
  66324. ec.Errorf(ctx, "must not be null")
  66325. }
  66326. return graphql.Null
  66327. }
  66328. res := resTmp.(string)
  66329. fc.Result = res
  66330. return ec.marshalNString2string(ctx, field.Selections, res)
  66331. }
  66332. func (ec *executionContext) fieldContext_DraftOrderLineItem_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  66333. fc = &graphql.FieldContext{
  66334. Object: "DraftOrderLineItem",
  66335. Field: field,
  66336. IsMethod: false,
  66337. IsResolver: false,
  66338. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  66339. return nil, errors.New("field of type String does not have child fields")
  66340. },
  66341. }
  66342. return fc, nil
  66343. }
  66344. func (ec *executionContext) _DraftOrderLineItem_totalDiscount(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  66345. fc, err := ec.fieldContext_DraftOrderLineItem_totalDiscount(ctx, field)
  66346. if err != nil {
  66347. return graphql.Null
  66348. }
  66349. ctx = graphql.WithFieldContext(ctx, fc)
  66350. defer func() {
  66351. if r := recover(); r != nil {
  66352. ec.Error(ctx, ec.Recover(ctx, r))
  66353. ret = graphql.Null
  66354. }
  66355. }()
  66356. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  66357. ctx = rctx // use context from middleware stack in children
  66358. return obj.TotalDiscount, nil
  66359. })
  66360. if err != nil {
  66361. ec.Error(ctx, err)
  66362. return graphql.Null
  66363. }
  66364. if resTmp == nil {
  66365. if !graphql.HasFieldError(ctx, fc) {
  66366. ec.Errorf(ctx, "must not be null")
  66367. }
  66368. return graphql.Null
  66369. }
  66370. res := resTmp.(string)
  66371. fc.Result = res
  66372. return ec.marshalNMoney2string(ctx, field.Selections, res)
  66373. }
  66374. func (ec *executionContext) fieldContext_DraftOrderLineItem_totalDiscount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  66375. fc = &graphql.FieldContext{
  66376. Object: "DraftOrderLineItem",
  66377. Field: field,
  66378. IsMethod: false,
  66379. IsResolver: false,
  66380. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  66381. return nil, errors.New("field of type Money does not have child fields")
  66382. },
  66383. }
  66384. return fc, nil
  66385. }
  66386. func (ec *executionContext) _DraftOrderLineItem_totalDiscountSet(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  66387. fc, err := ec.fieldContext_DraftOrderLineItem_totalDiscountSet(ctx, field)
  66388. if err != nil {
  66389. return graphql.Null
  66390. }
  66391. ctx = graphql.WithFieldContext(ctx, fc)
  66392. defer func() {
  66393. if r := recover(); r != nil {
  66394. ec.Error(ctx, ec.Recover(ctx, r))
  66395. ret = graphql.Null
  66396. }
  66397. }()
  66398. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  66399. ctx = rctx // use context from middleware stack in children
  66400. return obj.TotalDiscountSet, nil
  66401. })
  66402. if err != nil {
  66403. ec.Error(ctx, err)
  66404. return graphql.Null
  66405. }
  66406. if resTmp == nil {
  66407. if !graphql.HasFieldError(ctx, fc) {
  66408. ec.Errorf(ctx, "must not be null")
  66409. }
  66410. return graphql.Null
  66411. }
  66412. res := resTmp.(*MoneyBag)
  66413. fc.Result = res
  66414. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  66415. }
  66416. func (ec *executionContext) fieldContext_DraftOrderLineItem_totalDiscountSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  66417. fc = &graphql.FieldContext{
  66418. Object: "DraftOrderLineItem",
  66419. Field: field,
  66420. IsMethod: false,
  66421. IsResolver: false,
  66422. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  66423. switch field.Name {
  66424. case "presentmentMoney":
  66425. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  66426. case "shopMoney":
  66427. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  66428. }
  66429. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  66430. },
  66431. }
  66432. return fc, nil
  66433. }
  66434. func (ec *executionContext) _DraftOrderLineItem_variant(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  66435. fc, err := ec.fieldContext_DraftOrderLineItem_variant(ctx, field)
  66436. if err != nil {
  66437. return graphql.Null
  66438. }
  66439. ctx = graphql.WithFieldContext(ctx, fc)
  66440. defer func() {
  66441. if r := recover(); r != nil {
  66442. ec.Error(ctx, ec.Recover(ctx, r))
  66443. ret = graphql.Null
  66444. }
  66445. }()
  66446. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  66447. ctx = rctx // use context from middleware stack in children
  66448. return obj.Variant, nil
  66449. })
  66450. if err != nil {
  66451. ec.Error(ctx, err)
  66452. return graphql.Null
  66453. }
  66454. if resTmp == nil {
  66455. return graphql.Null
  66456. }
  66457. res := resTmp.(*ProductVariant)
  66458. fc.Result = res
  66459. return ec.marshalOProductVariant2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariant(ctx, field.Selections, res)
  66460. }
  66461. func (ec *executionContext) fieldContext_DraftOrderLineItem_variant(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  66462. fc = &graphql.FieldContext{
  66463. Object: "DraftOrderLineItem",
  66464. Field: field,
  66465. IsMethod: false,
  66466. IsResolver: false,
  66467. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  66468. switch field.Name {
  66469. case "availableForSale":
  66470. return ec.fieldContext_ProductVariant_availableForSale(ctx, field)
  66471. case "barcode":
  66472. return ec.fieldContext_ProductVariant_barcode(ctx, field)
  66473. case "compareAtPrice":
  66474. return ec.fieldContext_ProductVariant_compareAtPrice(ctx, field)
  66475. case "contextualPricing":
  66476. return ec.fieldContext_ProductVariant_contextualPricing(ctx, field)
  66477. case "createdAt":
  66478. return ec.fieldContext_ProductVariant_createdAt(ctx, field)
  66479. case "defaultCursor":
  66480. return ec.fieldContext_ProductVariant_defaultCursor(ctx, field)
  66481. case "deliveryProfile":
  66482. return ec.fieldContext_ProductVariant_deliveryProfile(ctx, field)
  66483. case "displayName":
  66484. return ec.fieldContext_ProductVariant_displayName(ctx, field)
  66485. case "fulfillmentServiceEditable":
  66486. return ec.fieldContext_ProductVariant_fulfillmentServiceEditable(ctx, field)
  66487. case "id":
  66488. return ec.fieldContext_ProductVariant_id(ctx, field)
  66489. case "image":
  66490. return ec.fieldContext_ProductVariant_image(ctx, field)
  66491. case "inventoryItem":
  66492. return ec.fieldContext_ProductVariant_inventoryItem(ctx, field)
  66493. case "inventoryPolicy":
  66494. return ec.fieldContext_ProductVariant_inventoryPolicy(ctx, field)
  66495. case "inventoryQuantity":
  66496. return ec.fieldContext_ProductVariant_inventoryQuantity(ctx, field)
  66497. case "legacyResourceId":
  66498. return ec.fieldContext_ProductVariant_legacyResourceId(ctx, field)
  66499. case "media":
  66500. return ec.fieldContext_ProductVariant_media(ctx, field)
  66501. case "metafield":
  66502. return ec.fieldContext_ProductVariant_metafield(ctx, field)
  66503. case "metafieldDefinitions":
  66504. return ec.fieldContext_ProductVariant_metafieldDefinitions(ctx, field)
  66505. case "metafields":
  66506. return ec.fieldContext_ProductVariant_metafields(ctx, field)
  66507. case "position":
  66508. return ec.fieldContext_ProductVariant_position(ctx, field)
  66509. case "price":
  66510. return ec.fieldContext_ProductVariant_price(ctx, field)
  66511. case "privateMetafield":
  66512. return ec.fieldContext_ProductVariant_privateMetafield(ctx, field)
  66513. case "privateMetafields":
  66514. return ec.fieldContext_ProductVariant_privateMetafields(ctx, field)
  66515. case "product":
  66516. return ec.fieldContext_ProductVariant_product(ctx, field)
  66517. case "selectedOptions":
  66518. return ec.fieldContext_ProductVariant_selectedOptions(ctx, field)
  66519. case "sellableOnlineQuantity":
  66520. return ec.fieldContext_ProductVariant_sellableOnlineQuantity(ctx, field)
  66521. case "sellingPlanGroupCount":
  66522. return ec.fieldContext_ProductVariant_sellingPlanGroupCount(ctx, field)
  66523. case "sellingPlanGroups":
  66524. return ec.fieldContext_ProductVariant_sellingPlanGroups(ctx, field)
  66525. case "sku":
  66526. return ec.fieldContext_ProductVariant_sku(ctx, field)
  66527. case "taxCode":
  66528. return ec.fieldContext_ProductVariant_taxCode(ctx, field)
  66529. case "taxable":
  66530. return ec.fieldContext_ProductVariant_taxable(ctx, field)
  66531. case "title":
  66532. return ec.fieldContext_ProductVariant_title(ctx, field)
  66533. case "translations":
  66534. return ec.fieldContext_ProductVariant_translations(ctx, field)
  66535. case "updatedAt":
  66536. return ec.fieldContext_ProductVariant_updatedAt(ctx, field)
  66537. case "weight":
  66538. return ec.fieldContext_ProductVariant_weight(ctx, field)
  66539. case "weightUnit":
  66540. return ec.fieldContext_ProductVariant_weightUnit(ctx, field)
  66541. }
  66542. return nil, fmt.Errorf("no field named %q was found under type ProductVariant", field.Name)
  66543. },
  66544. }
  66545. return fc, nil
  66546. }
  66547. func (ec *executionContext) _DraftOrderLineItem_variantTitle(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  66548. fc, err := ec.fieldContext_DraftOrderLineItem_variantTitle(ctx, field)
  66549. if err != nil {
  66550. return graphql.Null
  66551. }
  66552. ctx = graphql.WithFieldContext(ctx, fc)
  66553. defer func() {
  66554. if r := recover(); r != nil {
  66555. ec.Error(ctx, ec.Recover(ctx, r))
  66556. ret = graphql.Null
  66557. }
  66558. }()
  66559. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  66560. ctx = rctx // use context from middleware stack in children
  66561. return obj.VariantTitle, nil
  66562. })
  66563. if err != nil {
  66564. ec.Error(ctx, err)
  66565. return graphql.Null
  66566. }
  66567. if resTmp == nil {
  66568. return graphql.Null
  66569. }
  66570. res := resTmp.(*string)
  66571. fc.Result = res
  66572. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  66573. }
  66574. func (ec *executionContext) fieldContext_DraftOrderLineItem_variantTitle(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  66575. fc = &graphql.FieldContext{
  66576. Object: "DraftOrderLineItem",
  66577. Field: field,
  66578. IsMethod: false,
  66579. IsResolver: false,
  66580. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  66581. return nil, errors.New("field of type String does not have child fields")
  66582. },
  66583. }
  66584. return fc, nil
  66585. }
  66586. func (ec *executionContext) _DraftOrderLineItem_vendor(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  66587. fc, err := ec.fieldContext_DraftOrderLineItem_vendor(ctx, field)
  66588. if err != nil {
  66589. return graphql.Null
  66590. }
  66591. ctx = graphql.WithFieldContext(ctx, fc)
  66592. defer func() {
  66593. if r := recover(); r != nil {
  66594. ec.Error(ctx, ec.Recover(ctx, r))
  66595. ret = graphql.Null
  66596. }
  66597. }()
  66598. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  66599. ctx = rctx // use context from middleware stack in children
  66600. return obj.Vendor, nil
  66601. })
  66602. if err != nil {
  66603. ec.Error(ctx, err)
  66604. return graphql.Null
  66605. }
  66606. if resTmp == nil {
  66607. return graphql.Null
  66608. }
  66609. res := resTmp.(*string)
  66610. fc.Result = res
  66611. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  66612. }
  66613. func (ec *executionContext) fieldContext_DraftOrderLineItem_vendor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  66614. fc = &graphql.FieldContext{
  66615. Object: "DraftOrderLineItem",
  66616. Field: field,
  66617. IsMethod: false,
  66618. IsResolver: false,
  66619. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  66620. return nil, errors.New("field of type String does not have child fields")
  66621. },
  66622. }
  66623. return fc, nil
  66624. }
  66625. func (ec *executionContext) _DraftOrderLineItem_weight(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItem) (ret graphql.Marshaler) {
  66626. fc, err := ec.fieldContext_DraftOrderLineItem_weight(ctx, field)
  66627. if err != nil {
  66628. return graphql.Null
  66629. }
  66630. ctx = graphql.WithFieldContext(ctx, fc)
  66631. defer func() {
  66632. if r := recover(); r != nil {
  66633. ec.Error(ctx, ec.Recover(ctx, r))
  66634. ret = graphql.Null
  66635. }
  66636. }()
  66637. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  66638. ctx = rctx // use context from middleware stack in children
  66639. return obj.Weight, nil
  66640. })
  66641. if err != nil {
  66642. ec.Error(ctx, err)
  66643. return graphql.Null
  66644. }
  66645. if resTmp == nil {
  66646. return graphql.Null
  66647. }
  66648. res := resTmp.(*Weight)
  66649. fc.Result = res
  66650. return ec.marshalOWeight2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐWeight(ctx, field.Selections, res)
  66651. }
  66652. func (ec *executionContext) fieldContext_DraftOrderLineItem_weight(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  66653. fc = &graphql.FieldContext{
  66654. Object: "DraftOrderLineItem",
  66655. Field: field,
  66656. IsMethod: false,
  66657. IsResolver: false,
  66658. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  66659. switch field.Name {
  66660. case "unit":
  66661. return ec.fieldContext_Weight_unit(ctx, field)
  66662. case "value":
  66663. return ec.fieldContext_Weight_value(ctx, field)
  66664. }
  66665. return nil, fmt.Errorf("no field named %q was found under type Weight", field.Name)
  66666. },
  66667. }
  66668. return fc, nil
  66669. }
  66670. func (ec *executionContext) _DraftOrderLineItemConnection_edges(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItemConnection) (ret graphql.Marshaler) {
  66671. fc, err := ec.fieldContext_DraftOrderLineItemConnection_edges(ctx, field)
  66672. if err != nil {
  66673. return graphql.Null
  66674. }
  66675. ctx = graphql.WithFieldContext(ctx, fc)
  66676. defer func() {
  66677. if r := recover(); r != nil {
  66678. ec.Error(ctx, ec.Recover(ctx, r))
  66679. ret = graphql.Null
  66680. }
  66681. }()
  66682. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  66683. ctx = rctx // use context from middleware stack in children
  66684. return obj.Edges, nil
  66685. })
  66686. if err != nil {
  66687. ec.Error(ctx, err)
  66688. return graphql.Null
  66689. }
  66690. if resTmp == nil {
  66691. if !graphql.HasFieldError(ctx, fc) {
  66692. ec.Errorf(ctx, "must not be null")
  66693. }
  66694. return graphql.Null
  66695. }
  66696. res := resTmp.([]*DraftOrderLineItemEdge)
  66697. fc.Result = res
  66698. return ec.marshalNDraftOrderLineItemEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderLineItemEdgeᚄ(ctx, field.Selections, res)
  66699. }
  66700. func (ec *executionContext) fieldContext_DraftOrderLineItemConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  66701. fc = &graphql.FieldContext{
  66702. Object: "DraftOrderLineItemConnection",
  66703. Field: field,
  66704. IsMethod: false,
  66705. IsResolver: false,
  66706. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  66707. switch field.Name {
  66708. case "cursor":
  66709. return ec.fieldContext_DraftOrderLineItemEdge_cursor(ctx, field)
  66710. case "node":
  66711. return ec.fieldContext_DraftOrderLineItemEdge_node(ctx, field)
  66712. }
  66713. return nil, fmt.Errorf("no field named %q was found under type DraftOrderLineItemEdge", field.Name)
  66714. },
  66715. }
  66716. return fc, nil
  66717. }
  66718. func (ec *executionContext) _DraftOrderLineItemConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItemConnection) (ret graphql.Marshaler) {
  66719. fc, err := ec.fieldContext_DraftOrderLineItemConnection_nodes(ctx, field)
  66720. if err != nil {
  66721. return graphql.Null
  66722. }
  66723. ctx = graphql.WithFieldContext(ctx, fc)
  66724. defer func() {
  66725. if r := recover(); r != nil {
  66726. ec.Error(ctx, ec.Recover(ctx, r))
  66727. ret = graphql.Null
  66728. }
  66729. }()
  66730. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  66731. ctx = rctx // use context from middleware stack in children
  66732. return obj.Nodes, nil
  66733. })
  66734. if err != nil {
  66735. ec.Error(ctx, err)
  66736. return graphql.Null
  66737. }
  66738. if resTmp == nil {
  66739. if !graphql.HasFieldError(ctx, fc) {
  66740. ec.Errorf(ctx, "must not be null")
  66741. }
  66742. return graphql.Null
  66743. }
  66744. res := resTmp.([]*DraftOrderLineItem)
  66745. fc.Result = res
  66746. return ec.marshalNDraftOrderLineItem2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderLineItemᚄ(ctx, field.Selections, res)
  66747. }
  66748. func (ec *executionContext) fieldContext_DraftOrderLineItemConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  66749. fc = &graphql.FieldContext{
  66750. Object: "DraftOrderLineItemConnection",
  66751. Field: field,
  66752. IsMethod: false,
  66753. IsResolver: false,
  66754. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  66755. switch field.Name {
  66756. case "appliedDiscount":
  66757. return ec.fieldContext_DraftOrderLineItem_appliedDiscount(ctx, field)
  66758. case "custom":
  66759. return ec.fieldContext_DraftOrderLineItem_custom(ctx, field)
  66760. case "customAttributes":
  66761. return ec.fieldContext_DraftOrderLineItem_customAttributes(ctx, field)
  66762. case "customAttributesV2":
  66763. return ec.fieldContext_DraftOrderLineItem_customAttributesV2(ctx, field)
  66764. case "discountedTotal":
  66765. return ec.fieldContext_DraftOrderLineItem_discountedTotal(ctx, field)
  66766. case "discountedTotalSet":
  66767. return ec.fieldContext_DraftOrderLineItem_discountedTotalSet(ctx, field)
  66768. case "discountedUnitPrice":
  66769. return ec.fieldContext_DraftOrderLineItem_discountedUnitPrice(ctx, field)
  66770. case "discountedUnitPriceSet":
  66771. return ec.fieldContext_DraftOrderLineItem_discountedUnitPriceSet(ctx, field)
  66772. case "fulfillmentService":
  66773. return ec.fieldContext_DraftOrderLineItem_fulfillmentService(ctx, field)
  66774. case "id":
  66775. return ec.fieldContext_DraftOrderLineItem_id(ctx, field)
  66776. case "image":
  66777. return ec.fieldContext_DraftOrderLineItem_image(ctx, field)
  66778. case "isGiftCard":
  66779. return ec.fieldContext_DraftOrderLineItem_isGiftCard(ctx, field)
  66780. case "name":
  66781. return ec.fieldContext_DraftOrderLineItem_name(ctx, field)
  66782. case "originalTotal":
  66783. return ec.fieldContext_DraftOrderLineItem_originalTotal(ctx, field)
  66784. case "originalTotalSet":
  66785. return ec.fieldContext_DraftOrderLineItem_originalTotalSet(ctx, field)
  66786. case "originalUnitPrice":
  66787. return ec.fieldContext_DraftOrderLineItem_originalUnitPrice(ctx, field)
  66788. case "originalUnitPriceSet":
  66789. return ec.fieldContext_DraftOrderLineItem_originalUnitPriceSet(ctx, field)
  66790. case "product":
  66791. return ec.fieldContext_DraftOrderLineItem_product(ctx, field)
  66792. case "quantity":
  66793. return ec.fieldContext_DraftOrderLineItem_quantity(ctx, field)
  66794. case "requiresShipping":
  66795. return ec.fieldContext_DraftOrderLineItem_requiresShipping(ctx, field)
  66796. case "sku":
  66797. return ec.fieldContext_DraftOrderLineItem_sku(ctx, field)
  66798. case "taxLines":
  66799. return ec.fieldContext_DraftOrderLineItem_taxLines(ctx, field)
  66800. case "taxable":
  66801. return ec.fieldContext_DraftOrderLineItem_taxable(ctx, field)
  66802. case "title":
  66803. return ec.fieldContext_DraftOrderLineItem_title(ctx, field)
  66804. case "totalDiscount":
  66805. return ec.fieldContext_DraftOrderLineItem_totalDiscount(ctx, field)
  66806. case "totalDiscountSet":
  66807. return ec.fieldContext_DraftOrderLineItem_totalDiscountSet(ctx, field)
  66808. case "variant":
  66809. return ec.fieldContext_DraftOrderLineItem_variant(ctx, field)
  66810. case "variantTitle":
  66811. return ec.fieldContext_DraftOrderLineItem_variantTitle(ctx, field)
  66812. case "vendor":
  66813. return ec.fieldContext_DraftOrderLineItem_vendor(ctx, field)
  66814. case "weight":
  66815. return ec.fieldContext_DraftOrderLineItem_weight(ctx, field)
  66816. }
  66817. return nil, fmt.Errorf("no field named %q was found under type DraftOrderLineItem", field.Name)
  66818. },
  66819. }
  66820. return fc, nil
  66821. }
  66822. func (ec *executionContext) _DraftOrderLineItemConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItemConnection) (ret graphql.Marshaler) {
  66823. fc, err := ec.fieldContext_DraftOrderLineItemConnection_pageInfo(ctx, field)
  66824. if err != nil {
  66825. return graphql.Null
  66826. }
  66827. ctx = graphql.WithFieldContext(ctx, fc)
  66828. defer func() {
  66829. if r := recover(); r != nil {
  66830. ec.Error(ctx, ec.Recover(ctx, r))
  66831. ret = graphql.Null
  66832. }
  66833. }()
  66834. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  66835. ctx = rctx // use context from middleware stack in children
  66836. return obj.PageInfo, nil
  66837. })
  66838. if err != nil {
  66839. ec.Error(ctx, err)
  66840. return graphql.Null
  66841. }
  66842. if resTmp == nil {
  66843. if !graphql.HasFieldError(ctx, fc) {
  66844. ec.Errorf(ctx, "must not be null")
  66845. }
  66846. return graphql.Null
  66847. }
  66848. res := resTmp.(*PageInfo)
  66849. fc.Result = res
  66850. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  66851. }
  66852. func (ec *executionContext) fieldContext_DraftOrderLineItemConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  66853. fc = &graphql.FieldContext{
  66854. Object: "DraftOrderLineItemConnection",
  66855. Field: field,
  66856. IsMethod: false,
  66857. IsResolver: false,
  66858. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  66859. switch field.Name {
  66860. case "endCursor":
  66861. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  66862. case "hasNextPage":
  66863. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  66864. case "hasPreviousPage":
  66865. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  66866. case "startCursor":
  66867. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  66868. }
  66869. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  66870. },
  66871. }
  66872. return fc, nil
  66873. }
  66874. func (ec *executionContext) _DraftOrderLineItemEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItemEdge) (ret graphql.Marshaler) {
  66875. fc, err := ec.fieldContext_DraftOrderLineItemEdge_cursor(ctx, field)
  66876. if err != nil {
  66877. return graphql.Null
  66878. }
  66879. ctx = graphql.WithFieldContext(ctx, fc)
  66880. defer func() {
  66881. if r := recover(); r != nil {
  66882. ec.Error(ctx, ec.Recover(ctx, r))
  66883. ret = graphql.Null
  66884. }
  66885. }()
  66886. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  66887. ctx = rctx // use context from middleware stack in children
  66888. return obj.Cursor, nil
  66889. })
  66890. if err != nil {
  66891. ec.Error(ctx, err)
  66892. return graphql.Null
  66893. }
  66894. if resTmp == nil {
  66895. if !graphql.HasFieldError(ctx, fc) {
  66896. ec.Errorf(ctx, "must not be null")
  66897. }
  66898. return graphql.Null
  66899. }
  66900. res := resTmp.(string)
  66901. fc.Result = res
  66902. return ec.marshalNString2string(ctx, field.Selections, res)
  66903. }
  66904. func (ec *executionContext) fieldContext_DraftOrderLineItemEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  66905. fc = &graphql.FieldContext{
  66906. Object: "DraftOrderLineItemEdge",
  66907. Field: field,
  66908. IsMethod: false,
  66909. IsResolver: false,
  66910. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  66911. return nil, errors.New("field of type String does not have child fields")
  66912. },
  66913. }
  66914. return fc, nil
  66915. }
  66916. func (ec *executionContext) _DraftOrderLineItemEdge_node(ctx context.Context, field graphql.CollectedField, obj *DraftOrderLineItemEdge) (ret graphql.Marshaler) {
  66917. fc, err := ec.fieldContext_DraftOrderLineItemEdge_node(ctx, field)
  66918. if err != nil {
  66919. return graphql.Null
  66920. }
  66921. ctx = graphql.WithFieldContext(ctx, fc)
  66922. defer func() {
  66923. if r := recover(); r != nil {
  66924. ec.Error(ctx, ec.Recover(ctx, r))
  66925. ret = graphql.Null
  66926. }
  66927. }()
  66928. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  66929. ctx = rctx // use context from middleware stack in children
  66930. return obj.Node, nil
  66931. })
  66932. if err != nil {
  66933. ec.Error(ctx, err)
  66934. return graphql.Null
  66935. }
  66936. if resTmp == nil {
  66937. if !graphql.HasFieldError(ctx, fc) {
  66938. ec.Errorf(ctx, "must not be null")
  66939. }
  66940. return graphql.Null
  66941. }
  66942. res := resTmp.(*DraftOrderLineItem)
  66943. fc.Result = res
  66944. return ec.marshalNDraftOrderLineItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderLineItem(ctx, field.Selections, res)
  66945. }
  66946. func (ec *executionContext) fieldContext_DraftOrderLineItemEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  66947. fc = &graphql.FieldContext{
  66948. Object: "DraftOrderLineItemEdge",
  66949. Field: field,
  66950. IsMethod: false,
  66951. IsResolver: false,
  66952. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  66953. switch field.Name {
  66954. case "appliedDiscount":
  66955. return ec.fieldContext_DraftOrderLineItem_appliedDiscount(ctx, field)
  66956. case "custom":
  66957. return ec.fieldContext_DraftOrderLineItem_custom(ctx, field)
  66958. case "customAttributes":
  66959. return ec.fieldContext_DraftOrderLineItem_customAttributes(ctx, field)
  66960. case "customAttributesV2":
  66961. return ec.fieldContext_DraftOrderLineItem_customAttributesV2(ctx, field)
  66962. case "discountedTotal":
  66963. return ec.fieldContext_DraftOrderLineItem_discountedTotal(ctx, field)
  66964. case "discountedTotalSet":
  66965. return ec.fieldContext_DraftOrderLineItem_discountedTotalSet(ctx, field)
  66966. case "discountedUnitPrice":
  66967. return ec.fieldContext_DraftOrderLineItem_discountedUnitPrice(ctx, field)
  66968. case "discountedUnitPriceSet":
  66969. return ec.fieldContext_DraftOrderLineItem_discountedUnitPriceSet(ctx, field)
  66970. case "fulfillmentService":
  66971. return ec.fieldContext_DraftOrderLineItem_fulfillmentService(ctx, field)
  66972. case "id":
  66973. return ec.fieldContext_DraftOrderLineItem_id(ctx, field)
  66974. case "image":
  66975. return ec.fieldContext_DraftOrderLineItem_image(ctx, field)
  66976. case "isGiftCard":
  66977. return ec.fieldContext_DraftOrderLineItem_isGiftCard(ctx, field)
  66978. case "name":
  66979. return ec.fieldContext_DraftOrderLineItem_name(ctx, field)
  66980. case "originalTotal":
  66981. return ec.fieldContext_DraftOrderLineItem_originalTotal(ctx, field)
  66982. case "originalTotalSet":
  66983. return ec.fieldContext_DraftOrderLineItem_originalTotalSet(ctx, field)
  66984. case "originalUnitPrice":
  66985. return ec.fieldContext_DraftOrderLineItem_originalUnitPrice(ctx, field)
  66986. case "originalUnitPriceSet":
  66987. return ec.fieldContext_DraftOrderLineItem_originalUnitPriceSet(ctx, field)
  66988. case "product":
  66989. return ec.fieldContext_DraftOrderLineItem_product(ctx, field)
  66990. case "quantity":
  66991. return ec.fieldContext_DraftOrderLineItem_quantity(ctx, field)
  66992. case "requiresShipping":
  66993. return ec.fieldContext_DraftOrderLineItem_requiresShipping(ctx, field)
  66994. case "sku":
  66995. return ec.fieldContext_DraftOrderLineItem_sku(ctx, field)
  66996. case "taxLines":
  66997. return ec.fieldContext_DraftOrderLineItem_taxLines(ctx, field)
  66998. case "taxable":
  66999. return ec.fieldContext_DraftOrderLineItem_taxable(ctx, field)
  67000. case "title":
  67001. return ec.fieldContext_DraftOrderLineItem_title(ctx, field)
  67002. case "totalDiscount":
  67003. return ec.fieldContext_DraftOrderLineItem_totalDiscount(ctx, field)
  67004. case "totalDiscountSet":
  67005. return ec.fieldContext_DraftOrderLineItem_totalDiscountSet(ctx, field)
  67006. case "variant":
  67007. return ec.fieldContext_DraftOrderLineItem_variant(ctx, field)
  67008. case "variantTitle":
  67009. return ec.fieldContext_DraftOrderLineItem_variantTitle(ctx, field)
  67010. case "vendor":
  67011. return ec.fieldContext_DraftOrderLineItem_vendor(ctx, field)
  67012. case "weight":
  67013. return ec.fieldContext_DraftOrderLineItem_weight(ctx, field)
  67014. }
  67015. return nil, fmt.Errorf("no field named %q was found under type DraftOrderLineItem", field.Name)
  67016. },
  67017. }
  67018. return fc, nil
  67019. }
  67020. func (ec *executionContext) _Duty_countryCodeOfOrigin(ctx context.Context, field graphql.CollectedField, obj *Duty) (ret graphql.Marshaler) {
  67021. fc, err := ec.fieldContext_Duty_countryCodeOfOrigin(ctx, field)
  67022. if err != nil {
  67023. return graphql.Null
  67024. }
  67025. ctx = graphql.WithFieldContext(ctx, fc)
  67026. defer func() {
  67027. if r := recover(); r != nil {
  67028. ec.Error(ctx, ec.Recover(ctx, r))
  67029. ret = graphql.Null
  67030. }
  67031. }()
  67032. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  67033. ctx = rctx // use context from middleware stack in children
  67034. return obj.CountryCodeOfOrigin, nil
  67035. })
  67036. if err != nil {
  67037. ec.Error(ctx, err)
  67038. return graphql.Null
  67039. }
  67040. if resTmp == nil {
  67041. return graphql.Null
  67042. }
  67043. res := resTmp.(*CountryCode)
  67044. fc.Result = res
  67045. return ec.marshalOCountryCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCode(ctx, field.Selections, res)
  67046. }
  67047. func (ec *executionContext) fieldContext_Duty_countryCodeOfOrigin(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  67048. fc = &graphql.FieldContext{
  67049. Object: "Duty",
  67050. Field: field,
  67051. IsMethod: false,
  67052. IsResolver: false,
  67053. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  67054. return nil, errors.New("field of type CountryCode does not have child fields")
  67055. },
  67056. }
  67057. return fc, nil
  67058. }
  67059. func (ec *executionContext) _Duty_harmonizedSystemCode(ctx context.Context, field graphql.CollectedField, obj *Duty) (ret graphql.Marshaler) {
  67060. fc, err := ec.fieldContext_Duty_harmonizedSystemCode(ctx, field)
  67061. if err != nil {
  67062. return graphql.Null
  67063. }
  67064. ctx = graphql.WithFieldContext(ctx, fc)
  67065. defer func() {
  67066. if r := recover(); r != nil {
  67067. ec.Error(ctx, ec.Recover(ctx, r))
  67068. ret = graphql.Null
  67069. }
  67070. }()
  67071. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  67072. ctx = rctx // use context from middleware stack in children
  67073. return obj.HarmonizedSystemCode, nil
  67074. })
  67075. if err != nil {
  67076. ec.Error(ctx, err)
  67077. return graphql.Null
  67078. }
  67079. if resTmp == nil {
  67080. return graphql.Null
  67081. }
  67082. res := resTmp.(*string)
  67083. fc.Result = res
  67084. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  67085. }
  67086. func (ec *executionContext) fieldContext_Duty_harmonizedSystemCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  67087. fc = &graphql.FieldContext{
  67088. Object: "Duty",
  67089. Field: field,
  67090. IsMethod: false,
  67091. IsResolver: false,
  67092. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  67093. return nil, errors.New("field of type String does not have child fields")
  67094. },
  67095. }
  67096. return fc, nil
  67097. }
  67098. func (ec *executionContext) _Duty_id(ctx context.Context, field graphql.CollectedField, obj *Duty) (ret graphql.Marshaler) {
  67099. fc, err := ec.fieldContext_Duty_id(ctx, field)
  67100. if err != nil {
  67101. return graphql.Null
  67102. }
  67103. ctx = graphql.WithFieldContext(ctx, fc)
  67104. defer func() {
  67105. if r := recover(); r != nil {
  67106. ec.Error(ctx, ec.Recover(ctx, r))
  67107. ret = graphql.Null
  67108. }
  67109. }()
  67110. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  67111. ctx = rctx // use context from middleware stack in children
  67112. return obj.ID, nil
  67113. })
  67114. if err != nil {
  67115. ec.Error(ctx, err)
  67116. return graphql.Null
  67117. }
  67118. if resTmp == nil {
  67119. if !graphql.HasFieldError(ctx, fc) {
  67120. ec.Errorf(ctx, "must not be null")
  67121. }
  67122. return graphql.Null
  67123. }
  67124. res := resTmp.(string)
  67125. fc.Result = res
  67126. return ec.marshalNID2string(ctx, field.Selections, res)
  67127. }
  67128. func (ec *executionContext) fieldContext_Duty_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  67129. fc = &graphql.FieldContext{
  67130. Object: "Duty",
  67131. Field: field,
  67132. IsMethod: false,
  67133. IsResolver: false,
  67134. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  67135. return nil, errors.New("field of type ID does not have child fields")
  67136. },
  67137. }
  67138. return fc, nil
  67139. }
  67140. func (ec *executionContext) _Duty_price(ctx context.Context, field graphql.CollectedField, obj *Duty) (ret graphql.Marshaler) {
  67141. fc, err := ec.fieldContext_Duty_price(ctx, field)
  67142. if err != nil {
  67143. return graphql.Null
  67144. }
  67145. ctx = graphql.WithFieldContext(ctx, fc)
  67146. defer func() {
  67147. if r := recover(); r != nil {
  67148. ec.Error(ctx, ec.Recover(ctx, r))
  67149. ret = graphql.Null
  67150. }
  67151. }()
  67152. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  67153. ctx = rctx // use context from middleware stack in children
  67154. return obj.Price, nil
  67155. })
  67156. if err != nil {
  67157. ec.Error(ctx, err)
  67158. return graphql.Null
  67159. }
  67160. if resTmp == nil {
  67161. if !graphql.HasFieldError(ctx, fc) {
  67162. ec.Errorf(ctx, "must not be null")
  67163. }
  67164. return graphql.Null
  67165. }
  67166. res := resTmp.(*MoneyBag)
  67167. fc.Result = res
  67168. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  67169. }
  67170. func (ec *executionContext) fieldContext_Duty_price(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  67171. fc = &graphql.FieldContext{
  67172. Object: "Duty",
  67173. Field: field,
  67174. IsMethod: false,
  67175. IsResolver: false,
  67176. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  67177. switch field.Name {
  67178. case "presentmentMoney":
  67179. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  67180. case "shopMoney":
  67181. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  67182. }
  67183. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  67184. },
  67185. }
  67186. return fc, nil
  67187. }
  67188. func (ec *executionContext) _Duty_taxLines(ctx context.Context, field graphql.CollectedField, obj *Duty) (ret graphql.Marshaler) {
  67189. fc, err := ec.fieldContext_Duty_taxLines(ctx, field)
  67190. if err != nil {
  67191. return graphql.Null
  67192. }
  67193. ctx = graphql.WithFieldContext(ctx, fc)
  67194. defer func() {
  67195. if r := recover(); r != nil {
  67196. ec.Error(ctx, ec.Recover(ctx, r))
  67197. ret = graphql.Null
  67198. }
  67199. }()
  67200. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  67201. ctx = rctx // use context from middleware stack in children
  67202. return obj.TaxLines, nil
  67203. })
  67204. if err != nil {
  67205. ec.Error(ctx, err)
  67206. return graphql.Null
  67207. }
  67208. if resTmp == nil {
  67209. if !graphql.HasFieldError(ctx, fc) {
  67210. ec.Errorf(ctx, "must not be null")
  67211. }
  67212. return graphql.Null
  67213. }
  67214. res := resTmp.([]*TaxLine)
  67215. fc.Result = res
  67216. return ec.marshalNTaxLine2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐTaxLineᚄ(ctx, field.Selections, res)
  67217. }
  67218. func (ec *executionContext) fieldContext_Duty_taxLines(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  67219. fc = &graphql.FieldContext{
  67220. Object: "Duty",
  67221. Field: field,
  67222. IsMethod: false,
  67223. IsResolver: false,
  67224. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  67225. switch field.Name {
  67226. case "channelLiable":
  67227. return ec.fieldContext_TaxLine_channelLiable(ctx, field)
  67228. case "priceSet":
  67229. return ec.fieldContext_TaxLine_priceSet(ctx, field)
  67230. case "rate":
  67231. return ec.fieldContext_TaxLine_rate(ctx, field)
  67232. case "ratePercentage":
  67233. return ec.fieldContext_TaxLine_ratePercentage(ctx, field)
  67234. case "title":
  67235. return ec.fieldContext_TaxLine_title(ctx, field)
  67236. }
  67237. return nil, fmt.Errorf("no field named %q was found under type TaxLine", field.Name)
  67238. },
  67239. }
  67240. return fc, nil
  67241. }
  67242. func (ec *executionContext) _EditableProperty_locked(ctx context.Context, field graphql.CollectedField, obj *EditableProperty) (ret graphql.Marshaler) {
  67243. fc, err := ec.fieldContext_EditableProperty_locked(ctx, field)
  67244. if err != nil {
  67245. return graphql.Null
  67246. }
  67247. ctx = graphql.WithFieldContext(ctx, fc)
  67248. defer func() {
  67249. if r := recover(); r != nil {
  67250. ec.Error(ctx, ec.Recover(ctx, r))
  67251. ret = graphql.Null
  67252. }
  67253. }()
  67254. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  67255. ctx = rctx // use context from middleware stack in children
  67256. return obj.Locked, nil
  67257. })
  67258. if err != nil {
  67259. ec.Error(ctx, err)
  67260. return graphql.Null
  67261. }
  67262. if resTmp == nil {
  67263. if !graphql.HasFieldError(ctx, fc) {
  67264. ec.Errorf(ctx, "must not be null")
  67265. }
  67266. return graphql.Null
  67267. }
  67268. res := resTmp.(bool)
  67269. fc.Result = res
  67270. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  67271. }
  67272. func (ec *executionContext) fieldContext_EditableProperty_locked(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  67273. fc = &graphql.FieldContext{
  67274. Object: "EditableProperty",
  67275. Field: field,
  67276. IsMethod: false,
  67277. IsResolver: false,
  67278. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  67279. return nil, errors.New("field of type Boolean does not have child fields")
  67280. },
  67281. }
  67282. return fc, nil
  67283. }
  67284. func (ec *executionContext) _EditableProperty_reason(ctx context.Context, field graphql.CollectedField, obj *EditableProperty) (ret graphql.Marshaler) {
  67285. fc, err := ec.fieldContext_EditableProperty_reason(ctx, field)
  67286. if err != nil {
  67287. return graphql.Null
  67288. }
  67289. ctx = graphql.WithFieldContext(ctx, fc)
  67290. defer func() {
  67291. if r := recover(); r != nil {
  67292. ec.Error(ctx, ec.Recover(ctx, r))
  67293. ret = graphql.Null
  67294. }
  67295. }()
  67296. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  67297. ctx = rctx // use context from middleware stack in children
  67298. return obj.Reason, nil
  67299. })
  67300. if err != nil {
  67301. ec.Error(ctx, err)
  67302. return graphql.Null
  67303. }
  67304. if resTmp == nil {
  67305. return graphql.Null
  67306. }
  67307. res := resTmp.(*string)
  67308. fc.Result = res
  67309. return ec.marshalOFormattedString2ᚖstring(ctx, field.Selections, res)
  67310. }
  67311. func (ec *executionContext) fieldContext_EditableProperty_reason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  67312. fc = &graphql.FieldContext{
  67313. Object: "EditableProperty",
  67314. Field: field,
  67315. IsMethod: false,
  67316. IsResolver: false,
  67317. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  67318. return nil, errors.New("field of type FormattedString does not have child fields")
  67319. },
  67320. }
  67321. return fc, nil
  67322. }
  67323. func (ec *executionContext) _Entity_findProductByID(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
  67324. fc, err := ec.fieldContext_Entity_findProductByID(ctx, field)
  67325. if err != nil {
  67326. return graphql.Null
  67327. }
  67328. ctx = graphql.WithFieldContext(ctx, fc)
  67329. defer func() {
  67330. if r := recover(); r != nil {
  67331. ec.Error(ctx, ec.Recover(ctx, r))
  67332. ret = graphql.Null
  67333. }
  67334. }()
  67335. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  67336. ctx = rctx // use context from middleware stack in children
  67337. return ec.resolvers.Entity().FindProductByID(rctx, fc.Args["id"].(string))
  67338. })
  67339. if err != nil {
  67340. ec.Error(ctx, err)
  67341. return graphql.Null
  67342. }
  67343. if resTmp == nil {
  67344. if !graphql.HasFieldError(ctx, fc) {
  67345. ec.Errorf(ctx, "must not be null")
  67346. }
  67347. return graphql.Null
  67348. }
  67349. res := resTmp.(*Product)
  67350. fc.Result = res
  67351. return ec.marshalNProduct2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProduct(ctx, field.Selections, res)
  67352. }
  67353. func (ec *executionContext) fieldContext_Entity_findProductByID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  67354. fc = &graphql.FieldContext{
  67355. Object: "Entity",
  67356. Field: field,
  67357. IsMethod: true,
  67358. IsResolver: true,
  67359. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  67360. switch field.Name {
  67361. case "availablePublicationCount":
  67362. return ec.fieldContext_Product_availablePublicationCount(ctx, field)
  67363. case "collections":
  67364. return ec.fieldContext_Product_collections(ctx, field)
  67365. case "contextualPricing":
  67366. return ec.fieldContext_Product_contextualPricing(ctx, field)
  67367. case "createdAt":
  67368. return ec.fieldContext_Product_createdAt(ctx, field)
  67369. case "defaultCursor":
  67370. return ec.fieldContext_Product_defaultCursor(ctx, field)
  67371. case "description":
  67372. return ec.fieldContext_Product_description(ctx, field)
  67373. case "descriptionHtml":
  67374. return ec.fieldContext_Product_descriptionHtml(ctx, field)
  67375. case "featuredImage":
  67376. return ec.fieldContext_Product_featuredImage(ctx, field)
  67377. case "featuredMedia":
  67378. return ec.fieldContext_Product_featuredMedia(ctx, field)
  67379. case "feedback":
  67380. return ec.fieldContext_Product_feedback(ctx, field)
  67381. case "giftCardTemplateSuffix":
  67382. return ec.fieldContext_Product_giftCardTemplateSuffix(ctx, field)
  67383. case "handle":
  67384. return ec.fieldContext_Product_handle(ctx, field)
  67385. case "hasOnlyDefaultVariant":
  67386. return ec.fieldContext_Product_hasOnlyDefaultVariant(ctx, field)
  67387. case "hasOutOfStockVariants":
  67388. return ec.fieldContext_Product_hasOutOfStockVariants(ctx, field)
  67389. case "id":
  67390. return ec.fieldContext_Product_id(ctx, field)
  67391. case "images":
  67392. return ec.fieldContext_Product_images(ctx, field)
  67393. case "inCollection":
  67394. return ec.fieldContext_Product_inCollection(ctx, field)
  67395. case "isGiftCard":
  67396. return ec.fieldContext_Product_isGiftCard(ctx, field)
  67397. case "legacyResourceId":
  67398. return ec.fieldContext_Product_legacyResourceId(ctx, field)
  67399. case "media":
  67400. return ec.fieldContext_Product_media(ctx, field)
  67401. case "mediaCount":
  67402. return ec.fieldContext_Product_mediaCount(ctx, field)
  67403. case "metafield":
  67404. return ec.fieldContext_Product_metafield(ctx, field)
  67405. case "metafieldDefinitions":
  67406. return ec.fieldContext_Product_metafieldDefinitions(ctx, field)
  67407. case "metafields":
  67408. return ec.fieldContext_Product_metafields(ctx, field)
  67409. case "onlineStorePreviewUrl":
  67410. return ec.fieldContext_Product_onlineStorePreviewUrl(ctx, field)
  67411. case "onlineStoreUrl":
  67412. return ec.fieldContext_Product_onlineStoreUrl(ctx, field)
  67413. case "options":
  67414. return ec.fieldContext_Product_options(ctx, field)
  67415. case "priceRangeV2":
  67416. return ec.fieldContext_Product_priceRangeV2(ctx, field)
  67417. case "privateMetafield":
  67418. return ec.fieldContext_Product_privateMetafield(ctx, field)
  67419. case "privateMetafields":
  67420. return ec.fieldContext_Product_privateMetafields(ctx, field)
  67421. case "productCategory":
  67422. return ec.fieldContext_Product_productCategory(ctx, field)
  67423. case "productType":
  67424. return ec.fieldContext_Product_productType(ctx, field)
  67425. case "publicationCount":
  67426. return ec.fieldContext_Product_publicationCount(ctx, field)
  67427. case "publishedAt":
  67428. return ec.fieldContext_Product_publishedAt(ctx, field)
  67429. case "publishedOnCurrentPublication":
  67430. return ec.fieldContext_Product_publishedOnCurrentPublication(ctx, field)
  67431. case "publishedOnPublication":
  67432. return ec.fieldContext_Product_publishedOnPublication(ctx, field)
  67433. case "requiresSellingPlan":
  67434. return ec.fieldContext_Product_requiresSellingPlan(ctx, field)
  67435. case "resourcePublicationOnCurrentPublication":
  67436. return ec.fieldContext_Product_resourcePublicationOnCurrentPublication(ctx, field)
  67437. case "resourcePublications":
  67438. return ec.fieldContext_Product_resourcePublications(ctx, field)
  67439. case "resourcePublicationsV2":
  67440. return ec.fieldContext_Product_resourcePublicationsV2(ctx, field)
  67441. case "sellingPlanGroupCount":
  67442. return ec.fieldContext_Product_sellingPlanGroupCount(ctx, field)
  67443. case "sellingPlanGroups":
  67444. return ec.fieldContext_Product_sellingPlanGroups(ctx, field)
  67445. case "seo":
  67446. return ec.fieldContext_Product_seo(ctx, field)
  67447. case "status":
  67448. return ec.fieldContext_Product_status(ctx, field)
  67449. case "tags":
  67450. return ec.fieldContext_Product_tags(ctx, field)
  67451. case "templateSuffix":
  67452. return ec.fieldContext_Product_templateSuffix(ctx, field)
  67453. case "title":
  67454. return ec.fieldContext_Product_title(ctx, field)
  67455. case "totalInventory":
  67456. return ec.fieldContext_Product_totalInventory(ctx, field)
  67457. case "totalVariants":
  67458. return ec.fieldContext_Product_totalVariants(ctx, field)
  67459. case "tracksInventory":
  67460. return ec.fieldContext_Product_tracksInventory(ctx, field)
  67461. case "translations":
  67462. return ec.fieldContext_Product_translations(ctx, field)
  67463. case "unpublishedPublications":
  67464. return ec.fieldContext_Product_unpublishedPublications(ctx, field)
  67465. case "updatedAt":
  67466. return ec.fieldContext_Product_updatedAt(ctx, field)
  67467. case "variants":
  67468. return ec.fieldContext_Product_variants(ctx, field)
  67469. case "vendor":
  67470. return ec.fieldContext_Product_vendor(ctx, field)
  67471. }
  67472. return nil, fmt.Errorf("no field named %q was found under type Product", field.Name)
  67473. },
  67474. }
  67475. defer func() {
  67476. if r := recover(); r != nil {
  67477. err = ec.Recover(ctx, r)
  67478. ec.Error(ctx, err)
  67479. }
  67480. }()
  67481. ctx = graphql.WithFieldContext(ctx, fc)
  67482. if fc.Args, err = ec.field_Entity_findProductByID_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  67483. ec.Error(ctx, err)
  67484. return
  67485. }
  67486. return fc, nil
  67487. }
  67488. func (ec *executionContext) _EventConnection_edges(ctx context.Context, field graphql.CollectedField, obj *EventConnection) (ret graphql.Marshaler) {
  67489. fc, err := ec.fieldContext_EventConnection_edges(ctx, field)
  67490. if err != nil {
  67491. return graphql.Null
  67492. }
  67493. ctx = graphql.WithFieldContext(ctx, fc)
  67494. defer func() {
  67495. if r := recover(); r != nil {
  67496. ec.Error(ctx, ec.Recover(ctx, r))
  67497. ret = graphql.Null
  67498. }
  67499. }()
  67500. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  67501. ctx = rctx // use context from middleware stack in children
  67502. return obj.Edges, nil
  67503. })
  67504. if err != nil {
  67505. ec.Error(ctx, err)
  67506. return graphql.Null
  67507. }
  67508. if resTmp == nil {
  67509. if !graphql.HasFieldError(ctx, fc) {
  67510. ec.Errorf(ctx, "must not be null")
  67511. }
  67512. return graphql.Null
  67513. }
  67514. res := resTmp.([]*EventEdge)
  67515. fc.Result = res
  67516. return ec.marshalNEventEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐEventEdgeᚄ(ctx, field.Selections, res)
  67517. }
  67518. func (ec *executionContext) fieldContext_EventConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  67519. fc = &graphql.FieldContext{
  67520. Object: "EventConnection",
  67521. Field: field,
  67522. IsMethod: false,
  67523. IsResolver: false,
  67524. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  67525. switch field.Name {
  67526. case "cursor":
  67527. return ec.fieldContext_EventEdge_cursor(ctx, field)
  67528. case "node":
  67529. return ec.fieldContext_EventEdge_node(ctx, field)
  67530. }
  67531. return nil, fmt.Errorf("no field named %q was found under type EventEdge", field.Name)
  67532. },
  67533. }
  67534. return fc, nil
  67535. }
  67536. func (ec *executionContext) _EventConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *EventConnection) (ret graphql.Marshaler) {
  67537. fc, err := ec.fieldContext_EventConnection_nodes(ctx, field)
  67538. if err != nil {
  67539. return graphql.Null
  67540. }
  67541. ctx = graphql.WithFieldContext(ctx, fc)
  67542. defer func() {
  67543. if r := recover(); r != nil {
  67544. ec.Error(ctx, ec.Recover(ctx, r))
  67545. ret = graphql.Null
  67546. }
  67547. }()
  67548. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  67549. ctx = rctx // use context from middleware stack in children
  67550. return obj.Nodes, nil
  67551. })
  67552. if err != nil {
  67553. ec.Error(ctx, err)
  67554. return graphql.Null
  67555. }
  67556. if resTmp == nil {
  67557. if !graphql.HasFieldError(ctx, fc) {
  67558. ec.Errorf(ctx, "must not be null")
  67559. }
  67560. return graphql.Null
  67561. }
  67562. res := resTmp.([]Event)
  67563. fc.Result = res
  67564. return ec.marshalNEvent2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐEventᚄ(ctx, field.Selections, res)
  67565. }
  67566. func (ec *executionContext) fieldContext_EventConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  67567. fc = &graphql.FieldContext{
  67568. Object: "EventConnection",
  67569. Field: field,
  67570. IsMethod: false,
  67571. IsResolver: false,
  67572. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  67573. return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
  67574. },
  67575. }
  67576. return fc, nil
  67577. }
  67578. func (ec *executionContext) _EventConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *EventConnection) (ret graphql.Marshaler) {
  67579. fc, err := ec.fieldContext_EventConnection_pageInfo(ctx, field)
  67580. if err != nil {
  67581. return graphql.Null
  67582. }
  67583. ctx = graphql.WithFieldContext(ctx, fc)
  67584. defer func() {
  67585. if r := recover(); r != nil {
  67586. ec.Error(ctx, ec.Recover(ctx, r))
  67587. ret = graphql.Null
  67588. }
  67589. }()
  67590. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  67591. ctx = rctx // use context from middleware stack in children
  67592. return obj.PageInfo, nil
  67593. })
  67594. if err != nil {
  67595. ec.Error(ctx, err)
  67596. return graphql.Null
  67597. }
  67598. if resTmp == nil {
  67599. if !graphql.HasFieldError(ctx, fc) {
  67600. ec.Errorf(ctx, "must not be null")
  67601. }
  67602. return graphql.Null
  67603. }
  67604. res := resTmp.(*PageInfo)
  67605. fc.Result = res
  67606. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  67607. }
  67608. func (ec *executionContext) fieldContext_EventConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  67609. fc = &graphql.FieldContext{
  67610. Object: "EventConnection",
  67611. Field: field,
  67612. IsMethod: false,
  67613. IsResolver: false,
  67614. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  67615. switch field.Name {
  67616. case "endCursor":
  67617. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  67618. case "hasNextPage":
  67619. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  67620. case "hasPreviousPage":
  67621. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  67622. case "startCursor":
  67623. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  67624. }
  67625. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  67626. },
  67627. }
  67628. return fc, nil
  67629. }
  67630. func (ec *executionContext) _EventEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *EventEdge) (ret graphql.Marshaler) {
  67631. fc, err := ec.fieldContext_EventEdge_cursor(ctx, field)
  67632. if err != nil {
  67633. return graphql.Null
  67634. }
  67635. ctx = graphql.WithFieldContext(ctx, fc)
  67636. defer func() {
  67637. if r := recover(); r != nil {
  67638. ec.Error(ctx, ec.Recover(ctx, r))
  67639. ret = graphql.Null
  67640. }
  67641. }()
  67642. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  67643. ctx = rctx // use context from middleware stack in children
  67644. return obj.Cursor, nil
  67645. })
  67646. if err != nil {
  67647. ec.Error(ctx, err)
  67648. return graphql.Null
  67649. }
  67650. if resTmp == nil {
  67651. if !graphql.HasFieldError(ctx, fc) {
  67652. ec.Errorf(ctx, "must not be null")
  67653. }
  67654. return graphql.Null
  67655. }
  67656. res := resTmp.(string)
  67657. fc.Result = res
  67658. return ec.marshalNString2string(ctx, field.Selections, res)
  67659. }
  67660. func (ec *executionContext) fieldContext_EventEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  67661. fc = &graphql.FieldContext{
  67662. Object: "EventEdge",
  67663. Field: field,
  67664. IsMethod: false,
  67665. IsResolver: false,
  67666. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  67667. return nil, errors.New("field of type String does not have child fields")
  67668. },
  67669. }
  67670. return fc, nil
  67671. }
  67672. func (ec *executionContext) _EventEdge_node(ctx context.Context, field graphql.CollectedField, obj *EventEdge) (ret graphql.Marshaler) {
  67673. fc, err := ec.fieldContext_EventEdge_node(ctx, field)
  67674. if err != nil {
  67675. return graphql.Null
  67676. }
  67677. ctx = graphql.WithFieldContext(ctx, fc)
  67678. defer func() {
  67679. if r := recover(); r != nil {
  67680. ec.Error(ctx, ec.Recover(ctx, r))
  67681. ret = graphql.Null
  67682. }
  67683. }()
  67684. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  67685. ctx = rctx // use context from middleware stack in children
  67686. return obj.Node, nil
  67687. })
  67688. if err != nil {
  67689. ec.Error(ctx, err)
  67690. return graphql.Null
  67691. }
  67692. if resTmp == nil {
  67693. if !graphql.HasFieldError(ctx, fc) {
  67694. ec.Errorf(ctx, "must not be null")
  67695. }
  67696. return graphql.Null
  67697. }
  67698. res := resTmp.(Event)
  67699. fc.Result = res
  67700. return ec.marshalNEvent2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐEvent(ctx, field.Selections, res)
  67701. }
  67702. func (ec *executionContext) fieldContext_EventEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  67703. fc = &graphql.FieldContext{
  67704. Object: "EventEdge",
  67705. Field: field,
  67706. IsMethod: false,
  67707. IsResolver: false,
  67708. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  67709. return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
  67710. },
  67711. }
  67712. return fc, nil
  67713. }
  67714. func (ec *executionContext) _FailedRequirement_action(ctx context.Context, field graphql.CollectedField, obj *FailedRequirement) (ret graphql.Marshaler) {
  67715. fc, err := ec.fieldContext_FailedRequirement_action(ctx, field)
  67716. if err != nil {
  67717. return graphql.Null
  67718. }
  67719. ctx = graphql.WithFieldContext(ctx, fc)
  67720. defer func() {
  67721. if r := recover(); r != nil {
  67722. ec.Error(ctx, ec.Recover(ctx, r))
  67723. ret = graphql.Null
  67724. }
  67725. }()
  67726. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  67727. ctx = rctx // use context from middleware stack in children
  67728. return obj.Action, nil
  67729. })
  67730. if err != nil {
  67731. ec.Error(ctx, err)
  67732. return graphql.Null
  67733. }
  67734. if resTmp == nil {
  67735. return graphql.Null
  67736. }
  67737. res := resTmp.(*NavigationItem)
  67738. fc.Result = res
  67739. return ec.marshalONavigationItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐNavigationItem(ctx, field.Selections, res)
  67740. }
  67741. func (ec *executionContext) fieldContext_FailedRequirement_action(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  67742. fc = &graphql.FieldContext{
  67743. Object: "FailedRequirement",
  67744. Field: field,
  67745. IsMethod: false,
  67746. IsResolver: false,
  67747. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  67748. switch field.Name {
  67749. case "id":
  67750. return ec.fieldContext_NavigationItem_id(ctx, field)
  67751. case "title":
  67752. return ec.fieldContext_NavigationItem_title(ctx, field)
  67753. case "url":
  67754. return ec.fieldContext_NavigationItem_url(ctx, field)
  67755. }
  67756. return nil, fmt.Errorf("no field named %q was found under type NavigationItem", field.Name)
  67757. },
  67758. }
  67759. return fc, nil
  67760. }
  67761. func (ec *executionContext) _FailedRequirement_message(ctx context.Context, field graphql.CollectedField, obj *FailedRequirement) (ret graphql.Marshaler) {
  67762. fc, err := ec.fieldContext_FailedRequirement_message(ctx, field)
  67763. if err != nil {
  67764. return graphql.Null
  67765. }
  67766. ctx = graphql.WithFieldContext(ctx, fc)
  67767. defer func() {
  67768. if r := recover(); r != nil {
  67769. ec.Error(ctx, ec.Recover(ctx, r))
  67770. ret = graphql.Null
  67771. }
  67772. }()
  67773. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  67774. ctx = rctx // use context from middleware stack in children
  67775. return obj.Message, nil
  67776. })
  67777. if err != nil {
  67778. ec.Error(ctx, err)
  67779. return graphql.Null
  67780. }
  67781. if resTmp == nil {
  67782. if !graphql.HasFieldError(ctx, fc) {
  67783. ec.Errorf(ctx, "must not be null")
  67784. }
  67785. return graphql.Null
  67786. }
  67787. res := resTmp.(string)
  67788. fc.Result = res
  67789. return ec.marshalNString2string(ctx, field.Selections, res)
  67790. }
  67791. func (ec *executionContext) fieldContext_FailedRequirement_message(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  67792. fc = &graphql.FieldContext{
  67793. Object: "FailedRequirement",
  67794. Field: field,
  67795. IsMethod: false,
  67796. IsResolver: false,
  67797. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  67798. return nil, errors.New("field of type String does not have child fields")
  67799. },
  67800. }
  67801. return fc, nil
  67802. }
  67803. func (ec *executionContext) _FileError_code(ctx context.Context, field graphql.CollectedField, obj *FileError) (ret graphql.Marshaler) {
  67804. fc, err := ec.fieldContext_FileError_code(ctx, field)
  67805. if err != nil {
  67806. return graphql.Null
  67807. }
  67808. ctx = graphql.WithFieldContext(ctx, fc)
  67809. defer func() {
  67810. if r := recover(); r != nil {
  67811. ec.Error(ctx, ec.Recover(ctx, r))
  67812. ret = graphql.Null
  67813. }
  67814. }()
  67815. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  67816. ctx = rctx // use context from middleware stack in children
  67817. return obj.Code, nil
  67818. })
  67819. if err != nil {
  67820. ec.Error(ctx, err)
  67821. return graphql.Null
  67822. }
  67823. if resTmp == nil {
  67824. if !graphql.HasFieldError(ctx, fc) {
  67825. ec.Errorf(ctx, "must not be null")
  67826. }
  67827. return graphql.Null
  67828. }
  67829. res := resTmp.(FileErrorCode)
  67830. fc.Result = res
  67831. return ec.marshalNFileErrorCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFileErrorCode(ctx, field.Selections, res)
  67832. }
  67833. func (ec *executionContext) fieldContext_FileError_code(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  67834. fc = &graphql.FieldContext{
  67835. Object: "FileError",
  67836. Field: field,
  67837. IsMethod: false,
  67838. IsResolver: false,
  67839. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  67840. return nil, errors.New("field of type FileErrorCode does not have child fields")
  67841. },
  67842. }
  67843. return fc, nil
  67844. }
  67845. func (ec *executionContext) _FileError_details(ctx context.Context, field graphql.CollectedField, obj *FileError) (ret graphql.Marshaler) {
  67846. fc, err := ec.fieldContext_FileError_details(ctx, field)
  67847. if err != nil {
  67848. return graphql.Null
  67849. }
  67850. ctx = graphql.WithFieldContext(ctx, fc)
  67851. defer func() {
  67852. if r := recover(); r != nil {
  67853. ec.Error(ctx, ec.Recover(ctx, r))
  67854. ret = graphql.Null
  67855. }
  67856. }()
  67857. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  67858. ctx = rctx // use context from middleware stack in children
  67859. return obj.Details, nil
  67860. })
  67861. if err != nil {
  67862. ec.Error(ctx, err)
  67863. return graphql.Null
  67864. }
  67865. if resTmp == nil {
  67866. return graphql.Null
  67867. }
  67868. res := resTmp.(*string)
  67869. fc.Result = res
  67870. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  67871. }
  67872. func (ec *executionContext) fieldContext_FileError_details(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  67873. fc = &graphql.FieldContext{
  67874. Object: "FileError",
  67875. Field: field,
  67876. IsMethod: false,
  67877. IsResolver: false,
  67878. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  67879. return nil, errors.New("field of type String does not have child fields")
  67880. },
  67881. }
  67882. return fc, nil
  67883. }
  67884. func (ec *executionContext) _FileError_message(ctx context.Context, field graphql.CollectedField, obj *FileError) (ret graphql.Marshaler) {
  67885. fc, err := ec.fieldContext_FileError_message(ctx, field)
  67886. if err != nil {
  67887. return graphql.Null
  67888. }
  67889. ctx = graphql.WithFieldContext(ctx, fc)
  67890. defer func() {
  67891. if r := recover(); r != nil {
  67892. ec.Error(ctx, ec.Recover(ctx, r))
  67893. ret = graphql.Null
  67894. }
  67895. }()
  67896. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  67897. ctx = rctx // use context from middleware stack in children
  67898. return obj.Message, nil
  67899. })
  67900. if err != nil {
  67901. ec.Error(ctx, err)
  67902. return graphql.Null
  67903. }
  67904. if resTmp == nil {
  67905. if !graphql.HasFieldError(ctx, fc) {
  67906. ec.Errorf(ctx, "must not be null")
  67907. }
  67908. return graphql.Null
  67909. }
  67910. res := resTmp.(string)
  67911. fc.Result = res
  67912. return ec.marshalNString2string(ctx, field.Selections, res)
  67913. }
  67914. func (ec *executionContext) fieldContext_FileError_message(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  67915. fc = &graphql.FieldContext{
  67916. Object: "FileError",
  67917. Field: field,
  67918. IsMethod: false,
  67919. IsResolver: false,
  67920. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  67921. return nil, errors.New("field of type String does not have child fields")
  67922. },
  67923. }
  67924. return fc, nil
  67925. }
  67926. func (ec *executionContext) _FilterOption_label(ctx context.Context, field graphql.CollectedField, obj *FilterOption) (ret graphql.Marshaler) {
  67927. fc, err := ec.fieldContext_FilterOption_label(ctx, field)
  67928. if err != nil {
  67929. return graphql.Null
  67930. }
  67931. ctx = graphql.WithFieldContext(ctx, fc)
  67932. defer func() {
  67933. if r := recover(); r != nil {
  67934. ec.Error(ctx, ec.Recover(ctx, r))
  67935. ret = graphql.Null
  67936. }
  67937. }()
  67938. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  67939. ctx = rctx // use context from middleware stack in children
  67940. return obj.Label, nil
  67941. })
  67942. if err != nil {
  67943. ec.Error(ctx, err)
  67944. return graphql.Null
  67945. }
  67946. if resTmp == nil {
  67947. if !graphql.HasFieldError(ctx, fc) {
  67948. ec.Errorf(ctx, "must not be null")
  67949. }
  67950. return graphql.Null
  67951. }
  67952. res := resTmp.(string)
  67953. fc.Result = res
  67954. return ec.marshalNString2string(ctx, field.Selections, res)
  67955. }
  67956. func (ec *executionContext) fieldContext_FilterOption_label(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  67957. fc = &graphql.FieldContext{
  67958. Object: "FilterOption",
  67959. Field: field,
  67960. IsMethod: false,
  67961. IsResolver: false,
  67962. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  67963. return nil, errors.New("field of type String does not have child fields")
  67964. },
  67965. }
  67966. return fc, nil
  67967. }
  67968. func (ec *executionContext) _FilterOption_value(ctx context.Context, field graphql.CollectedField, obj *FilterOption) (ret graphql.Marshaler) {
  67969. fc, err := ec.fieldContext_FilterOption_value(ctx, field)
  67970. if err != nil {
  67971. return graphql.Null
  67972. }
  67973. ctx = graphql.WithFieldContext(ctx, fc)
  67974. defer func() {
  67975. if r := recover(); r != nil {
  67976. ec.Error(ctx, ec.Recover(ctx, r))
  67977. ret = graphql.Null
  67978. }
  67979. }()
  67980. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  67981. ctx = rctx // use context from middleware stack in children
  67982. return obj.Value, nil
  67983. })
  67984. if err != nil {
  67985. ec.Error(ctx, err)
  67986. return graphql.Null
  67987. }
  67988. if resTmp == nil {
  67989. if !graphql.HasFieldError(ctx, fc) {
  67990. ec.Errorf(ctx, "must not be null")
  67991. }
  67992. return graphql.Null
  67993. }
  67994. res := resTmp.(string)
  67995. fc.Result = res
  67996. return ec.marshalNString2string(ctx, field.Selections, res)
  67997. }
  67998. func (ec *executionContext) fieldContext_FilterOption_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  67999. fc = &graphql.FieldContext{
  68000. Object: "FilterOption",
  68001. Field: field,
  68002. IsMethod: false,
  68003. IsResolver: false,
  68004. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  68005. return nil, errors.New("field of type String does not have child fields")
  68006. },
  68007. }
  68008. return fc, nil
  68009. }
  68010. func (ec *executionContext) _Fulfillment_createdAt(ctx context.Context, field graphql.CollectedField, obj *Fulfillment) (ret graphql.Marshaler) {
  68011. fc, err := ec.fieldContext_Fulfillment_createdAt(ctx, field)
  68012. if err != nil {
  68013. return graphql.Null
  68014. }
  68015. ctx = graphql.WithFieldContext(ctx, fc)
  68016. defer func() {
  68017. if r := recover(); r != nil {
  68018. ec.Error(ctx, ec.Recover(ctx, r))
  68019. ret = graphql.Null
  68020. }
  68021. }()
  68022. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  68023. ctx = rctx // use context from middleware stack in children
  68024. return obj.CreatedAt, nil
  68025. })
  68026. if err != nil {
  68027. ec.Error(ctx, err)
  68028. return graphql.Null
  68029. }
  68030. if resTmp == nil {
  68031. if !graphql.HasFieldError(ctx, fc) {
  68032. ec.Errorf(ctx, "must not be null")
  68033. }
  68034. return graphql.Null
  68035. }
  68036. res := resTmp.(string)
  68037. fc.Result = res
  68038. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  68039. }
  68040. func (ec *executionContext) fieldContext_Fulfillment_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  68041. fc = &graphql.FieldContext{
  68042. Object: "Fulfillment",
  68043. Field: field,
  68044. IsMethod: false,
  68045. IsResolver: false,
  68046. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  68047. return nil, errors.New("field of type DateTime does not have child fields")
  68048. },
  68049. }
  68050. return fc, nil
  68051. }
  68052. func (ec *executionContext) _Fulfillment_deliveredAt(ctx context.Context, field graphql.CollectedField, obj *Fulfillment) (ret graphql.Marshaler) {
  68053. fc, err := ec.fieldContext_Fulfillment_deliveredAt(ctx, field)
  68054. if err != nil {
  68055. return graphql.Null
  68056. }
  68057. ctx = graphql.WithFieldContext(ctx, fc)
  68058. defer func() {
  68059. if r := recover(); r != nil {
  68060. ec.Error(ctx, ec.Recover(ctx, r))
  68061. ret = graphql.Null
  68062. }
  68063. }()
  68064. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  68065. ctx = rctx // use context from middleware stack in children
  68066. return obj.DeliveredAt, nil
  68067. })
  68068. if err != nil {
  68069. ec.Error(ctx, err)
  68070. return graphql.Null
  68071. }
  68072. if resTmp == nil {
  68073. return graphql.Null
  68074. }
  68075. res := resTmp.(*string)
  68076. fc.Result = res
  68077. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  68078. }
  68079. func (ec *executionContext) fieldContext_Fulfillment_deliveredAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  68080. fc = &graphql.FieldContext{
  68081. Object: "Fulfillment",
  68082. Field: field,
  68083. IsMethod: false,
  68084. IsResolver: false,
  68085. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  68086. return nil, errors.New("field of type DateTime does not have child fields")
  68087. },
  68088. }
  68089. return fc, nil
  68090. }
  68091. func (ec *executionContext) _Fulfillment_displayStatus(ctx context.Context, field graphql.CollectedField, obj *Fulfillment) (ret graphql.Marshaler) {
  68092. fc, err := ec.fieldContext_Fulfillment_displayStatus(ctx, field)
  68093. if err != nil {
  68094. return graphql.Null
  68095. }
  68096. ctx = graphql.WithFieldContext(ctx, fc)
  68097. defer func() {
  68098. if r := recover(); r != nil {
  68099. ec.Error(ctx, ec.Recover(ctx, r))
  68100. ret = graphql.Null
  68101. }
  68102. }()
  68103. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  68104. ctx = rctx // use context from middleware stack in children
  68105. return obj.DisplayStatus, nil
  68106. })
  68107. if err != nil {
  68108. ec.Error(ctx, err)
  68109. return graphql.Null
  68110. }
  68111. if resTmp == nil {
  68112. return graphql.Null
  68113. }
  68114. res := resTmp.(*FulfillmentDisplayStatus)
  68115. fc.Result = res
  68116. return ec.marshalOFulfillmentDisplayStatus2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentDisplayStatus(ctx, field.Selections, res)
  68117. }
  68118. func (ec *executionContext) fieldContext_Fulfillment_displayStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  68119. fc = &graphql.FieldContext{
  68120. Object: "Fulfillment",
  68121. Field: field,
  68122. IsMethod: false,
  68123. IsResolver: false,
  68124. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  68125. return nil, errors.New("field of type FulfillmentDisplayStatus does not have child fields")
  68126. },
  68127. }
  68128. return fc, nil
  68129. }
  68130. func (ec *executionContext) _Fulfillment_estimatedDeliveryAt(ctx context.Context, field graphql.CollectedField, obj *Fulfillment) (ret graphql.Marshaler) {
  68131. fc, err := ec.fieldContext_Fulfillment_estimatedDeliveryAt(ctx, field)
  68132. if err != nil {
  68133. return graphql.Null
  68134. }
  68135. ctx = graphql.WithFieldContext(ctx, fc)
  68136. defer func() {
  68137. if r := recover(); r != nil {
  68138. ec.Error(ctx, ec.Recover(ctx, r))
  68139. ret = graphql.Null
  68140. }
  68141. }()
  68142. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  68143. ctx = rctx // use context from middleware stack in children
  68144. return obj.EstimatedDeliveryAt, nil
  68145. })
  68146. if err != nil {
  68147. ec.Error(ctx, err)
  68148. return graphql.Null
  68149. }
  68150. if resTmp == nil {
  68151. return graphql.Null
  68152. }
  68153. res := resTmp.(*string)
  68154. fc.Result = res
  68155. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  68156. }
  68157. func (ec *executionContext) fieldContext_Fulfillment_estimatedDeliveryAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  68158. fc = &graphql.FieldContext{
  68159. Object: "Fulfillment",
  68160. Field: field,
  68161. IsMethod: false,
  68162. IsResolver: false,
  68163. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  68164. return nil, errors.New("field of type DateTime does not have child fields")
  68165. },
  68166. }
  68167. return fc, nil
  68168. }
  68169. func (ec *executionContext) _Fulfillment_events(ctx context.Context, field graphql.CollectedField, obj *Fulfillment) (ret graphql.Marshaler) {
  68170. fc, err := ec.fieldContext_Fulfillment_events(ctx, field)
  68171. if err != nil {
  68172. return graphql.Null
  68173. }
  68174. ctx = graphql.WithFieldContext(ctx, fc)
  68175. defer func() {
  68176. if r := recover(); r != nil {
  68177. ec.Error(ctx, ec.Recover(ctx, r))
  68178. ret = graphql.Null
  68179. }
  68180. }()
  68181. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  68182. ctx = rctx // use context from middleware stack in children
  68183. return obj.Events, nil
  68184. })
  68185. if err != nil {
  68186. ec.Error(ctx, err)
  68187. return graphql.Null
  68188. }
  68189. if resTmp == nil {
  68190. if !graphql.HasFieldError(ctx, fc) {
  68191. ec.Errorf(ctx, "must not be null")
  68192. }
  68193. return graphql.Null
  68194. }
  68195. res := resTmp.(*FulfillmentEventConnection)
  68196. fc.Result = res
  68197. return ec.marshalNFulfillmentEventConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentEventConnection(ctx, field.Selections, res)
  68198. }
  68199. func (ec *executionContext) fieldContext_Fulfillment_events(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  68200. fc = &graphql.FieldContext{
  68201. Object: "Fulfillment",
  68202. Field: field,
  68203. IsMethod: false,
  68204. IsResolver: false,
  68205. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  68206. switch field.Name {
  68207. case "edges":
  68208. return ec.fieldContext_FulfillmentEventConnection_edges(ctx, field)
  68209. case "nodes":
  68210. return ec.fieldContext_FulfillmentEventConnection_nodes(ctx, field)
  68211. case "pageInfo":
  68212. return ec.fieldContext_FulfillmentEventConnection_pageInfo(ctx, field)
  68213. }
  68214. return nil, fmt.Errorf("no field named %q was found under type FulfillmentEventConnection", field.Name)
  68215. },
  68216. }
  68217. defer func() {
  68218. if r := recover(); r != nil {
  68219. err = ec.Recover(ctx, r)
  68220. ec.Error(ctx, err)
  68221. }
  68222. }()
  68223. ctx = graphql.WithFieldContext(ctx, fc)
  68224. if fc.Args, err = ec.field_Fulfillment_events_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  68225. ec.Error(ctx, err)
  68226. return
  68227. }
  68228. return fc, nil
  68229. }
  68230. func (ec *executionContext) _Fulfillment_fulfillmentLineItems(ctx context.Context, field graphql.CollectedField, obj *Fulfillment) (ret graphql.Marshaler) {
  68231. fc, err := ec.fieldContext_Fulfillment_fulfillmentLineItems(ctx, field)
  68232. if err != nil {
  68233. return graphql.Null
  68234. }
  68235. ctx = graphql.WithFieldContext(ctx, fc)
  68236. defer func() {
  68237. if r := recover(); r != nil {
  68238. ec.Error(ctx, ec.Recover(ctx, r))
  68239. ret = graphql.Null
  68240. }
  68241. }()
  68242. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  68243. ctx = rctx // use context from middleware stack in children
  68244. return obj.FulfillmentLineItems, nil
  68245. })
  68246. if err != nil {
  68247. ec.Error(ctx, err)
  68248. return graphql.Null
  68249. }
  68250. if resTmp == nil {
  68251. if !graphql.HasFieldError(ctx, fc) {
  68252. ec.Errorf(ctx, "must not be null")
  68253. }
  68254. return graphql.Null
  68255. }
  68256. res := resTmp.(*FulfillmentLineItemConnection)
  68257. fc.Result = res
  68258. return ec.marshalNFulfillmentLineItemConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentLineItemConnection(ctx, field.Selections, res)
  68259. }
  68260. func (ec *executionContext) fieldContext_Fulfillment_fulfillmentLineItems(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  68261. fc = &graphql.FieldContext{
  68262. Object: "Fulfillment",
  68263. Field: field,
  68264. IsMethod: false,
  68265. IsResolver: false,
  68266. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  68267. switch field.Name {
  68268. case "edges":
  68269. return ec.fieldContext_FulfillmentLineItemConnection_edges(ctx, field)
  68270. case "nodes":
  68271. return ec.fieldContext_FulfillmentLineItemConnection_nodes(ctx, field)
  68272. case "pageInfo":
  68273. return ec.fieldContext_FulfillmentLineItemConnection_pageInfo(ctx, field)
  68274. }
  68275. return nil, fmt.Errorf("no field named %q was found under type FulfillmentLineItemConnection", field.Name)
  68276. },
  68277. }
  68278. defer func() {
  68279. if r := recover(); r != nil {
  68280. err = ec.Recover(ctx, r)
  68281. ec.Error(ctx, err)
  68282. }
  68283. }()
  68284. ctx = graphql.WithFieldContext(ctx, fc)
  68285. if fc.Args, err = ec.field_Fulfillment_fulfillmentLineItems_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  68286. ec.Error(ctx, err)
  68287. return
  68288. }
  68289. return fc, nil
  68290. }
  68291. func (ec *executionContext) _Fulfillment_fulfillmentOrders(ctx context.Context, field graphql.CollectedField, obj *Fulfillment) (ret graphql.Marshaler) {
  68292. fc, err := ec.fieldContext_Fulfillment_fulfillmentOrders(ctx, field)
  68293. if err != nil {
  68294. return graphql.Null
  68295. }
  68296. ctx = graphql.WithFieldContext(ctx, fc)
  68297. defer func() {
  68298. if r := recover(); r != nil {
  68299. ec.Error(ctx, ec.Recover(ctx, r))
  68300. ret = graphql.Null
  68301. }
  68302. }()
  68303. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  68304. ctx = rctx // use context from middleware stack in children
  68305. return obj.FulfillmentOrders, nil
  68306. })
  68307. if err != nil {
  68308. ec.Error(ctx, err)
  68309. return graphql.Null
  68310. }
  68311. if resTmp == nil {
  68312. if !graphql.HasFieldError(ctx, fc) {
  68313. ec.Errorf(ctx, "must not be null")
  68314. }
  68315. return graphql.Null
  68316. }
  68317. res := resTmp.(*FulfillmentOrderConnection)
  68318. fc.Result = res
  68319. return ec.marshalNFulfillmentOrderConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderConnection(ctx, field.Selections, res)
  68320. }
  68321. func (ec *executionContext) fieldContext_Fulfillment_fulfillmentOrders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  68322. fc = &graphql.FieldContext{
  68323. Object: "Fulfillment",
  68324. Field: field,
  68325. IsMethod: false,
  68326. IsResolver: false,
  68327. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  68328. switch field.Name {
  68329. case "edges":
  68330. return ec.fieldContext_FulfillmentOrderConnection_edges(ctx, field)
  68331. case "nodes":
  68332. return ec.fieldContext_FulfillmentOrderConnection_nodes(ctx, field)
  68333. case "pageInfo":
  68334. return ec.fieldContext_FulfillmentOrderConnection_pageInfo(ctx, field)
  68335. }
  68336. return nil, fmt.Errorf("no field named %q was found under type FulfillmentOrderConnection", field.Name)
  68337. },
  68338. }
  68339. defer func() {
  68340. if r := recover(); r != nil {
  68341. err = ec.Recover(ctx, r)
  68342. ec.Error(ctx, err)
  68343. }
  68344. }()
  68345. ctx = graphql.WithFieldContext(ctx, fc)
  68346. if fc.Args, err = ec.field_Fulfillment_fulfillmentOrders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  68347. ec.Error(ctx, err)
  68348. return
  68349. }
  68350. return fc, nil
  68351. }
  68352. func (ec *executionContext) _Fulfillment_id(ctx context.Context, field graphql.CollectedField, obj *Fulfillment) (ret graphql.Marshaler) {
  68353. fc, err := ec.fieldContext_Fulfillment_id(ctx, field)
  68354. if err != nil {
  68355. return graphql.Null
  68356. }
  68357. ctx = graphql.WithFieldContext(ctx, fc)
  68358. defer func() {
  68359. if r := recover(); r != nil {
  68360. ec.Error(ctx, ec.Recover(ctx, r))
  68361. ret = graphql.Null
  68362. }
  68363. }()
  68364. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  68365. ctx = rctx // use context from middleware stack in children
  68366. return obj.ID, nil
  68367. })
  68368. if err != nil {
  68369. ec.Error(ctx, err)
  68370. return graphql.Null
  68371. }
  68372. if resTmp == nil {
  68373. if !graphql.HasFieldError(ctx, fc) {
  68374. ec.Errorf(ctx, "must not be null")
  68375. }
  68376. return graphql.Null
  68377. }
  68378. res := resTmp.(string)
  68379. fc.Result = res
  68380. return ec.marshalNID2string(ctx, field.Selections, res)
  68381. }
  68382. func (ec *executionContext) fieldContext_Fulfillment_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  68383. fc = &graphql.FieldContext{
  68384. Object: "Fulfillment",
  68385. Field: field,
  68386. IsMethod: false,
  68387. IsResolver: false,
  68388. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  68389. return nil, errors.New("field of type ID does not have child fields")
  68390. },
  68391. }
  68392. return fc, nil
  68393. }
  68394. func (ec *executionContext) _Fulfillment_inTransitAt(ctx context.Context, field graphql.CollectedField, obj *Fulfillment) (ret graphql.Marshaler) {
  68395. fc, err := ec.fieldContext_Fulfillment_inTransitAt(ctx, field)
  68396. if err != nil {
  68397. return graphql.Null
  68398. }
  68399. ctx = graphql.WithFieldContext(ctx, fc)
  68400. defer func() {
  68401. if r := recover(); r != nil {
  68402. ec.Error(ctx, ec.Recover(ctx, r))
  68403. ret = graphql.Null
  68404. }
  68405. }()
  68406. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  68407. ctx = rctx // use context from middleware stack in children
  68408. return obj.InTransitAt, nil
  68409. })
  68410. if err != nil {
  68411. ec.Error(ctx, err)
  68412. return graphql.Null
  68413. }
  68414. if resTmp == nil {
  68415. return graphql.Null
  68416. }
  68417. res := resTmp.(*string)
  68418. fc.Result = res
  68419. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  68420. }
  68421. func (ec *executionContext) fieldContext_Fulfillment_inTransitAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  68422. fc = &graphql.FieldContext{
  68423. Object: "Fulfillment",
  68424. Field: field,
  68425. IsMethod: false,
  68426. IsResolver: false,
  68427. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  68428. return nil, errors.New("field of type DateTime does not have child fields")
  68429. },
  68430. }
  68431. return fc, nil
  68432. }
  68433. func (ec *executionContext) _Fulfillment_legacyResourceId(ctx context.Context, field graphql.CollectedField, obj *Fulfillment) (ret graphql.Marshaler) {
  68434. fc, err := ec.fieldContext_Fulfillment_legacyResourceId(ctx, field)
  68435. if err != nil {
  68436. return graphql.Null
  68437. }
  68438. ctx = graphql.WithFieldContext(ctx, fc)
  68439. defer func() {
  68440. if r := recover(); r != nil {
  68441. ec.Error(ctx, ec.Recover(ctx, r))
  68442. ret = graphql.Null
  68443. }
  68444. }()
  68445. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  68446. ctx = rctx // use context from middleware stack in children
  68447. return obj.LegacyResourceID, nil
  68448. })
  68449. if err != nil {
  68450. ec.Error(ctx, err)
  68451. return graphql.Null
  68452. }
  68453. if resTmp == nil {
  68454. if !graphql.HasFieldError(ctx, fc) {
  68455. ec.Errorf(ctx, "must not be null")
  68456. }
  68457. return graphql.Null
  68458. }
  68459. res := resTmp.(string)
  68460. fc.Result = res
  68461. return ec.marshalNUnsignedInt642string(ctx, field.Selections, res)
  68462. }
  68463. func (ec *executionContext) fieldContext_Fulfillment_legacyResourceId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  68464. fc = &graphql.FieldContext{
  68465. Object: "Fulfillment",
  68466. Field: field,
  68467. IsMethod: false,
  68468. IsResolver: false,
  68469. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  68470. return nil, errors.New("field of type UnsignedInt64 does not have child fields")
  68471. },
  68472. }
  68473. return fc, nil
  68474. }
  68475. func (ec *executionContext) _Fulfillment_location(ctx context.Context, field graphql.CollectedField, obj *Fulfillment) (ret graphql.Marshaler) {
  68476. fc, err := ec.fieldContext_Fulfillment_location(ctx, field)
  68477. if err != nil {
  68478. return graphql.Null
  68479. }
  68480. ctx = graphql.WithFieldContext(ctx, fc)
  68481. defer func() {
  68482. if r := recover(); r != nil {
  68483. ec.Error(ctx, ec.Recover(ctx, r))
  68484. ret = graphql.Null
  68485. }
  68486. }()
  68487. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  68488. ctx = rctx // use context from middleware stack in children
  68489. return obj.Location, nil
  68490. })
  68491. if err != nil {
  68492. ec.Error(ctx, err)
  68493. return graphql.Null
  68494. }
  68495. if resTmp == nil {
  68496. return graphql.Null
  68497. }
  68498. res := resTmp.(*Location)
  68499. fc.Result = res
  68500. return ec.marshalOLocation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocation(ctx, field.Selections, res)
  68501. }
  68502. func (ec *executionContext) fieldContext_Fulfillment_location(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  68503. fc = &graphql.FieldContext{
  68504. Object: "Fulfillment",
  68505. Field: field,
  68506. IsMethod: false,
  68507. IsResolver: false,
  68508. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  68509. switch field.Name {
  68510. case "activatable":
  68511. return ec.fieldContext_Location_activatable(ctx, field)
  68512. case "address":
  68513. return ec.fieldContext_Location_address(ctx, field)
  68514. case "addressVerified":
  68515. return ec.fieldContext_Location_addressVerified(ctx, field)
  68516. case "deactivatable":
  68517. return ec.fieldContext_Location_deactivatable(ctx, field)
  68518. case "deactivatedAt":
  68519. return ec.fieldContext_Location_deactivatedAt(ctx, field)
  68520. case "deletable":
  68521. return ec.fieldContext_Location_deletable(ctx, field)
  68522. case "fulfillmentService":
  68523. return ec.fieldContext_Location_fulfillmentService(ctx, field)
  68524. case "fulfillsOnlineOrders":
  68525. return ec.fieldContext_Location_fulfillsOnlineOrders(ctx, field)
  68526. case "hasActiveInventory":
  68527. return ec.fieldContext_Location_hasActiveInventory(ctx, field)
  68528. case "hasUnfulfilledOrders":
  68529. return ec.fieldContext_Location_hasUnfulfilledOrders(ctx, field)
  68530. case "id":
  68531. return ec.fieldContext_Location_id(ctx, field)
  68532. case "inventoryLevel":
  68533. return ec.fieldContext_Location_inventoryLevel(ctx, field)
  68534. case "inventoryLevels":
  68535. return ec.fieldContext_Location_inventoryLevels(ctx, field)
  68536. case "isActive":
  68537. return ec.fieldContext_Location_isActive(ctx, field)
  68538. case "legacyResourceId":
  68539. return ec.fieldContext_Location_legacyResourceId(ctx, field)
  68540. case "metafield":
  68541. return ec.fieldContext_Location_metafield(ctx, field)
  68542. case "metafieldDefinitions":
  68543. return ec.fieldContext_Location_metafieldDefinitions(ctx, field)
  68544. case "metafields":
  68545. return ec.fieldContext_Location_metafields(ctx, field)
  68546. case "name":
  68547. return ec.fieldContext_Location_name(ctx, field)
  68548. case "privateMetafield":
  68549. return ec.fieldContext_Location_privateMetafield(ctx, field)
  68550. case "privateMetafields":
  68551. return ec.fieldContext_Location_privateMetafields(ctx, field)
  68552. case "shipsInventory":
  68553. return ec.fieldContext_Location_shipsInventory(ctx, field)
  68554. case "suggestedAddresses":
  68555. return ec.fieldContext_Location_suggestedAddresses(ctx, field)
  68556. }
  68557. return nil, fmt.Errorf("no field named %q was found under type Location", field.Name)
  68558. },
  68559. }
  68560. return fc, nil
  68561. }
  68562. func (ec *executionContext) _Fulfillment_name(ctx context.Context, field graphql.CollectedField, obj *Fulfillment) (ret graphql.Marshaler) {
  68563. fc, err := ec.fieldContext_Fulfillment_name(ctx, field)
  68564. if err != nil {
  68565. return graphql.Null
  68566. }
  68567. ctx = graphql.WithFieldContext(ctx, fc)
  68568. defer func() {
  68569. if r := recover(); r != nil {
  68570. ec.Error(ctx, ec.Recover(ctx, r))
  68571. ret = graphql.Null
  68572. }
  68573. }()
  68574. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  68575. ctx = rctx // use context from middleware stack in children
  68576. return obj.Name, nil
  68577. })
  68578. if err != nil {
  68579. ec.Error(ctx, err)
  68580. return graphql.Null
  68581. }
  68582. if resTmp == nil {
  68583. if !graphql.HasFieldError(ctx, fc) {
  68584. ec.Errorf(ctx, "must not be null")
  68585. }
  68586. return graphql.Null
  68587. }
  68588. res := resTmp.(string)
  68589. fc.Result = res
  68590. return ec.marshalNString2string(ctx, field.Selections, res)
  68591. }
  68592. func (ec *executionContext) fieldContext_Fulfillment_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  68593. fc = &graphql.FieldContext{
  68594. Object: "Fulfillment",
  68595. Field: field,
  68596. IsMethod: false,
  68597. IsResolver: false,
  68598. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  68599. return nil, errors.New("field of type String does not have child fields")
  68600. },
  68601. }
  68602. return fc, nil
  68603. }
  68604. func (ec *executionContext) _Fulfillment_order(ctx context.Context, field graphql.CollectedField, obj *Fulfillment) (ret graphql.Marshaler) {
  68605. fc, err := ec.fieldContext_Fulfillment_order(ctx, field)
  68606. if err != nil {
  68607. return graphql.Null
  68608. }
  68609. ctx = graphql.WithFieldContext(ctx, fc)
  68610. defer func() {
  68611. if r := recover(); r != nil {
  68612. ec.Error(ctx, ec.Recover(ctx, r))
  68613. ret = graphql.Null
  68614. }
  68615. }()
  68616. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  68617. ctx = rctx // use context from middleware stack in children
  68618. return obj.Order, nil
  68619. })
  68620. if err != nil {
  68621. ec.Error(ctx, err)
  68622. return graphql.Null
  68623. }
  68624. if resTmp == nil {
  68625. if !graphql.HasFieldError(ctx, fc) {
  68626. ec.Errorf(ctx, "must not be null")
  68627. }
  68628. return graphql.Null
  68629. }
  68630. res := resTmp.(*Order)
  68631. fc.Result = res
  68632. return ec.marshalNOrder2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrder(ctx, field.Selections, res)
  68633. }
  68634. func (ec *executionContext) fieldContext_Fulfillment_order(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  68635. fc = &graphql.FieldContext{
  68636. Object: "Fulfillment",
  68637. Field: field,
  68638. IsMethod: false,
  68639. IsResolver: false,
  68640. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  68641. switch field.Name {
  68642. case "agreements":
  68643. return ec.fieldContext_Order_agreements(ctx, field)
  68644. case "alerts":
  68645. return ec.fieldContext_Order_alerts(ctx, field)
  68646. case "app":
  68647. return ec.fieldContext_Order_app(ctx, field)
  68648. case "billingAddress":
  68649. return ec.fieldContext_Order_billingAddress(ctx, field)
  68650. case "billingAddressMatchesShippingAddress":
  68651. return ec.fieldContext_Order_billingAddressMatchesShippingAddress(ctx, field)
  68652. case "canMarkAsPaid":
  68653. return ec.fieldContext_Order_canMarkAsPaid(ctx, field)
  68654. case "canNotifyCustomer":
  68655. return ec.fieldContext_Order_canNotifyCustomer(ctx, field)
  68656. case "cancelReason":
  68657. return ec.fieldContext_Order_cancelReason(ctx, field)
  68658. case "cancelledAt":
  68659. return ec.fieldContext_Order_cancelledAt(ctx, field)
  68660. case "capturable":
  68661. return ec.fieldContext_Order_capturable(ctx, field)
  68662. case "cartDiscountAmountSet":
  68663. return ec.fieldContext_Order_cartDiscountAmountSet(ctx, field)
  68664. case "channelInformation":
  68665. return ec.fieldContext_Order_channelInformation(ctx, field)
  68666. case "clientIp":
  68667. return ec.fieldContext_Order_clientIp(ctx, field)
  68668. case "closed":
  68669. return ec.fieldContext_Order_closed(ctx, field)
  68670. case "closedAt":
  68671. return ec.fieldContext_Order_closedAt(ctx, field)
  68672. case "confirmed":
  68673. return ec.fieldContext_Order_confirmed(ctx, field)
  68674. case "createdAt":
  68675. return ec.fieldContext_Order_createdAt(ctx, field)
  68676. case "currencyCode":
  68677. return ec.fieldContext_Order_currencyCode(ctx, field)
  68678. case "currentCartDiscountAmountSet":
  68679. return ec.fieldContext_Order_currentCartDiscountAmountSet(ctx, field)
  68680. case "currentSubtotalLineItemsQuantity":
  68681. return ec.fieldContext_Order_currentSubtotalLineItemsQuantity(ctx, field)
  68682. case "currentSubtotalPriceSet":
  68683. return ec.fieldContext_Order_currentSubtotalPriceSet(ctx, field)
  68684. case "currentTaxLines":
  68685. return ec.fieldContext_Order_currentTaxLines(ctx, field)
  68686. case "currentTotalDiscountsSet":
  68687. return ec.fieldContext_Order_currentTotalDiscountsSet(ctx, field)
  68688. case "currentTotalDutiesSet":
  68689. return ec.fieldContext_Order_currentTotalDutiesSet(ctx, field)
  68690. case "currentTotalPriceSet":
  68691. return ec.fieldContext_Order_currentTotalPriceSet(ctx, field)
  68692. case "currentTotalTaxSet":
  68693. return ec.fieldContext_Order_currentTotalTaxSet(ctx, field)
  68694. case "currentTotalWeight":
  68695. return ec.fieldContext_Order_currentTotalWeight(ctx, field)
  68696. case "customAttributes":
  68697. return ec.fieldContext_Order_customAttributes(ctx, field)
  68698. case "customer":
  68699. return ec.fieldContext_Order_customer(ctx, field)
  68700. case "customerAcceptsMarketing":
  68701. return ec.fieldContext_Order_customerAcceptsMarketing(ctx, field)
  68702. case "customerJourneySummary":
  68703. return ec.fieldContext_Order_customerJourneySummary(ctx, field)
  68704. case "customerLocale":
  68705. return ec.fieldContext_Order_customerLocale(ctx, field)
  68706. case "discountApplications":
  68707. return ec.fieldContext_Order_discountApplications(ctx, field)
  68708. case "discountCode":
  68709. return ec.fieldContext_Order_discountCode(ctx, field)
  68710. case "discountCodes":
  68711. return ec.fieldContext_Order_discountCodes(ctx, field)
  68712. case "displayAddress":
  68713. return ec.fieldContext_Order_displayAddress(ctx, field)
  68714. case "displayFinancialStatus":
  68715. return ec.fieldContext_Order_displayFinancialStatus(ctx, field)
  68716. case "displayFulfillmentStatus":
  68717. return ec.fieldContext_Order_displayFulfillmentStatus(ctx, field)
  68718. case "disputes":
  68719. return ec.fieldContext_Order_disputes(ctx, field)
  68720. case "edited":
  68721. return ec.fieldContext_Order_edited(ctx, field)
  68722. case "email":
  68723. return ec.fieldContext_Order_email(ctx, field)
  68724. case "estimatedTaxes":
  68725. return ec.fieldContext_Order_estimatedTaxes(ctx, field)
  68726. case "events":
  68727. return ec.fieldContext_Order_events(ctx, field)
  68728. case "fulfillable":
  68729. return ec.fieldContext_Order_fulfillable(ctx, field)
  68730. case "fulfillmentOrders":
  68731. return ec.fieldContext_Order_fulfillmentOrders(ctx, field)
  68732. case "fulfillments":
  68733. return ec.fieldContext_Order_fulfillments(ctx, field)
  68734. case "fullyPaid":
  68735. return ec.fieldContext_Order_fullyPaid(ctx, field)
  68736. case "hasTimelineComment":
  68737. return ec.fieldContext_Order_hasTimelineComment(ctx, field)
  68738. case "id":
  68739. return ec.fieldContext_Order_id(ctx, field)
  68740. case "legacyResourceId":
  68741. return ec.fieldContext_Order_legacyResourceId(ctx, field)
  68742. case "lineItems":
  68743. return ec.fieldContext_Order_lineItems(ctx, field)
  68744. case "localizationExtensions":
  68745. return ec.fieldContext_Order_localizationExtensions(ctx, field)
  68746. case "merchantEditable":
  68747. return ec.fieldContext_Order_merchantEditable(ctx, field)
  68748. case "merchantEditableErrors":
  68749. return ec.fieldContext_Order_merchantEditableErrors(ctx, field)
  68750. case "merchantOfRecordApp":
  68751. return ec.fieldContext_Order_merchantOfRecordApp(ctx, field)
  68752. case "metafield":
  68753. return ec.fieldContext_Order_metafield(ctx, field)
  68754. case "metafieldDefinitions":
  68755. return ec.fieldContext_Order_metafieldDefinitions(ctx, field)
  68756. case "metafields":
  68757. return ec.fieldContext_Order_metafields(ctx, field)
  68758. case "name":
  68759. return ec.fieldContext_Order_name(ctx, field)
  68760. case "netPaymentSet":
  68761. return ec.fieldContext_Order_netPaymentSet(ctx, field)
  68762. case "nonFulfillableLineItems":
  68763. return ec.fieldContext_Order_nonFulfillableLineItems(ctx, field)
  68764. case "note":
  68765. return ec.fieldContext_Order_note(ctx, field)
  68766. case "originalTotalDutiesSet":
  68767. return ec.fieldContext_Order_originalTotalDutiesSet(ctx, field)
  68768. case "originalTotalPriceSet":
  68769. return ec.fieldContext_Order_originalTotalPriceSet(ctx, field)
  68770. case "paymentCollectionDetails":
  68771. return ec.fieldContext_Order_paymentCollectionDetails(ctx, field)
  68772. case "paymentGatewayNames":
  68773. return ec.fieldContext_Order_paymentGatewayNames(ctx, field)
  68774. case "paymentTerms":
  68775. return ec.fieldContext_Order_paymentTerms(ctx, field)
  68776. case "phone":
  68777. return ec.fieldContext_Order_phone(ctx, field)
  68778. case "physicalLocation":
  68779. return ec.fieldContext_Order_physicalLocation(ctx, field)
  68780. case "presentmentCurrencyCode":
  68781. return ec.fieldContext_Order_presentmentCurrencyCode(ctx, field)
  68782. case "privateMetafield":
  68783. return ec.fieldContext_Order_privateMetafield(ctx, field)
  68784. case "privateMetafields":
  68785. return ec.fieldContext_Order_privateMetafields(ctx, field)
  68786. case "processedAt":
  68787. return ec.fieldContext_Order_processedAt(ctx, field)
  68788. case "publication":
  68789. return ec.fieldContext_Order_publication(ctx, field)
  68790. case "purchasingEntity":
  68791. return ec.fieldContext_Order_purchasingEntity(ctx, field)
  68792. case "refundDiscrepancySet":
  68793. return ec.fieldContext_Order_refundDiscrepancySet(ctx, field)
  68794. case "refundable":
  68795. return ec.fieldContext_Order_refundable(ctx, field)
  68796. case "refunds":
  68797. return ec.fieldContext_Order_refunds(ctx, field)
  68798. case "registeredSourceUrl":
  68799. return ec.fieldContext_Order_registeredSourceUrl(ctx, field)
  68800. case "requiresShipping":
  68801. return ec.fieldContext_Order_requiresShipping(ctx, field)
  68802. case "restockable":
  68803. return ec.fieldContext_Order_restockable(ctx, field)
  68804. case "riskLevel":
  68805. return ec.fieldContext_Order_riskLevel(ctx, field)
  68806. case "risks":
  68807. return ec.fieldContext_Order_risks(ctx, field)
  68808. case "shippingAddress":
  68809. return ec.fieldContext_Order_shippingAddress(ctx, field)
  68810. case "shippingLine":
  68811. return ec.fieldContext_Order_shippingLine(ctx, field)
  68812. case "shippingLines":
  68813. return ec.fieldContext_Order_shippingLines(ctx, field)
  68814. case "sourceIdentifier":
  68815. return ec.fieldContext_Order_sourceIdentifier(ctx, field)
  68816. case "subtotalLineItemsQuantity":
  68817. return ec.fieldContext_Order_subtotalLineItemsQuantity(ctx, field)
  68818. case "subtotalPriceSet":
  68819. return ec.fieldContext_Order_subtotalPriceSet(ctx, field)
  68820. case "suggestedRefund":
  68821. return ec.fieldContext_Order_suggestedRefund(ctx, field)
  68822. case "tags":
  68823. return ec.fieldContext_Order_tags(ctx, field)
  68824. case "taxLines":
  68825. return ec.fieldContext_Order_taxLines(ctx, field)
  68826. case "taxesIncluded":
  68827. return ec.fieldContext_Order_taxesIncluded(ctx, field)
  68828. case "test":
  68829. return ec.fieldContext_Order_test(ctx, field)
  68830. case "totalCapturableSet":
  68831. return ec.fieldContext_Order_totalCapturableSet(ctx, field)
  68832. case "totalDiscountsSet":
  68833. return ec.fieldContext_Order_totalDiscountsSet(ctx, field)
  68834. case "totalOutstandingSet":
  68835. return ec.fieldContext_Order_totalOutstandingSet(ctx, field)
  68836. case "totalPriceSet":
  68837. return ec.fieldContext_Order_totalPriceSet(ctx, field)
  68838. case "totalReceivedSet":
  68839. return ec.fieldContext_Order_totalReceivedSet(ctx, field)
  68840. case "totalRefundedSet":
  68841. return ec.fieldContext_Order_totalRefundedSet(ctx, field)
  68842. case "totalRefundedShippingSet":
  68843. return ec.fieldContext_Order_totalRefundedShippingSet(ctx, field)
  68844. case "totalShippingPriceSet":
  68845. return ec.fieldContext_Order_totalShippingPriceSet(ctx, field)
  68846. case "totalTaxSet":
  68847. return ec.fieldContext_Order_totalTaxSet(ctx, field)
  68848. case "totalTipReceivedSet":
  68849. return ec.fieldContext_Order_totalTipReceivedSet(ctx, field)
  68850. case "totalWeight":
  68851. return ec.fieldContext_Order_totalWeight(ctx, field)
  68852. case "transactions":
  68853. return ec.fieldContext_Order_transactions(ctx, field)
  68854. case "unpaid":
  68855. return ec.fieldContext_Order_unpaid(ctx, field)
  68856. case "updatedAt":
  68857. return ec.fieldContext_Order_updatedAt(ctx, field)
  68858. }
  68859. return nil, fmt.Errorf("no field named %q was found under type Order", field.Name)
  68860. },
  68861. }
  68862. return fc, nil
  68863. }
  68864. func (ec *executionContext) _Fulfillment_originAddress(ctx context.Context, field graphql.CollectedField, obj *Fulfillment) (ret graphql.Marshaler) {
  68865. fc, err := ec.fieldContext_Fulfillment_originAddress(ctx, field)
  68866. if err != nil {
  68867. return graphql.Null
  68868. }
  68869. ctx = graphql.WithFieldContext(ctx, fc)
  68870. defer func() {
  68871. if r := recover(); r != nil {
  68872. ec.Error(ctx, ec.Recover(ctx, r))
  68873. ret = graphql.Null
  68874. }
  68875. }()
  68876. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  68877. ctx = rctx // use context from middleware stack in children
  68878. return obj.OriginAddress, nil
  68879. })
  68880. if err != nil {
  68881. ec.Error(ctx, err)
  68882. return graphql.Null
  68883. }
  68884. if resTmp == nil {
  68885. return graphql.Null
  68886. }
  68887. res := resTmp.(*FulfillmentOriginAddress)
  68888. fc.Result = res
  68889. return ec.marshalOFulfillmentOriginAddress2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOriginAddress(ctx, field.Selections, res)
  68890. }
  68891. func (ec *executionContext) fieldContext_Fulfillment_originAddress(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  68892. fc = &graphql.FieldContext{
  68893. Object: "Fulfillment",
  68894. Field: field,
  68895. IsMethod: false,
  68896. IsResolver: false,
  68897. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  68898. switch field.Name {
  68899. case "address1":
  68900. return ec.fieldContext_FulfillmentOriginAddress_address1(ctx, field)
  68901. case "address2":
  68902. return ec.fieldContext_FulfillmentOriginAddress_address2(ctx, field)
  68903. case "city":
  68904. return ec.fieldContext_FulfillmentOriginAddress_city(ctx, field)
  68905. case "countryCode":
  68906. return ec.fieldContext_FulfillmentOriginAddress_countryCode(ctx, field)
  68907. case "provinceCode":
  68908. return ec.fieldContext_FulfillmentOriginAddress_provinceCode(ctx, field)
  68909. case "zip":
  68910. return ec.fieldContext_FulfillmentOriginAddress_zip(ctx, field)
  68911. }
  68912. return nil, fmt.Errorf("no field named %q was found under type FulfillmentOriginAddress", field.Name)
  68913. },
  68914. }
  68915. return fc, nil
  68916. }
  68917. func (ec *executionContext) _Fulfillment_requiresShipping(ctx context.Context, field graphql.CollectedField, obj *Fulfillment) (ret graphql.Marshaler) {
  68918. fc, err := ec.fieldContext_Fulfillment_requiresShipping(ctx, field)
  68919. if err != nil {
  68920. return graphql.Null
  68921. }
  68922. ctx = graphql.WithFieldContext(ctx, fc)
  68923. defer func() {
  68924. if r := recover(); r != nil {
  68925. ec.Error(ctx, ec.Recover(ctx, r))
  68926. ret = graphql.Null
  68927. }
  68928. }()
  68929. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  68930. ctx = rctx // use context from middleware stack in children
  68931. return obj.RequiresShipping, nil
  68932. })
  68933. if err != nil {
  68934. ec.Error(ctx, err)
  68935. return graphql.Null
  68936. }
  68937. if resTmp == nil {
  68938. if !graphql.HasFieldError(ctx, fc) {
  68939. ec.Errorf(ctx, "must not be null")
  68940. }
  68941. return graphql.Null
  68942. }
  68943. res := resTmp.(bool)
  68944. fc.Result = res
  68945. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  68946. }
  68947. func (ec *executionContext) fieldContext_Fulfillment_requiresShipping(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  68948. fc = &graphql.FieldContext{
  68949. Object: "Fulfillment",
  68950. Field: field,
  68951. IsMethod: false,
  68952. IsResolver: false,
  68953. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  68954. return nil, errors.New("field of type Boolean does not have child fields")
  68955. },
  68956. }
  68957. return fc, nil
  68958. }
  68959. func (ec *executionContext) _Fulfillment_service(ctx context.Context, field graphql.CollectedField, obj *Fulfillment) (ret graphql.Marshaler) {
  68960. fc, err := ec.fieldContext_Fulfillment_service(ctx, field)
  68961. if err != nil {
  68962. return graphql.Null
  68963. }
  68964. ctx = graphql.WithFieldContext(ctx, fc)
  68965. defer func() {
  68966. if r := recover(); r != nil {
  68967. ec.Error(ctx, ec.Recover(ctx, r))
  68968. ret = graphql.Null
  68969. }
  68970. }()
  68971. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  68972. ctx = rctx // use context from middleware stack in children
  68973. return obj.Service, nil
  68974. })
  68975. if err != nil {
  68976. ec.Error(ctx, err)
  68977. return graphql.Null
  68978. }
  68979. if resTmp == nil {
  68980. return graphql.Null
  68981. }
  68982. res := resTmp.(*FulfillmentService)
  68983. fc.Result = res
  68984. return ec.marshalOFulfillmentService2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentService(ctx, field.Selections, res)
  68985. }
  68986. func (ec *executionContext) fieldContext_Fulfillment_service(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  68987. fc = &graphql.FieldContext{
  68988. Object: "Fulfillment",
  68989. Field: field,
  68990. IsMethod: false,
  68991. IsResolver: false,
  68992. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  68993. switch field.Name {
  68994. case "callbackUrl":
  68995. return ec.fieldContext_FulfillmentService_callbackUrl(ctx, field)
  68996. case "fulfillmentOrdersOptIn":
  68997. return ec.fieldContext_FulfillmentService_fulfillmentOrdersOptIn(ctx, field)
  68998. case "handle":
  68999. return ec.fieldContext_FulfillmentService_handle(ctx, field)
  69000. case "id":
  69001. return ec.fieldContext_FulfillmentService_id(ctx, field)
  69002. case "inventoryManagement":
  69003. return ec.fieldContext_FulfillmentService_inventoryManagement(ctx, field)
  69004. case "location":
  69005. return ec.fieldContext_FulfillmentService_location(ctx, field)
  69006. case "permitsSkuSharing":
  69007. return ec.fieldContext_FulfillmentService_permitsSkuSharing(ctx, field)
  69008. case "productBased":
  69009. return ec.fieldContext_FulfillmentService_productBased(ctx, field)
  69010. case "serviceName":
  69011. return ec.fieldContext_FulfillmentService_serviceName(ctx, field)
  69012. case "type":
  69013. return ec.fieldContext_FulfillmentService_type(ctx, field)
  69014. }
  69015. return nil, fmt.Errorf("no field named %q was found under type FulfillmentService", field.Name)
  69016. },
  69017. }
  69018. return fc, nil
  69019. }
  69020. func (ec *executionContext) _Fulfillment_status(ctx context.Context, field graphql.CollectedField, obj *Fulfillment) (ret graphql.Marshaler) {
  69021. fc, err := ec.fieldContext_Fulfillment_status(ctx, field)
  69022. if err != nil {
  69023. return graphql.Null
  69024. }
  69025. ctx = graphql.WithFieldContext(ctx, fc)
  69026. defer func() {
  69027. if r := recover(); r != nil {
  69028. ec.Error(ctx, ec.Recover(ctx, r))
  69029. ret = graphql.Null
  69030. }
  69031. }()
  69032. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  69033. ctx = rctx // use context from middleware stack in children
  69034. return obj.Status, nil
  69035. })
  69036. if err != nil {
  69037. ec.Error(ctx, err)
  69038. return graphql.Null
  69039. }
  69040. if resTmp == nil {
  69041. if !graphql.HasFieldError(ctx, fc) {
  69042. ec.Errorf(ctx, "must not be null")
  69043. }
  69044. return graphql.Null
  69045. }
  69046. res := resTmp.(FulfillmentStatus)
  69047. fc.Result = res
  69048. return ec.marshalNFulfillmentStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentStatus(ctx, field.Selections, res)
  69049. }
  69050. func (ec *executionContext) fieldContext_Fulfillment_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  69051. fc = &graphql.FieldContext{
  69052. Object: "Fulfillment",
  69053. Field: field,
  69054. IsMethod: false,
  69055. IsResolver: false,
  69056. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  69057. return nil, errors.New("field of type FulfillmentStatus does not have child fields")
  69058. },
  69059. }
  69060. return fc, nil
  69061. }
  69062. func (ec *executionContext) _Fulfillment_totalQuantity(ctx context.Context, field graphql.CollectedField, obj *Fulfillment) (ret graphql.Marshaler) {
  69063. fc, err := ec.fieldContext_Fulfillment_totalQuantity(ctx, field)
  69064. if err != nil {
  69065. return graphql.Null
  69066. }
  69067. ctx = graphql.WithFieldContext(ctx, fc)
  69068. defer func() {
  69069. if r := recover(); r != nil {
  69070. ec.Error(ctx, ec.Recover(ctx, r))
  69071. ret = graphql.Null
  69072. }
  69073. }()
  69074. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  69075. ctx = rctx // use context from middleware stack in children
  69076. return obj.TotalQuantity, nil
  69077. })
  69078. if err != nil {
  69079. ec.Error(ctx, err)
  69080. return graphql.Null
  69081. }
  69082. if resTmp == nil {
  69083. if !graphql.HasFieldError(ctx, fc) {
  69084. ec.Errorf(ctx, "must not be null")
  69085. }
  69086. return graphql.Null
  69087. }
  69088. res := resTmp.(int)
  69089. fc.Result = res
  69090. return ec.marshalNInt2int(ctx, field.Selections, res)
  69091. }
  69092. func (ec *executionContext) fieldContext_Fulfillment_totalQuantity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  69093. fc = &graphql.FieldContext{
  69094. Object: "Fulfillment",
  69095. Field: field,
  69096. IsMethod: false,
  69097. IsResolver: false,
  69098. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  69099. return nil, errors.New("field of type Int does not have child fields")
  69100. },
  69101. }
  69102. return fc, nil
  69103. }
  69104. func (ec *executionContext) _Fulfillment_trackingInfo(ctx context.Context, field graphql.CollectedField, obj *Fulfillment) (ret graphql.Marshaler) {
  69105. fc, err := ec.fieldContext_Fulfillment_trackingInfo(ctx, field)
  69106. if err != nil {
  69107. return graphql.Null
  69108. }
  69109. ctx = graphql.WithFieldContext(ctx, fc)
  69110. defer func() {
  69111. if r := recover(); r != nil {
  69112. ec.Error(ctx, ec.Recover(ctx, r))
  69113. ret = graphql.Null
  69114. }
  69115. }()
  69116. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  69117. ctx = rctx // use context from middleware stack in children
  69118. return obj.TrackingInfo, nil
  69119. })
  69120. if err != nil {
  69121. ec.Error(ctx, err)
  69122. return graphql.Null
  69123. }
  69124. if resTmp == nil {
  69125. if !graphql.HasFieldError(ctx, fc) {
  69126. ec.Errorf(ctx, "must not be null")
  69127. }
  69128. return graphql.Null
  69129. }
  69130. res := resTmp.([]*FulfillmentTrackingInfo)
  69131. fc.Result = res
  69132. return ec.marshalNFulfillmentTrackingInfo2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentTrackingInfoᚄ(ctx, field.Selections, res)
  69133. }
  69134. func (ec *executionContext) fieldContext_Fulfillment_trackingInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  69135. fc = &graphql.FieldContext{
  69136. Object: "Fulfillment",
  69137. Field: field,
  69138. IsMethod: false,
  69139. IsResolver: false,
  69140. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  69141. switch field.Name {
  69142. case "company":
  69143. return ec.fieldContext_FulfillmentTrackingInfo_company(ctx, field)
  69144. case "number":
  69145. return ec.fieldContext_FulfillmentTrackingInfo_number(ctx, field)
  69146. case "url":
  69147. return ec.fieldContext_FulfillmentTrackingInfo_url(ctx, field)
  69148. }
  69149. return nil, fmt.Errorf("no field named %q was found under type FulfillmentTrackingInfo", field.Name)
  69150. },
  69151. }
  69152. defer func() {
  69153. if r := recover(); r != nil {
  69154. err = ec.Recover(ctx, r)
  69155. ec.Error(ctx, err)
  69156. }
  69157. }()
  69158. ctx = graphql.WithFieldContext(ctx, fc)
  69159. if fc.Args, err = ec.field_Fulfillment_trackingInfo_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  69160. ec.Error(ctx, err)
  69161. return
  69162. }
  69163. return fc, nil
  69164. }
  69165. func (ec *executionContext) _Fulfillment_updatedAt(ctx context.Context, field graphql.CollectedField, obj *Fulfillment) (ret graphql.Marshaler) {
  69166. fc, err := ec.fieldContext_Fulfillment_updatedAt(ctx, field)
  69167. if err != nil {
  69168. return graphql.Null
  69169. }
  69170. ctx = graphql.WithFieldContext(ctx, fc)
  69171. defer func() {
  69172. if r := recover(); r != nil {
  69173. ec.Error(ctx, ec.Recover(ctx, r))
  69174. ret = graphql.Null
  69175. }
  69176. }()
  69177. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  69178. ctx = rctx // use context from middleware stack in children
  69179. return obj.UpdatedAt, nil
  69180. })
  69181. if err != nil {
  69182. ec.Error(ctx, err)
  69183. return graphql.Null
  69184. }
  69185. if resTmp == nil {
  69186. if !graphql.HasFieldError(ctx, fc) {
  69187. ec.Errorf(ctx, "must not be null")
  69188. }
  69189. return graphql.Null
  69190. }
  69191. res := resTmp.(string)
  69192. fc.Result = res
  69193. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  69194. }
  69195. func (ec *executionContext) fieldContext_Fulfillment_updatedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  69196. fc = &graphql.FieldContext{
  69197. Object: "Fulfillment",
  69198. Field: field,
  69199. IsMethod: false,
  69200. IsResolver: false,
  69201. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  69202. return nil, errors.New("field of type DateTime does not have child fields")
  69203. },
  69204. }
  69205. return fc, nil
  69206. }
  69207. func (ec *executionContext) _FulfillmentConnection_edges(ctx context.Context, field graphql.CollectedField, obj *FulfillmentConnection) (ret graphql.Marshaler) {
  69208. fc, err := ec.fieldContext_FulfillmentConnection_edges(ctx, field)
  69209. if err != nil {
  69210. return graphql.Null
  69211. }
  69212. ctx = graphql.WithFieldContext(ctx, fc)
  69213. defer func() {
  69214. if r := recover(); r != nil {
  69215. ec.Error(ctx, ec.Recover(ctx, r))
  69216. ret = graphql.Null
  69217. }
  69218. }()
  69219. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  69220. ctx = rctx // use context from middleware stack in children
  69221. return obj.Edges, nil
  69222. })
  69223. if err != nil {
  69224. ec.Error(ctx, err)
  69225. return graphql.Null
  69226. }
  69227. if resTmp == nil {
  69228. if !graphql.HasFieldError(ctx, fc) {
  69229. ec.Errorf(ctx, "must not be null")
  69230. }
  69231. return graphql.Null
  69232. }
  69233. res := resTmp.([]*FulfillmentEdge)
  69234. fc.Result = res
  69235. return ec.marshalNFulfillmentEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentEdgeᚄ(ctx, field.Selections, res)
  69236. }
  69237. func (ec *executionContext) fieldContext_FulfillmentConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  69238. fc = &graphql.FieldContext{
  69239. Object: "FulfillmentConnection",
  69240. Field: field,
  69241. IsMethod: false,
  69242. IsResolver: false,
  69243. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  69244. switch field.Name {
  69245. case "cursor":
  69246. return ec.fieldContext_FulfillmentEdge_cursor(ctx, field)
  69247. case "node":
  69248. return ec.fieldContext_FulfillmentEdge_node(ctx, field)
  69249. }
  69250. return nil, fmt.Errorf("no field named %q was found under type FulfillmentEdge", field.Name)
  69251. },
  69252. }
  69253. return fc, nil
  69254. }
  69255. func (ec *executionContext) _FulfillmentConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *FulfillmentConnection) (ret graphql.Marshaler) {
  69256. fc, err := ec.fieldContext_FulfillmentConnection_nodes(ctx, field)
  69257. if err != nil {
  69258. return graphql.Null
  69259. }
  69260. ctx = graphql.WithFieldContext(ctx, fc)
  69261. defer func() {
  69262. if r := recover(); r != nil {
  69263. ec.Error(ctx, ec.Recover(ctx, r))
  69264. ret = graphql.Null
  69265. }
  69266. }()
  69267. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  69268. ctx = rctx // use context from middleware stack in children
  69269. return obj.Nodes, nil
  69270. })
  69271. if err != nil {
  69272. ec.Error(ctx, err)
  69273. return graphql.Null
  69274. }
  69275. if resTmp == nil {
  69276. if !graphql.HasFieldError(ctx, fc) {
  69277. ec.Errorf(ctx, "must not be null")
  69278. }
  69279. return graphql.Null
  69280. }
  69281. res := resTmp.([]*Fulfillment)
  69282. fc.Result = res
  69283. return ec.marshalNFulfillment2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentᚄ(ctx, field.Selections, res)
  69284. }
  69285. func (ec *executionContext) fieldContext_FulfillmentConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  69286. fc = &graphql.FieldContext{
  69287. Object: "FulfillmentConnection",
  69288. Field: field,
  69289. IsMethod: false,
  69290. IsResolver: false,
  69291. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  69292. switch field.Name {
  69293. case "createdAt":
  69294. return ec.fieldContext_Fulfillment_createdAt(ctx, field)
  69295. case "deliveredAt":
  69296. return ec.fieldContext_Fulfillment_deliveredAt(ctx, field)
  69297. case "displayStatus":
  69298. return ec.fieldContext_Fulfillment_displayStatus(ctx, field)
  69299. case "estimatedDeliveryAt":
  69300. return ec.fieldContext_Fulfillment_estimatedDeliveryAt(ctx, field)
  69301. case "events":
  69302. return ec.fieldContext_Fulfillment_events(ctx, field)
  69303. case "fulfillmentLineItems":
  69304. return ec.fieldContext_Fulfillment_fulfillmentLineItems(ctx, field)
  69305. case "fulfillmentOrders":
  69306. return ec.fieldContext_Fulfillment_fulfillmentOrders(ctx, field)
  69307. case "id":
  69308. return ec.fieldContext_Fulfillment_id(ctx, field)
  69309. case "inTransitAt":
  69310. return ec.fieldContext_Fulfillment_inTransitAt(ctx, field)
  69311. case "legacyResourceId":
  69312. return ec.fieldContext_Fulfillment_legacyResourceId(ctx, field)
  69313. case "location":
  69314. return ec.fieldContext_Fulfillment_location(ctx, field)
  69315. case "name":
  69316. return ec.fieldContext_Fulfillment_name(ctx, field)
  69317. case "order":
  69318. return ec.fieldContext_Fulfillment_order(ctx, field)
  69319. case "originAddress":
  69320. return ec.fieldContext_Fulfillment_originAddress(ctx, field)
  69321. case "requiresShipping":
  69322. return ec.fieldContext_Fulfillment_requiresShipping(ctx, field)
  69323. case "service":
  69324. return ec.fieldContext_Fulfillment_service(ctx, field)
  69325. case "status":
  69326. return ec.fieldContext_Fulfillment_status(ctx, field)
  69327. case "totalQuantity":
  69328. return ec.fieldContext_Fulfillment_totalQuantity(ctx, field)
  69329. case "trackingInfo":
  69330. return ec.fieldContext_Fulfillment_trackingInfo(ctx, field)
  69331. case "updatedAt":
  69332. return ec.fieldContext_Fulfillment_updatedAt(ctx, field)
  69333. }
  69334. return nil, fmt.Errorf("no field named %q was found under type Fulfillment", field.Name)
  69335. },
  69336. }
  69337. return fc, nil
  69338. }
  69339. func (ec *executionContext) _FulfillmentConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *FulfillmentConnection) (ret graphql.Marshaler) {
  69340. fc, err := ec.fieldContext_FulfillmentConnection_pageInfo(ctx, field)
  69341. if err != nil {
  69342. return graphql.Null
  69343. }
  69344. ctx = graphql.WithFieldContext(ctx, fc)
  69345. defer func() {
  69346. if r := recover(); r != nil {
  69347. ec.Error(ctx, ec.Recover(ctx, r))
  69348. ret = graphql.Null
  69349. }
  69350. }()
  69351. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  69352. ctx = rctx // use context from middleware stack in children
  69353. return obj.PageInfo, nil
  69354. })
  69355. if err != nil {
  69356. ec.Error(ctx, err)
  69357. return graphql.Null
  69358. }
  69359. if resTmp == nil {
  69360. if !graphql.HasFieldError(ctx, fc) {
  69361. ec.Errorf(ctx, "must not be null")
  69362. }
  69363. return graphql.Null
  69364. }
  69365. res := resTmp.(*PageInfo)
  69366. fc.Result = res
  69367. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  69368. }
  69369. func (ec *executionContext) fieldContext_FulfillmentConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  69370. fc = &graphql.FieldContext{
  69371. Object: "FulfillmentConnection",
  69372. Field: field,
  69373. IsMethod: false,
  69374. IsResolver: false,
  69375. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  69376. switch field.Name {
  69377. case "endCursor":
  69378. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  69379. case "hasNextPage":
  69380. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  69381. case "hasPreviousPage":
  69382. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  69383. case "startCursor":
  69384. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  69385. }
  69386. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  69387. },
  69388. }
  69389. return fc, nil
  69390. }
  69391. func (ec *executionContext) _FulfillmentEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *FulfillmentEdge) (ret graphql.Marshaler) {
  69392. fc, err := ec.fieldContext_FulfillmentEdge_cursor(ctx, field)
  69393. if err != nil {
  69394. return graphql.Null
  69395. }
  69396. ctx = graphql.WithFieldContext(ctx, fc)
  69397. defer func() {
  69398. if r := recover(); r != nil {
  69399. ec.Error(ctx, ec.Recover(ctx, r))
  69400. ret = graphql.Null
  69401. }
  69402. }()
  69403. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  69404. ctx = rctx // use context from middleware stack in children
  69405. return obj.Cursor, nil
  69406. })
  69407. if err != nil {
  69408. ec.Error(ctx, err)
  69409. return graphql.Null
  69410. }
  69411. if resTmp == nil {
  69412. if !graphql.HasFieldError(ctx, fc) {
  69413. ec.Errorf(ctx, "must not be null")
  69414. }
  69415. return graphql.Null
  69416. }
  69417. res := resTmp.(string)
  69418. fc.Result = res
  69419. return ec.marshalNString2string(ctx, field.Selections, res)
  69420. }
  69421. func (ec *executionContext) fieldContext_FulfillmentEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  69422. fc = &graphql.FieldContext{
  69423. Object: "FulfillmentEdge",
  69424. Field: field,
  69425. IsMethod: false,
  69426. IsResolver: false,
  69427. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  69428. return nil, errors.New("field of type String does not have child fields")
  69429. },
  69430. }
  69431. return fc, nil
  69432. }
  69433. func (ec *executionContext) _FulfillmentEdge_node(ctx context.Context, field graphql.CollectedField, obj *FulfillmentEdge) (ret graphql.Marshaler) {
  69434. fc, err := ec.fieldContext_FulfillmentEdge_node(ctx, field)
  69435. if err != nil {
  69436. return graphql.Null
  69437. }
  69438. ctx = graphql.WithFieldContext(ctx, fc)
  69439. defer func() {
  69440. if r := recover(); r != nil {
  69441. ec.Error(ctx, ec.Recover(ctx, r))
  69442. ret = graphql.Null
  69443. }
  69444. }()
  69445. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  69446. ctx = rctx // use context from middleware stack in children
  69447. return obj.Node, nil
  69448. })
  69449. if err != nil {
  69450. ec.Error(ctx, err)
  69451. return graphql.Null
  69452. }
  69453. if resTmp == nil {
  69454. if !graphql.HasFieldError(ctx, fc) {
  69455. ec.Errorf(ctx, "must not be null")
  69456. }
  69457. return graphql.Null
  69458. }
  69459. res := resTmp.(*Fulfillment)
  69460. fc.Result = res
  69461. return ec.marshalNFulfillment2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillment(ctx, field.Selections, res)
  69462. }
  69463. func (ec *executionContext) fieldContext_FulfillmentEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  69464. fc = &graphql.FieldContext{
  69465. Object: "FulfillmentEdge",
  69466. Field: field,
  69467. IsMethod: false,
  69468. IsResolver: false,
  69469. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  69470. switch field.Name {
  69471. case "createdAt":
  69472. return ec.fieldContext_Fulfillment_createdAt(ctx, field)
  69473. case "deliveredAt":
  69474. return ec.fieldContext_Fulfillment_deliveredAt(ctx, field)
  69475. case "displayStatus":
  69476. return ec.fieldContext_Fulfillment_displayStatus(ctx, field)
  69477. case "estimatedDeliveryAt":
  69478. return ec.fieldContext_Fulfillment_estimatedDeliveryAt(ctx, field)
  69479. case "events":
  69480. return ec.fieldContext_Fulfillment_events(ctx, field)
  69481. case "fulfillmentLineItems":
  69482. return ec.fieldContext_Fulfillment_fulfillmentLineItems(ctx, field)
  69483. case "fulfillmentOrders":
  69484. return ec.fieldContext_Fulfillment_fulfillmentOrders(ctx, field)
  69485. case "id":
  69486. return ec.fieldContext_Fulfillment_id(ctx, field)
  69487. case "inTransitAt":
  69488. return ec.fieldContext_Fulfillment_inTransitAt(ctx, field)
  69489. case "legacyResourceId":
  69490. return ec.fieldContext_Fulfillment_legacyResourceId(ctx, field)
  69491. case "location":
  69492. return ec.fieldContext_Fulfillment_location(ctx, field)
  69493. case "name":
  69494. return ec.fieldContext_Fulfillment_name(ctx, field)
  69495. case "order":
  69496. return ec.fieldContext_Fulfillment_order(ctx, field)
  69497. case "originAddress":
  69498. return ec.fieldContext_Fulfillment_originAddress(ctx, field)
  69499. case "requiresShipping":
  69500. return ec.fieldContext_Fulfillment_requiresShipping(ctx, field)
  69501. case "service":
  69502. return ec.fieldContext_Fulfillment_service(ctx, field)
  69503. case "status":
  69504. return ec.fieldContext_Fulfillment_status(ctx, field)
  69505. case "totalQuantity":
  69506. return ec.fieldContext_Fulfillment_totalQuantity(ctx, field)
  69507. case "trackingInfo":
  69508. return ec.fieldContext_Fulfillment_trackingInfo(ctx, field)
  69509. case "updatedAt":
  69510. return ec.fieldContext_Fulfillment_updatedAt(ctx, field)
  69511. }
  69512. return nil, fmt.Errorf("no field named %q was found under type Fulfillment", field.Name)
  69513. },
  69514. }
  69515. return fc, nil
  69516. }
  69517. func (ec *executionContext) _FulfillmentEvent_happenedAt(ctx context.Context, field graphql.CollectedField, obj *FulfillmentEvent) (ret graphql.Marshaler) {
  69518. fc, err := ec.fieldContext_FulfillmentEvent_happenedAt(ctx, field)
  69519. if err != nil {
  69520. return graphql.Null
  69521. }
  69522. ctx = graphql.WithFieldContext(ctx, fc)
  69523. defer func() {
  69524. if r := recover(); r != nil {
  69525. ec.Error(ctx, ec.Recover(ctx, r))
  69526. ret = graphql.Null
  69527. }
  69528. }()
  69529. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  69530. ctx = rctx // use context from middleware stack in children
  69531. return obj.HappenedAt, nil
  69532. })
  69533. if err != nil {
  69534. ec.Error(ctx, err)
  69535. return graphql.Null
  69536. }
  69537. if resTmp == nil {
  69538. if !graphql.HasFieldError(ctx, fc) {
  69539. ec.Errorf(ctx, "must not be null")
  69540. }
  69541. return graphql.Null
  69542. }
  69543. res := resTmp.(string)
  69544. fc.Result = res
  69545. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  69546. }
  69547. func (ec *executionContext) fieldContext_FulfillmentEvent_happenedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  69548. fc = &graphql.FieldContext{
  69549. Object: "FulfillmentEvent",
  69550. Field: field,
  69551. IsMethod: false,
  69552. IsResolver: false,
  69553. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  69554. return nil, errors.New("field of type DateTime does not have child fields")
  69555. },
  69556. }
  69557. return fc, nil
  69558. }
  69559. func (ec *executionContext) _FulfillmentEvent_id(ctx context.Context, field graphql.CollectedField, obj *FulfillmentEvent) (ret graphql.Marshaler) {
  69560. fc, err := ec.fieldContext_FulfillmentEvent_id(ctx, field)
  69561. if err != nil {
  69562. return graphql.Null
  69563. }
  69564. ctx = graphql.WithFieldContext(ctx, fc)
  69565. defer func() {
  69566. if r := recover(); r != nil {
  69567. ec.Error(ctx, ec.Recover(ctx, r))
  69568. ret = graphql.Null
  69569. }
  69570. }()
  69571. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  69572. ctx = rctx // use context from middleware stack in children
  69573. return obj.ID, nil
  69574. })
  69575. if err != nil {
  69576. ec.Error(ctx, err)
  69577. return graphql.Null
  69578. }
  69579. if resTmp == nil {
  69580. if !graphql.HasFieldError(ctx, fc) {
  69581. ec.Errorf(ctx, "must not be null")
  69582. }
  69583. return graphql.Null
  69584. }
  69585. res := resTmp.(string)
  69586. fc.Result = res
  69587. return ec.marshalNID2string(ctx, field.Selections, res)
  69588. }
  69589. func (ec *executionContext) fieldContext_FulfillmentEvent_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  69590. fc = &graphql.FieldContext{
  69591. Object: "FulfillmentEvent",
  69592. Field: field,
  69593. IsMethod: false,
  69594. IsResolver: false,
  69595. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  69596. return nil, errors.New("field of type ID does not have child fields")
  69597. },
  69598. }
  69599. return fc, nil
  69600. }
  69601. func (ec *executionContext) _FulfillmentEvent_status(ctx context.Context, field graphql.CollectedField, obj *FulfillmentEvent) (ret graphql.Marshaler) {
  69602. fc, err := ec.fieldContext_FulfillmentEvent_status(ctx, field)
  69603. if err != nil {
  69604. return graphql.Null
  69605. }
  69606. ctx = graphql.WithFieldContext(ctx, fc)
  69607. defer func() {
  69608. if r := recover(); r != nil {
  69609. ec.Error(ctx, ec.Recover(ctx, r))
  69610. ret = graphql.Null
  69611. }
  69612. }()
  69613. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  69614. ctx = rctx // use context from middleware stack in children
  69615. return obj.Status, nil
  69616. })
  69617. if err != nil {
  69618. ec.Error(ctx, err)
  69619. return graphql.Null
  69620. }
  69621. if resTmp == nil {
  69622. if !graphql.HasFieldError(ctx, fc) {
  69623. ec.Errorf(ctx, "must not be null")
  69624. }
  69625. return graphql.Null
  69626. }
  69627. res := resTmp.(FulfillmentEventStatus)
  69628. fc.Result = res
  69629. return ec.marshalNFulfillmentEventStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentEventStatus(ctx, field.Selections, res)
  69630. }
  69631. func (ec *executionContext) fieldContext_FulfillmentEvent_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  69632. fc = &graphql.FieldContext{
  69633. Object: "FulfillmentEvent",
  69634. Field: field,
  69635. IsMethod: false,
  69636. IsResolver: false,
  69637. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  69638. return nil, errors.New("field of type FulfillmentEventStatus does not have child fields")
  69639. },
  69640. }
  69641. return fc, nil
  69642. }
  69643. func (ec *executionContext) _FulfillmentEventConnection_edges(ctx context.Context, field graphql.CollectedField, obj *FulfillmentEventConnection) (ret graphql.Marshaler) {
  69644. fc, err := ec.fieldContext_FulfillmentEventConnection_edges(ctx, field)
  69645. if err != nil {
  69646. return graphql.Null
  69647. }
  69648. ctx = graphql.WithFieldContext(ctx, fc)
  69649. defer func() {
  69650. if r := recover(); r != nil {
  69651. ec.Error(ctx, ec.Recover(ctx, r))
  69652. ret = graphql.Null
  69653. }
  69654. }()
  69655. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  69656. ctx = rctx // use context from middleware stack in children
  69657. return obj.Edges, nil
  69658. })
  69659. if err != nil {
  69660. ec.Error(ctx, err)
  69661. return graphql.Null
  69662. }
  69663. if resTmp == nil {
  69664. if !graphql.HasFieldError(ctx, fc) {
  69665. ec.Errorf(ctx, "must not be null")
  69666. }
  69667. return graphql.Null
  69668. }
  69669. res := resTmp.([]*FulfillmentEventEdge)
  69670. fc.Result = res
  69671. return ec.marshalNFulfillmentEventEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentEventEdgeᚄ(ctx, field.Selections, res)
  69672. }
  69673. func (ec *executionContext) fieldContext_FulfillmentEventConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  69674. fc = &graphql.FieldContext{
  69675. Object: "FulfillmentEventConnection",
  69676. Field: field,
  69677. IsMethod: false,
  69678. IsResolver: false,
  69679. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  69680. switch field.Name {
  69681. case "cursor":
  69682. return ec.fieldContext_FulfillmentEventEdge_cursor(ctx, field)
  69683. case "node":
  69684. return ec.fieldContext_FulfillmentEventEdge_node(ctx, field)
  69685. }
  69686. return nil, fmt.Errorf("no field named %q was found under type FulfillmentEventEdge", field.Name)
  69687. },
  69688. }
  69689. return fc, nil
  69690. }
  69691. func (ec *executionContext) _FulfillmentEventConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *FulfillmentEventConnection) (ret graphql.Marshaler) {
  69692. fc, err := ec.fieldContext_FulfillmentEventConnection_nodes(ctx, field)
  69693. if err != nil {
  69694. return graphql.Null
  69695. }
  69696. ctx = graphql.WithFieldContext(ctx, fc)
  69697. defer func() {
  69698. if r := recover(); r != nil {
  69699. ec.Error(ctx, ec.Recover(ctx, r))
  69700. ret = graphql.Null
  69701. }
  69702. }()
  69703. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  69704. ctx = rctx // use context from middleware stack in children
  69705. return obj.Nodes, nil
  69706. })
  69707. if err != nil {
  69708. ec.Error(ctx, err)
  69709. return graphql.Null
  69710. }
  69711. if resTmp == nil {
  69712. if !graphql.HasFieldError(ctx, fc) {
  69713. ec.Errorf(ctx, "must not be null")
  69714. }
  69715. return graphql.Null
  69716. }
  69717. res := resTmp.([]*FulfillmentEvent)
  69718. fc.Result = res
  69719. return ec.marshalNFulfillmentEvent2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentEventᚄ(ctx, field.Selections, res)
  69720. }
  69721. func (ec *executionContext) fieldContext_FulfillmentEventConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  69722. fc = &graphql.FieldContext{
  69723. Object: "FulfillmentEventConnection",
  69724. Field: field,
  69725. IsMethod: false,
  69726. IsResolver: false,
  69727. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  69728. switch field.Name {
  69729. case "happenedAt":
  69730. return ec.fieldContext_FulfillmentEvent_happenedAt(ctx, field)
  69731. case "id":
  69732. return ec.fieldContext_FulfillmentEvent_id(ctx, field)
  69733. case "status":
  69734. return ec.fieldContext_FulfillmentEvent_status(ctx, field)
  69735. }
  69736. return nil, fmt.Errorf("no field named %q was found under type FulfillmentEvent", field.Name)
  69737. },
  69738. }
  69739. return fc, nil
  69740. }
  69741. func (ec *executionContext) _FulfillmentEventConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *FulfillmentEventConnection) (ret graphql.Marshaler) {
  69742. fc, err := ec.fieldContext_FulfillmentEventConnection_pageInfo(ctx, field)
  69743. if err != nil {
  69744. return graphql.Null
  69745. }
  69746. ctx = graphql.WithFieldContext(ctx, fc)
  69747. defer func() {
  69748. if r := recover(); r != nil {
  69749. ec.Error(ctx, ec.Recover(ctx, r))
  69750. ret = graphql.Null
  69751. }
  69752. }()
  69753. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  69754. ctx = rctx // use context from middleware stack in children
  69755. return obj.PageInfo, nil
  69756. })
  69757. if err != nil {
  69758. ec.Error(ctx, err)
  69759. return graphql.Null
  69760. }
  69761. if resTmp == nil {
  69762. if !graphql.HasFieldError(ctx, fc) {
  69763. ec.Errorf(ctx, "must not be null")
  69764. }
  69765. return graphql.Null
  69766. }
  69767. res := resTmp.(*PageInfo)
  69768. fc.Result = res
  69769. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  69770. }
  69771. func (ec *executionContext) fieldContext_FulfillmentEventConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  69772. fc = &graphql.FieldContext{
  69773. Object: "FulfillmentEventConnection",
  69774. Field: field,
  69775. IsMethod: false,
  69776. IsResolver: false,
  69777. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  69778. switch field.Name {
  69779. case "endCursor":
  69780. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  69781. case "hasNextPage":
  69782. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  69783. case "hasPreviousPage":
  69784. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  69785. case "startCursor":
  69786. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  69787. }
  69788. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  69789. },
  69790. }
  69791. return fc, nil
  69792. }
  69793. func (ec *executionContext) _FulfillmentEventEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *FulfillmentEventEdge) (ret graphql.Marshaler) {
  69794. fc, err := ec.fieldContext_FulfillmentEventEdge_cursor(ctx, field)
  69795. if err != nil {
  69796. return graphql.Null
  69797. }
  69798. ctx = graphql.WithFieldContext(ctx, fc)
  69799. defer func() {
  69800. if r := recover(); r != nil {
  69801. ec.Error(ctx, ec.Recover(ctx, r))
  69802. ret = graphql.Null
  69803. }
  69804. }()
  69805. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  69806. ctx = rctx // use context from middleware stack in children
  69807. return obj.Cursor, nil
  69808. })
  69809. if err != nil {
  69810. ec.Error(ctx, err)
  69811. return graphql.Null
  69812. }
  69813. if resTmp == nil {
  69814. if !graphql.HasFieldError(ctx, fc) {
  69815. ec.Errorf(ctx, "must not be null")
  69816. }
  69817. return graphql.Null
  69818. }
  69819. res := resTmp.(string)
  69820. fc.Result = res
  69821. return ec.marshalNString2string(ctx, field.Selections, res)
  69822. }
  69823. func (ec *executionContext) fieldContext_FulfillmentEventEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  69824. fc = &graphql.FieldContext{
  69825. Object: "FulfillmentEventEdge",
  69826. Field: field,
  69827. IsMethod: false,
  69828. IsResolver: false,
  69829. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  69830. return nil, errors.New("field of type String does not have child fields")
  69831. },
  69832. }
  69833. return fc, nil
  69834. }
  69835. func (ec *executionContext) _FulfillmentEventEdge_node(ctx context.Context, field graphql.CollectedField, obj *FulfillmentEventEdge) (ret graphql.Marshaler) {
  69836. fc, err := ec.fieldContext_FulfillmentEventEdge_node(ctx, field)
  69837. if err != nil {
  69838. return graphql.Null
  69839. }
  69840. ctx = graphql.WithFieldContext(ctx, fc)
  69841. defer func() {
  69842. if r := recover(); r != nil {
  69843. ec.Error(ctx, ec.Recover(ctx, r))
  69844. ret = graphql.Null
  69845. }
  69846. }()
  69847. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  69848. ctx = rctx // use context from middleware stack in children
  69849. return obj.Node, nil
  69850. })
  69851. if err != nil {
  69852. ec.Error(ctx, err)
  69853. return graphql.Null
  69854. }
  69855. if resTmp == nil {
  69856. if !graphql.HasFieldError(ctx, fc) {
  69857. ec.Errorf(ctx, "must not be null")
  69858. }
  69859. return graphql.Null
  69860. }
  69861. res := resTmp.(*FulfillmentEvent)
  69862. fc.Result = res
  69863. return ec.marshalNFulfillmentEvent2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentEvent(ctx, field.Selections, res)
  69864. }
  69865. func (ec *executionContext) fieldContext_FulfillmentEventEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  69866. fc = &graphql.FieldContext{
  69867. Object: "FulfillmentEventEdge",
  69868. Field: field,
  69869. IsMethod: false,
  69870. IsResolver: false,
  69871. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  69872. switch field.Name {
  69873. case "happenedAt":
  69874. return ec.fieldContext_FulfillmentEvent_happenedAt(ctx, field)
  69875. case "id":
  69876. return ec.fieldContext_FulfillmentEvent_id(ctx, field)
  69877. case "status":
  69878. return ec.fieldContext_FulfillmentEvent_status(ctx, field)
  69879. }
  69880. return nil, fmt.Errorf("no field named %q was found under type FulfillmentEvent", field.Name)
  69881. },
  69882. }
  69883. return fc, nil
  69884. }
  69885. func (ec *executionContext) _FulfillmentHold_reason(ctx context.Context, field graphql.CollectedField, obj *FulfillmentHold) (ret graphql.Marshaler) {
  69886. fc, err := ec.fieldContext_FulfillmentHold_reason(ctx, field)
  69887. if err != nil {
  69888. return graphql.Null
  69889. }
  69890. ctx = graphql.WithFieldContext(ctx, fc)
  69891. defer func() {
  69892. if r := recover(); r != nil {
  69893. ec.Error(ctx, ec.Recover(ctx, r))
  69894. ret = graphql.Null
  69895. }
  69896. }()
  69897. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  69898. ctx = rctx // use context from middleware stack in children
  69899. return obj.Reason, nil
  69900. })
  69901. if err != nil {
  69902. ec.Error(ctx, err)
  69903. return graphql.Null
  69904. }
  69905. if resTmp == nil {
  69906. if !graphql.HasFieldError(ctx, fc) {
  69907. ec.Errorf(ctx, "must not be null")
  69908. }
  69909. return graphql.Null
  69910. }
  69911. res := resTmp.(FulfillmentHoldReason)
  69912. fc.Result = res
  69913. return ec.marshalNFulfillmentHoldReason2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentHoldReason(ctx, field.Selections, res)
  69914. }
  69915. func (ec *executionContext) fieldContext_FulfillmentHold_reason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  69916. fc = &graphql.FieldContext{
  69917. Object: "FulfillmentHold",
  69918. Field: field,
  69919. IsMethod: false,
  69920. IsResolver: false,
  69921. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  69922. return nil, errors.New("field of type FulfillmentHoldReason does not have child fields")
  69923. },
  69924. }
  69925. return fc, nil
  69926. }
  69927. func (ec *executionContext) _FulfillmentHold_reasonNotes(ctx context.Context, field graphql.CollectedField, obj *FulfillmentHold) (ret graphql.Marshaler) {
  69928. fc, err := ec.fieldContext_FulfillmentHold_reasonNotes(ctx, field)
  69929. if err != nil {
  69930. return graphql.Null
  69931. }
  69932. ctx = graphql.WithFieldContext(ctx, fc)
  69933. defer func() {
  69934. if r := recover(); r != nil {
  69935. ec.Error(ctx, ec.Recover(ctx, r))
  69936. ret = graphql.Null
  69937. }
  69938. }()
  69939. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  69940. ctx = rctx // use context from middleware stack in children
  69941. return obj.ReasonNotes, nil
  69942. })
  69943. if err != nil {
  69944. ec.Error(ctx, err)
  69945. return graphql.Null
  69946. }
  69947. if resTmp == nil {
  69948. return graphql.Null
  69949. }
  69950. res := resTmp.(*string)
  69951. fc.Result = res
  69952. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  69953. }
  69954. func (ec *executionContext) fieldContext_FulfillmentHold_reasonNotes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  69955. fc = &graphql.FieldContext{
  69956. Object: "FulfillmentHold",
  69957. Field: field,
  69958. IsMethod: false,
  69959. IsResolver: false,
  69960. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  69961. return nil, errors.New("field of type String does not have child fields")
  69962. },
  69963. }
  69964. return fc, nil
  69965. }
  69966. func (ec *executionContext) _FulfillmentLineItem_discountedTotalSet(ctx context.Context, field graphql.CollectedField, obj *FulfillmentLineItem) (ret graphql.Marshaler) {
  69967. fc, err := ec.fieldContext_FulfillmentLineItem_discountedTotalSet(ctx, field)
  69968. if err != nil {
  69969. return graphql.Null
  69970. }
  69971. ctx = graphql.WithFieldContext(ctx, fc)
  69972. defer func() {
  69973. if r := recover(); r != nil {
  69974. ec.Error(ctx, ec.Recover(ctx, r))
  69975. ret = graphql.Null
  69976. }
  69977. }()
  69978. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  69979. ctx = rctx // use context from middleware stack in children
  69980. return obj.DiscountedTotalSet, nil
  69981. })
  69982. if err != nil {
  69983. ec.Error(ctx, err)
  69984. return graphql.Null
  69985. }
  69986. if resTmp == nil {
  69987. if !graphql.HasFieldError(ctx, fc) {
  69988. ec.Errorf(ctx, "must not be null")
  69989. }
  69990. return graphql.Null
  69991. }
  69992. res := resTmp.(*MoneyBag)
  69993. fc.Result = res
  69994. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  69995. }
  69996. func (ec *executionContext) fieldContext_FulfillmentLineItem_discountedTotalSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  69997. fc = &graphql.FieldContext{
  69998. Object: "FulfillmentLineItem",
  69999. Field: field,
  70000. IsMethod: false,
  70001. IsResolver: false,
  70002. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  70003. switch field.Name {
  70004. case "presentmentMoney":
  70005. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  70006. case "shopMoney":
  70007. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  70008. }
  70009. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  70010. },
  70011. }
  70012. return fc, nil
  70013. }
  70014. func (ec *executionContext) _FulfillmentLineItem_id(ctx context.Context, field graphql.CollectedField, obj *FulfillmentLineItem) (ret graphql.Marshaler) {
  70015. fc, err := ec.fieldContext_FulfillmentLineItem_id(ctx, field)
  70016. if err != nil {
  70017. return graphql.Null
  70018. }
  70019. ctx = graphql.WithFieldContext(ctx, fc)
  70020. defer func() {
  70021. if r := recover(); r != nil {
  70022. ec.Error(ctx, ec.Recover(ctx, r))
  70023. ret = graphql.Null
  70024. }
  70025. }()
  70026. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  70027. ctx = rctx // use context from middleware stack in children
  70028. return obj.ID, nil
  70029. })
  70030. if err != nil {
  70031. ec.Error(ctx, err)
  70032. return graphql.Null
  70033. }
  70034. if resTmp == nil {
  70035. if !graphql.HasFieldError(ctx, fc) {
  70036. ec.Errorf(ctx, "must not be null")
  70037. }
  70038. return graphql.Null
  70039. }
  70040. res := resTmp.(string)
  70041. fc.Result = res
  70042. return ec.marshalNID2string(ctx, field.Selections, res)
  70043. }
  70044. func (ec *executionContext) fieldContext_FulfillmentLineItem_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  70045. fc = &graphql.FieldContext{
  70046. Object: "FulfillmentLineItem",
  70047. Field: field,
  70048. IsMethod: false,
  70049. IsResolver: false,
  70050. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  70051. return nil, errors.New("field of type ID does not have child fields")
  70052. },
  70053. }
  70054. return fc, nil
  70055. }
  70056. func (ec *executionContext) _FulfillmentLineItem_lineItem(ctx context.Context, field graphql.CollectedField, obj *FulfillmentLineItem) (ret graphql.Marshaler) {
  70057. fc, err := ec.fieldContext_FulfillmentLineItem_lineItem(ctx, field)
  70058. if err != nil {
  70059. return graphql.Null
  70060. }
  70061. ctx = graphql.WithFieldContext(ctx, fc)
  70062. defer func() {
  70063. if r := recover(); r != nil {
  70064. ec.Error(ctx, ec.Recover(ctx, r))
  70065. ret = graphql.Null
  70066. }
  70067. }()
  70068. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  70069. ctx = rctx // use context from middleware stack in children
  70070. return obj.LineItem, nil
  70071. })
  70072. if err != nil {
  70073. ec.Error(ctx, err)
  70074. return graphql.Null
  70075. }
  70076. if resTmp == nil {
  70077. if !graphql.HasFieldError(ctx, fc) {
  70078. ec.Errorf(ctx, "must not be null")
  70079. }
  70080. return graphql.Null
  70081. }
  70082. res := resTmp.(*LineItem)
  70083. fc.Result = res
  70084. return ec.marshalNLineItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLineItem(ctx, field.Selections, res)
  70085. }
  70086. func (ec *executionContext) fieldContext_FulfillmentLineItem_lineItem(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  70087. fc = &graphql.FieldContext{
  70088. Object: "FulfillmentLineItem",
  70089. Field: field,
  70090. IsMethod: false,
  70091. IsResolver: false,
  70092. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  70093. switch field.Name {
  70094. case "contract":
  70095. return ec.fieldContext_LineItem_contract(ctx, field)
  70096. case "currentQuantity":
  70097. return ec.fieldContext_LineItem_currentQuantity(ctx, field)
  70098. case "customAttributes":
  70099. return ec.fieldContext_LineItem_customAttributes(ctx, field)
  70100. case "discountAllocations":
  70101. return ec.fieldContext_LineItem_discountAllocations(ctx, field)
  70102. case "discountedTotalSet":
  70103. return ec.fieldContext_LineItem_discountedTotalSet(ctx, field)
  70104. case "discountedUnitPriceSet":
  70105. return ec.fieldContext_LineItem_discountedUnitPriceSet(ctx, field)
  70106. case "duties":
  70107. return ec.fieldContext_LineItem_duties(ctx, field)
  70108. case "id":
  70109. return ec.fieldContext_LineItem_id(ctx, field)
  70110. case "image":
  70111. return ec.fieldContext_LineItem_image(ctx, field)
  70112. case "merchantEditable":
  70113. return ec.fieldContext_LineItem_merchantEditable(ctx, field)
  70114. case "name":
  70115. return ec.fieldContext_LineItem_name(ctx, field)
  70116. case "nonFulfillableQuantity":
  70117. return ec.fieldContext_LineItem_nonFulfillableQuantity(ctx, field)
  70118. case "originalTotalSet":
  70119. return ec.fieldContext_LineItem_originalTotalSet(ctx, field)
  70120. case "originalUnitPriceSet":
  70121. return ec.fieldContext_LineItem_originalUnitPriceSet(ctx, field)
  70122. case "product":
  70123. return ec.fieldContext_LineItem_product(ctx, field)
  70124. case "quantity":
  70125. return ec.fieldContext_LineItem_quantity(ctx, field)
  70126. case "refundableQuantity":
  70127. return ec.fieldContext_LineItem_refundableQuantity(ctx, field)
  70128. case "requiresShipping":
  70129. return ec.fieldContext_LineItem_requiresShipping(ctx, field)
  70130. case "restockable":
  70131. return ec.fieldContext_LineItem_restockable(ctx, field)
  70132. case "sellingPlan":
  70133. return ec.fieldContext_LineItem_sellingPlan(ctx, field)
  70134. case "sku":
  70135. return ec.fieldContext_LineItem_sku(ctx, field)
  70136. case "staffMember":
  70137. return ec.fieldContext_LineItem_staffMember(ctx, field)
  70138. case "taxLines":
  70139. return ec.fieldContext_LineItem_taxLines(ctx, field)
  70140. case "taxable":
  70141. return ec.fieldContext_LineItem_taxable(ctx, field)
  70142. case "title":
  70143. return ec.fieldContext_LineItem_title(ctx, field)
  70144. case "totalDiscountSet":
  70145. return ec.fieldContext_LineItem_totalDiscountSet(ctx, field)
  70146. case "unfulfilledDiscountedTotalSet":
  70147. return ec.fieldContext_LineItem_unfulfilledDiscountedTotalSet(ctx, field)
  70148. case "unfulfilledOriginalTotalSet":
  70149. return ec.fieldContext_LineItem_unfulfilledOriginalTotalSet(ctx, field)
  70150. case "unfulfilledQuantity":
  70151. return ec.fieldContext_LineItem_unfulfilledQuantity(ctx, field)
  70152. case "variant":
  70153. return ec.fieldContext_LineItem_variant(ctx, field)
  70154. case "variantTitle":
  70155. return ec.fieldContext_LineItem_variantTitle(ctx, field)
  70156. case "vendor":
  70157. return ec.fieldContext_LineItem_vendor(ctx, field)
  70158. }
  70159. return nil, fmt.Errorf("no field named %q was found under type LineItem", field.Name)
  70160. },
  70161. }
  70162. return fc, nil
  70163. }
  70164. func (ec *executionContext) _FulfillmentLineItem_originalTotalSet(ctx context.Context, field graphql.CollectedField, obj *FulfillmentLineItem) (ret graphql.Marshaler) {
  70165. fc, err := ec.fieldContext_FulfillmentLineItem_originalTotalSet(ctx, field)
  70166. if err != nil {
  70167. return graphql.Null
  70168. }
  70169. ctx = graphql.WithFieldContext(ctx, fc)
  70170. defer func() {
  70171. if r := recover(); r != nil {
  70172. ec.Error(ctx, ec.Recover(ctx, r))
  70173. ret = graphql.Null
  70174. }
  70175. }()
  70176. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  70177. ctx = rctx // use context from middleware stack in children
  70178. return obj.OriginalTotalSet, nil
  70179. })
  70180. if err != nil {
  70181. ec.Error(ctx, err)
  70182. return graphql.Null
  70183. }
  70184. if resTmp == nil {
  70185. if !graphql.HasFieldError(ctx, fc) {
  70186. ec.Errorf(ctx, "must not be null")
  70187. }
  70188. return graphql.Null
  70189. }
  70190. res := resTmp.(*MoneyBag)
  70191. fc.Result = res
  70192. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  70193. }
  70194. func (ec *executionContext) fieldContext_FulfillmentLineItem_originalTotalSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  70195. fc = &graphql.FieldContext{
  70196. Object: "FulfillmentLineItem",
  70197. Field: field,
  70198. IsMethod: false,
  70199. IsResolver: false,
  70200. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  70201. switch field.Name {
  70202. case "presentmentMoney":
  70203. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  70204. case "shopMoney":
  70205. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  70206. }
  70207. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  70208. },
  70209. }
  70210. return fc, nil
  70211. }
  70212. func (ec *executionContext) _FulfillmentLineItem_quantity(ctx context.Context, field graphql.CollectedField, obj *FulfillmentLineItem) (ret graphql.Marshaler) {
  70213. fc, err := ec.fieldContext_FulfillmentLineItem_quantity(ctx, field)
  70214. if err != nil {
  70215. return graphql.Null
  70216. }
  70217. ctx = graphql.WithFieldContext(ctx, fc)
  70218. defer func() {
  70219. if r := recover(); r != nil {
  70220. ec.Error(ctx, ec.Recover(ctx, r))
  70221. ret = graphql.Null
  70222. }
  70223. }()
  70224. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  70225. ctx = rctx // use context from middleware stack in children
  70226. return obj.Quantity, nil
  70227. })
  70228. if err != nil {
  70229. ec.Error(ctx, err)
  70230. return graphql.Null
  70231. }
  70232. if resTmp == nil {
  70233. return graphql.Null
  70234. }
  70235. res := resTmp.(*int)
  70236. fc.Result = res
  70237. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  70238. }
  70239. func (ec *executionContext) fieldContext_FulfillmentLineItem_quantity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  70240. fc = &graphql.FieldContext{
  70241. Object: "FulfillmentLineItem",
  70242. Field: field,
  70243. IsMethod: false,
  70244. IsResolver: false,
  70245. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  70246. return nil, errors.New("field of type Int does not have child fields")
  70247. },
  70248. }
  70249. return fc, nil
  70250. }
  70251. func (ec *executionContext) _FulfillmentLineItemConnection_edges(ctx context.Context, field graphql.CollectedField, obj *FulfillmentLineItemConnection) (ret graphql.Marshaler) {
  70252. fc, err := ec.fieldContext_FulfillmentLineItemConnection_edges(ctx, field)
  70253. if err != nil {
  70254. return graphql.Null
  70255. }
  70256. ctx = graphql.WithFieldContext(ctx, fc)
  70257. defer func() {
  70258. if r := recover(); r != nil {
  70259. ec.Error(ctx, ec.Recover(ctx, r))
  70260. ret = graphql.Null
  70261. }
  70262. }()
  70263. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  70264. ctx = rctx // use context from middleware stack in children
  70265. return obj.Edges, nil
  70266. })
  70267. if err != nil {
  70268. ec.Error(ctx, err)
  70269. return graphql.Null
  70270. }
  70271. if resTmp == nil {
  70272. if !graphql.HasFieldError(ctx, fc) {
  70273. ec.Errorf(ctx, "must not be null")
  70274. }
  70275. return graphql.Null
  70276. }
  70277. res := resTmp.([]*FulfillmentLineItemEdge)
  70278. fc.Result = res
  70279. return ec.marshalNFulfillmentLineItemEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentLineItemEdgeᚄ(ctx, field.Selections, res)
  70280. }
  70281. func (ec *executionContext) fieldContext_FulfillmentLineItemConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  70282. fc = &graphql.FieldContext{
  70283. Object: "FulfillmentLineItemConnection",
  70284. Field: field,
  70285. IsMethod: false,
  70286. IsResolver: false,
  70287. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  70288. switch field.Name {
  70289. case "cursor":
  70290. return ec.fieldContext_FulfillmentLineItemEdge_cursor(ctx, field)
  70291. case "node":
  70292. return ec.fieldContext_FulfillmentLineItemEdge_node(ctx, field)
  70293. }
  70294. return nil, fmt.Errorf("no field named %q was found under type FulfillmentLineItemEdge", field.Name)
  70295. },
  70296. }
  70297. return fc, nil
  70298. }
  70299. func (ec *executionContext) _FulfillmentLineItemConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *FulfillmentLineItemConnection) (ret graphql.Marshaler) {
  70300. fc, err := ec.fieldContext_FulfillmentLineItemConnection_nodes(ctx, field)
  70301. if err != nil {
  70302. return graphql.Null
  70303. }
  70304. ctx = graphql.WithFieldContext(ctx, fc)
  70305. defer func() {
  70306. if r := recover(); r != nil {
  70307. ec.Error(ctx, ec.Recover(ctx, r))
  70308. ret = graphql.Null
  70309. }
  70310. }()
  70311. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  70312. ctx = rctx // use context from middleware stack in children
  70313. return obj.Nodes, nil
  70314. })
  70315. if err != nil {
  70316. ec.Error(ctx, err)
  70317. return graphql.Null
  70318. }
  70319. if resTmp == nil {
  70320. if !graphql.HasFieldError(ctx, fc) {
  70321. ec.Errorf(ctx, "must not be null")
  70322. }
  70323. return graphql.Null
  70324. }
  70325. res := resTmp.([]*FulfillmentLineItem)
  70326. fc.Result = res
  70327. return ec.marshalNFulfillmentLineItem2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentLineItemᚄ(ctx, field.Selections, res)
  70328. }
  70329. func (ec *executionContext) fieldContext_FulfillmentLineItemConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  70330. fc = &graphql.FieldContext{
  70331. Object: "FulfillmentLineItemConnection",
  70332. Field: field,
  70333. IsMethod: false,
  70334. IsResolver: false,
  70335. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  70336. switch field.Name {
  70337. case "discountedTotalSet":
  70338. return ec.fieldContext_FulfillmentLineItem_discountedTotalSet(ctx, field)
  70339. case "id":
  70340. return ec.fieldContext_FulfillmentLineItem_id(ctx, field)
  70341. case "lineItem":
  70342. return ec.fieldContext_FulfillmentLineItem_lineItem(ctx, field)
  70343. case "originalTotalSet":
  70344. return ec.fieldContext_FulfillmentLineItem_originalTotalSet(ctx, field)
  70345. case "quantity":
  70346. return ec.fieldContext_FulfillmentLineItem_quantity(ctx, field)
  70347. }
  70348. return nil, fmt.Errorf("no field named %q was found under type FulfillmentLineItem", field.Name)
  70349. },
  70350. }
  70351. return fc, nil
  70352. }
  70353. func (ec *executionContext) _FulfillmentLineItemConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *FulfillmentLineItemConnection) (ret graphql.Marshaler) {
  70354. fc, err := ec.fieldContext_FulfillmentLineItemConnection_pageInfo(ctx, field)
  70355. if err != nil {
  70356. return graphql.Null
  70357. }
  70358. ctx = graphql.WithFieldContext(ctx, fc)
  70359. defer func() {
  70360. if r := recover(); r != nil {
  70361. ec.Error(ctx, ec.Recover(ctx, r))
  70362. ret = graphql.Null
  70363. }
  70364. }()
  70365. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  70366. ctx = rctx // use context from middleware stack in children
  70367. return obj.PageInfo, nil
  70368. })
  70369. if err != nil {
  70370. ec.Error(ctx, err)
  70371. return graphql.Null
  70372. }
  70373. if resTmp == nil {
  70374. if !graphql.HasFieldError(ctx, fc) {
  70375. ec.Errorf(ctx, "must not be null")
  70376. }
  70377. return graphql.Null
  70378. }
  70379. res := resTmp.(*PageInfo)
  70380. fc.Result = res
  70381. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  70382. }
  70383. func (ec *executionContext) fieldContext_FulfillmentLineItemConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  70384. fc = &graphql.FieldContext{
  70385. Object: "FulfillmentLineItemConnection",
  70386. Field: field,
  70387. IsMethod: false,
  70388. IsResolver: false,
  70389. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  70390. switch field.Name {
  70391. case "endCursor":
  70392. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  70393. case "hasNextPage":
  70394. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  70395. case "hasPreviousPage":
  70396. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  70397. case "startCursor":
  70398. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  70399. }
  70400. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  70401. },
  70402. }
  70403. return fc, nil
  70404. }
  70405. func (ec *executionContext) _FulfillmentLineItemEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *FulfillmentLineItemEdge) (ret graphql.Marshaler) {
  70406. fc, err := ec.fieldContext_FulfillmentLineItemEdge_cursor(ctx, field)
  70407. if err != nil {
  70408. return graphql.Null
  70409. }
  70410. ctx = graphql.WithFieldContext(ctx, fc)
  70411. defer func() {
  70412. if r := recover(); r != nil {
  70413. ec.Error(ctx, ec.Recover(ctx, r))
  70414. ret = graphql.Null
  70415. }
  70416. }()
  70417. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  70418. ctx = rctx // use context from middleware stack in children
  70419. return obj.Cursor, nil
  70420. })
  70421. if err != nil {
  70422. ec.Error(ctx, err)
  70423. return graphql.Null
  70424. }
  70425. if resTmp == nil {
  70426. if !graphql.HasFieldError(ctx, fc) {
  70427. ec.Errorf(ctx, "must not be null")
  70428. }
  70429. return graphql.Null
  70430. }
  70431. res := resTmp.(string)
  70432. fc.Result = res
  70433. return ec.marshalNString2string(ctx, field.Selections, res)
  70434. }
  70435. func (ec *executionContext) fieldContext_FulfillmentLineItemEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  70436. fc = &graphql.FieldContext{
  70437. Object: "FulfillmentLineItemEdge",
  70438. Field: field,
  70439. IsMethod: false,
  70440. IsResolver: false,
  70441. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  70442. return nil, errors.New("field of type String does not have child fields")
  70443. },
  70444. }
  70445. return fc, nil
  70446. }
  70447. func (ec *executionContext) _FulfillmentLineItemEdge_node(ctx context.Context, field graphql.CollectedField, obj *FulfillmentLineItemEdge) (ret graphql.Marshaler) {
  70448. fc, err := ec.fieldContext_FulfillmentLineItemEdge_node(ctx, field)
  70449. if err != nil {
  70450. return graphql.Null
  70451. }
  70452. ctx = graphql.WithFieldContext(ctx, fc)
  70453. defer func() {
  70454. if r := recover(); r != nil {
  70455. ec.Error(ctx, ec.Recover(ctx, r))
  70456. ret = graphql.Null
  70457. }
  70458. }()
  70459. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  70460. ctx = rctx // use context from middleware stack in children
  70461. return obj.Node, nil
  70462. })
  70463. if err != nil {
  70464. ec.Error(ctx, err)
  70465. return graphql.Null
  70466. }
  70467. if resTmp == nil {
  70468. if !graphql.HasFieldError(ctx, fc) {
  70469. ec.Errorf(ctx, "must not be null")
  70470. }
  70471. return graphql.Null
  70472. }
  70473. res := resTmp.(*FulfillmentLineItem)
  70474. fc.Result = res
  70475. return ec.marshalNFulfillmentLineItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentLineItem(ctx, field.Selections, res)
  70476. }
  70477. func (ec *executionContext) fieldContext_FulfillmentLineItemEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  70478. fc = &graphql.FieldContext{
  70479. Object: "FulfillmentLineItemEdge",
  70480. Field: field,
  70481. IsMethod: false,
  70482. IsResolver: false,
  70483. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  70484. switch field.Name {
  70485. case "discountedTotalSet":
  70486. return ec.fieldContext_FulfillmentLineItem_discountedTotalSet(ctx, field)
  70487. case "id":
  70488. return ec.fieldContext_FulfillmentLineItem_id(ctx, field)
  70489. case "lineItem":
  70490. return ec.fieldContext_FulfillmentLineItem_lineItem(ctx, field)
  70491. case "originalTotalSet":
  70492. return ec.fieldContext_FulfillmentLineItem_originalTotalSet(ctx, field)
  70493. case "quantity":
  70494. return ec.fieldContext_FulfillmentLineItem_quantity(ctx, field)
  70495. }
  70496. return nil, fmt.Errorf("no field named %q was found under type FulfillmentLineItem", field.Name)
  70497. },
  70498. }
  70499. return fc, nil
  70500. }
  70501. func (ec *executionContext) _FulfillmentOrder_assignedLocation(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrder) (ret graphql.Marshaler) {
  70502. fc, err := ec.fieldContext_FulfillmentOrder_assignedLocation(ctx, field)
  70503. if err != nil {
  70504. return graphql.Null
  70505. }
  70506. ctx = graphql.WithFieldContext(ctx, fc)
  70507. defer func() {
  70508. if r := recover(); r != nil {
  70509. ec.Error(ctx, ec.Recover(ctx, r))
  70510. ret = graphql.Null
  70511. }
  70512. }()
  70513. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  70514. ctx = rctx // use context from middleware stack in children
  70515. return obj.AssignedLocation, nil
  70516. })
  70517. if err != nil {
  70518. ec.Error(ctx, err)
  70519. return graphql.Null
  70520. }
  70521. if resTmp == nil {
  70522. if !graphql.HasFieldError(ctx, fc) {
  70523. ec.Errorf(ctx, "must not be null")
  70524. }
  70525. return graphql.Null
  70526. }
  70527. res := resTmp.(*FulfillmentOrderAssignedLocation)
  70528. fc.Result = res
  70529. return ec.marshalNFulfillmentOrderAssignedLocation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderAssignedLocation(ctx, field.Selections, res)
  70530. }
  70531. func (ec *executionContext) fieldContext_FulfillmentOrder_assignedLocation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  70532. fc = &graphql.FieldContext{
  70533. Object: "FulfillmentOrder",
  70534. Field: field,
  70535. IsMethod: false,
  70536. IsResolver: false,
  70537. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  70538. switch field.Name {
  70539. case "address1":
  70540. return ec.fieldContext_FulfillmentOrderAssignedLocation_address1(ctx, field)
  70541. case "address2":
  70542. return ec.fieldContext_FulfillmentOrderAssignedLocation_address2(ctx, field)
  70543. case "city":
  70544. return ec.fieldContext_FulfillmentOrderAssignedLocation_city(ctx, field)
  70545. case "countryCode":
  70546. return ec.fieldContext_FulfillmentOrderAssignedLocation_countryCode(ctx, field)
  70547. case "location":
  70548. return ec.fieldContext_FulfillmentOrderAssignedLocation_location(ctx, field)
  70549. case "name":
  70550. return ec.fieldContext_FulfillmentOrderAssignedLocation_name(ctx, field)
  70551. case "phone":
  70552. return ec.fieldContext_FulfillmentOrderAssignedLocation_phone(ctx, field)
  70553. case "province":
  70554. return ec.fieldContext_FulfillmentOrderAssignedLocation_province(ctx, field)
  70555. case "zip":
  70556. return ec.fieldContext_FulfillmentOrderAssignedLocation_zip(ctx, field)
  70557. }
  70558. return nil, fmt.Errorf("no field named %q was found under type FulfillmentOrderAssignedLocation", field.Name)
  70559. },
  70560. }
  70561. return fc, nil
  70562. }
  70563. func (ec *executionContext) _FulfillmentOrder_deliveryMethod(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrder) (ret graphql.Marshaler) {
  70564. fc, err := ec.fieldContext_FulfillmentOrder_deliveryMethod(ctx, field)
  70565. if err != nil {
  70566. return graphql.Null
  70567. }
  70568. ctx = graphql.WithFieldContext(ctx, fc)
  70569. defer func() {
  70570. if r := recover(); r != nil {
  70571. ec.Error(ctx, ec.Recover(ctx, r))
  70572. ret = graphql.Null
  70573. }
  70574. }()
  70575. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  70576. ctx = rctx // use context from middleware stack in children
  70577. return obj.DeliveryMethod, nil
  70578. })
  70579. if err != nil {
  70580. ec.Error(ctx, err)
  70581. return graphql.Null
  70582. }
  70583. if resTmp == nil {
  70584. return graphql.Null
  70585. }
  70586. res := resTmp.(*DeliveryMethod)
  70587. fc.Result = res
  70588. return ec.marshalODeliveryMethod2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryMethod(ctx, field.Selections, res)
  70589. }
  70590. func (ec *executionContext) fieldContext_FulfillmentOrder_deliveryMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  70591. fc = &graphql.FieldContext{
  70592. Object: "FulfillmentOrder",
  70593. Field: field,
  70594. IsMethod: false,
  70595. IsResolver: false,
  70596. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  70597. switch field.Name {
  70598. case "id":
  70599. return ec.fieldContext_DeliveryMethod_id(ctx, field)
  70600. case "maxDeliveryDateTime":
  70601. return ec.fieldContext_DeliveryMethod_maxDeliveryDateTime(ctx, field)
  70602. case "methodType":
  70603. return ec.fieldContext_DeliveryMethod_methodType(ctx, field)
  70604. case "minDeliveryDateTime":
  70605. return ec.fieldContext_DeliveryMethod_minDeliveryDateTime(ctx, field)
  70606. }
  70607. return nil, fmt.Errorf("no field named %q was found under type DeliveryMethod", field.Name)
  70608. },
  70609. }
  70610. return fc, nil
  70611. }
  70612. func (ec *executionContext) _FulfillmentOrder_destination(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrder) (ret graphql.Marshaler) {
  70613. fc, err := ec.fieldContext_FulfillmentOrder_destination(ctx, field)
  70614. if err != nil {
  70615. return graphql.Null
  70616. }
  70617. ctx = graphql.WithFieldContext(ctx, fc)
  70618. defer func() {
  70619. if r := recover(); r != nil {
  70620. ec.Error(ctx, ec.Recover(ctx, r))
  70621. ret = graphql.Null
  70622. }
  70623. }()
  70624. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  70625. ctx = rctx // use context from middleware stack in children
  70626. return obj.Destination, nil
  70627. })
  70628. if err != nil {
  70629. ec.Error(ctx, err)
  70630. return graphql.Null
  70631. }
  70632. if resTmp == nil {
  70633. return graphql.Null
  70634. }
  70635. res := resTmp.(*FulfillmentOrderDestination)
  70636. fc.Result = res
  70637. return ec.marshalOFulfillmentOrderDestination2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderDestination(ctx, field.Selections, res)
  70638. }
  70639. func (ec *executionContext) fieldContext_FulfillmentOrder_destination(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  70640. fc = &graphql.FieldContext{
  70641. Object: "FulfillmentOrder",
  70642. Field: field,
  70643. IsMethod: false,
  70644. IsResolver: false,
  70645. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  70646. switch field.Name {
  70647. case "address1":
  70648. return ec.fieldContext_FulfillmentOrderDestination_address1(ctx, field)
  70649. case "address2":
  70650. return ec.fieldContext_FulfillmentOrderDestination_address2(ctx, field)
  70651. case "city":
  70652. return ec.fieldContext_FulfillmentOrderDestination_city(ctx, field)
  70653. case "company":
  70654. return ec.fieldContext_FulfillmentOrderDestination_company(ctx, field)
  70655. case "countryCode":
  70656. return ec.fieldContext_FulfillmentOrderDestination_countryCode(ctx, field)
  70657. case "email":
  70658. return ec.fieldContext_FulfillmentOrderDestination_email(ctx, field)
  70659. case "firstName":
  70660. return ec.fieldContext_FulfillmentOrderDestination_firstName(ctx, field)
  70661. case "id":
  70662. return ec.fieldContext_FulfillmentOrderDestination_id(ctx, field)
  70663. case "lastName":
  70664. return ec.fieldContext_FulfillmentOrderDestination_lastName(ctx, field)
  70665. case "phone":
  70666. return ec.fieldContext_FulfillmentOrderDestination_phone(ctx, field)
  70667. case "province":
  70668. return ec.fieldContext_FulfillmentOrderDestination_province(ctx, field)
  70669. case "zip":
  70670. return ec.fieldContext_FulfillmentOrderDestination_zip(ctx, field)
  70671. }
  70672. return nil, fmt.Errorf("no field named %q was found under type FulfillmentOrderDestination", field.Name)
  70673. },
  70674. }
  70675. return fc, nil
  70676. }
  70677. func (ec *executionContext) _FulfillmentOrder_fulfillAt(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrder) (ret graphql.Marshaler) {
  70678. fc, err := ec.fieldContext_FulfillmentOrder_fulfillAt(ctx, field)
  70679. if err != nil {
  70680. return graphql.Null
  70681. }
  70682. ctx = graphql.WithFieldContext(ctx, fc)
  70683. defer func() {
  70684. if r := recover(); r != nil {
  70685. ec.Error(ctx, ec.Recover(ctx, r))
  70686. ret = graphql.Null
  70687. }
  70688. }()
  70689. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  70690. ctx = rctx // use context from middleware stack in children
  70691. return obj.FulfillAt, nil
  70692. })
  70693. if err != nil {
  70694. ec.Error(ctx, err)
  70695. return graphql.Null
  70696. }
  70697. if resTmp == nil {
  70698. return graphql.Null
  70699. }
  70700. res := resTmp.(*string)
  70701. fc.Result = res
  70702. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  70703. }
  70704. func (ec *executionContext) fieldContext_FulfillmentOrder_fulfillAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  70705. fc = &graphql.FieldContext{
  70706. Object: "FulfillmentOrder",
  70707. Field: field,
  70708. IsMethod: false,
  70709. IsResolver: false,
  70710. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  70711. return nil, errors.New("field of type DateTime does not have child fields")
  70712. },
  70713. }
  70714. return fc, nil
  70715. }
  70716. func (ec *executionContext) _FulfillmentOrder_fulfillBy(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrder) (ret graphql.Marshaler) {
  70717. fc, err := ec.fieldContext_FulfillmentOrder_fulfillBy(ctx, field)
  70718. if err != nil {
  70719. return graphql.Null
  70720. }
  70721. ctx = graphql.WithFieldContext(ctx, fc)
  70722. defer func() {
  70723. if r := recover(); r != nil {
  70724. ec.Error(ctx, ec.Recover(ctx, r))
  70725. ret = graphql.Null
  70726. }
  70727. }()
  70728. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  70729. ctx = rctx // use context from middleware stack in children
  70730. return obj.FulfillBy, nil
  70731. })
  70732. if err != nil {
  70733. ec.Error(ctx, err)
  70734. return graphql.Null
  70735. }
  70736. if resTmp == nil {
  70737. return graphql.Null
  70738. }
  70739. res := resTmp.(*string)
  70740. fc.Result = res
  70741. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  70742. }
  70743. func (ec *executionContext) fieldContext_FulfillmentOrder_fulfillBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  70744. fc = &graphql.FieldContext{
  70745. Object: "FulfillmentOrder",
  70746. Field: field,
  70747. IsMethod: false,
  70748. IsResolver: false,
  70749. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  70750. return nil, errors.New("field of type DateTime does not have child fields")
  70751. },
  70752. }
  70753. return fc, nil
  70754. }
  70755. func (ec *executionContext) _FulfillmentOrder_fulfillmentHolds(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrder) (ret graphql.Marshaler) {
  70756. fc, err := ec.fieldContext_FulfillmentOrder_fulfillmentHolds(ctx, field)
  70757. if err != nil {
  70758. return graphql.Null
  70759. }
  70760. ctx = graphql.WithFieldContext(ctx, fc)
  70761. defer func() {
  70762. if r := recover(); r != nil {
  70763. ec.Error(ctx, ec.Recover(ctx, r))
  70764. ret = graphql.Null
  70765. }
  70766. }()
  70767. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  70768. ctx = rctx // use context from middleware stack in children
  70769. return obj.FulfillmentHolds, nil
  70770. })
  70771. if err != nil {
  70772. ec.Error(ctx, err)
  70773. return graphql.Null
  70774. }
  70775. if resTmp == nil {
  70776. if !graphql.HasFieldError(ctx, fc) {
  70777. ec.Errorf(ctx, "must not be null")
  70778. }
  70779. return graphql.Null
  70780. }
  70781. res := resTmp.([]*FulfillmentHold)
  70782. fc.Result = res
  70783. return ec.marshalNFulfillmentHold2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentHoldᚄ(ctx, field.Selections, res)
  70784. }
  70785. func (ec *executionContext) fieldContext_FulfillmentOrder_fulfillmentHolds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  70786. fc = &graphql.FieldContext{
  70787. Object: "FulfillmentOrder",
  70788. Field: field,
  70789. IsMethod: false,
  70790. IsResolver: false,
  70791. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  70792. switch field.Name {
  70793. case "reason":
  70794. return ec.fieldContext_FulfillmentHold_reason(ctx, field)
  70795. case "reasonNotes":
  70796. return ec.fieldContext_FulfillmentHold_reasonNotes(ctx, field)
  70797. }
  70798. return nil, fmt.Errorf("no field named %q was found under type FulfillmentHold", field.Name)
  70799. },
  70800. }
  70801. return fc, nil
  70802. }
  70803. func (ec *executionContext) _FulfillmentOrder_fulfillments(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrder) (ret graphql.Marshaler) {
  70804. fc, err := ec.fieldContext_FulfillmentOrder_fulfillments(ctx, field)
  70805. if err != nil {
  70806. return graphql.Null
  70807. }
  70808. ctx = graphql.WithFieldContext(ctx, fc)
  70809. defer func() {
  70810. if r := recover(); r != nil {
  70811. ec.Error(ctx, ec.Recover(ctx, r))
  70812. ret = graphql.Null
  70813. }
  70814. }()
  70815. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  70816. ctx = rctx // use context from middleware stack in children
  70817. return obj.Fulfillments, nil
  70818. })
  70819. if err != nil {
  70820. ec.Error(ctx, err)
  70821. return graphql.Null
  70822. }
  70823. if resTmp == nil {
  70824. if !graphql.HasFieldError(ctx, fc) {
  70825. ec.Errorf(ctx, "must not be null")
  70826. }
  70827. return graphql.Null
  70828. }
  70829. res := resTmp.(*FulfillmentConnection)
  70830. fc.Result = res
  70831. return ec.marshalNFulfillmentConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentConnection(ctx, field.Selections, res)
  70832. }
  70833. func (ec *executionContext) fieldContext_FulfillmentOrder_fulfillments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  70834. fc = &graphql.FieldContext{
  70835. Object: "FulfillmentOrder",
  70836. Field: field,
  70837. IsMethod: false,
  70838. IsResolver: false,
  70839. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  70840. switch field.Name {
  70841. case "edges":
  70842. return ec.fieldContext_FulfillmentConnection_edges(ctx, field)
  70843. case "nodes":
  70844. return ec.fieldContext_FulfillmentConnection_nodes(ctx, field)
  70845. case "pageInfo":
  70846. return ec.fieldContext_FulfillmentConnection_pageInfo(ctx, field)
  70847. }
  70848. return nil, fmt.Errorf("no field named %q was found under type FulfillmentConnection", field.Name)
  70849. },
  70850. }
  70851. defer func() {
  70852. if r := recover(); r != nil {
  70853. err = ec.Recover(ctx, r)
  70854. ec.Error(ctx, err)
  70855. }
  70856. }()
  70857. ctx = graphql.WithFieldContext(ctx, fc)
  70858. if fc.Args, err = ec.field_FulfillmentOrder_fulfillments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  70859. ec.Error(ctx, err)
  70860. return
  70861. }
  70862. return fc, nil
  70863. }
  70864. func (ec *executionContext) _FulfillmentOrder_id(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrder) (ret graphql.Marshaler) {
  70865. fc, err := ec.fieldContext_FulfillmentOrder_id(ctx, field)
  70866. if err != nil {
  70867. return graphql.Null
  70868. }
  70869. ctx = graphql.WithFieldContext(ctx, fc)
  70870. defer func() {
  70871. if r := recover(); r != nil {
  70872. ec.Error(ctx, ec.Recover(ctx, r))
  70873. ret = graphql.Null
  70874. }
  70875. }()
  70876. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  70877. ctx = rctx // use context from middleware stack in children
  70878. return obj.ID, nil
  70879. })
  70880. if err != nil {
  70881. ec.Error(ctx, err)
  70882. return graphql.Null
  70883. }
  70884. if resTmp == nil {
  70885. if !graphql.HasFieldError(ctx, fc) {
  70886. ec.Errorf(ctx, "must not be null")
  70887. }
  70888. return graphql.Null
  70889. }
  70890. res := resTmp.(string)
  70891. fc.Result = res
  70892. return ec.marshalNID2string(ctx, field.Selections, res)
  70893. }
  70894. func (ec *executionContext) fieldContext_FulfillmentOrder_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  70895. fc = &graphql.FieldContext{
  70896. Object: "FulfillmentOrder",
  70897. Field: field,
  70898. IsMethod: false,
  70899. IsResolver: false,
  70900. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  70901. return nil, errors.New("field of type ID does not have child fields")
  70902. },
  70903. }
  70904. return fc, nil
  70905. }
  70906. func (ec *executionContext) _FulfillmentOrder_internationalDuties(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrder) (ret graphql.Marshaler) {
  70907. fc, err := ec.fieldContext_FulfillmentOrder_internationalDuties(ctx, field)
  70908. if err != nil {
  70909. return graphql.Null
  70910. }
  70911. ctx = graphql.WithFieldContext(ctx, fc)
  70912. defer func() {
  70913. if r := recover(); r != nil {
  70914. ec.Error(ctx, ec.Recover(ctx, r))
  70915. ret = graphql.Null
  70916. }
  70917. }()
  70918. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  70919. ctx = rctx // use context from middleware stack in children
  70920. return obj.InternationalDuties, nil
  70921. })
  70922. if err != nil {
  70923. ec.Error(ctx, err)
  70924. return graphql.Null
  70925. }
  70926. if resTmp == nil {
  70927. return graphql.Null
  70928. }
  70929. res := resTmp.(*FulfillmentOrderInternationalDuties)
  70930. fc.Result = res
  70931. return ec.marshalOFulfillmentOrderInternationalDuties2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderInternationalDuties(ctx, field.Selections, res)
  70932. }
  70933. func (ec *executionContext) fieldContext_FulfillmentOrder_internationalDuties(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  70934. fc = &graphql.FieldContext{
  70935. Object: "FulfillmentOrder",
  70936. Field: field,
  70937. IsMethod: false,
  70938. IsResolver: false,
  70939. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  70940. switch field.Name {
  70941. case "incoterm":
  70942. return ec.fieldContext_FulfillmentOrderInternationalDuties_incoterm(ctx, field)
  70943. }
  70944. return nil, fmt.Errorf("no field named %q was found under type FulfillmentOrderInternationalDuties", field.Name)
  70945. },
  70946. }
  70947. return fc, nil
  70948. }
  70949. func (ec *executionContext) _FulfillmentOrder_lineItems(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrder) (ret graphql.Marshaler) {
  70950. fc, err := ec.fieldContext_FulfillmentOrder_lineItems(ctx, field)
  70951. if err != nil {
  70952. return graphql.Null
  70953. }
  70954. ctx = graphql.WithFieldContext(ctx, fc)
  70955. defer func() {
  70956. if r := recover(); r != nil {
  70957. ec.Error(ctx, ec.Recover(ctx, r))
  70958. ret = graphql.Null
  70959. }
  70960. }()
  70961. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  70962. ctx = rctx // use context from middleware stack in children
  70963. return obj.LineItems, nil
  70964. })
  70965. if err != nil {
  70966. ec.Error(ctx, err)
  70967. return graphql.Null
  70968. }
  70969. if resTmp == nil {
  70970. if !graphql.HasFieldError(ctx, fc) {
  70971. ec.Errorf(ctx, "must not be null")
  70972. }
  70973. return graphql.Null
  70974. }
  70975. res := resTmp.(*FulfillmentOrderLineItemConnection)
  70976. fc.Result = res
  70977. return ec.marshalNFulfillmentOrderLineItemConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderLineItemConnection(ctx, field.Selections, res)
  70978. }
  70979. func (ec *executionContext) fieldContext_FulfillmentOrder_lineItems(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  70980. fc = &graphql.FieldContext{
  70981. Object: "FulfillmentOrder",
  70982. Field: field,
  70983. IsMethod: false,
  70984. IsResolver: false,
  70985. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  70986. switch field.Name {
  70987. case "edges":
  70988. return ec.fieldContext_FulfillmentOrderLineItemConnection_edges(ctx, field)
  70989. case "nodes":
  70990. return ec.fieldContext_FulfillmentOrderLineItemConnection_nodes(ctx, field)
  70991. case "pageInfo":
  70992. return ec.fieldContext_FulfillmentOrderLineItemConnection_pageInfo(ctx, field)
  70993. }
  70994. return nil, fmt.Errorf("no field named %q was found under type FulfillmentOrderLineItemConnection", field.Name)
  70995. },
  70996. }
  70997. defer func() {
  70998. if r := recover(); r != nil {
  70999. err = ec.Recover(ctx, r)
  71000. ec.Error(ctx, err)
  71001. }
  71002. }()
  71003. ctx = graphql.WithFieldContext(ctx, fc)
  71004. if fc.Args, err = ec.field_FulfillmentOrder_lineItems_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  71005. ec.Error(ctx, err)
  71006. return
  71007. }
  71008. return fc, nil
  71009. }
  71010. func (ec *executionContext) _FulfillmentOrder_locationsForMove(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrder) (ret graphql.Marshaler) {
  71011. fc, err := ec.fieldContext_FulfillmentOrder_locationsForMove(ctx, field)
  71012. if err != nil {
  71013. return graphql.Null
  71014. }
  71015. ctx = graphql.WithFieldContext(ctx, fc)
  71016. defer func() {
  71017. if r := recover(); r != nil {
  71018. ec.Error(ctx, ec.Recover(ctx, r))
  71019. ret = graphql.Null
  71020. }
  71021. }()
  71022. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  71023. ctx = rctx // use context from middleware stack in children
  71024. return obj.LocationsForMove, nil
  71025. })
  71026. if err != nil {
  71027. ec.Error(ctx, err)
  71028. return graphql.Null
  71029. }
  71030. if resTmp == nil {
  71031. if !graphql.HasFieldError(ctx, fc) {
  71032. ec.Errorf(ctx, "must not be null")
  71033. }
  71034. return graphql.Null
  71035. }
  71036. res := resTmp.(*FulfillmentOrderLocationForMoveConnection)
  71037. fc.Result = res
  71038. return ec.marshalNFulfillmentOrderLocationForMoveConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderLocationForMoveConnection(ctx, field.Selections, res)
  71039. }
  71040. func (ec *executionContext) fieldContext_FulfillmentOrder_locationsForMove(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  71041. fc = &graphql.FieldContext{
  71042. Object: "FulfillmentOrder",
  71043. Field: field,
  71044. IsMethod: false,
  71045. IsResolver: false,
  71046. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  71047. switch field.Name {
  71048. case "edges":
  71049. return ec.fieldContext_FulfillmentOrderLocationForMoveConnection_edges(ctx, field)
  71050. case "nodes":
  71051. return ec.fieldContext_FulfillmentOrderLocationForMoveConnection_nodes(ctx, field)
  71052. case "pageInfo":
  71053. return ec.fieldContext_FulfillmentOrderLocationForMoveConnection_pageInfo(ctx, field)
  71054. }
  71055. return nil, fmt.Errorf("no field named %q was found under type FulfillmentOrderLocationForMoveConnection", field.Name)
  71056. },
  71057. }
  71058. defer func() {
  71059. if r := recover(); r != nil {
  71060. err = ec.Recover(ctx, r)
  71061. ec.Error(ctx, err)
  71062. }
  71063. }()
  71064. ctx = graphql.WithFieldContext(ctx, fc)
  71065. if fc.Args, err = ec.field_FulfillmentOrder_locationsForMove_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  71066. ec.Error(ctx, err)
  71067. return
  71068. }
  71069. return fc, nil
  71070. }
  71071. func (ec *executionContext) _FulfillmentOrder_merchantRequests(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrder) (ret graphql.Marshaler) {
  71072. fc, err := ec.fieldContext_FulfillmentOrder_merchantRequests(ctx, field)
  71073. if err != nil {
  71074. return graphql.Null
  71075. }
  71076. ctx = graphql.WithFieldContext(ctx, fc)
  71077. defer func() {
  71078. if r := recover(); r != nil {
  71079. ec.Error(ctx, ec.Recover(ctx, r))
  71080. ret = graphql.Null
  71081. }
  71082. }()
  71083. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  71084. ctx = rctx // use context from middleware stack in children
  71085. return obj.MerchantRequests, nil
  71086. })
  71087. if err != nil {
  71088. ec.Error(ctx, err)
  71089. return graphql.Null
  71090. }
  71091. if resTmp == nil {
  71092. if !graphql.HasFieldError(ctx, fc) {
  71093. ec.Errorf(ctx, "must not be null")
  71094. }
  71095. return graphql.Null
  71096. }
  71097. res := resTmp.(*FulfillmentOrderMerchantRequestConnection)
  71098. fc.Result = res
  71099. return ec.marshalNFulfillmentOrderMerchantRequestConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderMerchantRequestConnection(ctx, field.Selections, res)
  71100. }
  71101. func (ec *executionContext) fieldContext_FulfillmentOrder_merchantRequests(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  71102. fc = &graphql.FieldContext{
  71103. Object: "FulfillmentOrder",
  71104. Field: field,
  71105. IsMethod: false,
  71106. IsResolver: false,
  71107. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  71108. switch field.Name {
  71109. case "edges":
  71110. return ec.fieldContext_FulfillmentOrderMerchantRequestConnection_edges(ctx, field)
  71111. case "nodes":
  71112. return ec.fieldContext_FulfillmentOrderMerchantRequestConnection_nodes(ctx, field)
  71113. case "pageInfo":
  71114. return ec.fieldContext_FulfillmentOrderMerchantRequestConnection_pageInfo(ctx, field)
  71115. }
  71116. return nil, fmt.Errorf("no field named %q was found under type FulfillmentOrderMerchantRequestConnection", field.Name)
  71117. },
  71118. }
  71119. defer func() {
  71120. if r := recover(); r != nil {
  71121. err = ec.Recover(ctx, r)
  71122. ec.Error(ctx, err)
  71123. }
  71124. }()
  71125. ctx = graphql.WithFieldContext(ctx, fc)
  71126. if fc.Args, err = ec.field_FulfillmentOrder_merchantRequests_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  71127. ec.Error(ctx, err)
  71128. return
  71129. }
  71130. return fc, nil
  71131. }
  71132. func (ec *executionContext) _FulfillmentOrder_order(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrder) (ret graphql.Marshaler) {
  71133. fc, err := ec.fieldContext_FulfillmentOrder_order(ctx, field)
  71134. if err != nil {
  71135. return graphql.Null
  71136. }
  71137. ctx = graphql.WithFieldContext(ctx, fc)
  71138. defer func() {
  71139. if r := recover(); r != nil {
  71140. ec.Error(ctx, ec.Recover(ctx, r))
  71141. ret = graphql.Null
  71142. }
  71143. }()
  71144. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  71145. ctx = rctx // use context from middleware stack in children
  71146. return obj.Order, nil
  71147. })
  71148. if err != nil {
  71149. ec.Error(ctx, err)
  71150. return graphql.Null
  71151. }
  71152. if resTmp == nil {
  71153. if !graphql.HasFieldError(ctx, fc) {
  71154. ec.Errorf(ctx, "must not be null")
  71155. }
  71156. return graphql.Null
  71157. }
  71158. res := resTmp.(*Order)
  71159. fc.Result = res
  71160. return ec.marshalNOrder2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrder(ctx, field.Selections, res)
  71161. }
  71162. func (ec *executionContext) fieldContext_FulfillmentOrder_order(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  71163. fc = &graphql.FieldContext{
  71164. Object: "FulfillmentOrder",
  71165. Field: field,
  71166. IsMethod: false,
  71167. IsResolver: false,
  71168. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  71169. switch field.Name {
  71170. case "agreements":
  71171. return ec.fieldContext_Order_agreements(ctx, field)
  71172. case "alerts":
  71173. return ec.fieldContext_Order_alerts(ctx, field)
  71174. case "app":
  71175. return ec.fieldContext_Order_app(ctx, field)
  71176. case "billingAddress":
  71177. return ec.fieldContext_Order_billingAddress(ctx, field)
  71178. case "billingAddressMatchesShippingAddress":
  71179. return ec.fieldContext_Order_billingAddressMatchesShippingAddress(ctx, field)
  71180. case "canMarkAsPaid":
  71181. return ec.fieldContext_Order_canMarkAsPaid(ctx, field)
  71182. case "canNotifyCustomer":
  71183. return ec.fieldContext_Order_canNotifyCustomer(ctx, field)
  71184. case "cancelReason":
  71185. return ec.fieldContext_Order_cancelReason(ctx, field)
  71186. case "cancelledAt":
  71187. return ec.fieldContext_Order_cancelledAt(ctx, field)
  71188. case "capturable":
  71189. return ec.fieldContext_Order_capturable(ctx, field)
  71190. case "cartDiscountAmountSet":
  71191. return ec.fieldContext_Order_cartDiscountAmountSet(ctx, field)
  71192. case "channelInformation":
  71193. return ec.fieldContext_Order_channelInformation(ctx, field)
  71194. case "clientIp":
  71195. return ec.fieldContext_Order_clientIp(ctx, field)
  71196. case "closed":
  71197. return ec.fieldContext_Order_closed(ctx, field)
  71198. case "closedAt":
  71199. return ec.fieldContext_Order_closedAt(ctx, field)
  71200. case "confirmed":
  71201. return ec.fieldContext_Order_confirmed(ctx, field)
  71202. case "createdAt":
  71203. return ec.fieldContext_Order_createdAt(ctx, field)
  71204. case "currencyCode":
  71205. return ec.fieldContext_Order_currencyCode(ctx, field)
  71206. case "currentCartDiscountAmountSet":
  71207. return ec.fieldContext_Order_currentCartDiscountAmountSet(ctx, field)
  71208. case "currentSubtotalLineItemsQuantity":
  71209. return ec.fieldContext_Order_currentSubtotalLineItemsQuantity(ctx, field)
  71210. case "currentSubtotalPriceSet":
  71211. return ec.fieldContext_Order_currentSubtotalPriceSet(ctx, field)
  71212. case "currentTaxLines":
  71213. return ec.fieldContext_Order_currentTaxLines(ctx, field)
  71214. case "currentTotalDiscountsSet":
  71215. return ec.fieldContext_Order_currentTotalDiscountsSet(ctx, field)
  71216. case "currentTotalDutiesSet":
  71217. return ec.fieldContext_Order_currentTotalDutiesSet(ctx, field)
  71218. case "currentTotalPriceSet":
  71219. return ec.fieldContext_Order_currentTotalPriceSet(ctx, field)
  71220. case "currentTotalTaxSet":
  71221. return ec.fieldContext_Order_currentTotalTaxSet(ctx, field)
  71222. case "currentTotalWeight":
  71223. return ec.fieldContext_Order_currentTotalWeight(ctx, field)
  71224. case "customAttributes":
  71225. return ec.fieldContext_Order_customAttributes(ctx, field)
  71226. case "customer":
  71227. return ec.fieldContext_Order_customer(ctx, field)
  71228. case "customerAcceptsMarketing":
  71229. return ec.fieldContext_Order_customerAcceptsMarketing(ctx, field)
  71230. case "customerJourneySummary":
  71231. return ec.fieldContext_Order_customerJourneySummary(ctx, field)
  71232. case "customerLocale":
  71233. return ec.fieldContext_Order_customerLocale(ctx, field)
  71234. case "discountApplications":
  71235. return ec.fieldContext_Order_discountApplications(ctx, field)
  71236. case "discountCode":
  71237. return ec.fieldContext_Order_discountCode(ctx, field)
  71238. case "discountCodes":
  71239. return ec.fieldContext_Order_discountCodes(ctx, field)
  71240. case "displayAddress":
  71241. return ec.fieldContext_Order_displayAddress(ctx, field)
  71242. case "displayFinancialStatus":
  71243. return ec.fieldContext_Order_displayFinancialStatus(ctx, field)
  71244. case "displayFulfillmentStatus":
  71245. return ec.fieldContext_Order_displayFulfillmentStatus(ctx, field)
  71246. case "disputes":
  71247. return ec.fieldContext_Order_disputes(ctx, field)
  71248. case "edited":
  71249. return ec.fieldContext_Order_edited(ctx, field)
  71250. case "email":
  71251. return ec.fieldContext_Order_email(ctx, field)
  71252. case "estimatedTaxes":
  71253. return ec.fieldContext_Order_estimatedTaxes(ctx, field)
  71254. case "events":
  71255. return ec.fieldContext_Order_events(ctx, field)
  71256. case "fulfillable":
  71257. return ec.fieldContext_Order_fulfillable(ctx, field)
  71258. case "fulfillmentOrders":
  71259. return ec.fieldContext_Order_fulfillmentOrders(ctx, field)
  71260. case "fulfillments":
  71261. return ec.fieldContext_Order_fulfillments(ctx, field)
  71262. case "fullyPaid":
  71263. return ec.fieldContext_Order_fullyPaid(ctx, field)
  71264. case "hasTimelineComment":
  71265. return ec.fieldContext_Order_hasTimelineComment(ctx, field)
  71266. case "id":
  71267. return ec.fieldContext_Order_id(ctx, field)
  71268. case "legacyResourceId":
  71269. return ec.fieldContext_Order_legacyResourceId(ctx, field)
  71270. case "lineItems":
  71271. return ec.fieldContext_Order_lineItems(ctx, field)
  71272. case "localizationExtensions":
  71273. return ec.fieldContext_Order_localizationExtensions(ctx, field)
  71274. case "merchantEditable":
  71275. return ec.fieldContext_Order_merchantEditable(ctx, field)
  71276. case "merchantEditableErrors":
  71277. return ec.fieldContext_Order_merchantEditableErrors(ctx, field)
  71278. case "merchantOfRecordApp":
  71279. return ec.fieldContext_Order_merchantOfRecordApp(ctx, field)
  71280. case "metafield":
  71281. return ec.fieldContext_Order_metafield(ctx, field)
  71282. case "metafieldDefinitions":
  71283. return ec.fieldContext_Order_metafieldDefinitions(ctx, field)
  71284. case "metafields":
  71285. return ec.fieldContext_Order_metafields(ctx, field)
  71286. case "name":
  71287. return ec.fieldContext_Order_name(ctx, field)
  71288. case "netPaymentSet":
  71289. return ec.fieldContext_Order_netPaymentSet(ctx, field)
  71290. case "nonFulfillableLineItems":
  71291. return ec.fieldContext_Order_nonFulfillableLineItems(ctx, field)
  71292. case "note":
  71293. return ec.fieldContext_Order_note(ctx, field)
  71294. case "originalTotalDutiesSet":
  71295. return ec.fieldContext_Order_originalTotalDutiesSet(ctx, field)
  71296. case "originalTotalPriceSet":
  71297. return ec.fieldContext_Order_originalTotalPriceSet(ctx, field)
  71298. case "paymentCollectionDetails":
  71299. return ec.fieldContext_Order_paymentCollectionDetails(ctx, field)
  71300. case "paymentGatewayNames":
  71301. return ec.fieldContext_Order_paymentGatewayNames(ctx, field)
  71302. case "paymentTerms":
  71303. return ec.fieldContext_Order_paymentTerms(ctx, field)
  71304. case "phone":
  71305. return ec.fieldContext_Order_phone(ctx, field)
  71306. case "physicalLocation":
  71307. return ec.fieldContext_Order_physicalLocation(ctx, field)
  71308. case "presentmentCurrencyCode":
  71309. return ec.fieldContext_Order_presentmentCurrencyCode(ctx, field)
  71310. case "privateMetafield":
  71311. return ec.fieldContext_Order_privateMetafield(ctx, field)
  71312. case "privateMetafields":
  71313. return ec.fieldContext_Order_privateMetafields(ctx, field)
  71314. case "processedAt":
  71315. return ec.fieldContext_Order_processedAt(ctx, field)
  71316. case "publication":
  71317. return ec.fieldContext_Order_publication(ctx, field)
  71318. case "purchasingEntity":
  71319. return ec.fieldContext_Order_purchasingEntity(ctx, field)
  71320. case "refundDiscrepancySet":
  71321. return ec.fieldContext_Order_refundDiscrepancySet(ctx, field)
  71322. case "refundable":
  71323. return ec.fieldContext_Order_refundable(ctx, field)
  71324. case "refunds":
  71325. return ec.fieldContext_Order_refunds(ctx, field)
  71326. case "registeredSourceUrl":
  71327. return ec.fieldContext_Order_registeredSourceUrl(ctx, field)
  71328. case "requiresShipping":
  71329. return ec.fieldContext_Order_requiresShipping(ctx, field)
  71330. case "restockable":
  71331. return ec.fieldContext_Order_restockable(ctx, field)
  71332. case "riskLevel":
  71333. return ec.fieldContext_Order_riskLevel(ctx, field)
  71334. case "risks":
  71335. return ec.fieldContext_Order_risks(ctx, field)
  71336. case "shippingAddress":
  71337. return ec.fieldContext_Order_shippingAddress(ctx, field)
  71338. case "shippingLine":
  71339. return ec.fieldContext_Order_shippingLine(ctx, field)
  71340. case "shippingLines":
  71341. return ec.fieldContext_Order_shippingLines(ctx, field)
  71342. case "sourceIdentifier":
  71343. return ec.fieldContext_Order_sourceIdentifier(ctx, field)
  71344. case "subtotalLineItemsQuantity":
  71345. return ec.fieldContext_Order_subtotalLineItemsQuantity(ctx, field)
  71346. case "subtotalPriceSet":
  71347. return ec.fieldContext_Order_subtotalPriceSet(ctx, field)
  71348. case "suggestedRefund":
  71349. return ec.fieldContext_Order_suggestedRefund(ctx, field)
  71350. case "tags":
  71351. return ec.fieldContext_Order_tags(ctx, field)
  71352. case "taxLines":
  71353. return ec.fieldContext_Order_taxLines(ctx, field)
  71354. case "taxesIncluded":
  71355. return ec.fieldContext_Order_taxesIncluded(ctx, field)
  71356. case "test":
  71357. return ec.fieldContext_Order_test(ctx, field)
  71358. case "totalCapturableSet":
  71359. return ec.fieldContext_Order_totalCapturableSet(ctx, field)
  71360. case "totalDiscountsSet":
  71361. return ec.fieldContext_Order_totalDiscountsSet(ctx, field)
  71362. case "totalOutstandingSet":
  71363. return ec.fieldContext_Order_totalOutstandingSet(ctx, field)
  71364. case "totalPriceSet":
  71365. return ec.fieldContext_Order_totalPriceSet(ctx, field)
  71366. case "totalReceivedSet":
  71367. return ec.fieldContext_Order_totalReceivedSet(ctx, field)
  71368. case "totalRefundedSet":
  71369. return ec.fieldContext_Order_totalRefundedSet(ctx, field)
  71370. case "totalRefundedShippingSet":
  71371. return ec.fieldContext_Order_totalRefundedShippingSet(ctx, field)
  71372. case "totalShippingPriceSet":
  71373. return ec.fieldContext_Order_totalShippingPriceSet(ctx, field)
  71374. case "totalTaxSet":
  71375. return ec.fieldContext_Order_totalTaxSet(ctx, field)
  71376. case "totalTipReceivedSet":
  71377. return ec.fieldContext_Order_totalTipReceivedSet(ctx, field)
  71378. case "totalWeight":
  71379. return ec.fieldContext_Order_totalWeight(ctx, field)
  71380. case "transactions":
  71381. return ec.fieldContext_Order_transactions(ctx, field)
  71382. case "unpaid":
  71383. return ec.fieldContext_Order_unpaid(ctx, field)
  71384. case "updatedAt":
  71385. return ec.fieldContext_Order_updatedAt(ctx, field)
  71386. }
  71387. return nil, fmt.Errorf("no field named %q was found under type Order", field.Name)
  71388. },
  71389. }
  71390. return fc, nil
  71391. }
  71392. func (ec *executionContext) _FulfillmentOrder_requestStatus(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrder) (ret graphql.Marshaler) {
  71393. fc, err := ec.fieldContext_FulfillmentOrder_requestStatus(ctx, field)
  71394. if err != nil {
  71395. return graphql.Null
  71396. }
  71397. ctx = graphql.WithFieldContext(ctx, fc)
  71398. defer func() {
  71399. if r := recover(); r != nil {
  71400. ec.Error(ctx, ec.Recover(ctx, r))
  71401. ret = graphql.Null
  71402. }
  71403. }()
  71404. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  71405. ctx = rctx // use context from middleware stack in children
  71406. return obj.RequestStatus, nil
  71407. })
  71408. if err != nil {
  71409. ec.Error(ctx, err)
  71410. return graphql.Null
  71411. }
  71412. if resTmp == nil {
  71413. if !graphql.HasFieldError(ctx, fc) {
  71414. ec.Errorf(ctx, "must not be null")
  71415. }
  71416. return graphql.Null
  71417. }
  71418. res := resTmp.(FulfillmentOrderRequestStatus)
  71419. fc.Result = res
  71420. return ec.marshalNFulfillmentOrderRequestStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderRequestStatus(ctx, field.Selections, res)
  71421. }
  71422. func (ec *executionContext) fieldContext_FulfillmentOrder_requestStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  71423. fc = &graphql.FieldContext{
  71424. Object: "FulfillmentOrder",
  71425. Field: field,
  71426. IsMethod: false,
  71427. IsResolver: false,
  71428. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  71429. return nil, errors.New("field of type FulfillmentOrderRequestStatus does not have child fields")
  71430. },
  71431. }
  71432. return fc, nil
  71433. }
  71434. func (ec *executionContext) _FulfillmentOrder_status(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrder) (ret graphql.Marshaler) {
  71435. fc, err := ec.fieldContext_FulfillmentOrder_status(ctx, field)
  71436. if err != nil {
  71437. return graphql.Null
  71438. }
  71439. ctx = graphql.WithFieldContext(ctx, fc)
  71440. defer func() {
  71441. if r := recover(); r != nil {
  71442. ec.Error(ctx, ec.Recover(ctx, r))
  71443. ret = graphql.Null
  71444. }
  71445. }()
  71446. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  71447. ctx = rctx // use context from middleware stack in children
  71448. return obj.Status, nil
  71449. })
  71450. if err != nil {
  71451. ec.Error(ctx, err)
  71452. return graphql.Null
  71453. }
  71454. if resTmp == nil {
  71455. if !graphql.HasFieldError(ctx, fc) {
  71456. ec.Errorf(ctx, "must not be null")
  71457. }
  71458. return graphql.Null
  71459. }
  71460. res := resTmp.(FulfillmentOrderStatus)
  71461. fc.Result = res
  71462. return ec.marshalNFulfillmentOrderStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderStatus(ctx, field.Selections, res)
  71463. }
  71464. func (ec *executionContext) fieldContext_FulfillmentOrder_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  71465. fc = &graphql.FieldContext{
  71466. Object: "FulfillmentOrder",
  71467. Field: field,
  71468. IsMethod: false,
  71469. IsResolver: false,
  71470. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  71471. return nil, errors.New("field of type FulfillmentOrderStatus does not have child fields")
  71472. },
  71473. }
  71474. return fc, nil
  71475. }
  71476. func (ec *executionContext) _FulfillmentOrder_supportedActions(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrder) (ret graphql.Marshaler) {
  71477. fc, err := ec.fieldContext_FulfillmentOrder_supportedActions(ctx, field)
  71478. if err != nil {
  71479. return graphql.Null
  71480. }
  71481. ctx = graphql.WithFieldContext(ctx, fc)
  71482. defer func() {
  71483. if r := recover(); r != nil {
  71484. ec.Error(ctx, ec.Recover(ctx, r))
  71485. ret = graphql.Null
  71486. }
  71487. }()
  71488. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  71489. ctx = rctx // use context from middleware stack in children
  71490. return obj.SupportedActions, nil
  71491. })
  71492. if err != nil {
  71493. ec.Error(ctx, err)
  71494. return graphql.Null
  71495. }
  71496. if resTmp == nil {
  71497. if !graphql.HasFieldError(ctx, fc) {
  71498. ec.Errorf(ctx, "must not be null")
  71499. }
  71500. return graphql.Null
  71501. }
  71502. res := resTmp.([]*FulfillmentOrderSupportedAction)
  71503. fc.Result = res
  71504. return ec.marshalNFulfillmentOrderSupportedAction2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderSupportedActionᚄ(ctx, field.Selections, res)
  71505. }
  71506. func (ec *executionContext) fieldContext_FulfillmentOrder_supportedActions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  71507. fc = &graphql.FieldContext{
  71508. Object: "FulfillmentOrder",
  71509. Field: field,
  71510. IsMethod: false,
  71511. IsResolver: false,
  71512. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  71513. switch field.Name {
  71514. case "action":
  71515. return ec.fieldContext_FulfillmentOrderSupportedAction_action(ctx, field)
  71516. case "externalUrl":
  71517. return ec.fieldContext_FulfillmentOrderSupportedAction_externalUrl(ctx, field)
  71518. }
  71519. return nil, fmt.Errorf("no field named %q was found under type FulfillmentOrderSupportedAction", field.Name)
  71520. },
  71521. }
  71522. return fc, nil
  71523. }
  71524. func (ec *executionContext) _FulfillmentOrderAssignedLocation_address1(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderAssignedLocation) (ret graphql.Marshaler) {
  71525. fc, err := ec.fieldContext_FulfillmentOrderAssignedLocation_address1(ctx, field)
  71526. if err != nil {
  71527. return graphql.Null
  71528. }
  71529. ctx = graphql.WithFieldContext(ctx, fc)
  71530. defer func() {
  71531. if r := recover(); r != nil {
  71532. ec.Error(ctx, ec.Recover(ctx, r))
  71533. ret = graphql.Null
  71534. }
  71535. }()
  71536. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  71537. ctx = rctx // use context from middleware stack in children
  71538. return obj.Address1, nil
  71539. })
  71540. if err != nil {
  71541. ec.Error(ctx, err)
  71542. return graphql.Null
  71543. }
  71544. if resTmp == nil {
  71545. return graphql.Null
  71546. }
  71547. res := resTmp.(*string)
  71548. fc.Result = res
  71549. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  71550. }
  71551. func (ec *executionContext) fieldContext_FulfillmentOrderAssignedLocation_address1(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  71552. fc = &graphql.FieldContext{
  71553. Object: "FulfillmentOrderAssignedLocation",
  71554. Field: field,
  71555. IsMethod: false,
  71556. IsResolver: false,
  71557. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  71558. return nil, errors.New("field of type String does not have child fields")
  71559. },
  71560. }
  71561. return fc, nil
  71562. }
  71563. func (ec *executionContext) _FulfillmentOrderAssignedLocation_address2(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderAssignedLocation) (ret graphql.Marshaler) {
  71564. fc, err := ec.fieldContext_FulfillmentOrderAssignedLocation_address2(ctx, field)
  71565. if err != nil {
  71566. return graphql.Null
  71567. }
  71568. ctx = graphql.WithFieldContext(ctx, fc)
  71569. defer func() {
  71570. if r := recover(); r != nil {
  71571. ec.Error(ctx, ec.Recover(ctx, r))
  71572. ret = graphql.Null
  71573. }
  71574. }()
  71575. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  71576. ctx = rctx // use context from middleware stack in children
  71577. return obj.Address2, nil
  71578. })
  71579. if err != nil {
  71580. ec.Error(ctx, err)
  71581. return graphql.Null
  71582. }
  71583. if resTmp == nil {
  71584. return graphql.Null
  71585. }
  71586. res := resTmp.(*string)
  71587. fc.Result = res
  71588. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  71589. }
  71590. func (ec *executionContext) fieldContext_FulfillmentOrderAssignedLocation_address2(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  71591. fc = &graphql.FieldContext{
  71592. Object: "FulfillmentOrderAssignedLocation",
  71593. Field: field,
  71594. IsMethod: false,
  71595. IsResolver: false,
  71596. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  71597. return nil, errors.New("field of type String does not have child fields")
  71598. },
  71599. }
  71600. return fc, nil
  71601. }
  71602. func (ec *executionContext) _FulfillmentOrderAssignedLocation_city(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderAssignedLocation) (ret graphql.Marshaler) {
  71603. fc, err := ec.fieldContext_FulfillmentOrderAssignedLocation_city(ctx, field)
  71604. if err != nil {
  71605. return graphql.Null
  71606. }
  71607. ctx = graphql.WithFieldContext(ctx, fc)
  71608. defer func() {
  71609. if r := recover(); r != nil {
  71610. ec.Error(ctx, ec.Recover(ctx, r))
  71611. ret = graphql.Null
  71612. }
  71613. }()
  71614. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  71615. ctx = rctx // use context from middleware stack in children
  71616. return obj.City, nil
  71617. })
  71618. if err != nil {
  71619. ec.Error(ctx, err)
  71620. return graphql.Null
  71621. }
  71622. if resTmp == nil {
  71623. return graphql.Null
  71624. }
  71625. res := resTmp.(*string)
  71626. fc.Result = res
  71627. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  71628. }
  71629. func (ec *executionContext) fieldContext_FulfillmentOrderAssignedLocation_city(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  71630. fc = &graphql.FieldContext{
  71631. Object: "FulfillmentOrderAssignedLocation",
  71632. Field: field,
  71633. IsMethod: false,
  71634. IsResolver: false,
  71635. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  71636. return nil, errors.New("field of type String does not have child fields")
  71637. },
  71638. }
  71639. return fc, nil
  71640. }
  71641. func (ec *executionContext) _FulfillmentOrderAssignedLocation_countryCode(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderAssignedLocation) (ret graphql.Marshaler) {
  71642. fc, err := ec.fieldContext_FulfillmentOrderAssignedLocation_countryCode(ctx, field)
  71643. if err != nil {
  71644. return graphql.Null
  71645. }
  71646. ctx = graphql.WithFieldContext(ctx, fc)
  71647. defer func() {
  71648. if r := recover(); r != nil {
  71649. ec.Error(ctx, ec.Recover(ctx, r))
  71650. ret = graphql.Null
  71651. }
  71652. }()
  71653. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  71654. ctx = rctx // use context from middleware stack in children
  71655. return obj.CountryCode, nil
  71656. })
  71657. if err != nil {
  71658. ec.Error(ctx, err)
  71659. return graphql.Null
  71660. }
  71661. if resTmp == nil {
  71662. if !graphql.HasFieldError(ctx, fc) {
  71663. ec.Errorf(ctx, "must not be null")
  71664. }
  71665. return graphql.Null
  71666. }
  71667. res := resTmp.(CountryCode)
  71668. fc.Result = res
  71669. return ec.marshalNCountryCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCode(ctx, field.Selections, res)
  71670. }
  71671. func (ec *executionContext) fieldContext_FulfillmentOrderAssignedLocation_countryCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  71672. fc = &graphql.FieldContext{
  71673. Object: "FulfillmentOrderAssignedLocation",
  71674. Field: field,
  71675. IsMethod: false,
  71676. IsResolver: false,
  71677. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  71678. return nil, errors.New("field of type CountryCode does not have child fields")
  71679. },
  71680. }
  71681. return fc, nil
  71682. }
  71683. func (ec *executionContext) _FulfillmentOrderAssignedLocation_location(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderAssignedLocation) (ret graphql.Marshaler) {
  71684. fc, err := ec.fieldContext_FulfillmentOrderAssignedLocation_location(ctx, field)
  71685. if err != nil {
  71686. return graphql.Null
  71687. }
  71688. ctx = graphql.WithFieldContext(ctx, fc)
  71689. defer func() {
  71690. if r := recover(); r != nil {
  71691. ec.Error(ctx, ec.Recover(ctx, r))
  71692. ret = graphql.Null
  71693. }
  71694. }()
  71695. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  71696. ctx = rctx // use context from middleware stack in children
  71697. return obj.Location, nil
  71698. })
  71699. if err != nil {
  71700. ec.Error(ctx, err)
  71701. return graphql.Null
  71702. }
  71703. if resTmp == nil {
  71704. return graphql.Null
  71705. }
  71706. res := resTmp.(*Location)
  71707. fc.Result = res
  71708. return ec.marshalOLocation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocation(ctx, field.Selections, res)
  71709. }
  71710. func (ec *executionContext) fieldContext_FulfillmentOrderAssignedLocation_location(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  71711. fc = &graphql.FieldContext{
  71712. Object: "FulfillmentOrderAssignedLocation",
  71713. Field: field,
  71714. IsMethod: false,
  71715. IsResolver: false,
  71716. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  71717. switch field.Name {
  71718. case "activatable":
  71719. return ec.fieldContext_Location_activatable(ctx, field)
  71720. case "address":
  71721. return ec.fieldContext_Location_address(ctx, field)
  71722. case "addressVerified":
  71723. return ec.fieldContext_Location_addressVerified(ctx, field)
  71724. case "deactivatable":
  71725. return ec.fieldContext_Location_deactivatable(ctx, field)
  71726. case "deactivatedAt":
  71727. return ec.fieldContext_Location_deactivatedAt(ctx, field)
  71728. case "deletable":
  71729. return ec.fieldContext_Location_deletable(ctx, field)
  71730. case "fulfillmentService":
  71731. return ec.fieldContext_Location_fulfillmentService(ctx, field)
  71732. case "fulfillsOnlineOrders":
  71733. return ec.fieldContext_Location_fulfillsOnlineOrders(ctx, field)
  71734. case "hasActiveInventory":
  71735. return ec.fieldContext_Location_hasActiveInventory(ctx, field)
  71736. case "hasUnfulfilledOrders":
  71737. return ec.fieldContext_Location_hasUnfulfilledOrders(ctx, field)
  71738. case "id":
  71739. return ec.fieldContext_Location_id(ctx, field)
  71740. case "inventoryLevel":
  71741. return ec.fieldContext_Location_inventoryLevel(ctx, field)
  71742. case "inventoryLevels":
  71743. return ec.fieldContext_Location_inventoryLevels(ctx, field)
  71744. case "isActive":
  71745. return ec.fieldContext_Location_isActive(ctx, field)
  71746. case "legacyResourceId":
  71747. return ec.fieldContext_Location_legacyResourceId(ctx, field)
  71748. case "metafield":
  71749. return ec.fieldContext_Location_metafield(ctx, field)
  71750. case "metafieldDefinitions":
  71751. return ec.fieldContext_Location_metafieldDefinitions(ctx, field)
  71752. case "metafields":
  71753. return ec.fieldContext_Location_metafields(ctx, field)
  71754. case "name":
  71755. return ec.fieldContext_Location_name(ctx, field)
  71756. case "privateMetafield":
  71757. return ec.fieldContext_Location_privateMetafield(ctx, field)
  71758. case "privateMetafields":
  71759. return ec.fieldContext_Location_privateMetafields(ctx, field)
  71760. case "shipsInventory":
  71761. return ec.fieldContext_Location_shipsInventory(ctx, field)
  71762. case "suggestedAddresses":
  71763. return ec.fieldContext_Location_suggestedAddresses(ctx, field)
  71764. }
  71765. return nil, fmt.Errorf("no field named %q was found under type Location", field.Name)
  71766. },
  71767. }
  71768. return fc, nil
  71769. }
  71770. func (ec *executionContext) _FulfillmentOrderAssignedLocation_name(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderAssignedLocation) (ret graphql.Marshaler) {
  71771. fc, err := ec.fieldContext_FulfillmentOrderAssignedLocation_name(ctx, field)
  71772. if err != nil {
  71773. return graphql.Null
  71774. }
  71775. ctx = graphql.WithFieldContext(ctx, fc)
  71776. defer func() {
  71777. if r := recover(); r != nil {
  71778. ec.Error(ctx, ec.Recover(ctx, r))
  71779. ret = graphql.Null
  71780. }
  71781. }()
  71782. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  71783. ctx = rctx // use context from middleware stack in children
  71784. return obj.Name, nil
  71785. })
  71786. if err != nil {
  71787. ec.Error(ctx, err)
  71788. return graphql.Null
  71789. }
  71790. if resTmp == nil {
  71791. if !graphql.HasFieldError(ctx, fc) {
  71792. ec.Errorf(ctx, "must not be null")
  71793. }
  71794. return graphql.Null
  71795. }
  71796. res := resTmp.(string)
  71797. fc.Result = res
  71798. return ec.marshalNString2string(ctx, field.Selections, res)
  71799. }
  71800. func (ec *executionContext) fieldContext_FulfillmentOrderAssignedLocation_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  71801. fc = &graphql.FieldContext{
  71802. Object: "FulfillmentOrderAssignedLocation",
  71803. Field: field,
  71804. IsMethod: false,
  71805. IsResolver: false,
  71806. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  71807. return nil, errors.New("field of type String does not have child fields")
  71808. },
  71809. }
  71810. return fc, nil
  71811. }
  71812. func (ec *executionContext) _FulfillmentOrderAssignedLocation_phone(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderAssignedLocation) (ret graphql.Marshaler) {
  71813. fc, err := ec.fieldContext_FulfillmentOrderAssignedLocation_phone(ctx, field)
  71814. if err != nil {
  71815. return graphql.Null
  71816. }
  71817. ctx = graphql.WithFieldContext(ctx, fc)
  71818. defer func() {
  71819. if r := recover(); r != nil {
  71820. ec.Error(ctx, ec.Recover(ctx, r))
  71821. ret = graphql.Null
  71822. }
  71823. }()
  71824. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  71825. ctx = rctx // use context from middleware stack in children
  71826. return obj.Phone, nil
  71827. })
  71828. if err != nil {
  71829. ec.Error(ctx, err)
  71830. return graphql.Null
  71831. }
  71832. if resTmp == nil {
  71833. return graphql.Null
  71834. }
  71835. res := resTmp.(*string)
  71836. fc.Result = res
  71837. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  71838. }
  71839. func (ec *executionContext) fieldContext_FulfillmentOrderAssignedLocation_phone(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  71840. fc = &graphql.FieldContext{
  71841. Object: "FulfillmentOrderAssignedLocation",
  71842. Field: field,
  71843. IsMethod: false,
  71844. IsResolver: false,
  71845. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  71846. return nil, errors.New("field of type String does not have child fields")
  71847. },
  71848. }
  71849. return fc, nil
  71850. }
  71851. func (ec *executionContext) _FulfillmentOrderAssignedLocation_province(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderAssignedLocation) (ret graphql.Marshaler) {
  71852. fc, err := ec.fieldContext_FulfillmentOrderAssignedLocation_province(ctx, field)
  71853. if err != nil {
  71854. return graphql.Null
  71855. }
  71856. ctx = graphql.WithFieldContext(ctx, fc)
  71857. defer func() {
  71858. if r := recover(); r != nil {
  71859. ec.Error(ctx, ec.Recover(ctx, r))
  71860. ret = graphql.Null
  71861. }
  71862. }()
  71863. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  71864. ctx = rctx // use context from middleware stack in children
  71865. return obj.Province, nil
  71866. })
  71867. if err != nil {
  71868. ec.Error(ctx, err)
  71869. return graphql.Null
  71870. }
  71871. if resTmp == nil {
  71872. return graphql.Null
  71873. }
  71874. res := resTmp.(*string)
  71875. fc.Result = res
  71876. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  71877. }
  71878. func (ec *executionContext) fieldContext_FulfillmentOrderAssignedLocation_province(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  71879. fc = &graphql.FieldContext{
  71880. Object: "FulfillmentOrderAssignedLocation",
  71881. Field: field,
  71882. IsMethod: false,
  71883. IsResolver: false,
  71884. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  71885. return nil, errors.New("field of type String does not have child fields")
  71886. },
  71887. }
  71888. return fc, nil
  71889. }
  71890. func (ec *executionContext) _FulfillmentOrderAssignedLocation_zip(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderAssignedLocation) (ret graphql.Marshaler) {
  71891. fc, err := ec.fieldContext_FulfillmentOrderAssignedLocation_zip(ctx, field)
  71892. if err != nil {
  71893. return graphql.Null
  71894. }
  71895. ctx = graphql.WithFieldContext(ctx, fc)
  71896. defer func() {
  71897. if r := recover(); r != nil {
  71898. ec.Error(ctx, ec.Recover(ctx, r))
  71899. ret = graphql.Null
  71900. }
  71901. }()
  71902. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  71903. ctx = rctx // use context from middleware stack in children
  71904. return obj.Zip, nil
  71905. })
  71906. if err != nil {
  71907. ec.Error(ctx, err)
  71908. return graphql.Null
  71909. }
  71910. if resTmp == nil {
  71911. return graphql.Null
  71912. }
  71913. res := resTmp.(*string)
  71914. fc.Result = res
  71915. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  71916. }
  71917. func (ec *executionContext) fieldContext_FulfillmentOrderAssignedLocation_zip(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  71918. fc = &graphql.FieldContext{
  71919. Object: "FulfillmentOrderAssignedLocation",
  71920. Field: field,
  71921. IsMethod: false,
  71922. IsResolver: false,
  71923. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  71924. return nil, errors.New("field of type String does not have child fields")
  71925. },
  71926. }
  71927. return fc, nil
  71928. }
  71929. func (ec *executionContext) _FulfillmentOrderConnection_edges(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderConnection) (ret graphql.Marshaler) {
  71930. fc, err := ec.fieldContext_FulfillmentOrderConnection_edges(ctx, field)
  71931. if err != nil {
  71932. return graphql.Null
  71933. }
  71934. ctx = graphql.WithFieldContext(ctx, fc)
  71935. defer func() {
  71936. if r := recover(); r != nil {
  71937. ec.Error(ctx, ec.Recover(ctx, r))
  71938. ret = graphql.Null
  71939. }
  71940. }()
  71941. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  71942. ctx = rctx // use context from middleware stack in children
  71943. return obj.Edges, nil
  71944. })
  71945. if err != nil {
  71946. ec.Error(ctx, err)
  71947. return graphql.Null
  71948. }
  71949. if resTmp == nil {
  71950. if !graphql.HasFieldError(ctx, fc) {
  71951. ec.Errorf(ctx, "must not be null")
  71952. }
  71953. return graphql.Null
  71954. }
  71955. res := resTmp.([]*FulfillmentOrderEdge)
  71956. fc.Result = res
  71957. return ec.marshalNFulfillmentOrderEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderEdgeᚄ(ctx, field.Selections, res)
  71958. }
  71959. func (ec *executionContext) fieldContext_FulfillmentOrderConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  71960. fc = &graphql.FieldContext{
  71961. Object: "FulfillmentOrderConnection",
  71962. Field: field,
  71963. IsMethod: false,
  71964. IsResolver: false,
  71965. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  71966. switch field.Name {
  71967. case "cursor":
  71968. return ec.fieldContext_FulfillmentOrderEdge_cursor(ctx, field)
  71969. case "node":
  71970. return ec.fieldContext_FulfillmentOrderEdge_node(ctx, field)
  71971. }
  71972. return nil, fmt.Errorf("no field named %q was found under type FulfillmentOrderEdge", field.Name)
  71973. },
  71974. }
  71975. return fc, nil
  71976. }
  71977. func (ec *executionContext) _FulfillmentOrderConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderConnection) (ret graphql.Marshaler) {
  71978. fc, err := ec.fieldContext_FulfillmentOrderConnection_nodes(ctx, field)
  71979. if err != nil {
  71980. return graphql.Null
  71981. }
  71982. ctx = graphql.WithFieldContext(ctx, fc)
  71983. defer func() {
  71984. if r := recover(); r != nil {
  71985. ec.Error(ctx, ec.Recover(ctx, r))
  71986. ret = graphql.Null
  71987. }
  71988. }()
  71989. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  71990. ctx = rctx // use context from middleware stack in children
  71991. return obj.Nodes, nil
  71992. })
  71993. if err != nil {
  71994. ec.Error(ctx, err)
  71995. return graphql.Null
  71996. }
  71997. if resTmp == nil {
  71998. if !graphql.HasFieldError(ctx, fc) {
  71999. ec.Errorf(ctx, "must not be null")
  72000. }
  72001. return graphql.Null
  72002. }
  72003. res := resTmp.([]*FulfillmentOrder)
  72004. fc.Result = res
  72005. return ec.marshalNFulfillmentOrder2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderᚄ(ctx, field.Selections, res)
  72006. }
  72007. func (ec *executionContext) fieldContext_FulfillmentOrderConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  72008. fc = &graphql.FieldContext{
  72009. Object: "FulfillmentOrderConnection",
  72010. Field: field,
  72011. IsMethod: false,
  72012. IsResolver: false,
  72013. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  72014. switch field.Name {
  72015. case "assignedLocation":
  72016. return ec.fieldContext_FulfillmentOrder_assignedLocation(ctx, field)
  72017. case "deliveryMethod":
  72018. return ec.fieldContext_FulfillmentOrder_deliveryMethod(ctx, field)
  72019. case "destination":
  72020. return ec.fieldContext_FulfillmentOrder_destination(ctx, field)
  72021. case "fulfillAt":
  72022. return ec.fieldContext_FulfillmentOrder_fulfillAt(ctx, field)
  72023. case "fulfillBy":
  72024. return ec.fieldContext_FulfillmentOrder_fulfillBy(ctx, field)
  72025. case "fulfillmentHolds":
  72026. return ec.fieldContext_FulfillmentOrder_fulfillmentHolds(ctx, field)
  72027. case "fulfillments":
  72028. return ec.fieldContext_FulfillmentOrder_fulfillments(ctx, field)
  72029. case "id":
  72030. return ec.fieldContext_FulfillmentOrder_id(ctx, field)
  72031. case "internationalDuties":
  72032. return ec.fieldContext_FulfillmentOrder_internationalDuties(ctx, field)
  72033. case "lineItems":
  72034. return ec.fieldContext_FulfillmentOrder_lineItems(ctx, field)
  72035. case "locationsForMove":
  72036. return ec.fieldContext_FulfillmentOrder_locationsForMove(ctx, field)
  72037. case "merchantRequests":
  72038. return ec.fieldContext_FulfillmentOrder_merchantRequests(ctx, field)
  72039. case "order":
  72040. return ec.fieldContext_FulfillmentOrder_order(ctx, field)
  72041. case "requestStatus":
  72042. return ec.fieldContext_FulfillmentOrder_requestStatus(ctx, field)
  72043. case "status":
  72044. return ec.fieldContext_FulfillmentOrder_status(ctx, field)
  72045. case "supportedActions":
  72046. return ec.fieldContext_FulfillmentOrder_supportedActions(ctx, field)
  72047. }
  72048. return nil, fmt.Errorf("no field named %q was found under type FulfillmentOrder", field.Name)
  72049. },
  72050. }
  72051. return fc, nil
  72052. }
  72053. func (ec *executionContext) _FulfillmentOrderConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderConnection) (ret graphql.Marshaler) {
  72054. fc, err := ec.fieldContext_FulfillmentOrderConnection_pageInfo(ctx, field)
  72055. if err != nil {
  72056. return graphql.Null
  72057. }
  72058. ctx = graphql.WithFieldContext(ctx, fc)
  72059. defer func() {
  72060. if r := recover(); r != nil {
  72061. ec.Error(ctx, ec.Recover(ctx, r))
  72062. ret = graphql.Null
  72063. }
  72064. }()
  72065. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  72066. ctx = rctx // use context from middleware stack in children
  72067. return obj.PageInfo, nil
  72068. })
  72069. if err != nil {
  72070. ec.Error(ctx, err)
  72071. return graphql.Null
  72072. }
  72073. if resTmp == nil {
  72074. if !graphql.HasFieldError(ctx, fc) {
  72075. ec.Errorf(ctx, "must not be null")
  72076. }
  72077. return graphql.Null
  72078. }
  72079. res := resTmp.(*PageInfo)
  72080. fc.Result = res
  72081. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  72082. }
  72083. func (ec *executionContext) fieldContext_FulfillmentOrderConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  72084. fc = &graphql.FieldContext{
  72085. Object: "FulfillmentOrderConnection",
  72086. Field: field,
  72087. IsMethod: false,
  72088. IsResolver: false,
  72089. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  72090. switch field.Name {
  72091. case "endCursor":
  72092. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  72093. case "hasNextPage":
  72094. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  72095. case "hasPreviousPage":
  72096. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  72097. case "startCursor":
  72098. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  72099. }
  72100. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  72101. },
  72102. }
  72103. return fc, nil
  72104. }
  72105. func (ec *executionContext) _FulfillmentOrderDestination_address1(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderDestination) (ret graphql.Marshaler) {
  72106. fc, err := ec.fieldContext_FulfillmentOrderDestination_address1(ctx, field)
  72107. if err != nil {
  72108. return graphql.Null
  72109. }
  72110. ctx = graphql.WithFieldContext(ctx, fc)
  72111. defer func() {
  72112. if r := recover(); r != nil {
  72113. ec.Error(ctx, ec.Recover(ctx, r))
  72114. ret = graphql.Null
  72115. }
  72116. }()
  72117. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  72118. ctx = rctx // use context from middleware stack in children
  72119. return obj.Address1, nil
  72120. })
  72121. if err != nil {
  72122. ec.Error(ctx, err)
  72123. return graphql.Null
  72124. }
  72125. if resTmp == nil {
  72126. return graphql.Null
  72127. }
  72128. res := resTmp.(*string)
  72129. fc.Result = res
  72130. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  72131. }
  72132. func (ec *executionContext) fieldContext_FulfillmentOrderDestination_address1(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  72133. fc = &graphql.FieldContext{
  72134. Object: "FulfillmentOrderDestination",
  72135. Field: field,
  72136. IsMethod: false,
  72137. IsResolver: false,
  72138. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  72139. return nil, errors.New("field of type String does not have child fields")
  72140. },
  72141. }
  72142. return fc, nil
  72143. }
  72144. func (ec *executionContext) _FulfillmentOrderDestination_address2(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderDestination) (ret graphql.Marshaler) {
  72145. fc, err := ec.fieldContext_FulfillmentOrderDestination_address2(ctx, field)
  72146. if err != nil {
  72147. return graphql.Null
  72148. }
  72149. ctx = graphql.WithFieldContext(ctx, fc)
  72150. defer func() {
  72151. if r := recover(); r != nil {
  72152. ec.Error(ctx, ec.Recover(ctx, r))
  72153. ret = graphql.Null
  72154. }
  72155. }()
  72156. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  72157. ctx = rctx // use context from middleware stack in children
  72158. return obj.Address2, nil
  72159. })
  72160. if err != nil {
  72161. ec.Error(ctx, err)
  72162. return graphql.Null
  72163. }
  72164. if resTmp == nil {
  72165. return graphql.Null
  72166. }
  72167. res := resTmp.(*string)
  72168. fc.Result = res
  72169. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  72170. }
  72171. func (ec *executionContext) fieldContext_FulfillmentOrderDestination_address2(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  72172. fc = &graphql.FieldContext{
  72173. Object: "FulfillmentOrderDestination",
  72174. Field: field,
  72175. IsMethod: false,
  72176. IsResolver: false,
  72177. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  72178. return nil, errors.New("field of type String does not have child fields")
  72179. },
  72180. }
  72181. return fc, nil
  72182. }
  72183. func (ec *executionContext) _FulfillmentOrderDestination_city(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderDestination) (ret graphql.Marshaler) {
  72184. fc, err := ec.fieldContext_FulfillmentOrderDestination_city(ctx, field)
  72185. if err != nil {
  72186. return graphql.Null
  72187. }
  72188. ctx = graphql.WithFieldContext(ctx, fc)
  72189. defer func() {
  72190. if r := recover(); r != nil {
  72191. ec.Error(ctx, ec.Recover(ctx, r))
  72192. ret = graphql.Null
  72193. }
  72194. }()
  72195. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  72196. ctx = rctx // use context from middleware stack in children
  72197. return obj.City, nil
  72198. })
  72199. if err != nil {
  72200. ec.Error(ctx, err)
  72201. return graphql.Null
  72202. }
  72203. if resTmp == nil {
  72204. return graphql.Null
  72205. }
  72206. res := resTmp.(*string)
  72207. fc.Result = res
  72208. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  72209. }
  72210. func (ec *executionContext) fieldContext_FulfillmentOrderDestination_city(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  72211. fc = &graphql.FieldContext{
  72212. Object: "FulfillmentOrderDestination",
  72213. Field: field,
  72214. IsMethod: false,
  72215. IsResolver: false,
  72216. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  72217. return nil, errors.New("field of type String does not have child fields")
  72218. },
  72219. }
  72220. return fc, nil
  72221. }
  72222. func (ec *executionContext) _FulfillmentOrderDestination_company(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderDestination) (ret graphql.Marshaler) {
  72223. fc, err := ec.fieldContext_FulfillmentOrderDestination_company(ctx, field)
  72224. if err != nil {
  72225. return graphql.Null
  72226. }
  72227. ctx = graphql.WithFieldContext(ctx, fc)
  72228. defer func() {
  72229. if r := recover(); r != nil {
  72230. ec.Error(ctx, ec.Recover(ctx, r))
  72231. ret = graphql.Null
  72232. }
  72233. }()
  72234. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  72235. ctx = rctx // use context from middleware stack in children
  72236. return obj.Company, nil
  72237. })
  72238. if err != nil {
  72239. ec.Error(ctx, err)
  72240. return graphql.Null
  72241. }
  72242. if resTmp == nil {
  72243. return graphql.Null
  72244. }
  72245. res := resTmp.(*string)
  72246. fc.Result = res
  72247. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  72248. }
  72249. func (ec *executionContext) fieldContext_FulfillmentOrderDestination_company(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  72250. fc = &graphql.FieldContext{
  72251. Object: "FulfillmentOrderDestination",
  72252. Field: field,
  72253. IsMethod: false,
  72254. IsResolver: false,
  72255. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  72256. return nil, errors.New("field of type String does not have child fields")
  72257. },
  72258. }
  72259. return fc, nil
  72260. }
  72261. func (ec *executionContext) _FulfillmentOrderDestination_countryCode(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderDestination) (ret graphql.Marshaler) {
  72262. fc, err := ec.fieldContext_FulfillmentOrderDestination_countryCode(ctx, field)
  72263. if err != nil {
  72264. return graphql.Null
  72265. }
  72266. ctx = graphql.WithFieldContext(ctx, fc)
  72267. defer func() {
  72268. if r := recover(); r != nil {
  72269. ec.Error(ctx, ec.Recover(ctx, r))
  72270. ret = graphql.Null
  72271. }
  72272. }()
  72273. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  72274. ctx = rctx // use context from middleware stack in children
  72275. return obj.CountryCode, nil
  72276. })
  72277. if err != nil {
  72278. ec.Error(ctx, err)
  72279. return graphql.Null
  72280. }
  72281. if resTmp == nil {
  72282. return graphql.Null
  72283. }
  72284. res := resTmp.(*CountryCode)
  72285. fc.Result = res
  72286. return ec.marshalOCountryCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCode(ctx, field.Selections, res)
  72287. }
  72288. func (ec *executionContext) fieldContext_FulfillmentOrderDestination_countryCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  72289. fc = &graphql.FieldContext{
  72290. Object: "FulfillmentOrderDestination",
  72291. Field: field,
  72292. IsMethod: false,
  72293. IsResolver: false,
  72294. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  72295. return nil, errors.New("field of type CountryCode does not have child fields")
  72296. },
  72297. }
  72298. return fc, nil
  72299. }
  72300. func (ec *executionContext) _FulfillmentOrderDestination_email(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderDestination) (ret graphql.Marshaler) {
  72301. fc, err := ec.fieldContext_FulfillmentOrderDestination_email(ctx, field)
  72302. if err != nil {
  72303. return graphql.Null
  72304. }
  72305. ctx = graphql.WithFieldContext(ctx, fc)
  72306. defer func() {
  72307. if r := recover(); r != nil {
  72308. ec.Error(ctx, ec.Recover(ctx, r))
  72309. ret = graphql.Null
  72310. }
  72311. }()
  72312. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  72313. ctx = rctx // use context from middleware stack in children
  72314. return obj.Email, nil
  72315. })
  72316. if err != nil {
  72317. ec.Error(ctx, err)
  72318. return graphql.Null
  72319. }
  72320. if resTmp == nil {
  72321. return graphql.Null
  72322. }
  72323. res := resTmp.(*string)
  72324. fc.Result = res
  72325. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  72326. }
  72327. func (ec *executionContext) fieldContext_FulfillmentOrderDestination_email(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  72328. fc = &graphql.FieldContext{
  72329. Object: "FulfillmentOrderDestination",
  72330. Field: field,
  72331. IsMethod: false,
  72332. IsResolver: false,
  72333. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  72334. return nil, errors.New("field of type String does not have child fields")
  72335. },
  72336. }
  72337. return fc, nil
  72338. }
  72339. func (ec *executionContext) _FulfillmentOrderDestination_firstName(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderDestination) (ret graphql.Marshaler) {
  72340. fc, err := ec.fieldContext_FulfillmentOrderDestination_firstName(ctx, field)
  72341. if err != nil {
  72342. return graphql.Null
  72343. }
  72344. ctx = graphql.WithFieldContext(ctx, fc)
  72345. defer func() {
  72346. if r := recover(); r != nil {
  72347. ec.Error(ctx, ec.Recover(ctx, r))
  72348. ret = graphql.Null
  72349. }
  72350. }()
  72351. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  72352. ctx = rctx // use context from middleware stack in children
  72353. return obj.FirstName, nil
  72354. })
  72355. if err != nil {
  72356. ec.Error(ctx, err)
  72357. return graphql.Null
  72358. }
  72359. if resTmp == nil {
  72360. return graphql.Null
  72361. }
  72362. res := resTmp.(*string)
  72363. fc.Result = res
  72364. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  72365. }
  72366. func (ec *executionContext) fieldContext_FulfillmentOrderDestination_firstName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  72367. fc = &graphql.FieldContext{
  72368. Object: "FulfillmentOrderDestination",
  72369. Field: field,
  72370. IsMethod: false,
  72371. IsResolver: false,
  72372. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  72373. return nil, errors.New("field of type String does not have child fields")
  72374. },
  72375. }
  72376. return fc, nil
  72377. }
  72378. func (ec *executionContext) _FulfillmentOrderDestination_id(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderDestination) (ret graphql.Marshaler) {
  72379. fc, err := ec.fieldContext_FulfillmentOrderDestination_id(ctx, field)
  72380. if err != nil {
  72381. return graphql.Null
  72382. }
  72383. ctx = graphql.WithFieldContext(ctx, fc)
  72384. defer func() {
  72385. if r := recover(); r != nil {
  72386. ec.Error(ctx, ec.Recover(ctx, r))
  72387. ret = graphql.Null
  72388. }
  72389. }()
  72390. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  72391. ctx = rctx // use context from middleware stack in children
  72392. return obj.ID, nil
  72393. })
  72394. if err != nil {
  72395. ec.Error(ctx, err)
  72396. return graphql.Null
  72397. }
  72398. if resTmp == nil {
  72399. if !graphql.HasFieldError(ctx, fc) {
  72400. ec.Errorf(ctx, "must not be null")
  72401. }
  72402. return graphql.Null
  72403. }
  72404. res := resTmp.(string)
  72405. fc.Result = res
  72406. return ec.marshalNID2string(ctx, field.Selections, res)
  72407. }
  72408. func (ec *executionContext) fieldContext_FulfillmentOrderDestination_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  72409. fc = &graphql.FieldContext{
  72410. Object: "FulfillmentOrderDestination",
  72411. Field: field,
  72412. IsMethod: false,
  72413. IsResolver: false,
  72414. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  72415. return nil, errors.New("field of type ID does not have child fields")
  72416. },
  72417. }
  72418. return fc, nil
  72419. }
  72420. func (ec *executionContext) _FulfillmentOrderDestination_lastName(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderDestination) (ret graphql.Marshaler) {
  72421. fc, err := ec.fieldContext_FulfillmentOrderDestination_lastName(ctx, field)
  72422. if err != nil {
  72423. return graphql.Null
  72424. }
  72425. ctx = graphql.WithFieldContext(ctx, fc)
  72426. defer func() {
  72427. if r := recover(); r != nil {
  72428. ec.Error(ctx, ec.Recover(ctx, r))
  72429. ret = graphql.Null
  72430. }
  72431. }()
  72432. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  72433. ctx = rctx // use context from middleware stack in children
  72434. return obj.LastName, nil
  72435. })
  72436. if err != nil {
  72437. ec.Error(ctx, err)
  72438. return graphql.Null
  72439. }
  72440. if resTmp == nil {
  72441. return graphql.Null
  72442. }
  72443. res := resTmp.(*string)
  72444. fc.Result = res
  72445. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  72446. }
  72447. func (ec *executionContext) fieldContext_FulfillmentOrderDestination_lastName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  72448. fc = &graphql.FieldContext{
  72449. Object: "FulfillmentOrderDestination",
  72450. Field: field,
  72451. IsMethod: false,
  72452. IsResolver: false,
  72453. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  72454. return nil, errors.New("field of type String does not have child fields")
  72455. },
  72456. }
  72457. return fc, nil
  72458. }
  72459. func (ec *executionContext) _FulfillmentOrderDestination_phone(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderDestination) (ret graphql.Marshaler) {
  72460. fc, err := ec.fieldContext_FulfillmentOrderDestination_phone(ctx, field)
  72461. if err != nil {
  72462. return graphql.Null
  72463. }
  72464. ctx = graphql.WithFieldContext(ctx, fc)
  72465. defer func() {
  72466. if r := recover(); r != nil {
  72467. ec.Error(ctx, ec.Recover(ctx, r))
  72468. ret = graphql.Null
  72469. }
  72470. }()
  72471. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  72472. ctx = rctx // use context from middleware stack in children
  72473. return obj.Phone, nil
  72474. })
  72475. if err != nil {
  72476. ec.Error(ctx, err)
  72477. return graphql.Null
  72478. }
  72479. if resTmp == nil {
  72480. return graphql.Null
  72481. }
  72482. res := resTmp.(*string)
  72483. fc.Result = res
  72484. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  72485. }
  72486. func (ec *executionContext) fieldContext_FulfillmentOrderDestination_phone(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  72487. fc = &graphql.FieldContext{
  72488. Object: "FulfillmentOrderDestination",
  72489. Field: field,
  72490. IsMethod: false,
  72491. IsResolver: false,
  72492. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  72493. return nil, errors.New("field of type String does not have child fields")
  72494. },
  72495. }
  72496. return fc, nil
  72497. }
  72498. func (ec *executionContext) _FulfillmentOrderDestination_province(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderDestination) (ret graphql.Marshaler) {
  72499. fc, err := ec.fieldContext_FulfillmentOrderDestination_province(ctx, field)
  72500. if err != nil {
  72501. return graphql.Null
  72502. }
  72503. ctx = graphql.WithFieldContext(ctx, fc)
  72504. defer func() {
  72505. if r := recover(); r != nil {
  72506. ec.Error(ctx, ec.Recover(ctx, r))
  72507. ret = graphql.Null
  72508. }
  72509. }()
  72510. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  72511. ctx = rctx // use context from middleware stack in children
  72512. return obj.Province, nil
  72513. })
  72514. if err != nil {
  72515. ec.Error(ctx, err)
  72516. return graphql.Null
  72517. }
  72518. if resTmp == nil {
  72519. return graphql.Null
  72520. }
  72521. res := resTmp.(*string)
  72522. fc.Result = res
  72523. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  72524. }
  72525. func (ec *executionContext) fieldContext_FulfillmentOrderDestination_province(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  72526. fc = &graphql.FieldContext{
  72527. Object: "FulfillmentOrderDestination",
  72528. Field: field,
  72529. IsMethod: false,
  72530. IsResolver: false,
  72531. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  72532. return nil, errors.New("field of type String does not have child fields")
  72533. },
  72534. }
  72535. return fc, nil
  72536. }
  72537. func (ec *executionContext) _FulfillmentOrderDestination_zip(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderDestination) (ret graphql.Marshaler) {
  72538. fc, err := ec.fieldContext_FulfillmentOrderDestination_zip(ctx, field)
  72539. if err != nil {
  72540. return graphql.Null
  72541. }
  72542. ctx = graphql.WithFieldContext(ctx, fc)
  72543. defer func() {
  72544. if r := recover(); r != nil {
  72545. ec.Error(ctx, ec.Recover(ctx, r))
  72546. ret = graphql.Null
  72547. }
  72548. }()
  72549. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  72550. ctx = rctx // use context from middleware stack in children
  72551. return obj.Zip, nil
  72552. })
  72553. if err != nil {
  72554. ec.Error(ctx, err)
  72555. return graphql.Null
  72556. }
  72557. if resTmp == nil {
  72558. return graphql.Null
  72559. }
  72560. res := resTmp.(*string)
  72561. fc.Result = res
  72562. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  72563. }
  72564. func (ec *executionContext) fieldContext_FulfillmentOrderDestination_zip(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  72565. fc = &graphql.FieldContext{
  72566. Object: "FulfillmentOrderDestination",
  72567. Field: field,
  72568. IsMethod: false,
  72569. IsResolver: false,
  72570. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  72571. return nil, errors.New("field of type String does not have child fields")
  72572. },
  72573. }
  72574. return fc, nil
  72575. }
  72576. func (ec *executionContext) _FulfillmentOrderEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderEdge) (ret graphql.Marshaler) {
  72577. fc, err := ec.fieldContext_FulfillmentOrderEdge_cursor(ctx, field)
  72578. if err != nil {
  72579. return graphql.Null
  72580. }
  72581. ctx = graphql.WithFieldContext(ctx, fc)
  72582. defer func() {
  72583. if r := recover(); r != nil {
  72584. ec.Error(ctx, ec.Recover(ctx, r))
  72585. ret = graphql.Null
  72586. }
  72587. }()
  72588. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  72589. ctx = rctx // use context from middleware stack in children
  72590. return obj.Cursor, nil
  72591. })
  72592. if err != nil {
  72593. ec.Error(ctx, err)
  72594. return graphql.Null
  72595. }
  72596. if resTmp == nil {
  72597. if !graphql.HasFieldError(ctx, fc) {
  72598. ec.Errorf(ctx, "must not be null")
  72599. }
  72600. return graphql.Null
  72601. }
  72602. res := resTmp.(string)
  72603. fc.Result = res
  72604. return ec.marshalNString2string(ctx, field.Selections, res)
  72605. }
  72606. func (ec *executionContext) fieldContext_FulfillmentOrderEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  72607. fc = &graphql.FieldContext{
  72608. Object: "FulfillmentOrderEdge",
  72609. Field: field,
  72610. IsMethod: false,
  72611. IsResolver: false,
  72612. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  72613. return nil, errors.New("field of type String does not have child fields")
  72614. },
  72615. }
  72616. return fc, nil
  72617. }
  72618. func (ec *executionContext) _FulfillmentOrderEdge_node(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderEdge) (ret graphql.Marshaler) {
  72619. fc, err := ec.fieldContext_FulfillmentOrderEdge_node(ctx, field)
  72620. if err != nil {
  72621. return graphql.Null
  72622. }
  72623. ctx = graphql.WithFieldContext(ctx, fc)
  72624. defer func() {
  72625. if r := recover(); r != nil {
  72626. ec.Error(ctx, ec.Recover(ctx, r))
  72627. ret = graphql.Null
  72628. }
  72629. }()
  72630. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  72631. ctx = rctx // use context from middleware stack in children
  72632. return obj.Node, nil
  72633. })
  72634. if err != nil {
  72635. ec.Error(ctx, err)
  72636. return graphql.Null
  72637. }
  72638. if resTmp == nil {
  72639. if !graphql.HasFieldError(ctx, fc) {
  72640. ec.Errorf(ctx, "must not be null")
  72641. }
  72642. return graphql.Null
  72643. }
  72644. res := resTmp.(*FulfillmentOrder)
  72645. fc.Result = res
  72646. return ec.marshalNFulfillmentOrder2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrder(ctx, field.Selections, res)
  72647. }
  72648. func (ec *executionContext) fieldContext_FulfillmentOrderEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  72649. fc = &graphql.FieldContext{
  72650. Object: "FulfillmentOrderEdge",
  72651. Field: field,
  72652. IsMethod: false,
  72653. IsResolver: false,
  72654. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  72655. switch field.Name {
  72656. case "assignedLocation":
  72657. return ec.fieldContext_FulfillmentOrder_assignedLocation(ctx, field)
  72658. case "deliveryMethod":
  72659. return ec.fieldContext_FulfillmentOrder_deliveryMethod(ctx, field)
  72660. case "destination":
  72661. return ec.fieldContext_FulfillmentOrder_destination(ctx, field)
  72662. case "fulfillAt":
  72663. return ec.fieldContext_FulfillmentOrder_fulfillAt(ctx, field)
  72664. case "fulfillBy":
  72665. return ec.fieldContext_FulfillmentOrder_fulfillBy(ctx, field)
  72666. case "fulfillmentHolds":
  72667. return ec.fieldContext_FulfillmentOrder_fulfillmentHolds(ctx, field)
  72668. case "fulfillments":
  72669. return ec.fieldContext_FulfillmentOrder_fulfillments(ctx, field)
  72670. case "id":
  72671. return ec.fieldContext_FulfillmentOrder_id(ctx, field)
  72672. case "internationalDuties":
  72673. return ec.fieldContext_FulfillmentOrder_internationalDuties(ctx, field)
  72674. case "lineItems":
  72675. return ec.fieldContext_FulfillmentOrder_lineItems(ctx, field)
  72676. case "locationsForMove":
  72677. return ec.fieldContext_FulfillmentOrder_locationsForMove(ctx, field)
  72678. case "merchantRequests":
  72679. return ec.fieldContext_FulfillmentOrder_merchantRequests(ctx, field)
  72680. case "order":
  72681. return ec.fieldContext_FulfillmentOrder_order(ctx, field)
  72682. case "requestStatus":
  72683. return ec.fieldContext_FulfillmentOrder_requestStatus(ctx, field)
  72684. case "status":
  72685. return ec.fieldContext_FulfillmentOrder_status(ctx, field)
  72686. case "supportedActions":
  72687. return ec.fieldContext_FulfillmentOrder_supportedActions(ctx, field)
  72688. }
  72689. return nil, fmt.Errorf("no field named %q was found under type FulfillmentOrder", field.Name)
  72690. },
  72691. }
  72692. return fc, nil
  72693. }
  72694. func (ec *executionContext) _FulfillmentOrderInternationalDuties_incoterm(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderInternationalDuties) (ret graphql.Marshaler) {
  72695. fc, err := ec.fieldContext_FulfillmentOrderInternationalDuties_incoterm(ctx, field)
  72696. if err != nil {
  72697. return graphql.Null
  72698. }
  72699. ctx = graphql.WithFieldContext(ctx, fc)
  72700. defer func() {
  72701. if r := recover(); r != nil {
  72702. ec.Error(ctx, ec.Recover(ctx, r))
  72703. ret = graphql.Null
  72704. }
  72705. }()
  72706. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  72707. ctx = rctx // use context from middleware stack in children
  72708. return obj.Incoterm, nil
  72709. })
  72710. if err != nil {
  72711. ec.Error(ctx, err)
  72712. return graphql.Null
  72713. }
  72714. if resTmp == nil {
  72715. if !graphql.HasFieldError(ctx, fc) {
  72716. ec.Errorf(ctx, "must not be null")
  72717. }
  72718. return graphql.Null
  72719. }
  72720. res := resTmp.(string)
  72721. fc.Result = res
  72722. return ec.marshalNString2string(ctx, field.Selections, res)
  72723. }
  72724. func (ec *executionContext) fieldContext_FulfillmentOrderInternationalDuties_incoterm(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  72725. fc = &graphql.FieldContext{
  72726. Object: "FulfillmentOrderInternationalDuties",
  72727. Field: field,
  72728. IsMethod: false,
  72729. IsResolver: false,
  72730. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  72731. return nil, errors.New("field of type String does not have child fields")
  72732. },
  72733. }
  72734. return fc, nil
  72735. }
  72736. func (ec *executionContext) _FulfillmentOrderLineItem_id(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderLineItem) (ret graphql.Marshaler) {
  72737. fc, err := ec.fieldContext_FulfillmentOrderLineItem_id(ctx, field)
  72738. if err != nil {
  72739. return graphql.Null
  72740. }
  72741. ctx = graphql.WithFieldContext(ctx, fc)
  72742. defer func() {
  72743. if r := recover(); r != nil {
  72744. ec.Error(ctx, ec.Recover(ctx, r))
  72745. ret = graphql.Null
  72746. }
  72747. }()
  72748. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  72749. ctx = rctx // use context from middleware stack in children
  72750. return obj.ID, nil
  72751. })
  72752. if err != nil {
  72753. ec.Error(ctx, err)
  72754. return graphql.Null
  72755. }
  72756. if resTmp == nil {
  72757. if !graphql.HasFieldError(ctx, fc) {
  72758. ec.Errorf(ctx, "must not be null")
  72759. }
  72760. return graphql.Null
  72761. }
  72762. res := resTmp.(string)
  72763. fc.Result = res
  72764. return ec.marshalNID2string(ctx, field.Selections, res)
  72765. }
  72766. func (ec *executionContext) fieldContext_FulfillmentOrderLineItem_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  72767. fc = &graphql.FieldContext{
  72768. Object: "FulfillmentOrderLineItem",
  72769. Field: field,
  72770. IsMethod: false,
  72771. IsResolver: false,
  72772. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  72773. return nil, errors.New("field of type ID does not have child fields")
  72774. },
  72775. }
  72776. return fc, nil
  72777. }
  72778. func (ec *executionContext) _FulfillmentOrderLineItem_lineItem(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderLineItem) (ret graphql.Marshaler) {
  72779. fc, err := ec.fieldContext_FulfillmentOrderLineItem_lineItem(ctx, field)
  72780. if err != nil {
  72781. return graphql.Null
  72782. }
  72783. ctx = graphql.WithFieldContext(ctx, fc)
  72784. defer func() {
  72785. if r := recover(); r != nil {
  72786. ec.Error(ctx, ec.Recover(ctx, r))
  72787. ret = graphql.Null
  72788. }
  72789. }()
  72790. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  72791. ctx = rctx // use context from middleware stack in children
  72792. return obj.LineItem, nil
  72793. })
  72794. if err != nil {
  72795. ec.Error(ctx, err)
  72796. return graphql.Null
  72797. }
  72798. if resTmp == nil {
  72799. if !graphql.HasFieldError(ctx, fc) {
  72800. ec.Errorf(ctx, "must not be null")
  72801. }
  72802. return graphql.Null
  72803. }
  72804. res := resTmp.(*LineItem)
  72805. fc.Result = res
  72806. return ec.marshalNLineItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLineItem(ctx, field.Selections, res)
  72807. }
  72808. func (ec *executionContext) fieldContext_FulfillmentOrderLineItem_lineItem(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  72809. fc = &graphql.FieldContext{
  72810. Object: "FulfillmentOrderLineItem",
  72811. Field: field,
  72812. IsMethod: false,
  72813. IsResolver: false,
  72814. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  72815. switch field.Name {
  72816. case "contract":
  72817. return ec.fieldContext_LineItem_contract(ctx, field)
  72818. case "currentQuantity":
  72819. return ec.fieldContext_LineItem_currentQuantity(ctx, field)
  72820. case "customAttributes":
  72821. return ec.fieldContext_LineItem_customAttributes(ctx, field)
  72822. case "discountAllocations":
  72823. return ec.fieldContext_LineItem_discountAllocations(ctx, field)
  72824. case "discountedTotalSet":
  72825. return ec.fieldContext_LineItem_discountedTotalSet(ctx, field)
  72826. case "discountedUnitPriceSet":
  72827. return ec.fieldContext_LineItem_discountedUnitPriceSet(ctx, field)
  72828. case "duties":
  72829. return ec.fieldContext_LineItem_duties(ctx, field)
  72830. case "id":
  72831. return ec.fieldContext_LineItem_id(ctx, field)
  72832. case "image":
  72833. return ec.fieldContext_LineItem_image(ctx, field)
  72834. case "merchantEditable":
  72835. return ec.fieldContext_LineItem_merchantEditable(ctx, field)
  72836. case "name":
  72837. return ec.fieldContext_LineItem_name(ctx, field)
  72838. case "nonFulfillableQuantity":
  72839. return ec.fieldContext_LineItem_nonFulfillableQuantity(ctx, field)
  72840. case "originalTotalSet":
  72841. return ec.fieldContext_LineItem_originalTotalSet(ctx, field)
  72842. case "originalUnitPriceSet":
  72843. return ec.fieldContext_LineItem_originalUnitPriceSet(ctx, field)
  72844. case "product":
  72845. return ec.fieldContext_LineItem_product(ctx, field)
  72846. case "quantity":
  72847. return ec.fieldContext_LineItem_quantity(ctx, field)
  72848. case "refundableQuantity":
  72849. return ec.fieldContext_LineItem_refundableQuantity(ctx, field)
  72850. case "requiresShipping":
  72851. return ec.fieldContext_LineItem_requiresShipping(ctx, field)
  72852. case "restockable":
  72853. return ec.fieldContext_LineItem_restockable(ctx, field)
  72854. case "sellingPlan":
  72855. return ec.fieldContext_LineItem_sellingPlan(ctx, field)
  72856. case "sku":
  72857. return ec.fieldContext_LineItem_sku(ctx, field)
  72858. case "staffMember":
  72859. return ec.fieldContext_LineItem_staffMember(ctx, field)
  72860. case "taxLines":
  72861. return ec.fieldContext_LineItem_taxLines(ctx, field)
  72862. case "taxable":
  72863. return ec.fieldContext_LineItem_taxable(ctx, field)
  72864. case "title":
  72865. return ec.fieldContext_LineItem_title(ctx, field)
  72866. case "totalDiscountSet":
  72867. return ec.fieldContext_LineItem_totalDiscountSet(ctx, field)
  72868. case "unfulfilledDiscountedTotalSet":
  72869. return ec.fieldContext_LineItem_unfulfilledDiscountedTotalSet(ctx, field)
  72870. case "unfulfilledOriginalTotalSet":
  72871. return ec.fieldContext_LineItem_unfulfilledOriginalTotalSet(ctx, field)
  72872. case "unfulfilledQuantity":
  72873. return ec.fieldContext_LineItem_unfulfilledQuantity(ctx, field)
  72874. case "variant":
  72875. return ec.fieldContext_LineItem_variant(ctx, field)
  72876. case "variantTitle":
  72877. return ec.fieldContext_LineItem_variantTitle(ctx, field)
  72878. case "vendor":
  72879. return ec.fieldContext_LineItem_vendor(ctx, field)
  72880. }
  72881. return nil, fmt.Errorf("no field named %q was found under type LineItem", field.Name)
  72882. },
  72883. }
  72884. return fc, nil
  72885. }
  72886. func (ec *executionContext) _FulfillmentOrderLineItem_remainingQuantity(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderLineItem) (ret graphql.Marshaler) {
  72887. fc, err := ec.fieldContext_FulfillmentOrderLineItem_remainingQuantity(ctx, field)
  72888. if err != nil {
  72889. return graphql.Null
  72890. }
  72891. ctx = graphql.WithFieldContext(ctx, fc)
  72892. defer func() {
  72893. if r := recover(); r != nil {
  72894. ec.Error(ctx, ec.Recover(ctx, r))
  72895. ret = graphql.Null
  72896. }
  72897. }()
  72898. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  72899. ctx = rctx // use context from middleware stack in children
  72900. return obj.RemainingQuantity, nil
  72901. })
  72902. if err != nil {
  72903. ec.Error(ctx, err)
  72904. return graphql.Null
  72905. }
  72906. if resTmp == nil {
  72907. if !graphql.HasFieldError(ctx, fc) {
  72908. ec.Errorf(ctx, "must not be null")
  72909. }
  72910. return graphql.Null
  72911. }
  72912. res := resTmp.(int)
  72913. fc.Result = res
  72914. return ec.marshalNInt2int(ctx, field.Selections, res)
  72915. }
  72916. func (ec *executionContext) fieldContext_FulfillmentOrderLineItem_remainingQuantity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  72917. fc = &graphql.FieldContext{
  72918. Object: "FulfillmentOrderLineItem",
  72919. Field: field,
  72920. IsMethod: false,
  72921. IsResolver: false,
  72922. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  72923. return nil, errors.New("field of type Int does not have child fields")
  72924. },
  72925. }
  72926. return fc, nil
  72927. }
  72928. func (ec *executionContext) _FulfillmentOrderLineItem_totalQuantity(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderLineItem) (ret graphql.Marshaler) {
  72929. fc, err := ec.fieldContext_FulfillmentOrderLineItem_totalQuantity(ctx, field)
  72930. if err != nil {
  72931. return graphql.Null
  72932. }
  72933. ctx = graphql.WithFieldContext(ctx, fc)
  72934. defer func() {
  72935. if r := recover(); r != nil {
  72936. ec.Error(ctx, ec.Recover(ctx, r))
  72937. ret = graphql.Null
  72938. }
  72939. }()
  72940. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  72941. ctx = rctx // use context from middleware stack in children
  72942. return obj.TotalQuantity, nil
  72943. })
  72944. if err != nil {
  72945. ec.Error(ctx, err)
  72946. return graphql.Null
  72947. }
  72948. if resTmp == nil {
  72949. if !graphql.HasFieldError(ctx, fc) {
  72950. ec.Errorf(ctx, "must not be null")
  72951. }
  72952. return graphql.Null
  72953. }
  72954. res := resTmp.(int)
  72955. fc.Result = res
  72956. return ec.marshalNInt2int(ctx, field.Selections, res)
  72957. }
  72958. func (ec *executionContext) fieldContext_FulfillmentOrderLineItem_totalQuantity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  72959. fc = &graphql.FieldContext{
  72960. Object: "FulfillmentOrderLineItem",
  72961. Field: field,
  72962. IsMethod: false,
  72963. IsResolver: false,
  72964. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  72965. return nil, errors.New("field of type Int does not have child fields")
  72966. },
  72967. }
  72968. return fc, nil
  72969. }
  72970. func (ec *executionContext) _FulfillmentOrderLineItem_warnings(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderLineItem) (ret graphql.Marshaler) {
  72971. fc, err := ec.fieldContext_FulfillmentOrderLineItem_warnings(ctx, field)
  72972. if err != nil {
  72973. return graphql.Null
  72974. }
  72975. ctx = graphql.WithFieldContext(ctx, fc)
  72976. defer func() {
  72977. if r := recover(); r != nil {
  72978. ec.Error(ctx, ec.Recover(ctx, r))
  72979. ret = graphql.Null
  72980. }
  72981. }()
  72982. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  72983. ctx = rctx // use context from middleware stack in children
  72984. return obj.Warnings, nil
  72985. })
  72986. if err != nil {
  72987. ec.Error(ctx, err)
  72988. return graphql.Null
  72989. }
  72990. if resTmp == nil {
  72991. if !graphql.HasFieldError(ctx, fc) {
  72992. ec.Errorf(ctx, "must not be null")
  72993. }
  72994. return graphql.Null
  72995. }
  72996. res := resTmp.([]*FulfillmentOrderLineItemWarning)
  72997. fc.Result = res
  72998. return ec.marshalNFulfillmentOrderLineItemWarning2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderLineItemWarningᚄ(ctx, field.Selections, res)
  72999. }
  73000. func (ec *executionContext) fieldContext_FulfillmentOrderLineItem_warnings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  73001. fc = &graphql.FieldContext{
  73002. Object: "FulfillmentOrderLineItem",
  73003. Field: field,
  73004. IsMethod: false,
  73005. IsResolver: false,
  73006. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  73007. switch field.Name {
  73008. case "description":
  73009. return ec.fieldContext_FulfillmentOrderLineItemWarning_description(ctx, field)
  73010. case "title":
  73011. return ec.fieldContext_FulfillmentOrderLineItemWarning_title(ctx, field)
  73012. }
  73013. return nil, fmt.Errorf("no field named %q was found under type FulfillmentOrderLineItemWarning", field.Name)
  73014. },
  73015. }
  73016. return fc, nil
  73017. }
  73018. func (ec *executionContext) _FulfillmentOrderLineItemConnection_edges(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderLineItemConnection) (ret graphql.Marshaler) {
  73019. fc, err := ec.fieldContext_FulfillmentOrderLineItemConnection_edges(ctx, field)
  73020. if err != nil {
  73021. return graphql.Null
  73022. }
  73023. ctx = graphql.WithFieldContext(ctx, fc)
  73024. defer func() {
  73025. if r := recover(); r != nil {
  73026. ec.Error(ctx, ec.Recover(ctx, r))
  73027. ret = graphql.Null
  73028. }
  73029. }()
  73030. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  73031. ctx = rctx // use context from middleware stack in children
  73032. return obj.Edges, nil
  73033. })
  73034. if err != nil {
  73035. ec.Error(ctx, err)
  73036. return graphql.Null
  73037. }
  73038. if resTmp == nil {
  73039. if !graphql.HasFieldError(ctx, fc) {
  73040. ec.Errorf(ctx, "must not be null")
  73041. }
  73042. return graphql.Null
  73043. }
  73044. res := resTmp.([]*FulfillmentOrderLineItemEdge)
  73045. fc.Result = res
  73046. return ec.marshalNFulfillmentOrderLineItemEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderLineItemEdgeᚄ(ctx, field.Selections, res)
  73047. }
  73048. func (ec *executionContext) fieldContext_FulfillmentOrderLineItemConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  73049. fc = &graphql.FieldContext{
  73050. Object: "FulfillmentOrderLineItemConnection",
  73051. Field: field,
  73052. IsMethod: false,
  73053. IsResolver: false,
  73054. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  73055. switch field.Name {
  73056. case "cursor":
  73057. return ec.fieldContext_FulfillmentOrderLineItemEdge_cursor(ctx, field)
  73058. case "node":
  73059. return ec.fieldContext_FulfillmentOrderLineItemEdge_node(ctx, field)
  73060. }
  73061. return nil, fmt.Errorf("no field named %q was found under type FulfillmentOrderLineItemEdge", field.Name)
  73062. },
  73063. }
  73064. return fc, nil
  73065. }
  73066. func (ec *executionContext) _FulfillmentOrderLineItemConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderLineItemConnection) (ret graphql.Marshaler) {
  73067. fc, err := ec.fieldContext_FulfillmentOrderLineItemConnection_nodes(ctx, field)
  73068. if err != nil {
  73069. return graphql.Null
  73070. }
  73071. ctx = graphql.WithFieldContext(ctx, fc)
  73072. defer func() {
  73073. if r := recover(); r != nil {
  73074. ec.Error(ctx, ec.Recover(ctx, r))
  73075. ret = graphql.Null
  73076. }
  73077. }()
  73078. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  73079. ctx = rctx // use context from middleware stack in children
  73080. return obj.Nodes, nil
  73081. })
  73082. if err != nil {
  73083. ec.Error(ctx, err)
  73084. return graphql.Null
  73085. }
  73086. if resTmp == nil {
  73087. if !graphql.HasFieldError(ctx, fc) {
  73088. ec.Errorf(ctx, "must not be null")
  73089. }
  73090. return graphql.Null
  73091. }
  73092. res := resTmp.([]*FulfillmentOrderLineItem)
  73093. fc.Result = res
  73094. return ec.marshalNFulfillmentOrderLineItem2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderLineItemᚄ(ctx, field.Selections, res)
  73095. }
  73096. func (ec *executionContext) fieldContext_FulfillmentOrderLineItemConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  73097. fc = &graphql.FieldContext{
  73098. Object: "FulfillmentOrderLineItemConnection",
  73099. Field: field,
  73100. IsMethod: false,
  73101. IsResolver: false,
  73102. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  73103. switch field.Name {
  73104. case "id":
  73105. return ec.fieldContext_FulfillmentOrderLineItem_id(ctx, field)
  73106. case "lineItem":
  73107. return ec.fieldContext_FulfillmentOrderLineItem_lineItem(ctx, field)
  73108. case "remainingQuantity":
  73109. return ec.fieldContext_FulfillmentOrderLineItem_remainingQuantity(ctx, field)
  73110. case "totalQuantity":
  73111. return ec.fieldContext_FulfillmentOrderLineItem_totalQuantity(ctx, field)
  73112. case "warnings":
  73113. return ec.fieldContext_FulfillmentOrderLineItem_warnings(ctx, field)
  73114. }
  73115. return nil, fmt.Errorf("no field named %q was found under type FulfillmentOrderLineItem", field.Name)
  73116. },
  73117. }
  73118. return fc, nil
  73119. }
  73120. func (ec *executionContext) _FulfillmentOrderLineItemConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderLineItemConnection) (ret graphql.Marshaler) {
  73121. fc, err := ec.fieldContext_FulfillmentOrderLineItemConnection_pageInfo(ctx, field)
  73122. if err != nil {
  73123. return graphql.Null
  73124. }
  73125. ctx = graphql.WithFieldContext(ctx, fc)
  73126. defer func() {
  73127. if r := recover(); r != nil {
  73128. ec.Error(ctx, ec.Recover(ctx, r))
  73129. ret = graphql.Null
  73130. }
  73131. }()
  73132. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  73133. ctx = rctx // use context from middleware stack in children
  73134. return obj.PageInfo, nil
  73135. })
  73136. if err != nil {
  73137. ec.Error(ctx, err)
  73138. return graphql.Null
  73139. }
  73140. if resTmp == nil {
  73141. if !graphql.HasFieldError(ctx, fc) {
  73142. ec.Errorf(ctx, "must not be null")
  73143. }
  73144. return graphql.Null
  73145. }
  73146. res := resTmp.(*PageInfo)
  73147. fc.Result = res
  73148. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  73149. }
  73150. func (ec *executionContext) fieldContext_FulfillmentOrderLineItemConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  73151. fc = &graphql.FieldContext{
  73152. Object: "FulfillmentOrderLineItemConnection",
  73153. Field: field,
  73154. IsMethod: false,
  73155. IsResolver: false,
  73156. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  73157. switch field.Name {
  73158. case "endCursor":
  73159. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  73160. case "hasNextPage":
  73161. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  73162. case "hasPreviousPage":
  73163. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  73164. case "startCursor":
  73165. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  73166. }
  73167. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  73168. },
  73169. }
  73170. return fc, nil
  73171. }
  73172. func (ec *executionContext) _FulfillmentOrderLineItemEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderLineItemEdge) (ret graphql.Marshaler) {
  73173. fc, err := ec.fieldContext_FulfillmentOrderLineItemEdge_cursor(ctx, field)
  73174. if err != nil {
  73175. return graphql.Null
  73176. }
  73177. ctx = graphql.WithFieldContext(ctx, fc)
  73178. defer func() {
  73179. if r := recover(); r != nil {
  73180. ec.Error(ctx, ec.Recover(ctx, r))
  73181. ret = graphql.Null
  73182. }
  73183. }()
  73184. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  73185. ctx = rctx // use context from middleware stack in children
  73186. return obj.Cursor, nil
  73187. })
  73188. if err != nil {
  73189. ec.Error(ctx, err)
  73190. return graphql.Null
  73191. }
  73192. if resTmp == nil {
  73193. if !graphql.HasFieldError(ctx, fc) {
  73194. ec.Errorf(ctx, "must not be null")
  73195. }
  73196. return graphql.Null
  73197. }
  73198. res := resTmp.(string)
  73199. fc.Result = res
  73200. return ec.marshalNString2string(ctx, field.Selections, res)
  73201. }
  73202. func (ec *executionContext) fieldContext_FulfillmentOrderLineItemEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  73203. fc = &graphql.FieldContext{
  73204. Object: "FulfillmentOrderLineItemEdge",
  73205. Field: field,
  73206. IsMethod: false,
  73207. IsResolver: false,
  73208. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  73209. return nil, errors.New("field of type String does not have child fields")
  73210. },
  73211. }
  73212. return fc, nil
  73213. }
  73214. func (ec *executionContext) _FulfillmentOrderLineItemEdge_node(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderLineItemEdge) (ret graphql.Marshaler) {
  73215. fc, err := ec.fieldContext_FulfillmentOrderLineItemEdge_node(ctx, field)
  73216. if err != nil {
  73217. return graphql.Null
  73218. }
  73219. ctx = graphql.WithFieldContext(ctx, fc)
  73220. defer func() {
  73221. if r := recover(); r != nil {
  73222. ec.Error(ctx, ec.Recover(ctx, r))
  73223. ret = graphql.Null
  73224. }
  73225. }()
  73226. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  73227. ctx = rctx // use context from middleware stack in children
  73228. return obj.Node, nil
  73229. })
  73230. if err != nil {
  73231. ec.Error(ctx, err)
  73232. return graphql.Null
  73233. }
  73234. if resTmp == nil {
  73235. if !graphql.HasFieldError(ctx, fc) {
  73236. ec.Errorf(ctx, "must not be null")
  73237. }
  73238. return graphql.Null
  73239. }
  73240. res := resTmp.(*FulfillmentOrderLineItem)
  73241. fc.Result = res
  73242. return ec.marshalNFulfillmentOrderLineItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderLineItem(ctx, field.Selections, res)
  73243. }
  73244. func (ec *executionContext) fieldContext_FulfillmentOrderLineItemEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  73245. fc = &graphql.FieldContext{
  73246. Object: "FulfillmentOrderLineItemEdge",
  73247. Field: field,
  73248. IsMethod: false,
  73249. IsResolver: false,
  73250. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  73251. switch field.Name {
  73252. case "id":
  73253. return ec.fieldContext_FulfillmentOrderLineItem_id(ctx, field)
  73254. case "lineItem":
  73255. return ec.fieldContext_FulfillmentOrderLineItem_lineItem(ctx, field)
  73256. case "remainingQuantity":
  73257. return ec.fieldContext_FulfillmentOrderLineItem_remainingQuantity(ctx, field)
  73258. case "totalQuantity":
  73259. return ec.fieldContext_FulfillmentOrderLineItem_totalQuantity(ctx, field)
  73260. case "warnings":
  73261. return ec.fieldContext_FulfillmentOrderLineItem_warnings(ctx, field)
  73262. }
  73263. return nil, fmt.Errorf("no field named %q was found under type FulfillmentOrderLineItem", field.Name)
  73264. },
  73265. }
  73266. return fc, nil
  73267. }
  73268. func (ec *executionContext) _FulfillmentOrderLineItemWarning_description(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderLineItemWarning) (ret graphql.Marshaler) {
  73269. fc, err := ec.fieldContext_FulfillmentOrderLineItemWarning_description(ctx, field)
  73270. if err != nil {
  73271. return graphql.Null
  73272. }
  73273. ctx = graphql.WithFieldContext(ctx, fc)
  73274. defer func() {
  73275. if r := recover(); r != nil {
  73276. ec.Error(ctx, ec.Recover(ctx, r))
  73277. ret = graphql.Null
  73278. }
  73279. }()
  73280. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  73281. ctx = rctx // use context from middleware stack in children
  73282. return obj.Description, nil
  73283. })
  73284. if err != nil {
  73285. ec.Error(ctx, err)
  73286. return graphql.Null
  73287. }
  73288. if resTmp == nil {
  73289. return graphql.Null
  73290. }
  73291. res := resTmp.(*string)
  73292. fc.Result = res
  73293. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  73294. }
  73295. func (ec *executionContext) fieldContext_FulfillmentOrderLineItemWarning_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  73296. fc = &graphql.FieldContext{
  73297. Object: "FulfillmentOrderLineItemWarning",
  73298. Field: field,
  73299. IsMethod: false,
  73300. IsResolver: false,
  73301. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  73302. return nil, errors.New("field of type String does not have child fields")
  73303. },
  73304. }
  73305. return fc, nil
  73306. }
  73307. func (ec *executionContext) _FulfillmentOrderLineItemWarning_title(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderLineItemWarning) (ret graphql.Marshaler) {
  73308. fc, err := ec.fieldContext_FulfillmentOrderLineItemWarning_title(ctx, field)
  73309. if err != nil {
  73310. return graphql.Null
  73311. }
  73312. ctx = graphql.WithFieldContext(ctx, fc)
  73313. defer func() {
  73314. if r := recover(); r != nil {
  73315. ec.Error(ctx, ec.Recover(ctx, r))
  73316. ret = graphql.Null
  73317. }
  73318. }()
  73319. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  73320. ctx = rctx // use context from middleware stack in children
  73321. return obj.Title, nil
  73322. })
  73323. if err != nil {
  73324. ec.Error(ctx, err)
  73325. return graphql.Null
  73326. }
  73327. if resTmp == nil {
  73328. return graphql.Null
  73329. }
  73330. res := resTmp.(*string)
  73331. fc.Result = res
  73332. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  73333. }
  73334. func (ec *executionContext) fieldContext_FulfillmentOrderLineItemWarning_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  73335. fc = &graphql.FieldContext{
  73336. Object: "FulfillmentOrderLineItemWarning",
  73337. Field: field,
  73338. IsMethod: false,
  73339. IsResolver: false,
  73340. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  73341. return nil, errors.New("field of type String does not have child fields")
  73342. },
  73343. }
  73344. return fc, nil
  73345. }
  73346. func (ec *executionContext) _FulfillmentOrderLocationForMove_location(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderLocationForMove) (ret graphql.Marshaler) {
  73347. fc, err := ec.fieldContext_FulfillmentOrderLocationForMove_location(ctx, field)
  73348. if err != nil {
  73349. return graphql.Null
  73350. }
  73351. ctx = graphql.WithFieldContext(ctx, fc)
  73352. defer func() {
  73353. if r := recover(); r != nil {
  73354. ec.Error(ctx, ec.Recover(ctx, r))
  73355. ret = graphql.Null
  73356. }
  73357. }()
  73358. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  73359. ctx = rctx // use context from middleware stack in children
  73360. return obj.Location, nil
  73361. })
  73362. if err != nil {
  73363. ec.Error(ctx, err)
  73364. return graphql.Null
  73365. }
  73366. if resTmp == nil {
  73367. if !graphql.HasFieldError(ctx, fc) {
  73368. ec.Errorf(ctx, "must not be null")
  73369. }
  73370. return graphql.Null
  73371. }
  73372. res := resTmp.(*Location)
  73373. fc.Result = res
  73374. return ec.marshalNLocation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocation(ctx, field.Selections, res)
  73375. }
  73376. func (ec *executionContext) fieldContext_FulfillmentOrderLocationForMove_location(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  73377. fc = &graphql.FieldContext{
  73378. Object: "FulfillmentOrderLocationForMove",
  73379. Field: field,
  73380. IsMethod: false,
  73381. IsResolver: false,
  73382. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  73383. switch field.Name {
  73384. case "activatable":
  73385. return ec.fieldContext_Location_activatable(ctx, field)
  73386. case "address":
  73387. return ec.fieldContext_Location_address(ctx, field)
  73388. case "addressVerified":
  73389. return ec.fieldContext_Location_addressVerified(ctx, field)
  73390. case "deactivatable":
  73391. return ec.fieldContext_Location_deactivatable(ctx, field)
  73392. case "deactivatedAt":
  73393. return ec.fieldContext_Location_deactivatedAt(ctx, field)
  73394. case "deletable":
  73395. return ec.fieldContext_Location_deletable(ctx, field)
  73396. case "fulfillmentService":
  73397. return ec.fieldContext_Location_fulfillmentService(ctx, field)
  73398. case "fulfillsOnlineOrders":
  73399. return ec.fieldContext_Location_fulfillsOnlineOrders(ctx, field)
  73400. case "hasActiveInventory":
  73401. return ec.fieldContext_Location_hasActiveInventory(ctx, field)
  73402. case "hasUnfulfilledOrders":
  73403. return ec.fieldContext_Location_hasUnfulfilledOrders(ctx, field)
  73404. case "id":
  73405. return ec.fieldContext_Location_id(ctx, field)
  73406. case "inventoryLevel":
  73407. return ec.fieldContext_Location_inventoryLevel(ctx, field)
  73408. case "inventoryLevels":
  73409. return ec.fieldContext_Location_inventoryLevels(ctx, field)
  73410. case "isActive":
  73411. return ec.fieldContext_Location_isActive(ctx, field)
  73412. case "legacyResourceId":
  73413. return ec.fieldContext_Location_legacyResourceId(ctx, field)
  73414. case "metafield":
  73415. return ec.fieldContext_Location_metafield(ctx, field)
  73416. case "metafieldDefinitions":
  73417. return ec.fieldContext_Location_metafieldDefinitions(ctx, field)
  73418. case "metafields":
  73419. return ec.fieldContext_Location_metafields(ctx, field)
  73420. case "name":
  73421. return ec.fieldContext_Location_name(ctx, field)
  73422. case "privateMetafield":
  73423. return ec.fieldContext_Location_privateMetafield(ctx, field)
  73424. case "privateMetafields":
  73425. return ec.fieldContext_Location_privateMetafields(ctx, field)
  73426. case "shipsInventory":
  73427. return ec.fieldContext_Location_shipsInventory(ctx, field)
  73428. case "suggestedAddresses":
  73429. return ec.fieldContext_Location_suggestedAddresses(ctx, field)
  73430. }
  73431. return nil, fmt.Errorf("no field named %q was found under type Location", field.Name)
  73432. },
  73433. }
  73434. return fc, nil
  73435. }
  73436. func (ec *executionContext) _FulfillmentOrderLocationForMove_message(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderLocationForMove) (ret graphql.Marshaler) {
  73437. fc, err := ec.fieldContext_FulfillmentOrderLocationForMove_message(ctx, field)
  73438. if err != nil {
  73439. return graphql.Null
  73440. }
  73441. ctx = graphql.WithFieldContext(ctx, fc)
  73442. defer func() {
  73443. if r := recover(); r != nil {
  73444. ec.Error(ctx, ec.Recover(ctx, r))
  73445. ret = graphql.Null
  73446. }
  73447. }()
  73448. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  73449. ctx = rctx // use context from middleware stack in children
  73450. return obj.Message, nil
  73451. })
  73452. if err != nil {
  73453. ec.Error(ctx, err)
  73454. return graphql.Null
  73455. }
  73456. if resTmp == nil {
  73457. return graphql.Null
  73458. }
  73459. res := resTmp.(*string)
  73460. fc.Result = res
  73461. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  73462. }
  73463. func (ec *executionContext) fieldContext_FulfillmentOrderLocationForMove_message(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  73464. fc = &graphql.FieldContext{
  73465. Object: "FulfillmentOrderLocationForMove",
  73466. Field: field,
  73467. IsMethod: false,
  73468. IsResolver: false,
  73469. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  73470. return nil, errors.New("field of type String does not have child fields")
  73471. },
  73472. }
  73473. return fc, nil
  73474. }
  73475. func (ec *executionContext) _FulfillmentOrderLocationForMove_movable(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderLocationForMove) (ret graphql.Marshaler) {
  73476. fc, err := ec.fieldContext_FulfillmentOrderLocationForMove_movable(ctx, field)
  73477. if err != nil {
  73478. return graphql.Null
  73479. }
  73480. ctx = graphql.WithFieldContext(ctx, fc)
  73481. defer func() {
  73482. if r := recover(); r != nil {
  73483. ec.Error(ctx, ec.Recover(ctx, r))
  73484. ret = graphql.Null
  73485. }
  73486. }()
  73487. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  73488. ctx = rctx // use context from middleware stack in children
  73489. return obj.Movable, nil
  73490. })
  73491. if err != nil {
  73492. ec.Error(ctx, err)
  73493. return graphql.Null
  73494. }
  73495. if resTmp == nil {
  73496. if !graphql.HasFieldError(ctx, fc) {
  73497. ec.Errorf(ctx, "must not be null")
  73498. }
  73499. return graphql.Null
  73500. }
  73501. res := resTmp.(bool)
  73502. fc.Result = res
  73503. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  73504. }
  73505. func (ec *executionContext) fieldContext_FulfillmentOrderLocationForMove_movable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  73506. fc = &graphql.FieldContext{
  73507. Object: "FulfillmentOrderLocationForMove",
  73508. Field: field,
  73509. IsMethod: false,
  73510. IsResolver: false,
  73511. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  73512. return nil, errors.New("field of type Boolean does not have child fields")
  73513. },
  73514. }
  73515. return fc, nil
  73516. }
  73517. func (ec *executionContext) _FulfillmentOrderLocationForMoveConnection_edges(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderLocationForMoveConnection) (ret graphql.Marshaler) {
  73518. fc, err := ec.fieldContext_FulfillmentOrderLocationForMoveConnection_edges(ctx, field)
  73519. if err != nil {
  73520. return graphql.Null
  73521. }
  73522. ctx = graphql.WithFieldContext(ctx, fc)
  73523. defer func() {
  73524. if r := recover(); r != nil {
  73525. ec.Error(ctx, ec.Recover(ctx, r))
  73526. ret = graphql.Null
  73527. }
  73528. }()
  73529. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  73530. ctx = rctx // use context from middleware stack in children
  73531. return obj.Edges, nil
  73532. })
  73533. if err != nil {
  73534. ec.Error(ctx, err)
  73535. return graphql.Null
  73536. }
  73537. if resTmp == nil {
  73538. if !graphql.HasFieldError(ctx, fc) {
  73539. ec.Errorf(ctx, "must not be null")
  73540. }
  73541. return graphql.Null
  73542. }
  73543. res := resTmp.([]*FulfillmentOrderLocationForMoveEdge)
  73544. fc.Result = res
  73545. return ec.marshalNFulfillmentOrderLocationForMoveEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderLocationForMoveEdgeᚄ(ctx, field.Selections, res)
  73546. }
  73547. func (ec *executionContext) fieldContext_FulfillmentOrderLocationForMoveConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  73548. fc = &graphql.FieldContext{
  73549. Object: "FulfillmentOrderLocationForMoveConnection",
  73550. Field: field,
  73551. IsMethod: false,
  73552. IsResolver: false,
  73553. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  73554. switch field.Name {
  73555. case "cursor":
  73556. return ec.fieldContext_FulfillmentOrderLocationForMoveEdge_cursor(ctx, field)
  73557. case "node":
  73558. return ec.fieldContext_FulfillmentOrderLocationForMoveEdge_node(ctx, field)
  73559. }
  73560. return nil, fmt.Errorf("no field named %q was found under type FulfillmentOrderLocationForMoveEdge", field.Name)
  73561. },
  73562. }
  73563. return fc, nil
  73564. }
  73565. func (ec *executionContext) _FulfillmentOrderLocationForMoveConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderLocationForMoveConnection) (ret graphql.Marshaler) {
  73566. fc, err := ec.fieldContext_FulfillmentOrderLocationForMoveConnection_nodes(ctx, field)
  73567. if err != nil {
  73568. return graphql.Null
  73569. }
  73570. ctx = graphql.WithFieldContext(ctx, fc)
  73571. defer func() {
  73572. if r := recover(); r != nil {
  73573. ec.Error(ctx, ec.Recover(ctx, r))
  73574. ret = graphql.Null
  73575. }
  73576. }()
  73577. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  73578. ctx = rctx // use context from middleware stack in children
  73579. return obj.Nodes, nil
  73580. })
  73581. if err != nil {
  73582. ec.Error(ctx, err)
  73583. return graphql.Null
  73584. }
  73585. if resTmp == nil {
  73586. if !graphql.HasFieldError(ctx, fc) {
  73587. ec.Errorf(ctx, "must not be null")
  73588. }
  73589. return graphql.Null
  73590. }
  73591. res := resTmp.([]*FulfillmentOrderLocationForMove)
  73592. fc.Result = res
  73593. return ec.marshalNFulfillmentOrderLocationForMove2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderLocationForMoveᚄ(ctx, field.Selections, res)
  73594. }
  73595. func (ec *executionContext) fieldContext_FulfillmentOrderLocationForMoveConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  73596. fc = &graphql.FieldContext{
  73597. Object: "FulfillmentOrderLocationForMoveConnection",
  73598. Field: field,
  73599. IsMethod: false,
  73600. IsResolver: false,
  73601. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  73602. switch field.Name {
  73603. case "location":
  73604. return ec.fieldContext_FulfillmentOrderLocationForMove_location(ctx, field)
  73605. case "message":
  73606. return ec.fieldContext_FulfillmentOrderLocationForMove_message(ctx, field)
  73607. case "movable":
  73608. return ec.fieldContext_FulfillmentOrderLocationForMove_movable(ctx, field)
  73609. }
  73610. return nil, fmt.Errorf("no field named %q was found under type FulfillmentOrderLocationForMove", field.Name)
  73611. },
  73612. }
  73613. return fc, nil
  73614. }
  73615. func (ec *executionContext) _FulfillmentOrderLocationForMoveConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderLocationForMoveConnection) (ret graphql.Marshaler) {
  73616. fc, err := ec.fieldContext_FulfillmentOrderLocationForMoveConnection_pageInfo(ctx, field)
  73617. if err != nil {
  73618. return graphql.Null
  73619. }
  73620. ctx = graphql.WithFieldContext(ctx, fc)
  73621. defer func() {
  73622. if r := recover(); r != nil {
  73623. ec.Error(ctx, ec.Recover(ctx, r))
  73624. ret = graphql.Null
  73625. }
  73626. }()
  73627. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  73628. ctx = rctx // use context from middleware stack in children
  73629. return obj.PageInfo, nil
  73630. })
  73631. if err != nil {
  73632. ec.Error(ctx, err)
  73633. return graphql.Null
  73634. }
  73635. if resTmp == nil {
  73636. if !graphql.HasFieldError(ctx, fc) {
  73637. ec.Errorf(ctx, "must not be null")
  73638. }
  73639. return graphql.Null
  73640. }
  73641. res := resTmp.(*PageInfo)
  73642. fc.Result = res
  73643. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  73644. }
  73645. func (ec *executionContext) fieldContext_FulfillmentOrderLocationForMoveConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  73646. fc = &graphql.FieldContext{
  73647. Object: "FulfillmentOrderLocationForMoveConnection",
  73648. Field: field,
  73649. IsMethod: false,
  73650. IsResolver: false,
  73651. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  73652. switch field.Name {
  73653. case "endCursor":
  73654. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  73655. case "hasNextPage":
  73656. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  73657. case "hasPreviousPage":
  73658. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  73659. case "startCursor":
  73660. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  73661. }
  73662. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  73663. },
  73664. }
  73665. return fc, nil
  73666. }
  73667. func (ec *executionContext) _FulfillmentOrderLocationForMoveEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderLocationForMoveEdge) (ret graphql.Marshaler) {
  73668. fc, err := ec.fieldContext_FulfillmentOrderLocationForMoveEdge_cursor(ctx, field)
  73669. if err != nil {
  73670. return graphql.Null
  73671. }
  73672. ctx = graphql.WithFieldContext(ctx, fc)
  73673. defer func() {
  73674. if r := recover(); r != nil {
  73675. ec.Error(ctx, ec.Recover(ctx, r))
  73676. ret = graphql.Null
  73677. }
  73678. }()
  73679. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  73680. ctx = rctx // use context from middleware stack in children
  73681. return obj.Cursor, nil
  73682. })
  73683. if err != nil {
  73684. ec.Error(ctx, err)
  73685. return graphql.Null
  73686. }
  73687. if resTmp == nil {
  73688. if !graphql.HasFieldError(ctx, fc) {
  73689. ec.Errorf(ctx, "must not be null")
  73690. }
  73691. return graphql.Null
  73692. }
  73693. res := resTmp.(string)
  73694. fc.Result = res
  73695. return ec.marshalNString2string(ctx, field.Selections, res)
  73696. }
  73697. func (ec *executionContext) fieldContext_FulfillmentOrderLocationForMoveEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  73698. fc = &graphql.FieldContext{
  73699. Object: "FulfillmentOrderLocationForMoveEdge",
  73700. Field: field,
  73701. IsMethod: false,
  73702. IsResolver: false,
  73703. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  73704. return nil, errors.New("field of type String does not have child fields")
  73705. },
  73706. }
  73707. return fc, nil
  73708. }
  73709. func (ec *executionContext) _FulfillmentOrderLocationForMoveEdge_node(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderLocationForMoveEdge) (ret graphql.Marshaler) {
  73710. fc, err := ec.fieldContext_FulfillmentOrderLocationForMoveEdge_node(ctx, field)
  73711. if err != nil {
  73712. return graphql.Null
  73713. }
  73714. ctx = graphql.WithFieldContext(ctx, fc)
  73715. defer func() {
  73716. if r := recover(); r != nil {
  73717. ec.Error(ctx, ec.Recover(ctx, r))
  73718. ret = graphql.Null
  73719. }
  73720. }()
  73721. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  73722. ctx = rctx // use context from middleware stack in children
  73723. return obj.Node, nil
  73724. })
  73725. if err != nil {
  73726. ec.Error(ctx, err)
  73727. return graphql.Null
  73728. }
  73729. if resTmp == nil {
  73730. if !graphql.HasFieldError(ctx, fc) {
  73731. ec.Errorf(ctx, "must not be null")
  73732. }
  73733. return graphql.Null
  73734. }
  73735. res := resTmp.(*FulfillmentOrderLocationForMove)
  73736. fc.Result = res
  73737. return ec.marshalNFulfillmentOrderLocationForMove2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderLocationForMove(ctx, field.Selections, res)
  73738. }
  73739. func (ec *executionContext) fieldContext_FulfillmentOrderLocationForMoveEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  73740. fc = &graphql.FieldContext{
  73741. Object: "FulfillmentOrderLocationForMoveEdge",
  73742. Field: field,
  73743. IsMethod: false,
  73744. IsResolver: false,
  73745. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  73746. switch field.Name {
  73747. case "location":
  73748. return ec.fieldContext_FulfillmentOrderLocationForMove_location(ctx, field)
  73749. case "message":
  73750. return ec.fieldContext_FulfillmentOrderLocationForMove_message(ctx, field)
  73751. case "movable":
  73752. return ec.fieldContext_FulfillmentOrderLocationForMove_movable(ctx, field)
  73753. }
  73754. return nil, fmt.Errorf("no field named %q was found under type FulfillmentOrderLocationForMove", field.Name)
  73755. },
  73756. }
  73757. return fc, nil
  73758. }
  73759. func (ec *executionContext) _FulfillmentOrderMerchantRequest_id(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderMerchantRequest) (ret graphql.Marshaler) {
  73760. fc, err := ec.fieldContext_FulfillmentOrderMerchantRequest_id(ctx, field)
  73761. if err != nil {
  73762. return graphql.Null
  73763. }
  73764. ctx = graphql.WithFieldContext(ctx, fc)
  73765. defer func() {
  73766. if r := recover(); r != nil {
  73767. ec.Error(ctx, ec.Recover(ctx, r))
  73768. ret = graphql.Null
  73769. }
  73770. }()
  73771. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  73772. ctx = rctx // use context from middleware stack in children
  73773. return obj.ID, nil
  73774. })
  73775. if err != nil {
  73776. ec.Error(ctx, err)
  73777. return graphql.Null
  73778. }
  73779. if resTmp == nil {
  73780. if !graphql.HasFieldError(ctx, fc) {
  73781. ec.Errorf(ctx, "must not be null")
  73782. }
  73783. return graphql.Null
  73784. }
  73785. res := resTmp.(string)
  73786. fc.Result = res
  73787. return ec.marshalNID2string(ctx, field.Selections, res)
  73788. }
  73789. func (ec *executionContext) fieldContext_FulfillmentOrderMerchantRequest_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  73790. fc = &graphql.FieldContext{
  73791. Object: "FulfillmentOrderMerchantRequest",
  73792. Field: field,
  73793. IsMethod: false,
  73794. IsResolver: false,
  73795. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  73796. return nil, errors.New("field of type ID does not have child fields")
  73797. },
  73798. }
  73799. return fc, nil
  73800. }
  73801. func (ec *executionContext) _FulfillmentOrderMerchantRequest_kind(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderMerchantRequest) (ret graphql.Marshaler) {
  73802. fc, err := ec.fieldContext_FulfillmentOrderMerchantRequest_kind(ctx, field)
  73803. if err != nil {
  73804. return graphql.Null
  73805. }
  73806. ctx = graphql.WithFieldContext(ctx, fc)
  73807. defer func() {
  73808. if r := recover(); r != nil {
  73809. ec.Error(ctx, ec.Recover(ctx, r))
  73810. ret = graphql.Null
  73811. }
  73812. }()
  73813. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  73814. ctx = rctx // use context from middleware stack in children
  73815. return obj.Kind, nil
  73816. })
  73817. if err != nil {
  73818. ec.Error(ctx, err)
  73819. return graphql.Null
  73820. }
  73821. if resTmp == nil {
  73822. if !graphql.HasFieldError(ctx, fc) {
  73823. ec.Errorf(ctx, "must not be null")
  73824. }
  73825. return graphql.Null
  73826. }
  73827. res := resTmp.(FulfillmentOrderMerchantRequestKind)
  73828. fc.Result = res
  73829. return ec.marshalNFulfillmentOrderMerchantRequestKind2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderMerchantRequestKind(ctx, field.Selections, res)
  73830. }
  73831. func (ec *executionContext) fieldContext_FulfillmentOrderMerchantRequest_kind(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  73832. fc = &graphql.FieldContext{
  73833. Object: "FulfillmentOrderMerchantRequest",
  73834. Field: field,
  73835. IsMethod: false,
  73836. IsResolver: false,
  73837. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  73838. return nil, errors.New("field of type FulfillmentOrderMerchantRequestKind does not have child fields")
  73839. },
  73840. }
  73841. return fc, nil
  73842. }
  73843. func (ec *executionContext) _FulfillmentOrderMerchantRequest_message(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderMerchantRequest) (ret graphql.Marshaler) {
  73844. fc, err := ec.fieldContext_FulfillmentOrderMerchantRequest_message(ctx, field)
  73845. if err != nil {
  73846. return graphql.Null
  73847. }
  73848. ctx = graphql.WithFieldContext(ctx, fc)
  73849. defer func() {
  73850. if r := recover(); r != nil {
  73851. ec.Error(ctx, ec.Recover(ctx, r))
  73852. ret = graphql.Null
  73853. }
  73854. }()
  73855. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  73856. ctx = rctx // use context from middleware stack in children
  73857. return obj.Message, nil
  73858. })
  73859. if err != nil {
  73860. ec.Error(ctx, err)
  73861. return graphql.Null
  73862. }
  73863. if resTmp == nil {
  73864. return graphql.Null
  73865. }
  73866. res := resTmp.(*string)
  73867. fc.Result = res
  73868. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  73869. }
  73870. func (ec *executionContext) fieldContext_FulfillmentOrderMerchantRequest_message(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  73871. fc = &graphql.FieldContext{
  73872. Object: "FulfillmentOrderMerchantRequest",
  73873. Field: field,
  73874. IsMethod: false,
  73875. IsResolver: false,
  73876. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  73877. return nil, errors.New("field of type String does not have child fields")
  73878. },
  73879. }
  73880. return fc, nil
  73881. }
  73882. func (ec *executionContext) _FulfillmentOrderMerchantRequest_requestOptions(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderMerchantRequest) (ret graphql.Marshaler) {
  73883. fc, err := ec.fieldContext_FulfillmentOrderMerchantRequest_requestOptions(ctx, field)
  73884. if err != nil {
  73885. return graphql.Null
  73886. }
  73887. ctx = graphql.WithFieldContext(ctx, fc)
  73888. defer func() {
  73889. if r := recover(); r != nil {
  73890. ec.Error(ctx, ec.Recover(ctx, r))
  73891. ret = graphql.Null
  73892. }
  73893. }()
  73894. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  73895. ctx = rctx // use context from middleware stack in children
  73896. return obj.RequestOptions, nil
  73897. })
  73898. if err != nil {
  73899. ec.Error(ctx, err)
  73900. return graphql.Null
  73901. }
  73902. if resTmp == nil {
  73903. return graphql.Null
  73904. }
  73905. res := resTmp.(*string)
  73906. fc.Result = res
  73907. return ec.marshalOJSON2ᚖstring(ctx, field.Selections, res)
  73908. }
  73909. func (ec *executionContext) fieldContext_FulfillmentOrderMerchantRequest_requestOptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  73910. fc = &graphql.FieldContext{
  73911. Object: "FulfillmentOrderMerchantRequest",
  73912. Field: field,
  73913. IsMethod: false,
  73914. IsResolver: false,
  73915. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  73916. return nil, errors.New("field of type JSON does not have child fields")
  73917. },
  73918. }
  73919. return fc, nil
  73920. }
  73921. func (ec *executionContext) _FulfillmentOrderMerchantRequest_responseData(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderMerchantRequest) (ret graphql.Marshaler) {
  73922. fc, err := ec.fieldContext_FulfillmentOrderMerchantRequest_responseData(ctx, field)
  73923. if err != nil {
  73924. return graphql.Null
  73925. }
  73926. ctx = graphql.WithFieldContext(ctx, fc)
  73927. defer func() {
  73928. if r := recover(); r != nil {
  73929. ec.Error(ctx, ec.Recover(ctx, r))
  73930. ret = graphql.Null
  73931. }
  73932. }()
  73933. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  73934. ctx = rctx // use context from middleware stack in children
  73935. return obj.ResponseData, nil
  73936. })
  73937. if err != nil {
  73938. ec.Error(ctx, err)
  73939. return graphql.Null
  73940. }
  73941. if resTmp == nil {
  73942. return graphql.Null
  73943. }
  73944. res := resTmp.(*string)
  73945. fc.Result = res
  73946. return ec.marshalOJSON2ᚖstring(ctx, field.Selections, res)
  73947. }
  73948. func (ec *executionContext) fieldContext_FulfillmentOrderMerchantRequest_responseData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  73949. fc = &graphql.FieldContext{
  73950. Object: "FulfillmentOrderMerchantRequest",
  73951. Field: field,
  73952. IsMethod: false,
  73953. IsResolver: false,
  73954. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  73955. return nil, errors.New("field of type JSON does not have child fields")
  73956. },
  73957. }
  73958. return fc, nil
  73959. }
  73960. func (ec *executionContext) _FulfillmentOrderMerchantRequest_sentAt(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderMerchantRequest) (ret graphql.Marshaler) {
  73961. fc, err := ec.fieldContext_FulfillmentOrderMerchantRequest_sentAt(ctx, field)
  73962. if err != nil {
  73963. return graphql.Null
  73964. }
  73965. ctx = graphql.WithFieldContext(ctx, fc)
  73966. defer func() {
  73967. if r := recover(); r != nil {
  73968. ec.Error(ctx, ec.Recover(ctx, r))
  73969. ret = graphql.Null
  73970. }
  73971. }()
  73972. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  73973. ctx = rctx // use context from middleware stack in children
  73974. return obj.SentAt, nil
  73975. })
  73976. if err != nil {
  73977. ec.Error(ctx, err)
  73978. return graphql.Null
  73979. }
  73980. if resTmp == nil {
  73981. if !graphql.HasFieldError(ctx, fc) {
  73982. ec.Errorf(ctx, "must not be null")
  73983. }
  73984. return graphql.Null
  73985. }
  73986. res := resTmp.(string)
  73987. fc.Result = res
  73988. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  73989. }
  73990. func (ec *executionContext) fieldContext_FulfillmentOrderMerchantRequest_sentAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  73991. fc = &graphql.FieldContext{
  73992. Object: "FulfillmentOrderMerchantRequest",
  73993. Field: field,
  73994. IsMethod: false,
  73995. IsResolver: false,
  73996. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  73997. return nil, errors.New("field of type DateTime does not have child fields")
  73998. },
  73999. }
  74000. return fc, nil
  74001. }
  74002. func (ec *executionContext) _FulfillmentOrderMerchantRequestConnection_edges(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderMerchantRequestConnection) (ret graphql.Marshaler) {
  74003. fc, err := ec.fieldContext_FulfillmentOrderMerchantRequestConnection_edges(ctx, field)
  74004. if err != nil {
  74005. return graphql.Null
  74006. }
  74007. ctx = graphql.WithFieldContext(ctx, fc)
  74008. defer func() {
  74009. if r := recover(); r != nil {
  74010. ec.Error(ctx, ec.Recover(ctx, r))
  74011. ret = graphql.Null
  74012. }
  74013. }()
  74014. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  74015. ctx = rctx // use context from middleware stack in children
  74016. return obj.Edges, nil
  74017. })
  74018. if err != nil {
  74019. ec.Error(ctx, err)
  74020. return graphql.Null
  74021. }
  74022. if resTmp == nil {
  74023. if !graphql.HasFieldError(ctx, fc) {
  74024. ec.Errorf(ctx, "must not be null")
  74025. }
  74026. return graphql.Null
  74027. }
  74028. res := resTmp.([]*FulfillmentOrderMerchantRequestEdge)
  74029. fc.Result = res
  74030. return ec.marshalNFulfillmentOrderMerchantRequestEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderMerchantRequestEdgeᚄ(ctx, field.Selections, res)
  74031. }
  74032. func (ec *executionContext) fieldContext_FulfillmentOrderMerchantRequestConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  74033. fc = &graphql.FieldContext{
  74034. Object: "FulfillmentOrderMerchantRequestConnection",
  74035. Field: field,
  74036. IsMethod: false,
  74037. IsResolver: false,
  74038. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  74039. switch field.Name {
  74040. case "cursor":
  74041. return ec.fieldContext_FulfillmentOrderMerchantRequestEdge_cursor(ctx, field)
  74042. case "node":
  74043. return ec.fieldContext_FulfillmentOrderMerchantRequestEdge_node(ctx, field)
  74044. }
  74045. return nil, fmt.Errorf("no field named %q was found under type FulfillmentOrderMerchantRequestEdge", field.Name)
  74046. },
  74047. }
  74048. return fc, nil
  74049. }
  74050. func (ec *executionContext) _FulfillmentOrderMerchantRequestConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderMerchantRequestConnection) (ret graphql.Marshaler) {
  74051. fc, err := ec.fieldContext_FulfillmentOrderMerchantRequestConnection_nodes(ctx, field)
  74052. if err != nil {
  74053. return graphql.Null
  74054. }
  74055. ctx = graphql.WithFieldContext(ctx, fc)
  74056. defer func() {
  74057. if r := recover(); r != nil {
  74058. ec.Error(ctx, ec.Recover(ctx, r))
  74059. ret = graphql.Null
  74060. }
  74061. }()
  74062. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  74063. ctx = rctx // use context from middleware stack in children
  74064. return obj.Nodes, nil
  74065. })
  74066. if err != nil {
  74067. ec.Error(ctx, err)
  74068. return graphql.Null
  74069. }
  74070. if resTmp == nil {
  74071. if !graphql.HasFieldError(ctx, fc) {
  74072. ec.Errorf(ctx, "must not be null")
  74073. }
  74074. return graphql.Null
  74075. }
  74076. res := resTmp.([]*FulfillmentOrderMerchantRequest)
  74077. fc.Result = res
  74078. return ec.marshalNFulfillmentOrderMerchantRequest2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderMerchantRequestᚄ(ctx, field.Selections, res)
  74079. }
  74080. func (ec *executionContext) fieldContext_FulfillmentOrderMerchantRequestConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  74081. fc = &graphql.FieldContext{
  74082. Object: "FulfillmentOrderMerchantRequestConnection",
  74083. Field: field,
  74084. IsMethod: false,
  74085. IsResolver: false,
  74086. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  74087. switch field.Name {
  74088. case "id":
  74089. return ec.fieldContext_FulfillmentOrderMerchantRequest_id(ctx, field)
  74090. case "kind":
  74091. return ec.fieldContext_FulfillmentOrderMerchantRequest_kind(ctx, field)
  74092. case "message":
  74093. return ec.fieldContext_FulfillmentOrderMerchantRequest_message(ctx, field)
  74094. case "requestOptions":
  74095. return ec.fieldContext_FulfillmentOrderMerchantRequest_requestOptions(ctx, field)
  74096. case "responseData":
  74097. return ec.fieldContext_FulfillmentOrderMerchantRequest_responseData(ctx, field)
  74098. case "sentAt":
  74099. return ec.fieldContext_FulfillmentOrderMerchantRequest_sentAt(ctx, field)
  74100. }
  74101. return nil, fmt.Errorf("no field named %q was found under type FulfillmentOrderMerchantRequest", field.Name)
  74102. },
  74103. }
  74104. return fc, nil
  74105. }
  74106. func (ec *executionContext) _FulfillmentOrderMerchantRequestConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderMerchantRequestConnection) (ret graphql.Marshaler) {
  74107. fc, err := ec.fieldContext_FulfillmentOrderMerchantRequestConnection_pageInfo(ctx, field)
  74108. if err != nil {
  74109. return graphql.Null
  74110. }
  74111. ctx = graphql.WithFieldContext(ctx, fc)
  74112. defer func() {
  74113. if r := recover(); r != nil {
  74114. ec.Error(ctx, ec.Recover(ctx, r))
  74115. ret = graphql.Null
  74116. }
  74117. }()
  74118. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  74119. ctx = rctx // use context from middleware stack in children
  74120. return obj.PageInfo, nil
  74121. })
  74122. if err != nil {
  74123. ec.Error(ctx, err)
  74124. return graphql.Null
  74125. }
  74126. if resTmp == nil {
  74127. if !graphql.HasFieldError(ctx, fc) {
  74128. ec.Errorf(ctx, "must not be null")
  74129. }
  74130. return graphql.Null
  74131. }
  74132. res := resTmp.(*PageInfo)
  74133. fc.Result = res
  74134. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  74135. }
  74136. func (ec *executionContext) fieldContext_FulfillmentOrderMerchantRequestConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  74137. fc = &graphql.FieldContext{
  74138. Object: "FulfillmentOrderMerchantRequestConnection",
  74139. Field: field,
  74140. IsMethod: false,
  74141. IsResolver: false,
  74142. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  74143. switch field.Name {
  74144. case "endCursor":
  74145. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  74146. case "hasNextPage":
  74147. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  74148. case "hasPreviousPage":
  74149. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  74150. case "startCursor":
  74151. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  74152. }
  74153. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  74154. },
  74155. }
  74156. return fc, nil
  74157. }
  74158. func (ec *executionContext) _FulfillmentOrderMerchantRequestEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderMerchantRequestEdge) (ret graphql.Marshaler) {
  74159. fc, err := ec.fieldContext_FulfillmentOrderMerchantRequestEdge_cursor(ctx, field)
  74160. if err != nil {
  74161. return graphql.Null
  74162. }
  74163. ctx = graphql.WithFieldContext(ctx, fc)
  74164. defer func() {
  74165. if r := recover(); r != nil {
  74166. ec.Error(ctx, ec.Recover(ctx, r))
  74167. ret = graphql.Null
  74168. }
  74169. }()
  74170. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  74171. ctx = rctx // use context from middleware stack in children
  74172. return obj.Cursor, nil
  74173. })
  74174. if err != nil {
  74175. ec.Error(ctx, err)
  74176. return graphql.Null
  74177. }
  74178. if resTmp == nil {
  74179. if !graphql.HasFieldError(ctx, fc) {
  74180. ec.Errorf(ctx, "must not be null")
  74181. }
  74182. return graphql.Null
  74183. }
  74184. res := resTmp.(string)
  74185. fc.Result = res
  74186. return ec.marshalNString2string(ctx, field.Selections, res)
  74187. }
  74188. func (ec *executionContext) fieldContext_FulfillmentOrderMerchantRequestEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  74189. fc = &graphql.FieldContext{
  74190. Object: "FulfillmentOrderMerchantRequestEdge",
  74191. Field: field,
  74192. IsMethod: false,
  74193. IsResolver: false,
  74194. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  74195. return nil, errors.New("field of type String does not have child fields")
  74196. },
  74197. }
  74198. return fc, nil
  74199. }
  74200. func (ec *executionContext) _FulfillmentOrderMerchantRequestEdge_node(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderMerchantRequestEdge) (ret graphql.Marshaler) {
  74201. fc, err := ec.fieldContext_FulfillmentOrderMerchantRequestEdge_node(ctx, field)
  74202. if err != nil {
  74203. return graphql.Null
  74204. }
  74205. ctx = graphql.WithFieldContext(ctx, fc)
  74206. defer func() {
  74207. if r := recover(); r != nil {
  74208. ec.Error(ctx, ec.Recover(ctx, r))
  74209. ret = graphql.Null
  74210. }
  74211. }()
  74212. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  74213. ctx = rctx // use context from middleware stack in children
  74214. return obj.Node, nil
  74215. })
  74216. if err != nil {
  74217. ec.Error(ctx, err)
  74218. return graphql.Null
  74219. }
  74220. if resTmp == nil {
  74221. if !graphql.HasFieldError(ctx, fc) {
  74222. ec.Errorf(ctx, "must not be null")
  74223. }
  74224. return graphql.Null
  74225. }
  74226. res := resTmp.(*FulfillmentOrderMerchantRequest)
  74227. fc.Result = res
  74228. return ec.marshalNFulfillmentOrderMerchantRequest2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderMerchantRequest(ctx, field.Selections, res)
  74229. }
  74230. func (ec *executionContext) fieldContext_FulfillmentOrderMerchantRequestEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  74231. fc = &graphql.FieldContext{
  74232. Object: "FulfillmentOrderMerchantRequestEdge",
  74233. Field: field,
  74234. IsMethod: false,
  74235. IsResolver: false,
  74236. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  74237. switch field.Name {
  74238. case "id":
  74239. return ec.fieldContext_FulfillmentOrderMerchantRequest_id(ctx, field)
  74240. case "kind":
  74241. return ec.fieldContext_FulfillmentOrderMerchantRequest_kind(ctx, field)
  74242. case "message":
  74243. return ec.fieldContext_FulfillmentOrderMerchantRequest_message(ctx, field)
  74244. case "requestOptions":
  74245. return ec.fieldContext_FulfillmentOrderMerchantRequest_requestOptions(ctx, field)
  74246. case "responseData":
  74247. return ec.fieldContext_FulfillmentOrderMerchantRequest_responseData(ctx, field)
  74248. case "sentAt":
  74249. return ec.fieldContext_FulfillmentOrderMerchantRequest_sentAt(ctx, field)
  74250. }
  74251. return nil, fmt.Errorf("no field named %q was found under type FulfillmentOrderMerchantRequest", field.Name)
  74252. },
  74253. }
  74254. return fc, nil
  74255. }
  74256. func (ec *executionContext) _FulfillmentOrderSupportedAction_action(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderSupportedAction) (ret graphql.Marshaler) {
  74257. fc, err := ec.fieldContext_FulfillmentOrderSupportedAction_action(ctx, field)
  74258. if err != nil {
  74259. return graphql.Null
  74260. }
  74261. ctx = graphql.WithFieldContext(ctx, fc)
  74262. defer func() {
  74263. if r := recover(); r != nil {
  74264. ec.Error(ctx, ec.Recover(ctx, r))
  74265. ret = graphql.Null
  74266. }
  74267. }()
  74268. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  74269. ctx = rctx // use context from middleware stack in children
  74270. return obj.Action, nil
  74271. })
  74272. if err != nil {
  74273. ec.Error(ctx, err)
  74274. return graphql.Null
  74275. }
  74276. if resTmp == nil {
  74277. if !graphql.HasFieldError(ctx, fc) {
  74278. ec.Errorf(ctx, "must not be null")
  74279. }
  74280. return graphql.Null
  74281. }
  74282. res := resTmp.(FulfillmentOrderAction)
  74283. fc.Result = res
  74284. return ec.marshalNFulfillmentOrderAction2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderAction(ctx, field.Selections, res)
  74285. }
  74286. func (ec *executionContext) fieldContext_FulfillmentOrderSupportedAction_action(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  74287. fc = &graphql.FieldContext{
  74288. Object: "FulfillmentOrderSupportedAction",
  74289. Field: field,
  74290. IsMethod: false,
  74291. IsResolver: false,
  74292. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  74293. return nil, errors.New("field of type FulfillmentOrderAction does not have child fields")
  74294. },
  74295. }
  74296. return fc, nil
  74297. }
  74298. func (ec *executionContext) _FulfillmentOrderSupportedAction_externalUrl(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOrderSupportedAction) (ret graphql.Marshaler) {
  74299. fc, err := ec.fieldContext_FulfillmentOrderSupportedAction_externalUrl(ctx, field)
  74300. if err != nil {
  74301. return graphql.Null
  74302. }
  74303. ctx = graphql.WithFieldContext(ctx, fc)
  74304. defer func() {
  74305. if r := recover(); r != nil {
  74306. ec.Error(ctx, ec.Recover(ctx, r))
  74307. ret = graphql.Null
  74308. }
  74309. }()
  74310. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  74311. ctx = rctx // use context from middleware stack in children
  74312. return obj.ExternalURL, nil
  74313. })
  74314. if err != nil {
  74315. ec.Error(ctx, err)
  74316. return graphql.Null
  74317. }
  74318. if resTmp == nil {
  74319. return graphql.Null
  74320. }
  74321. res := resTmp.(*string)
  74322. fc.Result = res
  74323. return ec.marshalOURL2ᚖstring(ctx, field.Selections, res)
  74324. }
  74325. func (ec *executionContext) fieldContext_FulfillmentOrderSupportedAction_externalUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  74326. fc = &graphql.FieldContext{
  74327. Object: "FulfillmentOrderSupportedAction",
  74328. Field: field,
  74329. IsMethod: false,
  74330. IsResolver: false,
  74331. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  74332. return nil, errors.New("field of type URL does not have child fields")
  74333. },
  74334. }
  74335. return fc, nil
  74336. }
  74337. func (ec *executionContext) _FulfillmentOriginAddress_address1(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOriginAddress) (ret graphql.Marshaler) {
  74338. fc, err := ec.fieldContext_FulfillmentOriginAddress_address1(ctx, field)
  74339. if err != nil {
  74340. return graphql.Null
  74341. }
  74342. ctx = graphql.WithFieldContext(ctx, fc)
  74343. defer func() {
  74344. if r := recover(); r != nil {
  74345. ec.Error(ctx, ec.Recover(ctx, r))
  74346. ret = graphql.Null
  74347. }
  74348. }()
  74349. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  74350. ctx = rctx // use context from middleware stack in children
  74351. return obj.Address1, nil
  74352. })
  74353. if err != nil {
  74354. ec.Error(ctx, err)
  74355. return graphql.Null
  74356. }
  74357. if resTmp == nil {
  74358. return graphql.Null
  74359. }
  74360. res := resTmp.(*string)
  74361. fc.Result = res
  74362. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  74363. }
  74364. func (ec *executionContext) fieldContext_FulfillmentOriginAddress_address1(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  74365. fc = &graphql.FieldContext{
  74366. Object: "FulfillmentOriginAddress",
  74367. Field: field,
  74368. IsMethod: false,
  74369. IsResolver: false,
  74370. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  74371. return nil, errors.New("field of type String does not have child fields")
  74372. },
  74373. }
  74374. return fc, nil
  74375. }
  74376. func (ec *executionContext) _FulfillmentOriginAddress_address2(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOriginAddress) (ret graphql.Marshaler) {
  74377. fc, err := ec.fieldContext_FulfillmentOriginAddress_address2(ctx, field)
  74378. if err != nil {
  74379. return graphql.Null
  74380. }
  74381. ctx = graphql.WithFieldContext(ctx, fc)
  74382. defer func() {
  74383. if r := recover(); r != nil {
  74384. ec.Error(ctx, ec.Recover(ctx, r))
  74385. ret = graphql.Null
  74386. }
  74387. }()
  74388. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  74389. ctx = rctx // use context from middleware stack in children
  74390. return obj.Address2, nil
  74391. })
  74392. if err != nil {
  74393. ec.Error(ctx, err)
  74394. return graphql.Null
  74395. }
  74396. if resTmp == nil {
  74397. return graphql.Null
  74398. }
  74399. res := resTmp.(*string)
  74400. fc.Result = res
  74401. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  74402. }
  74403. func (ec *executionContext) fieldContext_FulfillmentOriginAddress_address2(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  74404. fc = &graphql.FieldContext{
  74405. Object: "FulfillmentOriginAddress",
  74406. Field: field,
  74407. IsMethod: false,
  74408. IsResolver: false,
  74409. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  74410. return nil, errors.New("field of type String does not have child fields")
  74411. },
  74412. }
  74413. return fc, nil
  74414. }
  74415. func (ec *executionContext) _FulfillmentOriginAddress_city(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOriginAddress) (ret graphql.Marshaler) {
  74416. fc, err := ec.fieldContext_FulfillmentOriginAddress_city(ctx, field)
  74417. if err != nil {
  74418. return graphql.Null
  74419. }
  74420. ctx = graphql.WithFieldContext(ctx, fc)
  74421. defer func() {
  74422. if r := recover(); r != nil {
  74423. ec.Error(ctx, ec.Recover(ctx, r))
  74424. ret = graphql.Null
  74425. }
  74426. }()
  74427. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  74428. ctx = rctx // use context from middleware stack in children
  74429. return obj.City, nil
  74430. })
  74431. if err != nil {
  74432. ec.Error(ctx, err)
  74433. return graphql.Null
  74434. }
  74435. if resTmp == nil {
  74436. return graphql.Null
  74437. }
  74438. res := resTmp.(*string)
  74439. fc.Result = res
  74440. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  74441. }
  74442. func (ec *executionContext) fieldContext_FulfillmentOriginAddress_city(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  74443. fc = &graphql.FieldContext{
  74444. Object: "FulfillmentOriginAddress",
  74445. Field: field,
  74446. IsMethod: false,
  74447. IsResolver: false,
  74448. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  74449. return nil, errors.New("field of type String does not have child fields")
  74450. },
  74451. }
  74452. return fc, nil
  74453. }
  74454. func (ec *executionContext) _FulfillmentOriginAddress_countryCode(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOriginAddress) (ret graphql.Marshaler) {
  74455. fc, err := ec.fieldContext_FulfillmentOriginAddress_countryCode(ctx, field)
  74456. if err != nil {
  74457. return graphql.Null
  74458. }
  74459. ctx = graphql.WithFieldContext(ctx, fc)
  74460. defer func() {
  74461. if r := recover(); r != nil {
  74462. ec.Error(ctx, ec.Recover(ctx, r))
  74463. ret = graphql.Null
  74464. }
  74465. }()
  74466. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  74467. ctx = rctx // use context from middleware stack in children
  74468. return obj.CountryCode, nil
  74469. })
  74470. if err != nil {
  74471. ec.Error(ctx, err)
  74472. return graphql.Null
  74473. }
  74474. if resTmp == nil {
  74475. if !graphql.HasFieldError(ctx, fc) {
  74476. ec.Errorf(ctx, "must not be null")
  74477. }
  74478. return graphql.Null
  74479. }
  74480. res := resTmp.(string)
  74481. fc.Result = res
  74482. return ec.marshalNString2string(ctx, field.Selections, res)
  74483. }
  74484. func (ec *executionContext) fieldContext_FulfillmentOriginAddress_countryCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  74485. fc = &graphql.FieldContext{
  74486. Object: "FulfillmentOriginAddress",
  74487. Field: field,
  74488. IsMethod: false,
  74489. IsResolver: false,
  74490. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  74491. return nil, errors.New("field of type String does not have child fields")
  74492. },
  74493. }
  74494. return fc, nil
  74495. }
  74496. func (ec *executionContext) _FulfillmentOriginAddress_provinceCode(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOriginAddress) (ret graphql.Marshaler) {
  74497. fc, err := ec.fieldContext_FulfillmentOriginAddress_provinceCode(ctx, field)
  74498. if err != nil {
  74499. return graphql.Null
  74500. }
  74501. ctx = graphql.WithFieldContext(ctx, fc)
  74502. defer func() {
  74503. if r := recover(); r != nil {
  74504. ec.Error(ctx, ec.Recover(ctx, r))
  74505. ret = graphql.Null
  74506. }
  74507. }()
  74508. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  74509. ctx = rctx // use context from middleware stack in children
  74510. return obj.ProvinceCode, nil
  74511. })
  74512. if err != nil {
  74513. ec.Error(ctx, err)
  74514. return graphql.Null
  74515. }
  74516. if resTmp == nil {
  74517. return graphql.Null
  74518. }
  74519. res := resTmp.(*string)
  74520. fc.Result = res
  74521. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  74522. }
  74523. func (ec *executionContext) fieldContext_FulfillmentOriginAddress_provinceCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  74524. fc = &graphql.FieldContext{
  74525. Object: "FulfillmentOriginAddress",
  74526. Field: field,
  74527. IsMethod: false,
  74528. IsResolver: false,
  74529. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  74530. return nil, errors.New("field of type String does not have child fields")
  74531. },
  74532. }
  74533. return fc, nil
  74534. }
  74535. func (ec *executionContext) _FulfillmentOriginAddress_zip(ctx context.Context, field graphql.CollectedField, obj *FulfillmentOriginAddress) (ret graphql.Marshaler) {
  74536. fc, err := ec.fieldContext_FulfillmentOriginAddress_zip(ctx, field)
  74537. if err != nil {
  74538. return graphql.Null
  74539. }
  74540. ctx = graphql.WithFieldContext(ctx, fc)
  74541. defer func() {
  74542. if r := recover(); r != nil {
  74543. ec.Error(ctx, ec.Recover(ctx, r))
  74544. ret = graphql.Null
  74545. }
  74546. }()
  74547. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  74548. ctx = rctx // use context from middleware stack in children
  74549. return obj.Zip, nil
  74550. })
  74551. if err != nil {
  74552. ec.Error(ctx, err)
  74553. return graphql.Null
  74554. }
  74555. if resTmp == nil {
  74556. return graphql.Null
  74557. }
  74558. res := resTmp.(*string)
  74559. fc.Result = res
  74560. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  74561. }
  74562. func (ec *executionContext) fieldContext_FulfillmentOriginAddress_zip(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  74563. fc = &graphql.FieldContext{
  74564. Object: "FulfillmentOriginAddress",
  74565. Field: field,
  74566. IsMethod: false,
  74567. IsResolver: false,
  74568. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  74569. return nil, errors.New("field of type String does not have child fields")
  74570. },
  74571. }
  74572. return fc, nil
  74573. }
  74574. func (ec *executionContext) _FulfillmentService_callbackUrl(ctx context.Context, field graphql.CollectedField, obj *FulfillmentService) (ret graphql.Marshaler) {
  74575. fc, err := ec.fieldContext_FulfillmentService_callbackUrl(ctx, field)
  74576. if err != nil {
  74577. return graphql.Null
  74578. }
  74579. ctx = graphql.WithFieldContext(ctx, fc)
  74580. defer func() {
  74581. if r := recover(); r != nil {
  74582. ec.Error(ctx, ec.Recover(ctx, r))
  74583. ret = graphql.Null
  74584. }
  74585. }()
  74586. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  74587. ctx = rctx // use context from middleware stack in children
  74588. return obj.CallbackURL, nil
  74589. })
  74590. if err != nil {
  74591. ec.Error(ctx, err)
  74592. return graphql.Null
  74593. }
  74594. if resTmp == nil {
  74595. return graphql.Null
  74596. }
  74597. res := resTmp.(*string)
  74598. fc.Result = res
  74599. return ec.marshalOURL2ᚖstring(ctx, field.Selections, res)
  74600. }
  74601. func (ec *executionContext) fieldContext_FulfillmentService_callbackUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  74602. fc = &graphql.FieldContext{
  74603. Object: "FulfillmentService",
  74604. Field: field,
  74605. IsMethod: false,
  74606. IsResolver: false,
  74607. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  74608. return nil, errors.New("field of type URL does not have child fields")
  74609. },
  74610. }
  74611. return fc, nil
  74612. }
  74613. func (ec *executionContext) _FulfillmentService_fulfillmentOrdersOptIn(ctx context.Context, field graphql.CollectedField, obj *FulfillmentService) (ret graphql.Marshaler) {
  74614. fc, err := ec.fieldContext_FulfillmentService_fulfillmentOrdersOptIn(ctx, field)
  74615. if err != nil {
  74616. return graphql.Null
  74617. }
  74618. ctx = graphql.WithFieldContext(ctx, fc)
  74619. defer func() {
  74620. if r := recover(); r != nil {
  74621. ec.Error(ctx, ec.Recover(ctx, r))
  74622. ret = graphql.Null
  74623. }
  74624. }()
  74625. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  74626. ctx = rctx // use context from middleware stack in children
  74627. return obj.FulfillmentOrdersOptIn, nil
  74628. })
  74629. if err != nil {
  74630. ec.Error(ctx, err)
  74631. return graphql.Null
  74632. }
  74633. if resTmp == nil {
  74634. if !graphql.HasFieldError(ctx, fc) {
  74635. ec.Errorf(ctx, "must not be null")
  74636. }
  74637. return graphql.Null
  74638. }
  74639. res := resTmp.(bool)
  74640. fc.Result = res
  74641. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  74642. }
  74643. func (ec *executionContext) fieldContext_FulfillmentService_fulfillmentOrdersOptIn(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  74644. fc = &graphql.FieldContext{
  74645. Object: "FulfillmentService",
  74646. Field: field,
  74647. IsMethod: false,
  74648. IsResolver: false,
  74649. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  74650. return nil, errors.New("field of type Boolean does not have child fields")
  74651. },
  74652. }
  74653. return fc, nil
  74654. }
  74655. func (ec *executionContext) _FulfillmentService_handle(ctx context.Context, field graphql.CollectedField, obj *FulfillmentService) (ret graphql.Marshaler) {
  74656. fc, err := ec.fieldContext_FulfillmentService_handle(ctx, field)
  74657. if err != nil {
  74658. return graphql.Null
  74659. }
  74660. ctx = graphql.WithFieldContext(ctx, fc)
  74661. defer func() {
  74662. if r := recover(); r != nil {
  74663. ec.Error(ctx, ec.Recover(ctx, r))
  74664. ret = graphql.Null
  74665. }
  74666. }()
  74667. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  74668. ctx = rctx // use context from middleware stack in children
  74669. return obj.Handle, nil
  74670. })
  74671. if err != nil {
  74672. ec.Error(ctx, err)
  74673. return graphql.Null
  74674. }
  74675. if resTmp == nil {
  74676. if !graphql.HasFieldError(ctx, fc) {
  74677. ec.Errorf(ctx, "must not be null")
  74678. }
  74679. return graphql.Null
  74680. }
  74681. res := resTmp.(string)
  74682. fc.Result = res
  74683. return ec.marshalNString2string(ctx, field.Selections, res)
  74684. }
  74685. func (ec *executionContext) fieldContext_FulfillmentService_handle(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  74686. fc = &graphql.FieldContext{
  74687. Object: "FulfillmentService",
  74688. Field: field,
  74689. IsMethod: false,
  74690. IsResolver: false,
  74691. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  74692. return nil, errors.New("field of type String does not have child fields")
  74693. },
  74694. }
  74695. return fc, nil
  74696. }
  74697. func (ec *executionContext) _FulfillmentService_id(ctx context.Context, field graphql.CollectedField, obj *FulfillmentService) (ret graphql.Marshaler) {
  74698. fc, err := ec.fieldContext_FulfillmentService_id(ctx, field)
  74699. if err != nil {
  74700. return graphql.Null
  74701. }
  74702. ctx = graphql.WithFieldContext(ctx, fc)
  74703. defer func() {
  74704. if r := recover(); r != nil {
  74705. ec.Error(ctx, ec.Recover(ctx, r))
  74706. ret = graphql.Null
  74707. }
  74708. }()
  74709. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  74710. ctx = rctx // use context from middleware stack in children
  74711. return obj.ID, nil
  74712. })
  74713. if err != nil {
  74714. ec.Error(ctx, err)
  74715. return graphql.Null
  74716. }
  74717. if resTmp == nil {
  74718. if !graphql.HasFieldError(ctx, fc) {
  74719. ec.Errorf(ctx, "must not be null")
  74720. }
  74721. return graphql.Null
  74722. }
  74723. res := resTmp.(string)
  74724. fc.Result = res
  74725. return ec.marshalNID2string(ctx, field.Selections, res)
  74726. }
  74727. func (ec *executionContext) fieldContext_FulfillmentService_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  74728. fc = &graphql.FieldContext{
  74729. Object: "FulfillmentService",
  74730. Field: field,
  74731. IsMethod: false,
  74732. IsResolver: false,
  74733. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  74734. return nil, errors.New("field of type ID does not have child fields")
  74735. },
  74736. }
  74737. return fc, nil
  74738. }
  74739. func (ec *executionContext) _FulfillmentService_inventoryManagement(ctx context.Context, field graphql.CollectedField, obj *FulfillmentService) (ret graphql.Marshaler) {
  74740. fc, err := ec.fieldContext_FulfillmentService_inventoryManagement(ctx, field)
  74741. if err != nil {
  74742. return graphql.Null
  74743. }
  74744. ctx = graphql.WithFieldContext(ctx, fc)
  74745. defer func() {
  74746. if r := recover(); r != nil {
  74747. ec.Error(ctx, ec.Recover(ctx, r))
  74748. ret = graphql.Null
  74749. }
  74750. }()
  74751. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  74752. ctx = rctx // use context from middleware stack in children
  74753. return obj.InventoryManagement, nil
  74754. })
  74755. if err != nil {
  74756. ec.Error(ctx, err)
  74757. return graphql.Null
  74758. }
  74759. if resTmp == nil {
  74760. if !graphql.HasFieldError(ctx, fc) {
  74761. ec.Errorf(ctx, "must not be null")
  74762. }
  74763. return graphql.Null
  74764. }
  74765. res := resTmp.(bool)
  74766. fc.Result = res
  74767. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  74768. }
  74769. func (ec *executionContext) fieldContext_FulfillmentService_inventoryManagement(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  74770. fc = &graphql.FieldContext{
  74771. Object: "FulfillmentService",
  74772. Field: field,
  74773. IsMethod: false,
  74774. IsResolver: false,
  74775. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  74776. return nil, errors.New("field of type Boolean does not have child fields")
  74777. },
  74778. }
  74779. return fc, nil
  74780. }
  74781. func (ec *executionContext) _FulfillmentService_location(ctx context.Context, field graphql.CollectedField, obj *FulfillmentService) (ret graphql.Marshaler) {
  74782. fc, err := ec.fieldContext_FulfillmentService_location(ctx, field)
  74783. if err != nil {
  74784. return graphql.Null
  74785. }
  74786. ctx = graphql.WithFieldContext(ctx, fc)
  74787. defer func() {
  74788. if r := recover(); r != nil {
  74789. ec.Error(ctx, ec.Recover(ctx, r))
  74790. ret = graphql.Null
  74791. }
  74792. }()
  74793. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  74794. ctx = rctx // use context from middleware stack in children
  74795. return obj.Location, nil
  74796. })
  74797. if err != nil {
  74798. ec.Error(ctx, err)
  74799. return graphql.Null
  74800. }
  74801. if resTmp == nil {
  74802. return graphql.Null
  74803. }
  74804. res := resTmp.(*Location)
  74805. fc.Result = res
  74806. return ec.marshalOLocation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocation(ctx, field.Selections, res)
  74807. }
  74808. func (ec *executionContext) fieldContext_FulfillmentService_location(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  74809. fc = &graphql.FieldContext{
  74810. Object: "FulfillmentService",
  74811. Field: field,
  74812. IsMethod: false,
  74813. IsResolver: false,
  74814. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  74815. switch field.Name {
  74816. case "activatable":
  74817. return ec.fieldContext_Location_activatable(ctx, field)
  74818. case "address":
  74819. return ec.fieldContext_Location_address(ctx, field)
  74820. case "addressVerified":
  74821. return ec.fieldContext_Location_addressVerified(ctx, field)
  74822. case "deactivatable":
  74823. return ec.fieldContext_Location_deactivatable(ctx, field)
  74824. case "deactivatedAt":
  74825. return ec.fieldContext_Location_deactivatedAt(ctx, field)
  74826. case "deletable":
  74827. return ec.fieldContext_Location_deletable(ctx, field)
  74828. case "fulfillmentService":
  74829. return ec.fieldContext_Location_fulfillmentService(ctx, field)
  74830. case "fulfillsOnlineOrders":
  74831. return ec.fieldContext_Location_fulfillsOnlineOrders(ctx, field)
  74832. case "hasActiveInventory":
  74833. return ec.fieldContext_Location_hasActiveInventory(ctx, field)
  74834. case "hasUnfulfilledOrders":
  74835. return ec.fieldContext_Location_hasUnfulfilledOrders(ctx, field)
  74836. case "id":
  74837. return ec.fieldContext_Location_id(ctx, field)
  74838. case "inventoryLevel":
  74839. return ec.fieldContext_Location_inventoryLevel(ctx, field)
  74840. case "inventoryLevels":
  74841. return ec.fieldContext_Location_inventoryLevels(ctx, field)
  74842. case "isActive":
  74843. return ec.fieldContext_Location_isActive(ctx, field)
  74844. case "legacyResourceId":
  74845. return ec.fieldContext_Location_legacyResourceId(ctx, field)
  74846. case "metafield":
  74847. return ec.fieldContext_Location_metafield(ctx, field)
  74848. case "metafieldDefinitions":
  74849. return ec.fieldContext_Location_metafieldDefinitions(ctx, field)
  74850. case "metafields":
  74851. return ec.fieldContext_Location_metafields(ctx, field)
  74852. case "name":
  74853. return ec.fieldContext_Location_name(ctx, field)
  74854. case "privateMetafield":
  74855. return ec.fieldContext_Location_privateMetafield(ctx, field)
  74856. case "privateMetafields":
  74857. return ec.fieldContext_Location_privateMetafields(ctx, field)
  74858. case "shipsInventory":
  74859. return ec.fieldContext_Location_shipsInventory(ctx, field)
  74860. case "suggestedAddresses":
  74861. return ec.fieldContext_Location_suggestedAddresses(ctx, field)
  74862. }
  74863. return nil, fmt.Errorf("no field named %q was found under type Location", field.Name)
  74864. },
  74865. }
  74866. return fc, nil
  74867. }
  74868. func (ec *executionContext) _FulfillmentService_permitsSkuSharing(ctx context.Context, field graphql.CollectedField, obj *FulfillmentService) (ret graphql.Marshaler) {
  74869. fc, err := ec.fieldContext_FulfillmentService_permitsSkuSharing(ctx, field)
  74870. if err != nil {
  74871. return graphql.Null
  74872. }
  74873. ctx = graphql.WithFieldContext(ctx, fc)
  74874. defer func() {
  74875. if r := recover(); r != nil {
  74876. ec.Error(ctx, ec.Recover(ctx, r))
  74877. ret = graphql.Null
  74878. }
  74879. }()
  74880. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  74881. ctx = rctx // use context from middleware stack in children
  74882. return obj.PermitsSkuSharing, nil
  74883. })
  74884. if err != nil {
  74885. ec.Error(ctx, err)
  74886. return graphql.Null
  74887. }
  74888. if resTmp == nil {
  74889. if !graphql.HasFieldError(ctx, fc) {
  74890. ec.Errorf(ctx, "must not be null")
  74891. }
  74892. return graphql.Null
  74893. }
  74894. res := resTmp.(bool)
  74895. fc.Result = res
  74896. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  74897. }
  74898. func (ec *executionContext) fieldContext_FulfillmentService_permitsSkuSharing(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  74899. fc = &graphql.FieldContext{
  74900. Object: "FulfillmentService",
  74901. Field: field,
  74902. IsMethod: false,
  74903. IsResolver: false,
  74904. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  74905. return nil, errors.New("field of type Boolean does not have child fields")
  74906. },
  74907. }
  74908. return fc, nil
  74909. }
  74910. func (ec *executionContext) _FulfillmentService_productBased(ctx context.Context, field graphql.CollectedField, obj *FulfillmentService) (ret graphql.Marshaler) {
  74911. fc, err := ec.fieldContext_FulfillmentService_productBased(ctx, field)
  74912. if err != nil {
  74913. return graphql.Null
  74914. }
  74915. ctx = graphql.WithFieldContext(ctx, fc)
  74916. defer func() {
  74917. if r := recover(); r != nil {
  74918. ec.Error(ctx, ec.Recover(ctx, r))
  74919. ret = graphql.Null
  74920. }
  74921. }()
  74922. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  74923. ctx = rctx // use context from middleware stack in children
  74924. return obj.ProductBased, nil
  74925. })
  74926. if err != nil {
  74927. ec.Error(ctx, err)
  74928. return graphql.Null
  74929. }
  74930. if resTmp == nil {
  74931. if !graphql.HasFieldError(ctx, fc) {
  74932. ec.Errorf(ctx, "must not be null")
  74933. }
  74934. return graphql.Null
  74935. }
  74936. res := resTmp.(bool)
  74937. fc.Result = res
  74938. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  74939. }
  74940. func (ec *executionContext) fieldContext_FulfillmentService_productBased(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  74941. fc = &graphql.FieldContext{
  74942. Object: "FulfillmentService",
  74943. Field: field,
  74944. IsMethod: false,
  74945. IsResolver: false,
  74946. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  74947. return nil, errors.New("field of type Boolean does not have child fields")
  74948. },
  74949. }
  74950. return fc, nil
  74951. }
  74952. func (ec *executionContext) _FulfillmentService_serviceName(ctx context.Context, field graphql.CollectedField, obj *FulfillmentService) (ret graphql.Marshaler) {
  74953. fc, err := ec.fieldContext_FulfillmentService_serviceName(ctx, field)
  74954. if err != nil {
  74955. return graphql.Null
  74956. }
  74957. ctx = graphql.WithFieldContext(ctx, fc)
  74958. defer func() {
  74959. if r := recover(); r != nil {
  74960. ec.Error(ctx, ec.Recover(ctx, r))
  74961. ret = graphql.Null
  74962. }
  74963. }()
  74964. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  74965. ctx = rctx // use context from middleware stack in children
  74966. return obj.ServiceName, nil
  74967. })
  74968. if err != nil {
  74969. ec.Error(ctx, err)
  74970. return graphql.Null
  74971. }
  74972. if resTmp == nil {
  74973. if !graphql.HasFieldError(ctx, fc) {
  74974. ec.Errorf(ctx, "must not be null")
  74975. }
  74976. return graphql.Null
  74977. }
  74978. res := resTmp.(string)
  74979. fc.Result = res
  74980. return ec.marshalNString2string(ctx, field.Selections, res)
  74981. }
  74982. func (ec *executionContext) fieldContext_FulfillmentService_serviceName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  74983. fc = &graphql.FieldContext{
  74984. Object: "FulfillmentService",
  74985. Field: field,
  74986. IsMethod: false,
  74987. IsResolver: false,
  74988. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  74989. return nil, errors.New("field of type String does not have child fields")
  74990. },
  74991. }
  74992. return fc, nil
  74993. }
  74994. func (ec *executionContext) _FulfillmentService_type(ctx context.Context, field graphql.CollectedField, obj *FulfillmentService) (ret graphql.Marshaler) {
  74995. fc, err := ec.fieldContext_FulfillmentService_type(ctx, field)
  74996. if err != nil {
  74997. return graphql.Null
  74998. }
  74999. ctx = graphql.WithFieldContext(ctx, fc)
  75000. defer func() {
  75001. if r := recover(); r != nil {
  75002. ec.Error(ctx, ec.Recover(ctx, r))
  75003. ret = graphql.Null
  75004. }
  75005. }()
  75006. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  75007. ctx = rctx // use context from middleware stack in children
  75008. return obj.Type, nil
  75009. })
  75010. if err != nil {
  75011. ec.Error(ctx, err)
  75012. return graphql.Null
  75013. }
  75014. if resTmp == nil {
  75015. if !graphql.HasFieldError(ctx, fc) {
  75016. ec.Errorf(ctx, "must not be null")
  75017. }
  75018. return graphql.Null
  75019. }
  75020. res := resTmp.(FulfillmentServiceType)
  75021. fc.Result = res
  75022. return ec.marshalNFulfillmentServiceType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentServiceType(ctx, field.Selections, res)
  75023. }
  75024. func (ec *executionContext) fieldContext_FulfillmentService_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  75025. fc = &graphql.FieldContext{
  75026. Object: "FulfillmentService",
  75027. Field: field,
  75028. IsMethod: false,
  75029. IsResolver: false,
  75030. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  75031. return nil, errors.New("field of type FulfillmentServiceType does not have child fields")
  75032. },
  75033. }
  75034. return fc, nil
  75035. }
  75036. func (ec *executionContext) _FulfillmentTrackingInfo_company(ctx context.Context, field graphql.CollectedField, obj *FulfillmentTrackingInfo) (ret graphql.Marshaler) {
  75037. fc, err := ec.fieldContext_FulfillmentTrackingInfo_company(ctx, field)
  75038. if err != nil {
  75039. return graphql.Null
  75040. }
  75041. ctx = graphql.WithFieldContext(ctx, fc)
  75042. defer func() {
  75043. if r := recover(); r != nil {
  75044. ec.Error(ctx, ec.Recover(ctx, r))
  75045. ret = graphql.Null
  75046. }
  75047. }()
  75048. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  75049. ctx = rctx // use context from middleware stack in children
  75050. return obj.Company, nil
  75051. })
  75052. if err != nil {
  75053. ec.Error(ctx, err)
  75054. return graphql.Null
  75055. }
  75056. if resTmp == nil {
  75057. return graphql.Null
  75058. }
  75059. res := resTmp.(*string)
  75060. fc.Result = res
  75061. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  75062. }
  75063. func (ec *executionContext) fieldContext_FulfillmentTrackingInfo_company(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  75064. fc = &graphql.FieldContext{
  75065. Object: "FulfillmentTrackingInfo",
  75066. Field: field,
  75067. IsMethod: false,
  75068. IsResolver: false,
  75069. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  75070. return nil, errors.New("field of type String does not have child fields")
  75071. },
  75072. }
  75073. return fc, nil
  75074. }
  75075. func (ec *executionContext) _FulfillmentTrackingInfo_number(ctx context.Context, field graphql.CollectedField, obj *FulfillmentTrackingInfo) (ret graphql.Marshaler) {
  75076. fc, err := ec.fieldContext_FulfillmentTrackingInfo_number(ctx, field)
  75077. if err != nil {
  75078. return graphql.Null
  75079. }
  75080. ctx = graphql.WithFieldContext(ctx, fc)
  75081. defer func() {
  75082. if r := recover(); r != nil {
  75083. ec.Error(ctx, ec.Recover(ctx, r))
  75084. ret = graphql.Null
  75085. }
  75086. }()
  75087. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  75088. ctx = rctx // use context from middleware stack in children
  75089. return obj.Number, nil
  75090. })
  75091. if err != nil {
  75092. ec.Error(ctx, err)
  75093. return graphql.Null
  75094. }
  75095. if resTmp == nil {
  75096. return graphql.Null
  75097. }
  75098. res := resTmp.(*string)
  75099. fc.Result = res
  75100. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  75101. }
  75102. func (ec *executionContext) fieldContext_FulfillmentTrackingInfo_number(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  75103. fc = &graphql.FieldContext{
  75104. Object: "FulfillmentTrackingInfo",
  75105. Field: field,
  75106. IsMethod: false,
  75107. IsResolver: false,
  75108. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  75109. return nil, errors.New("field of type String does not have child fields")
  75110. },
  75111. }
  75112. return fc, nil
  75113. }
  75114. func (ec *executionContext) _FulfillmentTrackingInfo_url(ctx context.Context, field graphql.CollectedField, obj *FulfillmentTrackingInfo) (ret graphql.Marshaler) {
  75115. fc, err := ec.fieldContext_FulfillmentTrackingInfo_url(ctx, field)
  75116. if err != nil {
  75117. return graphql.Null
  75118. }
  75119. ctx = graphql.WithFieldContext(ctx, fc)
  75120. defer func() {
  75121. if r := recover(); r != nil {
  75122. ec.Error(ctx, ec.Recover(ctx, r))
  75123. ret = graphql.Null
  75124. }
  75125. }()
  75126. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  75127. ctx = rctx // use context from middleware stack in children
  75128. return obj.URL, nil
  75129. })
  75130. if err != nil {
  75131. ec.Error(ctx, err)
  75132. return graphql.Null
  75133. }
  75134. if resTmp == nil {
  75135. return graphql.Null
  75136. }
  75137. res := resTmp.(*string)
  75138. fc.Result = res
  75139. return ec.marshalOURL2ᚖstring(ctx, field.Selections, res)
  75140. }
  75141. func (ec *executionContext) fieldContext_FulfillmentTrackingInfo_url(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  75142. fc = &graphql.FieldContext{
  75143. Object: "FulfillmentTrackingInfo",
  75144. Field: field,
  75145. IsMethod: false,
  75146. IsResolver: false,
  75147. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  75148. return nil, errors.New("field of type URL does not have child fields")
  75149. },
  75150. }
  75151. return fc, nil
  75152. }
  75153. func (ec *executionContext) _GenericFile_alt(ctx context.Context, field graphql.CollectedField, obj *GenericFile) (ret graphql.Marshaler) {
  75154. fc, err := ec.fieldContext_GenericFile_alt(ctx, field)
  75155. if err != nil {
  75156. return graphql.Null
  75157. }
  75158. ctx = graphql.WithFieldContext(ctx, fc)
  75159. defer func() {
  75160. if r := recover(); r != nil {
  75161. ec.Error(ctx, ec.Recover(ctx, r))
  75162. ret = graphql.Null
  75163. }
  75164. }()
  75165. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  75166. ctx = rctx // use context from middleware stack in children
  75167. return obj.Alt, nil
  75168. })
  75169. if err != nil {
  75170. ec.Error(ctx, err)
  75171. return graphql.Null
  75172. }
  75173. if resTmp == nil {
  75174. return graphql.Null
  75175. }
  75176. res := resTmp.(*string)
  75177. fc.Result = res
  75178. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  75179. }
  75180. func (ec *executionContext) fieldContext_GenericFile_alt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  75181. fc = &graphql.FieldContext{
  75182. Object: "GenericFile",
  75183. Field: field,
  75184. IsMethod: false,
  75185. IsResolver: false,
  75186. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  75187. return nil, errors.New("field of type String does not have child fields")
  75188. },
  75189. }
  75190. return fc, nil
  75191. }
  75192. func (ec *executionContext) _GenericFile_createdAt(ctx context.Context, field graphql.CollectedField, obj *GenericFile) (ret graphql.Marshaler) {
  75193. fc, err := ec.fieldContext_GenericFile_createdAt(ctx, field)
  75194. if err != nil {
  75195. return graphql.Null
  75196. }
  75197. ctx = graphql.WithFieldContext(ctx, fc)
  75198. defer func() {
  75199. if r := recover(); r != nil {
  75200. ec.Error(ctx, ec.Recover(ctx, r))
  75201. ret = graphql.Null
  75202. }
  75203. }()
  75204. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  75205. ctx = rctx // use context from middleware stack in children
  75206. return obj.CreatedAt, nil
  75207. })
  75208. if err != nil {
  75209. ec.Error(ctx, err)
  75210. return graphql.Null
  75211. }
  75212. if resTmp == nil {
  75213. if !graphql.HasFieldError(ctx, fc) {
  75214. ec.Errorf(ctx, "must not be null")
  75215. }
  75216. return graphql.Null
  75217. }
  75218. res := resTmp.(string)
  75219. fc.Result = res
  75220. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  75221. }
  75222. func (ec *executionContext) fieldContext_GenericFile_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  75223. fc = &graphql.FieldContext{
  75224. Object: "GenericFile",
  75225. Field: field,
  75226. IsMethod: false,
  75227. IsResolver: false,
  75228. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  75229. return nil, errors.New("field of type DateTime does not have child fields")
  75230. },
  75231. }
  75232. return fc, nil
  75233. }
  75234. func (ec *executionContext) _GenericFile_fileErrors(ctx context.Context, field graphql.CollectedField, obj *GenericFile) (ret graphql.Marshaler) {
  75235. fc, err := ec.fieldContext_GenericFile_fileErrors(ctx, field)
  75236. if err != nil {
  75237. return graphql.Null
  75238. }
  75239. ctx = graphql.WithFieldContext(ctx, fc)
  75240. defer func() {
  75241. if r := recover(); r != nil {
  75242. ec.Error(ctx, ec.Recover(ctx, r))
  75243. ret = graphql.Null
  75244. }
  75245. }()
  75246. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  75247. ctx = rctx // use context from middleware stack in children
  75248. return obj.FileErrors, nil
  75249. })
  75250. if err != nil {
  75251. ec.Error(ctx, err)
  75252. return graphql.Null
  75253. }
  75254. if resTmp == nil {
  75255. if !graphql.HasFieldError(ctx, fc) {
  75256. ec.Errorf(ctx, "must not be null")
  75257. }
  75258. return graphql.Null
  75259. }
  75260. res := resTmp.([]*FileError)
  75261. fc.Result = res
  75262. return ec.marshalNFileError2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFileErrorᚄ(ctx, field.Selections, res)
  75263. }
  75264. func (ec *executionContext) fieldContext_GenericFile_fileErrors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  75265. fc = &graphql.FieldContext{
  75266. Object: "GenericFile",
  75267. Field: field,
  75268. IsMethod: false,
  75269. IsResolver: false,
  75270. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  75271. switch field.Name {
  75272. case "code":
  75273. return ec.fieldContext_FileError_code(ctx, field)
  75274. case "details":
  75275. return ec.fieldContext_FileError_details(ctx, field)
  75276. case "message":
  75277. return ec.fieldContext_FileError_message(ctx, field)
  75278. }
  75279. return nil, fmt.Errorf("no field named %q was found under type FileError", field.Name)
  75280. },
  75281. }
  75282. return fc, nil
  75283. }
  75284. func (ec *executionContext) _GenericFile_fileStatus(ctx context.Context, field graphql.CollectedField, obj *GenericFile) (ret graphql.Marshaler) {
  75285. fc, err := ec.fieldContext_GenericFile_fileStatus(ctx, field)
  75286. if err != nil {
  75287. return graphql.Null
  75288. }
  75289. ctx = graphql.WithFieldContext(ctx, fc)
  75290. defer func() {
  75291. if r := recover(); r != nil {
  75292. ec.Error(ctx, ec.Recover(ctx, r))
  75293. ret = graphql.Null
  75294. }
  75295. }()
  75296. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  75297. ctx = rctx // use context from middleware stack in children
  75298. return obj.FileStatus, nil
  75299. })
  75300. if err != nil {
  75301. ec.Error(ctx, err)
  75302. return graphql.Null
  75303. }
  75304. if resTmp == nil {
  75305. if !graphql.HasFieldError(ctx, fc) {
  75306. ec.Errorf(ctx, "must not be null")
  75307. }
  75308. return graphql.Null
  75309. }
  75310. res := resTmp.(FileStatus)
  75311. fc.Result = res
  75312. return ec.marshalNFileStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFileStatus(ctx, field.Selections, res)
  75313. }
  75314. func (ec *executionContext) fieldContext_GenericFile_fileStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  75315. fc = &graphql.FieldContext{
  75316. Object: "GenericFile",
  75317. Field: field,
  75318. IsMethod: false,
  75319. IsResolver: false,
  75320. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  75321. return nil, errors.New("field of type FileStatus does not have child fields")
  75322. },
  75323. }
  75324. return fc, nil
  75325. }
  75326. func (ec *executionContext) _GenericFile_id(ctx context.Context, field graphql.CollectedField, obj *GenericFile) (ret graphql.Marshaler) {
  75327. fc, err := ec.fieldContext_GenericFile_id(ctx, field)
  75328. if err != nil {
  75329. return graphql.Null
  75330. }
  75331. ctx = graphql.WithFieldContext(ctx, fc)
  75332. defer func() {
  75333. if r := recover(); r != nil {
  75334. ec.Error(ctx, ec.Recover(ctx, r))
  75335. ret = graphql.Null
  75336. }
  75337. }()
  75338. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  75339. ctx = rctx // use context from middleware stack in children
  75340. return obj.ID, nil
  75341. })
  75342. if err != nil {
  75343. ec.Error(ctx, err)
  75344. return graphql.Null
  75345. }
  75346. if resTmp == nil {
  75347. if !graphql.HasFieldError(ctx, fc) {
  75348. ec.Errorf(ctx, "must not be null")
  75349. }
  75350. return graphql.Null
  75351. }
  75352. res := resTmp.(string)
  75353. fc.Result = res
  75354. return ec.marshalNID2string(ctx, field.Selections, res)
  75355. }
  75356. func (ec *executionContext) fieldContext_GenericFile_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  75357. fc = &graphql.FieldContext{
  75358. Object: "GenericFile",
  75359. Field: field,
  75360. IsMethod: false,
  75361. IsResolver: false,
  75362. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  75363. return nil, errors.New("field of type ID does not have child fields")
  75364. },
  75365. }
  75366. return fc, nil
  75367. }
  75368. func (ec *executionContext) _GenericFile_mimeType(ctx context.Context, field graphql.CollectedField, obj *GenericFile) (ret graphql.Marshaler) {
  75369. fc, err := ec.fieldContext_GenericFile_mimeType(ctx, field)
  75370. if err != nil {
  75371. return graphql.Null
  75372. }
  75373. ctx = graphql.WithFieldContext(ctx, fc)
  75374. defer func() {
  75375. if r := recover(); r != nil {
  75376. ec.Error(ctx, ec.Recover(ctx, r))
  75377. ret = graphql.Null
  75378. }
  75379. }()
  75380. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  75381. ctx = rctx // use context from middleware stack in children
  75382. return obj.MimeType, nil
  75383. })
  75384. if err != nil {
  75385. ec.Error(ctx, err)
  75386. return graphql.Null
  75387. }
  75388. if resTmp == nil {
  75389. return graphql.Null
  75390. }
  75391. res := resTmp.(*string)
  75392. fc.Result = res
  75393. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  75394. }
  75395. func (ec *executionContext) fieldContext_GenericFile_mimeType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  75396. fc = &graphql.FieldContext{
  75397. Object: "GenericFile",
  75398. Field: field,
  75399. IsMethod: false,
  75400. IsResolver: false,
  75401. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  75402. return nil, errors.New("field of type String does not have child fields")
  75403. },
  75404. }
  75405. return fc, nil
  75406. }
  75407. func (ec *executionContext) _GenericFile_originalFileSize(ctx context.Context, field graphql.CollectedField, obj *GenericFile) (ret graphql.Marshaler) {
  75408. fc, err := ec.fieldContext_GenericFile_originalFileSize(ctx, field)
  75409. if err != nil {
  75410. return graphql.Null
  75411. }
  75412. ctx = graphql.WithFieldContext(ctx, fc)
  75413. defer func() {
  75414. if r := recover(); r != nil {
  75415. ec.Error(ctx, ec.Recover(ctx, r))
  75416. ret = graphql.Null
  75417. }
  75418. }()
  75419. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  75420. ctx = rctx // use context from middleware stack in children
  75421. return obj.OriginalFileSize, nil
  75422. })
  75423. if err != nil {
  75424. ec.Error(ctx, err)
  75425. return graphql.Null
  75426. }
  75427. if resTmp == nil {
  75428. return graphql.Null
  75429. }
  75430. res := resTmp.(*int)
  75431. fc.Result = res
  75432. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  75433. }
  75434. func (ec *executionContext) fieldContext_GenericFile_originalFileSize(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  75435. fc = &graphql.FieldContext{
  75436. Object: "GenericFile",
  75437. Field: field,
  75438. IsMethod: false,
  75439. IsResolver: false,
  75440. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  75441. return nil, errors.New("field of type Int does not have child fields")
  75442. },
  75443. }
  75444. return fc, nil
  75445. }
  75446. func (ec *executionContext) _GenericFile_preview(ctx context.Context, field graphql.CollectedField, obj *GenericFile) (ret graphql.Marshaler) {
  75447. fc, err := ec.fieldContext_GenericFile_preview(ctx, field)
  75448. if err != nil {
  75449. return graphql.Null
  75450. }
  75451. ctx = graphql.WithFieldContext(ctx, fc)
  75452. defer func() {
  75453. if r := recover(); r != nil {
  75454. ec.Error(ctx, ec.Recover(ctx, r))
  75455. ret = graphql.Null
  75456. }
  75457. }()
  75458. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  75459. ctx = rctx // use context from middleware stack in children
  75460. return obj.Preview, nil
  75461. })
  75462. if err != nil {
  75463. ec.Error(ctx, err)
  75464. return graphql.Null
  75465. }
  75466. if resTmp == nil {
  75467. return graphql.Null
  75468. }
  75469. res := resTmp.(*MediaPreviewImage)
  75470. fc.Result = res
  75471. return ec.marshalOMediaPreviewImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaPreviewImage(ctx, field.Selections, res)
  75472. }
  75473. func (ec *executionContext) fieldContext_GenericFile_preview(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  75474. fc = &graphql.FieldContext{
  75475. Object: "GenericFile",
  75476. Field: field,
  75477. IsMethod: false,
  75478. IsResolver: false,
  75479. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  75480. switch field.Name {
  75481. case "image":
  75482. return ec.fieldContext_MediaPreviewImage_image(ctx, field)
  75483. case "status":
  75484. return ec.fieldContext_MediaPreviewImage_status(ctx, field)
  75485. }
  75486. return nil, fmt.Errorf("no field named %q was found under type MediaPreviewImage", field.Name)
  75487. },
  75488. }
  75489. return fc, nil
  75490. }
  75491. func (ec *executionContext) _GenericFile_url(ctx context.Context, field graphql.CollectedField, obj *GenericFile) (ret graphql.Marshaler) {
  75492. fc, err := ec.fieldContext_GenericFile_url(ctx, field)
  75493. if err != nil {
  75494. return graphql.Null
  75495. }
  75496. ctx = graphql.WithFieldContext(ctx, fc)
  75497. defer func() {
  75498. if r := recover(); r != nil {
  75499. ec.Error(ctx, ec.Recover(ctx, r))
  75500. ret = graphql.Null
  75501. }
  75502. }()
  75503. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  75504. ctx = rctx // use context from middleware stack in children
  75505. return obj.URL, nil
  75506. })
  75507. if err != nil {
  75508. ec.Error(ctx, err)
  75509. return graphql.Null
  75510. }
  75511. if resTmp == nil {
  75512. return graphql.Null
  75513. }
  75514. res := resTmp.(*string)
  75515. fc.Result = res
  75516. return ec.marshalOURL2ᚖstring(ctx, field.Selections, res)
  75517. }
  75518. func (ec *executionContext) fieldContext_GenericFile_url(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  75519. fc = &graphql.FieldContext{
  75520. Object: "GenericFile",
  75521. Field: field,
  75522. IsMethod: false,
  75523. IsResolver: false,
  75524. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  75525. return nil, errors.New("field of type URL does not have child fields")
  75526. },
  75527. }
  75528. return fc, nil
  75529. }
  75530. func (ec *executionContext) _Image_altText(ctx context.Context, field graphql.CollectedField, obj *Image) (ret graphql.Marshaler) {
  75531. fc, err := ec.fieldContext_Image_altText(ctx, field)
  75532. if err != nil {
  75533. return graphql.Null
  75534. }
  75535. ctx = graphql.WithFieldContext(ctx, fc)
  75536. defer func() {
  75537. if r := recover(); r != nil {
  75538. ec.Error(ctx, ec.Recover(ctx, r))
  75539. ret = graphql.Null
  75540. }
  75541. }()
  75542. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  75543. ctx = rctx // use context from middleware stack in children
  75544. return obj.AltText, nil
  75545. })
  75546. if err != nil {
  75547. ec.Error(ctx, err)
  75548. return graphql.Null
  75549. }
  75550. if resTmp == nil {
  75551. return graphql.Null
  75552. }
  75553. res := resTmp.(*string)
  75554. fc.Result = res
  75555. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  75556. }
  75557. func (ec *executionContext) fieldContext_Image_altText(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  75558. fc = &graphql.FieldContext{
  75559. Object: "Image",
  75560. Field: field,
  75561. IsMethod: false,
  75562. IsResolver: false,
  75563. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  75564. return nil, errors.New("field of type String does not have child fields")
  75565. },
  75566. }
  75567. return fc, nil
  75568. }
  75569. func (ec *executionContext) _Image_height(ctx context.Context, field graphql.CollectedField, obj *Image) (ret graphql.Marshaler) {
  75570. fc, err := ec.fieldContext_Image_height(ctx, field)
  75571. if err != nil {
  75572. return graphql.Null
  75573. }
  75574. ctx = graphql.WithFieldContext(ctx, fc)
  75575. defer func() {
  75576. if r := recover(); r != nil {
  75577. ec.Error(ctx, ec.Recover(ctx, r))
  75578. ret = graphql.Null
  75579. }
  75580. }()
  75581. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  75582. ctx = rctx // use context from middleware stack in children
  75583. return obj.Height, nil
  75584. })
  75585. if err != nil {
  75586. ec.Error(ctx, err)
  75587. return graphql.Null
  75588. }
  75589. if resTmp == nil {
  75590. return graphql.Null
  75591. }
  75592. res := resTmp.(*int)
  75593. fc.Result = res
  75594. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  75595. }
  75596. func (ec *executionContext) fieldContext_Image_height(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  75597. fc = &graphql.FieldContext{
  75598. Object: "Image",
  75599. Field: field,
  75600. IsMethod: false,
  75601. IsResolver: false,
  75602. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  75603. return nil, errors.New("field of type Int does not have child fields")
  75604. },
  75605. }
  75606. return fc, nil
  75607. }
  75608. func (ec *executionContext) _Image_id(ctx context.Context, field graphql.CollectedField, obj *Image) (ret graphql.Marshaler) {
  75609. fc, err := ec.fieldContext_Image_id(ctx, field)
  75610. if err != nil {
  75611. return graphql.Null
  75612. }
  75613. ctx = graphql.WithFieldContext(ctx, fc)
  75614. defer func() {
  75615. if r := recover(); r != nil {
  75616. ec.Error(ctx, ec.Recover(ctx, r))
  75617. ret = graphql.Null
  75618. }
  75619. }()
  75620. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  75621. ctx = rctx // use context from middleware stack in children
  75622. return obj.ID, nil
  75623. })
  75624. if err != nil {
  75625. ec.Error(ctx, err)
  75626. return graphql.Null
  75627. }
  75628. if resTmp == nil {
  75629. return graphql.Null
  75630. }
  75631. res := resTmp.(*string)
  75632. fc.Result = res
  75633. return ec.marshalOID2ᚖstring(ctx, field.Selections, res)
  75634. }
  75635. func (ec *executionContext) fieldContext_Image_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  75636. fc = &graphql.FieldContext{
  75637. Object: "Image",
  75638. Field: field,
  75639. IsMethod: false,
  75640. IsResolver: false,
  75641. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  75642. return nil, errors.New("field of type ID does not have child fields")
  75643. },
  75644. }
  75645. return fc, nil
  75646. }
  75647. func (ec *executionContext) _Image_metafield(ctx context.Context, field graphql.CollectedField, obj *Image) (ret graphql.Marshaler) {
  75648. fc, err := ec.fieldContext_Image_metafield(ctx, field)
  75649. if err != nil {
  75650. return graphql.Null
  75651. }
  75652. ctx = graphql.WithFieldContext(ctx, fc)
  75653. defer func() {
  75654. if r := recover(); r != nil {
  75655. ec.Error(ctx, ec.Recover(ctx, r))
  75656. ret = graphql.Null
  75657. }
  75658. }()
  75659. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  75660. ctx = rctx // use context from middleware stack in children
  75661. return obj.Metafield, nil
  75662. })
  75663. if err != nil {
  75664. ec.Error(ctx, err)
  75665. return graphql.Null
  75666. }
  75667. if resTmp == nil {
  75668. return graphql.Null
  75669. }
  75670. res := resTmp.(*Metafield)
  75671. fc.Result = res
  75672. return ec.marshalOMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafield(ctx, field.Selections, res)
  75673. }
  75674. func (ec *executionContext) fieldContext_Image_metafield(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  75675. fc = &graphql.FieldContext{
  75676. Object: "Image",
  75677. Field: field,
  75678. IsMethod: false,
  75679. IsResolver: false,
  75680. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  75681. switch field.Name {
  75682. case "createdAt":
  75683. return ec.fieldContext_Metafield_createdAt(ctx, field)
  75684. case "definition":
  75685. return ec.fieldContext_Metafield_definition(ctx, field)
  75686. case "description":
  75687. return ec.fieldContext_Metafield_description(ctx, field)
  75688. case "id":
  75689. return ec.fieldContext_Metafield_id(ctx, field)
  75690. case "key":
  75691. return ec.fieldContext_Metafield_key(ctx, field)
  75692. case "legacyResourceId":
  75693. return ec.fieldContext_Metafield_legacyResourceId(ctx, field)
  75694. case "namespace":
  75695. return ec.fieldContext_Metafield_namespace(ctx, field)
  75696. case "owner":
  75697. return ec.fieldContext_Metafield_owner(ctx, field)
  75698. case "ownerType":
  75699. return ec.fieldContext_Metafield_ownerType(ctx, field)
  75700. case "reference":
  75701. return ec.fieldContext_Metafield_reference(ctx, field)
  75702. case "references":
  75703. return ec.fieldContext_Metafield_references(ctx, field)
  75704. case "type":
  75705. return ec.fieldContext_Metafield_type(ctx, field)
  75706. case "updatedAt":
  75707. return ec.fieldContext_Metafield_updatedAt(ctx, field)
  75708. case "value":
  75709. return ec.fieldContext_Metafield_value(ctx, field)
  75710. }
  75711. return nil, fmt.Errorf("no field named %q was found under type Metafield", field.Name)
  75712. },
  75713. }
  75714. defer func() {
  75715. if r := recover(); r != nil {
  75716. err = ec.Recover(ctx, r)
  75717. ec.Error(ctx, err)
  75718. }
  75719. }()
  75720. ctx = graphql.WithFieldContext(ctx, fc)
  75721. if fc.Args, err = ec.field_Image_metafield_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  75722. ec.Error(ctx, err)
  75723. return
  75724. }
  75725. return fc, nil
  75726. }
  75727. func (ec *executionContext) _Image_metafields(ctx context.Context, field graphql.CollectedField, obj *Image) (ret graphql.Marshaler) {
  75728. fc, err := ec.fieldContext_Image_metafields(ctx, field)
  75729. if err != nil {
  75730. return graphql.Null
  75731. }
  75732. ctx = graphql.WithFieldContext(ctx, fc)
  75733. defer func() {
  75734. if r := recover(); r != nil {
  75735. ec.Error(ctx, ec.Recover(ctx, r))
  75736. ret = graphql.Null
  75737. }
  75738. }()
  75739. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  75740. ctx = rctx // use context from middleware stack in children
  75741. return obj.Metafields, nil
  75742. })
  75743. if err != nil {
  75744. ec.Error(ctx, err)
  75745. return graphql.Null
  75746. }
  75747. if resTmp == nil {
  75748. if !graphql.HasFieldError(ctx, fc) {
  75749. ec.Errorf(ctx, "must not be null")
  75750. }
  75751. return graphql.Null
  75752. }
  75753. res := resTmp.(*MetafieldConnection)
  75754. fc.Result = res
  75755. return ec.marshalNMetafieldConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldConnection(ctx, field.Selections, res)
  75756. }
  75757. func (ec *executionContext) fieldContext_Image_metafields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  75758. fc = &graphql.FieldContext{
  75759. Object: "Image",
  75760. Field: field,
  75761. IsMethod: false,
  75762. IsResolver: false,
  75763. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  75764. switch field.Name {
  75765. case "edges":
  75766. return ec.fieldContext_MetafieldConnection_edges(ctx, field)
  75767. case "nodes":
  75768. return ec.fieldContext_MetafieldConnection_nodes(ctx, field)
  75769. case "pageInfo":
  75770. return ec.fieldContext_MetafieldConnection_pageInfo(ctx, field)
  75771. }
  75772. return nil, fmt.Errorf("no field named %q was found under type MetafieldConnection", field.Name)
  75773. },
  75774. }
  75775. defer func() {
  75776. if r := recover(); r != nil {
  75777. err = ec.Recover(ctx, r)
  75778. ec.Error(ctx, err)
  75779. }
  75780. }()
  75781. ctx = graphql.WithFieldContext(ctx, fc)
  75782. if fc.Args, err = ec.field_Image_metafields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  75783. ec.Error(ctx, err)
  75784. return
  75785. }
  75786. return fc, nil
  75787. }
  75788. func (ec *executionContext) _Image_privateMetafield(ctx context.Context, field graphql.CollectedField, obj *Image) (ret graphql.Marshaler) {
  75789. fc, err := ec.fieldContext_Image_privateMetafield(ctx, field)
  75790. if err != nil {
  75791. return graphql.Null
  75792. }
  75793. ctx = graphql.WithFieldContext(ctx, fc)
  75794. defer func() {
  75795. if r := recover(); r != nil {
  75796. ec.Error(ctx, ec.Recover(ctx, r))
  75797. ret = graphql.Null
  75798. }
  75799. }()
  75800. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  75801. ctx = rctx // use context from middleware stack in children
  75802. return obj.PrivateMetafield, nil
  75803. })
  75804. if err != nil {
  75805. ec.Error(ctx, err)
  75806. return graphql.Null
  75807. }
  75808. if resTmp == nil {
  75809. return graphql.Null
  75810. }
  75811. res := resTmp.(*PrivateMetafield)
  75812. fc.Result = res
  75813. return ec.marshalOPrivateMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafield(ctx, field.Selections, res)
  75814. }
  75815. func (ec *executionContext) fieldContext_Image_privateMetafield(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  75816. fc = &graphql.FieldContext{
  75817. Object: "Image",
  75818. Field: field,
  75819. IsMethod: false,
  75820. IsResolver: false,
  75821. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  75822. switch field.Name {
  75823. case "createdAt":
  75824. return ec.fieldContext_PrivateMetafield_createdAt(ctx, field)
  75825. case "id":
  75826. return ec.fieldContext_PrivateMetafield_id(ctx, field)
  75827. case "key":
  75828. return ec.fieldContext_PrivateMetafield_key(ctx, field)
  75829. case "namespace":
  75830. return ec.fieldContext_PrivateMetafield_namespace(ctx, field)
  75831. case "updatedAt":
  75832. return ec.fieldContext_PrivateMetafield_updatedAt(ctx, field)
  75833. case "value":
  75834. return ec.fieldContext_PrivateMetafield_value(ctx, field)
  75835. case "valueType":
  75836. return ec.fieldContext_PrivateMetafield_valueType(ctx, field)
  75837. }
  75838. return nil, fmt.Errorf("no field named %q was found under type PrivateMetafield", field.Name)
  75839. },
  75840. }
  75841. defer func() {
  75842. if r := recover(); r != nil {
  75843. err = ec.Recover(ctx, r)
  75844. ec.Error(ctx, err)
  75845. }
  75846. }()
  75847. ctx = graphql.WithFieldContext(ctx, fc)
  75848. if fc.Args, err = ec.field_Image_privateMetafield_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  75849. ec.Error(ctx, err)
  75850. return
  75851. }
  75852. return fc, nil
  75853. }
  75854. func (ec *executionContext) _Image_privateMetafields(ctx context.Context, field graphql.CollectedField, obj *Image) (ret graphql.Marshaler) {
  75855. fc, err := ec.fieldContext_Image_privateMetafields(ctx, field)
  75856. if err != nil {
  75857. return graphql.Null
  75858. }
  75859. ctx = graphql.WithFieldContext(ctx, fc)
  75860. defer func() {
  75861. if r := recover(); r != nil {
  75862. ec.Error(ctx, ec.Recover(ctx, r))
  75863. ret = graphql.Null
  75864. }
  75865. }()
  75866. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  75867. ctx = rctx // use context from middleware stack in children
  75868. return obj.PrivateMetafields, nil
  75869. })
  75870. if err != nil {
  75871. ec.Error(ctx, err)
  75872. return graphql.Null
  75873. }
  75874. if resTmp == nil {
  75875. if !graphql.HasFieldError(ctx, fc) {
  75876. ec.Errorf(ctx, "must not be null")
  75877. }
  75878. return graphql.Null
  75879. }
  75880. res := resTmp.(*PrivateMetafieldConnection)
  75881. fc.Result = res
  75882. return ec.marshalNPrivateMetafieldConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafieldConnection(ctx, field.Selections, res)
  75883. }
  75884. func (ec *executionContext) fieldContext_Image_privateMetafields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  75885. fc = &graphql.FieldContext{
  75886. Object: "Image",
  75887. Field: field,
  75888. IsMethod: false,
  75889. IsResolver: false,
  75890. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  75891. switch field.Name {
  75892. case "edges":
  75893. return ec.fieldContext_PrivateMetafieldConnection_edges(ctx, field)
  75894. case "nodes":
  75895. return ec.fieldContext_PrivateMetafieldConnection_nodes(ctx, field)
  75896. case "pageInfo":
  75897. return ec.fieldContext_PrivateMetafieldConnection_pageInfo(ctx, field)
  75898. }
  75899. return nil, fmt.Errorf("no field named %q was found under type PrivateMetafieldConnection", field.Name)
  75900. },
  75901. }
  75902. defer func() {
  75903. if r := recover(); r != nil {
  75904. err = ec.Recover(ctx, r)
  75905. ec.Error(ctx, err)
  75906. }
  75907. }()
  75908. ctx = graphql.WithFieldContext(ctx, fc)
  75909. if fc.Args, err = ec.field_Image_privateMetafields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  75910. ec.Error(ctx, err)
  75911. return
  75912. }
  75913. return fc, nil
  75914. }
  75915. func (ec *executionContext) _Image_url(ctx context.Context, field graphql.CollectedField, obj *Image) (ret graphql.Marshaler) {
  75916. fc, err := ec.fieldContext_Image_url(ctx, field)
  75917. if err != nil {
  75918. return graphql.Null
  75919. }
  75920. ctx = graphql.WithFieldContext(ctx, fc)
  75921. defer func() {
  75922. if r := recover(); r != nil {
  75923. ec.Error(ctx, ec.Recover(ctx, r))
  75924. ret = graphql.Null
  75925. }
  75926. }()
  75927. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  75928. ctx = rctx // use context from middleware stack in children
  75929. return obj.URL, nil
  75930. })
  75931. if err != nil {
  75932. ec.Error(ctx, err)
  75933. return graphql.Null
  75934. }
  75935. if resTmp == nil {
  75936. if !graphql.HasFieldError(ctx, fc) {
  75937. ec.Errorf(ctx, "must not be null")
  75938. }
  75939. return graphql.Null
  75940. }
  75941. res := resTmp.(string)
  75942. fc.Result = res
  75943. return ec.marshalNURL2string(ctx, field.Selections, res)
  75944. }
  75945. func (ec *executionContext) fieldContext_Image_url(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  75946. fc = &graphql.FieldContext{
  75947. Object: "Image",
  75948. Field: field,
  75949. IsMethod: false,
  75950. IsResolver: false,
  75951. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  75952. return nil, errors.New("field of type URL does not have child fields")
  75953. },
  75954. }
  75955. defer func() {
  75956. if r := recover(); r != nil {
  75957. err = ec.Recover(ctx, r)
  75958. ec.Error(ctx, err)
  75959. }
  75960. }()
  75961. ctx = graphql.WithFieldContext(ctx, fc)
  75962. if fc.Args, err = ec.field_Image_url_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  75963. ec.Error(ctx, err)
  75964. return
  75965. }
  75966. return fc, nil
  75967. }
  75968. func (ec *executionContext) _Image_width(ctx context.Context, field graphql.CollectedField, obj *Image) (ret graphql.Marshaler) {
  75969. fc, err := ec.fieldContext_Image_width(ctx, field)
  75970. if err != nil {
  75971. return graphql.Null
  75972. }
  75973. ctx = graphql.WithFieldContext(ctx, fc)
  75974. defer func() {
  75975. if r := recover(); r != nil {
  75976. ec.Error(ctx, ec.Recover(ctx, r))
  75977. ret = graphql.Null
  75978. }
  75979. }()
  75980. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  75981. ctx = rctx // use context from middleware stack in children
  75982. return obj.Width, nil
  75983. })
  75984. if err != nil {
  75985. ec.Error(ctx, err)
  75986. return graphql.Null
  75987. }
  75988. if resTmp == nil {
  75989. return graphql.Null
  75990. }
  75991. res := resTmp.(*int)
  75992. fc.Result = res
  75993. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  75994. }
  75995. func (ec *executionContext) fieldContext_Image_width(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  75996. fc = &graphql.FieldContext{
  75997. Object: "Image",
  75998. Field: field,
  75999. IsMethod: false,
  76000. IsResolver: false,
  76001. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  76002. return nil, errors.New("field of type Int does not have child fields")
  76003. },
  76004. }
  76005. return fc, nil
  76006. }
  76007. func (ec *executionContext) _ImageConnection_edges(ctx context.Context, field graphql.CollectedField, obj *ImageConnection) (ret graphql.Marshaler) {
  76008. fc, err := ec.fieldContext_ImageConnection_edges(ctx, field)
  76009. if err != nil {
  76010. return graphql.Null
  76011. }
  76012. ctx = graphql.WithFieldContext(ctx, fc)
  76013. defer func() {
  76014. if r := recover(); r != nil {
  76015. ec.Error(ctx, ec.Recover(ctx, r))
  76016. ret = graphql.Null
  76017. }
  76018. }()
  76019. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  76020. ctx = rctx // use context from middleware stack in children
  76021. return obj.Edges, nil
  76022. })
  76023. if err != nil {
  76024. ec.Error(ctx, err)
  76025. return graphql.Null
  76026. }
  76027. if resTmp == nil {
  76028. if !graphql.HasFieldError(ctx, fc) {
  76029. ec.Errorf(ctx, "must not be null")
  76030. }
  76031. return graphql.Null
  76032. }
  76033. res := resTmp.([]*ImageEdge)
  76034. fc.Result = res
  76035. return ec.marshalNImageEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImageEdgeᚄ(ctx, field.Selections, res)
  76036. }
  76037. func (ec *executionContext) fieldContext_ImageConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  76038. fc = &graphql.FieldContext{
  76039. Object: "ImageConnection",
  76040. Field: field,
  76041. IsMethod: false,
  76042. IsResolver: false,
  76043. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  76044. switch field.Name {
  76045. case "cursor":
  76046. return ec.fieldContext_ImageEdge_cursor(ctx, field)
  76047. case "node":
  76048. return ec.fieldContext_ImageEdge_node(ctx, field)
  76049. }
  76050. return nil, fmt.Errorf("no field named %q was found under type ImageEdge", field.Name)
  76051. },
  76052. }
  76053. return fc, nil
  76054. }
  76055. func (ec *executionContext) _ImageConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *ImageConnection) (ret graphql.Marshaler) {
  76056. fc, err := ec.fieldContext_ImageConnection_nodes(ctx, field)
  76057. if err != nil {
  76058. return graphql.Null
  76059. }
  76060. ctx = graphql.WithFieldContext(ctx, fc)
  76061. defer func() {
  76062. if r := recover(); r != nil {
  76063. ec.Error(ctx, ec.Recover(ctx, r))
  76064. ret = graphql.Null
  76065. }
  76066. }()
  76067. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  76068. ctx = rctx // use context from middleware stack in children
  76069. return obj.Nodes, nil
  76070. })
  76071. if err != nil {
  76072. ec.Error(ctx, err)
  76073. return graphql.Null
  76074. }
  76075. if resTmp == nil {
  76076. if !graphql.HasFieldError(ctx, fc) {
  76077. ec.Errorf(ctx, "must not be null")
  76078. }
  76079. return graphql.Null
  76080. }
  76081. res := resTmp.([]*Image)
  76082. fc.Result = res
  76083. return ec.marshalNImage2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImageᚄ(ctx, field.Selections, res)
  76084. }
  76085. func (ec *executionContext) fieldContext_ImageConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  76086. fc = &graphql.FieldContext{
  76087. Object: "ImageConnection",
  76088. Field: field,
  76089. IsMethod: false,
  76090. IsResolver: false,
  76091. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  76092. switch field.Name {
  76093. case "altText":
  76094. return ec.fieldContext_Image_altText(ctx, field)
  76095. case "height":
  76096. return ec.fieldContext_Image_height(ctx, field)
  76097. case "id":
  76098. return ec.fieldContext_Image_id(ctx, field)
  76099. case "metafield":
  76100. return ec.fieldContext_Image_metafield(ctx, field)
  76101. case "metafields":
  76102. return ec.fieldContext_Image_metafields(ctx, field)
  76103. case "privateMetafield":
  76104. return ec.fieldContext_Image_privateMetafield(ctx, field)
  76105. case "privateMetafields":
  76106. return ec.fieldContext_Image_privateMetafields(ctx, field)
  76107. case "url":
  76108. return ec.fieldContext_Image_url(ctx, field)
  76109. case "width":
  76110. return ec.fieldContext_Image_width(ctx, field)
  76111. }
  76112. return nil, fmt.Errorf("no field named %q was found under type Image", field.Name)
  76113. },
  76114. }
  76115. return fc, nil
  76116. }
  76117. func (ec *executionContext) _ImageConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *ImageConnection) (ret graphql.Marshaler) {
  76118. fc, err := ec.fieldContext_ImageConnection_pageInfo(ctx, field)
  76119. if err != nil {
  76120. return graphql.Null
  76121. }
  76122. ctx = graphql.WithFieldContext(ctx, fc)
  76123. defer func() {
  76124. if r := recover(); r != nil {
  76125. ec.Error(ctx, ec.Recover(ctx, r))
  76126. ret = graphql.Null
  76127. }
  76128. }()
  76129. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  76130. ctx = rctx // use context from middleware stack in children
  76131. return obj.PageInfo, nil
  76132. })
  76133. if err != nil {
  76134. ec.Error(ctx, err)
  76135. return graphql.Null
  76136. }
  76137. if resTmp == nil {
  76138. if !graphql.HasFieldError(ctx, fc) {
  76139. ec.Errorf(ctx, "must not be null")
  76140. }
  76141. return graphql.Null
  76142. }
  76143. res := resTmp.(*PageInfo)
  76144. fc.Result = res
  76145. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  76146. }
  76147. func (ec *executionContext) fieldContext_ImageConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  76148. fc = &graphql.FieldContext{
  76149. Object: "ImageConnection",
  76150. Field: field,
  76151. IsMethod: false,
  76152. IsResolver: false,
  76153. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  76154. switch field.Name {
  76155. case "endCursor":
  76156. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  76157. case "hasNextPage":
  76158. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  76159. case "hasPreviousPage":
  76160. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  76161. case "startCursor":
  76162. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  76163. }
  76164. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  76165. },
  76166. }
  76167. return fc, nil
  76168. }
  76169. func (ec *executionContext) _ImageEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *ImageEdge) (ret graphql.Marshaler) {
  76170. fc, err := ec.fieldContext_ImageEdge_cursor(ctx, field)
  76171. if err != nil {
  76172. return graphql.Null
  76173. }
  76174. ctx = graphql.WithFieldContext(ctx, fc)
  76175. defer func() {
  76176. if r := recover(); r != nil {
  76177. ec.Error(ctx, ec.Recover(ctx, r))
  76178. ret = graphql.Null
  76179. }
  76180. }()
  76181. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  76182. ctx = rctx // use context from middleware stack in children
  76183. return obj.Cursor, nil
  76184. })
  76185. if err != nil {
  76186. ec.Error(ctx, err)
  76187. return graphql.Null
  76188. }
  76189. if resTmp == nil {
  76190. if !graphql.HasFieldError(ctx, fc) {
  76191. ec.Errorf(ctx, "must not be null")
  76192. }
  76193. return graphql.Null
  76194. }
  76195. res := resTmp.(string)
  76196. fc.Result = res
  76197. return ec.marshalNString2string(ctx, field.Selections, res)
  76198. }
  76199. func (ec *executionContext) fieldContext_ImageEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  76200. fc = &graphql.FieldContext{
  76201. Object: "ImageEdge",
  76202. Field: field,
  76203. IsMethod: false,
  76204. IsResolver: false,
  76205. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  76206. return nil, errors.New("field of type String does not have child fields")
  76207. },
  76208. }
  76209. return fc, nil
  76210. }
  76211. func (ec *executionContext) _ImageEdge_node(ctx context.Context, field graphql.CollectedField, obj *ImageEdge) (ret graphql.Marshaler) {
  76212. fc, err := ec.fieldContext_ImageEdge_node(ctx, field)
  76213. if err != nil {
  76214. return graphql.Null
  76215. }
  76216. ctx = graphql.WithFieldContext(ctx, fc)
  76217. defer func() {
  76218. if r := recover(); r != nil {
  76219. ec.Error(ctx, ec.Recover(ctx, r))
  76220. ret = graphql.Null
  76221. }
  76222. }()
  76223. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  76224. ctx = rctx // use context from middleware stack in children
  76225. return obj.Node, nil
  76226. })
  76227. if err != nil {
  76228. ec.Error(ctx, err)
  76229. return graphql.Null
  76230. }
  76231. if resTmp == nil {
  76232. if !graphql.HasFieldError(ctx, fc) {
  76233. ec.Errorf(ctx, "must not be null")
  76234. }
  76235. return graphql.Null
  76236. }
  76237. res := resTmp.(*Image)
  76238. fc.Result = res
  76239. return ec.marshalNImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImage(ctx, field.Selections, res)
  76240. }
  76241. func (ec *executionContext) fieldContext_ImageEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  76242. fc = &graphql.FieldContext{
  76243. Object: "ImageEdge",
  76244. Field: field,
  76245. IsMethod: false,
  76246. IsResolver: false,
  76247. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  76248. switch field.Name {
  76249. case "altText":
  76250. return ec.fieldContext_Image_altText(ctx, field)
  76251. case "height":
  76252. return ec.fieldContext_Image_height(ctx, field)
  76253. case "id":
  76254. return ec.fieldContext_Image_id(ctx, field)
  76255. case "metafield":
  76256. return ec.fieldContext_Image_metafield(ctx, field)
  76257. case "metafields":
  76258. return ec.fieldContext_Image_metafields(ctx, field)
  76259. case "privateMetafield":
  76260. return ec.fieldContext_Image_privateMetafield(ctx, field)
  76261. case "privateMetafields":
  76262. return ec.fieldContext_Image_privateMetafields(ctx, field)
  76263. case "url":
  76264. return ec.fieldContext_Image_url(ctx, field)
  76265. case "width":
  76266. return ec.fieldContext_Image_width(ctx, field)
  76267. }
  76268. return nil, fmt.Errorf("no field named %q was found under type Image", field.Name)
  76269. },
  76270. }
  76271. return fc, nil
  76272. }
  76273. func (ec *executionContext) _InventoryItem_countryCodeOfOrigin(ctx context.Context, field graphql.CollectedField, obj *InventoryItem) (ret graphql.Marshaler) {
  76274. fc, err := ec.fieldContext_InventoryItem_countryCodeOfOrigin(ctx, field)
  76275. if err != nil {
  76276. return graphql.Null
  76277. }
  76278. ctx = graphql.WithFieldContext(ctx, fc)
  76279. defer func() {
  76280. if r := recover(); r != nil {
  76281. ec.Error(ctx, ec.Recover(ctx, r))
  76282. ret = graphql.Null
  76283. }
  76284. }()
  76285. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  76286. ctx = rctx // use context from middleware stack in children
  76287. return obj.CountryCodeOfOrigin, nil
  76288. })
  76289. if err != nil {
  76290. ec.Error(ctx, err)
  76291. return graphql.Null
  76292. }
  76293. if resTmp == nil {
  76294. return graphql.Null
  76295. }
  76296. res := resTmp.(*CountryCode)
  76297. fc.Result = res
  76298. return ec.marshalOCountryCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCode(ctx, field.Selections, res)
  76299. }
  76300. func (ec *executionContext) fieldContext_InventoryItem_countryCodeOfOrigin(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  76301. fc = &graphql.FieldContext{
  76302. Object: "InventoryItem",
  76303. Field: field,
  76304. IsMethod: false,
  76305. IsResolver: false,
  76306. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  76307. return nil, errors.New("field of type CountryCode does not have child fields")
  76308. },
  76309. }
  76310. return fc, nil
  76311. }
  76312. func (ec *executionContext) _InventoryItem_countryHarmonizedSystemCodes(ctx context.Context, field graphql.CollectedField, obj *InventoryItem) (ret graphql.Marshaler) {
  76313. fc, err := ec.fieldContext_InventoryItem_countryHarmonizedSystemCodes(ctx, field)
  76314. if err != nil {
  76315. return graphql.Null
  76316. }
  76317. ctx = graphql.WithFieldContext(ctx, fc)
  76318. defer func() {
  76319. if r := recover(); r != nil {
  76320. ec.Error(ctx, ec.Recover(ctx, r))
  76321. ret = graphql.Null
  76322. }
  76323. }()
  76324. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  76325. ctx = rctx // use context from middleware stack in children
  76326. return obj.CountryHarmonizedSystemCodes, nil
  76327. })
  76328. if err != nil {
  76329. ec.Error(ctx, err)
  76330. return graphql.Null
  76331. }
  76332. if resTmp == nil {
  76333. if !graphql.HasFieldError(ctx, fc) {
  76334. ec.Errorf(ctx, "must not be null")
  76335. }
  76336. return graphql.Null
  76337. }
  76338. res := resTmp.(*CountryHarmonizedSystemCodeConnection)
  76339. fc.Result = res
  76340. return ec.marshalNCountryHarmonizedSystemCodeConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryHarmonizedSystemCodeConnection(ctx, field.Selections, res)
  76341. }
  76342. func (ec *executionContext) fieldContext_InventoryItem_countryHarmonizedSystemCodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  76343. fc = &graphql.FieldContext{
  76344. Object: "InventoryItem",
  76345. Field: field,
  76346. IsMethod: false,
  76347. IsResolver: false,
  76348. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  76349. switch field.Name {
  76350. case "edges":
  76351. return ec.fieldContext_CountryHarmonizedSystemCodeConnection_edges(ctx, field)
  76352. case "nodes":
  76353. return ec.fieldContext_CountryHarmonizedSystemCodeConnection_nodes(ctx, field)
  76354. case "pageInfo":
  76355. return ec.fieldContext_CountryHarmonizedSystemCodeConnection_pageInfo(ctx, field)
  76356. }
  76357. return nil, fmt.Errorf("no field named %q was found under type CountryHarmonizedSystemCodeConnection", field.Name)
  76358. },
  76359. }
  76360. defer func() {
  76361. if r := recover(); r != nil {
  76362. err = ec.Recover(ctx, r)
  76363. ec.Error(ctx, err)
  76364. }
  76365. }()
  76366. ctx = graphql.WithFieldContext(ctx, fc)
  76367. if fc.Args, err = ec.field_InventoryItem_countryHarmonizedSystemCodes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  76368. ec.Error(ctx, err)
  76369. return
  76370. }
  76371. return fc, nil
  76372. }
  76373. func (ec *executionContext) _InventoryItem_createdAt(ctx context.Context, field graphql.CollectedField, obj *InventoryItem) (ret graphql.Marshaler) {
  76374. fc, err := ec.fieldContext_InventoryItem_createdAt(ctx, field)
  76375. if err != nil {
  76376. return graphql.Null
  76377. }
  76378. ctx = graphql.WithFieldContext(ctx, fc)
  76379. defer func() {
  76380. if r := recover(); r != nil {
  76381. ec.Error(ctx, ec.Recover(ctx, r))
  76382. ret = graphql.Null
  76383. }
  76384. }()
  76385. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  76386. ctx = rctx // use context from middleware stack in children
  76387. return obj.CreatedAt, nil
  76388. })
  76389. if err != nil {
  76390. ec.Error(ctx, err)
  76391. return graphql.Null
  76392. }
  76393. if resTmp == nil {
  76394. if !graphql.HasFieldError(ctx, fc) {
  76395. ec.Errorf(ctx, "must not be null")
  76396. }
  76397. return graphql.Null
  76398. }
  76399. res := resTmp.(string)
  76400. fc.Result = res
  76401. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  76402. }
  76403. func (ec *executionContext) fieldContext_InventoryItem_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  76404. fc = &graphql.FieldContext{
  76405. Object: "InventoryItem",
  76406. Field: field,
  76407. IsMethod: false,
  76408. IsResolver: false,
  76409. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  76410. return nil, errors.New("field of type DateTime does not have child fields")
  76411. },
  76412. }
  76413. return fc, nil
  76414. }
  76415. func (ec *executionContext) _InventoryItem_duplicateSkuCount(ctx context.Context, field graphql.CollectedField, obj *InventoryItem) (ret graphql.Marshaler) {
  76416. fc, err := ec.fieldContext_InventoryItem_duplicateSkuCount(ctx, field)
  76417. if err != nil {
  76418. return graphql.Null
  76419. }
  76420. ctx = graphql.WithFieldContext(ctx, fc)
  76421. defer func() {
  76422. if r := recover(); r != nil {
  76423. ec.Error(ctx, ec.Recover(ctx, r))
  76424. ret = graphql.Null
  76425. }
  76426. }()
  76427. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  76428. ctx = rctx // use context from middleware stack in children
  76429. return obj.DuplicateSkuCount, nil
  76430. })
  76431. if err != nil {
  76432. ec.Error(ctx, err)
  76433. return graphql.Null
  76434. }
  76435. if resTmp == nil {
  76436. if !graphql.HasFieldError(ctx, fc) {
  76437. ec.Errorf(ctx, "must not be null")
  76438. }
  76439. return graphql.Null
  76440. }
  76441. res := resTmp.(int)
  76442. fc.Result = res
  76443. return ec.marshalNInt2int(ctx, field.Selections, res)
  76444. }
  76445. func (ec *executionContext) fieldContext_InventoryItem_duplicateSkuCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  76446. fc = &graphql.FieldContext{
  76447. Object: "InventoryItem",
  76448. Field: field,
  76449. IsMethod: false,
  76450. IsResolver: false,
  76451. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  76452. return nil, errors.New("field of type Int does not have child fields")
  76453. },
  76454. }
  76455. return fc, nil
  76456. }
  76457. func (ec *executionContext) _InventoryItem_harmonizedSystemCode(ctx context.Context, field graphql.CollectedField, obj *InventoryItem) (ret graphql.Marshaler) {
  76458. fc, err := ec.fieldContext_InventoryItem_harmonizedSystemCode(ctx, field)
  76459. if err != nil {
  76460. return graphql.Null
  76461. }
  76462. ctx = graphql.WithFieldContext(ctx, fc)
  76463. defer func() {
  76464. if r := recover(); r != nil {
  76465. ec.Error(ctx, ec.Recover(ctx, r))
  76466. ret = graphql.Null
  76467. }
  76468. }()
  76469. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  76470. ctx = rctx // use context from middleware stack in children
  76471. return obj.HarmonizedSystemCode, nil
  76472. })
  76473. if err != nil {
  76474. ec.Error(ctx, err)
  76475. return graphql.Null
  76476. }
  76477. if resTmp == nil {
  76478. return graphql.Null
  76479. }
  76480. res := resTmp.(*string)
  76481. fc.Result = res
  76482. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  76483. }
  76484. func (ec *executionContext) fieldContext_InventoryItem_harmonizedSystemCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  76485. fc = &graphql.FieldContext{
  76486. Object: "InventoryItem",
  76487. Field: field,
  76488. IsMethod: false,
  76489. IsResolver: false,
  76490. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  76491. return nil, errors.New("field of type String does not have child fields")
  76492. },
  76493. }
  76494. return fc, nil
  76495. }
  76496. func (ec *executionContext) _InventoryItem_id(ctx context.Context, field graphql.CollectedField, obj *InventoryItem) (ret graphql.Marshaler) {
  76497. fc, err := ec.fieldContext_InventoryItem_id(ctx, field)
  76498. if err != nil {
  76499. return graphql.Null
  76500. }
  76501. ctx = graphql.WithFieldContext(ctx, fc)
  76502. defer func() {
  76503. if r := recover(); r != nil {
  76504. ec.Error(ctx, ec.Recover(ctx, r))
  76505. ret = graphql.Null
  76506. }
  76507. }()
  76508. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  76509. ctx = rctx // use context from middleware stack in children
  76510. return obj.ID, nil
  76511. })
  76512. if err != nil {
  76513. ec.Error(ctx, err)
  76514. return graphql.Null
  76515. }
  76516. if resTmp == nil {
  76517. if !graphql.HasFieldError(ctx, fc) {
  76518. ec.Errorf(ctx, "must not be null")
  76519. }
  76520. return graphql.Null
  76521. }
  76522. res := resTmp.(string)
  76523. fc.Result = res
  76524. return ec.marshalNID2string(ctx, field.Selections, res)
  76525. }
  76526. func (ec *executionContext) fieldContext_InventoryItem_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  76527. fc = &graphql.FieldContext{
  76528. Object: "InventoryItem",
  76529. Field: field,
  76530. IsMethod: false,
  76531. IsResolver: false,
  76532. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  76533. return nil, errors.New("field of type ID does not have child fields")
  76534. },
  76535. }
  76536. return fc, nil
  76537. }
  76538. func (ec *executionContext) _InventoryItem_inventoryHistoryUrl(ctx context.Context, field graphql.CollectedField, obj *InventoryItem) (ret graphql.Marshaler) {
  76539. fc, err := ec.fieldContext_InventoryItem_inventoryHistoryUrl(ctx, field)
  76540. if err != nil {
  76541. return graphql.Null
  76542. }
  76543. ctx = graphql.WithFieldContext(ctx, fc)
  76544. defer func() {
  76545. if r := recover(); r != nil {
  76546. ec.Error(ctx, ec.Recover(ctx, r))
  76547. ret = graphql.Null
  76548. }
  76549. }()
  76550. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  76551. ctx = rctx // use context from middleware stack in children
  76552. return obj.InventoryHistoryURL, nil
  76553. })
  76554. if err != nil {
  76555. ec.Error(ctx, err)
  76556. return graphql.Null
  76557. }
  76558. if resTmp == nil {
  76559. return graphql.Null
  76560. }
  76561. res := resTmp.(*string)
  76562. fc.Result = res
  76563. return ec.marshalOURL2ᚖstring(ctx, field.Selections, res)
  76564. }
  76565. func (ec *executionContext) fieldContext_InventoryItem_inventoryHistoryUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  76566. fc = &graphql.FieldContext{
  76567. Object: "InventoryItem",
  76568. Field: field,
  76569. IsMethod: false,
  76570. IsResolver: false,
  76571. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  76572. return nil, errors.New("field of type URL does not have child fields")
  76573. },
  76574. }
  76575. return fc, nil
  76576. }
  76577. func (ec *executionContext) _InventoryItem_inventoryLevel(ctx context.Context, field graphql.CollectedField, obj *InventoryItem) (ret graphql.Marshaler) {
  76578. fc, err := ec.fieldContext_InventoryItem_inventoryLevel(ctx, field)
  76579. if err != nil {
  76580. return graphql.Null
  76581. }
  76582. ctx = graphql.WithFieldContext(ctx, fc)
  76583. defer func() {
  76584. if r := recover(); r != nil {
  76585. ec.Error(ctx, ec.Recover(ctx, r))
  76586. ret = graphql.Null
  76587. }
  76588. }()
  76589. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  76590. ctx = rctx // use context from middleware stack in children
  76591. return obj.InventoryLevel, nil
  76592. })
  76593. if err != nil {
  76594. ec.Error(ctx, err)
  76595. return graphql.Null
  76596. }
  76597. if resTmp == nil {
  76598. return graphql.Null
  76599. }
  76600. res := resTmp.(*InventoryLevel)
  76601. fc.Result = res
  76602. return ec.marshalOInventoryLevel2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐInventoryLevel(ctx, field.Selections, res)
  76603. }
  76604. func (ec *executionContext) fieldContext_InventoryItem_inventoryLevel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  76605. fc = &graphql.FieldContext{
  76606. Object: "InventoryItem",
  76607. Field: field,
  76608. IsMethod: false,
  76609. IsResolver: false,
  76610. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  76611. switch field.Name {
  76612. case "available":
  76613. return ec.fieldContext_InventoryLevel_available(ctx, field)
  76614. case "canDeactivate":
  76615. return ec.fieldContext_InventoryLevel_canDeactivate(ctx, field)
  76616. case "createdAt":
  76617. return ec.fieldContext_InventoryLevel_createdAt(ctx, field)
  76618. case "deactivationAlert":
  76619. return ec.fieldContext_InventoryLevel_deactivationAlert(ctx, field)
  76620. case "deactivationAlertHtml":
  76621. return ec.fieldContext_InventoryLevel_deactivationAlertHtml(ctx, field)
  76622. case "id":
  76623. return ec.fieldContext_InventoryLevel_id(ctx, field)
  76624. case "incoming":
  76625. return ec.fieldContext_InventoryLevel_incoming(ctx, field)
  76626. case "item":
  76627. return ec.fieldContext_InventoryLevel_item(ctx, field)
  76628. case "location":
  76629. return ec.fieldContext_InventoryLevel_location(ctx, field)
  76630. case "updatedAt":
  76631. return ec.fieldContext_InventoryLevel_updatedAt(ctx, field)
  76632. }
  76633. return nil, fmt.Errorf("no field named %q was found under type InventoryLevel", field.Name)
  76634. },
  76635. }
  76636. defer func() {
  76637. if r := recover(); r != nil {
  76638. err = ec.Recover(ctx, r)
  76639. ec.Error(ctx, err)
  76640. }
  76641. }()
  76642. ctx = graphql.WithFieldContext(ctx, fc)
  76643. if fc.Args, err = ec.field_InventoryItem_inventoryLevel_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  76644. ec.Error(ctx, err)
  76645. return
  76646. }
  76647. return fc, nil
  76648. }
  76649. func (ec *executionContext) _InventoryItem_inventoryLevels(ctx context.Context, field graphql.CollectedField, obj *InventoryItem) (ret graphql.Marshaler) {
  76650. fc, err := ec.fieldContext_InventoryItem_inventoryLevels(ctx, field)
  76651. if err != nil {
  76652. return graphql.Null
  76653. }
  76654. ctx = graphql.WithFieldContext(ctx, fc)
  76655. defer func() {
  76656. if r := recover(); r != nil {
  76657. ec.Error(ctx, ec.Recover(ctx, r))
  76658. ret = graphql.Null
  76659. }
  76660. }()
  76661. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  76662. ctx = rctx // use context from middleware stack in children
  76663. return obj.InventoryLevels, nil
  76664. })
  76665. if err != nil {
  76666. ec.Error(ctx, err)
  76667. return graphql.Null
  76668. }
  76669. if resTmp == nil {
  76670. if !graphql.HasFieldError(ctx, fc) {
  76671. ec.Errorf(ctx, "must not be null")
  76672. }
  76673. return graphql.Null
  76674. }
  76675. res := resTmp.(*InventoryLevelConnection)
  76676. fc.Result = res
  76677. return ec.marshalNInventoryLevelConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐInventoryLevelConnection(ctx, field.Selections, res)
  76678. }
  76679. func (ec *executionContext) fieldContext_InventoryItem_inventoryLevels(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  76680. fc = &graphql.FieldContext{
  76681. Object: "InventoryItem",
  76682. Field: field,
  76683. IsMethod: false,
  76684. IsResolver: false,
  76685. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  76686. switch field.Name {
  76687. case "edges":
  76688. return ec.fieldContext_InventoryLevelConnection_edges(ctx, field)
  76689. case "nodes":
  76690. return ec.fieldContext_InventoryLevelConnection_nodes(ctx, field)
  76691. case "pageInfo":
  76692. return ec.fieldContext_InventoryLevelConnection_pageInfo(ctx, field)
  76693. }
  76694. return nil, fmt.Errorf("no field named %q was found under type InventoryLevelConnection", field.Name)
  76695. },
  76696. }
  76697. defer func() {
  76698. if r := recover(); r != nil {
  76699. err = ec.Recover(ctx, r)
  76700. ec.Error(ctx, err)
  76701. }
  76702. }()
  76703. ctx = graphql.WithFieldContext(ctx, fc)
  76704. if fc.Args, err = ec.field_InventoryItem_inventoryLevels_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  76705. ec.Error(ctx, err)
  76706. return
  76707. }
  76708. return fc, nil
  76709. }
  76710. func (ec *executionContext) _InventoryItem_legacyResourceId(ctx context.Context, field graphql.CollectedField, obj *InventoryItem) (ret graphql.Marshaler) {
  76711. fc, err := ec.fieldContext_InventoryItem_legacyResourceId(ctx, field)
  76712. if err != nil {
  76713. return graphql.Null
  76714. }
  76715. ctx = graphql.WithFieldContext(ctx, fc)
  76716. defer func() {
  76717. if r := recover(); r != nil {
  76718. ec.Error(ctx, ec.Recover(ctx, r))
  76719. ret = graphql.Null
  76720. }
  76721. }()
  76722. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  76723. ctx = rctx // use context from middleware stack in children
  76724. return obj.LegacyResourceID, nil
  76725. })
  76726. if err != nil {
  76727. ec.Error(ctx, err)
  76728. return graphql.Null
  76729. }
  76730. if resTmp == nil {
  76731. if !graphql.HasFieldError(ctx, fc) {
  76732. ec.Errorf(ctx, "must not be null")
  76733. }
  76734. return graphql.Null
  76735. }
  76736. res := resTmp.(string)
  76737. fc.Result = res
  76738. return ec.marshalNUnsignedInt642string(ctx, field.Selections, res)
  76739. }
  76740. func (ec *executionContext) fieldContext_InventoryItem_legacyResourceId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  76741. fc = &graphql.FieldContext{
  76742. Object: "InventoryItem",
  76743. Field: field,
  76744. IsMethod: false,
  76745. IsResolver: false,
  76746. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  76747. return nil, errors.New("field of type UnsignedInt64 does not have child fields")
  76748. },
  76749. }
  76750. return fc, nil
  76751. }
  76752. func (ec *executionContext) _InventoryItem_locationsCount(ctx context.Context, field graphql.CollectedField, obj *InventoryItem) (ret graphql.Marshaler) {
  76753. fc, err := ec.fieldContext_InventoryItem_locationsCount(ctx, field)
  76754. if err != nil {
  76755. return graphql.Null
  76756. }
  76757. ctx = graphql.WithFieldContext(ctx, fc)
  76758. defer func() {
  76759. if r := recover(); r != nil {
  76760. ec.Error(ctx, ec.Recover(ctx, r))
  76761. ret = graphql.Null
  76762. }
  76763. }()
  76764. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  76765. ctx = rctx // use context from middleware stack in children
  76766. return obj.LocationsCount, nil
  76767. })
  76768. if err != nil {
  76769. ec.Error(ctx, err)
  76770. return graphql.Null
  76771. }
  76772. if resTmp == nil {
  76773. if !graphql.HasFieldError(ctx, fc) {
  76774. ec.Errorf(ctx, "must not be null")
  76775. }
  76776. return graphql.Null
  76777. }
  76778. res := resTmp.(int)
  76779. fc.Result = res
  76780. return ec.marshalNInt2int(ctx, field.Selections, res)
  76781. }
  76782. func (ec *executionContext) fieldContext_InventoryItem_locationsCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  76783. fc = &graphql.FieldContext{
  76784. Object: "InventoryItem",
  76785. Field: field,
  76786. IsMethod: false,
  76787. IsResolver: false,
  76788. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  76789. return nil, errors.New("field of type Int does not have child fields")
  76790. },
  76791. }
  76792. return fc, nil
  76793. }
  76794. func (ec *executionContext) _InventoryItem_provinceCodeOfOrigin(ctx context.Context, field graphql.CollectedField, obj *InventoryItem) (ret graphql.Marshaler) {
  76795. fc, err := ec.fieldContext_InventoryItem_provinceCodeOfOrigin(ctx, field)
  76796. if err != nil {
  76797. return graphql.Null
  76798. }
  76799. ctx = graphql.WithFieldContext(ctx, fc)
  76800. defer func() {
  76801. if r := recover(); r != nil {
  76802. ec.Error(ctx, ec.Recover(ctx, r))
  76803. ret = graphql.Null
  76804. }
  76805. }()
  76806. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  76807. ctx = rctx // use context from middleware stack in children
  76808. return obj.ProvinceCodeOfOrigin, nil
  76809. })
  76810. if err != nil {
  76811. ec.Error(ctx, err)
  76812. return graphql.Null
  76813. }
  76814. if resTmp == nil {
  76815. return graphql.Null
  76816. }
  76817. res := resTmp.(*string)
  76818. fc.Result = res
  76819. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  76820. }
  76821. func (ec *executionContext) fieldContext_InventoryItem_provinceCodeOfOrigin(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  76822. fc = &graphql.FieldContext{
  76823. Object: "InventoryItem",
  76824. Field: field,
  76825. IsMethod: false,
  76826. IsResolver: false,
  76827. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  76828. return nil, errors.New("field of type String does not have child fields")
  76829. },
  76830. }
  76831. return fc, nil
  76832. }
  76833. func (ec *executionContext) _InventoryItem_requiresShipping(ctx context.Context, field graphql.CollectedField, obj *InventoryItem) (ret graphql.Marshaler) {
  76834. fc, err := ec.fieldContext_InventoryItem_requiresShipping(ctx, field)
  76835. if err != nil {
  76836. return graphql.Null
  76837. }
  76838. ctx = graphql.WithFieldContext(ctx, fc)
  76839. defer func() {
  76840. if r := recover(); r != nil {
  76841. ec.Error(ctx, ec.Recover(ctx, r))
  76842. ret = graphql.Null
  76843. }
  76844. }()
  76845. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  76846. ctx = rctx // use context from middleware stack in children
  76847. return obj.RequiresShipping, nil
  76848. })
  76849. if err != nil {
  76850. ec.Error(ctx, err)
  76851. return graphql.Null
  76852. }
  76853. if resTmp == nil {
  76854. if !graphql.HasFieldError(ctx, fc) {
  76855. ec.Errorf(ctx, "must not be null")
  76856. }
  76857. return graphql.Null
  76858. }
  76859. res := resTmp.(bool)
  76860. fc.Result = res
  76861. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  76862. }
  76863. func (ec *executionContext) fieldContext_InventoryItem_requiresShipping(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  76864. fc = &graphql.FieldContext{
  76865. Object: "InventoryItem",
  76866. Field: field,
  76867. IsMethod: false,
  76868. IsResolver: false,
  76869. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  76870. return nil, errors.New("field of type Boolean does not have child fields")
  76871. },
  76872. }
  76873. return fc, nil
  76874. }
  76875. func (ec *executionContext) _InventoryItem_sku(ctx context.Context, field graphql.CollectedField, obj *InventoryItem) (ret graphql.Marshaler) {
  76876. fc, err := ec.fieldContext_InventoryItem_sku(ctx, field)
  76877. if err != nil {
  76878. return graphql.Null
  76879. }
  76880. ctx = graphql.WithFieldContext(ctx, fc)
  76881. defer func() {
  76882. if r := recover(); r != nil {
  76883. ec.Error(ctx, ec.Recover(ctx, r))
  76884. ret = graphql.Null
  76885. }
  76886. }()
  76887. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  76888. ctx = rctx // use context from middleware stack in children
  76889. return obj.Sku, nil
  76890. })
  76891. if err != nil {
  76892. ec.Error(ctx, err)
  76893. return graphql.Null
  76894. }
  76895. if resTmp == nil {
  76896. return graphql.Null
  76897. }
  76898. res := resTmp.(*string)
  76899. fc.Result = res
  76900. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  76901. }
  76902. func (ec *executionContext) fieldContext_InventoryItem_sku(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  76903. fc = &graphql.FieldContext{
  76904. Object: "InventoryItem",
  76905. Field: field,
  76906. IsMethod: false,
  76907. IsResolver: false,
  76908. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  76909. return nil, errors.New("field of type String does not have child fields")
  76910. },
  76911. }
  76912. return fc, nil
  76913. }
  76914. func (ec *executionContext) _InventoryItem_tracked(ctx context.Context, field graphql.CollectedField, obj *InventoryItem) (ret graphql.Marshaler) {
  76915. fc, err := ec.fieldContext_InventoryItem_tracked(ctx, field)
  76916. if err != nil {
  76917. return graphql.Null
  76918. }
  76919. ctx = graphql.WithFieldContext(ctx, fc)
  76920. defer func() {
  76921. if r := recover(); r != nil {
  76922. ec.Error(ctx, ec.Recover(ctx, r))
  76923. ret = graphql.Null
  76924. }
  76925. }()
  76926. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  76927. ctx = rctx // use context from middleware stack in children
  76928. return obj.Tracked, nil
  76929. })
  76930. if err != nil {
  76931. ec.Error(ctx, err)
  76932. return graphql.Null
  76933. }
  76934. if resTmp == nil {
  76935. if !graphql.HasFieldError(ctx, fc) {
  76936. ec.Errorf(ctx, "must not be null")
  76937. }
  76938. return graphql.Null
  76939. }
  76940. res := resTmp.(bool)
  76941. fc.Result = res
  76942. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  76943. }
  76944. func (ec *executionContext) fieldContext_InventoryItem_tracked(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  76945. fc = &graphql.FieldContext{
  76946. Object: "InventoryItem",
  76947. Field: field,
  76948. IsMethod: false,
  76949. IsResolver: false,
  76950. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  76951. return nil, errors.New("field of type Boolean does not have child fields")
  76952. },
  76953. }
  76954. return fc, nil
  76955. }
  76956. func (ec *executionContext) _InventoryItem_trackedEditable(ctx context.Context, field graphql.CollectedField, obj *InventoryItem) (ret graphql.Marshaler) {
  76957. fc, err := ec.fieldContext_InventoryItem_trackedEditable(ctx, field)
  76958. if err != nil {
  76959. return graphql.Null
  76960. }
  76961. ctx = graphql.WithFieldContext(ctx, fc)
  76962. defer func() {
  76963. if r := recover(); r != nil {
  76964. ec.Error(ctx, ec.Recover(ctx, r))
  76965. ret = graphql.Null
  76966. }
  76967. }()
  76968. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  76969. ctx = rctx // use context from middleware stack in children
  76970. return obj.TrackedEditable, nil
  76971. })
  76972. if err != nil {
  76973. ec.Error(ctx, err)
  76974. return graphql.Null
  76975. }
  76976. if resTmp == nil {
  76977. if !graphql.HasFieldError(ctx, fc) {
  76978. ec.Errorf(ctx, "must not be null")
  76979. }
  76980. return graphql.Null
  76981. }
  76982. res := resTmp.(*EditableProperty)
  76983. fc.Result = res
  76984. return ec.marshalNEditableProperty2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐEditableProperty(ctx, field.Selections, res)
  76985. }
  76986. func (ec *executionContext) fieldContext_InventoryItem_trackedEditable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  76987. fc = &graphql.FieldContext{
  76988. Object: "InventoryItem",
  76989. Field: field,
  76990. IsMethod: false,
  76991. IsResolver: false,
  76992. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  76993. switch field.Name {
  76994. case "locked":
  76995. return ec.fieldContext_EditableProperty_locked(ctx, field)
  76996. case "reason":
  76997. return ec.fieldContext_EditableProperty_reason(ctx, field)
  76998. }
  76999. return nil, fmt.Errorf("no field named %q was found under type EditableProperty", field.Name)
  77000. },
  77001. }
  77002. return fc, nil
  77003. }
  77004. func (ec *executionContext) _InventoryItem_unitCost(ctx context.Context, field graphql.CollectedField, obj *InventoryItem) (ret graphql.Marshaler) {
  77005. fc, err := ec.fieldContext_InventoryItem_unitCost(ctx, field)
  77006. if err != nil {
  77007. return graphql.Null
  77008. }
  77009. ctx = graphql.WithFieldContext(ctx, fc)
  77010. defer func() {
  77011. if r := recover(); r != nil {
  77012. ec.Error(ctx, ec.Recover(ctx, r))
  77013. ret = graphql.Null
  77014. }
  77015. }()
  77016. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  77017. ctx = rctx // use context from middleware stack in children
  77018. return obj.UnitCost, nil
  77019. })
  77020. if err != nil {
  77021. ec.Error(ctx, err)
  77022. return graphql.Null
  77023. }
  77024. if resTmp == nil {
  77025. return graphql.Null
  77026. }
  77027. res := resTmp.(*MoneyV2)
  77028. fc.Result = res
  77029. return ec.marshalOMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  77030. }
  77031. func (ec *executionContext) fieldContext_InventoryItem_unitCost(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  77032. fc = &graphql.FieldContext{
  77033. Object: "InventoryItem",
  77034. Field: field,
  77035. IsMethod: false,
  77036. IsResolver: false,
  77037. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  77038. switch field.Name {
  77039. case "amount":
  77040. return ec.fieldContext_MoneyV2_amount(ctx, field)
  77041. case "currencyCode":
  77042. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  77043. }
  77044. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  77045. },
  77046. }
  77047. return fc, nil
  77048. }
  77049. func (ec *executionContext) _InventoryItem_updatedAt(ctx context.Context, field graphql.CollectedField, obj *InventoryItem) (ret graphql.Marshaler) {
  77050. fc, err := ec.fieldContext_InventoryItem_updatedAt(ctx, field)
  77051. if err != nil {
  77052. return graphql.Null
  77053. }
  77054. ctx = graphql.WithFieldContext(ctx, fc)
  77055. defer func() {
  77056. if r := recover(); r != nil {
  77057. ec.Error(ctx, ec.Recover(ctx, r))
  77058. ret = graphql.Null
  77059. }
  77060. }()
  77061. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  77062. ctx = rctx // use context from middleware stack in children
  77063. return obj.UpdatedAt, nil
  77064. })
  77065. if err != nil {
  77066. ec.Error(ctx, err)
  77067. return graphql.Null
  77068. }
  77069. if resTmp == nil {
  77070. if !graphql.HasFieldError(ctx, fc) {
  77071. ec.Errorf(ctx, "must not be null")
  77072. }
  77073. return graphql.Null
  77074. }
  77075. res := resTmp.(string)
  77076. fc.Result = res
  77077. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  77078. }
  77079. func (ec *executionContext) fieldContext_InventoryItem_updatedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  77080. fc = &graphql.FieldContext{
  77081. Object: "InventoryItem",
  77082. Field: field,
  77083. IsMethod: false,
  77084. IsResolver: false,
  77085. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  77086. return nil, errors.New("field of type DateTime does not have child fields")
  77087. },
  77088. }
  77089. return fc, nil
  77090. }
  77091. func (ec *executionContext) _InventoryItem_variant(ctx context.Context, field graphql.CollectedField, obj *InventoryItem) (ret graphql.Marshaler) {
  77092. fc, err := ec.fieldContext_InventoryItem_variant(ctx, field)
  77093. if err != nil {
  77094. return graphql.Null
  77095. }
  77096. ctx = graphql.WithFieldContext(ctx, fc)
  77097. defer func() {
  77098. if r := recover(); r != nil {
  77099. ec.Error(ctx, ec.Recover(ctx, r))
  77100. ret = graphql.Null
  77101. }
  77102. }()
  77103. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  77104. ctx = rctx // use context from middleware stack in children
  77105. return obj.Variant, nil
  77106. })
  77107. if err != nil {
  77108. ec.Error(ctx, err)
  77109. return graphql.Null
  77110. }
  77111. if resTmp == nil {
  77112. if !graphql.HasFieldError(ctx, fc) {
  77113. ec.Errorf(ctx, "must not be null")
  77114. }
  77115. return graphql.Null
  77116. }
  77117. res := resTmp.(*ProductVariant)
  77118. fc.Result = res
  77119. return ec.marshalNProductVariant2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariant(ctx, field.Selections, res)
  77120. }
  77121. func (ec *executionContext) fieldContext_InventoryItem_variant(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  77122. fc = &graphql.FieldContext{
  77123. Object: "InventoryItem",
  77124. Field: field,
  77125. IsMethod: false,
  77126. IsResolver: false,
  77127. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  77128. switch field.Name {
  77129. case "availableForSale":
  77130. return ec.fieldContext_ProductVariant_availableForSale(ctx, field)
  77131. case "barcode":
  77132. return ec.fieldContext_ProductVariant_barcode(ctx, field)
  77133. case "compareAtPrice":
  77134. return ec.fieldContext_ProductVariant_compareAtPrice(ctx, field)
  77135. case "contextualPricing":
  77136. return ec.fieldContext_ProductVariant_contextualPricing(ctx, field)
  77137. case "createdAt":
  77138. return ec.fieldContext_ProductVariant_createdAt(ctx, field)
  77139. case "defaultCursor":
  77140. return ec.fieldContext_ProductVariant_defaultCursor(ctx, field)
  77141. case "deliveryProfile":
  77142. return ec.fieldContext_ProductVariant_deliveryProfile(ctx, field)
  77143. case "displayName":
  77144. return ec.fieldContext_ProductVariant_displayName(ctx, field)
  77145. case "fulfillmentServiceEditable":
  77146. return ec.fieldContext_ProductVariant_fulfillmentServiceEditable(ctx, field)
  77147. case "id":
  77148. return ec.fieldContext_ProductVariant_id(ctx, field)
  77149. case "image":
  77150. return ec.fieldContext_ProductVariant_image(ctx, field)
  77151. case "inventoryItem":
  77152. return ec.fieldContext_ProductVariant_inventoryItem(ctx, field)
  77153. case "inventoryPolicy":
  77154. return ec.fieldContext_ProductVariant_inventoryPolicy(ctx, field)
  77155. case "inventoryQuantity":
  77156. return ec.fieldContext_ProductVariant_inventoryQuantity(ctx, field)
  77157. case "legacyResourceId":
  77158. return ec.fieldContext_ProductVariant_legacyResourceId(ctx, field)
  77159. case "media":
  77160. return ec.fieldContext_ProductVariant_media(ctx, field)
  77161. case "metafield":
  77162. return ec.fieldContext_ProductVariant_metafield(ctx, field)
  77163. case "metafieldDefinitions":
  77164. return ec.fieldContext_ProductVariant_metafieldDefinitions(ctx, field)
  77165. case "metafields":
  77166. return ec.fieldContext_ProductVariant_metafields(ctx, field)
  77167. case "position":
  77168. return ec.fieldContext_ProductVariant_position(ctx, field)
  77169. case "price":
  77170. return ec.fieldContext_ProductVariant_price(ctx, field)
  77171. case "privateMetafield":
  77172. return ec.fieldContext_ProductVariant_privateMetafield(ctx, field)
  77173. case "privateMetafields":
  77174. return ec.fieldContext_ProductVariant_privateMetafields(ctx, field)
  77175. case "product":
  77176. return ec.fieldContext_ProductVariant_product(ctx, field)
  77177. case "selectedOptions":
  77178. return ec.fieldContext_ProductVariant_selectedOptions(ctx, field)
  77179. case "sellableOnlineQuantity":
  77180. return ec.fieldContext_ProductVariant_sellableOnlineQuantity(ctx, field)
  77181. case "sellingPlanGroupCount":
  77182. return ec.fieldContext_ProductVariant_sellingPlanGroupCount(ctx, field)
  77183. case "sellingPlanGroups":
  77184. return ec.fieldContext_ProductVariant_sellingPlanGroups(ctx, field)
  77185. case "sku":
  77186. return ec.fieldContext_ProductVariant_sku(ctx, field)
  77187. case "taxCode":
  77188. return ec.fieldContext_ProductVariant_taxCode(ctx, field)
  77189. case "taxable":
  77190. return ec.fieldContext_ProductVariant_taxable(ctx, field)
  77191. case "title":
  77192. return ec.fieldContext_ProductVariant_title(ctx, field)
  77193. case "translations":
  77194. return ec.fieldContext_ProductVariant_translations(ctx, field)
  77195. case "updatedAt":
  77196. return ec.fieldContext_ProductVariant_updatedAt(ctx, field)
  77197. case "weight":
  77198. return ec.fieldContext_ProductVariant_weight(ctx, field)
  77199. case "weightUnit":
  77200. return ec.fieldContext_ProductVariant_weightUnit(ctx, field)
  77201. }
  77202. return nil, fmt.Errorf("no field named %q was found under type ProductVariant", field.Name)
  77203. },
  77204. }
  77205. return fc, nil
  77206. }
  77207. func (ec *executionContext) _InventoryLevel_available(ctx context.Context, field graphql.CollectedField, obj *InventoryLevel) (ret graphql.Marshaler) {
  77208. fc, err := ec.fieldContext_InventoryLevel_available(ctx, field)
  77209. if err != nil {
  77210. return graphql.Null
  77211. }
  77212. ctx = graphql.WithFieldContext(ctx, fc)
  77213. defer func() {
  77214. if r := recover(); r != nil {
  77215. ec.Error(ctx, ec.Recover(ctx, r))
  77216. ret = graphql.Null
  77217. }
  77218. }()
  77219. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  77220. ctx = rctx // use context from middleware stack in children
  77221. return obj.Available, nil
  77222. })
  77223. if err != nil {
  77224. ec.Error(ctx, err)
  77225. return graphql.Null
  77226. }
  77227. if resTmp == nil {
  77228. if !graphql.HasFieldError(ctx, fc) {
  77229. ec.Errorf(ctx, "must not be null")
  77230. }
  77231. return graphql.Null
  77232. }
  77233. res := resTmp.(int)
  77234. fc.Result = res
  77235. return ec.marshalNInt2int(ctx, field.Selections, res)
  77236. }
  77237. func (ec *executionContext) fieldContext_InventoryLevel_available(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  77238. fc = &graphql.FieldContext{
  77239. Object: "InventoryLevel",
  77240. Field: field,
  77241. IsMethod: false,
  77242. IsResolver: false,
  77243. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  77244. return nil, errors.New("field of type Int does not have child fields")
  77245. },
  77246. }
  77247. return fc, nil
  77248. }
  77249. func (ec *executionContext) _InventoryLevel_canDeactivate(ctx context.Context, field graphql.CollectedField, obj *InventoryLevel) (ret graphql.Marshaler) {
  77250. fc, err := ec.fieldContext_InventoryLevel_canDeactivate(ctx, field)
  77251. if err != nil {
  77252. return graphql.Null
  77253. }
  77254. ctx = graphql.WithFieldContext(ctx, fc)
  77255. defer func() {
  77256. if r := recover(); r != nil {
  77257. ec.Error(ctx, ec.Recover(ctx, r))
  77258. ret = graphql.Null
  77259. }
  77260. }()
  77261. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  77262. ctx = rctx // use context from middleware stack in children
  77263. return obj.CanDeactivate, nil
  77264. })
  77265. if err != nil {
  77266. ec.Error(ctx, err)
  77267. return graphql.Null
  77268. }
  77269. if resTmp == nil {
  77270. if !graphql.HasFieldError(ctx, fc) {
  77271. ec.Errorf(ctx, "must not be null")
  77272. }
  77273. return graphql.Null
  77274. }
  77275. res := resTmp.(bool)
  77276. fc.Result = res
  77277. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  77278. }
  77279. func (ec *executionContext) fieldContext_InventoryLevel_canDeactivate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  77280. fc = &graphql.FieldContext{
  77281. Object: "InventoryLevel",
  77282. Field: field,
  77283. IsMethod: false,
  77284. IsResolver: false,
  77285. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  77286. return nil, errors.New("field of type Boolean does not have child fields")
  77287. },
  77288. }
  77289. return fc, nil
  77290. }
  77291. func (ec *executionContext) _InventoryLevel_createdAt(ctx context.Context, field graphql.CollectedField, obj *InventoryLevel) (ret graphql.Marshaler) {
  77292. fc, err := ec.fieldContext_InventoryLevel_createdAt(ctx, field)
  77293. if err != nil {
  77294. return graphql.Null
  77295. }
  77296. ctx = graphql.WithFieldContext(ctx, fc)
  77297. defer func() {
  77298. if r := recover(); r != nil {
  77299. ec.Error(ctx, ec.Recover(ctx, r))
  77300. ret = graphql.Null
  77301. }
  77302. }()
  77303. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  77304. ctx = rctx // use context from middleware stack in children
  77305. return obj.CreatedAt, nil
  77306. })
  77307. if err != nil {
  77308. ec.Error(ctx, err)
  77309. return graphql.Null
  77310. }
  77311. if resTmp == nil {
  77312. if !graphql.HasFieldError(ctx, fc) {
  77313. ec.Errorf(ctx, "must not be null")
  77314. }
  77315. return graphql.Null
  77316. }
  77317. res := resTmp.(string)
  77318. fc.Result = res
  77319. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  77320. }
  77321. func (ec *executionContext) fieldContext_InventoryLevel_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  77322. fc = &graphql.FieldContext{
  77323. Object: "InventoryLevel",
  77324. Field: field,
  77325. IsMethod: false,
  77326. IsResolver: false,
  77327. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  77328. return nil, errors.New("field of type DateTime does not have child fields")
  77329. },
  77330. }
  77331. return fc, nil
  77332. }
  77333. func (ec *executionContext) _InventoryLevel_deactivationAlert(ctx context.Context, field graphql.CollectedField, obj *InventoryLevel) (ret graphql.Marshaler) {
  77334. fc, err := ec.fieldContext_InventoryLevel_deactivationAlert(ctx, field)
  77335. if err != nil {
  77336. return graphql.Null
  77337. }
  77338. ctx = graphql.WithFieldContext(ctx, fc)
  77339. defer func() {
  77340. if r := recover(); r != nil {
  77341. ec.Error(ctx, ec.Recover(ctx, r))
  77342. ret = graphql.Null
  77343. }
  77344. }()
  77345. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  77346. ctx = rctx // use context from middleware stack in children
  77347. return obj.DeactivationAlert, nil
  77348. })
  77349. if err != nil {
  77350. ec.Error(ctx, err)
  77351. return graphql.Null
  77352. }
  77353. if resTmp == nil {
  77354. return graphql.Null
  77355. }
  77356. res := resTmp.(*string)
  77357. fc.Result = res
  77358. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  77359. }
  77360. func (ec *executionContext) fieldContext_InventoryLevel_deactivationAlert(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  77361. fc = &graphql.FieldContext{
  77362. Object: "InventoryLevel",
  77363. Field: field,
  77364. IsMethod: false,
  77365. IsResolver: false,
  77366. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  77367. return nil, errors.New("field of type String does not have child fields")
  77368. },
  77369. }
  77370. return fc, nil
  77371. }
  77372. func (ec *executionContext) _InventoryLevel_deactivationAlertHtml(ctx context.Context, field graphql.CollectedField, obj *InventoryLevel) (ret graphql.Marshaler) {
  77373. fc, err := ec.fieldContext_InventoryLevel_deactivationAlertHtml(ctx, field)
  77374. if err != nil {
  77375. return graphql.Null
  77376. }
  77377. ctx = graphql.WithFieldContext(ctx, fc)
  77378. defer func() {
  77379. if r := recover(); r != nil {
  77380. ec.Error(ctx, ec.Recover(ctx, r))
  77381. ret = graphql.Null
  77382. }
  77383. }()
  77384. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  77385. ctx = rctx // use context from middleware stack in children
  77386. return obj.DeactivationAlertHTML, nil
  77387. })
  77388. if err != nil {
  77389. ec.Error(ctx, err)
  77390. return graphql.Null
  77391. }
  77392. if resTmp == nil {
  77393. return graphql.Null
  77394. }
  77395. res := resTmp.(*string)
  77396. fc.Result = res
  77397. return ec.marshalOFormattedString2ᚖstring(ctx, field.Selections, res)
  77398. }
  77399. func (ec *executionContext) fieldContext_InventoryLevel_deactivationAlertHtml(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  77400. fc = &graphql.FieldContext{
  77401. Object: "InventoryLevel",
  77402. Field: field,
  77403. IsMethod: false,
  77404. IsResolver: false,
  77405. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  77406. return nil, errors.New("field of type FormattedString does not have child fields")
  77407. },
  77408. }
  77409. return fc, nil
  77410. }
  77411. func (ec *executionContext) _InventoryLevel_id(ctx context.Context, field graphql.CollectedField, obj *InventoryLevel) (ret graphql.Marshaler) {
  77412. fc, err := ec.fieldContext_InventoryLevel_id(ctx, field)
  77413. if err != nil {
  77414. return graphql.Null
  77415. }
  77416. ctx = graphql.WithFieldContext(ctx, fc)
  77417. defer func() {
  77418. if r := recover(); r != nil {
  77419. ec.Error(ctx, ec.Recover(ctx, r))
  77420. ret = graphql.Null
  77421. }
  77422. }()
  77423. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  77424. ctx = rctx // use context from middleware stack in children
  77425. return obj.ID, nil
  77426. })
  77427. if err != nil {
  77428. ec.Error(ctx, err)
  77429. return graphql.Null
  77430. }
  77431. if resTmp == nil {
  77432. if !graphql.HasFieldError(ctx, fc) {
  77433. ec.Errorf(ctx, "must not be null")
  77434. }
  77435. return graphql.Null
  77436. }
  77437. res := resTmp.(string)
  77438. fc.Result = res
  77439. return ec.marshalNID2string(ctx, field.Selections, res)
  77440. }
  77441. func (ec *executionContext) fieldContext_InventoryLevel_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  77442. fc = &graphql.FieldContext{
  77443. Object: "InventoryLevel",
  77444. Field: field,
  77445. IsMethod: false,
  77446. IsResolver: false,
  77447. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  77448. return nil, errors.New("field of type ID does not have child fields")
  77449. },
  77450. }
  77451. return fc, nil
  77452. }
  77453. func (ec *executionContext) _InventoryLevel_incoming(ctx context.Context, field graphql.CollectedField, obj *InventoryLevel) (ret graphql.Marshaler) {
  77454. fc, err := ec.fieldContext_InventoryLevel_incoming(ctx, field)
  77455. if err != nil {
  77456. return graphql.Null
  77457. }
  77458. ctx = graphql.WithFieldContext(ctx, fc)
  77459. defer func() {
  77460. if r := recover(); r != nil {
  77461. ec.Error(ctx, ec.Recover(ctx, r))
  77462. ret = graphql.Null
  77463. }
  77464. }()
  77465. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  77466. ctx = rctx // use context from middleware stack in children
  77467. return obj.Incoming, nil
  77468. })
  77469. if err != nil {
  77470. ec.Error(ctx, err)
  77471. return graphql.Null
  77472. }
  77473. if resTmp == nil {
  77474. if !graphql.HasFieldError(ctx, fc) {
  77475. ec.Errorf(ctx, "must not be null")
  77476. }
  77477. return graphql.Null
  77478. }
  77479. res := resTmp.(int)
  77480. fc.Result = res
  77481. return ec.marshalNInt2int(ctx, field.Selections, res)
  77482. }
  77483. func (ec *executionContext) fieldContext_InventoryLevel_incoming(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  77484. fc = &graphql.FieldContext{
  77485. Object: "InventoryLevel",
  77486. Field: field,
  77487. IsMethod: false,
  77488. IsResolver: false,
  77489. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  77490. return nil, errors.New("field of type Int does not have child fields")
  77491. },
  77492. }
  77493. return fc, nil
  77494. }
  77495. func (ec *executionContext) _InventoryLevel_item(ctx context.Context, field graphql.CollectedField, obj *InventoryLevel) (ret graphql.Marshaler) {
  77496. fc, err := ec.fieldContext_InventoryLevel_item(ctx, field)
  77497. if err != nil {
  77498. return graphql.Null
  77499. }
  77500. ctx = graphql.WithFieldContext(ctx, fc)
  77501. defer func() {
  77502. if r := recover(); r != nil {
  77503. ec.Error(ctx, ec.Recover(ctx, r))
  77504. ret = graphql.Null
  77505. }
  77506. }()
  77507. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  77508. ctx = rctx // use context from middleware stack in children
  77509. return obj.Item, nil
  77510. })
  77511. if err != nil {
  77512. ec.Error(ctx, err)
  77513. return graphql.Null
  77514. }
  77515. if resTmp == nil {
  77516. if !graphql.HasFieldError(ctx, fc) {
  77517. ec.Errorf(ctx, "must not be null")
  77518. }
  77519. return graphql.Null
  77520. }
  77521. res := resTmp.(*InventoryItem)
  77522. fc.Result = res
  77523. return ec.marshalNInventoryItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐInventoryItem(ctx, field.Selections, res)
  77524. }
  77525. func (ec *executionContext) fieldContext_InventoryLevel_item(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  77526. fc = &graphql.FieldContext{
  77527. Object: "InventoryLevel",
  77528. Field: field,
  77529. IsMethod: false,
  77530. IsResolver: false,
  77531. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  77532. switch field.Name {
  77533. case "countryCodeOfOrigin":
  77534. return ec.fieldContext_InventoryItem_countryCodeOfOrigin(ctx, field)
  77535. case "countryHarmonizedSystemCodes":
  77536. return ec.fieldContext_InventoryItem_countryHarmonizedSystemCodes(ctx, field)
  77537. case "createdAt":
  77538. return ec.fieldContext_InventoryItem_createdAt(ctx, field)
  77539. case "duplicateSkuCount":
  77540. return ec.fieldContext_InventoryItem_duplicateSkuCount(ctx, field)
  77541. case "harmonizedSystemCode":
  77542. return ec.fieldContext_InventoryItem_harmonizedSystemCode(ctx, field)
  77543. case "id":
  77544. return ec.fieldContext_InventoryItem_id(ctx, field)
  77545. case "inventoryHistoryUrl":
  77546. return ec.fieldContext_InventoryItem_inventoryHistoryUrl(ctx, field)
  77547. case "inventoryLevel":
  77548. return ec.fieldContext_InventoryItem_inventoryLevel(ctx, field)
  77549. case "inventoryLevels":
  77550. return ec.fieldContext_InventoryItem_inventoryLevels(ctx, field)
  77551. case "legacyResourceId":
  77552. return ec.fieldContext_InventoryItem_legacyResourceId(ctx, field)
  77553. case "locationsCount":
  77554. return ec.fieldContext_InventoryItem_locationsCount(ctx, field)
  77555. case "provinceCodeOfOrigin":
  77556. return ec.fieldContext_InventoryItem_provinceCodeOfOrigin(ctx, field)
  77557. case "requiresShipping":
  77558. return ec.fieldContext_InventoryItem_requiresShipping(ctx, field)
  77559. case "sku":
  77560. return ec.fieldContext_InventoryItem_sku(ctx, field)
  77561. case "tracked":
  77562. return ec.fieldContext_InventoryItem_tracked(ctx, field)
  77563. case "trackedEditable":
  77564. return ec.fieldContext_InventoryItem_trackedEditable(ctx, field)
  77565. case "unitCost":
  77566. return ec.fieldContext_InventoryItem_unitCost(ctx, field)
  77567. case "updatedAt":
  77568. return ec.fieldContext_InventoryItem_updatedAt(ctx, field)
  77569. case "variant":
  77570. return ec.fieldContext_InventoryItem_variant(ctx, field)
  77571. }
  77572. return nil, fmt.Errorf("no field named %q was found under type InventoryItem", field.Name)
  77573. },
  77574. }
  77575. return fc, nil
  77576. }
  77577. func (ec *executionContext) _InventoryLevel_location(ctx context.Context, field graphql.CollectedField, obj *InventoryLevel) (ret graphql.Marshaler) {
  77578. fc, err := ec.fieldContext_InventoryLevel_location(ctx, field)
  77579. if err != nil {
  77580. return graphql.Null
  77581. }
  77582. ctx = graphql.WithFieldContext(ctx, fc)
  77583. defer func() {
  77584. if r := recover(); r != nil {
  77585. ec.Error(ctx, ec.Recover(ctx, r))
  77586. ret = graphql.Null
  77587. }
  77588. }()
  77589. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  77590. ctx = rctx // use context from middleware stack in children
  77591. return obj.Location, nil
  77592. })
  77593. if err != nil {
  77594. ec.Error(ctx, err)
  77595. return graphql.Null
  77596. }
  77597. if resTmp == nil {
  77598. if !graphql.HasFieldError(ctx, fc) {
  77599. ec.Errorf(ctx, "must not be null")
  77600. }
  77601. return graphql.Null
  77602. }
  77603. res := resTmp.(*Location)
  77604. fc.Result = res
  77605. return ec.marshalNLocation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocation(ctx, field.Selections, res)
  77606. }
  77607. func (ec *executionContext) fieldContext_InventoryLevel_location(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  77608. fc = &graphql.FieldContext{
  77609. Object: "InventoryLevel",
  77610. Field: field,
  77611. IsMethod: false,
  77612. IsResolver: false,
  77613. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  77614. switch field.Name {
  77615. case "activatable":
  77616. return ec.fieldContext_Location_activatable(ctx, field)
  77617. case "address":
  77618. return ec.fieldContext_Location_address(ctx, field)
  77619. case "addressVerified":
  77620. return ec.fieldContext_Location_addressVerified(ctx, field)
  77621. case "deactivatable":
  77622. return ec.fieldContext_Location_deactivatable(ctx, field)
  77623. case "deactivatedAt":
  77624. return ec.fieldContext_Location_deactivatedAt(ctx, field)
  77625. case "deletable":
  77626. return ec.fieldContext_Location_deletable(ctx, field)
  77627. case "fulfillmentService":
  77628. return ec.fieldContext_Location_fulfillmentService(ctx, field)
  77629. case "fulfillsOnlineOrders":
  77630. return ec.fieldContext_Location_fulfillsOnlineOrders(ctx, field)
  77631. case "hasActiveInventory":
  77632. return ec.fieldContext_Location_hasActiveInventory(ctx, field)
  77633. case "hasUnfulfilledOrders":
  77634. return ec.fieldContext_Location_hasUnfulfilledOrders(ctx, field)
  77635. case "id":
  77636. return ec.fieldContext_Location_id(ctx, field)
  77637. case "inventoryLevel":
  77638. return ec.fieldContext_Location_inventoryLevel(ctx, field)
  77639. case "inventoryLevels":
  77640. return ec.fieldContext_Location_inventoryLevels(ctx, field)
  77641. case "isActive":
  77642. return ec.fieldContext_Location_isActive(ctx, field)
  77643. case "legacyResourceId":
  77644. return ec.fieldContext_Location_legacyResourceId(ctx, field)
  77645. case "metafield":
  77646. return ec.fieldContext_Location_metafield(ctx, field)
  77647. case "metafieldDefinitions":
  77648. return ec.fieldContext_Location_metafieldDefinitions(ctx, field)
  77649. case "metafields":
  77650. return ec.fieldContext_Location_metafields(ctx, field)
  77651. case "name":
  77652. return ec.fieldContext_Location_name(ctx, field)
  77653. case "privateMetafield":
  77654. return ec.fieldContext_Location_privateMetafield(ctx, field)
  77655. case "privateMetafields":
  77656. return ec.fieldContext_Location_privateMetafields(ctx, field)
  77657. case "shipsInventory":
  77658. return ec.fieldContext_Location_shipsInventory(ctx, field)
  77659. case "suggestedAddresses":
  77660. return ec.fieldContext_Location_suggestedAddresses(ctx, field)
  77661. }
  77662. return nil, fmt.Errorf("no field named %q was found under type Location", field.Name)
  77663. },
  77664. }
  77665. return fc, nil
  77666. }
  77667. func (ec *executionContext) _InventoryLevel_updatedAt(ctx context.Context, field graphql.CollectedField, obj *InventoryLevel) (ret graphql.Marshaler) {
  77668. fc, err := ec.fieldContext_InventoryLevel_updatedAt(ctx, field)
  77669. if err != nil {
  77670. return graphql.Null
  77671. }
  77672. ctx = graphql.WithFieldContext(ctx, fc)
  77673. defer func() {
  77674. if r := recover(); r != nil {
  77675. ec.Error(ctx, ec.Recover(ctx, r))
  77676. ret = graphql.Null
  77677. }
  77678. }()
  77679. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  77680. ctx = rctx // use context from middleware stack in children
  77681. return obj.UpdatedAt, nil
  77682. })
  77683. if err != nil {
  77684. ec.Error(ctx, err)
  77685. return graphql.Null
  77686. }
  77687. if resTmp == nil {
  77688. if !graphql.HasFieldError(ctx, fc) {
  77689. ec.Errorf(ctx, "must not be null")
  77690. }
  77691. return graphql.Null
  77692. }
  77693. res := resTmp.(string)
  77694. fc.Result = res
  77695. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  77696. }
  77697. func (ec *executionContext) fieldContext_InventoryLevel_updatedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  77698. fc = &graphql.FieldContext{
  77699. Object: "InventoryLevel",
  77700. Field: field,
  77701. IsMethod: false,
  77702. IsResolver: false,
  77703. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  77704. return nil, errors.New("field of type DateTime does not have child fields")
  77705. },
  77706. }
  77707. return fc, nil
  77708. }
  77709. func (ec *executionContext) _InventoryLevelConnection_edges(ctx context.Context, field graphql.CollectedField, obj *InventoryLevelConnection) (ret graphql.Marshaler) {
  77710. fc, err := ec.fieldContext_InventoryLevelConnection_edges(ctx, field)
  77711. if err != nil {
  77712. return graphql.Null
  77713. }
  77714. ctx = graphql.WithFieldContext(ctx, fc)
  77715. defer func() {
  77716. if r := recover(); r != nil {
  77717. ec.Error(ctx, ec.Recover(ctx, r))
  77718. ret = graphql.Null
  77719. }
  77720. }()
  77721. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  77722. ctx = rctx // use context from middleware stack in children
  77723. return obj.Edges, nil
  77724. })
  77725. if err != nil {
  77726. ec.Error(ctx, err)
  77727. return graphql.Null
  77728. }
  77729. if resTmp == nil {
  77730. if !graphql.HasFieldError(ctx, fc) {
  77731. ec.Errorf(ctx, "must not be null")
  77732. }
  77733. return graphql.Null
  77734. }
  77735. res := resTmp.([]*InventoryLevelEdge)
  77736. fc.Result = res
  77737. return ec.marshalNInventoryLevelEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐInventoryLevelEdgeᚄ(ctx, field.Selections, res)
  77738. }
  77739. func (ec *executionContext) fieldContext_InventoryLevelConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  77740. fc = &graphql.FieldContext{
  77741. Object: "InventoryLevelConnection",
  77742. Field: field,
  77743. IsMethod: false,
  77744. IsResolver: false,
  77745. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  77746. switch field.Name {
  77747. case "cursor":
  77748. return ec.fieldContext_InventoryLevelEdge_cursor(ctx, field)
  77749. case "node":
  77750. return ec.fieldContext_InventoryLevelEdge_node(ctx, field)
  77751. }
  77752. return nil, fmt.Errorf("no field named %q was found under type InventoryLevelEdge", field.Name)
  77753. },
  77754. }
  77755. return fc, nil
  77756. }
  77757. func (ec *executionContext) _InventoryLevelConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *InventoryLevelConnection) (ret graphql.Marshaler) {
  77758. fc, err := ec.fieldContext_InventoryLevelConnection_nodes(ctx, field)
  77759. if err != nil {
  77760. return graphql.Null
  77761. }
  77762. ctx = graphql.WithFieldContext(ctx, fc)
  77763. defer func() {
  77764. if r := recover(); r != nil {
  77765. ec.Error(ctx, ec.Recover(ctx, r))
  77766. ret = graphql.Null
  77767. }
  77768. }()
  77769. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  77770. ctx = rctx // use context from middleware stack in children
  77771. return obj.Nodes, nil
  77772. })
  77773. if err != nil {
  77774. ec.Error(ctx, err)
  77775. return graphql.Null
  77776. }
  77777. if resTmp == nil {
  77778. if !graphql.HasFieldError(ctx, fc) {
  77779. ec.Errorf(ctx, "must not be null")
  77780. }
  77781. return graphql.Null
  77782. }
  77783. res := resTmp.([]*InventoryLevel)
  77784. fc.Result = res
  77785. return ec.marshalNInventoryLevel2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐInventoryLevelᚄ(ctx, field.Selections, res)
  77786. }
  77787. func (ec *executionContext) fieldContext_InventoryLevelConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  77788. fc = &graphql.FieldContext{
  77789. Object: "InventoryLevelConnection",
  77790. Field: field,
  77791. IsMethod: false,
  77792. IsResolver: false,
  77793. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  77794. switch field.Name {
  77795. case "available":
  77796. return ec.fieldContext_InventoryLevel_available(ctx, field)
  77797. case "canDeactivate":
  77798. return ec.fieldContext_InventoryLevel_canDeactivate(ctx, field)
  77799. case "createdAt":
  77800. return ec.fieldContext_InventoryLevel_createdAt(ctx, field)
  77801. case "deactivationAlert":
  77802. return ec.fieldContext_InventoryLevel_deactivationAlert(ctx, field)
  77803. case "deactivationAlertHtml":
  77804. return ec.fieldContext_InventoryLevel_deactivationAlertHtml(ctx, field)
  77805. case "id":
  77806. return ec.fieldContext_InventoryLevel_id(ctx, field)
  77807. case "incoming":
  77808. return ec.fieldContext_InventoryLevel_incoming(ctx, field)
  77809. case "item":
  77810. return ec.fieldContext_InventoryLevel_item(ctx, field)
  77811. case "location":
  77812. return ec.fieldContext_InventoryLevel_location(ctx, field)
  77813. case "updatedAt":
  77814. return ec.fieldContext_InventoryLevel_updatedAt(ctx, field)
  77815. }
  77816. return nil, fmt.Errorf("no field named %q was found under type InventoryLevel", field.Name)
  77817. },
  77818. }
  77819. return fc, nil
  77820. }
  77821. func (ec *executionContext) _InventoryLevelConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *InventoryLevelConnection) (ret graphql.Marshaler) {
  77822. fc, err := ec.fieldContext_InventoryLevelConnection_pageInfo(ctx, field)
  77823. if err != nil {
  77824. return graphql.Null
  77825. }
  77826. ctx = graphql.WithFieldContext(ctx, fc)
  77827. defer func() {
  77828. if r := recover(); r != nil {
  77829. ec.Error(ctx, ec.Recover(ctx, r))
  77830. ret = graphql.Null
  77831. }
  77832. }()
  77833. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  77834. ctx = rctx // use context from middleware stack in children
  77835. return obj.PageInfo, nil
  77836. })
  77837. if err != nil {
  77838. ec.Error(ctx, err)
  77839. return graphql.Null
  77840. }
  77841. if resTmp == nil {
  77842. if !graphql.HasFieldError(ctx, fc) {
  77843. ec.Errorf(ctx, "must not be null")
  77844. }
  77845. return graphql.Null
  77846. }
  77847. res := resTmp.(*PageInfo)
  77848. fc.Result = res
  77849. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  77850. }
  77851. func (ec *executionContext) fieldContext_InventoryLevelConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  77852. fc = &graphql.FieldContext{
  77853. Object: "InventoryLevelConnection",
  77854. Field: field,
  77855. IsMethod: false,
  77856. IsResolver: false,
  77857. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  77858. switch field.Name {
  77859. case "endCursor":
  77860. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  77861. case "hasNextPage":
  77862. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  77863. case "hasPreviousPage":
  77864. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  77865. case "startCursor":
  77866. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  77867. }
  77868. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  77869. },
  77870. }
  77871. return fc, nil
  77872. }
  77873. func (ec *executionContext) _InventoryLevelEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *InventoryLevelEdge) (ret graphql.Marshaler) {
  77874. fc, err := ec.fieldContext_InventoryLevelEdge_cursor(ctx, field)
  77875. if err != nil {
  77876. return graphql.Null
  77877. }
  77878. ctx = graphql.WithFieldContext(ctx, fc)
  77879. defer func() {
  77880. if r := recover(); r != nil {
  77881. ec.Error(ctx, ec.Recover(ctx, r))
  77882. ret = graphql.Null
  77883. }
  77884. }()
  77885. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  77886. ctx = rctx // use context from middleware stack in children
  77887. return obj.Cursor, nil
  77888. })
  77889. if err != nil {
  77890. ec.Error(ctx, err)
  77891. return graphql.Null
  77892. }
  77893. if resTmp == nil {
  77894. if !graphql.HasFieldError(ctx, fc) {
  77895. ec.Errorf(ctx, "must not be null")
  77896. }
  77897. return graphql.Null
  77898. }
  77899. res := resTmp.(string)
  77900. fc.Result = res
  77901. return ec.marshalNString2string(ctx, field.Selections, res)
  77902. }
  77903. func (ec *executionContext) fieldContext_InventoryLevelEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  77904. fc = &graphql.FieldContext{
  77905. Object: "InventoryLevelEdge",
  77906. Field: field,
  77907. IsMethod: false,
  77908. IsResolver: false,
  77909. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  77910. return nil, errors.New("field of type String does not have child fields")
  77911. },
  77912. }
  77913. return fc, nil
  77914. }
  77915. func (ec *executionContext) _InventoryLevelEdge_node(ctx context.Context, field graphql.CollectedField, obj *InventoryLevelEdge) (ret graphql.Marshaler) {
  77916. fc, err := ec.fieldContext_InventoryLevelEdge_node(ctx, field)
  77917. if err != nil {
  77918. return graphql.Null
  77919. }
  77920. ctx = graphql.WithFieldContext(ctx, fc)
  77921. defer func() {
  77922. if r := recover(); r != nil {
  77923. ec.Error(ctx, ec.Recover(ctx, r))
  77924. ret = graphql.Null
  77925. }
  77926. }()
  77927. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  77928. ctx = rctx // use context from middleware stack in children
  77929. return obj.Node, nil
  77930. })
  77931. if err != nil {
  77932. ec.Error(ctx, err)
  77933. return graphql.Null
  77934. }
  77935. if resTmp == nil {
  77936. if !graphql.HasFieldError(ctx, fc) {
  77937. ec.Errorf(ctx, "must not be null")
  77938. }
  77939. return graphql.Null
  77940. }
  77941. res := resTmp.(*InventoryLevel)
  77942. fc.Result = res
  77943. return ec.marshalNInventoryLevel2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐInventoryLevel(ctx, field.Selections, res)
  77944. }
  77945. func (ec *executionContext) fieldContext_InventoryLevelEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  77946. fc = &graphql.FieldContext{
  77947. Object: "InventoryLevelEdge",
  77948. Field: field,
  77949. IsMethod: false,
  77950. IsResolver: false,
  77951. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  77952. switch field.Name {
  77953. case "available":
  77954. return ec.fieldContext_InventoryLevel_available(ctx, field)
  77955. case "canDeactivate":
  77956. return ec.fieldContext_InventoryLevel_canDeactivate(ctx, field)
  77957. case "createdAt":
  77958. return ec.fieldContext_InventoryLevel_createdAt(ctx, field)
  77959. case "deactivationAlert":
  77960. return ec.fieldContext_InventoryLevel_deactivationAlert(ctx, field)
  77961. case "deactivationAlertHtml":
  77962. return ec.fieldContext_InventoryLevel_deactivationAlertHtml(ctx, field)
  77963. case "id":
  77964. return ec.fieldContext_InventoryLevel_id(ctx, field)
  77965. case "incoming":
  77966. return ec.fieldContext_InventoryLevel_incoming(ctx, field)
  77967. case "item":
  77968. return ec.fieldContext_InventoryLevel_item(ctx, field)
  77969. case "location":
  77970. return ec.fieldContext_InventoryLevel_location(ctx, field)
  77971. case "updatedAt":
  77972. return ec.fieldContext_InventoryLevel_updatedAt(ctx, field)
  77973. }
  77974. return nil, fmt.Errorf("no field named %q was found under type InventoryLevel", field.Name)
  77975. },
  77976. }
  77977. return fc, nil
  77978. }
  77979. func (ec *executionContext) _Job_done(ctx context.Context, field graphql.CollectedField, obj *Job) (ret graphql.Marshaler) {
  77980. fc, err := ec.fieldContext_Job_done(ctx, field)
  77981. if err != nil {
  77982. return graphql.Null
  77983. }
  77984. ctx = graphql.WithFieldContext(ctx, fc)
  77985. defer func() {
  77986. if r := recover(); r != nil {
  77987. ec.Error(ctx, ec.Recover(ctx, r))
  77988. ret = graphql.Null
  77989. }
  77990. }()
  77991. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  77992. ctx = rctx // use context from middleware stack in children
  77993. return obj.Done, nil
  77994. })
  77995. if err != nil {
  77996. ec.Error(ctx, err)
  77997. return graphql.Null
  77998. }
  77999. if resTmp == nil {
  78000. if !graphql.HasFieldError(ctx, fc) {
  78001. ec.Errorf(ctx, "must not be null")
  78002. }
  78003. return graphql.Null
  78004. }
  78005. res := resTmp.(bool)
  78006. fc.Result = res
  78007. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  78008. }
  78009. func (ec *executionContext) fieldContext_Job_done(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  78010. fc = &graphql.FieldContext{
  78011. Object: "Job",
  78012. Field: field,
  78013. IsMethod: false,
  78014. IsResolver: false,
  78015. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  78016. return nil, errors.New("field of type Boolean does not have child fields")
  78017. },
  78018. }
  78019. return fc, nil
  78020. }
  78021. func (ec *executionContext) _Job_id(ctx context.Context, field graphql.CollectedField, obj *Job) (ret graphql.Marshaler) {
  78022. fc, err := ec.fieldContext_Job_id(ctx, field)
  78023. if err != nil {
  78024. return graphql.Null
  78025. }
  78026. ctx = graphql.WithFieldContext(ctx, fc)
  78027. defer func() {
  78028. if r := recover(); r != nil {
  78029. ec.Error(ctx, ec.Recover(ctx, r))
  78030. ret = graphql.Null
  78031. }
  78032. }()
  78033. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  78034. ctx = rctx // use context from middleware stack in children
  78035. return obj.ID, nil
  78036. })
  78037. if err != nil {
  78038. ec.Error(ctx, err)
  78039. return graphql.Null
  78040. }
  78041. if resTmp == nil {
  78042. if !graphql.HasFieldError(ctx, fc) {
  78043. ec.Errorf(ctx, "must not be null")
  78044. }
  78045. return graphql.Null
  78046. }
  78047. res := resTmp.(string)
  78048. fc.Result = res
  78049. return ec.marshalNID2string(ctx, field.Selections, res)
  78050. }
  78051. func (ec *executionContext) fieldContext_Job_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  78052. fc = &graphql.FieldContext{
  78053. Object: "Job",
  78054. Field: field,
  78055. IsMethod: false,
  78056. IsResolver: false,
  78057. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  78058. return nil, errors.New("field of type ID does not have child fields")
  78059. },
  78060. }
  78061. return fc, nil
  78062. }
  78063. func (ec *executionContext) _LimitedPendingOrderCount_atMax(ctx context.Context, field graphql.CollectedField, obj *LimitedPendingOrderCount) (ret graphql.Marshaler) {
  78064. fc, err := ec.fieldContext_LimitedPendingOrderCount_atMax(ctx, field)
  78065. if err != nil {
  78066. return graphql.Null
  78067. }
  78068. ctx = graphql.WithFieldContext(ctx, fc)
  78069. defer func() {
  78070. if r := recover(); r != nil {
  78071. ec.Error(ctx, ec.Recover(ctx, r))
  78072. ret = graphql.Null
  78073. }
  78074. }()
  78075. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  78076. ctx = rctx // use context from middleware stack in children
  78077. return obj.AtMax, nil
  78078. })
  78079. if err != nil {
  78080. ec.Error(ctx, err)
  78081. return graphql.Null
  78082. }
  78083. if resTmp == nil {
  78084. if !graphql.HasFieldError(ctx, fc) {
  78085. ec.Errorf(ctx, "must not be null")
  78086. }
  78087. return graphql.Null
  78088. }
  78089. res := resTmp.(bool)
  78090. fc.Result = res
  78091. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  78092. }
  78093. func (ec *executionContext) fieldContext_LimitedPendingOrderCount_atMax(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  78094. fc = &graphql.FieldContext{
  78095. Object: "LimitedPendingOrderCount",
  78096. Field: field,
  78097. IsMethod: false,
  78098. IsResolver: false,
  78099. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  78100. return nil, errors.New("field of type Boolean does not have child fields")
  78101. },
  78102. }
  78103. return fc, nil
  78104. }
  78105. func (ec *executionContext) _LimitedPendingOrderCount_count(ctx context.Context, field graphql.CollectedField, obj *LimitedPendingOrderCount) (ret graphql.Marshaler) {
  78106. fc, err := ec.fieldContext_LimitedPendingOrderCount_count(ctx, field)
  78107. if err != nil {
  78108. return graphql.Null
  78109. }
  78110. ctx = graphql.WithFieldContext(ctx, fc)
  78111. defer func() {
  78112. if r := recover(); r != nil {
  78113. ec.Error(ctx, ec.Recover(ctx, r))
  78114. ret = graphql.Null
  78115. }
  78116. }()
  78117. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  78118. ctx = rctx // use context from middleware stack in children
  78119. return obj.Count, nil
  78120. })
  78121. if err != nil {
  78122. ec.Error(ctx, err)
  78123. return graphql.Null
  78124. }
  78125. if resTmp == nil {
  78126. if !graphql.HasFieldError(ctx, fc) {
  78127. ec.Errorf(ctx, "must not be null")
  78128. }
  78129. return graphql.Null
  78130. }
  78131. res := resTmp.(int)
  78132. fc.Result = res
  78133. return ec.marshalNInt2int(ctx, field.Selections, res)
  78134. }
  78135. func (ec *executionContext) fieldContext_LimitedPendingOrderCount_count(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  78136. fc = &graphql.FieldContext{
  78137. Object: "LimitedPendingOrderCount",
  78138. Field: field,
  78139. IsMethod: false,
  78140. IsResolver: false,
  78141. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  78142. return nil, errors.New("field of type Int does not have child fields")
  78143. },
  78144. }
  78145. return fc, nil
  78146. }
  78147. func (ec *executionContext) _LineItem_contract(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  78148. fc, err := ec.fieldContext_LineItem_contract(ctx, field)
  78149. if err != nil {
  78150. return graphql.Null
  78151. }
  78152. ctx = graphql.WithFieldContext(ctx, fc)
  78153. defer func() {
  78154. if r := recover(); r != nil {
  78155. ec.Error(ctx, ec.Recover(ctx, r))
  78156. ret = graphql.Null
  78157. }
  78158. }()
  78159. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  78160. ctx = rctx // use context from middleware stack in children
  78161. return obj.Contract, nil
  78162. })
  78163. if err != nil {
  78164. ec.Error(ctx, err)
  78165. return graphql.Null
  78166. }
  78167. if resTmp == nil {
  78168. return graphql.Null
  78169. }
  78170. res := resTmp.(*SubscriptionContract)
  78171. fc.Result = res
  78172. return ec.marshalOSubscriptionContract2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionContract(ctx, field.Selections, res)
  78173. }
  78174. func (ec *executionContext) fieldContext_LineItem_contract(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  78175. fc = &graphql.FieldContext{
  78176. Object: "LineItem",
  78177. Field: field,
  78178. IsMethod: false,
  78179. IsResolver: false,
  78180. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  78181. switch field.Name {
  78182. case "app":
  78183. return ec.fieldContext_SubscriptionContract_app(ctx, field)
  78184. case "appAdminUrl":
  78185. return ec.fieldContext_SubscriptionContract_appAdminUrl(ctx, field)
  78186. case "billingAttempts":
  78187. return ec.fieldContext_SubscriptionContract_billingAttempts(ctx, field)
  78188. case "billingPolicy":
  78189. return ec.fieldContext_SubscriptionContract_billingPolicy(ctx, field)
  78190. case "createdAt":
  78191. return ec.fieldContext_SubscriptionContract_createdAt(ctx, field)
  78192. case "currencyCode":
  78193. return ec.fieldContext_SubscriptionContract_currencyCode(ctx, field)
  78194. case "customAttributes":
  78195. return ec.fieldContext_SubscriptionContract_customAttributes(ctx, field)
  78196. case "customer":
  78197. return ec.fieldContext_SubscriptionContract_customer(ctx, field)
  78198. case "customerPaymentMethod":
  78199. return ec.fieldContext_SubscriptionContract_customerPaymentMethod(ctx, field)
  78200. case "deliveryMethod":
  78201. return ec.fieldContext_SubscriptionContract_deliveryMethod(ctx, field)
  78202. case "deliveryPolicy":
  78203. return ec.fieldContext_SubscriptionContract_deliveryPolicy(ctx, field)
  78204. case "deliveryPrice":
  78205. return ec.fieldContext_SubscriptionContract_deliveryPrice(ctx, field)
  78206. case "discounts":
  78207. return ec.fieldContext_SubscriptionContract_discounts(ctx, field)
  78208. case "id":
  78209. return ec.fieldContext_SubscriptionContract_id(ctx, field)
  78210. case "lastPaymentStatus":
  78211. return ec.fieldContext_SubscriptionContract_lastPaymentStatus(ctx, field)
  78212. case "lineCount":
  78213. return ec.fieldContext_SubscriptionContract_lineCount(ctx, field)
  78214. case "lines":
  78215. return ec.fieldContext_SubscriptionContract_lines(ctx, field)
  78216. case "nextBillingDate":
  78217. return ec.fieldContext_SubscriptionContract_nextBillingDate(ctx, field)
  78218. case "note":
  78219. return ec.fieldContext_SubscriptionContract_note(ctx, field)
  78220. case "orders":
  78221. return ec.fieldContext_SubscriptionContract_orders(ctx, field)
  78222. case "originOrder":
  78223. return ec.fieldContext_SubscriptionContract_originOrder(ctx, field)
  78224. case "status":
  78225. return ec.fieldContext_SubscriptionContract_status(ctx, field)
  78226. case "updatedAt":
  78227. return ec.fieldContext_SubscriptionContract_updatedAt(ctx, field)
  78228. }
  78229. return nil, fmt.Errorf("no field named %q was found under type SubscriptionContract", field.Name)
  78230. },
  78231. }
  78232. return fc, nil
  78233. }
  78234. func (ec *executionContext) _LineItem_currentQuantity(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  78235. fc, err := ec.fieldContext_LineItem_currentQuantity(ctx, field)
  78236. if err != nil {
  78237. return graphql.Null
  78238. }
  78239. ctx = graphql.WithFieldContext(ctx, fc)
  78240. defer func() {
  78241. if r := recover(); r != nil {
  78242. ec.Error(ctx, ec.Recover(ctx, r))
  78243. ret = graphql.Null
  78244. }
  78245. }()
  78246. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  78247. ctx = rctx // use context from middleware stack in children
  78248. return obj.CurrentQuantity, nil
  78249. })
  78250. if err != nil {
  78251. ec.Error(ctx, err)
  78252. return graphql.Null
  78253. }
  78254. if resTmp == nil {
  78255. if !graphql.HasFieldError(ctx, fc) {
  78256. ec.Errorf(ctx, "must not be null")
  78257. }
  78258. return graphql.Null
  78259. }
  78260. res := resTmp.(int)
  78261. fc.Result = res
  78262. return ec.marshalNInt2int(ctx, field.Selections, res)
  78263. }
  78264. func (ec *executionContext) fieldContext_LineItem_currentQuantity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  78265. fc = &graphql.FieldContext{
  78266. Object: "LineItem",
  78267. Field: field,
  78268. IsMethod: false,
  78269. IsResolver: false,
  78270. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  78271. return nil, errors.New("field of type Int does not have child fields")
  78272. },
  78273. }
  78274. return fc, nil
  78275. }
  78276. func (ec *executionContext) _LineItem_customAttributes(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  78277. fc, err := ec.fieldContext_LineItem_customAttributes(ctx, field)
  78278. if err != nil {
  78279. return graphql.Null
  78280. }
  78281. ctx = graphql.WithFieldContext(ctx, fc)
  78282. defer func() {
  78283. if r := recover(); r != nil {
  78284. ec.Error(ctx, ec.Recover(ctx, r))
  78285. ret = graphql.Null
  78286. }
  78287. }()
  78288. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  78289. ctx = rctx // use context from middleware stack in children
  78290. return obj.CustomAttributes, nil
  78291. })
  78292. if err != nil {
  78293. ec.Error(ctx, err)
  78294. return graphql.Null
  78295. }
  78296. if resTmp == nil {
  78297. if !graphql.HasFieldError(ctx, fc) {
  78298. ec.Errorf(ctx, "must not be null")
  78299. }
  78300. return graphql.Null
  78301. }
  78302. res := resTmp.([]*Attribute)
  78303. fc.Result = res
  78304. return ec.marshalNAttribute2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAttributeᚄ(ctx, field.Selections, res)
  78305. }
  78306. func (ec *executionContext) fieldContext_LineItem_customAttributes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  78307. fc = &graphql.FieldContext{
  78308. Object: "LineItem",
  78309. Field: field,
  78310. IsMethod: false,
  78311. IsResolver: false,
  78312. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  78313. switch field.Name {
  78314. case "key":
  78315. return ec.fieldContext_Attribute_key(ctx, field)
  78316. case "value":
  78317. return ec.fieldContext_Attribute_value(ctx, field)
  78318. }
  78319. return nil, fmt.Errorf("no field named %q was found under type Attribute", field.Name)
  78320. },
  78321. }
  78322. return fc, nil
  78323. }
  78324. func (ec *executionContext) _LineItem_discountAllocations(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  78325. fc, err := ec.fieldContext_LineItem_discountAllocations(ctx, field)
  78326. if err != nil {
  78327. return graphql.Null
  78328. }
  78329. ctx = graphql.WithFieldContext(ctx, fc)
  78330. defer func() {
  78331. if r := recover(); r != nil {
  78332. ec.Error(ctx, ec.Recover(ctx, r))
  78333. ret = graphql.Null
  78334. }
  78335. }()
  78336. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  78337. ctx = rctx // use context from middleware stack in children
  78338. return obj.DiscountAllocations, nil
  78339. })
  78340. if err != nil {
  78341. ec.Error(ctx, err)
  78342. return graphql.Null
  78343. }
  78344. if resTmp == nil {
  78345. if !graphql.HasFieldError(ctx, fc) {
  78346. ec.Errorf(ctx, "must not be null")
  78347. }
  78348. return graphql.Null
  78349. }
  78350. res := resTmp.([]*DiscountAllocation)
  78351. fc.Result = res
  78352. return ec.marshalNDiscountAllocation2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountAllocationᚄ(ctx, field.Selections, res)
  78353. }
  78354. func (ec *executionContext) fieldContext_LineItem_discountAllocations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  78355. fc = &graphql.FieldContext{
  78356. Object: "LineItem",
  78357. Field: field,
  78358. IsMethod: false,
  78359. IsResolver: false,
  78360. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  78361. switch field.Name {
  78362. case "allocatedAmountSet":
  78363. return ec.fieldContext_DiscountAllocation_allocatedAmountSet(ctx, field)
  78364. case "discountApplication":
  78365. return ec.fieldContext_DiscountAllocation_discountApplication(ctx, field)
  78366. }
  78367. return nil, fmt.Errorf("no field named %q was found under type DiscountAllocation", field.Name)
  78368. },
  78369. }
  78370. return fc, nil
  78371. }
  78372. func (ec *executionContext) _LineItem_discountedTotalSet(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  78373. fc, err := ec.fieldContext_LineItem_discountedTotalSet(ctx, field)
  78374. if err != nil {
  78375. return graphql.Null
  78376. }
  78377. ctx = graphql.WithFieldContext(ctx, fc)
  78378. defer func() {
  78379. if r := recover(); r != nil {
  78380. ec.Error(ctx, ec.Recover(ctx, r))
  78381. ret = graphql.Null
  78382. }
  78383. }()
  78384. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  78385. ctx = rctx // use context from middleware stack in children
  78386. return obj.DiscountedTotalSet, nil
  78387. })
  78388. if err != nil {
  78389. ec.Error(ctx, err)
  78390. return graphql.Null
  78391. }
  78392. if resTmp == nil {
  78393. if !graphql.HasFieldError(ctx, fc) {
  78394. ec.Errorf(ctx, "must not be null")
  78395. }
  78396. return graphql.Null
  78397. }
  78398. res := resTmp.(*MoneyBag)
  78399. fc.Result = res
  78400. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  78401. }
  78402. func (ec *executionContext) fieldContext_LineItem_discountedTotalSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  78403. fc = &graphql.FieldContext{
  78404. Object: "LineItem",
  78405. Field: field,
  78406. IsMethod: false,
  78407. IsResolver: false,
  78408. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  78409. switch field.Name {
  78410. case "presentmentMoney":
  78411. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  78412. case "shopMoney":
  78413. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  78414. }
  78415. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  78416. },
  78417. }
  78418. return fc, nil
  78419. }
  78420. func (ec *executionContext) _LineItem_discountedUnitPriceSet(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  78421. fc, err := ec.fieldContext_LineItem_discountedUnitPriceSet(ctx, field)
  78422. if err != nil {
  78423. return graphql.Null
  78424. }
  78425. ctx = graphql.WithFieldContext(ctx, fc)
  78426. defer func() {
  78427. if r := recover(); r != nil {
  78428. ec.Error(ctx, ec.Recover(ctx, r))
  78429. ret = graphql.Null
  78430. }
  78431. }()
  78432. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  78433. ctx = rctx // use context from middleware stack in children
  78434. return obj.DiscountedUnitPriceSet, nil
  78435. })
  78436. if err != nil {
  78437. ec.Error(ctx, err)
  78438. return graphql.Null
  78439. }
  78440. if resTmp == nil {
  78441. if !graphql.HasFieldError(ctx, fc) {
  78442. ec.Errorf(ctx, "must not be null")
  78443. }
  78444. return graphql.Null
  78445. }
  78446. res := resTmp.(*MoneyBag)
  78447. fc.Result = res
  78448. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  78449. }
  78450. func (ec *executionContext) fieldContext_LineItem_discountedUnitPriceSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  78451. fc = &graphql.FieldContext{
  78452. Object: "LineItem",
  78453. Field: field,
  78454. IsMethod: false,
  78455. IsResolver: false,
  78456. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  78457. switch field.Name {
  78458. case "presentmentMoney":
  78459. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  78460. case "shopMoney":
  78461. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  78462. }
  78463. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  78464. },
  78465. }
  78466. return fc, nil
  78467. }
  78468. func (ec *executionContext) _LineItem_duties(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  78469. fc, err := ec.fieldContext_LineItem_duties(ctx, field)
  78470. if err != nil {
  78471. return graphql.Null
  78472. }
  78473. ctx = graphql.WithFieldContext(ctx, fc)
  78474. defer func() {
  78475. if r := recover(); r != nil {
  78476. ec.Error(ctx, ec.Recover(ctx, r))
  78477. ret = graphql.Null
  78478. }
  78479. }()
  78480. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  78481. ctx = rctx // use context from middleware stack in children
  78482. return obj.Duties, nil
  78483. })
  78484. if err != nil {
  78485. ec.Error(ctx, err)
  78486. return graphql.Null
  78487. }
  78488. if resTmp == nil {
  78489. if !graphql.HasFieldError(ctx, fc) {
  78490. ec.Errorf(ctx, "must not be null")
  78491. }
  78492. return graphql.Null
  78493. }
  78494. res := resTmp.([]*Duty)
  78495. fc.Result = res
  78496. return ec.marshalNDuty2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDutyᚄ(ctx, field.Selections, res)
  78497. }
  78498. func (ec *executionContext) fieldContext_LineItem_duties(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  78499. fc = &graphql.FieldContext{
  78500. Object: "LineItem",
  78501. Field: field,
  78502. IsMethod: false,
  78503. IsResolver: false,
  78504. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  78505. switch field.Name {
  78506. case "countryCodeOfOrigin":
  78507. return ec.fieldContext_Duty_countryCodeOfOrigin(ctx, field)
  78508. case "harmonizedSystemCode":
  78509. return ec.fieldContext_Duty_harmonizedSystemCode(ctx, field)
  78510. case "id":
  78511. return ec.fieldContext_Duty_id(ctx, field)
  78512. case "price":
  78513. return ec.fieldContext_Duty_price(ctx, field)
  78514. case "taxLines":
  78515. return ec.fieldContext_Duty_taxLines(ctx, field)
  78516. }
  78517. return nil, fmt.Errorf("no field named %q was found under type Duty", field.Name)
  78518. },
  78519. }
  78520. return fc, nil
  78521. }
  78522. func (ec *executionContext) _LineItem_id(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  78523. fc, err := ec.fieldContext_LineItem_id(ctx, field)
  78524. if err != nil {
  78525. return graphql.Null
  78526. }
  78527. ctx = graphql.WithFieldContext(ctx, fc)
  78528. defer func() {
  78529. if r := recover(); r != nil {
  78530. ec.Error(ctx, ec.Recover(ctx, r))
  78531. ret = graphql.Null
  78532. }
  78533. }()
  78534. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  78535. ctx = rctx // use context from middleware stack in children
  78536. return obj.ID, nil
  78537. })
  78538. if err != nil {
  78539. ec.Error(ctx, err)
  78540. return graphql.Null
  78541. }
  78542. if resTmp == nil {
  78543. if !graphql.HasFieldError(ctx, fc) {
  78544. ec.Errorf(ctx, "must not be null")
  78545. }
  78546. return graphql.Null
  78547. }
  78548. res := resTmp.(string)
  78549. fc.Result = res
  78550. return ec.marshalNID2string(ctx, field.Selections, res)
  78551. }
  78552. func (ec *executionContext) fieldContext_LineItem_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  78553. fc = &graphql.FieldContext{
  78554. Object: "LineItem",
  78555. Field: field,
  78556. IsMethod: false,
  78557. IsResolver: false,
  78558. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  78559. return nil, errors.New("field of type ID does not have child fields")
  78560. },
  78561. }
  78562. return fc, nil
  78563. }
  78564. func (ec *executionContext) _LineItem_image(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  78565. fc, err := ec.fieldContext_LineItem_image(ctx, field)
  78566. if err != nil {
  78567. return graphql.Null
  78568. }
  78569. ctx = graphql.WithFieldContext(ctx, fc)
  78570. defer func() {
  78571. if r := recover(); r != nil {
  78572. ec.Error(ctx, ec.Recover(ctx, r))
  78573. ret = graphql.Null
  78574. }
  78575. }()
  78576. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  78577. ctx = rctx // use context from middleware stack in children
  78578. return obj.Image, nil
  78579. })
  78580. if err != nil {
  78581. ec.Error(ctx, err)
  78582. return graphql.Null
  78583. }
  78584. if resTmp == nil {
  78585. return graphql.Null
  78586. }
  78587. res := resTmp.(*Image)
  78588. fc.Result = res
  78589. return ec.marshalOImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImage(ctx, field.Selections, res)
  78590. }
  78591. func (ec *executionContext) fieldContext_LineItem_image(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  78592. fc = &graphql.FieldContext{
  78593. Object: "LineItem",
  78594. Field: field,
  78595. IsMethod: false,
  78596. IsResolver: false,
  78597. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  78598. switch field.Name {
  78599. case "altText":
  78600. return ec.fieldContext_Image_altText(ctx, field)
  78601. case "height":
  78602. return ec.fieldContext_Image_height(ctx, field)
  78603. case "id":
  78604. return ec.fieldContext_Image_id(ctx, field)
  78605. case "metafield":
  78606. return ec.fieldContext_Image_metafield(ctx, field)
  78607. case "metafields":
  78608. return ec.fieldContext_Image_metafields(ctx, field)
  78609. case "privateMetafield":
  78610. return ec.fieldContext_Image_privateMetafield(ctx, field)
  78611. case "privateMetafields":
  78612. return ec.fieldContext_Image_privateMetafields(ctx, field)
  78613. case "url":
  78614. return ec.fieldContext_Image_url(ctx, field)
  78615. case "width":
  78616. return ec.fieldContext_Image_width(ctx, field)
  78617. }
  78618. return nil, fmt.Errorf("no field named %q was found under type Image", field.Name)
  78619. },
  78620. }
  78621. return fc, nil
  78622. }
  78623. func (ec *executionContext) _LineItem_merchantEditable(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  78624. fc, err := ec.fieldContext_LineItem_merchantEditable(ctx, field)
  78625. if err != nil {
  78626. return graphql.Null
  78627. }
  78628. ctx = graphql.WithFieldContext(ctx, fc)
  78629. defer func() {
  78630. if r := recover(); r != nil {
  78631. ec.Error(ctx, ec.Recover(ctx, r))
  78632. ret = graphql.Null
  78633. }
  78634. }()
  78635. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  78636. ctx = rctx // use context from middleware stack in children
  78637. return obj.MerchantEditable, nil
  78638. })
  78639. if err != nil {
  78640. ec.Error(ctx, err)
  78641. return graphql.Null
  78642. }
  78643. if resTmp == nil {
  78644. if !graphql.HasFieldError(ctx, fc) {
  78645. ec.Errorf(ctx, "must not be null")
  78646. }
  78647. return graphql.Null
  78648. }
  78649. res := resTmp.(bool)
  78650. fc.Result = res
  78651. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  78652. }
  78653. func (ec *executionContext) fieldContext_LineItem_merchantEditable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  78654. fc = &graphql.FieldContext{
  78655. Object: "LineItem",
  78656. Field: field,
  78657. IsMethod: false,
  78658. IsResolver: false,
  78659. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  78660. return nil, errors.New("field of type Boolean does not have child fields")
  78661. },
  78662. }
  78663. return fc, nil
  78664. }
  78665. func (ec *executionContext) _LineItem_name(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  78666. fc, err := ec.fieldContext_LineItem_name(ctx, field)
  78667. if err != nil {
  78668. return graphql.Null
  78669. }
  78670. ctx = graphql.WithFieldContext(ctx, fc)
  78671. defer func() {
  78672. if r := recover(); r != nil {
  78673. ec.Error(ctx, ec.Recover(ctx, r))
  78674. ret = graphql.Null
  78675. }
  78676. }()
  78677. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  78678. ctx = rctx // use context from middleware stack in children
  78679. return obj.Name, nil
  78680. })
  78681. if err != nil {
  78682. ec.Error(ctx, err)
  78683. return graphql.Null
  78684. }
  78685. if resTmp == nil {
  78686. if !graphql.HasFieldError(ctx, fc) {
  78687. ec.Errorf(ctx, "must not be null")
  78688. }
  78689. return graphql.Null
  78690. }
  78691. res := resTmp.(string)
  78692. fc.Result = res
  78693. return ec.marshalNString2string(ctx, field.Selections, res)
  78694. }
  78695. func (ec *executionContext) fieldContext_LineItem_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  78696. fc = &graphql.FieldContext{
  78697. Object: "LineItem",
  78698. Field: field,
  78699. IsMethod: false,
  78700. IsResolver: false,
  78701. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  78702. return nil, errors.New("field of type String does not have child fields")
  78703. },
  78704. }
  78705. return fc, nil
  78706. }
  78707. func (ec *executionContext) _LineItem_nonFulfillableQuantity(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  78708. fc, err := ec.fieldContext_LineItem_nonFulfillableQuantity(ctx, field)
  78709. if err != nil {
  78710. return graphql.Null
  78711. }
  78712. ctx = graphql.WithFieldContext(ctx, fc)
  78713. defer func() {
  78714. if r := recover(); r != nil {
  78715. ec.Error(ctx, ec.Recover(ctx, r))
  78716. ret = graphql.Null
  78717. }
  78718. }()
  78719. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  78720. ctx = rctx // use context from middleware stack in children
  78721. return obj.NonFulfillableQuantity, nil
  78722. })
  78723. if err != nil {
  78724. ec.Error(ctx, err)
  78725. return graphql.Null
  78726. }
  78727. if resTmp == nil {
  78728. if !graphql.HasFieldError(ctx, fc) {
  78729. ec.Errorf(ctx, "must not be null")
  78730. }
  78731. return graphql.Null
  78732. }
  78733. res := resTmp.(int)
  78734. fc.Result = res
  78735. return ec.marshalNInt2int(ctx, field.Selections, res)
  78736. }
  78737. func (ec *executionContext) fieldContext_LineItem_nonFulfillableQuantity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  78738. fc = &graphql.FieldContext{
  78739. Object: "LineItem",
  78740. Field: field,
  78741. IsMethod: false,
  78742. IsResolver: false,
  78743. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  78744. return nil, errors.New("field of type Int does not have child fields")
  78745. },
  78746. }
  78747. return fc, nil
  78748. }
  78749. func (ec *executionContext) _LineItem_originalTotalSet(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  78750. fc, err := ec.fieldContext_LineItem_originalTotalSet(ctx, field)
  78751. if err != nil {
  78752. return graphql.Null
  78753. }
  78754. ctx = graphql.WithFieldContext(ctx, fc)
  78755. defer func() {
  78756. if r := recover(); r != nil {
  78757. ec.Error(ctx, ec.Recover(ctx, r))
  78758. ret = graphql.Null
  78759. }
  78760. }()
  78761. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  78762. ctx = rctx // use context from middleware stack in children
  78763. return obj.OriginalTotalSet, nil
  78764. })
  78765. if err != nil {
  78766. ec.Error(ctx, err)
  78767. return graphql.Null
  78768. }
  78769. if resTmp == nil {
  78770. if !graphql.HasFieldError(ctx, fc) {
  78771. ec.Errorf(ctx, "must not be null")
  78772. }
  78773. return graphql.Null
  78774. }
  78775. res := resTmp.(*MoneyBag)
  78776. fc.Result = res
  78777. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  78778. }
  78779. func (ec *executionContext) fieldContext_LineItem_originalTotalSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  78780. fc = &graphql.FieldContext{
  78781. Object: "LineItem",
  78782. Field: field,
  78783. IsMethod: false,
  78784. IsResolver: false,
  78785. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  78786. switch field.Name {
  78787. case "presentmentMoney":
  78788. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  78789. case "shopMoney":
  78790. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  78791. }
  78792. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  78793. },
  78794. }
  78795. return fc, nil
  78796. }
  78797. func (ec *executionContext) _LineItem_originalUnitPriceSet(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  78798. fc, err := ec.fieldContext_LineItem_originalUnitPriceSet(ctx, field)
  78799. if err != nil {
  78800. return graphql.Null
  78801. }
  78802. ctx = graphql.WithFieldContext(ctx, fc)
  78803. defer func() {
  78804. if r := recover(); r != nil {
  78805. ec.Error(ctx, ec.Recover(ctx, r))
  78806. ret = graphql.Null
  78807. }
  78808. }()
  78809. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  78810. ctx = rctx // use context from middleware stack in children
  78811. return obj.OriginalUnitPriceSet, nil
  78812. })
  78813. if err != nil {
  78814. ec.Error(ctx, err)
  78815. return graphql.Null
  78816. }
  78817. if resTmp == nil {
  78818. if !graphql.HasFieldError(ctx, fc) {
  78819. ec.Errorf(ctx, "must not be null")
  78820. }
  78821. return graphql.Null
  78822. }
  78823. res := resTmp.(*MoneyBag)
  78824. fc.Result = res
  78825. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  78826. }
  78827. func (ec *executionContext) fieldContext_LineItem_originalUnitPriceSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  78828. fc = &graphql.FieldContext{
  78829. Object: "LineItem",
  78830. Field: field,
  78831. IsMethod: false,
  78832. IsResolver: false,
  78833. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  78834. switch field.Name {
  78835. case "presentmentMoney":
  78836. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  78837. case "shopMoney":
  78838. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  78839. }
  78840. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  78841. },
  78842. }
  78843. return fc, nil
  78844. }
  78845. func (ec *executionContext) _LineItem_product(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  78846. fc, err := ec.fieldContext_LineItem_product(ctx, field)
  78847. if err != nil {
  78848. return graphql.Null
  78849. }
  78850. ctx = graphql.WithFieldContext(ctx, fc)
  78851. defer func() {
  78852. if r := recover(); r != nil {
  78853. ec.Error(ctx, ec.Recover(ctx, r))
  78854. ret = graphql.Null
  78855. }
  78856. }()
  78857. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  78858. ctx = rctx // use context from middleware stack in children
  78859. return obj.Product, nil
  78860. })
  78861. if err != nil {
  78862. ec.Error(ctx, err)
  78863. return graphql.Null
  78864. }
  78865. if resTmp == nil {
  78866. return graphql.Null
  78867. }
  78868. res := resTmp.(*Product)
  78869. fc.Result = res
  78870. return ec.marshalOProduct2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProduct(ctx, field.Selections, res)
  78871. }
  78872. func (ec *executionContext) fieldContext_LineItem_product(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  78873. fc = &graphql.FieldContext{
  78874. Object: "LineItem",
  78875. Field: field,
  78876. IsMethod: false,
  78877. IsResolver: false,
  78878. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  78879. switch field.Name {
  78880. case "availablePublicationCount":
  78881. return ec.fieldContext_Product_availablePublicationCount(ctx, field)
  78882. case "collections":
  78883. return ec.fieldContext_Product_collections(ctx, field)
  78884. case "contextualPricing":
  78885. return ec.fieldContext_Product_contextualPricing(ctx, field)
  78886. case "createdAt":
  78887. return ec.fieldContext_Product_createdAt(ctx, field)
  78888. case "defaultCursor":
  78889. return ec.fieldContext_Product_defaultCursor(ctx, field)
  78890. case "description":
  78891. return ec.fieldContext_Product_description(ctx, field)
  78892. case "descriptionHtml":
  78893. return ec.fieldContext_Product_descriptionHtml(ctx, field)
  78894. case "featuredImage":
  78895. return ec.fieldContext_Product_featuredImage(ctx, field)
  78896. case "featuredMedia":
  78897. return ec.fieldContext_Product_featuredMedia(ctx, field)
  78898. case "feedback":
  78899. return ec.fieldContext_Product_feedback(ctx, field)
  78900. case "giftCardTemplateSuffix":
  78901. return ec.fieldContext_Product_giftCardTemplateSuffix(ctx, field)
  78902. case "handle":
  78903. return ec.fieldContext_Product_handle(ctx, field)
  78904. case "hasOnlyDefaultVariant":
  78905. return ec.fieldContext_Product_hasOnlyDefaultVariant(ctx, field)
  78906. case "hasOutOfStockVariants":
  78907. return ec.fieldContext_Product_hasOutOfStockVariants(ctx, field)
  78908. case "id":
  78909. return ec.fieldContext_Product_id(ctx, field)
  78910. case "images":
  78911. return ec.fieldContext_Product_images(ctx, field)
  78912. case "inCollection":
  78913. return ec.fieldContext_Product_inCollection(ctx, field)
  78914. case "isGiftCard":
  78915. return ec.fieldContext_Product_isGiftCard(ctx, field)
  78916. case "legacyResourceId":
  78917. return ec.fieldContext_Product_legacyResourceId(ctx, field)
  78918. case "media":
  78919. return ec.fieldContext_Product_media(ctx, field)
  78920. case "mediaCount":
  78921. return ec.fieldContext_Product_mediaCount(ctx, field)
  78922. case "metafield":
  78923. return ec.fieldContext_Product_metafield(ctx, field)
  78924. case "metafieldDefinitions":
  78925. return ec.fieldContext_Product_metafieldDefinitions(ctx, field)
  78926. case "metafields":
  78927. return ec.fieldContext_Product_metafields(ctx, field)
  78928. case "onlineStorePreviewUrl":
  78929. return ec.fieldContext_Product_onlineStorePreviewUrl(ctx, field)
  78930. case "onlineStoreUrl":
  78931. return ec.fieldContext_Product_onlineStoreUrl(ctx, field)
  78932. case "options":
  78933. return ec.fieldContext_Product_options(ctx, field)
  78934. case "priceRangeV2":
  78935. return ec.fieldContext_Product_priceRangeV2(ctx, field)
  78936. case "privateMetafield":
  78937. return ec.fieldContext_Product_privateMetafield(ctx, field)
  78938. case "privateMetafields":
  78939. return ec.fieldContext_Product_privateMetafields(ctx, field)
  78940. case "productCategory":
  78941. return ec.fieldContext_Product_productCategory(ctx, field)
  78942. case "productType":
  78943. return ec.fieldContext_Product_productType(ctx, field)
  78944. case "publicationCount":
  78945. return ec.fieldContext_Product_publicationCount(ctx, field)
  78946. case "publishedAt":
  78947. return ec.fieldContext_Product_publishedAt(ctx, field)
  78948. case "publishedOnCurrentPublication":
  78949. return ec.fieldContext_Product_publishedOnCurrentPublication(ctx, field)
  78950. case "publishedOnPublication":
  78951. return ec.fieldContext_Product_publishedOnPublication(ctx, field)
  78952. case "requiresSellingPlan":
  78953. return ec.fieldContext_Product_requiresSellingPlan(ctx, field)
  78954. case "resourcePublicationOnCurrentPublication":
  78955. return ec.fieldContext_Product_resourcePublicationOnCurrentPublication(ctx, field)
  78956. case "resourcePublications":
  78957. return ec.fieldContext_Product_resourcePublications(ctx, field)
  78958. case "resourcePublicationsV2":
  78959. return ec.fieldContext_Product_resourcePublicationsV2(ctx, field)
  78960. case "sellingPlanGroupCount":
  78961. return ec.fieldContext_Product_sellingPlanGroupCount(ctx, field)
  78962. case "sellingPlanGroups":
  78963. return ec.fieldContext_Product_sellingPlanGroups(ctx, field)
  78964. case "seo":
  78965. return ec.fieldContext_Product_seo(ctx, field)
  78966. case "status":
  78967. return ec.fieldContext_Product_status(ctx, field)
  78968. case "tags":
  78969. return ec.fieldContext_Product_tags(ctx, field)
  78970. case "templateSuffix":
  78971. return ec.fieldContext_Product_templateSuffix(ctx, field)
  78972. case "title":
  78973. return ec.fieldContext_Product_title(ctx, field)
  78974. case "totalInventory":
  78975. return ec.fieldContext_Product_totalInventory(ctx, field)
  78976. case "totalVariants":
  78977. return ec.fieldContext_Product_totalVariants(ctx, field)
  78978. case "tracksInventory":
  78979. return ec.fieldContext_Product_tracksInventory(ctx, field)
  78980. case "translations":
  78981. return ec.fieldContext_Product_translations(ctx, field)
  78982. case "unpublishedPublications":
  78983. return ec.fieldContext_Product_unpublishedPublications(ctx, field)
  78984. case "updatedAt":
  78985. return ec.fieldContext_Product_updatedAt(ctx, field)
  78986. case "variants":
  78987. return ec.fieldContext_Product_variants(ctx, field)
  78988. case "vendor":
  78989. return ec.fieldContext_Product_vendor(ctx, field)
  78990. }
  78991. return nil, fmt.Errorf("no field named %q was found under type Product", field.Name)
  78992. },
  78993. }
  78994. return fc, nil
  78995. }
  78996. func (ec *executionContext) _LineItem_quantity(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  78997. fc, err := ec.fieldContext_LineItem_quantity(ctx, field)
  78998. if err != nil {
  78999. return graphql.Null
  79000. }
  79001. ctx = graphql.WithFieldContext(ctx, fc)
  79002. defer func() {
  79003. if r := recover(); r != nil {
  79004. ec.Error(ctx, ec.Recover(ctx, r))
  79005. ret = graphql.Null
  79006. }
  79007. }()
  79008. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  79009. ctx = rctx // use context from middleware stack in children
  79010. return obj.Quantity, nil
  79011. })
  79012. if err != nil {
  79013. ec.Error(ctx, err)
  79014. return graphql.Null
  79015. }
  79016. if resTmp == nil {
  79017. if !graphql.HasFieldError(ctx, fc) {
  79018. ec.Errorf(ctx, "must not be null")
  79019. }
  79020. return graphql.Null
  79021. }
  79022. res := resTmp.(int)
  79023. fc.Result = res
  79024. return ec.marshalNInt2int(ctx, field.Selections, res)
  79025. }
  79026. func (ec *executionContext) fieldContext_LineItem_quantity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  79027. fc = &graphql.FieldContext{
  79028. Object: "LineItem",
  79029. Field: field,
  79030. IsMethod: false,
  79031. IsResolver: false,
  79032. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  79033. return nil, errors.New("field of type Int does not have child fields")
  79034. },
  79035. }
  79036. return fc, nil
  79037. }
  79038. func (ec *executionContext) _LineItem_refundableQuantity(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  79039. fc, err := ec.fieldContext_LineItem_refundableQuantity(ctx, field)
  79040. if err != nil {
  79041. return graphql.Null
  79042. }
  79043. ctx = graphql.WithFieldContext(ctx, fc)
  79044. defer func() {
  79045. if r := recover(); r != nil {
  79046. ec.Error(ctx, ec.Recover(ctx, r))
  79047. ret = graphql.Null
  79048. }
  79049. }()
  79050. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  79051. ctx = rctx // use context from middleware stack in children
  79052. return obj.RefundableQuantity, nil
  79053. })
  79054. if err != nil {
  79055. ec.Error(ctx, err)
  79056. return graphql.Null
  79057. }
  79058. if resTmp == nil {
  79059. if !graphql.HasFieldError(ctx, fc) {
  79060. ec.Errorf(ctx, "must not be null")
  79061. }
  79062. return graphql.Null
  79063. }
  79064. res := resTmp.(int)
  79065. fc.Result = res
  79066. return ec.marshalNInt2int(ctx, field.Selections, res)
  79067. }
  79068. func (ec *executionContext) fieldContext_LineItem_refundableQuantity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  79069. fc = &graphql.FieldContext{
  79070. Object: "LineItem",
  79071. Field: field,
  79072. IsMethod: false,
  79073. IsResolver: false,
  79074. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  79075. return nil, errors.New("field of type Int does not have child fields")
  79076. },
  79077. }
  79078. return fc, nil
  79079. }
  79080. func (ec *executionContext) _LineItem_requiresShipping(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  79081. fc, err := ec.fieldContext_LineItem_requiresShipping(ctx, field)
  79082. if err != nil {
  79083. return graphql.Null
  79084. }
  79085. ctx = graphql.WithFieldContext(ctx, fc)
  79086. defer func() {
  79087. if r := recover(); r != nil {
  79088. ec.Error(ctx, ec.Recover(ctx, r))
  79089. ret = graphql.Null
  79090. }
  79091. }()
  79092. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  79093. ctx = rctx // use context from middleware stack in children
  79094. return obj.RequiresShipping, nil
  79095. })
  79096. if err != nil {
  79097. ec.Error(ctx, err)
  79098. return graphql.Null
  79099. }
  79100. if resTmp == nil {
  79101. if !graphql.HasFieldError(ctx, fc) {
  79102. ec.Errorf(ctx, "must not be null")
  79103. }
  79104. return graphql.Null
  79105. }
  79106. res := resTmp.(bool)
  79107. fc.Result = res
  79108. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  79109. }
  79110. func (ec *executionContext) fieldContext_LineItem_requiresShipping(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  79111. fc = &graphql.FieldContext{
  79112. Object: "LineItem",
  79113. Field: field,
  79114. IsMethod: false,
  79115. IsResolver: false,
  79116. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  79117. return nil, errors.New("field of type Boolean does not have child fields")
  79118. },
  79119. }
  79120. return fc, nil
  79121. }
  79122. func (ec *executionContext) _LineItem_restockable(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  79123. fc, err := ec.fieldContext_LineItem_restockable(ctx, field)
  79124. if err != nil {
  79125. return graphql.Null
  79126. }
  79127. ctx = graphql.WithFieldContext(ctx, fc)
  79128. defer func() {
  79129. if r := recover(); r != nil {
  79130. ec.Error(ctx, ec.Recover(ctx, r))
  79131. ret = graphql.Null
  79132. }
  79133. }()
  79134. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  79135. ctx = rctx // use context from middleware stack in children
  79136. return obj.Restockable, nil
  79137. })
  79138. if err != nil {
  79139. ec.Error(ctx, err)
  79140. return graphql.Null
  79141. }
  79142. if resTmp == nil {
  79143. if !graphql.HasFieldError(ctx, fc) {
  79144. ec.Errorf(ctx, "must not be null")
  79145. }
  79146. return graphql.Null
  79147. }
  79148. res := resTmp.(bool)
  79149. fc.Result = res
  79150. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  79151. }
  79152. func (ec *executionContext) fieldContext_LineItem_restockable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  79153. fc = &graphql.FieldContext{
  79154. Object: "LineItem",
  79155. Field: field,
  79156. IsMethod: false,
  79157. IsResolver: false,
  79158. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  79159. return nil, errors.New("field of type Boolean does not have child fields")
  79160. },
  79161. }
  79162. return fc, nil
  79163. }
  79164. func (ec *executionContext) _LineItem_sellingPlan(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  79165. fc, err := ec.fieldContext_LineItem_sellingPlan(ctx, field)
  79166. if err != nil {
  79167. return graphql.Null
  79168. }
  79169. ctx = graphql.WithFieldContext(ctx, fc)
  79170. defer func() {
  79171. if r := recover(); r != nil {
  79172. ec.Error(ctx, ec.Recover(ctx, r))
  79173. ret = graphql.Null
  79174. }
  79175. }()
  79176. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  79177. ctx = rctx // use context from middleware stack in children
  79178. return obj.SellingPlan, nil
  79179. })
  79180. if err != nil {
  79181. ec.Error(ctx, err)
  79182. return graphql.Null
  79183. }
  79184. if resTmp == nil {
  79185. return graphql.Null
  79186. }
  79187. res := resTmp.(*LineItemSellingPlan)
  79188. fc.Result = res
  79189. return ec.marshalOLineItemSellingPlan2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLineItemSellingPlan(ctx, field.Selections, res)
  79190. }
  79191. func (ec *executionContext) fieldContext_LineItem_sellingPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  79192. fc = &graphql.FieldContext{
  79193. Object: "LineItem",
  79194. Field: field,
  79195. IsMethod: false,
  79196. IsResolver: false,
  79197. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  79198. switch field.Name {
  79199. case "name":
  79200. return ec.fieldContext_LineItemSellingPlan_name(ctx, field)
  79201. case "sellingPlanId":
  79202. return ec.fieldContext_LineItemSellingPlan_sellingPlanId(ctx, field)
  79203. }
  79204. return nil, fmt.Errorf("no field named %q was found under type LineItemSellingPlan", field.Name)
  79205. },
  79206. }
  79207. return fc, nil
  79208. }
  79209. func (ec *executionContext) _LineItem_sku(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  79210. fc, err := ec.fieldContext_LineItem_sku(ctx, field)
  79211. if err != nil {
  79212. return graphql.Null
  79213. }
  79214. ctx = graphql.WithFieldContext(ctx, fc)
  79215. defer func() {
  79216. if r := recover(); r != nil {
  79217. ec.Error(ctx, ec.Recover(ctx, r))
  79218. ret = graphql.Null
  79219. }
  79220. }()
  79221. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  79222. ctx = rctx // use context from middleware stack in children
  79223. return obj.Sku, nil
  79224. })
  79225. if err != nil {
  79226. ec.Error(ctx, err)
  79227. return graphql.Null
  79228. }
  79229. if resTmp == nil {
  79230. return graphql.Null
  79231. }
  79232. res := resTmp.(*string)
  79233. fc.Result = res
  79234. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  79235. }
  79236. func (ec *executionContext) fieldContext_LineItem_sku(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  79237. fc = &graphql.FieldContext{
  79238. Object: "LineItem",
  79239. Field: field,
  79240. IsMethod: false,
  79241. IsResolver: false,
  79242. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  79243. return nil, errors.New("field of type String does not have child fields")
  79244. },
  79245. }
  79246. return fc, nil
  79247. }
  79248. func (ec *executionContext) _LineItem_staffMember(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  79249. fc, err := ec.fieldContext_LineItem_staffMember(ctx, field)
  79250. if err != nil {
  79251. return graphql.Null
  79252. }
  79253. ctx = graphql.WithFieldContext(ctx, fc)
  79254. defer func() {
  79255. if r := recover(); r != nil {
  79256. ec.Error(ctx, ec.Recover(ctx, r))
  79257. ret = graphql.Null
  79258. }
  79259. }()
  79260. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  79261. ctx = rctx // use context from middleware stack in children
  79262. return obj.StaffMember, nil
  79263. })
  79264. if err != nil {
  79265. ec.Error(ctx, err)
  79266. return graphql.Null
  79267. }
  79268. if resTmp == nil {
  79269. return graphql.Null
  79270. }
  79271. res := resTmp.(*StaffMember)
  79272. fc.Result = res
  79273. return ec.marshalOStaffMember2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStaffMember(ctx, field.Selections, res)
  79274. }
  79275. func (ec *executionContext) fieldContext_LineItem_staffMember(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  79276. fc = &graphql.FieldContext{
  79277. Object: "LineItem",
  79278. Field: field,
  79279. IsMethod: false,
  79280. IsResolver: false,
  79281. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  79282. switch field.Name {
  79283. case "active":
  79284. return ec.fieldContext_StaffMember_active(ctx, field)
  79285. case "avatar":
  79286. return ec.fieldContext_StaffMember_avatar(ctx, field)
  79287. case "email":
  79288. return ec.fieldContext_StaffMember_email(ctx, field)
  79289. case "exists":
  79290. return ec.fieldContext_StaffMember_exists(ctx, field)
  79291. case "firstName":
  79292. return ec.fieldContext_StaffMember_firstName(ctx, field)
  79293. case "id":
  79294. return ec.fieldContext_StaffMember_id(ctx, field)
  79295. case "initials":
  79296. return ec.fieldContext_StaffMember_initials(ctx, field)
  79297. case "isShopOwner":
  79298. return ec.fieldContext_StaffMember_isShopOwner(ctx, field)
  79299. case "lastName":
  79300. return ec.fieldContext_StaffMember_lastName(ctx, field)
  79301. case "locale":
  79302. return ec.fieldContext_StaffMember_locale(ctx, field)
  79303. case "name":
  79304. return ec.fieldContext_StaffMember_name(ctx, field)
  79305. case "phone":
  79306. return ec.fieldContext_StaffMember_phone(ctx, field)
  79307. case "privateData":
  79308. return ec.fieldContext_StaffMember_privateData(ctx, field)
  79309. }
  79310. return nil, fmt.Errorf("no field named %q was found under type StaffMember", field.Name)
  79311. },
  79312. }
  79313. return fc, nil
  79314. }
  79315. func (ec *executionContext) _LineItem_taxLines(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  79316. fc, err := ec.fieldContext_LineItem_taxLines(ctx, field)
  79317. if err != nil {
  79318. return graphql.Null
  79319. }
  79320. ctx = graphql.WithFieldContext(ctx, fc)
  79321. defer func() {
  79322. if r := recover(); r != nil {
  79323. ec.Error(ctx, ec.Recover(ctx, r))
  79324. ret = graphql.Null
  79325. }
  79326. }()
  79327. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  79328. ctx = rctx // use context from middleware stack in children
  79329. return obj.TaxLines, nil
  79330. })
  79331. if err != nil {
  79332. ec.Error(ctx, err)
  79333. return graphql.Null
  79334. }
  79335. if resTmp == nil {
  79336. if !graphql.HasFieldError(ctx, fc) {
  79337. ec.Errorf(ctx, "must not be null")
  79338. }
  79339. return graphql.Null
  79340. }
  79341. res := resTmp.([]*TaxLine)
  79342. fc.Result = res
  79343. return ec.marshalNTaxLine2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐTaxLineᚄ(ctx, field.Selections, res)
  79344. }
  79345. func (ec *executionContext) fieldContext_LineItem_taxLines(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  79346. fc = &graphql.FieldContext{
  79347. Object: "LineItem",
  79348. Field: field,
  79349. IsMethod: false,
  79350. IsResolver: false,
  79351. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  79352. switch field.Name {
  79353. case "channelLiable":
  79354. return ec.fieldContext_TaxLine_channelLiable(ctx, field)
  79355. case "priceSet":
  79356. return ec.fieldContext_TaxLine_priceSet(ctx, field)
  79357. case "rate":
  79358. return ec.fieldContext_TaxLine_rate(ctx, field)
  79359. case "ratePercentage":
  79360. return ec.fieldContext_TaxLine_ratePercentage(ctx, field)
  79361. case "title":
  79362. return ec.fieldContext_TaxLine_title(ctx, field)
  79363. }
  79364. return nil, fmt.Errorf("no field named %q was found under type TaxLine", field.Name)
  79365. },
  79366. }
  79367. defer func() {
  79368. if r := recover(); r != nil {
  79369. err = ec.Recover(ctx, r)
  79370. ec.Error(ctx, err)
  79371. }
  79372. }()
  79373. ctx = graphql.WithFieldContext(ctx, fc)
  79374. if fc.Args, err = ec.field_LineItem_taxLines_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  79375. ec.Error(ctx, err)
  79376. return
  79377. }
  79378. return fc, nil
  79379. }
  79380. func (ec *executionContext) _LineItem_taxable(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  79381. fc, err := ec.fieldContext_LineItem_taxable(ctx, field)
  79382. if err != nil {
  79383. return graphql.Null
  79384. }
  79385. ctx = graphql.WithFieldContext(ctx, fc)
  79386. defer func() {
  79387. if r := recover(); r != nil {
  79388. ec.Error(ctx, ec.Recover(ctx, r))
  79389. ret = graphql.Null
  79390. }
  79391. }()
  79392. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  79393. ctx = rctx // use context from middleware stack in children
  79394. return obj.Taxable, nil
  79395. })
  79396. if err != nil {
  79397. ec.Error(ctx, err)
  79398. return graphql.Null
  79399. }
  79400. if resTmp == nil {
  79401. if !graphql.HasFieldError(ctx, fc) {
  79402. ec.Errorf(ctx, "must not be null")
  79403. }
  79404. return graphql.Null
  79405. }
  79406. res := resTmp.(bool)
  79407. fc.Result = res
  79408. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  79409. }
  79410. func (ec *executionContext) fieldContext_LineItem_taxable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  79411. fc = &graphql.FieldContext{
  79412. Object: "LineItem",
  79413. Field: field,
  79414. IsMethod: false,
  79415. IsResolver: false,
  79416. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  79417. return nil, errors.New("field of type Boolean does not have child fields")
  79418. },
  79419. }
  79420. return fc, nil
  79421. }
  79422. func (ec *executionContext) _LineItem_title(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  79423. fc, err := ec.fieldContext_LineItem_title(ctx, field)
  79424. if err != nil {
  79425. return graphql.Null
  79426. }
  79427. ctx = graphql.WithFieldContext(ctx, fc)
  79428. defer func() {
  79429. if r := recover(); r != nil {
  79430. ec.Error(ctx, ec.Recover(ctx, r))
  79431. ret = graphql.Null
  79432. }
  79433. }()
  79434. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  79435. ctx = rctx // use context from middleware stack in children
  79436. return obj.Title, nil
  79437. })
  79438. if err != nil {
  79439. ec.Error(ctx, err)
  79440. return graphql.Null
  79441. }
  79442. if resTmp == nil {
  79443. if !graphql.HasFieldError(ctx, fc) {
  79444. ec.Errorf(ctx, "must not be null")
  79445. }
  79446. return graphql.Null
  79447. }
  79448. res := resTmp.(string)
  79449. fc.Result = res
  79450. return ec.marshalNString2string(ctx, field.Selections, res)
  79451. }
  79452. func (ec *executionContext) fieldContext_LineItem_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  79453. fc = &graphql.FieldContext{
  79454. Object: "LineItem",
  79455. Field: field,
  79456. IsMethod: false,
  79457. IsResolver: false,
  79458. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  79459. return nil, errors.New("field of type String does not have child fields")
  79460. },
  79461. }
  79462. return fc, nil
  79463. }
  79464. func (ec *executionContext) _LineItem_totalDiscountSet(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  79465. fc, err := ec.fieldContext_LineItem_totalDiscountSet(ctx, field)
  79466. if err != nil {
  79467. return graphql.Null
  79468. }
  79469. ctx = graphql.WithFieldContext(ctx, fc)
  79470. defer func() {
  79471. if r := recover(); r != nil {
  79472. ec.Error(ctx, ec.Recover(ctx, r))
  79473. ret = graphql.Null
  79474. }
  79475. }()
  79476. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  79477. ctx = rctx // use context from middleware stack in children
  79478. return obj.TotalDiscountSet, nil
  79479. })
  79480. if err != nil {
  79481. ec.Error(ctx, err)
  79482. return graphql.Null
  79483. }
  79484. if resTmp == nil {
  79485. if !graphql.HasFieldError(ctx, fc) {
  79486. ec.Errorf(ctx, "must not be null")
  79487. }
  79488. return graphql.Null
  79489. }
  79490. res := resTmp.(*MoneyBag)
  79491. fc.Result = res
  79492. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  79493. }
  79494. func (ec *executionContext) fieldContext_LineItem_totalDiscountSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  79495. fc = &graphql.FieldContext{
  79496. Object: "LineItem",
  79497. Field: field,
  79498. IsMethod: false,
  79499. IsResolver: false,
  79500. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  79501. switch field.Name {
  79502. case "presentmentMoney":
  79503. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  79504. case "shopMoney":
  79505. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  79506. }
  79507. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  79508. },
  79509. }
  79510. return fc, nil
  79511. }
  79512. func (ec *executionContext) _LineItem_unfulfilledDiscountedTotalSet(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  79513. fc, err := ec.fieldContext_LineItem_unfulfilledDiscountedTotalSet(ctx, field)
  79514. if err != nil {
  79515. return graphql.Null
  79516. }
  79517. ctx = graphql.WithFieldContext(ctx, fc)
  79518. defer func() {
  79519. if r := recover(); r != nil {
  79520. ec.Error(ctx, ec.Recover(ctx, r))
  79521. ret = graphql.Null
  79522. }
  79523. }()
  79524. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  79525. ctx = rctx // use context from middleware stack in children
  79526. return obj.UnfulfilledDiscountedTotalSet, nil
  79527. })
  79528. if err != nil {
  79529. ec.Error(ctx, err)
  79530. return graphql.Null
  79531. }
  79532. if resTmp == nil {
  79533. if !graphql.HasFieldError(ctx, fc) {
  79534. ec.Errorf(ctx, "must not be null")
  79535. }
  79536. return graphql.Null
  79537. }
  79538. res := resTmp.(*MoneyBag)
  79539. fc.Result = res
  79540. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  79541. }
  79542. func (ec *executionContext) fieldContext_LineItem_unfulfilledDiscountedTotalSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  79543. fc = &graphql.FieldContext{
  79544. Object: "LineItem",
  79545. Field: field,
  79546. IsMethod: false,
  79547. IsResolver: false,
  79548. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  79549. switch field.Name {
  79550. case "presentmentMoney":
  79551. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  79552. case "shopMoney":
  79553. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  79554. }
  79555. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  79556. },
  79557. }
  79558. return fc, nil
  79559. }
  79560. func (ec *executionContext) _LineItem_unfulfilledOriginalTotalSet(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  79561. fc, err := ec.fieldContext_LineItem_unfulfilledOriginalTotalSet(ctx, field)
  79562. if err != nil {
  79563. return graphql.Null
  79564. }
  79565. ctx = graphql.WithFieldContext(ctx, fc)
  79566. defer func() {
  79567. if r := recover(); r != nil {
  79568. ec.Error(ctx, ec.Recover(ctx, r))
  79569. ret = graphql.Null
  79570. }
  79571. }()
  79572. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  79573. ctx = rctx // use context from middleware stack in children
  79574. return obj.UnfulfilledOriginalTotalSet, nil
  79575. })
  79576. if err != nil {
  79577. ec.Error(ctx, err)
  79578. return graphql.Null
  79579. }
  79580. if resTmp == nil {
  79581. if !graphql.HasFieldError(ctx, fc) {
  79582. ec.Errorf(ctx, "must not be null")
  79583. }
  79584. return graphql.Null
  79585. }
  79586. res := resTmp.(*MoneyBag)
  79587. fc.Result = res
  79588. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  79589. }
  79590. func (ec *executionContext) fieldContext_LineItem_unfulfilledOriginalTotalSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  79591. fc = &graphql.FieldContext{
  79592. Object: "LineItem",
  79593. Field: field,
  79594. IsMethod: false,
  79595. IsResolver: false,
  79596. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  79597. switch field.Name {
  79598. case "presentmentMoney":
  79599. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  79600. case "shopMoney":
  79601. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  79602. }
  79603. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  79604. },
  79605. }
  79606. return fc, nil
  79607. }
  79608. func (ec *executionContext) _LineItem_unfulfilledQuantity(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  79609. fc, err := ec.fieldContext_LineItem_unfulfilledQuantity(ctx, field)
  79610. if err != nil {
  79611. return graphql.Null
  79612. }
  79613. ctx = graphql.WithFieldContext(ctx, fc)
  79614. defer func() {
  79615. if r := recover(); r != nil {
  79616. ec.Error(ctx, ec.Recover(ctx, r))
  79617. ret = graphql.Null
  79618. }
  79619. }()
  79620. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  79621. ctx = rctx // use context from middleware stack in children
  79622. return obj.UnfulfilledQuantity, nil
  79623. })
  79624. if err != nil {
  79625. ec.Error(ctx, err)
  79626. return graphql.Null
  79627. }
  79628. if resTmp == nil {
  79629. if !graphql.HasFieldError(ctx, fc) {
  79630. ec.Errorf(ctx, "must not be null")
  79631. }
  79632. return graphql.Null
  79633. }
  79634. res := resTmp.(int)
  79635. fc.Result = res
  79636. return ec.marshalNInt2int(ctx, field.Selections, res)
  79637. }
  79638. func (ec *executionContext) fieldContext_LineItem_unfulfilledQuantity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  79639. fc = &graphql.FieldContext{
  79640. Object: "LineItem",
  79641. Field: field,
  79642. IsMethod: false,
  79643. IsResolver: false,
  79644. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  79645. return nil, errors.New("field of type Int does not have child fields")
  79646. },
  79647. }
  79648. return fc, nil
  79649. }
  79650. func (ec *executionContext) _LineItem_variant(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  79651. fc, err := ec.fieldContext_LineItem_variant(ctx, field)
  79652. if err != nil {
  79653. return graphql.Null
  79654. }
  79655. ctx = graphql.WithFieldContext(ctx, fc)
  79656. defer func() {
  79657. if r := recover(); r != nil {
  79658. ec.Error(ctx, ec.Recover(ctx, r))
  79659. ret = graphql.Null
  79660. }
  79661. }()
  79662. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  79663. ctx = rctx // use context from middleware stack in children
  79664. return obj.Variant, nil
  79665. })
  79666. if err != nil {
  79667. ec.Error(ctx, err)
  79668. return graphql.Null
  79669. }
  79670. if resTmp == nil {
  79671. return graphql.Null
  79672. }
  79673. res := resTmp.(*ProductVariant)
  79674. fc.Result = res
  79675. return ec.marshalOProductVariant2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariant(ctx, field.Selections, res)
  79676. }
  79677. func (ec *executionContext) fieldContext_LineItem_variant(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  79678. fc = &graphql.FieldContext{
  79679. Object: "LineItem",
  79680. Field: field,
  79681. IsMethod: false,
  79682. IsResolver: false,
  79683. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  79684. switch field.Name {
  79685. case "availableForSale":
  79686. return ec.fieldContext_ProductVariant_availableForSale(ctx, field)
  79687. case "barcode":
  79688. return ec.fieldContext_ProductVariant_barcode(ctx, field)
  79689. case "compareAtPrice":
  79690. return ec.fieldContext_ProductVariant_compareAtPrice(ctx, field)
  79691. case "contextualPricing":
  79692. return ec.fieldContext_ProductVariant_contextualPricing(ctx, field)
  79693. case "createdAt":
  79694. return ec.fieldContext_ProductVariant_createdAt(ctx, field)
  79695. case "defaultCursor":
  79696. return ec.fieldContext_ProductVariant_defaultCursor(ctx, field)
  79697. case "deliveryProfile":
  79698. return ec.fieldContext_ProductVariant_deliveryProfile(ctx, field)
  79699. case "displayName":
  79700. return ec.fieldContext_ProductVariant_displayName(ctx, field)
  79701. case "fulfillmentServiceEditable":
  79702. return ec.fieldContext_ProductVariant_fulfillmentServiceEditable(ctx, field)
  79703. case "id":
  79704. return ec.fieldContext_ProductVariant_id(ctx, field)
  79705. case "image":
  79706. return ec.fieldContext_ProductVariant_image(ctx, field)
  79707. case "inventoryItem":
  79708. return ec.fieldContext_ProductVariant_inventoryItem(ctx, field)
  79709. case "inventoryPolicy":
  79710. return ec.fieldContext_ProductVariant_inventoryPolicy(ctx, field)
  79711. case "inventoryQuantity":
  79712. return ec.fieldContext_ProductVariant_inventoryQuantity(ctx, field)
  79713. case "legacyResourceId":
  79714. return ec.fieldContext_ProductVariant_legacyResourceId(ctx, field)
  79715. case "media":
  79716. return ec.fieldContext_ProductVariant_media(ctx, field)
  79717. case "metafield":
  79718. return ec.fieldContext_ProductVariant_metafield(ctx, field)
  79719. case "metafieldDefinitions":
  79720. return ec.fieldContext_ProductVariant_metafieldDefinitions(ctx, field)
  79721. case "metafields":
  79722. return ec.fieldContext_ProductVariant_metafields(ctx, field)
  79723. case "position":
  79724. return ec.fieldContext_ProductVariant_position(ctx, field)
  79725. case "price":
  79726. return ec.fieldContext_ProductVariant_price(ctx, field)
  79727. case "privateMetafield":
  79728. return ec.fieldContext_ProductVariant_privateMetafield(ctx, field)
  79729. case "privateMetafields":
  79730. return ec.fieldContext_ProductVariant_privateMetafields(ctx, field)
  79731. case "product":
  79732. return ec.fieldContext_ProductVariant_product(ctx, field)
  79733. case "selectedOptions":
  79734. return ec.fieldContext_ProductVariant_selectedOptions(ctx, field)
  79735. case "sellableOnlineQuantity":
  79736. return ec.fieldContext_ProductVariant_sellableOnlineQuantity(ctx, field)
  79737. case "sellingPlanGroupCount":
  79738. return ec.fieldContext_ProductVariant_sellingPlanGroupCount(ctx, field)
  79739. case "sellingPlanGroups":
  79740. return ec.fieldContext_ProductVariant_sellingPlanGroups(ctx, field)
  79741. case "sku":
  79742. return ec.fieldContext_ProductVariant_sku(ctx, field)
  79743. case "taxCode":
  79744. return ec.fieldContext_ProductVariant_taxCode(ctx, field)
  79745. case "taxable":
  79746. return ec.fieldContext_ProductVariant_taxable(ctx, field)
  79747. case "title":
  79748. return ec.fieldContext_ProductVariant_title(ctx, field)
  79749. case "translations":
  79750. return ec.fieldContext_ProductVariant_translations(ctx, field)
  79751. case "updatedAt":
  79752. return ec.fieldContext_ProductVariant_updatedAt(ctx, field)
  79753. case "weight":
  79754. return ec.fieldContext_ProductVariant_weight(ctx, field)
  79755. case "weightUnit":
  79756. return ec.fieldContext_ProductVariant_weightUnit(ctx, field)
  79757. }
  79758. return nil, fmt.Errorf("no field named %q was found under type ProductVariant", field.Name)
  79759. },
  79760. }
  79761. return fc, nil
  79762. }
  79763. func (ec *executionContext) _LineItem_variantTitle(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  79764. fc, err := ec.fieldContext_LineItem_variantTitle(ctx, field)
  79765. if err != nil {
  79766. return graphql.Null
  79767. }
  79768. ctx = graphql.WithFieldContext(ctx, fc)
  79769. defer func() {
  79770. if r := recover(); r != nil {
  79771. ec.Error(ctx, ec.Recover(ctx, r))
  79772. ret = graphql.Null
  79773. }
  79774. }()
  79775. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  79776. ctx = rctx // use context from middleware stack in children
  79777. return obj.VariantTitle, nil
  79778. })
  79779. if err != nil {
  79780. ec.Error(ctx, err)
  79781. return graphql.Null
  79782. }
  79783. if resTmp == nil {
  79784. return graphql.Null
  79785. }
  79786. res := resTmp.(*string)
  79787. fc.Result = res
  79788. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  79789. }
  79790. func (ec *executionContext) fieldContext_LineItem_variantTitle(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  79791. fc = &graphql.FieldContext{
  79792. Object: "LineItem",
  79793. Field: field,
  79794. IsMethod: false,
  79795. IsResolver: false,
  79796. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  79797. return nil, errors.New("field of type String does not have child fields")
  79798. },
  79799. }
  79800. return fc, nil
  79801. }
  79802. func (ec *executionContext) _LineItem_vendor(ctx context.Context, field graphql.CollectedField, obj *LineItem) (ret graphql.Marshaler) {
  79803. fc, err := ec.fieldContext_LineItem_vendor(ctx, field)
  79804. if err != nil {
  79805. return graphql.Null
  79806. }
  79807. ctx = graphql.WithFieldContext(ctx, fc)
  79808. defer func() {
  79809. if r := recover(); r != nil {
  79810. ec.Error(ctx, ec.Recover(ctx, r))
  79811. ret = graphql.Null
  79812. }
  79813. }()
  79814. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  79815. ctx = rctx // use context from middleware stack in children
  79816. return obj.Vendor, nil
  79817. })
  79818. if err != nil {
  79819. ec.Error(ctx, err)
  79820. return graphql.Null
  79821. }
  79822. if resTmp == nil {
  79823. return graphql.Null
  79824. }
  79825. res := resTmp.(*string)
  79826. fc.Result = res
  79827. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  79828. }
  79829. func (ec *executionContext) fieldContext_LineItem_vendor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  79830. fc = &graphql.FieldContext{
  79831. Object: "LineItem",
  79832. Field: field,
  79833. IsMethod: false,
  79834. IsResolver: false,
  79835. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  79836. return nil, errors.New("field of type String does not have child fields")
  79837. },
  79838. }
  79839. return fc, nil
  79840. }
  79841. func (ec *executionContext) _LineItemConnection_edges(ctx context.Context, field graphql.CollectedField, obj *LineItemConnection) (ret graphql.Marshaler) {
  79842. fc, err := ec.fieldContext_LineItemConnection_edges(ctx, field)
  79843. if err != nil {
  79844. return graphql.Null
  79845. }
  79846. ctx = graphql.WithFieldContext(ctx, fc)
  79847. defer func() {
  79848. if r := recover(); r != nil {
  79849. ec.Error(ctx, ec.Recover(ctx, r))
  79850. ret = graphql.Null
  79851. }
  79852. }()
  79853. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  79854. ctx = rctx // use context from middleware stack in children
  79855. return obj.Edges, nil
  79856. })
  79857. if err != nil {
  79858. ec.Error(ctx, err)
  79859. return graphql.Null
  79860. }
  79861. if resTmp == nil {
  79862. if !graphql.HasFieldError(ctx, fc) {
  79863. ec.Errorf(ctx, "must not be null")
  79864. }
  79865. return graphql.Null
  79866. }
  79867. res := resTmp.([]*LineItemEdge)
  79868. fc.Result = res
  79869. return ec.marshalNLineItemEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLineItemEdgeᚄ(ctx, field.Selections, res)
  79870. }
  79871. func (ec *executionContext) fieldContext_LineItemConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  79872. fc = &graphql.FieldContext{
  79873. Object: "LineItemConnection",
  79874. Field: field,
  79875. IsMethod: false,
  79876. IsResolver: false,
  79877. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  79878. switch field.Name {
  79879. case "cursor":
  79880. return ec.fieldContext_LineItemEdge_cursor(ctx, field)
  79881. case "node":
  79882. return ec.fieldContext_LineItemEdge_node(ctx, field)
  79883. }
  79884. return nil, fmt.Errorf("no field named %q was found under type LineItemEdge", field.Name)
  79885. },
  79886. }
  79887. return fc, nil
  79888. }
  79889. func (ec *executionContext) _LineItemConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *LineItemConnection) (ret graphql.Marshaler) {
  79890. fc, err := ec.fieldContext_LineItemConnection_nodes(ctx, field)
  79891. if err != nil {
  79892. return graphql.Null
  79893. }
  79894. ctx = graphql.WithFieldContext(ctx, fc)
  79895. defer func() {
  79896. if r := recover(); r != nil {
  79897. ec.Error(ctx, ec.Recover(ctx, r))
  79898. ret = graphql.Null
  79899. }
  79900. }()
  79901. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  79902. ctx = rctx // use context from middleware stack in children
  79903. return obj.Nodes, nil
  79904. })
  79905. if err != nil {
  79906. ec.Error(ctx, err)
  79907. return graphql.Null
  79908. }
  79909. if resTmp == nil {
  79910. if !graphql.HasFieldError(ctx, fc) {
  79911. ec.Errorf(ctx, "must not be null")
  79912. }
  79913. return graphql.Null
  79914. }
  79915. res := resTmp.([]*LineItem)
  79916. fc.Result = res
  79917. return ec.marshalNLineItem2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLineItemᚄ(ctx, field.Selections, res)
  79918. }
  79919. func (ec *executionContext) fieldContext_LineItemConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  79920. fc = &graphql.FieldContext{
  79921. Object: "LineItemConnection",
  79922. Field: field,
  79923. IsMethod: false,
  79924. IsResolver: false,
  79925. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  79926. switch field.Name {
  79927. case "contract":
  79928. return ec.fieldContext_LineItem_contract(ctx, field)
  79929. case "currentQuantity":
  79930. return ec.fieldContext_LineItem_currentQuantity(ctx, field)
  79931. case "customAttributes":
  79932. return ec.fieldContext_LineItem_customAttributes(ctx, field)
  79933. case "discountAllocations":
  79934. return ec.fieldContext_LineItem_discountAllocations(ctx, field)
  79935. case "discountedTotalSet":
  79936. return ec.fieldContext_LineItem_discountedTotalSet(ctx, field)
  79937. case "discountedUnitPriceSet":
  79938. return ec.fieldContext_LineItem_discountedUnitPriceSet(ctx, field)
  79939. case "duties":
  79940. return ec.fieldContext_LineItem_duties(ctx, field)
  79941. case "id":
  79942. return ec.fieldContext_LineItem_id(ctx, field)
  79943. case "image":
  79944. return ec.fieldContext_LineItem_image(ctx, field)
  79945. case "merchantEditable":
  79946. return ec.fieldContext_LineItem_merchantEditable(ctx, field)
  79947. case "name":
  79948. return ec.fieldContext_LineItem_name(ctx, field)
  79949. case "nonFulfillableQuantity":
  79950. return ec.fieldContext_LineItem_nonFulfillableQuantity(ctx, field)
  79951. case "originalTotalSet":
  79952. return ec.fieldContext_LineItem_originalTotalSet(ctx, field)
  79953. case "originalUnitPriceSet":
  79954. return ec.fieldContext_LineItem_originalUnitPriceSet(ctx, field)
  79955. case "product":
  79956. return ec.fieldContext_LineItem_product(ctx, field)
  79957. case "quantity":
  79958. return ec.fieldContext_LineItem_quantity(ctx, field)
  79959. case "refundableQuantity":
  79960. return ec.fieldContext_LineItem_refundableQuantity(ctx, field)
  79961. case "requiresShipping":
  79962. return ec.fieldContext_LineItem_requiresShipping(ctx, field)
  79963. case "restockable":
  79964. return ec.fieldContext_LineItem_restockable(ctx, field)
  79965. case "sellingPlan":
  79966. return ec.fieldContext_LineItem_sellingPlan(ctx, field)
  79967. case "sku":
  79968. return ec.fieldContext_LineItem_sku(ctx, field)
  79969. case "staffMember":
  79970. return ec.fieldContext_LineItem_staffMember(ctx, field)
  79971. case "taxLines":
  79972. return ec.fieldContext_LineItem_taxLines(ctx, field)
  79973. case "taxable":
  79974. return ec.fieldContext_LineItem_taxable(ctx, field)
  79975. case "title":
  79976. return ec.fieldContext_LineItem_title(ctx, field)
  79977. case "totalDiscountSet":
  79978. return ec.fieldContext_LineItem_totalDiscountSet(ctx, field)
  79979. case "unfulfilledDiscountedTotalSet":
  79980. return ec.fieldContext_LineItem_unfulfilledDiscountedTotalSet(ctx, field)
  79981. case "unfulfilledOriginalTotalSet":
  79982. return ec.fieldContext_LineItem_unfulfilledOriginalTotalSet(ctx, field)
  79983. case "unfulfilledQuantity":
  79984. return ec.fieldContext_LineItem_unfulfilledQuantity(ctx, field)
  79985. case "variant":
  79986. return ec.fieldContext_LineItem_variant(ctx, field)
  79987. case "variantTitle":
  79988. return ec.fieldContext_LineItem_variantTitle(ctx, field)
  79989. case "vendor":
  79990. return ec.fieldContext_LineItem_vendor(ctx, field)
  79991. }
  79992. return nil, fmt.Errorf("no field named %q was found under type LineItem", field.Name)
  79993. },
  79994. }
  79995. return fc, nil
  79996. }
  79997. func (ec *executionContext) _LineItemConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *LineItemConnection) (ret graphql.Marshaler) {
  79998. fc, err := ec.fieldContext_LineItemConnection_pageInfo(ctx, field)
  79999. if err != nil {
  80000. return graphql.Null
  80001. }
  80002. ctx = graphql.WithFieldContext(ctx, fc)
  80003. defer func() {
  80004. if r := recover(); r != nil {
  80005. ec.Error(ctx, ec.Recover(ctx, r))
  80006. ret = graphql.Null
  80007. }
  80008. }()
  80009. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  80010. ctx = rctx // use context from middleware stack in children
  80011. return obj.PageInfo, nil
  80012. })
  80013. if err != nil {
  80014. ec.Error(ctx, err)
  80015. return graphql.Null
  80016. }
  80017. if resTmp == nil {
  80018. if !graphql.HasFieldError(ctx, fc) {
  80019. ec.Errorf(ctx, "must not be null")
  80020. }
  80021. return graphql.Null
  80022. }
  80023. res := resTmp.(*PageInfo)
  80024. fc.Result = res
  80025. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  80026. }
  80027. func (ec *executionContext) fieldContext_LineItemConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  80028. fc = &graphql.FieldContext{
  80029. Object: "LineItemConnection",
  80030. Field: field,
  80031. IsMethod: false,
  80032. IsResolver: false,
  80033. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  80034. switch field.Name {
  80035. case "endCursor":
  80036. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  80037. case "hasNextPage":
  80038. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  80039. case "hasPreviousPage":
  80040. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  80041. case "startCursor":
  80042. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  80043. }
  80044. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  80045. },
  80046. }
  80047. return fc, nil
  80048. }
  80049. func (ec *executionContext) _LineItemEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *LineItemEdge) (ret graphql.Marshaler) {
  80050. fc, err := ec.fieldContext_LineItemEdge_cursor(ctx, field)
  80051. if err != nil {
  80052. return graphql.Null
  80053. }
  80054. ctx = graphql.WithFieldContext(ctx, fc)
  80055. defer func() {
  80056. if r := recover(); r != nil {
  80057. ec.Error(ctx, ec.Recover(ctx, r))
  80058. ret = graphql.Null
  80059. }
  80060. }()
  80061. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  80062. ctx = rctx // use context from middleware stack in children
  80063. return obj.Cursor, nil
  80064. })
  80065. if err != nil {
  80066. ec.Error(ctx, err)
  80067. return graphql.Null
  80068. }
  80069. if resTmp == nil {
  80070. if !graphql.HasFieldError(ctx, fc) {
  80071. ec.Errorf(ctx, "must not be null")
  80072. }
  80073. return graphql.Null
  80074. }
  80075. res := resTmp.(string)
  80076. fc.Result = res
  80077. return ec.marshalNString2string(ctx, field.Selections, res)
  80078. }
  80079. func (ec *executionContext) fieldContext_LineItemEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  80080. fc = &graphql.FieldContext{
  80081. Object: "LineItemEdge",
  80082. Field: field,
  80083. IsMethod: false,
  80084. IsResolver: false,
  80085. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  80086. return nil, errors.New("field of type String does not have child fields")
  80087. },
  80088. }
  80089. return fc, nil
  80090. }
  80091. func (ec *executionContext) _LineItemEdge_node(ctx context.Context, field graphql.CollectedField, obj *LineItemEdge) (ret graphql.Marshaler) {
  80092. fc, err := ec.fieldContext_LineItemEdge_node(ctx, field)
  80093. if err != nil {
  80094. return graphql.Null
  80095. }
  80096. ctx = graphql.WithFieldContext(ctx, fc)
  80097. defer func() {
  80098. if r := recover(); r != nil {
  80099. ec.Error(ctx, ec.Recover(ctx, r))
  80100. ret = graphql.Null
  80101. }
  80102. }()
  80103. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  80104. ctx = rctx // use context from middleware stack in children
  80105. return obj.Node, nil
  80106. })
  80107. if err != nil {
  80108. ec.Error(ctx, err)
  80109. return graphql.Null
  80110. }
  80111. if resTmp == nil {
  80112. if !graphql.HasFieldError(ctx, fc) {
  80113. ec.Errorf(ctx, "must not be null")
  80114. }
  80115. return graphql.Null
  80116. }
  80117. res := resTmp.(*LineItem)
  80118. fc.Result = res
  80119. return ec.marshalNLineItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLineItem(ctx, field.Selections, res)
  80120. }
  80121. func (ec *executionContext) fieldContext_LineItemEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  80122. fc = &graphql.FieldContext{
  80123. Object: "LineItemEdge",
  80124. Field: field,
  80125. IsMethod: false,
  80126. IsResolver: false,
  80127. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  80128. switch field.Name {
  80129. case "contract":
  80130. return ec.fieldContext_LineItem_contract(ctx, field)
  80131. case "currentQuantity":
  80132. return ec.fieldContext_LineItem_currentQuantity(ctx, field)
  80133. case "customAttributes":
  80134. return ec.fieldContext_LineItem_customAttributes(ctx, field)
  80135. case "discountAllocations":
  80136. return ec.fieldContext_LineItem_discountAllocations(ctx, field)
  80137. case "discountedTotalSet":
  80138. return ec.fieldContext_LineItem_discountedTotalSet(ctx, field)
  80139. case "discountedUnitPriceSet":
  80140. return ec.fieldContext_LineItem_discountedUnitPriceSet(ctx, field)
  80141. case "duties":
  80142. return ec.fieldContext_LineItem_duties(ctx, field)
  80143. case "id":
  80144. return ec.fieldContext_LineItem_id(ctx, field)
  80145. case "image":
  80146. return ec.fieldContext_LineItem_image(ctx, field)
  80147. case "merchantEditable":
  80148. return ec.fieldContext_LineItem_merchantEditable(ctx, field)
  80149. case "name":
  80150. return ec.fieldContext_LineItem_name(ctx, field)
  80151. case "nonFulfillableQuantity":
  80152. return ec.fieldContext_LineItem_nonFulfillableQuantity(ctx, field)
  80153. case "originalTotalSet":
  80154. return ec.fieldContext_LineItem_originalTotalSet(ctx, field)
  80155. case "originalUnitPriceSet":
  80156. return ec.fieldContext_LineItem_originalUnitPriceSet(ctx, field)
  80157. case "product":
  80158. return ec.fieldContext_LineItem_product(ctx, field)
  80159. case "quantity":
  80160. return ec.fieldContext_LineItem_quantity(ctx, field)
  80161. case "refundableQuantity":
  80162. return ec.fieldContext_LineItem_refundableQuantity(ctx, field)
  80163. case "requiresShipping":
  80164. return ec.fieldContext_LineItem_requiresShipping(ctx, field)
  80165. case "restockable":
  80166. return ec.fieldContext_LineItem_restockable(ctx, field)
  80167. case "sellingPlan":
  80168. return ec.fieldContext_LineItem_sellingPlan(ctx, field)
  80169. case "sku":
  80170. return ec.fieldContext_LineItem_sku(ctx, field)
  80171. case "staffMember":
  80172. return ec.fieldContext_LineItem_staffMember(ctx, field)
  80173. case "taxLines":
  80174. return ec.fieldContext_LineItem_taxLines(ctx, field)
  80175. case "taxable":
  80176. return ec.fieldContext_LineItem_taxable(ctx, field)
  80177. case "title":
  80178. return ec.fieldContext_LineItem_title(ctx, field)
  80179. case "totalDiscountSet":
  80180. return ec.fieldContext_LineItem_totalDiscountSet(ctx, field)
  80181. case "unfulfilledDiscountedTotalSet":
  80182. return ec.fieldContext_LineItem_unfulfilledDiscountedTotalSet(ctx, field)
  80183. case "unfulfilledOriginalTotalSet":
  80184. return ec.fieldContext_LineItem_unfulfilledOriginalTotalSet(ctx, field)
  80185. case "unfulfilledQuantity":
  80186. return ec.fieldContext_LineItem_unfulfilledQuantity(ctx, field)
  80187. case "variant":
  80188. return ec.fieldContext_LineItem_variant(ctx, field)
  80189. case "variantTitle":
  80190. return ec.fieldContext_LineItem_variantTitle(ctx, field)
  80191. case "vendor":
  80192. return ec.fieldContext_LineItem_vendor(ctx, field)
  80193. }
  80194. return nil, fmt.Errorf("no field named %q was found under type LineItem", field.Name)
  80195. },
  80196. }
  80197. return fc, nil
  80198. }
  80199. func (ec *executionContext) _LineItemSellingPlan_name(ctx context.Context, field graphql.CollectedField, obj *LineItemSellingPlan) (ret graphql.Marshaler) {
  80200. fc, err := ec.fieldContext_LineItemSellingPlan_name(ctx, field)
  80201. if err != nil {
  80202. return graphql.Null
  80203. }
  80204. ctx = graphql.WithFieldContext(ctx, fc)
  80205. defer func() {
  80206. if r := recover(); r != nil {
  80207. ec.Error(ctx, ec.Recover(ctx, r))
  80208. ret = graphql.Null
  80209. }
  80210. }()
  80211. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  80212. ctx = rctx // use context from middleware stack in children
  80213. return obj.Name, nil
  80214. })
  80215. if err != nil {
  80216. ec.Error(ctx, err)
  80217. return graphql.Null
  80218. }
  80219. if resTmp == nil {
  80220. if !graphql.HasFieldError(ctx, fc) {
  80221. ec.Errorf(ctx, "must not be null")
  80222. }
  80223. return graphql.Null
  80224. }
  80225. res := resTmp.(string)
  80226. fc.Result = res
  80227. return ec.marshalNString2string(ctx, field.Selections, res)
  80228. }
  80229. func (ec *executionContext) fieldContext_LineItemSellingPlan_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  80230. fc = &graphql.FieldContext{
  80231. Object: "LineItemSellingPlan",
  80232. Field: field,
  80233. IsMethod: false,
  80234. IsResolver: false,
  80235. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  80236. return nil, errors.New("field of type String does not have child fields")
  80237. },
  80238. }
  80239. return fc, nil
  80240. }
  80241. func (ec *executionContext) _LineItemSellingPlan_sellingPlanId(ctx context.Context, field graphql.CollectedField, obj *LineItemSellingPlan) (ret graphql.Marshaler) {
  80242. fc, err := ec.fieldContext_LineItemSellingPlan_sellingPlanId(ctx, field)
  80243. if err != nil {
  80244. return graphql.Null
  80245. }
  80246. ctx = graphql.WithFieldContext(ctx, fc)
  80247. defer func() {
  80248. if r := recover(); r != nil {
  80249. ec.Error(ctx, ec.Recover(ctx, r))
  80250. ret = graphql.Null
  80251. }
  80252. }()
  80253. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  80254. ctx = rctx // use context from middleware stack in children
  80255. return obj.SellingPlanID, nil
  80256. })
  80257. if err != nil {
  80258. ec.Error(ctx, err)
  80259. return graphql.Null
  80260. }
  80261. if resTmp == nil {
  80262. return graphql.Null
  80263. }
  80264. res := resTmp.(*string)
  80265. fc.Result = res
  80266. return ec.marshalOID2ᚖstring(ctx, field.Selections, res)
  80267. }
  80268. func (ec *executionContext) fieldContext_LineItemSellingPlan_sellingPlanId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  80269. fc = &graphql.FieldContext{
  80270. Object: "LineItemSellingPlan",
  80271. Field: field,
  80272. IsMethod: false,
  80273. IsResolver: false,
  80274. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  80275. return nil, errors.New("field of type ID does not have child fields")
  80276. },
  80277. }
  80278. return fc, nil
  80279. }
  80280. func (ec *executionContext) _Link_label(ctx context.Context, field graphql.CollectedField, obj *Link) (ret graphql.Marshaler) {
  80281. fc, err := ec.fieldContext_Link_label(ctx, field)
  80282. if err != nil {
  80283. return graphql.Null
  80284. }
  80285. ctx = graphql.WithFieldContext(ctx, fc)
  80286. defer func() {
  80287. if r := recover(); r != nil {
  80288. ec.Error(ctx, ec.Recover(ctx, r))
  80289. ret = graphql.Null
  80290. }
  80291. }()
  80292. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  80293. ctx = rctx // use context from middleware stack in children
  80294. return obj.Label, nil
  80295. })
  80296. if err != nil {
  80297. ec.Error(ctx, err)
  80298. return graphql.Null
  80299. }
  80300. if resTmp == nil {
  80301. if !graphql.HasFieldError(ctx, fc) {
  80302. ec.Errorf(ctx, "must not be null")
  80303. }
  80304. return graphql.Null
  80305. }
  80306. res := resTmp.(string)
  80307. fc.Result = res
  80308. return ec.marshalNString2string(ctx, field.Selections, res)
  80309. }
  80310. func (ec *executionContext) fieldContext_Link_label(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  80311. fc = &graphql.FieldContext{
  80312. Object: "Link",
  80313. Field: field,
  80314. IsMethod: false,
  80315. IsResolver: false,
  80316. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  80317. return nil, errors.New("field of type String does not have child fields")
  80318. },
  80319. }
  80320. return fc, nil
  80321. }
  80322. func (ec *executionContext) _Link_translations(ctx context.Context, field graphql.CollectedField, obj *Link) (ret graphql.Marshaler) {
  80323. fc, err := ec.fieldContext_Link_translations(ctx, field)
  80324. if err != nil {
  80325. return graphql.Null
  80326. }
  80327. ctx = graphql.WithFieldContext(ctx, fc)
  80328. defer func() {
  80329. if r := recover(); r != nil {
  80330. ec.Error(ctx, ec.Recover(ctx, r))
  80331. ret = graphql.Null
  80332. }
  80333. }()
  80334. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  80335. ctx = rctx // use context from middleware stack in children
  80336. return obj.Translations, nil
  80337. })
  80338. if err != nil {
  80339. ec.Error(ctx, err)
  80340. return graphql.Null
  80341. }
  80342. if resTmp == nil {
  80343. if !graphql.HasFieldError(ctx, fc) {
  80344. ec.Errorf(ctx, "must not be null")
  80345. }
  80346. return graphql.Null
  80347. }
  80348. res := resTmp.([]*PublishedTranslation)
  80349. fc.Result = res
  80350. return ec.marshalNPublishedTranslation2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublishedTranslationᚄ(ctx, field.Selections, res)
  80351. }
  80352. func (ec *executionContext) fieldContext_Link_translations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  80353. fc = &graphql.FieldContext{
  80354. Object: "Link",
  80355. Field: field,
  80356. IsMethod: false,
  80357. IsResolver: false,
  80358. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  80359. switch field.Name {
  80360. case "key":
  80361. return ec.fieldContext_PublishedTranslation_key(ctx, field)
  80362. case "locale":
  80363. return ec.fieldContext_PublishedTranslation_locale(ctx, field)
  80364. case "marketId":
  80365. return ec.fieldContext_PublishedTranslation_marketId(ctx, field)
  80366. case "value":
  80367. return ec.fieldContext_PublishedTranslation_value(ctx, field)
  80368. }
  80369. return nil, fmt.Errorf("no field named %q was found under type PublishedTranslation", field.Name)
  80370. },
  80371. }
  80372. defer func() {
  80373. if r := recover(); r != nil {
  80374. err = ec.Recover(ctx, r)
  80375. ec.Error(ctx, err)
  80376. }
  80377. }()
  80378. ctx = graphql.WithFieldContext(ctx, fc)
  80379. if fc.Args, err = ec.field_Link_translations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  80380. ec.Error(ctx, err)
  80381. return
  80382. }
  80383. return fc, nil
  80384. }
  80385. func (ec *executionContext) _Link_url(ctx context.Context, field graphql.CollectedField, obj *Link) (ret graphql.Marshaler) {
  80386. fc, err := ec.fieldContext_Link_url(ctx, field)
  80387. if err != nil {
  80388. return graphql.Null
  80389. }
  80390. ctx = graphql.WithFieldContext(ctx, fc)
  80391. defer func() {
  80392. if r := recover(); r != nil {
  80393. ec.Error(ctx, ec.Recover(ctx, r))
  80394. ret = graphql.Null
  80395. }
  80396. }()
  80397. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  80398. ctx = rctx // use context from middleware stack in children
  80399. return obj.URL, nil
  80400. })
  80401. if err != nil {
  80402. ec.Error(ctx, err)
  80403. return graphql.Null
  80404. }
  80405. if resTmp == nil {
  80406. if !graphql.HasFieldError(ctx, fc) {
  80407. ec.Errorf(ctx, "must not be null")
  80408. }
  80409. return graphql.Null
  80410. }
  80411. res := resTmp.(string)
  80412. fc.Result = res
  80413. return ec.marshalNURL2string(ctx, field.Selections, res)
  80414. }
  80415. func (ec *executionContext) fieldContext_Link_url(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  80416. fc = &graphql.FieldContext{
  80417. Object: "Link",
  80418. Field: field,
  80419. IsMethod: false,
  80420. IsResolver: false,
  80421. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  80422. return nil, errors.New("field of type URL does not have child fields")
  80423. },
  80424. }
  80425. return fc, nil
  80426. }
  80427. func (ec *executionContext) _LocalizationExtension_countryCode(ctx context.Context, field graphql.CollectedField, obj *LocalizationExtension) (ret graphql.Marshaler) {
  80428. fc, err := ec.fieldContext_LocalizationExtension_countryCode(ctx, field)
  80429. if err != nil {
  80430. return graphql.Null
  80431. }
  80432. ctx = graphql.WithFieldContext(ctx, fc)
  80433. defer func() {
  80434. if r := recover(); r != nil {
  80435. ec.Error(ctx, ec.Recover(ctx, r))
  80436. ret = graphql.Null
  80437. }
  80438. }()
  80439. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  80440. ctx = rctx // use context from middleware stack in children
  80441. return obj.CountryCode, nil
  80442. })
  80443. if err != nil {
  80444. ec.Error(ctx, err)
  80445. return graphql.Null
  80446. }
  80447. if resTmp == nil {
  80448. if !graphql.HasFieldError(ctx, fc) {
  80449. ec.Errorf(ctx, "must not be null")
  80450. }
  80451. return graphql.Null
  80452. }
  80453. res := resTmp.(CountryCode)
  80454. fc.Result = res
  80455. return ec.marshalNCountryCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCode(ctx, field.Selections, res)
  80456. }
  80457. func (ec *executionContext) fieldContext_LocalizationExtension_countryCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  80458. fc = &graphql.FieldContext{
  80459. Object: "LocalizationExtension",
  80460. Field: field,
  80461. IsMethod: false,
  80462. IsResolver: false,
  80463. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  80464. return nil, errors.New("field of type CountryCode does not have child fields")
  80465. },
  80466. }
  80467. return fc, nil
  80468. }
  80469. func (ec *executionContext) _LocalizationExtension_key(ctx context.Context, field graphql.CollectedField, obj *LocalizationExtension) (ret graphql.Marshaler) {
  80470. fc, err := ec.fieldContext_LocalizationExtension_key(ctx, field)
  80471. if err != nil {
  80472. return graphql.Null
  80473. }
  80474. ctx = graphql.WithFieldContext(ctx, fc)
  80475. defer func() {
  80476. if r := recover(); r != nil {
  80477. ec.Error(ctx, ec.Recover(ctx, r))
  80478. ret = graphql.Null
  80479. }
  80480. }()
  80481. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  80482. ctx = rctx // use context from middleware stack in children
  80483. return obj.Key, nil
  80484. })
  80485. if err != nil {
  80486. ec.Error(ctx, err)
  80487. return graphql.Null
  80488. }
  80489. if resTmp == nil {
  80490. if !graphql.HasFieldError(ctx, fc) {
  80491. ec.Errorf(ctx, "must not be null")
  80492. }
  80493. return graphql.Null
  80494. }
  80495. res := resTmp.(LocalizationExtensionKey)
  80496. fc.Result = res
  80497. return ec.marshalNLocalizationExtensionKey2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocalizationExtensionKey(ctx, field.Selections, res)
  80498. }
  80499. func (ec *executionContext) fieldContext_LocalizationExtension_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  80500. fc = &graphql.FieldContext{
  80501. Object: "LocalizationExtension",
  80502. Field: field,
  80503. IsMethod: false,
  80504. IsResolver: false,
  80505. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  80506. return nil, errors.New("field of type LocalizationExtensionKey does not have child fields")
  80507. },
  80508. }
  80509. return fc, nil
  80510. }
  80511. func (ec *executionContext) _LocalizationExtension_purpose(ctx context.Context, field graphql.CollectedField, obj *LocalizationExtension) (ret graphql.Marshaler) {
  80512. fc, err := ec.fieldContext_LocalizationExtension_purpose(ctx, field)
  80513. if err != nil {
  80514. return graphql.Null
  80515. }
  80516. ctx = graphql.WithFieldContext(ctx, fc)
  80517. defer func() {
  80518. if r := recover(); r != nil {
  80519. ec.Error(ctx, ec.Recover(ctx, r))
  80520. ret = graphql.Null
  80521. }
  80522. }()
  80523. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  80524. ctx = rctx // use context from middleware stack in children
  80525. return obj.Purpose, nil
  80526. })
  80527. if err != nil {
  80528. ec.Error(ctx, err)
  80529. return graphql.Null
  80530. }
  80531. if resTmp == nil {
  80532. if !graphql.HasFieldError(ctx, fc) {
  80533. ec.Errorf(ctx, "must not be null")
  80534. }
  80535. return graphql.Null
  80536. }
  80537. res := resTmp.(LocalizationExtensionPurpose)
  80538. fc.Result = res
  80539. return ec.marshalNLocalizationExtensionPurpose2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocalizationExtensionPurpose(ctx, field.Selections, res)
  80540. }
  80541. func (ec *executionContext) fieldContext_LocalizationExtension_purpose(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  80542. fc = &graphql.FieldContext{
  80543. Object: "LocalizationExtension",
  80544. Field: field,
  80545. IsMethod: false,
  80546. IsResolver: false,
  80547. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  80548. return nil, errors.New("field of type LocalizationExtensionPurpose does not have child fields")
  80549. },
  80550. }
  80551. return fc, nil
  80552. }
  80553. func (ec *executionContext) _LocalizationExtension_title(ctx context.Context, field graphql.CollectedField, obj *LocalizationExtension) (ret graphql.Marshaler) {
  80554. fc, err := ec.fieldContext_LocalizationExtension_title(ctx, field)
  80555. if err != nil {
  80556. return graphql.Null
  80557. }
  80558. ctx = graphql.WithFieldContext(ctx, fc)
  80559. defer func() {
  80560. if r := recover(); r != nil {
  80561. ec.Error(ctx, ec.Recover(ctx, r))
  80562. ret = graphql.Null
  80563. }
  80564. }()
  80565. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  80566. ctx = rctx // use context from middleware stack in children
  80567. return obj.Title, nil
  80568. })
  80569. if err != nil {
  80570. ec.Error(ctx, err)
  80571. return graphql.Null
  80572. }
  80573. if resTmp == nil {
  80574. if !graphql.HasFieldError(ctx, fc) {
  80575. ec.Errorf(ctx, "must not be null")
  80576. }
  80577. return graphql.Null
  80578. }
  80579. res := resTmp.(string)
  80580. fc.Result = res
  80581. return ec.marshalNString2string(ctx, field.Selections, res)
  80582. }
  80583. func (ec *executionContext) fieldContext_LocalizationExtension_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  80584. fc = &graphql.FieldContext{
  80585. Object: "LocalizationExtension",
  80586. Field: field,
  80587. IsMethod: false,
  80588. IsResolver: false,
  80589. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  80590. return nil, errors.New("field of type String does not have child fields")
  80591. },
  80592. }
  80593. return fc, nil
  80594. }
  80595. func (ec *executionContext) _LocalizationExtension_value(ctx context.Context, field graphql.CollectedField, obj *LocalizationExtension) (ret graphql.Marshaler) {
  80596. fc, err := ec.fieldContext_LocalizationExtension_value(ctx, field)
  80597. if err != nil {
  80598. return graphql.Null
  80599. }
  80600. ctx = graphql.WithFieldContext(ctx, fc)
  80601. defer func() {
  80602. if r := recover(); r != nil {
  80603. ec.Error(ctx, ec.Recover(ctx, r))
  80604. ret = graphql.Null
  80605. }
  80606. }()
  80607. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  80608. ctx = rctx // use context from middleware stack in children
  80609. return obj.Value, nil
  80610. })
  80611. if err != nil {
  80612. ec.Error(ctx, err)
  80613. return graphql.Null
  80614. }
  80615. if resTmp == nil {
  80616. if !graphql.HasFieldError(ctx, fc) {
  80617. ec.Errorf(ctx, "must not be null")
  80618. }
  80619. return graphql.Null
  80620. }
  80621. res := resTmp.(string)
  80622. fc.Result = res
  80623. return ec.marshalNString2string(ctx, field.Selections, res)
  80624. }
  80625. func (ec *executionContext) fieldContext_LocalizationExtension_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  80626. fc = &graphql.FieldContext{
  80627. Object: "LocalizationExtension",
  80628. Field: field,
  80629. IsMethod: false,
  80630. IsResolver: false,
  80631. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  80632. return nil, errors.New("field of type String does not have child fields")
  80633. },
  80634. }
  80635. return fc, nil
  80636. }
  80637. func (ec *executionContext) _LocalizationExtensionConnection_edges(ctx context.Context, field graphql.CollectedField, obj *LocalizationExtensionConnection) (ret graphql.Marshaler) {
  80638. fc, err := ec.fieldContext_LocalizationExtensionConnection_edges(ctx, field)
  80639. if err != nil {
  80640. return graphql.Null
  80641. }
  80642. ctx = graphql.WithFieldContext(ctx, fc)
  80643. defer func() {
  80644. if r := recover(); r != nil {
  80645. ec.Error(ctx, ec.Recover(ctx, r))
  80646. ret = graphql.Null
  80647. }
  80648. }()
  80649. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  80650. ctx = rctx // use context from middleware stack in children
  80651. return obj.Edges, nil
  80652. })
  80653. if err != nil {
  80654. ec.Error(ctx, err)
  80655. return graphql.Null
  80656. }
  80657. if resTmp == nil {
  80658. if !graphql.HasFieldError(ctx, fc) {
  80659. ec.Errorf(ctx, "must not be null")
  80660. }
  80661. return graphql.Null
  80662. }
  80663. res := resTmp.([]*LocalizationExtensionEdge)
  80664. fc.Result = res
  80665. return ec.marshalNLocalizationExtensionEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocalizationExtensionEdgeᚄ(ctx, field.Selections, res)
  80666. }
  80667. func (ec *executionContext) fieldContext_LocalizationExtensionConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  80668. fc = &graphql.FieldContext{
  80669. Object: "LocalizationExtensionConnection",
  80670. Field: field,
  80671. IsMethod: false,
  80672. IsResolver: false,
  80673. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  80674. switch field.Name {
  80675. case "cursor":
  80676. return ec.fieldContext_LocalizationExtensionEdge_cursor(ctx, field)
  80677. case "node":
  80678. return ec.fieldContext_LocalizationExtensionEdge_node(ctx, field)
  80679. }
  80680. return nil, fmt.Errorf("no field named %q was found under type LocalizationExtensionEdge", field.Name)
  80681. },
  80682. }
  80683. return fc, nil
  80684. }
  80685. func (ec *executionContext) _LocalizationExtensionConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *LocalizationExtensionConnection) (ret graphql.Marshaler) {
  80686. fc, err := ec.fieldContext_LocalizationExtensionConnection_nodes(ctx, field)
  80687. if err != nil {
  80688. return graphql.Null
  80689. }
  80690. ctx = graphql.WithFieldContext(ctx, fc)
  80691. defer func() {
  80692. if r := recover(); r != nil {
  80693. ec.Error(ctx, ec.Recover(ctx, r))
  80694. ret = graphql.Null
  80695. }
  80696. }()
  80697. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  80698. ctx = rctx // use context from middleware stack in children
  80699. return obj.Nodes, nil
  80700. })
  80701. if err != nil {
  80702. ec.Error(ctx, err)
  80703. return graphql.Null
  80704. }
  80705. if resTmp == nil {
  80706. if !graphql.HasFieldError(ctx, fc) {
  80707. ec.Errorf(ctx, "must not be null")
  80708. }
  80709. return graphql.Null
  80710. }
  80711. res := resTmp.([]*LocalizationExtension)
  80712. fc.Result = res
  80713. return ec.marshalNLocalizationExtension2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocalizationExtensionᚄ(ctx, field.Selections, res)
  80714. }
  80715. func (ec *executionContext) fieldContext_LocalizationExtensionConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  80716. fc = &graphql.FieldContext{
  80717. Object: "LocalizationExtensionConnection",
  80718. Field: field,
  80719. IsMethod: false,
  80720. IsResolver: false,
  80721. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  80722. switch field.Name {
  80723. case "countryCode":
  80724. return ec.fieldContext_LocalizationExtension_countryCode(ctx, field)
  80725. case "key":
  80726. return ec.fieldContext_LocalizationExtension_key(ctx, field)
  80727. case "purpose":
  80728. return ec.fieldContext_LocalizationExtension_purpose(ctx, field)
  80729. case "title":
  80730. return ec.fieldContext_LocalizationExtension_title(ctx, field)
  80731. case "value":
  80732. return ec.fieldContext_LocalizationExtension_value(ctx, field)
  80733. }
  80734. return nil, fmt.Errorf("no field named %q was found under type LocalizationExtension", field.Name)
  80735. },
  80736. }
  80737. return fc, nil
  80738. }
  80739. func (ec *executionContext) _LocalizationExtensionConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *LocalizationExtensionConnection) (ret graphql.Marshaler) {
  80740. fc, err := ec.fieldContext_LocalizationExtensionConnection_pageInfo(ctx, field)
  80741. if err != nil {
  80742. return graphql.Null
  80743. }
  80744. ctx = graphql.WithFieldContext(ctx, fc)
  80745. defer func() {
  80746. if r := recover(); r != nil {
  80747. ec.Error(ctx, ec.Recover(ctx, r))
  80748. ret = graphql.Null
  80749. }
  80750. }()
  80751. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  80752. ctx = rctx // use context from middleware stack in children
  80753. return obj.PageInfo, nil
  80754. })
  80755. if err != nil {
  80756. ec.Error(ctx, err)
  80757. return graphql.Null
  80758. }
  80759. if resTmp == nil {
  80760. if !graphql.HasFieldError(ctx, fc) {
  80761. ec.Errorf(ctx, "must not be null")
  80762. }
  80763. return graphql.Null
  80764. }
  80765. res := resTmp.(*PageInfo)
  80766. fc.Result = res
  80767. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  80768. }
  80769. func (ec *executionContext) fieldContext_LocalizationExtensionConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  80770. fc = &graphql.FieldContext{
  80771. Object: "LocalizationExtensionConnection",
  80772. Field: field,
  80773. IsMethod: false,
  80774. IsResolver: false,
  80775. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  80776. switch field.Name {
  80777. case "endCursor":
  80778. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  80779. case "hasNextPage":
  80780. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  80781. case "hasPreviousPage":
  80782. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  80783. case "startCursor":
  80784. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  80785. }
  80786. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  80787. },
  80788. }
  80789. return fc, nil
  80790. }
  80791. func (ec *executionContext) _LocalizationExtensionEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *LocalizationExtensionEdge) (ret graphql.Marshaler) {
  80792. fc, err := ec.fieldContext_LocalizationExtensionEdge_cursor(ctx, field)
  80793. if err != nil {
  80794. return graphql.Null
  80795. }
  80796. ctx = graphql.WithFieldContext(ctx, fc)
  80797. defer func() {
  80798. if r := recover(); r != nil {
  80799. ec.Error(ctx, ec.Recover(ctx, r))
  80800. ret = graphql.Null
  80801. }
  80802. }()
  80803. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  80804. ctx = rctx // use context from middleware stack in children
  80805. return obj.Cursor, nil
  80806. })
  80807. if err != nil {
  80808. ec.Error(ctx, err)
  80809. return graphql.Null
  80810. }
  80811. if resTmp == nil {
  80812. if !graphql.HasFieldError(ctx, fc) {
  80813. ec.Errorf(ctx, "must not be null")
  80814. }
  80815. return graphql.Null
  80816. }
  80817. res := resTmp.(string)
  80818. fc.Result = res
  80819. return ec.marshalNString2string(ctx, field.Selections, res)
  80820. }
  80821. func (ec *executionContext) fieldContext_LocalizationExtensionEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  80822. fc = &graphql.FieldContext{
  80823. Object: "LocalizationExtensionEdge",
  80824. Field: field,
  80825. IsMethod: false,
  80826. IsResolver: false,
  80827. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  80828. return nil, errors.New("field of type String does not have child fields")
  80829. },
  80830. }
  80831. return fc, nil
  80832. }
  80833. func (ec *executionContext) _LocalizationExtensionEdge_node(ctx context.Context, field graphql.CollectedField, obj *LocalizationExtensionEdge) (ret graphql.Marshaler) {
  80834. fc, err := ec.fieldContext_LocalizationExtensionEdge_node(ctx, field)
  80835. if err != nil {
  80836. return graphql.Null
  80837. }
  80838. ctx = graphql.WithFieldContext(ctx, fc)
  80839. defer func() {
  80840. if r := recover(); r != nil {
  80841. ec.Error(ctx, ec.Recover(ctx, r))
  80842. ret = graphql.Null
  80843. }
  80844. }()
  80845. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  80846. ctx = rctx // use context from middleware stack in children
  80847. return obj.Node, nil
  80848. })
  80849. if err != nil {
  80850. ec.Error(ctx, err)
  80851. return graphql.Null
  80852. }
  80853. if resTmp == nil {
  80854. if !graphql.HasFieldError(ctx, fc) {
  80855. ec.Errorf(ctx, "must not be null")
  80856. }
  80857. return graphql.Null
  80858. }
  80859. res := resTmp.(*LocalizationExtension)
  80860. fc.Result = res
  80861. return ec.marshalNLocalizationExtension2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocalizationExtension(ctx, field.Selections, res)
  80862. }
  80863. func (ec *executionContext) fieldContext_LocalizationExtensionEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  80864. fc = &graphql.FieldContext{
  80865. Object: "LocalizationExtensionEdge",
  80866. Field: field,
  80867. IsMethod: false,
  80868. IsResolver: false,
  80869. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  80870. switch field.Name {
  80871. case "countryCode":
  80872. return ec.fieldContext_LocalizationExtension_countryCode(ctx, field)
  80873. case "key":
  80874. return ec.fieldContext_LocalizationExtension_key(ctx, field)
  80875. case "purpose":
  80876. return ec.fieldContext_LocalizationExtension_purpose(ctx, field)
  80877. case "title":
  80878. return ec.fieldContext_LocalizationExtension_title(ctx, field)
  80879. case "value":
  80880. return ec.fieldContext_LocalizationExtension_value(ctx, field)
  80881. }
  80882. return nil, fmt.Errorf("no field named %q was found under type LocalizationExtension", field.Name)
  80883. },
  80884. }
  80885. return fc, nil
  80886. }
  80887. func (ec *executionContext) _Location_activatable(ctx context.Context, field graphql.CollectedField, obj *Location) (ret graphql.Marshaler) {
  80888. fc, err := ec.fieldContext_Location_activatable(ctx, field)
  80889. if err != nil {
  80890. return graphql.Null
  80891. }
  80892. ctx = graphql.WithFieldContext(ctx, fc)
  80893. defer func() {
  80894. if r := recover(); r != nil {
  80895. ec.Error(ctx, ec.Recover(ctx, r))
  80896. ret = graphql.Null
  80897. }
  80898. }()
  80899. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  80900. ctx = rctx // use context from middleware stack in children
  80901. return obj.Activatable, nil
  80902. })
  80903. if err != nil {
  80904. ec.Error(ctx, err)
  80905. return graphql.Null
  80906. }
  80907. if resTmp == nil {
  80908. if !graphql.HasFieldError(ctx, fc) {
  80909. ec.Errorf(ctx, "must not be null")
  80910. }
  80911. return graphql.Null
  80912. }
  80913. res := resTmp.(bool)
  80914. fc.Result = res
  80915. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  80916. }
  80917. func (ec *executionContext) fieldContext_Location_activatable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  80918. fc = &graphql.FieldContext{
  80919. Object: "Location",
  80920. Field: field,
  80921. IsMethod: false,
  80922. IsResolver: false,
  80923. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  80924. return nil, errors.New("field of type Boolean does not have child fields")
  80925. },
  80926. }
  80927. return fc, nil
  80928. }
  80929. func (ec *executionContext) _Location_address(ctx context.Context, field graphql.CollectedField, obj *Location) (ret graphql.Marshaler) {
  80930. fc, err := ec.fieldContext_Location_address(ctx, field)
  80931. if err != nil {
  80932. return graphql.Null
  80933. }
  80934. ctx = graphql.WithFieldContext(ctx, fc)
  80935. defer func() {
  80936. if r := recover(); r != nil {
  80937. ec.Error(ctx, ec.Recover(ctx, r))
  80938. ret = graphql.Null
  80939. }
  80940. }()
  80941. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  80942. ctx = rctx // use context from middleware stack in children
  80943. return obj.Address, nil
  80944. })
  80945. if err != nil {
  80946. ec.Error(ctx, err)
  80947. return graphql.Null
  80948. }
  80949. if resTmp == nil {
  80950. if !graphql.HasFieldError(ctx, fc) {
  80951. ec.Errorf(ctx, "must not be null")
  80952. }
  80953. return graphql.Null
  80954. }
  80955. res := resTmp.(*LocationAddress)
  80956. fc.Result = res
  80957. return ec.marshalNLocationAddress2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocationAddress(ctx, field.Selections, res)
  80958. }
  80959. func (ec *executionContext) fieldContext_Location_address(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  80960. fc = &graphql.FieldContext{
  80961. Object: "Location",
  80962. Field: field,
  80963. IsMethod: false,
  80964. IsResolver: false,
  80965. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  80966. switch field.Name {
  80967. case "address1":
  80968. return ec.fieldContext_LocationAddress_address1(ctx, field)
  80969. case "address2":
  80970. return ec.fieldContext_LocationAddress_address2(ctx, field)
  80971. case "city":
  80972. return ec.fieldContext_LocationAddress_city(ctx, field)
  80973. case "country":
  80974. return ec.fieldContext_LocationAddress_country(ctx, field)
  80975. case "countryCode":
  80976. return ec.fieldContext_LocationAddress_countryCode(ctx, field)
  80977. case "formatted":
  80978. return ec.fieldContext_LocationAddress_formatted(ctx, field)
  80979. case "latitude":
  80980. return ec.fieldContext_LocationAddress_latitude(ctx, field)
  80981. case "longitude":
  80982. return ec.fieldContext_LocationAddress_longitude(ctx, field)
  80983. case "phone":
  80984. return ec.fieldContext_LocationAddress_phone(ctx, field)
  80985. case "province":
  80986. return ec.fieldContext_LocationAddress_province(ctx, field)
  80987. case "provinceCode":
  80988. return ec.fieldContext_LocationAddress_provinceCode(ctx, field)
  80989. case "zip":
  80990. return ec.fieldContext_LocationAddress_zip(ctx, field)
  80991. }
  80992. return nil, fmt.Errorf("no field named %q was found under type LocationAddress", field.Name)
  80993. },
  80994. }
  80995. return fc, nil
  80996. }
  80997. func (ec *executionContext) _Location_addressVerified(ctx context.Context, field graphql.CollectedField, obj *Location) (ret graphql.Marshaler) {
  80998. fc, err := ec.fieldContext_Location_addressVerified(ctx, field)
  80999. if err != nil {
  81000. return graphql.Null
  81001. }
  81002. ctx = graphql.WithFieldContext(ctx, fc)
  81003. defer func() {
  81004. if r := recover(); r != nil {
  81005. ec.Error(ctx, ec.Recover(ctx, r))
  81006. ret = graphql.Null
  81007. }
  81008. }()
  81009. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  81010. ctx = rctx // use context from middleware stack in children
  81011. return obj.AddressVerified, nil
  81012. })
  81013. if err != nil {
  81014. ec.Error(ctx, err)
  81015. return graphql.Null
  81016. }
  81017. if resTmp == nil {
  81018. if !graphql.HasFieldError(ctx, fc) {
  81019. ec.Errorf(ctx, "must not be null")
  81020. }
  81021. return graphql.Null
  81022. }
  81023. res := resTmp.(bool)
  81024. fc.Result = res
  81025. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  81026. }
  81027. func (ec *executionContext) fieldContext_Location_addressVerified(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  81028. fc = &graphql.FieldContext{
  81029. Object: "Location",
  81030. Field: field,
  81031. IsMethod: false,
  81032. IsResolver: false,
  81033. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  81034. return nil, errors.New("field of type Boolean does not have child fields")
  81035. },
  81036. }
  81037. return fc, nil
  81038. }
  81039. func (ec *executionContext) _Location_deactivatable(ctx context.Context, field graphql.CollectedField, obj *Location) (ret graphql.Marshaler) {
  81040. fc, err := ec.fieldContext_Location_deactivatable(ctx, field)
  81041. if err != nil {
  81042. return graphql.Null
  81043. }
  81044. ctx = graphql.WithFieldContext(ctx, fc)
  81045. defer func() {
  81046. if r := recover(); r != nil {
  81047. ec.Error(ctx, ec.Recover(ctx, r))
  81048. ret = graphql.Null
  81049. }
  81050. }()
  81051. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  81052. ctx = rctx // use context from middleware stack in children
  81053. return obj.Deactivatable, nil
  81054. })
  81055. if err != nil {
  81056. ec.Error(ctx, err)
  81057. return graphql.Null
  81058. }
  81059. if resTmp == nil {
  81060. if !graphql.HasFieldError(ctx, fc) {
  81061. ec.Errorf(ctx, "must not be null")
  81062. }
  81063. return graphql.Null
  81064. }
  81065. res := resTmp.(bool)
  81066. fc.Result = res
  81067. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  81068. }
  81069. func (ec *executionContext) fieldContext_Location_deactivatable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  81070. fc = &graphql.FieldContext{
  81071. Object: "Location",
  81072. Field: field,
  81073. IsMethod: false,
  81074. IsResolver: false,
  81075. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  81076. return nil, errors.New("field of type Boolean does not have child fields")
  81077. },
  81078. }
  81079. return fc, nil
  81080. }
  81081. func (ec *executionContext) _Location_deactivatedAt(ctx context.Context, field graphql.CollectedField, obj *Location) (ret graphql.Marshaler) {
  81082. fc, err := ec.fieldContext_Location_deactivatedAt(ctx, field)
  81083. if err != nil {
  81084. return graphql.Null
  81085. }
  81086. ctx = graphql.WithFieldContext(ctx, fc)
  81087. defer func() {
  81088. if r := recover(); r != nil {
  81089. ec.Error(ctx, ec.Recover(ctx, r))
  81090. ret = graphql.Null
  81091. }
  81092. }()
  81093. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  81094. ctx = rctx // use context from middleware stack in children
  81095. return obj.DeactivatedAt, nil
  81096. })
  81097. if err != nil {
  81098. ec.Error(ctx, err)
  81099. return graphql.Null
  81100. }
  81101. if resTmp == nil {
  81102. return graphql.Null
  81103. }
  81104. res := resTmp.(*string)
  81105. fc.Result = res
  81106. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  81107. }
  81108. func (ec *executionContext) fieldContext_Location_deactivatedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  81109. fc = &graphql.FieldContext{
  81110. Object: "Location",
  81111. Field: field,
  81112. IsMethod: false,
  81113. IsResolver: false,
  81114. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  81115. return nil, errors.New("field of type String does not have child fields")
  81116. },
  81117. }
  81118. return fc, nil
  81119. }
  81120. func (ec *executionContext) _Location_deletable(ctx context.Context, field graphql.CollectedField, obj *Location) (ret graphql.Marshaler) {
  81121. fc, err := ec.fieldContext_Location_deletable(ctx, field)
  81122. if err != nil {
  81123. return graphql.Null
  81124. }
  81125. ctx = graphql.WithFieldContext(ctx, fc)
  81126. defer func() {
  81127. if r := recover(); r != nil {
  81128. ec.Error(ctx, ec.Recover(ctx, r))
  81129. ret = graphql.Null
  81130. }
  81131. }()
  81132. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  81133. ctx = rctx // use context from middleware stack in children
  81134. return obj.Deletable, nil
  81135. })
  81136. if err != nil {
  81137. ec.Error(ctx, err)
  81138. return graphql.Null
  81139. }
  81140. if resTmp == nil {
  81141. if !graphql.HasFieldError(ctx, fc) {
  81142. ec.Errorf(ctx, "must not be null")
  81143. }
  81144. return graphql.Null
  81145. }
  81146. res := resTmp.(bool)
  81147. fc.Result = res
  81148. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  81149. }
  81150. func (ec *executionContext) fieldContext_Location_deletable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  81151. fc = &graphql.FieldContext{
  81152. Object: "Location",
  81153. Field: field,
  81154. IsMethod: false,
  81155. IsResolver: false,
  81156. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  81157. return nil, errors.New("field of type Boolean does not have child fields")
  81158. },
  81159. }
  81160. return fc, nil
  81161. }
  81162. func (ec *executionContext) _Location_fulfillmentService(ctx context.Context, field graphql.CollectedField, obj *Location) (ret graphql.Marshaler) {
  81163. fc, err := ec.fieldContext_Location_fulfillmentService(ctx, field)
  81164. if err != nil {
  81165. return graphql.Null
  81166. }
  81167. ctx = graphql.WithFieldContext(ctx, fc)
  81168. defer func() {
  81169. if r := recover(); r != nil {
  81170. ec.Error(ctx, ec.Recover(ctx, r))
  81171. ret = graphql.Null
  81172. }
  81173. }()
  81174. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  81175. ctx = rctx // use context from middleware stack in children
  81176. return obj.FulfillmentService, nil
  81177. })
  81178. if err != nil {
  81179. ec.Error(ctx, err)
  81180. return graphql.Null
  81181. }
  81182. if resTmp == nil {
  81183. return graphql.Null
  81184. }
  81185. res := resTmp.(*FulfillmentService)
  81186. fc.Result = res
  81187. return ec.marshalOFulfillmentService2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentService(ctx, field.Selections, res)
  81188. }
  81189. func (ec *executionContext) fieldContext_Location_fulfillmentService(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  81190. fc = &graphql.FieldContext{
  81191. Object: "Location",
  81192. Field: field,
  81193. IsMethod: false,
  81194. IsResolver: false,
  81195. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  81196. switch field.Name {
  81197. case "callbackUrl":
  81198. return ec.fieldContext_FulfillmentService_callbackUrl(ctx, field)
  81199. case "fulfillmentOrdersOptIn":
  81200. return ec.fieldContext_FulfillmentService_fulfillmentOrdersOptIn(ctx, field)
  81201. case "handle":
  81202. return ec.fieldContext_FulfillmentService_handle(ctx, field)
  81203. case "id":
  81204. return ec.fieldContext_FulfillmentService_id(ctx, field)
  81205. case "inventoryManagement":
  81206. return ec.fieldContext_FulfillmentService_inventoryManagement(ctx, field)
  81207. case "location":
  81208. return ec.fieldContext_FulfillmentService_location(ctx, field)
  81209. case "permitsSkuSharing":
  81210. return ec.fieldContext_FulfillmentService_permitsSkuSharing(ctx, field)
  81211. case "productBased":
  81212. return ec.fieldContext_FulfillmentService_productBased(ctx, field)
  81213. case "serviceName":
  81214. return ec.fieldContext_FulfillmentService_serviceName(ctx, field)
  81215. case "type":
  81216. return ec.fieldContext_FulfillmentService_type(ctx, field)
  81217. }
  81218. return nil, fmt.Errorf("no field named %q was found under type FulfillmentService", field.Name)
  81219. },
  81220. }
  81221. return fc, nil
  81222. }
  81223. func (ec *executionContext) _Location_fulfillsOnlineOrders(ctx context.Context, field graphql.CollectedField, obj *Location) (ret graphql.Marshaler) {
  81224. fc, err := ec.fieldContext_Location_fulfillsOnlineOrders(ctx, field)
  81225. if err != nil {
  81226. return graphql.Null
  81227. }
  81228. ctx = graphql.WithFieldContext(ctx, fc)
  81229. defer func() {
  81230. if r := recover(); r != nil {
  81231. ec.Error(ctx, ec.Recover(ctx, r))
  81232. ret = graphql.Null
  81233. }
  81234. }()
  81235. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  81236. ctx = rctx // use context from middleware stack in children
  81237. return obj.FulfillsOnlineOrders, nil
  81238. })
  81239. if err != nil {
  81240. ec.Error(ctx, err)
  81241. return graphql.Null
  81242. }
  81243. if resTmp == nil {
  81244. if !graphql.HasFieldError(ctx, fc) {
  81245. ec.Errorf(ctx, "must not be null")
  81246. }
  81247. return graphql.Null
  81248. }
  81249. res := resTmp.(bool)
  81250. fc.Result = res
  81251. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  81252. }
  81253. func (ec *executionContext) fieldContext_Location_fulfillsOnlineOrders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  81254. fc = &graphql.FieldContext{
  81255. Object: "Location",
  81256. Field: field,
  81257. IsMethod: false,
  81258. IsResolver: false,
  81259. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  81260. return nil, errors.New("field of type Boolean does not have child fields")
  81261. },
  81262. }
  81263. return fc, nil
  81264. }
  81265. func (ec *executionContext) _Location_hasActiveInventory(ctx context.Context, field graphql.CollectedField, obj *Location) (ret graphql.Marshaler) {
  81266. fc, err := ec.fieldContext_Location_hasActiveInventory(ctx, field)
  81267. if err != nil {
  81268. return graphql.Null
  81269. }
  81270. ctx = graphql.WithFieldContext(ctx, fc)
  81271. defer func() {
  81272. if r := recover(); r != nil {
  81273. ec.Error(ctx, ec.Recover(ctx, r))
  81274. ret = graphql.Null
  81275. }
  81276. }()
  81277. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  81278. ctx = rctx // use context from middleware stack in children
  81279. return obj.HasActiveInventory, nil
  81280. })
  81281. if err != nil {
  81282. ec.Error(ctx, err)
  81283. return graphql.Null
  81284. }
  81285. if resTmp == nil {
  81286. if !graphql.HasFieldError(ctx, fc) {
  81287. ec.Errorf(ctx, "must not be null")
  81288. }
  81289. return graphql.Null
  81290. }
  81291. res := resTmp.(bool)
  81292. fc.Result = res
  81293. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  81294. }
  81295. func (ec *executionContext) fieldContext_Location_hasActiveInventory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  81296. fc = &graphql.FieldContext{
  81297. Object: "Location",
  81298. Field: field,
  81299. IsMethod: false,
  81300. IsResolver: false,
  81301. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  81302. return nil, errors.New("field of type Boolean does not have child fields")
  81303. },
  81304. }
  81305. return fc, nil
  81306. }
  81307. func (ec *executionContext) _Location_hasUnfulfilledOrders(ctx context.Context, field graphql.CollectedField, obj *Location) (ret graphql.Marshaler) {
  81308. fc, err := ec.fieldContext_Location_hasUnfulfilledOrders(ctx, field)
  81309. if err != nil {
  81310. return graphql.Null
  81311. }
  81312. ctx = graphql.WithFieldContext(ctx, fc)
  81313. defer func() {
  81314. if r := recover(); r != nil {
  81315. ec.Error(ctx, ec.Recover(ctx, r))
  81316. ret = graphql.Null
  81317. }
  81318. }()
  81319. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  81320. ctx = rctx // use context from middleware stack in children
  81321. return obj.HasUnfulfilledOrders, nil
  81322. })
  81323. if err != nil {
  81324. ec.Error(ctx, err)
  81325. return graphql.Null
  81326. }
  81327. if resTmp == nil {
  81328. if !graphql.HasFieldError(ctx, fc) {
  81329. ec.Errorf(ctx, "must not be null")
  81330. }
  81331. return graphql.Null
  81332. }
  81333. res := resTmp.(bool)
  81334. fc.Result = res
  81335. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  81336. }
  81337. func (ec *executionContext) fieldContext_Location_hasUnfulfilledOrders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  81338. fc = &graphql.FieldContext{
  81339. Object: "Location",
  81340. Field: field,
  81341. IsMethod: false,
  81342. IsResolver: false,
  81343. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  81344. return nil, errors.New("field of type Boolean does not have child fields")
  81345. },
  81346. }
  81347. return fc, nil
  81348. }
  81349. func (ec *executionContext) _Location_id(ctx context.Context, field graphql.CollectedField, obj *Location) (ret graphql.Marshaler) {
  81350. fc, err := ec.fieldContext_Location_id(ctx, field)
  81351. if err != nil {
  81352. return graphql.Null
  81353. }
  81354. ctx = graphql.WithFieldContext(ctx, fc)
  81355. defer func() {
  81356. if r := recover(); r != nil {
  81357. ec.Error(ctx, ec.Recover(ctx, r))
  81358. ret = graphql.Null
  81359. }
  81360. }()
  81361. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  81362. ctx = rctx // use context from middleware stack in children
  81363. return obj.ID, nil
  81364. })
  81365. if err != nil {
  81366. ec.Error(ctx, err)
  81367. return graphql.Null
  81368. }
  81369. if resTmp == nil {
  81370. if !graphql.HasFieldError(ctx, fc) {
  81371. ec.Errorf(ctx, "must not be null")
  81372. }
  81373. return graphql.Null
  81374. }
  81375. res := resTmp.(string)
  81376. fc.Result = res
  81377. return ec.marshalNID2string(ctx, field.Selections, res)
  81378. }
  81379. func (ec *executionContext) fieldContext_Location_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  81380. fc = &graphql.FieldContext{
  81381. Object: "Location",
  81382. Field: field,
  81383. IsMethod: false,
  81384. IsResolver: false,
  81385. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  81386. return nil, errors.New("field of type ID does not have child fields")
  81387. },
  81388. }
  81389. return fc, nil
  81390. }
  81391. func (ec *executionContext) _Location_inventoryLevel(ctx context.Context, field graphql.CollectedField, obj *Location) (ret graphql.Marshaler) {
  81392. fc, err := ec.fieldContext_Location_inventoryLevel(ctx, field)
  81393. if err != nil {
  81394. return graphql.Null
  81395. }
  81396. ctx = graphql.WithFieldContext(ctx, fc)
  81397. defer func() {
  81398. if r := recover(); r != nil {
  81399. ec.Error(ctx, ec.Recover(ctx, r))
  81400. ret = graphql.Null
  81401. }
  81402. }()
  81403. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  81404. ctx = rctx // use context from middleware stack in children
  81405. return obj.InventoryLevel, nil
  81406. })
  81407. if err != nil {
  81408. ec.Error(ctx, err)
  81409. return graphql.Null
  81410. }
  81411. if resTmp == nil {
  81412. return graphql.Null
  81413. }
  81414. res := resTmp.(*InventoryLevel)
  81415. fc.Result = res
  81416. return ec.marshalOInventoryLevel2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐInventoryLevel(ctx, field.Selections, res)
  81417. }
  81418. func (ec *executionContext) fieldContext_Location_inventoryLevel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  81419. fc = &graphql.FieldContext{
  81420. Object: "Location",
  81421. Field: field,
  81422. IsMethod: false,
  81423. IsResolver: false,
  81424. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  81425. switch field.Name {
  81426. case "available":
  81427. return ec.fieldContext_InventoryLevel_available(ctx, field)
  81428. case "canDeactivate":
  81429. return ec.fieldContext_InventoryLevel_canDeactivate(ctx, field)
  81430. case "createdAt":
  81431. return ec.fieldContext_InventoryLevel_createdAt(ctx, field)
  81432. case "deactivationAlert":
  81433. return ec.fieldContext_InventoryLevel_deactivationAlert(ctx, field)
  81434. case "deactivationAlertHtml":
  81435. return ec.fieldContext_InventoryLevel_deactivationAlertHtml(ctx, field)
  81436. case "id":
  81437. return ec.fieldContext_InventoryLevel_id(ctx, field)
  81438. case "incoming":
  81439. return ec.fieldContext_InventoryLevel_incoming(ctx, field)
  81440. case "item":
  81441. return ec.fieldContext_InventoryLevel_item(ctx, field)
  81442. case "location":
  81443. return ec.fieldContext_InventoryLevel_location(ctx, field)
  81444. case "updatedAt":
  81445. return ec.fieldContext_InventoryLevel_updatedAt(ctx, field)
  81446. }
  81447. return nil, fmt.Errorf("no field named %q was found under type InventoryLevel", field.Name)
  81448. },
  81449. }
  81450. defer func() {
  81451. if r := recover(); r != nil {
  81452. err = ec.Recover(ctx, r)
  81453. ec.Error(ctx, err)
  81454. }
  81455. }()
  81456. ctx = graphql.WithFieldContext(ctx, fc)
  81457. if fc.Args, err = ec.field_Location_inventoryLevel_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  81458. ec.Error(ctx, err)
  81459. return
  81460. }
  81461. return fc, nil
  81462. }
  81463. func (ec *executionContext) _Location_inventoryLevels(ctx context.Context, field graphql.CollectedField, obj *Location) (ret graphql.Marshaler) {
  81464. fc, err := ec.fieldContext_Location_inventoryLevels(ctx, field)
  81465. if err != nil {
  81466. return graphql.Null
  81467. }
  81468. ctx = graphql.WithFieldContext(ctx, fc)
  81469. defer func() {
  81470. if r := recover(); r != nil {
  81471. ec.Error(ctx, ec.Recover(ctx, r))
  81472. ret = graphql.Null
  81473. }
  81474. }()
  81475. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  81476. ctx = rctx // use context from middleware stack in children
  81477. return obj.InventoryLevels, nil
  81478. })
  81479. if err != nil {
  81480. ec.Error(ctx, err)
  81481. return graphql.Null
  81482. }
  81483. if resTmp == nil {
  81484. if !graphql.HasFieldError(ctx, fc) {
  81485. ec.Errorf(ctx, "must not be null")
  81486. }
  81487. return graphql.Null
  81488. }
  81489. res := resTmp.(*InventoryLevelConnection)
  81490. fc.Result = res
  81491. return ec.marshalNInventoryLevelConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐInventoryLevelConnection(ctx, field.Selections, res)
  81492. }
  81493. func (ec *executionContext) fieldContext_Location_inventoryLevels(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  81494. fc = &graphql.FieldContext{
  81495. Object: "Location",
  81496. Field: field,
  81497. IsMethod: false,
  81498. IsResolver: false,
  81499. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  81500. switch field.Name {
  81501. case "edges":
  81502. return ec.fieldContext_InventoryLevelConnection_edges(ctx, field)
  81503. case "nodes":
  81504. return ec.fieldContext_InventoryLevelConnection_nodes(ctx, field)
  81505. case "pageInfo":
  81506. return ec.fieldContext_InventoryLevelConnection_pageInfo(ctx, field)
  81507. }
  81508. return nil, fmt.Errorf("no field named %q was found under type InventoryLevelConnection", field.Name)
  81509. },
  81510. }
  81511. defer func() {
  81512. if r := recover(); r != nil {
  81513. err = ec.Recover(ctx, r)
  81514. ec.Error(ctx, err)
  81515. }
  81516. }()
  81517. ctx = graphql.WithFieldContext(ctx, fc)
  81518. if fc.Args, err = ec.field_Location_inventoryLevels_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  81519. ec.Error(ctx, err)
  81520. return
  81521. }
  81522. return fc, nil
  81523. }
  81524. func (ec *executionContext) _Location_isActive(ctx context.Context, field graphql.CollectedField, obj *Location) (ret graphql.Marshaler) {
  81525. fc, err := ec.fieldContext_Location_isActive(ctx, field)
  81526. if err != nil {
  81527. return graphql.Null
  81528. }
  81529. ctx = graphql.WithFieldContext(ctx, fc)
  81530. defer func() {
  81531. if r := recover(); r != nil {
  81532. ec.Error(ctx, ec.Recover(ctx, r))
  81533. ret = graphql.Null
  81534. }
  81535. }()
  81536. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  81537. ctx = rctx // use context from middleware stack in children
  81538. return obj.IsActive, nil
  81539. })
  81540. if err != nil {
  81541. ec.Error(ctx, err)
  81542. return graphql.Null
  81543. }
  81544. if resTmp == nil {
  81545. if !graphql.HasFieldError(ctx, fc) {
  81546. ec.Errorf(ctx, "must not be null")
  81547. }
  81548. return graphql.Null
  81549. }
  81550. res := resTmp.(bool)
  81551. fc.Result = res
  81552. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  81553. }
  81554. func (ec *executionContext) fieldContext_Location_isActive(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  81555. fc = &graphql.FieldContext{
  81556. Object: "Location",
  81557. Field: field,
  81558. IsMethod: false,
  81559. IsResolver: false,
  81560. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  81561. return nil, errors.New("field of type Boolean does not have child fields")
  81562. },
  81563. }
  81564. return fc, nil
  81565. }
  81566. func (ec *executionContext) _Location_legacyResourceId(ctx context.Context, field graphql.CollectedField, obj *Location) (ret graphql.Marshaler) {
  81567. fc, err := ec.fieldContext_Location_legacyResourceId(ctx, field)
  81568. if err != nil {
  81569. return graphql.Null
  81570. }
  81571. ctx = graphql.WithFieldContext(ctx, fc)
  81572. defer func() {
  81573. if r := recover(); r != nil {
  81574. ec.Error(ctx, ec.Recover(ctx, r))
  81575. ret = graphql.Null
  81576. }
  81577. }()
  81578. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  81579. ctx = rctx // use context from middleware stack in children
  81580. return obj.LegacyResourceID, nil
  81581. })
  81582. if err != nil {
  81583. ec.Error(ctx, err)
  81584. return graphql.Null
  81585. }
  81586. if resTmp == nil {
  81587. if !graphql.HasFieldError(ctx, fc) {
  81588. ec.Errorf(ctx, "must not be null")
  81589. }
  81590. return graphql.Null
  81591. }
  81592. res := resTmp.(string)
  81593. fc.Result = res
  81594. return ec.marshalNUnsignedInt642string(ctx, field.Selections, res)
  81595. }
  81596. func (ec *executionContext) fieldContext_Location_legacyResourceId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  81597. fc = &graphql.FieldContext{
  81598. Object: "Location",
  81599. Field: field,
  81600. IsMethod: false,
  81601. IsResolver: false,
  81602. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  81603. return nil, errors.New("field of type UnsignedInt64 does not have child fields")
  81604. },
  81605. }
  81606. return fc, nil
  81607. }
  81608. func (ec *executionContext) _Location_metafield(ctx context.Context, field graphql.CollectedField, obj *Location) (ret graphql.Marshaler) {
  81609. fc, err := ec.fieldContext_Location_metafield(ctx, field)
  81610. if err != nil {
  81611. return graphql.Null
  81612. }
  81613. ctx = graphql.WithFieldContext(ctx, fc)
  81614. defer func() {
  81615. if r := recover(); r != nil {
  81616. ec.Error(ctx, ec.Recover(ctx, r))
  81617. ret = graphql.Null
  81618. }
  81619. }()
  81620. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  81621. ctx = rctx // use context from middleware stack in children
  81622. return obj.Metafield, nil
  81623. })
  81624. if err != nil {
  81625. ec.Error(ctx, err)
  81626. return graphql.Null
  81627. }
  81628. if resTmp == nil {
  81629. return graphql.Null
  81630. }
  81631. res := resTmp.(*Metafield)
  81632. fc.Result = res
  81633. return ec.marshalOMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafield(ctx, field.Selections, res)
  81634. }
  81635. func (ec *executionContext) fieldContext_Location_metafield(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  81636. fc = &graphql.FieldContext{
  81637. Object: "Location",
  81638. Field: field,
  81639. IsMethod: false,
  81640. IsResolver: false,
  81641. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  81642. switch field.Name {
  81643. case "createdAt":
  81644. return ec.fieldContext_Metafield_createdAt(ctx, field)
  81645. case "definition":
  81646. return ec.fieldContext_Metafield_definition(ctx, field)
  81647. case "description":
  81648. return ec.fieldContext_Metafield_description(ctx, field)
  81649. case "id":
  81650. return ec.fieldContext_Metafield_id(ctx, field)
  81651. case "key":
  81652. return ec.fieldContext_Metafield_key(ctx, field)
  81653. case "legacyResourceId":
  81654. return ec.fieldContext_Metafield_legacyResourceId(ctx, field)
  81655. case "namespace":
  81656. return ec.fieldContext_Metafield_namespace(ctx, field)
  81657. case "owner":
  81658. return ec.fieldContext_Metafield_owner(ctx, field)
  81659. case "ownerType":
  81660. return ec.fieldContext_Metafield_ownerType(ctx, field)
  81661. case "reference":
  81662. return ec.fieldContext_Metafield_reference(ctx, field)
  81663. case "references":
  81664. return ec.fieldContext_Metafield_references(ctx, field)
  81665. case "type":
  81666. return ec.fieldContext_Metafield_type(ctx, field)
  81667. case "updatedAt":
  81668. return ec.fieldContext_Metafield_updatedAt(ctx, field)
  81669. case "value":
  81670. return ec.fieldContext_Metafield_value(ctx, field)
  81671. }
  81672. return nil, fmt.Errorf("no field named %q was found under type Metafield", field.Name)
  81673. },
  81674. }
  81675. defer func() {
  81676. if r := recover(); r != nil {
  81677. err = ec.Recover(ctx, r)
  81678. ec.Error(ctx, err)
  81679. }
  81680. }()
  81681. ctx = graphql.WithFieldContext(ctx, fc)
  81682. if fc.Args, err = ec.field_Location_metafield_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  81683. ec.Error(ctx, err)
  81684. return
  81685. }
  81686. return fc, nil
  81687. }
  81688. func (ec *executionContext) _Location_metafieldDefinitions(ctx context.Context, field graphql.CollectedField, obj *Location) (ret graphql.Marshaler) {
  81689. fc, err := ec.fieldContext_Location_metafieldDefinitions(ctx, field)
  81690. if err != nil {
  81691. return graphql.Null
  81692. }
  81693. ctx = graphql.WithFieldContext(ctx, fc)
  81694. defer func() {
  81695. if r := recover(); r != nil {
  81696. ec.Error(ctx, ec.Recover(ctx, r))
  81697. ret = graphql.Null
  81698. }
  81699. }()
  81700. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  81701. ctx = rctx // use context from middleware stack in children
  81702. return obj.MetafieldDefinitions, nil
  81703. })
  81704. if err != nil {
  81705. ec.Error(ctx, err)
  81706. return graphql.Null
  81707. }
  81708. if resTmp == nil {
  81709. if !graphql.HasFieldError(ctx, fc) {
  81710. ec.Errorf(ctx, "must not be null")
  81711. }
  81712. return graphql.Null
  81713. }
  81714. res := resTmp.(*MetafieldDefinitionConnection)
  81715. fc.Result = res
  81716. return ec.marshalNMetafieldDefinitionConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionConnection(ctx, field.Selections, res)
  81717. }
  81718. func (ec *executionContext) fieldContext_Location_metafieldDefinitions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  81719. fc = &graphql.FieldContext{
  81720. Object: "Location",
  81721. Field: field,
  81722. IsMethod: false,
  81723. IsResolver: false,
  81724. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  81725. switch field.Name {
  81726. case "edges":
  81727. return ec.fieldContext_MetafieldDefinitionConnection_edges(ctx, field)
  81728. case "nodes":
  81729. return ec.fieldContext_MetafieldDefinitionConnection_nodes(ctx, field)
  81730. case "pageInfo":
  81731. return ec.fieldContext_MetafieldDefinitionConnection_pageInfo(ctx, field)
  81732. }
  81733. return nil, fmt.Errorf("no field named %q was found under type MetafieldDefinitionConnection", field.Name)
  81734. },
  81735. }
  81736. defer func() {
  81737. if r := recover(); r != nil {
  81738. err = ec.Recover(ctx, r)
  81739. ec.Error(ctx, err)
  81740. }
  81741. }()
  81742. ctx = graphql.WithFieldContext(ctx, fc)
  81743. if fc.Args, err = ec.field_Location_metafieldDefinitions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  81744. ec.Error(ctx, err)
  81745. return
  81746. }
  81747. return fc, nil
  81748. }
  81749. func (ec *executionContext) _Location_metafields(ctx context.Context, field graphql.CollectedField, obj *Location) (ret graphql.Marshaler) {
  81750. fc, err := ec.fieldContext_Location_metafields(ctx, field)
  81751. if err != nil {
  81752. return graphql.Null
  81753. }
  81754. ctx = graphql.WithFieldContext(ctx, fc)
  81755. defer func() {
  81756. if r := recover(); r != nil {
  81757. ec.Error(ctx, ec.Recover(ctx, r))
  81758. ret = graphql.Null
  81759. }
  81760. }()
  81761. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  81762. ctx = rctx // use context from middleware stack in children
  81763. return obj.Metafields, nil
  81764. })
  81765. if err != nil {
  81766. ec.Error(ctx, err)
  81767. return graphql.Null
  81768. }
  81769. if resTmp == nil {
  81770. if !graphql.HasFieldError(ctx, fc) {
  81771. ec.Errorf(ctx, "must not be null")
  81772. }
  81773. return graphql.Null
  81774. }
  81775. res := resTmp.(*MetafieldConnection)
  81776. fc.Result = res
  81777. return ec.marshalNMetafieldConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldConnection(ctx, field.Selections, res)
  81778. }
  81779. func (ec *executionContext) fieldContext_Location_metafields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  81780. fc = &graphql.FieldContext{
  81781. Object: "Location",
  81782. Field: field,
  81783. IsMethod: false,
  81784. IsResolver: false,
  81785. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  81786. switch field.Name {
  81787. case "edges":
  81788. return ec.fieldContext_MetafieldConnection_edges(ctx, field)
  81789. case "nodes":
  81790. return ec.fieldContext_MetafieldConnection_nodes(ctx, field)
  81791. case "pageInfo":
  81792. return ec.fieldContext_MetafieldConnection_pageInfo(ctx, field)
  81793. }
  81794. return nil, fmt.Errorf("no field named %q was found under type MetafieldConnection", field.Name)
  81795. },
  81796. }
  81797. defer func() {
  81798. if r := recover(); r != nil {
  81799. err = ec.Recover(ctx, r)
  81800. ec.Error(ctx, err)
  81801. }
  81802. }()
  81803. ctx = graphql.WithFieldContext(ctx, fc)
  81804. if fc.Args, err = ec.field_Location_metafields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  81805. ec.Error(ctx, err)
  81806. return
  81807. }
  81808. return fc, nil
  81809. }
  81810. func (ec *executionContext) _Location_name(ctx context.Context, field graphql.CollectedField, obj *Location) (ret graphql.Marshaler) {
  81811. fc, err := ec.fieldContext_Location_name(ctx, field)
  81812. if err != nil {
  81813. return graphql.Null
  81814. }
  81815. ctx = graphql.WithFieldContext(ctx, fc)
  81816. defer func() {
  81817. if r := recover(); r != nil {
  81818. ec.Error(ctx, ec.Recover(ctx, r))
  81819. ret = graphql.Null
  81820. }
  81821. }()
  81822. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  81823. ctx = rctx // use context from middleware stack in children
  81824. return obj.Name, nil
  81825. })
  81826. if err != nil {
  81827. ec.Error(ctx, err)
  81828. return graphql.Null
  81829. }
  81830. if resTmp == nil {
  81831. if !graphql.HasFieldError(ctx, fc) {
  81832. ec.Errorf(ctx, "must not be null")
  81833. }
  81834. return graphql.Null
  81835. }
  81836. res := resTmp.(string)
  81837. fc.Result = res
  81838. return ec.marshalNString2string(ctx, field.Selections, res)
  81839. }
  81840. func (ec *executionContext) fieldContext_Location_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  81841. fc = &graphql.FieldContext{
  81842. Object: "Location",
  81843. Field: field,
  81844. IsMethod: false,
  81845. IsResolver: false,
  81846. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  81847. return nil, errors.New("field of type String does not have child fields")
  81848. },
  81849. }
  81850. return fc, nil
  81851. }
  81852. func (ec *executionContext) _Location_privateMetafield(ctx context.Context, field graphql.CollectedField, obj *Location) (ret graphql.Marshaler) {
  81853. fc, err := ec.fieldContext_Location_privateMetafield(ctx, field)
  81854. if err != nil {
  81855. return graphql.Null
  81856. }
  81857. ctx = graphql.WithFieldContext(ctx, fc)
  81858. defer func() {
  81859. if r := recover(); r != nil {
  81860. ec.Error(ctx, ec.Recover(ctx, r))
  81861. ret = graphql.Null
  81862. }
  81863. }()
  81864. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  81865. ctx = rctx // use context from middleware stack in children
  81866. return obj.PrivateMetafield, nil
  81867. })
  81868. if err != nil {
  81869. ec.Error(ctx, err)
  81870. return graphql.Null
  81871. }
  81872. if resTmp == nil {
  81873. return graphql.Null
  81874. }
  81875. res := resTmp.(*PrivateMetafield)
  81876. fc.Result = res
  81877. return ec.marshalOPrivateMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafield(ctx, field.Selections, res)
  81878. }
  81879. func (ec *executionContext) fieldContext_Location_privateMetafield(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  81880. fc = &graphql.FieldContext{
  81881. Object: "Location",
  81882. Field: field,
  81883. IsMethod: false,
  81884. IsResolver: false,
  81885. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  81886. switch field.Name {
  81887. case "createdAt":
  81888. return ec.fieldContext_PrivateMetafield_createdAt(ctx, field)
  81889. case "id":
  81890. return ec.fieldContext_PrivateMetafield_id(ctx, field)
  81891. case "key":
  81892. return ec.fieldContext_PrivateMetafield_key(ctx, field)
  81893. case "namespace":
  81894. return ec.fieldContext_PrivateMetafield_namespace(ctx, field)
  81895. case "updatedAt":
  81896. return ec.fieldContext_PrivateMetafield_updatedAt(ctx, field)
  81897. case "value":
  81898. return ec.fieldContext_PrivateMetafield_value(ctx, field)
  81899. case "valueType":
  81900. return ec.fieldContext_PrivateMetafield_valueType(ctx, field)
  81901. }
  81902. return nil, fmt.Errorf("no field named %q was found under type PrivateMetafield", field.Name)
  81903. },
  81904. }
  81905. defer func() {
  81906. if r := recover(); r != nil {
  81907. err = ec.Recover(ctx, r)
  81908. ec.Error(ctx, err)
  81909. }
  81910. }()
  81911. ctx = graphql.WithFieldContext(ctx, fc)
  81912. if fc.Args, err = ec.field_Location_privateMetafield_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  81913. ec.Error(ctx, err)
  81914. return
  81915. }
  81916. return fc, nil
  81917. }
  81918. func (ec *executionContext) _Location_privateMetafields(ctx context.Context, field graphql.CollectedField, obj *Location) (ret graphql.Marshaler) {
  81919. fc, err := ec.fieldContext_Location_privateMetafields(ctx, field)
  81920. if err != nil {
  81921. return graphql.Null
  81922. }
  81923. ctx = graphql.WithFieldContext(ctx, fc)
  81924. defer func() {
  81925. if r := recover(); r != nil {
  81926. ec.Error(ctx, ec.Recover(ctx, r))
  81927. ret = graphql.Null
  81928. }
  81929. }()
  81930. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  81931. ctx = rctx // use context from middleware stack in children
  81932. return obj.PrivateMetafields, nil
  81933. })
  81934. if err != nil {
  81935. ec.Error(ctx, err)
  81936. return graphql.Null
  81937. }
  81938. if resTmp == nil {
  81939. if !graphql.HasFieldError(ctx, fc) {
  81940. ec.Errorf(ctx, "must not be null")
  81941. }
  81942. return graphql.Null
  81943. }
  81944. res := resTmp.(*PrivateMetafieldConnection)
  81945. fc.Result = res
  81946. return ec.marshalNPrivateMetafieldConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafieldConnection(ctx, field.Selections, res)
  81947. }
  81948. func (ec *executionContext) fieldContext_Location_privateMetafields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  81949. fc = &graphql.FieldContext{
  81950. Object: "Location",
  81951. Field: field,
  81952. IsMethod: false,
  81953. IsResolver: false,
  81954. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  81955. switch field.Name {
  81956. case "edges":
  81957. return ec.fieldContext_PrivateMetafieldConnection_edges(ctx, field)
  81958. case "nodes":
  81959. return ec.fieldContext_PrivateMetafieldConnection_nodes(ctx, field)
  81960. case "pageInfo":
  81961. return ec.fieldContext_PrivateMetafieldConnection_pageInfo(ctx, field)
  81962. }
  81963. return nil, fmt.Errorf("no field named %q was found under type PrivateMetafieldConnection", field.Name)
  81964. },
  81965. }
  81966. defer func() {
  81967. if r := recover(); r != nil {
  81968. err = ec.Recover(ctx, r)
  81969. ec.Error(ctx, err)
  81970. }
  81971. }()
  81972. ctx = graphql.WithFieldContext(ctx, fc)
  81973. if fc.Args, err = ec.field_Location_privateMetafields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  81974. ec.Error(ctx, err)
  81975. return
  81976. }
  81977. return fc, nil
  81978. }
  81979. func (ec *executionContext) _Location_shipsInventory(ctx context.Context, field graphql.CollectedField, obj *Location) (ret graphql.Marshaler) {
  81980. fc, err := ec.fieldContext_Location_shipsInventory(ctx, field)
  81981. if err != nil {
  81982. return graphql.Null
  81983. }
  81984. ctx = graphql.WithFieldContext(ctx, fc)
  81985. defer func() {
  81986. if r := recover(); r != nil {
  81987. ec.Error(ctx, ec.Recover(ctx, r))
  81988. ret = graphql.Null
  81989. }
  81990. }()
  81991. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  81992. ctx = rctx // use context from middleware stack in children
  81993. return obj.ShipsInventory, nil
  81994. })
  81995. if err != nil {
  81996. ec.Error(ctx, err)
  81997. return graphql.Null
  81998. }
  81999. if resTmp == nil {
  82000. if !graphql.HasFieldError(ctx, fc) {
  82001. ec.Errorf(ctx, "must not be null")
  82002. }
  82003. return graphql.Null
  82004. }
  82005. res := resTmp.(bool)
  82006. fc.Result = res
  82007. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  82008. }
  82009. func (ec *executionContext) fieldContext_Location_shipsInventory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  82010. fc = &graphql.FieldContext{
  82011. Object: "Location",
  82012. Field: field,
  82013. IsMethod: false,
  82014. IsResolver: false,
  82015. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  82016. return nil, errors.New("field of type Boolean does not have child fields")
  82017. },
  82018. }
  82019. return fc, nil
  82020. }
  82021. func (ec *executionContext) _Location_suggestedAddresses(ctx context.Context, field graphql.CollectedField, obj *Location) (ret graphql.Marshaler) {
  82022. fc, err := ec.fieldContext_Location_suggestedAddresses(ctx, field)
  82023. if err != nil {
  82024. return graphql.Null
  82025. }
  82026. ctx = graphql.WithFieldContext(ctx, fc)
  82027. defer func() {
  82028. if r := recover(); r != nil {
  82029. ec.Error(ctx, ec.Recover(ctx, r))
  82030. ret = graphql.Null
  82031. }
  82032. }()
  82033. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  82034. ctx = rctx // use context from middleware stack in children
  82035. return obj.SuggestedAddresses, nil
  82036. })
  82037. if err != nil {
  82038. ec.Error(ctx, err)
  82039. return graphql.Null
  82040. }
  82041. if resTmp == nil {
  82042. if !graphql.HasFieldError(ctx, fc) {
  82043. ec.Errorf(ctx, "must not be null")
  82044. }
  82045. return graphql.Null
  82046. }
  82047. res := resTmp.([]*LocationSuggestedAddress)
  82048. fc.Result = res
  82049. return ec.marshalNLocationSuggestedAddress2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocationSuggestedAddressᚄ(ctx, field.Selections, res)
  82050. }
  82051. func (ec *executionContext) fieldContext_Location_suggestedAddresses(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  82052. fc = &graphql.FieldContext{
  82053. Object: "Location",
  82054. Field: field,
  82055. IsMethod: false,
  82056. IsResolver: false,
  82057. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  82058. switch field.Name {
  82059. case "address1":
  82060. return ec.fieldContext_LocationSuggestedAddress_address1(ctx, field)
  82061. case "address2":
  82062. return ec.fieldContext_LocationSuggestedAddress_address2(ctx, field)
  82063. case "city":
  82064. return ec.fieldContext_LocationSuggestedAddress_city(ctx, field)
  82065. case "country":
  82066. return ec.fieldContext_LocationSuggestedAddress_country(ctx, field)
  82067. case "countryCode":
  82068. return ec.fieldContext_LocationSuggestedAddress_countryCode(ctx, field)
  82069. case "formatted":
  82070. return ec.fieldContext_LocationSuggestedAddress_formatted(ctx, field)
  82071. case "province":
  82072. return ec.fieldContext_LocationSuggestedAddress_province(ctx, field)
  82073. case "provinceCode":
  82074. return ec.fieldContext_LocationSuggestedAddress_provinceCode(ctx, field)
  82075. case "zip":
  82076. return ec.fieldContext_LocationSuggestedAddress_zip(ctx, field)
  82077. }
  82078. return nil, fmt.Errorf("no field named %q was found under type LocationSuggestedAddress", field.Name)
  82079. },
  82080. }
  82081. return fc, nil
  82082. }
  82083. func (ec *executionContext) _LocationAddress_address1(ctx context.Context, field graphql.CollectedField, obj *LocationAddress) (ret graphql.Marshaler) {
  82084. fc, err := ec.fieldContext_LocationAddress_address1(ctx, field)
  82085. if err != nil {
  82086. return graphql.Null
  82087. }
  82088. ctx = graphql.WithFieldContext(ctx, fc)
  82089. defer func() {
  82090. if r := recover(); r != nil {
  82091. ec.Error(ctx, ec.Recover(ctx, r))
  82092. ret = graphql.Null
  82093. }
  82094. }()
  82095. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  82096. ctx = rctx // use context from middleware stack in children
  82097. return obj.Address1, nil
  82098. })
  82099. if err != nil {
  82100. ec.Error(ctx, err)
  82101. return graphql.Null
  82102. }
  82103. if resTmp == nil {
  82104. return graphql.Null
  82105. }
  82106. res := resTmp.(*string)
  82107. fc.Result = res
  82108. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  82109. }
  82110. func (ec *executionContext) fieldContext_LocationAddress_address1(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  82111. fc = &graphql.FieldContext{
  82112. Object: "LocationAddress",
  82113. Field: field,
  82114. IsMethod: false,
  82115. IsResolver: false,
  82116. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  82117. return nil, errors.New("field of type String does not have child fields")
  82118. },
  82119. }
  82120. return fc, nil
  82121. }
  82122. func (ec *executionContext) _LocationAddress_address2(ctx context.Context, field graphql.CollectedField, obj *LocationAddress) (ret graphql.Marshaler) {
  82123. fc, err := ec.fieldContext_LocationAddress_address2(ctx, field)
  82124. if err != nil {
  82125. return graphql.Null
  82126. }
  82127. ctx = graphql.WithFieldContext(ctx, fc)
  82128. defer func() {
  82129. if r := recover(); r != nil {
  82130. ec.Error(ctx, ec.Recover(ctx, r))
  82131. ret = graphql.Null
  82132. }
  82133. }()
  82134. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  82135. ctx = rctx // use context from middleware stack in children
  82136. return obj.Address2, nil
  82137. })
  82138. if err != nil {
  82139. ec.Error(ctx, err)
  82140. return graphql.Null
  82141. }
  82142. if resTmp == nil {
  82143. return graphql.Null
  82144. }
  82145. res := resTmp.(*string)
  82146. fc.Result = res
  82147. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  82148. }
  82149. func (ec *executionContext) fieldContext_LocationAddress_address2(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  82150. fc = &graphql.FieldContext{
  82151. Object: "LocationAddress",
  82152. Field: field,
  82153. IsMethod: false,
  82154. IsResolver: false,
  82155. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  82156. return nil, errors.New("field of type String does not have child fields")
  82157. },
  82158. }
  82159. return fc, nil
  82160. }
  82161. func (ec *executionContext) _LocationAddress_city(ctx context.Context, field graphql.CollectedField, obj *LocationAddress) (ret graphql.Marshaler) {
  82162. fc, err := ec.fieldContext_LocationAddress_city(ctx, field)
  82163. if err != nil {
  82164. return graphql.Null
  82165. }
  82166. ctx = graphql.WithFieldContext(ctx, fc)
  82167. defer func() {
  82168. if r := recover(); r != nil {
  82169. ec.Error(ctx, ec.Recover(ctx, r))
  82170. ret = graphql.Null
  82171. }
  82172. }()
  82173. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  82174. ctx = rctx // use context from middleware stack in children
  82175. return obj.City, nil
  82176. })
  82177. if err != nil {
  82178. ec.Error(ctx, err)
  82179. return graphql.Null
  82180. }
  82181. if resTmp == nil {
  82182. return graphql.Null
  82183. }
  82184. res := resTmp.(*string)
  82185. fc.Result = res
  82186. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  82187. }
  82188. func (ec *executionContext) fieldContext_LocationAddress_city(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  82189. fc = &graphql.FieldContext{
  82190. Object: "LocationAddress",
  82191. Field: field,
  82192. IsMethod: false,
  82193. IsResolver: false,
  82194. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  82195. return nil, errors.New("field of type String does not have child fields")
  82196. },
  82197. }
  82198. return fc, nil
  82199. }
  82200. func (ec *executionContext) _LocationAddress_country(ctx context.Context, field graphql.CollectedField, obj *LocationAddress) (ret graphql.Marshaler) {
  82201. fc, err := ec.fieldContext_LocationAddress_country(ctx, field)
  82202. if err != nil {
  82203. return graphql.Null
  82204. }
  82205. ctx = graphql.WithFieldContext(ctx, fc)
  82206. defer func() {
  82207. if r := recover(); r != nil {
  82208. ec.Error(ctx, ec.Recover(ctx, r))
  82209. ret = graphql.Null
  82210. }
  82211. }()
  82212. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  82213. ctx = rctx // use context from middleware stack in children
  82214. return obj.Country, nil
  82215. })
  82216. if err != nil {
  82217. ec.Error(ctx, err)
  82218. return graphql.Null
  82219. }
  82220. if resTmp == nil {
  82221. return graphql.Null
  82222. }
  82223. res := resTmp.(*string)
  82224. fc.Result = res
  82225. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  82226. }
  82227. func (ec *executionContext) fieldContext_LocationAddress_country(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  82228. fc = &graphql.FieldContext{
  82229. Object: "LocationAddress",
  82230. Field: field,
  82231. IsMethod: false,
  82232. IsResolver: false,
  82233. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  82234. return nil, errors.New("field of type String does not have child fields")
  82235. },
  82236. }
  82237. return fc, nil
  82238. }
  82239. func (ec *executionContext) _LocationAddress_countryCode(ctx context.Context, field graphql.CollectedField, obj *LocationAddress) (ret graphql.Marshaler) {
  82240. fc, err := ec.fieldContext_LocationAddress_countryCode(ctx, field)
  82241. if err != nil {
  82242. return graphql.Null
  82243. }
  82244. ctx = graphql.WithFieldContext(ctx, fc)
  82245. defer func() {
  82246. if r := recover(); r != nil {
  82247. ec.Error(ctx, ec.Recover(ctx, r))
  82248. ret = graphql.Null
  82249. }
  82250. }()
  82251. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  82252. ctx = rctx // use context from middleware stack in children
  82253. return obj.CountryCode, nil
  82254. })
  82255. if err != nil {
  82256. ec.Error(ctx, err)
  82257. return graphql.Null
  82258. }
  82259. if resTmp == nil {
  82260. return graphql.Null
  82261. }
  82262. res := resTmp.(*string)
  82263. fc.Result = res
  82264. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  82265. }
  82266. func (ec *executionContext) fieldContext_LocationAddress_countryCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  82267. fc = &graphql.FieldContext{
  82268. Object: "LocationAddress",
  82269. Field: field,
  82270. IsMethod: false,
  82271. IsResolver: false,
  82272. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  82273. return nil, errors.New("field of type String does not have child fields")
  82274. },
  82275. }
  82276. return fc, nil
  82277. }
  82278. func (ec *executionContext) _LocationAddress_formatted(ctx context.Context, field graphql.CollectedField, obj *LocationAddress) (ret graphql.Marshaler) {
  82279. fc, err := ec.fieldContext_LocationAddress_formatted(ctx, field)
  82280. if err != nil {
  82281. return graphql.Null
  82282. }
  82283. ctx = graphql.WithFieldContext(ctx, fc)
  82284. defer func() {
  82285. if r := recover(); r != nil {
  82286. ec.Error(ctx, ec.Recover(ctx, r))
  82287. ret = graphql.Null
  82288. }
  82289. }()
  82290. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  82291. ctx = rctx // use context from middleware stack in children
  82292. return obj.Formatted, nil
  82293. })
  82294. if err != nil {
  82295. ec.Error(ctx, err)
  82296. return graphql.Null
  82297. }
  82298. if resTmp == nil {
  82299. if !graphql.HasFieldError(ctx, fc) {
  82300. ec.Errorf(ctx, "must not be null")
  82301. }
  82302. return graphql.Null
  82303. }
  82304. res := resTmp.([]string)
  82305. fc.Result = res
  82306. return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
  82307. }
  82308. func (ec *executionContext) fieldContext_LocationAddress_formatted(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  82309. fc = &graphql.FieldContext{
  82310. Object: "LocationAddress",
  82311. Field: field,
  82312. IsMethod: false,
  82313. IsResolver: false,
  82314. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  82315. return nil, errors.New("field of type String does not have child fields")
  82316. },
  82317. }
  82318. return fc, nil
  82319. }
  82320. func (ec *executionContext) _LocationAddress_latitude(ctx context.Context, field graphql.CollectedField, obj *LocationAddress) (ret graphql.Marshaler) {
  82321. fc, err := ec.fieldContext_LocationAddress_latitude(ctx, field)
  82322. if err != nil {
  82323. return graphql.Null
  82324. }
  82325. ctx = graphql.WithFieldContext(ctx, fc)
  82326. defer func() {
  82327. if r := recover(); r != nil {
  82328. ec.Error(ctx, ec.Recover(ctx, r))
  82329. ret = graphql.Null
  82330. }
  82331. }()
  82332. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  82333. ctx = rctx // use context from middleware stack in children
  82334. return obj.Latitude, nil
  82335. })
  82336. if err != nil {
  82337. ec.Error(ctx, err)
  82338. return graphql.Null
  82339. }
  82340. if resTmp == nil {
  82341. return graphql.Null
  82342. }
  82343. res := resTmp.(*float64)
  82344. fc.Result = res
  82345. return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res)
  82346. }
  82347. func (ec *executionContext) fieldContext_LocationAddress_latitude(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  82348. fc = &graphql.FieldContext{
  82349. Object: "LocationAddress",
  82350. Field: field,
  82351. IsMethod: false,
  82352. IsResolver: false,
  82353. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  82354. return nil, errors.New("field of type Float does not have child fields")
  82355. },
  82356. }
  82357. return fc, nil
  82358. }
  82359. func (ec *executionContext) _LocationAddress_longitude(ctx context.Context, field graphql.CollectedField, obj *LocationAddress) (ret graphql.Marshaler) {
  82360. fc, err := ec.fieldContext_LocationAddress_longitude(ctx, field)
  82361. if err != nil {
  82362. return graphql.Null
  82363. }
  82364. ctx = graphql.WithFieldContext(ctx, fc)
  82365. defer func() {
  82366. if r := recover(); r != nil {
  82367. ec.Error(ctx, ec.Recover(ctx, r))
  82368. ret = graphql.Null
  82369. }
  82370. }()
  82371. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  82372. ctx = rctx // use context from middleware stack in children
  82373. return obj.Longitude, nil
  82374. })
  82375. if err != nil {
  82376. ec.Error(ctx, err)
  82377. return graphql.Null
  82378. }
  82379. if resTmp == nil {
  82380. return graphql.Null
  82381. }
  82382. res := resTmp.(*float64)
  82383. fc.Result = res
  82384. return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res)
  82385. }
  82386. func (ec *executionContext) fieldContext_LocationAddress_longitude(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  82387. fc = &graphql.FieldContext{
  82388. Object: "LocationAddress",
  82389. Field: field,
  82390. IsMethod: false,
  82391. IsResolver: false,
  82392. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  82393. return nil, errors.New("field of type Float does not have child fields")
  82394. },
  82395. }
  82396. return fc, nil
  82397. }
  82398. func (ec *executionContext) _LocationAddress_phone(ctx context.Context, field graphql.CollectedField, obj *LocationAddress) (ret graphql.Marshaler) {
  82399. fc, err := ec.fieldContext_LocationAddress_phone(ctx, field)
  82400. if err != nil {
  82401. return graphql.Null
  82402. }
  82403. ctx = graphql.WithFieldContext(ctx, fc)
  82404. defer func() {
  82405. if r := recover(); r != nil {
  82406. ec.Error(ctx, ec.Recover(ctx, r))
  82407. ret = graphql.Null
  82408. }
  82409. }()
  82410. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  82411. ctx = rctx // use context from middleware stack in children
  82412. return obj.Phone, nil
  82413. })
  82414. if err != nil {
  82415. ec.Error(ctx, err)
  82416. return graphql.Null
  82417. }
  82418. if resTmp == nil {
  82419. return graphql.Null
  82420. }
  82421. res := resTmp.(*string)
  82422. fc.Result = res
  82423. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  82424. }
  82425. func (ec *executionContext) fieldContext_LocationAddress_phone(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  82426. fc = &graphql.FieldContext{
  82427. Object: "LocationAddress",
  82428. Field: field,
  82429. IsMethod: false,
  82430. IsResolver: false,
  82431. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  82432. return nil, errors.New("field of type String does not have child fields")
  82433. },
  82434. }
  82435. return fc, nil
  82436. }
  82437. func (ec *executionContext) _LocationAddress_province(ctx context.Context, field graphql.CollectedField, obj *LocationAddress) (ret graphql.Marshaler) {
  82438. fc, err := ec.fieldContext_LocationAddress_province(ctx, field)
  82439. if err != nil {
  82440. return graphql.Null
  82441. }
  82442. ctx = graphql.WithFieldContext(ctx, fc)
  82443. defer func() {
  82444. if r := recover(); r != nil {
  82445. ec.Error(ctx, ec.Recover(ctx, r))
  82446. ret = graphql.Null
  82447. }
  82448. }()
  82449. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  82450. ctx = rctx // use context from middleware stack in children
  82451. return obj.Province, nil
  82452. })
  82453. if err != nil {
  82454. ec.Error(ctx, err)
  82455. return graphql.Null
  82456. }
  82457. if resTmp == nil {
  82458. return graphql.Null
  82459. }
  82460. res := resTmp.(*string)
  82461. fc.Result = res
  82462. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  82463. }
  82464. func (ec *executionContext) fieldContext_LocationAddress_province(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  82465. fc = &graphql.FieldContext{
  82466. Object: "LocationAddress",
  82467. Field: field,
  82468. IsMethod: false,
  82469. IsResolver: false,
  82470. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  82471. return nil, errors.New("field of type String does not have child fields")
  82472. },
  82473. }
  82474. return fc, nil
  82475. }
  82476. func (ec *executionContext) _LocationAddress_provinceCode(ctx context.Context, field graphql.CollectedField, obj *LocationAddress) (ret graphql.Marshaler) {
  82477. fc, err := ec.fieldContext_LocationAddress_provinceCode(ctx, field)
  82478. if err != nil {
  82479. return graphql.Null
  82480. }
  82481. ctx = graphql.WithFieldContext(ctx, fc)
  82482. defer func() {
  82483. if r := recover(); r != nil {
  82484. ec.Error(ctx, ec.Recover(ctx, r))
  82485. ret = graphql.Null
  82486. }
  82487. }()
  82488. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  82489. ctx = rctx // use context from middleware stack in children
  82490. return obj.ProvinceCode, nil
  82491. })
  82492. if err != nil {
  82493. ec.Error(ctx, err)
  82494. return graphql.Null
  82495. }
  82496. if resTmp == nil {
  82497. return graphql.Null
  82498. }
  82499. res := resTmp.(*string)
  82500. fc.Result = res
  82501. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  82502. }
  82503. func (ec *executionContext) fieldContext_LocationAddress_provinceCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  82504. fc = &graphql.FieldContext{
  82505. Object: "LocationAddress",
  82506. Field: field,
  82507. IsMethod: false,
  82508. IsResolver: false,
  82509. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  82510. return nil, errors.New("field of type String does not have child fields")
  82511. },
  82512. }
  82513. return fc, nil
  82514. }
  82515. func (ec *executionContext) _LocationAddress_zip(ctx context.Context, field graphql.CollectedField, obj *LocationAddress) (ret graphql.Marshaler) {
  82516. fc, err := ec.fieldContext_LocationAddress_zip(ctx, field)
  82517. if err != nil {
  82518. return graphql.Null
  82519. }
  82520. ctx = graphql.WithFieldContext(ctx, fc)
  82521. defer func() {
  82522. if r := recover(); r != nil {
  82523. ec.Error(ctx, ec.Recover(ctx, r))
  82524. ret = graphql.Null
  82525. }
  82526. }()
  82527. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  82528. ctx = rctx // use context from middleware stack in children
  82529. return obj.Zip, nil
  82530. })
  82531. if err != nil {
  82532. ec.Error(ctx, err)
  82533. return graphql.Null
  82534. }
  82535. if resTmp == nil {
  82536. return graphql.Null
  82537. }
  82538. res := resTmp.(*string)
  82539. fc.Result = res
  82540. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  82541. }
  82542. func (ec *executionContext) fieldContext_LocationAddress_zip(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  82543. fc = &graphql.FieldContext{
  82544. Object: "LocationAddress",
  82545. Field: field,
  82546. IsMethod: false,
  82547. IsResolver: false,
  82548. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  82549. return nil, errors.New("field of type String does not have child fields")
  82550. },
  82551. }
  82552. return fc, nil
  82553. }
  82554. func (ec *executionContext) _LocationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *LocationConnection) (ret graphql.Marshaler) {
  82555. fc, err := ec.fieldContext_LocationConnection_edges(ctx, field)
  82556. if err != nil {
  82557. return graphql.Null
  82558. }
  82559. ctx = graphql.WithFieldContext(ctx, fc)
  82560. defer func() {
  82561. if r := recover(); r != nil {
  82562. ec.Error(ctx, ec.Recover(ctx, r))
  82563. ret = graphql.Null
  82564. }
  82565. }()
  82566. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  82567. ctx = rctx // use context from middleware stack in children
  82568. return obj.Edges, nil
  82569. })
  82570. if err != nil {
  82571. ec.Error(ctx, err)
  82572. return graphql.Null
  82573. }
  82574. if resTmp == nil {
  82575. if !graphql.HasFieldError(ctx, fc) {
  82576. ec.Errorf(ctx, "must not be null")
  82577. }
  82578. return graphql.Null
  82579. }
  82580. res := resTmp.([]*LocationEdge)
  82581. fc.Result = res
  82582. return ec.marshalNLocationEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocationEdgeᚄ(ctx, field.Selections, res)
  82583. }
  82584. func (ec *executionContext) fieldContext_LocationConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  82585. fc = &graphql.FieldContext{
  82586. Object: "LocationConnection",
  82587. Field: field,
  82588. IsMethod: false,
  82589. IsResolver: false,
  82590. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  82591. switch field.Name {
  82592. case "cursor":
  82593. return ec.fieldContext_LocationEdge_cursor(ctx, field)
  82594. case "node":
  82595. return ec.fieldContext_LocationEdge_node(ctx, field)
  82596. }
  82597. return nil, fmt.Errorf("no field named %q was found under type LocationEdge", field.Name)
  82598. },
  82599. }
  82600. return fc, nil
  82601. }
  82602. func (ec *executionContext) _LocationConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *LocationConnection) (ret graphql.Marshaler) {
  82603. fc, err := ec.fieldContext_LocationConnection_nodes(ctx, field)
  82604. if err != nil {
  82605. return graphql.Null
  82606. }
  82607. ctx = graphql.WithFieldContext(ctx, fc)
  82608. defer func() {
  82609. if r := recover(); r != nil {
  82610. ec.Error(ctx, ec.Recover(ctx, r))
  82611. ret = graphql.Null
  82612. }
  82613. }()
  82614. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  82615. ctx = rctx // use context from middleware stack in children
  82616. return obj.Nodes, nil
  82617. })
  82618. if err != nil {
  82619. ec.Error(ctx, err)
  82620. return graphql.Null
  82621. }
  82622. if resTmp == nil {
  82623. if !graphql.HasFieldError(ctx, fc) {
  82624. ec.Errorf(ctx, "must not be null")
  82625. }
  82626. return graphql.Null
  82627. }
  82628. res := resTmp.([]*Location)
  82629. fc.Result = res
  82630. return ec.marshalNLocation2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocationᚄ(ctx, field.Selections, res)
  82631. }
  82632. func (ec *executionContext) fieldContext_LocationConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  82633. fc = &graphql.FieldContext{
  82634. Object: "LocationConnection",
  82635. Field: field,
  82636. IsMethod: false,
  82637. IsResolver: false,
  82638. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  82639. switch field.Name {
  82640. case "activatable":
  82641. return ec.fieldContext_Location_activatable(ctx, field)
  82642. case "address":
  82643. return ec.fieldContext_Location_address(ctx, field)
  82644. case "addressVerified":
  82645. return ec.fieldContext_Location_addressVerified(ctx, field)
  82646. case "deactivatable":
  82647. return ec.fieldContext_Location_deactivatable(ctx, field)
  82648. case "deactivatedAt":
  82649. return ec.fieldContext_Location_deactivatedAt(ctx, field)
  82650. case "deletable":
  82651. return ec.fieldContext_Location_deletable(ctx, field)
  82652. case "fulfillmentService":
  82653. return ec.fieldContext_Location_fulfillmentService(ctx, field)
  82654. case "fulfillsOnlineOrders":
  82655. return ec.fieldContext_Location_fulfillsOnlineOrders(ctx, field)
  82656. case "hasActiveInventory":
  82657. return ec.fieldContext_Location_hasActiveInventory(ctx, field)
  82658. case "hasUnfulfilledOrders":
  82659. return ec.fieldContext_Location_hasUnfulfilledOrders(ctx, field)
  82660. case "id":
  82661. return ec.fieldContext_Location_id(ctx, field)
  82662. case "inventoryLevel":
  82663. return ec.fieldContext_Location_inventoryLevel(ctx, field)
  82664. case "inventoryLevels":
  82665. return ec.fieldContext_Location_inventoryLevels(ctx, field)
  82666. case "isActive":
  82667. return ec.fieldContext_Location_isActive(ctx, field)
  82668. case "legacyResourceId":
  82669. return ec.fieldContext_Location_legacyResourceId(ctx, field)
  82670. case "metafield":
  82671. return ec.fieldContext_Location_metafield(ctx, field)
  82672. case "metafieldDefinitions":
  82673. return ec.fieldContext_Location_metafieldDefinitions(ctx, field)
  82674. case "metafields":
  82675. return ec.fieldContext_Location_metafields(ctx, field)
  82676. case "name":
  82677. return ec.fieldContext_Location_name(ctx, field)
  82678. case "privateMetafield":
  82679. return ec.fieldContext_Location_privateMetafield(ctx, field)
  82680. case "privateMetafields":
  82681. return ec.fieldContext_Location_privateMetafields(ctx, field)
  82682. case "shipsInventory":
  82683. return ec.fieldContext_Location_shipsInventory(ctx, field)
  82684. case "suggestedAddresses":
  82685. return ec.fieldContext_Location_suggestedAddresses(ctx, field)
  82686. }
  82687. return nil, fmt.Errorf("no field named %q was found under type Location", field.Name)
  82688. },
  82689. }
  82690. return fc, nil
  82691. }
  82692. func (ec *executionContext) _LocationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *LocationConnection) (ret graphql.Marshaler) {
  82693. fc, err := ec.fieldContext_LocationConnection_pageInfo(ctx, field)
  82694. if err != nil {
  82695. return graphql.Null
  82696. }
  82697. ctx = graphql.WithFieldContext(ctx, fc)
  82698. defer func() {
  82699. if r := recover(); r != nil {
  82700. ec.Error(ctx, ec.Recover(ctx, r))
  82701. ret = graphql.Null
  82702. }
  82703. }()
  82704. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  82705. ctx = rctx // use context from middleware stack in children
  82706. return obj.PageInfo, nil
  82707. })
  82708. if err != nil {
  82709. ec.Error(ctx, err)
  82710. return graphql.Null
  82711. }
  82712. if resTmp == nil {
  82713. if !graphql.HasFieldError(ctx, fc) {
  82714. ec.Errorf(ctx, "must not be null")
  82715. }
  82716. return graphql.Null
  82717. }
  82718. res := resTmp.(*PageInfo)
  82719. fc.Result = res
  82720. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  82721. }
  82722. func (ec *executionContext) fieldContext_LocationConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  82723. fc = &graphql.FieldContext{
  82724. Object: "LocationConnection",
  82725. Field: field,
  82726. IsMethod: false,
  82727. IsResolver: false,
  82728. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  82729. switch field.Name {
  82730. case "endCursor":
  82731. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  82732. case "hasNextPage":
  82733. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  82734. case "hasPreviousPage":
  82735. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  82736. case "startCursor":
  82737. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  82738. }
  82739. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  82740. },
  82741. }
  82742. return fc, nil
  82743. }
  82744. func (ec *executionContext) _LocationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *LocationEdge) (ret graphql.Marshaler) {
  82745. fc, err := ec.fieldContext_LocationEdge_cursor(ctx, field)
  82746. if err != nil {
  82747. return graphql.Null
  82748. }
  82749. ctx = graphql.WithFieldContext(ctx, fc)
  82750. defer func() {
  82751. if r := recover(); r != nil {
  82752. ec.Error(ctx, ec.Recover(ctx, r))
  82753. ret = graphql.Null
  82754. }
  82755. }()
  82756. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  82757. ctx = rctx // use context from middleware stack in children
  82758. return obj.Cursor, nil
  82759. })
  82760. if err != nil {
  82761. ec.Error(ctx, err)
  82762. return graphql.Null
  82763. }
  82764. if resTmp == nil {
  82765. if !graphql.HasFieldError(ctx, fc) {
  82766. ec.Errorf(ctx, "must not be null")
  82767. }
  82768. return graphql.Null
  82769. }
  82770. res := resTmp.(string)
  82771. fc.Result = res
  82772. return ec.marshalNString2string(ctx, field.Selections, res)
  82773. }
  82774. func (ec *executionContext) fieldContext_LocationEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  82775. fc = &graphql.FieldContext{
  82776. Object: "LocationEdge",
  82777. Field: field,
  82778. IsMethod: false,
  82779. IsResolver: false,
  82780. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  82781. return nil, errors.New("field of type String does not have child fields")
  82782. },
  82783. }
  82784. return fc, nil
  82785. }
  82786. func (ec *executionContext) _LocationEdge_node(ctx context.Context, field graphql.CollectedField, obj *LocationEdge) (ret graphql.Marshaler) {
  82787. fc, err := ec.fieldContext_LocationEdge_node(ctx, field)
  82788. if err != nil {
  82789. return graphql.Null
  82790. }
  82791. ctx = graphql.WithFieldContext(ctx, fc)
  82792. defer func() {
  82793. if r := recover(); r != nil {
  82794. ec.Error(ctx, ec.Recover(ctx, r))
  82795. ret = graphql.Null
  82796. }
  82797. }()
  82798. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  82799. ctx = rctx // use context from middleware stack in children
  82800. return obj.Node, nil
  82801. })
  82802. if err != nil {
  82803. ec.Error(ctx, err)
  82804. return graphql.Null
  82805. }
  82806. if resTmp == nil {
  82807. if !graphql.HasFieldError(ctx, fc) {
  82808. ec.Errorf(ctx, "must not be null")
  82809. }
  82810. return graphql.Null
  82811. }
  82812. res := resTmp.(*Location)
  82813. fc.Result = res
  82814. return ec.marshalNLocation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocation(ctx, field.Selections, res)
  82815. }
  82816. func (ec *executionContext) fieldContext_LocationEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  82817. fc = &graphql.FieldContext{
  82818. Object: "LocationEdge",
  82819. Field: field,
  82820. IsMethod: false,
  82821. IsResolver: false,
  82822. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  82823. switch field.Name {
  82824. case "activatable":
  82825. return ec.fieldContext_Location_activatable(ctx, field)
  82826. case "address":
  82827. return ec.fieldContext_Location_address(ctx, field)
  82828. case "addressVerified":
  82829. return ec.fieldContext_Location_addressVerified(ctx, field)
  82830. case "deactivatable":
  82831. return ec.fieldContext_Location_deactivatable(ctx, field)
  82832. case "deactivatedAt":
  82833. return ec.fieldContext_Location_deactivatedAt(ctx, field)
  82834. case "deletable":
  82835. return ec.fieldContext_Location_deletable(ctx, field)
  82836. case "fulfillmentService":
  82837. return ec.fieldContext_Location_fulfillmentService(ctx, field)
  82838. case "fulfillsOnlineOrders":
  82839. return ec.fieldContext_Location_fulfillsOnlineOrders(ctx, field)
  82840. case "hasActiveInventory":
  82841. return ec.fieldContext_Location_hasActiveInventory(ctx, field)
  82842. case "hasUnfulfilledOrders":
  82843. return ec.fieldContext_Location_hasUnfulfilledOrders(ctx, field)
  82844. case "id":
  82845. return ec.fieldContext_Location_id(ctx, field)
  82846. case "inventoryLevel":
  82847. return ec.fieldContext_Location_inventoryLevel(ctx, field)
  82848. case "inventoryLevels":
  82849. return ec.fieldContext_Location_inventoryLevels(ctx, field)
  82850. case "isActive":
  82851. return ec.fieldContext_Location_isActive(ctx, field)
  82852. case "legacyResourceId":
  82853. return ec.fieldContext_Location_legacyResourceId(ctx, field)
  82854. case "metafield":
  82855. return ec.fieldContext_Location_metafield(ctx, field)
  82856. case "metafieldDefinitions":
  82857. return ec.fieldContext_Location_metafieldDefinitions(ctx, field)
  82858. case "metafields":
  82859. return ec.fieldContext_Location_metafields(ctx, field)
  82860. case "name":
  82861. return ec.fieldContext_Location_name(ctx, field)
  82862. case "privateMetafield":
  82863. return ec.fieldContext_Location_privateMetafield(ctx, field)
  82864. case "privateMetafields":
  82865. return ec.fieldContext_Location_privateMetafields(ctx, field)
  82866. case "shipsInventory":
  82867. return ec.fieldContext_Location_shipsInventory(ctx, field)
  82868. case "suggestedAddresses":
  82869. return ec.fieldContext_Location_suggestedAddresses(ctx, field)
  82870. }
  82871. return nil, fmt.Errorf("no field named %q was found under type Location", field.Name)
  82872. },
  82873. }
  82874. return fc, nil
  82875. }
  82876. func (ec *executionContext) _LocationSuggestedAddress_address1(ctx context.Context, field graphql.CollectedField, obj *LocationSuggestedAddress) (ret graphql.Marshaler) {
  82877. fc, err := ec.fieldContext_LocationSuggestedAddress_address1(ctx, field)
  82878. if err != nil {
  82879. return graphql.Null
  82880. }
  82881. ctx = graphql.WithFieldContext(ctx, fc)
  82882. defer func() {
  82883. if r := recover(); r != nil {
  82884. ec.Error(ctx, ec.Recover(ctx, r))
  82885. ret = graphql.Null
  82886. }
  82887. }()
  82888. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  82889. ctx = rctx // use context from middleware stack in children
  82890. return obj.Address1, nil
  82891. })
  82892. if err != nil {
  82893. ec.Error(ctx, err)
  82894. return graphql.Null
  82895. }
  82896. if resTmp == nil {
  82897. return graphql.Null
  82898. }
  82899. res := resTmp.(*string)
  82900. fc.Result = res
  82901. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  82902. }
  82903. func (ec *executionContext) fieldContext_LocationSuggestedAddress_address1(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  82904. fc = &graphql.FieldContext{
  82905. Object: "LocationSuggestedAddress",
  82906. Field: field,
  82907. IsMethod: false,
  82908. IsResolver: false,
  82909. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  82910. return nil, errors.New("field of type String does not have child fields")
  82911. },
  82912. }
  82913. return fc, nil
  82914. }
  82915. func (ec *executionContext) _LocationSuggestedAddress_address2(ctx context.Context, field graphql.CollectedField, obj *LocationSuggestedAddress) (ret graphql.Marshaler) {
  82916. fc, err := ec.fieldContext_LocationSuggestedAddress_address2(ctx, field)
  82917. if err != nil {
  82918. return graphql.Null
  82919. }
  82920. ctx = graphql.WithFieldContext(ctx, fc)
  82921. defer func() {
  82922. if r := recover(); r != nil {
  82923. ec.Error(ctx, ec.Recover(ctx, r))
  82924. ret = graphql.Null
  82925. }
  82926. }()
  82927. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  82928. ctx = rctx // use context from middleware stack in children
  82929. return obj.Address2, nil
  82930. })
  82931. if err != nil {
  82932. ec.Error(ctx, err)
  82933. return graphql.Null
  82934. }
  82935. if resTmp == nil {
  82936. return graphql.Null
  82937. }
  82938. res := resTmp.(*string)
  82939. fc.Result = res
  82940. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  82941. }
  82942. func (ec *executionContext) fieldContext_LocationSuggestedAddress_address2(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  82943. fc = &graphql.FieldContext{
  82944. Object: "LocationSuggestedAddress",
  82945. Field: field,
  82946. IsMethod: false,
  82947. IsResolver: false,
  82948. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  82949. return nil, errors.New("field of type String does not have child fields")
  82950. },
  82951. }
  82952. return fc, nil
  82953. }
  82954. func (ec *executionContext) _LocationSuggestedAddress_city(ctx context.Context, field graphql.CollectedField, obj *LocationSuggestedAddress) (ret graphql.Marshaler) {
  82955. fc, err := ec.fieldContext_LocationSuggestedAddress_city(ctx, field)
  82956. if err != nil {
  82957. return graphql.Null
  82958. }
  82959. ctx = graphql.WithFieldContext(ctx, fc)
  82960. defer func() {
  82961. if r := recover(); r != nil {
  82962. ec.Error(ctx, ec.Recover(ctx, r))
  82963. ret = graphql.Null
  82964. }
  82965. }()
  82966. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  82967. ctx = rctx // use context from middleware stack in children
  82968. return obj.City, nil
  82969. })
  82970. if err != nil {
  82971. ec.Error(ctx, err)
  82972. return graphql.Null
  82973. }
  82974. if resTmp == nil {
  82975. return graphql.Null
  82976. }
  82977. res := resTmp.(*string)
  82978. fc.Result = res
  82979. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  82980. }
  82981. func (ec *executionContext) fieldContext_LocationSuggestedAddress_city(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  82982. fc = &graphql.FieldContext{
  82983. Object: "LocationSuggestedAddress",
  82984. Field: field,
  82985. IsMethod: false,
  82986. IsResolver: false,
  82987. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  82988. return nil, errors.New("field of type String does not have child fields")
  82989. },
  82990. }
  82991. return fc, nil
  82992. }
  82993. func (ec *executionContext) _LocationSuggestedAddress_country(ctx context.Context, field graphql.CollectedField, obj *LocationSuggestedAddress) (ret graphql.Marshaler) {
  82994. fc, err := ec.fieldContext_LocationSuggestedAddress_country(ctx, field)
  82995. if err != nil {
  82996. return graphql.Null
  82997. }
  82998. ctx = graphql.WithFieldContext(ctx, fc)
  82999. defer func() {
  83000. if r := recover(); r != nil {
  83001. ec.Error(ctx, ec.Recover(ctx, r))
  83002. ret = graphql.Null
  83003. }
  83004. }()
  83005. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  83006. ctx = rctx // use context from middleware stack in children
  83007. return obj.Country, nil
  83008. })
  83009. if err != nil {
  83010. ec.Error(ctx, err)
  83011. return graphql.Null
  83012. }
  83013. if resTmp == nil {
  83014. return graphql.Null
  83015. }
  83016. res := resTmp.(*string)
  83017. fc.Result = res
  83018. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  83019. }
  83020. func (ec *executionContext) fieldContext_LocationSuggestedAddress_country(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  83021. fc = &graphql.FieldContext{
  83022. Object: "LocationSuggestedAddress",
  83023. Field: field,
  83024. IsMethod: false,
  83025. IsResolver: false,
  83026. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  83027. return nil, errors.New("field of type String does not have child fields")
  83028. },
  83029. }
  83030. return fc, nil
  83031. }
  83032. func (ec *executionContext) _LocationSuggestedAddress_countryCode(ctx context.Context, field graphql.CollectedField, obj *LocationSuggestedAddress) (ret graphql.Marshaler) {
  83033. fc, err := ec.fieldContext_LocationSuggestedAddress_countryCode(ctx, field)
  83034. if err != nil {
  83035. return graphql.Null
  83036. }
  83037. ctx = graphql.WithFieldContext(ctx, fc)
  83038. defer func() {
  83039. if r := recover(); r != nil {
  83040. ec.Error(ctx, ec.Recover(ctx, r))
  83041. ret = graphql.Null
  83042. }
  83043. }()
  83044. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  83045. ctx = rctx // use context from middleware stack in children
  83046. return obj.CountryCode, nil
  83047. })
  83048. if err != nil {
  83049. ec.Error(ctx, err)
  83050. return graphql.Null
  83051. }
  83052. if resTmp == nil {
  83053. return graphql.Null
  83054. }
  83055. res := resTmp.(*CountryCode)
  83056. fc.Result = res
  83057. return ec.marshalOCountryCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCode(ctx, field.Selections, res)
  83058. }
  83059. func (ec *executionContext) fieldContext_LocationSuggestedAddress_countryCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  83060. fc = &graphql.FieldContext{
  83061. Object: "LocationSuggestedAddress",
  83062. Field: field,
  83063. IsMethod: false,
  83064. IsResolver: false,
  83065. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  83066. return nil, errors.New("field of type CountryCode does not have child fields")
  83067. },
  83068. }
  83069. return fc, nil
  83070. }
  83071. func (ec *executionContext) _LocationSuggestedAddress_formatted(ctx context.Context, field graphql.CollectedField, obj *LocationSuggestedAddress) (ret graphql.Marshaler) {
  83072. fc, err := ec.fieldContext_LocationSuggestedAddress_formatted(ctx, field)
  83073. if err != nil {
  83074. return graphql.Null
  83075. }
  83076. ctx = graphql.WithFieldContext(ctx, fc)
  83077. defer func() {
  83078. if r := recover(); r != nil {
  83079. ec.Error(ctx, ec.Recover(ctx, r))
  83080. ret = graphql.Null
  83081. }
  83082. }()
  83083. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  83084. ctx = rctx // use context from middleware stack in children
  83085. return obj.Formatted, nil
  83086. })
  83087. if err != nil {
  83088. ec.Error(ctx, err)
  83089. return graphql.Null
  83090. }
  83091. if resTmp == nil {
  83092. if !graphql.HasFieldError(ctx, fc) {
  83093. ec.Errorf(ctx, "must not be null")
  83094. }
  83095. return graphql.Null
  83096. }
  83097. res := resTmp.([]string)
  83098. fc.Result = res
  83099. return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
  83100. }
  83101. func (ec *executionContext) fieldContext_LocationSuggestedAddress_formatted(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  83102. fc = &graphql.FieldContext{
  83103. Object: "LocationSuggestedAddress",
  83104. Field: field,
  83105. IsMethod: false,
  83106. IsResolver: false,
  83107. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  83108. return nil, errors.New("field of type String does not have child fields")
  83109. },
  83110. }
  83111. return fc, nil
  83112. }
  83113. func (ec *executionContext) _LocationSuggestedAddress_province(ctx context.Context, field graphql.CollectedField, obj *LocationSuggestedAddress) (ret graphql.Marshaler) {
  83114. fc, err := ec.fieldContext_LocationSuggestedAddress_province(ctx, field)
  83115. if err != nil {
  83116. return graphql.Null
  83117. }
  83118. ctx = graphql.WithFieldContext(ctx, fc)
  83119. defer func() {
  83120. if r := recover(); r != nil {
  83121. ec.Error(ctx, ec.Recover(ctx, r))
  83122. ret = graphql.Null
  83123. }
  83124. }()
  83125. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  83126. ctx = rctx // use context from middleware stack in children
  83127. return obj.Province, nil
  83128. })
  83129. if err != nil {
  83130. ec.Error(ctx, err)
  83131. return graphql.Null
  83132. }
  83133. if resTmp == nil {
  83134. return graphql.Null
  83135. }
  83136. res := resTmp.(*string)
  83137. fc.Result = res
  83138. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  83139. }
  83140. func (ec *executionContext) fieldContext_LocationSuggestedAddress_province(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  83141. fc = &graphql.FieldContext{
  83142. Object: "LocationSuggestedAddress",
  83143. Field: field,
  83144. IsMethod: false,
  83145. IsResolver: false,
  83146. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  83147. return nil, errors.New("field of type String does not have child fields")
  83148. },
  83149. }
  83150. return fc, nil
  83151. }
  83152. func (ec *executionContext) _LocationSuggestedAddress_provinceCode(ctx context.Context, field graphql.CollectedField, obj *LocationSuggestedAddress) (ret graphql.Marshaler) {
  83153. fc, err := ec.fieldContext_LocationSuggestedAddress_provinceCode(ctx, field)
  83154. if err != nil {
  83155. return graphql.Null
  83156. }
  83157. ctx = graphql.WithFieldContext(ctx, fc)
  83158. defer func() {
  83159. if r := recover(); r != nil {
  83160. ec.Error(ctx, ec.Recover(ctx, r))
  83161. ret = graphql.Null
  83162. }
  83163. }()
  83164. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  83165. ctx = rctx // use context from middleware stack in children
  83166. return obj.ProvinceCode, nil
  83167. })
  83168. if err != nil {
  83169. ec.Error(ctx, err)
  83170. return graphql.Null
  83171. }
  83172. if resTmp == nil {
  83173. return graphql.Null
  83174. }
  83175. res := resTmp.(*string)
  83176. fc.Result = res
  83177. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  83178. }
  83179. func (ec *executionContext) fieldContext_LocationSuggestedAddress_provinceCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  83180. fc = &graphql.FieldContext{
  83181. Object: "LocationSuggestedAddress",
  83182. Field: field,
  83183. IsMethod: false,
  83184. IsResolver: false,
  83185. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  83186. return nil, errors.New("field of type String does not have child fields")
  83187. },
  83188. }
  83189. return fc, nil
  83190. }
  83191. func (ec *executionContext) _LocationSuggestedAddress_zip(ctx context.Context, field graphql.CollectedField, obj *LocationSuggestedAddress) (ret graphql.Marshaler) {
  83192. fc, err := ec.fieldContext_LocationSuggestedAddress_zip(ctx, field)
  83193. if err != nil {
  83194. return graphql.Null
  83195. }
  83196. ctx = graphql.WithFieldContext(ctx, fc)
  83197. defer func() {
  83198. if r := recover(); r != nil {
  83199. ec.Error(ctx, ec.Recover(ctx, r))
  83200. ret = graphql.Null
  83201. }
  83202. }()
  83203. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  83204. ctx = rctx // use context from middleware stack in children
  83205. return obj.Zip, nil
  83206. })
  83207. if err != nil {
  83208. ec.Error(ctx, err)
  83209. return graphql.Null
  83210. }
  83211. if resTmp == nil {
  83212. return graphql.Null
  83213. }
  83214. res := resTmp.(*string)
  83215. fc.Result = res
  83216. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  83217. }
  83218. func (ec *executionContext) fieldContext_LocationSuggestedAddress_zip(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  83219. fc = &graphql.FieldContext{
  83220. Object: "LocationSuggestedAddress",
  83221. Field: field,
  83222. IsMethod: false,
  83223. IsResolver: false,
  83224. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  83225. return nil, errors.New("field of type String does not have child fields")
  83226. },
  83227. }
  83228. return fc, nil
  83229. }
  83230. func (ec *executionContext) _MailingAddress_address1(ctx context.Context, field graphql.CollectedField, obj *MailingAddress) (ret graphql.Marshaler) {
  83231. fc, err := ec.fieldContext_MailingAddress_address1(ctx, field)
  83232. if err != nil {
  83233. return graphql.Null
  83234. }
  83235. ctx = graphql.WithFieldContext(ctx, fc)
  83236. defer func() {
  83237. if r := recover(); r != nil {
  83238. ec.Error(ctx, ec.Recover(ctx, r))
  83239. ret = graphql.Null
  83240. }
  83241. }()
  83242. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  83243. ctx = rctx // use context from middleware stack in children
  83244. return obj.Address1, nil
  83245. })
  83246. if err != nil {
  83247. ec.Error(ctx, err)
  83248. return graphql.Null
  83249. }
  83250. if resTmp == nil {
  83251. return graphql.Null
  83252. }
  83253. res := resTmp.(*string)
  83254. fc.Result = res
  83255. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  83256. }
  83257. func (ec *executionContext) fieldContext_MailingAddress_address1(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  83258. fc = &graphql.FieldContext{
  83259. Object: "MailingAddress",
  83260. Field: field,
  83261. IsMethod: false,
  83262. IsResolver: false,
  83263. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  83264. return nil, errors.New("field of type String does not have child fields")
  83265. },
  83266. }
  83267. return fc, nil
  83268. }
  83269. func (ec *executionContext) _MailingAddress_address2(ctx context.Context, field graphql.CollectedField, obj *MailingAddress) (ret graphql.Marshaler) {
  83270. fc, err := ec.fieldContext_MailingAddress_address2(ctx, field)
  83271. if err != nil {
  83272. return graphql.Null
  83273. }
  83274. ctx = graphql.WithFieldContext(ctx, fc)
  83275. defer func() {
  83276. if r := recover(); r != nil {
  83277. ec.Error(ctx, ec.Recover(ctx, r))
  83278. ret = graphql.Null
  83279. }
  83280. }()
  83281. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  83282. ctx = rctx // use context from middleware stack in children
  83283. return obj.Address2, nil
  83284. })
  83285. if err != nil {
  83286. ec.Error(ctx, err)
  83287. return graphql.Null
  83288. }
  83289. if resTmp == nil {
  83290. return graphql.Null
  83291. }
  83292. res := resTmp.(*string)
  83293. fc.Result = res
  83294. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  83295. }
  83296. func (ec *executionContext) fieldContext_MailingAddress_address2(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  83297. fc = &graphql.FieldContext{
  83298. Object: "MailingAddress",
  83299. Field: field,
  83300. IsMethod: false,
  83301. IsResolver: false,
  83302. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  83303. return nil, errors.New("field of type String does not have child fields")
  83304. },
  83305. }
  83306. return fc, nil
  83307. }
  83308. func (ec *executionContext) _MailingAddress_city(ctx context.Context, field graphql.CollectedField, obj *MailingAddress) (ret graphql.Marshaler) {
  83309. fc, err := ec.fieldContext_MailingAddress_city(ctx, field)
  83310. if err != nil {
  83311. return graphql.Null
  83312. }
  83313. ctx = graphql.WithFieldContext(ctx, fc)
  83314. defer func() {
  83315. if r := recover(); r != nil {
  83316. ec.Error(ctx, ec.Recover(ctx, r))
  83317. ret = graphql.Null
  83318. }
  83319. }()
  83320. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  83321. ctx = rctx // use context from middleware stack in children
  83322. return obj.City, nil
  83323. })
  83324. if err != nil {
  83325. ec.Error(ctx, err)
  83326. return graphql.Null
  83327. }
  83328. if resTmp == nil {
  83329. return graphql.Null
  83330. }
  83331. res := resTmp.(*string)
  83332. fc.Result = res
  83333. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  83334. }
  83335. func (ec *executionContext) fieldContext_MailingAddress_city(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  83336. fc = &graphql.FieldContext{
  83337. Object: "MailingAddress",
  83338. Field: field,
  83339. IsMethod: false,
  83340. IsResolver: false,
  83341. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  83342. return nil, errors.New("field of type String does not have child fields")
  83343. },
  83344. }
  83345. return fc, nil
  83346. }
  83347. func (ec *executionContext) _MailingAddress_company(ctx context.Context, field graphql.CollectedField, obj *MailingAddress) (ret graphql.Marshaler) {
  83348. fc, err := ec.fieldContext_MailingAddress_company(ctx, field)
  83349. if err != nil {
  83350. return graphql.Null
  83351. }
  83352. ctx = graphql.WithFieldContext(ctx, fc)
  83353. defer func() {
  83354. if r := recover(); r != nil {
  83355. ec.Error(ctx, ec.Recover(ctx, r))
  83356. ret = graphql.Null
  83357. }
  83358. }()
  83359. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  83360. ctx = rctx // use context from middleware stack in children
  83361. return obj.Company, nil
  83362. })
  83363. if err != nil {
  83364. ec.Error(ctx, err)
  83365. return graphql.Null
  83366. }
  83367. if resTmp == nil {
  83368. return graphql.Null
  83369. }
  83370. res := resTmp.(*string)
  83371. fc.Result = res
  83372. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  83373. }
  83374. func (ec *executionContext) fieldContext_MailingAddress_company(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  83375. fc = &graphql.FieldContext{
  83376. Object: "MailingAddress",
  83377. Field: field,
  83378. IsMethod: false,
  83379. IsResolver: false,
  83380. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  83381. return nil, errors.New("field of type String does not have child fields")
  83382. },
  83383. }
  83384. return fc, nil
  83385. }
  83386. func (ec *executionContext) _MailingAddress_coordinatesValidated(ctx context.Context, field graphql.CollectedField, obj *MailingAddress) (ret graphql.Marshaler) {
  83387. fc, err := ec.fieldContext_MailingAddress_coordinatesValidated(ctx, field)
  83388. if err != nil {
  83389. return graphql.Null
  83390. }
  83391. ctx = graphql.WithFieldContext(ctx, fc)
  83392. defer func() {
  83393. if r := recover(); r != nil {
  83394. ec.Error(ctx, ec.Recover(ctx, r))
  83395. ret = graphql.Null
  83396. }
  83397. }()
  83398. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  83399. ctx = rctx // use context from middleware stack in children
  83400. return obj.CoordinatesValidated, nil
  83401. })
  83402. if err != nil {
  83403. ec.Error(ctx, err)
  83404. return graphql.Null
  83405. }
  83406. if resTmp == nil {
  83407. if !graphql.HasFieldError(ctx, fc) {
  83408. ec.Errorf(ctx, "must not be null")
  83409. }
  83410. return graphql.Null
  83411. }
  83412. res := resTmp.(bool)
  83413. fc.Result = res
  83414. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  83415. }
  83416. func (ec *executionContext) fieldContext_MailingAddress_coordinatesValidated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  83417. fc = &graphql.FieldContext{
  83418. Object: "MailingAddress",
  83419. Field: field,
  83420. IsMethod: false,
  83421. IsResolver: false,
  83422. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  83423. return nil, errors.New("field of type Boolean does not have child fields")
  83424. },
  83425. }
  83426. return fc, nil
  83427. }
  83428. func (ec *executionContext) _MailingAddress_country(ctx context.Context, field graphql.CollectedField, obj *MailingAddress) (ret graphql.Marshaler) {
  83429. fc, err := ec.fieldContext_MailingAddress_country(ctx, field)
  83430. if err != nil {
  83431. return graphql.Null
  83432. }
  83433. ctx = graphql.WithFieldContext(ctx, fc)
  83434. defer func() {
  83435. if r := recover(); r != nil {
  83436. ec.Error(ctx, ec.Recover(ctx, r))
  83437. ret = graphql.Null
  83438. }
  83439. }()
  83440. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  83441. ctx = rctx // use context from middleware stack in children
  83442. return obj.Country, nil
  83443. })
  83444. if err != nil {
  83445. ec.Error(ctx, err)
  83446. return graphql.Null
  83447. }
  83448. if resTmp == nil {
  83449. return graphql.Null
  83450. }
  83451. res := resTmp.(*string)
  83452. fc.Result = res
  83453. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  83454. }
  83455. func (ec *executionContext) fieldContext_MailingAddress_country(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  83456. fc = &graphql.FieldContext{
  83457. Object: "MailingAddress",
  83458. Field: field,
  83459. IsMethod: false,
  83460. IsResolver: false,
  83461. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  83462. return nil, errors.New("field of type String does not have child fields")
  83463. },
  83464. }
  83465. return fc, nil
  83466. }
  83467. func (ec *executionContext) _MailingAddress_countryCodeV2(ctx context.Context, field graphql.CollectedField, obj *MailingAddress) (ret graphql.Marshaler) {
  83468. fc, err := ec.fieldContext_MailingAddress_countryCodeV2(ctx, field)
  83469. if err != nil {
  83470. return graphql.Null
  83471. }
  83472. ctx = graphql.WithFieldContext(ctx, fc)
  83473. defer func() {
  83474. if r := recover(); r != nil {
  83475. ec.Error(ctx, ec.Recover(ctx, r))
  83476. ret = graphql.Null
  83477. }
  83478. }()
  83479. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  83480. ctx = rctx // use context from middleware stack in children
  83481. return obj.CountryCodeV2, nil
  83482. })
  83483. if err != nil {
  83484. ec.Error(ctx, err)
  83485. return graphql.Null
  83486. }
  83487. if resTmp == nil {
  83488. return graphql.Null
  83489. }
  83490. res := resTmp.(*CountryCode)
  83491. fc.Result = res
  83492. return ec.marshalOCountryCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCode(ctx, field.Selections, res)
  83493. }
  83494. func (ec *executionContext) fieldContext_MailingAddress_countryCodeV2(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  83495. fc = &graphql.FieldContext{
  83496. Object: "MailingAddress",
  83497. Field: field,
  83498. IsMethod: false,
  83499. IsResolver: false,
  83500. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  83501. return nil, errors.New("field of type CountryCode does not have child fields")
  83502. },
  83503. }
  83504. return fc, nil
  83505. }
  83506. func (ec *executionContext) _MailingAddress_firstName(ctx context.Context, field graphql.CollectedField, obj *MailingAddress) (ret graphql.Marshaler) {
  83507. fc, err := ec.fieldContext_MailingAddress_firstName(ctx, field)
  83508. if err != nil {
  83509. return graphql.Null
  83510. }
  83511. ctx = graphql.WithFieldContext(ctx, fc)
  83512. defer func() {
  83513. if r := recover(); r != nil {
  83514. ec.Error(ctx, ec.Recover(ctx, r))
  83515. ret = graphql.Null
  83516. }
  83517. }()
  83518. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  83519. ctx = rctx // use context from middleware stack in children
  83520. return obj.FirstName, nil
  83521. })
  83522. if err != nil {
  83523. ec.Error(ctx, err)
  83524. return graphql.Null
  83525. }
  83526. if resTmp == nil {
  83527. return graphql.Null
  83528. }
  83529. res := resTmp.(*string)
  83530. fc.Result = res
  83531. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  83532. }
  83533. func (ec *executionContext) fieldContext_MailingAddress_firstName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  83534. fc = &graphql.FieldContext{
  83535. Object: "MailingAddress",
  83536. Field: field,
  83537. IsMethod: false,
  83538. IsResolver: false,
  83539. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  83540. return nil, errors.New("field of type String does not have child fields")
  83541. },
  83542. }
  83543. return fc, nil
  83544. }
  83545. func (ec *executionContext) _MailingAddress_formattedArea(ctx context.Context, field graphql.CollectedField, obj *MailingAddress) (ret graphql.Marshaler) {
  83546. fc, err := ec.fieldContext_MailingAddress_formattedArea(ctx, field)
  83547. if err != nil {
  83548. return graphql.Null
  83549. }
  83550. ctx = graphql.WithFieldContext(ctx, fc)
  83551. defer func() {
  83552. if r := recover(); r != nil {
  83553. ec.Error(ctx, ec.Recover(ctx, r))
  83554. ret = graphql.Null
  83555. }
  83556. }()
  83557. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  83558. ctx = rctx // use context from middleware stack in children
  83559. return obj.FormattedArea, nil
  83560. })
  83561. if err != nil {
  83562. ec.Error(ctx, err)
  83563. return graphql.Null
  83564. }
  83565. if resTmp == nil {
  83566. return graphql.Null
  83567. }
  83568. res := resTmp.(*string)
  83569. fc.Result = res
  83570. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  83571. }
  83572. func (ec *executionContext) fieldContext_MailingAddress_formattedArea(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  83573. fc = &graphql.FieldContext{
  83574. Object: "MailingAddress",
  83575. Field: field,
  83576. IsMethod: false,
  83577. IsResolver: false,
  83578. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  83579. return nil, errors.New("field of type String does not have child fields")
  83580. },
  83581. }
  83582. return fc, nil
  83583. }
  83584. func (ec *executionContext) _MailingAddress_id(ctx context.Context, field graphql.CollectedField, obj *MailingAddress) (ret graphql.Marshaler) {
  83585. fc, err := ec.fieldContext_MailingAddress_id(ctx, field)
  83586. if err != nil {
  83587. return graphql.Null
  83588. }
  83589. ctx = graphql.WithFieldContext(ctx, fc)
  83590. defer func() {
  83591. if r := recover(); r != nil {
  83592. ec.Error(ctx, ec.Recover(ctx, r))
  83593. ret = graphql.Null
  83594. }
  83595. }()
  83596. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  83597. ctx = rctx // use context from middleware stack in children
  83598. return obj.ID, nil
  83599. })
  83600. if err != nil {
  83601. ec.Error(ctx, err)
  83602. return graphql.Null
  83603. }
  83604. if resTmp == nil {
  83605. if !graphql.HasFieldError(ctx, fc) {
  83606. ec.Errorf(ctx, "must not be null")
  83607. }
  83608. return graphql.Null
  83609. }
  83610. res := resTmp.(string)
  83611. fc.Result = res
  83612. return ec.marshalNID2string(ctx, field.Selections, res)
  83613. }
  83614. func (ec *executionContext) fieldContext_MailingAddress_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  83615. fc = &graphql.FieldContext{
  83616. Object: "MailingAddress",
  83617. Field: field,
  83618. IsMethod: false,
  83619. IsResolver: false,
  83620. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  83621. return nil, errors.New("field of type ID does not have child fields")
  83622. },
  83623. }
  83624. return fc, nil
  83625. }
  83626. func (ec *executionContext) _MailingAddress_lastName(ctx context.Context, field graphql.CollectedField, obj *MailingAddress) (ret graphql.Marshaler) {
  83627. fc, err := ec.fieldContext_MailingAddress_lastName(ctx, field)
  83628. if err != nil {
  83629. return graphql.Null
  83630. }
  83631. ctx = graphql.WithFieldContext(ctx, fc)
  83632. defer func() {
  83633. if r := recover(); r != nil {
  83634. ec.Error(ctx, ec.Recover(ctx, r))
  83635. ret = graphql.Null
  83636. }
  83637. }()
  83638. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  83639. ctx = rctx // use context from middleware stack in children
  83640. return obj.LastName, nil
  83641. })
  83642. if err != nil {
  83643. ec.Error(ctx, err)
  83644. return graphql.Null
  83645. }
  83646. if resTmp == nil {
  83647. return graphql.Null
  83648. }
  83649. res := resTmp.(*string)
  83650. fc.Result = res
  83651. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  83652. }
  83653. func (ec *executionContext) fieldContext_MailingAddress_lastName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  83654. fc = &graphql.FieldContext{
  83655. Object: "MailingAddress",
  83656. Field: field,
  83657. IsMethod: false,
  83658. IsResolver: false,
  83659. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  83660. return nil, errors.New("field of type String does not have child fields")
  83661. },
  83662. }
  83663. return fc, nil
  83664. }
  83665. func (ec *executionContext) _MailingAddress_latitude(ctx context.Context, field graphql.CollectedField, obj *MailingAddress) (ret graphql.Marshaler) {
  83666. fc, err := ec.fieldContext_MailingAddress_latitude(ctx, field)
  83667. if err != nil {
  83668. return graphql.Null
  83669. }
  83670. ctx = graphql.WithFieldContext(ctx, fc)
  83671. defer func() {
  83672. if r := recover(); r != nil {
  83673. ec.Error(ctx, ec.Recover(ctx, r))
  83674. ret = graphql.Null
  83675. }
  83676. }()
  83677. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  83678. ctx = rctx // use context from middleware stack in children
  83679. return obj.Latitude, nil
  83680. })
  83681. if err != nil {
  83682. ec.Error(ctx, err)
  83683. return graphql.Null
  83684. }
  83685. if resTmp == nil {
  83686. return graphql.Null
  83687. }
  83688. res := resTmp.(*float64)
  83689. fc.Result = res
  83690. return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res)
  83691. }
  83692. func (ec *executionContext) fieldContext_MailingAddress_latitude(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  83693. fc = &graphql.FieldContext{
  83694. Object: "MailingAddress",
  83695. Field: field,
  83696. IsMethod: false,
  83697. IsResolver: false,
  83698. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  83699. return nil, errors.New("field of type Float does not have child fields")
  83700. },
  83701. }
  83702. return fc, nil
  83703. }
  83704. func (ec *executionContext) _MailingAddress_longitude(ctx context.Context, field graphql.CollectedField, obj *MailingAddress) (ret graphql.Marshaler) {
  83705. fc, err := ec.fieldContext_MailingAddress_longitude(ctx, field)
  83706. if err != nil {
  83707. return graphql.Null
  83708. }
  83709. ctx = graphql.WithFieldContext(ctx, fc)
  83710. defer func() {
  83711. if r := recover(); r != nil {
  83712. ec.Error(ctx, ec.Recover(ctx, r))
  83713. ret = graphql.Null
  83714. }
  83715. }()
  83716. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  83717. ctx = rctx // use context from middleware stack in children
  83718. return obj.Longitude, nil
  83719. })
  83720. if err != nil {
  83721. ec.Error(ctx, err)
  83722. return graphql.Null
  83723. }
  83724. if resTmp == nil {
  83725. return graphql.Null
  83726. }
  83727. res := resTmp.(*float64)
  83728. fc.Result = res
  83729. return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res)
  83730. }
  83731. func (ec *executionContext) fieldContext_MailingAddress_longitude(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  83732. fc = &graphql.FieldContext{
  83733. Object: "MailingAddress",
  83734. Field: field,
  83735. IsMethod: false,
  83736. IsResolver: false,
  83737. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  83738. return nil, errors.New("field of type Float does not have child fields")
  83739. },
  83740. }
  83741. return fc, nil
  83742. }
  83743. func (ec *executionContext) _MailingAddress_name(ctx context.Context, field graphql.CollectedField, obj *MailingAddress) (ret graphql.Marshaler) {
  83744. fc, err := ec.fieldContext_MailingAddress_name(ctx, field)
  83745. if err != nil {
  83746. return graphql.Null
  83747. }
  83748. ctx = graphql.WithFieldContext(ctx, fc)
  83749. defer func() {
  83750. if r := recover(); r != nil {
  83751. ec.Error(ctx, ec.Recover(ctx, r))
  83752. ret = graphql.Null
  83753. }
  83754. }()
  83755. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  83756. ctx = rctx // use context from middleware stack in children
  83757. return obj.Name, nil
  83758. })
  83759. if err != nil {
  83760. ec.Error(ctx, err)
  83761. return graphql.Null
  83762. }
  83763. if resTmp == nil {
  83764. return graphql.Null
  83765. }
  83766. res := resTmp.(*string)
  83767. fc.Result = res
  83768. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  83769. }
  83770. func (ec *executionContext) fieldContext_MailingAddress_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  83771. fc = &graphql.FieldContext{
  83772. Object: "MailingAddress",
  83773. Field: field,
  83774. IsMethod: false,
  83775. IsResolver: false,
  83776. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  83777. return nil, errors.New("field of type String does not have child fields")
  83778. },
  83779. }
  83780. return fc, nil
  83781. }
  83782. func (ec *executionContext) _MailingAddress_phone(ctx context.Context, field graphql.CollectedField, obj *MailingAddress) (ret graphql.Marshaler) {
  83783. fc, err := ec.fieldContext_MailingAddress_phone(ctx, field)
  83784. if err != nil {
  83785. return graphql.Null
  83786. }
  83787. ctx = graphql.WithFieldContext(ctx, fc)
  83788. defer func() {
  83789. if r := recover(); r != nil {
  83790. ec.Error(ctx, ec.Recover(ctx, r))
  83791. ret = graphql.Null
  83792. }
  83793. }()
  83794. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  83795. ctx = rctx // use context from middleware stack in children
  83796. return obj.Phone, nil
  83797. })
  83798. if err != nil {
  83799. ec.Error(ctx, err)
  83800. return graphql.Null
  83801. }
  83802. if resTmp == nil {
  83803. return graphql.Null
  83804. }
  83805. res := resTmp.(*string)
  83806. fc.Result = res
  83807. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  83808. }
  83809. func (ec *executionContext) fieldContext_MailingAddress_phone(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  83810. fc = &graphql.FieldContext{
  83811. Object: "MailingAddress",
  83812. Field: field,
  83813. IsMethod: false,
  83814. IsResolver: false,
  83815. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  83816. return nil, errors.New("field of type String does not have child fields")
  83817. },
  83818. }
  83819. return fc, nil
  83820. }
  83821. func (ec *executionContext) _MailingAddress_province(ctx context.Context, field graphql.CollectedField, obj *MailingAddress) (ret graphql.Marshaler) {
  83822. fc, err := ec.fieldContext_MailingAddress_province(ctx, field)
  83823. if err != nil {
  83824. return graphql.Null
  83825. }
  83826. ctx = graphql.WithFieldContext(ctx, fc)
  83827. defer func() {
  83828. if r := recover(); r != nil {
  83829. ec.Error(ctx, ec.Recover(ctx, r))
  83830. ret = graphql.Null
  83831. }
  83832. }()
  83833. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  83834. ctx = rctx // use context from middleware stack in children
  83835. return obj.Province, nil
  83836. })
  83837. if err != nil {
  83838. ec.Error(ctx, err)
  83839. return graphql.Null
  83840. }
  83841. if resTmp == nil {
  83842. return graphql.Null
  83843. }
  83844. res := resTmp.(*string)
  83845. fc.Result = res
  83846. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  83847. }
  83848. func (ec *executionContext) fieldContext_MailingAddress_province(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  83849. fc = &graphql.FieldContext{
  83850. Object: "MailingAddress",
  83851. Field: field,
  83852. IsMethod: false,
  83853. IsResolver: false,
  83854. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  83855. return nil, errors.New("field of type String does not have child fields")
  83856. },
  83857. }
  83858. return fc, nil
  83859. }
  83860. func (ec *executionContext) _MailingAddress_provinceCode(ctx context.Context, field graphql.CollectedField, obj *MailingAddress) (ret graphql.Marshaler) {
  83861. fc, err := ec.fieldContext_MailingAddress_provinceCode(ctx, field)
  83862. if err != nil {
  83863. return graphql.Null
  83864. }
  83865. ctx = graphql.WithFieldContext(ctx, fc)
  83866. defer func() {
  83867. if r := recover(); r != nil {
  83868. ec.Error(ctx, ec.Recover(ctx, r))
  83869. ret = graphql.Null
  83870. }
  83871. }()
  83872. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  83873. ctx = rctx // use context from middleware stack in children
  83874. return obj.ProvinceCode, nil
  83875. })
  83876. if err != nil {
  83877. ec.Error(ctx, err)
  83878. return graphql.Null
  83879. }
  83880. if resTmp == nil {
  83881. return graphql.Null
  83882. }
  83883. res := resTmp.(*string)
  83884. fc.Result = res
  83885. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  83886. }
  83887. func (ec *executionContext) fieldContext_MailingAddress_provinceCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  83888. fc = &graphql.FieldContext{
  83889. Object: "MailingAddress",
  83890. Field: field,
  83891. IsMethod: false,
  83892. IsResolver: false,
  83893. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  83894. return nil, errors.New("field of type String does not have child fields")
  83895. },
  83896. }
  83897. return fc, nil
  83898. }
  83899. func (ec *executionContext) _MailingAddress_zip(ctx context.Context, field graphql.CollectedField, obj *MailingAddress) (ret graphql.Marshaler) {
  83900. fc, err := ec.fieldContext_MailingAddress_zip(ctx, field)
  83901. if err != nil {
  83902. return graphql.Null
  83903. }
  83904. ctx = graphql.WithFieldContext(ctx, fc)
  83905. defer func() {
  83906. if r := recover(); r != nil {
  83907. ec.Error(ctx, ec.Recover(ctx, r))
  83908. ret = graphql.Null
  83909. }
  83910. }()
  83911. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  83912. ctx = rctx // use context from middleware stack in children
  83913. return obj.Zip, nil
  83914. })
  83915. if err != nil {
  83916. ec.Error(ctx, err)
  83917. return graphql.Null
  83918. }
  83919. if resTmp == nil {
  83920. return graphql.Null
  83921. }
  83922. res := resTmp.(*string)
  83923. fc.Result = res
  83924. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  83925. }
  83926. func (ec *executionContext) fieldContext_MailingAddress_zip(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  83927. fc = &graphql.FieldContext{
  83928. Object: "MailingAddress",
  83929. Field: field,
  83930. IsMethod: false,
  83931. IsResolver: false,
  83932. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  83933. return nil, errors.New("field of type String does not have child fields")
  83934. },
  83935. }
  83936. return fc, nil
  83937. }
  83938. func (ec *executionContext) _ManualDiscountApplication_allocationMethod(ctx context.Context, field graphql.CollectedField, obj *ManualDiscountApplication) (ret graphql.Marshaler) {
  83939. fc, err := ec.fieldContext_ManualDiscountApplication_allocationMethod(ctx, field)
  83940. if err != nil {
  83941. return graphql.Null
  83942. }
  83943. ctx = graphql.WithFieldContext(ctx, fc)
  83944. defer func() {
  83945. if r := recover(); r != nil {
  83946. ec.Error(ctx, ec.Recover(ctx, r))
  83947. ret = graphql.Null
  83948. }
  83949. }()
  83950. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  83951. ctx = rctx // use context from middleware stack in children
  83952. return obj.AllocationMethod, nil
  83953. })
  83954. if err != nil {
  83955. ec.Error(ctx, err)
  83956. return graphql.Null
  83957. }
  83958. if resTmp == nil {
  83959. if !graphql.HasFieldError(ctx, fc) {
  83960. ec.Errorf(ctx, "must not be null")
  83961. }
  83962. return graphql.Null
  83963. }
  83964. res := resTmp.(DiscountApplicationAllocationMethod)
  83965. fc.Result = res
  83966. return ec.marshalNDiscountApplicationAllocationMethod2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplicationAllocationMethod(ctx, field.Selections, res)
  83967. }
  83968. func (ec *executionContext) fieldContext_ManualDiscountApplication_allocationMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  83969. fc = &graphql.FieldContext{
  83970. Object: "ManualDiscountApplication",
  83971. Field: field,
  83972. IsMethod: false,
  83973. IsResolver: false,
  83974. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  83975. return nil, errors.New("field of type DiscountApplicationAllocationMethod does not have child fields")
  83976. },
  83977. }
  83978. return fc, nil
  83979. }
  83980. func (ec *executionContext) _ManualDiscountApplication_description(ctx context.Context, field graphql.CollectedField, obj *ManualDiscountApplication) (ret graphql.Marshaler) {
  83981. fc, err := ec.fieldContext_ManualDiscountApplication_description(ctx, field)
  83982. if err != nil {
  83983. return graphql.Null
  83984. }
  83985. ctx = graphql.WithFieldContext(ctx, fc)
  83986. defer func() {
  83987. if r := recover(); r != nil {
  83988. ec.Error(ctx, ec.Recover(ctx, r))
  83989. ret = graphql.Null
  83990. }
  83991. }()
  83992. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  83993. ctx = rctx // use context from middleware stack in children
  83994. return obj.Description, nil
  83995. })
  83996. if err != nil {
  83997. ec.Error(ctx, err)
  83998. return graphql.Null
  83999. }
  84000. if resTmp == nil {
  84001. return graphql.Null
  84002. }
  84003. res := resTmp.(*string)
  84004. fc.Result = res
  84005. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  84006. }
  84007. func (ec *executionContext) fieldContext_ManualDiscountApplication_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  84008. fc = &graphql.FieldContext{
  84009. Object: "ManualDiscountApplication",
  84010. Field: field,
  84011. IsMethod: false,
  84012. IsResolver: false,
  84013. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  84014. return nil, errors.New("field of type String does not have child fields")
  84015. },
  84016. }
  84017. return fc, nil
  84018. }
  84019. func (ec *executionContext) _ManualDiscountApplication_index(ctx context.Context, field graphql.CollectedField, obj *ManualDiscountApplication) (ret graphql.Marshaler) {
  84020. fc, err := ec.fieldContext_ManualDiscountApplication_index(ctx, field)
  84021. if err != nil {
  84022. return graphql.Null
  84023. }
  84024. ctx = graphql.WithFieldContext(ctx, fc)
  84025. defer func() {
  84026. if r := recover(); r != nil {
  84027. ec.Error(ctx, ec.Recover(ctx, r))
  84028. ret = graphql.Null
  84029. }
  84030. }()
  84031. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  84032. ctx = rctx // use context from middleware stack in children
  84033. return obj.Index, nil
  84034. })
  84035. if err != nil {
  84036. ec.Error(ctx, err)
  84037. return graphql.Null
  84038. }
  84039. if resTmp == nil {
  84040. if !graphql.HasFieldError(ctx, fc) {
  84041. ec.Errorf(ctx, "must not be null")
  84042. }
  84043. return graphql.Null
  84044. }
  84045. res := resTmp.(int)
  84046. fc.Result = res
  84047. return ec.marshalNInt2int(ctx, field.Selections, res)
  84048. }
  84049. func (ec *executionContext) fieldContext_ManualDiscountApplication_index(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  84050. fc = &graphql.FieldContext{
  84051. Object: "ManualDiscountApplication",
  84052. Field: field,
  84053. IsMethod: false,
  84054. IsResolver: false,
  84055. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  84056. return nil, errors.New("field of type Int does not have child fields")
  84057. },
  84058. }
  84059. return fc, nil
  84060. }
  84061. func (ec *executionContext) _ManualDiscountApplication_targetSelection(ctx context.Context, field graphql.CollectedField, obj *ManualDiscountApplication) (ret graphql.Marshaler) {
  84062. fc, err := ec.fieldContext_ManualDiscountApplication_targetSelection(ctx, field)
  84063. if err != nil {
  84064. return graphql.Null
  84065. }
  84066. ctx = graphql.WithFieldContext(ctx, fc)
  84067. defer func() {
  84068. if r := recover(); r != nil {
  84069. ec.Error(ctx, ec.Recover(ctx, r))
  84070. ret = graphql.Null
  84071. }
  84072. }()
  84073. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  84074. ctx = rctx // use context from middleware stack in children
  84075. return obj.TargetSelection, nil
  84076. })
  84077. if err != nil {
  84078. ec.Error(ctx, err)
  84079. return graphql.Null
  84080. }
  84081. if resTmp == nil {
  84082. if !graphql.HasFieldError(ctx, fc) {
  84083. ec.Errorf(ctx, "must not be null")
  84084. }
  84085. return graphql.Null
  84086. }
  84087. res := resTmp.(DiscountApplicationTargetSelection)
  84088. fc.Result = res
  84089. return ec.marshalNDiscountApplicationTargetSelection2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplicationTargetSelection(ctx, field.Selections, res)
  84090. }
  84091. func (ec *executionContext) fieldContext_ManualDiscountApplication_targetSelection(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  84092. fc = &graphql.FieldContext{
  84093. Object: "ManualDiscountApplication",
  84094. Field: field,
  84095. IsMethod: false,
  84096. IsResolver: false,
  84097. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  84098. return nil, errors.New("field of type DiscountApplicationTargetSelection does not have child fields")
  84099. },
  84100. }
  84101. return fc, nil
  84102. }
  84103. func (ec *executionContext) _ManualDiscountApplication_targetType(ctx context.Context, field graphql.CollectedField, obj *ManualDiscountApplication) (ret graphql.Marshaler) {
  84104. fc, err := ec.fieldContext_ManualDiscountApplication_targetType(ctx, field)
  84105. if err != nil {
  84106. return graphql.Null
  84107. }
  84108. ctx = graphql.WithFieldContext(ctx, fc)
  84109. defer func() {
  84110. if r := recover(); r != nil {
  84111. ec.Error(ctx, ec.Recover(ctx, r))
  84112. ret = graphql.Null
  84113. }
  84114. }()
  84115. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  84116. ctx = rctx // use context from middleware stack in children
  84117. return obj.TargetType, nil
  84118. })
  84119. if err != nil {
  84120. ec.Error(ctx, err)
  84121. return graphql.Null
  84122. }
  84123. if resTmp == nil {
  84124. if !graphql.HasFieldError(ctx, fc) {
  84125. ec.Errorf(ctx, "must not be null")
  84126. }
  84127. return graphql.Null
  84128. }
  84129. res := resTmp.(DiscountApplicationTargetType)
  84130. fc.Result = res
  84131. return ec.marshalNDiscountApplicationTargetType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplicationTargetType(ctx, field.Selections, res)
  84132. }
  84133. func (ec *executionContext) fieldContext_ManualDiscountApplication_targetType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  84134. fc = &graphql.FieldContext{
  84135. Object: "ManualDiscountApplication",
  84136. Field: field,
  84137. IsMethod: false,
  84138. IsResolver: false,
  84139. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  84140. return nil, errors.New("field of type DiscountApplicationTargetType does not have child fields")
  84141. },
  84142. }
  84143. return fc, nil
  84144. }
  84145. func (ec *executionContext) _ManualDiscountApplication_title(ctx context.Context, field graphql.CollectedField, obj *ManualDiscountApplication) (ret graphql.Marshaler) {
  84146. fc, err := ec.fieldContext_ManualDiscountApplication_title(ctx, field)
  84147. if err != nil {
  84148. return graphql.Null
  84149. }
  84150. ctx = graphql.WithFieldContext(ctx, fc)
  84151. defer func() {
  84152. if r := recover(); r != nil {
  84153. ec.Error(ctx, ec.Recover(ctx, r))
  84154. ret = graphql.Null
  84155. }
  84156. }()
  84157. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  84158. ctx = rctx // use context from middleware stack in children
  84159. return obj.Title, nil
  84160. })
  84161. if err != nil {
  84162. ec.Error(ctx, err)
  84163. return graphql.Null
  84164. }
  84165. if resTmp == nil {
  84166. if !graphql.HasFieldError(ctx, fc) {
  84167. ec.Errorf(ctx, "must not be null")
  84168. }
  84169. return graphql.Null
  84170. }
  84171. res := resTmp.(string)
  84172. fc.Result = res
  84173. return ec.marshalNString2string(ctx, field.Selections, res)
  84174. }
  84175. func (ec *executionContext) fieldContext_ManualDiscountApplication_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  84176. fc = &graphql.FieldContext{
  84177. Object: "ManualDiscountApplication",
  84178. Field: field,
  84179. IsMethod: false,
  84180. IsResolver: false,
  84181. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  84182. return nil, errors.New("field of type String does not have child fields")
  84183. },
  84184. }
  84185. return fc, nil
  84186. }
  84187. func (ec *executionContext) _ManualDiscountApplication_value(ctx context.Context, field graphql.CollectedField, obj *ManualDiscountApplication) (ret graphql.Marshaler) {
  84188. fc, err := ec.fieldContext_ManualDiscountApplication_value(ctx, field)
  84189. if err != nil {
  84190. return graphql.Null
  84191. }
  84192. ctx = graphql.WithFieldContext(ctx, fc)
  84193. defer func() {
  84194. if r := recover(); r != nil {
  84195. ec.Error(ctx, ec.Recover(ctx, r))
  84196. ret = graphql.Null
  84197. }
  84198. }()
  84199. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  84200. ctx = rctx // use context from middleware stack in children
  84201. return obj.Value, nil
  84202. })
  84203. if err != nil {
  84204. ec.Error(ctx, err)
  84205. return graphql.Null
  84206. }
  84207. if resTmp == nil {
  84208. if !graphql.HasFieldError(ctx, fc) {
  84209. ec.Errorf(ctx, "must not be null")
  84210. }
  84211. return graphql.Null
  84212. }
  84213. res := resTmp.(PricingValue)
  84214. fc.Result = res
  84215. return ec.marshalNPricingValue2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPricingValue(ctx, field.Selections, res)
  84216. }
  84217. func (ec *executionContext) fieldContext_ManualDiscountApplication_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  84218. fc = &graphql.FieldContext{
  84219. Object: "ManualDiscountApplication",
  84220. Field: field,
  84221. IsMethod: false,
  84222. IsResolver: false,
  84223. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  84224. return nil, errors.New("field of type PricingValue does not have child fields")
  84225. },
  84226. }
  84227. return fc, nil
  84228. }
  84229. func (ec *executionContext) _Market_currencySettings(ctx context.Context, field graphql.CollectedField, obj *Market) (ret graphql.Marshaler) {
  84230. fc, err := ec.fieldContext_Market_currencySettings(ctx, field)
  84231. if err != nil {
  84232. return graphql.Null
  84233. }
  84234. ctx = graphql.WithFieldContext(ctx, fc)
  84235. defer func() {
  84236. if r := recover(); r != nil {
  84237. ec.Error(ctx, ec.Recover(ctx, r))
  84238. ret = graphql.Null
  84239. }
  84240. }()
  84241. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  84242. ctx = rctx // use context from middleware stack in children
  84243. return obj.CurrencySettings, nil
  84244. })
  84245. if err != nil {
  84246. ec.Error(ctx, err)
  84247. return graphql.Null
  84248. }
  84249. if resTmp == nil {
  84250. if !graphql.HasFieldError(ctx, fc) {
  84251. ec.Errorf(ctx, "must not be null")
  84252. }
  84253. return graphql.Null
  84254. }
  84255. res := resTmp.(*MarketCurrencySettings)
  84256. fc.Result = res
  84257. return ec.marshalNMarketCurrencySettings2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketCurrencySettings(ctx, field.Selections, res)
  84258. }
  84259. func (ec *executionContext) fieldContext_Market_currencySettings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  84260. fc = &graphql.FieldContext{
  84261. Object: "Market",
  84262. Field: field,
  84263. IsMethod: false,
  84264. IsResolver: false,
  84265. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  84266. switch field.Name {
  84267. case "baseCurrency":
  84268. return ec.fieldContext_MarketCurrencySettings_baseCurrency(ctx, field)
  84269. case "localCurrencies":
  84270. return ec.fieldContext_MarketCurrencySettings_localCurrencies(ctx, field)
  84271. }
  84272. return nil, fmt.Errorf("no field named %q was found under type MarketCurrencySettings", field.Name)
  84273. },
  84274. }
  84275. return fc, nil
  84276. }
  84277. func (ec *executionContext) _Market_enabled(ctx context.Context, field graphql.CollectedField, obj *Market) (ret graphql.Marshaler) {
  84278. fc, err := ec.fieldContext_Market_enabled(ctx, field)
  84279. if err != nil {
  84280. return graphql.Null
  84281. }
  84282. ctx = graphql.WithFieldContext(ctx, fc)
  84283. defer func() {
  84284. if r := recover(); r != nil {
  84285. ec.Error(ctx, ec.Recover(ctx, r))
  84286. ret = graphql.Null
  84287. }
  84288. }()
  84289. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  84290. ctx = rctx // use context from middleware stack in children
  84291. return obj.Enabled, nil
  84292. })
  84293. if err != nil {
  84294. ec.Error(ctx, err)
  84295. return graphql.Null
  84296. }
  84297. if resTmp == nil {
  84298. if !graphql.HasFieldError(ctx, fc) {
  84299. ec.Errorf(ctx, "must not be null")
  84300. }
  84301. return graphql.Null
  84302. }
  84303. res := resTmp.(bool)
  84304. fc.Result = res
  84305. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  84306. }
  84307. func (ec *executionContext) fieldContext_Market_enabled(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  84308. fc = &graphql.FieldContext{
  84309. Object: "Market",
  84310. Field: field,
  84311. IsMethod: false,
  84312. IsResolver: false,
  84313. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  84314. return nil, errors.New("field of type Boolean does not have child fields")
  84315. },
  84316. }
  84317. return fc, nil
  84318. }
  84319. func (ec *executionContext) _Market_id(ctx context.Context, field graphql.CollectedField, obj *Market) (ret graphql.Marshaler) {
  84320. fc, err := ec.fieldContext_Market_id(ctx, field)
  84321. if err != nil {
  84322. return graphql.Null
  84323. }
  84324. ctx = graphql.WithFieldContext(ctx, fc)
  84325. defer func() {
  84326. if r := recover(); r != nil {
  84327. ec.Error(ctx, ec.Recover(ctx, r))
  84328. ret = graphql.Null
  84329. }
  84330. }()
  84331. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  84332. ctx = rctx // use context from middleware stack in children
  84333. return obj.ID, nil
  84334. })
  84335. if err != nil {
  84336. ec.Error(ctx, err)
  84337. return graphql.Null
  84338. }
  84339. if resTmp == nil {
  84340. if !graphql.HasFieldError(ctx, fc) {
  84341. ec.Errorf(ctx, "must not be null")
  84342. }
  84343. return graphql.Null
  84344. }
  84345. res := resTmp.(string)
  84346. fc.Result = res
  84347. return ec.marshalNID2string(ctx, field.Selections, res)
  84348. }
  84349. func (ec *executionContext) fieldContext_Market_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  84350. fc = &graphql.FieldContext{
  84351. Object: "Market",
  84352. Field: field,
  84353. IsMethod: false,
  84354. IsResolver: false,
  84355. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  84356. return nil, errors.New("field of type ID does not have child fields")
  84357. },
  84358. }
  84359. return fc, nil
  84360. }
  84361. func (ec *executionContext) _Market_name(ctx context.Context, field graphql.CollectedField, obj *Market) (ret graphql.Marshaler) {
  84362. fc, err := ec.fieldContext_Market_name(ctx, field)
  84363. if err != nil {
  84364. return graphql.Null
  84365. }
  84366. ctx = graphql.WithFieldContext(ctx, fc)
  84367. defer func() {
  84368. if r := recover(); r != nil {
  84369. ec.Error(ctx, ec.Recover(ctx, r))
  84370. ret = graphql.Null
  84371. }
  84372. }()
  84373. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  84374. ctx = rctx // use context from middleware stack in children
  84375. return obj.Name, nil
  84376. })
  84377. if err != nil {
  84378. ec.Error(ctx, err)
  84379. return graphql.Null
  84380. }
  84381. if resTmp == nil {
  84382. if !graphql.HasFieldError(ctx, fc) {
  84383. ec.Errorf(ctx, "must not be null")
  84384. }
  84385. return graphql.Null
  84386. }
  84387. res := resTmp.(string)
  84388. fc.Result = res
  84389. return ec.marshalNString2string(ctx, field.Selections, res)
  84390. }
  84391. func (ec *executionContext) fieldContext_Market_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  84392. fc = &graphql.FieldContext{
  84393. Object: "Market",
  84394. Field: field,
  84395. IsMethod: false,
  84396. IsResolver: false,
  84397. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  84398. return nil, errors.New("field of type String does not have child fields")
  84399. },
  84400. }
  84401. return fc, nil
  84402. }
  84403. func (ec *executionContext) _Market_priceList(ctx context.Context, field graphql.CollectedField, obj *Market) (ret graphql.Marshaler) {
  84404. fc, err := ec.fieldContext_Market_priceList(ctx, field)
  84405. if err != nil {
  84406. return graphql.Null
  84407. }
  84408. ctx = graphql.WithFieldContext(ctx, fc)
  84409. defer func() {
  84410. if r := recover(); r != nil {
  84411. ec.Error(ctx, ec.Recover(ctx, r))
  84412. ret = graphql.Null
  84413. }
  84414. }()
  84415. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  84416. ctx = rctx // use context from middleware stack in children
  84417. return obj.PriceList, nil
  84418. })
  84419. if err != nil {
  84420. ec.Error(ctx, err)
  84421. return graphql.Null
  84422. }
  84423. if resTmp == nil {
  84424. return graphql.Null
  84425. }
  84426. res := resTmp.(*PriceList)
  84427. fc.Result = res
  84428. return ec.marshalOPriceList2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceList(ctx, field.Selections, res)
  84429. }
  84430. func (ec *executionContext) fieldContext_Market_priceList(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  84431. fc = &graphql.FieldContext{
  84432. Object: "Market",
  84433. Field: field,
  84434. IsMethod: false,
  84435. IsResolver: false,
  84436. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  84437. switch field.Name {
  84438. case "contextRule":
  84439. return ec.fieldContext_PriceList_contextRule(ctx, field)
  84440. case "currency":
  84441. return ec.fieldContext_PriceList_currency(ctx, field)
  84442. case "id":
  84443. return ec.fieldContext_PriceList_id(ctx, field)
  84444. case "name":
  84445. return ec.fieldContext_PriceList_name(ctx, field)
  84446. case "parent":
  84447. return ec.fieldContext_PriceList_parent(ctx, field)
  84448. case "prices":
  84449. return ec.fieldContext_PriceList_prices(ctx, field)
  84450. }
  84451. return nil, fmt.Errorf("no field named %q was found under type PriceList", field.Name)
  84452. },
  84453. }
  84454. return fc, nil
  84455. }
  84456. func (ec *executionContext) _Market_primary(ctx context.Context, field graphql.CollectedField, obj *Market) (ret graphql.Marshaler) {
  84457. fc, err := ec.fieldContext_Market_primary(ctx, field)
  84458. if err != nil {
  84459. return graphql.Null
  84460. }
  84461. ctx = graphql.WithFieldContext(ctx, fc)
  84462. defer func() {
  84463. if r := recover(); r != nil {
  84464. ec.Error(ctx, ec.Recover(ctx, r))
  84465. ret = graphql.Null
  84466. }
  84467. }()
  84468. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  84469. ctx = rctx // use context from middleware stack in children
  84470. return obj.Primary, nil
  84471. })
  84472. if err != nil {
  84473. ec.Error(ctx, err)
  84474. return graphql.Null
  84475. }
  84476. if resTmp == nil {
  84477. if !graphql.HasFieldError(ctx, fc) {
  84478. ec.Errorf(ctx, "must not be null")
  84479. }
  84480. return graphql.Null
  84481. }
  84482. res := resTmp.(bool)
  84483. fc.Result = res
  84484. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  84485. }
  84486. func (ec *executionContext) fieldContext_Market_primary(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  84487. fc = &graphql.FieldContext{
  84488. Object: "Market",
  84489. Field: field,
  84490. IsMethod: false,
  84491. IsResolver: false,
  84492. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  84493. return nil, errors.New("field of type Boolean does not have child fields")
  84494. },
  84495. }
  84496. return fc, nil
  84497. }
  84498. func (ec *executionContext) _Market_regions(ctx context.Context, field graphql.CollectedField, obj *Market) (ret graphql.Marshaler) {
  84499. fc, err := ec.fieldContext_Market_regions(ctx, field)
  84500. if err != nil {
  84501. return graphql.Null
  84502. }
  84503. ctx = graphql.WithFieldContext(ctx, fc)
  84504. defer func() {
  84505. if r := recover(); r != nil {
  84506. ec.Error(ctx, ec.Recover(ctx, r))
  84507. ret = graphql.Null
  84508. }
  84509. }()
  84510. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  84511. ctx = rctx // use context from middleware stack in children
  84512. return obj.Regions, nil
  84513. })
  84514. if err != nil {
  84515. ec.Error(ctx, err)
  84516. return graphql.Null
  84517. }
  84518. if resTmp == nil {
  84519. if !graphql.HasFieldError(ctx, fc) {
  84520. ec.Errorf(ctx, "must not be null")
  84521. }
  84522. return graphql.Null
  84523. }
  84524. res := resTmp.(*MarketRegionConnection)
  84525. fc.Result = res
  84526. return ec.marshalNMarketRegionConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketRegionConnection(ctx, field.Selections, res)
  84527. }
  84528. func (ec *executionContext) fieldContext_Market_regions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  84529. fc = &graphql.FieldContext{
  84530. Object: "Market",
  84531. Field: field,
  84532. IsMethod: false,
  84533. IsResolver: false,
  84534. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  84535. switch field.Name {
  84536. case "edges":
  84537. return ec.fieldContext_MarketRegionConnection_edges(ctx, field)
  84538. case "nodes":
  84539. return ec.fieldContext_MarketRegionConnection_nodes(ctx, field)
  84540. case "pageInfo":
  84541. return ec.fieldContext_MarketRegionConnection_pageInfo(ctx, field)
  84542. }
  84543. return nil, fmt.Errorf("no field named %q was found under type MarketRegionConnection", field.Name)
  84544. },
  84545. }
  84546. defer func() {
  84547. if r := recover(); r != nil {
  84548. err = ec.Recover(ctx, r)
  84549. ec.Error(ctx, err)
  84550. }
  84551. }()
  84552. ctx = graphql.WithFieldContext(ctx, fc)
  84553. if fc.Args, err = ec.field_Market_regions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  84554. ec.Error(ctx, err)
  84555. return
  84556. }
  84557. return fc, nil
  84558. }
  84559. func (ec *executionContext) _Market_webPresence(ctx context.Context, field graphql.CollectedField, obj *Market) (ret graphql.Marshaler) {
  84560. fc, err := ec.fieldContext_Market_webPresence(ctx, field)
  84561. if err != nil {
  84562. return graphql.Null
  84563. }
  84564. ctx = graphql.WithFieldContext(ctx, fc)
  84565. defer func() {
  84566. if r := recover(); r != nil {
  84567. ec.Error(ctx, ec.Recover(ctx, r))
  84568. ret = graphql.Null
  84569. }
  84570. }()
  84571. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  84572. ctx = rctx // use context from middleware stack in children
  84573. return obj.WebPresence, nil
  84574. })
  84575. if err != nil {
  84576. ec.Error(ctx, err)
  84577. return graphql.Null
  84578. }
  84579. if resTmp == nil {
  84580. return graphql.Null
  84581. }
  84582. res := resTmp.(*MarketWebPresence)
  84583. fc.Result = res
  84584. return ec.marshalOMarketWebPresence2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketWebPresence(ctx, field.Selections, res)
  84585. }
  84586. func (ec *executionContext) fieldContext_Market_webPresence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  84587. fc = &graphql.FieldContext{
  84588. Object: "Market",
  84589. Field: field,
  84590. IsMethod: false,
  84591. IsResolver: false,
  84592. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  84593. switch field.Name {
  84594. case "alternateLocales":
  84595. return ec.fieldContext_MarketWebPresence_alternateLocales(ctx, field)
  84596. case "defaultLocale":
  84597. return ec.fieldContext_MarketWebPresence_defaultLocale(ctx, field)
  84598. case "domain":
  84599. return ec.fieldContext_MarketWebPresence_domain(ctx, field)
  84600. case "id":
  84601. return ec.fieldContext_MarketWebPresence_id(ctx, field)
  84602. case "market":
  84603. return ec.fieldContext_MarketWebPresence_market(ctx, field)
  84604. case "rootUrls":
  84605. return ec.fieldContext_MarketWebPresence_rootUrls(ctx, field)
  84606. case "subfolderSuffix":
  84607. return ec.fieldContext_MarketWebPresence_subfolderSuffix(ctx, field)
  84608. }
  84609. return nil, fmt.Errorf("no field named %q was found under type MarketWebPresence", field.Name)
  84610. },
  84611. }
  84612. return fc, nil
  84613. }
  84614. func (ec *executionContext) _MarketCurrencySettings_baseCurrency(ctx context.Context, field graphql.CollectedField, obj *MarketCurrencySettings) (ret graphql.Marshaler) {
  84615. fc, err := ec.fieldContext_MarketCurrencySettings_baseCurrency(ctx, field)
  84616. if err != nil {
  84617. return graphql.Null
  84618. }
  84619. ctx = graphql.WithFieldContext(ctx, fc)
  84620. defer func() {
  84621. if r := recover(); r != nil {
  84622. ec.Error(ctx, ec.Recover(ctx, r))
  84623. ret = graphql.Null
  84624. }
  84625. }()
  84626. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  84627. ctx = rctx // use context from middleware stack in children
  84628. return obj.BaseCurrency, nil
  84629. })
  84630. if err != nil {
  84631. ec.Error(ctx, err)
  84632. return graphql.Null
  84633. }
  84634. if resTmp == nil {
  84635. if !graphql.HasFieldError(ctx, fc) {
  84636. ec.Errorf(ctx, "must not be null")
  84637. }
  84638. return graphql.Null
  84639. }
  84640. res := resTmp.(*CurrencySetting)
  84641. fc.Result = res
  84642. return ec.marshalNCurrencySetting2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencySetting(ctx, field.Selections, res)
  84643. }
  84644. func (ec *executionContext) fieldContext_MarketCurrencySettings_baseCurrency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  84645. fc = &graphql.FieldContext{
  84646. Object: "MarketCurrencySettings",
  84647. Field: field,
  84648. IsMethod: false,
  84649. IsResolver: false,
  84650. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  84651. switch field.Name {
  84652. case "currencyCode":
  84653. return ec.fieldContext_CurrencySetting_currencyCode(ctx, field)
  84654. case "currencyName":
  84655. return ec.fieldContext_CurrencySetting_currencyName(ctx, field)
  84656. case "enabled":
  84657. return ec.fieldContext_CurrencySetting_enabled(ctx, field)
  84658. case "rateUpdatedAt":
  84659. return ec.fieldContext_CurrencySetting_rateUpdatedAt(ctx, field)
  84660. }
  84661. return nil, fmt.Errorf("no field named %q was found under type CurrencySetting", field.Name)
  84662. },
  84663. }
  84664. return fc, nil
  84665. }
  84666. func (ec *executionContext) _MarketCurrencySettings_localCurrencies(ctx context.Context, field graphql.CollectedField, obj *MarketCurrencySettings) (ret graphql.Marshaler) {
  84667. fc, err := ec.fieldContext_MarketCurrencySettings_localCurrencies(ctx, field)
  84668. if err != nil {
  84669. return graphql.Null
  84670. }
  84671. ctx = graphql.WithFieldContext(ctx, fc)
  84672. defer func() {
  84673. if r := recover(); r != nil {
  84674. ec.Error(ctx, ec.Recover(ctx, r))
  84675. ret = graphql.Null
  84676. }
  84677. }()
  84678. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  84679. ctx = rctx // use context from middleware stack in children
  84680. return obj.LocalCurrencies, nil
  84681. })
  84682. if err != nil {
  84683. ec.Error(ctx, err)
  84684. return graphql.Null
  84685. }
  84686. if resTmp == nil {
  84687. if !graphql.HasFieldError(ctx, fc) {
  84688. ec.Errorf(ctx, "must not be null")
  84689. }
  84690. return graphql.Null
  84691. }
  84692. res := resTmp.(bool)
  84693. fc.Result = res
  84694. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  84695. }
  84696. func (ec *executionContext) fieldContext_MarketCurrencySettings_localCurrencies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  84697. fc = &graphql.FieldContext{
  84698. Object: "MarketCurrencySettings",
  84699. Field: field,
  84700. IsMethod: false,
  84701. IsResolver: false,
  84702. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  84703. return nil, errors.New("field of type Boolean does not have child fields")
  84704. },
  84705. }
  84706. return fc, nil
  84707. }
  84708. func (ec *executionContext) _MarketRegionConnection_edges(ctx context.Context, field graphql.CollectedField, obj *MarketRegionConnection) (ret graphql.Marshaler) {
  84709. fc, err := ec.fieldContext_MarketRegionConnection_edges(ctx, field)
  84710. if err != nil {
  84711. return graphql.Null
  84712. }
  84713. ctx = graphql.WithFieldContext(ctx, fc)
  84714. defer func() {
  84715. if r := recover(); r != nil {
  84716. ec.Error(ctx, ec.Recover(ctx, r))
  84717. ret = graphql.Null
  84718. }
  84719. }()
  84720. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  84721. ctx = rctx // use context from middleware stack in children
  84722. return obj.Edges, nil
  84723. })
  84724. if err != nil {
  84725. ec.Error(ctx, err)
  84726. return graphql.Null
  84727. }
  84728. if resTmp == nil {
  84729. if !graphql.HasFieldError(ctx, fc) {
  84730. ec.Errorf(ctx, "must not be null")
  84731. }
  84732. return graphql.Null
  84733. }
  84734. res := resTmp.([]*MarketRegionEdge)
  84735. fc.Result = res
  84736. return ec.marshalNMarketRegionEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketRegionEdgeᚄ(ctx, field.Selections, res)
  84737. }
  84738. func (ec *executionContext) fieldContext_MarketRegionConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  84739. fc = &graphql.FieldContext{
  84740. Object: "MarketRegionConnection",
  84741. Field: field,
  84742. IsMethod: false,
  84743. IsResolver: false,
  84744. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  84745. switch field.Name {
  84746. case "cursor":
  84747. return ec.fieldContext_MarketRegionEdge_cursor(ctx, field)
  84748. case "node":
  84749. return ec.fieldContext_MarketRegionEdge_node(ctx, field)
  84750. }
  84751. return nil, fmt.Errorf("no field named %q was found under type MarketRegionEdge", field.Name)
  84752. },
  84753. }
  84754. return fc, nil
  84755. }
  84756. func (ec *executionContext) _MarketRegionConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *MarketRegionConnection) (ret graphql.Marshaler) {
  84757. fc, err := ec.fieldContext_MarketRegionConnection_nodes(ctx, field)
  84758. if err != nil {
  84759. return graphql.Null
  84760. }
  84761. ctx = graphql.WithFieldContext(ctx, fc)
  84762. defer func() {
  84763. if r := recover(); r != nil {
  84764. ec.Error(ctx, ec.Recover(ctx, r))
  84765. ret = graphql.Null
  84766. }
  84767. }()
  84768. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  84769. ctx = rctx // use context from middleware stack in children
  84770. return obj.Nodes, nil
  84771. })
  84772. if err != nil {
  84773. ec.Error(ctx, err)
  84774. return graphql.Null
  84775. }
  84776. if resTmp == nil {
  84777. if !graphql.HasFieldError(ctx, fc) {
  84778. ec.Errorf(ctx, "must not be null")
  84779. }
  84780. return graphql.Null
  84781. }
  84782. res := resTmp.([]MarketRegion)
  84783. fc.Result = res
  84784. return ec.marshalNMarketRegion2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketRegionᚄ(ctx, field.Selections, res)
  84785. }
  84786. func (ec *executionContext) fieldContext_MarketRegionConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  84787. fc = &graphql.FieldContext{
  84788. Object: "MarketRegionConnection",
  84789. Field: field,
  84790. IsMethod: false,
  84791. IsResolver: false,
  84792. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  84793. return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
  84794. },
  84795. }
  84796. return fc, nil
  84797. }
  84798. func (ec *executionContext) _MarketRegionConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *MarketRegionConnection) (ret graphql.Marshaler) {
  84799. fc, err := ec.fieldContext_MarketRegionConnection_pageInfo(ctx, field)
  84800. if err != nil {
  84801. return graphql.Null
  84802. }
  84803. ctx = graphql.WithFieldContext(ctx, fc)
  84804. defer func() {
  84805. if r := recover(); r != nil {
  84806. ec.Error(ctx, ec.Recover(ctx, r))
  84807. ret = graphql.Null
  84808. }
  84809. }()
  84810. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  84811. ctx = rctx // use context from middleware stack in children
  84812. return obj.PageInfo, nil
  84813. })
  84814. if err != nil {
  84815. ec.Error(ctx, err)
  84816. return graphql.Null
  84817. }
  84818. if resTmp == nil {
  84819. if !graphql.HasFieldError(ctx, fc) {
  84820. ec.Errorf(ctx, "must not be null")
  84821. }
  84822. return graphql.Null
  84823. }
  84824. res := resTmp.(*PageInfo)
  84825. fc.Result = res
  84826. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  84827. }
  84828. func (ec *executionContext) fieldContext_MarketRegionConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  84829. fc = &graphql.FieldContext{
  84830. Object: "MarketRegionConnection",
  84831. Field: field,
  84832. IsMethod: false,
  84833. IsResolver: false,
  84834. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  84835. switch field.Name {
  84836. case "endCursor":
  84837. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  84838. case "hasNextPage":
  84839. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  84840. case "hasPreviousPage":
  84841. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  84842. case "startCursor":
  84843. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  84844. }
  84845. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  84846. },
  84847. }
  84848. return fc, nil
  84849. }
  84850. func (ec *executionContext) _MarketRegionEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *MarketRegionEdge) (ret graphql.Marshaler) {
  84851. fc, err := ec.fieldContext_MarketRegionEdge_cursor(ctx, field)
  84852. if err != nil {
  84853. return graphql.Null
  84854. }
  84855. ctx = graphql.WithFieldContext(ctx, fc)
  84856. defer func() {
  84857. if r := recover(); r != nil {
  84858. ec.Error(ctx, ec.Recover(ctx, r))
  84859. ret = graphql.Null
  84860. }
  84861. }()
  84862. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  84863. ctx = rctx // use context from middleware stack in children
  84864. return obj.Cursor, nil
  84865. })
  84866. if err != nil {
  84867. ec.Error(ctx, err)
  84868. return graphql.Null
  84869. }
  84870. if resTmp == nil {
  84871. if !graphql.HasFieldError(ctx, fc) {
  84872. ec.Errorf(ctx, "must not be null")
  84873. }
  84874. return graphql.Null
  84875. }
  84876. res := resTmp.(string)
  84877. fc.Result = res
  84878. return ec.marshalNString2string(ctx, field.Selections, res)
  84879. }
  84880. func (ec *executionContext) fieldContext_MarketRegionEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  84881. fc = &graphql.FieldContext{
  84882. Object: "MarketRegionEdge",
  84883. Field: field,
  84884. IsMethod: false,
  84885. IsResolver: false,
  84886. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  84887. return nil, errors.New("field of type String does not have child fields")
  84888. },
  84889. }
  84890. return fc, nil
  84891. }
  84892. func (ec *executionContext) _MarketRegionEdge_node(ctx context.Context, field graphql.CollectedField, obj *MarketRegionEdge) (ret graphql.Marshaler) {
  84893. fc, err := ec.fieldContext_MarketRegionEdge_node(ctx, field)
  84894. if err != nil {
  84895. return graphql.Null
  84896. }
  84897. ctx = graphql.WithFieldContext(ctx, fc)
  84898. defer func() {
  84899. if r := recover(); r != nil {
  84900. ec.Error(ctx, ec.Recover(ctx, r))
  84901. ret = graphql.Null
  84902. }
  84903. }()
  84904. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  84905. ctx = rctx // use context from middleware stack in children
  84906. return obj.Node, nil
  84907. })
  84908. if err != nil {
  84909. ec.Error(ctx, err)
  84910. return graphql.Null
  84911. }
  84912. if resTmp == nil {
  84913. if !graphql.HasFieldError(ctx, fc) {
  84914. ec.Errorf(ctx, "must not be null")
  84915. }
  84916. return graphql.Null
  84917. }
  84918. res := resTmp.(MarketRegion)
  84919. fc.Result = res
  84920. return ec.marshalNMarketRegion2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketRegion(ctx, field.Selections, res)
  84921. }
  84922. func (ec *executionContext) fieldContext_MarketRegionEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  84923. fc = &graphql.FieldContext{
  84924. Object: "MarketRegionEdge",
  84925. Field: field,
  84926. IsMethod: false,
  84927. IsResolver: false,
  84928. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  84929. return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
  84930. },
  84931. }
  84932. return fc, nil
  84933. }
  84934. func (ec *executionContext) _MarketWebPresence_alternateLocales(ctx context.Context, field graphql.CollectedField, obj *MarketWebPresence) (ret graphql.Marshaler) {
  84935. fc, err := ec.fieldContext_MarketWebPresence_alternateLocales(ctx, field)
  84936. if err != nil {
  84937. return graphql.Null
  84938. }
  84939. ctx = graphql.WithFieldContext(ctx, fc)
  84940. defer func() {
  84941. if r := recover(); r != nil {
  84942. ec.Error(ctx, ec.Recover(ctx, r))
  84943. ret = graphql.Null
  84944. }
  84945. }()
  84946. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  84947. ctx = rctx // use context from middleware stack in children
  84948. return obj.AlternateLocales, nil
  84949. })
  84950. if err != nil {
  84951. ec.Error(ctx, err)
  84952. return graphql.Null
  84953. }
  84954. if resTmp == nil {
  84955. if !graphql.HasFieldError(ctx, fc) {
  84956. ec.Errorf(ctx, "must not be null")
  84957. }
  84958. return graphql.Null
  84959. }
  84960. res := resTmp.([]string)
  84961. fc.Result = res
  84962. return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
  84963. }
  84964. func (ec *executionContext) fieldContext_MarketWebPresence_alternateLocales(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  84965. fc = &graphql.FieldContext{
  84966. Object: "MarketWebPresence",
  84967. Field: field,
  84968. IsMethod: false,
  84969. IsResolver: false,
  84970. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  84971. return nil, errors.New("field of type String does not have child fields")
  84972. },
  84973. }
  84974. return fc, nil
  84975. }
  84976. func (ec *executionContext) _MarketWebPresence_defaultLocale(ctx context.Context, field graphql.CollectedField, obj *MarketWebPresence) (ret graphql.Marshaler) {
  84977. fc, err := ec.fieldContext_MarketWebPresence_defaultLocale(ctx, field)
  84978. if err != nil {
  84979. return graphql.Null
  84980. }
  84981. ctx = graphql.WithFieldContext(ctx, fc)
  84982. defer func() {
  84983. if r := recover(); r != nil {
  84984. ec.Error(ctx, ec.Recover(ctx, r))
  84985. ret = graphql.Null
  84986. }
  84987. }()
  84988. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  84989. ctx = rctx // use context from middleware stack in children
  84990. return obj.DefaultLocale, nil
  84991. })
  84992. if err != nil {
  84993. ec.Error(ctx, err)
  84994. return graphql.Null
  84995. }
  84996. if resTmp == nil {
  84997. if !graphql.HasFieldError(ctx, fc) {
  84998. ec.Errorf(ctx, "must not be null")
  84999. }
  85000. return graphql.Null
  85001. }
  85002. res := resTmp.(string)
  85003. fc.Result = res
  85004. return ec.marshalNString2string(ctx, field.Selections, res)
  85005. }
  85006. func (ec *executionContext) fieldContext_MarketWebPresence_defaultLocale(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  85007. fc = &graphql.FieldContext{
  85008. Object: "MarketWebPresence",
  85009. Field: field,
  85010. IsMethod: false,
  85011. IsResolver: false,
  85012. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  85013. return nil, errors.New("field of type String does not have child fields")
  85014. },
  85015. }
  85016. return fc, nil
  85017. }
  85018. func (ec *executionContext) _MarketWebPresence_domain(ctx context.Context, field graphql.CollectedField, obj *MarketWebPresence) (ret graphql.Marshaler) {
  85019. fc, err := ec.fieldContext_MarketWebPresence_domain(ctx, field)
  85020. if err != nil {
  85021. return graphql.Null
  85022. }
  85023. ctx = graphql.WithFieldContext(ctx, fc)
  85024. defer func() {
  85025. if r := recover(); r != nil {
  85026. ec.Error(ctx, ec.Recover(ctx, r))
  85027. ret = graphql.Null
  85028. }
  85029. }()
  85030. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  85031. ctx = rctx // use context from middleware stack in children
  85032. return obj.Domain, nil
  85033. })
  85034. if err != nil {
  85035. ec.Error(ctx, err)
  85036. return graphql.Null
  85037. }
  85038. if resTmp == nil {
  85039. return graphql.Null
  85040. }
  85041. res := resTmp.(*Domain)
  85042. fc.Result = res
  85043. return ec.marshalODomain2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDomain(ctx, field.Selections, res)
  85044. }
  85045. func (ec *executionContext) fieldContext_MarketWebPresence_domain(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  85046. fc = &graphql.FieldContext{
  85047. Object: "MarketWebPresence",
  85048. Field: field,
  85049. IsMethod: false,
  85050. IsResolver: false,
  85051. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  85052. switch field.Name {
  85053. case "host":
  85054. return ec.fieldContext_Domain_host(ctx, field)
  85055. case "id":
  85056. return ec.fieldContext_Domain_id(ctx, field)
  85057. case "localization":
  85058. return ec.fieldContext_Domain_localization(ctx, field)
  85059. case "marketWebPresence":
  85060. return ec.fieldContext_Domain_marketWebPresence(ctx, field)
  85061. case "sslEnabled":
  85062. return ec.fieldContext_Domain_sslEnabled(ctx, field)
  85063. case "url":
  85064. return ec.fieldContext_Domain_url(ctx, field)
  85065. }
  85066. return nil, fmt.Errorf("no field named %q was found under type Domain", field.Name)
  85067. },
  85068. }
  85069. return fc, nil
  85070. }
  85071. func (ec *executionContext) _MarketWebPresence_id(ctx context.Context, field graphql.CollectedField, obj *MarketWebPresence) (ret graphql.Marshaler) {
  85072. fc, err := ec.fieldContext_MarketWebPresence_id(ctx, field)
  85073. if err != nil {
  85074. return graphql.Null
  85075. }
  85076. ctx = graphql.WithFieldContext(ctx, fc)
  85077. defer func() {
  85078. if r := recover(); r != nil {
  85079. ec.Error(ctx, ec.Recover(ctx, r))
  85080. ret = graphql.Null
  85081. }
  85082. }()
  85083. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  85084. ctx = rctx // use context from middleware stack in children
  85085. return obj.ID, nil
  85086. })
  85087. if err != nil {
  85088. ec.Error(ctx, err)
  85089. return graphql.Null
  85090. }
  85091. if resTmp == nil {
  85092. if !graphql.HasFieldError(ctx, fc) {
  85093. ec.Errorf(ctx, "must not be null")
  85094. }
  85095. return graphql.Null
  85096. }
  85097. res := resTmp.(string)
  85098. fc.Result = res
  85099. return ec.marshalNID2string(ctx, field.Selections, res)
  85100. }
  85101. func (ec *executionContext) fieldContext_MarketWebPresence_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  85102. fc = &graphql.FieldContext{
  85103. Object: "MarketWebPresence",
  85104. Field: field,
  85105. IsMethod: false,
  85106. IsResolver: false,
  85107. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  85108. return nil, errors.New("field of type ID does not have child fields")
  85109. },
  85110. }
  85111. return fc, nil
  85112. }
  85113. func (ec *executionContext) _MarketWebPresence_market(ctx context.Context, field graphql.CollectedField, obj *MarketWebPresence) (ret graphql.Marshaler) {
  85114. fc, err := ec.fieldContext_MarketWebPresence_market(ctx, field)
  85115. if err != nil {
  85116. return graphql.Null
  85117. }
  85118. ctx = graphql.WithFieldContext(ctx, fc)
  85119. defer func() {
  85120. if r := recover(); r != nil {
  85121. ec.Error(ctx, ec.Recover(ctx, r))
  85122. ret = graphql.Null
  85123. }
  85124. }()
  85125. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  85126. ctx = rctx // use context from middleware stack in children
  85127. return obj.Market, nil
  85128. })
  85129. if err != nil {
  85130. ec.Error(ctx, err)
  85131. return graphql.Null
  85132. }
  85133. if resTmp == nil {
  85134. if !graphql.HasFieldError(ctx, fc) {
  85135. ec.Errorf(ctx, "must not be null")
  85136. }
  85137. return graphql.Null
  85138. }
  85139. res := resTmp.(*Market)
  85140. fc.Result = res
  85141. return ec.marshalNMarket2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarket(ctx, field.Selections, res)
  85142. }
  85143. func (ec *executionContext) fieldContext_MarketWebPresence_market(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  85144. fc = &graphql.FieldContext{
  85145. Object: "MarketWebPresence",
  85146. Field: field,
  85147. IsMethod: false,
  85148. IsResolver: false,
  85149. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  85150. switch field.Name {
  85151. case "currencySettings":
  85152. return ec.fieldContext_Market_currencySettings(ctx, field)
  85153. case "enabled":
  85154. return ec.fieldContext_Market_enabled(ctx, field)
  85155. case "id":
  85156. return ec.fieldContext_Market_id(ctx, field)
  85157. case "name":
  85158. return ec.fieldContext_Market_name(ctx, field)
  85159. case "priceList":
  85160. return ec.fieldContext_Market_priceList(ctx, field)
  85161. case "primary":
  85162. return ec.fieldContext_Market_primary(ctx, field)
  85163. case "regions":
  85164. return ec.fieldContext_Market_regions(ctx, field)
  85165. case "webPresence":
  85166. return ec.fieldContext_Market_webPresence(ctx, field)
  85167. }
  85168. return nil, fmt.Errorf("no field named %q was found under type Market", field.Name)
  85169. },
  85170. }
  85171. return fc, nil
  85172. }
  85173. func (ec *executionContext) _MarketWebPresence_rootUrls(ctx context.Context, field graphql.CollectedField, obj *MarketWebPresence) (ret graphql.Marshaler) {
  85174. fc, err := ec.fieldContext_MarketWebPresence_rootUrls(ctx, field)
  85175. if err != nil {
  85176. return graphql.Null
  85177. }
  85178. ctx = graphql.WithFieldContext(ctx, fc)
  85179. defer func() {
  85180. if r := recover(); r != nil {
  85181. ec.Error(ctx, ec.Recover(ctx, r))
  85182. ret = graphql.Null
  85183. }
  85184. }()
  85185. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  85186. ctx = rctx // use context from middleware stack in children
  85187. return obj.RootUrls, nil
  85188. })
  85189. if err != nil {
  85190. ec.Error(ctx, err)
  85191. return graphql.Null
  85192. }
  85193. if resTmp == nil {
  85194. if !graphql.HasFieldError(ctx, fc) {
  85195. ec.Errorf(ctx, "must not be null")
  85196. }
  85197. return graphql.Null
  85198. }
  85199. res := resTmp.([]*MarketWebPresenceRootURL)
  85200. fc.Result = res
  85201. return ec.marshalNMarketWebPresenceRootUrl2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketWebPresenceRootURLᚄ(ctx, field.Selections, res)
  85202. }
  85203. func (ec *executionContext) fieldContext_MarketWebPresence_rootUrls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  85204. fc = &graphql.FieldContext{
  85205. Object: "MarketWebPresence",
  85206. Field: field,
  85207. IsMethod: false,
  85208. IsResolver: false,
  85209. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  85210. switch field.Name {
  85211. case "locale":
  85212. return ec.fieldContext_MarketWebPresenceRootUrl_locale(ctx, field)
  85213. case "url":
  85214. return ec.fieldContext_MarketWebPresenceRootUrl_url(ctx, field)
  85215. }
  85216. return nil, fmt.Errorf("no field named %q was found under type MarketWebPresenceRootUrl", field.Name)
  85217. },
  85218. }
  85219. return fc, nil
  85220. }
  85221. func (ec *executionContext) _MarketWebPresence_subfolderSuffix(ctx context.Context, field graphql.CollectedField, obj *MarketWebPresence) (ret graphql.Marshaler) {
  85222. fc, err := ec.fieldContext_MarketWebPresence_subfolderSuffix(ctx, field)
  85223. if err != nil {
  85224. return graphql.Null
  85225. }
  85226. ctx = graphql.WithFieldContext(ctx, fc)
  85227. defer func() {
  85228. if r := recover(); r != nil {
  85229. ec.Error(ctx, ec.Recover(ctx, r))
  85230. ret = graphql.Null
  85231. }
  85232. }()
  85233. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  85234. ctx = rctx // use context from middleware stack in children
  85235. return obj.SubfolderSuffix, nil
  85236. })
  85237. if err != nil {
  85238. ec.Error(ctx, err)
  85239. return graphql.Null
  85240. }
  85241. if resTmp == nil {
  85242. return graphql.Null
  85243. }
  85244. res := resTmp.(*string)
  85245. fc.Result = res
  85246. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  85247. }
  85248. func (ec *executionContext) fieldContext_MarketWebPresence_subfolderSuffix(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  85249. fc = &graphql.FieldContext{
  85250. Object: "MarketWebPresence",
  85251. Field: field,
  85252. IsMethod: false,
  85253. IsResolver: false,
  85254. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  85255. return nil, errors.New("field of type String does not have child fields")
  85256. },
  85257. }
  85258. return fc, nil
  85259. }
  85260. func (ec *executionContext) _MarketWebPresenceRootUrl_locale(ctx context.Context, field graphql.CollectedField, obj *MarketWebPresenceRootURL) (ret graphql.Marshaler) {
  85261. fc, err := ec.fieldContext_MarketWebPresenceRootUrl_locale(ctx, field)
  85262. if err != nil {
  85263. return graphql.Null
  85264. }
  85265. ctx = graphql.WithFieldContext(ctx, fc)
  85266. defer func() {
  85267. if r := recover(); r != nil {
  85268. ec.Error(ctx, ec.Recover(ctx, r))
  85269. ret = graphql.Null
  85270. }
  85271. }()
  85272. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  85273. ctx = rctx // use context from middleware stack in children
  85274. return obj.Locale, nil
  85275. })
  85276. if err != nil {
  85277. ec.Error(ctx, err)
  85278. return graphql.Null
  85279. }
  85280. if resTmp == nil {
  85281. if !graphql.HasFieldError(ctx, fc) {
  85282. ec.Errorf(ctx, "must not be null")
  85283. }
  85284. return graphql.Null
  85285. }
  85286. res := resTmp.(string)
  85287. fc.Result = res
  85288. return ec.marshalNString2string(ctx, field.Selections, res)
  85289. }
  85290. func (ec *executionContext) fieldContext_MarketWebPresenceRootUrl_locale(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  85291. fc = &graphql.FieldContext{
  85292. Object: "MarketWebPresenceRootUrl",
  85293. Field: field,
  85294. IsMethod: false,
  85295. IsResolver: false,
  85296. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  85297. return nil, errors.New("field of type String does not have child fields")
  85298. },
  85299. }
  85300. return fc, nil
  85301. }
  85302. func (ec *executionContext) _MarketWebPresenceRootUrl_url(ctx context.Context, field graphql.CollectedField, obj *MarketWebPresenceRootURL) (ret graphql.Marshaler) {
  85303. fc, err := ec.fieldContext_MarketWebPresenceRootUrl_url(ctx, field)
  85304. if err != nil {
  85305. return graphql.Null
  85306. }
  85307. ctx = graphql.WithFieldContext(ctx, fc)
  85308. defer func() {
  85309. if r := recover(); r != nil {
  85310. ec.Error(ctx, ec.Recover(ctx, r))
  85311. ret = graphql.Null
  85312. }
  85313. }()
  85314. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  85315. ctx = rctx // use context from middleware stack in children
  85316. return obj.URL, nil
  85317. })
  85318. if err != nil {
  85319. ec.Error(ctx, err)
  85320. return graphql.Null
  85321. }
  85322. if resTmp == nil {
  85323. if !graphql.HasFieldError(ctx, fc) {
  85324. ec.Errorf(ctx, "must not be null")
  85325. }
  85326. return graphql.Null
  85327. }
  85328. res := resTmp.(string)
  85329. fc.Result = res
  85330. return ec.marshalNURL2string(ctx, field.Selections, res)
  85331. }
  85332. func (ec *executionContext) fieldContext_MarketWebPresenceRootUrl_url(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  85333. fc = &graphql.FieldContext{
  85334. Object: "MarketWebPresenceRootUrl",
  85335. Field: field,
  85336. IsMethod: false,
  85337. IsResolver: false,
  85338. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  85339. return nil, errors.New("field of type URL does not have child fields")
  85340. },
  85341. }
  85342. return fc, nil
  85343. }
  85344. func (ec *executionContext) _MarketingEvent_app(ctx context.Context, field graphql.CollectedField, obj *MarketingEvent) (ret graphql.Marshaler) {
  85345. fc, err := ec.fieldContext_MarketingEvent_app(ctx, field)
  85346. if err != nil {
  85347. return graphql.Null
  85348. }
  85349. ctx = graphql.WithFieldContext(ctx, fc)
  85350. defer func() {
  85351. if r := recover(); r != nil {
  85352. ec.Error(ctx, ec.Recover(ctx, r))
  85353. ret = graphql.Null
  85354. }
  85355. }()
  85356. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  85357. ctx = rctx // use context from middleware stack in children
  85358. return obj.App, nil
  85359. })
  85360. if err != nil {
  85361. ec.Error(ctx, err)
  85362. return graphql.Null
  85363. }
  85364. if resTmp == nil {
  85365. if !graphql.HasFieldError(ctx, fc) {
  85366. ec.Errorf(ctx, "must not be null")
  85367. }
  85368. return graphql.Null
  85369. }
  85370. res := resTmp.(*App)
  85371. fc.Result = res
  85372. return ec.marshalNApp2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐApp(ctx, field.Selections, res)
  85373. }
  85374. func (ec *executionContext) fieldContext_MarketingEvent_app(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  85375. fc = &graphql.FieldContext{
  85376. Object: "MarketingEvent",
  85377. Field: field,
  85378. IsMethod: false,
  85379. IsResolver: false,
  85380. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  85381. switch field.Name {
  85382. case "apiKey":
  85383. return ec.fieldContext_App_apiKey(ctx, field)
  85384. case "appStoreAppUrl":
  85385. return ec.fieldContext_App_appStoreAppUrl(ctx, field)
  85386. case "appStoreDeveloperUrl":
  85387. return ec.fieldContext_App_appStoreDeveloperUrl(ctx, field)
  85388. case "availableAccessScopes":
  85389. return ec.fieldContext_App_availableAccessScopes(ctx, field)
  85390. case "banner":
  85391. return ec.fieldContext_App_banner(ctx, field)
  85392. case "description":
  85393. return ec.fieldContext_App_description(ctx, field)
  85394. case "developerName":
  85395. return ec.fieldContext_App_developerName(ctx, field)
  85396. case "developerType":
  85397. return ec.fieldContext_App_developerType(ctx, field)
  85398. case "embedded":
  85399. return ec.fieldContext_App_embedded(ctx, field)
  85400. case "failedRequirements":
  85401. return ec.fieldContext_App_failedRequirements(ctx, field)
  85402. case "features":
  85403. return ec.fieldContext_App_features(ctx, field)
  85404. case "feedback":
  85405. return ec.fieldContext_App_feedback(ctx, field)
  85406. case "handle":
  85407. return ec.fieldContext_App_handle(ctx, field)
  85408. case "icon":
  85409. return ec.fieldContext_App_icon(ctx, field)
  85410. case "id":
  85411. return ec.fieldContext_App_id(ctx, field)
  85412. case "installUrl":
  85413. return ec.fieldContext_App_installUrl(ctx, field)
  85414. case "installation":
  85415. return ec.fieldContext_App_installation(ctx, field)
  85416. case "isPostPurchaseAppInUse":
  85417. return ec.fieldContext_App_isPostPurchaseAppInUse(ctx, field)
  85418. case "previouslyInstalled":
  85419. return ec.fieldContext_App_previouslyInstalled(ctx, field)
  85420. case "pricingDetails":
  85421. return ec.fieldContext_App_pricingDetails(ctx, field)
  85422. case "pricingDetailsSummary":
  85423. return ec.fieldContext_App_pricingDetailsSummary(ctx, field)
  85424. case "privacyPolicyUrl":
  85425. return ec.fieldContext_App_privacyPolicyUrl(ctx, field)
  85426. case "publicCategory":
  85427. return ec.fieldContext_App_publicCategory(ctx, field)
  85428. case "published":
  85429. return ec.fieldContext_App_published(ctx, field)
  85430. case "requestedAccessScopes":
  85431. return ec.fieldContext_App_requestedAccessScopes(ctx, field)
  85432. case "screenshots":
  85433. return ec.fieldContext_App_screenshots(ctx, field)
  85434. case "shopifyDeveloped":
  85435. return ec.fieldContext_App_shopifyDeveloped(ctx, field)
  85436. case "title":
  85437. return ec.fieldContext_App_title(ctx, field)
  85438. case "uninstallMessage":
  85439. return ec.fieldContext_App_uninstallMessage(ctx, field)
  85440. case "webhookApiVersion":
  85441. return ec.fieldContext_App_webhookApiVersion(ctx, field)
  85442. }
  85443. return nil, fmt.Errorf("no field named %q was found under type App", field.Name)
  85444. },
  85445. }
  85446. return fc, nil
  85447. }
  85448. func (ec *executionContext) _MarketingEvent_channel(ctx context.Context, field graphql.CollectedField, obj *MarketingEvent) (ret graphql.Marshaler) {
  85449. fc, err := ec.fieldContext_MarketingEvent_channel(ctx, field)
  85450. if err != nil {
  85451. return graphql.Null
  85452. }
  85453. ctx = graphql.WithFieldContext(ctx, fc)
  85454. defer func() {
  85455. if r := recover(); r != nil {
  85456. ec.Error(ctx, ec.Recover(ctx, r))
  85457. ret = graphql.Null
  85458. }
  85459. }()
  85460. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  85461. ctx = rctx // use context from middleware stack in children
  85462. return obj.Channel, nil
  85463. })
  85464. if err != nil {
  85465. ec.Error(ctx, err)
  85466. return graphql.Null
  85467. }
  85468. if resTmp == nil {
  85469. return graphql.Null
  85470. }
  85471. res := resTmp.(*MarketingChannel)
  85472. fc.Result = res
  85473. return ec.marshalOMarketingChannel2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketingChannel(ctx, field.Selections, res)
  85474. }
  85475. func (ec *executionContext) fieldContext_MarketingEvent_channel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  85476. fc = &graphql.FieldContext{
  85477. Object: "MarketingEvent",
  85478. Field: field,
  85479. IsMethod: false,
  85480. IsResolver: false,
  85481. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  85482. return nil, errors.New("field of type MarketingChannel does not have child fields")
  85483. },
  85484. }
  85485. return fc, nil
  85486. }
  85487. func (ec *executionContext) _MarketingEvent_description(ctx context.Context, field graphql.CollectedField, obj *MarketingEvent) (ret graphql.Marshaler) {
  85488. fc, err := ec.fieldContext_MarketingEvent_description(ctx, field)
  85489. if err != nil {
  85490. return graphql.Null
  85491. }
  85492. ctx = graphql.WithFieldContext(ctx, fc)
  85493. defer func() {
  85494. if r := recover(); r != nil {
  85495. ec.Error(ctx, ec.Recover(ctx, r))
  85496. ret = graphql.Null
  85497. }
  85498. }()
  85499. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  85500. ctx = rctx // use context from middleware stack in children
  85501. return obj.Description, nil
  85502. })
  85503. if err != nil {
  85504. ec.Error(ctx, err)
  85505. return graphql.Null
  85506. }
  85507. if resTmp == nil {
  85508. return graphql.Null
  85509. }
  85510. res := resTmp.(*string)
  85511. fc.Result = res
  85512. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  85513. }
  85514. func (ec *executionContext) fieldContext_MarketingEvent_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  85515. fc = &graphql.FieldContext{
  85516. Object: "MarketingEvent",
  85517. Field: field,
  85518. IsMethod: false,
  85519. IsResolver: false,
  85520. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  85521. return nil, errors.New("field of type String does not have child fields")
  85522. },
  85523. }
  85524. return fc, nil
  85525. }
  85526. func (ec *executionContext) _MarketingEvent_endedAt(ctx context.Context, field graphql.CollectedField, obj *MarketingEvent) (ret graphql.Marshaler) {
  85527. fc, err := ec.fieldContext_MarketingEvent_endedAt(ctx, field)
  85528. if err != nil {
  85529. return graphql.Null
  85530. }
  85531. ctx = graphql.WithFieldContext(ctx, fc)
  85532. defer func() {
  85533. if r := recover(); r != nil {
  85534. ec.Error(ctx, ec.Recover(ctx, r))
  85535. ret = graphql.Null
  85536. }
  85537. }()
  85538. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  85539. ctx = rctx // use context from middleware stack in children
  85540. return obj.EndedAt, nil
  85541. })
  85542. if err != nil {
  85543. ec.Error(ctx, err)
  85544. return graphql.Null
  85545. }
  85546. if resTmp == nil {
  85547. return graphql.Null
  85548. }
  85549. res := resTmp.(*string)
  85550. fc.Result = res
  85551. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  85552. }
  85553. func (ec *executionContext) fieldContext_MarketingEvent_endedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  85554. fc = &graphql.FieldContext{
  85555. Object: "MarketingEvent",
  85556. Field: field,
  85557. IsMethod: false,
  85558. IsResolver: false,
  85559. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  85560. return nil, errors.New("field of type DateTime does not have child fields")
  85561. },
  85562. }
  85563. return fc, nil
  85564. }
  85565. func (ec *executionContext) _MarketingEvent_id(ctx context.Context, field graphql.CollectedField, obj *MarketingEvent) (ret graphql.Marshaler) {
  85566. fc, err := ec.fieldContext_MarketingEvent_id(ctx, field)
  85567. if err != nil {
  85568. return graphql.Null
  85569. }
  85570. ctx = graphql.WithFieldContext(ctx, fc)
  85571. defer func() {
  85572. if r := recover(); r != nil {
  85573. ec.Error(ctx, ec.Recover(ctx, r))
  85574. ret = graphql.Null
  85575. }
  85576. }()
  85577. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  85578. ctx = rctx // use context from middleware stack in children
  85579. return obj.ID, nil
  85580. })
  85581. if err != nil {
  85582. ec.Error(ctx, err)
  85583. return graphql.Null
  85584. }
  85585. if resTmp == nil {
  85586. if !graphql.HasFieldError(ctx, fc) {
  85587. ec.Errorf(ctx, "must not be null")
  85588. }
  85589. return graphql.Null
  85590. }
  85591. res := resTmp.(string)
  85592. fc.Result = res
  85593. return ec.marshalNID2string(ctx, field.Selections, res)
  85594. }
  85595. func (ec *executionContext) fieldContext_MarketingEvent_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  85596. fc = &graphql.FieldContext{
  85597. Object: "MarketingEvent",
  85598. Field: field,
  85599. IsMethod: false,
  85600. IsResolver: false,
  85601. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  85602. return nil, errors.New("field of type ID does not have child fields")
  85603. },
  85604. }
  85605. return fc, nil
  85606. }
  85607. func (ec *executionContext) _MarketingEvent_legacyResourceId(ctx context.Context, field graphql.CollectedField, obj *MarketingEvent) (ret graphql.Marshaler) {
  85608. fc, err := ec.fieldContext_MarketingEvent_legacyResourceId(ctx, field)
  85609. if err != nil {
  85610. return graphql.Null
  85611. }
  85612. ctx = graphql.WithFieldContext(ctx, fc)
  85613. defer func() {
  85614. if r := recover(); r != nil {
  85615. ec.Error(ctx, ec.Recover(ctx, r))
  85616. ret = graphql.Null
  85617. }
  85618. }()
  85619. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  85620. ctx = rctx // use context from middleware stack in children
  85621. return obj.LegacyResourceID, nil
  85622. })
  85623. if err != nil {
  85624. ec.Error(ctx, err)
  85625. return graphql.Null
  85626. }
  85627. if resTmp == nil {
  85628. if !graphql.HasFieldError(ctx, fc) {
  85629. ec.Errorf(ctx, "must not be null")
  85630. }
  85631. return graphql.Null
  85632. }
  85633. res := resTmp.(string)
  85634. fc.Result = res
  85635. return ec.marshalNUnsignedInt642string(ctx, field.Selections, res)
  85636. }
  85637. func (ec *executionContext) fieldContext_MarketingEvent_legacyResourceId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  85638. fc = &graphql.FieldContext{
  85639. Object: "MarketingEvent",
  85640. Field: field,
  85641. IsMethod: false,
  85642. IsResolver: false,
  85643. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  85644. return nil, errors.New("field of type UnsignedInt64 does not have child fields")
  85645. },
  85646. }
  85647. return fc, nil
  85648. }
  85649. func (ec *executionContext) _MarketingEvent_manageUrl(ctx context.Context, field graphql.CollectedField, obj *MarketingEvent) (ret graphql.Marshaler) {
  85650. fc, err := ec.fieldContext_MarketingEvent_manageUrl(ctx, field)
  85651. if err != nil {
  85652. return graphql.Null
  85653. }
  85654. ctx = graphql.WithFieldContext(ctx, fc)
  85655. defer func() {
  85656. if r := recover(); r != nil {
  85657. ec.Error(ctx, ec.Recover(ctx, r))
  85658. ret = graphql.Null
  85659. }
  85660. }()
  85661. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  85662. ctx = rctx // use context from middleware stack in children
  85663. return obj.ManageURL, nil
  85664. })
  85665. if err != nil {
  85666. ec.Error(ctx, err)
  85667. return graphql.Null
  85668. }
  85669. if resTmp == nil {
  85670. return graphql.Null
  85671. }
  85672. res := resTmp.(*string)
  85673. fc.Result = res
  85674. return ec.marshalOURL2ᚖstring(ctx, field.Selections, res)
  85675. }
  85676. func (ec *executionContext) fieldContext_MarketingEvent_manageUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  85677. fc = &graphql.FieldContext{
  85678. Object: "MarketingEvent",
  85679. Field: field,
  85680. IsMethod: false,
  85681. IsResolver: false,
  85682. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  85683. return nil, errors.New("field of type URL does not have child fields")
  85684. },
  85685. }
  85686. return fc, nil
  85687. }
  85688. func (ec *executionContext) _MarketingEvent_previewUrl(ctx context.Context, field graphql.CollectedField, obj *MarketingEvent) (ret graphql.Marshaler) {
  85689. fc, err := ec.fieldContext_MarketingEvent_previewUrl(ctx, field)
  85690. if err != nil {
  85691. return graphql.Null
  85692. }
  85693. ctx = graphql.WithFieldContext(ctx, fc)
  85694. defer func() {
  85695. if r := recover(); r != nil {
  85696. ec.Error(ctx, ec.Recover(ctx, r))
  85697. ret = graphql.Null
  85698. }
  85699. }()
  85700. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  85701. ctx = rctx // use context from middleware stack in children
  85702. return obj.PreviewURL, nil
  85703. })
  85704. if err != nil {
  85705. ec.Error(ctx, err)
  85706. return graphql.Null
  85707. }
  85708. if resTmp == nil {
  85709. return graphql.Null
  85710. }
  85711. res := resTmp.(*string)
  85712. fc.Result = res
  85713. return ec.marshalOURL2ᚖstring(ctx, field.Selections, res)
  85714. }
  85715. func (ec *executionContext) fieldContext_MarketingEvent_previewUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  85716. fc = &graphql.FieldContext{
  85717. Object: "MarketingEvent",
  85718. Field: field,
  85719. IsMethod: false,
  85720. IsResolver: false,
  85721. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  85722. return nil, errors.New("field of type URL does not have child fields")
  85723. },
  85724. }
  85725. return fc, nil
  85726. }
  85727. func (ec *executionContext) _MarketingEvent_remoteId(ctx context.Context, field graphql.CollectedField, obj *MarketingEvent) (ret graphql.Marshaler) {
  85728. fc, err := ec.fieldContext_MarketingEvent_remoteId(ctx, field)
  85729. if err != nil {
  85730. return graphql.Null
  85731. }
  85732. ctx = graphql.WithFieldContext(ctx, fc)
  85733. defer func() {
  85734. if r := recover(); r != nil {
  85735. ec.Error(ctx, ec.Recover(ctx, r))
  85736. ret = graphql.Null
  85737. }
  85738. }()
  85739. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  85740. ctx = rctx // use context from middleware stack in children
  85741. return obj.RemoteID, nil
  85742. })
  85743. if err != nil {
  85744. ec.Error(ctx, err)
  85745. return graphql.Null
  85746. }
  85747. if resTmp == nil {
  85748. return graphql.Null
  85749. }
  85750. res := resTmp.(*string)
  85751. fc.Result = res
  85752. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  85753. }
  85754. func (ec *executionContext) fieldContext_MarketingEvent_remoteId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  85755. fc = &graphql.FieldContext{
  85756. Object: "MarketingEvent",
  85757. Field: field,
  85758. IsMethod: false,
  85759. IsResolver: false,
  85760. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  85761. return nil, errors.New("field of type String does not have child fields")
  85762. },
  85763. }
  85764. return fc, nil
  85765. }
  85766. func (ec *executionContext) _MarketingEvent_scheduledToEndAt(ctx context.Context, field graphql.CollectedField, obj *MarketingEvent) (ret graphql.Marshaler) {
  85767. fc, err := ec.fieldContext_MarketingEvent_scheduledToEndAt(ctx, field)
  85768. if err != nil {
  85769. return graphql.Null
  85770. }
  85771. ctx = graphql.WithFieldContext(ctx, fc)
  85772. defer func() {
  85773. if r := recover(); r != nil {
  85774. ec.Error(ctx, ec.Recover(ctx, r))
  85775. ret = graphql.Null
  85776. }
  85777. }()
  85778. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  85779. ctx = rctx // use context from middleware stack in children
  85780. return obj.ScheduledToEndAt, nil
  85781. })
  85782. if err != nil {
  85783. ec.Error(ctx, err)
  85784. return graphql.Null
  85785. }
  85786. if resTmp == nil {
  85787. return graphql.Null
  85788. }
  85789. res := resTmp.(*string)
  85790. fc.Result = res
  85791. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  85792. }
  85793. func (ec *executionContext) fieldContext_MarketingEvent_scheduledToEndAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  85794. fc = &graphql.FieldContext{
  85795. Object: "MarketingEvent",
  85796. Field: field,
  85797. IsMethod: false,
  85798. IsResolver: false,
  85799. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  85800. return nil, errors.New("field of type DateTime does not have child fields")
  85801. },
  85802. }
  85803. return fc, nil
  85804. }
  85805. func (ec *executionContext) _MarketingEvent_sourceAndMedium(ctx context.Context, field graphql.CollectedField, obj *MarketingEvent) (ret graphql.Marshaler) {
  85806. fc, err := ec.fieldContext_MarketingEvent_sourceAndMedium(ctx, field)
  85807. if err != nil {
  85808. return graphql.Null
  85809. }
  85810. ctx = graphql.WithFieldContext(ctx, fc)
  85811. defer func() {
  85812. if r := recover(); r != nil {
  85813. ec.Error(ctx, ec.Recover(ctx, r))
  85814. ret = graphql.Null
  85815. }
  85816. }()
  85817. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  85818. ctx = rctx // use context from middleware stack in children
  85819. return obj.SourceAndMedium, nil
  85820. })
  85821. if err != nil {
  85822. ec.Error(ctx, err)
  85823. return graphql.Null
  85824. }
  85825. if resTmp == nil {
  85826. if !graphql.HasFieldError(ctx, fc) {
  85827. ec.Errorf(ctx, "must not be null")
  85828. }
  85829. return graphql.Null
  85830. }
  85831. res := resTmp.(string)
  85832. fc.Result = res
  85833. return ec.marshalNString2string(ctx, field.Selections, res)
  85834. }
  85835. func (ec *executionContext) fieldContext_MarketingEvent_sourceAndMedium(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  85836. fc = &graphql.FieldContext{
  85837. Object: "MarketingEvent",
  85838. Field: field,
  85839. IsMethod: false,
  85840. IsResolver: false,
  85841. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  85842. return nil, errors.New("field of type String does not have child fields")
  85843. },
  85844. }
  85845. return fc, nil
  85846. }
  85847. func (ec *executionContext) _MarketingEvent_startedAt(ctx context.Context, field graphql.CollectedField, obj *MarketingEvent) (ret graphql.Marshaler) {
  85848. fc, err := ec.fieldContext_MarketingEvent_startedAt(ctx, field)
  85849. if err != nil {
  85850. return graphql.Null
  85851. }
  85852. ctx = graphql.WithFieldContext(ctx, fc)
  85853. defer func() {
  85854. if r := recover(); r != nil {
  85855. ec.Error(ctx, ec.Recover(ctx, r))
  85856. ret = graphql.Null
  85857. }
  85858. }()
  85859. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  85860. ctx = rctx // use context from middleware stack in children
  85861. return obj.StartedAt, nil
  85862. })
  85863. if err != nil {
  85864. ec.Error(ctx, err)
  85865. return graphql.Null
  85866. }
  85867. if resTmp == nil {
  85868. if !graphql.HasFieldError(ctx, fc) {
  85869. ec.Errorf(ctx, "must not be null")
  85870. }
  85871. return graphql.Null
  85872. }
  85873. res := resTmp.(string)
  85874. fc.Result = res
  85875. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  85876. }
  85877. func (ec *executionContext) fieldContext_MarketingEvent_startedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  85878. fc = &graphql.FieldContext{
  85879. Object: "MarketingEvent",
  85880. Field: field,
  85881. IsMethod: false,
  85882. IsResolver: false,
  85883. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  85884. return nil, errors.New("field of type DateTime does not have child fields")
  85885. },
  85886. }
  85887. return fc, nil
  85888. }
  85889. func (ec *executionContext) _MarketingEvent_type(ctx context.Context, field graphql.CollectedField, obj *MarketingEvent) (ret graphql.Marshaler) {
  85890. fc, err := ec.fieldContext_MarketingEvent_type(ctx, field)
  85891. if err != nil {
  85892. return graphql.Null
  85893. }
  85894. ctx = graphql.WithFieldContext(ctx, fc)
  85895. defer func() {
  85896. if r := recover(); r != nil {
  85897. ec.Error(ctx, ec.Recover(ctx, r))
  85898. ret = graphql.Null
  85899. }
  85900. }()
  85901. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  85902. ctx = rctx // use context from middleware stack in children
  85903. return obj.Type, nil
  85904. })
  85905. if err != nil {
  85906. ec.Error(ctx, err)
  85907. return graphql.Null
  85908. }
  85909. if resTmp == nil {
  85910. if !graphql.HasFieldError(ctx, fc) {
  85911. ec.Errorf(ctx, "must not be null")
  85912. }
  85913. return graphql.Null
  85914. }
  85915. res := resTmp.(MarketingTactic)
  85916. fc.Result = res
  85917. return ec.marshalNMarketingTactic2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketingTactic(ctx, field.Selections, res)
  85918. }
  85919. func (ec *executionContext) fieldContext_MarketingEvent_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  85920. fc = &graphql.FieldContext{
  85921. Object: "MarketingEvent",
  85922. Field: field,
  85923. IsMethod: false,
  85924. IsResolver: false,
  85925. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  85926. return nil, errors.New("field of type MarketingTactic does not have child fields")
  85927. },
  85928. }
  85929. return fc, nil
  85930. }
  85931. func (ec *executionContext) _MarketingEvent_utmCampaign(ctx context.Context, field graphql.CollectedField, obj *MarketingEvent) (ret graphql.Marshaler) {
  85932. fc, err := ec.fieldContext_MarketingEvent_utmCampaign(ctx, field)
  85933. if err != nil {
  85934. return graphql.Null
  85935. }
  85936. ctx = graphql.WithFieldContext(ctx, fc)
  85937. defer func() {
  85938. if r := recover(); r != nil {
  85939. ec.Error(ctx, ec.Recover(ctx, r))
  85940. ret = graphql.Null
  85941. }
  85942. }()
  85943. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  85944. ctx = rctx // use context from middleware stack in children
  85945. return obj.UtmCampaign, nil
  85946. })
  85947. if err != nil {
  85948. ec.Error(ctx, err)
  85949. return graphql.Null
  85950. }
  85951. if resTmp == nil {
  85952. return graphql.Null
  85953. }
  85954. res := resTmp.(*string)
  85955. fc.Result = res
  85956. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  85957. }
  85958. func (ec *executionContext) fieldContext_MarketingEvent_utmCampaign(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  85959. fc = &graphql.FieldContext{
  85960. Object: "MarketingEvent",
  85961. Field: field,
  85962. IsMethod: false,
  85963. IsResolver: false,
  85964. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  85965. return nil, errors.New("field of type String does not have child fields")
  85966. },
  85967. }
  85968. return fc, nil
  85969. }
  85970. func (ec *executionContext) _MarketingEvent_utmMedium(ctx context.Context, field graphql.CollectedField, obj *MarketingEvent) (ret graphql.Marshaler) {
  85971. fc, err := ec.fieldContext_MarketingEvent_utmMedium(ctx, field)
  85972. if err != nil {
  85973. return graphql.Null
  85974. }
  85975. ctx = graphql.WithFieldContext(ctx, fc)
  85976. defer func() {
  85977. if r := recover(); r != nil {
  85978. ec.Error(ctx, ec.Recover(ctx, r))
  85979. ret = graphql.Null
  85980. }
  85981. }()
  85982. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  85983. ctx = rctx // use context from middleware stack in children
  85984. return obj.UtmMedium, nil
  85985. })
  85986. if err != nil {
  85987. ec.Error(ctx, err)
  85988. return graphql.Null
  85989. }
  85990. if resTmp == nil {
  85991. return graphql.Null
  85992. }
  85993. res := resTmp.(*string)
  85994. fc.Result = res
  85995. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  85996. }
  85997. func (ec *executionContext) fieldContext_MarketingEvent_utmMedium(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  85998. fc = &graphql.FieldContext{
  85999. Object: "MarketingEvent",
  86000. Field: field,
  86001. IsMethod: false,
  86002. IsResolver: false,
  86003. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  86004. return nil, errors.New("field of type String does not have child fields")
  86005. },
  86006. }
  86007. return fc, nil
  86008. }
  86009. func (ec *executionContext) _MarketingEvent_utmSource(ctx context.Context, field graphql.CollectedField, obj *MarketingEvent) (ret graphql.Marshaler) {
  86010. fc, err := ec.fieldContext_MarketingEvent_utmSource(ctx, field)
  86011. if err != nil {
  86012. return graphql.Null
  86013. }
  86014. ctx = graphql.WithFieldContext(ctx, fc)
  86015. defer func() {
  86016. if r := recover(); r != nil {
  86017. ec.Error(ctx, ec.Recover(ctx, r))
  86018. ret = graphql.Null
  86019. }
  86020. }()
  86021. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  86022. ctx = rctx // use context from middleware stack in children
  86023. return obj.UtmSource, nil
  86024. })
  86025. if err != nil {
  86026. ec.Error(ctx, err)
  86027. return graphql.Null
  86028. }
  86029. if resTmp == nil {
  86030. return graphql.Null
  86031. }
  86032. res := resTmp.(*string)
  86033. fc.Result = res
  86034. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  86035. }
  86036. func (ec *executionContext) fieldContext_MarketingEvent_utmSource(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  86037. fc = &graphql.FieldContext{
  86038. Object: "MarketingEvent",
  86039. Field: field,
  86040. IsMethod: false,
  86041. IsResolver: false,
  86042. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  86043. return nil, errors.New("field of type String does not have child fields")
  86044. },
  86045. }
  86046. return fc, nil
  86047. }
  86048. func (ec *executionContext) _MediaConnection_edges(ctx context.Context, field graphql.CollectedField, obj *MediaConnection) (ret graphql.Marshaler) {
  86049. fc, err := ec.fieldContext_MediaConnection_edges(ctx, field)
  86050. if err != nil {
  86051. return graphql.Null
  86052. }
  86053. ctx = graphql.WithFieldContext(ctx, fc)
  86054. defer func() {
  86055. if r := recover(); r != nil {
  86056. ec.Error(ctx, ec.Recover(ctx, r))
  86057. ret = graphql.Null
  86058. }
  86059. }()
  86060. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  86061. ctx = rctx // use context from middleware stack in children
  86062. return obj.Edges, nil
  86063. })
  86064. if err != nil {
  86065. ec.Error(ctx, err)
  86066. return graphql.Null
  86067. }
  86068. if resTmp == nil {
  86069. if !graphql.HasFieldError(ctx, fc) {
  86070. ec.Errorf(ctx, "must not be null")
  86071. }
  86072. return graphql.Null
  86073. }
  86074. res := resTmp.([]*MediaEdge)
  86075. fc.Result = res
  86076. return ec.marshalNMediaEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaEdgeᚄ(ctx, field.Selections, res)
  86077. }
  86078. func (ec *executionContext) fieldContext_MediaConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  86079. fc = &graphql.FieldContext{
  86080. Object: "MediaConnection",
  86081. Field: field,
  86082. IsMethod: false,
  86083. IsResolver: false,
  86084. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  86085. switch field.Name {
  86086. case "cursor":
  86087. return ec.fieldContext_MediaEdge_cursor(ctx, field)
  86088. case "node":
  86089. return ec.fieldContext_MediaEdge_node(ctx, field)
  86090. }
  86091. return nil, fmt.Errorf("no field named %q was found under type MediaEdge", field.Name)
  86092. },
  86093. }
  86094. return fc, nil
  86095. }
  86096. func (ec *executionContext) _MediaConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *MediaConnection) (ret graphql.Marshaler) {
  86097. fc, err := ec.fieldContext_MediaConnection_nodes(ctx, field)
  86098. if err != nil {
  86099. return graphql.Null
  86100. }
  86101. ctx = graphql.WithFieldContext(ctx, fc)
  86102. defer func() {
  86103. if r := recover(); r != nil {
  86104. ec.Error(ctx, ec.Recover(ctx, r))
  86105. ret = graphql.Null
  86106. }
  86107. }()
  86108. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  86109. ctx = rctx // use context from middleware stack in children
  86110. return obj.Nodes, nil
  86111. })
  86112. if err != nil {
  86113. ec.Error(ctx, err)
  86114. return graphql.Null
  86115. }
  86116. if resTmp == nil {
  86117. if !graphql.HasFieldError(ctx, fc) {
  86118. ec.Errorf(ctx, "must not be null")
  86119. }
  86120. return graphql.Null
  86121. }
  86122. res := resTmp.([]Media)
  86123. fc.Result = res
  86124. return ec.marshalNMedia2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaᚄ(ctx, field.Selections, res)
  86125. }
  86126. func (ec *executionContext) fieldContext_MediaConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  86127. fc = &graphql.FieldContext{
  86128. Object: "MediaConnection",
  86129. Field: field,
  86130. IsMethod: false,
  86131. IsResolver: false,
  86132. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  86133. return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
  86134. },
  86135. }
  86136. return fc, nil
  86137. }
  86138. func (ec *executionContext) _MediaConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *MediaConnection) (ret graphql.Marshaler) {
  86139. fc, err := ec.fieldContext_MediaConnection_pageInfo(ctx, field)
  86140. if err != nil {
  86141. return graphql.Null
  86142. }
  86143. ctx = graphql.WithFieldContext(ctx, fc)
  86144. defer func() {
  86145. if r := recover(); r != nil {
  86146. ec.Error(ctx, ec.Recover(ctx, r))
  86147. ret = graphql.Null
  86148. }
  86149. }()
  86150. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  86151. ctx = rctx // use context from middleware stack in children
  86152. return obj.PageInfo, nil
  86153. })
  86154. if err != nil {
  86155. ec.Error(ctx, err)
  86156. return graphql.Null
  86157. }
  86158. if resTmp == nil {
  86159. if !graphql.HasFieldError(ctx, fc) {
  86160. ec.Errorf(ctx, "must not be null")
  86161. }
  86162. return graphql.Null
  86163. }
  86164. res := resTmp.(*PageInfo)
  86165. fc.Result = res
  86166. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  86167. }
  86168. func (ec *executionContext) fieldContext_MediaConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  86169. fc = &graphql.FieldContext{
  86170. Object: "MediaConnection",
  86171. Field: field,
  86172. IsMethod: false,
  86173. IsResolver: false,
  86174. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  86175. switch field.Name {
  86176. case "endCursor":
  86177. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  86178. case "hasNextPage":
  86179. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  86180. case "hasPreviousPage":
  86181. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  86182. case "startCursor":
  86183. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  86184. }
  86185. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  86186. },
  86187. }
  86188. return fc, nil
  86189. }
  86190. func (ec *executionContext) _MediaEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *MediaEdge) (ret graphql.Marshaler) {
  86191. fc, err := ec.fieldContext_MediaEdge_cursor(ctx, field)
  86192. if err != nil {
  86193. return graphql.Null
  86194. }
  86195. ctx = graphql.WithFieldContext(ctx, fc)
  86196. defer func() {
  86197. if r := recover(); r != nil {
  86198. ec.Error(ctx, ec.Recover(ctx, r))
  86199. ret = graphql.Null
  86200. }
  86201. }()
  86202. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  86203. ctx = rctx // use context from middleware stack in children
  86204. return obj.Cursor, nil
  86205. })
  86206. if err != nil {
  86207. ec.Error(ctx, err)
  86208. return graphql.Null
  86209. }
  86210. if resTmp == nil {
  86211. if !graphql.HasFieldError(ctx, fc) {
  86212. ec.Errorf(ctx, "must not be null")
  86213. }
  86214. return graphql.Null
  86215. }
  86216. res := resTmp.(string)
  86217. fc.Result = res
  86218. return ec.marshalNString2string(ctx, field.Selections, res)
  86219. }
  86220. func (ec *executionContext) fieldContext_MediaEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  86221. fc = &graphql.FieldContext{
  86222. Object: "MediaEdge",
  86223. Field: field,
  86224. IsMethod: false,
  86225. IsResolver: false,
  86226. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  86227. return nil, errors.New("field of type String does not have child fields")
  86228. },
  86229. }
  86230. return fc, nil
  86231. }
  86232. func (ec *executionContext) _MediaEdge_node(ctx context.Context, field graphql.CollectedField, obj *MediaEdge) (ret graphql.Marshaler) {
  86233. fc, err := ec.fieldContext_MediaEdge_node(ctx, field)
  86234. if err != nil {
  86235. return graphql.Null
  86236. }
  86237. ctx = graphql.WithFieldContext(ctx, fc)
  86238. defer func() {
  86239. if r := recover(); r != nil {
  86240. ec.Error(ctx, ec.Recover(ctx, r))
  86241. ret = graphql.Null
  86242. }
  86243. }()
  86244. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  86245. ctx = rctx // use context from middleware stack in children
  86246. return obj.Node, nil
  86247. })
  86248. if err != nil {
  86249. ec.Error(ctx, err)
  86250. return graphql.Null
  86251. }
  86252. if resTmp == nil {
  86253. if !graphql.HasFieldError(ctx, fc) {
  86254. ec.Errorf(ctx, "must not be null")
  86255. }
  86256. return graphql.Null
  86257. }
  86258. res := resTmp.(Media)
  86259. fc.Result = res
  86260. return ec.marshalNMedia2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMedia(ctx, field.Selections, res)
  86261. }
  86262. func (ec *executionContext) fieldContext_MediaEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  86263. fc = &graphql.FieldContext{
  86264. Object: "MediaEdge",
  86265. Field: field,
  86266. IsMethod: false,
  86267. IsResolver: false,
  86268. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  86269. return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
  86270. },
  86271. }
  86272. return fc, nil
  86273. }
  86274. func (ec *executionContext) _MediaError_code(ctx context.Context, field graphql.CollectedField, obj *MediaError) (ret graphql.Marshaler) {
  86275. fc, err := ec.fieldContext_MediaError_code(ctx, field)
  86276. if err != nil {
  86277. return graphql.Null
  86278. }
  86279. ctx = graphql.WithFieldContext(ctx, fc)
  86280. defer func() {
  86281. if r := recover(); r != nil {
  86282. ec.Error(ctx, ec.Recover(ctx, r))
  86283. ret = graphql.Null
  86284. }
  86285. }()
  86286. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  86287. ctx = rctx // use context from middleware stack in children
  86288. return obj.Code, nil
  86289. })
  86290. if err != nil {
  86291. ec.Error(ctx, err)
  86292. return graphql.Null
  86293. }
  86294. if resTmp == nil {
  86295. if !graphql.HasFieldError(ctx, fc) {
  86296. ec.Errorf(ctx, "must not be null")
  86297. }
  86298. return graphql.Null
  86299. }
  86300. res := resTmp.(MediaErrorCode)
  86301. fc.Result = res
  86302. return ec.marshalNMediaErrorCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaErrorCode(ctx, field.Selections, res)
  86303. }
  86304. func (ec *executionContext) fieldContext_MediaError_code(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  86305. fc = &graphql.FieldContext{
  86306. Object: "MediaError",
  86307. Field: field,
  86308. IsMethod: false,
  86309. IsResolver: false,
  86310. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  86311. return nil, errors.New("field of type MediaErrorCode does not have child fields")
  86312. },
  86313. }
  86314. return fc, nil
  86315. }
  86316. func (ec *executionContext) _MediaError_details(ctx context.Context, field graphql.CollectedField, obj *MediaError) (ret graphql.Marshaler) {
  86317. fc, err := ec.fieldContext_MediaError_details(ctx, field)
  86318. if err != nil {
  86319. return graphql.Null
  86320. }
  86321. ctx = graphql.WithFieldContext(ctx, fc)
  86322. defer func() {
  86323. if r := recover(); r != nil {
  86324. ec.Error(ctx, ec.Recover(ctx, r))
  86325. ret = graphql.Null
  86326. }
  86327. }()
  86328. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  86329. ctx = rctx // use context from middleware stack in children
  86330. return obj.Details, nil
  86331. })
  86332. if err != nil {
  86333. ec.Error(ctx, err)
  86334. return graphql.Null
  86335. }
  86336. if resTmp == nil {
  86337. return graphql.Null
  86338. }
  86339. res := resTmp.(*string)
  86340. fc.Result = res
  86341. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  86342. }
  86343. func (ec *executionContext) fieldContext_MediaError_details(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  86344. fc = &graphql.FieldContext{
  86345. Object: "MediaError",
  86346. Field: field,
  86347. IsMethod: false,
  86348. IsResolver: false,
  86349. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  86350. return nil, errors.New("field of type String does not have child fields")
  86351. },
  86352. }
  86353. return fc, nil
  86354. }
  86355. func (ec *executionContext) _MediaError_message(ctx context.Context, field graphql.CollectedField, obj *MediaError) (ret graphql.Marshaler) {
  86356. fc, err := ec.fieldContext_MediaError_message(ctx, field)
  86357. if err != nil {
  86358. return graphql.Null
  86359. }
  86360. ctx = graphql.WithFieldContext(ctx, fc)
  86361. defer func() {
  86362. if r := recover(); r != nil {
  86363. ec.Error(ctx, ec.Recover(ctx, r))
  86364. ret = graphql.Null
  86365. }
  86366. }()
  86367. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  86368. ctx = rctx // use context from middleware stack in children
  86369. return obj.Message, nil
  86370. })
  86371. if err != nil {
  86372. ec.Error(ctx, err)
  86373. return graphql.Null
  86374. }
  86375. if resTmp == nil {
  86376. if !graphql.HasFieldError(ctx, fc) {
  86377. ec.Errorf(ctx, "must not be null")
  86378. }
  86379. return graphql.Null
  86380. }
  86381. res := resTmp.(string)
  86382. fc.Result = res
  86383. return ec.marshalNString2string(ctx, field.Selections, res)
  86384. }
  86385. func (ec *executionContext) fieldContext_MediaError_message(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  86386. fc = &graphql.FieldContext{
  86387. Object: "MediaError",
  86388. Field: field,
  86389. IsMethod: false,
  86390. IsResolver: false,
  86391. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  86392. return nil, errors.New("field of type String does not have child fields")
  86393. },
  86394. }
  86395. return fc, nil
  86396. }
  86397. func (ec *executionContext) _MediaImage_alt(ctx context.Context, field graphql.CollectedField, obj *MediaImage) (ret graphql.Marshaler) {
  86398. fc, err := ec.fieldContext_MediaImage_alt(ctx, field)
  86399. if err != nil {
  86400. return graphql.Null
  86401. }
  86402. ctx = graphql.WithFieldContext(ctx, fc)
  86403. defer func() {
  86404. if r := recover(); r != nil {
  86405. ec.Error(ctx, ec.Recover(ctx, r))
  86406. ret = graphql.Null
  86407. }
  86408. }()
  86409. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  86410. ctx = rctx // use context from middleware stack in children
  86411. return obj.Alt, nil
  86412. })
  86413. if err != nil {
  86414. ec.Error(ctx, err)
  86415. return graphql.Null
  86416. }
  86417. if resTmp == nil {
  86418. return graphql.Null
  86419. }
  86420. res := resTmp.(*string)
  86421. fc.Result = res
  86422. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  86423. }
  86424. func (ec *executionContext) fieldContext_MediaImage_alt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  86425. fc = &graphql.FieldContext{
  86426. Object: "MediaImage",
  86427. Field: field,
  86428. IsMethod: false,
  86429. IsResolver: false,
  86430. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  86431. return nil, errors.New("field of type String does not have child fields")
  86432. },
  86433. }
  86434. return fc, nil
  86435. }
  86436. func (ec *executionContext) _MediaImage_createdAt(ctx context.Context, field graphql.CollectedField, obj *MediaImage) (ret graphql.Marshaler) {
  86437. fc, err := ec.fieldContext_MediaImage_createdAt(ctx, field)
  86438. if err != nil {
  86439. return graphql.Null
  86440. }
  86441. ctx = graphql.WithFieldContext(ctx, fc)
  86442. defer func() {
  86443. if r := recover(); r != nil {
  86444. ec.Error(ctx, ec.Recover(ctx, r))
  86445. ret = graphql.Null
  86446. }
  86447. }()
  86448. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  86449. ctx = rctx // use context from middleware stack in children
  86450. return obj.CreatedAt, nil
  86451. })
  86452. if err != nil {
  86453. ec.Error(ctx, err)
  86454. return graphql.Null
  86455. }
  86456. if resTmp == nil {
  86457. if !graphql.HasFieldError(ctx, fc) {
  86458. ec.Errorf(ctx, "must not be null")
  86459. }
  86460. return graphql.Null
  86461. }
  86462. res := resTmp.(string)
  86463. fc.Result = res
  86464. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  86465. }
  86466. func (ec *executionContext) fieldContext_MediaImage_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  86467. fc = &graphql.FieldContext{
  86468. Object: "MediaImage",
  86469. Field: field,
  86470. IsMethod: false,
  86471. IsResolver: false,
  86472. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  86473. return nil, errors.New("field of type DateTime does not have child fields")
  86474. },
  86475. }
  86476. return fc, nil
  86477. }
  86478. func (ec *executionContext) _MediaImage_fileErrors(ctx context.Context, field graphql.CollectedField, obj *MediaImage) (ret graphql.Marshaler) {
  86479. fc, err := ec.fieldContext_MediaImage_fileErrors(ctx, field)
  86480. if err != nil {
  86481. return graphql.Null
  86482. }
  86483. ctx = graphql.WithFieldContext(ctx, fc)
  86484. defer func() {
  86485. if r := recover(); r != nil {
  86486. ec.Error(ctx, ec.Recover(ctx, r))
  86487. ret = graphql.Null
  86488. }
  86489. }()
  86490. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  86491. ctx = rctx // use context from middleware stack in children
  86492. return obj.FileErrors, nil
  86493. })
  86494. if err != nil {
  86495. ec.Error(ctx, err)
  86496. return graphql.Null
  86497. }
  86498. if resTmp == nil {
  86499. if !graphql.HasFieldError(ctx, fc) {
  86500. ec.Errorf(ctx, "must not be null")
  86501. }
  86502. return graphql.Null
  86503. }
  86504. res := resTmp.([]*FileError)
  86505. fc.Result = res
  86506. return ec.marshalNFileError2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFileErrorᚄ(ctx, field.Selections, res)
  86507. }
  86508. func (ec *executionContext) fieldContext_MediaImage_fileErrors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  86509. fc = &graphql.FieldContext{
  86510. Object: "MediaImage",
  86511. Field: field,
  86512. IsMethod: false,
  86513. IsResolver: false,
  86514. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  86515. switch field.Name {
  86516. case "code":
  86517. return ec.fieldContext_FileError_code(ctx, field)
  86518. case "details":
  86519. return ec.fieldContext_FileError_details(ctx, field)
  86520. case "message":
  86521. return ec.fieldContext_FileError_message(ctx, field)
  86522. }
  86523. return nil, fmt.Errorf("no field named %q was found under type FileError", field.Name)
  86524. },
  86525. }
  86526. return fc, nil
  86527. }
  86528. func (ec *executionContext) _MediaImage_fileStatus(ctx context.Context, field graphql.CollectedField, obj *MediaImage) (ret graphql.Marshaler) {
  86529. fc, err := ec.fieldContext_MediaImage_fileStatus(ctx, field)
  86530. if err != nil {
  86531. return graphql.Null
  86532. }
  86533. ctx = graphql.WithFieldContext(ctx, fc)
  86534. defer func() {
  86535. if r := recover(); r != nil {
  86536. ec.Error(ctx, ec.Recover(ctx, r))
  86537. ret = graphql.Null
  86538. }
  86539. }()
  86540. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  86541. ctx = rctx // use context from middleware stack in children
  86542. return obj.FileStatus, nil
  86543. })
  86544. if err != nil {
  86545. ec.Error(ctx, err)
  86546. return graphql.Null
  86547. }
  86548. if resTmp == nil {
  86549. if !graphql.HasFieldError(ctx, fc) {
  86550. ec.Errorf(ctx, "must not be null")
  86551. }
  86552. return graphql.Null
  86553. }
  86554. res := resTmp.(FileStatus)
  86555. fc.Result = res
  86556. return ec.marshalNFileStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFileStatus(ctx, field.Selections, res)
  86557. }
  86558. func (ec *executionContext) fieldContext_MediaImage_fileStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  86559. fc = &graphql.FieldContext{
  86560. Object: "MediaImage",
  86561. Field: field,
  86562. IsMethod: false,
  86563. IsResolver: false,
  86564. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  86565. return nil, errors.New("field of type FileStatus does not have child fields")
  86566. },
  86567. }
  86568. return fc, nil
  86569. }
  86570. func (ec *executionContext) _MediaImage_id(ctx context.Context, field graphql.CollectedField, obj *MediaImage) (ret graphql.Marshaler) {
  86571. fc, err := ec.fieldContext_MediaImage_id(ctx, field)
  86572. if err != nil {
  86573. return graphql.Null
  86574. }
  86575. ctx = graphql.WithFieldContext(ctx, fc)
  86576. defer func() {
  86577. if r := recover(); r != nil {
  86578. ec.Error(ctx, ec.Recover(ctx, r))
  86579. ret = graphql.Null
  86580. }
  86581. }()
  86582. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  86583. ctx = rctx // use context from middleware stack in children
  86584. return obj.ID, nil
  86585. })
  86586. if err != nil {
  86587. ec.Error(ctx, err)
  86588. return graphql.Null
  86589. }
  86590. if resTmp == nil {
  86591. if !graphql.HasFieldError(ctx, fc) {
  86592. ec.Errorf(ctx, "must not be null")
  86593. }
  86594. return graphql.Null
  86595. }
  86596. res := resTmp.(string)
  86597. fc.Result = res
  86598. return ec.marshalNID2string(ctx, field.Selections, res)
  86599. }
  86600. func (ec *executionContext) fieldContext_MediaImage_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  86601. fc = &graphql.FieldContext{
  86602. Object: "MediaImage",
  86603. Field: field,
  86604. IsMethod: false,
  86605. IsResolver: false,
  86606. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  86607. return nil, errors.New("field of type ID does not have child fields")
  86608. },
  86609. }
  86610. return fc, nil
  86611. }
  86612. func (ec *executionContext) _MediaImage_image(ctx context.Context, field graphql.CollectedField, obj *MediaImage) (ret graphql.Marshaler) {
  86613. fc, err := ec.fieldContext_MediaImage_image(ctx, field)
  86614. if err != nil {
  86615. return graphql.Null
  86616. }
  86617. ctx = graphql.WithFieldContext(ctx, fc)
  86618. defer func() {
  86619. if r := recover(); r != nil {
  86620. ec.Error(ctx, ec.Recover(ctx, r))
  86621. ret = graphql.Null
  86622. }
  86623. }()
  86624. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  86625. ctx = rctx // use context from middleware stack in children
  86626. return obj.Image, nil
  86627. })
  86628. if err != nil {
  86629. ec.Error(ctx, err)
  86630. return graphql.Null
  86631. }
  86632. if resTmp == nil {
  86633. return graphql.Null
  86634. }
  86635. res := resTmp.(*Image)
  86636. fc.Result = res
  86637. return ec.marshalOImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImage(ctx, field.Selections, res)
  86638. }
  86639. func (ec *executionContext) fieldContext_MediaImage_image(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  86640. fc = &graphql.FieldContext{
  86641. Object: "MediaImage",
  86642. Field: field,
  86643. IsMethod: false,
  86644. IsResolver: false,
  86645. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  86646. switch field.Name {
  86647. case "altText":
  86648. return ec.fieldContext_Image_altText(ctx, field)
  86649. case "height":
  86650. return ec.fieldContext_Image_height(ctx, field)
  86651. case "id":
  86652. return ec.fieldContext_Image_id(ctx, field)
  86653. case "metafield":
  86654. return ec.fieldContext_Image_metafield(ctx, field)
  86655. case "metafields":
  86656. return ec.fieldContext_Image_metafields(ctx, field)
  86657. case "privateMetafield":
  86658. return ec.fieldContext_Image_privateMetafield(ctx, field)
  86659. case "privateMetafields":
  86660. return ec.fieldContext_Image_privateMetafields(ctx, field)
  86661. case "url":
  86662. return ec.fieldContext_Image_url(ctx, field)
  86663. case "width":
  86664. return ec.fieldContext_Image_width(ctx, field)
  86665. }
  86666. return nil, fmt.Errorf("no field named %q was found under type Image", field.Name)
  86667. },
  86668. }
  86669. return fc, nil
  86670. }
  86671. func (ec *executionContext) _MediaImage_mediaContentType(ctx context.Context, field graphql.CollectedField, obj *MediaImage) (ret graphql.Marshaler) {
  86672. fc, err := ec.fieldContext_MediaImage_mediaContentType(ctx, field)
  86673. if err != nil {
  86674. return graphql.Null
  86675. }
  86676. ctx = graphql.WithFieldContext(ctx, fc)
  86677. defer func() {
  86678. if r := recover(); r != nil {
  86679. ec.Error(ctx, ec.Recover(ctx, r))
  86680. ret = graphql.Null
  86681. }
  86682. }()
  86683. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  86684. ctx = rctx // use context from middleware stack in children
  86685. return obj.MediaContentType, nil
  86686. })
  86687. if err != nil {
  86688. ec.Error(ctx, err)
  86689. return graphql.Null
  86690. }
  86691. if resTmp == nil {
  86692. if !graphql.HasFieldError(ctx, fc) {
  86693. ec.Errorf(ctx, "must not be null")
  86694. }
  86695. return graphql.Null
  86696. }
  86697. res := resTmp.(MediaContentType)
  86698. fc.Result = res
  86699. return ec.marshalNMediaContentType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaContentType(ctx, field.Selections, res)
  86700. }
  86701. func (ec *executionContext) fieldContext_MediaImage_mediaContentType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  86702. fc = &graphql.FieldContext{
  86703. Object: "MediaImage",
  86704. Field: field,
  86705. IsMethod: false,
  86706. IsResolver: false,
  86707. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  86708. return nil, errors.New("field of type MediaContentType does not have child fields")
  86709. },
  86710. }
  86711. return fc, nil
  86712. }
  86713. func (ec *executionContext) _MediaImage_mediaErrors(ctx context.Context, field graphql.CollectedField, obj *MediaImage) (ret graphql.Marshaler) {
  86714. fc, err := ec.fieldContext_MediaImage_mediaErrors(ctx, field)
  86715. if err != nil {
  86716. return graphql.Null
  86717. }
  86718. ctx = graphql.WithFieldContext(ctx, fc)
  86719. defer func() {
  86720. if r := recover(); r != nil {
  86721. ec.Error(ctx, ec.Recover(ctx, r))
  86722. ret = graphql.Null
  86723. }
  86724. }()
  86725. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  86726. ctx = rctx // use context from middleware stack in children
  86727. return obj.MediaErrors, nil
  86728. })
  86729. if err != nil {
  86730. ec.Error(ctx, err)
  86731. return graphql.Null
  86732. }
  86733. if resTmp == nil {
  86734. if !graphql.HasFieldError(ctx, fc) {
  86735. ec.Errorf(ctx, "must not be null")
  86736. }
  86737. return graphql.Null
  86738. }
  86739. res := resTmp.([]*MediaError)
  86740. fc.Result = res
  86741. return ec.marshalNMediaError2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaErrorᚄ(ctx, field.Selections, res)
  86742. }
  86743. func (ec *executionContext) fieldContext_MediaImage_mediaErrors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  86744. fc = &graphql.FieldContext{
  86745. Object: "MediaImage",
  86746. Field: field,
  86747. IsMethod: false,
  86748. IsResolver: false,
  86749. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  86750. switch field.Name {
  86751. case "code":
  86752. return ec.fieldContext_MediaError_code(ctx, field)
  86753. case "details":
  86754. return ec.fieldContext_MediaError_details(ctx, field)
  86755. case "message":
  86756. return ec.fieldContext_MediaError_message(ctx, field)
  86757. }
  86758. return nil, fmt.Errorf("no field named %q was found under type MediaError", field.Name)
  86759. },
  86760. }
  86761. return fc, nil
  86762. }
  86763. func (ec *executionContext) _MediaImage_mediaWarnings(ctx context.Context, field graphql.CollectedField, obj *MediaImage) (ret graphql.Marshaler) {
  86764. fc, err := ec.fieldContext_MediaImage_mediaWarnings(ctx, field)
  86765. if err != nil {
  86766. return graphql.Null
  86767. }
  86768. ctx = graphql.WithFieldContext(ctx, fc)
  86769. defer func() {
  86770. if r := recover(); r != nil {
  86771. ec.Error(ctx, ec.Recover(ctx, r))
  86772. ret = graphql.Null
  86773. }
  86774. }()
  86775. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  86776. ctx = rctx // use context from middleware stack in children
  86777. return obj.MediaWarnings, nil
  86778. })
  86779. if err != nil {
  86780. ec.Error(ctx, err)
  86781. return graphql.Null
  86782. }
  86783. if resTmp == nil {
  86784. if !graphql.HasFieldError(ctx, fc) {
  86785. ec.Errorf(ctx, "must not be null")
  86786. }
  86787. return graphql.Null
  86788. }
  86789. res := resTmp.([]*MediaWarning)
  86790. fc.Result = res
  86791. return ec.marshalNMediaWarning2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaWarningᚄ(ctx, field.Selections, res)
  86792. }
  86793. func (ec *executionContext) fieldContext_MediaImage_mediaWarnings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  86794. fc = &graphql.FieldContext{
  86795. Object: "MediaImage",
  86796. Field: field,
  86797. IsMethod: false,
  86798. IsResolver: false,
  86799. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  86800. switch field.Name {
  86801. case "code":
  86802. return ec.fieldContext_MediaWarning_code(ctx, field)
  86803. case "message":
  86804. return ec.fieldContext_MediaWarning_message(ctx, field)
  86805. }
  86806. return nil, fmt.Errorf("no field named %q was found under type MediaWarning", field.Name)
  86807. },
  86808. }
  86809. return fc, nil
  86810. }
  86811. func (ec *executionContext) _MediaImage_mimeType(ctx context.Context, field graphql.CollectedField, obj *MediaImage) (ret graphql.Marshaler) {
  86812. fc, err := ec.fieldContext_MediaImage_mimeType(ctx, field)
  86813. if err != nil {
  86814. return graphql.Null
  86815. }
  86816. ctx = graphql.WithFieldContext(ctx, fc)
  86817. defer func() {
  86818. if r := recover(); r != nil {
  86819. ec.Error(ctx, ec.Recover(ctx, r))
  86820. ret = graphql.Null
  86821. }
  86822. }()
  86823. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  86824. ctx = rctx // use context from middleware stack in children
  86825. return obj.MimeType, nil
  86826. })
  86827. if err != nil {
  86828. ec.Error(ctx, err)
  86829. return graphql.Null
  86830. }
  86831. if resTmp == nil {
  86832. return graphql.Null
  86833. }
  86834. res := resTmp.(*string)
  86835. fc.Result = res
  86836. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  86837. }
  86838. func (ec *executionContext) fieldContext_MediaImage_mimeType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  86839. fc = &graphql.FieldContext{
  86840. Object: "MediaImage",
  86841. Field: field,
  86842. IsMethod: false,
  86843. IsResolver: false,
  86844. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  86845. return nil, errors.New("field of type String does not have child fields")
  86846. },
  86847. }
  86848. return fc, nil
  86849. }
  86850. func (ec *executionContext) _MediaImage_originalSource(ctx context.Context, field graphql.CollectedField, obj *MediaImage) (ret graphql.Marshaler) {
  86851. fc, err := ec.fieldContext_MediaImage_originalSource(ctx, field)
  86852. if err != nil {
  86853. return graphql.Null
  86854. }
  86855. ctx = graphql.WithFieldContext(ctx, fc)
  86856. defer func() {
  86857. if r := recover(); r != nil {
  86858. ec.Error(ctx, ec.Recover(ctx, r))
  86859. ret = graphql.Null
  86860. }
  86861. }()
  86862. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  86863. ctx = rctx // use context from middleware stack in children
  86864. return obj.OriginalSource, nil
  86865. })
  86866. if err != nil {
  86867. ec.Error(ctx, err)
  86868. return graphql.Null
  86869. }
  86870. if resTmp == nil {
  86871. return graphql.Null
  86872. }
  86873. res := resTmp.(*MediaImageOriginalSource)
  86874. fc.Result = res
  86875. return ec.marshalOMediaImageOriginalSource2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaImageOriginalSource(ctx, field.Selections, res)
  86876. }
  86877. func (ec *executionContext) fieldContext_MediaImage_originalSource(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  86878. fc = &graphql.FieldContext{
  86879. Object: "MediaImage",
  86880. Field: field,
  86881. IsMethod: false,
  86882. IsResolver: false,
  86883. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  86884. switch field.Name {
  86885. case "fileSize":
  86886. return ec.fieldContext_MediaImageOriginalSource_fileSize(ctx, field)
  86887. }
  86888. return nil, fmt.Errorf("no field named %q was found under type MediaImageOriginalSource", field.Name)
  86889. },
  86890. }
  86891. return fc, nil
  86892. }
  86893. func (ec *executionContext) _MediaImage_preview(ctx context.Context, field graphql.CollectedField, obj *MediaImage) (ret graphql.Marshaler) {
  86894. fc, err := ec.fieldContext_MediaImage_preview(ctx, field)
  86895. if err != nil {
  86896. return graphql.Null
  86897. }
  86898. ctx = graphql.WithFieldContext(ctx, fc)
  86899. defer func() {
  86900. if r := recover(); r != nil {
  86901. ec.Error(ctx, ec.Recover(ctx, r))
  86902. ret = graphql.Null
  86903. }
  86904. }()
  86905. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  86906. ctx = rctx // use context from middleware stack in children
  86907. return obj.Preview, nil
  86908. })
  86909. if err != nil {
  86910. ec.Error(ctx, err)
  86911. return graphql.Null
  86912. }
  86913. if resTmp == nil {
  86914. return graphql.Null
  86915. }
  86916. res := resTmp.(*MediaPreviewImage)
  86917. fc.Result = res
  86918. return ec.marshalOMediaPreviewImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaPreviewImage(ctx, field.Selections, res)
  86919. }
  86920. func (ec *executionContext) fieldContext_MediaImage_preview(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  86921. fc = &graphql.FieldContext{
  86922. Object: "MediaImage",
  86923. Field: field,
  86924. IsMethod: false,
  86925. IsResolver: false,
  86926. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  86927. switch field.Name {
  86928. case "image":
  86929. return ec.fieldContext_MediaPreviewImage_image(ctx, field)
  86930. case "status":
  86931. return ec.fieldContext_MediaPreviewImage_status(ctx, field)
  86932. }
  86933. return nil, fmt.Errorf("no field named %q was found under type MediaPreviewImage", field.Name)
  86934. },
  86935. }
  86936. return fc, nil
  86937. }
  86938. func (ec *executionContext) _MediaImage_status(ctx context.Context, field graphql.CollectedField, obj *MediaImage) (ret graphql.Marshaler) {
  86939. fc, err := ec.fieldContext_MediaImage_status(ctx, field)
  86940. if err != nil {
  86941. return graphql.Null
  86942. }
  86943. ctx = graphql.WithFieldContext(ctx, fc)
  86944. defer func() {
  86945. if r := recover(); r != nil {
  86946. ec.Error(ctx, ec.Recover(ctx, r))
  86947. ret = graphql.Null
  86948. }
  86949. }()
  86950. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  86951. ctx = rctx // use context from middleware stack in children
  86952. return obj.Status, nil
  86953. })
  86954. if err != nil {
  86955. ec.Error(ctx, err)
  86956. return graphql.Null
  86957. }
  86958. if resTmp == nil {
  86959. if !graphql.HasFieldError(ctx, fc) {
  86960. ec.Errorf(ctx, "must not be null")
  86961. }
  86962. return graphql.Null
  86963. }
  86964. res := resTmp.(MediaStatus)
  86965. fc.Result = res
  86966. return ec.marshalNMediaStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaStatus(ctx, field.Selections, res)
  86967. }
  86968. func (ec *executionContext) fieldContext_MediaImage_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  86969. fc = &graphql.FieldContext{
  86970. Object: "MediaImage",
  86971. Field: field,
  86972. IsMethod: false,
  86973. IsResolver: false,
  86974. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  86975. return nil, errors.New("field of type MediaStatus does not have child fields")
  86976. },
  86977. }
  86978. return fc, nil
  86979. }
  86980. func (ec *executionContext) _MediaImageOriginalSource_fileSize(ctx context.Context, field graphql.CollectedField, obj *MediaImageOriginalSource) (ret graphql.Marshaler) {
  86981. fc, err := ec.fieldContext_MediaImageOriginalSource_fileSize(ctx, field)
  86982. if err != nil {
  86983. return graphql.Null
  86984. }
  86985. ctx = graphql.WithFieldContext(ctx, fc)
  86986. defer func() {
  86987. if r := recover(); r != nil {
  86988. ec.Error(ctx, ec.Recover(ctx, r))
  86989. ret = graphql.Null
  86990. }
  86991. }()
  86992. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  86993. ctx = rctx // use context from middleware stack in children
  86994. return obj.FileSize, nil
  86995. })
  86996. if err != nil {
  86997. ec.Error(ctx, err)
  86998. return graphql.Null
  86999. }
  87000. if resTmp == nil {
  87001. return graphql.Null
  87002. }
  87003. res := resTmp.(*int)
  87004. fc.Result = res
  87005. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  87006. }
  87007. func (ec *executionContext) fieldContext_MediaImageOriginalSource_fileSize(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  87008. fc = &graphql.FieldContext{
  87009. Object: "MediaImageOriginalSource",
  87010. Field: field,
  87011. IsMethod: false,
  87012. IsResolver: false,
  87013. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  87014. return nil, errors.New("field of type Int does not have child fields")
  87015. },
  87016. }
  87017. return fc, nil
  87018. }
  87019. func (ec *executionContext) _MediaPreviewImage_image(ctx context.Context, field graphql.CollectedField, obj *MediaPreviewImage) (ret graphql.Marshaler) {
  87020. fc, err := ec.fieldContext_MediaPreviewImage_image(ctx, field)
  87021. if err != nil {
  87022. return graphql.Null
  87023. }
  87024. ctx = graphql.WithFieldContext(ctx, fc)
  87025. defer func() {
  87026. if r := recover(); r != nil {
  87027. ec.Error(ctx, ec.Recover(ctx, r))
  87028. ret = graphql.Null
  87029. }
  87030. }()
  87031. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  87032. ctx = rctx // use context from middleware stack in children
  87033. return obj.Image, nil
  87034. })
  87035. if err != nil {
  87036. ec.Error(ctx, err)
  87037. return graphql.Null
  87038. }
  87039. if resTmp == nil {
  87040. return graphql.Null
  87041. }
  87042. res := resTmp.(*Image)
  87043. fc.Result = res
  87044. return ec.marshalOImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImage(ctx, field.Selections, res)
  87045. }
  87046. func (ec *executionContext) fieldContext_MediaPreviewImage_image(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  87047. fc = &graphql.FieldContext{
  87048. Object: "MediaPreviewImage",
  87049. Field: field,
  87050. IsMethod: false,
  87051. IsResolver: false,
  87052. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  87053. switch field.Name {
  87054. case "altText":
  87055. return ec.fieldContext_Image_altText(ctx, field)
  87056. case "height":
  87057. return ec.fieldContext_Image_height(ctx, field)
  87058. case "id":
  87059. return ec.fieldContext_Image_id(ctx, field)
  87060. case "metafield":
  87061. return ec.fieldContext_Image_metafield(ctx, field)
  87062. case "metafields":
  87063. return ec.fieldContext_Image_metafields(ctx, field)
  87064. case "privateMetafield":
  87065. return ec.fieldContext_Image_privateMetafield(ctx, field)
  87066. case "privateMetafields":
  87067. return ec.fieldContext_Image_privateMetafields(ctx, field)
  87068. case "url":
  87069. return ec.fieldContext_Image_url(ctx, field)
  87070. case "width":
  87071. return ec.fieldContext_Image_width(ctx, field)
  87072. }
  87073. return nil, fmt.Errorf("no field named %q was found under type Image", field.Name)
  87074. },
  87075. }
  87076. return fc, nil
  87077. }
  87078. func (ec *executionContext) _MediaPreviewImage_status(ctx context.Context, field graphql.CollectedField, obj *MediaPreviewImage) (ret graphql.Marshaler) {
  87079. fc, err := ec.fieldContext_MediaPreviewImage_status(ctx, field)
  87080. if err != nil {
  87081. return graphql.Null
  87082. }
  87083. ctx = graphql.WithFieldContext(ctx, fc)
  87084. defer func() {
  87085. if r := recover(); r != nil {
  87086. ec.Error(ctx, ec.Recover(ctx, r))
  87087. ret = graphql.Null
  87088. }
  87089. }()
  87090. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  87091. ctx = rctx // use context from middleware stack in children
  87092. return obj.Status, nil
  87093. })
  87094. if err != nil {
  87095. ec.Error(ctx, err)
  87096. return graphql.Null
  87097. }
  87098. if resTmp == nil {
  87099. if !graphql.HasFieldError(ctx, fc) {
  87100. ec.Errorf(ctx, "must not be null")
  87101. }
  87102. return graphql.Null
  87103. }
  87104. res := resTmp.(MediaPreviewImageStatus)
  87105. fc.Result = res
  87106. return ec.marshalNMediaPreviewImageStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaPreviewImageStatus(ctx, field.Selections, res)
  87107. }
  87108. func (ec *executionContext) fieldContext_MediaPreviewImage_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  87109. fc = &graphql.FieldContext{
  87110. Object: "MediaPreviewImage",
  87111. Field: field,
  87112. IsMethod: false,
  87113. IsResolver: false,
  87114. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  87115. return nil, errors.New("field of type MediaPreviewImageStatus does not have child fields")
  87116. },
  87117. }
  87118. return fc, nil
  87119. }
  87120. func (ec *executionContext) _MediaUserError_code(ctx context.Context, field graphql.CollectedField, obj *MediaUserError) (ret graphql.Marshaler) {
  87121. fc, err := ec.fieldContext_MediaUserError_code(ctx, field)
  87122. if err != nil {
  87123. return graphql.Null
  87124. }
  87125. ctx = graphql.WithFieldContext(ctx, fc)
  87126. defer func() {
  87127. if r := recover(); r != nil {
  87128. ec.Error(ctx, ec.Recover(ctx, r))
  87129. ret = graphql.Null
  87130. }
  87131. }()
  87132. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  87133. ctx = rctx // use context from middleware stack in children
  87134. return obj.Code, nil
  87135. })
  87136. if err != nil {
  87137. ec.Error(ctx, err)
  87138. return graphql.Null
  87139. }
  87140. if resTmp == nil {
  87141. return graphql.Null
  87142. }
  87143. res := resTmp.(*MediaUserErrorCode)
  87144. fc.Result = res
  87145. return ec.marshalOMediaUserErrorCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaUserErrorCode(ctx, field.Selections, res)
  87146. }
  87147. func (ec *executionContext) fieldContext_MediaUserError_code(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  87148. fc = &graphql.FieldContext{
  87149. Object: "MediaUserError",
  87150. Field: field,
  87151. IsMethod: false,
  87152. IsResolver: false,
  87153. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  87154. return nil, errors.New("field of type MediaUserErrorCode does not have child fields")
  87155. },
  87156. }
  87157. return fc, nil
  87158. }
  87159. func (ec *executionContext) _MediaUserError_field(ctx context.Context, field graphql.CollectedField, obj *MediaUserError) (ret graphql.Marshaler) {
  87160. fc, err := ec.fieldContext_MediaUserError_field(ctx, field)
  87161. if err != nil {
  87162. return graphql.Null
  87163. }
  87164. ctx = graphql.WithFieldContext(ctx, fc)
  87165. defer func() {
  87166. if r := recover(); r != nil {
  87167. ec.Error(ctx, ec.Recover(ctx, r))
  87168. ret = graphql.Null
  87169. }
  87170. }()
  87171. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  87172. ctx = rctx // use context from middleware stack in children
  87173. return obj.Field, nil
  87174. })
  87175. if err != nil {
  87176. ec.Error(ctx, err)
  87177. return graphql.Null
  87178. }
  87179. if resTmp == nil {
  87180. return graphql.Null
  87181. }
  87182. res := resTmp.([]string)
  87183. fc.Result = res
  87184. return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
  87185. }
  87186. func (ec *executionContext) fieldContext_MediaUserError_field(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  87187. fc = &graphql.FieldContext{
  87188. Object: "MediaUserError",
  87189. Field: field,
  87190. IsMethod: false,
  87191. IsResolver: false,
  87192. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  87193. return nil, errors.New("field of type String does not have child fields")
  87194. },
  87195. }
  87196. return fc, nil
  87197. }
  87198. func (ec *executionContext) _MediaUserError_message(ctx context.Context, field graphql.CollectedField, obj *MediaUserError) (ret graphql.Marshaler) {
  87199. fc, err := ec.fieldContext_MediaUserError_message(ctx, field)
  87200. if err != nil {
  87201. return graphql.Null
  87202. }
  87203. ctx = graphql.WithFieldContext(ctx, fc)
  87204. defer func() {
  87205. if r := recover(); r != nil {
  87206. ec.Error(ctx, ec.Recover(ctx, r))
  87207. ret = graphql.Null
  87208. }
  87209. }()
  87210. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  87211. ctx = rctx // use context from middleware stack in children
  87212. return obj.Message, nil
  87213. })
  87214. if err != nil {
  87215. ec.Error(ctx, err)
  87216. return graphql.Null
  87217. }
  87218. if resTmp == nil {
  87219. if !graphql.HasFieldError(ctx, fc) {
  87220. ec.Errorf(ctx, "must not be null")
  87221. }
  87222. return graphql.Null
  87223. }
  87224. res := resTmp.(string)
  87225. fc.Result = res
  87226. return ec.marshalNString2string(ctx, field.Selections, res)
  87227. }
  87228. func (ec *executionContext) fieldContext_MediaUserError_message(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  87229. fc = &graphql.FieldContext{
  87230. Object: "MediaUserError",
  87231. Field: field,
  87232. IsMethod: false,
  87233. IsResolver: false,
  87234. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  87235. return nil, errors.New("field of type String does not have child fields")
  87236. },
  87237. }
  87238. return fc, nil
  87239. }
  87240. func (ec *executionContext) _MediaWarning_code(ctx context.Context, field graphql.CollectedField, obj *MediaWarning) (ret graphql.Marshaler) {
  87241. fc, err := ec.fieldContext_MediaWarning_code(ctx, field)
  87242. if err != nil {
  87243. return graphql.Null
  87244. }
  87245. ctx = graphql.WithFieldContext(ctx, fc)
  87246. defer func() {
  87247. if r := recover(); r != nil {
  87248. ec.Error(ctx, ec.Recover(ctx, r))
  87249. ret = graphql.Null
  87250. }
  87251. }()
  87252. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  87253. ctx = rctx // use context from middleware stack in children
  87254. return obj.Code, nil
  87255. })
  87256. if err != nil {
  87257. ec.Error(ctx, err)
  87258. return graphql.Null
  87259. }
  87260. if resTmp == nil {
  87261. if !graphql.HasFieldError(ctx, fc) {
  87262. ec.Errorf(ctx, "must not be null")
  87263. }
  87264. return graphql.Null
  87265. }
  87266. res := resTmp.(MediaWarningCode)
  87267. fc.Result = res
  87268. return ec.marshalNMediaWarningCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaWarningCode(ctx, field.Selections, res)
  87269. }
  87270. func (ec *executionContext) fieldContext_MediaWarning_code(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  87271. fc = &graphql.FieldContext{
  87272. Object: "MediaWarning",
  87273. Field: field,
  87274. IsMethod: false,
  87275. IsResolver: false,
  87276. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  87277. return nil, errors.New("field of type MediaWarningCode does not have child fields")
  87278. },
  87279. }
  87280. return fc, nil
  87281. }
  87282. func (ec *executionContext) _MediaWarning_message(ctx context.Context, field graphql.CollectedField, obj *MediaWarning) (ret graphql.Marshaler) {
  87283. fc, err := ec.fieldContext_MediaWarning_message(ctx, field)
  87284. if err != nil {
  87285. return graphql.Null
  87286. }
  87287. ctx = graphql.WithFieldContext(ctx, fc)
  87288. defer func() {
  87289. if r := recover(); r != nil {
  87290. ec.Error(ctx, ec.Recover(ctx, r))
  87291. ret = graphql.Null
  87292. }
  87293. }()
  87294. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  87295. ctx = rctx // use context from middleware stack in children
  87296. return obj.Message, nil
  87297. })
  87298. if err != nil {
  87299. ec.Error(ctx, err)
  87300. return graphql.Null
  87301. }
  87302. if resTmp == nil {
  87303. return graphql.Null
  87304. }
  87305. res := resTmp.(*string)
  87306. fc.Result = res
  87307. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  87308. }
  87309. func (ec *executionContext) fieldContext_MediaWarning_message(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  87310. fc = &graphql.FieldContext{
  87311. Object: "MediaWarning",
  87312. Field: field,
  87313. IsMethod: false,
  87314. IsResolver: false,
  87315. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  87316. return nil, errors.New("field of type String does not have child fields")
  87317. },
  87318. }
  87319. return fc, nil
  87320. }
  87321. func (ec *executionContext) _MerchantApprovalSignals_identityVerified(ctx context.Context, field graphql.CollectedField, obj *MerchantApprovalSignals) (ret graphql.Marshaler) {
  87322. fc, err := ec.fieldContext_MerchantApprovalSignals_identityVerified(ctx, field)
  87323. if err != nil {
  87324. return graphql.Null
  87325. }
  87326. ctx = graphql.WithFieldContext(ctx, fc)
  87327. defer func() {
  87328. if r := recover(); r != nil {
  87329. ec.Error(ctx, ec.Recover(ctx, r))
  87330. ret = graphql.Null
  87331. }
  87332. }()
  87333. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  87334. ctx = rctx // use context from middleware stack in children
  87335. return obj.IdentityVerified, nil
  87336. })
  87337. if err != nil {
  87338. ec.Error(ctx, err)
  87339. return graphql.Null
  87340. }
  87341. if resTmp == nil {
  87342. if !graphql.HasFieldError(ctx, fc) {
  87343. ec.Errorf(ctx, "must not be null")
  87344. }
  87345. return graphql.Null
  87346. }
  87347. res := resTmp.(bool)
  87348. fc.Result = res
  87349. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  87350. }
  87351. func (ec *executionContext) fieldContext_MerchantApprovalSignals_identityVerified(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  87352. fc = &graphql.FieldContext{
  87353. Object: "MerchantApprovalSignals",
  87354. Field: field,
  87355. IsMethod: false,
  87356. IsResolver: false,
  87357. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  87358. return nil, errors.New("field of type Boolean does not have child fields")
  87359. },
  87360. }
  87361. return fc, nil
  87362. }
  87363. func (ec *executionContext) _MerchantApprovalSignals_verifiedByShopify(ctx context.Context, field graphql.CollectedField, obj *MerchantApprovalSignals) (ret graphql.Marshaler) {
  87364. fc, err := ec.fieldContext_MerchantApprovalSignals_verifiedByShopify(ctx, field)
  87365. if err != nil {
  87366. return graphql.Null
  87367. }
  87368. ctx = graphql.WithFieldContext(ctx, fc)
  87369. defer func() {
  87370. if r := recover(); r != nil {
  87371. ec.Error(ctx, ec.Recover(ctx, r))
  87372. ret = graphql.Null
  87373. }
  87374. }()
  87375. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  87376. ctx = rctx // use context from middleware stack in children
  87377. return obj.VerifiedByShopify, nil
  87378. })
  87379. if err != nil {
  87380. ec.Error(ctx, err)
  87381. return graphql.Null
  87382. }
  87383. if resTmp == nil {
  87384. if !graphql.HasFieldError(ctx, fc) {
  87385. ec.Errorf(ctx, "must not be null")
  87386. }
  87387. return graphql.Null
  87388. }
  87389. res := resTmp.(bool)
  87390. fc.Result = res
  87391. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  87392. }
  87393. func (ec *executionContext) fieldContext_MerchantApprovalSignals_verifiedByShopify(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  87394. fc = &graphql.FieldContext{
  87395. Object: "MerchantApprovalSignals",
  87396. Field: field,
  87397. IsMethod: false,
  87398. IsResolver: false,
  87399. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  87400. return nil, errors.New("field of type Boolean does not have child fields")
  87401. },
  87402. }
  87403. return fc, nil
  87404. }
  87405. func (ec *executionContext) _Metafield_createdAt(ctx context.Context, field graphql.CollectedField, obj *Metafield) (ret graphql.Marshaler) {
  87406. fc, err := ec.fieldContext_Metafield_createdAt(ctx, field)
  87407. if err != nil {
  87408. return graphql.Null
  87409. }
  87410. ctx = graphql.WithFieldContext(ctx, fc)
  87411. defer func() {
  87412. if r := recover(); r != nil {
  87413. ec.Error(ctx, ec.Recover(ctx, r))
  87414. ret = graphql.Null
  87415. }
  87416. }()
  87417. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  87418. ctx = rctx // use context from middleware stack in children
  87419. return obj.CreatedAt, nil
  87420. })
  87421. if err != nil {
  87422. ec.Error(ctx, err)
  87423. return graphql.Null
  87424. }
  87425. if resTmp == nil {
  87426. if !graphql.HasFieldError(ctx, fc) {
  87427. ec.Errorf(ctx, "must not be null")
  87428. }
  87429. return graphql.Null
  87430. }
  87431. res := resTmp.(string)
  87432. fc.Result = res
  87433. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  87434. }
  87435. func (ec *executionContext) fieldContext_Metafield_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  87436. fc = &graphql.FieldContext{
  87437. Object: "Metafield",
  87438. Field: field,
  87439. IsMethod: false,
  87440. IsResolver: false,
  87441. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  87442. return nil, errors.New("field of type DateTime does not have child fields")
  87443. },
  87444. }
  87445. return fc, nil
  87446. }
  87447. func (ec *executionContext) _Metafield_definition(ctx context.Context, field graphql.CollectedField, obj *Metafield) (ret graphql.Marshaler) {
  87448. fc, err := ec.fieldContext_Metafield_definition(ctx, field)
  87449. if err != nil {
  87450. return graphql.Null
  87451. }
  87452. ctx = graphql.WithFieldContext(ctx, fc)
  87453. defer func() {
  87454. if r := recover(); r != nil {
  87455. ec.Error(ctx, ec.Recover(ctx, r))
  87456. ret = graphql.Null
  87457. }
  87458. }()
  87459. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  87460. ctx = rctx // use context from middleware stack in children
  87461. return obj.Definition, nil
  87462. })
  87463. if err != nil {
  87464. ec.Error(ctx, err)
  87465. return graphql.Null
  87466. }
  87467. if resTmp == nil {
  87468. return graphql.Null
  87469. }
  87470. res := resTmp.(*MetafieldDefinition)
  87471. fc.Result = res
  87472. return ec.marshalOMetafieldDefinition2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinition(ctx, field.Selections, res)
  87473. }
  87474. func (ec *executionContext) fieldContext_Metafield_definition(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  87475. fc = &graphql.FieldContext{
  87476. Object: "Metafield",
  87477. Field: field,
  87478. IsMethod: false,
  87479. IsResolver: false,
  87480. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  87481. switch field.Name {
  87482. case "description":
  87483. return ec.fieldContext_MetafieldDefinition_description(ctx, field)
  87484. case "id":
  87485. return ec.fieldContext_MetafieldDefinition_id(ctx, field)
  87486. case "key":
  87487. return ec.fieldContext_MetafieldDefinition_key(ctx, field)
  87488. case "metafields":
  87489. return ec.fieldContext_MetafieldDefinition_metafields(ctx, field)
  87490. case "metafieldsCount":
  87491. return ec.fieldContext_MetafieldDefinition_metafieldsCount(ctx, field)
  87492. case "name":
  87493. return ec.fieldContext_MetafieldDefinition_name(ctx, field)
  87494. case "namespace":
  87495. return ec.fieldContext_MetafieldDefinition_namespace(ctx, field)
  87496. case "ownerType":
  87497. return ec.fieldContext_MetafieldDefinition_ownerType(ctx, field)
  87498. case "pinnedPosition":
  87499. return ec.fieldContext_MetafieldDefinition_pinnedPosition(ctx, field)
  87500. case "standardTemplate":
  87501. return ec.fieldContext_MetafieldDefinition_standardTemplate(ctx, field)
  87502. case "type":
  87503. return ec.fieldContext_MetafieldDefinition_type(ctx, field)
  87504. case "validationStatus":
  87505. return ec.fieldContext_MetafieldDefinition_validationStatus(ctx, field)
  87506. case "validations":
  87507. return ec.fieldContext_MetafieldDefinition_validations(ctx, field)
  87508. case "visibleToStorefrontApi":
  87509. return ec.fieldContext_MetafieldDefinition_visibleToStorefrontApi(ctx, field)
  87510. }
  87511. return nil, fmt.Errorf("no field named %q was found under type MetafieldDefinition", field.Name)
  87512. },
  87513. }
  87514. return fc, nil
  87515. }
  87516. func (ec *executionContext) _Metafield_description(ctx context.Context, field graphql.CollectedField, obj *Metafield) (ret graphql.Marshaler) {
  87517. fc, err := ec.fieldContext_Metafield_description(ctx, field)
  87518. if err != nil {
  87519. return graphql.Null
  87520. }
  87521. ctx = graphql.WithFieldContext(ctx, fc)
  87522. defer func() {
  87523. if r := recover(); r != nil {
  87524. ec.Error(ctx, ec.Recover(ctx, r))
  87525. ret = graphql.Null
  87526. }
  87527. }()
  87528. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  87529. ctx = rctx // use context from middleware stack in children
  87530. return obj.Description, nil
  87531. })
  87532. if err != nil {
  87533. ec.Error(ctx, err)
  87534. return graphql.Null
  87535. }
  87536. if resTmp == nil {
  87537. return graphql.Null
  87538. }
  87539. res := resTmp.(*string)
  87540. fc.Result = res
  87541. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  87542. }
  87543. func (ec *executionContext) fieldContext_Metafield_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  87544. fc = &graphql.FieldContext{
  87545. Object: "Metafield",
  87546. Field: field,
  87547. IsMethod: false,
  87548. IsResolver: false,
  87549. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  87550. return nil, errors.New("field of type String does not have child fields")
  87551. },
  87552. }
  87553. return fc, nil
  87554. }
  87555. func (ec *executionContext) _Metafield_id(ctx context.Context, field graphql.CollectedField, obj *Metafield) (ret graphql.Marshaler) {
  87556. fc, err := ec.fieldContext_Metafield_id(ctx, field)
  87557. if err != nil {
  87558. return graphql.Null
  87559. }
  87560. ctx = graphql.WithFieldContext(ctx, fc)
  87561. defer func() {
  87562. if r := recover(); r != nil {
  87563. ec.Error(ctx, ec.Recover(ctx, r))
  87564. ret = graphql.Null
  87565. }
  87566. }()
  87567. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  87568. ctx = rctx // use context from middleware stack in children
  87569. return obj.ID, nil
  87570. })
  87571. if err != nil {
  87572. ec.Error(ctx, err)
  87573. return graphql.Null
  87574. }
  87575. if resTmp == nil {
  87576. if !graphql.HasFieldError(ctx, fc) {
  87577. ec.Errorf(ctx, "must not be null")
  87578. }
  87579. return graphql.Null
  87580. }
  87581. res := resTmp.(string)
  87582. fc.Result = res
  87583. return ec.marshalNID2string(ctx, field.Selections, res)
  87584. }
  87585. func (ec *executionContext) fieldContext_Metafield_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  87586. fc = &graphql.FieldContext{
  87587. Object: "Metafield",
  87588. Field: field,
  87589. IsMethod: false,
  87590. IsResolver: false,
  87591. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  87592. return nil, errors.New("field of type ID does not have child fields")
  87593. },
  87594. }
  87595. return fc, nil
  87596. }
  87597. func (ec *executionContext) _Metafield_key(ctx context.Context, field graphql.CollectedField, obj *Metafield) (ret graphql.Marshaler) {
  87598. fc, err := ec.fieldContext_Metafield_key(ctx, field)
  87599. if err != nil {
  87600. return graphql.Null
  87601. }
  87602. ctx = graphql.WithFieldContext(ctx, fc)
  87603. defer func() {
  87604. if r := recover(); r != nil {
  87605. ec.Error(ctx, ec.Recover(ctx, r))
  87606. ret = graphql.Null
  87607. }
  87608. }()
  87609. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  87610. ctx = rctx // use context from middleware stack in children
  87611. return obj.Key, nil
  87612. })
  87613. if err != nil {
  87614. ec.Error(ctx, err)
  87615. return graphql.Null
  87616. }
  87617. if resTmp == nil {
  87618. if !graphql.HasFieldError(ctx, fc) {
  87619. ec.Errorf(ctx, "must not be null")
  87620. }
  87621. return graphql.Null
  87622. }
  87623. res := resTmp.(string)
  87624. fc.Result = res
  87625. return ec.marshalNString2string(ctx, field.Selections, res)
  87626. }
  87627. func (ec *executionContext) fieldContext_Metafield_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  87628. fc = &graphql.FieldContext{
  87629. Object: "Metafield",
  87630. Field: field,
  87631. IsMethod: false,
  87632. IsResolver: false,
  87633. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  87634. return nil, errors.New("field of type String does not have child fields")
  87635. },
  87636. }
  87637. return fc, nil
  87638. }
  87639. func (ec *executionContext) _Metafield_legacyResourceId(ctx context.Context, field graphql.CollectedField, obj *Metafield) (ret graphql.Marshaler) {
  87640. fc, err := ec.fieldContext_Metafield_legacyResourceId(ctx, field)
  87641. if err != nil {
  87642. return graphql.Null
  87643. }
  87644. ctx = graphql.WithFieldContext(ctx, fc)
  87645. defer func() {
  87646. if r := recover(); r != nil {
  87647. ec.Error(ctx, ec.Recover(ctx, r))
  87648. ret = graphql.Null
  87649. }
  87650. }()
  87651. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  87652. ctx = rctx // use context from middleware stack in children
  87653. return obj.LegacyResourceID, nil
  87654. })
  87655. if err != nil {
  87656. ec.Error(ctx, err)
  87657. return graphql.Null
  87658. }
  87659. if resTmp == nil {
  87660. if !graphql.HasFieldError(ctx, fc) {
  87661. ec.Errorf(ctx, "must not be null")
  87662. }
  87663. return graphql.Null
  87664. }
  87665. res := resTmp.(string)
  87666. fc.Result = res
  87667. return ec.marshalNUnsignedInt642string(ctx, field.Selections, res)
  87668. }
  87669. func (ec *executionContext) fieldContext_Metafield_legacyResourceId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  87670. fc = &graphql.FieldContext{
  87671. Object: "Metafield",
  87672. Field: field,
  87673. IsMethod: false,
  87674. IsResolver: false,
  87675. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  87676. return nil, errors.New("field of type UnsignedInt64 does not have child fields")
  87677. },
  87678. }
  87679. return fc, nil
  87680. }
  87681. func (ec *executionContext) _Metafield_namespace(ctx context.Context, field graphql.CollectedField, obj *Metafield) (ret graphql.Marshaler) {
  87682. fc, err := ec.fieldContext_Metafield_namespace(ctx, field)
  87683. if err != nil {
  87684. return graphql.Null
  87685. }
  87686. ctx = graphql.WithFieldContext(ctx, fc)
  87687. defer func() {
  87688. if r := recover(); r != nil {
  87689. ec.Error(ctx, ec.Recover(ctx, r))
  87690. ret = graphql.Null
  87691. }
  87692. }()
  87693. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  87694. ctx = rctx // use context from middleware stack in children
  87695. return obj.Namespace, nil
  87696. })
  87697. if err != nil {
  87698. ec.Error(ctx, err)
  87699. return graphql.Null
  87700. }
  87701. if resTmp == nil {
  87702. if !graphql.HasFieldError(ctx, fc) {
  87703. ec.Errorf(ctx, "must not be null")
  87704. }
  87705. return graphql.Null
  87706. }
  87707. res := resTmp.(string)
  87708. fc.Result = res
  87709. return ec.marshalNString2string(ctx, field.Selections, res)
  87710. }
  87711. func (ec *executionContext) fieldContext_Metafield_namespace(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  87712. fc = &graphql.FieldContext{
  87713. Object: "Metafield",
  87714. Field: field,
  87715. IsMethod: false,
  87716. IsResolver: false,
  87717. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  87718. return nil, errors.New("field of type String does not have child fields")
  87719. },
  87720. }
  87721. return fc, nil
  87722. }
  87723. func (ec *executionContext) _Metafield_owner(ctx context.Context, field graphql.CollectedField, obj *Metafield) (ret graphql.Marshaler) {
  87724. fc, err := ec.fieldContext_Metafield_owner(ctx, field)
  87725. if err != nil {
  87726. return graphql.Null
  87727. }
  87728. ctx = graphql.WithFieldContext(ctx, fc)
  87729. defer func() {
  87730. if r := recover(); r != nil {
  87731. ec.Error(ctx, ec.Recover(ctx, r))
  87732. ret = graphql.Null
  87733. }
  87734. }()
  87735. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  87736. ctx = rctx // use context from middleware stack in children
  87737. return obj.Owner, nil
  87738. })
  87739. if err != nil {
  87740. ec.Error(ctx, err)
  87741. return graphql.Null
  87742. }
  87743. if resTmp == nil {
  87744. if !graphql.HasFieldError(ctx, fc) {
  87745. ec.Errorf(ctx, "must not be null")
  87746. }
  87747. return graphql.Null
  87748. }
  87749. res := resTmp.(HasMetafields)
  87750. fc.Result = res
  87751. return ec.marshalNHasMetafields2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐHasMetafields(ctx, field.Selections, res)
  87752. }
  87753. func (ec *executionContext) fieldContext_Metafield_owner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  87754. fc = &graphql.FieldContext{
  87755. Object: "Metafield",
  87756. Field: field,
  87757. IsMethod: false,
  87758. IsResolver: false,
  87759. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  87760. return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
  87761. },
  87762. }
  87763. return fc, nil
  87764. }
  87765. func (ec *executionContext) _Metafield_ownerType(ctx context.Context, field graphql.CollectedField, obj *Metafield) (ret graphql.Marshaler) {
  87766. fc, err := ec.fieldContext_Metafield_ownerType(ctx, field)
  87767. if err != nil {
  87768. return graphql.Null
  87769. }
  87770. ctx = graphql.WithFieldContext(ctx, fc)
  87771. defer func() {
  87772. if r := recover(); r != nil {
  87773. ec.Error(ctx, ec.Recover(ctx, r))
  87774. ret = graphql.Null
  87775. }
  87776. }()
  87777. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  87778. ctx = rctx // use context from middleware stack in children
  87779. return obj.OwnerType, nil
  87780. })
  87781. if err != nil {
  87782. ec.Error(ctx, err)
  87783. return graphql.Null
  87784. }
  87785. if resTmp == nil {
  87786. if !graphql.HasFieldError(ctx, fc) {
  87787. ec.Errorf(ctx, "must not be null")
  87788. }
  87789. return graphql.Null
  87790. }
  87791. res := resTmp.(MetafieldOwnerType)
  87792. fc.Result = res
  87793. return ec.marshalNMetafieldOwnerType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldOwnerType(ctx, field.Selections, res)
  87794. }
  87795. func (ec *executionContext) fieldContext_Metafield_ownerType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  87796. fc = &graphql.FieldContext{
  87797. Object: "Metafield",
  87798. Field: field,
  87799. IsMethod: false,
  87800. IsResolver: false,
  87801. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  87802. return nil, errors.New("field of type MetafieldOwnerType does not have child fields")
  87803. },
  87804. }
  87805. return fc, nil
  87806. }
  87807. func (ec *executionContext) _Metafield_reference(ctx context.Context, field graphql.CollectedField, obj *Metafield) (ret graphql.Marshaler) {
  87808. fc, err := ec.fieldContext_Metafield_reference(ctx, field)
  87809. if err != nil {
  87810. return graphql.Null
  87811. }
  87812. ctx = graphql.WithFieldContext(ctx, fc)
  87813. defer func() {
  87814. if r := recover(); r != nil {
  87815. ec.Error(ctx, ec.Recover(ctx, r))
  87816. ret = graphql.Null
  87817. }
  87818. }()
  87819. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  87820. ctx = rctx // use context from middleware stack in children
  87821. return obj.Reference, nil
  87822. })
  87823. if err != nil {
  87824. ec.Error(ctx, err)
  87825. return graphql.Null
  87826. }
  87827. if resTmp == nil {
  87828. return graphql.Null
  87829. }
  87830. res := resTmp.(MetafieldReference)
  87831. fc.Result = res
  87832. return ec.marshalOMetafieldReference2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldReference(ctx, field.Selections, res)
  87833. }
  87834. func (ec *executionContext) fieldContext_Metafield_reference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  87835. fc = &graphql.FieldContext{
  87836. Object: "Metafield",
  87837. Field: field,
  87838. IsMethod: false,
  87839. IsResolver: false,
  87840. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  87841. return nil, errors.New("field of type MetafieldReference does not have child fields")
  87842. },
  87843. }
  87844. return fc, nil
  87845. }
  87846. func (ec *executionContext) _Metafield_references(ctx context.Context, field graphql.CollectedField, obj *Metafield) (ret graphql.Marshaler) {
  87847. fc, err := ec.fieldContext_Metafield_references(ctx, field)
  87848. if err != nil {
  87849. return graphql.Null
  87850. }
  87851. ctx = graphql.WithFieldContext(ctx, fc)
  87852. defer func() {
  87853. if r := recover(); r != nil {
  87854. ec.Error(ctx, ec.Recover(ctx, r))
  87855. ret = graphql.Null
  87856. }
  87857. }()
  87858. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  87859. ctx = rctx // use context from middleware stack in children
  87860. return obj.References, nil
  87861. })
  87862. if err != nil {
  87863. ec.Error(ctx, err)
  87864. return graphql.Null
  87865. }
  87866. if resTmp == nil {
  87867. return graphql.Null
  87868. }
  87869. res := resTmp.(*MetafieldReferenceConnection)
  87870. fc.Result = res
  87871. return ec.marshalOMetafieldReferenceConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldReferenceConnection(ctx, field.Selections, res)
  87872. }
  87873. func (ec *executionContext) fieldContext_Metafield_references(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  87874. fc = &graphql.FieldContext{
  87875. Object: "Metafield",
  87876. Field: field,
  87877. IsMethod: false,
  87878. IsResolver: false,
  87879. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  87880. switch field.Name {
  87881. case "edges":
  87882. return ec.fieldContext_MetafieldReferenceConnection_edges(ctx, field)
  87883. case "nodes":
  87884. return ec.fieldContext_MetafieldReferenceConnection_nodes(ctx, field)
  87885. case "pageInfo":
  87886. return ec.fieldContext_MetafieldReferenceConnection_pageInfo(ctx, field)
  87887. }
  87888. return nil, fmt.Errorf("no field named %q was found under type MetafieldReferenceConnection", field.Name)
  87889. },
  87890. }
  87891. defer func() {
  87892. if r := recover(); r != nil {
  87893. err = ec.Recover(ctx, r)
  87894. ec.Error(ctx, err)
  87895. }
  87896. }()
  87897. ctx = graphql.WithFieldContext(ctx, fc)
  87898. if fc.Args, err = ec.field_Metafield_references_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  87899. ec.Error(ctx, err)
  87900. return
  87901. }
  87902. return fc, nil
  87903. }
  87904. func (ec *executionContext) _Metafield_type(ctx context.Context, field graphql.CollectedField, obj *Metafield) (ret graphql.Marshaler) {
  87905. fc, err := ec.fieldContext_Metafield_type(ctx, field)
  87906. if err != nil {
  87907. return graphql.Null
  87908. }
  87909. ctx = graphql.WithFieldContext(ctx, fc)
  87910. defer func() {
  87911. if r := recover(); r != nil {
  87912. ec.Error(ctx, ec.Recover(ctx, r))
  87913. ret = graphql.Null
  87914. }
  87915. }()
  87916. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  87917. ctx = rctx // use context from middleware stack in children
  87918. return obj.Type, nil
  87919. })
  87920. if err != nil {
  87921. ec.Error(ctx, err)
  87922. return graphql.Null
  87923. }
  87924. if resTmp == nil {
  87925. if !graphql.HasFieldError(ctx, fc) {
  87926. ec.Errorf(ctx, "must not be null")
  87927. }
  87928. return graphql.Null
  87929. }
  87930. res := resTmp.(string)
  87931. fc.Result = res
  87932. return ec.marshalNString2string(ctx, field.Selections, res)
  87933. }
  87934. func (ec *executionContext) fieldContext_Metafield_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  87935. fc = &graphql.FieldContext{
  87936. Object: "Metafield",
  87937. Field: field,
  87938. IsMethod: false,
  87939. IsResolver: false,
  87940. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  87941. return nil, errors.New("field of type String does not have child fields")
  87942. },
  87943. }
  87944. return fc, nil
  87945. }
  87946. func (ec *executionContext) _Metafield_updatedAt(ctx context.Context, field graphql.CollectedField, obj *Metafield) (ret graphql.Marshaler) {
  87947. fc, err := ec.fieldContext_Metafield_updatedAt(ctx, field)
  87948. if err != nil {
  87949. return graphql.Null
  87950. }
  87951. ctx = graphql.WithFieldContext(ctx, fc)
  87952. defer func() {
  87953. if r := recover(); r != nil {
  87954. ec.Error(ctx, ec.Recover(ctx, r))
  87955. ret = graphql.Null
  87956. }
  87957. }()
  87958. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  87959. ctx = rctx // use context from middleware stack in children
  87960. return obj.UpdatedAt, nil
  87961. })
  87962. if err != nil {
  87963. ec.Error(ctx, err)
  87964. return graphql.Null
  87965. }
  87966. if resTmp == nil {
  87967. if !graphql.HasFieldError(ctx, fc) {
  87968. ec.Errorf(ctx, "must not be null")
  87969. }
  87970. return graphql.Null
  87971. }
  87972. res := resTmp.(string)
  87973. fc.Result = res
  87974. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  87975. }
  87976. func (ec *executionContext) fieldContext_Metafield_updatedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  87977. fc = &graphql.FieldContext{
  87978. Object: "Metafield",
  87979. Field: field,
  87980. IsMethod: false,
  87981. IsResolver: false,
  87982. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  87983. return nil, errors.New("field of type DateTime does not have child fields")
  87984. },
  87985. }
  87986. return fc, nil
  87987. }
  87988. func (ec *executionContext) _Metafield_value(ctx context.Context, field graphql.CollectedField, obj *Metafield) (ret graphql.Marshaler) {
  87989. fc, err := ec.fieldContext_Metafield_value(ctx, field)
  87990. if err != nil {
  87991. return graphql.Null
  87992. }
  87993. ctx = graphql.WithFieldContext(ctx, fc)
  87994. defer func() {
  87995. if r := recover(); r != nil {
  87996. ec.Error(ctx, ec.Recover(ctx, r))
  87997. ret = graphql.Null
  87998. }
  87999. }()
  88000. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  88001. ctx = rctx // use context from middleware stack in children
  88002. return obj.Value, nil
  88003. })
  88004. if err != nil {
  88005. ec.Error(ctx, err)
  88006. return graphql.Null
  88007. }
  88008. if resTmp == nil {
  88009. if !graphql.HasFieldError(ctx, fc) {
  88010. ec.Errorf(ctx, "must not be null")
  88011. }
  88012. return graphql.Null
  88013. }
  88014. res := resTmp.(string)
  88015. fc.Result = res
  88016. return ec.marshalNString2string(ctx, field.Selections, res)
  88017. }
  88018. func (ec *executionContext) fieldContext_Metafield_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  88019. fc = &graphql.FieldContext{
  88020. Object: "Metafield",
  88021. Field: field,
  88022. IsMethod: false,
  88023. IsResolver: false,
  88024. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  88025. return nil, errors.New("field of type String does not have child fields")
  88026. },
  88027. }
  88028. return fc, nil
  88029. }
  88030. func (ec *executionContext) _MetafieldConnection_edges(ctx context.Context, field graphql.CollectedField, obj *MetafieldConnection) (ret graphql.Marshaler) {
  88031. fc, err := ec.fieldContext_MetafieldConnection_edges(ctx, field)
  88032. if err != nil {
  88033. return graphql.Null
  88034. }
  88035. ctx = graphql.WithFieldContext(ctx, fc)
  88036. defer func() {
  88037. if r := recover(); r != nil {
  88038. ec.Error(ctx, ec.Recover(ctx, r))
  88039. ret = graphql.Null
  88040. }
  88041. }()
  88042. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  88043. ctx = rctx // use context from middleware stack in children
  88044. return obj.Edges, nil
  88045. })
  88046. if err != nil {
  88047. ec.Error(ctx, err)
  88048. return graphql.Null
  88049. }
  88050. if resTmp == nil {
  88051. if !graphql.HasFieldError(ctx, fc) {
  88052. ec.Errorf(ctx, "must not be null")
  88053. }
  88054. return graphql.Null
  88055. }
  88056. res := resTmp.([]*MetafieldEdge)
  88057. fc.Result = res
  88058. return ec.marshalNMetafieldEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldEdgeᚄ(ctx, field.Selections, res)
  88059. }
  88060. func (ec *executionContext) fieldContext_MetafieldConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  88061. fc = &graphql.FieldContext{
  88062. Object: "MetafieldConnection",
  88063. Field: field,
  88064. IsMethod: false,
  88065. IsResolver: false,
  88066. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  88067. switch field.Name {
  88068. case "cursor":
  88069. return ec.fieldContext_MetafieldEdge_cursor(ctx, field)
  88070. case "node":
  88071. return ec.fieldContext_MetafieldEdge_node(ctx, field)
  88072. }
  88073. return nil, fmt.Errorf("no field named %q was found under type MetafieldEdge", field.Name)
  88074. },
  88075. }
  88076. return fc, nil
  88077. }
  88078. func (ec *executionContext) _MetafieldConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *MetafieldConnection) (ret graphql.Marshaler) {
  88079. fc, err := ec.fieldContext_MetafieldConnection_nodes(ctx, field)
  88080. if err != nil {
  88081. return graphql.Null
  88082. }
  88083. ctx = graphql.WithFieldContext(ctx, fc)
  88084. defer func() {
  88085. if r := recover(); r != nil {
  88086. ec.Error(ctx, ec.Recover(ctx, r))
  88087. ret = graphql.Null
  88088. }
  88089. }()
  88090. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  88091. ctx = rctx // use context from middleware stack in children
  88092. return obj.Nodes, nil
  88093. })
  88094. if err != nil {
  88095. ec.Error(ctx, err)
  88096. return graphql.Null
  88097. }
  88098. if resTmp == nil {
  88099. if !graphql.HasFieldError(ctx, fc) {
  88100. ec.Errorf(ctx, "must not be null")
  88101. }
  88102. return graphql.Null
  88103. }
  88104. res := resTmp.([]*Metafield)
  88105. fc.Result = res
  88106. return ec.marshalNMetafield2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldᚄ(ctx, field.Selections, res)
  88107. }
  88108. func (ec *executionContext) fieldContext_MetafieldConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  88109. fc = &graphql.FieldContext{
  88110. Object: "MetafieldConnection",
  88111. Field: field,
  88112. IsMethod: false,
  88113. IsResolver: false,
  88114. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  88115. switch field.Name {
  88116. case "createdAt":
  88117. return ec.fieldContext_Metafield_createdAt(ctx, field)
  88118. case "definition":
  88119. return ec.fieldContext_Metafield_definition(ctx, field)
  88120. case "description":
  88121. return ec.fieldContext_Metafield_description(ctx, field)
  88122. case "id":
  88123. return ec.fieldContext_Metafield_id(ctx, field)
  88124. case "key":
  88125. return ec.fieldContext_Metafield_key(ctx, field)
  88126. case "legacyResourceId":
  88127. return ec.fieldContext_Metafield_legacyResourceId(ctx, field)
  88128. case "namespace":
  88129. return ec.fieldContext_Metafield_namespace(ctx, field)
  88130. case "owner":
  88131. return ec.fieldContext_Metafield_owner(ctx, field)
  88132. case "ownerType":
  88133. return ec.fieldContext_Metafield_ownerType(ctx, field)
  88134. case "reference":
  88135. return ec.fieldContext_Metafield_reference(ctx, field)
  88136. case "references":
  88137. return ec.fieldContext_Metafield_references(ctx, field)
  88138. case "type":
  88139. return ec.fieldContext_Metafield_type(ctx, field)
  88140. case "updatedAt":
  88141. return ec.fieldContext_Metafield_updatedAt(ctx, field)
  88142. case "value":
  88143. return ec.fieldContext_Metafield_value(ctx, field)
  88144. }
  88145. return nil, fmt.Errorf("no field named %q was found under type Metafield", field.Name)
  88146. },
  88147. }
  88148. return fc, nil
  88149. }
  88150. func (ec *executionContext) _MetafieldConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *MetafieldConnection) (ret graphql.Marshaler) {
  88151. fc, err := ec.fieldContext_MetafieldConnection_pageInfo(ctx, field)
  88152. if err != nil {
  88153. return graphql.Null
  88154. }
  88155. ctx = graphql.WithFieldContext(ctx, fc)
  88156. defer func() {
  88157. if r := recover(); r != nil {
  88158. ec.Error(ctx, ec.Recover(ctx, r))
  88159. ret = graphql.Null
  88160. }
  88161. }()
  88162. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  88163. ctx = rctx // use context from middleware stack in children
  88164. return obj.PageInfo, nil
  88165. })
  88166. if err != nil {
  88167. ec.Error(ctx, err)
  88168. return graphql.Null
  88169. }
  88170. if resTmp == nil {
  88171. if !graphql.HasFieldError(ctx, fc) {
  88172. ec.Errorf(ctx, "must not be null")
  88173. }
  88174. return graphql.Null
  88175. }
  88176. res := resTmp.(*PageInfo)
  88177. fc.Result = res
  88178. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  88179. }
  88180. func (ec *executionContext) fieldContext_MetafieldConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  88181. fc = &graphql.FieldContext{
  88182. Object: "MetafieldConnection",
  88183. Field: field,
  88184. IsMethod: false,
  88185. IsResolver: false,
  88186. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  88187. switch field.Name {
  88188. case "endCursor":
  88189. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  88190. case "hasNextPage":
  88191. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  88192. case "hasPreviousPage":
  88193. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  88194. case "startCursor":
  88195. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  88196. }
  88197. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  88198. },
  88199. }
  88200. return fc, nil
  88201. }
  88202. func (ec *executionContext) _MetafieldDefinition_description(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinition) (ret graphql.Marshaler) {
  88203. fc, err := ec.fieldContext_MetafieldDefinition_description(ctx, field)
  88204. if err != nil {
  88205. return graphql.Null
  88206. }
  88207. ctx = graphql.WithFieldContext(ctx, fc)
  88208. defer func() {
  88209. if r := recover(); r != nil {
  88210. ec.Error(ctx, ec.Recover(ctx, r))
  88211. ret = graphql.Null
  88212. }
  88213. }()
  88214. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  88215. ctx = rctx // use context from middleware stack in children
  88216. return obj.Description, nil
  88217. })
  88218. if err != nil {
  88219. ec.Error(ctx, err)
  88220. return graphql.Null
  88221. }
  88222. if resTmp == nil {
  88223. return graphql.Null
  88224. }
  88225. res := resTmp.(*string)
  88226. fc.Result = res
  88227. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  88228. }
  88229. func (ec *executionContext) fieldContext_MetafieldDefinition_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  88230. fc = &graphql.FieldContext{
  88231. Object: "MetafieldDefinition",
  88232. Field: field,
  88233. IsMethod: false,
  88234. IsResolver: false,
  88235. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  88236. return nil, errors.New("field of type String does not have child fields")
  88237. },
  88238. }
  88239. return fc, nil
  88240. }
  88241. func (ec *executionContext) _MetafieldDefinition_id(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinition) (ret graphql.Marshaler) {
  88242. fc, err := ec.fieldContext_MetafieldDefinition_id(ctx, field)
  88243. if err != nil {
  88244. return graphql.Null
  88245. }
  88246. ctx = graphql.WithFieldContext(ctx, fc)
  88247. defer func() {
  88248. if r := recover(); r != nil {
  88249. ec.Error(ctx, ec.Recover(ctx, r))
  88250. ret = graphql.Null
  88251. }
  88252. }()
  88253. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  88254. ctx = rctx // use context from middleware stack in children
  88255. return obj.ID, nil
  88256. })
  88257. if err != nil {
  88258. ec.Error(ctx, err)
  88259. return graphql.Null
  88260. }
  88261. if resTmp == nil {
  88262. if !graphql.HasFieldError(ctx, fc) {
  88263. ec.Errorf(ctx, "must not be null")
  88264. }
  88265. return graphql.Null
  88266. }
  88267. res := resTmp.(string)
  88268. fc.Result = res
  88269. return ec.marshalNID2string(ctx, field.Selections, res)
  88270. }
  88271. func (ec *executionContext) fieldContext_MetafieldDefinition_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  88272. fc = &graphql.FieldContext{
  88273. Object: "MetafieldDefinition",
  88274. Field: field,
  88275. IsMethod: false,
  88276. IsResolver: false,
  88277. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  88278. return nil, errors.New("field of type ID does not have child fields")
  88279. },
  88280. }
  88281. return fc, nil
  88282. }
  88283. func (ec *executionContext) _MetafieldDefinition_key(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinition) (ret graphql.Marshaler) {
  88284. fc, err := ec.fieldContext_MetafieldDefinition_key(ctx, field)
  88285. if err != nil {
  88286. return graphql.Null
  88287. }
  88288. ctx = graphql.WithFieldContext(ctx, fc)
  88289. defer func() {
  88290. if r := recover(); r != nil {
  88291. ec.Error(ctx, ec.Recover(ctx, r))
  88292. ret = graphql.Null
  88293. }
  88294. }()
  88295. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  88296. ctx = rctx // use context from middleware stack in children
  88297. return obj.Key, nil
  88298. })
  88299. if err != nil {
  88300. ec.Error(ctx, err)
  88301. return graphql.Null
  88302. }
  88303. if resTmp == nil {
  88304. if !graphql.HasFieldError(ctx, fc) {
  88305. ec.Errorf(ctx, "must not be null")
  88306. }
  88307. return graphql.Null
  88308. }
  88309. res := resTmp.(string)
  88310. fc.Result = res
  88311. return ec.marshalNString2string(ctx, field.Selections, res)
  88312. }
  88313. func (ec *executionContext) fieldContext_MetafieldDefinition_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  88314. fc = &graphql.FieldContext{
  88315. Object: "MetafieldDefinition",
  88316. Field: field,
  88317. IsMethod: false,
  88318. IsResolver: false,
  88319. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  88320. return nil, errors.New("field of type String does not have child fields")
  88321. },
  88322. }
  88323. return fc, nil
  88324. }
  88325. func (ec *executionContext) _MetafieldDefinition_metafields(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinition) (ret graphql.Marshaler) {
  88326. fc, err := ec.fieldContext_MetafieldDefinition_metafields(ctx, field)
  88327. if err != nil {
  88328. return graphql.Null
  88329. }
  88330. ctx = graphql.WithFieldContext(ctx, fc)
  88331. defer func() {
  88332. if r := recover(); r != nil {
  88333. ec.Error(ctx, ec.Recover(ctx, r))
  88334. ret = graphql.Null
  88335. }
  88336. }()
  88337. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  88338. ctx = rctx // use context from middleware stack in children
  88339. return obj.Metafields, nil
  88340. })
  88341. if err != nil {
  88342. ec.Error(ctx, err)
  88343. return graphql.Null
  88344. }
  88345. if resTmp == nil {
  88346. if !graphql.HasFieldError(ctx, fc) {
  88347. ec.Errorf(ctx, "must not be null")
  88348. }
  88349. return graphql.Null
  88350. }
  88351. res := resTmp.(*MetafieldConnection)
  88352. fc.Result = res
  88353. return ec.marshalNMetafieldConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldConnection(ctx, field.Selections, res)
  88354. }
  88355. func (ec *executionContext) fieldContext_MetafieldDefinition_metafields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  88356. fc = &graphql.FieldContext{
  88357. Object: "MetafieldDefinition",
  88358. Field: field,
  88359. IsMethod: false,
  88360. IsResolver: false,
  88361. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  88362. switch field.Name {
  88363. case "edges":
  88364. return ec.fieldContext_MetafieldConnection_edges(ctx, field)
  88365. case "nodes":
  88366. return ec.fieldContext_MetafieldConnection_nodes(ctx, field)
  88367. case "pageInfo":
  88368. return ec.fieldContext_MetafieldConnection_pageInfo(ctx, field)
  88369. }
  88370. return nil, fmt.Errorf("no field named %q was found under type MetafieldConnection", field.Name)
  88371. },
  88372. }
  88373. defer func() {
  88374. if r := recover(); r != nil {
  88375. err = ec.Recover(ctx, r)
  88376. ec.Error(ctx, err)
  88377. }
  88378. }()
  88379. ctx = graphql.WithFieldContext(ctx, fc)
  88380. if fc.Args, err = ec.field_MetafieldDefinition_metafields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  88381. ec.Error(ctx, err)
  88382. return
  88383. }
  88384. return fc, nil
  88385. }
  88386. func (ec *executionContext) _MetafieldDefinition_metafieldsCount(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinition) (ret graphql.Marshaler) {
  88387. fc, err := ec.fieldContext_MetafieldDefinition_metafieldsCount(ctx, field)
  88388. if err != nil {
  88389. return graphql.Null
  88390. }
  88391. ctx = graphql.WithFieldContext(ctx, fc)
  88392. defer func() {
  88393. if r := recover(); r != nil {
  88394. ec.Error(ctx, ec.Recover(ctx, r))
  88395. ret = graphql.Null
  88396. }
  88397. }()
  88398. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  88399. ctx = rctx // use context from middleware stack in children
  88400. return obj.MetafieldsCount, nil
  88401. })
  88402. if err != nil {
  88403. ec.Error(ctx, err)
  88404. return graphql.Null
  88405. }
  88406. if resTmp == nil {
  88407. if !graphql.HasFieldError(ctx, fc) {
  88408. ec.Errorf(ctx, "must not be null")
  88409. }
  88410. return graphql.Null
  88411. }
  88412. res := resTmp.(int)
  88413. fc.Result = res
  88414. return ec.marshalNInt2int(ctx, field.Selections, res)
  88415. }
  88416. func (ec *executionContext) fieldContext_MetafieldDefinition_metafieldsCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  88417. fc = &graphql.FieldContext{
  88418. Object: "MetafieldDefinition",
  88419. Field: field,
  88420. IsMethod: false,
  88421. IsResolver: false,
  88422. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  88423. return nil, errors.New("field of type Int does not have child fields")
  88424. },
  88425. }
  88426. defer func() {
  88427. if r := recover(); r != nil {
  88428. err = ec.Recover(ctx, r)
  88429. ec.Error(ctx, err)
  88430. }
  88431. }()
  88432. ctx = graphql.WithFieldContext(ctx, fc)
  88433. if fc.Args, err = ec.field_MetafieldDefinition_metafieldsCount_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  88434. ec.Error(ctx, err)
  88435. return
  88436. }
  88437. return fc, nil
  88438. }
  88439. func (ec *executionContext) _MetafieldDefinition_name(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinition) (ret graphql.Marshaler) {
  88440. fc, err := ec.fieldContext_MetafieldDefinition_name(ctx, field)
  88441. if err != nil {
  88442. return graphql.Null
  88443. }
  88444. ctx = graphql.WithFieldContext(ctx, fc)
  88445. defer func() {
  88446. if r := recover(); r != nil {
  88447. ec.Error(ctx, ec.Recover(ctx, r))
  88448. ret = graphql.Null
  88449. }
  88450. }()
  88451. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  88452. ctx = rctx // use context from middleware stack in children
  88453. return obj.Name, nil
  88454. })
  88455. if err != nil {
  88456. ec.Error(ctx, err)
  88457. return graphql.Null
  88458. }
  88459. if resTmp == nil {
  88460. if !graphql.HasFieldError(ctx, fc) {
  88461. ec.Errorf(ctx, "must not be null")
  88462. }
  88463. return graphql.Null
  88464. }
  88465. res := resTmp.(string)
  88466. fc.Result = res
  88467. return ec.marshalNString2string(ctx, field.Selections, res)
  88468. }
  88469. func (ec *executionContext) fieldContext_MetafieldDefinition_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  88470. fc = &graphql.FieldContext{
  88471. Object: "MetafieldDefinition",
  88472. Field: field,
  88473. IsMethod: false,
  88474. IsResolver: false,
  88475. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  88476. return nil, errors.New("field of type String does not have child fields")
  88477. },
  88478. }
  88479. return fc, nil
  88480. }
  88481. func (ec *executionContext) _MetafieldDefinition_namespace(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinition) (ret graphql.Marshaler) {
  88482. fc, err := ec.fieldContext_MetafieldDefinition_namespace(ctx, field)
  88483. if err != nil {
  88484. return graphql.Null
  88485. }
  88486. ctx = graphql.WithFieldContext(ctx, fc)
  88487. defer func() {
  88488. if r := recover(); r != nil {
  88489. ec.Error(ctx, ec.Recover(ctx, r))
  88490. ret = graphql.Null
  88491. }
  88492. }()
  88493. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  88494. ctx = rctx // use context from middleware stack in children
  88495. return obj.Namespace, nil
  88496. })
  88497. if err != nil {
  88498. ec.Error(ctx, err)
  88499. return graphql.Null
  88500. }
  88501. if resTmp == nil {
  88502. if !graphql.HasFieldError(ctx, fc) {
  88503. ec.Errorf(ctx, "must not be null")
  88504. }
  88505. return graphql.Null
  88506. }
  88507. res := resTmp.(string)
  88508. fc.Result = res
  88509. return ec.marshalNString2string(ctx, field.Selections, res)
  88510. }
  88511. func (ec *executionContext) fieldContext_MetafieldDefinition_namespace(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  88512. fc = &graphql.FieldContext{
  88513. Object: "MetafieldDefinition",
  88514. Field: field,
  88515. IsMethod: false,
  88516. IsResolver: false,
  88517. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  88518. return nil, errors.New("field of type String does not have child fields")
  88519. },
  88520. }
  88521. return fc, nil
  88522. }
  88523. func (ec *executionContext) _MetafieldDefinition_ownerType(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinition) (ret graphql.Marshaler) {
  88524. fc, err := ec.fieldContext_MetafieldDefinition_ownerType(ctx, field)
  88525. if err != nil {
  88526. return graphql.Null
  88527. }
  88528. ctx = graphql.WithFieldContext(ctx, fc)
  88529. defer func() {
  88530. if r := recover(); r != nil {
  88531. ec.Error(ctx, ec.Recover(ctx, r))
  88532. ret = graphql.Null
  88533. }
  88534. }()
  88535. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  88536. ctx = rctx // use context from middleware stack in children
  88537. return obj.OwnerType, nil
  88538. })
  88539. if err != nil {
  88540. ec.Error(ctx, err)
  88541. return graphql.Null
  88542. }
  88543. if resTmp == nil {
  88544. if !graphql.HasFieldError(ctx, fc) {
  88545. ec.Errorf(ctx, "must not be null")
  88546. }
  88547. return graphql.Null
  88548. }
  88549. res := resTmp.(MetafieldOwnerType)
  88550. fc.Result = res
  88551. return ec.marshalNMetafieldOwnerType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldOwnerType(ctx, field.Selections, res)
  88552. }
  88553. func (ec *executionContext) fieldContext_MetafieldDefinition_ownerType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  88554. fc = &graphql.FieldContext{
  88555. Object: "MetafieldDefinition",
  88556. Field: field,
  88557. IsMethod: false,
  88558. IsResolver: false,
  88559. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  88560. return nil, errors.New("field of type MetafieldOwnerType does not have child fields")
  88561. },
  88562. }
  88563. return fc, nil
  88564. }
  88565. func (ec *executionContext) _MetafieldDefinition_pinnedPosition(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinition) (ret graphql.Marshaler) {
  88566. fc, err := ec.fieldContext_MetafieldDefinition_pinnedPosition(ctx, field)
  88567. if err != nil {
  88568. return graphql.Null
  88569. }
  88570. ctx = graphql.WithFieldContext(ctx, fc)
  88571. defer func() {
  88572. if r := recover(); r != nil {
  88573. ec.Error(ctx, ec.Recover(ctx, r))
  88574. ret = graphql.Null
  88575. }
  88576. }()
  88577. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  88578. ctx = rctx // use context from middleware stack in children
  88579. return obj.PinnedPosition, nil
  88580. })
  88581. if err != nil {
  88582. ec.Error(ctx, err)
  88583. return graphql.Null
  88584. }
  88585. if resTmp == nil {
  88586. return graphql.Null
  88587. }
  88588. res := resTmp.(*int)
  88589. fc.Result = res
  88590. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  88591. }
  88592. func (ec *executionContext) fieldContext_MetafieldDefinition_pinnedPosition(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  88593. fc = &graphql.FieldContext{
  88594. Object: "MetafieldDefinition",
  88595. Field: field,
  88596. IsMethod: false,
  88597. IsResolver: false,
  88598. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  88599. return nil, errors.New("field of type Int does not have child fields")
  88600. },
  88601. }
  88602. return fc, nil
  88603. }
  88604. func (ec *executionContext) _MetafieldDefinition_standardTemplate(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinition) (ret graphql.Marshaler) {
  88605. fc, err := ec.fieldContext_MetafieldDefinition_standardTemplate(ctx, field)
  88606. if err != nil {
  88607. return graphql.Null
  88608. }
  88609. ctx = graphql.WithFieldContext(ctx, fc)
  88610. defer func() {
  88611. if r := recover(); r != nil {
  88612. ec.Error(ctx, ec.Recover(ctx, r))
  88613. ret = graphql.Null
  88614. }
  88615. }()
  88616. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  88617. ctx = rctx // use context from middleware stack in children
  88618. return obj.StandardTemplate, nil
  88619. })
  88620. if err != nil {
  88621. ec.Error(ctx, err)
  88622. return graphql.Null
  88623. }
  88624. if resTmp == nil {
  88625. return graphql.Null
  88626. }
  88627. res := resTmp.(*StandardMetafieldDefinitionTemplate)
  88628. fc.Result = res
  88629. return ec.marshalOStandardMetafieldDefinitionTemplate2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStandardMetafieldDefinitionTemplate(ctx, field.Selections, res)
  88630. }
  88631. func (ec *executionContext) fieldContext_MetafieldDefinition_standardTemplate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  88632. fc = &graphql.FieldContext{
  88633. Object: "MetafieldDefinition",
  88634. Field: field,
  88635. IsMethod: false,
  88636. IsResolver: false,
  88637. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  88638. switch field.Name {
  88639. case "description":
  88640. return ec.fieldContext_StandardMetafieldDefinitionTemplate_description(ctx, field)
  88641. case "id":
  88642. return ec.fieldContext_StandardMetafieldDefinitionTemplate_id(ctx, field)
  88643. case "key":
  88644. return ec.fieldContext_StandardMetafieldDefinitionTemplate_key(ctx, field)
  88645. case "name":
  88646. return ec.fieldContext_StandardMetafieldDefinitionTemplate_name(ctx, field)
  88647. case "namespace":
  88648. return ec.fieldContext_StandardMetafieldDefinitionTemplate_namespace(ctx, field)
  88649. case "ownerTypes":
  88650. return ec.fieldContext_StandardMetafieldDefinitionTemplate_ownerTypes(ctx, field)
  88651. case "type":
  88652. return ec.fieldContext_StandardMetafieldDefinitionTemplate_type(ctx, field)
  88653. case "validations":
  88654. return ec.fieldContext_StandardMetafieldDefinitionTemplate_validations(ctx, field)
  88655. case "visibleToStorefrontApi":
  88656. return ec.fieldContext_StandardMetafieldDefinitionTemplate_visibleToStorefrontApi(ctx, field)
  88657. }
  88658. return nil, fmt.Errorf("no field named %q was found under type StandardMetafieldDefinitionTemplate", field.Name)
  88659. },
  88660. }
  88661. return fc, nil
  88662. }
  88663. func (ec *executionContext) _MetafieldDefinition_type(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinition) (ret graphql.Marshaler) {
  88664. fc, err := ec.fieldContext_MetafieldDefinition_type(ctx, field)
  88665. if err != nil {
  88666. return graphql.Null
  88667. }
  88668. ctx = graphql.WithFieldContext(ctx, fc)
  88669. defer func() {
  88670. if r := recover(); r != nil {
  88671. ec.Error(ctx, ec.Recover(ctx, r))
  88672. ret = graphql.Null
  88673. }
  88674. }()
  88675. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  88676. ctx = rctx // use context from middleware stack in children
  88677. return obj.Type, nil
  88678. })
  88679. if err != nil {
  88680. ec.Error(ctx, err)
  88681. return graphql.Null
  88682. }
  88683. if resTmp == nil {
  88684. if !graphql.HasFieldError(ctx, fc) {
  88685. ec.Errorf(ctx, "must not be null")
  88686. }
  88687. return graphql.Null
  88688. }
  88689. res := resTmp.(*MetafieldDefinitionType)
  88690. fc.Result = res
  88691. return ec.marshalNMetafieldDefinitionType2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionType(ctx, field.Selections, res)
  88692. }
  88693. func (ec *executionContext) fieldContext_MetafieldDefinition_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  88694. fc = &graphql.FieldContext{
  88695. Object: "MetafieldDefinition",
  88696. Field: field,
  88697. IsMethod: false,
  88698. IsResolver: false,
  88699. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  88700. switch field.Name {
  88701. case "category":
  88702. return ec.fieldContext_MetafieldDefinitionType_category(ctx, field)
  88703. case "name":
  88704. return ec.fieldContext_MetafieldDefinitionType_name(ctx, field)
  88705. case "supportedValidations":
  88706. return ec.fieldContext_MetafieldDefinitionType_supportedValidations(ctx, field)
  88707. case "supportsDefinitionMigrations":
  88708. return ec.fieldContext_MetafieldDefinitionType_supportsDefinitionMigrations(ctx, field)
  88709. }
  88710. return nil, fmt.Errorf("no field named %q was found under type MetafieldDefinitionType", field.Name)
  88711. },
  88712. }
  88713. return fc, nil
  88714. }
  88715. func (ec *executionContext) _MetafieldDefinition_validationStatus(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinition) (ret graphql.Marshaler) {
  88716. fc, err := ec.fieldContext_MetafieldDefinition_validationStatus(ctx, field)
  88717. if err != nil {
  88718. return graphql.Null
  88719. }
  88720. ctx = graphql.WithFieldContext(ctx, fc)
  88721. defer func() {
  88722. if r := recover(); r != nil {
  88723. ec.Error(ctx, ec.Recover(ctx, r))
  88724. ret = graphql.Null
  88725. }
  88726. }()
  88727. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  88728. ctx = rctx // use context from middleware stack in children
  88729. return obj.ValidationStatus, nil
  88730. })
  88731. if err != nil {
  88732. ec.Error(ctx, err)
  88733. return graphql.Null
  88734. }
  88735. if resTmp == nil {
  88736. if !graphql.HasFieldError(ctx, fc) {
  88737. ec.Errorf(ctx, "must not be null")
  88738. }
  88739. return graphql.Null
  88740. }
  88741. res := resTmp.(MetafieldDefinitionValidationStatus)
  88742. fc.Result = res
  88743. return ec.marshalNMetafieldDefinitionValidationStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionValidationStatus(ctx, field.Selections, res)
  88744. }
  88745. func (ec *executionContext) fieldContext_MetafieldDefinition_validationStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  88746. fc = &graphql.FieldContext{
  88747. Object: "MetafieldDefinition",
  88748. Field: field,
  88749. IsMethod: false,
  88750. IsResolver: false,
  88751. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  88752. return nil, errors.New("field of type MetafieldDefinitionValidationStatus does not have child fields")
  88753. },
  88754. }
  88755. return fc, nil
  88756. }
  88757. func (ec *executionContext) _MetafieldDefinition_validations(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinition) (ret graphql.Marshaler) {
  88758. fc, err := ec.fieldContext_MetafieldDefinition_validations(ctx, field)
  88759. if err != nil {
  88760. return graphql.Null
  88761. }
  88762. ctx = graphql.WithFieldContext(ctx, fc)
  88763. defer func() {
  88764. if r := recover(); r != nil {
  88765. ec.Error(ctx, ec.Recover(ctx, r))
  88766. ret = graphql.Null
  88767. }
  88768. }()
  88769. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  88770. ctx = rctx // use context from middleware stack in children
  88771. return obj.Validations, nil
  88772. })
  88773. if err != nil {
  88774. ec.Error(ctx, err)
  88775. return graphql.Null
  88776. }
  88777. if resTmp == nil {
  88778. if !graphql.HasFieldError(ctx, fc) {
  88779. ec.Errorf(ctx, "must not be null")
  88780. }
  88781. return graphql.Null
  88782. }
  88783. res := resTmp.([]*MetafieldDefinitionValidation)
  88784. fc.Result = res
  88785. return ec.marshalNMetafieldDefinitionValidation2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionValidationᚄ(ctx, field.Selections, res)
  88786. }
  88787. func (ec *executionContext) fieldContext_MetafieldDefinition_validations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  88788. fc = &graphql.FieldContext{
  88789. Object: "MetafieldDefinition",
  88790. Field: field,
  88791. IsMethod: false,
  88792. IsResolver: false,
  88793. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  88794. switch field.Name {
  88795. case "name":
  88796. return ec.fieldContext_MetafieldDefinitionValidation_name(ctx, field)
  88797. case "type":
  88798. return ec.fieldContext_MetafieldDefinitionValidation_type(ctx, field)
  88799. case "value":
  88800. return ec.fieldContext_MetafieldDefinitionValidation_value(ctx, field)
  88801. }
  88802. return nil, fmt.Errorf("no field named %q was found under type MetafieldDefinitionValidation", field.Name)
  88803. },
  88804. }
  88805. return fc, nil
  88806. }
  88807. func (ec *executionContext) _MetafieldDefinition_visibleToStorefrontApi(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinition) (ret graphql.Marshaler) {
  88808. fc, err := ec.fieldContext_MetafieldDefinition_visibleToStorefrontApi(ctx, field)
  88809. if err != nil {
  88810. return graphql.Null
  88811. }
  88812. ctx = graphql.WithFieldContext(ctx, fc)
  88813. defer func() {
  88814. if r := recover(); r != nil {
  88815. ec.Error(ctx, ec.Recover(ctx, r))
  88816. ret = graphql.Null
  88817. }
  88818. }()
  88819. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  88820. ctx = rctx // use context from middleware stack in children
  88821. return obj.VisibleToStorefrontAPI, nil
  88822. })
  88823. if err != nil {
  88824. ec.Error(ctx, err)
  88825. return graphql.Null
  88826. }
  88827. if resTmp == nil {
  88828. if !graphql.HasFieldError(ctx, fc) {
  88829. ec.Errorf(ctx, "must not be null")
  88830. }
  88831. return graphql.Null
  88832. }
  88833. res := resTmp.(bool)
  88834. fc.Result = res
  88835. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  88836. }
  88837. func (ec *executionContext) fieldContext_MetafieldDefinition_visibleToStorefrontApi(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  88838. fc = &graphql.FieldContext{
  88839. Object: "MetafieldDefinition",
  88840. Field: field,
  88841. IsMethod: false,
  88842. IsResolver: false,
  88843. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  88844. return nil, errors.New("field of type Boolean does not have child fields")
  88845. },
  88846. }
  88847. return fc, nil
  88848. }
  88849. func (ec *executionContext) _MetafieldDefinitionConnection_edges(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinitionConnection) (ret graphql.Marshaler) {
  88850. fc, err := ec.fieldContext_MetafieldDefinitionConnection_edges(ctx, field)
  88851. if err != nil {
  88852. return graphql.Null
  88853. }
  88854. ctx = graphql.WithFieldContext(ctx, fc)
  88855. defer func() {
  88856. if r := recover(); r != nil {
  88857. ec.Error(ctx, ec.Recover(ctx, r))
  88858. ret = graphql.Null
  88859. }
  88860. }()
  88861. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  88862. ctx = rctx // use context from middleware stack in children
  88863. return obj.Edges, nil
  88864. })
  88865. if err != nil {
  88866. ec.Error(ctx, err)
  88867. return graphql.Null
  88868. }
  88869. if resTmp == nil {
  88870. if !graphql.HasFieldError(ctx, fc) {
  88871. ec.Errorf(ctx, "must not be null")
  88872. }
  88873. return graphql.Null
  88874. }
  88875. res := resTmp.([]*MetafieldDefinitionEdge)
  88876. fc.Result = res
  88877. return ec.marshalNMetafieldDefinitionEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionEdgeᚄ(ctx, field.Selections, res)
  88878. }
  88879. func (ec *executionContext) fieldContext_MetafieldDefinitionConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  88880. fc = &graphql.FieldContext{
  88881. Object: "MetafieldDefinitionConnection",
  88882. Field: field,
  88883. IsMethod: false,
  88884. IsResolver: false,
  88885. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  88886. switch field.Name {
  88887. case "cursor":
  88888. return ec.fieldContext_MetafieldDefinitionEdge_cursor(ctx, field)
  88889. case "node":
  88890. return ec.fieldContext_MetafieldDefinitionEdge_node(ctx, field)
  88891. }
  88892. return nil, fmt.Errorf("no field named %q was found under type MetafieldDefinitionEdge", field.Name)
  88893. },
  88894. }
  88895. return fc, nil
  88896. }
  88897. func (ec *executionContext) _MetafieldDefinitionConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinitionConnection) (ret graphql.Marshaler) {
  88898. fc, err := ec.fieldContext_MetafieldDefinitionConnection_nodes(ctx, field)
  88899. if err != nil {
  88900. return graphql.Null
  88901. }
  88902. ctx = graphql.WithFieldContext(ctx, fc)
  88903. defer func() {
  88904. if r := recover(); r != nil {
  88905. ec.Error(ctx, ec.Recover(ctx, r))
  88906. ret = graphql.Null
  88907. }
  88908. }()
  88909. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  88910. ctx = rctx // use context from middleware stack in children
  88911. return obj.Nodes, nil
  88912. })
  88913. if err != nil {
  88914. ec.Error(ctx, err)
  88915. return graphql.Null
  88916. }
  88917. if resTmp == nil {
  88918. if !graphql.HasFieldError(ctx, fc) {
  88919. ec.Errorf(ctx, "must not be null")
  88920. }
  88921. return graphql.Null
  88922. }
  88923. res := resTmp.([]*MetafieldDefinition)
  88924. fc.Result = res
  88925. return ec.marshalNMetafieldDefinition2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionᚄ(ctx, field.Selections, res)
  88926. }
  88927. func (ec *executionContext) fieldContext_MetafieldDefinitionConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  88928. fc = &graphql.FieldContext{
  88929. Object: "MetafieldDefinitionConnection",
  88930. Field: field,
  88931. IsMethod: false,
  88932. IsResolver: false,
  88933. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  88934. switch field.Name {
  88935. case "description":
  88936. return ec.fieldContext_MetafieldDefinition_description(ctx, field)
  88937. case "id":
  88938. return ec.fieldContext_MetafieldDefinition_id(ctx, field)
  88939. case "key":
  88940. return ec.fieldContext_MetafieldDefinition_key(ctx, field)
  88941. case "metafields":
  88942. return ec.fieldContext_MetafieldDefinition_metafields(ctx, field)
  88943. case "metafieldsCount":
  88944. return ec.fieldContext_MetafieldDefinition_metafieldsCount(ctx, field)
  88945. case "name":
  88946. return ec.fieldContext_MetafieldDefinition_name(ctx, field)
  88947. case "namespace":
  88948. return ec.fieldContext_MetafieldDefinition_namespace(ctx, field)
  88949. case "ownerType":
  88950. return ec.fieldContext_MetafieldDefinition_ownerType(ctx, field)
  88951. case "pinnedPosition":
  88952. return ec.fieldContext_MetafieldDefinition_pinnedPosition(ctx, field)
  88953. case "standardTemplate":
  88954. return ec.fieldContext_MetafieldDefinition_standardTemplate(ctx, field)
  88955. case "type":
  88956. return ec.fieldContext_MetafieldDefinition_type(ctx, field)
  88957. case "validationStatus":
  88958. return ec.fieldContext_MetafieldDefinition_validationStatus(ctx, field)
  88959. case "validations":
  88960. return ec.fieldContext_MetafieldDefinition_validations(ctx, field)
  88961. case "visibleToStorefrontApi":
  88962. return ec.fieldContext_MetafieldDefinition_visibleToStorefrontApi(ctx, field)
  88963. }
  88964. return nil, fmt.Errorf("no field named %q was found under type MetafieldDefinition", field.Name)
  88965. },
  88966. }
  88967. return fc, nil
  88968. }
  88969. func (ec *executionContext) _MetafieldDefinitionConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinitionConnection) (ret graphql.Marshaler) {
  88970. fc, err := ec.fieldContext_MetafieldDefinitionConnection_pageInfo(ctx, field)
  88971. if err != nil {
  88972. return graphql.Null
  88973. }
  88974. ctx = graphql.WithFieldContext(ctx, fc)
  88975. defer func() {
  88976. if r := recover(); r != nil {
  88977. ec.Error(ctx, ec.Recover(ctx, r))
  88978. ret = graphql.Null
  88979. }
  88980. }()
  88981. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  88982. ctx = rctx // use context from middleware stack in children
  88983. return obj.PageInfo, nil
  88984. })
  88985. if err != nil {
  88986. ec.Error(ctx, err)
  88987. return graphql.Null
  88988. }
  88989. if resTmp == nil {
  88990. if !graphql.HasFieldError(ctx, fc) {
  88991. ec.Errorf(ctx, "must not be null")
  88992. }
  88993. return graphql.Null
  88994. }
  88995. res := resTmp.(*PageInfo)
  88996. fc.Result = res
  88997. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  88998. }
  88999. func (ec *executionContext) fieldContext_MetafieldDefinitionConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  89000. fc = &graphql.FieldContext{
  89001. Object: "MetafieldDefinitionConnection",
  89002. Field: field,
  89003. IsMethod: false,
  89004. IsResolver: false,
  89005. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  89006. switch field.Name {
  89007. case "endCursor":
  89008. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  89009. case "hasNextPage":
  89010. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  89011. case "hasPreviousPage":
  89012. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  89013. case "startCursor":
  89014. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  89015. }
  89016. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  89017. },
  89018. }
  89019. return fc, nil
  89020. }
  89021. func (ec *executionContext) _MetafieldDefinitionEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinitionEdge) (ret graphql.Marshaler) {
  89022. fc, err := ec.fieldContext_MetafieldDefinitionEdge_cursor(ctx, field)
  89023. if err != nil {
  89024. return graphql.Null
  89025. }
  89026. ctx = graphql.WithFieldContext(ctx, fc)
  89027. defer func() {
  89028. if r := recover(); r != nil {
  89029. ec.Error(ctx, ec.Recover(ctx, r))
  89030. ret = graphql.Null
  89031. }
  89032. }()
  89033. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  89034. ctx = rctx // use context from middleware stack in children
  89035. return obj.Cursor, nil
  89036. })
  89037. if err != nil {
  89038. ec.Error(ctx, err)
  89039. return graphql.Null
  89040. }
  89041. if resTmp == nil {
  89042. if !graphql.HasFieldError(ctx, fc) {
  89043. ec.Errorf(ctx, "must not be null")
  89044. }
  89045. return graphql.Null
  89046. }
  89047. res := resTmp.(string)
  89048. fc.Result = res
  89049. return ec.marshalNString2string(ctx, field.Selections, res)
  89050. }
  89051. func (ec *executionContext) fieldContext_MetafieldDefinitionEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  89052. fc = &graphql.FieldContext{
  89053. Object: "MetafieldDefinitionEdge",
  89054. Field: field,
  89055. IsMethod: false,
  89056. IsResolver: false,
  89057. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  89058. return nil, errors.New("field of type String does not have child fields")
  89059. },
  89060. }
  89061. return fc, nil
  89062. }
  89063. func (ec *executionContext) _MetafieldDefinitionEdge_node(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinitionEdge) (ret graphql.Marshaler) {
  89064. fc, err := ec.fieldContext_MetafieldDefinitionEdge_node(ctx, field)
  89065. if err != nil {
  89066. return graphql.Null
  89067. }
  89068. ctx = graphql.WithFieldContext(ctx, fc)
  89069. defer func() {
  89070. if r := recover(); r != nil {
  89071. ec.Error(ctx, ec.Recover(ctx, r))
  89072. ret = graphql.Null
  89073. }
  89074. }()
  89075. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  89076. ctx = rctx // use context from middleware stack in children
  89077. return obj.Node, nil
  89078. })
  89079. if err != nil {
  89080. ec.Error(ctx, err)
  89081. return graphql.Null
  89082. }
  89083. if resTmp == nil {
  89084. if !graphql.HasFieldError(ctx, fc) {
  89085. ec.Errorf(ctx, "must not be null")
  89086. }
  89087. return graphql.Null
  89088. }
  89089. res := resTmp.(*MetafieldDefinition)
  89090. fc.Result = res
  89091. return ec.marshalNMetafieldDefinition2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinition(ctx, field.Selections, res)
  89092. }
  89093. func (ec *executionContext) fieldContext_MetafieldDefinitionEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  89094. fc = &graphql.FieldContext{
  89095. Object: "MetafieldDefinitionEdge",
  89096. Field: field,
  89097. IsMethod: false,
  89098. IsResolver: false,
  89099. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  89100. switch field.Name {
  89101. case "description":
  89102. return ec.fieldContext_MetafieldDefinition_description(ctx, field)
  89103. case "id":
  89104. return ec.fieldContext_MetafieldDefinition_id(ctx, field)
  89105. case "key":
  89106. return ec.fieldContext_MetafieldDefinition_key(ctx, field)
  89107. case "metafields":
  89108. return ec.fieldContext_MetafieldDefinition_metafields(ctx, field)
  89109. case "metafieldsCount":
  89110. return ec.fieldContext_MetafieldDefinition_metafieldsCount(ctx, field)
  89111. case "name":
  89112. return ec.fieldContext_MetafieldDefinition_name(ctx, field)
  89113. case "namespace":
  89114. return ec.fieldContext_MetafieldDefinition_namespace(ctx, field)
  89115. case "ownerType":
  89116. return ec.fieldContext_MetafieldDefinition_ownerType(ctx, field)
  89117. case "pinnedPosition":
  89118. return ec.fieldContext_MetafieldDefinition_pinnedPosition(ctx, field)
  89119. case "standardTemplate":
  89120. return ec.fieldContext_MetafieldDefinition_standardTemplate(ctx, field)
  89121. case "type":
  89122. return ec.fieldContext_MetafieldDefinition_type(ctx, field)
  89123. case "validationStatus":
  89124. return ec.fieldContext_MetafieldDefinition_validationStatus(ctx, field)
  89125. case "validations":
  89126. return ec.fieldContext_MetafieldDefinition_validations(ctx, field)
  89127. case "visibleToStorefrontApi":
  89128. return ec.fieldContext_MetafieldDefinition_visibleToStorefrontApi(ctx, field)
  89129. }
  89130. return nil, fmt.Errorf("no field named %q was found under type MetafieldDefinition", field.Name)
  89131. },
  89132. }
  89133. return fc, nil
  89134. }
  89135. func (ec *executionContext) _MetafieldDefinitionSupportedValidation_name(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinitionSupportedValidation) (ret graphql.Marshaler) {
  89136. fc, err := ec.fieldContext_MetafieldDefinitionSupportedValidation_name(ctx, field)
  89137. if err != nil {
  89138. return graphql.Null
  89139. }
  89140. ctx = graphql.WithFieldContext(ctx, fc)
  89141. defer func() {
  89142. if r := recover(); r != nil {
  89143. ec.Error(ctx, ec.Recover(ctx, r))
  89144. ret = graphql.Null
  89145. }
  89146. }()
  89147. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  89148. ctx = rctx // use context from middleware stack in children
  89149. return obj.Name, nil
  89150. })
  89151. if err != nil {
  89152. ec.Error(ctx, err)
  89153. return graphql.Null
  89154. }
  89155. if resTmp == nil {
  89156. if !graphql.HasFieldError(ctx, fc) {
  89157. ec.Errorf(ctx, "must not be null")
  89158. }
  89159. return graphql.Null
  89160. }
  89161. res := resTmp.(string)
  89162. fc.Result = res
  89163. return ec.marshalNString2string(ctx, field.Selections, res)
  89164. }
  89165. func (ec *executionContext) fieldContext_MetafieldDefinitionSupportedValidation_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  89166. fc = &graphql.FieldContext{
  89167. Object: "MetafieldDefinitionSupportedValidation",
  89168. Field: field,
  89169. IsMethod: false,
  89170. IsResolver: false,
  89171. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  89172. return nil, errors.New("field of type String does not have child fields")
  89173. },
  89174. }
  89175. return fc, nil
  89176. }
  89177. func (ec *executionContext) _MetafieldDefinitionSupportedValidation_type(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinitionSupportedValidation) (ret graphql.Marshaler) {
  89178. fc, err := ec.fieldContext_MetafieldDefinitionSupportedValidation_type(ctx, field)
  89179. if err != nil {
  89180. return graphql.Null
  89181. }
  89182. ctx = graphql.WithFieldContext(ctx, fc)
  89183. defer func() {
  89184. if r := recover(); r != nil {
  89185. ec.Error(ctx, ec.Recover(ctx, r))
  89186. ret = graphql.Null
  89187. }
  89188. }()
  89189. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  89190. ctx = rctx // use context from middleware stack in children
  89191. return obj.Type, nil
  89192. })
  89193. if err != nil {
  89194. ec.Error(ctx, err)
  89195. return graphql.Null
  89196. }
  89197. if resTmp == nil {
  89198. if !graphql.HasFieldError(ctx, fc) {
  89199. ec.Errorf(ctx, "must not be null")
  89200. }
  89201. return graphql.Null
  89202. }
  89203. res := resTmp.(string)
  89204. fc.Result = res
  89205. return ec.marshalNString2string(ctx, field.Selections, res)
  89206. }
  89207. func (ec *executionContext) fieldContext_MetafieldDefinitionSupportedValidation_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  89208. fc = &graphql.FieldContext{
  89209. Object: "MetafieldDefinitionSupportedValidation",
  89210. Field: field,
  89211. IsMethod: false,
  89212. IsResolver: false,
  89213. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  89214. return nil, errors.New("field of type String does not have child fields")
  89215. },
  89216. }
  89217. return fc, nil
  89218. }
  89219. func (ec *executionContext) _MetafieldDefinitionType_category(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinitionType) (ret graphql.Marshaler) {
  89220. fc, err := ec.fieldContext_MetafieldDefinitionType_category(ctx, field)
  89221. if err != nil {
  89222. return graphql.Null
  89223. }
  89224. ctx = graphql.WithFieldContext(ctx, fc)
  89225. defer func() {
  89226. if r := recover(); r != nil {
  89227. ec.Error(ctx, ec.Recover(ctx, r))
  89228. ret = graphql.Null
  89229. }
  89230. }()
  89231. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  89232. ctx = rctx // use context from middleware stack in children
  89233. return obj.Category, nil
  89234. })
  89235. if err != nil {
  89236. ec.Error(ctx, err)
  89237. return graphql.Null
  89238. }
  89239. if resTmp == nil {
  89240. if !graphql.HasFieldError(ctx, fc) {
  89241. ec.Errorf(ctx, "must not be null")
  89242. }
  89243. return graphql.Null
  89244. }
  89245. res := resTmp.(string)
  89246. fc.Result = res
  89247. return ec.marshalNString2string(ctx, field.Selections, res)
  89248. }
  89249. func (ec *executionContext) fieldContext_MetafieldDefinitionType_category(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  89250. fc = &graphql.FieldContext{
  89251. Object: "MetafieldDefinitionType",
  89252. Field: field,
  89253. IsMethod: false,
  89254. IsResolver: false,
  89255. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  89256. return nil, errors.New("field of type String does not have child fields")
  89257. },
  89258. }
  89259. return fc, nil
  89260. }
  89261. func (ec *executionContext) _MetafieldDefinitionType_name(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinitionType) (ret graphql.Marshaler) {
  89262. fc, err := ec.fieldContext_MetafieldDefinitionType_name(ctx, field)
  89263. if err != nil {
  89264. return graphql.Null
  89265. }
  89266. ctx = graphql.WithFieldContext(ctx, fc)
  89267. defer func() {
  89268. if r := recover(); r != nil {
  89269. ec.Error(ctx, ec.Recover(ctx, r))
  89270. ret = graphql.Null
  89271. }
  89272. }()
  89273. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  89274. ctx = rctx // use context from middleware stack in children
  89275. return obj.Name, nil
  89276. })
  89277. if err != nil {
  89278. ec.Error(ctx, err)
  89279. return graphql.Null
  89280. }
  89281. if resTmp == nil {
  89282. if !graphql.HasFieldError(ctx, fc) {
  89283. ec.Errorf(ctx, "must not be null")
  89284. }
  89285. return graphql.Null
  89286. }
  89287. res := resTmp.(string)
  89288. fc.Result = res
  89289. return ec.marshalNString2string(ctx, field.Selections, res)
  89290. }
  89291. func (ec *executionContext) fieldContext_MetafieldDefinitionType_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  89292. fc = &graphql.FieldContext{
  89293. Object: "MetafieldDefinitionType",
  89294. Field: field,
  89295. IsMethod: false,
  89296. IsResolver: false,
  89297. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  89298. return nil, errors.New("field of type String does not have child fields")
  89299. },
  89300. }
  89301. return fc, nil
  89302. }
  89303. func (ec *executionContext) _MetafieldDefinitionType_supportedValidations(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinitionType) (ret graphql.Marshaler) {
  89304. fc, err := ec.fieldContext_MetafieldDefinitionType_supportedValidations(ctx, field)
  89305. if err != nil {
  89306. return graphql.Null
  89307. }
  89308. ctx = graphql.WithFieldContext(ctx, fc)
  89309. defer func() {
  89310. if r := recover(); r != nil {
  89311. ec.Error(ctx, ec.Recover(ctx, r))
  89312. ret = graphql.Null
  89313. }
  89314. }()
  89315. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  89316. ctx = rctx // use context from middleware stack in children
  89317. return obj.SupportedValidations, nil
  89318. })
  89319. if err != nil {
  89320. ec.Error(ctx, err)
  89321. return graphql.Null
  89322. }
  89323. if resTmp == nil {
  89324. if !graphql.HasFieldError(ctx, fc) {
  89325. ec.Errorf(ctx, "must not be null")
  89326. }
  89327. return graphql.Null
  89328. }
  89329. res := resTmp.([]*MetafieldDefinitionSupportedValidation)
  89330. fc.Result = res
  89331. return ec.marshalNMetafieldDefinitionSupportedValidation2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionSupportedValidationᚄ(ctx, field.Selections, res)
  89332. }
  89333. func (ec *executionContext) fieldContext_MetafieldDefinitionType_supportedValidations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  89334. fc = &graphql.FieldContext{
  89335. Object: "MetafieldDefinitionType",
  89336. Field: field,
  89337. IsMethod: false,
  89338. IsResolver: false,
  89339. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  89340. switch field.Name {
  89341. case "name":
  89342. return ec.fieldContext_MetafieldDefinitionSupportedValidation_name(ctx, field)
  89343. case "type":
  89344. return ec.fieldContext_MetafieldDefinitionSupportedValidation_type(ctx, field)
  89345. }
  89346. return nil, fmt.Errorf("no field named %q was found under type MetafieldDefinitionSupportedValidation", field.Name)
  89347. },
  89348. }
  89349. return fc, nil
  89350. }
  89351. func (ec *executionContext) _MetafieldDefinitionType_supportsDefinitionMigrations(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinitionType) (ret graphql.Marshaler) {
  89352. fc, err := ec.fieldContext_MetafieldDefinitionType_supportsDefinitionMigrations(ctx, field)
  89353. if err != nil {
  89354. return graphql.Null
  89355. }
  89356. ctx = graphql.WithFieldContext(ctx, fc)
  89357. defer func() {
  89358. if r := recover(); r != nil {
  89359. ec.Error(ctx, ec.Recover(ctx, r))
  89360. ret = graphql.Null
  89361. }
  89362. }()
  89363. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  89364. ctx = rctx // use context from middleware stack in children
  89365. return obj.SupportsDefinitionMigrations, nil
  89366. })
  89367. if err != nil {
  89368. ec.Error(ctx, err)
  89369. return graphql.Null
  89370. }
  89371. if resTmp == nil {
  89372. if !graphql.HasFieldError(ctx, fc) {
  89373. ec.Errorf(ctx, "must not be null")
  89374. }
  89375. return graphql.Null
  89376. }
  89377. res := resTmp.(bool)
  89378. fc.Result = res
  89379. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  89380. }
  89381. func (ec *executionContext) fieldContext_MetafieldDefinitionType_supportsDefinitionMigrations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  89382. fc = &graphql.FieldContext{
  89383. Object: "MetafieldDefinitionType",
  89384. Field: field,
  89385. IsMethod: false,
  89386. IsResolver: false,
  89387. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  89388. return nil, errors.New("field of type Boolean does not have child fields")
  89389. },
  89390. }
  89391. return fc, nil
  89392. }
  89393. func (ec *executionContext) _MetafieldDefinitionValidation_name(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinitionValidation) (ret graphql.Marshaler) {
  89394. fc, err := ec.fieldContext_MetafieldDefinitionValidation_name(ctx, field)
  89395. if err != nil {
  89396. return graphql.Null
  89397. }
  89398. ctx = graphql.WithFieldContext(ctx, fc)
  89399. defer func() {
  89400. if r := recover(); r != nil {
  89401. ec.Error(ctx, ec.Recover(ctx, r))
  89402. ret = graphql.Null
  89403. }
  89404. }()
  89405. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  89406. ctx = rctx // use context from middleware stack in children
  89407. return obj.Name, nil
  89408. })
  89409. if err != nil {
  89410. ec.Error(ctx, err)
  89411. return graphql.Null
  89412. }
  89413. if resTmp == nil {
  89414. if !graphql.HasFieldError(ctx, fc) {
  89415. ec.Errorf(ctx, "must not be null")
  89416. }
  89417. return graphql.Null
  89418. }
  89419. res := resTmp.(string)
  89420. fc.Result = res
  89421. return ec.marshalNString2string(ctx, field.Selections, res)
  89422. }
  89423. func (ec *executionContext) fieldContext_MetafieldDefinitionValidation_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  89424. fc = &graphql.FieldContext{
  89425. Object: "MetafieldDefinitionValidation",
  89426. Field: field,
  89427. IsMethod: false,
  89428. IsResolver: false,
  89429. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  89430. return nil, errors.New("field of type String does not have child fields")
  89431. },
  89432. }
  89433. return fc, nil
  89434. }
  89435. func (ec *executionContext) _MetafieldDefinitionValidation_type(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinitionValidation) (ret graphql.Marshaler) {
  89436. fc, err := ec.fieldContext_MetafieldDefinitionValidation_type(ctx, field)
  89437. if err != nil {
  89438. return graphql.Null
  89439. }
  89440. ctx = graphql.WithFieldContext(ctx, fc)
  89441. defer func() {
  89442. if r := recover(); r != nil {
  89443. ec.Error(ctx, ec.Recover(ctx, r))
  89444. ret = graphql.Null
  89445. }
  89446. }()
  89447. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  89448. ctx = rctx // use context from middleware stack in children
  89449. return obj.Type, nil
  89450. })
  89451. if err != nil {
  89452. ec.Error(ctx, err)
  89453. return graphql.Null
  89454. }
  89455. if resTmp == nil {
  89456. if !graphql.HasFieldError(ctx, fc) {
  89457. ec.Errorf(ctx, "must not be null")
  89458. }
  89459. return graphql.Null
  89460. }
  89461. res := resTmp.(string)
  89462. fc.Result = res
  89463. return ec.marshalNString2string(ctx, field.Selections, res)
  89464. }
  89465. func (ec *executionContext) fieldContext_MetafieldDefinitionValidation_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  89466. fc = &graphql.FieldContext{
  89467. Object: "MetafieldDefinitionValidation",
  89468. Field: field,
  89469. IsMethod: false,
  89470. IsResolver: false,
  89471. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  89472. return nil, errors.New("field of type String does not have child fields")
  89473. },
  89474. }
  89475. return fc, nil
  89476. }
  89477. func (ec *executionContext) _MetafieldDefinitionValidation_value(ctx context.Context, field graphql.CollectedField, obj *MetafieldDefinitionValidation) (ret graphql.Marshaler) {
  89478. fc, err := ec.fieldContext_MetafieldDefinitionValidation_value(ctx, field)
  89479. if err != nil {
  89480. return graphql.Null
  89481. }
  89482. ctx = graphql.WithFieldContext(ctx, fc)
  89483. defer func() {
  89484. if r := recover(); r != nil {
  89485. ec.Error(ctx, ec.Recover(ctx, r))
  89486. ret = graphql.Null
  89487. }
  89488. }()
  89489. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  89490. ctx = rctx // use context from middleware stack in children
  89491. return obj.Value, nil
  89492. })
  89493. if err != nil {
  89494. ec.Error(ctx, err)
  89495. return graphql.Null
  89496. }
  89497. if resTmp == nil {
  89498. return graphql.Null
  89499. }
  89500. res := resTmp.(*string)
  89501. fc.Result = res
  89502. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  89503. }
  89504. func (ec *executionContext) fieldContext_MetafieldDefinitionValidation_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  89505. fc = &graphql.FieldContext{
  89506. Object: "MetafieldDefinitionValidation",
  89507. Field: field,
  89508. IsMethod: false,
  89509. IsResolver: false,
  89510. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  89511. return nil, errors.New("field of type String does not have child fields")
  89512. },
  89513. }
  89514. return fc, nil
  89515. }
  89516. func (ec *executionContext) _MetafieldEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *MetafieldEdge) (ret graphql.Marshaler) {
  89517. fc, err := ec.fieldContext_MetafieldEdge_cursor(ctx, field)
  89518. if err != nil {
  89519. return graphql.Null
  89520. }
  89521. ctx = graphql.WithFieldContext(ctx, fc)
  89522. defer func() {
  89523. if r := recover(); r != nil {
  89524. ec.Error(ctx, ec.Recover(ctx, r))
  89525. ret = graphql.Null
  89526. }
  89527. }()
  89528. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  89529. ctx = rctx // use context from middleware stack in children
  89530. return obj.Cursor, nil
  89531. })
  89532. if err != nil {
  89533. ec.Error(ctx, err)
  89534. return graphql.Null
  89535. }
  89536. if resTmp == nil {
  89537. if !graphql.HasFieldError(ctx, fc) {
  89538. ec.Errorf(ctx, "must not be null")
  89539. }
  89540. return graphql.Null
  89541. }
  89542. res := resTmp.(string)
  89543. fc.Result = res
  89544. return ec.marshalNString2string(ctx, field.Selections, res)
  89545. }
  89546. func (ec *executionContext) fieldContext_MetafieldEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  89547. fc = &graphql.FieldContext{
  89548. Object: "MetafieldEdge",
  89549. Field: field,
  89550. IsMethod: false,
  89551. IsResolver: false,
  89552. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  89553. return nil, errors.New("field of type String does not have child fields")
  89554. },
  89555. }
  89556. return fc, nil
  89557. }
  89558. func (ec *executionContext) _MetafieldEdge_node(ctx context.Context, field graphql.CollectedField, obj *MetafieldEdge) (ret graphql.Marshaler) {
  89559. fc, err := ec.fieldContext_MetafieldEdge_node(ctx, field)
  89560. if err != nil {
  89561. return graphql.Null
  89562. }
  89563. ctx = graphql.WithFieldContext(ctx, fc)
  89564. defer func() {
  89565. if r := recover(); r != nil {
  89566. ec.Error(ctx, ec.Recover(ctx, r))
  89567. ret = graphql.Null
  89568. }
  89569. }()
  89570. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  89571. ctx = rctx // use context from middleware stack in children
  89572. return obj.Node, nil
  89573. })
  89574. if err != nil {
  89575. ec.Error(ctx, err)
  89576. return graphql.Null
  89577. }
  89578. if resTmp == nil {
  89579. if !graphql.HasFieldError(ctx, fc) {
  89580. ec.Errorf(ctx, "must not be null")
  89581. }
  89582. return graphql.Null
  89583. }
  89584. res := resTmp.(*Metafield)
  89585. fc.Result = res
  89586. return ec.marshalNMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafield(ctx, field.Selections, res)
  89587. }
  89588. func (ec *executionContext) fieldContext_MetafieldEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  89589. fc = &graphql.FieldContext{
  89590. Object: "MetafieldEdge",
  89591. Field: field,
  89592. IsMethod: false,
  89593. IsResolver: false,
  89594. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  89595. switch field.Name {
  89596. case "createdAt":
  89597. return ec.fieldContext_Metafield_createdAt(ctx, field)
  89598. case "definition":
  89599. return ec.fieldContext_Metafield_definition(ctx, field)
  89600. case "description":
  89601. return ec.fieldContext_Metafield_description(ctx, field)
  89602. case "id":
  89603. return ec.fieldContext_Metafield_id(ctx, field)
  89604. case "key":
  89605. return ec.fieldContext_Metafield_key(ctx, field)
  89606. case "legacyResourceId":
  89607. return ec.fieldContext_Metafield_legacyResourceId(ctx, field)
  89608. case "namespace":
  89609. return ec.fieldContext_Metafield_namespace(ctx, field)
  89610. case "owner":
  89611. return ec.fieldContext_Metafield_owner(ctx, field)
  89612. case "ownerType":
  89613. return ec.fieldContext_Metafield_ownerType(ctx, field)
  89614. case "reference":
  89615. return ec.fieldContext_Metafield_reference(ctx, field)
  89616. case "references":
  89617. return ec.fieldContext_Metafield_references(ctx, field)
  89618. case "type":
  89619. return ec.fieldContext_Metafield_type(ctx, field)
  89620. case "updatedAt":
  89621. return ec.fieldContext_Metafield_updatedAt(ctx, field)
  89622. case "value":
  89623. return ec.fieldContext_Metafield_value(ctx, field)
  89624. }
  89625. return nil, fmt.Errorf("no field named %q was found under type Metafield", field.Name)
  89626. },
  89627. }
  89628. return fc, nil
  89629. }
  89630. func (ec *executionContext) _MetafieldReferenceConnection_edges(ctx context.Context, field graphql.CollectedField, obj *MetafieldReferenceConnection) (ret graphql.Marshaler) {
  89631. fc, err := ec.fieldContext_MetafieldReferenceConnection_edges(ctx, field)
  89632. if err != nil {
  89633. return graphql.Null
  89634. }
  89635. ctx = graphql.WithFieldContext(ctx, fc)
  89636. defer func() {
  89637. if r := recover(); r != nil {
  89638. ec.Error(ctx, ec.Recover(ctx, r))
  89639. ret = graphql.Null
  89640. }
  89641. }()
  89642. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  89643. ctx = rctx // use context from middleware stack in children
  89644. return obj.Edges, nil
  89645. })
  89646. if err != nil {
  89647. ec.Error(ctx, err)
  89648. return graphql.Null
  89649. }
  89650. if resTmp == nil {
  89651. if !graphql.HasFieldError(ctx, fc) {
  89652. ec.Errorf(ctx, "must not be null")
  89653. }
  89654. return graphql.Null
  89655. }
  89656. res := resTmp.([]*MetafieldReferenceEdge)
  89657. fc.Result = res
  89658. return ec.marshalNMetafieldReferenceEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldReferenceEdgeᚄ(ctx, field.Selections, res)
  89659. }
  89660. func (ec *executionContext) fieldContext_MetafieldReferenceConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  89661. fc = &graphql.FieldContext{
  89662. Object: "MetafieldReferenceConnection",
  89663. Field: field,
  89664. IsMethod: false,
  89665. IsResolver: false,
  89666. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  89667. switch field.Name {
  89668. case "cursor":
  89669. return ec.fieldContext_MetafieldReferenceEdge_cursor(ctx, field)
  89670. case "node":
  89671. return ec.fieldContext_MetafieldReferenceEdge_node(ctx, field)
  89672. }
  89673. return nil, fmt.Errorf("no field named %q was found under type MetafieldReferenceEdge", field.Name)
  89674. },
  89675. }
  89676. return fc, nil
  89677. }
  89678. func (ec *executionContext) _MetafieldReferenceConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *MetafieldReferenceConnection) (ret graphql.Marshaler) {
  89679. fc, err := ec.fieldContext_MetafieldReferenceConnection_nodes(ctx, field)
  89680. if err != nil {
  89681. return graphql.Null
  89682. }
  89683. ctx = graphql.WithFieldContext(ctx, fc)
  89684. defer func() {
  89685. if r := recover(); r != nil {
  89686. ec.Error(ctx, ec.Recover(ctx, r))
  89687. ret = graphql.Null
  89688. }
  89689. }()
  89690. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  89691. ctx = rctx // use context from middleware stack in children
  89692. return obj.Nodes, nil
  89693. })
  89694. if err != nil {
  89695. ec.Error(ctx, err)
  89696. return graphql.Null
  89697. }
  89698. if resTmp == nil {
  89699. if !graphql.HasFieldError(ctx, fc) {
  89700. ec.Errorf(ctx, "must not be null")
  89701. }
  89702. return graphql.Null
  89703. }
  89704. res := resTmp.([]MetafieldReference)
  89705. fc.Result = res
  89706. return ec.marshalNMetafieldReference2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldReference(ctx, field.Selections, res)
  89707. }
  89708. func (ec *executionContext) fieldContext_MetafieldReferenceConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  89709. fc = &graphql.FieldContext{
  89710. Object: "MetafieldReferenceConnection",
  89711. Field: field,
  89712. IsMethod: false,
  89713. IsResolver: false,
  89714. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  89715. return nil, errors.New("field of type MetafieldReference does not have child fields")
  89716. },
  89717. }
  89718. return fc, nil
  89719. }
  89720. func (ec *executionContext) _MetafieldReferenceConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *MetafieldReferenceConnection) (ret graphql.Marshaler) {
  89721. fc, err := ec.fieldContext_MetafieldReferenceConnection_pageInfo(ctx, field)
  89722. if err != nil {
  89723. return graphql.Null
  89724. }
  89725. ctx = graphql.WithFieldContext(ctx, fc)
  89726. defer func() {
  89727. if r := recover(); r != nil {
  89728. ec.Error(ctx, ec.Recover(ctx, r))
  89729. ret = graphql.Null
  89730. }
  89731. }()
  89732. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  89733. ctx = rctx // use context from middleware stack in children
  89734. return obj.PageInfo, nil
  89735. })
  89736. if err != nil {
  89737. ec.Error(ctx, err)
  89738. return graphql.Null
  89739. }
  89740. if resTmp == nil {
  89741. if !graphql.HasFieldError(ctx, fc) {
  89742. ec.Errorf(ctx, "must not be null")
  89743. }
  89744. return graphql.Null
  89745. }
  89746. res := resTmp.(*PageInfo)
  89747. fc.Result = res
  89748. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  89749. }
  89750. func (ec *executionContext) fieldContext_MetafieldReferenceConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  89751. fc = &graphql.FieldContext{
  89752. Object: "MetafieldReferenceConnection",
  89753. Field: field,
  89754. IsMethod: false,
  89755. IsResolver: false,
  89756. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  89757. switch field.Name {
  89758. case "endCursor":
  89759. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  89760. case "hasNextPage":
  89761. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  89762. case "hasPreviousPage":
  89763. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  89764. case "startCursor":
  89765. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  89766. }
  89767. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  89768. },
  89769. }
  89770. return fc, nil
  89771. }
  89772. func (ec *executionContext) _MetafieldReferenceEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *MetafieldReferenceEdge) (ret graphql.Marshaler) {
  89773. fc, err := ec.fieldContext_MetafieldReferenceEdge_cursor(ctx, field)
  89774. if err != nil {
  89775. return graphql.Null
  89776. }
  89777. ctx = graphql.WithFieldContext(ctx, fc)
  89778. defer func() {
  89779. if r := recover(); r != nil {
  89780. ec.Error(ctx, ec.Recover(ctx, r))
  89781. ret = graphql.Null
  89782. }
  89783. }()
  89784. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  89785. ctx = rctx // use context from middleware stack in children
  89786. return obj.Cursor, nil
  89787. })
  89788. if err != nil {
  89789. ec.Error(ctx, err)
  89790. return graphql.Null
  89791. }
  89792. if resTmp == nil {
  89793. if !graphql.HasFieldError(ctx, fc) {
  89794. ec.Errorf(ctx, "must not be null")
  89795. }
  89796. return graphql.Null
  89797. }
  89798. res := resTmp.(string)
  89799. fc.Result = res
  89800. return ec.marshalNString2string(ctx, field.Selections, res)
  89801. }
  89802. func (ec *executionContext) fieldContext_MetafieldReferenceEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  89803. fc = &graphql.FieldContext{
  89804. Object: "MetafieldReferenceEdge",
  89805. Field: field,
  89806. IsMethod: false,
  89807. IsResolver: false,
  89808. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  89809. return nil, errors.New("field of type String does not have child fields")
  89810. },
  89811. }
  89812. return fc, nil
  89813. }
  89814. func (ec *executionContext) _MetafieldReferenceEdge_node(ctx context.Context, field graphql.CollectedField, obj *MetafieldReferenceEdge) (ret graphql.Marshaler) {
  89815. fc, err := ec.fieldContext_MetafieldReferenceEdge_node(ctx, field)
  89816. if err != nil {
  89817. return graphql.Null
  89818. }
  89819. ctx = graphql.WithFieldContext(ctx, fc)
  89820. defer func() {
  89821. if r := recover(); r != nil {
  89822. ec.Error(ctx, ec.Recover(ctx, r))
  89823. ret = graphql.Null
  89824. }
  89825. }()
  89826. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  89827. ctx = rctx // use context from middleware stack in children
  89828. return obj.Node, nil
  89829. })
  89830. if err != nil {
  89831. ec.Error(ctx, err)
  89832. return graphql.Null
  89833. }
  89834. if resTmp == nil {
  89835. return graphql.Null
  89836. }
  89837. res := resTmp.(MetafieldReference)
  89838. fc.Result = res
  89839. return ec.marshalOMetafieldReference2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldReference(ctx, field.Selections, res)
  89840. }
  89841. func (ec *executionContext) fieldContext_MetafieldReferenceEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  89842. fc = &graphql.FieldContext{
  89843. Object: "MetafieldReferenceEdge",
  89844. Field: field,
  89845. IsMethod: false,
  89846. IsResolver: false,
  89847. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  89848. return nil, errors.New("field of type MetafieldReference does not have child fields")
  89849. },
  89850. }
  89851. return fc, nil
  89852. }
  89853. func (ec *executionContext) _MoneyBag_presentmentMoney(ctx context.Context, field graphql.CollectedField, obj *MoneyBag) (ret graphql.Marshaler) {
  89854. fc, err := ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  89855. if err != nil {
  89856. return graphql.Null
  89857. }
  89858. ctx = graphql.WithFieldContext(ctx, fc)
  89859. defer func() {
  89860. if r := recover(); r != nil {
  89861. ec.Error(ctx, ec.Recover(ctx, r))
  89862. ret = graphql.Null
  89863. }
  89864. }()
  89865. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  89866. ctx = rctx // use context from middleware stack in children
  89867. return obj.PresentmentMoney, nil
  89868. })
  89869. if err != nil {
  89870. ec.Error(ctx, err)
  89871. return graphql.Null
  89872. }
  89873. if resTmp == nil {
  89874. if !graphql.HasFieldError(ctx, fc) {
  89875. ec.Errorf(ctx, "must not be null")
  89876. }
  89877. return graphql.Null
  89878. }
  89879. res := resTmp.(*MoneyV2)
  89880. fc.Result = res
  89881. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  89882. }
  89883. func (ec *executionContext) fieldContext_MoneyBag_presentmentMoney(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  89884. fc = &graphql.FieldContext{
  89885. Object: "MoneyBag",
  89886. Field: field,
  89887. IsMethod: false,
  89888. IsResolver: false,
  89889. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  89890. switch field.Name {
  89891. case "amount":
  89892. return ec.fieldContext_MoneyV2_amount(ctx, field)
  89893. case "currencyCode":
  89894. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  89895. }
  89896. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  89897. },
  89898. }
  89899. return fc, nil
  89900. }
  89901. func (ec *executionContext) _MoneyBag_shopMoney(ctx context.Context, field graphql.CollectedField, obj *MoneyBag) (ret graphql.Marshaler) {
  89902. fc, err := ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  89903. if err != nil {
  89904. return graphql.Null
  89905. }
  89906. ctx = graphql.WithFieldContext(ctx, fc)
  89907. defer func() {
  89908. if r := recover(); r != nil {
  89909. ec.Error(ctx, ec.Recover(ctx, r))
  89910. ret = graphql.Null
  89911. }
  89912. }()
  89913. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  89914. ctx = rctx // use context from middleware stack in children
  89915. return obj.ShopMoney, nil
  89916. })
  89917. if err != nil {
  89918. ec.Error(ctx, err)
  89919. return graphql.Null
  89920. }
  89921. if resTmp == nil {
  89922. if !graphql.HasFieldError(ctx, fc) {
  89923. ec.Errorf(ctx, "must not be null")
  89924. }
  89925. return graphql.Null
  89926. }
  89927. res := resTmp.(*MoneyV2)
  89928. fc.Result = res
  89929. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  89930. }
  89931. func (ec *executionContext) fieldContext_MoneyBag_shopMoney(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  89932. fc = &graphql.FieldContext{
  89933. Object: "MoneyBag",
  89934. Field: field,
  89935. IsMethod: false,
  89936. IsResolver: false,
  89937. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  89938. switch field.Name {
  89939. case "amount":
  89940. return ec.fieldContext_MoneyV2_amount(ctx, field)
  89941. case "currencyCode":
  89942. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  89943. }
  89944. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  89945. },
  89946. }
  89947. return fc, nil
  89948. }
  89949. func (ec *executionContext) _MoneyV2_amount(ctx context.Context, field graphql.CollectedField, obj *MoneyV2) (ret graphql.Marshaler) {
  89950. fc, err := ec.fieldContext_MoneyV2_amount(ctx, field)
  89951. if err != nil {
  89952. return graphql.Null
  89953. }
  89954. ctx = graphql.WithFieldContext(ctx, fc)
  89955. defer func() {
  89956. if r := recover(); r != nil {
  89957. ec.Error(ctx, ec.Recover(ctx, r))
  89958. ret = graphql.Null
  89959. }
  89960. }()
  89961. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  89962. ctx = rctx // use context from middleware stack in children
  89963. return obj.Amount, nil
  89964. })
  89965. if err != nil {
  89966. ec.Error(ctx, err)
  89967. return graphql.Null
  89968. }
  89969. if resTmp == nil {
  89970. if !graphql.HasFieldError(ctx, fc) {
  89971. ec.Errorf(ctx, "must not be null")
  89972. }
  89973. return graphql.Null
  89974. }
  89975. res := resTmp.(string)
  89976. fc.Result = res
  89977. return ec.marshalNDecimal2string(ctx, field.Selections, res)
  89978. }
  89979. func (ec *executionContext) fieldContext_MoneyV2_amount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  89980. fc = &graphql.FieldContext{
  89981. Object: "MoneyV2",
  89982. Field: field,
  89983. IsMethod: false,
  89984. IsResolver: false,
  89985. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  89986. return nil, errors.New("field of type Decimal does not have child fields")
  89987. },
  89988. }
  89989. return fc, nil
  89990. }
  89991. func (ec *executionContext) _MoneyV2_currencyCode(ctx context.Context, field graphql.CollectedField, obj *MoneyV2) (ret graphql.Marshaler) {
  89992. fc, err := ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  89993. if err != nil {
  89994. return graphql.Null
  89995. }
  89996. ctx = graphql.WithFieldContext(ctx, fc)
  89997. defer func() {
  89998. if r := recover(); r != nil {
  89999. ec.Error(ctx, ec.Recover(ctx, r))
  90000. ret = graphql.Null
  90001. }
  90002. }()
  90003. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  90004. ctx = rctx // use context from middleware stack in children
  90005. return obj.CurrencyCode, nil
  90006. })
  90007. if err != nil {
  90008. ec.Error(ctx, err)
  90009. return graphql.Null
  90010. }
  90011. if resTmp == nil {
  90012. if !graphql.HasFieldError(ctx, fc) {
  90013. ec.Errorf(ctx, "must not be null")
  90014. }
  90015. return graphql.Null
  90016. }
  90017. res := resTmp.(CurrencyCode)
  90018. fc.Result = res
  90019. return ec.marshalNCurrencyCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencyCode(ctx, field.Selections, res)
  90020. }
  90021. func (ec *executionContext) fieldContext_MoneyV2_currencyCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  90022. fc = &graphql.FieldContext{
  90023. Object: "MoneyV2",
  90024. Field: field,
  90025. IsMethod: false,
  90026. IsResolver: false,
  90027. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  90028. return nil, errors.New("field of type CurrencyCode does not have child fields")
  90029. },
  90030. }
  90031. return fc, nil
  90032. }
  90033. func (ec *executionContext) _Mutation_customerCreate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
  90034. fc, err := ec.fieldContext_Mutation_customerCreate(ctx, field)
  90035. if err != nil {
  90036. return graphql.Null
  90037. }
  90038. ctx = graphql.WithFieldContext(ctx, fc)
  90039. defer func() {
  90040. if r := recover(); r != nil {
  90041. ec.Error(ctx, ec.Recover(ctx, r))
  90042. ret = graphql.Null
  90043. }
  90044. }()
  90045. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  90046. ctx = rctx // use context from middleware stack in children
  90047. return ec.resolvers.Mutation().CustomerCreate(rctx, fc.Args["input"].(CustomerInput))
  90048. })
  90049. if err != nil {
  90050. ec.Error(ctx, err)
  90051. return graphql.Null
  90052. }
  90053. if resTmp == nil {
  90054. return graphql.Null
  90055. }
  90056. res := resTmp.(*CustomerCreatePayload)
  90057. fc.Result = res
  90058. return ec.marshalOCustomerCreatePayload2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerCreatePayload(ctx, field.Selections, res)
  90059. }
  90060. func (ec *executionContext) fieldContext_Mutation_customerCreate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  90061. fc = &graphql.FieldContext{
  90062. Object: "Mutation",
  90063. Field: field,
  90064. IsMethod: true,
  90065. IsResolver: true,
  90066. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  90067. switch field.Name {
  90068. case "customer":
  90069. return ec.fieldContext_CustomerCreatePayload_customer(ctx, field)
  90070. case "userErrors":
  90071. return ec.fieldContext_CustomerCreatePayload_userErrors(ctx, field)
  90072. }
  90073. return nil, fmt.Errorf("no field named %q was found under type CustomerCreatePayload", field.Name)
  90074. },
  90075. }
  90076. defer func() {
  90077. if r := recover(); r != nil {
  90078. err = ec.Recover(ctx, r)
  90079. ec.Error(ctx, err)
  90080. }
  90081. }()
  90082. ctx = graphql.WithFieldContext(ctx, fc)
  90083. if fc.Args, err = ec.field_Mutation_customerCreate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  90084. ec.Error(ctx, err)
  90085. return
  90086. }
  90087. return fc, nil
  90088. }
  90089. func (ec *executionContext) _NavigationItem_id(ctx context.Context, field graphql.CollectedField, obj *NavigationItem) (ret graphql.Marshaler) {
  90090. fc, err := ec.fieldContext_NavigationItem_id(ctx, field)
  90091. if err != nil {
  90092. return graphql.Null
  90093. }
  90094. ctx = graphql.WithFieldContext(ctx, fc)
  90095. defer func() {
  90096. if r := recover(); r != nil {
  90097. ec.Error(ctx, ec.Recover(ctx, r))
  90098. ret = graphql.Null
  90099. }
  90100. }()
  90101. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  90102. ctx = rctx // use context from middleware stack in children
  90103. return obj.ID, nil
  90104. })
  90105. if err != nil {
  90106. ec.Error(ctx, err)
  90107. return graphql.Null
  90108. }
  90109. if resTmp == nil {
  90110. if !graphql.HasFieldError(ctx, fc) {
  90111. ec.Errorf(ctx, "must not be null")
  90112. }
  90113. return graphql.Null
  90114. }
  90115. res := resTmp.(string)
  90116. fc.Result = res
  90117. return ec.marshalNString2string(ctx, field.Selections, res)
  90118. }
  90119. func (ec *executionContext) fieldContext_NavigationItem_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  90120. fc = &graphql.FieldContext{
  90121. Object: "NavigationItem",
  90122. Field: field,
  90123. IsMethod: false,
  90124. IsResolver: false,
  90125. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  90126. return nil, errors.New("field of type String does not have child fields")
  90127. },
  90128. }
  90129. return fc, nil
  90130. }
  90131. func (ec *executionContext) _NavigationItem_title(ctx context.Context, field graphql.CollectedField, obj *NavigationItem) (ret graphql.Marshaler) {
  90132. fc, err := ec.fieldContext_NavigationItem_title(ctx, field)
  90133. if err != nil {
  90134. return graphql.Null
  90135. }
  90136. ctx = graphql.WithFieldContext(ctx, fc)
  90137. defer func() {
  90138. if r := recover(); r != nil {
  90139. ec.Error(ctx, ec.Recover(ctx, r))
  90140. ret = graphql.Null
  90141. }
  90142. }()
  90143. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  90144. ctx = rctx // use context from middleware stack in children
  90145. return obj.Title, nil
  90146. })
  90147. if err != nil {
  90148. ec.Error(ctx, err)
  90149. return graphql.Null
  90150. }
  90151. if resTmp == nil {
  90152. if !graphql.HasFieldError(ctx, fc) {
  90153. ec.Errorf(ctx, "must not be null")
  90154. }
  90155. return graphql.Null
  90156. }
  90157. res := resTmp.(string)
  90158. fc.Result = res
  90159. return ec.marshalNString2string(ctx, field.Selections, res)
  90160. }
  90161. func (ec *executionContext) fieldContext_NavigationItem_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  90162. fc = &graphql.FieldContext{
  90163. Object: "NavigationItem",
  90164. Field: field,
  90165. IsMethod: false,
  90166. IsResolver: false,
  90167. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  90168. return nil, errors.New("field of type String does not have child fields")
  90169. },
  90170. }
  90171. return fc, nil
  90172. }
  90173. func (ec *executionContext) _NavigationItem_url(ctx context.Context, field graphql.CollectedField, obj *NavigationItem) (ret graphql.Marshaler) {
  90174. fc, err := ec.fieldContext_NavigationItem_url(ctx, field)
  90175. if err != nil {
  90176. return graphql.Null
  90177. }
  90178. ctx = graphql.WithFieldContext(ctx, fc)
  90179. defer func() {
  90180. if r := recover(); r != nil {
  90181. ec.Error(ctx, ec.Recover(ctx, r))
  90182. ret = graphql.Null
  90183. }
  90184. }()
  90185. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  90186. ctx = rctx // use context from middleware stack in children
  90187. return obj.URL, nil
  90188. })
  90189. if err != nil {
  90190. ec.Error(ctx, err)
  90191. return graphql.Null
  90192. }
  90193. if resTmp == nil {
  90194. if !graphql.HasFieldError(ctx, fc) {
  90195. ec.Errorf(ctx, "must not be null")
  90196. }
  90197. return graphql.Null
  90198. }
  90199. res := resTmp.(string)
  90200. fc.Result = res
  90201. return ec.marshalNURL2string(ctx, field.Selections, res)
  90202. }
  90203. func (ec *executionContext) fieldContext_NavigationItem_url(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  90204. fc = &graphql.FieldContext{
  90205. Object: "NavigationItem",
  90206. Field: field,
  90207. IsMethod: false,
  90208. IsResolver: false,
  90209. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  90210. return nil, errors.New("field of type URL does not have child fields")
  90211. },
  90212. }
  90213. return fc, nil
  90214. }
  90215. func (ec *executionContext) _OnlineStorePage_defaultCursor(ctx context.Context, field graphql.CollectedField, obj *OnlineStorePage) (ret graphql.Marshaler) {
  90216. fc, err := ec.fieldContext_OnlineStorePage_defaultCursor(ctx, field)
  90217. if err != nil {
  90218. return graphql.Null
  90219. }
  90220. ctx = graphql.WithFieldContext(ctx, fc)
  90221. defer func() {
  90222. if r := recover(); r != nil {
  90223. ec.Error(ctx, ec.Recover(ctx, r))
  90224. ret = graphql.Null
  90225. }
  90226. }()
  90227. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  90228. ctx = rctx // use context from middleware stack in children
  90229. return obj.DefaultCursor, nil
  90230. })
  90231. if err != nil {
  90232. ec.Error(ctx, err)
  90233. return graphql.Null
  90234. }
  90235. if resTmp == nil {
  90236. if !graphql.HasFieldError(ctx, fc) {
  90237. ec.Errorf(ctx, "must not be null")
  90238. }
  90239. return graphql.Null
  90240. }
  90241. res := resTmp.(string)
  90242. fc.Result = res
  90243. return ec.marshalNString2string(ctx, field.Selections, res)
  90244. }
  90245. func (ec *executionContext) fieldContext_OnlineStorePage_defaultCursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  90246. fc = &graphql.FieldContext{
  90247. Object: "OnlineStorePage",
  90248. Field: field,
  90249. IsMethod: false,
  90250. IsResolver: false,
  90251. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  90252. return nil, errors.New("field of type String does not have child fields")
  90253. },
  90254. }
  90255. return fc, nil
  90256. }
  90257. func (ec *executionContext) _OnlineStorePage_id(ctx context.Context, field graphql.CollectedField, obj *OnlineStorePage) (ret graphql.Marshaler) {
  90258. fc, err := ec.fieldContext_OnlineStorePage_id(ctx, field)
  90259. if err != nil {
  90260. return graphql.Null
  90261. }
  90262. ctx = graphql.WithFieldContext(ctx, fc)
  90263. defer func() {
  90264. if r := recover(); r != nil {
  90265. ec.Error(ctx, ec.Recover(ctx, r))
  90266. ret = graphql.Null
  90267. }
  90268. }()
  90269. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  90270. ctx = rctx // use context from middleware stack in children
  90271. return obj.ID, nil
  90272. })
  90273. if err != nil {
  90274. ec.Error(ctx, err)
  90275. return graphql.Null
  90276. }
  90277. if resTmp == nil {
  90278. if !graphql.HasFieldError(ctx, fc) {
  90279. ec.Errorf(ctx, "must not be null")
  90280. }
  90281. return graphql.Null
  90282. }
  90283. res := resTmp.(string)
  90284. fc.Result = res
  90285. return ec.marshalNID2string(ctx, field.Selections, res)
  90286. }
  90287. func (ec *executionContext) fieldContext_OnlineStorePage_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  90288. fc = &graphql.FieldContext{
  90289. Object: "OnlineStorePage",
  90290. Field: field,
  90291. IsMethod: false,
  90292. IsResolver: false,
  90293. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  90294. return nil, errors.New("field of type ID does not have child fields")
  90295. },
  90296. }
  90297. return fc, nil
  90298. }
  90299. func (ec *executionContext) _OnlineStorePage_translations(ctx context.Context, field graphql.CollectedField, obj *OnlineStorePage) (ret graphql.Marshaler) {
  90300. fc, err := ec.fieldContext_OnlineStorePage_translations(ctx, field)
  90301. if err != nil {
  90302. return graphql.Null
  90303. }
  90304. ctx = graphql.WithFieldContext(ctx, fc)
  90305. defer func() {
  90306. if r := recover(); r != nil {
  90307. ec.Error(ctx, ec.Recover(ctx, r))
  90308. ret = graphql.Null
  90309. }
  90310. }()
  90311. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  90312. ctx = rctx // use context from middleware stack in children
  90313. return obj.Translations, nil
  90314. })
  90315. if err != nil {
  90316. ec.Error(ctx, err)
  90317. return graphql.Null
  90318. }
  90319. if resTmp == nil {
  90320. if !graphql.HasFieldError(ctx, fc) {
  90321. ec.Errorf(ctx, "must not be null")
  90322. }
  90323. return graphql.Null
  90324. }
  90325. res := resTmp.([]*PublishedTranslation)
  90326. fc.Result = res
  90327. return ec.marshalNPublishedTranslation2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublishedTranslationᚄ(ctx, field.Selections, res)
  90328. }
  90329. func (ec *executionContext) fieldContext_OnlineStorePage_translations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  90330. fc = &graphql.FieldContext{
  90331. Object: "OnlineStorePage",
  90332. Field: field,
  90333. IsMethod: false,
  90334. IsResolver: false,
  90335. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  90336. switch field.Name {
  90337. case "key":
  90338. return ec.fieldContext_PublishedTranslation_key(ctx, field)
  90339. case "locale":
  90340. return ec.fieldContext_PublishedTranslation_locale(ctx, field)
  90341. case "marketId":
  90342. return ec.fieldContext_PublishedTranslation_marketId(ctx, field)
  90343. case "value":
  90344. return ec.fieldContext_PublishedTranslation_value(ctx, field)
  90345. }
  90346. return nil, fmt.Errorf("no field named %q was found under type PublishedTranslation", field.Name)
  90347. },
  90348. }
  90349. defer func() {
  90350. if r := recover(); r != nil {
  90351. err = ec.Recover(ctx, r)
  90352. ec.Error(ctx, err)
  90353. }
  90354. }()
  90355. ctx = graphql.WithFieldContext(ctx, fc)
  90356. if fc.Args, err = ec.field_OnlineStorePage_translations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  90357. ec.Error(ctx, err)
  90358. return
  90359. }
  90360. return fc, nil
  90361. }
  90362. func (ec *executionContext) _Order_agreements(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  90363. fc, err := ec.fieldContext_Order_agreements(ctx, field)
  90364. if err != nil {
  90365. return graphql.Null
  90366. }
  90367. ctx = graphql.WithFieldContext(ctx, fc)
  90368. defer func() {
  90369. if r := recover(); r != nil {
  90370. ec.Error(ctx, ec.Recover(ctx, r))
  90371. ret = graphql.Null
  90372. }
  90373. }()
  90374. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  90375. ctx = rctx // use context from middleware stack in children
  90376. return obj.Agreements, nil
  90377. })
  90378. if err != nil {
  90379. ec.Error(ctx, err)
  90380. return graphql.Null
  90381. }
  90382. if resTmp == nil {
  90383. if !graphql.HasFieldError(ctx, fc) {
  90384. ec.Errorf(ctx, "must not be null")
  90385. }
  90386. return graphql.Null
  90387. }
  90388. res := resTmp.(*SalesAgreementConnection)
  90389. fc.Result = res
  90390. return ec.marshalNSalesAgreementConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSalesAgreementConnection(ctx, field.Selections, res)
  90391. }
  90392. func (ec *executionContext) fieldContext_Order_agreements(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  90393. fc = &graphql.FieldContext{
  90394. Object: "Order",
  90395. Field: field,
  90396. IsMethod: false,
  90397. IsResolver: false,
  90398. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  90399. switch field.Name {
  90400. case "edges":
  90401. return ec.fieldContext_SalesAgreementConnection_edges(ctx, field)
  90402. case "nodes":
  90403. return ec.fieldContext_SalesAgreementConnection_nodes(ctx, field)
  90404. case "pageInfo":
  90405. return ec.fieldContext_SalesAgreementConnection_pageInfo(ctx, field)
  90406. }
  90407. return nil, fmt.Errorf("no field named %q was found under type SalesAgreementConnection", field.Name)
  90408. },
  90409. }
  90410. defer func() {
  90411. if r := recover(); r != nil {
  90412. err = ec.Recover(ctx, r)
  90413. ec.Error(ctx, err)
  90414. }
  90415. }()
  90416. ctx = graphql.WithFieldContext(ctx, fc)
  90417. if fc.Args, err = ec.field_Order_agreements_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  90418. ec.Error(ctx, err)
  90419. return
  90420. }
  90421. return fc, nil
  90422. }
  90423. func (ec *executionContext) _Order_alerts(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  90424. fc, err := ec.fieldContext_Order_alerts(ctx, field)
  90425. if err != nil {
  90426. return graphql.Null
  90427. }
  90428. ctx = graphql.WithFieldContext(ctx, fc)
  90429. defer func() {
  90430. if r := recover(); r != nil {
  90431. ec.Error(ctx, ec.Recover(ctx, r))
  90432. ret = graphql.Null
  90433. }
  90434. }()
  90435. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  90436. ctx = rctx // use context from middleware stack in children
  90437. return obj.Alerts, nil
  90438. })
  90439. if err != nil {
  90440. ec.Error(ctx, err)
  90441. return graphql.Null
  90442. }
  90443. if resTmp == nil {
  90444. if !graphql.HasFieldError(ctx, fc) {
  90445. ec.Errorf(ctx, "must not be null")
  90446. }
  90447. return graphql.Null
  90448. }
  90449. res := resTmp.([]*ResourceAlert)
  90450. fc.Result = res
  90451. return ec.marshalNResourceAlert2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourceAlertᚄ(ctx, field.Selections, res)
  90452. }
  90453. func (ec *executionContext) fieldContext_Order_alerts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  90454. fc = &graphql.FieldContext{
  90455. Object: "Order",
  90456. Field: field,
  90457. IsMethod: false,
  90458. IsResolver: false,
  90459. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  90460. switch field.Name {
  90461. case "actions":
  90462. return ec.fieldContext_ResourceAlert_actions(ctx, field)
  90463. case "content":
  90464. return ec.fieldContext_ResourceAlert_content(ctx, field)
  90465. case "dismissibleHandle":
  90466. return ec.fieldContext_ResourceAlert_dismissibleHandle(ctx, field)
  90467. case "icon":
  90468. return ec.fieldContext_ResourceAlert_icon(ctx, field)
  90469. case "severity":
  90470. return ec.fieldContext_ResourceAlert_severity(ctx, field)
  90471. case "title":
  90472. return ec.fieldContext_ResourceAlert_title(ctx, field)
  90473. }
  90474. return nil, fmt.Errorf("no field named %q was found under type ResourceAlert", field.Name)
  90475. },
  90476. }
  90477. return fc, nil
  90478. }
  90479. func (ec *executionContext) _Order_app(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  90480. fc, err := ec.fieldContext_Order_app(ctx, field)
  90481. if err != nil {
  90482. return graphql.Null
  90483. }
  90484. ctx = graphql.WithFieldContext(ctx, fc)
  90485. defer func() {
  90486. if r := recover(); r != nil {
  90487. ec.Error(ctx, ec.Recover(ctx, r))
  90488. ret = graphql.Null
  90489. }
  90490. }()
  90491. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  90492. ctx = rctx // use context from middleware stack in children
  90493. return obj.App, nil
  90494. })
  90495. if err != nil {
  90496. ec.Error(ctx, err)
  90497. return graphql.Null
  90498. }
  90499. if resTmp == nil {
  90500. return graphql.Null
  90501. }
  90502. res := resTmp.(*OrderApp)
  90503. fc.Result = res
  90504. return ec.marshalOOrderApp2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderApp(ctx, field.Selections, res)
  90505. }
  90506. func (ec *executionContext) fieldContext_Order_app(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  90507. fc = &graphql.FieldContext{
  90508. Object: "Order",
  90509. Field: field,
  90510. IsMethod: false,
  90511. IsResolver: false,
  90512. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  90513. switch field.Name {
  90514. case "icon":
  90515. return ec.fieldContext_OrderApp_icon(ctx, field)
  90516. case "id":
  90517. return ec.fieldContext_OrderApp_id(ctx, field)
  90518. case "name":
  90519. return ec.fieldContext_OrderApp_name(ctx, field)
  90520. }
  90521. return nil, fmt.Errorf("no field named %q was found under type OrderApp", field.Name)
  90522. },
  90523. }
  90524. return fc, nil
  90525. }
  90526. func (ec *executionContext) _Order_billingAddress(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  90527. fc, err := ec.fieldContext_Order_billingAddress(ctx, field)
  90528. if err != nil {
  90529. return graphql.Null
  90530. }
  90531. ctx = graphql.WithFieldContext(ctx, fc)
  90532. defer func() {
  90533. if r := recover(); r != nil {
  90534. ec.Error(ctx, ec.Recover(ctx, r))
  90535. ret = graphql.Null
  90536. }
  90537. }()
  90538. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  90539. ctx = rctx // use context from middleware stack in children
  90540. return obj.BillingAddress, nil
  90541. })
  90542. if err != nil {
  90543. ec.Error(ctx, err)
  90544. return graphql.Null
  90545. }
  90546. if resTmp == nil {
  90547. return graphql.Null
  90548. }
  90549. res := resTmp.(*MailingAddress)
  90550. fc.Result = res
  90551. return ec.marshalOMailingAddress2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMailingAddress(ctx, field.Selections, res)
  90552. }
  90553. func (ec *executionContext) fieldContext_Order_billingAddress(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  90554. fc = &graphql.FieldContext{
  90555. Object: "Order",
  90556. Field: field,
  90557. IsMethod: false,
  90558. IsResolver: false,
  90559. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  90560. switch field.Name {
  90561. case "address1":
  90562. return ec.fieldContext_MailingAddress_address1(ctx, field)
  90563. case "address2":
  90564. return ec.fieldContext_MailingAddress_address2(ctx, field)
  90565. case "city":
  90566. return ec.fieldContext_MailingAddress_city(ctx, field)
  90567. case "company":
  90568. return ec.fieldContext_MailingAddress_company(ctx, field)
  90569. case "coordinatesValidated":
  90570. return ec.fieldContext_MailingAddress_coordinatesValidated(ctx, field)
  90571. case "country":
  90572. return ec.fieldContext_MailingAddress_country(ctx, field)
  90573. case "countryCodeV2":
  90574. return ec.fieldContext_MailingAddress_countryCodeV2(ctx, field)
  90575. case "firstName":
  90576. return ec.fieldContext_MailingAddress_firstName(ctx, field)
  90577. case "formattedArea":
  90578. return ec.fieldContext_MailingAddress_formattedArea(ctx, field)
  90579. case "id":
  90580. return ec.fieldContext_MailingAddress_id(ctx, field)
  90581. case "lastName":
  90582. return ec.fieldContext_MailingAddress_lastName(ctx, field)
  90583. case "latitude":
  90584. return ec.fieldContext_MailingAddress_latitude(ctx, field)
  90585. case "longitude":
  90586. return ec.fieldContext_MailingAddress_longitude(ctx, field)
  90587. case "name":
  90588. return ec.fieldContext_MailingAddress_name(ctx, field)
  90589. case "phone":
  90590. return ec.fieldContext_MailingAddress_phone(ctx, field)
  90591. case "province":
  90592. return ec.fieldContext_MailingAddress_province(ctx, field)
  90593. case "provinceCode":
  90594. return ec.fieldContext_MailingAddress_provinceCode(ctx, field)
  90595. case "zip":
  90596. return ec.fieldContext_MailingAddress_zip(ctx, field)
  90597. }
  90598. return nil, fmt.Errorf("no field named %q was found under type MailingAddress", field.Name)
  90599. },
  90600. }
  90601. return fc, nil
  90602. }
  90603. func (ec *executionContext) _Order_billingAddressMatchesShippingAddress(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  90604. fc, err := ec.fieldContext_Order_billingAddressMatchesShippingAddress(ctx, field)
  90605. if err != nil {
  90606. return graphql.Null
  90607. }
  90608. ctx = graphql.WithFieldContext(ctx, fc)
  90609. defer func() {
  90610. if r := recover(); r != nil {
  90611. ec.Error(ctx, ec.Recover(ctx, r))
  90612. ret = graphql.Null
  90613. }
  90614. }()
  90615. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  90616. ctx = rctx // use context from middleware stack in children
  90617. return obj.BillingAddressMatchesShippingAddress, nil
  90618. })
  90619. if err != nil {
  90620. ec.Error(ctx, err)
  90621. return graphql.Null
  90622. }
  90623. if resTmp == nil {
  90624. if !graphql.HasFieldError(ctx, fc) {
  90625. ec.Errorf(ctx, "must not be null")
  90626. }
  90627. return graphql.Null
  90628. }
  90629. res := resTmp.(bool)
  90630. fc.Result = res
  90631. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  90632. }
  90633. func (ec *executionContext) fieldContext_Order_billingAddressMatchesShippingAddress(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  90634. fc = &graphql.FieldContext{
  90635. Object: "Order",
  90636. Field: field,
  90637. IsMethod: false,
  90638. IsResolver: false,
  90639. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  90640. return nil, errors.New("field of type Boolean does not have child fields")
  90641. },
  90642. }
  90643. return fc, nil
  90644. }
  90645. func (ec *executionContext) _Order_canMarkAsPaid(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  90646. fc, err := ec.fieldContext_Order_canMarkAsPaid(ctx, field)
  90647. if err != nil {
  90648. return graphql.Null
  90649. }
  90650. ctx = graphql.WithFieldContext(ctx, fc)
  90651. defer func() {
  90652. if r := recover(); r != nil {
  90653. ec.Error(ctx, ec.Recover(ctx, r))
  90654. ret = graphql.Null
  90655. }
  90656. }()
  90657. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  90658. ctx = rctx // use context from middleware stack in children
  90659. return obj.CanMarkAsPaid, nil
  90660. })
  90661. if err != nil {
  90662. ec.Error(ctx, err)
  90663. return graphql.Null
  90664. }
  90665. if resTmp == nil {
  90666. if !graphql.HasFieldError(ctx, fc) {
  90667. ec.Errorf(ctx, "must not be null")
  90668. }
  90669. return graphql.Null
  90670. }
  90671. res := resTmp.(bool)
  90672. fc.Result = res
  90673. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  90674. }
  90675. func (ec *executionContext) fieldContext_Order_canMarkAsPaid(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  90676. fc = &graphql.FieldContext{
  90677. Object: "Order",
  90678. Field: field,
  90679. IsMethod: false,
  90680. IsResolver: false,
  90681. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  90682. return nil, errors.New("field of type Boolean does not have child fields")
  90683. },
  90684. }
  90685. return fc, nil
  90686. }
  90687. func (ec *executionContext) _Order_canNotifyCustomer(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  90688. fc, err := ec.fieldContext_Order_canNotifyCustomer(ctx, field)
  90689. if err != nil {
  90690. return graphql.Null
  90691. }
  90692. ctx = graphql.WithFieldContext(ctx, fc)
  90693. defer func() {
  90694. if r := recover(); r != nil {
  90695. ec.Error(ctx, ec.Recover(ctx, r))
  90696. ret = graphql.Null
  90697. }
  90698. }()
  90699. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  90700. ctx = rctx // use context from middleware stack in children
  90701. return obj.CanNotifyCustomer, nil
  90702. })
  90703. if err != nil {
  90704. ec.Error(ctx, err)
  90705. return graphql.Null
  90706. }
  90707. if resTmp == nil {
  90708. if !graphql.HasFieldError(ctx, fc) {
  90709. ec.Errorf(ctx, "must not be null")
  90710. }
  90711. return graphql.Null
  90712. }
  90713. res := resTmp.(bool)
  90714. fc.Result = res
  90715. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  90716. }
  90717. func (ec *executionContext) fieldContext_Order_canNotifyCustomer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  90718. fc = &graphql.FieldContext{
  90719. Object: "Order",
  90720. Field: field,
  90721. IsMethod: false,
  90722. IsResolver: false,
  90723. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  90724. return nil, errors.New("field of type Boolean does not have child fields")
  90725. },
  90726. }
  90727. return fc, nil
  90728. }
  90729. func (ec *executionContext) _Order_cancelReason(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  90730. fc, err := ec.fieldContext_Order_cancelReason(ctx, field)
  90731. if err != nil {
  90732. return graphql.Null
  90733. }
  90734. ctx = graphql.WithFieldContext(ctx, fc)
  90735. defer func() {
  90736. if r := recover(); r != nil {
  90737. ec.Error(ctx, ec.Recover(ctx, r))
  90738. ret = graphql.Null
  90739. }
  90740. }()
  90741. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  90742. ctx = rctx // use context from middleware stack in children
  90743. return obj.CancelReason, nil
  90744. })
  90745. if err != nil {
  90746. ec.Error(ctx, err)
  90747. return graphql.Null
  90748. }
  90749. if resTmp == nil {
  90750. return graphql.Null
  90751. }
  90752. res := resTmp.(*OrderCancelReason)
  90753. fc.Result = res
  90754. return ec.marshalOOrderCancelReason2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderCancelReason(ctx, field.Selections, res)
  90755. }
  90756. func (ec *executionContext) fieldContext_Order_cancelReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  90757. fc = &graphql.FieldContext{
  90758. Object: "Order",
  90759. Field: field,
  90760. IsMethod: false,
  90761. IsResolver: false,
  90762. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  90763. return nil, errors.New("field of type OrderCancelReason does not have child fields")
  90764. },
  90765. }
  90766. return fc, nil
  90767. }
  90768. func (ec *executionContext) _Order_cancelledAt(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  90769. fc, err := ec.fieldContext_Order_cancelledAt(ctx, field)
  90770. if err != nil {
  90771. return graphql.Null
  90772. }
  90773. ctx = graphql.WithFieldContext(ctx, fc)
  90774. defer func() {
  90775. if r := recover(); r != nil {
  90776. ec.Error(ctx, ec.Recover(ctx, r))
  90777. ret = graphql.Null
  90778. }
  90779. }()
  90780. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  90781. ctx = rctx // use context from middleware stack in children
  90782. return obj.CancelledAt, nil
  90783. })
  90784. if err != nil {
  90785. ec.Error(ctx, err)
  90786. return graphql.Null
  90787. }
  90788. if resTmp == nil {
  90789. return graphql.Null
  90790. }
  90791. res := resTmp.(*string)
  90792. fc.Result = res
  90793. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  90794. }
  90795. func (ec *executionContext) fieldContext_Order_cancelledAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  90796. fc = &graphql.FieldContext{
  90797. Object: "Order",
  90798. Field: field,
  90799. IsMethod: false,
  90800. IsResolver: false,
  90801. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  90802. return nil, errors.New("field of type DateTime does not have child fields")
  90803. },
  90804. }
  90805. return fc, nil
  90806. }
  90807. func (ec *executionContext) _Order_capturable(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  90808. fc, err := ec.fieldContext_Order_capturable(ctx, field)
  90809. if err != nil {
  90810. return graphql.Null
  90811. }
  90812. ctx = graphql.WithFieldContext(ctx, fc)
  90813. defer func() {
  90814. if r := recover(); r != nil {
  90815. ec.Error(ctx, ec.Recover(ctx, r))
  90816. ret = graphql.Null
  90817. }
  90818. }()
  90819. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  90820. ctx = rctx // use context from middleware stack in children
  90821. return obj.Capturable, nil
  90822. })
  90823. if err != nil {
  90824. ec.Error(ctx, err)
  90825. return graphql.Null
  90826. }
  90827. if resTmp == nil {
  90828. if !graphql.HasFieldError(ctx, fc) {
  90829. ec.Errorf(ctx, "must not be null")
  90830. }
  90831. return graphql.Null
  90832. }
  90833. res := resTmp.(bool)
  90834. fc.Result = res
  90835. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  90836. }
  90837. func (ec *executionContext) fieldContext_Order_capturable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  90838. fc = &graphql.FieldContext{
  90839. Object: "Order",
  90840. Field: field,
  90841. IsMethod: false,
  90842. IsResolver: false,
  90843. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  90844. return nil, errors.New("field of type Boolean does not have child fields")
  90845. },
  90846. }
  90847. return fc, nil
  90848. }
  90849. func (ec *executionContext) _Order_cartDiscountAmountSet(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  90850. fc, err := ec.fieldContext_Order_cartDiscountAmountSet(ctx, field)
  90851. if err != nil {
  90852. return graphql.Null
  90853. }
  90854. ctx = graphql.WithFieldContext(ctx, fc)
  90855. defer func() {
  90856. if r := recover(); r != nil {
  90857. ec.Error(ctx, ec.Recover(ctx, r))
  90858. ret = graphql.Null
  90859. }
  90860. }()
  90861. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  90862. ctx = rctx // use context from middleware stack in children
  90863. return obj.CartDiscountAmountSet, nil
  90864. })
  90865. if err != nil {
  90866. ec.Error(ctx, err)
  90867. return graphql.Null
  90868. }
  90869. if resTmp == nil {
  90870. return graphql.Null
  90871. }
  90872. res := resTmp.(*MoneyBag)
  90873. fc.Result = res
  90874. return ec.marshalOMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  90875. }
  90876. func (ec *executionContext) fieldContext_Order_cartDiscountAmountSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  90877. fc = &graphql.FieldContext{
  90878. Object: "Order",
  90879. Field: field,
  90880. IsMethod: false,
  90881. IsResolver: false,
  90882. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  90883. switch field.Name {
  90884. case "presentmentMoney":
  90885. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  90886. case "shopMoney":
  90887. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  90888. }
  90889. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  90890. },
  90891. }
  90892. return fc, nil
  90893. }
  90894. func (ec *executionContext) _Order_channelInformation(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  90895. fc, err := ec.fieldContext_Order_channelInformation(ctx, field)
  90896. if err != nil {
  90897. return graphql.Null
  90898. }
  90899. ctx = graphql.WithFieldContext(ctx, fc)
  90900. defer func() {
  90901. if r := recover(); r != nil {
  90902. ec.Error(ctx, ec.Recover(ctx, r))
  90903. ret = graphql.Null
  90904. }
  90905. }()
  90906. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  90907. ctx = rctx // use context from middleware stack in children
  90908. return obj.ChannelInformation, nil
  90909. })
  90910. if err != nil {
  90911. ec.Error(ctx, err)
  90912. return graphql.Null
  90913. }
  90914. if resTmp == nil {
  90915. return graphql.Null
  90916. }
  90917. res := resTmp.(*ChannelInformation)
  90918. fc.Result = res
  90919. return ec.marshalOChannelInformation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐChannelInformation(ctx, field.Selections, res)
  90920. }
  90921. func (ec *executionContext) fieldContext_Order_channelInformation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  90922. fc = &graphql.FieldContext{
  90923. Object: "Order",
  90924. Field: field,
  90925. IsMethod: false,
  90926. IsResolver: false,
  90927. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  90928. switch field.Name {
  90929. case "app":
  90930. return ec.fieldContext_ChannelInformation_app(ctx, field)
  90931. case "channelDefinition":
  90932. return ec.fieldContext_ChannelInformation_channelDefinition(ctx, field)
  90933. case "channelId":
  90934. return ec.fieldContext_ChannelInformation_channelId(ctx, field)
  90935. case "id":
  90936. return ec.fieldContext_ChannelInformation_id(ctx, field)
  90937. }
  90938. return nil, fmt.Errorf("no field named %q was found under type ChannelInformation", field.Name)
  90939. },
  90940. }
  90941. return fc, nil
  90942. }
  90943. func (ec *executionContext) _Order_clientIp(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  90944. fc, err := ec.fieldContext_Order_clientIp(ctx, field)
  90945. if err != nil {
  90946. return graphql.Null
  90947. }
  90948. ctx = graphql.WithFieldContext(ctx, fc)
  90949. defer func() {
  90950. if r := recover(); r != nil {
  90951. ec.Error(ctx, ec.Recover(ctx, r))
  90952. ret = graphql.Null
  90953. }
  90954. }()
  90955. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  90956. ctx = rctx // use context from middleware stack in children
  90957. return obj.ClientIP, nil
  90958. })
  90959. if err != nil {
  90960. ec.Error(ctx, err)
  90961. return graphql.Null
  90962. }
  90963. if resTmp == nil {
  90964. return graphql.Null
  90965. }
  90966. res := resTmp.(*string)
  90967. fc.Result = res
  90968. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  90969. }
  90970. func (ec *executionContext) fieldContext_Order_clientIp(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  90971. fc = &graphql.FieldContext{
  90972. Object: "Order",
  90973. Field: field,
  90974. IsMethod: false,
  90975. IsResolver: false,
  90976. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  90977. return nil, errors.New("field of type String does not have child fields")
  90978. },
  90979. }
  90980. return fc, nil
  90981. }
  90982. func (ec *executionContext) _Order_closed(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  90983. fc, err := ec.fieldContext_Order_closed(ctx, field)
  90984. if err != nil {
  90985. return graphql.Null
  90986. }
  90987. ctx = graphql.WithFieldContext(ctx, fc)
  90988. defer func() {
  90989. if r := recover(); r != nil {
  90990. ec.Error(ctx, ec.Recover(ctx, r))
  90991. ret = graphql.Null
  90992. }
  90993. }()
  90994. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  90995. ctx = rctx // use context from middleware stack in children
  90996. return obj.Closed, nil
  90997. })
  90998. if err != nil {
  90999. ec.Error(ctx, err)
  91000. return graphql.Null
  91001. }
  91002. if resTmp == nil {
  91003. if !graphql.HasFieldError(ctx, fc) {
  91004. ec.Errorf(ctx, "must not be null")
  91005. }
  91006. return graphql.Null
  91007. }
  91008. res := resTmp.(bool)
  91009. fc.Result = res
  91010. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  91011. }
  91012. func (ec *executionContext) fieldContext_Order_closed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  91013. fc = &graphql.FieldContext{
  91014. Object: "Order",
  91015. Field: field,
  91016. IsMethod: false,
  91017. IsResolver: false,
  91018. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  91019. return nil, errors.New("field of type Boolean does not have child fields")
  91020. },
  91021. }
  91022. return fc, nil
  91023. }
  91024. func (ec *executionContext) _Order_closedAt(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  91025. fc, err := ec.fieldContext_Order_closedAt(ctx, field)
  91026. if err != nil {
  91027. return graphql.Null
  91028. }
  91029. ctx = graphql.WithFieldContext(ctx, fc)
  91030. defer func() {
  91031. if r := recover(); r != nil {
  91032. ec.Error(ctx, ec.Recover(ctx, r))
  91033. ret = graphql.Null
  91034. }
  91035. }()
  91036. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  91037. ctx = rctx // use context from middleware stack in children
  91038. return obj.ClosedAt, nil
  91039. })
  91040. if err != nil {
  91041. ec.Error(ctx, err)
  91042. return graphql.Null
  91043. }
  91044. if resTmp == nil {
  91045. return graphql.Null
  91046. }
  91047. res := resTmp.(*string)
  91048. fc.Result = res
  91049. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  91050. }
  91051. func (ec *executionContext) fieldContext_Order_closedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  91052. fc = &graphql.FieldContext{
  91053. Object: "Order",
  91054. Field: field,
  91055. IsMethod: false,
  91056. IsResolver: false,
  91057. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  91058. return nil, errors.New("field of type DateTime does not have child fields")
  91059. },
  91060. }
  91061. return fc, nil
  91062. }
  91063. func (ec *executionContext) _Order_confirmed(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  91064. fc, err := ec.fieldContext_Order_confirmed(ctx, field)
  91065. if err != nil {
  91066. return graphql.Null
  91067. }
  91068. ctx = graphql.WithFieldContext(ctx, fc)
  91069. defer func() {
  91070. if r := recover(); r != nil {
  91071. ec.Error(ctx, ec.Recover(ctx, r))
  91072. ret = graphql.Null
  91073. }
  91074. }()
  91075. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  91076. ctx = rctx // use context from middleware stack in children
  91077. return obj.Confirmed, nil
  91078. })
  91079. if err != nil {
  91080. ec.Error(ctx, err)
  91081. return graphql.Null
  91082. }
  91083. if resTmp == nil {
  91084. if !graphql.HasFieldError(ctx, fc) {
  91085. ec.Errorf(ctx, "must not be null")
  91086. }
  91087. return graphql.Null
  91088. }
  91089. res := resTmp.(bool)
  91090. fc.Result = res
  91091. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  91092. }
  91093. func (ec *executionContext) fieldContext_Order_confirmed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  91094. fc = &graphql.FieldContext{
  91095. Object: "Order",
  91096. Field: field,
  91097. IsMethod: false,
  91098. IsResolver: false,
  91099. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  91100. return nil, errors.New("field of type Boolean does not have child fields")
  91101. },
  91102. }
  91103. return fc, nil
  91104. }
  91105. func (ec *executionContext) _Order_createdAt(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  91106. fc, err := ec.fieldContext_Order_createdAt(ctx, field)
  91107. if err != nil {
  91108. return graphql.Null
  91109. }
  91110. ctx = graphql.WithFieldContext(ctx, fc)
  91111. defer func() {
  91112. if r := recover(); r != nil {
  91113. ec.Error(ctx, ec.Recover(ctx, r))
  91114. ret = graphql.Null
  91115. }
  91116. }()
  91117. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  91118. ctx = rctx // use context from middleware stack in children
  91119. return obj.CreatedAt, nil
  91120. })
  91121. if err != nil {
  91122. ec.Error(ctx, err)
  91123. return graphql.Null
  91124. }
  91125. if resTmp == nil {
  91126. if !graphql.HasFieldError(ctx, fc) {
  91127. ec.Errorf(ctx, "must not be null")
  91128. }
  91129. return graphql.Null
  91130. }
  91131. res := resTmp.(string)
  91132. fc.Result = res
  91133. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  91134. }
  91135. func (ec *executionContext) fieldContext_Order_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  91136. fc = &graphql.FieldContext{
  91137. Object: "Order",
  91138. Field: field,
  91139. IsMethod: false,
  91140. IsResolver: false,
  91141. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  91142. return nil, errors.New("field of type DateTime does not have child fields")
  91143. },
  91144. }
  91145. return fc, nil
  91146. }
  91147. func (ec *executionContext) _Order_currencyCode(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  91148. fc, err := ec.fieldContext_Order_currencyCode(ctx, field)
  91149. if err != nil {
  91150. return graphql.Null
  91151. }
  91152. ctx = graphql.WithFieldContext(ctx, fc)
  91153. defer func() {
  91154. if r := recover(); r != nil {
  91155. ec.Error(ctx, ec.Recover(ctx, r))
  91156. ret = graphql.Null
  91157. }
  91158. }()
  91159. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  91160. ctx = rctx // use context from middleware stack in children
  91161. return obj.CurrencyCode, nil
  91162. })
  91163. if err != nil {
  91164. ec.Error(ctx, err)
  91165. return graphql.Null
  91166. }
  91167. if resTmp == nil {
  91168. if !graphql.HasFieldError(ctx, fc) {
  91169. ec.Errorf(ctx, "must not be null")
  91170. }
  91171. return graphql.Null
  91172. }
  91173. res := resTmp.(CurrencyCode)
  91174. fc.Result = res
  91175. return ec.marshalNCurrencyCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencyCode(ctx, field.Selections, res)
  91176. }
  91177. func (ec *executionContext) fieldContext_Order_currencyCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  91178. fc = &graphql.FieldContext{
  91179. Object: "Order",
  91180. Field: field,
  91181. IsMethod: false,
  91182. IsResolver: false,
  91183. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  91184. return nil, errors.New("field of type CurrencyCode does not have child fields")
  91185. },
  91186. }
  91187. return fc, nil
  91188. }
  91189. func (ec *executionContext) _Order_currentCartDiscountAmountSet(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  91190. fc, err := ec.fieldContext_Order_currentCartDiscountAmountSet(ctx, field)
  91191. if err != nil {
  91192. return graphql.Null
  91193. }
  91194. ctx = graphql.WithFieldContext(ctx, fc)
  91195. defer func() {
  91196. if r := recover(); r != nil {
  91197. ec.Error(ctx, ec.Recover(ctx, r))
  91198. ret = graphql.Null
  91199. }
  91200. }()
  91201. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  91202. ctx = rctx // use context from middleware stack in children
  91203. return obj.CurrentCartDiscountAmountSet, nil
  91204. })
  91205. if err != nil {
  91206. ec.Error(ctx, err)
  91207. return graphql.Null
  91208. }
  91209. if resTmp == nil {
  91210. if !graphql.HasFieldError(ctx, fc) {
  91211. ec.Errorf(ctx, "must not be null")
  91212. }
  91213. return graphql.Null
  91214. }
  91215. res := resTmp.(*MoneyBag)
  91216. fc.Result = res
  91217. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  91218. }
  91219. func (ec *executionContext) fieldContext_Order_currentCartDiscountAmountSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  91220. fc = &graphql.FieldContext{
  91221. Object: "Order",
  91222. Field: field,
  91223. IsMethod: false,
  91224. IsResolver: false,
  91225. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  91226. switch field.Name {
  91227. case "presentmentMoney":
  91228. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  91229. case "shopMoney":
  91230. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  91231. }
  91232. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  91233. },
  91234. }
  91235. return fc, nil
  91236. }
  91237. func (ec *executionContext) _Order_currentSubtotalLineItemsQuantity(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  91238. fc, err := ec.fieldContext_Order_currentSubtotalLineItemsQuantity(ctx, field)
  91239. if err != nil {
  91240. return graphql.Null
  91241. }
  91242. ctx = graphql.WithFieldContext(ctx, fc)
  91243. defer func() {
  91244. if r := recover(); r != nil {
  91245. ec.Error(ctx, ec.Recover(ctx, r))
  91246. ret = graphql.Null
  91247. }
  91248. }()
  91249. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  91250. ctx = rctx // use context from middleware stack in children
  91251. return obj.CurrentSubtotalLineItemsQuantity, nil
  91252. })
  91253. if err != nil {
  91254. ec.Error(ctx, err)
  91255. return graphql.Null
  91256. }
  91257. if resTmp == nil {
  91258. if !graphql.HasFieldError(ctx, fc) {
  91259. ec.Errorf(ctx, "must not be null")
  91260. }
  91261. return graphql.Null
  91262. }
  91263. res := resTmp.(int)
  91264. fc.Result = res
  91265. return ec.marshalNInt2int(ctx, field.Selections, res)
  91266. }
  91267. func (ec *executionContext) fieldContext_Order_currentSubtotalLineItemsQuantity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  91268. fc = &graphql.FieldContext{
  91269. Object: "Order",
  91270. Field: field,
  91271. IsMethod: false,
  91272. IsResolver: false,
  91273. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  91274. return nil, errors.New("field of type Int does not have child fields")
  91275. },
  91276. }
  91277. return fc, nil
  91278. }
  91279. func (ec *executionContext) _Order_currentSubtotalPriceSet(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  91280. fc, err := ec.fieldContext_Order_currentSubtotalPriceSet(ctx, field)
  91281. if err != nil {
  91282. return graphql.Null
  91283. }
  91284. ctx = graphql.WithFieldContext(ctx, fc)
  91285. defer func() {
  91286. if r := recover(); r != nil {
  91287. ec.Error(ctx, ec.Recover(ctx, r))
  91288. ret = graphql.Null
  91289. }
  91290. }()
  91291. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  91292. ctx = rctx // use context from middleware stack in children
  91293. return obj.CurrentSubtotalPriceSet, nil
  91294. })
  91295. if err != nil {
  91296. ec.Error(ctx, err)
  91297. return graphql.Null
  91298. }
  91299. if resTmp == nil {
  91300. if !graphql.HasFieldError(ctx, fc) {
  91301. ec.Errorf(ctx, "must not be null")
  91302. }
  91303. return graphql.Null
  91304. }
  91305. res := resTmp.(*MoneyBag)
  91306. fc.Result = res
  91307. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  91308. }
  91309. func (ec *executionContext) fieldContext_Order_currentSubtotalPriceSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  91310. fc = &graphql.FieldContext{
  91311. Object: "Order",
  91312. Field: field,
  91313. IsMethod: false,
  91314. IsResolver: false,
  91315. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  91316. switch field.Name {
  91317. case "presentmentMoney":
  91318. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  91319. case "shopMoney":
  91320. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  91321. }
  91322. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  91323. },
  91324. }
  91325. return fc, nil
  91326. }
  91327. func (ec *executionContext) _Order_currentTaxLines(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  91328. fc, err := ec.fieldContext_Order_currentTaxLines(ctx, field)
  91329. if err != nil {
  91330. return graphql.Null
  91331. }
  91332. ctx = graphql.WithFieldContext(ctx, fc)
  91333. defer func() {
  91334. if r := recover(); r != nil {
  91335. ec.Error(ctx, ec.Recover(ctx, r))
  91336. ret = graphql.Null
  91337. }
  91338. }()
  91339. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  91340. ctx = rctx // use context from middleware stack in children
  91341. return obj.CurrentTaxLines, nil
  91342. })
  91343. if err != nil {
  91344. ec.Error(ctx, err)
  91345. return graphql.Null
  91346. }
  91347. if resTmp == nil {
  91348. if !graphql.HasFieldError(ctx, fc) {
  91349. ec.Errorf(ctx, "must not be null")
  91350. }
  91351. return graphql.Null
  91352. }
  91353. res := resTmp.([]*TaxLine)
  91354. fc.Result = res
  91355. return ec.marshalNTaxLine2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐTaxLineᚄ(ctx, field.Selections, res)
  91356. }
  91357. func (ec *executionContext) fieldContext_Order_currentTaxLines(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  91358. fc = &graphql.FieldContext{
  91359. Object: "Order",
  91360. Field: field,
  91361. IsMethod: false,
  91362. IsResolver: false,
  91363. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  91364. switch field.Name {
  91365. case "channelLiable":
  91366. return ec.fieldContext_TaxLine_channelLiable(ctx, field)
  91367. case "priceSet":
  91368. return ec.fieldContext_TaxLine_priceSet(ctx, field)
  91369. case "rate":
  91370. return ec.fieldContext_TaxLine_rate(ctx, field)
  91371. case "ratePercentage":
  91372. return ec.fieldContext_TaxLine_ratePercentage(ctx, field)
  91373. case "title":
  91374. return ec.fieldContext_TaxLine_title(ctx, field)
  91375. }
  91376. return nil, fmt.Errorf("no field named %q was found under type TaxLine", field.Name)
  91377. },
  91378. }
  91379. return fc, nil
  91380. }
  91381. func (ec *executionContext) _Order_currentTotalDiscountsSet(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  91382. fc, err := ec.fieldContext_Order_currentTotalDiscountsSet(ctx, field)
  91383. if err != nil {
  91384. return graphql.Null
  91385. }
  91386. ctx = graphql.WithFieldContext(ctx, fc)
  91387. defer func() {
  91388. if r := recover(); r != nil {
  91389. ec.Error(ctx, ec.Recover(ctx, r))
  91390. ret = graphql.Null
  91391. }
  91392. }()
  91393. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  91394. ctx = rctx // use context from middleware stack in children
  91395. return obj.CurrentTotalDiscountsSet, nil
  91396. })
  91397. if err != nil {
  91398. ec.Error(ctx, err)
  91399. return graphql.Null
  91400. }
  91401. if resTmp == nil {
  91402. if !graphql.HasFieldError(ctx, fc) {
  91403. ec.Errorf(ctx, "must not be null")
  91404. }
  91405. return graphql.Null
  91406. }
  91407. res := resTmp.(*MoneyBag)
  91408. fc.Result = res
  91409. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  91410. }
  91411. func (ec *executionContext) fieldContext_Order_currentTotalDiscountsSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  91412. fc = &graphql.FieldContext{
  91413. Object: "Order",
  91414. Field: field,
  91415. IsMethod: false,
  91416. IsResolver: false,
  91417. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  91418. switch field.Name {
  91419. case "presentmentMoney":
  91420. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  91421. case "shopMoney":
  91422. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  91423. }
  91424. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  91425. },
  91426. }
  91427. return fc, nil
  91428. }
  91429. func (ec *executionContext) _Order_currentTotalDutiesSet(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  91430. fc, err := ec.fieldContext_Order_currentTotalDutiesSet(ctx, field)
  91431. if err != nil {
  91432. return graphql.Null
  91433. }
  91434. ctx = graphql.WithFieldContext(ctx, fc)
  91435. defer func() {
  91436. if r := recover(); r != nil {
  91437. ec.Error(ctx, ec.Recover(ctx, r))
  91438. ret = graphql.Null
  91439. }
  91440. }()
  91441. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  91442. ctx = rctx // use context from middleware stack in children
  91443. return obj.CurrentTotalDutiesSet, nil
  91444. })
  91445. if err != nil {
  91446. ec.Error(ctx, err)
  91447. return graphql.Null
  91448. }
  91449. if resTmp == nil {
  91450. return graphql.Null
  91451. }
  91452. res := resTmp.(*MoneyBag)
  91453. fc.Result = res
  91454. return ec.marshalOMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  91455. }
  91456. func (ec *executionContext) fieldContext_Order_currentTotalDutiesSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  91457. fc = &graphql.FieldContext{
  91458. Object: "Order",
  91459. Field: field,
  91460. IsMethod: false,
  91461. IsResolver: false,
  91462. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  91463. switch field.Name {
  91464. case "presentmentMoney":
  91465. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  91466. case "shopMoney":
  91467. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  91468. }
  91469. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  91470. },
  91471. }
  91472. return fc, nil
  91473. }
  91474. func (ec *executionContext) _Order_currentTotalPriceSet(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  91475. fc, err := ec.fieldContext_Order_currentTotalPriceSet(ctx, field)
  91476. if err != nil {
  91477. return graphql.Null
  91478. }
  91479. ctx = graphql.WithFieldContext(ctx, fc)
  91480. defer func() {
  91481. if r := recover(); r != nil {
  91482. ec.Error(ctx, ec.Recover(ctx, r))
  91483. ret = graphql.Null
  91484. }
  91485. }()
  91486. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  91487. ctx = rctx // use context from middleware stack in children
  91488. return obj.CurrentTotalPriceSet, nil
  91489. })
  91490. if err != nil {
  91491. ec.Error(ctx, err)
  91492. return graphql.Null
  91493. }
  91494. if resTmp == nil {
  91495. if !graphql.HasFieldError(ctx, fc) {
  91496. ec.Errorf(ctx, "must not be null")
  91497. }
  91498. return graphql.Null
  91499. }
  91500. res := resTmp.(*MoneyBag)
  91501. fc.Result = res
  91502. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  91503. }
  91504. func (ec *executionContext) fieldContext_Order_currentTotalPriceSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  91505. fc = &graphql.FieldContext{
  91506. Object: "Order",
  91507. Field: field,
  91508. IsMethod: false,
  91509. IsResolver: false,
  91510. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  91511. switch field.Name {
  91512. case "presentmentMoney":
  91513. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  91514. case "shopMoney":
  91515. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  91516. }
  91517. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  91518. },
  91519. }
  91520. return fc, nil
  91521. }
  91522. func (ec *executionContext) _Order_currentTotalTaxSet(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  91523. fc, err := ec.fieldContext_Order_currentTotalTaxSet(ctx, field)
  91524. if err != nil {
  91525. return graphql.Null
  91526. }
  91527. ctx = graphql.WithFieldContext(ctx, fc)
  91528. defer func() {
  91529. if r := recover(); r != nil {
  91530. ec.Error(ctx, ec.Recover(ctx, r))
  91531. ret = graphql.Null
  91532. }
  91533. }()
  91534. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  91535. ctx = rctx // use context from middleware stack in children
  91536. return obj.CurrentTotalTaxSet, nil
  91537. })
  91538. if err != nil {
  91539. ec.Error(ctx, err)
  91540. return graphql.Null
  91541. }
  91542. if resTmp == nil {
  91543. if !graphql.HasFieldError(ctx, fc) {
  91544. ec.Errorf(ctx, "must not be null")
  91545. }
  91546. return graphql.Null
  91547. }
  91548. res := resTmp.(*MoneyBag)
  91549. fc.Result = res
  91550. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  91551. }
  91552. func (ec *executionContext) fieldContext_Order_currentTotalTaxSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  91553. fc = &graphql.FieldContext{
  91554. Object: "Order",
  91555. Field: field,
  91556. IsMethod: false,
  91557. IsResolver: false,
  91558. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  91559. switch field.Name {
  91560. case "presentmentMoney":
  91561. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  91562. case "shopMoney":
  91563. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  91564. }
  91565. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  91566. },
  91567. }
  91568. return fc, nil
  91569. }
  91570. func (ec *executionContext) _Order_currentTotalWeight(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  91571. fc, err := ec.fieldContext_Order_currentTotalWeight(ctx, field)
  91572. if err != nil {
  91573. return graphql.Null
  91574. }
  91575. ctx = graphql.WithFieldContext(ctx, fc)
  91576. defer func() {
  91577. if r := recover(); r != nil {
  91578. ec.Error(ctx, ec.Recover(ctx, r))
  91579. ret = graphql.Null
  91580. }
  91581. }()
  91582. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  91583. ctx = rctx // use context from middleware stack in children
  91584. return obj.CurrentTotalWeight, nil
  91585. })
  91586. if err != nil {
  91587. ec.Error(ctx, err)
  91588. return graphql.Null
  91589. }
  91590. if resTmp == nil {
  91591. if !graphql.HasFieldError(ctx, fc) {
  91592. ec.Errorf(ctx, "must not be null")
  91593. }
  91594. return graphql.Null
  91595. }
  91596. res := resTmp.(string)
  91597. fc.Result = res
  91598. return ec.marshalNUnsignedInt642string(ctx, field.Selections, res)
  91599. }
  91600. func (ec *executionContext) fieldContext_Order_currentTotalWeight(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  91601. fc = &graphql.FieldContext{
  91602. Object: "Order",
  91603. Field: field,
  91604. IsMethod: false,
  91605. IsResolver: false,
  91606. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  91607. return nil, errors.New("field of type UnsignedInt64 does not have child fields")
  91608. },
  91609. }
  91610. return fc, nil
  91611. }
  91612. func (ec *executionContext) _Order_customAttributes(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  91613. fc, err := ec.fieldContext_Order_customAttributes(ctx, field)
  91614. if err != nil {
  91615. return graphql.Null
  91616. }
  91617. ctx = graphql.WithFieldContext(ctx, fc)
  91618. defer func() {
  91619. if r := recover(); r != nil {
  91620. ec.Error(ctx, ec.Recover(ctx, r))
  91621. ret = graphql.Null
  91622. }
  91623. }()
  91624. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  91625. ctx = rctx // use context from middleware stack in children
  91626. return obj.CustomAttributes, nil
  91627. })
  91628. if err != nil {
  91629. ec.Error(ctx, err)
  91630. return graphql.Null
  91631. }
  91632. if resTmp == nil {
  91633. if !graphql.HasFieldError(ctx, fc) {
  91634. ec.Errorf(ctx, "must not be null")
  91635. }
  91636. return graphql.Null
  91637. }
  91638. res := resTmp.([]*Attribute)
  91639. fc.Result = res
  91640. return ec.marshalNAttribute2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAttributeᚄ(ctx, field.Selections, res)
  91641. }
  91642. func (ec *executionContext) fieldContext_Order_customAttributes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  91643. fc = &graphql.FieldContext{
  91644. Object: "Order",
  91645. Field: field,
  91646. IsMethod: false,
  91647. IsResolver: false,
  91648. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  91649. switch field.Name {
  91650. case "key":
  91651. return ec.fieldContext_Attribute_key(ctx, field)
  91652. case "value":
  91653. return ec.fieldContext_Attribute_value(ctx, field)
  91654. }
  91655. return nil, fmt.Errorf("no field named %q was found under type Attribute", field.Name)
  91656. },
  91657. }
  91658. return fc, nil
  91659. }
  91660. func (ec *executionContext) _Order_customer(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  91661. fc, err := ec.fieldContext_Order_customer(ctx, field)
  91662. if err != nil {
  91663. return graphql.Null
  91664. }
  91665. ctx = graphql.WithFieldContext(ctx, fc)
  91666. defer func() {
  91667. if r := recover(); r != nil {
  91668. ec.Error(ctx, ec.Recover(ctx, r))
  91669. ret = graphql.Null
  91670. }
  91671. }()
  91672. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  91673. ctx = rctx // use context from middleware stack in children
  91674. return obj.Customer, nil
  91675. })
  91676. if err != nil {
  91677. ec.Error(ctx, err)
  91678. return graphql.Null
  91679. }
  91680. if resTmp == nil {
  91681. return graphql.Null
  91682. }
  91683. res := resTmp.(*Customer)
  91684. fc.Result = res
  91685. return ec.marshalOCustomer2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomer(ctx, field.Selections, res)
  91686. }
  91687. func (ec *executionContext) fieldContext_Order_customer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  91688. fc = &graphql.FieldContext{
  91689. Object: "Order",
  91690. Field: field,
  91691. IsMethod: false,
  91692. IsResolver: false,
  91693. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  91694. switch field.Name {
  91695. case "addresses":
  91696. return ec.fieldContext_Customer_addresses(ctx, field)
  91697. case "amountSpent":
  91698. return ec.fieldContext_Customer_amountSpent(ctx, field)
  91699. case "averageOrderAmountV2":
  91700. return ec.fieldContext_Customer_averageOrderAmountV2(ctx, field)
  91701. case "canDelete":
  91702. return ec.fieldContext_Customer_canDelete(ctx, field)
  91703. case "companyContactProfiles":
  91704. return ec.fieldContext_Customer_companyContactProfiles(ctx, field)
  91705. case "createdAt":
  91706. return ec.fieldContext_Customer_createdAt(ctx, field)
  91707. case "defaultAddress":
  91708. return ec.fieldContext_Customer_defaultAddress(ctx, field)
  91709. case "displayName":
  91710. return ec.fieldContext_Customer_displayName(ctx, field)
  91711. case "email":
  91712. return ec.fieldContext_Customer_email(ctx, field)
  91713. case "emailMarketingConsent":
  91714. return ec.fieldContext_Customer_emailMarketingConsent(ctx, field)
  91715. case "events":
  91716. return ec.fieldContext_Customer_events(ctx, field)
  91717. case "firstName":
  91718. return ec.fieldContext_Customer_firstName(ctx, field)
  91719. case "hasTimelineComment":
  91720. return ec.fieldContext_Customer_hasTimelineComment(ctx, field)
  91721. case "id":
  91722. return ec.fieldContext_Customer_id(ctx, field)
  91723. case "image":
  91724. return ec.fieldContext_Customer_image(ctx, field)
  91725. case "lastName":
  91726. return ec.fieldContext_Customer_lastName(ctx, field)
  91727. case "lastOrder":
  91728. return ec.fieldContext_Customer_lastOrder(ctx, field)
  91729. case "legacyResourceId":
  91730. return ec.fieldContext_Customer_legacyResourceId(ctx, field)
  91731. case "lifetimeDuration":
  91732. return ec.fieldContext_Customer_lifetimeDuration(ctx, field)
  91733. case "locale":
  91734. return ec.fieldContext_Customer_locale(ctx, field)
  91735. case "market":
  91736. return ec.fieldContext_Customer_market(ctx, field)
  91737. case "metafield":
  91738. return ec.fieldContext_Customer_metafield(ctx, field)
  91739. case "metafieldDefinitions":
  91740. return ec.fieldContext_Customer_metafieldDefinitions(ctx, field)
  91741. case "metafields":
  91742. return ec.fieldContext_Customer_metafields(ctx, field)
  91743. case "multipassIdentifier":
  91744. return ec.fieldContext_Customer_multipassIdentifier(ctx, field)
  91745. case "note":
  91746. return ec.fieldContext_Customer_note(ctx, field)
  91747. case "numberOfOrders":
  91748. return ec.fieldContext_Customer_numberOfOrders(ctx, field)
  91749. case "orders":
  91750. return ec.fieldContext_Customer_orders(ctx, field)
  91751. case "paymentMethods":
  91752. return ec.fieldContext_Customer_paymentMethods(ctx, field)
  91753. case "phone":
  91754. return ec.fieldContext_Customer_phone(ctx, field)
  91755. case "privateMetafield":
  91756. return ec.fieldContext_Customer_privateMetafield(ctx, field)
  91757. case "privateMetafields":
  91758. return ec.fieldContext_Customer_privateMetafields(ctx, field)
  91759. case "productSubscriberStatus":
  91760. return ec.fieldContext_Customer_productSubscriberStatus(ctx, field)
  91761. case "smsMarketingConsent":
  91762. return ec.fieldContext_Customer_smsMarketingConsent(ctx, field)
  91763. case "state":
  91764. return ec.fieldContext_Customer_state(ctx, field)
  91765. case "statistics":
  91766. return ec.fieldContext_Customer_statistics(ctx, field)
  91767. case "subscriptionContracts":
  91768. return ec.fieldContext_Customer_subscriptionContracts(ctx, field)
  91769. case "tags":
  91770. return ec.fieldContext_Customer_tags(ctx, field)
  91771. case "taxExempt":
  91772. return ec.fieldContext_Customer_taxExempt(ctx, field)
  91773. case "taxExemptions":
  91774. return ec.fieldContext_Customer_taxExemptions(ctx, field)
  91775. case "unsubscribeUrl":
  91776. return ec.fieldContext_Customer_unsubscribeUrl(ctx, field)
  91777. case "updatedAt":
  91778. return ec.fieldContext_Customer_updatedAt(ctx, field)
  91779. case "validEmailAddress":
  91780. return ec.fieldContext_Customer_validEmailAddress(ctx, field)
  91781. case "verifiedEmail":
  91782. return ec.fieldContext_Customer_verifiedEmail(ctx, field)
  91783. }
  91784. return nil, fmt.Errorf("no field named %q was found under type Customer", field.Name)
  91785. },
  91786. }
  91787. return fc, nil
  91788. }
  91789. func (ec *executionContext) _Order_customerAcceptsMarketing(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  91790. fc, err := ec.fieldContext_Order_customerAcceptsMarketing(ctx, field)
  91791. if err != nil {
  91792. return graphql.Null
  91793. }
  91794. ctx = graphql.WithFieldContext(ctx, fc)
  91795. defer func() {
  91796. if r := recover(); r != nil {
  91797. ec.Error(ctx, ec.Recover(ctx, r))
  91798. ret = graphql.Null
  91799. }
  91800. }()
  91801. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  91802. ctx = rctx // use context from middleware stack in children
  91803. return obj.CustomerAcceptsMarketing, nil
  91804. })
  91805. if err != nil {
  91806. ec.Error(ctx, err)
  91807. return graphql.Null
  91808. }
  91809. if resTmp == nil {
  91810. if !graphql.HasFieldError(ctx, fc) {
  91811. ec.Errorf(ctx, "must not be null")
  91812. }
  91813. return graphql.Null
  91814. }
  91815. res := resTmp.(bool)
  91816. fc.Result = res
  91817. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  91818. }
  91819. func (ec *executionContext) fieldContext_Order_customerAcceptsMarketing(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  91820. fc = &graphql.FieldContext{
  91821. Object: "Order",
  91822. Field: field,
  91823. IsMethod: false,
  91824. IsResolver: false,
  91825. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  91826. return nil, errors.New("field of type Boolean does not have child fields")
  91827. },
  91828. }
  91829. return fc, nil
  91830. }
  91831. func (ec *executionContext) _Order_customerJourneySummary(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  91832. fc, err := ec.fieldContext_Order_customerJourneySummary(ctx, field)
  91833. if err != nil {
  91834. return graphql.Null
  91835. }
  91836. ctx = graphql.WithFieldContext(ctx, fc)
  91837. defer func() {
  91838. if r := recover(); r != nil {
  91839. ec.Error(ctx, ec.Recover(ctx, r))
  91840. ret = graphql.Null
  91841. }
  91842. }()
  91843. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  91844. ctx = rctx // use context from middleware stack in children
  91845. return obj.CustomerJourneySummary, nil
  91846. })
  91847. if err != nil {
  91848. ec.Error(ctx, err)
  91849. return graphql.Null
  91850. }
  91851. if resTmp == nil {
  91852. return graphql.Null
  91853. }
  91854. res := resTmp.(*CustomerJourneySummary)
  91855. fc.Result = res
  91856. return ec.marshalOCustomerJourneySummary2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerJourneySummary(ctx, field.Selections, res)
  91857. }
  91858. func (ec *executionContext) fieldContext_Order_customerJourneySummary(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  91859. fc = &graphql.FieldContext{
  91860. Object: "Order",
  91861. Field: field,
  91862. IsMethod: false,
  91863. IsResolver: false,
  91864. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  91865. switch field.Name {
  91866. case "customerOrderIndex":
  91867. return ec.fieldContext_CustomerJourneySummary_customerOrderIndex(ctx, field)
  91868. case "daysToConversion":
  91869. return ec.fieldContext_CustomerJourneySummary_daysToConversion(ctx, field)
  91870. case "firstVisit":
  91871. return ec.fieldContext_CustomerJourneySummary_firstVisit(ctx, field)
  91872. case "lastVisit":
  91873. return ec.fieldContext_CustomerJourneySummary_lastVisit(ctx, field)
  91874. case "moments":
  91875. return ec.fieldContext_CustomerJourneySummary_moments(ctx, field)
  91876. case "momentsCount":
  91877. return ec.fieldContext_CustomerJourneySummary_momentsCount(ctx, field)
  91878. case "ready":
  91879. return ec.fieldContext_CustomerJourneySummary_ready(ctx, field)
  91880. }
  91881. return nil, fmt.Errorf("no field named %q was found under type CustomerJourneySummary", field.Name)
  91882. },
  91883. }
  91884. return fc, nil
  91885. }
  91886. func (ec *executionContext) _Order_customerLocale(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  91887. fc, err := ec.fieldContext_Order_customerLocale(ctx, field)
  91888. if err != nil {
  91889. return graphql.Null
  91890. }
  91891. ctx = graphql.WithFieldContext(ctx, fc)
  91892. defer func() {
  91893. if r := recover(); r != nil {
  91894. ec.Error(ctx, ec.Recover(ctx, r))
  91895. ret = graphql.Null
  91896. }
  91897. }()
  91898. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  91899. ctx = rctx // use context from middleware stack in children
  91900. return obj.CustomerLocale, nil
  91901. })
  91902. if err != nil {
  91903. ec.Error(ctx, err)
  91904. return graphql.Null
  91905. }
  91906. if resTmp == nil {
  91907. return graphql.Null
  91908. }
  91909. res := resTmp.(*string)
  91910. fc.Result = res
  91911. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  91912. }
  91913. func (ec *executionContext) fieldContext_Order_customerLocale(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  91914. fc = &graphql.FieldContext{
  91915. Object: "Order",
  91916. Field: field,
  91917. IsMethod: false,
  91918. IsResolver: false,
  91919. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  91920. return nil, errors.New("field of type String does not have child fields")
  91921. },
  91922. }
  91923. return fc, nil
  91924. }
  91925. func (ec *executionContext) _Order_discountApplications(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  91926. fc, err := ec.fieldContext_Order_discountApplications(ctx, field)
  91927. if err != nil {
  91928. return graphql.Null
  91929. }
  91930. ctx = graphql.WithFieldContext(ctx, fc)
  91931. defer func() {
  91932. if r := recover(); r != nil {
  91933. ec.Error(ctx, ec.Recover(ctx, r))
  91934. ret = graphql.Null
  91935. }
  91936. }()
  91937. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  91938. ctx = rctx // use context from middleware stack in children
  91939. return obj.DiscountApplications, nil
  91940. })
  91941. if err != nil {
  91942. ec.Error(ctx, err)
  91943. return graphql.Null
  91944. }
  91945. if resTmp == nil {
  91946. if !graphql.HasFieldError(ctx, fc) {
  91947. ec.Errorf(ctx, "must not be null")
  91948. }
  91949. return graphql.Null
  91950. }
  91951. res := resTmp.(*DiscountApplicationConnection)
  91952. fc.Result = res
  91953. return ec.marshalNDiscountApplicationConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplicationConnection(ctx, field.Selections, res)
  91954. }
  91955. func (ec *executionContext) fieldContext_Order_discountApplications(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  91956. fc = &graphql.FieldContext{
  91957. Object: "Order",
  91958. Field: field,
  91959. IsMethod: false,
  91960. IsResolver: false,
  91961. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  91962. switch field.Name {
  91963. case "edges":
  91964. return ec.fieldContext_DiscountApplicationConnection_edges(ctx, field)
  91965. case "nodes":
  91966. return ec.fieldContext_DiscountApplicationConnection_nodes(ctx, field)
  91967. case "pageInfo":
  91968. return ec.fieldContext_DiscountApplicationConnection_pageInfo(ctx, field)
  91969. }
  91970. return nil, fmt.Errorf("no field named %q was found under type DiscountApplicationConnection", field.Name)
  91971. },
  91972. }
  91973. defer func() {
  91974. if r := recover(); r != nil {
  91975. err = ec.Recover(ctx, r)
  91976. ec.Error(ctx, err)
  91977. }
  91978. }()
  91979. ctx = graphql.WithFieldContext(ctx, fc)
  91980. if fc.Args, err = ec.field_Order_discountApplications_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  91981. ec.Error(ctx, err)
  91982. return
  91983. }
  91984. return fc, nil
  91985. }
  91986. func (ec *executionContext) _Order_discountCode(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  91987. fc, err := ec.fieldContext_Order_discountCode(ctx, field)
  91988. if err != nil {
  91989. return graphql.Null
  91990. }
  91991. ctx = graphql.WithFieldContext(ctx, fc)
  91992. defer func() {
  91993. if r := recover(); r != nil {
  91994. ec.Error(ctx, ec.Recover(ctx, r))
  91995. ret = graphql.Null
  91996. }
  91997. }()
  91998. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  91999. ctx = rctx // use context from middleware stack in children
  92000. return obj.DiscountCode, nil
  92001. })
  92002. if err != nil {
  92003. ec.Error(ctx, err)
  92004. return graphql.Null
  92005. }
  92006. if resTmp == nil {
  92007. return graphql.Null
  92008. }
  92009. res := resTmp.(*string)
  92010. fc.Result = res
  92011. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  92012. }
  92013. func (ec *executionContext) fieldContext_Order_discountCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  92014. fc = &graphql.FieldContext{
  92015. Object: "Order",
  92016. Field: field,
  92017. IsMethod: false,
  92018. IsResolver: false,
  92019. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  92020. return nil, errors.New("field of type String does not have child fields")
  92021. },
  92022. }
  92023. return fc, nil
  92024. }
  92025. func (ec *executionContext) _Order_discountCodes(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  92026. fc, err := ec.fieldContext_Order_discountCodes(ctx, field)
  92027. if err != nil {
  92028. return graphql.Null
  92029. }
  92030. ctx = graphql.WithFieldContext(ctx, fc)
  92031. defer func() {
  92032. if r := recover(); r != nil {
  92033. ec.Error(ctx, ec.Recover(ctx, r))
  92034. ret = graphql.Null
  92035. }
  92036. }()
  92037. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  92038. ctx = rctx // use context from middleware stack in children
  92039. return obj.DiscountCodes, nil
  92040. })
  92041. if err != nil {
  92042. ec.Error(ctx, err)
  92043. return graphql.Null
  92044. }
  92045. if resTmp == nil {
  92046. if !graphql.HasFieldError(ctx, fc) {
  92047. ec.Errorf(ctx, "must not be null")
  92048. }
  92049. return graphql.Null
  92050. }
  92051. res := resTmp.([]string)
  92052. fc.Result = res
  92053. return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
  92054. }
  92055. func (ec *executionContext) fieldContext_Order_discountCodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  92056. fc = &graphql.FieldContext{
  92057. Object: "Order",
  92058. Field: field,
  92059. IsMethod: false,
  92060. IsResolver: false,
  92061. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  92062. return nil, errors.New("field of type String does not have child fields")
  92063. },
  92064. }
  92065. return fc, nil
  92066. }
  92067. func (ec *executionContext) _Order_displayAddress(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  92068. fc, err := ec.fieldContext_Order_displayAddress(ctx, field)
  92069. if err != nil {
  92070. return graphql.Null
  92071. }
  92072. ctx = graphql.WithFieldContext(ctx, fc)
  92073. defer func() {
  92074. if r := recover(); r != nil {
  92075. ec.Error(ctx, ec.Recover(ctx, r))
  92076. ret = graphql.Null
  92077. }
  92078. }()
  92079. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  92080. ctx = rctx // use context from middleware stack in children
  92081. return obj.DisplayAddress, nil
  92082. })
  92083. if err != nil {
  92084. ec.Error(ctx, err)
  92085. return graphql.Null
  92086. }
  92087. if resTmp == nil {
  92088. return graphql.Null
  92089. }
  92090. res := resTmp.(*MailingAddress)
  92091. fc.Result = res
  92092. return ec.marshalOMailingAddress2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMailingAddress(ctx, field.Selections, res)
  92093. }
  92094. func (ec *executionContext) fieldContext_Order_displayAddress(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  92095. fc = &graphql.FieldContext{
  92096. Object: "Order",
  92097. Field: field,
  92098. IsMethod: false,
  92099. IsResolver: false,
  92100. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  92101. switch field.Name {
  92102. case "address1":
  92103. return ec.fieldContext_MailingAddress_address1(ctx, field)
  92104. case "address2":
  92105. return ec.fieldContext_MailingAddress_address2(ctx, field)
  92106. case "city":
  92107. return ec.fieldContext_MailingAddress_city(ctx, field)
  92108. case "company":
  92109. return ec.fieldContext_MailingAddress_company(ctx, field)
  92110. case "coordinatesValidated":
  92111. return ec.fieldContext_MailingAddress_coordinatesValidated(ctx, field)
  92112. case "country":
  92113. return ec.fieldContext_MailingAddress_country(ctx, field)
  92114. case "countryCodeV2":
  92115. return ec.fieldContext_MailingAddress_countryCodeV2(ctx, field)
  92116. case "firstName":
  92117. return ec.fieldContext_MailingAddress_firstName(ctx, field)
  92118. case "formattedArea":
  92119. return ec.fieldContext_MailingAddress_formattedArea(ctx, field)
  92120. case "id":
  92121. return ec.fieldContext_MailingAddress_id(ctx, field)
  92122. case "lastName":
  92123. return ec.fieldContext_MailingAddress_lastName(ctx, field)
  92124. case "latitude":
  92125. return ec.fieldContext_MailingAddress_latitude(ctx, field)
  92126. case "longitude":
  92127. return ec.fieldContext_MailingAddress_longitude(ctx, field)
  92128. case "name":
  92129. return ec.fieldContext_MailingAddress_name(ctx, field)
  92130. case "phone":
  92131. return ec.fieldContext_MailingAddress_phone(ctx, field)
  92132. case "province":
  92133. return ec.fieldContext_MailingAddress_province(ctx, field)
  92134. case "provinceCode":
  92135. return ec.fieldContext_MailingAddress_provinceCode(ctx, field)
  92136. case "zip":
  92137. return ec.fieldContext_MailingAddress_zip(ctx, field)
  92138. }
  92139. return nil, fmt.Errorf("no field named %q was found under type MailingAddress", field.Name)
  92140. },
  92141. }
  92142. return fc, nil
  92143. }
  92144. func (ec *executionContext) _Order_displayFinancialStatus(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  92145. fc, err := ec.fieldContext_Order_displayFinancialStatus(ctx, field)
  92146. if err != nil {
  92147. return graphql.Null
  92148. }
  92149. ctx = graphql.WithFieldContext(ctx, fc)
  92150. defer func() {
  92151. if r := recover(); r != nil {
  92152. ec.Error(ctx, ec.Recover(ctx, r))
  92153. ret = graphql.Null
  92154. }
  92155. }()
  92156. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  92157. ctx = rctx // use context from middleware stack in children
  92158. return obj.DisplayFinancialStatus, nil
  92159. })
  92160. if err != nil {
  92161. ec.Error(ctx, err)
  92162. return graphql.Null
  92163. }
  92164. if resTmp == nil {
  92165. return graphql.Null
  92166. }
  92167. res := resTmp.(*OrderDisplayFinancialStatus)
  92168. fc.Result = res
  92169. return ec.marshalOOrderDisplayFinancialStatus2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderDisplayFinancialStatus(ctx, field.Selections, res)
  92170. }
  92171. func (ec *executionContext) fieldContext_Order_displayFinancialStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  92172. fc = &graphql.FieldContext{
  92173. Object: "Order",
  92174. Field: field,
  92175. IsMethod: false,
  92176. IsResolver: false,
  92177. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  92178. return nil, errors.New("field of type OrderDisplayFinancialStatus does not have child fields")
  92179. },
  92180. }
  92181. return fc, nil
  92182. }
  92183. func (ec *executionContext) _Order_displayFulfillmentStatus(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  92184. fc, err := ec.fieldContext_Order_displayFulfillmentStatus(ctx, field)
  92185. if err != nil {
  92186. return graphql.Null
  92187. }
  92188. ctx = graphql.WithFieldContext(ctx, fc)
  92189. defer func() {
  92190. if r := recover(); r != nil {
  92191. ec.Error(ctx, ec.Recover(ctx, r))
  92192. ret = graphql.Null
  92193. }
  92194. }()
  92195. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  92196. ctx = rctx // use context from middleware stack in children
  92197. return obj.DisplayFulfillmentStatus, nil
  92198. })
  92199. if err != nil {
  92200. ec.Error(ctx, err)
  92201. return graphql.Null
  92202. }
  92203. if resTmp == nil {
  92204. if !graphql.HasFieldError(ctx, fc) {
  92205. ec.Errorf(ctx, "must not be null")
  92206. }
  92207. return graphql.Null
  92208. }
  92209. res := resTmp.(OrderDisplayFulfillmentStatus)
  92210. fc.Result = res
  92211. return ec.marshalNOrderDisplayFulfillmentStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderDisplayFulfillmentStatus(ctx, field.Selections, res)
  92212. }
  92213. func (ec *executionContext) fieldContext_Order_displayFulfillmentStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  92214. fc = &graphql.FieldContext{
  92215. Object: "Order",
  92216. Field: field,
  92217. IsMethod: false,
  92218. IsResolver: false,
  92219. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  92220. return nil, errors.New("field of type OrderDisplayFulfillmentStatus does not have child fields")
  92221. },
  92222. }
  92223. return fc, nil
  92224. }
  92225. func (ec *executionContext) _Order_disputes(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  92226. fc, err := ec.fieldContext_Order_disputes(ctx, field)
  92227. if err != nil {
  92228. return graphql.Null
  92229. }
  92230. ctx = graphql.WithFieldContext(ctx, fc)
  92231. defer func() {
  92232. if r := recover(); r != nil {
  92233. ec.Error(ctx, ec.Recover(ctx, r))
  92234. ret = graphql.Null
  92235. }
  92236. }()
  92237. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  92238. ctx = rctx // use context from middleware stack in children
  92239. return obj.Disputes, nil
  92240. })
  92241. if err != nil {
  92242. ec.Error(ctx, err)
  92243. return graphql.Null
  92244. }
  92245. if resTmp == nil {
  92246. if !graphql.HasFieldError(ctx, fc) {
  92247. ec.Errorf(ctx, "must not be null")
  92248. }
  92249. return graphql.Null
  92250. }
  92251. res := resTmp.([]*OrderDisputeSummary)
  92252. fc.Result = res
  92253. return ec.marshalNOrderDisputeSummary2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderDisputeSummaryᚄ(ctx, field.Selections, res)
  92254. }
  92255. func (ec *executionContext) fieldContext_Order_disputes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  92256. fc = &graphql.FieldContext{
  92257. Object: "Order",
  92258. Field: field,
  92259. IsMethod: false,
  92260. IsResolver: false,
  92261. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  92262. switch field.Name {
  92263. case "id":
  92264. return ec.fieldContext_OrderDisputeSummary_id(ctx, field)
  92265. case "initiatedAs":
  92266. return ec.fieldContext_OrderDisputeSummary_initiatedAs(ctx, field)
  92267. case "status":
  92268. return ec.fieldContext_OrderDisputeSummary_status(ctx, field)
  92269. }
  92270. return nil, fmt.Errorf("no field named %q was found under type OrderDisputeSummary", field.Name)
  92271. },
  92272. }
  92273. return fc, nil
  92274. }
  92275. func (ec *executionContext) _Order_edited(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  92276. fc, err := ec.fieldContext_Order_edited(ctx, field)
  92277. if err != nil {
  92278. return graphql.Null
  92279. }
  92280. ctx = graphql.WithFieldContext(ctx, fc)
  92281. defer func() {
  92282. if r := recover(); r != nil {
  92283. ec.Error(ctx, ec.Recover(ctx, r))
  92284. ret = graphql.Null
  92285. }
  92286. }()
  92287. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  92288. ctx = rctx // use context from middleware stack in children
  92289. return obj.Edited, nil
  92290. })
  92291. if err != nil {
  92292. ec.Error(ctx, err)
  92293. return graphql.Null
  92294. }
  92295. if resTmp == nil {
  92296. if !graphql.HasFieldError(ctx, fc) {
  92297. ec.Errorf(ctx, "must not be null")
  92298. }
  92299. return graphql.Null
  92300. }
  92301. res := resTmp.(bool)
  92302. fc.Result = res
  92303. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  92304. }
  92305. func (ec *executionContext) fieldContext_Order_edited(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  92306. fc = &graphql.FieldContext{
  92307. Object: "Order",
  92308. Field: field,
  92309. IsMethod: false,
  92310. IsResolver: false,
  92311. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  92312. return nil, errors.New("field of type Boolean does not have child fields")
  92313. },
  92314. }
  92315. return fc, nil
  92316. }
  92317. func (ec *executionContext) _Order_email(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  92318. fc, err := ec.fieldContext_Order_email(ctx, field)
  92319. if err != nil {
  92320. return graphql.Null
  92321. }
  92322. ctx = graphql.WithFieldContext(ctx, fc)
  92323. defer func() {
  92324. if r := recover(); r != nil {
  92325. ec.Error(ctx, ec.Recover(ctx, r))
  92326. ret = graphql.Null
  92327. }
  92328. }()
  92329. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  92330. ctx = rctx // use context from middleware stack in children
  92331. return obj.Email, nil
  92332. })
  92333. if err != nil {
  92334. ec.Error(ctx, err)
  92335. return graphql.Null
  92336. }
  92337. if resTmp == nil {
  92338. return graphql.Null
  92339. }
  92340. res := resTmp.(*string)
  92341. fc.Result = res
  92342. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  92343. }
  92344. func (ec *executionContext) fieldContext_Order_email(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  92345. fc = &graphql.FieldContext{
  92346. Object: "Order",
  92347. Field: field,
  92348. IsMethod: false,
  92349. IsResolver: false,
  92350. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  92351. return nil, errors.New("field of type String does not have child fields")
  92352. },
  92353. }
  92354. return fc, nil
  92355. }
  92356. func (ec *executionContext) _Order_estimatedTaxes(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  92357. fc, err := ec.fieldContext_Order_estimatedTaxes(ctx, field)
  92358. if err != nil {
  92359. return graphql.Null
  92360. }
  92361. ctx = graphql.WithFieldContext(ctx, fc)
  92362. defer func() {
  92363. if r := recover(); r != nil {
  92364. ec.Error(ctx, ec.Recover(ctx, r))
  92365. ret = graphql.Null
  92366. }
  92367. }()
  92368. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  92369. ctx = rctx // use context from middleware stack in children
  92370. return obj.EstimatedTaxes, nil
  92371. })
  92372. if err != nil {
  92373. ec.Error(ctx, err)
  92374. return graphql.Null
  92375. }
  92376. if resTmp == nil {
  92377. if !graphql.HasFieldError(ctx, fc) {
  92378. ec.Errorf(ctx, "must not be null")
  92379. }
  92380. return graphql.Null
  92381. }
  92382. res := resTmp.(bool)
  92383. fc.Result = res
  92384. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  92385. }
  92386. func (ec *executionContext) fieldContext_Order_estimatedTaxes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  92387. fc = &graphql.FieldContext{
  92388. Object: "Order",
  92389. Field: field,
  92390. IsMethod: false,
  92391. IsResolver: false,
  92392. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  92393. return nil, errors.New("field of type Boolean does not have child fields")
  92394. },
  92395. }
  92396. return fc, nil
  92397. }
  92398. func (ec *executionContext) _Order_events(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  92399. fc, err := ec.fieldContext_Order_events(ctx, field)
  92400. if err != nil {
  92401. return graphql.Null
  92402. }
  92403. ctx = graphql.WithFieldContext(ctx, fc)
  92404. defer func() {
  92405. if r := recover(); r != nil {
  92406. ec.Error(ctx, ec.Recover(ctx, r))
  92407. ret = graphql.Null
  92408. }
  92409. }()
  92410. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  92411. ctx = rctx // use context from middleware stack in children
  92412. return obj.Events, nil
  92413. })
  92414. if err != nil {
  92415. ec.Error(ctx, err)
  92416. return graphql.Null
  92417. }
  92418. if resTmp == nil {
  92419. if !graphql.HasFieldError(ctx, fc) {
  92420. ec.Errorf(ctx, "must not be null")
  92421. }
  92422. return graphql.Null
  92423. }
  92424. res := resTmp.(*EventConnection)
  92425. fc.Result = res
  92426. return ec.marshalNEventConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐEventConnection(ctx, field.Selections, res)
  92427. }
  92428. func (ec *executionContext) fieldContext_Order_events(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  92429. fc = &graphql.FieldContext{
  92430. Object: "Order",
  92431. Field: field,
  92432. IsMethod: false,
  92433. IsResolver: false,
  92434. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  92435. switch field.Name {
  92436. case "edges":
  92437. return ec.fieldContext_EventConnection_edges(ctx, field)
  92438. case "nodes":
  92439. return ec.fieldContext_EventConnection_nodes(ctx, field)
  92440. case "pageInfo":
  92441. return ec.fieldContext_EventConnection_pageInfo(ctx, field)
  92442. }
  92443. return nil, fmt.Errorf("no field named %q was found under type EventConnection", field.Name)
  92444. },
  92445. }
  92446. defer func() {
  92447. if r := recover(); r != nil {
  92448. err = ec.Recover(ctx, r)
  92449. ec.Error(ctx, err)
  92450. }
  92451. }()
  92452. ctx = graphql.WithFieldContext(ctx, fc)
  92453. if fc.Args, err = ec.field_Order_events_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  92454. ec.Error(ctx, err)
  92455. return
  92456. }
  92457. return fc, nil
  92458. }
  92459. func (ec *executionContext) _Order_fulfillable(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  92460. fc, err := ec.fieldContext_Order_fulfillable(ctx, field)
  92461. if err != nil {
  92462. return graphql.Null
  92463. }
  92464. ctx = graphql.WithFieldContext(ctx, fc)
  92465. defer func() {
  92466. if r := recover(); r != nil {
  92467. ec.Error(ctx, ec.Recover(ctx, r))
  92468. ret = graphql.Null
  92469. }
  92470. }()
  92471. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  92472. ctx = rctx // use context from middleware stack in children
  92473. return obj.Fulfillable, nil
  92474. })
  92475. if err != nil {
  92476. ec.Error(ctx, err)
  92477. return graphql.Null
  92478. }
  92479. if resTmp == nil {
  92480. if !graphql.HasFieldError(ctx, fc) {
  92481. ec.Errorf(ctx, "must not be null")
  92482. }
  92483. return graphql.Null
  92484. }
  92485. res := resTmp.(bool)
  92486. fc.Result = res
  92487. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  92488. }
  92489. func (ec *executionContext) fieldContext_Order_fulfillable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  92490. fc = &graphql.FieldContext{
  92491. Object: "Order",
  92492. Field: field,
  92493. IsMethod: false,
  92494. IsResolver: false,
  92495. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  92496. return nil, errors.New("field of type Boolean does not have child fields")
  92497. },
  92498. }
  92499. return fc, nil
  92500. }
  92501. func (ec *executionContext) _Order_fulfillmentOrders(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  92502. fc, err := ec.fieldContext_Order_fulfillmentOrders(ctx, field)
  92503. if err != nil {
  92504. return graphql.Null
  92505. }
  92506. ctx = graphql.WithFieldContext(ctx, fc)
  92507. defer func() {
  92508. if r := recover(); r != nil {
  92509. ec.Error(ctx, ec.Recover(ctx, r))
  92510. ret = graphql.Null
  92511. }
  92512. }()
  92513. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  92514. ctx = rctx // use context from middleware stack in children
  92515. return obj.FulfillmentOrders, nil
  92516. })
  92517. if err != nil {
  92518. ec.Error(ctx, err)
  92519. return graphql.Null
  92520. }
  92521. if resTmp == nil {
  92522. if !graphql.HasFieldError(ctx, fc) {
  92523. ec.Errorf(ctx, "must not be null")
  92524. }
  92525. return graphql.Null
  92526. }
  92527. res := resTmp.(*FulfillmentOrderConnection)
  92528. fc.Result = res
  92529. return ec.marshalNFulfillmentOrderConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderConnection(ctx, field.Selections, res)
  92530. }
  92531. func (ec *executionContext) fieldContext_Order_fulfillmentOrders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  92532. fc = &graphql.FieldContext{
  92533. Object: "Order",
  92534. Field: field,
  92535. IsMethod: false,
  92536. IsResolver: false,
  92537. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  92538. switch field.Name {
  92539. case "edges":
  92540. return ec.fieldContext_FulfillmentOrderConnection_edges(ctx, field)
  92541. case "nodes":
  92542. return ec.fieldContext_FulfillmentOrderConnection_nodes(ctx, field)
  92543. case "pageInfo":
  92544. return ec.fieldContext_FulfillmentOrderConnection_pageInfo(ctx, field)
  92545. }
  92546. return nil, fmt.Errorf("no field named %q was found under type FulfillmentOrderConnection", field.Name)
  92547. },
  92548. }
  92549. defer func() {
  92550. if r := recover(); r != nil {
  92551. err = ec.Recover(ctx, r)
  92552. ec.Error(ctx, err)
  92553. }
  92554. }()
  92555. ctx = graphql.WithFieldContext(ctx, fc)
  92556. if fc.Args, err = ec.field_Order_fulfillmentOrders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  92557. ec.Error(ctx, err)
  92558. return
  92559. }
  92560. return fc, nil
  92561. }
  92562. func (ec *executionContext) _Order_fulfillments(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  92563. fc, err := ec.fieldContext_Order_fulfillments(ctx, field)
  92564. if err != nil {
  92565. return graphql.Null
  92566. }
  92567. ctx = graphql.WithFieldContext(ctx, fc)
  92568. defer func() {
  92569. if r := recover(); r != nil {
  92570. ec.Error(ctx, ec.Recover(ctx, r))
  92571. ret = graphql.Null
  92572. }
  92573. }()
  92574. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  92575. ctx = rctx // use context from middleware stack in children
  92576. return obj.Fulfillments, nil
  92577. })
  92578. if err != nil {
  92579. ec.Error(ctx, err)
  92580. return graphql.Null
  92581. }
  92582. if resTmp == nil {
  92583. if !graphql.HasFieldError(ctx, fc) {
  92584. ec.Errorf(ctx, "must not be null")
  92585. }
  92586. return graphql.Null
  92587. }
  92588. res := resTmp.([]*Fulfillment)
  92589. fc.Result = res
  92590. return ec.marshalNFulfillment2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentᚄ(ctx, field.Selections, res)
  92591. }
  92592. func (ec *executionContext) fieldContext_Order_fulfillments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  92593. fc = &graphql.FieldContext{
  92594. Object: "Order",
  92595. Field: field,
  92596. IsMethod: false,
  92597. IsResolver: false,
  92598. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  92599. switch field.Name {
  92600. case "createdAt":
  92601. return ec.fieldContext_Fulfillment_createdAt(ctx, field)
  92602. case "deliveredAt":
  92603. return ec.fieldContext_Fulfillment_deliveredAt(ctx, field)
  92604. case "displayStatus":
  92605. return ec.fieldContext_Fulfillment_displayStatus(ctx, field)
  92606. case "estimatedDeliveryAt":
  92607. return ec.fieldContext_Fulfillment_estimatedDeliveryAt(ctx, field)
  92608. case "events":
  92609. return ec.fieldContext_Fulfillment_events(ctx, field)
  92610. case "fulfillmentLineItems":
  92611. return ec.fieldContext_Fulfillment_fulfillmentLineItems(ctx, field)
  92612. case "fulfillmentOrders":
  92613. return ec.fieldContext_Fulfillment_fulfillmentOrders(ctx, field)
  92614. case "id":
  92615. return ec.fieldContext_Fulfillment_id(ctx, field)
  92616. case "inTransitAt":
  92617. return ec.fieldContext_Fulfillment_inTransitAt(ctx, field)
  92618. case "legacyResourceId":
  92619. return ec.fieldContext_Fulfillment_legacyResourceId(ctx, field)
  92620. case "location":
  92621. return ec.fieldContext_Fulfillment_location(ctx, field)
  92622. case "name":
  92623. return ec.fieldContext_Fulfillment_name(ctx, field)
  92624. case "order":
  92625. return ec.fieldContext_Fulfillment_order(ctx, field)
  92626. case "originAddress":
  92627. return ec.fieldContext_Fulfillment_originAddress(ctx, field)
  92628. case "requiresShipping":
  92629. return ec.fieldContext_Fulfillment_requiresShipping(ctx, field)
  92630. case "service":
  92631. return ec.fieldContext_Fulfillment_service(ctx, field)
  92632. case "status":
  92633. return ec.fieldContext_Fulfillment_status(ctx, field)
  92634. case "totalQuantity":
  92635. return ec.fieldContext_Fulfillment_totalQuantity(ctx, field)
  92636. case "trackingInfo":
  92637. return ec.fieldContext_Fulfillment_trackingInfo(ctx, field)
  92638. case "updatedAt":
  92639. return ec.fieldContext_Fulfillment_updatedAt(ctx, field)
  92640. }
  92641. return nil, fmt.Errorf("no field named %q was found under type Fulfillment", field.Name)
  92642. },
  92643. }
  92644. defer func() {
  92645. if r := recover(); r != nil {
  92646. err = ec.Recover(ctx, r)
  92647. ec.Error(ctx, err)
  92648. }
  92649. }()
  92650. ctx = graphql.WithFieldContext(ctx, fc)
  92651. if fc.Args, err = ec.field_Order_fulfillments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  92652. ec.Error(ctx, err)
  92653. return
  92654. }
  92655. return fc, nil
  92656. }
  92657. func (ec *executionContext) _Order_fullyPaid(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  92658. fc, err := ec.fieldContext_Order_fullyPaid(ctx, field)
  92659. if err != nil {
  92660. return graphql.Null
  92661. }
  92662. ctx = graphql.WithFieldContext(ctx, fc)
  92663. defer func() {
  92664. if r := recover(); r != nil {
  92665. ec.Error(ctx, ec.Recover(ctx, r))
  92666. ret = graphql.Null
  92667. }
  92668. }()
  92669. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  92670. ctx = rctx // use context from middleware stack in children
  92671. return obj.FullyPaid, nil
  92672. })
  92673. if err != nil {
  92674. ec.Error(ctx, err)
  92675. return graphql.Null
  92676. }
  92677. if resTmp == nil {
  92678. if !graphql.HasFieldError(ctx, fc) {
  92679. ec.Errorf(ctx, "must not be null")
  92680. }
  92681. return graphql.Null
  92682. }
  92683. res := resTmp.(bool)
  92684. fc.Result = res
  92685. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  92686. }
  92687. func (ec *executionContext) fieldContext_Order_fullyPaid(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  92688. fc = &graphql.FieldContext{
  92689. Object: "Order",
  92690. Field: field,
  92691. IsMethod: false,
  92692. IsResolver: false,
  92693. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  92694. return nil, errors.New("field of type Boolean does not have child fields")
  92695. },
  92696. }
  92697. return fc, nil
  92698. }
  92699. func (ec *executionContext) _Order_hasTimelineComment(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  92700. fc, err := ec.fieldContext_Order_hasTimelineComment(ctx, field)
  92701. if err != nil {
  92702. return graphql.Null
  92703. }
  92704. ctx = graphql.WithFieldContext(ctx, fc)
  92705. defer func() {
  92706. if r := recover(); r != nil {
  92707. ec.Error(ctx, ec.Recover(ctx, r))
  92708. ret = graphql.Null
  92709. }
  92710. }()
  92711. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  92712. ctx = rctx // use context from middleware stack in children
  92713. return obj.HasTimelineComment, nil
  92714. })
  92715. if err != nil {
  92716. ec.Error(ctx, err)
  92717. return graphql.Null
  92718. }
  92719. if resTmp == nil {
  92720. if !graphql.HasFieldError(ctx, fc) {
  92721. ec.Errorf(ctx, "must not be null")
  92722. }
  92723. return graphql.Null
  92724. }
  92725. res := resTmp.(bool)
  92726. fc.Result = res
  92727. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  92728. }
  92729. func (ec *executionContext) fieldContext_Order_hasTimelineComment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  92730. fc = &graphql.FieldContext{
  92731. Object: "Order",
  92732. Field: field,
  92733. IsMethod: false,
  92734. IsResolver: false,
  92735. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  92736. return nil, errors.New("field of type Boolean does not have child fields")
  92737. },
  92738. }
  92739. return fc, nil
  92740. }
  92741. func (ec *executionContext) _Order_id(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  92742. fc, err := ec.fieldContext_Order_id(ctx, field)
  92743. if err != nil {
  92744. return graphql.Null
  92745. }
  92746. ctx = graphql.WithFieldContext(ctx, fc)
  92747. defer func() {
  92748. if r := recover(); r != nil {
  92749. ec.Error(ctx, ec.Recover(ctx, r))
  92750. ret = graphql.Null
  92751. }
  92752. }()
  92753. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  92754. ctx = rctx // use context from middleware stack in children
  92755. return obj.ID, nil
  92756. })
  92757. if err != nil {
  92758. ec.Error(ctx, err)
  92759. return graphql.Null
  92760. }
  92761. if resTmp == nil {
  92762. if !graphql.HasFieldError(ctx, fc) {
  92763. ec.Errorf(ctx, "must not be null")
  92764. }
  92765. return graphql.Null
  92766. }
  92767. res := resTmp.(string)
  92768. fc.Result = res
  92769. return ec.marshalNID2string(ctx, field.Selections, res)
  92770. }
  92771. func (ec *executionContext) fieldContext_Order_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  92772. fc = &graphql.FieldContext{
  92773. Object: "Order",
  92774. Field: field,
  92775. IsMethod: false,
  92776. IsResolver: false,
  92777. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  92778. return nil, errors.New("field of type ID does not have child fields")
  92779. },
  92780. }
  92781. return fc, nil
  92782. }
  92783. func (ec *executionContext) _Order_legacyResourceId(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  92784. fc, err := ec.fieldContext_Order_legacyResourceId(ctx, field)
  92785. if err != nil {
  92786. return graphql.Null
  92787. }
  92788. ctx = graphql.WithFieldContext(ctx, fc)
  92789. defer func() {
  92790. if r := recover(); r != nil {
  92791. ec.Error(ctx, ec.Recover(ctx, r))
  92792. ret = graphql.Null
  92793. }
  92794. }()
  92795. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  92796. ctx = rctx // use context from middleware stack in children
  92797. return obj.LegacyResourceID, nil
  92798. })
  92799. if err != nil {
  92800. ec.Error(ctx, err)
  92801. return graphql.Null
  92802. }
  92803. if resTmp == nil {
  92804. if !graphql.HasFieldError(ctx, fc) {
  92805. ec.Errorf(ctx, "must not be null")
  92806. }
  92807. return graphql.Null
  92808. }
  92809. res := resTmp.(string)
  92810. fc.Result = res
  92811. return ec.marshalNUnsignedInt642string(ctx, field.Selections, res)
  92812. }
  92813. func (ec *executionContext) fieldContext_Order_legacyResourceId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  92814. fc = &graphql.FieldContext{
  92815. Object: "Order",
  92816. Field: field,
  92817. IsMethod: false,
  92818. IsResolver: false,
  92819. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  92820. return nil, errors.New("field of type UnsignedInt64 does not have child fields")
  92821. },
  92822. }
  92823. return fc, nil
  92824. }
  92825. func (ec *executionContext) _Order_lineItems(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  92826. fc, err := ec.fieldContext_Order_lineItems(ctx, field)
  92827. if err != nil {
  92828. return graphql.Null
  92829. }
  92830. ctx = graphql.WithFieldContext(ctx, fc)
  92831. defer func() {
  92832. if r := recover(); r != nil {
  92833. ec.Error(ctx, ec.Recover(ctx, r))
  92834. ret = graphql.Null
  92835. }
  92836. }()
  92837. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  92838. ctx = rctx // use context from middleware stack in children
  92839. return obj.LineItems, nil
  92840. })
  92841. if err != nil {
  92842. ec.Error(ctx, err)
  92843. return graphql.Null
  92844. }
  92845. if resTmp == nil {
  92846. if !graphql.HasFieldError(ctx, fc) {
  92847. ec.Errorf(ctx, "must not be null")
  92848. }
  92849. return graphql.Null
  92850. }
  92851. res := resTmp.(*LineItemConnection)
  92852. fc.Result = res
  92853. return ec.marshalNLineItemConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLineItemConnection(ctx, field.Selections, res)
  92854. }
  92855. func (ec *executionContext) fieldContext_Order_lineItems(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  92856. fc = &graphql.FieldContext{
  92857. Object: "Order",
  92858. Field: field,
  92859. IsMethod: false,
  92860. IsResolver: false,
  92861. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  92862. switch field.Name {
  92863. case "edges":
  92864. return ec.fieldContext_LineItemConnection_edges(ctx, field)
  92865. case "nodes":
  92866. return ec.fieldContext_LineItemConnection_nodes(ctx, field)
  92867. case "pageInfo":
  92868. return ec.fieldContext_LineItemConnection_pageInfo(ctx, field)
  92869. }
  92870. return nil, fmt.Errorf("no field named %q was found under type LineItemConnection", field.Name)
  92871. },
  92872. }
  92873. defer func() {
  92874. if r := recover(); r != nil {
  92875. err = ec.Recover(ctx, r)
  92876. ec.Error(ctx, err)
  92877. }
  92878. }()
  92879. ctx = graphql.WithFieldContext(ctx, fc)
  92880. if fc.Args, err = ec.field_Order_lineItems_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  92881. ec.Error(ctx, err)
  92882. return
  92883. }
  92884. return fc, nil
  92885. }
  92886. func (ec *executionContext) _Order_localizationExtensions(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  92887. fc, err := ec.fieldContext_Order_localizationExtensions(ctx, field)
  92888. if err != nil {
  92889. return graphql.Null
  92890. }
  92891. ctx = graphql.WithFieldContext(ctx, fc)
  92892. defer func() {
  92893. if r := recover(); r != nil {
  92894. ec.Error(ctx, ec.Recover(ctx, r))
  92895. ret = graphql.Null
  92896. }
  92897. }()
  92898. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  92899. ctx = rctx // use context from middleware stack in children
  92900. return obj.LocalizationExtensions, nil
  92901. })
  92902. if err != nil {
  92903. ec.Error(ctx, err)
  92904. return graphql.Null
  92905. }
  92906. if resTmp == nil {
  92907. if !graphql.HasFieldError(ctx, fc) {
  92908. ec.Errorf(ctx, "must not be null")
  92909. }
  92910. return graphql.Null
  92911. }
  92912. res := resTmp.(*LocalizationExtensionConnection)
  92913. fc.Result = res
  92914. return ec.marshalNLocalizationExtensionConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocalizationExtensionConnection(ctx, field.Selections, res)
  92915. }
  92916. func (ec *executionContext) fieldContext_Order_localizationExtensions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  92917. fc = &graphql.FieldContext{
  92918. Object: "Order",
  92919. Field: field,
  92920. IsMethod: false,
  92921. IsResolver: false,
  92922. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  92923. switch field.Name {
  92924. case "edges":
  92925. return ec.fieldContext_LocalizationExtensionConnection_edges(ctx, field)
  92926. case "nodes":
  92927. return ec.fieldContext_LocalizationExtensionConnection_nodes(ctx, field)
  92928. case "pageInfo":
  92929. return ec.fieldContext_LocalizationExtensionConnection_pageInfo(ctx, field)
  92930. }
  92931. return nil, fmt.Errorf("no field named %q was found under type LocalizationExtensionConnection", field.Name)
  92932. },
  92933. }
  92934. defer func() {
  92935. if r := recover(); r != nil {
  92936. err = ec.Recover(ctx, r)
  92937. ec.Error(ctx, err)
  92938. }
  92939. }()
  92940. ctx = graphql.WithFieldContext(ctx, fc)
  92941. if fc.Args, err = ec.field_Order_localizationExtensions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  92942. ec.Error(ctx, err)
  92943. return
  92944. }
  92945. return fc, nil
  92946. }
  92947. func (ec *executionContext) _Order_merchantEditable(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  92948. fc, err := ec.fieldContext_Order_merchantEditable(ctx, field)
  92949. if err != nil {
  92950. return graphql.Null
  92951. }
  92952. ctx = graphql.WithFieldContext(ctx, fc)
  92953. defer func() {
  92954. if r := recover(); r != nil {
  92955. ec.Error(ctx, ec.Recover(ctx, r))
  92956. ret = graphql.Null
  92957. }
  92958. }()
  92959. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  92960. ctx = rctx // use context from middleware stack in children
  92961. return obj.MerchantEditable, nil
  92962. })
  92963. if err != nil {
  92964. ec.Error(ctx, err)
  92965. return graphql.Null
  92966. }
  92967. if resTmp == nil {
  92968. if !graphql.HasFieldError(ctx, fc) {
  92969. ec.Errorf(ctx, "must not be null")
  92970. }
  92971. return graphql.Null
  92972. }
  92973. res := resTmp.(bool)
  92974. fc.Result = res
  92975. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  92976. }
  92977. func (ec *executionContext) fieldContext_Order_merchantEditable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  92978. fc = &graphql.FieldContext{
  92979. Object: "Order",
  92980. Field: field,
  92981. IsMethod: false,
  92982. IsResolver: false,
  92983. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  92984. return nil, errors.New("field of type Boolean does not have child fields")
  92985. },
  92986. }
  92987. return fc, nil
  92988. }
  92989. func (ec *executionContext) _Order_merchantEditableErrors(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  92990. fc, err := ec.fieldContext_Order_merchantEditableErrors(ctx, field)
  92991. if err != nil {
  92992. return graphql.Null
  92993. }
  92994. ctx = graphql.WithFieldContext(ctx, fc)
  92995. defer func() {
  92996. if r := recover(); r != nil {
  92997. ec.Error(ctx, ec.Recover(ctx, r))
  92998. ret = graphql.Null
  92999. }
  93000. }()
  93001. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  93002. ctx = rctx // use context from middleware stack in children
  93003. return obj.MerchantEditableErrors, nil
  93004. })
  93005. if err != nil {
  93006. ec.Error(ctx, err)
  93007. return graphql.Null
  93008. }
  93009. if resTmp == nil {
  93010. if !graphql.HasFieldError(ctx, fc) {
  93011. ec.Errorf(ctx, "must not be null")
  93012. }
  93013. return graphql.Null
  93014. }
  93015. res := resTmp.([]string)
  93016. fc.Result = res
  93017. return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
  93018. }
  93019. func (ec *executionContext) fieldContext_Order_merchantEditableErrors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  93020. fc = &graphql.FieldContext{
  93021. Object: "Order",
  93022. Field: field,
  93023. IsMethod: false,
  93024. IsResolver: false,
  93025. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  93026. return nil, errors.New("field of type String does not have child fields")
  93027. },
  93028. }
  93029. return fc, nil
  93030. }
  93031. func (ec *executionContext) _Order_merchantOfRecordApp(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  93032. fc, err := ec.fieldContext_Order_merchantOfRecordApp(ctx, field)
  93033. if err != nil {
  93034. return graphql.Null
  93035. }
  93036. ctx = graphql.WithFieldContext(ctx, fc)
  93037. defer func() {
  93038. if r := recover(); r != nil {
  93039. ec.Error(ctx, ec.Recover(ctx, r))
  93040. ret = graphql.Null
  93041. }
  93042. }()
  93043. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  93044. ctx = rctx // use context from middleware stack in children
  93045. return obj.MerchantOfRecordApp, nil
  93046. })
  93047. if err != nil {
  93048. ec.Error(ctx, err)
  93049. return graphql.Null
  93050. }
  93051. if resTmp == nil {
  93052. return graphql.Null
  93053. }
  93054. res := resTmp.(*OrderApp)
  93055. fc.Result = res
  93056. return ec.marshalOOrderApp2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderApp(ctx, field.Selections, res)
  93057. }
  93058. func (ec *executionContext) fieldContext_Order_merchantOfRecordApp(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  93059. fc = &graphql.FieldContext{
  93060. Object: "Order",
  93061. Field: field,
  93062. IsMethod: false,
  93063. IsResolver: false,
  93064. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  93065. switch field.Name {
  93066. case "icon":
  93067. return ec.fieldContext_OrderApp_icon(ctx, field)
  93068. case "id":
  93069. return ec.fieldContext_OrderApp_id(ctx, field)
  93070. case "name":
  93071. return ec.fieldContext_OrderApp_name(ctx, field)
  93072. }
  93073. return nil, fmt.Errorf("no field named %q was found under type OrderApp", field.Name)
  93074. },
  93075. }
  93076. return fc, nil
  93077. }
  93078. func (ec *executionContext) _Order_metafield(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  93079. fc, err := ec.fieldContext_Order_metafield(ctx, field)
  93080. if err != nil {
  93081. return graphql.Null
  93082. }
  93083. ctx = graphql.WithFieldContext(ctx, fc)
  93084. defer func() {
  93085. if r := recover(); r != nil {
  93086. ec.Error(ctx, ec.Recover(ctx, r))
  93087. ret = graphql.Null
  93088. }
  93089. }()
  93090. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  93091. ctx = rctx // use context from middleware stack in children
  93092. return obj.Metafield, nil
  93093. })
  93094. if err != nil {
  93095. ec.Error(ctx, err)
  93096. return graphql.Null
  93097. }
  93098. if resTmp == nil {
  93099. return graphql.Null
  93100. }
  93101. res := resTmp.(*Metafield)
  93102. fc.Result = res
  93103. return ec.marshalOMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafield(ctx, field.Selections, res)
  93104. }
  93105. func (ec *executionContext) fieldContext_Order_metafield(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  93106. fc = &graphql.FieldContext{
  93107. Object: "Order",
  93108. Field: field,
  93109. IsMethod: false,
  93110. IsResolver: false,
  93111. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  93112. switch field.Name {
  93113. case "createdAt":
  93114. return ec.fieldContext_Metafield_createdAt(ctx, field)
  93115. case "definition":
  93116. return ec.fieldContext_Metafield_definition(ctx, field)
  93117. case "description":
  93118. return ec.fieldContext_Metafield_description(ctx, field)
  93119. case "id":
  93120. return ec.fieldContext_Metafield_id(ctx, field)
  93121. case "key":
  93122. return ec.fieldContext_Metafield_key(ctx, field)
  93123. case "legacyResourceId":
  93124. return ec.fieldContext_Metafield_legacyResourceId(ctx, field)
  93125. case "namespace":
  93126. return ec.fieldContext_Metafield_namespace(ctx, field)
  93127. case "owner":
  93128. return ec.fieldContext_Metafield_owner(ctx, field)
  93129. case "ownerType":
  93130. return ec.fieldContext_Metafield_ownerType(ctx, field)
  93131. case "reference":
  93132. return ec.fieldContext_Metafield_reference(ctx, field)
  93133. case "references":
  93134. return ec.fieldContext_Metafield_references(ctx, field)
  93135. case "type":
  93136. return ec.fieldContext_Metafield_type(ctx, field)
  93137. case "updatedAt":
  93138. return ec.fieldContext_Metafield_updatedAt(ctx, field)
  93139. case "value":
  93140. return ec.fieldContext_Metafield_value(ctx, field)
  93141. }
  93142. return nil, fmt.Errorf("no field named %q was found under type Metafield", field.Name)
  93143. },
  93144. }
  93145. defer func() {
  93146. if r := recover(); r != nil {
  93147. err = ec.Recover(ctx, r)
  93148. ec.Error(ctx, err)
  93149. }
  93150. }()
  93151. ctx = graphql.WithFieldContext(ctx, fc)
  93152. if fc.Args, err = ec.field_Order_metafield_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  93153. ec.Error(ctx, err)
  93154. return
  93155. }
  93156. return fc, nil
  93157. }
  93158. func (ec *executionContext) _Order_metafieldDefinitions(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  93159. fc, err := ec.fieldContext_Order_metafieldDefinitions(ctx, field)
  93160. if err != nil {
  93161. return graphql.Null
  93162. }
  93163. ctx = graphql.WithFieldContext(ctx, fc)
  93164. defer func() {
  93165. if r := recover(); r != nil {
  93166. ec.Error(ctx, ec.Recover(ctx, r))
  93167. ret = graphql.Null
  93168. }
  93169. }()
  93170. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  93171. ctx = rctx // use context from middleware stack in children
  93172. return obj.MetafieldDefinitions, nil
  93173. })
  93174. if err != nil {
  93175. ec.Error(ctx, err)
  93176. return graphql.Null
  93177. }
  93178. if resTmp == nil {
  93179. if !graphql.HasFieldError(ctx, fc) {
  93180. ec.Errorf(ctx, "must not be null")
  93181. }
  93182. return graphql.Null
  93183. }
  93184. res := resTmp.(*MetafieldDefinitionConnection)
  93185. fc.Result = res
  93186. return ec.marshalNMetafieldDefinitionConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionConnection(ctx, field.Selections, res)
  93187. }
  93188. func (ec *executionContext) fieldContext_Order_metafieldDefinitions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  93189. fc = &graphql.FieldContext{
  93190. Object: "Order",
  93191. Field: field,
  93192. IsMethod: false,
  93193. IsResolver: false,
  93194. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  93195. switch field.Name {
  93196. case "edges":
  93197. return ec.fieldContext_MetafieldDefinitionConnection_edges(ctx, field)
  93198. case "nodes":
  93199. return ec.fieldContext_MetafieldDefinitionConnection_nodes(ctx, field)
  93200. case "pageInfo":
  93201. return ec.fieldContext_MetafieldDefinitionConnection_pageInfo(ctx, field)
  93202. }
  93203. return nil, fmt.Errorf("no field named %q was found under type MetafieldDefinitionConnection", field.Name)
  93204. },
  93205. }
  93206. defer func() {
  93207. if r := recover(); r != nil {
  93208. err = ec.Recover(ctx, r)
  93209. ec.Error(ctx, err)
  93210. }
  93211. }()
  93212. ctx = graphql.WithFieldContext(ctx, fc)
  93213. if fc.Args, err = ec.field_Order_metafieldDefinitions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  93214. ec.Error(ctx, err)
  93215. return
  93216. }
  93217. return fc, nil
  93218. }
  93219. func (ec *executionContext) _Order_metafields(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  93220. fc, err := ec.fieldContext_Order_metafields(ctx, field)
  93221. if err != nil {
  93222. return graphql.Null
  93223. }
  93224. ctx = graphql.WithFieldContext(ctx, fc)
  93225. defer func() {
  93226. if r := recover(); r != nil {
  93227. ec.Error(ctx, ec.Recover(ctx, r))
  93228. ret = graphql.Null
  93229. }
  93230. }()
  93231. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  93232. ctx = rctx // use context from middleware stack in children
  93233. return obj.Metafields, nil
  93234. })
  93235. if err != nil {
  93236. ec.Error(ctx, err)
  93237. return graphql.Null
  93238. }
  93239. if resTmp == nil {
  93240. if !graphql.HasFieldError(ctx, fc) {
  93241. ec.Errorf(ctx, "must not be null")
  93242. }
  93243. return graphql.Null
  93244. }
  93245. res := resTmp.(*MetafieldConnection)
  93246. fc.Result = res
  93247. return ec.marshalNMetafieldConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldConnection(ctx, field.Selections, res)
  93248. }
  93249. func (ec *executionContext) fieldContext_Order_metafields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  93250. fc = &graphql.FieldContext{
  93251. Object: "Order",
  93252. Field: field,
  93253. IsMethod: false,
  93254. IsResolver: false,
  93255. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  93256. switch field.Name {
  93257. case "edges":
  93258. return ec.fieldContext_MetafieldConnection_edges(ctx, field)
  93259. case "nodes":
  93260. return ec.fieldContext_MetafieldConnection_nodes(ctx, field)
  93261. case "pageInfo":
  93262. return ec.fieldContext_MetafieldConnection_pageInfo(ctx, field)
  93263. }
  93264. return nil, fmt.Errorf("no field named %q was found under type MetafieldConnection", field.Name)
  93265. },
  93266. }
  93267. defer func() {
  93268. if r := recover(); r != nil {
  93269. err = ec.Recover(ctx, r)
  93270. ec.Error(ctx, err)
  93271. }
  93272. }()
  93273. ctx = graphql.WithFieldContext(ctx, fc)
  93274. if fc.Args, err = ec.field_Order_metafields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  93275. ec.Error(ctx, err)
  93276. return
  93277. }
  93278. return fc, nil
  93279. }
  93280. func (ec *executionContext) _Order_name(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  93281. fc, err := ec.fieldContext_Order_name(ctx, field)
  93282. if err != nil {
  93283. return graphql.Null
  93284. }
  93285. ctx = graphql.WithFieldContext(ctx, fc)
  93286. defer func() {
  93287. if r := recover(); r != nil {
  93288. ec.Error(ctx, ec.Recover(ctx, r))
  93289. ret = graphql.Null
  93290. }
  93291. }()
  93292. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  93293. ctx = rctx // use context from middleware stack in children
  93294. return obj.Name, nil
  93295. })
  93296. if err != nil {
  93297. ec.Error(ctx, err)
  93298. return graphql.Null
  93299. }
  93300. if resTmp == nil {
  93301. if !graphql.HasFieldError(ctx, fc) {
  93302. ec.Errorf(ctx, "must not be null")
  93303. }
  93304. return graphql.Null
  93305. }
  93306. res := resTmp.(string)
  93307. fc.Result = res
  93308. return ec.marshalNString2string(ctx, field.Selections, res)
  93309. }
  93310. func (ec *executionContext) fieldContext_Order_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  93311. fc = &graphql.FieldContext{
  93312. Object: "Order",
  93313. Field: field,
  93314. IsMethod: false,
  93315. IsResolver: false,
  93316. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  93317. return nil, errors.New("field of type String does not have child fields")
  93318. },
  93319. }
  93320. return fc, nil
  93321. }
  93322. func (ec *executionContext) _Order_netPaymentSet(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  93323. fc, err := ec.fieldContext_Order_netPaymentSet(ctx, field)
  93324. if err != nil {
  93325. return graphql.Null
  93326. }
  93327. ctx = graphql.WithFieldContext(ctx, fc)
  93328. defer func() {
  93329. if r := recover(); r != nil {
  93330. ec.Error(ctx, ec.Recover(ctx, r))
  93331. ret = graphql.Null
  93332. }
  93333. }()
  93334. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  93335. ctx = rctx // use context from middleware stack in children
  93336. return obj.NetPaymentSet, nil
  93337. })
  93338. if err != nil {
  93339. ec.Error(ctx, err)
  93340. return graphql.Null
  93341. }
  93342. if resTmp == nil {
  93343. if !graphql.HasFieldError(ctx, fc) {
  93344. ec.Errorf(ctx, "must not be null")
  93345. }
  93346. return graphql.Null
  93347. }
  93348. res := resTmp.(*MoneyBag)
  93349. fc.Result = res
  93350. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  93351. }
  93352. func (ec *executionContext) fieldContext_Order_netPaymentSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  93353. fc = &graphql.FieldContext{
  93354. Object: "Order",
  93355. Field: field,
  93356. IsMethod: false,
  93357. IsResolver: false,
  93358. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  93359. switch field.Name {
  93360. case "presentmentMoney":
  93361. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  93362. case "shopMoney":
  93363. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  93364. }
  93365. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  93366. },
  93367. }
  93368. return fc, nil
  93369. }
  93370. func (ec *executionContext) _Order_nonFulfillableLineItems(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  93371. fc, err := ec.fieldContext_Order_nonFulfillableLineItems(ctx, field)
  93372. if err != nil {
  93373. return graphql.Null
  93374. }
  93375. ctx = graphql.WithFieldContext(ctx, fc)
  93376. defer func() {
  93377. if r := recover(); r != nil {
  93378. ec.Error(ctx, ec.Recover(ctx, r))
  93379. ret = graphql.Null
  93380. }
  93381. }()
  93382. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  93383. ctx = rctx // use context from middleware stack in children
  93384. return obj.NonFulfillableLineItems, nil
  93385. })
  93386. if err != nil {
  93387. ec.Error(ctx, err)
  93388. return graphql.Null
  93389. }
  93390. if resTmp == nil {
  93391. if !graphql.HasFieldError(ctx, fc) {
  93392. ec.Errorf(ctx, "must not be null")
  93393. }
  93394. return graphql.Null
  93395. }
  93396. res := resTmp.(*LineItemConnection)
  93397. fc.Result = res
  93398. return ec.marshalNLineItemConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLineItemConnection(ctx, field.Selections, res)
  93399. }
  93400. func (ec *executionContext) fieldContext_Order_nonFulfillableLineItems(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  93401. fc = &graphql.FieldContext{
  93402. Object: "Order",
  93403. Field: field,
  93404. IsMethod: false,
  93405. IsResolver: false,
  93406. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  93407. switch field.Name {
  93408. case "edges":
  93409. return ec.fieldContext_LineItemConnection_edges(ctx, field)
  93410. case "nodes":
  93411. return ec.fieldContext_LineItemConnection_nodes(ctx, field)
  93412. case "pageInfo":
  93413. return ec.fieldContext_LineItemConnection_pageInfo(ctx, field)
  93414. }
  93415. return nil, fmt.Errorf("no field named %q was found under type LineItemConnection", field.Name)
  93416. },
  93417. }
  93418. defer func() {
  93419. if r := recover(); r != nil {
  93420. err = ec.Recover(ctx, r)
  93421. ec.Error(ctx, err)
  93422. }
  93423. }()
  93424. ctx = graphql.WithFieldContext(ctx, fc)
  93425. if fc.Args, err = ec.field_Order_nonFulfillableLineItems_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  93426. ec.Error(ctx, err)
  93427. return
  93428. }
  93429. return fc, nil
  93430. }
  93431. func (ec *executionContext) _Order_note(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  93432. fc, err := ec.fieldContext_Order_note(ctx, field)
  93433. if err != nil {
  93434. return graphql.Null
  93435. }
  93436. ctx = graphql.WithFieldContext(ctx, fc)
  93437. defer func() {
  93438. if r := recover(); r != nil {
  93439. ec.Error(ctx, ec.Recover(ctx, r))
  93440. ret = graphql.Null
  93441. }
  93442. }()
  93443. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  93444. ctx = rctx // use context from middleware stack in children
  93445. return obj.Note, nil
  93446. })
  93447. if err != nil {
  93448. ec.Error(ctx, err)
  93449. return graphql.Null
  93450. }
  93451. if resTmp == nil {
  93452. return graphql.Null
  93453. }
  93454. res := resTmp.(*string)
  93455. fc.Result = res
  93456. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  93457. }
  93458. func (ec *executionContext) fieldContext_Order_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  93459. fc = &graphql.FieldContext{
  93460. Object: "Order",
  93461. Field: field,
  93462. IsMethod: false,
  93463. IsResolver: false,
  93464. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  93465. return nil, errors.New("field of type String does not have child fields")
  93466. },
  93467. }
  93468. return fc, nil
  93469. }
  93470. func (ec *executionContext) _Order_originalTotalDutiesSet(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  93471. fc, err := ec.fieldContext_Order_originalTotalDutiesSet(ctx, field)
  93472. if err != nil {
  93473. return graphql.Null
  93474. }
  93475. ctx = graphql.WithFieldContext(ctx, fc)
  93476. defer func() {
  93477. if r := recover(); r != nil {
  93478. ec.Error(ctx, ec.Recover(ctx, r))
  93479. ret = graphql.Null
  93480. }
  93481. }()
  93482. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  93483. ctx = rctx // use context from middleware stack in children
  93484. return obj.OriginalTotalDutiesSet, nil
  93485. })
  93486. if err != nil {
  93487. ec.Error(ctx, err)
  93488. return graphql.Null
  93489. }
  93490. if resTmp == nil {
  93491. return graphql.Null
  93492. }
  93493. res := resTmp.(*MoneyBag)
  93494. fc.Result = res
  93495. return ec.marshalOMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  93496. }
  93497. func (ec *executionContext) fieldContext_Order_originalTotalDutiesSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  93498. fc = &graphql.FieldContext{
  93499. Object: "Order",
  93500. Field: field,
  93501. IsMethod: false,
  93502. IsResolver: false,
  93503. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  93504. switch field.Name {
  93505. case "presentmentMoney":
  93506. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  93507. case "shopMoney":
  93508. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  93509. }
  93510. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  93511. },
  93512. }
  93513. return fc, nil
  93514. }
  93515. func (ec *executionContext) _Order_originalTotalPriceSet(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  93516. fc, err := ec.fieldContext_Order_originalTotalPriceSet(ctx, field)
  93517. if err != nil {
  93518. return graphql.Null
  93519. }
  93520. ctx = graphql.WithFieldContext(ctx, fc)
  93521. defer func() {
  93522. if r := recover(); r != nil {
  93523. ec.Error(ctx, ec.Recover(ctx, r))
  93524. ret = graphql.Null
  93525. }
  93526. }()
  93527. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  93528. ctx = rctx // use context from middleware stack in children
  93529. return obj.OriginalTotalPriceSet, nil
  93530. })
  93531. if err != nil {
  93532. ec.Error(ctx, err)
  93533. return graphql.Null
  93534. }
  93535. if resTmp == nil {
  93536. if !graphql.HasFieldError(ctx, fc) {
  93537. ec.Errorf(ctx, "must not be null")
  93538. }
  93539. return graphql.Null
  93540. }
  93541. res := resTmp.(*MoneyBag)
  93542. fc.Result = res
  93543. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  93544. }
  93545. func (ec *executionContext) fieldContext_Order_originalTotalPriceSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  93546. fc = &graphql.FieldContext{
  93547. Object: "Order",
  93548. Field: field,
  93549. IsMethod: false,
  93550. IsResolver: false,
  93551. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  93552. switch field.Name {
  93553. case "presentmentMoney":
  93554. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  93555. case "shopMoney":
  93556. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  93557. }
  93558. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  93559. },
  93560. }
  93561. return fc, nil
  93562. }
  93563. func (ec *executionContext) _Order_paymentCollectionDetails(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  93564. fc, err := ec.fieldContext_Order_paymentCollectionDetails(ctx, field)
  93565. if err != nil {
  93566. return graphql.Null
  93567. }
  93568. ctx = graphql.WithFieldContext(ctx, fc)
  93569. defer func() {
  93570. if r := recover(); r != nil {
  93571. ec.Error(ctx, ec.Recover(ctx, r))
  93572. ret = graphql.Null
  93573. }
  93574. }()
  93575. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  93576. ctx = rctx // use context from middleware stack in children
  93577. return obj.PaymentCollectionDetails, nil
  93578. })
  93579. if err != nil {
  93580. ec.Error(ctx, err)
  93581. return graphql.Null
  93582. }
  93583. if resTmp == nil {
  93584. if !graphql.HasFieldError(ctx, fc) {
  93585. ec.Errorf(ctx, "must not be null")
  93586. }
  93587. return graphql.Null
  93588. }
  93589. res := resTmp.(*OrderPaymentCollectionDetails)
  93590. fc.Result = res
  93591. return ec.marshalNOrderPaymentCollectionDetails2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderPaymentCollectionDetails(ctx, field.Selections, res)
  93592. }
  93593. func (ec *executionContext) fieldContext_Order_paymentCollectionDetails(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  93594. fc = &graphql.FieldContext{
  93595. Object: "Order",
  93596. Field: field,
  93597. IsMethod: false,
  93598. IsResolver: false,
  93599. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  93600. switch field.Name {
  93601. case "additionalPaymentCollectionUrl":
  93602. return ec.fieldContext_OrderPaymentCollectionDetails_additionalPaymentCollectionUrl(ctx, field)
  93603. case "vaultedPaymentMethods":
  93604. return ec.fieldContext_OrderPaymentCollectionDetails_vaultedPaymentMethods(ctx, field)
  93605. }
  93606. return nil, fmt.Errorf("no field named %q was found under type OrderPaymentCollectionDetails", field.Name)
  93607. },
  93608. }
  93609. return fc, nil
  93610. }
  93611. func (ec *executionContext) _Order_paymentGatewayNames(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  93612. fc, err := ec.fieldContext_Order_paymentGatewayNames(ctx, field)
  93613. if err != nil {
  93614. return graphql.Null
  93615. }
  93616. ctx = graphql.WithFieldContext(ctx, fc)
  93617. defer func() {
  93618. if r := recover(); r != nil {
  93619. ec.Error(ctx, ec.Recover(ctx, r))
  93620. ret = graphql.Null
  93621. }
  93622. }()
  93623. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  93624. ctx = rctx // use context from middleware stack in children
  93625. return obj.PaymentGatewayNames, nil
  93626. })
  93627. if err != nil {
  93628. ec.Error(ctx, err)
  93629. return graphql.Null
  93630. }
  93631. if resTmp == nil {
  93632. if !graphql.HasFieldError(ctx, fc) {
  93633. ec.Errorf(ctx, "must not be null")
  93634. }
  93635. return graphql.Null
  93636. }
  93637. res := resTmp.([]string)
  93638. fc.Result = res
  93639. return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
  93640. }
  93641. func (ec *executionContext) fieldContext_Order_paymentGatewayNames(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  93642. fc = &graphql.FieldContext{
  93643. Object: "Order",
  93644. Field: field,
  93645. IsMethod: false,
  93646. IsResolver: false,
  93647. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  93648. return nil, errors.New("field of type String does not have child fields")
  93649. },
  93650. }
  93651. return fc, nil
  93652. }
  93653. func (ec *executionContext) _Order_paymentTerms(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  93654. fc, err := ec.fieldContext_Order_paymentTerms(ctx, field)
  93655. if err != nil {
  93656. return graphql.Null
  93657. }
  93658. ctx = graphql.WithFieldContext(ctx, fc)
  93659. defer func() {
  93660. if r := recover(); r != nil {
  93661. ec.Error(ctx, ec.Recover(ctx, r))
  93662. ret = graphql.Null
  93663. }
  93664. }()
  93665. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  93666. ctx = rctx // use context from middleware stack in children
  93667. return obj.PaymentTerms, nil
  93668. })
  93669. if err != nil {
  93670. ec.Error(ctx, err)
  93671. return graphql.Null
  93672. }
  93673. if resTmp == nil {
  93674. return graphql.Null
  93675. }
  93676. res := resTmp.(*PaymentTerms)
  93677. fc.Result = res
  93678. return ec.marshalOPaymentTerms2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentTerms(ctx, field.Selections, res)
  93679. }
  93680. func (ec *executionContext) fieldContext_Order_paymentTerms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  93681. fc = &graphql.FieldContext{
  93682. Object: "Order",
  93683. Field: field,
  93684. IsMethod: false,
  93685. IsResolver: false,
  93686. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  93687. switch field.Name {
  93688. case "dueInDays":
  93689. return ec.fieldContext_PaymentTerms_dueInDays(ctx, field)
  93690. case "id":
  93691. return ec.fieldContext_PaymentTerms_id(ctx, field)
  93692. case "overdue":
  93693. return ec.fieldContext_PaymentTerms_overdue(ctx, field)
  93694. case "paymentSchedules":
  93695. return ec.fieldContext_PaymentTerms_paymentSchedules(ctx, field)
  93696. case "paymentTermsName":
  93697. return ec.fieldContext_PaymentTerms_paymentTermsName(ctx, field)
  93698. case "paymentTermsType":
  93699. return ec.fieldContext_PaymentTerms_paymentTermsType(ctx, field)
  93700. case "translatedName":
  93701. return ec.fieldContext_PaymentTerms_translatedName(ctx, field)
  93702. }
  93703. return nil, fmt.Errorf("no field named %q was found under type PaymentTerms", field.Name)
  93704. },
  93705. }
  93706. return fc, nil
  93707. }
  93708. func (ec *executionContext) _Order_phone(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  93709. fc, err := ec.fieldContext_Order_phone(ctx, field)
  93710. if err != nil {
  93711. return graphql.Null
  93712. }
  93713. ctx = graphql.WithFieldContext(ctx, fc)
  93714. defer func() {
  93715. if r := recover(); r != nil {
  93716. ec.Error(ctx, ec.Recover(ctx, r))
  93717. ret = graphql.Null
  93718. }
  93719. }()
  93720. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  93721. ctx = rctx // use context from middleware stack in children
  93722. return obj.Phone, nil
  93723. })
  93724. if err != nil {
  93725. ec.Error(ctx, err)
  93726. return graphql.Null
  93727. }
  93728. if resTmp == nil {
  93729. return graphql.Null
  93730. }
  93731. res := resTmp.(*string)
  93732. fc.Result = res
  93733. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  93734. }
  93735. func (ec *executionContext) fieldContext_Order_phone(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  93736. fc = &graphql.FieldContext{
  93737. Object: "Order",
  93738. Field: field,
  93739. IsMethod: false,
  93740. IsResolver: false,
  93741. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  93742. return nil, errors.New("field of type String does not have child fields")
  93743. },
  93744. }
  93745. return fc, nil
  93746. }
  93747. func (ec *executionContext) _Order_physicalLocation(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  93748. fc, err := ec.fieldContext_Order_physicalLocation(ctx, field)
  93749. if err != nil {
  93750. return graphql.Null
  93751. }
  93752. ctx = graphql.WithFieldContext(ctx, fc)
  93753. defer func() {
  93754. if r := recover(); r != nil {
  93755. ec.Error(ctx, ec.Recover(ctx, r))
  93756. ret = graphql.Null
  93757. }
  93758. }()
  93759. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  93760. ctx = rctx // use context from middleware stack in children
  93761. return obj.PhysicalLocation, nil
  93762. })
  93763. if err != nil {
  93764. ec.Error(ctx, err)
  93765. return graphql.Null
  93766. }
  93767. if resTmp == nil {
  93768. return graphql.Null
  93769. }
  93770. res := resTmp.(*Location)
  93771. fc.Result = res
  93772. return ec.marshalOLocation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocation(ctx, field.Selections, res)
  93773. }
  93774. func (ec *executionContext) fieldContext_Order_physicalLocation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  93775. fc = &graphql.FieldContext{
  93776. Object: "Order",
  93777. Field: field,
  93778. IsMethod: false,
  93779. IsResolver: false,
  93780. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  93781. switch field.Name {
  93782. case "activatable":
  93783. return ec.fieldContext_Location_activatable(ctx, field)
  93784. case "address":
  93785. return ec.fieldContext_Location_address(ctx, field)
  93786. case "addressVerified":
  93787. return ec.fieldContext_Location_addressVerified(ctx, field)
  93788. case "deactivatable":
  93789. return ec.fieldContext_Location_deactivatable(ctx, field)
  93790. case "deactivatedAt":
  93791. return ec.fieldContext_Location_deactivatedAt(ctx, field)
  93792. case "deletable":
  93793. return ec.fieldContext_Location_deletable(ctx, field)
  93794. case "fulfillmentService":
  93795. return ec.fieldContext_Location_fulfillmentService(ctx, field)
  93796. case "fulfillsOnlineOrders":
  93797. return ec.fieldContext_Location_fulfillsOnlineOrders(ctx, field)
  93798. case "hasActiveInventory":
  93799. return ec.fieldContext_Location_hasActiveInventory(ctx, field)
  93800. case "hasUnfulfilledOrders":
  93801. return ec.fieldContext_Location_hasUnfulfilledOrders(ctx, field)
  93802. case "id":
  93803. return ec.fieldContext_Location_id(ctx, field)
  93804. case "inventoryLevel":
  93805. return ec.fieldContext_Location_inventoryLevel(ctx, field)
  93806. case "inventoryLevels":
  93807. return ec.fieldContext_Location_inventoryLevels(ctx, field)
  93808. case "isActive":
  93809. return ec.fieldContext_Location_isActive(ctx, field)
  93810. case "legacyResourceId":
  93811. return ec.fieldContext_Location_legacyResourceId(ctx, field)
  93812. case "metafield":
  93813. return ec.fieldContext_Location_metafield(ctx, field)
  93814. case "metafieldDefinitions":
  93815. return ec.fieldContext_Location_metafieldDefinitions(ctx, field)
  93816. case "metafields":
  93817. return ec.fieldContext_Location_metafields(ctx, field)
  93818. case "name":
  93819. return ec.fieldContext_Location_name(ctx, field)
  93820. case "privateMetafield":
  93821. return ec.fieldContext_Location_privateMetafield(ctx, field)
  93822. case "privateMetafields":
  93823. return ec.fieldContext_Location_privateMetafields(ctx, field)
  93824. case "shipsInventory":
  93825. return ec.fieldContext_Location_shipsInventory(ctx, field)
  93826. case "suggestedAddresses":
  93827. return ec.fieldContext_Location_suggestedAddresses(ctx, field)
  93828. }
  93829. return nil, fmt.Errorf("no field named %q was found under type Location", field.Name)
  93830. },
  93831. }
  93832. return fc, nil
  93833. }
  93834. func (ec *executionContext) _Order_presentmentCurrencyCode(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  93835. fc, err := ec.fieldContext_Order_presentmentCurrencyCode(ctx, field)
  93836. if err != nil {
  93837. return graphql.Null
  93838. }
  93839. ctx = graphql.WithFieldContext(ctx, fc)
  93840. defer func() {
  93841. if r := recover(); r != nil {
  93842. ec.Error(ctx, ec.Recover(ctx, r))
  93843. ret = graphql.Null
  93844. }
  93845. }()
  93846. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  93847. ctx = rctx // use context from middleware stack in children
  93848. return obj.PresentmentCurrencyCode, nil
  93849. })
  93850. if err != nil {
  93851. ec.Error(ctx, err)
  93852. return graphql.Null
  93853. }
  93854. if resTmp == nil {
  93855. if !graphql.HasFieldError(ctx, fc) {
  93856. ec.Errorf(ctx, "must not be null")
  93857. }
  93858. return graphql.Null
  93859. }
  93860. res := resTmp.(CurrencyCode)
  93861. fc.Result = res
  93862. return ec.marshalNCurrencyCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencyCode(ctx, field.Selections, res)
  93863. }
  93864. func (ec *executionContext) fieldContext_Order_presentmentCurrencyCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  93865. fc = &graphql.FieldContext{
  93866. Object: "Order",
  93867. Field: field,
  93868. IsMethod: false,
  93869. IsResolver: false,
  93870. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  93871. return nil, errors.New("field of type CurrencyCode does not have child fields")
  93872. },
  93873. }
  93874. return fc, nil
  93875. }
  93876. func (ec *executionContext) _Order_privateMetafield(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  93877. fc, err := ec.fieldContext_Order_privateMetafield(ctx, field)
  93878. if err != nil {
  93879. return graphql.Null
  93880. }
  93881. ctx = graphql.WithFieldContext(ctx, fc)
  93882. defer func() {
  93883. if r := recover(); r != nil {
  93884. ec.Error(ctx, ec.Recover(ctx, r))
  93885. ret = graphql.Null
  93886. }
  93887. }()
  93888. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  93889. ctx = rctx // use context from middleware stack in children
  93890. return obj.PrivateMetafield, nil
  93891. })
  93892. if err != nil {
  93893. ec.Error(ctx, err)
  93894. return graphql.Null
  93895. }
  93896. if resTmp == nil {
  93897. return graphql.Null
  93898. }
  93899. res := resTmp.(*PrivateMetafield)
  93900. fc.Result = res
  93901. return ec.marshalOPrivateMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafield(ctx, field.Selections, res)
  93902. }
  93903. func (ec *executionContext) fieldContext_Order_privateMetafield(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  93904. fc = &graphql.FieldContext{
  93905. Object: "Order",
  93906. Field: field,
  93907. IsMethod: false,
  93908. IsResolver: false,
  93909. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  93910. switch field.Name {
  93911. case "createdAt":
  93912. return ec.fieldContext_PrivateMetafield_createdAt(ctx, field)
  93913. case "id":
  93914. return ec.fieldContext_PrivateMetafield_id(ctx, field)
  93915. case "key":
  93916. return ec.fieldContext_PrivateMetafield_key(ctx, field)
  93917. case "namespace":
  93918. return ec.fieldContext_PrivateMetafield_namespace(ctx, field)
  93919. case "updatedAt":
  93920. return ec.fieldContext_PrivateMetafield_updatedAt(ctx, field)
  93921. case "value":
  93922. return ec.fieldContext_PrivateMetafield_value(ctx, field)
  93923. case "valueType":
  93924. return ec.fieldContext_PrivateMetafield_valueType(ctx, field)
  93925. }
  93926. return nil, fmt.Errorf("no field named %q was found under type PrivateMetafield", field.Name)
  93927. },
  93928. }
  93929. defer func() {
  93930. if r := recover(); r != nil {
  93931. err = ec.Recover(ctx, r)
  93932. ec.Error(ctx, err)
  93933. }
  93934. }()
  93935. ctx = graphql.WithFieldContext(ctx, fc)
  93936. if fc.Args, err = ec.field_Order_privateMetafield_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  93937. ec.Error(ctx, err)
  93938. return
  93939. }
  93940. return fc, nil
  93941. }
  93942. func (ec *executionContext) _Order_privateMetafields(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  93943. fc, err := ec.fieldContext_Order_privateMetafields(ctx, field)
  93944. if err != nil {
  93945. return graphql.Null
  93946. }
  93947. ctx = graphql.WithFieldContext(ctx, fc)
  93948. defer func() {
  93949. if r := recover(); r != nil {
  93950. ec.Error(ctx, ec.Recover(ctx, r))
  93951. ret = graphql.Null
  93952. }
  93953. }()
  93954. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  93955. ctx = rctx // use context from middleware stack in children
  93956. return obj.PrivateMetafields, nil
  93957. })
  93958. if err != nil {
  93959. ec.Error(ctx, err)
  93960. return graphql.Null
  93961. }
  93962. if resTmp == nil {
  93963. if !graphql.HasFieldError(ctx, fc) {
  93964. ec.Errorf(ctx, "must not be null")
  93965. }
  93966. return graphql.Null
  93967. }
  93968. res := resTmp.(*PrivateMetafieldConnection)
  93969. fc.Result = res
  93970. return ec.marshalNPrivateMetafieldConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafieldConnection(ctx, field.Selections, res)
  93971. }
  93972. func (ec *executionContext) fieldContext_Order_privateMetafields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  93973. fc = &graphql.FieldContext{
  93974. Object: "Order",
  93975. Field: field,
  93976. IsMethod: false,
  93977. IsResolver: false,
  93978. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  93979. switch field.Name {
  93980. case "edges":
  93981. return ec.fieldContext_PrivateMetafieldConnection_edges(ctx, field)
  93982. case "nodes":
  93983. return ec.fieldContext_PrivateMetafieldConnection_nodes(ctx, field)
  93984. case "pageInfo":
  93985. return ec.fieldContext_PrivateMetafieldConnection_pageInfo(ctx, field)
  93986. }
  93987. return nil, fmt.Errorf("no field named %q was found under type PrivateMetafieldConnection", field.Name)
  93988. },
  93989. }
  93990. defer func() {
  93991. if r := recover(); r != nil {
  93992. err = ec.Recover(ctx, r)
  93993. ec.Error(ctx, err)
  93994. }
  93995. }()
  93996. ctx = graphql.WithFieldContext(ctx, fc)
  93997. if fc.Args, err = ec.field_Order_privateMetafields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  93998. ec.Error(ctx, err)
  93999. return
  94000. }
  94001. return fc, nil
  94002. }
  94003. func (ec *executionContext) _Order_processedAt(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  94004. fc, err := ec.fieldContext_Order_processedAt(ctx, field)
  94005. if err != nil {
  94006. return graphql.Null
  94007. }
  94008. ctx = graphql.WithFieldContext(ctx, fc)
  94009. defer func() {
  94010. if r := recover(); r != nil {
  94011. ec.Error(ctx, ec.Recover(ctx, r))
  94012. ret = graphql.Null
  94013. }
  94014. }()
  94015. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  94016. ctx = rctx // use context from middleware stack in children
  94017. return obj.ProcessedAt, nil
  94018. })
  94019. if err != nil {
  94020. ec.Error(ctx, err)
  94021. return graphql.Null
  94022. }
  94023. if resTmp == nil {
  94024. if !graphql.HasFieldError(ctx, fc) {
  94025. ec.Errorf(ctx, "must not be null")
  94026. }
  94027. return graphql.Null
  94028. }
  94029. res := resTmp.(string)
  94030. fc.Result = res
  94031. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  94032. }
  94033. func (ec *executionContext) fieldContext_Order_processedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  94034. fc = &graphql.FieldContext{
  94035. Object: "Order",
  94036. Field: field,
  94037. IsMethod: false,
  94038. IsResolver: false,
  94039. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  94040. return nil, errors.New("field of type DateTime does not have child fields")
  94041. },
  94042. }
  94043. return fc, nil
  94044. }
  94045. func (ec *executionContext) _Order_publication(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  94046. fc, err := ec.fieldContext_Order_publication(ctx, field)
  94047. if err != nil {
  94048. return graphql.Null
  94049. }
  94050. ctx = graphql.WithFieldContext(ctx, fc)
  94051. defer func() {
  94052. if r := recover(); r != nil {
  94053. ec.Error(ctx, ec.Recover(ctx, r))
  94054. ret = graphql.Null
  94055. }
  94056. }()
  94057. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  94058. ctx = rctx // use context from middleware stack in children
  94059. return obj.Publication, nil
  94060. })
  94061. if err != nil {
  94062. ec.Error(ctx, err)
  94063. return graphql.Null
  94064. }
  94065. if resTmp == nil {
  94066. return graphql.Null
  94067. }
  94068. res := resTmp.(*Publication)
  94069. fc.Result = res
  94070. return ec.marshalOPublication2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublication(ctx, field.Selections, res)
  94071. }
  94072. func (ec *executionContext) fieldContext_Order_publication(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  94073. fc = &graphql.FieldContext{
  94074. Object: "Order",
  94075. Field: field,
  94076. IsMethod: false,
  94077. IsResolver: false,
  94078. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  94079. switch field.Name {
  94080. case "app":
  94081. return ec.fieldContext_Publication_app(ctx, field)
  94082. case "collectionPublicationsV3":
  94083. return ec.fieldContext_Publication_collectionPublicationsV3(ctx, field)
  94084. case "collections":
  94085. return ec.fieldContext_Publication_collections(ctx, field)
  94086. case "hasCollection":
  94087. return ec.fieldContext_Publication_hasCollection(ctx, field)
  94088. case "id":
  94089. return ec.fieldContext_Publication_id(ctx, field)
  94090. case "name":
  94091. return ec.fieldContext_Publication_name(ctx, field)
  94092. case "productPublicationsV3":
  94093. return ec.fieldContext_Publication_productPublicationsV3(ctx, field)
  94094. case "products":
  94095. return ec.fieldContext_Publication_products(ctx, field)
  94096. case "supportsFuturePublishing":
  94097. return ec.fieldContext_Publication_supportsFuturePublishing(ctx, field)
  94098. }
  94099. return nil, fmt.Errorf("no field named %q was found under type Publication", field.Name)
  94100. },
  94101. }
  94102. return fc, nil
  94103. }
  94104. func (ec *executionContext) _Order_purchasingEntity(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  94105. fc, err := ec.fieldContext_Order_purchasingEntity(ctx, field)
  94106. if err != nil {
  94107. return graphql.Null
  94108. }
  94109. ctx = graphql.WithFieldContext(ctx, fc)
  94110. defer func() {
  94111. if r := recover(); r != nil {
  94112. ec.Error(ctx, ec.Recover(ctx, r))
  94113. ret = graphql.Null
  94114. }
  94115. }()
  94116. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  94117. ctx = rctx // use context from middleware stack in children
  94118. return obj.PurchasingEntity, nil
  94119. })
  94120. if err != nil {
  94121. ec.Error(ctx, err)
  94122. return graphql.Null
  94123. }
  94124. if resTmp == nil {
  94125. return graphql.Null
  94126. }
  94127. res := resTmp.(PurchasingEntity)
  94128. fc.Result = res
  94129. return ec.marshalOPurchasingEntity2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPurchasingEntity(ctx, field.Selections, res)
  94130. }
  94131. func (ec *executionContext) fieldContext_Order_purchasingEntity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  94132. fc = &graphql.FieldContext{
  94133. Object: "Order",
  94134. Field: field,
  94135. IsMethod: false,
  94136. IsResolver: false,
  94137. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  94138. return nil, errors.New("field of type PurchasingEntity does not have child fields")
  94139. },
  94140. }
  94141. return fc, nil
  94142. }
  94143. func (ec *executionContext) _Order_refundDiscrepancySet(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  94144. fc, err := ec.fieldContext_Order_refundDiscrepancySet(ctx, field)
  94145. if err != nil {
  94146. return graphql.Null
  94147. }
  94148. ctx = graphql.WithFieldContext(ctx, fc)
  94149. defer func() {
  94150. if r := recover(); r != nil {
  94151. ec.Error(ctx, ec.Recover(ctx, r))
  94152. ret = graphql.Null
  94153. }
  94154. }()
  94155. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  94156. ctx = rctx // use context from middleware stack in children
  94157. return obj.RefundDiscrepancySet, nil
  94158. })
  94159. if err != nil {
  94160. ec.Error(ctx, err)
  94161. return graphql.Null
  94162. }
  94163. if resTmp == nil {
  94164. if !graphql.HasFieldError(ctx, fc) {
  94165. ec.Errorf(ctx, "must not be null")
  94166. }
  94167. return graphql.Null
  94168. }
  94169. res := resTmp.(*MoneyBag)
  94170. fc.Result = res
  94171. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  94172. }
  94173. func (ec *executionContext) fieldContext_Order_refundDiscrepancySet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  94174. fc = &graphql.FieldContext{
  94175. Object: "Order",
  94176. Field: field,
  94177. IsMethod: false,
  94178. IsResolver: false,
  94179. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  94180. switch field.Name {
  94181. case "presentmentMoney":
  94182. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  94183. case "shopMoney":
  94184. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  94185. }
  94186. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  94187. },
  94188. }
  94189. return fc, nil
  94190. }
  94191. func (ec *executionContext) _Order_refundable(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  94192. fc, err := ec.fieldContext_Order_refundable(ctx, field)
  94193. if err != nil {
  94194. return graphql.Null
  94195. }
  94196. ctx = graphql.WithFieldContext(ctx, fc)
  94197. defer func() {
  94198. if r := recover(); r != nil {
  94199. ec.Error(ctx, ec.Recover(ctx, r))
  94200. ret = graphql.Null
  94201. }
  94202. }()
  94203. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  94204. ctx = rctx // use context from middleware stack in children
  94205. return obj.Refundable, nil
  94206. })
  94207. if err != nil {
  94208. ec.Error(ctx, err)
  94209. return graphql.Null
  94210. }
  94211. if resTmp == nil {
  94212. if !graphql.HasFieldError(ctx, fc) {
  94213. ec.Errorf(ctx, "must not be null")
  94214. }
  94215. return graphql.Null
  94216. }
  94217. res := resTmp.(bool)
  94218. fc.Result = res
  94219. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  94220. }
  94221. func (ec *executionContext) fieldContext_Order_refundable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  94222. fc = &graphql.FieldContext{
  94223. Object: "Order",
  94224. Field: field,
  94225. IsMethod: false,
  94226. IsResolver: false,
  94227. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  94228. return nil, errors.New("field of type Boolean does not have child fields")
  94229. },
  94230. }
  94231. return fc, nil
  94232. }
  94233. func (ec *executionContext) _Order_refunds(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  94234. fc, err := ec.fieldContext_Order_refunds(ctx, field)
  94235. if err != nil {
  94236. return graphql.Null
  94237. }
  94238. ctx = graphql.WithFieldContext(ctx, fc)
  94239. defer func() {
  94240. if r := recover(); r != nil {
  94241. ec.Error(ctx, ec.Recover(ctx, r))
  94242. ret = graphql.Null
  94243. }
  94244. }()
  94245. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  94246. ctx = rctx // use context from middleware stack in children
  94247. return obj.Refunds, nil
  94248. })
  94249. if err != nil {
  94250. ec.Error(ctx, err)
  94251. return graphql.Null
  94252. }
  94253. if resTmp == nil {
  94254. if !graphql.HasFieldError(ctx, fc) {
  94255. ec.Errorf(ctx, "must not be null")
  94256. }
  94257. return graphql.Null
  94258. }
  94259. res := resTmp.([]*Refund)
  94260. fc.Result = res
  94261. return ec.marshalNRefund2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundᚄ(ctx, field.Selections, res)
  94262. }
  94263. func (ec *executionContext) fieldContext_Order_refunds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  94264. fc = &graphql.FieldContext{
  94265. Object: "Order",
  94266. Field: field,
  94267. IsMethod: false,
  94268. IsResolver: false,
  94269. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  94270. switch field.Name {
  94271. case "createdAt":
  94272. return ec.fieldContext_Refund_createdAt(ctx, field)
  94273. case "duties":
  94274. return ec.fieldContext_Refund_duties(ctx, field)
  94275. case "id":
  94276. return ec.fieldContext_Refund_id(ctx, field)
  94277. case "legacyResourceId":
  94278. return ec.fieldContext_Refund_legacyResourceId(ctx, field)
  94279. case "note":
  94280. return ec.fieldContext_Refund_note(ctx, field)
  94281. case "order":
  94282. return ec.fieldContext_Refund_order(ctx, field)
  94283. case "refundLineItems":
  94284. return ec.fieldContext_Refund_refundLineItems(ctx, field)
  94285. case "staffMember":
  94286. return ec.fieldContext_Refund_staffMember(ctx, field)
  94287. case "totalRefundedSet":
  94288. return ec.fieldContext_Refund_totalRefundedSet(ctx, field)
  94289. case "transactions":
  94290. return ec.fieldContext_Refund_transactions(ctx, field)
  94291. case "updatedAt":
  94292. return ec.fieldContext_Refund_updatedAt(ctx, field)
  94293. }
  94294. return nil, fmt.Errorf("no field named %q was found under type Refund", field.Name)
  94295. },
  94296. }
  94297. defer func() {
  94298. if r := recover(); r != nil {
  94299. err = ec.Recover(ctx, r)
  94300. ec.Error(ctx, err)
  94301. }
  94302. }()
  94303. ctx = graphql.WithFieldContext(ctx, fc)
  94304. if fc.Args, err = ec.field_Order_refunds_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  94305. ec.Error(ctx, err)
  94306. return
  94307. }
  94308. return fc, nil
  94309. }
  94310. func (ec *executionContext) _Order_registeredSourceUrl(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  94311. fc, err := ec.fieldContext_Order_registeredSourceUrl(ctx, field)
  94312. if err != nil {
  94313. return graphql.Null
  94314. }
  94315. ctx = graphql.WithFieldContext(ctx, fc)
  94316. defer func() {
  94317. if r := recover(); r != nil {
  94318. ec.Error(ctx, ec.Recover(ctx, r))
  94319. ret = graphql.Null
  94320. }
  94321. }()
  94322. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  94323. ctx = rctx // use context from middleware stack in children
  94324. return obj.RegisteredSourceURL, nil
  94325. })
  94326. if err != nil {
  94327. ec.Error(ctx, err)
  94328. return graphql.Null
  94329. }
  94330. if resTmp == nil {
  94331. return graphql.Null
  94332. }
  94333. res := resTmp.(*string)
  94334. fc.Result = res
  94335. return ec.marshalOURL2ᚖstring(ctx, field.Selections, res)
  94336. }
  94337. func (ec *executionContext) fieldContext_Order_registeredSourceUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  94338. fc = &graphql.FieldContext{
  94339. Object: "Order",
  94340. Field: field,
  94341. IsMethod: false,
  94342. IsResolver: false,
  94343. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  94344. return nil, errors.New("field of type URL does not have child fields")
  94345. },
  94346. }
  94347. return fc, nil
  94348. }
  94349. func (ec *executionContext) _Order_requiresShipping(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  94350. fc, err := ec.fieldContext_Order_requiresShipping(ctx, field)
  94351. if err != nil {
  94352. return graphql.Null
  94353. }
  94354. ctx = graphql.WithFieldContext(ctx, fc)
  94355. defer func() {
  94356. if r := recover(); r != nil {
  94357. ec.Error(ctx, ec.Recover(ctx, r))
  94358. ret = graphql.Null
  94359. }
  94360. }()
  94361. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  94362. ctx = rctx // use context from middleware stack in children
  94363. return obj.RequiresShipping, nil
  94364. })
  94365. if err != nil {
  94366. ec.Error(ctx, err)
  94367. return graphql.Null
  94368. }
  94369. if resTmp == nil {
  94370. if !graphql.HasFieldError(ctx, fc) {
  94371. ec.Errorf(ctx, "must not be null")
  94372. }
  94373. return graphql.Null
  94374. }
  94375. res := resTmp.(bool)
  94376. fc.Result = res
  94377. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  94378. }
  94379. func (ec *executionContext) fieldContext_Order_requiresShipping(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  94380. fc = &graphql.FieldContext{
  94381. Object: "Order",
  94382. Field: field,
  94383. IsMethod: false,
  94384. IsResolver: false,
  94385. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  94386. return nil, errors.New("field of type Boolean does not have child fields")
  94387. },
  94388. }
  94389. return fc, nil
  94390. }
  94391. func (ec *executionContext) _Order_restockable(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  94392. fc, err := ec.fieldContext_Order_restockable(ctx, field)
  94393. if err != nil {
  94394. return graphql.Null
  94395. }
  94396. ctx = graphql.WithFieldContext(ctx, fc)
  94397. defer func() {
  94398. if r := recover(); r != nil {
  94399. ec.Error(ctx, ec.Recover(ctx, r))
  94400. ret = graphql.Null
  94401. }
  94402. }()
  94403. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  94404. ctx = rctx // use context from middleware stack in children
  94405. return obj.Restockable, nil
  94406. })
  94407. if err != nil {
  94408. ec.Error(ctx, err)
  94409. return graphql.Null
  94410. }
  94411. if resTmp == nil {
  94412. if !graphql.HasFieldError(ctx, fc) {
  94413. ec.Errorf(ctx, "must not be null")
  94414. }
  94415. return graphql.Null
  94416. }
  94417. res := resTmp.(bool)
  94418. fc.Result = res
  94419. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  94420. }
  94421. func (ec *executionContext) fieldContext_Order_restockable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  94422. fc = &graphql.FieldContext{
  94423. Object: "Order",
  94424. Field: field,
  94425. IsMethod: false,
  94426. IsResolver: false,
  94427. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  94428. return nil, errors.New("field of type Boolean does not have child fields")
  94429. },
  94430. }
  94431. return fc, nil
  94432. }
  94433. func (ec *executionContext) _Order_riskLevel(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  94434. fc, err := ec.fieldContext_Order_riskLevel(ctx, field)
  94435. if err != nil {
  94436. return graphql.Null
  94437. }
  94438. ctx = graphql.WithFieldContext(ctx, fc)
  94439. defer func() {
  94440. if r := recover(); r != nil {
  94441. ec.Error(ctx, ec.Recover(ctx, r))
  94442. ret = graphql.Null
  94443. }
  94444. }()
  94445. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  94446. ctx = rctx // use context from middleware stack in children
  94447. return obj.RiskLevel, nil
  94448. })
  94449. if err != nil {
  94450. ec.Error(ctx, err)
  94451. return graphql.Null
  94452. }
  94453. if resTmp == nil {
  94454. if !graphql.HasFieldError(ctx, fc) {
  94455. ec.Errorf(ctx, "must not be null")
  94456. }
  94457. return graphql.Null
  94458. }
  94459. res := resTmp.(OrderRiskLevel)
  94460. fc.Result = res
  94461. return ec.marshalNOrderRiskLevel2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderRiskLevel(ctx, field.Selections, res)
  94462. }
  94463. func (ec *executionContext) fieldContext_Order_riskLevel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  94464. fc = &graphql.FieldContext{
  94465. Object: "Order",
  94466. Field: field,
  94467. IsMethod: false,
  94468. IsResolver: false,
  94469. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  94470. return nil, errors.New("field of type OrderRiskLevel does not have child fields")
  94471. },
  94472. }
  94473. return fc, nil
  94474. }
  94475. func (ec *executionContext) _Order_risks(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  94476. fc, err := ec.fieldContext_Order_risks(ctx, field)
  94477. if err != nil {
  94478. return graphql.Null
  94479. }
  94480. ctx = graphql.WithFieldContext(ctx, fc)
  94481. defer func() {
  94482. if r := recover(); r != nil {
  94483. ec.Error(ctx, ec.Recover(ctx, r))
  94484. ret = graphql.Null
  94485. }
  94486. }()
  94487. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  94488. ctx = rctx // use context from middleware stack in children
  94489. return obj.Risks, nil
  94490. })
  94491. if err != nil {
  94492. ec.Error(ctx, err)
  94493. return graphql.Null
  94494. }
  94495. if resTmp == nil {
  94496. if !graphql.HasFieldError(ctx, fc) {
  94497. ec.Errorf(ctx, "must not be null")
  94498. }
  94499. return graphql.Null
  94500. }
  94501. res := resTmp.([]*OrderRisk)
  94502. fc.Result = res
  94503. return ec.marshalNOrderRisk2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderRiskᚄ(ctx, field.Selections, res)
  94504. }
  94505. func (ec *executionContext) fieldContext_Order_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  94506. fc = &graphql.FieldContext{
  94507. Object: "Order",
  94508. Field: field,
  94509. IsMethod: false,
  94510. IsResolver: false,
  94511. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  94512. switch field.Name {
  94513. case "display":
  94514. return ec.fieldContext_OrderRisk_display(ctx, field)
  94515. case "level":
  94516. return ec.fieldContext_OrderRisk_level(ctx, field)
  94517. case "message":
  94518. return ec.fieldContext_OrderRisk_message(ctx, field)
  94519. }
  94520. return nil, fmt.Errorf("no field named %q was found under type OrderRisk", field.Name)
  94521. },
  94522. }
  94523. defer func() {
  94524. if r := recover(); r != nil {
  94525. err = ec.Recover(ctx, r)
  94526. ec.Error(ctx, err)
  94527. }
  94528. }()
  94529. ctx = graphql.WithFieldContext(ctx, fc)
  94530. if fc.Args, err = ec.field_Order_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  94531. ec.Error(ctx, err)
  94532. return
  94533. }
  94534. return fc, nil
  94535. }
  94536. func (ec *executionContext) _Order_shippingAddress(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  94537. fc, err := ec.fieldContext_Order_shippingAddress(ctx, field)
  94538. if err != nil {
  94539. return graphql.Null
  94540. }
  94541. ctx = graphql.WithFieldContext(ctx, fc)
  94542. defer func() {
  94543. if r := recover(); r != nil {
  94544. ec.Error(ctx, ec.Recover(ctx, r))
  94545. ret = graphql.Null
  94546. }
  94547. }()
  94548. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  94549. ctx = rctx // use context from middleware stack in children
  94550. return obj.ShippingAddress, nil
  94551. })
  94552. if err != nil {
  94553. ec.Error(ctx, err)
  94554. return graphql.Null
  94555. }
  94556. if resTmp == nil {
  94557. return graphql.Null
  94558. }
  94559. res := resTmp.(*MailingAddress)
  94560. fc.Result = res
  94561. return ec.marshalOMailingAddress2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMailingAddress(ctx, field.Selections, res)
  94562. }
  94563. func (ec *executionContext) fieldContext_Order_shippingAddress(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  94564. fc = &graphql.FieldContext{
  94565. Object: "Order",
  94566. Field: field,
  94567. IsMethod: false,
  94568. IsResolver: false,
  94569. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  94570. switch field.Name {
  94571. case "address1":
  94572. return ec.fieldContext_MailingAddress_address1(ctx, field)
  94573. case "address2":
  94574. return ec.fieldContext_MailingAddress_address2(ctx, field)
  94575. case "city":
  94576. return ec.fieldContext_MailingAddress_city(ctx, field)
  94577. case "company":
  94578. return ec.fieldContext_MailingAddress_company(ctx, field)
  94579. case "coordinatesValidated":
  94580. return ec.fieldContext_MailingAddress_coordinatesValidated(ctx, field)
  94581. case "country":
  94582. return ec.fieldContext_MailingAddress_country(ctx, field)
  94583. case "countryCodeV2":
  94584. return ec.fieldContext_MailingAddress_countryCodeV2(ctx, field)
  94585. case "firstName":
  94586. return ec.fieldContext_MailingAddress_firstName(ctx, field)
  94587. case "formattedArea":
  94588. return ec.fieldContext_MailingAddress_formattedArea(ctx, field)
  94589. case "id":
  94590. return ec.fieldContext_MailingAddress_id(ctx, field)
  94591. case "lastName":
  94592. return ec.fieldContext_MailingAddress_lastName(ctx, field)
  94593. case "latitude":
  94594. return ec.fieldContext_MailingAddress_latitude(ctx, field)
  94595. case "longitude":
  94596. return ec.fieldContext_MailingAddress_longitude(ctx, field)
  94597. case "name":
  94598. return ec.fieldContext_MailingAddress_name(ctx, field)
  94599. case "phone":
  94600. return ec.fieldContext_MailingAddress_phone(ctx, field)
  94601. case "province":
  94602. return ec.fieldContext_MailingAddress_province(ctx, field)
  94603. case "provinceCode":
  94604. return ec.fieldContext_MailingAddress_provinceCode(ctx, field)
  94605. case "zip":
  94606. return ec.fieldContext_MailingAddress_zip(ctx, field)
  94607. }
  94608. return nil, fmt.Errorf("no field named %q was found under type MailingAddress", field.Name)
  94609. },
  94610. }
  94611. return fc, nil
  94612. }
  94613. func (ec *executionContext) _Order_shippingLine(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  94614. fc, err := ec.fieldContext_Order_shippingLine(ctx, field)
  94615. if err != nil {
  94616. return graphql.Null
  94617. }
  94618. ctx = graphql.WithFieldContext(ctx, fc)
  94619. defer func() {
  94620. if r := recover(); r != nil {
  94621. ec.Error(ctx, ec.Recover(ctx, r))
  94622. ret = graphql.Null
  94623. }
  94624. }()
  94625. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  94626. ctx = rctx // use context from middleware stack in children
  94627. return obj.ShippingLine, nil
  94628. })
  94629. if err != nil {
  94630. ec.Error(ctx, err)
  94631. return graphql.Null
  94632. }
  94633. if resTmp == nil {
  94634. return graphql.Null
  94635. }
  94636. res := resTmp.(*ShippingLine)
  94637. fc.Result = res
  94638. return ec.marshalOShippingLine2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShippingLine(ctx, field.Selections, res)
  94639. }
  94640. func (ec *executionContext) fieldContext_Order_shippingLine(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  94641. fc = &graphql.FieldContext{
  94642. Object: "Order",
  94643. Field: field,
  94644. IsMethod: false,
  94645. IsResolver: false,
  94646. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  94647. switch field.Name {
  94648. case "carrierIdentifier":
  94649. return ec.fieldContext_ShippingLine_carrierIdentifier(ctx, field)
  94650. case "code":
  94651. return ec.fieldContext_ShippingLine_code(ctx, field)
  94652. case "custom":
  94653. return ec.fieldContext_ShippingLine_custom(ctx, field)
  94654. case "deliveryCategory":
  94655. return ec.fieldContext_ShippingLine_deliveryCategory(ctx, field)
  94656. case "discountAllocations":
  94657. return ec.fieldContext_ShippingLine_discountAllocations(ctx, field)
  94658. case "discountedPriceSet":
  94659. return ec.fieldContext_ShippingLine_discountedPriceSet(ctx, field)
  94660. case "id":
  94661. return ec.fieldContext_ShippingLine_id(ctx, field)
  94662. case "originalPriceSet":
  94663. return ec.fieldContext_ShippingLine_originalPriceSet(ctx, field)
  94664. case "phone":
  94665. return ec.fieldContext_ShippingLine_phone(ctx, field)
  94666. case "requestedFulfillmentService":
  94667. return ec.fieldContext_ShippingLine_requestedFulfillmentService(ctx, field)
  94668. case "shippingRateHandle":
  94669. return ec.fieldContext_ShippingLine_shippingRateHandle(ctx, field)
  94670. case "source":
  94671. return ec.fieldContext_ShippingLine_source(ctx, field)
  94672. case "taxLines":
  94673. return ec.fieldContext_ShippingLine_taxLines(ctx, field)
  94674. case "title":
  94675. return ec.fieldContext_ShippingLine_title(ctx, field)
  94676. }
  94677. return nil, fmt.Errorf("no field named %q was found under type ShippingLine", field.Name)
  94678. },
  94679. }
  94680. return fc, nil
  94681. }
  94682. func (ec *executionContext) _Order_shippingLines(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  94683. fc, err := ec.fieldContext_Order_shippingLines(ctx, field)
  94684. if err != nil {
  94685. return graphql.Null
  94686. }
  94687. ctx = graphql.WithFieldContext(ctx, fc)
  94688. defer func() {
  94689. if r := recover(); r != nil {
  94690. ec.Error(ctx, ec.Recover(ctx, r))
  94691. ret = graphql.Null
  94692. }
  94693. }()
  94694. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  94695. ctx = rctx // use context from middleware stack in children
  94696. return obj.ShippingLines, nil
  94697. })
  94698. if err != nil {
  94699. ec.Error(ctx, err)
  94700. return graphql.Null
  94701. }
  94702. if resTmp == nil {
  94703. if !graphql.HasFieldError(ctx, fc) {
  94704. ec.Errorf(ctx, "must not be null")
  94705. }
  94706. return graphql.Null
  94707. }
  94708. res := resTmp.(*ShippingLineConnection)
  94709. fc.Result = res
  94710. return ec.marshalNShippingLineConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShippingLineConnection(ctx, field.Selections, res)
  94711. }
  94712. func (ec *executionContext) fieldContext_Order_shippingLines(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  94713. fc = &graphql.FieldContext{
  94714. Object: "Order",
  94715. Field: field,
  94716. IsMethod: false,
  94717. IsResolver: false,
  94718. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  94719. switch field.Name {
  94720. case "edges":
  94721. return ec.fieldContext_ShippingLineConnection_edges(ctx, field)
  94722. case "nodes":
  94723. return ec.fieldContext_ShippingLineConnection_nodes(ctx, field)
  94724. case "pageInfo":
  94725. return ec.fieldContext_ShippingLineConnection_pageInfo(ctx, field)
  94726. }
  94727. return nil, fmt.Errorf("no field named %q was found under type ShippingLineConnection", field.Name)
  94728. },
  94729. }
  94730. defer func() {
  94731. if r := recover(); r != nil {
  94732. err = ec.Recover(ctx, r)
  94733. ec.Error(ctx, err)
  94734. }
  94735. }()
  94736. ctx = graphql.WithFieldContext(ctx, fc)
  94737. if fc.Args, err = ec.field_Order_shippingLines_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  94738. ec.Error(ctx, err)
  94739. return
  94740. }
  94741. return fc, nil
  94742. }
  94743. func (ec *executionContext) _Order_sourceIdentifier(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  94744. fc, err := ec.fieldContext_Order_sourceIdentifier(ctx, field)
  94745. if err != nil {
  94746. return graphql.Null
  94747. }
  94748. ctx = graphql.WithFieldContext(ctx, fc)
  94749. defer func() {
  94750. if r := recover(); r != nil {
  94751. ec.Error(ctx, ec.Recover(ctx, r))
  94752. ret = graphql.Null
  94753. }
  94754. }()
  94755. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  94756. ctx = rctx // use context from middleware stack in children
  94757. return obj.SourceIdentifier, nil
  94758. })
  94759. if err != nil {
  94760. ec.Error(ctx, err)
  94761. return graphql.Null
  94762. }
  94763. if resTmp == nil {
  94764. return graphql.Null
  94765. }
  94766. res := resTmp.(*string)
  94767. fc.Result = res
  94768. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  94769. }
  94770. func (ec *executionContext) fieldContext_Order_sourceIdentifier(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  94771. fc = &graphql.FieldContext{
  94772. Object: "Order",
  94773. Field: field,
  94774. IsMethod: false,
  94775. IsResolver: false,
  94776. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  94777. return nil, errors.New("field of type String does not have child fields")
  94778. },
  94779. }
  94780. return fc, nil
  94781. }
  94782. func (ec *executionContext) _Order_subtotalLineItemsQuantity(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  94783. fc, err := ec.fieldContext_Order_subtotalLineItemsQuantity(ctx, field)
  94784. if err != nil {
  94785. return graphql.Null
  94786. }
  94787. ctx = graphql.WithFieldContext(ctx, fc)
  94788. defer func() {
  94789. if r := recover(); r != nil {
  94790. ec.Error(ctx, ec.Recover(ctx, r))
  94791. ret = graphql.Null
  94792. }
  94793. }()
  94794. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  94795. ctx = rctx // use context from middleware stack in children
  94796. return obj.SubtotalLineItemsQuantity, nil
  94797. })
  94798. if err != nil {
  94799. ec.Error(ctx, err)
  94800. return graphql.Null
  94801. }
  94802. if resTmp == nil {
  94803. if !graphql.HasFieldError(ctx, fc) {
  94804. ec.Errorf(ctx, "must not be null")
  94805. }
  94806. return graphql.Null
  94807. }
  94808. res := resTmp.(int)
  94809. fc.Result = res
  94810. return ec.marshalNInt2int(ctx, field.Selections, res)
  94811. }
  94812. func (ec *executionContext) fieldContext_Order_subtotalLineItemsQuantity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  94813. fc = &graphql.FieldContext{
  94814. Object: "Order",
  94815. Field: field,
  94816. IsMethod: false,
  94817. IsResolver: false,
  94818. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  94819. return nil, errors.New("field of type Int does not have child fields")
  94820. },
  94821. }
  94822. return fc, nil
  94823. }
  94824. func (ec *executionContext) _Order_subtotalPriceSet(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  94825. fc, err := ec.fieldContext_Order_subtotalPriceSet(ctx, field)
  94826. if err != nil {
  94827. return graphql.Null
  94828. }
  94829. ctx = graphql.WithFieldContext(ctx, fc)
  94830. defer func() {
  94831. if r := recover(); r != nil {
  94832. ec.Error(ctx, ec.Recover(ctx, r))
  94833. ret = graphql.Null
  94834. }
  94835. }()
  94836. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  94837. ctx = rctx // use context from middleware stack in children
  94838. return obj.SubtotalPriceSet, nil
  94839. })
  94840. if err != nil {
  94841. ec.Error(ctx, err)
  94842. return graphql.Null
  94843. }
  94844. if resTmp == nil {
  94845. return graphql.Null
  94846. }
  94847. res := resTmp.(*MoneyBag)
  94848. fc.Result = res
  94849. return ec.marshalOMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  94850. }
  94851. func (ec *executionContext) fieldContext_Order_subtotalPriceSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  94852. fc = &graphql.FieldContext{
  94853. Object: "Order",
  94854. Field: field,
  94855. IsMethod: false,
  94856. IsResolver: false,
  94857. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  94858. switch field.Name {
  94859. case "presentmentMoney":
  94860. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  94861. case "shopMoney":
  94862. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  94863. }
  94864. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  94865. },
  94866. }
  94867. return fc, nil
  94868. }
  94869. func (ec *executionContext) _Order_suggestedRefund(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  94870. fc, err := ec.fieldContext_Order_suggestedRefund(ctx, field)
  94871. if err != nil {
  94872. return graphql.Null
  94873. }
  94874. ctx = graphql.WithFieldContext(ctx, fc)
  94875. defer func() {
  94876. if r := recover(); r != nil {
  94877. ec.Error(ctx, ec.Recover(ctx, r))
  94878. ret = graphql.Null
  94879. }
  94880. }()
  94881. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  94882. ctx = rctx // use context from middleware stack in children
  94883. return obj.SuggestedRefund, nil
  94884. })
  94885. if err != nil {
  94886. ec.Error(ctx, err)
  94887. return graphql.Null
  94888. }
  94889. if resTmp == nil {
  94890. return graphql.Null
  94891. }
  94892. res := resTmp.(*SuggestedRefund)
  94893. fc.Result = res
  94894. return ec.marshalOSuggestedRefund2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSuggestedRefund(ctx, field.Selections, res)
  94895. }
  94896. func (ec *executionContext) fieldContext_Order_suggestedRefund(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  94897. fc = &graphql.FieldContext{
  94898. Object: "Order",
  94899. Field: field,
  94900. IsMethod: false,
  94901. IsResolver: false,
  94902. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  94903. switch field.Name {
  94904. case "amountSet":
  94905. return ec.fieldContext_SuggestedRefund_amountSet(ctx, field)
  94906. case "discountedSubtotalSet":
  94907. return ec.fieldContext_SuggestedRefund_discountedSubtotalSet(ctx, field)
  94908. case "maximumRefundableSet":
  94909. return ec.fieldContext_SuggestedRefund_maximumRefundableSet(ctx, field)
  94910. case "refundDuties":
  94911. return ec.fieldContext_SuggestedRefund_refundDuties(ctx, field)
  94912. case "refundLineItems":
  94913. return ec.fieldContext_SuggestedRefund_refundLineItems(ctx, field)
  94914. case "shipping":
  94915. return ec.fieldContext_SuggestedRefund_shipping(ctx, field)
  94916. case "subtotalSet":
  94917. return ec.fieldContext_SuggestedRefund_subtotalSet(ctx, field)
  94918. case "suggestedTransactions":
  94919. return ec.fieldContext_SuggestedRefund_suggestedTransactions(ctx, field)
  94920. case "totalCartDiscountAmountSet":
  94921. return ec.fieldContext_SuggestedRefund_totalCartDiscountAmountSet(ctx, field)
  94922. case "totalDutiesSet":
  94923. return ec.fieldContext_SuggestedRefund_totalDutiesSet(ctx, field)
  94924. case "totalTaxSet":
  94925. return ec.fieldContext_SuggestedRefund_totalTaxSet(ctx, field)
  94926. }
  94927. return nil, fmt.Errorf("no field named %q was found under type SuggestedRefund", field.Name)
  94928. },
  94929. }
  94930. defer func() {
  94931. if r := recover(); r != nil {
  94932. err = ec.Recover(ctx, r)
  94933. ec.Error(ctx, err)
  94934. }
  94935. }()
  94936. ctx = graphql.WithFieldContext(ctx, fc)
  94937. if fc.Args, err = ec.field_Order_suggestedRefund_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  94938. ec.Error(ctx, err)
  94939. return
  94940. }
  94941. return fc, nil
  94942. }
  94943. func (ec *executionContext) _Order_tags(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  94944. fc, err := ec.fieldContext_Order_tags(ctx, field)
  94945. if err != nil {
  94946. return graphql.Null
  94947. }
  94948. ctx = graphql.WithFieldContext(ctx, fc)
  94949. defer func() {
  94950. if r := recover(); r != nil {
  94951. ec.Error(ctx, ec.Recover(ctx, r))
  94952. ret = graphql.Null
  94953. }
  94954. }()
  94955. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  94956. ctx = rctx // use context from middleware stack in children
  94957. return obj.Tags, nil
  94958. })
  94959. if err != nil {
  94960. ec.Error(ctx, err)
  94961. return graphql.Null
  94962. }
  94963. if resTmp == nil {
  94964. if !graphql.HasFieldError(ctx, fc) {
  94965. ec.Errorf(ctx, "must not be null")
  94966. }
  94967. return graphql.Null
  94968. }
  94969. res := resTmp.([]string)
  94970. fc.Result = res
  94971. return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
  94972. }
  94973. func (ec *executionContext) fieldContext_Order_tags(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  94974. fc = &graphql.FieldContext{
  94975. Object: "Order",
  94976. Field: field,
  94977. IsMethod: false,
  94978. IsResolver: false,
  94979. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  94980. return nil, errors.New("field of type String does not have child fields")
  94981. },
  94982. }
  94983. return fc, nil
  94984. }
  94985. func (ec *executionContext) _Order_taxLines(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  94986. fc, err := ec.fieldContext_Order_taxLines(ctx, field)
  94987. if err != nil {
  94988. return graphql.Null
  94989. }
  94990. ctx = graphql.WithFieldContext(ctx, fc)
  94991. defer func() {
  94992. if r := recover(); r != nil {
  94993. ec.Error(ctx, ec.Recover(ctx, r))
  94994. ret = graphql.Null
  94995. }
  94996. }()
  94997. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  94998. ctx = rctx // use context from middleware stack in children
  94999. return obj.TaxLines, nil
  95000. })
  95001. if err != nil {
  95002. ec.Error(ctx, err)
  95003. return graphql.Null
  95004. }
  95005. if resTmp == nil {
  95006. if !graphql.HasFieldError(ctx, fc) {
  95007. ec.Errorf(ctx, "must not be null")
  95008. }
  95009. return graphql.Null
  95010. }
  95011. res := resTmp.([]*TaxLine)
  95012. fc.Result = res
  95013. return ec.marshalNTaxLine2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐTaxLineᚄ(ctx, field.Selections, res)
  95014. }
  95015. func (ec *executionContext) fieldContext_Order_taxLines(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  95016. fc = &graphql.FieldContext{
  95017. Object: "Order",
  95018. Field: field,
  95019. IsMethod: false,
  95020. IsResolver: false,
  95021. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  95022. switch field.Name {
  95023. case "channelLiable":
  95024. return ec.fieldContext_TaxLine_channelLiable(ctx, field)
  95025. case "priceSet":
  95026. return ec.fieldContext_TaxLine_priceSet(ctx, field)
  95027. case "rate":
  95028. return ec.fieldContext_TaxLine_rate(ctx, field)
  95029. case "ratePercentage":
  95030. return ec.fieldContext_TaxLine_ratePercentage(ctx, field)
  95031. case "title":
  95032. return ec.fieldContext_TaxLine_title(ctx, field)
  95033. }
  95034. return nil, fmt.Errorf("no field named %q was found under type TaxLine", field.Name)
  95035. },
  95036. }
  95037. return fc, nil
  95038. }
  95039. func (ec *executionContext) _Order_taxesIncluded(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  95040. fc, err := ec.fieldContext_Order_taxesIncluded(ctx, field)
  95041. if err != nil {
  95042. return graphql.Null
  95043. }
  95044. ctx = graphql.WithFieldContext(ctx, fc)
  95045. defer func() {
  95046. if r := recover(); r != nil {
  95047. ec.Error(ctx, ec.Recover(ctx, r))
  95048. ret = graphql.Null
  95049. }
  95050. }()
  95051. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  95052. ctx = rctx // use context from middleware stack in children
  95053. return obj.TaxesIncluded, nil
  95054. })
  95055. if err != nil {
  95056. ec.Error(ctx, err)
  95057. return graphql.Null
  95058. }
  95059. if resTmp == nil {
  95060. if !graphql.HasFieldError(ctx, fc) {
  95061. ec.Errorf(ctx, "must not be null")
  95062. }
  95063. return graphql.Null
  95064. }
  95065. res := resTmp.(bool)
  95066. fc.Result = res
  95067. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  95068. }
  95069. func (ec *executionContext) fieldContext_Order_taxesIncluded(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  95070. fc = &graphql.FieldContext{
  95071. Object: "Order",
  95072. Field: field,
  95073. IsMethod: false,
  95074. IsResolver: false,
  95075. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  95076. return nil, errors.New("field of type Boolean does not have child fields")
  95077. },
  95078. }
  95079. return fc, nil
  95080. }
  95081. func (ec *executionContext) _Order_test(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  95082. fc, err := ec.fieldContext_Order_test(ctx, field)
  95083. if err != nil {
  95084. return graphql.Null
  95085. }
  95086. ctx = graphql.WithFieldContext(ctx, fc)
  95087. defer func() {
  95088. if r := recover(); r != nil {
  95089. ec.Error(ctx, ec.Recover(ctx, r))
  95090. ret = graphql.Null
  95091. }
  95092. }()
  95093. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  95094. ctx = rctx // use context from middleware stack in children
  95095. return obj.Test, nil
  95096. })
  95097. if err != nil {
  95098. ec.Error(ctx, err)
  95099. return graphql.Null
  95100. }
  95101. if resTmp == nil {
  95102. if !graphql.HasFieldError(ctx, fc) {
  95103. ec.Errorf(ctx, "must not be null")
  95104. }
  95105. return graphql.Null
  95106. }
  95107. res := resTmp.(bool)
  95108. fc.Result = res
  95109. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  95110. }
  95111. func (ec *executionContext) fieldContext_Order_test(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  95112. fc = &graphql.FieldContext{
  95113. Object: "Order",
  95114. Field: field,
  95115. IsMethod: false,
  95116. IsResolver: false,
  95117. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  95118. return nil, errors.New("field of type Boolean does not have child fields")
  95119. },
  95120. }
  95121. return fc, nil
  95122. }
  95123. func (ec *executionContext) _Order_totalCapturableSet(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  95124. fc, err := ec.fieldContext_Order_totalCapturableSet(ctx, field)
  95125. if err != nil {
  95126. return graphql.Null
  95127. }
  95128. ctx = graphql.WithFieldContext(ctx, fc)
  95129. defer func() {
  95130. if r := recover(); r != nil {
  95131. ec.Error(ctx, ec.Recover(ctx, r))
  95132. ret = graphql.Null
  95133. }
  95134. }()
  95135. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  95136. ctx = rctx // use context from middleware stack in children
  95137. return obj.TotalCapturableSet, nil
  95138. })
  95139. if err != nil {
  95140. ec.Error(ctx, err)
  95141. return graphql.Null
  95142. }
  95143. if resTmp == nil {
  95144. if !graphql.HasFieldError(ctx, fc) {
  95145. ec.Errorf(ctx, "must not be null")
  95146. }
  95147. return graphql.Null
  95148. }
  95149. res := resTmp.(*MoneyBag)
  95150. fc.Result = res
  95151. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  95152. }
  95153. func (ec *executionContext) fieldContext_Order_totalCapturableSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  95154. fc = &graphql.FieldContext{
  95155. Object: "Order",
  95156. Field: field,
  95157. IsMethod: false,
  95158. IsResolver: false,
  95159. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  95160. switch field.Name {
  95161. case "presentmentMoney":
  95162. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  95163. case "shopMoney":
  95164. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  95165. }
  95166. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  95167. },
  95168. }
  95169. return fc, nil
  95170. }
  95171. func (ec *executionContext) _Order_totalDiscountsSet(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  95172. fc, err := ec.fieldContext_Order_totalDiscountsSet(ctx, field)
  95173. if err != nil {
  95174. return graphql.Null
  95175. }
  95176. ctx = graphql.WithFieldContext(ctx, fc)
  95177. defer func() {
  95178. if r := recover(); r != nil {
  95179. ec.Error(ctx, ec.Recover(ctx, r))
  95180. ret = graphql.Null
  95181. }
  95182. }()
  95183. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  95184. ctx = rctx // use context from middleware stack in children
  95185. return obj.TotalDiscountsSet, nil
  95186. })
  95187. if err != nil {
  95188. ec.Error(ctx, err)
  95189. return graphql.Null
  95190. }
  95191. if resTmp == nil {
  95192. return graphql.Null
  95193. }
  95194. res := resTmp.(*MoneyBag)
  95195. fc.Result = res
  95196. return ec.marshalOMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  95197. }
  95198. func (ec *executionContext) fieldContext_Order_totalDiscountsSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  95199. fc = &graphql.FieldContext{
  95200. Object: "Order",
  95201. Field: field,
  95202. IsMethod: false,
  95203. IsResolver: false,
  95204. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  95205. switch field.Name {
  95206. case "presentmentMoney":
  95207. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  95208. case "shopMoney":
  95209. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  95210. }
  95211. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  95212. },
  95213. }
  95214. return fc, nil
  95215. }
  95216. func (ec *executionContext) _Order_totalOutstandingSet(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  95217. fc, err := ec.fieldContext_Order_totalOutstandingSet(ctx, field)
  95218. if err != nil {
  95219. return graphql.Null
  95220. }
  95221. ctx = graphql.WithFieldContext(ctx, fc)
  95222. defer func() {
  95223. if r := recover(); r != nil {
  95224. ec.Error(ctx, ec.Recover(ctx, r))
  95225. ret = graphql.Null
  95226. }
  95227. }()
  95228. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  95229. ctx = rctx // use context from middleware stack in children
  95230. return obj.TotalOutstandingSet, nil
  95231. })
  95232. if err != nil {
  95233. ec.Error(ctx, err)
  95234. return graphql.Null
  95235. }
  95236. if resTmp == nil {
  95237. if !graphql.HasFieldError(ctx, fc) {
  95238. ec.Errorf(ctx, "must not be null")
  95239. }
  95240. return graphql.Null
  95241. }
  95242. res := resTmp.(*MoneyBag)
  95243. fc.Result = res
  95244. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  95245. }
  95246. func (ec *executionContext) fieldContext_Order_totalOutstandingSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  95247. fc = &graphql.FieldContext{
  95248. Object: "Order",
  95249. Field: field,
  95250. IsMethod: false,
  95251. IsResolver: false,
  95252. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  95253. switch field.Name {
  95254. case "presentmentMoney":
  95255. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  95256. case "shopMoney":
  95257. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  95258. }
  95259. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  95260. },
  95261. }
  95262. return fc, nil
  95263. }
  95264. func (ec *executionContext) _Order_totalPriceSet(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  95265. fc, err := ec.fieldContext_Order_totalPriceSet(ctx, field)
  95266. if err != nil {
  95267. return graphql.Null
  95268. }
  95269. ctx = graphql.WithFieldContext(ctx, fc)
  95270. defer func() {
  95271. if r := recover(); r != nil {
  95272. ec.Error(ctx, ec.Recover(ctx, r))
  95273. ret = graphql.Null
  95274. }
  95275. }()
  95276. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  95277. ctx = rctx // use context from middleware stack in children
  95278. return obj.TotalPriceSet, nil
  95279. })
  95280. if err != nil {
  95281. ec.Error(ctx, err)
  95282. return graphql.Null
  95283. }
  95284. if resTmp == nil {
  95285. if !graphql.HasFieldError(ctx, fc) {
  95286. ec.Errorf(ctx, "must not be null")
  95287. }
  95288. return graphql.Null
  95289. }
  95290. res := resTmp.(*MoneyBag)
  95291. fc.Result = res
  95292. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  95293. }
  95294. func (ec *executionContext) fieldContext_Order_totalPriceSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  95295. fc = &graphql.FieldContext{
  95296. Object: "Order",
  95297. Field: field,
  95298. IsMethod: false,
  95299. IsResolver: false,
  95300. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  95301. switch field.Name {
  95302. case "presentmentMoney":
  95303. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  95304. case "shopMoney":
  95305. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  95306. }
  95307. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  95308. },
  95309. }
  95310. return fc, nil
  95311. }
  95312. func (ec *executionContext) _Order_totalReceivedSet(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  95313. fc, err := ec.fieldContext_Order_totalReceivedSet(ctx, field)
  95314. if err != nil {
  95315. return graphql.Null
  95316. }
  95317. ctx = graphql.WithFieldContext(ctx, fc)
  95318. defer func() {
  95319. if r := recover(); r != nil {
  95320. ec.Error(ctx, ec.Recover(ctx, r))
  95321. ret = graphql.Null
  95322. }
  95323. }()
  95324. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  95325. ctx = rctx // use context from middleware stack in children
  95326. return obj.TotalReceivedSet, nil
  95327. })
  95328. if err != nil {
  95329. ec.Error(ctx, err)
  95330. return graphql.Null
  95331. }
  95332. if resTmp == nil {
  95333. if !graphql.HasFieldError(ctx, fc) {
  95334. ec.Errorf(ctx, "must not be null")
  95335. }
  95336. return graphql.Null
  95337. }
  95338. res := resTmp.(*MoneyBag)
  95339. fc.Result = res
  95340. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  95341. }
  95342. func (ec *executionContext) fieldContext_Order_totalReceivedSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  95343. fc = &graphql.FieldContext{
  95344. Object: "Order",
  95345. Field: field,
  95346. IsMethod: false,
  95347. IsResolver: false,
  95348. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  95349. switch field.Name {
  95350. case "presentmentMoney":
  95351. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  95352. case "shopMoney":
  95353. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  95354. }
  95355. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  95356. },
  95357. }
  95358. return fc, nil
  95359. }
  95360. func (ec *executionContext) _Order_totalRefundedSet(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  95361. fc, err := ec.fieldContext_Order_totalRefundedSet(ctx, field)
  95362. if err != nil {
  95363. return graphql.Null
  95364. }
  95365. ctx = graphql.WithFieldContext(ctx, fc)
  95366. defer func() {
  95367. if r := recover(); r != nil {
  95368. ec.Error(ctx, ec.Recover(ctx, r))
  95369. ret = graphql.Null
  95370. }
  95371. }()
  95372. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  95373. ctx = rctx // use context from middleware stack in children
  95374. return obj.TotalRefundedSet, nil
  95375. })
  95376. if err != nil {
  95377. ec.Error(ctx, err)
  95378. return graphql.Null
  95379. }
  95380. if resTmp == nil {
  95381. if !graphql.HasFieldError(ctx, fc) {
  95382. ec.Errorf(ctx, "must not be null")
  95383. }
  95384. return graphql.Null
  95385. }
  95386. res := resTmp.(*MoneyBag)
  95387. fc.Result = res
  95388. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  95389. }
  95390. func (ec *executionContext) fieldContext_Order_totalRefundedSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  95391. fc = &graphql.FieldContext{
  95392. Object: "Order",
  95393. Field: field,
  95394. IsMethod: false,
  95395. IsResolver: false,
  95396. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  95397. switch field.Name {
  95398. case "presentmentMoney":
  95399. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  95400. case "shopMoney":
  95401. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  95402. }
  95403. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  95404. },
  95405. }
  95406. return fc, nil
  95407. }
  95408. func (ec *executionContext) _Order_totalRefundedShippingSet(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  95409. fc, err := ec.fieldContext_Order_totalRefundedShippingSet(ctx, field)
  95410. if err != nil {
  95411. return graphql.Null
  95412. }
  95413. ctx = graphql.WithFieldContext(ctx, fc)
  95414. defer func() {
  95415. if r := recover(); r != nil {
  95416. ec.Error(ctx, ec.Recover(ctx, r))
  95417. ret = graphql.Null
  95418. }
  95419. }()
  95420. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  95421. ctx = rctx // use context from middleware stack in children
  95422. return obj.TotalRefundedShippingSet, nil
  95423. })
  95424. if err != nil {
  95425. ec.Error(ctx, err)
  95426. return graphql.Null
  95427. }
  95428. if resTmp == nil {
  95429. if !graphql.HasFieldError(ctx, fc) {
  95430. ec.Errorf(ctx, "must not be null")
  95431. }
  95432. return graphql.Null
  95433. }
  95434. res := resTmp.(*MoneyBag)
  95435. fc.Result = res
  95436. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  95437. }
  95438. func (ec *executionContext) fieldContext_Order_totalRefundedShippingSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  95439. fc = &graphql.FieldContext{
  95440. Object: "Order",
  95441. Field: field,
  95442. IsMethod: false,
  95443. IsResolver: false,
  95444. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  95445. switch field.Name {
  95446. case "presentmentMoney":
  95447. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  95448. case "shopMoney":
  95449. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  95450. }
  95451. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  95452. },
  95453. }
  95454. return fc, nil
  95455. }
  95456. func (ec *executionContext) _Order_totalShippingPriceSet(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  95457. fc, err := ec.fieldContext_Order_totalShippingPriceSet(ctx, field)
  95458. if err != nil {
  95459. return graphql.Null
  95460. }
  95461. ctx = graphql.WithFieldContext(ctx, fc)
  95462. defer func() {
  95463. if r := recover(); r != nil {
  95464. ec.Error(ctx, ec.Recover(ctx, r))
  95465. ret = graphql.Null
  95466. }
  95467. }()
  95468. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  95469. ctx = rctx // use context from middleware stack in children
  95470. return obj.TotalShippingPriceSet, nil
  95471. })
  95472. if err != nil {
  95473. ec.Error(ctx, err)
  95474. return graphql.Null
  95475. }
  95476. if resTmp == nil {
  95477. if !graphql.HasFieldError(ctx, fc) {
  95478. ec.Errorf(ctx, "must not be null")
  95479. }
  95480. return graphql.Null
  95481. }
  95482. res := resTmp.(*MoneyBag)
  95483. fc.Result = res
  95484. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  95485. }
  95486. func (ec *executionContext) fieldContext_Order_totalShippingPriceSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  95487. fc = &graphql.FieldContext{
  95488. Object: "Order",
  95489. Field: field,
  95490. IsMethod: false,
  95491. IsResolver: false,
  95492. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  95493. switch field.Name {
  95494. case "presentmentMoney":
  95495. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  95496. case "shopMoney":
  95497. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  95498. }
  95499. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  95500. },
  95501. }
  95502. return fc, nil
  95503. }
  95504. func (ec *executionContext) _Order_totalTaxSet(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  95505. fc, err := ec.fieldContext_Order_totalTaxSet(ctx, field)
  95506. if err != nil {
  95507. return graphql.Null
  95508. }
  95509. ctx = graphql.WithFieldContext(ctx, fc)
  95510. defer func() {
  95511. if r := recover(); r != nil {
  95512. ec.Error(ctx, ec.Recover(ctx, r))
  95513. ret = graphql.Null
  95514. }
  95515. }()
  95516. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  95517. ctx = rctx // use context from middleware stack in children
  95518. return obj.TotalTaxSet, nil
  95519. })
  95520. if err != nil {
  95521. ec.Error(ctx, err)
  95522. return graphql.Null
  95523. }
  95524. if resTmp == nil {
  95525. return graphql.Null
  95526. }
  95527. res := resTmp.(*MoneyBag)
  95528. fc.Result = res
  95529. return ec.marshalOMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  95530. }
  95531. func (ec *executionContext) fieldContext_Order_totalTaxSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  95532. fc = &graphql.FieldContext{
  95533. Object: "Order",
  95534. Field: field,
  95535. IsMethod: false,
  95536. IsResolver: false,
  95537. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  95538. switch field.Name {
  95539. case "presentmentMoney":
  95540. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  95541. case "shopMoney":
  95542. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  95543. }
  95544. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  95545. },
  95546. }
  95547. return fc, nil
  95548. }
  95549. func (ec *executionContext) _Order_totalTipReceivedSet(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  95550. fc, err := ec.fieldContext_Order_totalTipReceivedSet(ctx, field)
  95551. if err != nil {
  95552. return graphql.Null
  95553. }
  95554. ctx = graphql.WithFieldContext(ctx, fc)
  95555. defer func() {
  95556. if r := recover(); r != nil {
  95557. ec.Error(ctx, ec.Recover(ctx, r))
  95558. ret = graphql.Null
  95559. }
  95560. }()
  95561. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  95562. ctx = rctx // use context from middleware stack in children
  95563. return obj.TotalTipReceivedSet, nil
  95564. })
  95565. if err != nil {
  95566. ec.Error(ctx, err)
  95567. return graphql.Null
  95568. }
  95569. if resTmp == nil {
  95570. if !graphql.HasFieldError(ctx, fc) {
  95571. ec.Errorf(ctx, "must not be null")
  95572. }
  95573. return graphql.Null
  95574. }
  95575. res := resTmp.(*MoneyBag)
  95576. fc.Result = res
  95577. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  95578. }
  95579. func (ec *executionContext) fieldContext_Order_totalTipReceivedSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  95580. fc = &graphql.FieldContext{
  95581. Object: "Order",
  95582. Field: field,
  95583. IsMethod: false,
  95584. IsResolver: false,
  95585. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  95586. switch field.Name {
  95587. case "presentmentMoney":
  95588. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  95589. case "shopMoney":
  95590. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  95591. }
  95592. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  95593. },
  95594. }
  95595. return fc, nil
  95596. }
  95597. func (ec *executionContext) _Order_totalWeight(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  95598. fc, err := ec.fieldContext_Order_totalWeight(ctx, field)
  95599. if err != nil {
  95600. return graphql.Null
  95601. }
  95602. ctx = graphql.WithFieldContext(ctx, fc)
  95603. defer func() {
  95604. if r := recover(); r != nil {
  95605. ec.Error(ctx, ec.Recover(ctx, r))
  95606. ret = graphql.Null
  95607. }
  95608. }()
  95609. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  95610. ctx = rctx // use context from middleware stack in children
  95611. return obj.TotalWeight, nil
  95612. })
  95613. if err != nil {
  95614. ec.Error(ctx, err)
  95615. return graphql.Null
  95616. }
  95617. if resTmp == nil {
  95618. return graphql.Null
  95619. }
  95620. res := resTmp.(*string)
  95621. fc.Result = res
  95622. return ec.marshalOUnsignedInt642ᚖstring(ctx, field.Selections, res)
  95623. }
  95624. func (ec *executionContext) fieldContext_Order_totalWeight(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  95625. fc = &graphql.FieldContext{
  95626. Object: "Order",
  95627. Field: field,
  95628. IsMethod: false,
  95629. IsResolver: false,
  95630. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  95631. return nil, errors.New("field of type UnsignedInt64 does not have child fields")
  95632. },
  95633. }
  95634. return fc, nil
  95635. }
  95636. func (ec *executionContext) _Order_transactions(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  95637. fc, err := ec.fieldContext_Order_transactions(ctx, field)
  95638. if err != nil {
  95639. return graphql.Null
  95640. }
  95641. ctx = graphql.WithFieldContext(ctx, fc)
  95642. defer func() {
  95643. if r := recover(); r != nil {
  95644. ec.Error(ctx, ec.Recover(ctx, r))
  95645. ret = graphql.Null
  95646. }
  95647. }()
  95648. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  95649. ctx = rctx // use context from middleware stack in children
  95650. return obj.Transactions, nil
  95651. })
  95652. if err != nil {
  95653. ec.Error(ctx, err)
  95654. return graphql.Null
  95655. }
  95656. if resTmp == nil {
  95657. if !graphql.HasFieldError(ctx, fc) {
  95658. ec.Errorf(ctx, "must not be null")
  95659. }
  95660. return graphql.Null
  95661. }
  95662. res := resTmp.([]*OrderTransaction)
  95663. fc.Result = res
  95664. return ec.marshalNOrderTransaction2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderTransactionᚄ(ctx, field.Selections, res)
  95665. }
  95666. func (ec *executionContext) fieldContext_Order_transactions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  95667. fc = &graphql.FieldContext{
  95668. Object: "Order",
  95669. Field: field,
  95670. IsMethod: false,
  95671. IsResolver: false,
  95672. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  95673. switch field.Name {
  95674. case "accountNumber":
  95675. return ec.fieldContext_OrderTransaction_accountNumber(ctx, field)
  95676. case "amountSet":
  95677. return ec.fieldContext_OrderTransaction_amountSet(ctx, field)
  95678. case "authorizationCode":
  95679. return ec.fieldContext_OrderTransaction_authorizationCode(ctx, field)
  95680. case "authorizationExpiresAt":
  95681. return ec.fieldContext_OrderTransaction_authorizationExpiresAt(ctx, field)
  95682. case "createdAt":
  95683. return ec.fieldContext_OrderTransaction_createdAt(ctx, field)
  95684. case "errorCode":
  95685. return ec.fieldContext_OrderTransaction_errorCode(ctx, field)
  95686. case "fees":
  95687. return ec.fieldContext_OrderTransaction_fees(ctx, field)
  95688. case "formattedGateway":
  95689. return ec.fieldContext_OrderTransaction_formattedGateway(ctx, field)
  95690. case "gateway":
  95691. return ec.fieldContext_OrderTransaction_gateway(ctx, field)
  95692. case "id":
  95693. return ec.fieldContext_OrderTransaction_id(ctx, field)
  95694. case "kind":
  95695. return ec.fieldContext_OrderTransaction_kind(ctx, field)
  95696. case "manuallyCapturable":
  95697. return ec.fieldContext_OrderTransaction_manuallyCapturable(ctx, field)
  95698. case "maximumRefundableV2":
  95699. return ec.fieldContext_OrderTransaction_maximumRefundableV2(ctx, field)
  95700. case "order":
  95701. return ec.fieldContext_OrderTransaction_order(ctx, field)
  95702. case "parentTransaction":
  95703. return ec.fieldContext_OrderTransaction_parentTransaction(ctx, field)
  95704. case "paymentIcon":
  95705. return ec.fieldContext_OrderTransaction_paymentIcon(ctx, field)
  95706. case "processedAt":
  95707. return ec.fieldContext_OrderTransaction_processedAt(ctx, field)
  95708. case "receiptJson":
  95709. return ec.fieldContext_OrderTransaction_receiptJson(ctx, field)
  95710. case "settlementCurrency":
  95711. return ec.fieldContext_OrderTransaction_settlementCurrency(ctx, field)
  95712. case "settlementCurrencyRate":
  95713. return ec.fieldContext_OrderTransaction_settlementCurrencyRate(ctx, field)
  95714. case "shopifyPaymentsSet":
  95715. return ec.fieldContext_OrderTransaction_shopifyPaymentsSet(ctx, field)
  95716. case "status":
  95717. return ec.fieldContext_OrderTransaction_status(ctx, field)
  95718. case "test":
  95719. return ec.fieldContext_OrderTransaction_test(ctx, field)
  95720. case "totalUnsettledSet":
  95721. return ec.fieldContext_OrderTransaction_totalUnsettledSet(ctx, field)
  95722. case "user":
  95723. return ec.fieldContext_OrderTransaction_user(ctx, field)
  95724. }
  95725. return nil, fmt.Errorf("no field named %q was found under type OrderTransaction", field.Name)
  95726. },
  95727. }
  95728. defer func() {
  95729. if r := recover(); r != nil {
  95730. err = ec.Recover(ctx, r)
  95731. ec.Error(ctx, err)
  95732. }
  95733. }()
  95734. ctx = graphql.WithFieldContext(ctx, fc)
  95735. if fc.Args, err = ec.field_Order_transactions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  95736. ec.Error(ctx, err)
  95737. return
  95738. }
  95739. return fc, nil
  95740. }
  95741. func (ec *executionContext) _Order_unpaid(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  95742. fc, err := ec.fieldContext_Order_unpaid(ctx, field)
  95743. if err != nil {
  95744. return graphql.Null
  95745. }
  95746. ctx = graphql.WithFieldContext(ctx, fc)
  95747. defer func() {
  95748. if r := recover(); r != nil {
  95749. ec.Error(ctx, ec.Recover(ctx, r))
  95750. ret = graphql.Null
  95751. }
  95752. }()
  95753. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  95754. ctx = rctx // use context from middleware stack in children
  95755. return obj.Unpaid, nil
  95756. })
  95757. if err != nil {
  95758. ec.Error(ctx, err)
  95759. return graphql.Null
  95760. }
  95761. if resTmp == nil {
  95762. if !graphql.HasFieldError(ctx, fc) {
  95763. ec.Errorf(ctx, "must not be null")
  95764. }
  95765. return graphql.Null
  95766. }
  95767. res := resTmp.(bool)
  95768. fc.Result = res
  95769. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  95770. }
  95771. func (ec *executionContext) fieldContext_Order_unpaid(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  95772. fc = &graphql.FieldContext{
  95773. Object: "Order",
  95774. Field: field,
  95775. IsMethod: false,
  95776. IsResolver: false,
  95777. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  95778. return nil, errors.New("field of type Boolean does not have child fields")
  95779. },
  95780. }
  95781. return fc, nil
  95782. }
  95783. func (ec *executionContext) _Order_updatedAt(ctx context.Context, field graphql.CollectedField, obj *Order) (ret graphql.Marshaler) {
  95784. fc, err := ec.fieldContext_Order_updatedAt(ctx, field)
  95785. if err != nil {
  95786. return graphql.Null
  95787. }
  95788. ctx = graphql.WithFieldContext(ctx, fc)
  95789. defer func() {
  95790. if r := recover(); r != nil {
  95791. ec.Error(ctx, ec.Recover(ctx, r))
  95792. ret = graphql.Null
  95793. }
  95794. }()
  95795. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  95796. ctx = rctx // use context from middleware stack in children
  95797. return obj.UpdatedAt, nil
  95798. })
  95799. if err != nil {
  95800. ec.Error(ctx, err)
  95801. return graphql.Null
  95802. }
  95803. if resTmp == nil {
  95804. if !graphql.HasFieldError(ctx, fc) {
  95805. ec.Errorf(ctx, "must not be null")
  95806. }
  95807. return graphql.Null
  95808. }
  95809. res := resTmp.(string)
  95810. fc.Result = res
  95811. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  95812. }
  95813. func (ec *executionContext) fieldContext_Order_updatedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  95814. fc = &graphql.FieldContext{
  95815. Object: "Order",
  95816. Field: field,
  95817. IsMethod: false,
  95818. IsResolver: false,
  95819. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  95820. return nil, errors.New("field of type DateTime does not have child fields")
  95821. },
  95822. }
  95823. return fc, nil
  95824. }
  95825. func (ec *executionContext) _OrderApp_icon(ctx context.Context, field graphql.CollectedField, obj *OrderApp) (ret graphql.Marshaler) {
  95826. fc, err := ec.fieldContext_OrderApp_icon(ctx, field)
  95827. if err != nil {
  95828. return graphql.Null
  95829. }
  95830. ctx = graphql.WithFieldContext(ctx, fc)
  95831. defer func() {
  95832. if r := recover(); r != nil {
  95833. ec.Error(ctx, ec.Recover(ctx, r))
  95834. ret = graphql.Null
  95835. }
  95836. }()
  95837. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  95838. ctx = rctx // use context from middleware stack in children
  95839. return obj.Icon, nil
  95840. })
  95841. if err != nil {
  95842. ec.Error(ctx, err)
  95843. return graphql.Null
  95844. }
  95845. if resTmp == nil {
  95846. if !graphql.HasFieldError(ctx, fc) {
  95847. ec.Errorf(ctx, "must not be null")
  95848. }
  95849. return graphql.Null
  95850. }
  95851. res := resTmp.(*Image)
  95852. fc.Result = res
  95853. return ec.marshalNImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImage(ctx, field.Selections, res)
  95854. }
  95855. func (ec *executionContext) fieldContext_OrderApp_icon(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  95856. fc = &graphql.FieldContext{
  95857. Object: "OrderApp",
  95858. Field: field,
  95859. IsMethod: false,
  95860. IsResolver: false,
  95861. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  95862. switch field.Name {
  95863. case "altText":
  95864. return ec.fieldContext_Image_altText(ctx, field)
  95865. case "height":
  95866. return ec.fieldContext_Image_height(ctx, field)
  95867. case "id":
  95868. return ec.fieldContext_Image_id(ctx, field)
  95869. case "metafield":
  95870. return ec.fieldContext_Image_metafield(ctx, field)
  95871. case "metafields":
  95872. return ec.fieldContext_Image_metafields(ctx, field)
  95873. case "privateMetafield":
  95874. return ec.fieldContext_Image_privateMetafield(ctx, field)
  95875. case "privateMetafields":
  95876. return ec.fieldContext_Image_privateMetafields(ctx, field)
  95877. case "url":
  95878. return ec.fieldContext_Image_url(ctx, field)
  95879. case "width":
  95880. return ec.fieldContext_Image_width(ctx, field)
  95881. }
  95882. return nil, fmt.Errorf("no field named %q was found under type Image", field.Name)
  95883. },
  95884. }
  95885. return fc, nil
  95886. }
  95887. func (ec *executionContext) _OrderApp_id(ctx context.Context, field graphql.CollectedField, obj *OrderApp) (ret graphql.Marshaler) {
  95888. fc, err := ec.fieldContext_OrderApp_id(ctx, field)
  95889. if err != nil {
  95890. return graphql.Null
  95891. }
  95892. ctx = graphql.WithFieldContext(ctx, fc)
  95893. defer func() {
  95894. if r := recover(); r != nil {
  95895. ec.Error(ctx, ec.Recover(ctx, r))
  95896. ret = graphql.Null
  95897. }
  95898. }()
  95899. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  95900. ctx = rctx // use context from middleware stack in children
  95901. return obj.ID, nil
  95902. })
  95903. if err != nil {
  95904. ec.Error(ctx, err)
  95905. return graphql.Null
  95906. }
  95907. if resTmp == nil {
  95908. if !graphql.HasFieldError(ctx, fc) {
  95909. ec.Errorf(ctx, "must not be null")
  95910. }
  95911. return graphql.Null
  95912. }
  95913. res := resTmp.(string)
  95914. fc.Result = res
  95915. return ec.marshalNID2string(ctx, field.Selections, res)
  95916. }
  95917. func (ec *executionContext) fieldContext_OrderApp_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  95918. fc = &graphql.FieldContext{
  95919. Object: "OrderApp",
  95920. Field: field,
  95921. IsMethod: false,
  95922. IsResolver: false,
  95923. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  95924. return nil, errors.New("field of type ID does not have child fields")
  95925. },
  95926. }
  95927. return fc, nil
  95928. }
  95929. func (ec *executionContext) _OrderApp_name(ctx context.Context, field graphql.CollectedField, obj *OrderApp) (ret graphql.Marshaler) {
  95930. fc, err := ec.fieldContext_OrderApp_name(ctx, field)
  95931. if err != nil {
  95932. return graphql.Null
  95933. }
  95934. ctx = graphql.WithFieldContext(ctx, fc)
  95935. defer func() {
  95936. if r := recover(); r != nil {
  95937. ec.Error(ctx, ec.Recover(ctx, r))
  95938. ret = graphql.Null
  95939. }
  95940. }()
  95941. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  95942. ctx = rctx // use context from middleware stack in children
  95943. return obj.Name, nil
  95944. })
  95945. if err != nil {
  95946. ec.Error(ctx, err)
  95947. return graphql.Null
  95948. }
  95949. if resTmp == nil {
  95950. if !graphql.HasFieldError(ctx, fc) {
  95951. ec.Errorf(ctx, "must not be null")
  95952. }
  95953. return graphql.Null
  95954. }
  95955. res := resTmp.(string)
  95956. fc.Result = res
  95957. return ec.marshalNString2string(ctx, field.Selections, res)
  95958. }
  95959. func (ec *executionContext) fieldContext_OrderApp_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  95960. fc = &graphql.FieldContext{
  95961. Object: "OrderApp",
  95962. Field: field,
  95963. IsMethod: false,
  95964. IsResolver: false,
  95965. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  95966. return nil, errors.New("field of type String does not have child fields")
  95967. },
  95968. }
  95969. return fc, nil
  95970. }
  95971. func (ec *executionContext) _OrderConnection_edges(ctx context.Context, field graphql.CollectedField, obj *OrderConnection) (ret graphql.Marshaler) {
  95972. fc, err := ec.fieldContext_OrderConnection_edges(ctx, field)
  95973. if err != nil {
  95974. return graphql.Null
  95975. }
  95976. ctx = graphql.WithFieldContext(ctx, fc)
  95977. defer func() {
  95978. if r := recover(); r != nil {
  95979. ec.Error(ctx, ec.Recover(ctx, r))
  95980. ret = graphql.Null
  95981. }
  95982. }()
  95983. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  95984. ctx = rctx // use context from middleware stack in children
  95985. return obj.Edges, nil
  95986. })
  95987. if err != nil {
  95988. ec.Error(ctx, err)
  95989. return graphql.Null
  95990. }
  95991. if resTmp == nil {
  95992. if !graphql.HasFieldError(ctx, fc) {
  95993. ec.Errorf(ctx, "must not be null")
  95994. }
  95995. return graphql.Null
  95996. }
  95997. res := resTmp.([]*OrderEdge)
  95998. fc.Result = res
  95999. return ec.marshalNOrderEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderEdgeᚄ(ctx, field.Selections, res)
  96000. }
  96001. func (ec *executionContext) fieldContext_OrderConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  96002. fc = &graphql.FieldContext{
  96003. Object: "OrderConnection",
  96004. Field: field,
  96005. IsMethod: false,
  96006. IsResolver: false,
  96007. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  96008. switch field.Name {
  96009. case "cursor":
  96010. return ec.fieldContext_OrderEdge_cursor(ctx, field)
  96011. case "node":
  96012. return ec.fieldContext_OrderEdge_node(ctx, field)
  96013. }
  96014. return nil, fmt.Errorf("no field named %q was found under type OrderEdge", field.Name)
  96015. },
  96016. }
  96017. return fc, nil
  96018. }
  96019. func (ec *executionContext) _OrderConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *OrderConnection) (ret graphql.Marshaler) {
  96020. fc, err := ec.fieldContext_OrderConnection_nodes(ctx, field)
  96021. if err != nil {
  96022. return graphql.Null
  96023. }
  96024. ctx = graphql.WithFieldContext(ctx, fc)
  96025. defer func() {
  96026. if r := recover(); r != nil {
  96027. ec.Error(ctx, ec.Recover(ctx, r))
  96028. ret = graphql.Null
  96029. }
  96030. }()
  96031. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  96032. ctx = rctx // use context from middleware stack in children
  96033. return obj.Nodes, nil
  96034. })
  96035. if err != nil {
  96036. ec.Error(ctx, err)
  96037. return graphql.Null
  96038. }
  96039. if resTmp == nil {
  96040. if !graphql.HasFieldError(ctx, fc) {
  96041. ec.Errorf(ctx, "must not be null")
  96042. }
  96043. return graphql.Null
  96044. }
  96045. res := resTmp.([]*Order)
  96046. fc.Result = res
  96047. return ec.marshalNOrder2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderᚄ(ctx, field.Selections, res)
  96048. }
  96049. func (ec *executionContext) fieldContext_OrderConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  96050. fc = &graphql.FieldContext{
  96051. Object: "OrderConnection",
  96052. Field: field,
  96053. IsMethod: false,
  96054. IsResolver: false,
  96055. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  96056. switch field.Name {
  96057. case "agreements":
  96058. return ec.fieldContext_Order_agreements(ctx, field)
  96059. case "alerts":
  96060. return ec.fieldContext_Order_alerts(ctx, field)
  96061. case "app":
  96062. return ec.fieldContext_Order_app(ctx, field)
  96063. case "billingAddress":
  96064. return ec.fieldContext_Order_billingAddress(ctx, field)
  96065. case "billingAddressMatchesShippingAddress":
  96066. return ec.fieldContext_Order_billingAddressMatchesShippingAddress(ctx, field)
  96067. case "canMarkAsPaid":
  96068. return ec.fieldContext_Order_canMarkAsPaid(ctx, field)
  96069. case "canNotifyCustomer":
  96070. return ec.fieldContext_Order_canNotifyCustomer(ctx, field)
  96071. case "cancelReason":
  96072. return ec.fieldContext_Order_cancelReason(ctx, field)
  96073. case "cancelledAt":
  96074. return ec.fieldContext_Order_cancelledAt(ctx, field)
  96075. case "capturable":
  96076. return ec.fieldContext_Order_capturable(ctx, field)
  96077. case "cartDiscountAmountSet":
  96078. return ec.fieldContext_Order_cartDiscountAmountSet(ctx, field)
  96079. case "channelInformation":
  96080. return ec.fieldContext_Order_channelInformation(ctx, field)
  96081. case "clientIp":
  96082. return ec.fieldContext_Order_clientIp(ctx, field)
  96083. case "closed":
  96084. return ec.fieldContext_Order_closed(ctx, field)
  96085. case "closedAt":
  96086. return ec.fieldContext_Order_closedAt(ctx, field)
  96087. case "confirmed":
  96088. return ec.fieldContext_Order_confirmed(ctx, field)
  96089. case "createdAt":
  96090. return ec.fieldContext_Order_createdAt(ctx, field)
  96091. case "currencyCode":
  96092. return ec.fieldContext_Order_currencyCode(ctx, field)
  96093. case "currentCartDiscountAmountSet":
  96094. return ec.fieldContext_Order_currentCartDiscountAmountSet(ctx, field)
  96095. case "currentSubtotalLineItemsQuantity":
  96096. return ec.fieldContext_Order_currentSubtotalLineItemsQuantity(ctx, field)
  96097. case "currentSubtotalPriceSet":
  96098. return ec.fieldContext_Order_currentSubtotalPriceSet(ctx, field)
  96099. case "currentTaxLines":
  96100. return ec.fieldContext_Order_currentTaxLines(ctx, field)
  96101. case "currentTotalDiscountsSet":
  96102. return ec.fieldContext_Order_currentTotalDiscountsSet(ctx, field)
  96103. case "currentTotalDutiesSet":
  96104. return ec.fieldContext_Order_currentTotalDutiesSet(ctx, field)
  96105. case "currentTotalPriceSet":
  96106. return ec.fieldContext_Order_currentTotalPriceSet(ctx, field)
  96107. case "currentTotalTaxSet":
  96108. return ec.fieldContext_Order_currentTotalTaxSet(ctx, field)
  96109. case "currentTotalWeight":
  96110. return ec.fieldContext_Order_currentTotalWeight(ctx, field)
  96111. case "customAttributes":
  96112. return ec.fieldContext_Order_customAttributes(ctx, field)
  96113. case "customer":
  96114. return ec.fieldContext_Order_customer(ctx, field)
  96115. case "customerAcceptsMarketing":
  96116. return ec.fieldContext_Order_customerAcceptsMarketing(ctx, field)
  96117. case "customerJourneySummary":
  96118. return ec.fieldContext_Order_customerJourneySummary(ctx, field)
  96119. case "customerLocale":
  96120. return ec.fieldContext_Order_customerLocale(ctx, field)
  96121. case "discountApplications":
  96122. return ec.fieldContext_Order_discountApplications(ctx, field)
  96123. case "discountCode":
  96124. return ec.fieldContext_Order_discountCode(ctx, field)
  96125. case "discountCodes":
  96126. return ec.fieldContext_Order_discountCodes(ctx, field)
  96127. case "displayAddress":
  96128. return ec.fieldContext_Order_displayAddress(ctx, field)
  96129. case "displayFinancialStatus":
  96130. return ec.fieldContext_Order_displayFinancialStatus(ctx, field)
  96131. case "displayFulfillmentStatus":
  96132. return ec.fieldContext_Order_displayFulfillmentStatus(ctx, field)
  96133. case "disputes":
  96134. return ec.fieldContext_Order_disputes(ctx, field)
  96135. case "edited":
  96136. return ec.fieldContext_Order_edited(ctx, field)
  96137. case "email":
  96138. return ec.fieldContext_Order_email(ctx, field)
  96139. case "estimatedTaxes":
  96140. return ec.fieldContext_Order_estimatedTaxes(ctx, field)
  96141. case "events":
  96142. return ec.fieldContext_Order_events(ctx, field)
  96143. case "fulfillable":
  96144. return ec.fieldContext_Order_fulfillable(ctx, field)
  96145. case "fulfillmentOrders":
  96146. return ec.fieldContext_Order_fulfillmentOrders(ctx, field)
  96147. case "fulfillments":
  96148. return ec.fieldContext_Order_fulfillments(ctx, field)
  96149. case "fullyPaid":
  96150. return ec.fieldContext_Order_fullyPaid(ctx, field)
  96151. case "hasTimelineComment":
  96152. return ec.fieldContext_Order_hasTimelineComment(ctx, field)
  96153. case "id":
  96154. return ec.fieldContext_Order_id(ctx, field)
  96155. case "legacyResourceId":
  96156. return ec.fieldContext_Order_legacyResourceId(ctx, field)
  96157. case "lineItems":
  96158. return ec.fieldContext_Order_lineItems(ctx, field)
  96159. case "localizationExtensions":
  96160. return ec.fieldContext_Order_localizationExtensions(ctx, field)
  96161. case "merchantEditable":
  96162. return ec.fieldContext_Order_merchantEditable(ctx, field)
  96163. case "merchantEditableErrors":
  96164. return ec.fieldContext_Order_merchantEditableErrors(ctx, field)
  96165. case "merchantOfRecordApp":
  96166. return ec.fieldContext_Order_merchantOfRecordApp(ctx, field)
  96167. case "metafield":
  96168. return ec.fieldContext_Order_metafield(ctx, field)
  96169. case "metafieldDefinitions":
  96170. return ec.fieldContext_Order_metafieldDefinitions(ctx, field)
  96171. case "metafields":
  96172. return ec.fieldContext_Order_metafields(ctx, field)
  96173. case "name":
  96174. return ec.fieldContext_Order_name(ctx, field)
  96175. case "netPaymentSet":
  96176. return ec.fieldContext_Order_netPaymentSet(ctx, field)
  96177. case "nonFulfillableLineItems":
  96178. return ec.fieldContext_Order_nonFulfillableLineItems(ctx, field)
  96179. case "note":
  96180. return ec.fieldContext_Order_note(ctx, field)
  96181. case "originalTotalDutiesSet":
  96182. return ec.fieldContext_Order_originalTotalDutiesSet(ctx, field)
  96183. case "originalTotalPriceSet":
  96184. return ec.fieldContext_Order_originalTotalPriceSet(ctx, field)
  96185. case "paymentCollectionDetails":
  96186. return ec.fieldContext_Order_paymentCollectionDetails(ctx, field)
  96187. case "paymentGatewayNames":
  96188. return ec.fieldContext_Order_paymentGatewayNames(ctx, field)
  96189. case "paymentTerms":
  96190. return ec.fieldContext_Order_paymentTerms(ctx, field)
  96191. case "phone":
  96192. return ec.fieldContext_Order_phone(ctx, field)
  96193. case "physicalLocation":
  96194. return ec.fieldContext_Order_physicalLocation(ctx, field)
  96195. case "presentmentCurrencyCode":
  96196. return ec.fieldContext_Order_presentmentCurrencyCode(ctx, field)
  96197. case "privateMetafield":
  96198. return ec.fieldContext_Order_privateMetafield(ctx, field)
  96199. case "privateMetafields":
  96200. return ec.fieldContext_Order_privateMetafields(ctx, field)
  96201. case "processedAt":
  96202. return ec.fieldContext_Order_processedAt(ctx, field)
  96203. case "publication":
  96204. return ec.fieldContext_Order_publication(ctx, field)
  96205. case "purchasingEntity":
  96206. return ec.fieldContext_Order_purchasingEntity(ctx, field)
  96207. case "refundDiscrepancySet":
  96208. return ec.fieldContext_Order_refundDiscrepancySet(ctx, field)
  96209. case "refundable":
  96210. return ec.fieldContext_Order_refundable(ctx, field)
  96211. case "refunds":
  96212. return ec.fieldContext_Order_refunds(ctx, field)
  96213. case "registeredSourceUrl":
  96214. return ec.fieldContext_Order_registeredSourceUrl(ctx, field)
  96215. case "requiresShipping":
  96216. return ec.fieldContext_Order_requiresShipping(ctx, field)
  96217. case "restockable":
  96218. return ec.fieldContext_Order_restockable(ctx, field)
  96219. case "riskLevel":
  96220. return ec.fieldContext_Order_riskLevel(ctx, field)
  96221. case "risks":
  96222. return ec.fieldContext_Order_risks(ctx, field)
  96223. case "shippingAddress":
  96224. return ec.fieldContext_Order_shippingAddress(ctx, field)
  96225. case "shippingLine":
  96226. return ec.fieldContext_Order_shippingLine(ctx, field)
  96227. case "shippingLines":
  96228. return ec.fieldContext_Order_shippingLines(ctx, field)
  96229. case "sourceIdentifier":
  96230. return ec.fieldContext_Order_sourceIdentifier(ctx, field)
  96231. case "subtotalLineItemsQuantity":
  96232. return ec.fieldContext_Order_subtotalLineItemsQuantity(ctx, field)
  96233. case "subtotalPriceSet":
  96234. return ec.fieldContext_Order_subtotalPriceSet(ctx, field)
  96235. case "suggestedRefund":
  96236. return ec.fieldContext_Order_suggestedRefund(ctx, field)
  96237. case "tags":
  96238. return ec.fieldContext_Order_tags(ctx, field)
  96239. case "taxLines":
  96240. return ec.fieldContext_Order_taxLines(ctx, field)
  96241. case "taxesIncluded":
  96242. return ec.fieldContext_Order_taxesIncluded(ctx, field)
  96243. case "test":
  96244. return ec.fieldContext_Order_test(ctx, field)
  96245. case "totalCapturableSet":
  96246. return ec.fieldContext_Order_totalCapturableSet(ctx, field)
  96247. case "totalDiscountsSet":
  96248. return ec.fieldContext_Order_totalDiscountsSet(ctx, field)
  96249. case "totalOutstandingSet":
  96250. return ec.fieldContext_Order_totalOutstandingSet(ctx, field)
  96251. case "totalPriceSet":
  96252. return ec.fieldContext_Order_totalPriceSet(ctx, field)
  96253. case "totalReceivedSet":
  96254. return ec.fieldContext_Order_totalReceivedSet(ctx, field)
  96255. case "totalRefundedSet":
  96256. return ec.fieldContext_Order_totalRefundedSet(ctx, field)
  96257. case "totalRefundedShippingSet":
  96258. return ec.fieldContext_Order_totalRefundedShippingSet(ctx, field)
  96259. case "totalShippingPriceSet":
  96260. return ec.fieldContext_Order_totalShippingPriceSet(ctx, field)
  96261. case "totalTaxSet":
  96262. return ec.fieldContext_Order_totalTaxSet(ctx, field)
  96263. case "totalTipReceivedSet":
  96264. return ec.fieldContext_Order_totalTipReceivedSet(ctx, field)
  96265. case "totalWeight":
  96266. return ec.fieldContext_Order_totalWeight(ctx, field)
  96267. case "transactions":
  96268. return ec.fieldContext_Order_transactions(ctx, field)
  96269. case "unpaid":
  96270. return ec.fieldContext_Order_unpaid(ctx, field)
  96271. case "updatedAt":
  96272. return ec.fieldContext_Order_updatedAt(ctx, field)
  96273. }
  96274. return nil, fmt.Errorf("no field named %q was found under type Order", field.Name)
  96275. },
  96276. }
  96277. return fc, nil
  96278. }
  96279. func (ec *executionContext) _OrderConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *OrderConnection) (ret graphql.Marshaler) {
  96280. fc, err := ec.fieldContext_OrderConnection_pageInfo(ctx, field)
  96281. if err != nil {
  96282. return graphql.Null
  96283. }
  96284. ctx = graphql.WithFieldContext(ctx, fc)
  96285. defer func() {
  96286. if r := recover(); r != nil {
  96287. ec.Error(ctx, ec.Recover(ctx, r))
  96288. ret = graphql.Null
  96289. }
  96290. }()
  96291. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  96292. ctx = rctx // use context from middleware stack in children
  96293. return obj.PageInfo, nil
  96294. })
  96295. if err != nil {
  96296. ec.Error(ctx, err)
  96297. return graphql.Null
  96298. }
  96299. if resTmp == nil {
  96300. if !graphql.HasFieldError(ctx, fc) {
  96301. ec.Errorf(ctx, "must not be null")
  96302. }
  96303. return graphql.Null
  96304. }
  96305. res := resTmp.(*PageInfo)
  96306. fc.Result = res
  96307. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  96308. }
  96309. func (ec *executionContext) fieldContext_OrderConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  96310. fc = &graphql.FieldContext{
  96311. Object: "OrderConnection",
  96312. Field: field,
  96313. IsMethod: false,
  96314. IsResolver: false,
  96315. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  96316. switch field.Name {
  96317. case "endCursor":
  96318. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  96319. case "hasNextPage":
  96320. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  96321. case "hasPreviousPage":
  96322. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  96323. case "startCursor":
  96324. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  96325. }
  96326. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  96327. },
  96328. }
  96329. return fc, nil
  96330. }
  96331. func (ec *executionContext) _OrderDisputeSummary_id(ctx context.Context, field graphql.CollectedField, obj *OrderDisputeSummary) (ret graphql.Marshaler) {
  96332. fc, err := ec.fieldContext_OrderDisputeSummary_id(ctx, field)
  96333. if err != nil {
  96334. return graphql.Null
  96335. }
  96336. ctx = graphql.WithFieldContext(ctx, fc)
  96337. defer func() {
  96338. if r := recover(); r != nil {
  96339. ec.Error(ctx, ec.Recover(ctx, r))
  96340. ret = graphql.Null
  96341. }
  96342. }()
  96343. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  96344. ctx = rctx // use context from middleware stack in children
  96345. return obj.ID, nil
  96346. })
  96347. if err != nil {
  96348. ec.Error(ctx, err)
  96349. return graphql.Null
  96350. }
  96351. if resTmp == nil {
  96352. if !graphql.HasFieldError(ctx, fc) {
  96353. ec.Errorf(ctx, "must not be null")
  96354. }
  96355. return graphql.Null
  96356. }
  96357. res := resTmp.(string)
  96358. fc.Result = res
  96359. return ec.marshalNID2string(ctx, field.Selections, res)
  96360. }
  96361. func (ec *executionContext) fieldContext_OrderDisputeSummary_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  96362. fc = &graphql.FieldContext{
  96363. Object: "OrderDisputeSummary",
  96364. Field: field,
  96365. IsMethod: false,
  96366. IsResolver: false,
  96367. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  96368. return nil, errors.New("field of type ID does not have child fields")
  96369. },
  96370. }
  96371. return fc, nil
  96372. }
  96373. func (ec *executionContext) _OrderDisputeSummary_initiatedAs(ctx context.Context, field graphql.CollectedField, obj *OrderDisputeSummary) (ret graphql.Marshaler) {
  96374. fc, err := ec.fieldContext_OrderDisputeSummary_initiatedAs(ctx, field)
  96375. if err != nil {
  96376. return graphql.Null
  96377. }
  96378. ctx = graphql.WithFieldContext(ctx, fc)
  96379. defer func() {
  96380. if r := recover(); r != nil {
  96381. ec.Error(ctx, ec.Recover(ctx, r))
  96382. ret = graphql.Null
  96383. }
  96384. }()
  96385. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  96386. ctx = rctx // use context from middleware stack in children
  96387. return obj.InitiatedAs, nil
  96388. })
  96389. if err != nil {
  96390. ec.Error(ctx, err)
  96391. return graphql.Null
  96392. }
  96393. if resTmp == nil {
  96394. if !graphql.HasFieldError(ctx, fc) {
  96395. ec.Errorf(ctx, "must not be null")
  96396. }
  96397. return graphql.Null
  96398. }
  96399. res := resTmp.(DisputeType)
  96400. fc.Result = res
  96401. return ec.marshalNDisputeType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDisputeType(ctx, field.Selections, res)
  96402. }
  96403. func (ec *executionContext) fieldContext_OrderDisputeSummary_initiatedAs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  96404. fc = &graphql.FieldContext{
  96405. Object: "OrderDisputeSummary",
  96406. Field: field,
  96407. IsMethod: false,
  96408. IsResolver: false,
  96409. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  96410. return nil, errors.New("field of type DisputeType does not have child fields")
  96411. },
  96412. }
  96413. return fc, nil
  96414. }
  96415. func (ec *executionContext) _OrderDisputeSummary_status(ctx context.Context, field graphql.CollectedField, obj *OrderDisputeSummary) (ret graphql.Marshaler) {
  96416. fc, err := ec.fieldContext_OrderDisputeSummary_status(ctx, field)
  96417. if err != nil {
  96418. return graphql.Null
  96419. }
  96420. ctx = graphql.WithFieldContext(ctx, fc)
  96421. defer func() {
  96422. if r := recover(); r != nil {
  96423. ec.Error(ctx, ec.Recover(ctx, r))
  96424. ret = graphql.Null
  96425. }
  96426. }()
  96427. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  96428. ctx = rctx // use context from middleware stack in children
  96429. return obj.Status, nil
  96430. })
  96431. if err != nil {
  96432. ec.Error(ctx, err)
  96433. return graphql.Null
  96434. }
  96435. if resTmp == nil {
  96436. if !graphql.HasFieldError(ctx, fc) {
  96437. ec.Errorf(ctx, "must not be null")
  96438. }
  96439. return graphql.Null
  96440. }
  96441. res := resTmp.(DisputeStatus)
  96442. fc.Result = res
  96443. return ec.marshalNDisputeStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDisputeStatus(ctx, field.Selections, res)
  96444. }
  96445. func (ec *executionContext) fieldContext_OrderDisputeSummary_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  96446. fc = &graphql.FieldContext{
  96447. Object: "OrderDisputeSummary",
  96448. Field: field,
  96449. IsMethod: false,
  96450. IsResolver: false,
  96451. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  96452. return nil, errors.New("field of type DisputeStatus does not have child fields")
  96453. },
  96454. }
  96455. return fc, nil
  96456. }
  96457. func (ec *executionContext) _OrderEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *OrderEdge) (ret graphql.Marshaler) {
  96458. fc, err := ec.fieldContext_OrderEdge_cursor(ctx, field)
  96459. if err != nil {
  96460. return graphql.Null
  96461. }
  96462. ctx = graphql.WithFieldContext(ctx, fc)
  96463. defer func() {
  96464. if r := recover(); r != nil {
  96465. ec.Error(ctx, ec.Recover(ctx, r))
  96466. ret = graphql.Null
  96467. }
  96468. }()
  96469. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  96470. ctx = rctx // use context from middleware stack in children
  96471. return obj.Cursor, nil
  96472. })
  96473. if err != nil {
  96474. ec.Error(ctx, err)
  96475. return graphql.Null
  96476. }
  96477. if resTmp == nil {
  96478. if !graphql.HasFieldError(ctx, fc) {
  96479. ec.Errorf(ctx, "must not be null")
  96480. }
  96481. return graphql.Null
  96482. }
  96483. res := resTmp.(string)
  96484. fc.Result = res
  96485. return ec.marshalNString2string(ctx, field.Selections, res)
  96486. }
  96487. func (ec *executionContext) fieldContext_OrderEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  96488. fc = &graphql.FieldContext{
  96489. Object: "OrderEdge",
  96490. Field: field,
  96491. IsMethod: false,
  96492. IsResolver: false,
  96493. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  96494. return nil, errors.New("field of type String does not have child fields")
  96495. },
  96496. }
  96497. return fc, nil
  96498. }
  96499. func (ec *executionContext) _OrderEdge_node(ctx context.Context, field graphql.CollectedField, obj *OrderEdge) (ret graphql.Marshaler) {
  96500. fc, err := ec.fieldContext_OrderEdge_node(ctx, field)
  96501. if err != nil {
  96502. return graphql.Null
  96503. }
  96504. ctx = graphql.WithFieldContext(ctx, fc)
  96505. defer func() {
  96506. if r := recover(); r != nil {
  96507. ec.Error(ctx, ec.Recover(ctx, r))
  96508. ret = graphql.Null
  96509. }
  96510. }()
  96511. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  96512. ctx = rctx // use context from middleware stack in children
  96513. return obj.Node, nil
  96514. })
  96515. if err != nil {
  96516. ec.Error(ctx, err)
  96517. return graphql.Null
  96518. }
  96519. if resTmp == nil {
  96520. if !graphql.HasFieldError(ctx, fc) {
  96521. ec.Errorf(ctx, "must not be null")
  96522. }
  96523. return graphql.Null
  96524. }
  96525. res := resTmp.(*Order)
  96526. fc.Result = res
  96527. return ec.marshalNOrder2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrder(ctx, field.Selections, res)
  96528. }
  96529. func (ec *executionContext) fieldContext_OrderEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  96530. fc = &graphql.FieldContext{
  96531. Object: "OrderEdge",
  96532. Field: field,
  96533. IsMethod: false,
  96534. IsResolver: false,
  96535. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  96536. switch field.Name {
  96537. case "agreements":
  96538. return ec.fieldContext_Order_agreements(ctx, field)
  96539. case "alerts":
  96540. return ec.fieldContext_Order_alerts(ctx, field)
  96541. case "app":
  96542. return ec.fieldContext_Order_app(ctx, field)
  96543. case "billingAddress":
  96544. return ec.fieldContext_Order_billingAddress(ctx, field)
  96545. case "billingAddressMatchesShippingAddress":
  96546. return ec.fieldContext_Order_billingAddressMatchesShippingAddress(ctx, field)
  96547. case "canMarkAsPaid":
  96548. return ec.fieldContext_Order_canMarkAsPaid(ctx, field)
  96549. case "canNotifyCustomer":
  96550. return ec.fieldContext_Order_canNotifyCustomer(ctx, field)
  96551. case "cancelReason":
  96552. return ec.fieldContext_Order_cancelReason(ctx, field)
  96553. case "cancelledAt":
  96554. return ec.fieldContext_Order_cancelledAt(ctx, field)
  96555. case "capturable":
  96556. return ec.fieldContext_Order_capturable(ctx, field)
  96557. case "cartDiscountAmountSet":
  96558. return ec.fieldContext_Order_cartDiscountAmountSet(ctx, field)
  96559. case "channelInformation":
  96560. return ec.fieldContext_Order_channelInformation(ctx, field)
  96561. case "clientIp":
  96562. return ec.fieldContext_Order_clientIp(ctx, field)
  96563. case "closed":
  96564. return ec.fieldContext_Order_closed(ctx, field)
  96565. case "closedAt":
  96566. return ec.fieldContext_Order_closedAt(ctx, field)
  96567. case "confirmed":
  96568. return ec.fieldContext_Order_confirmed(ctx, field)
  96569. case "createdAt":
  96570. return ec.fieldContext_Order_createdAt(ctx, field)
  96571. case "currencyCode":
  96572. return ec.fieldContext_Order_currencyCode(ctx, field)
  96573. case "currentCartDiscountAmountSet":
  96574. return ec.fieldContext_Order_currentCartDiscountAmountSet(ctx, field)
  96575. case "currentSubtotalLineItemsQuantity":
  96576. return ec.fieldContext_Order_currentSubtotalLineItemsQuantity(ctx, field)
  96577. case "currentSubtotalPriceSet":
  96578. return ec.fieldContext_Order_currentSubtotalPriceSet(ctx, field)
  96579. case "currentTaxLines":
  96580. return ec.fieldContext_Order_currentTaxLines(ctx, field)
  96581. case "currentTotalDiscountsSet":
  96582. return ec.fieldContext_Order_currentTotalDiscountsSet(ctx, field)
  96583. case "currentTotalDutiesSet":
  96584. return ec.fieldContext_Order_currentTotalDutiesSet(ctx, field)
  96585. case "currentTotalPriceSet":
  96586. return ec.fieldContext_Order_currentTotalPriceSet(ctx, field)
  96587. case "currentTotalTaxSet":
  96588. return ec.fieldContext_Order_currentTotalTaxSet(ctx, field)
  96589. case "currentTotalWeight":
  96590. return ec.fieldContext_Order_currentTotalWeight(ctx, field)
  96591. case "customAttributes":
  96592. return ec.fieldContext_Order_customAttributes(ctx, field)
  96593. case "customer":
  96594. return ec.fieldContext_Order_customer(ctx, field)
  96595. case "customerAcceptsMarketing":
  96596. return ec.fieldContext_Order_customerAcceptsMarketing(ctx, field)
  96597. case "customerJourneySummary":
  96598. return ec.fieldContext_Order_customerJourneySummary(ctx, field)
  96599. case "customerLocale":
  96600. return ec.fieldContext_Order_customerLocale(ctx, field)
  96601. case "discountApplications":
  96602. return ec.fieldContext_Order_discountApplications(ctx, field)
  96603. case "discountCode":
  96604. return ec.fieldContext_Order_discountCode(ctx, field)
  96605. case "discountCodes":
  96606. return ec.fieldContext_Order_discountCodes(ctx, field)
  96607. case "displayAddress":
  96608. return ec.fieldContext_Order_displayAddress(ctx, field)
  96609. case "displayFinancialStatus":
  96610. return ec.fieldContext_Order_displayFinancialStatus(ctx, field)
  96611. case "displayFulfillmentStatus":
  96612. return ec.fieldContext_Order_displayFulfillmentStatus(ctx, field)
  96613. case "disputes":
  96614. return ec.fieldContext_Order_disputes(ctx, field)
  96615. case "edited":
  96616. return ec.fieldContext_Order_edited(ctx, field)
  96617. case "email":
  96618. return ec.fieldContext_Order_email(ctx, field)
  96619. case "estimatedTaxes":
  96620. return ec.fieldContext_Order_estimatedTaxes(ctx, field)
  96621. case "events":
  96622. return ec.fieldContext_Order_events(ctx, field)
  96623. case "fulfillable":
  96624. return ec.fieldContext_Order_fulfillable(ctx, field)
  96625. case "fulfillmentOrders":
  96626. return ec.fieldContext_Order_fulfillmentOrders(ctx, field)
  96627. case "fulfillments":
  96628. return ec.fieldContext_Order_fulfillments(ctx, field)
  96629. case "fullyPaid":
  96630. return ec.fieldContext_Order_fullyPaid(ctx, field)
  96631. case "hasTimelineComment":
  96632. return ec.fieldContext_Order_hasTimelineComment(ctx, field)
  96633. case "id":
  96634. return ec.fieldContext_Order_id(ctx, field)
  96635. case "legacyResourceId":
  96636. return ec.fieldContext_Order_legacyResourceId(ctx, field)
  96637. case "lineItems":
  96638. return ec.fieldContext_Order_lineItems(ctx, field)
  96639. case "localizationExtensions":
  96640. return ec.fieldContext_Order_localizationExtensions(ctx, field)
  96641. case "merchantEditable":
  96642. return ec.fieldContext_Order_merchantEditable(ctx, field)
  96643. case "merchantEditableErrors":
  96644. return ec.fieldContext_Order_merchantEditableErrors(ctx, field)
  96645. case "merchantOfRecordApp":
  96646. return ec.fieldContext_Order_merchantOfRecordApp(ctx, field)
  96647. case "metafield":
  96648. return ec.fieldContext_Order_metafield(ctx, field)
  96649. case "metafieldDefinitions":
  96650. return ec.fieldContext_Order_metafieldDefinitions(ctx, field)
  96651. case "metafields":
  96652. return ec.fieldContext_Order_metafields(ctx, field)
  96653. case "name":
  96654. return ec.fieldContext_Order_name(ctx, field)
  96655. case "netPaymentSet":
  96656. return ec.fieldContext_Order_netPaymentSet(ctx, field)
  96657. case "nonFulfillableLineItems":
  96658. return ec.fieldContext_Order_nonFulfillableLineItems(ctx, field)
  96659. case "note":
  96660. return ec.fieldContext_Order_note(ctx, field)
  96661. case "originalTotalDutiesSet":
  96662. return ec.fieldContext_Order_originalTotalDutiesSet(ctx, field)
  96663. case "originalTotalPriceSet":
  96664. return ec.fieldContext_Order_originalTotalPriceSet(ctx, field)
  96665. case "paymentCollectionDetails":
  96666. return ec.fieldContext_Order_paymentCollectionDetails(ctx, field)
  96667. case "paymentGatewayNames":
  96668. return ec.fieldContext_Order_paymentGatewayNames(ctx, field)
  96669. case "paymentTerms":
  96670. return ec.fieldContext_Order_paymentTerms(ctx, field)
  96671. case "phone":
  96672. return ec.fieldContext_Order_phone(ctx, field)
  96673. case "physicalLocation":
  96674. return ec.fieldContext_Order_physicalLocation(ctx, field)
  96675. case "presentmentCurrencyCode":
  96676. return ec.fieldContext_Order_presentmentCurrencyCode(ctx, field)
  96677. case "privateMetafield":
  96678. return ec.fieldContext_Order_privateMetafield(ctx, field)
  96679. case "privateMetafields":
  96680. return ec.fieldContext_Order_privateMetafields(ctx, field)
  96681. case "processedAt":
  96682. return ec.fieldContext_Order_processedAt(ctx, field)
  96683. case "publication":
  96684. return ec.fieldContext_Order_publication(ctx, field)
  96685. case "purchasingEntity":
  96686. return ec.fieldContext_Order_purchasingEntity(ctx, field)
  96687. case "refundDiscrepancySet":
  96688. return ec.fieldContext_Order_refundDiscrepancySet(ctx, field)
  96689. case "refundable":
  96690. return ec.fieldContext_Order_refundable(ctx, field)
  96691. case "refunds":
  96692. return ec.fieldContext_Order_refunds(ctx, field)
  96693. case "registeredSourceUrl":
  96694. return ec.fieldContext_Order_registeredSourceUrl(ctx, field)
  96695. case "requiresShipping":
  96696. return ec.fieldContext_Order_requiresShipping(ctx, field)
  96697. case "restockable":
  96698. return ec.fieldContext_Order_restockable(ctx, field)
  96699. case "riskLevel":
  96700. return ec.fieldContext_Order_riskLevel(ctx, field)
  96701. case "risks":
  96702. return ec.fieldContext_Order_risks(ctx, field)
  96703. case "shippingAddress":
  96704. return ec.fieldContext_Order_shippingAddress(ctx, field)
  96705. case "shippingLine":
  96706. return ec.fieldContext_Order_shippingLine(ctx, field)
  96707. case "shippingLines":
  96708. return ec.fieldContext_Order_shippingLines(ctx, field)
  96709. case "sourceIdentifier":
  96710. return ec.fieldContext_Order_sourceIdentifier(ctx, field)
  96711. case "subtotalLineItemsQuantity":
  96712. return ec.fieldContext_Order_subtotalLineItemsQuantity(ctx, field)
  96713. case "subtotalPriceSet":
  96714. return ec.fieldContext_Order_subtotalPriceSet(ctx, field)
  96715. case "suggestedRefund":
  96716. return ec.fieldContext_Order_suggestedRefund(ctx, field)
  96717. case "tags":
  96718. return ec.fieldContext_Order_tags(ctx, field)
  96719. case "taxLines":
  96720. return ec.fieldContext_Order_taxLines(ctx, field)
  96721. case "taxesIncluded":
  96722. return ec.fieldContext_Order_taxesIncluded(ctx, field)
  96723. case "test":
  96724. return ec.fieldContext_Order_test(ctx, field)
  96725. case "totalCapturableSet":
  96726. return ec.fieldContext_Order_totalCapturableSet(ctx, field)
  96727. case "totalDiscountsSet":
  96728. return ec.fieldContext_Order_totalDiscountsSet(ctx, field)
  96729. case "totalOutstandingSet":
  96730. return ec.fieldContext_Order_totalOutstandingSet(ctx, field)
  96731. case "totalPriceSet":
  96732. return ec.fieldContext_Order_totalPriceSet(ctx, field)
  96733. case "totalReceivedSet":
  96734. return ec.fieldContext_Order_totalReceivedSet(ctx, field)
  96735. case "totalRefundedSet":
  96736. return ec.fieldContext_Order_totalRefundedSet(ctx, field)
  96737. case "totalRefundedShippingSet":
  96738. return ec.fieldContext_Order_totalRefundedShippingSet(ctx, field)
  96739. case "totalShippingPriceSet":
  96740. return ec.fieldContext_Order_totalShippingPriceSet(ctx, field)
  96741. case "totalTaxSet":
  96742. return ec.fieldContext_Order_totalTaxSet(ctx, field)
  96743. case "totalTipReceivedSet":
  96744. return ec.fieldContext_Order_totalTipReceivedSet(ctx, field)
  96745. case "totalWeight":
  96746. return ec.fieldContext_Order_totalWeight(ctx, field)
  96747. case "transactions":
  96748. return ec.fieldContext_Order_transactions(ctx, field)
  96749. case "unpaid":
  96750. return ec.fieldContext_Order_unpaid(ctx, field)
  96751. case "updatedAt":
  96752. return ec.fieldContext_Order_updatedAt(ctx, field)
  96753. }
  96754. return nil, fmt.Errorf("no field named %q was found under type Order", field.Name)
  96755. },
  96756. }
  96757. return fc, nil
  96758. }
  96759. func (ec *executionContext) _OrderPaymentCollectionDetails_additionalPaymentCollectionUrl(ctx context.Context, field graphql.CollectedField, obj *OrderPaymentCollectionDetails) (ret graphql.Marshaler) {
  96760. fc, err := ec.fieldContext_OrderPaymentCollectionDetails_additionalPaymentCollectionUrl(ctx, field)
  96761. if err != nil {
  96762. return graphql.Null
  96763. }
  96764. ctx = graphql.WithFieldContext(ctx, fc)
  96765. defer func() {
  96766. if r := recover(); r != nil {
  96767. ec.Error(ctx, ec.Recover(ctx, r))
  96768. ret = graphql.Null
  96769. }
  96770. }()
  96771. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  96772. ctx = rctx // use context from middleware stack in children
  96773. return obj.AdditionalPaymentCollectionURL, nil
  96774. })
  96775. if err != nil {
  96776. ec.Error(ctx, err)
  96777. return graphql.Null
  96778. }
  96779. if resTmp == nil {
  96780. return graphql.Null
  96781. }
  96782. res := resTmp.(*string)
  96783. fc.Result = res
  96784. return ec.marshalOURL2ᚖstring(ctx, field.Selections, res)
  96785. }
  96786. func (ec *executionContext) fieldContext_OrderPaymentCollectionDetails_additionalPaymentCollectionUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  96787. fc = &graphql.FieldContext{
  96788. Object: "OrderPaymentCollectionDetails",
  96789. Field: field,
  96790. IsMethod: false,
  96791. IsResolver: false,
  96792. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  96793. return nil, errors.New("field of type URL does not have child fields")
  96794. },
  96795. }
  96796. return fc, nil
  96797. }
  96798. func (ec *executionContext) _OrderPaymentCollectionDetails_vaultedPaymentMethods(ctx context.Context, field graphql.CollectedField, obj *OrderPaymentCollectionDetails) (ret graphql.Marshaler) {
  96799. fc, err := ec.fieldContext_OrderPaymentCollectionDetails_vaultedPaymentMethods(ctx, field)
  96800. if err != nil {
  96801. return graphql.Null
  96802. }
  96803. ctx = graphql.WithFieldContext(ctx, fc)
  96804. defer func() {
  96805. if r := recover(); r != nil {
  96806. ec.Error(ctx, ec.Recover(ctx, r))
  96807. ret = graphql.Null
  96808. }
  96809. }()
  96810. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  96811. ctx = rctx // use context from middleware stack in children
  96812. return obj.VaultedPaymentMethods, nil
  96813. })
  96814. if err != nil {
  96815. ec.Error(ctx, err)
  96816. return graphql.Null
  96817. }
  96818. if resTmp == nil {
  96819. return graphql.Null
  96820. }
  96821. res := resTmp.([]*PaymentMandate)
  96822. fc.Result = res
  96823. return ec.marshalOPaymentMandate2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentMandateᚄ(ctx, field.Selections, res)
  96824. }
  96825. func (ec *executionContext) fieldContext_OrderPaymentCollectionDetails_vaultedPaymentMethods(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  96826. fc = &graphql.FieldContext{
  96827. Object: "OrderPaymentCollectionDetails",
  96828. Field: field,
  96829. IsMethod: false,
  96830. IsResolver: false,
  96831. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  96832. switch field.Name {
  96833. case "id":
  96834. return ec.fieldContext_PaymentMandate_id(ctx, field)
  96835. case "paymentInstrument":
  96836. return ec.fieldContext_PaymentMandate_paymentInstrument(ctx, field)
  96837. }
  96838. return nil, fmt.Errorf("no field named %q was found under type PaymentMandate", field.Name)
  96839. },
  96840. }
  96841. return fc, nil
  96842. }
  96843. func (ec *executionContext) _OrderRisk_display(ctx context.Context, field graphql.CollectedField, obj *OrderRisk) (ret graphql.Marshaler) {
  96844. fc, err := ec.fieldContext_OrderRisk_display(ctx, field)
  96845. if err != nil {
  96846. return graphql.Null
  96847. }
  96848. ctx = graphql.WithFieldContext(ctx, fc)
  96849. defer func() {
  96850. if r := recover(); r != nil {
  96851. ec.Error(ctx, ec.Recover(ctx, r))
  96852. ret = graphql.Null
  96853. }
  96854. }()
  96855. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  96856. ctx = rctx // use context from middleware stack in children
  96857. return obj.Display, nil
  96858. })
  96859. if err != nil {
  96860. ec.Error(ctx, err)
  96861. return graphql.Null
  96862. }
  96863. if resTmp == nil {
  96864. if !graphql.HasFieldError(ctx, fc) {
  96865. ec.Errorf(ctx, "must not be null")
  96866. }
  96867. return graphql.Null
  96868. }
  96869. res := resTmp.(bool)
  96870. fc.Result = res
  96871. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  96872. }
  96873. func (ec *executionContext) fieldContext_OrderRisk_display(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  96874. fc = &graphql.FieldContext{
  96875. Object: "OrderRisk",
  96876. Field: field,
  96877. IsMethod: false,
  96878. IsResolver: false,
  96879. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  96880. return nil, errors.New("field of type Boolean does not have child fields")
  96881. },
  96882. }
  96883. return fc, nil
  96884. }
  96885. func (ec *executionContext) _OrderRisk_level(ctx context.Context, field graphql.CollectedField, obj *OrderRisk) (ret graphql.Marshaler) {
  96886. fc, err := ec.fieldContext_OrderRisk_level(ctx, field)
  96887. if err != nil {
  96888. return graphql.Null
  96889. }
  96890. ctx = graphql.WithFieldContext(ctx, fc)
  96891. defer func() {
  96892. if r := recover(); r != nil {
  96893. ec.Error(ctx, ec.Recover(ctx, r))
  96894. ret = graphql.Null
  96895. }
  96896. }()
  96897. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  96898. ctx = rctx // use context from middleware stack in children
  96899. return obj.Level, nil
  96900. })
  96901. if err != nil {
  96902. ec.Error(ctx, err)
  96903. return graphql.Null
  96904. }
  96905. if resTmp == nil {
  96906. return graphql.Null
  96907. }
  96908. res := resTmp.(*OrderRiskLevel)
  96909. fc.Result = res
  96910. return ec.marshalOOrderRiskLevel2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderRiskLevel(ctx, field.Selections, res)
  96911. }
  96912. func (ec *executionContext) fieldContext_OrderRisk_level(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  96913. fc = &graphql.FieldContext{
  96914. Object: "OrderRisk",
  96915. Field: field,
  96916. IsMethod: false,
  96917. IsResolver: false,
  96918. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  96919. return nil, errors.New("field of type OrderRiskLevel does not have child fields")
  96920. },
  96921. }
  96922. return fc, nil
  96923. }
  96924. func (ec *executionContext) _OrderRisk_message(ctx context.Context, field graphql.CollectedField, obj *OrderRisk) (ret graphql.Marshaler) {
  96925. fc, err := ec.fieldContext_OrderRisk_message(ctx, field)
  96926. if err != nil {
  96927. return graphql.Null
  96928. }
  96929. ctx = graphql.WithFieldContext(ctx, fc)
  96930. defer func() {
  96931. if r := recover(); r != nil {
  96932. ec.Error(ctx, ec.Recover(ctx, r))
  96933. ret = graphql.Null
  96934. }
  96935. }()
  96936. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  96937. ctx = rctx // use context from middleware stack in children
  96938. return obj.Message, nil
  96939. })
  96940. if err != nil {
  96941. ec.Error(ctx, err)
  96942. return graphql.Null
  96943. }
  96944. if resTmp == nil {
  96945. return graphql.Null
  96946. }
  96947. res := resTmp.(*string)
  96948. fc.Result = res
  96949. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  96950. }
  96951. func (ec *executionContext) fieldContext_OrderRisk_message(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  96952. fc = &graphql.FieldContext{
  96953. Object: "OrderRisk",
  96954. Field: field,
  96955. IsMethod: false,
  96956. IsResolver: false,
  96957. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  96958. return nil, errors.New("field of type String does not have child fields")
  96959. },
  96960. }
  96961. return fc, nil
  96962. }
  96963. func (ec *executionContext) _OrderTransaction_accountNumber(ctx context.Context, field graphql.CollectedField, obj *OrderTransaction) (ret graphql.Marshaler) {
  96964. fc, err := ec.fieldContext_OrderTransaction_accountNumber(ctx, field)
  96965. if err != nil {
  96966. return graphql.Null
  96967. }
  96968. ctx = graphql.WithFieldContext(ctx, fc)
  96969. defer func() {
  96970. if r := recover(); r != nil {
  96971. ec.Error(ctx, ec.Recover(ctx, r))
  96972. ret = graphql.Null
  96973. }
  96974. }()
  96975. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  96976. ctx = rctx // use context from middleware stack in children
  96977. return obj.AccountNumber, nil
  96978. })
  96979. if err != nil {
  96980. ec.Error(ctx, err)
  96981. return graphql.Null
  96982. }
  96983. if resTmp == nil {
  96984. return graphql.Null
  96985. }
  96986. res := resTmp.(*string)
  96987. fc.Result = res
  96988. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  96989. }
  96990. func (ec *executionContext) fieldContext_OrderTransaction_accountNumber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  96991. fc = &graphql.FieldContext{
  96992. Object: "OrderTransaction",
  96993. Field: field,
  96994. IsMethod: false,
  96995. IsResolver: false,
  96996. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  96997. return nil, errors.New("field of type String does not have child fields")
  96998. },
  96999. }
  97000. return fc, nil
  97001. }
  97002. func (ec *executionContext) _OrderTransaction_amountSet(ctx context.Context, field graphql.CollectedField, obj *OrderTransaction) (ret graphql.Marshaler) {
  97003. fc, err := ec.fieldContext_OrderTransaction_amountSet(ctx, field)
  97004. if err != nil {
  97005. return graphql.Null
  97006. }
  97007. ctx = graphql.WithFieldContext(ctx, fc)
  97008. defer func() {
  97009. if r := recover(); r != nil {
  97010. ec.Error(ctx, ec.Recover(ctx, r))
  97011. ret = graphql.Null
  97012. }
  97013. }()
  97014. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  97015. ctx = rctx // use context from middleware stack in children
  97016. return obj.AmountSet, nil
  97017. })
  97018. if err != nil {
  97019. ec.Error(ctx, err)
  97020. return graphql.Null
  97021. }
  97022. if resTmp == nil {
  97023. if !graphql.HasFieldError(ctx, fc) {
  97024. ec.Errorf(ctx, "must not be null")
  97025. }
  97026. return graphql.Null
  97027. }
  97028. res := resTmp.(*MoneyBag)
  97029. fc.Result = res
  97030. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  97031. }
  97032. func (ec *executionContext) fieldContext_OrderTransaction_amountSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  97033. fc = &graphql.FieldContext{
  97034. Object: "OrderTransaction",
  97035. Field: field,
  97036. IsMethod: false,
  97037. IsResolver: false,
  97038. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  97039. switch field.Name {
  97040. case "presentmentMoney":
  97041. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  97042. case "shopMoney":
  97043. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  97044. }
  97045. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  97046. },
  97047. }
  97048. return fc, nil
  97049. }
  97050. func (ec *executionContext) _OrderTransaction_authorizationCode(ctx context.Context, field graphql.CollectedField, obj *OrderTransaction) (ret graphql.Marshaler) {
  97051. fc, err := ec.fieldContext_OrderTransaction_authorizationCode(ctx, field)
  97052. if err != nil {
  97053. return graphql.Null
  97054. }
  97055. ctx = graphql.WithFieldContext(ctx, fc)
  97056. defer func() {
  97057. if r := recover(); r != nil {
  97058. ec.Error(ctx, ec.Recover(ctx, r))
  97059. ret = graphql.Null
  97060. }
  97061. }()
  97062. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  97063. ctx = rctx // use context from middleware stack in children
  97064. return obj.AuthorizationCode, nil
  97065. })
  97066. if err != nil {
  97067. ec.Error(ctx, err)
  97068. return graphql.Null
  97069. }
  97070. if resTmp == nil {
  97071. return graphql.Null
  97072. }
  97073. res := resTmp.(*string)
  97074. fc.Result = res
  97075. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  97076. }
  97077. func (ec *executionContext) fieldContext_OrderTransaction_authorizationCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  97078. fc = &graphql.FieldContext{
  97079. Object: "OrderTransaction",
  97080. Field: field,
  97081. IsMethod: false,
  97082. IsResolver: false,
  97083. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  97084. return nil, errors.New("field of type String does not have child fields")
  97085. },
  97086. }
  97087. return fc, nil
  97088. }
  97089. func (ec *executionContext) _OrderTransaction_authorizationExpiresAt(ctx context.Context, field graphql.CollectedField, obj *OrderTransaction) (ret graphql.Marshaler) {
  97090. fc, err := ec.fieldContext_OrderTransaction_authorizationExpiresAt(ctx, field)
  97091. if err != nil {
  97092. return graphql.Null
  97093. }
  97094. ctx = graphql.WithFieldContext(ctx, fc)
  97095. defer func() {
  97096. if r := recover(); r != nil {
  97097. ec.Error(ctx, ec.Recover(ctx, r))
  97098. ret = graphql.Null
  97099. }
  97100. }()
  97101. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  97102. ctx = rctx // use context from middleware stack in children
  97103. return obj.AuthorizationExpiresAt, nil
  97104. })
  97105. if err != nil {
  97106. ec.Error(ctx, err)
  97107. return graphql.Null
  97108. }
  97109. if resTmp == nil {
  97110. return graphql.Null
  97111. }
  97112. res := resTmp.(*string)
  97113. fc.Result = res
  97114. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  97115. }
  97116. func (ec *executionContext) fieldContext_OrderTransaction_authorizationExpiresAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  97117. fc = &graphql.FieldContext{
  97118. Object: "OrderTransaction",
  97119. Field: field,
  97120. IsMethod: false,
  97121. IsResolver: false,
  97122. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  97123. return nil, errors.New("field of type DateTime does not have child fields")
  97124. },
  97125. }
  97126. return fc, nil
  97127. }
  97128. func (ec *executionContext) _OrderTransaction_createdAt(ctx context.Context, field graphql.CollectedField, obj *OrderTransaction) (ret graphql.Marshaler) {
  97129. fc, err := ec.fieldContext_OrderTransaction_createdAt(ctx, field)
  97130. if err != nil {
  97131. return graphql.Null
  97132. }
  97133. ctx = graphql.WithFieldContext(ctx, fc)
  97134. defer func() {
  97135. if r := recover(); r != nil {
  97136. ec.Error(ctx, ec.Recover(ctx, r))
  97137. ret = graphql.Null
  97138. }
  97139. }()
  97140. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  97141. ctx = rctx // use context from middleware stack in children
  97142. return obj.CreatedAt, nil
  97143. })
  97144. if err != nil {
  97145. ec.Error(ctx, err)
  97146. return graphql.Null
  97147. }
  97148. if resTmp == nil {
  97149. if !graphql.HasFieldError(ctx, fc) {
  97150. ec.Errorf(ctx, "must not be null")
  97151. }
  97152. return graphql.Null
  97153. }
  97154. res := resTmp.(string)
  97155. fc.Result = res
  97156. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  97157. }
  97158. func (ec *executionContext) fieldContext_OrderTransaction_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  97159. fc = &graphql.FieldContext{
  97160. Object: "OrderTransaction",
  97161. Field: field,
  97162. IsMethod: false,
  97163. IsResolver: false,
  97164. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  97165. return nil, errors.New("field of type DateTime does not have child fields")
  97166. },
  97167. }
  97168. return fc, nil
  97169. }
  97170. func (ec *executionContext) _OrderTransaction_errorCode(ctx context.Context, field graphql.CollectedField, obj *OrderTransaction) (ret graphql.Marshaler) {
  97171. fc, err := ec.fieldContext_OrderTransaction_errorCode(ctx, field)
  97172. if err != nil {
  97173. return graphql.Null
  97174. }
  97175. ctx = graphql.WithFieldContext(ctx, fc)
  97176. defer func() {
  97177. if r := recover(); r != nil {
  97178. ec.Error(ctx, ec.Recover(ctx, r))
  97179. ret = graphql.Null
  97180. }
  97181. }()
  97182. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  97183. ctx = rctx // use context from middleware stack in children
  97184. return obj.ErrorCode, nil
  97185. })
  97186. if err != nil {
  97187. ec.Error(ctx, err)
  97188. return graphql.Null
  97189. }
  97190. if resTmp == nil {
  97191. return graphql.Null
  97192. }
  97193. res := resTmp.(*OrderTransactionErrorCode)
  97194. fc.Result = res
  97195. return ec.marshalOOrderTransactionErrorCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderTransactionErrorCode(ctx, field.Selections, res)
  97196. }
  97197. func (ec *executionContext) fieldContext_OrderTransaction_errorCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  97198. fc = &graphql.FieldContext{
  97199. Object: "OrderTransaction",
  97200. Field: field,
  97201. IsMethod: false,
  97202. IsResolver: false,
  97203. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  97204. return nil, errors.New("field of type OrderTransactionErrorCode does not have child fields")
  97205. },
  97206. }
  97207. return fc, nil
  97208. }
  97209. func (ec *executionContext) _OrderTransaction_fees(ctx context.Context, field graphql.CollectedField, obj *OrderTransaction) (ret graphql.Marshaler) {
  97210. fc, err := ec.fieldContext_OrderTransaction_fees(ctx, field)
  97211. if err != nil {
  97212. return graphql.Null
  97213. }
  97214. ctx = graphql.WithFieldContext(ctx, fc)
  97215. defer func() {
  97216. if r := recover(); r != nil {
  97217. ec.Error(ctx, ec.Recover(ctx, r))
  97218. ret = graphql.Null
  97219. }
  97220. }()
  97221. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  97222. ctx = rctx // use context from middleware stack in children
  97223. return obj.Fees, nil
  97224. })
  97225. if err != nil {
  97226. ec.Error(ctx, err)
  97227. return graphql.Null
  97228. }
  97229. if resTmp == nil {
  97230. if !graphql.HasFieldError(ctx, fc) {
  97231. ec.Errorf(ctx, "must not be null")
  97232. }
  97233. return graphql.Null
  97234. }
  97235. res := resTmp.([]*TransactionFee)
  97236. fc.Result = res
  97237. return ec.marshalNTransactionFee2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐTransactionFeeᚄ(ctx, field.Selections, res)
  97238. }
  97239. func (ec *executionContext) fieldContext_OrderTransaction_fees(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  97240. fc = &graphql.FieldContext{
  97241. Object: "OrderTransaction",
  97242. Field: field,
  97243. IsMethod: false,
  97244. IsResolver: false,
  97245. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  97246. switch field.Name {
  97247. case "amount":
  97248. return ec.fieldContext_TransactionFee_amount(ctx, field)
  97249. case "flatFee":
  97250. return ec.fieldContext_TransactionFee_flatFee(ctx, field)
  97251. case "flatFeeName":
  97252. return ec.fieldContext_TransactionFee_flatFeeName(ctx, field)
  97253. case "id":
  97254. return ec.fieldContext_TransactionFee_id(ctx, field)
  97255. case "rate":
  97256. return ec.fieldContext_TransactionFee_rate(ctx, field)
  97257. case "rateName":
  97258. return ec.fieldContext_TransactionFee_rateName(ctx, field)
  97259. case "taxAmount":
  97260. return ec.fieldContext_TransactionFee_taxAmount(ctx, field)
  97261. case "type":
  97262. return ec.fieldContext_TransactionFee_type(ctx, field)
  97263. }
  97264. return nil, fmt.Errorf("no field named %q was found under type TransactionFee", field.Name)
  97265. },
  97266. }
  97267. return fc, nil
  97268. }
  97269. func (ec *executionContext) _OrderTransaction_formattedGateway(ctx context.Context, field graphql.CollectedField, obj *OrderTransaction) (ret graphql.Marshaler) {
  97270. fc, err := ec.fieldContext_OrderTransaction_formattedGateway(ctx, field)
  97271. if err != nil {
  97272. return graphql.Null
  97273. }
  97274. ctx = graphql.WithFieldContext(ctx, fc)
  97275. defer func() {
  97276. if r := recover(); r != nil {
  97277. ec.Error(ctx, ec.Recover(ctx, r))
  97278. ret = graphql.Null
  97279. }
  97280. }()
  97281. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  97282. ctx = rctx // use context from middleware stack in children
  97283. return obj.FormattedGateway, nil
  97284. })
  97285. if err != nil {
  97286. ec.Error(ctx, err)
  97287. return graphql.Null
  97288. }
  97289. if resTmp == nil {
  97290. return graphql.Null
  97291. }
  97292. res := resTmp.(*string)
  97293. fc.Result = res
  97294. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  97295. }
  97296. func (ec *executionContext) fieldContext_OrderTransaction_formattedGateway(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  97297. fc = &graphql.FieldContext{
  97298. Object: "OrderTransaction",
  97299. Field: field,
  97300. IsMethod: false,
  97301. IsResolver: false,
  97302. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  97303. return nil, errors.New("field of type String does not have child fields")
  97304. },
  97305. }
  97306. return fc, nil
  97307. }
  97308. func (ec *executionContext) _OrderTransaction_gateway(ctx context.Context, field graphql.CollectedField, obj *OrderTransaction) (ret graphql.Marshaler) {
  97309. fc, err := ec.fieldContext_OrderTransaction_gateway(ctx, field)
  97310. if err != nil {
  97311. return graphql.Null
  97312. }
  97313. ctx = graphql.WithFieldContext(ctx, fc)
  97314. defer func() {
  97315. if r := recover(); r != nil {
  97316. ec.Error(ctx, ec.Recover(ctx, r))
  97317. ret = graphql.Null
  97318. }
  97319. }()
  97320. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  97321. ctx = rctx // use context from middleware stack in children
  97322. return obj.Gateway, nil
  97323. })
  97324. if err != nil {
  97325. ec.Error(ctx, err)
  97326. return graphql.Null
  97327. }
  97328. if resTmp == nil {
  97329. return graphql.Null
  97330. }
  97331. res := resTmp.(*string)
  97332. fc.Result = res
  97333. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  97334. }
  97335. func (ec *executionContext) fieldContext_OrderTransaction_gateway(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  97336. fc = &graphql.FieldContext{
  97337. Object: "OrderTransaction",
  97338. Field: field,
  97339. IsMethod: false,
  97340. IsResolver: false,
  97341. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  97342. return nil, errors.New("field of type String does not have child fields")
  97343. },
  97344. }
  97345. return fc, nil
  97346. }
  97347. func (ec *executionContext) _OrderTransaction_id(ctx context.Context, field graphql.CollectedField, obj *OrderTransaction) (ret graphql.Marshaler) {
  97348. fc, err := ec.fieldContext_OrderTransaction_id(ctx, field)
  97349. if err != nil {
  97350. return graphql.Null
  97351. }
  97352. ctx = graphql.WithFieldContext(ctx, fc)
  97353. defer func() {
  97354. if r := recover(); r != nil {
  97355. ec.Error(ctx, ec.Recover(ctx, r))
  97356. ret = graphql.Null
  97357. }
  97358. }()
  97359. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  97360. ctx = rctx // use context from middleware stack in children
  97361. return obj.ID, nil
  97362. })
  97363. if err != nil {
  97364. ec.Error(ctx, err)
  97365. return graphql.Null
  97366. }
  97367. if resTmp == nil {
  97368. if !graphql.HasFieldError(ctx, fc) {
  97369. ec.Errorf(ctx, "must not be null")
  97370. }
  97371. return graphql.Null
  97372. }
  97373. res := resTmp.(string)
  97374. fc.Result = res
  97375. return ec.marshalNID2string(ctx, field.Selections, res)
  97376. }
  97377. func (ec *executionContext) fieldContext_OrderTransaction_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  97378. fc = &graphql.FieldContext{
  97379. Object: "OrderTransaction",
  97380. Field: field,
  97381. IsMethod: false,
  97382. IsResolver: false,
  97383. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  97384. return nil, errors.New("field of type ID does not have child fields")
  97385. },
  97386. }
  97387. return fc, nil
  97388. }
  97389. func (ec *executionContext) _OrderTransaction_kind(ctx context.Context, field graphql.CollectedField, obj *OrderTransaction) (ret graphql.Marshaler) {
  97390. fc, err := ec.fieldContext_OrderTransaction_kind(ctx, field)
  97391. if err != nil {
  97392. return graphql.Null
  97393. }
  97394. ctx = graphql.WithFieldContext(ctx, fc)
  97395. defer func() {
  97396. if r := recover(); r != nil {
  97397. ec.Error(ctx, ec.Recover(ctx, r))
  97398. ret = graphql.Null
  97399. }
  97400. }()
  97401. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  97402. ctx = rctx // use context from middleware stack in children
  97403. return obj.Kind, nil
  97404. })
  97405. if err != nil {
  97406. ec.Error(ctx, err)
  97407. return graphql.Null
  97408. }
  97409. if resTmp == nil {
  97410. if !graphql.HasFieldError(ctx, fc) {
  97411. ec.Errorf(ctx, "must not be null")
  97412. }
  97413. return graphql.Null
  97414. }
  97415. res := resTmp.(OrderTransactionKind)
  97416. fc.Result = res
  97417. return ec.marshalNOrderTransactionKind2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderTransactionKind(ctx, field.Selections, res)
  97418. }
  97419. func (ec *executionContext) fieldContext_OrderTransaction_kind(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  97420. fc = &graphql.FieldContext{
  97421. Object: "OrderTransaction",
  97422. Field: field,
  97423. IsMethod: false,
  97424. IsResolver: false,
  97425. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  97426. return nil, errors.New("field of type OrderTransactionKind does not have child fields")
  97427. },
  97428. }
  97429. return fc, nil
  97430. }
  97431. func (ec *executionContext) _OrderTransaction_manuallyCapturable(ctx context.Context, field graphql.CollectedField, obj *OrderTransaction) (ret graphql.Marshaler) {
  97432. fc, err := ec.fieldContext_OrderTransaction_manuallyCapturable(ctx, field)
  97433. if err != nil {
  97434. return graphql.Null
  97435. }
  97436. ctx = graphql.WithFieldContext(ctx, fc)
  97437. defer func() {
  97438. if r := recover(); r != nil {
  97439. ec.Error(ctx, ec.Recover(ctx, r))
  97440. ret = graphql.Null
  97441. }
  97442. }()
  97443. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  97444. ctx = rctx // use context from middleware stack in children
  97445. return obj.ManuallyCapturable, nil
  97446. })
  97447. if err != nil {
  97448. ec.Error(ctx, err)
  97449. return graphql.Null
  97450. }
  97451. if resTmp == nil {
  97452. if !graphql.HasFieldError(ctx, fc) {
  97453. ec.Errorf(ctx, "must not be null")
  97454. }
  97455. return graphql.Null
  97456. }
  97457. res := resTmp.(bool)
  97458. fc.Result = res
  97459. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  97460. }
  97461. func (ec *executionContext) fieldContext_OrderTransaction_manuallyCapturable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  97462. fc = &graphql.FieldContext{
  97463. Object: "OrderTransaction",
  97464. Field: field,
  97465. IsMethod: false,
  97466. IsResolver: false,
  97467. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  97468. return nil, errors.New("field of type Boolean does not have child fields")
  97469. },
  97470. }
  97471. return fc, nil
  97472. }
  97473. func (ec *executionContext) _OrderTransaction_maximumRefundableV2(ctx context.Context, field graphql.CollectedField, obj *OrderTransaction) (ret graphql.Marshaler) {
  97474. fc, err := ec.fieldContext_OrderTransaction_maximumRefundableV2(ctx, field)
  97475. if err != nil {
  97476. return graphql.Null
  97477. }
  97478. ctx = graphql.WithFieldContext(ctx, fc)
  97479. defer func() {
  97480. if r := recover(); r != nil {
  97481. ec.Error(ctx, ec.Recover(ctx, r))
  97482. ret = graphql.Null
  97483. }
  97484. }()
  97485. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  97486. ctx = rctx // use context from middleware stack in children
  97487. return obj.MaximumRefundableV2, nil
  97488. })
  97489. if err != nil {
  97490. ec.Error(ctx, err)
  97491. return graphql.Null
  97492. }
  97493. if resTmp == nil {
  97494. return graphql.Null
  97495. }
  97496. res := resTmp.(*MoneyV2)
  97497. fc.Result = res
  97498. return ec.marshalOMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  97499. }
  97500. func (ec *executionContext) fieldContext_OrderTransaction_maximumRefundableV2(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  97501. fc = &graphql.FieldContext{
  97502. Object: "OrderTransaction",
  97503. Field: field,
  97504. IsMethod: false,
  97505. IsResolver: false,
  97506. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  97507. switch field.Name {
  97508. case "amount":
  97509. return ec.fieldContext_MoneyV2_amount(ctx, field)
  97510. case "currencyCode":
  97511. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  97512. }
  97513. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  97514. },
  97515. }
  97516. return fc, nil
  97517. }
  97518. func (ec *executionContext) _OrderTransaction_order(ctx context.Context, field graphql.CollectedField, obj *OrderTransaction) (ret graphql.Marshaler) {
  97519. fc, err := ec.fieldContext_OrderTransaction_order(ctx, field)
  97520. if err != nil {
  97521. return graphql.Null
  97522. }
  97523. ctx = graphql.WithFieldContext(ctx, fc)
  97524. defer func() {
  97525. if r := recover(); r != nil {
  97526. ec.Error(ctx, ec.Recover(ctx, r))
  97527. ret = graphql.Null
  97528. }
  97529. }()
  97530. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  97531. ctx = rctx // use context from middleware stack in children
  97532. return obj.Order, nil
  97533. })
  97534. if err != nil {
  97535. ec.Error(ctx, err)
  97536. return graphql.Null
  97537. }
  97538. if resTmp == nil {
  97539. return graphql.Null
  97540. }
  97541. res := resTmp.(*Order)
  97542. fc.Result = res
  97543. return ec.marshalOOrder2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrder(ctx, field.Selections, res)
  97544. }
  97545. func (ec *executionContext) fieldContext_OrderTransaction_order(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  97546. fc = &graphql.FieldContext{
  97547. Object: "OrderTransaction",
  97548. Field: field,
  97549. IsMethod: false,
  97550. IsResolver: false,
  97551. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  97552. switch field.Name {
  97553. case "agreements":
  97554. return ec.fieldContext_Order_agreements(ctx, field)
  97555. case "alerts":
  97556. return ec.fieldContext_Order_alerts(ctx, field)
  97557. case "app":
  97558. return ec.fieldContext_Order_app(ctx, field)
  97559. case "billingAddress":
  97560. return ec.fieldContext_Order_billingAddress(ctx, field)
  97561. case "billingAddressMatchesShippingAddress":
  97562. return ec.fieldContext_Order_billingAddressMatchesShippingAddress(ctx, field)
  97563. case "canMarkAsPaid":
  97564. return ec.fieldContext_Order_canMarkAsPaid(ctx, field)
  97565. case "canNotifyCustomer":
  97566. return ec.fieldContext_Order_canNotifyCustomer(ctx, field)
  97567. case "cancelReason":
  97568. return ec.fieldContext_Order_cancelReason(ctx, field)
  97569. case "cancelledAt":
  97570. return ec.fieldContext_Order_cancelledAt(ctx, field)
  97571. case "capturable":
  97572. return ec.fieldContext_Order_capturable(ctx, field)
  97573. case "cartDiscountAmountSet":
  97574. return ec.fieldContext_Order_cartDiscountAmountSet(ctx, field)
  97575. case "channelInformation":
  97576. return ec.fieldContext_Order_channelInformation(ctx, field)
  97577. case "clientIp":
  97578. return ec.fieldContext_Order_clientIp(ctx, field)
  97579. case "closed":
  97580. return ec.fieldContext_Order_closed(ctx, field)
  97581. case "closedAt":
  97582. return ec.fieldContext_Order_closedAt(ctx, field)
  97583. case "confirmed":
  97584. return ec.fieldContext_Order_confirmed(ctx, field)
  97585. case "createdAt":
  97586. return ec.fieldContext_Order_createdAt(ctx, field)
  97587. case "currencyCode":
  97588. return ec.fieldContext_Order_currencyCode(ctx, field)
  97589. case "currentCartDiscountAmountSet":
  97590. return ec.fieldContext_Order_currentCartDiscountAmountSet(ctx, field)
  97591. case "currentSubtotalLineItemsQuantity":
  97592. return ec.fieldContext_Order_currentSubtotalLineItemsQuantity(ctx, field)
  97593. case "currentSubtotalPriceSet":
  97594. return ec.fieldContext_Order_currentSubtotalPriceSet(ctx, field)
  97595. case "currentTaxLines":
  97596. return ec.fieldContext_Order_currentTaxLines(ctx, field)
  97597. case "currentTotalDiscountsSet":
  97598. return ec.fieldContext_Order_currentTotalDiscountsSet(ctx, field)
  97599. case "currentTotalDutiesSet":
  97600. return ec.fieldContext_Order_currentTotalDutiesSet(ctx, field)
  97601. case "currentTotalPriceSet":
  97602. return ec.fieldContext_Order_currentTotalPriceSet(ctx, field)
  97603. case "currentTotalTaxSet":
  97604. return ec.fieldContext_Order_currentTotalTaxSet(ctx, field)
  97605. case "currentTotalWeight":
  97606. return ec.fieldContext_Order_currentTotalWeight(ctx, field)
  97607. case "customAttributes":
  97608. return ec.fieldContext_Order_customAttributes(ctx, field)
  97609. case "customer":
  97610. return ec.fieldContext_Order_customer(ctx, field)
  97611. case "customerAcceptsMarketing":
  97612. return ec.fieldContext_Order_customerAcceptsMarketing(ctx, field)
  97613. case "customerJourneySummary":
  97614. return ec.fieldContext_Order_customerJourneySummary(ctx, field)
  97615. case "customerLocale":
  97616. return ec.fieldContext_Order_customerLocale(ctx, field)
  97617. case "discountApplications":
  97618. return ec.fieldContext_Order_discountApplications(ctx, field)
  97619. case "discountCode":
  97620. return ec.fieldContext_Order_discountCode(ctx, field)
  97621. case "discountCodes":
  97622. return ec.fieldContext_Order_discountCodes(ctx, field)
  97623. case "displayAddress":
  97624. return ec.fieldContext_Order_displayAddress(ctx, field)
  97625. case "displayFinancialStatus":
  97626. return ec.fieldContext_Order_displayFinancialStatus(ctx, field)
  97627. case "displayFulfillmentStatus":
  97628. return ec.fieldContext_Order_displayFulfillmentStatus(ctx, field)
  97629. case "disputes":
  97630. return ec.fieldContext_Order_disputes(ctx, field)
  97631. case "edited":
  97632. return ec.fieldContext_Order_edited(ctx, field)
  97633. case "email":
  97634. return ec.fieldContext_Order_email(ctx, field)
  97635. case "estimatedTaxes":
  97636. return ec.fieldContext_Order_estimatedTaxes(ctx, field)
  97637. case "events":
  97638. return ec.fieldContext_Order_events(ctx, field)
  97639. case "fulfillable":
  97640. return ec.fieldContext_Order_fulfillable(ctx, field)
  97641. case "fulfillmentOrders":
  97642. return ec.fieldContext_Order_fulfillmentOrders(ctx, field)
  97643. case "fulfillments":
  97644. return ec.fieldContext_Order_fulfillments(ctx, field)
  97645. case "fullyPaid":
  97646. return ec.fieldContext_Order_fullyPaid(ctx, field)
  97647. case "hasTimelineComment":
  97648. return ec.fieldContext_Order_hasTimelineComment(ctx, field)
  97649. case "id":
  97650. return ec.fieldContext_Order_id(ctx, field)
  97651. case "legacyResourceId":
  97652. return ec.fieldContext_Order_legacyResourceId(ctx, field)
  97653. case "lineItems":
  97654. return ec.fieldContext_Order_lineItems(ctx, field)
  97655. case "localizationExtensions":
  97656. return ec.fieldContext_Order_localizationExtensions(ctx, field)
  97657. case "merchantEditable":
  97658. return ec.fieldContext_Order_merchantEditable(ctx, field)
  97659. case "merchantEditableErrors":
  97660. return ec.fieldContext_Order_merchantEditableErrors(ctx, field)
  97661. case "merchantOfRecordApp":
  97662. return ec.fieldContext_Order_merchantOfRecordApp(ctx, field)
  97663. case "metafield":
  97664. return ec.fieldContext_Order_metafield(ctx, field)
  97665. case "metafieldDefinitions":
  97666. return ec.fieldContext_Order_metafieldDefinitions(ctx, field)
  97667. case "metafields":
  97668. return ec.fieldContext_Order_metafields(ctx, field)
  97669. case "name":
  97670. return ec.fieldContext_Order_name(ctx, field)
  97671. case "netPaymentSet":
  97672. return ec.fieldContext_Order_netPaymentSet(ctx, field)
  97673. case "nonFulfillableLineItems":
  97674. return ec.fieldContext_Order_nonFulfillableLineItems(ctx, field)
  97675. case "note":
  97676. return ec.fieldContext_Order_note(ctx, field)
  97677. case "originalTotalDutiesSet":
  97678. return ec.fieldContext_Order_originalTotalDutiesSet(ctx, field)
  97679. case "originalTotalPriceSet":
  97680. return ec.fieldContext_Order_originalTotalPriceSet(ctx, field)
  97681. case "paymentCollectionDetails":
  97682. return ec.fieldContext_Order_paymentCollectionDetails(ctx, field)
  97683. case "paymentGatewayNames":
  97684. return ec.fieldContext_Order_paymentGatewayNames(ctx, field)
  97685. case "paymentTerms":
  97686. return ec.fieldContext_Order_paymentTerms(ctx, field)
  97687. case "phone":
  97688. return ec.fieldContext_Order_phone(ctx, field)
  97689. case "physicalLocation":
  97690. return ec.fieldContext_Order_physicalLocation(ctx, field)
  97691. case "presentmentCurrencyCode":
  97692. return ec.fieldContext_Order_presentmentCurrencyCode(ctx, field)
  97693. case "privateMetafield":
  97694. return ec.fieldContext_Order_privateMetafield(ctx, field)
  97695. case "privateMetafields":
  97696. return ec.fieldContext_Order_privateMetafields(ctx, field)
  97697. case "processedAt":
  97698. return ec.fieldContext_Order_processedAt(ctx, field)
  97699. case "publication":
  97700. return ec.fieldContext_Order_publication(ctx, field)
  97701. case "purchasingEntity":
  97702. return ec.fieldContext_Order_purchasingEntity(ctx, field)
  97703. case "refundDiscrepancySet":
  97704. return ec.fieldContext_Order_refundDiscrepancySet(ctx, field)
  97705. case "refundable":
  97706. return ec.fieldContext_Order_refundable(ctx, field)
  97707. case "refunds":
  97708. return ec.fieldContext_Order_refunds(ctx, field)
  97709. case "registeredSourceUrl":
  97710. return ec.fieldContext_Order_registeredSourceUrl(ctx, field)
  97711. case "requiresShipping":
  97712. return ec.fieldContext_Order_requiresShipping(ctx, field)
  97713. case "restockable":
  97714. return ec.fieldContext_Order_restockable(ctx, field)
  97715. case "riskLevel":
  97716. return ec.fieldContext_Order_riskLevel(ctx, field)
  97717. case "risks":
  97718. return ec.fieldContext_Order_risks(ctx, field)
  97719. case "shippingAddress":
  97720. return ec.fieldContext_Order_shippingAddress(ctx, field)
  97721. case "shippingLine":
  97722. return ec.fieldContext_Order_shippingLine(ctx, field)
  97723. case "shippingLines":
  97724. return ec.fieldContext_Order_shippingLines(ctx, field)
  97725. case "sourceIdentifier":
  97726. return ec.fieldContext_Order_sourceIdentifier(ctx, field)
  97727. case "subtotalLineItemsQuantity":
  97728. return ec.fieldContext_Order_subtotalLineItemsQuantity(ctx, field)
  97729. case "subtotalPriceSet":
  97730. return ec.fieldContext_Order_subtotalPriceSet(ctx, field)
  97731. case "suggestedRefund":
  97732. return ec.fieldContext_Order_suggestedRefund(ctx, field)
  97733. case "tags":
  97734. return ec.fieldContext_Order_tags(ctx, field)
  97735. case "taxLines":
  97736. return ec.fieldContext_Order_taxLines(ctx, field)
  97737. case "taxesIncluded":
  97738. return ec.fieldContext_Order_taxesIncluded(ctx, field)
  97739. case "test":
  97740. return ec.fieldContext_Order_test(ctx, field)
  97741. case "totalCapturableSet":
  97742. return ec.fieldContext_Order_totalCapturableSet(ctx, field)
  97743. case "totalDiscountsSet":
  97744. return ec.fieldContext_Order_totalDiscountsSet(ctx, field)
  97745. case "totalOutstandingSet":
  97746. return ec.fieldContext_Order_totalOutstandingSet(ctx, field)
  97747. case "totalPriceSet":
  97748. return ec.fieldContext_Order_totalPriceSet(ctx, field)
  97749. case "totalReceivedSet":
  97750. return ec.fieldContext_Order_totalReceivedSet(ctx, field)
  97751. case "totalRefundedSet":
  97752. return ec.fieldContext_Order_totalRefundedSet(ctx, field)
  97753. case "totalRefundedShippingSet":
  97754. return ec.fieldContext_Order_totalRefundedShippingSet(ctx, field)
  97755. case "totalShippingPriceSet":
  97756. return ec.fieldContext_Order_totalShippingPriceSet(ctx, field)
  97757. case "totalTaxSet":
  97758. return ec.fieldContext_Order_totalTaxSet(ctx, field)
  97759. case "totalTipReceivedSet":
  97760. return ec.fieldContext_Order_totalTipReceivedSet(ctx, field)
  97761. case "totalWeight":
  97762. return ec.fieldContext_Order_totalWeight(ctx, field)
  97763. case "transactions":
  97764. return ec.fieldContext_Order_transactions(ctx, field)
  97765. case "unpaid":
  97766. return ec.fieldContext_Order_unpaid(ctx, field)
  97767. case "updatedAt":
  97768. return ec.fieldContext_Order_updatedAt(ctx, field)
  97769. }
  97770. return nil, fmt.Errorf("no field named %q was found under type Order", field.Name)
  97771. },
  97772. }
  97773. return fc, nil
  97774. }
  97775. func (ec *executionContext) _OrderTransaction_parentTransaction(ctx context.Context, field graphql.CollectedField, obj *OrderTransaction) (ret graphql.Marshaler) {
  97776. fc, err := ec.fieldContext_OrderTransaction_parentTransaction(ctx, field)
  97777. if err != nil {
  97778. return graphql.Null
  97779. }
  97780. ctx = graphql.WithFieldContext(ctx, fc)
  97781. defer func() {
  97782. if r := recover(); r != nil {
  97783. ec.Error(ctx, ec.Recover(ctx, r))
  97784. ret = graphql.Null
  97785. }
  97786. }()
  97787. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  97788. ctx = rctx // use context from middleware stack in children
  97789. return obj.ParentTransaction, nil
  97790. })
  97791. if err != nil {
  97792. ec.Error(ctx, err)
  97793. return graphql.Null
  97794. }
  97795. if resTmp == nil {
  97796. return graphql.Null
  97797. }
  97798. res := resTmp.(*OrderTransaction)
  97799. fc.Result = res
  97800. return ec.marshalOOrderTransaction2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderTransaction(ctx, field.Selections, res)
  97801. }
  97802. func (ec *executionContext) fieldContext_OrderTransaction_parentTransaction(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  97803. fc = &graphql.FieldContext{
  97804. Object: "OrderTransaction",
  97805. Field: field,
  97806. IsMethod: false,
  97807. IsResolver: false,
  97808. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  97809. switch field.Name {
  97810. case "accountNumber":
  97811. return ec.fieldContext_OrderTransaction_accountNumber(ctx, field)
  97812. case "amountSet":
  97813. return ec.fieldContext_OrderTransaction_amountSet(ctx, field)
  97814. case "authorizationCode":
  97815. return ec.fieldContext_OrderTransaction_authorizationCode(ctx, field)
  97816. case "authorizationExpiresAt":
  97817. return ec.fieldContext_OrderTransaction_authorizationExpiresAt(ctx, field)
  97818. case "createdAt":
  97819. return ec.fieldContext_OrderTransaction_createdAt(ctx, field)
  97820. case "errorCode":
  97821. return ec.fieldContext_OrderTransaction_errorCode(ctx, field)
  97822. case "fees":
  97823. return ec.fieldContext_OrderTransaction_fees(ctx, field)
  97824. case "formattedGateway":
  97825. return ec.fieldContext_OrderTransaction_formattedGateway(ctx, field)
  97826. case "gateway":
  97827. return ec.fieldContext_OrderTransaction_gateway(ctx, field)
  97828. case "id":
  97829. return ec.fieldContext_OrderTransaction_id(ctx, field)
  97830. case "kind":
  97831. return ec.fieldContext_OrderTransaction_kind(ctx, field)
  97832. case "manuallyCapturable":
  97833. return ec.fieldContext_OrderTransaction_manuallyCapturable(ctx, field)
  97834. case "maximumRefundableV2":
  97835. return ec.fieldContext_OrderTransaction_maximumRefundableV2(ctx, field)
  97836. case "order":
  97837. return ec.fieldContext_OrderTransaction_order(ctx, field)
  97838. case "parentTransaction":
  97839. return ec.fieldContext_OrderTransaction_parentTransaction(ctx, field)
  97840. case "paymentIcon":
  97841. return ec.fieldContext_OrderTransaction_paymentIcon(ctx, field)
  97842. case "processedAt":
  97843. return ec.fieldContext_OrderTransaction_processedAt(ctx, field)
  97844. case "receiptJson":
  97845. return ec.fieldContext_OrderTransaction_receiptJson(ctx, field)
  97846. case "settlementCurrency":
  97847. return ec.fieldContext_OrderTransaction_settlementCurrency(ctx, field)
  97848. case "settlementCurrencyRate":
  97849. return ec.fieldContext_OrderTransaction_settlementCurrencyRate(ctx, field)
  97850. case "shopifyPaymentsSet":
  97851. return ec.fieldContext_OrderTransaction_shopifyPaymentsSet(ctx, field)
  97852. case "status":
  97853. return ec.fieldContext_OrderTransaction_status(ctx, field)
  97854. case "test":
  97855. return ec.fieldContext_OrderTransaction_test(ctx, field)
  97856. case "totalUnsettledSet":
  97857. return ec.fieldContext_OrderTransaction_totalUnsettledSet(ctx, field)
  97858. case "user":
  97859. return ec.fieldContext_OrderTransaction_user(ctx, field)
  97860. }
  97861. return nil, fmt.Errorf("no field named %q was found under type OrderTransaction", field.Name)
  97862. },
  97863. }
  97864. return fc, nil
  97865. }
  97866. func (ec *executionContext) _OrderTransaction_paymentIcon(ctx context.Context, field graphql.CollectedField, obj *OrderTransaction) (ret graphql.Marshaler) {
  97867. fc, err := ec.fieldContext_OrderTransaction_paymentIcon(ctx, field)
  97868. if err != nil {
  97869. return graphql.Null
  97870. }
  97871. ctx = graphql.WithFieldContext(ctx, fc)
  97872. defer func() {
  97873. if r := recover(); r != nil {
  97874. ec.Error(ctx, ec.Recover(ctx, r))
  97875. ret = graphql.Null
  97876. }
  97877. }()
  97878. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  97879. ctx = rctx // use context from middleware stack in children
  97880. return obj.PaymentIcon, nil
  97881. })
  97882. if err != nil {
  97883. ec.Error(ctx, err)
  97884. return graphql.Null
  97885. }
  97886. if resTmp == nil {
  97887. return graphql.Null
  97888. }
  97889. res := resTmp.(*Image)
  97890. fc.Result = res
  97891. return ec.marshalOImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImage(ctx, field.Selections, res)
  97892. }
  97893. func (ec *executionContext) fieldContext_OrderTransaction_paymentIcon(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  97894. fc = &graphql.FieldContext{
  97895. Object: "OrderTransaction",
  97896. Field: field,
  97897. IsMethod: false,
  97898. IsResolver: false,
  97899. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  97900. switch field.Name {
  97901. case "altText":
  97902. return ec.fieldContext_Image_altText(ctx, field)
  97903. case "height":
  97904. return ec.fieldContext_Image_height(ctx, field)
  97905. case "id":
  97906. return ec.fieldContext_Image_id(ctx, field)
  97907. case "metafield":
  97908. return ec.fieldContext_Image_metafield(ctx, field)
  97909. case "metafields":
  97910. return ec.fieldContext_Image_metafields(ctx, field)
  97911. case "privateMetafield":
  97912. return ec.fieldContext_Image_privateMetafield(ctx, field)
  97913. case "privateMetafields":
  97914. return ec.fieldContext_Image_privateMetafields(ctx, field)
  97915. case "url":
  97916. return ec.fieldContext_Image_url(ctx, field)
  97917. case "width":
  97918. return ec.fieldContext_Image_width(ctx, field)
  97919. }
  97920. return nil, fmt.Errorf("no field named %q was found under type Image", field.Name)
  97921. },
  97922. }
  97923. return fc, nil
  97924. }
  97925. func (ec *executionContext) _OrderTransaction_processedAt(ctx context.Context, field graphql.CollectedField, obj *OrderTransaction) (ret graphql.Marshaler) {
  97926. fc, err := ec.fieldContext_OrderTransaction_processedAt(ctx, field)
  97927. if err != nil {
  97928. return graphql.Null
  97929. }
  97930. ctx = graphql.WithFieldContext(ctx, fc)
  97931. defer func() {
  97932. if r := recover(); r != nil {
  97933. ec.Error(ctx, ec.Recover(ctx, r))
  97934. ret = graphql.Null
  97935. }
  97936. }()
  97937. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  97938. ctx = rctx // use context from middleware stack in children
  97939. return obj.ProcessedAt, nil
  97940. })
  97941. if err != nil {
  97942. ec.Error(ctx, err)
  97943. return graphql.Null
  97944. }
  97945. if resTmp == nil {
  97946. return graphql.Null
  97947. }
  97948. res := resTmp.(*string)
  97949. fc.Result = res
  97950. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  97951. }
  97952. func (ec *executionContext) fieldContext_OrderTransaction_processedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  97953. fc = &graphql.FieldContext{
  97954. Object: "OrderTransaction",
  97955. Field: field,
  97956. IsMethod: false,
  97957. IsResolver: false,
  97958. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  97959. return nil, errors.New("field of type DateTime does not have child fields")
  97960. },
  97961. }
  97962. return fc, nil
  97963. }
  97964. func (ec *executionContext) _OrderTransaction_receiptJson(ctx context.Context, field graphql.CollectedField, obj *OrderTransaction) (ret graphql.Marshaler) {
  97965. fc, err := ec.fieldContext_OrderTransaction_receiptJson(ctx, field)
  97966. if err != nil {
  97967. return graphql.Null
  97968. }
  97969. ctx = graphql.WithFieldContext(ctx, fc)
  97970. defer func() {
  97971. if r := recover(); r != nil {
  97972. ec.Error(ctx, ec.Recover(ctx, r))
  97973. ret = graphql.Null
  97974. }
  97975. }()
  97976. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  97977. ctx = rctx // use context from middleware stack in children
  97978. return obj.ReceiptJSON, nil
  97979. })
  97980. if err != nil {
  97981. ec.Error(ctx, err)
  97982. return graphql.Null
  97983. }
  97984. if resTmp == nil {
  97985. return graphql.Null
  97986. }
  97987. res := resTmp.(*string)
  97988. fc.Result = res
  97989. return ec.marshalOJSON2ᚖstring(ctx, field.Selections, res)
  97990. }
  97991. func (ec *executionContext) fieldContext_OrderTransaction_receiptJson(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  97992. fc = &graphql.FieldContext{
  97993. Object: "OrderTransaction",
  97994. Field: field,
  97995. IsMethod: false,
  97996. IsResolver: false,
  97997. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  97998. return nil, errors.New("field of type JSON does not have child fields")
  97999. },
  98000. }
  98001. return fc, nil
  98002. }
  98003. func (ec *executionContext) _OrderTransaction_settlementCurrency(ctx context.Context, field graphql.CollectedField, obj *OrderTransaction) (ret graphql.Marshaler) {
  98004. fc, err := ec.fieldContext_OrderTransaction_settlementCurrency(ctx, field)
  98005. if err != nil {
  98006. return graphql.Null
  98007. }
  98008. ctx = graphql.WithFieldContext(ctx, fc)
  98009. defer func() {
  98010. if r := recover(); r != nil {
  98011. ec.Error(ctx, ec.Recover(ctx, r))
  98012. ret = graphql.Null
  98013. }
  98014. }()
  98015. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  98016. ctx = rctx // use context from middleware stack in children
  98017. return obj.SettlementCurrency, nil
  98018. })
  98019. if err != nil {
  98020. ec.Error(ctx, err)
  98021. return graphql.Null
  98022. }
  98023. if resTmp == nil {
  98024. return graphql.Null
  98025. }
  98026. res := resTmp.(*CurrencyCode)
  98027. fc.Result = res
  98028. return ec.marshalOCurrencyCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencyCode(ctx, field.Selections, res)
  98029. }
  98030. func (ec *executionContext) fieldContext_OrderTransaction_settlementCurrency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  98031. fc = &graphql.FieldContext{
  98032. Object: "OrderTransaction",
  98033. Field: field,
  98034. IsMethod: false,
  98035. IsResolver: false,
  98036. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  98037. return nil, errors.New("field of type CurrencyCode does not have child fields")
  98038. },
  98039. }
  98040. return fc, nil
  98041. }
  98042. func (ec *executionContext) _OrderTransaction_settlementCurrencyRate(ctx context.Context, field graphql.CollectedField, obj *OrderTransaction) (ret graphql.Marshaler) {
  98043. fc, err := ec.fieldContext_OrderTransaction_settlementCurrencyRate(ctx, field)
  98044. if err != nil {
  98045. return graphql.Null
  98046. }
  98047. ctx = graphql.WithFieldContext(ctx, fc)
  98048. defer func() {
  98049. if r := recover(); r != nil {
  98050. ec.Error(ctx, ec.Recover(ctx, r))
  98051. ret = graphql.Null
  98052. }
  98053. }()
  98054. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  98055. ctx = rctx // use context from middleware stack in children
  98056. return obj.SettlementCurrencyRate, nil
  98057. })
  98058. if err != nil {
  98059. ec.Error(ctx, err)
  98060. return graphql.Null
  98061. }
  98062. if resTmp == nil {
  98063. return graphql.Null
  98064. }
  98065. res := resTmp.(*string)
  98066. fc.Result = res
  98067. return ec.marshalODecimal2ᚖstring(ctx, field.Selections, res)
  98068. }
  98069. func (ec *executionContext) fieldContext_OrderTransaction_settlementCurrencyRate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  98070. fc = &graphql.FieldContext{
  98071. Object: "OrderTransaction",
  98072. Field: field,
  98073. IsMethod: false,
  98074. IsResolver: false,
  98075. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  98076. return nil, errors.New("field of type Decimal does not have child fields")
  98077. },
  98078. }
  98079. return fc, nil
  98080. }
  98081. func (ec *executionContext) _OrderTransaction_shopifyPaymentsSet(ctx context.Context, field graphql.CollectedField, obj *OrderTransaction) (ret graphql.Marshaler) {
  98082. fc, err := ec.fieldContext_OrderTransaction_shopifyPaymentsSet(ctx, field)
  98083. if err != nil {
  98084. return graphql.Null
  98085. }
  98086. ctx = graphql.WithFieldContext(ctx, fc)
  98087. defer func() {
  98088. if r := recover(); r != nil {
  98089. ec.Error(ctx, ec.Recover(ctx, r))
  98090. ret = graphql.Null
  98091. }
  98092. }()
  98093. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  98094. ctx = rctx // use context from middleware stack in children
  98095. return obj.ShopifyPaymentsSet, nil
  98096. })
  98097. if err != nil {
  98098. ec.Error(ctx, err)
  98099. return graphql.Null
  98100. }
  98101. if resTmp == nil {
  98102. return graphql.Null
  98103. }
  98104. res := resTmp.(*ShopifyPaymentsTransactionSet)
  98105. fc.Result = res
  98106. return ec.marshalOShopifyPaymentsTransactionSet2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopifyPaymentsTransactionSet(ctx, field.Selections, res)
  98107. }
  98108. func (ec *executionContext) fieldContext_OrderTransaction_shopifyPaymentsSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  98109. fc = &graphql.FieldContext{
  98110. Object: "OrderTransaction",
  98111. Field: field,
  98112. IsMethod: false,
  98113. IsResolver: false,
  98114. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  98115. switch field.Name {
  98116. case "extendedAuthorizationSet":
  98117. return ec.fieldContext_ShopifyPaymentsTransactionSet_extendedAuthorizationSet(ctx, field)
  98118. case "refundSet":
  98119. return ec.fieldContext_ShopifyPaymentsTransactionSet_refundSet(ctx, field)
  98120. }
  98121. return nil, fmt.Errorf("no field named %q was found under type ShopifyPaymentsTransactionSet", field.Name)
  98122. },
  98123. }
  98124. return fc, nil
  98125. }
  98126. func (ec *executionContext) _OrderTransaction_status(ctx context.Context, field graphql.CollectedField, obj *OrderTransaction) (ret graphql.Marshaler) {
  98127. fc, err := ec.fieldContext_OrderTransaction_status(ctx, field)
  98128. if err != nil {
  98129. return graphql.Null
  98130. }
  98131. ctx = graphql.WithFieldContext(ctx, fc)
  98132. defer func() {
  98133. if r := recover(); r != nil {
  98134. ec.Error(ctx, ec.Recover(ctx, r))
  98135. ret = graphql.Null
  98136. }
  98137. }()
  98138. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  98139. ctx = rctx // use context from middleware stack in children
  98140. return obj.Status, nil
  98141. })
  98142. if err != nil {
  98143. ec.Error(ctx, err)
  98144. return graphql.Null
  98145. }
  98146. if resTmp == nil {
  98147. if !graphql.HasFieldError(ctx, fc) {
  98148. ec.Errorf(ctx, "must not be null")
  98149. }
  98150. return graphql.Null
  98151. }
  98152. res := resTmp.(OrderTransactionStatus)
  98153. fc.Result = res
  98154. return ec.marshalNOrderTransactionStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderTransactionStatus(ctx, field.Selections, res)
  98155. }
  98156. func (ec *executionContext) fieldContext_OrderTransaction_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  98157. fc = &graphql.FieldContext{
  98158. Object: "OrderTransaction",
  98159. Field: field,
  98160. IsMethod: false,
  98161. IsResolver: false,
  98162. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  98163. return nil, errors.New("field of type OrderTransactionStatus does not have child fields")
  98164. },
  98165. }
  98166. return fc, nil
  98167. }
  98168. func (ec *executionContext) _OrderTransaction_test(ctx context.Context, field graphql.CollectedField, obj *OrderTransaction) (ret graphql.Marshaler) {
  98169. fc, err := ec.fieldContext_OrderTransaction_test(ctx, field)
  98170. if err != nil {
  98171. return graphql.Null
  98172. }
  98173. ctx = graphql.WithFieldContext(ctx, fc)
  98174. defer func() {
  98175. if r := recover(); r != nil {
  98176. ec.Error(ctx, ec.Recover(ctx, r))
  98177. ret = graphql.Null
  98178. }
  98179. }()
  98180. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  98181. ctx = rctx // use context from middleware stack in children
  98182. return obj.Test, nil
  98183. })
  98184. if err != nil {
  98185. ec.Error(ctx, err)
  98186. return graphql.Null
  98187. }
  98188. if resTmp == nil {
  98189. if !graphql.HasFieldError(ctx, fc) {
  98190. ec.Errorf(ctx, "must not be null")
  98191. }
  98192. return graphql.Null
  98193. }
  98194. res := resTmp.(bool)
  98195. fc.Result = res
  98196. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  98197. }
  98198. func (ec *executionContext) fieldContext_OrderTransaction_test(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  98199. fc = &graphql.FieldContext{
  98200. Object: "OrderTransaction",
  98201. Field: field,
  98202. IsMethod: false,
  98203. IsResolver: false,
  98204. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  98205. return nil, errors.New("field of type Boolean does not have child fields")
  98206. },
  98207. }
  98208. return fc, nil
  98209. }
  98210. func (ec *executionContext) _OrderTransaction_totalUnsettledSet(ctx context.Context, field graphql.CollectedField, obj *OrderTransaction) (ret graphql.Marshaler) {
  98211. fc, err := ec.fieldContext_OrderTransaction_totalUnsettledSet(ctx, field)
  98212. if err != nil {
  98213. return graphql.Null
  98214. }
  98215. ctx = graphql.WithFieldContext(ctx, fc)
  98216. defer func() {
  98217. if r := recover(); r != nil {
  98218. ec.Error(ctx, ec.Recover(ctx, r))
  98219. ret = graphql.Null
  98220. }
  98221. }()
  98222. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  98223. ctx = rctx // use context from middleware stack in children
  98224. return obj.TotalUnsettledSet, nil
  98225. })
  98226. if err != nil {
  98227. ec.Error(ctx, err)
  98228. return graphql.Null
  98229. }
  98230. if resTmp == nil {
  98231. return graphql.Null
  98232. }
  98233. res := resTmp.(*MoneyBag)
  98234. fc.Result = res
  98235. return ec.marshalOMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  98236. }
  98237. func (ec *executionContext) fieldContext_OrderTransaction_totalUnsettledSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  98238. fc = &graphql.FieldContext{
  98239. Object: "OrderTransaction",
  98240. Field: field,
  98241. IsMethod: false,
  98242. IsResolver: false,
  98243. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  98244. switch field.Name {
  98245. case "presentmentMoney":
  98246. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  98247. case "shopMoney":
  98248. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  98249. }
  98250. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  98251. },
  98252. }
  98253. return fc, nil
  98254. }
  98255. func (ec *executionContext) _OrderTransaction_user(ctx context.Context, field graphql.CollectedField, obj *OrderTransaction) (ret graphql.Marshaler) {
  98256. fc, err := ec.fieldContext_OrderTransaction_user(ctx, field)
  98257. if err != nil {
  98258. return graphql.Null
  98259. }
  98260. ctx = graphql.WithFieldContext(ctx, fc)
  98261. defer func() {
  98262. if r := recover(); r != nil {
  98263. ec.Error(ctx, ec.Recover(ctx, r))
  98264. ret = graphql.Null
  98265. }
  98266. }()
  98267. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  98268. ctx = rctx // use context from middleware stack in children
  98269. return obj.User, nil
  98270. })
  98271. if err != nil {
  98272. ec.Error(ctx, err)
  98273. return graphql.Null
  98274. }
  98275. if resTmp == nil {
  98276. return graphql.Null
  98277. }
  98278. res := resTmp.(*StaffMember)
  98279. fc.Result = res
  98280. return ec.marshalOStaffMember2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStaffMember(ctx, field.Selections, res)
  98281. }
  98282. func (ec *executionContext) fieldContext_OrderTransaction_user(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  98283. fc = &graphql.FieldContext{
  98284. Object: "OrderTransaction",
  98285. Field: field,
  98286. IsMethod: false,
  98287. IsResolver: false,
  98288. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  98289. switch field.Name {
  98290. case "active":
  98291. return ec.fieldContext_StaffMember_active(ctx, field)
  98292. case "avatar":
  98293. return ec.fieldContext_StaffMember_avatar(ctx, field)
  98294. case "email":
  98295. return ec.fieldContext_StaffMember_email(ctx, field)
  98296. case "exists":
  98297. return ec.fieldContext_StaffMember_exists(ctx, field)
  98298. case "firstName":
  98299. return ec.fieldContext_StaffMember_firstName(ctx, field)
  98300. case "id":
  98301. return ec.fieldContext_StaffMember_id(ctx, field)
  98302. case "initials":
  98303. return ec.fieldContext_StaffMember_initials(ctx, field)
  98304. case "isShopOwner":
  98305. return ec.fieldContext_StaffMember_isShopOwner(ctx, field)
  98306. case "lastName":
  98307. return ec.fieldContext_StaffMember_lastName(ctx, field)
  98308. case "locale":
  98309. return ec.fieldContext_StaffMember_locale(ctx, field)
  98310. case "name":
  98311. return ec.fieldContext_StaffMember_name(ctx, field)
  98312. case "phone":
  98313. return ec.fieldContext_StaffMember_phone(ctx, field)
  98314. case "privateData":
  98315. return ec.fieldContext_StaffMember_privateData(ctx, field)
  98316. }
  98317. return nil, fmt.Errorf("no field named %q was found under type StaffMember", field.Name)
  98318. },
  98319. }
  98320. return fc, nil
  98321. }
  98322. func (ec *executionContext) _OrderTransactionConnection_edges(ctx context.Context, field graphql.CollectedField, obj *OrderTransactionConnection) (ret graphql.Marshaler) {
  98323. fc, err := ec.fieldContext_OrderTransactionConnection_edges(ctx, field)
  98324. if err != nil {
  98325. return graphql.Null
  98326. }
  98327. ctx = graphql.WithFieldContext(ctx, fc)
  98328. defer func() {
  98329. if r := recover(); r != nil {
  98330. ec.Error(ctx, ec.Recover(ctx, r))
  98331. ret = graphql.Null
  98332. }
  98333. }()
  98334. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  98335. ctx = rctx // use context from middleware stack in children
  98336. return obj.Edges, nil
  98337. })
  98338. if err != nil {
  98339. ec.Error(ctx, err)
  98340. return graphql.Null
  98341. }
  98342. if resTmp == nil {
  98343. if !graphql.HasFieldError(ctx, fc) {
  98344. ec.Errorf(ctx, "must not be null")
  98345. }
  98346. return graphql.Null
  98347. }
  98348. res := resTmp.([]*OrderTransactionEdge)
  98349. fc.Result = res
  98350. return ec.marshalNOrderTransactionEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderTransactionEdgeᚄ(ctx, field.Selections, res)
  98351. }
  98352. func (ec *executionContext) fieldContext_OrderTransactionConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  98353. fc = &graphql.FieldContext{
  98354. Object: "OrderTransactionConnection",
  98355. Field: field,
  98356. IsMethod: false,
  98357. IsResolver: false,
  98358. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  98359. switch field.Name {
  98360. case "cursor":
  98361. return ec.fieldContext_OrderTransactionEdge_cursor(ctx, field)
  98362. case "node":
  98363. return ec.fieldContext_OrderTransactionEdge_node(ctx, field)
  98364. }
  98365. return nil, fmt.Errorf("no field named %q was found under type OrderTransactionEdge", field.Name)
  98366. },
  98367. }
  98368. return fc, nil
  98369. }
  98370. func (ec *executionContext) _OrderTransactionConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *OrderTransactionConnection) (ret graphql.Marshaler) {
  98371. fc, err := ec.fieldContext_OrderTransactionConnection_nodes(ctx, field)
  98372. if err != nil {
  98373. return graphql.Null
  98374. }
  98375. ctx = graphql.WithFieldContext(ctx, fc)
  98376. defer func() {
  98377. if r := recover(); r != nil {
  98378. ec.Error(ctx, ec.Recover(ctx, r))
  98379. ret = graphql.Null
  98380. }
  98381. }()
  98382. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  98383. ctx = rctx // use context from middleware stack in children
  98384. return obj.Nodes, nil
  98385. })
  98386. if err != nil {
  98387. ec.Error(ctx, err)
  98388. return graphql.Null
  98389. }
  98390. if resTmp == nil {
  98391. if !graphql.HasFieldError(ctx, fc) {
  98392. ec.Errorf(ctx, "must not be null")
  98393. }
  98394. return graphql.Null
  98395. }
  98396. res := resTmp.([]*OrderTransaction)
  98397. fc.Result = res
  98398. return ec.marshalNOrderTransaction2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderTransactionᚄ(ctx, field.Selections, res)
  98399. }
  98400. func (ec *executionContext) fieldContext_OrderTransactionConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  98401. fc = &graphql.FieldContext{
  98402. Object: "OrderTransactionConnection",
  98403. Field: field,
  98404. IsMethod: false,
  98405. IsResolver: false,
  98406. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  98407. switch field.Name {
  98408. case "accountNumber":
  98409. return ec.fieldContext_OrderTransaction_accountNumber(ctx, field)
  98410. case "amountSet":
  98411. return ec.fieldContext_OrderTransaction_amountSet(ctx, field)
  98412. case "authorizationCode":
  98413. return ec.fieldContext_OrderTransaction_authorizationCode(ctx, field)
  98414. case "authorizationExpiresAt":
  98415. return ec.fieldContext_OrderTransaction_authorizationExpiresAt(ctx, field)
  98416. case "createdAt":
  98417. return ec.fieldContext_OrderTransaction_createdAt(ctx, field)
  98418. case "errorCode":
  98419. return ec.fieldContext_OrderTransaction_errorCode(ctx, field)
  98420. case "fees":
  98421. return ec.fieldContext_OrderTransaction_fees(ctx, field)
  98422. case "formattedGateway":
  98423. return ec.fieldContext_OrderTransaction_formattedGateway(ctx, field)
  98424. case "gateway":
  98425. return ec.fieldContext_OrderTransaction_gateway(ctx, field)
  98426. case "id":
  98427. return ec.fieldContext_OrderTransaction_id(ctx, field)
  98428. case "kind":
  98429. return ec.fieldContext_OrderTransaction_kind(ctx, field)
  98430. case "manuallyCapturable":
  98431. return ec.fieldContext_OrderTransaction_manuallyCapturable(ctx, field)
  98432. case "maximumRefundableV2":
  98433. return ec.fieldContext_OrderTransaction_maximumRefundableV2(ctx, field)
  98434. case "order":
  98435. return ec.fieldContext_OrderTransaction_order(ctx, field)
  98436. case "parentTransaction":
  98437. return ec.fieldContext_OrderTransaction_parentTransaction(ctx, field)
  98438. case "paymentIcon":
  98439. return ec.fieldContext_OrderTransaction_paymentIcon(ctx, field)
  98440. case "processedAt":
  98441. return ec.fieldContext_OrderTransaction_processedAt(ctx, field)
  98442. case "receiptJson":
  98443. return ec.fieldContext_OrderTransaction_receiptJson(ctx, field)
  98444. case "settlementCurrency":
  98445. return ec.fieldContext_OrderTransaction_settlementCurrency(ctx, field)
  98446. case "settlementCurrencyRate":
  98447. return ec.fieldContext_OrderTransaction_settlementCurrencyRate(ctx, field)
  98448. case "shopifyPaymentsSet":
  98449. return ec.fieldContext_OrderTransaction_shopifyPaymentsSet(ctx, field)
  98450. case "status":
  98451. return ec.fieldContext_OrderTransaction_status(ctx, field)
  98452. case "test":
  98453. return ec.fieldContext_OrderTransaction_test(ctx, field)
  98454. case "totalUnsettledSet":
  98455. return ec.fieldContext_OrderTransaction_totalUnsettledSet(ctx, field)
  98456. case "user":
  98457. return ec.fieldContext_OrderTransaction_user(ctx, field)
  98458. }
  98459. return nil, fmt.Errorf("no field named %q was found under type OrderTransaction", field.Name)
  98460. },
  98461. }
  98462. return fc, nil
  98463. }
  98464. func (ec *executionContext) _OrderTransactionConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *OrderTransactionConnection) (ret graphql.Marshaler) {
  98465. fc, err := ec.fieldContext_OrderTransactionConnection_pageInfo(ctx, field)
  98466. if err != nil {
  98467. return graphql.Null
  98468. }
  98469. ctx = graphql.WithFieldContext(ctx, fc)
  98470. defer func() {
  98471. if r := recover(); r != nil {
  98472. ec.Error(ctx, ec.Recover(ctx, r))
  98473. ret = graphql.Null
  98474. }
  98475. }()
  98476. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  98477. ctx = rctx // use context from middleware stack in children
  98478. return obj.PageInfo, nil
  98479. })
  98480. if err != nil {
  98481. ec.Error(ctx, err)
  98482. return graphql.Null
  98483. }
  98484. if resTmp == nil {
  98485. if !graphql.HasFieldError(ctx, fc) {
  98486. ec.Errorf(ctx, "must not be null")
  98487. }
  98488. return graphql.Null
  98489. }
  98490. res := resTmp.(*PageInfo)
  98491. fc.Result = res
  98492. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  98493. }
  98494. func (ec *executionContext) fieldContext_OrderTransactionConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  98495. fc = &graphql.FieldContext{
  98496. Object: "OrderTransactionConnection",
  98497. Field: field,
  98498. IsMethod: false,
  98499. IsResolver: false,
  98500. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  98501. switch field.Name {
  98502. case "endCursor":
  98503. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  98504. case "hasNextPage":
  98505. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  98506. case "hasPreviousPage":
  98507. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  98508. case "startCursor":
  98509. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  98510. }
  98511. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  98512. },
  98513. }
  98514. return fc, nil
  98515. }
  98516. func (ec *executionContext) _OrderTransactionEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *OrderTransactionEdge) (ret graphql.Marshaler) {
  98517. fc, err := ec.fieldContext_OrderTransactionEdge_cursor(ctx, field)
  98518. if err != nil {
  98519. return graphql.Null
  98520. }
  98521. ctx = graphql.WithFieldContext(ctx, fc)
  98522. defer func() {
  98523. if r := recover(); r != nil {
  98524. ec.Error(ctx, ec.Recover(ctx, r))
  98525. ret = graphql.Null
  98526. }
  98527. }()
  98528. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  98529. ctx = rctx // use context from middleware stack in children
  98530. return obj.Cursor, nil
  98531. })
  98532. if err != nil {
  98533. ec.Error(ctx, err)
  98534. return graphql.Null
  98535. }
  98536. if resTmp == nil {
  98537. if !graphql.HasFieldError(ctx, fc) {
  98538. ec.Errorf(ctx, "must not be null")
  98539. }
  98540. return graphql.Null
  98541. }
  98542. res := resTmp.(string)
  98543. fc.Result = res
  98544. return ec.marshalNString2string(ctx, field.Selections, res)
  98545. }
  98546. func (ec *executionContext) fieldContext_OrderTransactionEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  98547. fc = &graphql.FieldContext{
  98548. Object: "OrderTransactionEdge",
  98549. Field: field,
  98550. IsMethod: false,
  98551. IsResolver: false,
  98552. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  98553. return nil, errors.New("field of type String does not have child fields")
  98554. },
  98555. }
  98556. return fc, nil
  98557. }
  98558. func (ec *executionContext) _OrderTransactionEdge_node(ctx context.Context, field graphql.CollectedField, obj *OrderTransactionEdge) (ret graphql.Marshaler) {
  98559. fc, err := ec.fieldContext_OrderTransactionEdge_node(ctx, field)
  98560. if err != nil {
  98561. return graphql.Null
  98562. }
  98563. ctx = graphql.WithFieldContext(ctx, fc)
  98564. defer func() {
  98565. if r := recover(); r != nil {
  98566. ec.Error(ctx, ec.Recover(ctx, r))
  98567. ret = graphql.Null
  98568. }
  98569. }()
  98570. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  98571. ctx = rctx // use context from middleware stack in children
  98572. return obj.Node, nil
  98573. })
  98574. if err != nil {
  98575. ec.Error(ctx, err)
  98576. return graphql.Null
  98577. }
  98578. if resTmp == nil {
  98579. if !graphql.HasFieldError(ctx, fc) {
  98580. ec.Errorf(ctx, "must not be null")
  98581. }
  98582. return graphql.Null
  98583. }
  98584. res := resTmp.(*OrderTransaction)
  98585. fc.Result = res
  98586. return ec.marshalNOrderTransaction2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderTransaction(ctx, field.Selections, res)
  98587. }
  98588. func (ec *executionContext) fieldContext_OrderTransactionEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  98589. fc = &graphql.FieldContext{
  98590. Object: "OrderTransactionEdge",
  98591. Field: field,
  98592. IsMethod: false,
  98593. IsResolver: false,
  98594. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  98595. switch field.Name {
  98596. case "accountNumber":
  98597. return ec.fieldContext_OrderTransaction_accountNumber(ctx, field)
  98598. case "amountSet":
  98599. return ec.fieldContext_OrderTransaction_amountSet(ctx, field)
  98600. case "authorizationCode":
  98601. return ec.fieldContext_OrderTransaction_authorizationCode(ctx, field)
  98602. case "authorizationExpiresAt":
  98603. return ec.fieldContext_OrderTransaction_authorizationExpiresAt(ctx, field)
  98604. case "createdAt":
  98605. return ec.fieldContext_OrderTransaction_createdAt(ctx, field)
  98606. case "errorCode":
  98607. return ec.fieldContext_OrderTransaction_errorCode(ctx, field)
  98608. case "fees":
  98609. return ec.fieldContext_OrderTransaction_fees(ctx, field)
  98610. case "formattedGateway":
  98611. return ec.fieldContext_OrderTransaction_formattedGateway(ctx, field)
  98612. case "gateway":
  98613. return ec.fieldContext_OrderTransaction_gateway(ctx, field)
  98614. case "id":
  98615. return ec.fieldContext_OrderTransaction_id(ctx, field)
  98616. case "kind":
  98617. return ec.fieldContext_OrderTransaction_kind(ctx, field)
  98618. case "manuallyCapturable":
  98619. return ec.fieldContext_OrderTransaction_manuallyCapturable(ctx, field)
  98620. case "maximumRefundableV2":
  98621. return ec.fieldContext_OrderTransaction_maximumRefundableV2(ctx, field)
  98622. case "order":
  98623. return ec.fieldContext_OrderTransaction_order(ctx, field)
  98624. case "parentTransaction":
  98625. return ec.fieldContext_OrderTransaction_parentTransaction(ctx, field)
  98626. case "paymentIcon":
  98627. return ec.fieldContext_OrderTransaction_paymentIcon(ctx, field)
  98628. case "processedAt":
  98629. return ec.fieldContext_OrderTransaction_processedAt(ctx, field)
  98630. case "receiptJson":
  98631. return ec.fieldContext_OrderTransaction_receiptJson(ctx, field)
  98632. case "settlementCurrency":
  98633. return ec.fieldContext_OrderTransaction_settlementCurrency(ctx, field)
  98634. case "settlementCurrencyRate":
  98635. return ec.fieldContext_OrderTransaction_settlementCurrencyRate(ctx, field)
  98636. case "shopifyPaymentsSet":
  98637. return ec.fieldContext_OrderTransaction_shopifyPaymentsSet(ctx, field)
  98638. case "status":
  98639. return ec.fieldContext_OrderTransaction_status(ctx, field)
  98640. case "test":
  98641. return ec.fieldContext_OrderTransaction_test(ctx, field)
  98642. case "totalUnsettledSet":
  98643. return ec.fieldContext_OrderTransaction_totalUnsettledSet(ctx, field)
  98644. case "user":
  98645. return ec.fieldContext_OrderTransaction_user(ctx, field)
  98646. }
  98647. return nil, fmt.Errorf("no field named %q was found under type OrderTransaction", field.Name)
  98648. },
  98649. }
  98650. return fc, nil
  98651. }
  98652. func (ec *executionContext) _PageInfo_endCursor(ctx context.Context, field graphql.CollectedField, obj *PageInfo) (ret graphql.Marshaler) {
  98653. fc, err := ec.fieldContext_PageInfo_endCursor(ctx, field)
  98654. if err != nil {
  98655. return graphql.Null
  98656. }
  98657. ctx = graphql.WithFieldContext(ctx, fc)
  98658. defer func() {
  98659. if r := recover(); r != nil {
  98660. ec.Error(ctx, ec.Recover(ctx, r))
  98661. ret = graphql.Null
  98662. }
  98663. }()
  98664. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  98665. ctx = rctx // use context from middleware stack in children
  98666. return obj.EndCursor, nil
  98667. })
  98668. if err != nil {
  98669. ec.Error(ctx, err)
  98670. return graphql.Null
  98671. }
  98672. if resTmp == nil {
  98673. return graphql.Null
  98674. }
  98675. res := resTmp.(*string)
  98676. fc.Result = res
  98677. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  98678. }
  98679. func (ec *executionContext) fieldContext_PageInfo_endCursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  98680. fc = &graphql.FieldContext{
  98681. Object: "PageInfo",
  98682. Field: field,
  98683. IsMethod: false,
  98684. IsResolver: false,
  98685. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  98686. return nil, errors.New("field of type String does not have child fields")
  98687. },
  98688. }
  98689. return fc, nil
  98690. }
  98691. func (ec *executionContext) _PageInfo_hasNextPage(ctx context.Context, field graphql.CollectedField, obj *PageInfo) (ret graphql.Marshaler) {
  98692. fc, err := ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  98693. if err != nil {
  98694. return graphql.Null
  98695. }
  98696. ctx = graphql.WithFieldContext(ctx, fc)
  98697. defer func() {
  98698. if r := recover(); r != nil {
  98699. ec.Error(ctx, ec.Recover(ctx, r))
  98700. ret = graphql.Null
  98701. }
  98702. }()
  98703. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  98704. ctx = rctx // use context from middleware stack in children
  98705. return obj.HasNextPage, nil
  98706. })
  98707. if err != nil {
  98708. ec.Error(ctx, err)
  98709. return graphql.Null
  98710. }
  98711. if resTmp == nil {
  98712. if !graphql.HasFieldError(ctx, fc) {
  98713. ec.Errorf(ctx, "must not be null")
  98714. }
  98715. return graphql.Null
  98716. }
  98717. res := resTmp.(bool)
  98718. fc.Result = res
  98719. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  98720. }
  98721. func (ec *executionContext) fieldContext_PageInfo_hasNextPage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  98722. fc = &graphql.FieldContext{
  98723. Object: "PageInfo",
  98724. Field: field,
  98725. IsMethod: false,
  98726. IsResolver: false,
  98727. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  98728. return nil, errors.New("field of type Boolean does not have child fields")
  98729. },
  98730. }
  98731. return fc, nil
  98732. }
  98733. func (ec *executionContext) _PageInfo_hasPreviousPage(ctx context.Context, field graphql.CollectedField, obj *PageInfo) (ret graphql.Marshaler) {
  98734. fc, err := ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  98735. if err != nil {
  98736. return graphql.Null
  98737. }
  98738. ctx = graphql.WithFieldContext(ctx, fc)
  98739. defer func() {
  98740. if r := recover(); r != nil {
  98741. ec.Error(ctx, ec.Recover(ctx, r))
  98742. ret = graphql.Null
  98743. }
  98744. }()
  98745. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  98746. ctx = rctx // use context from middleware stack in children
  98747. return obj.HasPreviousPage, nil
  98748. })
  98749. if err != nil {
  98750. ec.Error(ctx, err)
  98751. return graphql.Null
  98752. }
  98753. if resTmp == nil {
  98754. if !graphql.HasFieldError(ctx, fc) {
  98755. ec.Errorf(ctx, "must not be null")
  98756. }
  98757. return graphql.Null
  98758. }
  98759. res := resTmp.(bool)
  98760. fc.Result = res
  98761. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  98762. }
  98763. func (ec *executionContext) fieldContext_PageInfo_hasPreviousPage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  98764. fc = &graphql.FieldContext{
  98765. Object: "PageInfo",
  98766. Field: field,
  98767. IsMethod: false,
  98768. IsResolver: false,
  98769. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  98770. return nil, errors.New("field of type Boolean does not have child fields")
  98771. },
  98772. }
  98773. return fc, nil
  98774. }
  98775. func (ec *executionContext) _PageInfo_startCursor(ctx context.Context, field graphql.CollectedField, obj *PageInfo) (ret graphql.Marshaler) {
  98776. fc, err := ec.fieldContext_PageInfo_startCursor(ctx, field)
  98777. if err != nil {
  98778. return graphql.Null
  98779. }
  98780. ctx = graphql.WithFieldContext(ctx, fc)
  98781. defer func() {
  98782. if r := recover(); r != nil {
  98783. ec.Error(ctx, ec.Recover(ctx, r))
  98784. ret = graphql.Null
  98785. }
  98786. }()
  98787. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  98788. ctx = rctx // use context from middleware stack in children
  98789. return obj.StartCursor, nil
  98790. })
  98791. if err != nil {
  98792. ec.Error(ctx, err)
  98793. return graphql.Null
  98794. }
  98795. if resTmp == nil {
  98796. return graphql.Null
  98797. }
  98798. res := resTmp.(*string)
  98799. fc.Result = res
  98800. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  98801. }
  98802. func (ec *executionContext) fieldContext_PageInfo_startCursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  98803. fc = &graphql.FieldContext{
  98804. Object: "PageInfo",
  98805. Field: field,
  98806. IsMethod: false,
  98807. IsResolver: false,
  98808. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  98809. return nil, errors.New("field of type String does not have child fields")
  98810. },
  98811. }
  98812. return fc, nil
  98813. }
  98814. func (ec *executionContext) _PaymentMandate_id(ctx context.Context, field graphql.CollectedField, obj *PaymentMandate) (ret graphql.Marshaler) {
  98815. fc, err := ec.fieldContext_PaymentMandate_id(ctx, field)
  98816. if err != nil {
  98817. return graphql.Null
  98818. }
  98819. ctx = graphql.WithFieldContext(ctx, fc)
  98820. defer func() {
  98821. if r := recover(); r != nil {
  98822. ec.Error(ctx, ec.Recover(ctx, r))
  98823. ret = graphql.Null
  98824. }
  98825. }()
  98826. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  98827. ctx = rctx // use context from middleware stack in children
  98828. return obj.ID, nil
  98829. })
  98830. if err != nil {
  98831. ec.Error(ctx, err)
  98832. return graphql.Null
  98833. }
  98834. if resTmp == nil {
  98835. if !graphql.HasFieldError(ctx, fc) {
  98836. ec.Errorf(ctx, "must not be null")
  98837. }
  98838. return graphql.Null
  98839. }
  98840. res := resTmp.(string)
  98841. fc.Result = res
  98842. return ec.marshalNID2string(ctx, field.Selections, res)
  98843. }
  98844. func (ec *executionContext) fieldContext_PaymentMandate_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  98845. fc = &graphql.FieldContext{
  98846. Object: "PaymentMandate",
  98847. Field: field,
  98848. IsMethod: false,
  98849. IsResolver: false,
  98850. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  98851. return nil, errors.New("field of type ID does not have child fields")
  98852. },
  98853. }
  98854. return fc, nil
  98855. }
  98856. func (ec *executionContext) _PaymentMandate_paymentInstrument(ctx context.Context, field graphql.CollectedField, obj *PaymentMandate) (ret graphql.Marshaler) {
  98857. fc, err := ec.fieldContext_PaymentMandate_paymentInstrument(ctx, field)
  98858. if err != nil {
  98859. return graphql.Null
  98860. }
  98861. ctx = graphql.WithFieldContext(ctx, fc)
  98862. defer func() {
  98863. if r := recover(); r != nil {
  98864. ec.Error(ctx, ec.Recover(ctx, r))
  98865. ret = graphql.Null
  98866. }
  98867. }()
  98868. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  98869. ctx = rctx // use context from middleware stack in children
  98870. return obj.PaymentInstrument, nil
  98871. })
  98872. if err != nil {
  98873. ec.Error(ctx, err)
  98874. return graphql.Null
  98875. }
  98876. if resTmp == nil {
  98877. if !graphql.HasFieldError(ctx, fc) {
  98878. ec.Errorf(ctx, "must not be null")
  98879. }
  98880. return graphql.Null
  98881. }
  98882. res := resTmp.(PaymentInstrument)
  98883. fc.Result = res
  98884. return ec.marshalNPaymentInstrument2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentInstrument(ctx, field.Selections, res)
  98885. }
  98886. func (ec *executionContext) fieldContext_PaymentMandate_paymentInstrument(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  98887. fc = &graphql.FieldContext{
  98888. Object: "PaymentMandate",
  98889. Field: field,
  98890. IsMethod: false,
  98891. IsResolver: false,
  98892. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  98893. return nil, errors.New("field of type PaymentInstrument does not have child fields")
  98894. },
  98895. }
  98896. return fc, nil
  98897. }
  98898. func (ec *executionContext) _PaymentSchedule_amount(ctx context.Context, field graphql.CollectedField, obj *PaymentSchedule) (ret graphql.Marshaler) {
  98899. fc, err := ec.fieldContext_PaymentSchedule_amount(ctx, field)
  98900. if err != nil {
  98901. return graphql.Null
  98902. }
  98903. ctx = graphql.WithFieldContext(ctx, fc)
  98904. defer func() {
  98905. if r := recover(); r != nil {
  98906. ec.Error(ctx, ec.Recover(ctx, r))
  98907. ret = graphql.Null
  98908. }
  98909. }()
  98910. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  98911. ctx = rctx // use context from middleware stack in children
  98912. return obj.Amount, nil
  98913. })
  98914. if err != nil {
  98915. ec.Error(ctx, err)
  98916. return graphql.Null
  98917. }
  98918. if resTmp == nil {
  98919. if !graphql.HasFieldError(ctx, fc) {
  98920. ec.Errorf(ctx, "must not be null")
  98921. }
  98922. return graphql.Null
  98923. }
  98924. res := resTmp.(*MoneyV2)
  98925. fc.Result = res
  98926. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  98927. }
  98928. func (ec *executionContext) fieldContext_PaymentSchedule_amount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  98929. fc = &graphql.FieldContext{
  98930. Object: "PaymentSchedule",
  98931. Field: field,
  98932. IsMethod: false,
  98933. IsResolver: false,
  98934. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  98935. switch field.Name {
  98936. case "amount":
  98937. return ec.fieldContext_MoneyV2_amount(ctx, field)
  98938. case "currencyCode":
  98939. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  98940. }
  98941. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  98942. },
  98943. }
  98944. return fc, nil
  98945. }
  98946. func (ec *executionContext) _PaymentSchedule_completedAt(ctx context.Context, field graphql.CollectedField, obj *PaymentSchedule) (ret graphql.Marshaler) {
  98947. fc, err := ec.fieldContext_PaymentSchedule_completedAt(ctx, field)
  98948. if err != nil {
  98949. return graphql.Null
  98950. }
  98951. ctx = graphql.WithFieldContext(ctx, fc)
  98952. defer func() {
  98953. if r := recover(); r != nil {
  98954. ec.Error(ctx, ec.Recover(ctx, r))
  98955. ret = graphql.Null
  98956. }
  98957. }()
  98958. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  98959. ctx = rctx // use context from middleware stack in children
  98960. return obj.CompletedAt, nil
  98961. })
  98962. if err != nil {
  98963. ec.Error(ctx, err)
  98964. return graphql.Null
  98965. }
  98966. if resTmp == nil {
  98967. return graphql.Null
  98968. }
  98969. res := resTmp.(*string)
  98970. fc.Result = res
  98971. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  98972. }
  98973. func (ec *executionContext) fieldContext_PaymentSchedule_completedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  98974. fc = &graphql.FieldContext{
  98975. Object: "PaymentSchedule",
  98976. Field: field,
  98977. IsMethod: false,
  98978. IsResolver: false,
  98979. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  98980. return nil, errors.New("field of type DateTime does not have child fields")
  98981. },
  98982. }
  98983. return fc, nil
  98984. }
  98985. func (ec *executionContext) _PaymentSchedule_dueAt(ctx context.Context, field graphql.CollectedField, obj *PaymentSchedule) (ret graphql.Marshaler) {
  98986. fc, err := ec.fieldContext_PaymentSchedule_dueAt(ctx, field)
  98987. if err != nil {
  98988. return graphql.Null
  98989. }
  98990. ctx = graphql.WithFieldContext(ctx, fc)
  98991. defer func() {
  98992. if r := recover(); r != nil {
  98993. ec.Error(ctx, ec.Recover(ctx, r))
  98994. ret = graphql.Null
  98995. }
  98996. }()
  98997. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  98998. ctx = rctx // use context from middleware stack in children
  98999. return obj.DueAt, nil
  99000. })
  99001. if err != nil {
  99002. ec.Error(ctx, err)
  99003. return graphql.Null
  99004. }
  99005. if resTmp == nil {
  99006. return graphql.Null
  99007. }
  99008. res := resTmp.(*string)
  99009. fc.Result = res
  99010. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  99011. }
  99012. func (ec *executionContext) fieldContext_PaymentSchedule_dueAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  99013. fc = &graphql.FieldContext{
  99014. Object: "PaymentSchedule",
  99015. Field: field,
  99016. IsMethod: false,
  99017. IsResolver: false,
  99018. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  99019. return nil, errors.New("field of type DateTime does not have child fields")
  99020. },
  99021. }
  99022. return fc, nil
  99023. }
  99024. func (ec *executionContext) _PaymentSchedule_id(ctx context.Context, field graphql.CollectedField, obj *PaymentSchedule) (ret graphql.Marshaler) {
  99025. fc, err := ec.fieldContext_PaymentSchedule_id(ctx, field)
  99026. if err != nil {
  99027. return graphql.Null
  99028. }
  99029. ctx = graphql.WithFieldContext(ctx, fc)
  99030. defer func() {
  99031. if r := recover(); r != nil {
  99032. ec.Error(ctx, ec.Recover(ctx, r))
  99033. ret = graphql.Null
  99034. }
  99035. }()
  99036. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  99037. ctx = rctx // use context from middleware stack in children
  99038. return obj.ID, nil
  99039. })
  99040. if err != nil {
  99041. ec.Error(ctx, err)
  99042. return graphql.Null
  99043. }
  99044. if resTmp == nil {
  99045. if !graphql.HasFieldError(ctx, fc) {
  99046. ec.Errorf(ctx, "must not be null")
  99047. }
  99048. return graphql.Null
  99049. }
  99050. res := resTmp.(string)
  99051. fc.Result = res
  99052. return ec.marshalNID2string(ctx, field.Selections, res)
  99053. }
  99054. func (ec *executionContext) fieldContext_PaymentSchedule_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  99055. fc = &graphql.FieldContext{
  99056. Object: "PaymentSchedule",
  99057. Field: field,
  99058. IsMethod: false,
  99059. IsResolver: false,
  99060. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  99061. return nil, errors.New("field of type ID does not have child fields")
  99062. },
  99063. }
  99064. return fc, nil
  99065. }
  99066. func (ec *executionContext) _PaymentSchedule_issuedAt(ctx context.Context, field graphql.CollectedField, obj *PaymentSchedule) (ret graphql.Marshaler) {
  99067. fc, err := ec.fieldContext_PaymentSchedule_issuedAt(ctx, field)
  99068. if err != nil {
  99069. return graphql.Null
  99070. }
  99071. ctx = graphql.WithFieldContext(ctx, fc)
  99072. defer func() {
  99073. if r := recover(); r != nil {
  99074. ec.Error(ctx, ec.Recover(ctx, r))
  99075. ret = graphql.Null
  99076. }
  99077. }()
  99078. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  99079. ctx = rctx // use context from middleware stack in children
  99080. return obj.IssuedAt, nil
  99081. })
  99082. if err != nil {
  99083. ec.Error(ctx, err)
  99084. return graphql.Null
  99085. }
  99086. if resTmp == nil {
  99087. return graphql.Null
  99088. }
  99089. res := resTmp.(*string)
  99090. fc.Result = res
  99091. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  99092. }
  99093. func (ec *executionContext) fieldContext_PaymentSchedule_issuedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  99094. fc = &graphql.FieldContext{
  99095. Object: "PaymentSchedule",
  99096. Field: field,
  99097. IsMethod: false,
  99098. IsResolver: false,
  99099. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  99100. return nil, errors.New("field of type DateTime does not have child fields")
  99101. },
  99102. }
  99103. return fc, nil
  99104. }
  99105. func (ec *executionContext) _PaymentScheduleConnection_edges(ctx context.Context, field graphql.CollectedField, obj *PaymentScheduleConnection) (ret graphql.Marshaler) {
  99106. fc, err := ec.fieldContext_PaymentScheduleConnection_edges(ctx, field)
  99107. if err != nil {
  99108. return graphql.Null
  99109. }
  99110. ctx = graphql.WithFieldContext(ctx, fc)
  99111. defer func() {
  99112. if r := recover(); r != nil {
  99113. ec.Error(ctx, ec.Recover(ctx, r))
  99114. ret = graphql.Null
  99115. }
  99116. }()
  99117. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  99118. ctx = rctx // use context from middleware stack in children
  99119. return obj.Edges, nil
  99120. })
  99121. if err != nil {
  99122. ec.Error(ctx, err)
  99123. return graphql.Null
  99124. }
  99125. if resTmp == nil {
  99126. if !graphql.HasFieldError(ctx, fc) {
  99127. ec.Errorf(ctx, "must not be null")
  99128. }
  99129. return graphql.Null
  99130. }
  99131. res := resTmp.([]*PaymentScheduleEdge)
  99132. fc.Result = res
  99133. return ec.marshalNPaymentScheduleEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentScheduleEdgeᚄ(ctx, field.Selections, res)
  99134. }
  99135. func (ec *executionContext) fieldContext_PaymentScheduleConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  99136. fc = &graphql.FieldContext{
  99137. Object: "PaymentScheduleConnection",
  99138. Field: field,
  99139. IsMethod: false,
  99140. IsResolver: false,
  99141. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  99142. switch field.Name {
  99143. case "cursor":
  99144. return ec.fieldContext_PaymentScheduleEdge_cursor(ctx, field)
  99145. case "node":
  99146. return ec.fieldContext_PaymentScheduleEdge_node(ctx, field)
  99147. }
  99148. return nil, fmt.Errorf("no field named %q was found under type PaymentScheduleEdge", field.Name)
  99149. },
  99150. }
  99151. return fc, nil
  99152. }
  99153. func (ec *executionContext) _PaymentScheduleConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *PaymentScheduleConnection) (ret graphql.Marshaler) {
  99154. fc, err := ec.fieldContext_PaymentScheduleConnection_nodes(ctx, field)
  99155. if err != nil {
  99156. return graphql.Null
  99157. }
  99158. ctx = graphql.WithFieldContext(ctx, fc)
  99159. defer func() {
  99160. if r := recover(); r != nil {
  99161. ec.Error(ctx, ec.Recover(ctx, r))
  99162. ret = graphql.Null
  99163. }
  99164. }()
  99165. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  99166. ctx = rctx // use context from middleware stack in children
  99167. return obj.Nodes, nil
  99168. })
  99169. if err != nil {
  99170. ec.Error(ctx, err)
  99171. return graphql.Null
  99172. }
  99173. if resTmp == nil {
  99174. if !graphql.HasFieldError(ctx, fc) {
  99175. ec.Errorf(ctx, "must not be null")
  99176. }
  99177. return graphql.Null
  99178. }
  99179. res := resTmp.([]*PaymentSchedule)
  99180. fc.Result = res
  99181. return ec.marshalNPaymentSchedule2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentScheduleᚄ(ctx, field.Selections, res)
  99182. }
  99183. func (ec *executionContext) fieldContext_PaymentScheduleConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  99184. fc = &graphql.FieldContext{
  99185. Object: "PaymentScheduleConnection",
  99186. Field: field,
  99187. IsMethod: false,
  99188. IsResolver: false,
  99189. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  99190. switch field.Name {
  99191. case "amount":
  99192. return ec.fieldContext_PaymentSchedule_amount(ctx, field)
  99193. case "completedAt":
  99194. return ec.fieldContext_PaymentSchedule_completedAt(ctx, field)
  99195. case "dueAt":
  99196. return ec.fieldContext_PaymentSchedule_dueAt(ctx, field)
  99197. case "id":
  99198. return ec.fieldContext_PaymentSchedule_id(ctx, field)
  99199. case "issuedAt":
  99200. return ec.fieldContext_PaymentSchedule_issuedAt(ctx, field)
  99201. }
  99202. return nil, fmt.Errorf("no field named %q was found under type PaymentSchedule", field.Name)
  99203. },
  99204. }
  99205. return fc, nil
  99206. }
  99207. func (ec *executionContext) _PaymentScheduleConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *PaymentScheduleConnection) (ret graphql.Marshaler) {
  99208. fc, err := ec.fieldContext_PaymentScheduleConnection_pageInfo(ctx, field)
  99209. if err != nil {
  99210. return graphql.Null
  99211. }
  99212. ctx = graphql.WithFieldContext(ctx, fc)
  99213. defer func() {
  99214. if r := recover(); r != nil {
  99215. ec.Error(ctx, ec.Recover(ctx, r))
  99216. ret = graphql.Null
  99217. }
  99218. }()
  99219. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  99220. ctx = rctx // use context from middleware stack in children
  99221. return obj.PageInfo, nil
  99222. })
  99223. if err != nil {
  99224. ec.Error(ctx, err)
  99225. return graphql.Null
  99226. }
  99227. if resTmp == nil {
  99228. if !graphql.HasFieldError(ctx, fc) {
  99229. ec.Errorf(ctx, "must not be null")
  99230. }
  99231. return graphql.Null
  99232. }
  99233. res := resTmp.(*PageInfo)
  99234. fc.Result = res
  99235. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  99236. }
  99237. func (ec *executionContext) fieldContext_PaymentScheduleConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  99238. fc = &graphql.FieldContext{
  99239. Object: "PaymentScheduleConnection",
  99240. Field: field,
  99241. IsMethod: false,
  99242. IsResolver: false,
  99243. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  99244. switch field.Name {
  99245. case "endCursor":
  99246. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  99247. case "hasNextPage":
  99248. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  99249. case "hasPreviousPage":
  99250. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  99251. case "startCursor":
  99252. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  99253. }
  99254. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  99255. },
  99256. }
  99257. return fc, nil
  99258. }
  99259. func (ec *executionContext) _PaymentScheduleEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *PaymentScheduleEdge) (ret graphql.Marshaler) {
  99260. fc, err := ec.fieldContext_PaymentScheduleEdge_cursor(ctx, field)
  99261. if err != nil {
  99262. return graphql.Null
  99263. }
  99264. ctx = graphql.WithFieldContext(ctx, fc)
  99265. defer func() {
  99266. if r := recover(); r != nil {
  99267. ec.Error(ctx, ec.Recover(ctx, r))
  99268. ret = graphql.Null
  99269. }
  99270. }()
  99271. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  99272. ctx = rctx // use context from middleware stack in children
  99273. return obj.Cursor, nil
  99274. })
  99275. if err != nil {
  99276. ec.Error(ctx, err)
  99277. return graphql.Null
  99278. }
  99279. if resTmp == nil {
  99280. if !graphql.HasFieldError(ctx, fc) {
  99281. ec.Errorf(ctx, "must not be null")
  99282. }
  99283. return graphql.Null
  99284. }
  99285. res := resTmp.(string)
  99286. fc.Result = res
  99287. return ec.marshalNString2string(ctx, field.Selections, res)
  99288. }
  99289. func (ec *executionContext) fieldContext_PaymentScheduleEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  99290. fc = &graphql.FieldContext{
  99291. Object: "PaymentScheduleEdge",
  99292. Field: field,
  99293. IsMethod: false,
  99294. IsResolver: false,
  99295. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  99296. return nil, errors.New("field of type String does not have child fields")
  99297. },
  99298. }
  99299. return fc, nil
  99300. }
  99301. func (ec *executionContext) _PaymentScheduleEdge_node(ctx context.Context, field graphql.CollectedField, obj *PaymentScheduleEdge) (ret graphql.Marshaler) {
  99302. fc, err := ec.fieldContext_PaymentScheduleEdge_node(ctx, field)
  99303. if err != nil {
  99304. return graphql.Null
  99305. }
  99306. ctx = graphql.WithFieldContext(ctx, fc)
  99307. defer func() {
  99308. if r := recover(); r != nil {
  99309. ec.Error(ctx, ec.Recover(ctx, r))
  99310. ret = graphql.Null
  99311. }
  99312. }()
  99313. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  99314. ctx = rctx // use context from middleware stack in children
  99315. return obj.Node, nil
  99316. })
  99317. if err != nil {
  99318. ec.Error(ctx, err)
  99319. return graphql.Null
  99320. }
  99321. if resTmp == nil {
  99322. if !graphql.HasFieldError(ctx, fc) {
  99323. ec.Errorf(ctx, "must not be null")
  99324. }
  99325. return graphql.Null
  99326. }
  99327. res := resTmp.(*PaymentSchedule)
  99328. fc.Result = res
  99329. return ec.marshalNPaymentSchedule2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentSchedule(ctx, field.Selections, res)
  99330. }
  99331. func (ec *executionContext) fieldContext_PaymentScheduleEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  99332. fc = &graphql.FieldContext{
  99333. Object: "PaymentScheduleEdge",
  99334. Field: field,
  99335. IsMethod: false,
  99336. IsResolver: false,
  99337. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  99338. switch field.Name {
  99339. case "amount":
  99340. return ec.fieldContext_PaymentSchedule_amount(ctx, field)
  99341. case "completedAt":
  99342. return ec.fieldContext_PaymentSchedule_completedAt(ctx, field)
  99343. case "dueAt":
  99344. return ec.fieldContext_PaymentSchedule_dueAt(ctx, field)
  99345. case "id":
  99346. return ec.fieldContext_PaymentSchedule_id(ctx, field)
  99347. case "issuedAt":
  99348. return ec.fieldContext_PaymentSchedule_issuedAt(ctx, field)
  99349. }
  99350. return nil, fmt.Errorf("no field named %q was found under type PaymentSchedule", field.Name)
  99351. },
  99352. }
  99353. return fc, nil
  99354. }
  99355. func (ec *executionContext) _PaymentSettings_supportedDigitalWallets(ctx context.Context, field graphql.CollectedField, obj *PaymentSettings) (ret graphql.Marshaler) {
  99356. fc, err := ec.fieldContext_PaymentSettings_supportedDigitalWallets(ctx, field)
  99357. if err != nil {
  99358. return graphql.Null
  99359. }
  99360. ctx = graphql.WithFieldContext(ctx, fc)
  99361. defer func() {
  99362. if r := recover(); r != nil {
  99363. ec.Error(ctx, ec.Recover(ctx, r))
  99364. ret = graphql.Null
  99365. }
  99366. }()
  99367. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  99368. ctx = rctx // use context from middleware stack in children
  99369. return obj.SupportedDigitalWallets, nil
  99370. })
  99371. if err != nil {
  99372. ec.Error(ctx, err)
  99373. return graphql.Null
  99374. }
  99375. if resTmp == nil {
  99376. if !graphql.HasFieldError(ctx, fc) {
  99377. ec.Errorf(ctx, "must not be null")
  99378. }
  99379. return graphql.Null
  99380. }
  99381. res := resTmp.([]DigitalWallet)
  99382. fc.Result = res
  99383. return ec.marshalNDigitalWallet2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDigitalWalletᚄ(ctx, field.Selections, res)
  99384. }
  99385. func (ec *executionContext) fieldContext_PaymentSettings_supportedDigitalWallets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  99386. fc = &graphql.FieldContext{
  99387. Object: "PaymentSettings",
  99388. Field: field,
  99389. IsMethod: false,
  99390. IsResolver: false,
  99391. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  99392. return nil, errors.New("field of type DigitalWallet does not have child fields")
  99393. },
  99394. }
  99395. return fc, nil
  99396. }
  99397. func (ec *executionContext) _PaymentTerms_dueInDays(ctx context.Context, field graphql.CollectedField, obj *PaymentTerms) (ret graphql.Marshaler) {
  99398. fc, err := ec.fieldContext_PaymentTerms_dueInDays(ctx, field)
  99399. if err != nil {
  99400. return graphql.Null
  99401. }
  99402. ctx = graphql.WithFieldContext(ctx, fc)
  99403. defer func() {
  99404. if r := recover(); r != nil {
  99405. ec.Error(ctx, ec.Recover(ctx, r))
  99406. ret = graphql.Null
  99407. }
  99408. }()
  99409. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  99410. ctx = rctx // use context from middleware stack in children
  99411. return obj.DueInDays, nil
  99412. })
  99413. if err != nil {
  99414. ec.Error(ctx, err)
  99415. return graphql.Null
  99416. }
  99417. if resTmp == nil {
  99418. return graphql.Null
  99419. }
  99420. res := resTmp.(*int)
  99421. fc.Result = res
  99422. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  99423. }
  99424. func (ec *executionContext) fieldContext_PaymentTerms_dueInDays(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  99425. fc = &graphql.FieldContext{
  99426. Object: "PaymentTerms",
  99427. Field: field,
  99428. IsMethod: false,
  99429. IsResolver: false,
  99430. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  99431. return nil, errors.New("field of type Int does not have child fields")
  99432. },
  99433. }
  99434. return fc, nil
  99435. }
  99436. func (ec *executionContext) _PaymentTerms_id(ctx context.Context, field graphql.CollectedField, obj *PaymentTerms) (ret graphql.Marshaler) {
  99437. fc, err := ec.fieldContext_PaymentTerms_id(ctx, field)
  99438. if err != nil {
  99439. return graphql.Null
  99440. }
  99441. ctx = graphql.WithFieldContext(ctx, fc)
  99442. defer func() {
  99443. if r := recover(); r != nil {
  99444. ec.Error(ctx, ec.Recover(ctx, r))
  99445. ret = graphql.Null
  99446. }
  99447. }()
  99448. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  99449. ctx = rctx // use context from middleware stack in children
  99450. return obj.ID, nil
  99451. })
  99452. if err != nil {
  99453. ec.Error(ctx, err)
  99454. return graphql.Null
  99455. }
  99456. if resTmp == nil {
  99457. if !graphql.HasFieldError(ctx, fc) {
  99458. ec.Errorf(ctx, "must not be null")
  99459. }
  99460. return graphql.Null
  99461. }
  99462. res := resTmp.(string)
  99463. fc.Result = res
  99464. return ec.marshalNID2string(ctx, field.Selections, res)
  99465. }
  99466. func (ec *executionContext) fieldContext_PaymentTerms_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  99467. fc = &graphql.FieldContext{
  99468. Object: "PaymentTerms",
  99469. Field: field,
  99470. IsMethod: false,
  99471. IsResolver: false,
  99472. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  99473. return nil, errors.New("field of type ID does not have child fields")
  99474. },
  99475. }
  99476. return fc, nil
  99477. }
  99478. func (ec *executionContext) _PaymentTerms_overdue(ctx context.Context, field graphql.CollectedField, obj *PaymentTerms) (ret graphql.Marshaler) {
  99479. fc, err := ec.fieldContext_PaymentTerms_overdue(ctx, field)
  99480. if err != nil {
  99481. return graphql.Null
  99482. }
  99483. ctx = graphql.WithFieldContext(ctx, fc)
  99484. defer func() {
  99485. if r := recover(); r != nil {
  99486. ec.Error(ctx, ec.Recover(ctx, r))
  99487. ret = graphql.Null
  99488. }
  99489. }()
  99490. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  99491. ctx = rctx // use context from middleware stack in children
  99492. return obj.Overdue, nil
  99493. })
  99494. if err != nil {
  99495. ec.Error(ctx, err)
  99496. return graphql.Null
  99497. }
  99498. if resTmp == nil {
  99499. if !graphql.HasFieldError(ctx, fc) {
  99500. ec.Errorf(ctx, "must not be null")
  99501. }
  99502. return graphql.Null
  99503. }
  99504. res := resTmp.(bool)
  99505. fc.Result = res
  99506. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  99507. }
  99508. func (ec *executionContext) fieldContext_PaymentTerms_overdue(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  99509. fc = &graphql.FieldContext{
  99510. Object: "PaymentTerms",
  99511. Field: field,
  99512. IsMethod: false,
  99513. IsResolver: false,
  99514. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  99515. return nil, errors.New("field of type Boolean does not have child fields")
  99516. },
  99517. }
  99518. return fc, nil
  99519. }
  99520. func (ec *executionContext) _PaymentTerms_paymentSchedules(ctx context.Context, field graphql.CollectedField, obj *PaymentTerms) (ret graphql.Marshaler) {
  99521. fc, err := ec.fieldContext_PaymentTerms_paymentSchedules(ctx, field)
  99522. if err != nil {
  99523. return graphql.Null
  99524. }
  99525. ctx = graphql.WithFieldContext(ctx, fc)
  99526. defer func() {
  99527. if r := recover(); r != nil {
  99528. ec.Error(ctx, ec.Recover(ctx, r))
  99529. ret = graphql.Null
  99530. }
  99531. }()
  99532. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  99533. ctx = rctx // use context from middleware stack in children
  99534. return obj.PaymentSchedules, nil
  99535. })
  99536. if err != nil {
  99537. ec.Error(ctx, err)
  99538. return graphql.Null
  99539. }
  99540. if resTmp == nil {
  99541. if !graphql.HasFieldError(ctx, fc) {
  99542. ec.Errorf(ctx, "must not be null")
  99543. }
  99544. return graphql.Null
  99545. }
  99546. res := resTmp.(*PaymentScheduleConnection)
  99547. fc.Result = res
  99548. return ec.marshalNPaymentScheduleConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentScheduleConnection(ctx, field.Selections, res)
  99549. }
  99550. func (ec *executionContext) fieldContext_PaymentTerms_paymentSchedules(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  99551. fc = &graphql.FieldContext{
  99552. Object: "PaymentTerms",
  99553. Field: field,
  99554. IsMethod: false,
  99555. IsResolver: false,
  99556. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  99557. switch field.Name {
  99558. case "edges":
  99559. return ec.fieldContext_PaymentScheduleConnection_edges(ctx, field)
  99560. case "nodes":
  99561. return ec.fieldContext_PaymentScheduleConnection_nodes(ctx, field)
  99562. case "pageInfo":
  99563. return ec.fieldContext_PaymentScheduleConnection_pageInfo(ctx, field)
  99564. }
  99565. return nil, fmt.Errorf("no field named %q was found under type PaymentScheduleConnection", field.Name)
  99566. },
  99567. }
  99568. defer func() {
  99569. if r := recover(); r != nil {
  99570. err = ec.Recover(ctx, r)
  99571. ec.Error(ctx, err)
  99572. }
  99573. }()
  99574. ctx = graphql.WithFieldContext(ctx, fc)
  99575. if fc.Args, err = ec.field_PaymentTerms_paymentSchedules_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  99576. ec.Error(ctx, err)
  99577. return
  99578. }
  99579. return fc, nil
  99580. }
  99581. func (ec *executionContext) _PaymentTerms_paymentTermsName(ctx context.Context, field graphql.CollectedField, obj *PaymentTerms) (ret graphql.Marshaler) {
  99582. fc, err := ec.fieldContext_PaymentTerms_paymentTermsName(ctx, field)
  99583. if err != nil {
  99584. return graphql.Null
  99585. }
  99586. ctx = graphql.WithFieldContext(ctx, fc)
  99587. defer func() {
  99588. if r := recover(); r != nil {
  99589. ec.Error(ctx, ec.Recover(ctx, r))
  99590. ret = graphql.Null
  99591. }
  99592. }()
  99593. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  99594. ctx = rctx // use context from middleware stack in children
  99595. return obj.PaymentTermsName, nil
  99596. })
  99597. if err != nil {
  99598. ec.Error(ctx, err)
  99599. return graphql.Null
  99600. }
  99601. if resTmp == nil {
  99602. if !graphql.HasFieldError(ctx, fc) {
  99603. ec.Errorf(ctx, "must not be null")
  99604. }
  99605. return graphql.Null
  99606. }
  99607. res := resTmp.(string)
  99608. fc.Result = res
  99609. return ec.marshalNString2string(ctx, field.Selections, res)
  99610. }
  99611. func (ec *executionContext) fieldContext_PaymentTerms_paymentTermsName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  99612. fc = &graphql.FieldContext{
  99613. Object: "PaymentTerms",
  99614. Field: field,
  99615. IsMethod: false,
  99616. IsResolver: false,
  99617. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  99618. return nil, errors.New("field of type String does not have child fields")
  99619. },
  99620. }
  99621. return fc, nil
  99622. }
  99623. func (ec *executionContext) _PaymentTerms_paymentTermsType(ctx context.Context, field graphql.CollectedField, obj *PaymentTerms) (ret graphql.Marshaler) {
  99624. fc, err := ec.fieldContext_PaymentTerms_paymentTermsType(ctx, field)
  99625. if err != nil {
  99626. return graphql.Null
  99627. }
  99628. ctx = graphql.WithFieldContext(ctx, fc)
  99629. defer func() {
  99630. if r := recover(); r != nil {
  99631. ec.Error(ctx, ec.Recover(ctx, r))
  99632. ret = graphql.Null
  99633. }
  99634. }()
  99635. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  99636. ctx = rctx // use context from middleware stack in children
  99637. return obj.PaymentTermsType, nil
  99638. })
  99639. if err != nil {
  99640. ec.Error(ctx, err)
  99641. return graphql.Null
  99642. }
  99643. if resTmp == nil {
  99644. if !graphql.HasFieldError(ctx, fc) {
  99645. ec.Errorf(ctx, "must not be null")
  99646. }
  99647. return graphql.Null
  99648. }
  99649. res := resTmp.(PaymentTermsType)
  99650. fc.Result = res
  99651. return ec.marshalNPaymentTermsType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentTermsType(ctx, field.Selections, res)
  99652. }
  99653. func (ec *executionContext) fieldContext_PaymentTerms_paymentTermsType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  99654. fc = &graphql.FieldContext{
  99655. Object: "PaymentTerms",
  99656. Field: field,
  99657. IsMethod: false,
  99658. IsResolver: false,
  99659. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  99660. return nil, errors.New("field of type PaymentTermsType does not have child fields")
  99661. },
  99662. }
  99663. return fc, nil
  99664. }
  99665. func (ec *executionContext) _PaymentTerms_translatedName(ctx context.Context, field graphql.CollectedField, obj *PaymentTerms) (ret graphql.Marshaler) {
  99666. fc, err := ec.fieldContext_PaymentTerms_translatedName(ctx, field)
  99667. if err != nil {
  99668. return graphql.Null
  99669. }
  99670. ctx = graphql.WithFieldContext(ctx, fc)
  99671. defer func() {
  99672. if r := recover(); r != nil {
  99673. ec.Error(ctx, ec.Recover(ctx, r))
  99674. ret = graphql.Null
  99675. }
  99676. }()
  99677. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  99678. ctx = rctx // use context from middleware stack in children
  99679. return obj.TranslatedName, nil
  99680. })
  99681. if err != nil {
  99682. ec.Error(ctx, err)
  99683. return graphql.Null
  99684. }
  99685. if resTmp == nil {
  99686. if !graphql.HasFieldError(ctx, fc) {
  99687. ec.Errorf(ctx, "must not be null")
  99688. }
  99689. return graphql.Null
  99690. }
  99691. res := resTmp.(string)
  99692. fc.Result = res
  99693. return ec.marshalNString2string(ctx, field.Selections, res)
  99694. }
  99695. func (ec *executionContext) fieldContext_PaymentTerms_translatedName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  99696. fc = &graphql.FieldContext{
  99697. Object: "PaymentTerms",
  99698. Field: field,
  99699. IsMethod: false,
  99700. IsResolver: false,
  99701. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  99702. return nil, errors.New("field of type String does not have child fields")
  99703. },
  99704. }
  99705. return fc, nil
  99706. }
  99707. func (ec *executionContext) _PaymentTermsTemplate_description(ctx context.Context, field graphql.CollectedField, obj *PaymentTermsTemplate) (ret graphql.Marshaler) {
  99708. fc, err := ec.fieldContext_PaymentTermsTemplate_description(ctx, field)
  99709. if err != nil {
  99710. return graphql.Null
  99711. }
  99712. ctx = graphql.WithFieldContext(ctx, fc)
  99713. defer func() {
  99714. if r := recover(); r != nil {
  99715. ec.Error(ctx, ec.Recover(ctx, r))
  99716. ret = graphql.Null
  99717. }
  99718. }()
  99719. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  99720. ctx = rctx // use context from middleware stack in children
  99721. return obj.Description, nil
  99722. })
  99723. if err != nil {
  99724. ec.Error(ctx, err)
  99725. return graphql.Null
  99726. }
  99727. if resTmp == nil {
  99728. if !graphql.HasFieldError(ctx, fc) {
  99729. ec.Errorf(ctx, "must not be null")
  99730. }
  99731. return graphql.Null
  99732. }
  99733. res := resTmp.(string)
  99734. fc.Result = res
  99735. return ec.marshalNString2string(ctx, field.Selections, res)
  99736. }
  99737. func (ec *executionContext) fieldContext_PaymentTermsTemplate_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  99738. fc = &graphql.FieldContext{
  99739. Object: "PaymentTermsTemplate",
  99740. Field: field,
  99741. IsMethod: false,
  99742. IsResolver: false,
  99743. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  99744. return nil, errors.New("field of type String does not have child fields")
  99745. },
  99746. }
  99747. return fc, nil
  99748. }
  99749. func (ec *executionContext) _PaymentTermsTemplate_dueInDays(ctx context.Context, field graphql.CollectedField, obj *PaymentTermsTemplate) (ret graphql.Marshaler) {
  99750. fc, err := ec.fieldContext_PaymentTermsTemplate_dueInDays(ctx, field)
  99751. if err != nil {
  99752. return graphql.Null
  99753. }
  99754. ctx = graphql.WithFieldContext(ctx, fc)
  99755. defer func() {
  99756. if r := recover(); r != nil {
  99757. ec.Error(ctx, ec.Recover(ctx, r))
  99758. ret = graphql.Null
  99759. }
  99760. }()
  99761. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  99762. ctx = rctx // use context from middleware stack in children
  99763. return obj.DueInDays, nil
  99764. })
  99765. if err != nil {
  99766. ec.Error(ctx, err)
  99767. return graphql.Null
  99768. }
  99769. if resTmp == nil {
  99770. return graphql.Null
  99771. }
  99772. res := resTmp.(*int)
  99773. fc.Result = res
  99774. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  99775. }
  99776. func (ec *executionContext) fieldContext_PaymentTermsTemplate_dueInDays(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  99777. fc = &graphql.FieldContext{
  99778. Object: "PaymentTermsTemplate",
  99779. Field: field,
  99780. IsMethod: false,
  99781. IsResolver: false,
  99782. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  99783. return nil, errors.New("field of type Int does not have child fields")
  99784. },
  99785. }
  99786. return fc, nil
  99787. }
  99788. func (ec *executionContext) _PaymentTermsTemplate_id(ctx context.Context, field graphql.CollectedField, obj *PaymentTermsTemplate) (ret graphql.Marshaler) {
  99789. fc, err := ec.fieldContext_PaymentTermsTemplate_id(ctx, field)
  99790. if err != nil {
  99791. return graphql.Null
  99792. }
  99793. ctx = graphql.WithFieldContext(ctx, fc)
  99794. defer func() {
  99795. if r := recover(); r != nil {
  99796. ec.Error(ctx, ec.Recover(ctx, r))
  99797. ret = graphql.Null
  99798. }
  99799. }()
  99800. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  99801. ctx = rctx // use context from middleware stack in children
  99802. return obj.ID, nil
  99803. })
  99804. if err != nil {
  99805. ec.Error(ctx, err)
  99806. return graphql.Null
  99807. }
  99808. if resTmp == nil {
  99809. if !graphql.HasFieldError(ctx, fc) {
  99810. ec.Errorf(ctx, "must not be null")
  99811. }
  99812. return graphql.Null
  99813. }
  99814. res := resTmp.(string)
  99815. fc.Result = res
  99816. return ec.marshalNID2string(ctx, field.Selections, res)
  99817. }
  99818. func (ec *executionContext) fieldContext_PaymentTermsTemplate_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  99819. fc = &graphql.FieldContext{
  99820. Object: "PaymentTermsTemplate",
  99821. Field: field,
  99822. IsMethod: false,
  99823. IsResolver: false,
  99824. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  99825. return nil, errors.New("field of type ID does not have child fields")
  99826. },
  99827. }
  99828. return fc, nil
  99829. }
  99830. func (ec *executionContext) _PaymentTermsTemplate_name(ctx context.Context, field graphql.CollectedField, obj *PaymentTermsTemplate) (ret graphql.Marshaler) {
  99831. fc, err := ec.fieldContext_PaymentTermsTemplate_name(ctx, field)
  99832. if err != nil {
  99833. return graphql.Null
  99834. }
  99835. ctx = graphql.WithFieldContext(ctx, fc)
  99836. defer func() {
  99837. if r := recover(); r != nil {
  99838. ec.Error(ctx, ec.Recover(ctx, r))
  99839. ret = graphql.Null
  99840. }
  99841. }()
  99842. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  99843. ctx = rctx // use context from middleware stack in children
  99844. return obj.Name, nil
  99845. })
  99846. if err != nil {
  99847. ec.Error(ctx, err)
  99848. return graphql.Null
  99849. }
  99850. if resTmp == nil {
  99851. if !graphql.HasFieldError(ctx, fc) {
  99852. ec.Errorf(ctx, "must not be null")
  99853. }
  99854. return graphql.Null
  99855. }
  99856. res := resTmp.(string)
  99857. fc.Result = res
  99858. return ec.marshalNString2string(ctx, field.Selections, res)
  99859. }
  99860. func (ec *executionContext) fieldContext_PaymentTermsTemplate_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  99861. fc = &graphql.FieldContext{
  99862. Object: "PaymentTermsTemplate",
  99863. Field: field,
  99864. IsMethod: false,
  99865. IsResolver: false,
  99866. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  99867. return nil, errors.New("field of type String does not have child fields")
  99868. },
  99869. }
  99870. return fc, nil
  99871. }
  99872. func (ec *executionContext) _PaymentTermsTemplate_paymentTermsType(ctx context.Context, field graphql.CollectedField, obj *PaymentTermsTemplate) (ret graphql.Marshaler) {
  99873. fc, err := ec.fieldContext_PaymentTermsTemplate_paymentTermsType(ctx, field)
  99874. if err != nil {
  99875. return graphql.Null
  99876. }
  99877. ctx = graphql.WithFieldContext(ctx, fc)
  99878. defer func() {
  99879. if r := recover(); r != nil {
  99880. ec.Error(ctx, ec.Recover(ctx, r))
  99881. ret = graphql.Null
  99882. }
  99883. }()
  99884. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  99885. ctx = rctx // use context from middleware stack in children
  99886. return obj.PaymentTermsType, nil
  99887. })
  99888. if err != nil {
  99889. ec.Error(ctx, err)
  99890. return graphql.Null
  99891. }
  99892. if resTmp == nil {
  99893. if !graphql.HasFieldError(ctx, fc) {
  99894. ec.Errorf(ctx, "must not be null")
  99895. }
  99896. return graphql.Null
  99897. }
  99898. res := resTmp.(PaymentTermsType)
  99899. fc.Result = res
  99900. return ec.marshalNPaymentTermsType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentTermsType(ctx, field.Selections, res)
  99901. }
  99902. func (ec *executionContext) fieldContext_PaymentTermsTemplate_paymentTermsType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  99903. fc = &graphql.FieldContext{
  99904. Object: "PaymentTermsTemplate",
  99905. Field: field,
  99906. IsMethod: false,
  99907. IsResolver: false,
  99908. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  99909. return nil, errors.New("field of type PaymentTermsType does not have child fields")
  99910. },
  99911. }
  99912. return fc, nil
  99913. }
  99914. func (ec *executionContext) _PaymentTermsTemplate_translatedName(ctx context.Context, field graphql.CollectedField, obj *PaymentTermsTemplate) (ret graphql.Marshaler) {
  99915. fc, err := ec.fieldContext_PaymentTermsTemplate_translatedName(ctx, field)
  99916. if err != nil {
  99917. return graphql.Null
  99918. }
  99919. ctx = graphql.WithFieldContext(ctx, fc)
  99920. defer func() {
  99921. if r := recover(); r != nil {
  99922. ec.Error(ctx, ec.Recover(ctx, r))
  99923. ret = graphql.Null
  99924. }
  99925. }()
  99926. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  99927. ctx = rctx // use context from middleware stack in children
  99928. return obj.TranslatedName, nil
  99929. })
  99930. if err != nil {
  99931. ec.Error(ctx, err)
  99932. return graphql.Null
  99933. }
  99934. if resTmp == nil {
  99935. if !graphql.HasFieldError(ctx, fc) {
  99936. ec.Errorf(ctx, "must not be null")
  99937. }
  99938. return graphql.Null
  99939. }
  99940. res := resTmp.(string)
  99941. fc.Result = res
  99942. return ec.marshalNString2string(ctx, field.Selections, res)
  99943. }
  99944. func (ec *executionContext) fieldContext_PaymentTermsTemplate_translatedName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  99945. fc = &graphql.FieldContext{
  99946. Object: "PaymentTermsTemplate",
  99947. Field: field,
  99948. IsMethod: false,
  99949. IsResolver: false,
  99950. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  99951. return nil, errors.New("field of type String does not have child fields")
  99952. },
  99953. }
  99954. return fc, nil
  99955. }
  99956. func (ec *executionContext) _PriceList_contextRule(ctx context.Context, field graphql.CollectedField, obj *PriceList) (ret graphql.Marshaler) {
  99957. fc, err := ec.fieldContext_PriceList_contextRule(ctx, field)
  99958. if err != nil {
  99959. return graphql.Null
  99960. }
  99961. ctx = graphql.WithFieldContext(ctx, fc)
  99962. defer func() {
  99963. if r := recover(); r != nil {
  99964. ec.Error(ctx, ec.Recover(ctx, r))
  99965. ret = graphql.Null
  99966. }
  99967. }()
  99968. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  99969. ctx = rctx // use context from middleware stack in children
  99970. return obj.ContextRule, nil
  99971. })
  99972. if err != nil {
  99973. ec.Error(ctx, err)
  99974. return graphql.Null
  99975. }
  99976. if resTmp == nil {
  99977. return graphql.Null
  99978. }
  99979. res := resTmp.(*PriceListContextRule)
  99980. fc.Result = res
  99981. return ec.marshalOPriceListContextRule2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceListContextRule(ctx, field.Selections, res)
  99982. }
  99983. func (ec *executionContext) fieldContext_PriceList_contextRule(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  99984. fc = &graphql.FieldContext{
  99985. Object: "PriceList",
  99986. Field: field,
  99987. IsMethod: false,
  99988. IsResolver: false,
  99989. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  99990. switch field.Name {
  99991. case "countries":
  99992. return ec.fieldContext_PriceListContextRule_countries(ctx, field)
  99993. case "market":
  99994. return ec.fieldContext_PriceListContextRule_market(ctx, field)
  99995. }
  99996. return nil, fmt.Errorf("no field named %q was found under type PriceListContextRule", field.Name)
  99997. },
  99998. }
  99999. return fc, nil
  100000. }
  100001. func (ec *executionContext) _PriceList_currency(ctx context.Context, field graphql.CollectedField, obj *PriceList) (ret graphql.Marshaler) {
  100002. fc, err := ec.fieldContext_PriceList_currency(ctx, field)
  100003. if err != nil {
  100004. return graphql.Null
  100005. }
  100006. ctx = graphql.WithFieldContext(ctx, fc)
  100007. defer func() {
  100008. if r := recover(); r != nil {
  100009. ec.Error(ctx, ec.Recover(ctx, r))
  100010. ret = graphql.Null
  100011. }
  100012. }()
  100013. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  100014. ctx = rctx // use context from middleware stack in children
  100015. return obj.Currency, nil
  100016. })
  100017. if err != nil {
  100018. ec.Error(ctx, err)
  100019. return graphql.Null
  100020. }
  100021. if resTmp == nil {
  100022. if !graphql.HasFieldError(ctx, fc) {
  100023. ec.Errorf(ctx, "must not be null")
  100024. }
  100025. return graphql.Null
  100026. }
  100027. res := resTmp.(CurrencyCode)
  100028. fc.Result = res
  100029. return ec.marshalNCurrencyCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencyCode(ctx, field.Selections, res)
  100030. }
  100031. func (ec *executionContext) fieldContext_PriceList_currency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  100032. fc = &graphql.FieldContext{
  100033. Object: "PriceList",
  100034. Field: field,
  100035. IsMethod: false,
  100036. IsResolver: false,
  100037. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  100038. return nil, errors.New("field of type CurrencyCode does not have child fields")
  100039. },
  100040. }
  100041. return fc, nil
  100042. }
  100043. func (ec *executionContext) _PriceList_id(ctx context.Context, field graphql.CollectedField, obj *PriceList) (ret graphql.Marshaler) {
  100044. fc, err := ec.fieldContext_PriceList_id(ctx, field)
  100045. if err != nil {
  100046. return graphql.Null
  100047. }
  100048. ctx = graphql.WithFieldContext(ctx, fc)
  100049. defer func() {
  100050. if r := recover(); r != nil {
  100051. ec.Error(ctx, ec.Recover(ctx, r))
  100052. ret = graphql.Null
  100053. }
  100054. }()
  100055. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  100056. ctx = rctx // use context from middleware stack in children
  100057. return obj.ID, nil
  100058. })
  100059. if err != nil {
  100060. ec.Error(ctx, err)
  100061. return graphql.Null
  100062. }
  100063. if resTmp == nil {
  100064. if !graphql.HasFieldError(ctx, fc) {
  100065. ec.Errorf(ctx, "must not be null")
  100066. }
  100067. return graphql.Null
  100068. }
  100069. res := resTmp.(string)
  100070. fc.Result = res
  100071. return ec.marshalNID2string(ctx, field.Selections, res)
  100072. }
  100073. func (ec *executionContext) fieldContext_PriceList_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  100074. fc = &graphql.FieldContext{
  100075. Object: "PriceList",
  100076. Field: field,
  100077. IsMethod: false,
  100078. IsResolver: false,
  100079. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  100080. return nil, errors.New("field of type ID does not have child fields")
  100081. },
  100082. }
  100083. return fc, nil
  100084. }
  100085. func (ec *executionContext) _PriceList_name(ctx context.Context, field graphql.CollectedField, obj *PriceList) (ret graphql.Marshaler) {
  100086. fc, err := ec.fieldContext_PriceList_name(ctx, field)
  100087. if err != nil {
  100088. return graphql.Null
  100089. }
  100090. ctx = graphql.WithFieldContext(ctx, fc)
  100091. defer func() {
  100092. if r := recover(); r != nil {
  100093. ec.Error(ctx, ec.Recover(ctx, r))
  100094. ret = graphql.Null
  100095. }
  100096. }()
  100097. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  100098. ctx = rctx // use context from middleware stack in children
  100099. return obj.Name, nil
  100100. })
  100101. if err != nil {
  100102. ec.Error(ctx, err)
  100103. return graphql.Null
  100104. }
  100105. if resTmp == nil {
  100106. if !graphql.HasFieldError(ctx, fc) {
  100107. ec.Errorf(ctx, "must not be null")
  100108. }
  100109. return graphql.Null
  100110. }
  100111. res := resTmp.(string)
  100112. fc.Result = res
  100113. return ec.marshalNString2string(ctx, field.Selections, res)
  100114. }
  100115. func (ec *executionContext) fieldContext_PriceList_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  100116. fc = &graphql.FieldContext{
  100117. Object: "PriceList",
  100118. Field: field,
  100119. IsMethod: false,
  100120. IsResolver: false,
  100121. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  100122. return nil, errors.New("field of type String does not have child fields")
  100123. },
  100124. }
  100125. return fc, nil
  100126. }
  100127. func (ec *executionContext) _PriceList_parent(ctx context.Context, field graphql.CollectedField, obj *PriceList) (ret graphql.Marshaler) {
  100128. fc, err := ec.fieldContext_PriceList_parent(ctx, field)
  100129. if err != nil {
  100130. return graphql.Null
  100131. }
  100132. ctx = graphql.WithFieldContext(ctx, fc)
  100133. defer func() {
  100134. if r := recover(); r != nil {
  100135. ec.Error(ctx, ec.Recover(ctx, r))
  100136. ret = graphql.Null
  100137. }
  100138. }()
  100139. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  100140. ctx = rctx // use context from middleware stack in children
  100141. return obj.Parent, nil
  100142. })
  100143. if err != nil {
  100144. ec.Error(ctx, err)
  100145. return graphql.Null
  100146. }
  100147. if resTmp == nil {
  100148. return graphql.Null
  100149. }
  100150. res := resTmp.(*PriceListParent)
  100151. fc.Result = res
  100152. return ec.marshalOPriceListParent2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceListParent(ctx, field.Selections, res)
  100153. }
  100154. func (ec *executionContext) fieldContext_PriceList_parent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  100155. fc = &graphql.FieldContext{
  100156. Object: "PriceList",
  100157. Field: field,
  100158. IsMethod: false,
  100159. IsResolver: false,
  100160. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  100161. switch field.Name {
  100162. case "adjustment":
  100163. return ec.fieldContext_PriceListParent_adjustment(ctx, field)
  100164. }
  100165. return nil, fmt.Errorf("no field named %q was found under type PriceListParent", field.Name)
  100166. },
  100167. }
  100168. return fc, nil
  100169. }
  100170. func (ec *executionContext) _PriceList_prices(ctx context.Context, field graphql.CollectedField, obj *PriceList) (ret graphql.Marshaler) {
  100171. fc, err := ec.fieldContext_PriceList_prices(ctx, field)
  100172. if err != nil {
  100173. return graphql.Null
  100174. }
  100175. ctx = graphql.WithFieldContext(ctx, fc)
  100176. defer func() {
  100177. if r := recover(); r != nil {
  100178. ec.Error(ctx, ec.Recover(ctx, r))
  100179. ret = graphql.Null
  100180. }
  100181. }()
  100182. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  100183. ctx = rctx // use context from middleware stack in children
  100184. return obj.Prices, nil
  100185. })
  100186. if err != nil {
  100187. ec.Error(ctx, err)
  100188. return graphql.Null
  100189. }
  100190. if resTmp == nil {
  100191. if !graphql.HasFieldError(ctx, fc) {
  100192. ec.Errorf(ctx, "must not be null")
  100193. }
  100194. return graphql.Null
  100195. }
  100196. res := resTmp.(*PriceListPriceConnection)
  100197. fc.Result = res
  100198. return ec.marshalNPriceListPriceConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceListPriceConnection(ctx, field.Selections, res)
  100199. }
  100200. func (ec *executionContext) fieldContext_PriceList_prices(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  100201. fc = &graphql.FieldContext{
  100202. Object: "PriceList",
  100203. Field: field,
  100204. IsMethod: false,
  100205. IsResolver: false,
  100206. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  100207. switch field.Name {
  100208. case "edges":
  100209. return ec.fieldContext_PriceListPriceConnection_edges(ctx, field)
  100210. case "nodes":
  100211. return ec.fieldContext_PriceListPriceConnection_nodes(ctx, field)
  100212. case "pageInfo":
  100213. return ec.fieldContext_PriceListPriceConnection_pageInfo(ctx, field)
  100214. }
  100215. return nil, fmt.Errorf("no field named %q was found under type PriceListPriceConnection", field.Name)
  100216. },
  100217. }
  100218. defer func() {
  100219. if r := recover(); r != nil {
  100220. err = ec.Recover(ctx, r)
  100221. ec.Error(ctx, err)
  100222. }
  100223. }()
  100224. ctx = graphql.WithFieldContext(ctx, fc)
  100225. if fc.Args, err = ec.field_PriceList_prices_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  100226. ec.Error(ctx, err)
  100227. return
  100228. }
  100229. return fc, nil
  100230. }
  100231. func (ec *executionContext) _PriceListAdjustment_type(ctx context.Context, field graphql.CollectedField, obj *PriceListAdjustment) (ret graphql.Marshaler) {
  100232. fc, err := ec.fieldContext_PriceListAdjustment_type(ctx, field)
  100233. if err != nil {
  100234. return graphql.Null
  100235. }
  100236. ctx = graphql.WithFieldContext(ctx, fc)
  100237. defer func() {
  100238. if r := recover(); r != nil {
  100239. ec.Error(ctx, ec.Recover(ctx, r))
  100240. ret = graphql.Null
  100241. }
  100242. }()
  100243. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  100244. ctx = rctx // use context from middleware stack in children
  100245. return obj.Type, nil
  100246. })
  100247. if err != nil {
  100248. ec.Error(ctx, err)
  100249. return graphql.Null
  100250. }
  100251. if resTmp == nil {
  100252. if !graphql.HasFieldError(ctx, fc) {
  100253. ec.Errorf(ctx, "must not be null")
  100254. }
  100255. return graphql.Null
  100256. }
  100257. res := resTmp.(PriceListAdjustmentType)
  100258. fc.Result = res
  100259. return ec.marshalNPriceListAdjustmentType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceListAdjustmentType(ctx, field.Selections, res)
  100260. }
  100261. func (ec *executionContext) fieldContext_PriceListAdjustment_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  100262. fc = &graphql.FieldContext{
  100263. Object: "PriceListAdjustment",
  100264. Field: field,
  100265. IsMethod: false,
  100266. IsResolver: false,
  100267. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  100268. return nil, errors.New("field of type PriceListAdjustmentType does not have child fields")
  100269. },
  100270. }
  100271. return fc, nil
  100272. }
  100273. func (ec *executionContext) _PriceListAdjustment_value(ctx context.Context, field graphql.CollectedField, obj *PriceListAdjustment) (ret graphql.Marshaler) {
  100274. fc, err := ec.fieldContext_PriceListAdjustment_value(ctx, field)
  100275. if err != nil {
  100276. return graphql.Null
  100277. }
  100278. ctx = graphql.WithFieldContext(ctx, fc)
  100279. defer func() {
  100280. if r := recover(); r != nil {
  100281. ec.Error(ctx, ec.Recover(ctx, r))
  100282. ret = graphql.Null
  100283. }
  100284. }()
  100285. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  100286. ctx = rctx // use context from middleware stack in children
  100287. return obj.Value, nil
  100288. })
  100289. if err != nil {
  100290. ec.Error(ctx, err)
  100291. return graphql.Null
  100292. }
  100293. if resTmp == nil {
  100294. if !graphql.HasFieldError(ctx, fc) {
  100295. ec.Errorf(ctx, "must not be null")
  100296. }
  100297. return graphql.Null
  100298. }
  100299. res := resTmp.(float64)
  100300. fc.Result = res
  100301. return ec.marshalNFloat2float64(ctx, field.Selections, res)
  100302. }
  100303. func (ec *executionContext) fieldContext_PriceListAdjustment_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  100304. fc = &graphql.FieldContext{
  100305. Object: "PriceListAdjustment",
  100306. Field: field,
  100307. IsMethod: false,
  100308. IsResolver: false,
  100309. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  100310. return nil, errors.New("field of type Float does not have child fields")
  100311. },
  100312. }
  100313. return fc, nil
  100314. }
  100315. func (ec *executionContext) _PriceListContextRule_countries(ctx context.Context, field graphql.CollectedField, obj *PriceListContextRule) (ret graphql.Marshaler) {
  100316. fc, err := ec.fieldContext_PriceListContextRule_countries(ctx, field)
  100317. if err != nil {
  100318. return graphql.Null
  100319. }
  100320. ctx = graphql.WithFieldContext(ctx, fc)
  100321. defer func() {
  100322. if r := recover(); r != nil {
  100323. ec.Error(ctx, ec.Recover(ctx, r))
  100324. ret = graphql.Null
  100325. }
  100326. }()
  100327. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  100328. ctx = rctx // use context from middleware stack in children
  100329. return obj.Countries, nil
  100330. })
  100331. if err != nil {
  100332. ec.Error(ctx, err)
  100333. return graphql.Null
  100334. }
  100335. if resTmp == nil {
  100336. if !graphql.HasFieldError(ctx, fc) {
  100337. ec.Errorf(ctx, "must not be null")
  100338. }
  100339. return graphql.Null
  100340. }
  100341. res := resTmp.([]CountryCode)
  100342. fc.Result = res
  100343. return ec.marshalNCountryCode2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCodeᚄ(ctx, field.Selections, res)
  100344. }
  100345. func (ec *executionContext) fieldContext_PriceListContextRule_countries(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  100346. fc = &graphql.FieldContext{
  100347. Object: "PriceListContextRule",
  100348. Field: field,
  100349. IsMethod: false,
  100350. IsResolver: false,
  100351. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  100352. return nil, errors.New("field of type CountryCode does not have child fields")
  100353. },
  100354. }
  100355. return fc, nil
  100356. }
  100357. func (ec *executionContext) _PriceListContextRule_market(ctx context.Context, field graphql.CollectedField, obj *PriceListContextRule) (ret graphql.Marshaler) {
  100358. fc, err := ec.fieldContext_PriceListContextRule_market(ctx, field)
  100359. if err != nil {
  100360. return graphql.Null
  100361. }
  100362. ctx = graphql.WithFieldContext(ctx, fc)
  100363. defer func() {
  100364. if r := recover(); r != nil {
  100365. ec.Error(ctx, ec.Recover(ctx, r))
  100366. ret = graphql.Null
  100367. }
  100368. }()
  100369. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  100370. ctx = rctx // use context from middleware stack in children
  100371. return obj.Market, nil
  100372. })
  100373. if err != nil {
  100374. ec.Error(ctx, err)
  100375. return graphql.Null
  100376. }
  100377. if resTmp == nil {
  100378. return graphql.Null
  100379. }
  100380. res := resTmp.(*Market)
  100381. fc.Result = res
  100382. return ec.marshalOMarket2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarket(ctx, field.Selections, res)
  100383. }
  100384. func (ec *executionContext) fieldContext_PriceListContextRule_market(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  100385. fc = &graphql.FieldContext{
  100386. Object: "PriceListContextRule",
  100387. Field: field,
  100388. IsMethod: false,
  100389. IsResolver: false,
  100390. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  100391. switch field.Name {
  100392. case "currencySettings":
  100393. return ec.fieldContext_Market_currencySettings(ctx, field)
  100394. case "enabled":
  100395. return ec.fieldContext_Market_enabled(ctx, field)
  100396. case "id":
  100397. return ec.fieldContext_Market_id(ctx, field)
  100398. case "name":
  100399. return ec.fieldContext_Market_name(ctx, field)
  100400. case "priceList":
  100401. return ec.fieldContext_Market_priceList(ctx, field)
  100402. case "primary":
  100403. return ec.fieldContext_Market_primary(ctx, field)
  100404. case "regions":
  100405. return ec.fieldContext_Market_regions(ctx, field)
  100406. case "webPresence":
  100407. return ec.fieldContext_Market_webPresence(ctx, field)
  100408. }
  100409. return nil, fmt.Errorf("no field named %q was found under type Market", field.Name)
  100410. },
  100411. }
  100412. return fc, nil
  100413. }
  100414. func (ec *executionContext) _PriceListParent_adjustment(ctx context.Context, field graphql.CollectedField, obj *PriceListParent) (ret graphql.Marshaler) {
  100415. fc, err := ec.fieldContext_PriceListParent_adjustment(ctx, field)
  100416. if err != nil {
  100417. return graphql.Null
  100418. }
  100419. ctx = graphql.WithFieldContext(ctx, fc)
  100420. defer func() {
  100421. if r := recover(); r != nil {
  100422. ec.Error(ctx, ec.Recover(ctx, r))
  100423. ret = graphql.Null
  100424. }
  100425. }()
  100426. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  100427. ctx = rctx // use context from middleware stack in children
  100428. return obj.Adjustment, nil
  100429. })
  100430. if err != nil {
  100431. ec.Error(ctx, err)
  100432. return graphql.Null
  100433. }
  100434. if resTmp == nil {
  100435. if !graphql.HasFieldError(ctx, fc) {
  100436. ec.Errorf(ctx, "must not be null")
  100437. }
  100438. return graphql.Null
  100439. }
  100440. res := resTmp.(*PriceListAdjustment)
  100441. fc.Result = res
  100442. return ec.marshalNPriceListAdjustment2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceListAdjustment(ctx, field.Selections, res)
  100443. }
  100444. func (ec *executionContext) fieldContext_PriceListParent_adjustment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  100445. fc = &graphql.FieldContext{
  100446. Object: "PriceListParent",
  100447. Field: field,
  100448. IsMethod: false,
  100449. IsResolver: false,
  100450. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  100451. switch field.Name {
  100452. case "type":
  100453. return ec.fieldContext_PriceListAdjustment_type(ctx, field)
  100454. case "value":
  100455. return ec.fieldContext_PriceListAdjustment_value(ctx, field)
  100456. }
  100457. return nil, fmt.Errorf("no field named %q was found under type PriceListAdjustment", field.Name)
  100458. },
  100459. }
  100460. return fc, nil
  100461. }
  100462. func (ec *executionContext) _PriceListPrice_compareAtPrice(ctx context.Context, field graphql.CollectedField, obj *PriceListPrice) (ret graphql.Marshaler) {
  100463. fc, err := ec.fieldContext_PriceListPrice_compareAtPrice(ctx, field)
  100464. if err != nil {
  100465. return graphql.Null
  100466. }
  100467. ctx = graphql.WithFieldContext(ctx, fc)
  100468. defer func() {
  100469. if r := recover(); r != nil {
  100470. ec.Error(ctx, ec.Recover(ctx, r))
  100471. ret = graphql.Null
  100472. }
  100473. }()
  100474. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  100475. ctx = rctx // use context from middleware stack in children
  100476. return obj.CompareAtPrice, nil
  100477. })
  100478. if err != nil {
  100479. ec.Error(ctx, err)
  100480. return graphql.Null
  100481. }
  100482. if resTmp == nil {
  100483. return graphql.Null
  100484. }
  100485. res := resTmp.(*MoneyV2)
  100486. fc.Result = res
  100487. return ec.marshalOMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  100488. }
  100489. func (ec *executionContext) fieldContext_PriceListPrice_compareAtPrice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  100490. fc = &graphql.FieldContext{
  100491. Object: "PriceListPrice",
  100492. Field: field,
  100493. IsMethod: false,
  100494. IsResolver: false,
  100495. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  100496. switch field.Name {
  100497. case "amount":
  100498. return ec.fieldContext_MoneyV2_amount(ctx, field)
  100499. case "currencyCode":
  100500. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  100501. }
  100502. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  100503. },
  100504. }
  100505. return fc, nil
  100506. }
  100507. func (ec *executionContext) _PriceListPrice_originType(ctx context.Context, field graphql.CollectedField, obj *PriceListPrice) (ret graphql.Marshaler) {
  100508. fc, err := ec.fieldContext_PriceListPrice_originType(ctx, field)
  100509. if err != nil {
  100510. return graphql.Null
  100511. }
  100512. ctx = graphql.WithFieldContext(ctx, fc)
  100513. defer func() {
  100514. if r := recover(); r != nil {
  100515. ec.Error(ctx, ec.Recover(ctx, r))
  100516. ret = graphql.Null
  100517. }
  100518. }()
  100519. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  100520. ctx = rctx // use context from middleware stack in children
  100521. return obj.OriginType, nil
  100522. })
  100523. if err != nil {
  100524. ec.Error(ctx, err)
  100525. return graphql.Null
  100526. }
  100527. if resTmp == nil {
  100528. if !graphql.HasFieldError(ctx, fc) {
  100529. ec.Errorf(ctx, "must not be null")
  100530. }
  100531. return graphql.Null
  100532. }
  100533. res := resTmp.(PriceListPriceOriginType)
  100534. fc.Result = res
  100535. return ec.marshalNPriceListPriceOriginType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceListPriceOriginType(ctx, field.Selections, res)
  100536. }
  100537. func (ec *executionContext) fieldContext_PriceListPrice_originType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  100538. fc = &graphql.FieldContext{
  100539. Object: "PriceListPrice",
  100540. Field: field,
  100541. IsMethod: false,
  100542. IsResolver: false,
  100543. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  100544. return nil, errors.New("field of type PriceListPriceOriginType does not have child fields")
  100545. },
  100546. }
  100547. return fc, nil
  100548. }
  100549. func (ec *executionContext) _PriceListPrice_price(ctx context.Context, field graphql.CollectedField, obj *PriceListPrice) (ret graphql.Marshaler) {
  100550. fc, err := ec.fieldContext_PriceListPrice_price(ctx, field)
  100551. if err != nil {
  100552. return graphql.Null
  100553. }
  100554. ctx = graphql.WithFieldContext(ctx, fc)
  100555. defer func() {
  100556. if r := recover(); r != nil {
  100557. ec.Error(ctx, ec.Recover(ctx, r))
  100558. ret = graphql.Null
  100559. }
  100560. }()
  100561. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  100562. ctx = rctx // use context from middleware stack in children
  100563. return obj.Price, nil
  100564. })
  100565. if err != nil {
  100566. ec.Error(ctx, err)
  100567. return graphql.Null
  100568. }
  100569. if resTmp == nil {
  100570. if !graphql.HasFieldError(ctx, fc) {
  100571. ec.Errorf(ctx, "must not be null")
  100572. }
  100573. return graphql.Null
  100574. }
  100575. res := resTmp.(*MoneyV2)
  100576. fc.Result = res
  100577. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  100578. }
  100579. func (ec *executionContext) fieldContext_PriceListPrice_price(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  100580. fc = &graphql.FieldContext{
  100581. Object: "PriceListPrice",
  100582. Field: field,
  100583. IsMethod: false,
  100584. IsResolver: false,
  100585. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  100586. switch field.Name {
  100587. case "amount":
  100588. return ec.fieldContext_MoneyV2_amount(ctx, field)
  100589. case "currencyCode":
  100590. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  100591. }
  100592. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  100593. },
  100594. }
  100595. return fc, nil
  100596. }
  100597. func (ec *executionContext) _PriceListPrice_variant(ctx context.Context, field graphql.CollectedField, obj *PriceListPrice) (ret graphql.Marshaler) {
  100598. fc, err := ec.fieldContext_PriceListPrice_variant(ctx, field)
  100599. if err != nil {
  100600. return graphql.Null
  100601. }
  100602. ctx = graphql.WithFieldContext(ctx, fc)
  100603. defer func() {
  100604. if r := recover(); r != nil {
  100605. ec.Error(ctx, ec.Recover(ctx, r))
  100606. ret = graphql.Null
  100607. }
  100608. }()
  100609. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  100610. ctx = rctx // use context from middleware stack in children
  100611. return obj.Variant, nil
  100612. })
  100613. if err != nil {
  100614. ec.Error(ctx, err)
  100615. return graphql.Null
  100616. }
  100617. if resTmp == nil {
  100618. if !graphql.HasFieldError(ctx, fc) {
  100619. ec.Errorf(ctx, "must not be null")
  100620. }
  100621. return graphql.Null
  100622. }
  100623. res := resTmp.(*ProductVariant)
  100624. fc.Result = res
  100625. return ec.marshalNProductVariant2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariant(ctx, field.Selections, res)
  100626. }
  100627. func (ec *executionContext) fieldContext_PriceListPrice_variant(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  100628. fc = &graphql.FieldContext{
  100629. Object: "PriceListPrice",
  100630. Field: field,
  100631. IsMethod: false,
  100632. IsResolver: false,
  100633. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  100634. switch field.Name {
  100635. case "availableForSale":
  100636. return ec.fieldContext_ProductVariant_availableForSale(ctx, field)
  100637. case "barcode":
  100638. return ec.fieldContext_ProductVariant_barcode(ctx, field)
  100639. case "compareAtPrice":
  100640. return ec.fieldContext_ProductVariant_compareAtPrice(ctx, field)
  100641. case "contextualPricing":
  100642. return ec.fieldContext_ProductVariant_contextualPricing(ctx, field)
  100643. case "createdAt":
  100644. return ec.fieldContext_ProductVariant_createdAt(ctx, field)
  100645. case "defaultCursor":
  100646. return ec.fieldContext_ProductVariant_defaultCursor(ctx, field)
  100647. case "deliveryProfile":
  100648. return ec.fieldContext_ProductVariant_deliveryProfile(ctx, field)
  100649. case "displayName":
  100650. return ec.fieldContext_ProductVariant_displayName(ctx, field)
  100651. case "fulfillmentServiceEditable":
  100652. return ec.fieldContext_ProductVariant_fulfillmentServiceEditable(ctx, field)
  100653. case "id":
  100654. return ec.fieldContext_ProductVariant_id(ctx, field)
  100655. case "image":
  100656. return ec.fieldContext_ProductVariant_image(ctx, field)
  100657. case "inventoryItem":
  100658. return ec.fieldContext_ProductVariant_inventoryItem(ctx, field)
  100659. case "inventoryPolicy":
  100660. return ec.fieldContext_ProductVariant_inventoryPolicy(ctx, field)
  100661. case "inventoryQuantity":
  100662. return ec.fieldContext_ProductVariant_inventoryQuantity(ctx, field)
  100663. case "legacyResourceId":
  100664. return ec.fieldContext_ProductVariant_legacyResourceId(ctx, field)
  100665. case "media":
  100666. return ec.fieldContext_ProductVariant_media(ctx, field)
  100667. case "metafield":
  100668. return ec.fieldContext_ProductVariant_metafield(ctx, field)
  100669. case "metafieldDefinitions":
  100670. return ec.fieldContext_ProductVariant_metafieldDefinitions(ctx, field)
  100671. case "metafields":
  100672. return ec.fieldContext_ProductVariant_metafields(ctx, field)
  100673. case "position":
  100674. return ec.fieldContext_ProductVariant_position(ctx, field)
  100675. case "price":
  100676. return ec.fieldContext_ProductVariant_price(ctx, field)
  100677. case "privateMetafield":
  100678. return ec.fieldContext_ProductVariant_privateMetafield(ctx, field)
  100679. case "privateMetafields":
  100680. return ec.fieldContext_ProductVariant_privateMetafields(ctx, field)
  100681. case "product":
  100682. return ec.fieldContext_ProductVariant_product(ctx, field)
  100683. case "selectedOptions":
  100684. return ec.fieldContext_ProductVariant_selectedOptions(ctx, field)
  100685. case "sellableOnlineQuantity":
  100686. return ec.fieldContext_ProductVariant_sellableOnlineQuantity(ctx, field)
  100687. case "sellingPlanGroupCount":
  100688. return ec.fieldContext_ProductVariant_sellingPlanGroupCount(ctx, field)
  100689. case "sellingPlanGroups":
  100690. return ec.fieldContext_ProductVariant_sellingPlanGroups(ctx, field)
  100691. case "sku":
  100692. return ec.fieldContext_ProductVariant_sku(ctx, field)
  100693. case "taxCode":
  100694. return ec.fieldContext_ProductVariant_taxCode(ctx, field)
  100695. case "taxable":
  100696. return ec.fieldContext_ProductVariant_taxable(ctx, field)
  100697. case "title":
  100698. return ec.fieldContext_ProductVariant_title(ctx, field)
  100699. case "translations":
  100700. return ec.fieldContext_ProductVariant_translations(ctx, field)
  100701. case "updatedAt":
  100702. return ec.fieldContext_ProductVariant_updatedAt(ctx, field)
  100703. case "weight":
  100704. return ec.fieldContext_ProductVariant_weight(ctx, field)
  100705. case "weightUnit":
  100706. return ec.fieldContext_ProductVariant_weightUnit(ctx, field)
  100707. }
  100708. return nil, fmt.Errorf("no field named %q was found under type ProductVariant", field.Name)
  100709. },
  100710. }
  100711. return fc, nil
  100712. }
  100713. func (ec *executionContext) _PriceListPriceConnection_edges(ctx context.Context, field graphql.CollectedField, obj *PriceListPriceConnection) (ret graphql.Marshaler) {
  100714. fc, err := ec.fieldContext_PriceListPriceConnection_edges(ctx, field)
  100715. if err != nil {
  100716. return graphql.Null
  100717. }
  100718. ctx = graphql.WithFieldContext(ctx, fc)
  100719. defer func() {
  100720. if r := recover(); r != nil {
  100721. ec.Error(ctx, ec.Recover(ctx, r))
  100722. ret = graphql.Null
  100723. }
  100724. }()
  100725. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  100726. ctx = rctx // use context from middleware stack in children
  100727. return obj.Edges, nil
  100728. })
  100729. if err != nil {
  100730. ec.Error(ctx, err)
  100731. return graphql.Null
  100732. }
  100733. if resTmp == nil {
  100734. if !graphql.HasFieldError(ctx, fc) {
  100735. ec.Errorf(ctx, "must not be null")
  100736. }
  100737. return graphql.Null
  100738. }
  100739. res := resTmp.([]*PriceListPriceEdge)
  100740. fc.Result = res
  100741. return ec.marshalNPriceListPriceEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceListPriceEdgeᚄ(ctx, field.Selections, res)
  100742. }
  100743. func (ec *executionContext) fieldContext_PriceListPriceConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  100744. fc = &graphql.FieldContext{
  100745. Object: "PriceListPriceConnection",
  100746. Field: field,
  100747. IsMethod: false,
  100748. IsResolver: false,
  100749. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  100750. switch field.Name {
  100751. case "cursor":
  100752. return ec.fieldContext_PriceListPriceEdge_cursor(ctx, field)
  100753. case "node":
  100754. return ec.fieldContext_PriceListPriceEdge_node(ctx, field)
  100755. }
  100756. return nil, fmt.Errorf("no field named %q was found under type PriceListPriceEdge", field.Name)
  100757. },
  100758. }
  100759. return fc, nil
  100760. }
  100761. func (ec *executionContext) _PriceListPriceConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *PriceListPriceConnection) (ret graphql.Marshaler) {
  100762. fc, err := ec.fieldContext_PriceListPriceConnection_nodes(ctx, field)
  100763. if err != nil {
  100764. return graphql.Null
  100765. }
  100766. ctx = graphql.WithFieldContext(ctx, fc)
  100767. defer func() {
  100768. if r := recover(); r != nil {
  100769. ec.Error(ctx, ec.Recover(ctx, r))
  100770. ret = graphql.Null
  100771. }
  100772. }()
  100773. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  100774. ctx = rctx // use context from middleware stack in children
  100775. return obj.Nodes, nil
  100776. })
  100777. if err != nil {
  100778. ec.Error(ctx, err)
  100779. return graphql.Null
  100780. }
  100781. if resTmp == nil {
  100782. if !graphql.HasFieldError(ctx, fc) {
  100783. ec.Errorf(ctx, "must not be null")
  100784. }
  100785. return graphql.Null
  100786. }
  100787. res := resTmp.([]*PriceListPrice)
  100788. fc.Result = res
  100789. return ec.marshalNPriceListPrice2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceListPriceᚄ(ctx, field.Selections, res)
  100790. }
  100791. func (ec *executionContext) fieldContext_PriceListPriceConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  100792. fc = &graphql.FieldContext{
  100793. Object: "PriceListPriceConnection",
  100794. Field: field,
  100795. IsMethod: false,
  100796. IsResolver: false,
  100797. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  100798. switch field.Name {
  100799. case "compareAtPrice":
  100800. return ec.fieldContext_PriceListPrice_compareAtPrice(ctx, field)
  100801. case "originType":
  100802. return ec.fieldContext_PriceListPrice_originType(ctx, field)
  100803. case "price":
  100804. return ec.fieldContext_PriceListPrice_price(ctx, field)
  100805. case "variant":
  100806. return ec.fieldContext_PriceListPrice_variant(ctx, field)
  100807. }
  100808. return nil, fmt.Errorf("no field named %q was found under type PriceListPrice", field.Name)
  100809. },
  100810. }
  100811. return fc, nil
  100812. }
  100813. func (ec *executionContext) _PriceListPriceConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *PriceListPriceConnection) (ret graphql.Marshaler) {
  100814. fc, err := ec.fieldContext_PriceListPriceConnection_pageInfo(ctx, field)
  100815. if err != nil {
  100816. return graphql.Null
  100817. }
  100818. ctx = graphql.WithFieldContext(ctx, fc)
  100819. defer func() {
  100820. if r := recover(); r != nil {
  100821. ec.Error(ctx, ec.Recover(ctx, r))
  100822. ret = graphql.Null
  100823. }
  100824. }()
  100825. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  100826. ctx = rctx // use context from middleware stack in children
  100827. return obj.PageInfo, nil
  100828. })
  100829. if err != nil {
  100830. ec.Error(ctx, err)
  100831. return graphql.Null
  100832. }
  100833. if resTmp == nil {
  100834. if !graphql.HasFieldError(ctx, fc) {
  100835. ec.Errorf(ctx, "must not be null")
  100836. }
  100837. return graphql.Null
  100838. }
  100839. res := resTmp.(*PageInfo)
  100840. fc.Result = res
  100841. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  100842. }
  100843. func (ec *executionContext) fieldContext_PriceListPriceConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  100844. fc = &graphql.FieldContext{
  100845. Object: "PriceListPriceConnection",
  100846. Field: field,
  100847. IsMethod: false,
  100848. IsResolver: false,
  100849. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  100850. switch field.Name {
  100851. case "endCursor":
  100852. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  100853. case "hasNextPage":
  100854. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  100855. case "hasPreviousPage":
  100856. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  100857. case "startCursor":
  100858. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  100859. }
  100860. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  100861. },
  100862. }
  100863. return fc, nil
  100864. }
  100865. func (ec *executionContext) _PriceListPriceEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *PriceListPriceEdge) (ret graphql.Marshaler) {
  100866. fc, err := ec.fieldContext_PriceListPriceEdge_cursor(ctx, field)
  100867. if err != nil {
  100868. return graphql.Null
  100869. }
  100870. ctx = graphql.WithFieldContext(ctx, fc)
  100871. defer func() {
  100872. if r := recover(); r != nil {
  100873. ec.Error(ctx, ec.Recover(ctx, r))
  100874. ret = graphql.Null
  100875. }
  100876. }()
  100877. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  100878. ctx = rctx // use context from middleware stack in children
  100879. return obj.Cursor, nil
  100880. })
  100881. if err != nil {
  100882. ec.Error(ctx, err)
  100883. return graphql.Null
  100884. }
  100885. if resTmp == nil {
  100886. if !graphql.HasFieldError(ctx, fc) {
  100887. ec.Errorf(ctx, "must not be null")
  100888. }
  100889. return graphql.Null
  100890. }
  100891. res := resTmp.(string)
  100892. fc.Result = res
  100893. return ec.marshalNString2string(ctx, field.Selections, res)
  100894. }
  100895. func (ec *executionContext) fieldContext_PriceListPriceEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  100896. fc = &graphql.FieldContext{
  100897. Object: "PriceListPriceEdge",
  100898. Field: field,
  100899. IsMethod: false,
  100900. IsResolver: false,
  100901. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  100902. return nil, errors.New("field of type String does not have child fields")
  100903. },
  100904. }
  100905. return fc, nil
  100906. }
  100907. func (ec *executionContext) _PriceListPriceEdge_node(ctx context.Context, field graphql.CollectedField, obj *PriceListPriceEdge) (ret graphql.Marshaler) {
  100908. fc, err := ec.fieldContext_PriceListPriceEdge_node(ctx, field)
  100909. if err != nil {
  100910. return graphql.Null
  100911. }
  100912. ctx = graphql.WithFieldContext(ctx, fc)
  100913. defer func() {
  100914. if r := recover(); r != nil {
  100915. ec.Error(ctx, ec.Recover(ctx, r))
  100916. ret = graphql.Null
  100917. }
  100918. }()
  100919. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  100920. ctx = rctx // use context from middleware stack in children
  100921. return obj.Node, nil
  100922. })
  100923. if err != nil {
  100924. ec.Error(ctx, err)
  100925. return graphql.Null
  100926. }
  100927. if resTmp == nil {
  100928. if !graphql.HasFieldError(ctx, fc) {
  100929. ec.Errorf(ctx, "must not be null")
  100930. }
  100931. return graphql.Null
  100932. }
  100933. res := resTmp.(*PriceListPrice)
  100934. fc.Result = res
  100935. return ec.marshalNPriceListPrice2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceListPrice(ctx, field.Selections, res)
  100936. }
  100937. func (ec *executionContext) fieldContext_PriceListPriceEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  100938. fc = &graphql.FieldContext{
  100939. Object: "PriceListPriceEdge",
  100940. Field: field,
  100941. IsMethod: false,
  100942. IsResolver: false,
  100943. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  100944. switch field.Name {
  100945. case "compareAtPrice":
  100946. return ec.fieldContext_PriceListPrice_compareAtPrice(ctx, field)
  100947. case "originType":
  100948. return ec.fieldContext_PriceListPrice_originType(ctx, field)
  100949. case "price":
  100950. return ec.fieldContext_PriceListPrice_price(ctx, field)
  100951. case "variant":
  100952. return ec.fieldContext_PriceListPrice_variant(ctx, field)
  100953. }
  100954. return nil, fmt.Errorf("no field named %q was found under type PriceListPrice", field.Name)
  100955. },
  100956. }
  100957. return fc, nil
  100958. }
  100959. func (ec *executionContext) _PricingPercentageValue_percentage(ctx context.Context, field graphql.CollectedField, obj *PricingPercentageValue) (ret graphql.Marshaler) {
  100960. fc, err := ec.fieldContext_PricingPercentageValue_percentage(ctx, field)
  100961. if err != nil {
  100962. return graphql.Null
  100963. }
  100964. ctx = graphql.WithFieldContext(ctx, fc)
  100965. defer func() {
  100966. if r := recover(); r != nil {
  100967. ec.Error(ctx, ec.Recover(ctx, r))
  100968. ret = graphql.Null
  100969. }
  100970. }()
  100971. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  100972. ctx = rctx // use context from middleware stack in children
  100973. return obj.Percentage, nil
  100974. })
  100975. if err != nil {
  100976. ec.Error(ctx, err)
  100977. return graphql.Null
  100978. }
  100979. if resTmp == nil {
  100980. if !graphql.HasFieldError(ctx, fc) {
  100981. ec.Errorf(ctx, "must not be null")
  100982. }
  100983. return graphql.Null
  100984. }
  100985. res := resTmp.(float64)
  100986. fc.Result = res
  100987. return ec.marshalNFloat2float64(ctx, field.Selections, res)
  100988. }
  100989. func (ec *executionContext) fieldContext_PricingPercentageValue_percentage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  100990. fc = &graphql.FieldContext{
  100991. Object: "PricingPercentageValue",
  100992. Field: field,
  100993. IsMethod: false,
  100994. IsResolver: false,
  100995. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  100996. return nil, errors.New("field of type Float does not have child fields")
  100997. },
  100998. }
  100999. return fc, nil
  101000. }
  101001. func (ec *executionContext) _PrivateMetafield_createdAt(ctx context.Context, field graphql.CollectedField, obj *PrivateMetafield) (ret graphql.Marshaler) {
  101002. fc, err := ec.fieldContext_PrivateMetafield_createdAt(ctx, field)
  101003. if err != nil {
  101004. return graphql.Null
  101005. }
  101006. ctx = graphql.WithFieldContext(ctx, fc)
  101007. defer func() {
  101008. if r := recover(); r != nil {
  101009. ec.Error(ctx, ec.Recover(ctx, r))
  101010. ret = graphql.Null
  101011. }
  101012. }()
  101013. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  101014. ctx = rctx // use context from middleware stack in children
  101015. return obj.CreatedAt, nil
  101016. })
  101017. if err != nil {
  101018. ec.Error(ctx, err)
  101019. return graphql.Null
  101020. }
  101021. if resTmp == nil {
  101022. if !graphql.HasFieldError(ctx, fc) {
  101023. ec.Errorf(ctx, "must not be null")
  101024. }
  101025. return graphql.Null
  101026. }
  101027. res := resTmp.(string)
  101028. fc.Result = res
  101029. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  101030. }
  101031. func (ec *executionContext) fieldContext_PrivateMetafield_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  101032. fc = &graphql.FieldContext{
  101033. Object: "PrivateMetafield",
  101034. Field: field,
  101035. IsMethod: false,
  101036. IsResolver: false,
  101037. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  101038. return nil, errors.New("field of type DateTime does not have child fields")
  101039. },
  101040. }
  101041. return fc, nil
  101042. }
  101043. func (ec *executionContext) _PrivateMetafield_id(ctx context.Context, field graphql.CollectedField, obj *PrivateMetafield) (ret graphql.Marshaler) {
  101044. fc, err := ec.fieldContext_PrivateMetafield_id(ctx, field)
  101045. if err != nil {
  101046. return graphql.Null
  101047. }
  101048. ctx = graphql.WithFieldContext(ctx, fc)
  101049. defer func() {
  101050. if r := recover(); r != nil {
  101051. ec.Error(ctx, ec.Recover(ctx, r))
  101052. ret = graphql.Null
  101053. }
  101054. }()
  101055. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  101056. ctx = rctx // use context from middleware stack in children
  101057. return obj.ID, nil
  101058. })
  101059. if err != nil {
  101060. ec.Error(ctx, err)
  101061. return graphql.Null
  101062. }
  101063. if resTmp == nil {
  101064. if !graphql.HasFieldError(ctx, fc) {
  101065. ec.Errorf(ctx, "must not be null")
  101066. }
  101067. return graphql.Null
  101068. }
  101069. res := resTmp.(string)
  101070. fc.Result = res
  101071. return ec.marshalNID2string(ctx, field.Selections, res)
  101072. }
  101073. func (ec *executionContext) fieldContext_PrivateMetafield_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  101074. fc = &graphql.FieldContext{
  101075. Object: "PrivateMetafield",
  101076. Field: field,
  101077. IsMethod: false,
  101078. IsResolver: false,
  101079. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  101080. return nil, errors.New("field of type ID does not have child fields")
  101081. },
  101082. }
  101083. return fc, nil
  101084. }
  101085. func (ec *executionContext) _PrivateMetafield_key(ctx context.Context, field graphql.CollectedField, obj *PrivateMetafield) (ret graphql.Marshaler) {
  101086. fc, err := ec.fieldContext_PrivateMetafield_key(ctx, field)
  101087. if err != nil {
  101088. return graphql.Null
  101089. }
  101090. ctx = graphql.WithFieldContext(ctx, fc)
  101091. defer func() {
  101092. if r := recover(); r != nil {
  101093. ec.Error(ctx, ec.Recover(ctx, r))
  101094. ret = graphql.Null
  101095. }
  101096. }()
  101097. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  101098. ctx = rctx // use context from middleware stack in children
  101099. return obj.Key, nil
  101100. })
  101101. if err != nil {
  101102. ec.Error(ctx, err)
  101103. return graphql.Null
  101104. }
  101105. if resTmp == nil {
  101106. if !graphql.HasFieldError(ctx, fc) {
  101107. ec.Errorf(ctx, "must not be null")
  101108. }
  101109. return graphql.Null
  101110. }
  101111. res := resTmp.(string)
  101112. fc.Result = res
  101113. return ec.marshalNString2string(ctx, field.Selections, res)
  101114. }
  101115. func (ec *executionContext) fieldContext_PrivateMetafield_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  101116. fc = &graphql.FieldContext{
  101117. Object: "PrivateMetafield",
  101118. Field: field,
  101119. IsMethod: false,
  101120. IsResolver: false,
  101121. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  101122. return nil, errors.New("field of type String does not have child fields")
  101123. },
  101124. }
  101125. return fc, nil
  101126. }
  101127. func (ec *executionContext) _PrivateMetafield_namespace(ctx context.Context, field graphql.CollectedField, obj *PrivateMetafield) (ret graphql.Marshaler) {
  101128. fc, err := ec.fieldContext_PrivateMetafield_namespace(ctx, field)
  101129. if err != nil {
  101130. return graphql.Null
  101131. }
  101132. ctx = graphql.WithFieldContext(ctx, fc)
  101133. defer func() {
  101134. if r := recover(); r != nil {
  101135. ec.Error(ctx, ec.Recover(ctx, r))
  101136. ret = graphql.Null
  101137. }
  101138. }()
  101139. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  101140. ctx = rctx // use context from middleware stack in children
  101141. return obj.Namespace, nil
  101142. })
  101143. if err != nil {
  101144. ec.Error(ctx, err)
  101145. return graphql.Null
  101146. }
  101147. if resTmp == nil {
  101148. if !graphql.HasFieldError(ctx, fc) {
  101149. ec.Errorf(ctx, "must not be null")
  101150. }
  101151. return graphql.Null
  101152. }
  101153. res := resTmp.(string)
  101154. fc.Result = res
  101155. return ec.marshalNString2string(ctx, field.Selections, res)
  101156. }
  101157. func (ec *executionContext) fieldContext_PrivateMetafield_namespace(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  101158. fc = &graphql.FieldContext{
  101159. Object: "PrivateMetafield",
  101160. Field: field,
  101161. IsMethod: false,
  101162. IsResolver: false,
  101163. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  101164. return nil, errors.New("field of type String does not have child fields")
  101165. },
  101166. }
  101167. return fc, nil
  101168. }
  101169. func (ec *executionContext) _PrivateMetafield_updatedAt(ctx context.Context, field graphql.CollectedField, obj *PrivateMetafield) (ret graphql.Marshaler) {
  101170. fc, err := ec.fieldContext_PrivateMetafield_updatedAt(ctx, field)
  101171. if err != nil {
  101172. return graphql.Null
  101173. }
  101174. ctx = graphql.WithFieldContext(ctx, fc)
  101175. defer func() {
  101176. if r := recover(); r != nil {
  101177. ec.Error(ctx, ec.Recover(ctx, r))
  101178. ret = graphql.Null
  101179. }
  101180. }()
  101181. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  101182. ctx = rctx // use context from middleware stack in children
  101183. return obj.UpdatedAt, nil
  101184. })
  101185. if err != nil {
  101186. ec.Error(ctx, err)
  101187. return graphql.Null
  101188. }
  101189. if resTmp == nil {
  101190. if !graphql.HasFieldError(ctx, fc) {
  101191. ec.Errorf(ctx, "must not be null")
  101192. }
  101193. return graphql.Null
  101194. }
  101195. res := resTmp.(string)
  101196. fc.Result = res
  101197. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  101198. }
  101199. func (ec *executionContext) fieldContext_PrivateMetafield_updatedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  101200. fc = &graphql.FieldContext{
  101201. Object: "PrivateMetafield",
  101202. Field: field,
  101203. IsMethod: false,
  101204. IsResolver: false,
  101205. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  101206. return nil, errors.New("field of type DateTime does not have child fields")
  101207. },
  101208. }
  101209. return fc, nil
  101210. }
  101211. func (ec *executionContext) _PrivateMetafield_value(ctx context.Context, field graphql.CollectedField, obj *PrivateMetafield) (ret graphql.Marshaler) {
  101212. fc, err := ec.fieldContext_PrivateMetafield_value(ctx, field)
  101213. if err != nil {
  101214. return graphql.Null
  101215. }
  101216. ctx = graphql.WithFieldContext(ctx, fc)
  101217. defer func() {
  101218. if r := recover(); r != nil {
  101219. ec.Error(ctx, ec.Recover(ctx, r))
  101220. ret = graphql.Null
  101221. }
  101222. }()
  101223. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  101224. ctx = rctx // use context from middleware stack in children
  101225. return obj.Value, nil
  101226. })
  101227. if err != nil {
  101228. ec.Error(ctx, err)
  101229. return graphql.Null
  101230. }
  101231. if resTmp == nil {
  101232. if !graphql.HasFieldError(ctx, fc) {
  101233. ec.Errorf(ctx, "must not be null")
  101234. }
  101235. return graphql.Null
  101236. }
  101237. res := resTmp.(string)
  101238. fc.Result = res
  101239. return ec.marshalNString2string(ctx, field.Selections, res)
  101240. }
  101241. func (ec *executionContext) fieldContext_PrivateMetafield_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  101242. fc = &graphql.FieldContext{
  101243. Object: "PrivateMetafield",
  101244. Field: field,
  101245. IsMethod: false,
  101246. IsResolver: false,
  101247. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  101248. return nil, errors.New("field of type String does not have child fields")
  101249. },
  101250. }
  101251. return fc, nil
  101252. }
  101253. func (ec *executionContext) _PrivateMetafield_valueType(ctx context.Context, field graphql.CollectedField, obj *PrivateMetafield) (ret graphql.Marshaler) {
  101254. fc, err := ec.fieldContext_PrivateMetafield_valueType(ctx, field)
  101255. if err != nil {
  101256. return graphql.Null
  101257. }
  101258. ctx = graphql.WithFieldContext(ctx, fc)
  101259. defer func() {
  101260. if r := recover(); r != nil {
  101261. ec.Error(ctx, ec.Recover(ctx, r))
  101262. ret = graphql.Null
  101263. }
  101264. }()
  101265. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  101266. ctx = rctx // use context from middleware stack in children
  101267. return obj.ValueType, nil
  101268. })
  101269. if err != nil {
  101270. ec.Error(ctx, err)
  101271. return graphql.Null
  101272. }
  101273. if resTmp == nil {
  101274. if !graphql.HasFieldError(ctx, fc) {
  101275. ec.Errorf(ctx, "must not be null")
  101276. }
  101277. return graphql.Null
  101278. }
  101279. res := resTmp.(PrivateMetafieldValueType)
  101280. fc.Result = res
  101281. return ec.marshalNPrivateMetafieldValueType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafieldValueType(ctx, field.Selections, res)
  101282. }
  101283. func (ec *executionContext) fieldContext_PrivateMetafield_valueType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  101284. fc = &graphql.FieldContext{
  101285. Object: "PrivateMetafield",
  101286. Field: field,
  101287. IsMethod: false,
  101288. IsResolver: false,
  101289. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  101290. return nil, errors.New("field of type PrivateMetafieldValueType does not have child fields")
  101291. },
  101292. }
  101293. return fc, nil
  101294. }
  101295. func (ec *executionContext) _PrivateMetafieldConnection_edges(ctx context.Context, field graphql.CollectedField, obj *PrivateMetafieldConnection) (ret graphql.Marshaler) {
  101296. fc, err := ec.fieldContext_PrivateMetafieldConnection_edges(ctx, field)
  101297. if err != nil {
  101298. return graphql.Null
  101299. }
  101300. ctx = graphql.WithFieldContext(ctx, fc)
  101301. defer func() {
  101302. if r := recover(); r != nil {
  101303. ec.Error(ctx, ec.Recover(ctx, r))
  101304. ret = graphql.Null
  101305. }
  101306. }()
  101307. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  101308. ctx = rctx // use context from middleware stack in children
  101309. return obj.Edges, nil
  101310. })
  101311. if err != nil {
  101312. ec.Error(ctx, err)
  101313. return graphql.Null
  101314. }
  101315. if resTmp == nil {
  101316. if !graphql.HasFieldError(ctx, fc) {
  101317. ec.Errorf(ctx, "must not be null")
  101318. }
  101319. return graphql.Null
  101320. }
  101321. res := resTmp.([]*PrivateMetafieldEdge)
  101322. fc.Result = res
  101323. return ec.marshalNPrivateMetafieldEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafieldEdgeᚄ(ctx, field.Selections, res)
  101324. }
  101325. func (ec *executionContext) fieldContext_PrivateMetafieldConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  101326. fc = &graphql.FieldContext{
  101327. Object: "PrivateMetafieldConnection",
  101328. Field: field,
  101329. IsMethod: false,
  101330. IsResolver: false,
  101331. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  101332. switch field.Name {
  101333. case "cursor":
  101334. return ec.fieldContext_PrivateMetafieldEdge_cursor(ctx, field)
  101335. case "node":
  101336. return ec.fieldContext_PrivateMetafieldEdge_node(ctx, field)
  101337. }
  101338. return nil, fmt.Errorf("no field named %q was found under type PrivateMetafieldEdge", field.Name)
  101339. },
  101340. }
  101341. return fc, nil
  101342. }
  101343. func (ec *executionContext) _PrivateMetafieldConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *PrivateMetafieldConnection) (ret graphql.Marshaler) {
  101344. fc, err := ec.fieldContext_PrivateMetafieldConnection_nodes(ctx, field)
  101345. if err != nil {
  101346. return graphql.Null
  101347. }
  101348. ctx = graphql.WithFieldContext(ctx, fc)
  101349. defer func() {
  101350. if r := recover(); r != nil {
  101351. ec.Error(ctx, ec.Recover(ctx, r))
  101352. ret = graphql.Null
  101353. }
  101354. }()
  101355. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  101356. ctx = rctx // use context from middleware stack in children
  101357. return obj.Nodes, nil
  101358. })
  101359. if err != nil {
  101360. ec.Error(ctx, err)
  101361. return graphql.Null
  101362. }
  101363. if resTmp == nil {
  101364. if !graphql.HasFieldError(ctx, fc) {
  101365. ec.Errorf(ctx, "must not be null")
  101366. }
  101367. return graphql.Null
  101368. }
  101369. res := resTmp.([]*PrivateMetafield)
  101370. fc.Result = res
  101371. return ec.marshalNPrivateMetafield2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafieldᚄ(ctx, field.Selections, res)
  101372. }
  101373. func (ec *executionContext) fieldContext_PrivateMetafieldConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  101374. fc = &graphql.FieldContext{
  101375. Object: "PrivateMetafieldConnection",
  101376. Field: field,
  101377. IsMethod: false,
  101378. IsResolver: false,
  101379. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  101380. switch field.Name {
  101381. case "createdAt":
  101382. return ec.fieldContext_PrivateMetafield_createdAt(ctx, field)
  101383. case "id":
  101384. return ec.fieldContext_PrivateMetafield_id(ctx, field)
  101385. case "key":
  101386. return ec.fieldContext_PrivateMetafield_key(ctx, field)
  101387. case "namespace":
  101388. return ec.fieldContext_PrivateMetafield_namespace(ctx, field)
  101389. case "updatedAt":
  101390. return ec.fieldContext_PrivateMetafield_updatedAt(ctx, field)
  101391. case "value":
  101392. return ec.fieldContext_PrivateMetafield_value(ctx, field)
  101393. case "valueType":
  101394. return ec.fieldContext_PrivateMetafield_valueType(ctx, field)
  101395. }
  101396. return nil, fmt.Errorf("no field named %q was found under type PrivateMetafield", field.Name)
  101397. },
  101398. }
  101399. return fc, nil
  101400. }
  101401. func (ec *executionContext) _PrivateMetafieldConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *PrivateMetafieldConnection) (ret graphql.Marshaler) {
  101402. fc, err := ec.fieldContext_PrivateMetafieldConnection_pageInfo(ctx, field)
  101403. if err != nil {
  101404. return graphql.Null
  101405. }
  101406. ctx = graphql.WithFieldContext(ctx, fc)
  101407. defer func() {
  101408. if r := recover(); r != nil {
  101409. ec.Error(ctx, ec.Recover(ctx, r))
  101410. ret = graphql.Null
  101411. }
  101412. }()
  101413. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  101414. ctx = rctx // use context from middleware stack in children
  101415. return obj.PageInfo, nil
  101416. })
  101417. if err != nil {
  101418. ec.Error(ctx, err)
  101419. return graphql.Null
  101420. }
  101421. if resTmp == nil {
  101422. if !graphql.HasFieldError(ctx, fc) {
  101423. ec.Errorf(ctx, "must not be null")
  101424. }
  101425. return graphql.Null
  101426. }
  101427. res := resTmp.(*PageInfo)
  101428. fc.Result = res
  101429. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  101430. }
  101431. func (ec *executionContext) fieldContext_PrivateMetafieldConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  101432. fc = &graphql.FieldContext{
  101433. Object: "PrivateMetafieldConnection",
  101434. Field: field,
  101435. IsMethod: false,
  101436. IsResolver: false,
  101437. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  101438. switch field.Name {
  101439. case "endCursor":
  101440. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  101441. case "hasNextPage":
  101442. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  101443. case "hasPreviousPage":
  101444. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  101445. case "startCursor":
  101446. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  101447. }
  101448. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  101449. },
  101450. }
  101451. return fc, nil
  101452. }
  101453. func (ec *executionContext) _PrivateMetafieldEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *PrivateMetafieldEdge) (ret graphql.Marshaler) {
  101454. fc, err := ec.fieldContext_PrivateMetafieldEdge_cursor(ctx, field)
  101455. if err != nil {
  101456. return graphql.Null
  101457. }
  101458. ctx = graphql.WithFieldContext(ctx, fc)
  101459. defer func() {
  101460. if r := recover(); r != nil {
  101461. ec.Error(ctx, ec.Recover(ctx, r))
  101462. ret = graphql.Null
  101463. }
  101464. }()
  101465. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  101466. ctx = rctx // use context from middleware stack in children
  101467. return obj.Cursor, nil
  101468. })
  101469. if err != nil {
  101470. ec.Error(ctx, err)
  101471. return graphql.Null
  101472. }
  101473. if resTmp == nil {
  101474. if !graphql.HasFieldError(ctx, fc) {
  101475. ec.Errorf(ctx, "must not be null")
  101476. }
  101477. return graphql.Null
  101478. }
  101479. res := resTmp.(string)
  101480. fc.Result = res
  101481. return ec.marshalNString2string(ctx, field.Selections, res)
  101482. }
  101483. func (ec *executionContext) fieldContext_PrivateMetafieldEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  101484. fc = &graphql.FieldContext{
  101485. Object: "PrivateMetafieldEdge",
  101486. Field: field,
  101487. IsMethod: false,
  101488. IsResolver: false,
  101489. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  101490. return nil, errors.New("field of type String does not have child fields")
  101491. },
  101492. }
  101493. return fc, nil
  101494. }
  101495. func (ec *executionContext) _PrivateMetafieldEdge_node(ctx context.Context, field graphql.CollectedField, obj *PrivateMetafieldEdge) (ret graphql.Marshaler) {
  101496. fc, err := ec.fieldContext_PrivateMetafieldEdge_node(ctx, field)
  101497. if err != nil {
  101498. return graphql.Null
  101499. }
  101500. ctx = graphql.WithFieldContext(ctx, fc)
  101501. defer func() {
  101502. if r := recover(); r != nil {
  101503. ec.Error(ctx, ec.Recover(ctx, r))
  101504. ret = graphql.Null
  101505. }
  101506. }()
  101507. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  101508. ctx = rctx // use context from middleware stack in children
  101509. return obj.Node, nil
  101510. })
  101511. if err != nil {
  101512. ec.Error(ctx, err)
  101513. return graphql.Null
  101514. }
  101515. if resTmp == nil {
  101516. if !graphql.HasFieldError(ctx, fc) {
  101517. ec.Errorf(ctx, "must not be null")
  101518. }
  101519. return graphql.Null
  101520. }
  101521. res := resTmp.(*PrivateMetafield)
  101522. fc.Result = res
  101523. return ec.marshalNPrivateMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafield(ctx, field.Selections, res)
  101524. }
  101525. func (ec *executionContext) fieldContext_PrivateMetafieldEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  101526. fc = &graphql.FieldContext{
  101527. Object: "PrivateMetafieldEdge",
  101528. Field: field,
  101529. IsMethod: false,
  101530. IsResolver: false,
  101531. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  101532. switch field.Name {
  101533. case "createdAt":
  101534. return ec.fieldContext_PrivateMetafield_createdAt(ctx, field)
  101535. case "id":
  101536. return ec.fieldContext_PrivateMetafield_id(ctx, field)
  101537. case "key":
  101538. return ec.fieldContext_PrivateMetafield_key(ctx, field)
  101539. case "namespace":
  101540. return ec.fieldContext_PrivateMetafield_namespace(ctx, field)
  101541. case "updatedAt":
  101542. return ec.fieldContext_PrivateMetafield_updatedAt(ctx, field)
  101543. case "value":
  101544. return ec.fieldContext_PrivateMetafield_value(ctx, field)
  101545. case "valueType":
  101546. return ec.fieldContext_PrivateMetafield_valueType(ctx, field)
  101547. }
  101548. return nil, fmt.Errorf("no field named %q was found under type PrivateMetafield", field.Name)
  101549. },
  101550. }
  101551. return fc, nil
  101552. }
  101553. func (ec *executionContext) _Product_availablePublicationCount(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  101554. fc, err := ec.fieldContext_Product_availablePublicationCount(ctx, field)
  101555. if err != nil {
  101556. return graphql.Null
  101557. }
  101558. ctx = graphql.WithFieldContext(ctx, fc)
  101559. defer func() {
  101560. if r := recover(); r != nil {
  101561. ec.Error(ctx, ec.Recover(ctx, r))
  101562. ret = graphql.Null
  101563. }
  101564. }()
  101565. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  101566. ctx = rctx // use context from middleware stack in children
  101567. return obj.AvailablePublicationCount, nil
  101568. })
  101569. if err != nil {
  101570. ec.Error(ctx, err)
  101571. return graphql.Null
  101572. }
  101573. if resTmp == nil {
  101574. if !graphql.HasFieldError(ctx, fc) {
  101575. ec.Errorf(ctx, "must not be null")
  101576. }
  101577. return graphql.Null
  101578. }
  101579. res := resTmp.(int)
  101580. fc.Result = res
  101581. return ec.marshalNInt2int(ctx, field.Selections, res)
  101582. }
  101583. func (ec *executionContext) fieldContext_Product_availablePublicationCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  101584. fc = &graphql.FieldContext{
  101585. Object: "Product",
  101586. Field: field,
  101587. IsMethod: false,
  101588. IsResolver: false,
  101589. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  101590. return nil, errors.New("field of type Int does not have child fields")
  101591. },
  101592. }
  101593. return fc, nil
  101594. }
  101595. func (ec *executionContext) _Product_collections(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  101596. fc, err := ec.fieldContext_Product_collections(ctx, field)
  101597. if err != nil {
  101598. return graphql.Null
  101599. }
  101600. ctx = graphql.WithFieldContext(ctx, fc)
  101601. defer func() {
  101602. if r := recover(); r != nil {
  101603. ec.Error(ctx, ec.Recover(ctx, r))
  101604. ret = graphql.Null
  101605. }
  101606. }()
  101607. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  101608. ctx = rctx // use context from middleware stack in children
  101609. return obj.Collections, nil
  101610. })
  101611. if err != nil {
  101612. ec.Error(ctx, err)
  101613. return graphql.Null
  101614. }
  101615. if resTmp == nil {
  101616. if !graphql.HasFieldError(ctx, fc) {
  101617. ec.Errorf(ctx, "must not be null")
  101618. }
  101619. return graphql.Null
  101620. }
  101621. res := resTmp.(*CollectionConnection)
  101622. fc.Result = res
  101623. return ec.marshalNCollectionConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCollectionConnection(ctx, field.Selections, res)
  101624. }
  101625. func (ec *executionContext) fieldContext_Product_collections(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  101626. fc = &graphql.FieldContext{
  101627. Object: "Product",
  101628. Field: field,
  101629. IsMethod: false,
  101630. IsResolver: false,
  101631. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  101632. switch field.Name {
  101633. case "edges":
  101634. return ec.fieldContext_CollectionConnection_edges(ctx, field)
  101635. case "nodes":
  101636. return ec.fieldContext_CollectionConnection_nodes(ctx, field)
  101637. case "pageInfo":
  101638. return ec.fieldContext_CollectionConnection_pageInfo(ctx, field)
  101639. }
  101640. return nil, fmt.Errorf("no field named %q was found under type CollectionConnection", field.Name)
  101641. },
  101642. }
  101643. defer func() {
  101644. if r := recover(); r != nil {
  101645. err = ec.Recover(ctx, r)
  101646. ec.Error(ctx, err)
  101647. }
  101648. }()
  101649. ctx = graphql.WithFieldContext(ctx, fc)
  101650. if fc.Args, err = ec.field_Product_collections_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  101651. ec.Error(ctx, err)
  101652. return
  101653. }
  101654. return fc, nil
  101655. }
  101656. func (ec *executionContext) _Product_contextualPricing(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  101657. fc, err := ec.fieldContext_Product_contextualPricing(ctx, field)
  101658. if err != nil {
  101659. return graphql.Null
  101660. }
  101661. ctx = graphql.WithFieldContext(ctx, fc)
  101662. defer func() {
  101663. if r := recover(); r != nil {
  101664. ec.Error(ctx, ec.Recover(ctx, r))
  101665. ret = graphql.Null
  101666. }
  101667. }()
  101668. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  101669. ctx = rctx // use context from middleware stack in children
  101670. return obj.ContextualPricing, nil
  101671. })
  101672. if err != nil {
  101673. ec.Error(ctx, err)
  101674. return graphql.Null
  101675. }
  101676. if resTmp == nil {
  101677. if !graphql.HasFieldError(ctx, fc) {
  101678. ec.Errorf(ctx, "must not be null")
  101679. }
  101680. return graphql.Null
  101681. }
  101682. res := resTmp.(*ProductContextualPricing)
  101683. fc.Result = res
  101684. return ec.marshalNProductContextualPricing2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductContextualPricing(ctx, field.Selections, res)
  101685. }
  101686. func (ec *executionContext) fieldContext_Product_contextualPricing(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  101687. fc = &graphql.FieldContext{
  101688. Object: "Product",
  101689. Field: field,
  101690. IsMethod: false,
  101691. IsResolver: false,
  101692. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  101693. switch field.Name {
  101694. case "maxVariantPricing":
  101695. return ec.fieldContext_ProductContextualPricing_maxVariantPricing(ctx, field)
  101696. case "minVariantPricing":
  101697. return ec.fieldContext_ProductContextualPricing_minVariantPricing(ctx, field)
  101698. case "priceRange":
  101699. return ec.fieldContext_ProductContextualPricing_priceRange(ctx, field)
  101700. }
  101701. return nil, fmt.Errorf("no field named %q was found under type ProductContextualPricing", field.Name)
  101702. },
  101703. }
  101704. defer func() {
  101705. if r := recover(); r != nil {
  101706. err = ec.Recover(ctx, r)
  101707. ec.Error(ctx, err)
  101708. }
  101709. }()
  101710. ctx = graphql.WithFieldContext(ctx, fc)
  101711. if fc.Args, err = ec.field_Product_contextualPricing_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  101712. ec.Error(ctx, err)
  101713. return
  101714. }
  101715. return fc, nil
  101716. }
  101717. func (ec *executionContext) _Product_createdAt(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  101718. fc, err := ec.fieldContext_Product_createdAt(ctx, field)
  101719. if err != nil {
  101720. return graphql.Null
  101721. }
  101722. ctx = graphql.WithFieldContext(ctx, fc)
  101723. defer func() {
  101724. if r := recover(); r != nil {
  101725. ec.Error(ctx, ec.Recover(ctx, r))
  101726. ret = graphql.Null
  101727. }
  101728. }()
  101729. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  101730. ctx = rctx // use context from middleware stack in children
  101731. return obj.CreatedAt, nil
  101732. })
  101733. if err != nil {
  101734. ec.Error(ctx, err)
  101735. return graphql.Null
  101736. }
  101737. if resTmp == nil {
  101738. if !graphql.HasFieldError(ctx, fc) {
  101739. ec.Errorf(ctx, "must not be null")
  101740. }
  101741. return graphql.Null
  101742. }
  101743. res := resTmp.(string)
  101744. fc.Result = res
  101745. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  101746. }
  101747. func (ec *executionContext) fieldContext_Product_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  101748. fc = &graphql.FieldContext{
  101749. Object: "Product",
  101750. Field: field,
  101751. IsMethod: false,
  101752. IsResolver: false,
  101753. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  101754. return nil, errors.New("field of type DateTime does not have child fields")
  101755. },
  101756. }
  101757. return fc, nil
  101758. }
  101759. func (ec *executionContext) _Product_defaultCursor(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  101760. fc, err := ec.fieldContext_Product_defaultCursor(ctx, field)
  101761. if err != nil {
  101762. return graphql.Null
  101763. }
  101764. ctx = graphql.WithFieldContext(ctx, fc)
  101765. defer func() {
  101766. if r := recover(); r != nil {
  101767. ec.Error(ctx, ec.Recover(ctx, r))
  101768. ret = graphql.Null
  101769. }
  101770. }()
  101771. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  101772. ctx = rctx // use context from middleware stack in children
  101773. return obj.DefaultCursor, nil
  101774. })
  101775. if err != nil {
  101776. ec.Error(ctx, err)
  101777. return graphql.Null
  101778. }
  101779. if resTmp == nil {
  101780. if !graphql.HasFieldError(ctx, fc) {
  101781. ec.Errorf(ctx, "must not be null")
  101782. }
  101783. return graphql.Null
  101784. }
  101785. res := resTmp.(string)
  101786. fc.Result = res
  101787. return ec.marshalNString2string(ctx, field.Selections, res)
  101788. }
  101789. func (ec *executionContext) fieldContext_Product_defaultCursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  101790. fc = &graphql.FieldContext{
  101791. Object: "Product",
  101792. Field: field,
  101793. IsMethod: false,
  101794. IsResolver: false,
  101795. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  101796. return nil, errors.New("field of type String does not have child fields")
  101797. },
  101798. }
  101799. return fc, nil
  101800. }
  101801. func (ec *executionContext) _Product_description(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  101802. fc, err := ec.fieldContext_Product_description(ctx, field)
  101803. if err != nil {
  101804. return graphql.Null
  101805. }
  101806. ctx = graphql.WithFieldContext(ctx, fc)
  101807. defer func() {
  101808. if r := recover(); r != nil {
  101809. ec.Error(ctx, ec.Recover(ctx, r))
  101810. ret = graphql.Null
  101811. }
  101812. }()
  101813. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  101814. ctx = rctx // use context from middleware stack in children
  101815. return obj.Description, nil
  101816. })
  101817. if err != nil {
  101818. ec.Error(ctx, err)
  101819. return graphql.Null
  101820. }
  101821. if resTmp == nil {
  101822. if !graphql.HasFieldError(ctx, fc) {
  101823. ec.Errorf(ctx, "must not be null")
  101824. }
  101825. return graphql.Null
  101826. }
  101827. res := resTmp.(string)
  101828. fc.Result = res
  101829. return ec.marshalNString2string(ctx, field.Selections, res)
  101830. }
  101831. func (ec *executionContext) fieldContext_Product_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  101832. fc = &graphql.FieldContext{
  101833. Object: "Product",
  101834. Field: field,
  101835. IsMethod: false,
  101836. IsResolver: false,
  101837. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  101838. return nil, errors.New("field of type String does not have child fields")
  101839. },
  101840. }
  101841. defer func() {
  101842. if r := recover(); r != nil {
  101843. err = ec.Recover(ctx, r)
  101844. ec.Error(ctx, err)
  101845. }
  101846. }()
  101847. ctx = graphql.WithFieldContext(ctx, fc)
  101848. if fc.Args, err = ec.field_Product_description_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  101849. ec.Error(ctx, err)
  101850. return
  101851. }
  101852. return fc, nil
  101853. }
  101854. func (ec *executionContext) _Product_descriptionHtml(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  101855. fc, err := ec.fieldContext_Product_descriptionHtml(ctx, field)
  101856. if err != nil {
  101857. return graphql.Null
  101858. }
  101859. ctx = graphql.WithFieldContext(ctx, fc)
  101860. defer func() {
  101861. if r := recover(); r != nil {
  101862. ec.Error(ctx, ec.Recover(ctx, r))
  101863. ret = graphql.Null
  101864. }
  101865. }()
  101866. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  101867. ctx = rctx // use context from middleware stack in children
  101868. return obj.DescriptionHTML, nil
  101869. })
  101870. if err != nil {
  101871. ec.Error(ctx, err)
  101872. return graphql.Null
  101873. }
  101874. if resTmp == nil {
  101875. if !graphql.HasFieldError(ctx, fc) {
  101876. ec.Errorf(ctx, "must not be null")
  101877. }
  101878. return graphql.Null
  101879. }
  101880. res := resTmp.(string)
  101881. fc.Result = res
  101882. return ec.marshalNHTML2string(ctx, field.Selections, res)
  101883. }
  101884. func (ec *executionContext) fieldContext_Product_descriptionHtml(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  101885. fc = &graphql.FieldContext{
  101886. Object: "Product",
  101887. Field: field,
  101888. IsMethod: false,
  101889. IsResolver: false,
  101890. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  101891. return nil, errors.New("field of type HTML does not have child fields")
  101892. },
  101893. }
  101894. return fc, nil
  101895. }
  101896. func (ec *executionContext) _Product_featuredImage(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  101897. fc, err := ec.fieldContext_Product_featuredImage(ctx, field)
  101898. if err != nil {
  101899. return graphql.Null
  101900. }
  101901. ctx = graphql.WithFieldContext(ctx, fc)
  101902. defer func() {
  101903. if r := recover(); r != nil {
  101904. ec.Error(ctx, ec.Recover(ctx, r))
  101905. ret = graphql.Null
  101906. }
  101907. }()
  101908. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  101909. ctx = rctx // use context from middleware stack in children
  101910. return obj.FeaturedImage, nil
  101911. })
  101912. if err != nil {
  101913. ec.Error(ctx, err)
  101914. return graphql.Null
  101915. }
  101916. if resTmp == nil {
  101917. return graphql.Null
  101918. }
  101919. res := resTmp.(*Image)
  101920. fc.Result = res
  101921. return ec.marshalOImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImage(ctx, field.Selections, res)
  101922. }
  101923. func (ec *executionContext) fieldContext_Product_featuredImage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  101924. fc = &graphql.FieldContext{
  101925. Object: "Product",
  101926. Field: field,
  101927. IsMethod: false,
  101928. IsResolver: false,
  101929. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  101930. switch field.Name {
  101931. case "altText":
  101932. return ec.fieldContext_Image_altText(ctx, field)
  101933. case "height":
  101934. return ec.fieldContext_Image_height(ctx, field)
  101935. case "id":
  101936. return ec.fieldContext_Image_id(ctx, field)
  101937. case "metafield":
  101938. return ec.fieldContext_Image_metafield(ctx, field)
  101939. case "metafields":
  101940. return ec.fieldContext_Image_metafields(ctx, field)
  101941. case "privateMetafield":
  101942. return ec.fieldContext_Image_privateMetafield(ctx, field)
  101943. case "privateMetafields":
  101944. return ec.fieldContext_Image_privateMetafields(ctx, field)
  101945. case "url":
  101946. return ec.fieldContext_Image_url(ctx, field)
  101947. case "width":
  101948. return ec.fieldContext_Image_width(ctx, field)
  101949. }
  101950. return nil, fmt.Errorf("no field named %q was found under type Image", field.Name)
  101951. },
  101952. }
  101953. return fc, nil
  101954. }
  101955. func (ec *executionContext) _Product_featuredMedia(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  101956. fc, err := ec.fieldContext_Product_featuredMedia(ctx, field)
  101957. if err != nil {
  101958. return graphql.Null
  101959. }
  101960. ctx = graphql.WithFieldContext(ctx, fc)
  101961. defer func() {
  101962. if r := recover(); r != nil {
  101963. ec.Error(ctx, ec.Recover(ctx, r))
  101964. ret = graphql.Null
  101965. }
  101966. }()
  101967. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  101968. ctx = rctx // use context from middleware stack in children
  101969. return obj.FeaturedMedia, nil
  101970. })
  101971. if err != nil {
  101972. ec.Error(ctx, err)
  101973. return graphql.Null
  101974. }
  101975. if resTmp == nil {
  101976. return graphql.Null
  101977. }
  101978. res := resTmp.(Media)
  101979. fc.Result = res
  101980. return ec.marshalOMedia2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMedia(ctx, field.Selections, res)
  101981. }
  101982. func (ec *executionContext) fieldContext_Product_featuredMedia(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  101983. fc = &graphql.FieldContext{
  101984. Object: "Product",
  101985. Field: field,
  101986. IsMethod: false,
  101987. IsResolver: false,
  101988. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  101989. return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
  101990. },
  101991. }
  101992. return fc, nil
  101993. }
  101994. func (ec *executionContext) _Product_feedback(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  101995. fc, err := ec.fieldContext_Product_feedback(ctx, field)
  101996. if err != nil {
  101997. return graphql.Null
  101998. }
  101999. ctx = graphql.WithFieldContext(ctx, fc)
  102000. defer func() {
  102001. if r := recover(); r != nil {
  102002. ec.Error(ctx, ec.Recover(ctx, r))
  102003. ret = graphql.Null
  102004. }
  102005. }()
  102006. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  102007. ctx = rctx // use context from middleware stack in children
  102008. return obj.Feedback, nil
  102009. })
  102010. if err != nil {
  102011. ec.Error(ctx, err)
  102012. return graphql.Null
  102013. }
  102014. if resTmp == nil {
  102015. return graphql.Null
  102016. }
  102017. res := resTmp.(*ResourceFeedback)
  102018. fc.Result = res
  102019. return ec.marshalOResourceFeedback2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourceFeedback(ctx, field.Selections, res)
  102020. }
  102021. func (ec *executionContext) fieldContext_Product_feedback(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  102022. fc = &graphql.FieldContext{
  102023. Object: "Product",
  102024. Field: field,
  102025. IsMethod: false,
  102026. IsResolver: false,
  102027. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  102028. switch field.Name {
  102029. case "details":
  102030. return ec.fieldContext_ResourceFeedback_details(ctx, field)
  102031. case "summary":
  102032. return ec.fieldContext_ResourceFeedback_summary(ctx, field)
  102033. }
  102034. return nil, fmt.Errorf("no field named %q was found under type ResourceFeedback", field.Name)
  102035. },
  102036. }
  102037. return fc, nil
  102038. }
  102039. func (ec *executionContext) _Product_giftCardTemplateSuffix(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  102040. fc, err := ec.fieldContext_Product_giftCardTemplateSuffix(ctx, field)
  102041. if err != nil {
  102042. return graphql.Null
  102043. }
  102044. ctx = graphql.WithFieldContext(ctx, fc)
  102045. defer func() {
  102046. if r := recover(); r != nil {
  102047. ec.Error(ctx, ec.Recover(ctx, r))
  102048. ret = graphql.Null
  102049. }
  102050. }()
  102051. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  102052. ctx = rctx // use context from middleware stack in children
  102053. return obj.GiftCardTemplateSuffix, nil
  102054. })
  102055. if err != nil {
  102056. ec.Error(ctx, err)
  102057. return graphql.Null
  102058. }
  102059. if resTmp == nil {
  102060. return graphql.Null
  102061. }
  102062. res := resTmp.(*string)
  102063. fc.Result = res
  102064. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  102065. }
  102066. func (ec *executionContext) fieldContext_Product_giftCardTemplateSuffix(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  102067. fc = &graphql.FieldContext{
  102068. Object: "Product",
  102069. Field: field,
  102070. IsMethod: false,
  102071. IsResolver: false,
  102072. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  102073. return nil, errors.New("field of type String does not have child fields")
  102074. },
  102075. }
  102076. return fc, nil
  102077. }
  102078. func (ec *executionContext) _Product_handle(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  102079. fc, err := ec.fieldContext_Product_handle(ctx, field)
  102080. if err != nil {
  102081. return graphql.Null
  102082. }
  102083. ctx = graphql.WithFieldContext(ctx, fc)
  102084. defer func() {
  102085. if r := recover(); r != nil {
  102086. ec.Error(ctx, ec.Recover(ctx, r))
  102087. ret = graphql.Null
  102088. }
  102089. }()
  102090. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  102091. ctx = rctx // use context from middleware stack in children
  102092. return obj.Handle, nil
  102093. })
  102094. if err != nil {
  102095. ec.Error(ctx, err)
  102096. return graphql.Null
  102097. }
  102098. if resTmp == nil {
  102099. if !graphql.HasFieldError(ctx, fc) {
  102100. ec.Errorf(ctx, "must not be null")
  102101. }
  102102. return graphql.Null
  102103. }
  102104. res := resTmp.(string)
  102105. fc.Result = res
  102106. return ec.marshalNString2string(ctx, field.Selections, res)
  102107. }
  102108. func (ec *executionContext) fieldContext_Product_handle(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  102109. fc = &graphql.FieldContext{
  102110. Object: "Product",
  102111. Field: field,
  102112. IsMethod: false,
  102113. IsResolver: false,
  102114. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  102115. return nil, errors.New("field of type String does not have child fields")
  102116. },
  102117. }
  102118. return fc, nil
  102119. }
  102120. func (ec *executionContext) _Product_hasOnlyDefaultVariant(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  102121. fc, err := ec.fieldContext_Product_hasOnlyDefaultVariant(ctx, field)
  102122. if err != nil {
  102123. return graphql.Null
  102124. }
  102125. ctx = graphql.WithFieldContext(ctx, fc)
  102126. defer func() {
  102127. if r := recover(); r != nil {
  102128. ec.Error(ctx, ec.Recover(ctx, r))
  102129. ret = graphql.Null
  102130. }
  102131. }()
  102132. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  102133. ctx = rctx // use context from middleware stack in children
  102134. return obj.HasOnlyDefaultVariant, nil
  102135. })
  102136. if err != nil {
  102137. ec.Error(ctx, err)
  102138. return graphql.Null
  102139. }
  102140. if resTmp == nil {
  102141. if !graphql.HasFieldError(ctx, fc) {
  102142. ec.Errorf(ctx, "must not be null")
  102143. }
  102144. return graphql.Null
  102145. }
  102146. res := resTmp.(bool)
  102147. fc.Result = res
  102148. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  102149. }
  102150. func (ec *executionContext) fieldContext_Product_hasOnlyDefaultVariant(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  102151. fc = &graphql.FieldContext{
  102152. Object: "Product",
  102153. Field: field,
  102154. IsMethod: false,
  102155. IsResolver: false,
  102156. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  102157. return nil, errors.New("field of type Boolean does not have child fields")
  102158. },
  102159. }
  102160. return fc, nil
  102161. }
  102162. func (ec *executionContext) _Product_hasOutOfStockVariants(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  102163. fc, err := ec.fieldContext_Product_hasOutOfStockVariants(ctx, field)
  102164. if err != nil {
  102165. return graphql.Null
  102166. }
  102167. ctx = graphql.WithFieldContext(ctx, fc)
  102168. defer func() {
  102169. if r := recover(); r != nil {
  102170. ec.Error(ctx, ec.Recover(ctx, r))
  102171. ret = graphql.Null
  102172. }
  102173. }()
  102174. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  102175. ctx = rctx // use context from middleware stack in children
  102176. return obj.HasOutOfStockVariants, nil
  102177. })
  102178. if err != nil {
  102179. ec.Error(ctx, err)
  102180. return graphql.Null
  102181. }
  102182. if resTmp == nil {
  102183. if !graphql.HasFieldError(ctx, fc) {
  102184. ec.Errorf(ctx, "must not be null")
  102185. }
  102186. return graphql.Null
  102187. }
  102188. res := resTmp.(bool)
  102189. fc.Result = res
  102190. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  102191. }
  102192. func (ec *executionContext) fieldContext_Product_hasOutOfStockVariants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  102193. fc = &graphql.FieldContext{
  102194. Object: "Product",
  102195. Field: field,
  102196. IsMethod: false,
  102197. IsResolver: false,
  102198. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  102199. return nil, errors.New("field of type Boolean does not have child fields")
  102200. },
  102201. }
  102202. return fc, nil
  102203. }
  102204. func (ec *executionContext) _Product_id(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  102205. fc, err := ec.fieldContext_Product_id(ctx, field)
  102206. if err != nil {
  102207. return graphql.Null
  102208. }
  102209. ctx = graphql.WithFieldContext(ctx, fc)
  102210. defer func() {
  102211. if r := recover(); r != nil {
  102212. ec.Error(ctx, ec.Recover(ctx, r))
  102213. ret = graphql.Null
  102214. }
  102215. }()
  102216. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  102217. ctx = rctx // use context from middleware stack in children
  102218. return obj.ID, nil
  102219. })
  102220. if err != nil {
  102221. ec.Error(ctx, err)
  102222. return graphql.Null
  102223. }
  102224. if resTmp == nil {
  102225. if !graphql.HasFieldError(ctx, fc) {
  102226. ec.Errorf(ctx, "must not be null")
  102227. }
  102228. return graphql.Null
  102229. }
  102230. res := resTmp.(string)
  102231. fc.Result = res
  102232. return ec.marshalNID2string(ctx, field.Selections, res)
  102233. }
  102234. func (ec *executionContext) fieldContext_Product_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  102235. fc = &graphql.FieldContext{
  102236. Object: "Product",
  102237. Field: field,
  102238. IsMethod: false,
  102239. IsResolver: false,
  102240. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  102241. return nil, errors.New("field of type ID does not have child fields")
  102242. },
  102243. }
  102244. return fc, nil
  102245. }
  102246. func (ec *executionContext) _Product_images(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  102247. fc, err := ec.fieldContext_Product_images(ctx, field)
  102248. if err != nil {
  102249. return graphql.Null
  102250. }
  102251. ctx = graphql.WithFieldContext(ctx, fc)
  102252. defer func() {
  102253. if r := recover(); r != nil {
  102254. ec.Error(ctx, ec.Recover(ctx, r))
  102255. ret = graphql.Null
  102256. }
  102257. }()
  102258. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  102259. ctx = rctx // use context from middleware stack in children
  102260. return obj.Images, nil
  102261. })
  102262. if err != nil {
  102263. ec.Error(ctx, err)
  102264. return graphql.Null
  102265. }
  102266. if resTmp == nil {
  102267. if !graphql.HasFieldError(ctx, fc) {
  102268. ec.Errorf(ctx, "must not be null")
  102269. }
  102270. return graphql.Null
  102271. }
  102272. res := resTmp.(*ImageConnection)
  102273. fc.Result = res
  102274. return ec.marshalNImageConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImageConnection(ctx, field.Selections, res)
  102275. }
  102276. func (ec *executionContext) fieldContext_Product_images(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  102277. fc = &graphql.FieldContext{
  102278. Object: "Product",
  102279. Field: field,
  102280. IsMethod: false,
  102281. IsResolver: false,
  102282. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  102283. switch field.Name {
  102284. case "edges":
  102285. return ec.fieldContext_ImageConnection_edges(ctx, field)
  102286. case "nodes":
  102287. return ec.fieldContext_ImageConnection_nodes(ctx, field)
  102288. case "pageInfo":
  102289. return ec.fieldContext_ImageConnection_pageInfo(ctx, field)
  102290. }
  102291. return nil, fmt.Errorf("no field named %q was found under type ImageConnection", field.Name)
  102292. },
  102293. }
  102294. defer func() {
  102295. if r := recover(); r != nil {
  102296. err = ec.Recover(ctx, r)
  102297. ec.Error(ctx, err)
  102298. }
  102299. }()
  102300. ctx = graphql.WithFieldContext(ctx, fc)
  102301. if fc.Args, err = ec.field_Product_images_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  102302. ec.Error(ctx, err)
  102303. return
  102304. }
  102305. return fc, nil
  102306. }
  102307. func (ec *executionContext) _Product_inCollection(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  102308. fc, err := ec.fieldContext_Product_inCollection(ctx, field)
  102309. if err != nil {
  102310. return graphql.Null
  102311. }
  102312. ctx = graphql.WithFieldContext(ctx, fc)
  102313. defer func() {
  102314. if r := recover(); r != nil {
  102315. ec.Error(ctx, ec.Recover(ctx, r))
  102316. ret = graphql.Null
  102317. }
  102318. }()
  102319. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  102320. ctx = rctx // use context from middleware stack in children
  102321. return obj.InCollection, nil
  102322. })
  102323. if err != nil {
  102324. ec.Error(ctx, err)
  102325. return graphql.Null
  102326. }
  102327. if resTmp == nil {
  102328. if !graphql.HasFieldError(ctx, fc) {
  102329. ec.Errorf(ctx, "must not be null")
  102330. }
  102331. return graphql.Null
  102332. }
  102333. res := resTmp.(bool)
  102334. fc.Result = res
  102335. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  102336. }
  102337. func (ec *executionContext) fieldContext_Product_inCollection(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  102338. fc = &graphql.FieldContext{
  102339. Object: "Product",
  102340. Field: field,
  102341. IsMethod: false,
  102342. IsResolver: false,
  102343. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  102344. return nil, errors.New("field of type Boolean does not have child fields")
  102345. },
  102346. }
  102347. defer func() {
  102348. if r := recover(); r != nil {
  102349. err = ec.Recover(ctx, r)
  102350. ec.Error(ctx, err)
  102351. }
  102352. }()
  102353. ctx = graphql.WithFieldContext(ctx, fc)
  102354. if fc.Args, err = ec.field_Product_inCollection_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  102355. ec.Error(ctx, err)
  102356. return
  102357. }
  102358. return fc, nil
  102359. }
  102360. func (ec *executionContext) _Product_isGiftCard(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  102361. fc, err := ec.fieldContext_Product_isGiftCard(ctx, field)
  102362. if err != nil {
  102363. return graphql.Null
  102364. }
  102365. ctx = graphql.WithFieldContext(ctx, fc)
  102366. defer func() {
  102367. if r := recover(); r != nil {
  102368. ec.Error(ctx, ec.Recover(ctx, r))
  102369. ret = graphql.Null
  102370. }
  102371. }()
  102372. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  102373. ctx = rctx // use context from middleware stack in children
  102374. return obj.IsGiftCard, nil
  102375. })
  102376. if err != nil {
  102377. ec.Error(ctx, err)
  102378. return graphql.Null
  102379. }
  102380. if resTmp == nil {
  102381. if !graphql.HasFieldError(ctx, fc) {
  102382. ec.Errorf(ctx, "must not be null")
  102383. }
  102384. return graphql.Null
  102385. }
  102386. res := resTmp.(bool)
  102387. fc.Result = res
  102388. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  102389. }
  102390. func (ec *executionContext) fieldContext_Product_isGiftCard(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  102391. fc = &graphql.FieldContext{
  102392. Object: "Product",
  102393. Field: field,
  102394. IsMethod: false,
  102395. IsResolver: false,
  102396. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  102397. return nil, errors.New("field of type Boolean does not have child fields")
  102398. },
  102399. }
  102400. return fc, nil
  102401. }
  102402. func (ec *executionContext) _Product_legacyResourceId(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  102403. fc, err := ec.fieldContext_Product_legacyResourceId(ctx, field)
  102404. if err != nil {
  102405. return graphql.Null
  102406. }
  102407. ctx = graphql.WithFieldContext(ctx, fc)
  102408. defer func() {
  102409. if r := recover(); r != nil {
  102410. ec.Error(ctx, ec.Recover(ctx, r))
  102411. ret = graphql.Null
  102412. }
  102413. }()
  102414. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  102415. ctx = rctx // use context from middleware stack in children
  102416. return obj.LegacyResourceID, nil
  102417. })
  102418. if err != nil {
  102419. ec.Error(ctx, err)
  102420. return graphql.Null
  102421. }
  102422. if resTmp == nil {
  102423. if !graphql.HasFieldError(ctx, fc) {
  102424. ec.Errorf(ctx, "must not be null")
  102425. }
  102426. return graphql.Null
  102427. }
  102428. res := resTmp.(string)
  102429. fc.Result = res
  102430. return ec.marshalNUnsignedInt642string(ctx, field.Selections, res)
  102431. }
  102432. func (ec *executionContext) fieldContext_Product_legacyResourceId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  102433. fc = &graphql.FieldContext{
  102434. Object: "Product",
  102435. Field: field,
  102436. IsMethod: false,
  102437. IsResolver: false,
  102438. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  102439. return nil, errors.New("field of type UnsignedInt64 does not have child fields")
  102440. },
  102441. }
  102442. return fc, nil
  102443. }
  102444. func (ec *executionContext) _Product_media(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  102445. fc, err := ec.fieldContext_Product_media(ctx, field)
  102446. if err != nil {
  102447. return graphql.Null
  102448. }
  102449. ctx = graphql.WithFieldContext(ctx, fc)
  102450. defer func() {
  102451. if r := recover(); r != nil {
  102452. ec.Error(ctx, ec.Recover(ctx, r))
  102453. ret = graphql.Null
  102454. }
  102455. }()
  102456. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  102457. ctx = rctx // use context from middleware stack in children
  102458. return obj.Media, nil
  102459. })
  102460. if err != nil {
  102461. ec.Error(ctx, err)
  102462. return graphql.Null
  102463. }
  102464. if resTmp == nil {
  102465. if !graphql.HasFieldError(ctx, fc) {
  102466. ec.Errorf(ctx, "must not be null")
  102467. }
  102468. return graphql.Null
  102469. }
  102470. res := resTmp.(*MediaConnection)
  102471. fc.Result = res
  102472. return ec.marshalNMediaConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaConnection(ctx, field.Selections, res)
  102473. }
  102474. func (ec *executionContext) fieldContext_Product_media(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  102475. fc = &graphql.FieldContext{
  102476. Object: "Product",
  102477. Field: field,
  102478. IsMethod: false,
  102479. IsResolver: false,
  102480. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  102481. switch field.Name {
  102482. case "edges":
  102483. return ec.fieldContext_MediaConnection_edges(ctx, field)
  102484. case "nodes":
  102485. return ec.fieldContext_MediaConnection_nodes(ctx, field)
  102486. case "pageInfo":
  102487. return ec.fieldContext_MediaConnection_pageInfo(ctx, field)
  102488. }
  102489. return nil, fmt.Errorf("no field named %q was found under type MediaConnection", field.Name)
  102490. },
  102491. }
  102492. defer func() {
  102493. if r := recover(); r != nil {
  102494. err = ec.Recover(ctx, r)
  102495. ec.Error(ctx, err)
  102496. }
  102497. }()
  102498. ctx = graphql.WithFieldContext(ctx, fc)
  102499. if fc.Args, err = ec.field_Product_media_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  102500. ec.Error(ctx, err)
  102501. return
  102502. }
  102503. return fc, nil
  102504. }
  102505. func (ec *executionContext) _Product_mediaCount(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  102506. fc, err := ec.fieldContext_Product_mediaCount(ctx, field)
  102507. if err != nil {
  102508. return graphql.Null
  102509. }
  102510. ctx = graphql.WithFieldContext(ctx, fc)
  102511. defer func() {
  102512. if r := recover(); r != nil {
  102513. ec.Error(ctx, ec.Recover(ctx, r))
  102514. ret = graphql.Null
  102515. }
  102516. }()
  102517. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  102518. ctx = rctx // use context from middleware stack in children
  102519. return obj.MediaCount, nil
  102520. })
  102521. if err != nil {
  102522. ec.Error(ctx, err)
  102523. return graphql.Null
  102524. }
  102525. if resTmp == nil {
  102526. if !graphql.HasFieldError(ctx, fc) {
  102527. ec.Errorf(ctx, "must not be null")
  102528. }
  102529. return graphql.Null
  102530. }
  102531. res := resTmp.(int)
  102532. fc.Result = res
  102533. return ec.marshalNInt2int(ctx, field.Selections, res)
  102534. }
  102535. func (ec *executionContext) fieldContext_Product_mediaCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  102536. fc = &graphql.FieldContext{
  102537. Object: "Product",
  102538. Field: field,
  102539. IsMethod: false,
  102540. IsResolver: false,
  102541. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  102542. return nil, errors.New("field of type Int does not have child fields")
  102543. },
  102544. }
  102545. return fc, nil
  102546. }
  102547. func (ec *executionContext) _Product_metafield(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  102548. fc, err := ec.fieldContext_Product_metafield(ctx, field)
  102549. if err != nil {
  102550. return graphql.Null
  102551. }
  102552. ctx = graphql.WithFieldContext(ctx, fc)
  102553. defer func() {
  102554. if r := recover(); r != nil {
  102555. ec.Error(ctx, ec.Recover(ctx, r))
  102556. ret = graphql.Null
  102557. }
  102558. }()
  102559. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  102560. ctx = rctx // use context from middleware stack in children
  102561. return obj.Metafield, nil
  102562. })
  102563. if err != nil {
  102564. ec.Error(ctx, err)
  102565. return graphql.Null
  102566. }
  102567. if resTmp == nil {
  102568. return graphql.Null
  102569. }
  102570. res := resTmp.(*Metafield)
  102571. fc.Result = res
  102572. return ec.marshalOMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafield(ctx, field.Selections, res)
  102573. }
  102574. func (ec *executionContext) fieldContext_Product_metafield(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  102575. fc = &graphql.FieldContext{
  102576. Object: "Product",
  102577. Field: field,
  102578. IsMethod: false,
  102579. IsResolver: false,
  102580. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  102581. switch field.Name {
  102582. case "createdAt":
  102583. return ec.fieldContext_Metafield_createdAt(ctx, field)
  102584. case "definition":
  102585. return ec.fieldContext_Metafield_definition(ctx, field)
  102586. case "description":
  102587. return ec.fieldContext_Metafield_description(ctx, field)
  102588. case "id":
  102589. return ec.fieldContext_Metafield_id(ctx, field)
  102590. case "key":
  102591. return ec.fieldContext_Metafield_key(ctx, field)
  102592. case "legacyResourceId":
  102593. return ec.fieldContext_Metafield_legacyResourceId(ctx, field)
  102594. case "namespace":
  102595. return ec.fieldContext_Metafield_namespace(ctx, field)
  102596. case "owner":
  102597. return ec.fieldContext_Metafield_owner(ctx, field)
  102598. case "ownerType":
  102599. return ec.fieldContext_Metafield_ownerType(ctx, field)
  102600. case "reference":
  102601. return ec.fieldContext_Metafield_reference(ctx, field)
  102602. case "references":
  102603. return ec.fieldContext_Metafield_references(ctx, field)
  102604. case "type":
  102605. return ec.fieldContext_Metafield_type(ctx, field)
  102606. case "updatedAt":
  102607. return ec.fieldContext_Metafield_updatedAt(ctx, field)
  102608. case "value":
  102609. return ec.fieldContext_Metafield_value(ctx, field)
  102610. }
  102611. return nil, fmt.Errorf("no field named %q was found under type Metafield", field.Name)
  102612. },
  102613. }
  102614. defer func() {
  102615. if r := recover(); r != nil {
  102616. err = ec.Recover(ctx, r)
  102617. ec.Error(ctx, err)
  102618. }
  102619. }()
  102620. ctx = graphql.WithFieldContext(ctx, fc)
  102621. if fc.Args, err = ec.field_Product_metafield_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  102622. ec.Error(ctx, err)
  102623. return
  102624. }
  102625. return fc, nil
  102626. }
  102627. func (ec *executionContext) _Product_metafieldDefinitions(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  102628. fc, err := ec.fieldContext_Product_metafieldDefinitions(ctx, field)
  102629. if err != nil {
  102630. return graphql.Null
  102631. }
  102632. ctx = graphql.WithFieldContext(ctx, fc)
  102633. defer func() {
  102634. if r := recover(); r != nil {
  102635. ec.Error(ctx, ec.Recover(ctx, r))
  102636. ret = graphql.Null
  102637. }
  102638. }()
  102639. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  102640. ctx = rctx // use context from middleware stack in children
  102641. return obj.MetafieldDefinitions, nil
  102642. })
  102643. if err != nil {
  102644. ec.Error(ctx, err)
  102645. return graphql.Null
  102646. }
  102647. if resTmp == nil {
  102648. if !graphql.HasFieldError(ctx, fc) {
  102649. ec.Errorf(ctx, "must not be null")
  102650. }
  102651. return graphql.Null
  102652. }
  102653. res := resTmp.(*MetafieldDefinitionConnection)
  102654. fc.Result = res
  102655. return ec.marshalNMetafieldDefinitionConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionConnection(ctx, field.Selections, res)
  102656. }
  102657. func (ec *executionContext) fieldContext_Product_metafieldDefinitions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  102658. fc = &graphql.FieldContext{
  102659. Object: "Product",
  102660. Field: field,
  102661. IsMethod: false,
  102662. IsResolver: false,
  102663. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  102664. switch field.Name {
  102665. case "edges":
  102666. return ec.fieldContext_MetafieldDefinitionConnection_edges(ctx, field)
  102667. case "nodes":
  102668. return ec.fieldContext_MetafieldDefinitionConnection_nodes(ctx, field)
  102669. case "pageInfo":
  102670. return ec.fieldContext_MetafieldDefinitionConnection_pageInfo(ctx, field)
  102671. }
  102672. return nil, fmt.Errorf("no field named %q was found under type MetafieldDefinitionConnection", field.Name)
  102673. },
  102674. }
  102675. defer func() {
  102676. if r := recover(); r != nil {
  102677. err = ec.Recover(ctx, r)
  102678. ec.Error(ctx, err)
  102679. }
  102680. }()
  102681. ctx = graphql.WithFieldContext(ctx, fc)
  102682. if fc.Args, err = ec.field_Product_metafieldDefinitions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  102683. ec.Error(ctx, err)
  102684. return
  102685. }
  102686. return fc, nil
  102687. }
  102688. func (ec *executionContext) _Product_metafields(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  102689. fc, err := ec.fieldContext_Product_metafields(ctx, field)
  102690. if err != nil {
  102691. return graphql.Null
  102692. }
  102693. ctx = graphql.WithFieldContext(ctx, fc)
  102694. defer func() {
  102695. if r := recover(); r != nil {
  102696. ec.Error(ctx, ec.Recover(ctx, r))
  102697. ret = graphql.Null
  102698. }
  102699. }()
  102700. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  102701. ctx = rctx // use context from middleware stack in children
  102702. return obj.Metafields, nil
  102703. })
  102704. if err != nil {
  102705. ec.Error(ctx, err)
  102706. return graphql.Null
  102707. }
  102708. if resTmp == nil {
  102709. if !graphql.HasFieldError(ctx, fc) {
  102710. ec.Errorf(ctx, "must not be null")
  102711. }
  102712. return graphql.Null
  102713. }
  102714. res := resTmp.(*MetafieldConnection)
  102715. fc.Result = res
  102716. return ec.marshalNMetafieldConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldConnection(ctx, field.Selections, res)
  102717. }
  102718. func (ec *executionContext) fieldContext_Product_metafields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  102719. fc = &graphql.FieldContext{
  102720. Object: "Product",
  102721. Field: field,
  102722. IsMethod: false,
  102723. IsResolver: false,
  102724. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  102725. switch field.Name {
  102726. case "edges":
  102727. return ec.fieldContext_MetafieldConnection_edges(ctx, field)
  102728. case "nodes":
  102729. return ec.fieldContext_MetafieldConnection_nodes(ctx, field)
  102730. case "pageInfo":
  102731. return ec.fieldContext_MetafieldConnection_pageInfo(ctx, field)
  102732. }
  102733. return nil, fmt.Errorf("no field named %q was found under type MetafieldConnection", field.Name)
  102734. },
  102735. }
  102736. defer func() {
  102737. if r := recover(); r != nil {
  102738. err = ec.Recover(ctx, r)
  102739. ec.Error(ctx, err)
  102740. }
  102741. }()
  102742. ctx = graphql.WithFieldContext(ctx, fc)
  102743. if fc.Args, err = ec.field_Product_metafields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  102744. ec.Error(ctx, err)
  102745. return
  102746. }
  102747. return fc, nil
  102748. }
  102749. func (ec *executionContext) _Product_onlineStorePreviewUrl(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  102750. fc, err := ec.fieldContext_Product_onlineStorePreviewUrl(ctx, field)
  102751. if err != nil {
  102752. return graphql.Null
  102753. }
  102754. ctx = graphql.WithFieldContext(ctx, fc)
  102755. defer func() {
  102756. if r := recover(); r != nil {
  102757. ec.Error(ctx, ec.Recover(ctx, r))
  102758. ret = graphql.Null
  102759. }
  102760. }()
  102761. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  102762. ctx = rctx // use context from middleware stack in children
  102763. return obj.OnlineStorePreviewURL, nil
  102764. })
  102765. if err != nil {
  102766. ec.Error(ctx, err)
  102767. return graphql.Null
  102768. }
  102769. if resTmp == nil {
  102770. return graphql.Null
  102771. }
  102772. res := resTmp.(*string)
  102773. fc.Result = res
  102774. return ec.marshalOURL2ᚖstring(ctx, field.Selections, res)
  102775. }
  102776. func (ec *executionContext) fieldContext_Product_onlineStorePreviewUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  102777. fc = &graphql.FieldContext{
  102778. Object: "Product",
  102779. Field: field,
  102780. IsMethod: false,
  102781. IsResolver: false,
  102782. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  102783. return nil, errors.New("field of type URL does not have child fields")
  102784. },
  102785. }
  102786. return fc, nil
  102787. }
  102788. func (ec *executionContext) _Product_onlineStoreUrl(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  102789. fc, err := ec.fieldContext_Product_onlineStoreUrl(ctx, field)
  102790. if err != nil {
  102791. return graphql.Null
  102792. }
  102793. ctx = graphql.WithFieldContext(ctx, fc)
  102794. defer func() {
  102795. if r := recover(); r != nil {
  102796. ec.Error(ctx, ec.Recover(ctx, r))
  102797. ret = graphql.Null
  102798. }
  102799. }()
  102800. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  102801. ctx = rctx // use context from middleware stack in children
  102802. return obj.OnlineStoreURL, nil
  102803. })
  102804. if err != nil {
  102805. ec.Error(ctx, err)
  102806. return graphql.Null
  102807. }
  102808. if resTmp == nil {
  102809. return graphql.Null
  102810. }
  102811. res := resTmp.(*string)
  102812. fc.Result = res
  102813. return ec.marshalOURL2ᚖstring(ctx, field.Selections, res)
  102814. }
  102815. func (ec *executionContext) fieldContext_Product_onlineStoreUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  102816. fc = &graphql.FieldContext{
  102817. Object: "Product",
  102818. Field: field,
  102819. IsMethod: false,
  102820. IsResolver: false,
  102821. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  102822. return nil, errors.New("field of type URL does not have child fields")
  102823. },
  102824. }
  102825. return fc, nil
  102826. }
  102827. func (ec *executionContext) _Product_options(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  102828. fc, err := ec.fieldContext_Product_options(ctx, field)
  102829. if err != nil {
  102830. return graphql.Null
  102831. }
  102832. ctx = graphql.WithFieldContext(ctx, fc)
  102833. defer func() {
  102834. if r := recover(); r != nil {
  102835. ec.Error(ctx, ec.Recover(ctx, r))
  102836. ret = graphql.Null
  102837. }
  102838. }()
  102839. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  102840. ctx = rctx // use context from middleware stack in children
  102841. return obj.Options, nil
  102842. })
  102843. if err != nil {
  102844. ec.Error(ctx, err)
  102845. return graphql.Null
  102846. }
  102847. if resTmp == nil {
  102848. if !graphql.HasFieldError(ctx, fc) {
  102849. ec.Errorf(ctx, "must not be null")
  102850. }
  102851. return graphql.Null
  102852. }
  102853. res := resTmp.([]*ProductOption)
  102854. fc.Result = res
  102855. return ec.marshalNProductOption2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductOptionᚄ(ctx, field.Selections, res)
  102856. }
  102857. func (ec *executionContext) fieldContext_Product_options(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  102858. fc = &graphql.FieldContext{
  102859. Object: "Product",
  102860. Field: field,
  102861. IsMethod: false,
  102862. IsResolver: false,
  102863. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  102864. switch field.Name {
  102865. case "id":
  102866. return ec.fieldContext_ProductOption_id(ctx, field)
  102867. case "name":
  102868. return ec.fieldContext_ProductOption_name(ctx, field)
  102869. case "position":
  102870. return ec.fieldContext_ProductOption_position(ctx, field)
  102871. case "translations":
  102872. return ec.fieldContext_ProductOption_translations(ctx, field)
  102873. case "values":
  102874. return ec.fieldContext_ProductOption_values(ctx, field)
  102875. }
  102876. return nil, fmt.Errorf("no field named %q was found under type ProductOption", field.Name)
  102877. },
  102878. }
  102879. defer func() {
  102880. if r := recover(); r != nil {
  102881. err = ec.Recover(ctx, r)
  102882. ec.Error(ctx, err)
  102883. }
  102884. }()
  102885. ctx = graphql.WithFieldContext(ctx, fc)
  102886. if fc.Args, err = ec.field_Product_options_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  102887. ec.Error(ctx, err)
  102888. return
  102889. }
  102890. return fc, nil
  102891. }
  102892. func (ec *executionContext) _Product_priceRangeV2(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  102893. fc, err := ec.fieldContext_Product_priceRangeV2(ctx, field)
  102894. if err != nil {
  102895. return graphql.Null
  102896. }
  102897. ctx = graphql.WithFieldContext(ctx, fc)
  102898. defer func() {
  102899. if r := recover(); r != nil {
  102900. ec.Error(ctx, ec.Recover(ctx, r))
  102901. ret = graphql.Null
  102902. }
  102903. }()
  102904. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  102905. ctx = rctx // use context from middleware stack in children
  102906. return obj.PriceRangeV2, nil
  102907. })
  102908. if err != nil {
  102909. ec.Error(ctx, err)
  102910. return graphql.Null
  102911. }
  102912. if resTmp == nil {
  102913. if !graphql.HasFieldError(ctx, fc) {
  102914. ec.Errorf(ctx, "must not be null")
  102915. }
  102916. return graphql.Null
  102917. }
  102918. res := resTmp.(*ProductPriceRangeV2)
  102919. fc.Result = res
  102920. return ec.marshalNProductPriceRangeV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductPriceRangeV2(ctx, field.Selections, res)
  102921. }
  102922. func (ec *executionContext) fieldContext_Product_priceRangeV2(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  102923. fc = &graphql.FieldContext{
  102924. Object: "Product",
  102925. Field: field,
  102926. IsMethod: false,
  102927. IsResolver: false,
  102928. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  102929. switch field.Name {
  102930. case "maxVariantPrice":
  102931. return ec.fieldContext_ProductPriceRangeV2_maxVariantPrice(ctx, field)
  102932. case "minVariantPrice":
  102933. return ec.fieldContext_ProductPriceRangeV2_minVariantPrice(ctx, field)
  102934. }
  102935. return nil, fmt.Errorf("no field named %q was found under type ProductPriceRangeV2", field.Name)
  102936. },
  102937. }
  102938. return fc, nil
  102939. }
  102940. func (ec *executionContext) _Product_privateMetafield(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  102941. fc, err := ec.fieldContext_Product_privateMetafield(ctx, field)
  102942. if err != nil {
  102943. return graphql.Null
  102944. }
  102945. ctx = graphql.WithFieldContext(ctx, fc)
  102946. defer func() {
  102947. if r := recover(); r != nil {
  102948. ec.Error(ctx, ec.Recover(ctx, r))
  102949. ret = graphql.Null
  102950. }
  102951. }()
  102952. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  102953. ctx = rctx // use context from middleware stack in children
  102954. return obj.PrivateMetafield, nil
  102955. })
  102956. if err != nil {
  102957. ec.Error(ctx, err)
  102958. return graphql.Null
  102959. }
  102960. if resTmp == nil {
  102961. return graphql.Null
  102962. }
  102963. res := resTmp.(*PrivateMetafield)
  102964. fc.Result = res
  102965. return ec.marshalOPrivateMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafield(ctx, field.Selections, res)
  102966. }
  102967. func (ec *executionContext) fieldContext_Product_privateMetafield(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  102968. fc = &graphql.FieldContext{
  102969. Object: "Product",
  102970. Field: field,
  102971. IsMethod: false,
  102972. IsResolver: false,
  102973. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  102974. switch field.Name {
  102975. case "createdAt":
  102976. return ec.fieldContext_PrivateMetafield_createdAt(ctx, field)
  102977. case "id":
  102978. return ec.fieldContext_PrivateMetafield_id(ctx, field)
  102979. case "key":
  102980. return ec.fieldContext_PrivateMetafield_key(ctx, field)
  102981. case "namespace":
  102982. return ec.fieldContext_PrivateMetafield_namespace(ctx, field)
  102983. case "updatedAt":
  102984. return ec.fieldContext_PrivateMetafield_updatedAt(ctx, field)
  102985. case "value":
  102986. return ec.fieldContext_PrivateMetafield_value(ctx, field)
  102987. case "valueType":
  102988. return ec.fieldContext_PrivateMetafield_valueType(ctx, field)
  102989. }
  102990. return nil, fmt.Errorf("no field named %q was found under type PrivateMetafield", field.Name)
  102991. },
  102992. }
  102993. defer func() {
  102994. if r := recover(); r != nil {
  102995. err = ec.Recover(ctx, r)
  102996. ec.Error(ctx, err)
  102997. }
  102998. }()
  102999. ctx = graphql.WithFieldContext(ctx, fc)
  103000. if fc.Args, err = ec.field_Product_privateMetafield_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  103001. ec.Error(ctx, err)
  103002. return
  103003. }
  103004. return fc, nil
  103005. }
  103006. func (ec *executionContext) _Product_privateMetafields(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  103007. fc, err := ec.fieldContext_Product_privateMetafields(ctx, field)
  103008. if err != nil {
  103009. return graphql.Null
  103010. }
  103011. ctx = graphql.WithFieldContext(ctx, fc)
  103012. defer func() {
  103013. if r := recover(); r != nil {
  103014. ec.Error(ctx, ec.Recover(ctx, r))
  103015. ret = graphql.Null
  103016. }
  103017. }()
  103018. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  103019. ctx = rctx // use context from middleware stack in children
  103020. return obj.PrivateMetafields, nil
  103021. })
  103022. if err != nil {
  103023. ec.Error(ctx, err)
  103024. return graphql.Null
  103025. }
  103026. if resTmp == nil {
  103027. if !graphql.HasFieldError(ctx, fc) {
  103028. ec.Errorf(ctx, "must not be null")
  103029. }
  103030. return graphql.Null
  103031. }
  103032. res := resTmp.(*PrivateMetafieldConnection)
  103033. fc.Result = res
  103034. return ec.marshalNPrivateMetafieldConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafieldConnection(ctx, field.Selections, res)
  103035. }
  103036. func (ec *executionContext) fieldContext_Product_privateMetafields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  103037. fc = &graphql.FieldContext{
  103038. Object: "Product",
  103039. Field: field,
  103040. IsMethod: false,
  103041. IsResolver: false,
  103042. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  103043. switch field.Name {
  103044. case "edges":
  103045. return ec.fieldContext_PrivateMetafieldConnection_edges(ctx, field)
  103046. case "nodes":
  103047. return ec.fieldContext_PrivateMetafieldConnection_nodes(ctx, field)
  103048. case "pageInfo":
  103049. return ec.fieldContext_PrivateMetafieldConnection_pageInfo(ctx, field)
  103050. }
  103051. return nil, fmt.Errorf("no field named %q was found under type PrivateMetafieldConnection", field.Name)
  103052. },
  103053. }
  103054. defer func() {
  103055. if r := recover(); r != nil {
  103056. err = ec.Recover(ctx, r)
  103057. ec.Error(ctx, err)
  103058. }
  103059. }()
  103060. ctx = graphql.WithFieldContext(ctx, fc)
  103061. if fc.Args, err = ec.field_Product_privateMetafields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  103062. ec.Error(ctx, err)
  103063. return
  103064. }
  103065. return fc, nil
  103066. }
  103067. func (ec *executionContext) _Product_productCategory(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  103068. fc, err := ec.fieldContext_Product_productCategory(ctx, field)
  103069. if err != nil {
  103070. return graphql.Null
  103071. }
  103072. ctx = graphql.WithFieldContext(ctx, fc)
  103073. defer func() {
  103074. if r := recover(); r != nil {
  103075. ec.Error(ctx, ec.Recover(ctx, r))
  103076. ret = graphql.Null
  103077. }
  103078. }()
  103079. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  103080. ctx = rctx // use context from middleware stack in children
  103081. return obj.ProductCategory, nil
  103082. })
  103083. if err != nil {
  103084. ec.Error(ctx, err)
  103085. return graphql.Null
  103086. }
  103087. if resTmp == nil {
  103088. return graphql.Null
  103089. }
  103090. res := resTmp.(*ProductCategory)
  103091. fc.Result = res
  103092. return ec.marshalOProductCategory2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductCategory(ctx, field.Selections, res)
  103093. }
  103094. func (ec *executionContext) fieldContext_Product_productCategory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  103095. fc = &graphql.FieldContext{
  103096. Object: "Product",
  103097. Field: field,
  103098. IsMethod: false,
  103099. IsResolver: false,
  103100. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  103101. switch field.Name {
  103102. case "productTaxonomyNode":
  103103. return ec.fieldContext_ProductCategory_productTaxonomyNode(ctx, field)
  103104. }
  103105. return nil, fmt.Errorf("no field named %q was found under type ProductCategory", field.Name)
  103106. },
  103107. }
  103108. return fc, nil
  103109. }
  103110. func (ec *executionContext) _Product_productType(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  103111. fc, err := ec.fieldContext_Product_productType(ctx, field)
  103112. if err != nil {
  103113. return graphql.Null
  103114. }
  103115. ctx = graphql.WithFieldContext(ctx, fc)
  103116. defer func() {
  103117. if r := recover(); r != nil {
  103118. ec.Error(ctx, ec.Recover(ctx, r))
  103119. ret = graphql.Null
  103120. }
  103121. }()
  103122. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  103123. ctx = rctx // use context from middleware stack in children
  103124. return obj.ProductType, nil
  103125. })
  103126. if err != nil {
  103127. ec.Error(ctx, err)
  103128. return graphql.Null
  103129. }
  103130. if resTmp == nil {
  103131. if !graphql.HasFieldError(ctx, fc) {
  103132. ec.Errorf(ctx, "must not be null")
  103133. }
  103134. return graphql.Null
  103135. }
  103136. res := resTmp.(string)
  103137. fc.Result = res
  103138. return ec.marshalNString2string(ctx, field.Selections, res)
  103139. }
  103140. func (ec *executionContext) fieldContext_Product_productType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  103141. fc = &graphql.FieldContext{
  103142. Object: "Product",
  103143. Field: field,
  103144. IsMethod: false,
  103145. IsResolver: false,
  103146. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  103147. return nil, errors.New("field of type String does not have child fields")
  103148. },
  103149. }
  103150. return fc, nil
  103151. }
  103152. func (ec *executionContext) _Product_publicationCount(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  103153. fc, err := ec.fieldContext_Product_publicationCount(ctx, field)
  103154. if err != nil {
  103155. return graphql.Null
  103156. }
  103157. ctx = graphql.WithFieldContext(ctx, fc)
  103158. defer func() {
  103159. if r := recover(); r != nil {
  103160. ec.Error(ctx, ec.Recover(ctx, r))
  103161. ret = graphql.Null
  103162. }
  103163. }()
  103164. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  103165. ctx = rctx // use context from middleware stack in children
  103166. return obj.PublicationCount, nil
  103167. })
  103168. if err != nil {
  103169. ec.Error(ctx, err)
  103170. return graphql.Null
  103171. }
  103172. if resTmp == nil {
  103173. if !graphql.HasFieldError(ctx, fc) {
  103174. ec.Errorf(ctx, "must not be null")
  103175. }
  103176. return graphql.Null
  103177. }
  103178. res := resTmp.(int)
  103179. fc.Result = res
  103180. return ec.marshalNInt2int(ctx, field.Selections, res)
  103181. }
  103182. func (ec *executionContext) fieldContext_Product_publicationCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  103183. fc = &graphql.FieldContext{
  103184. Object: "Product",
  103185. Field: field,
  103186. IsMethod: false,
  103187. IsResolver: false,
  103188. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  103189. return nil, errors.New("field of type Int does not have child fields")
  103190. },
  103191. }
  103192. defer func() {
  103193. if r := recover(); r != nil {
  103194. err = ec.Recover(ctx, r)
  103195. ec.Error(ctx, err)
  103196. }
  103197. }()
  103198. ctx = graphql.WithFieldContext(ctx, fc)
  103199. if fc.Args, err = ec.field_Product_publicationCount_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  103200. ec.Error(ctx, err)
  103201. return
  103202. }
  103203. return fc, nil
  103204. }
  103205. func (ec *executionContext) _Product_publishedAt(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  103206. fc, err := ec.fieldContext_Product_publishedAt(ctx, field)
  103207. if err != nil {
  103208. return graphql.Null
  103209. }
  103210. ctx = graphql.WithFieldContext(ctx, fc)
  103211. defer func() {
  103212. if r := recover(); r != nil {
  103213. ec.Error(ctx, ec.Recover(ctx, r))
  103214. ret = graphql.Null
  103215. }
  103216. }()
  103217. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  103218. ctx = rctx // use context from middleware stack in children
  103219. return obj.PublishedAt, nil
  103220. })
  103221. if err != nil {
  103222. ec.Error(ctx, err)
  103223. return graphql.Null
  103224. }
  103225. if resTmp == nil {
  103226. return graphql.Null
  103227. }
  103228. res := resTmp.(*string)
  103229. fc.Result = res
  103230. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  103231. }
  103232. func (ec *executionContext) fieldContext_Product_publishedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  103233. fc = &graphql.FieldContext{
  103234. Object: "Product",
  103235. Field: field,
  103236. IsMethod: false,
  103237. IsResolver: false,
  103238. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  103239. return nil, errors.New("field of type DateTime does not have child fields")
  103240. },
  103241. }
  103242. return fc, nil
  103243. }
  103244. func (ec *executionContext) _Product_publishedOnCurrentPublication(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  103245. fc, err := ec.fieldContext_Product_publishedOnCurrentPublication(ctx, field)
  103246. if err != nil {
  103247. return graphql.Null
  103248. }
  103249. ctx = graphql.WithFieldContext(ctx, fc)
  103250. defer func() {
  103251. if r := recover(); r != nil {
  103252. ec.Error(ctx, ec.Recover(ctx, r))
  103253. ret = graphql.Null
  103254. }
  103255. }()
  103256. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  103257. ctx = rctx // use context from middleware stack in children
  103258. return obj.PublishedOnCurrentPublication, nil
  103259. })
  103260. if err != nil {
  103261. ec.Error(ctx, err)
  103262. return graphql.Null
  103263. }
  103264. if resTmp == nil {
  103265. if !graphql.HasFieldError(ctx, fc) {
  103266. ec.Errorf(ctx, "must not be null")
  103267. }
  103268. return graphql.Null
  103269. }
  103270. res := resTmp.(bool)
  103271. fc.Result = res
  103272. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  103273. }
  103274. func (ec *executionContext) fieldContext_Product_publishedOnCurrentPublication(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  103275. fc = &graphql.FieldContext{
  103276. Object: "Product",
  103277. Field: field,
  103278. IsMethod: false,
  103279. IsResolver: false,
  103280. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  103281. return nil, errors.New("field of type Boolean does not have child fields")
  103282. },
  103283. }
  103284. return fc, nil
  103285. }
  103286. func (ec *executionContext) _Product_publishedOnPublication(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  103287. fc, err := ec.fieldContext_Product_publishedOnPublication(ctx, field)
  103288. if err != nil {
  103289. return graphql.Null
  103290. }
  103291. ctx = graphql.WithFieldContext(ctx, fc)
  103292. defer func() {
  103293. if r := recover(); r != nil {
  103294. ec.Error(ctx, ec.Recover(ctx, r))
  103295. ret = graphql.Null
  103296. }
  103297. }()
  103298. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  103299. ctx = rctx // use context from middleware stack in children
  103300. return obj.PublishedOnPublication, nil
  103301. })
  103302. if err != nil {
  103303. ec.Error(ctx, err)
  103304. return graphql.Null
  103305. }
  103306. if resTmp == nil {
  103307. if !graphql.HasFieldError(ctx, fc) {
  103308. ec.Errorf(ctx, "must not be null")
  103309. }
  103310. return graphql.Null
  103311. }
  103312. res := resTmp.(bool)
  103313. fc.Result = res
  103314. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  103315. }
  103316. func (ec *executionContext) fieldContext_Product_publishedOnPublication(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  103317. fc = &graphql.FieldContext{
  103318. Object: "Product",
  103319. Field: field,
  103320. IsMethod: false,
  103321. IsResolver: false,
  103322. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  103323. return nil, errors.New("field of type Boolean does not have child fields")
  103324. },
  103325. }
  103326. defer func() {
  103327. if r := recover(); r != nil {
  103328. err = ec.Recover(ctx, r)
  103329. ec.Error(ctx, err)
  103330. }
  103331. }()
  103332. ctx = graphql.WithFieldContext(ctx, fc)
  103333. if fc.Args, err = ec.field_Product_publishedOnPublication_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  103334. ec.Error(ctx, err)
  103335. return
  103336. }
  103337. return fc, nil
  103338. }
  103339. func (ec *executionContext) _Product_requiresSellingPlan(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  103340. fc, err := ec.fieldContext_Product_requiresSellingPlan(ctx, field)
  103341. if err != nil {
  103342. return graphql.Null
  103343. }
  103344. ctx = graphql.WithFieldContext(ctx, fc)
  103345. defer func() {
  103346. if r := recover(); r != nil {
  103347. ec.Error(ctx, ec.Recover(ctx, r))
  103348. ret = graphql.Null
  103349. }
  103350. }()
  103351. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  103352. ctx = rctx // use context from middleware stack in children
  103353. return obj.RequiresSellingPlan, nil
  103354. })
  103355. if err != nil {
  103356. ec.Error(ctx, err)
  103357. return graphql.Null
  103358. }
  103359. if resTmp == nil {
  103360. if !graphql.HasFieldError(ctx, fc) {
  103361. ec.Errorf(ctx, "must not be null")
  103362. }
  103363. return graphql.Null
  103364. }
  103365. res := resTmp.(bool)
  103366. fc.Result = res
  103367. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  103368. }
  103369. func (ec *executionContext) fieldContext_Product_requiresSellingPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  103370. fc = &graphql.FieldContext{
  103371. Object: "Product",
  103372. Field: field,
  103373. IsMethod: false,
  103374. IsResolver: false,
  103375. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  103376. return nil, errors.New("field of type Boolean does not have child fields")
  103377. },
  103378. }
  103379. return fc, nil
  103380. }
  103381. func (ec *executionContext) _Product_resourcePublicationOnCurrentPublication(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  103382. fc, err := ec.fieldContext_Product_resourcePublicationOnCurrentPublication(ctx, field)
  103383. if err != nil {
  103384. return graphql.Null
  103385. }
  103386. ctx = graphql.WithFieldContext(ctx, fc)
  103387. defer func() {
  103388. if r := recover(); r != nil {
  103389. ec.Error(ctx, ec.Recover(ctx, r))
  103390. ret = graphql.Null
  103391. }
  103392. }()
  103393. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  103394. ctx = rctx // use context from middleware stack in children
  103395. return obj.ResourcePublicationOnCurrentPublication, nil
  103396. })
  103397. if err != nil {
  103398. ec.Error(ctx, err)
  103399. return graphql.Null
  103400. }
  103401. if resTmp == nil {
  103402. return graphql.Null
  103403. }
  103404. res := resTmp.(*ResourcePublicationV2)
  103405. fc.Result = res
  103406. return ec.marshalOResourcePublicationV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublicationV2(ctx, field.Selections, res)
  103407. }
  103408. func (ec *executionContext) fieldContext_Product_resourcePublicationOnCurrentPublication(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  103409. fc = &graphql.FieldContext{
  103410. Object: "Product",
  103411. Field: field,
  103412. IsMethod: false,
  103413. IsResolver: false,
  103414. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  103415. switch field.Name {
  103416. case "isPublished":
  103417. return ec.fieldContext_ResourcePublicationV2_isPublished(ctx, field)
  103418. case "publication":
  103419. return ec.fieldContext_ResourcePublicationV2_publication(ctx, field)
  103420. case "publishDate":
  103421. return ec.fieldContext_ResourcePublicationV2_publishDate(ctx, field)
  103422. case "publishable":
  103423. return ec.fieldContext_ResourcePublicationV2_publishable(ctx, field)
  103424. }
  103425. return nil, fmt.Errorf("no field named %q was found under type ResourcePublicationV2", field.Name)
  103426. },
  103427. }
  103428. return fc, nil
  103429. }
  103430. func (ec *executionContext) _Product_resourcePublications(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  103431. fc, err := ec.fieldContext_Product_resourcePublications(ctx, field)
  103432. if err != nil {
  103433. return graphql.Null
  103434. }
  103435. ctx = graphql.WithFieldContext(ctx, fc)
  103436. defer func() {
  103437. if r := recover(); r != nil {
  103438. ec.Error(ctx, ec.Recover(ctx, r))
  103439. ret = graphql.Null
  103440. }
  103441. }()
  103442. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  103443. ctx = rctx // use context from middleware stack in children
  103444. return obj.ResourcePublications, nil
  103445. })
  103446. if err != nil {
  103447. ec.Error(ctx, err)
  103448. return graphql.Null
  103449. }
  103450. if resTmp == nil {
  103451. if !graphql.HasFieldError(ctx, fc) {
  103452. ec.Errorf(ctx, "must not be null")
  103453. }
  103454. return graphql.Null
  103455. }
  103456. res := resTmp.(*ResourcePublicationConnection)
  103457. fc.Result = res
  103458. return ec.marshalNResourcePublicationConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublicationConnection(ctx, field.Selections, res)
  103459. }
  103460. func (ec *executionContext) fieldContext_Product_resourcePublications(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  103461. fc = &graphql.FieldContext{
  103462. Object: "Product",
  103463. Field: field,
  103464. IsMethod: false,
  103465. IsResolver: false,
  103466. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  103467. switch field.Name {
  103468. case "edges":
  103469. return ec.fieldContext_ResourcePublicationConnection_edges(ctx, field)
  103470. case "nodes":
  103471. return ec.fieldContext_ResourcePublicationConnection_nodes(ctx, field)
  103472. case "pageInfo":
  103473. return ec.fieldContext_ResourcePublicationConnection_pageInfo(ctx, field)
  103474. }
  103475. return nil, fmt.Errorf("no field named %q was found under type ResourcePublicationConnection", field.Name)
  103476. },
  103477. }
  103478. defer func() {
  103479. if r := recover(); r != nil {
  103480. err = ec.Recover(ctx, r)
  103481. ec.Error(ctx, err)
  103482. }
  103483. }()
  103484. ctx = graphql.WithFieldContext(ctx, fc)
  103485. if fc.Args, err = ec.field_Product_resourcePublications_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  103486. ec.Error(ctx, err)
  103487. return
  103488. }
  103489. return fc, nil
  103490. }
  103491. func (ec *executionContext) _Product_resourcePublicationsV2(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  103492. fc, err := ec.fieldContext_Product_resourcePublicationsV2(ctx, field)
  103493. if err != nil {
  103494. return graphql.Null
  103495. }
  103496. ctx = graphql.WithFieldContext(ctx, fc)
  103497. defer func() {
  103498. if r := recover(); r != nil {
  103499. ec.Error(ctx, ec.Recover(ctx, r))
  103500. ret = graphql.Null
  103501. }
  103502. }()
  103503. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  103504. ctx = rctx // use context from middleware stack in children
  103505. return obj.ResourcePublicationsV2, nil
  103506. })
  103507. if err != nil {
  103508. ec.Error(ctx, err)
  103509. return graphql.Null
  103510. }
  103511. if resTmp == nil {
  103512. if !graphql.HasFieldError(ctx, fc) {
  103513. ec.Errorf(ctx, "must not be null")
  103514. }
  103515. return graphql.Null
  103516. }
  103517. res := resTmp.(*ResourcePublicationV2Connection)
  103518. fc.Result = res
  103519. return ec.marshalNResourcePublicationV2Connection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublicationV2Connection(ctx, field.Selections, res)
  103520. }
  103521. func (ec *executionContext) fieldContext_Product_resourcePublicationsV2(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  103522. fc = &graphql.FieldContext{
  103523. Object: "Product",
  103524. Field: field,
  103525. IsMethod: false,
  103526. IsResolver: false,
  103527. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  103528. switch field.Name {
  103529. case "edges":
  103530. return ec.fieldContext_ResourcePublicationV2Connection_edges(ctx, field)
  103531. case "nodes":
  103532. return ec.fieldContext_ResourcePublicationV2Connection_nodes(ctx, field)
  103533. case "pageInfo":
  103534. return ec.fieldContext_ResourcePublicationV2Connection_pageInfo(ctx, field)
  103535. }
  103536. return nil, fmt.Errorf("no field named %q was found under type ResourcePublicationV2Connection", field.Name)
  103537. },
  103538. }
  103539. defer func() {
  103540. if r := recover(); r != nil {
  103541. err = ec.Recover(ctx, r)
  103542. ec.Error(ctx, err)
  103543. }
  103544. }()
  103545. ctx = graphql.WithFieldContext(ctx, fc)
  103546. if fc.Args, err = ec.field_Product_resourcePublicationsV2_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  103547. ec.Error(ctx, err)
  103548. return
  103549. }
  103550. return fc, nil
  103551. }
  103552. func (ec *executionContext) _Product_sellingPlanGroupCount(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  103553. fc, err := ec.fieldContext_Product_sellingPlanGroupCount(ctx, field)
  103554. if err != nil {
  103555. return graphql.Null
  103556. }
  103557. ctx = graphql.WithFieldContext(ctx, fc)
  103558. defer func() {
  103559. if r := recover(); r != nil {
  103560. ec.Error(ctx, ec.Recover(ctx, r))
  103561. ret = graphql.Null
  103562. }
  103563. }()
  103564. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  103565. ctx = rctx // use context from middleware stack in children
  103566. return obj.SellingPlanGroupCount, nil
  103567. })
  103568. if err != nil {
  103569. ec.Error(ctx, err)
  103570. return graphql.Null
  103571. }
  103572. if resTmp == nil {
  103573. if !graphql.HasFieldError(ctx, fc) {
  103574. ec.Errorf(ctx, "must not be null")
  103575. }
  103576. return graphql.Null
  103577. }
  103578. res := resTmp.(int)
  103579. fc.Result = res
  103580. return ec.marshalNInt2int(ctx, field.Selections, res)
  103581. }
  103582. func (ec *executionContext) fieldContext_Product_sellingPlanGroupCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  103583. fc = &graphql.FieldContext{
  103584. Object: "Product",
  103585. Field: field,
  103586. IsMethod: false,
  103587. IsResolver: false,
  103588. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  103589. return nil, errors.New("field of type Int does not have child fields")
  103590. },
  103591. }
  103592. return fc, nil
  103593. }
  103594. func (ec *executionContext) _Product_sellingPlanGroups(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  103595. fc, err := ec.fieldContext_Product_sellingPlanGroups(ctx, field)
  103596. if err != nil {
  103597. return graphql.Null
  103598. }
  103599. ctx = graphql.WithFieldContext(ctx, fc)
  103600. defer func() {
  103601. if r := recover(); r != nil {
  103602. ec.Error(ctx, ec.Recover(ctx, r))
  103603. ret = graphql.Null
  103604. }
  103605. }()
  103606. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  103607. ctx = rctx // use context from middleware stack in children
  103608. return obj.SellingPlanGroups, nil
  103609. })
  103610. if err != nil {
  103611. ec.Error(ctx, err)
  103612. return graphql.Null
  103613. }
  103614. if resTmp == nil {
  103615. if !graphql.HasFieldError(ctx, fc) {
  103616. ec.Errorf(ctx, "must not be null")
  103617. }
  103618. return graphql.Null
  103619. }
  103620. res := resTmp.(*SellingPlanGroupConnection)
  103621. fc.Result = res
  103622. return ec.marshalNSellingPlanGroupConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanGroupConnection(ctx, field.Selections, res)
  103623. }
  103624. func (ec *executionContext) fieldContext_Product_sellingPlanGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  103625. fc = &graphql.FieldContext{
  103626. Object: "Product",
  103627. Field: field,
  103628. IsMethod: false,
  103629. IsResolver: false,
  103630. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  103631. switch field.Name {
  103632. case "edges":
  103633. return ec.fieldContext_SellingPlanGroupConnection_edges(ctx, field)
  103634. case "nodes":
  103635. return ec.fieldContext_SellingPlanGroupConnection_nodes(ctx, field)
  103636. case "pageInfo":
  103637. return ec.fieldContext_SellingPlanGroupConnection_pageInfo(ctx, field)
  103638. }
  103639. return nil, fmt.Errorf("no field named %q was found under type SellingPlanGroupConnection", field.Name)
  103640. },
  103641. }
  103642. defer func() {
  103643. if r := recover(); r != nil {
  103644. err = ec.Recover(ctx, r)
  103645. ec.Error(ctx, err)
  103646. }
  103647. }()
  103648. ctx = graphql.WithFieldContext(ctx, fc)
  103649. if fc.Args, err = ec.field_Product_sellingPlanGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  103650. ec.Error(ctx, err)
  103651. return
  103652. }
  103653. return fc, nil
  103654. }
  103655. func (ec *executionContext) _Product_seo(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  103656. fc, err := ec.fieldContext_Product_seo(ctx, field)
  103657. if err != nil {
  103658. return graphql.Null
  103659. }
  103660. ctx = graphql.WithFieldContext(ctx, fc)
  103661. defer func() {
  103662. if r := recover(); r != nil {
  103663. ec.Error(ctx, ec.Recover(ctx, r))
  103664. ret = graphql.Null
  103665. }
  103666. }()
  103667. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  103668. ctx = rctx // use context from middleware stack in children
  103669. return obj.Seo, nil
  103670. })
  103671. if err != nil {
  103672. ec.Error(ctx, err)
  103673. return graphql.Null
  103674. }
  103675. if resTmp == nil {
  103676. if !graphql.HasFieldError(ctx, fc) {
  103677. ec.Errorf(ctx, "must not be null")
  103678. }
  103679. return graphql.Null
  103680. }
  103681. res := resTmp.(*Seo)
  103682. fc.Result = res
  103683. return ec.marshalNSEO2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSeo(ctx, field.Selections, res)
  103684. }
  103685. func (ec *executionContext) fieldContext_Product_seo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  103686. fc = &graphql.FieldContext{
  103687. Object: "Product",
  103688. Field: field,
  103689. IsMethod: false,
  103690. IsResolver: false,
  103691. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  103692. switch field.Name {
  103693. case "description":
  103694. return ec.fieldContext_SEO_description(ctx, field)
  103695. case "title":
  103696. return ec.fieldContext_SEO_title(ctx, field)
  103697. }
  103698. return nil, fmt.Errorf("no field named %q was found under type SEO", field.Name)
  103699. },
  103700. }
  103701. return fc, nil
  103702. }
  103703. func (ec *executionContext) _Product_status(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  103704. fc, err := ec.fieldContext_Product_status(ctx, field)
  103705. if err != nil {
  103706. return graphql.Null
  103707. }
  103708. ctx = graphql.WithFieldContext(ctx, fc)
  103709. defer func() {
  103710. if r := recover(); r != nil {
  103711. ec.Error(ctx, ec.Recover(ctx, r))
  103712. ret = graphql.Null
  103713. }
  103714. }()
  103715. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  103716. ctx = rctx // use context from middleware stack in children
  103717. return obj.Status, nil
  103718. })
  103719. if err != nil {
  103720. ec.Error(ctx, err)
  103721. return graphql.Null
  103722. }
  103723. if resTmp == nil {
  103724. if !graphql.HasFieldError(ctx, fc) {
  103725. ec.Errorf(ctx, "must not be null")
  103726. }
  103727. return graphql.Null
  103728. }
  103729. res := resTmp.(ProductStatus)
  103730. fc.Result = res
  103731. return ec.marshalNProductStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductStatus(ctx, field.Selections, res)
  103732. }
  103733. func (ec *executionContext) fieldContext_Product_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  103734. fc = &graphql.FieldContext{
  103735. Object: "Product",
  103736. Field: field,
  103737. IsMethod: false,
  103738. IsResolver: false,
  103739. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  103740. return nil, errors.New("field of type ProductStatus does not have child fields")
  103741. },
  103742. }
  103743. return fc, nil
  103744. }
  103745. func (ec *executionContext) _Product_tags(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  103746. fc, err := ec.fieldContext_Product_tags(ctx, field)
  103747. if err != nil {
  103748. return graphql.Null
  103749. }
  103750. ctx = graphql.WithFieldContext(ctx, fc)
  103751. defer func() {
  103752. if r := recover(); r != nil {
  103753. ec.Error(ctx, ec.Recover(ctx, r))
  103754. ret = graphql.Null
  103755. }
  103756. }()
  103757. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  103758. ctx = rctx // use context from middleware stack in children
  103759. return obj.Tags, nil
  103760. })
  103761. if err != nil {
  103762. ec.Error(ctx, err)
  103763. return graphql.Null
  103764. }
  103765. if resTmp == nil {
  103766. if !graphql.HasFieldError(ctx, fc) {
  103767. ec.Errorf(ctx, "must not be null")
  103768. }
  103769. return graphql.Null
  103770. }
  103771. res := resTmp.([]string)
  103772. fc.Result = res
  103773. return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
  103774. }
  103775. func (ec *executionContext) fieldContext_Product_tags(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  103776. fc = &graphql.FieldContext{
  103777. Object: "Product",
  103778. Field: field,
  103779. IsMethod: false,
  103780. IsResolver: false,
  103781. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  103782. return nil, errors.New("field of type String does not have child fields")
  103783. },
  103784. }
  103785. return fc, nil
  103786. }
  103787. func (ec *executionContext) _Product_templateSuffix(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  103788. fc, err := ec.fieldContext_Product_templateSuffix(ctx, field)
  103789. if err != nil {
  103790. return graphql.Null
  103791. }
  103792. ctx = graphql.WithFieldContext(ctx, fc)
  103793. defer func() {
  103794. if r := recover(); r != nil {
  103795. ec.Error(ctx, ec.Recover(ctx, r))
  103796. ret = graphql.Null
  103797. }
  103798. }()
  103799. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  103800. ctx = rctx // use context from middleware stack in children
  103801. return obj.TemplateSuffix, nil
  103802. })
  103803. if err != nil {
  103804. ec.Error(ctx, err)
  103805. return graphql.Null
  103806. }
  103807. if resTmp == nil {
  103808. return graphql.Null
  103809. }
  103810. res := resTmp.(*string)
  103811. fc.Result = res
  103812. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  103813. }
  103814. func (ec *executionContext) fieldContext_Product_templateSuffix(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  103815. fc = &graphql.FieldContext{
  103816. Object: "Product",
  103817. Field: field,
  103818. IsMethod: false,
  103819. IsResolver: false,
  103820. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  103821. return nil, errors.New("field of type String does not have child fields")
  103822. },
  103823. }
  103824. return fc, nil
  103825. }
  103826. func (ec *executionContext) _Product_title(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  103827. fc, err := ec.fieldContext_Product_title(ctx, field)
  103828. if err != nil {
  103829. return graphql.Null
  103830. }
  103831. ctx = graphql.WithFieldContext(ctx, fc)
  103832. defer func() {
  103833. if r := recover(); r != nil {
  103834. ec.Error(ctx, ec.Recover(ctx, r))
  103835. ret = graphql.Null
  103836. }
  103837. }()
  103838. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  103839. ctx = rctx // use context from middleware stack in children
  103840. return obj.Title, nil
  103841. })
  103842. if err != nil {
  103843. ec.Error(ctx, err)
  103844. return graphql.Null
  103845. }
  103846. if resTmp == nil {
  103847. if !graphql.HasFieldError(ctx, fc) {
  103848. ec.Errorf(ctx, "must not be null")
  103849. }
  103850. return graphql.Null
  103851. }
  103852. res := resTmp.(string)
  103853. fc.Result = res
  103854. return ec.marshalNString2string(ctx, field.Selections, res)
  103855. }
  103856. func (ec *executionContext) fieldContext_Product_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  103857. fc = &graphql.FieldContext{
  103858. Object: "Product",
  103859. Field: field,
  103860. IsMethod: false,
  103861. IsResolver: false,
  103862. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  103863. return nil, errors.New("field of type String does not have child fields")
  103864. },
  103865. }
  103866. return fc, nil
  103867. }
  103868. func (ec *executionContext) _Product_totalInventory(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  103869. fc, err := ec.fieldContext_Product_totalInventory(ctx, field)
  103870. if err != nil {
  103871. return graphql.Null
  103872. }
  103873. ctx = graphql.WithFieldContext(ctx, fc)
  103874. defer func() {
  103875. if r := recover(); r != nil {
  103876. ec.Error(ctx, ec.Recover(ctx, r))
  103877. ret = graphql.Null
  103878. }
  103879. }()
  103880. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  103881. ctx = rctx // use context from middleware stack in children
  103882. return obj.TotalInventory, nil
  103883. })
  103884. if err != nil {
  103885. ec.Error(ctx, err)
  103886. return graphql.Null
  103887. }
  103888. if resTmp == nil {
  103889. if !graphql.HasFieldError(ctx, fc) {
  103890. ec.Errorf(ctx, "must not be null")
  103891. }
  103892. return graphql.Null
  103893. }
  103894. res := resTmp.(int)
  103895. fc.Result = res
  103896. return ec.marshalNInt2int(ctx, field.Selections, res)
  103897. }
  103898. func (ec *executionContext) fieldContext_Product_totalInventory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  103899. fc = &graphql.FieldContext{
  103900. Object: "Product",
  103901. Field: field,
  103902. IsMethod: false,
  103903. IsResolver: false,
  103904. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  103905. return nil, errors.New("field of type Int does not have child fields")
  103906. },
  103907. }
  103908. return fc, nil
  103909. }
  103910. func (ec *executionContext) _Product_totalVariants(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  103911. fc, err := ec.fieldContext_Product_totalVariants(ctx, field)
  103912. if err != nil {
  103913. return graphql.Null
  103914. }
  103915. ctx = graphql.WithFieldContext(ctx, fc)
  103916. defer func() {
  103917. if r := recover(); r != nil {
  103918. ec.Error(ctx, ec.Recover(ctx, r))
  103919. ret = graphql.Null
  103920. }
  103921. }()
  103922. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  103923. ctx = rctx // use context from middleware stack in children
  103924. return obj.TotalVariants, nil
  103925. })
  103926. if err != nil {
  103927. ec.Error(ctx, err)
  103928. return graphql.Null
  103929. }
  103930. if resTmp == nil {
  103931. if !graphql.HasFieldError(ctx, fc) {
  103932. ec.Errorf(ctx, "must not be null")
  103933. }
  103934. return graphql.Null
  103935. }
  103936. res := resTmp.(int)
  103937. fc.Result = res
  103938. return ec.marshalNInt2int(ctx, field.Selections, res)
  103939. }
  103940. func (ec *executionContext) fieldContext_Product_totalVariants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  103941. fc = &graphql.FieldContext{
  103942. Object: "Product",
  103943. Field: field,
  103944. IsMethod: false,
  103945. IsResolver: false,
  103946. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  103947. return nil, errors.New("field of type Int does not have child fields")
  103948. },
  103949. }
  103950. return fc, nil
  103951. }
  103952. func (ec *executionContext) _Product_tracksInventory(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  103953. fc, err := ec.fieldContext_Product_tracksInventory(ctx, field)
  103954. if err != nil {
  103955. return graphql.Null
  103956. }
  103957. ctx = graphql.WithFieldContext(ctx, fc)
  103958. defer func() {
  103959. if r := recover(); r != nil {
  103960. ec.Error(ctx, ec.Recover(ctx, r))
  103961. ret = graphql.Null
  103962. }
  103963. }()
  103964. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  103965. ctx = rctx // use context from middleware stack in children
  103966. return obj.TracksInventory, nil
  103967. })
  103968. if err != nil {
  103969. ec.Error(ctx, err)
  103970. return graphql.Null
  103971. }
  103972. if resTmp == nil {
  103973. if !graphql.HasFieldError(ctx, fc) {
  103974. ec.Errorf(ctx, "must not be null")
  103975. }
  103976. return graphql.Null
  103977. }
  103978. res := resTmp.(bool)
  103979. fc.Result = res
  103980. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  103981. }
  103982. func (ec *executionContext) fieldContext_Product_tracksInventory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  103983. fc = &graphql.FieldContext{
  103984. Object: "Product",
  103985. Field: field,
  103986. IsMethod: false,
  103987. IsResolver: false,
  103988. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  103989. return nil, errors.New("field of type Boolean does not have child fields")
  103990. },
  103991. }
  103992. return fc, nil
  103993. }
  103994. func (ec *executionContext) _Product_translations(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  103995. fc, err := ec.fieldContext_Product_translations(ctx, field)
  103996. if err != nil {
  103997. return graphql.Null
  103998. }
  103999. ctx = graphql.WithFieldContext(ctx, fc)
  104000. defer func() {
  104001. if r := recover(); r != nil {
  104002. ec.Error(ctx, ec.Recover(ctx, r))
  104003. ret = graphql.Null
  104004. }
  104005. }()
  104006. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  104007. ctx = rctx // use context from middleware stack in children
  104008. return obj.Translations, nil
  104009. })
  104010. if err != nil {
  104011. ec.Error(ctx, err)
  104012. return graphql.Null
  104013. }
  104014. if resTmp == nil {
  104015. if !graphql.HasFieldError(ctx, fc) {
  104016. ec.Errorf(ctx, "must not be null")
  104017. }
  104018. return graphql.Null
  104019. }
  104020. res := resTmp.([]*PublishedTranslation)
  104021. fc.Result = res
  104022. return ec.marshalNPublishedTranslation2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublishedTranslationᚄ(ctx, field.Selections, res)
  104023. }
  104024. func (ec *executionContext) fieldContext_Product_translations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  104025. fc = &graphql.FieldContext{
  104026. Object: "Product",
  104027. Field: field,
  104028. IsMethod: false,
  104029. IsResolver: false,
  104030. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  104031. switch field.Name {
  104032. case "key":
  104033. return ec.fieldContext_PublishedTranslation_key(ctx, field)
  104034. case "locale":
  104035. return ec.fieldContext_PublishedTranslation_locale(ctx, field)
  104036. case "marketId":
  104037. return ec.fieldContext_PublishedTranslation_marketId(ctx, field)
  104038. case "value":
  104039. return ec.fieldContext_PublishedTranslation_value(ctx, field)
  104040. }
  104041. return nil, fmt.Errorf("no field named %q was found under type PublishedTranslation", field.Name)
  104042. },
  104043. }
  104044. defer func() {
  104045. if r := recover(); r != nil {
  104046. err = ec.Recover(ctx, r)
  104047. ec.Error(ctx, err)
  104048. }
  104049. }()
  104050. ctx = graphql.WithFieldContext(ctx, fc)
  104051. if fc.Args, err = ec.field_Product_translations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  104052. ec.Error(ctx, err)
  104053. return
  104054. }
  104055. return fc, nil
  104056. }
  104057. func (ec *executionContext) _Product_unpublishedPublications(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  104058. fc, err := ec.fieldContext_Product_unpublishedPublications(ctx, field)
  104059. if err != nil {
  104060. return graphql.Null
  104061. }
  104062. ctx = graphql.WithFieldContext(ctx, fc)
  104063. defer func() {
  104064. if r := recover(); r != nil {
  104065. ec.Error(ctx, ec.Recover(ctx, r))
  104066. ret = graphql.Null
  104067. }
  104068. }()
  104069. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  104070. ctx = rctx // use context from middleware stack in children
  104071. return obj.UnpublishedPublications, nil
  104072. })
  104073. if err != nil {
  104074. ec.Error(ctx, err)
  104075. return graphql.Null
  104076. }
  104077. if resTmp == nil {
  104078. if !graphql.HasFieldError(ctx, fc) {
  104079. ec.Errorf(ctx, "must not be null")
  104080. }
  104081. return graphql.Null
  104082. }
  104083. res := resTmp.(*PublicationConnection)
  104084. fc.Result = res
  104085. return ec.marshalNPublicationConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublicationConnection(ctx, field.Selections, res)
  104086. }
  104087. func (ec *executionContext) fieldContext_Product_unpublishedPublications(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  104088. fc = &graphql.FieldContext{
  104089. Object: "Product",
  104090. Field: field,
  104091. IsMethod: false,
  104092. IsResolver: false,
  104093. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  104094. switch field.Name {
  104095. case "edges":
  104096. return ec.fieldContext_PublicationConnection_edges(ctx, field)
  104097. case "nodes":
  104098. return ec.fieldContext_PublicationConnection_nodes(ctx, field)
  104099. case "pageInfo":
  104100. return ec.fieldContext_PublicationConnection_pageInfo(ctx, field)
  104101. }
  104102. return nil, fmt.Errorf("no field named %q was found under type PublicationConnection", field.Name)
  104103. },
  104104. }
  104105. defer func() {
  104106. if r := recover(); r != nil {
  104107. err = ec.Recover(ctx, r)
  104108. ec.Error(ctx, err)
  104109. }
  104110. }()
  104111. ctx = graphql.WithFieldContext(ctx, fc)
  104112. if fc.Args, err = ec.field_Product_unpublishedPublications_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  104113. ec.Error(ctx, err)
  104114. return
  104115. }
  104116. return fc, nil
  104117. }
  104118. func (ec *executionContext) _Product_updatedAt(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  104119. fc, err := ec.fieldContext_Product_updatedAt(ctx, field)
  104120. if err != nil {
  104121. return graphql.Null
  104122. }
  104123. ctx = graphql.WithFieldContext(ctx, fc)
  104124. defer func() {
  104125. if r := recover(); r != nil {
  104126. ec.Error(ctx, ec.Recover(ctx, r))
  104127. ret = graphql.Null
  104128. }
  104129. }()
  104130. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  104131. ctx = rctx // use context from middleware stack in children
  104132. return obj.UpdatedAt, nil
  104133. })
  104134. if err != nil {
  104135. ec.Error(ctx, err)
  104136. return graphql.Null
  104137. }
  104138. if resTmp == nil {
  104139. if !graphql.HasFieldError(ctx, fc) {
  104140. ec.Errorf(ctx, "must not be null")
  104141. }
  104142. return graphql.Null
  104143. }
  104144. res := resTmp.(string)
  104145. fc.Result = res
  104146. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  104147. }
  104148. func (ec *executionContext) fieldContext_Product_updatedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  104149. fc = &graphql.FieldContext{
  104150. Object: "Product",
  104151. Field: field,
  104152. IsMethod: false,
  104153. IsResolver: false,
  104154. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  104155. return nil, errors.New("field of type DateTime does not have child fields")
  104156. },
  104157. }
  104158. return fc, nil
  104159. }
  104160. func (ec *executionContext) _Product_variants(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  104161. fc, err := ec.fieldContext_Product_variants(ctx, field)
  104162. if err != nil {
  104163. return graphql.Null
  104164. }
  104165. ctx = graphql.WithFieldContext(ctx, fc)
  104166. defer func() {
  104167. if r := recover(); r != nil {
  104168. ec.Error(ctx, ec.Recover(ctx, r))
  104169. ret = graphql.Null
  104170. }
  104171. }()
  104172. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  104173. ctx = rctx // use context from middleware stack in children
  104174. return obj.Variants, nil
  104175. })
  104176. if err != nil {
  104177. ec.Error(ctx, err)
  104178. return graphql.Null
  104179. }
  104180. if resTmp == nil {
  104181. if !graphql.HasFieldError(ctx, fc) {
  104182. ec.Errorf(ctx, "must not be null")
  104183. }
  104184. return graphql.Null
  104185. }
  104186. res := resTmp.(*ProductVariantConnection)
  104187. fc.Result = res
  104188. return ec.marshalNProductVariantConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantConnection(ctx, field.Selections, res)
  104189. }
  104190. func (ec *executionContext) fieldContext_Product_variants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  104191. fc = &graphql.FieldContext{
  104192. Object: "Product",
  104193. Field: field,
  104194. IsMethod: false,
  104195. IsResolver: false,
  104196. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  104197. switch field.Name {
  104198. case "edges":
  104199. return ec.fieldContext_ProductVariantConnection_edges(ctx, field)
  104200. case "nodes":
  104201. return ec.fieldContext_ProductVariantConnection_nodes(ctx, field)
  104202. case "pageInfo":
  104203. return ec.fieldContext_ProductVariantConnection_pageInfo(ctx, field)
  104204. }
  104205. return nil, fmt.Errorf("no field named %q was found under type ProductVariantConnection", field.Name)
  104206. },
  104207. }
  104208. defer func() {
  104209. if r := recover(); r != nil {
  104210. err = ec.Recover(ctx, r)
  104211. ec.Error(ctx, err)
  104212. }
  104213. }()
  104214. ctx = graphql.WithFieldContext(ctx, fc)
  104215. if fc.Args, err = ec.field_Product_variants_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  104216. ec.Error(ctx, err)
  104217. return
  104218. }
  104219. return fc, nil
  104220. }
  104221. func (ec *executionContext) _Product_vendor(ctx context.Context, field graphql.CollectedField, obj *Product) (ret graphql.Marshaler) {
  104222. fc, err := ec.fieldContext_Product_vendor(ctx, field)
  104223. if err != nil {
  104224. return graphql.Null
  104225. }
  104226. ctx = graphql.WithFieldContext(ctx, fc)
  104227. defer func() {
  104228. if r := recover(); r != nil {
  104229. ec.Error(ctx, ec.Recover(ctx, r))
  104230. ret = graphql.Null
  104231. }
  104232. }()
  104233. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  104234. ctx = rctx // use context from middleware stack in children
  104235. return obj.Vendor, nil
  104236. })
  104237. if err != nil {
  104238. ec.Error(ctx, err)
  104239. return graphql.Null
  104240. }
  104241. if resTmp == nil {
  104242. if !graphql.HasFieldError(ctx, fc) {
  104243. ec.Errorf(ctx, "must not be null")
  104244. }
  104245. return graphql.Null
  104246. }
  104247. res := resTmp.(string)
  104248. fc.Result = res
  104249. return ec.marshalNString2string(ctx, field.Selections, res)
  104250. }
  104251. func (ec *executionContext) fieldContext_Product_vendor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  104252. fc = &graphql.FieldContext{
  104253. Object: "Product",
  104254. Field: field,
  104255. IsMethod: false,
  104256. IsResolver: false,
  104257. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  104258. return nil, errors.New("field of type String does not have child fields")
  104259. },
  104260. }
  104261. return fc, nil
  104262. }
  104263. func (ec *executionContext) _ProductCategory_productTaxonomyNode(ctx context.Context, field graphql.CollectedField, obj *ProductCategory) (ret graphql.Marshaler) {
  104264. fc, err := ec.fieldContext_ProductCategory_productTaxonomyNode(ctx, field)
  104265. if err != nil {
  104266. return graphql.Null
  104267. }
  104268. ctx = graphql.WithFieldContext(ctx, fc)
  104269. defer func() {
  104270. if r := recover(); r != nil {
  104271. ec.Error(ctx, ec.Recover(ctx, r))
  104272. ret = graphql.Null
  104273. }
  104274. }()
  104275. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  104276. ctx = rctx // use context from middleware stack in children
  104277. return obj.ProductTaxonomyNode, nil
  104278. })
  104279. if err != nil {
  104280. ec.Error(ctx, err)
  104281. return graphql.Null
  104282. }
  104283. if resTmp == nil {
  104284. return graphql.Null
  104285. }
  104286. res := resTmp.(*ProductTaxonomyNode)
  104287. fc.Result = res
  104288. return ec.marshalOProductTaxonomyNode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductTaxonomyNode(ctx, field.Selections, res)
  104289. }
  104290. func (ec *executionContext) fieldContext_ProductCategory_productTaxonomyNode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  104291. fc = &graphql.FieldContext{
  104292. Object: "ProductCategory",
  104293. Field: field,
  104294. IsMethod: false,
  104295. IsResolver: false,
  104296. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  104297. switch field.Name {
  104298. case "fullName":
  104299. return ec.fieldContext_ProductTaxonomyNode_fullName(ctx, field)
  104300. case "id":
  104301. return ec.fieldContext_ProductTaxonomyNode_id(ctx, field)
  104302. case "isLeaf":
  104303. return ec.fieldContext_ProductTaxonomyNode_isLeaf(ctx, field)
  104304. case "isRoot":
  104305. return ec.fieldContext_ProductTaxonomyNode_isRoot(ctx, field)
  104306. case "name":
  104307. return ec.fieldContext_ProductTaxonomyNode_name(ctx, field)
  104308. }
  104309. return nil, fmt.Errorf("no field named %q was found under type ProductTaxonomyNode", field.Name)
  104310. },
  104311. }
  104312. return fc, nil
  104313. }
  104314. func (ec *executionContext) _ProductChangeStatusUserError_code(ctx context.Context, field graphql.CollectedField, obj *ProductChangeStatusUserError) (ret graphql.Marshaler) {
  104315. fc, err := ec.fieldContext_ProductChangeStatusUserError_code(ctx, field)
  104316. if err != nil {
  104317. return graphql.Null
  104318. }
  104319. ctx = graphql.WithFieldContext(ctx, fc)
  104320. defer func() {
  104321. if r := recover(); r != nil {
  104322. ec.Error(ctx, ec.Recover(ctx, r))
  104323. ret = graphql.Null
  104324. }
  104325. }()
  104326. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  104327. ctx = rctx // use context from middleware stack in children
  104328. return obj.Code, nil
  104329. })
  104330. if err != nil {
  104331. ec.Error(ctx, err)
  104332. return graphql.Null
  104333. }
  104334. if resTmp == nil {
  104335. return graphql.Null
  104336. }
  104337. res := resTmp.(*ProductChangeStatusUserErrorCode)
  104338. fc.Result = res
  104339. return ec.marshalOProductChangeStatusUserErrorCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductChangeStatusUserErrorCode(ctx, field.Selections, res)
  104340. }
  104341. func (ec *executionContext) fieldContext_ProductChangeStatusUserError_code(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  104342. fc = &graphql.FieldContext{
  104343. Object: "ProductChangeStatusUserError",
  104344. Field: field,
  104345. IsMethod: false,
  104346. IsResolver: false,
  104347. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  104348. return nil, errors.New("field of type ProductChangeStatusUserErrorCode does not have child fields")
  104349. },
  104350. }
  104351. return fc, nil
  104352. }
  104353. func (ec *executionContext) _ProductChangeStatusUserError_field(ctx context.Context, field graphql.CollectedField, obj *ProductChangeStatusUserError) (ret graphql.Marshaler) {
  104354. fc, err := ec.fieldContext_ProductChangeStatusUserError_field(ctx, field)
  104355. if err != nil {
  104356. return graphql.Null
  104357. }
  104358. ctx = graphql.WithFieldContext(ctx, fc)
  104359. defer func() {
  104360. if r := recover(); r != nil {
  104361. ec.Error(ctx, ec.Recover(ctx, r))
  104362. ret = graphql.Null
  104363. }
  104364. }()
  104365. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  104366. ctx = rctx // use context from middleware stack in children
  104367. return obj.Field, nil
  104368. })
  104369. if err != nil {
  104370. ec.Error(ctx, err)
  104371. return graphql.Null
  104372. }
  104373. if resTmp == nil {
  104374. return graphql.Null
  104375. }
  104376. res := resTmp.([]string)
  104377. fc.Result = res
  104378. return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
  104379. }
  104380. func (ec *executionContext) fieldContext_ProductChangeStatusUserError_field(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  104381. fc = &graphql.FieldContext{
  104382. Object: "ProductChangeStatusUserError",
  104383. Field: field,
  104384. IsMethod: false,
  104385. IsResolver: false,
  104386. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  104387. return nil, errors.New("field of type String does not have child fields")
  104388. },
  104389. }
  104390. return fc, nil
  104391. }
  104392. func (ec *executionContext) _ProductChangeStatusUserError_message(ctx context.Context, field graphql.CollectedField, obj *ProductChangeStatusUserError) (ret graphql.Marshaler) {
  104393. fc, err := ec.fieldContext_ProductChangeStatusUserError_message(ctx, field)
  104394. if err != nil {
  104395. return graphql.Null
  104396. }
  104397. ctx = graphql.WithFieldContext(ctx, fc)
  104398. defer func() {
  104399. if r := recover(); r != nil {
  104400. ec.Error(ctx, ec.Recover(ctx, r))
  104401. ret = graphql.Null
  104402. }
  104403. }()
  104404. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  104405. ctx = rctx // use context from middleware stack in children
  104406. return obj.Message, nil
  104407. })
  104408. if err != nil {
  104409. ec.Error(ctx, err)
  104410. return graphql.Null
  104411. }
  104412. if resTmp == nil {
  104413. if !graphql.HasFieldError(ctx, fc) {
  104414. ec.Errorf(ctx, "must not be null")
  104415. }
  104416. return graphql.Null
  104417. }
  104418. res := resTmp.(string)
  104419. fc.Result = res
  104420. return ec.marshalNString2string(ctx, field.Selections, res)
  104421. }
  104422. func (ec *executionContext) fieldContext_ProductChangeStatusUserError_message(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  104423. fc = &graphql.FieldContext{
  104424. Object: "ProductChangeStatusUserError",
  104425. Field: field,
  104426. IsMethod: false,
  104427. IsResolver: false,
  104428. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  104429. return nil, errors.New("field of type String does not have child fields")
  104430. },
  104431. }
  104432. return fc, nil
  104433. }
  104434. func (ec *executionContext) _ProductConnection_edges(ctx context.Context, field graphql.CollectedField, obj *ProductConnection) (ret graphql.Marshaler) {
  104435. fc, err := ec.fieldContext_ProductConnection_edges(ctx, field)
  104436. if err != nil {
  104437. return graphql.Null
  104438. }
  104439. ctx = graphql.WithFieldContext(ctx, fc)
  104440. defer func() {
  104441. if r := recover(); r != nil {
  104442. ec.Error(ctx, ec.Recover(ctx, r))
  104443. ret = graphql.Null
  104444. }
  104445. }()
  104446. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  104447. ctx = rctx // use context from middleware stack in children
  104448. return obj.Edges, nil
  104449. })
  104450. if err != nil {
  104451. ec.Error(ctx, err)
  104452. return graphql.Null
  104453. }
  104454. if resTmp == nil {
  104455. if !graphql.HasFieldError(ctx, fc) {
  104456. ec.Errorf(ctx, "must not be null")
  104457. }
  104458. return graphql.Null
  104459. }
  104460. res := resTmp.([]*ProductEdge)
  104461. fc.Result = res
  104462. return ec.marshalNProductEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductEdgeᚄ(ctx, field.Selections, res)
  104463. }
  104464. func (ec *executionContext) fieldContext_ProductConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  104465. fc = &graphql.FieldContext{
  104466. Object: "ProductConnection",
  104467. Field: field,
  104468. IsMethod: false,
  104469. IsResolver: false,
  104470. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  104471. switch field.Name {
  104472. case "cursor":
  104473. return ec.fieldContext_ProductEdge_cursor(ctx, field)
  104474. case "node":
  104475. return ec.fieldContext_ProductEdge_node(ctx, field)
  104476. }
  104477. return nil, fmt.Errorf("no field named %q was found under type ProductEdge", field.Name)
  104478. },
  104479. }
  104480. return fc, nil
  104481. }
  104482. func (ec *executionContext) _ProductConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *ProductConnection) (ret graphql.Marshaler) {
  104483. fc, err := ec.fieldContext_ProductConnection_nodes(ctx, field)
  104484. if err != nil {
  104485. return graphql.Null
  104486. }
  104487. ctx = graphql.WithFieldContext(ctx, fc)
  104488. defer func() {
  104489. if r := recover(); r != nil {
  104490. ec.Error(ctx, ec.Recover(ctx, r))
  104491. ret = graphql.Null
  104492. }
  104493. }()
  104494. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  104495. ctx = rctx // use context from middleware stack in children
  104496. return obj.Nodes, nil
  104497. })
  104498. if err != nil {
  104499. ec.Error(ctx, err)
  104500. return graphql.Null
  104501. }
  104502. if resTmp == nil {
  104503. if !graphql.HasFieldError(ctx, fc) {
  104504. ec.Errorf(ctx, "must not be null")
  104505. }
  104506. return graphql.Null
  104507. }
  104508. res := resTmp.([]*Product)
  104509. fc.Result = res
  104510. return ec.marshalNProduct2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductᚄ(ctx, field.Selections, res)
  104511. }
  104512. func (ec *executionContext) fieldContext_ProductConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  104513. fc = &graphql.FieldContext{
  104514. Object: "ProductConnection",
  104515. Field: field,
  104516. IsMethod: false,
  104517. IsResolver: false,
  104518. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  104519. switch field.Name {
  104520. case "availablePublicationCount":
  104521. return ec.fieldContext_Product_availablePublicationCount(ctx, field)
  104522. case "collections":
  104523. return ec.fieldContext_Product_collections(ctx, field)
  104524. case "contextualPricing":
  104525. return ec.fieldContext_Product_contextualPricing(ctx, field)
  104526. case "createdAt":
  104527. return ec.fieldContext_Product_createdAt(ctx, field)
  104528. case "defaultCursor":
  104529. return ec.fieldContext_Product_defaultCursor(ctx, field)
  104530. case "description":
  104531. return ec.fieldContext_Product_description(ctx, field)
  104532. case "descriptionHtml":
  104533. return ec.fieldContext_Product_descriptionHtml(ctx, field)
  104534. case "featuredImage":
  104535. return ec.fieldContext_Product_featuredImage(ctx, field)
  104536. case "featuredMedia":
  104537. return ec.fieldContext_Product_featuredMedia(ctx, field)
  104538. case "feedback":
  104539. return ec.fieldContext_Product_feedback(ctx, field)
  104540. case "giftCardTemplateSuffix":
  104541. return ec.fieldContext_Product_giftCardTemplateSuffix(ctx, field)
  104542. case "handle":
  104543. return ec.fieldContext_Product_handle(ctx, field)
  104544. case "hasOnlyDefaultVariant":
  104545. return ec.fieldContext_Product_hasOnlyDefaultVariant(ctx, field)
  104546. case "hasOutOfStockVariants":
  104547. return ec.fieldContext_Product_hasOutOfStockVariants(ctx, field)
  104548. case "id":
  104549. return ec.fieldContext_Product_id(ctx, field)
  104550. case "images":
  104551. return ec.fieldContext_Product_images(ctx, field)
  104552. case "inCollection":
  104553. return ec.fieldContext_Product_inCollection(ctx, field)
  104554. case "isGiftCard":
  104555. return ec.fieldContext_Product_isGiftCard(ctx, field)
  104556. case "legacyResourceId":
  104557. return ec.fieldContext_Product_legacyResourceId(ctx, field)
  104558. case "media":
  104559. return ec.fieldContext_Product_media(ctx, field)
  104560. case "mediaCount":
  104561. return ec.fieldContext_Product_mediaCount(ctx, field)
  104562. case "metafield":
  104563. return ec.fieldContext_Product_metafield(ctx, field)
  104564. case "metafieldDefinitions":
  104565. return ec.fieldContext_Product_metafieldDefinitions(ctx, field)
  104566. case "metafields":
  104567. return ec.fieldContext_Product_metafields(ctx, field)
  104568. case "onlineStorePreviewUrl":
  104569. return ec.fieldContext_Product_onlineStorePreviewUrl(ctx, field)
  104570. case "onlineStoreUrl":
  104571. return ec.fieldContext_Product_onlineStoreUrl(ctx, field)
  104572. case "options":
  104573. return ec.fieldContext_Product_options(ctx, field)
  104574. case "priceRangeV2":
  104575. return ec.fieldContext_Product_priceRangeV2(ctx, field)
  104576. case "privateMetafield":
  104577. return ec.fieldContext_Product_privateMetafield(ctx, field)
  104578. case "privateMetafields":
  104579. return ec.fieldContext_Product_privateMetafields(ctx, field)
  104580. case "productCategory":
  104581. return ec.fieldContext_Product_productCategory(ctx, field)
  104582. case "productType":
  104583. return ec.fieldContext_Product_productType(ctx, field)
  104584. case "publicationCount":
  104585. return ec.fieldContext_Product_publicationCount(ctx, field)
  104586. case "publishedAt":
  104587. return ec.fieldContext_Product_publishedAt(ctx, field)
  104588. case "publishedOnCurrentPublication":
  104589. return ec.fieldContext_Product_publishedOnCurrentPublication(ctx, field)
  104590. case "publishedOnPublication":
  104591. return ec.fieldContext_Product_publishedOnPublication(ctx, field)
  104592. case "requiresSellingPlan":
  104593. return ec.fieldContext_Product_requiresSellingPlan(ctx, field)
  104594. case "resourcePublicationOnCurrentPublication":
  104595. return ec.fieldContext_Product_resourcePublicationOnCurrentPublication(ctx, field)
  104596. case "resourcePublications":
  104597. return ec.fieldContext_Product_resourcePublications(ctx, field)
  104598. case "resourcePublicationsV2":
  104599. return ec.fieldContext_Product_resourcePublicationsV2(ctx, field)
  104600. case "sellingPlanGroupCount":
  104601. return ec.fieldContext_Product_sellingPlanGroupCount(ctx, field)
  104602. case "sellingPlanGroups":
  104603. return ec.fieldContext_Product_sellingPlanGroups(ctx, field)
  104604. case "seo":
  104605. return ec.fieldContext_Product_seo(ctx, field)
  104606. case "status":
  104607. return ec.fieldContext_Product_status(ctx, field)
  104608. case "tags":
  104609. return ec.fieldContext_Product_tags(ctx, field)
  104610. case "templateSuffix":
  104611. return ec.fieldContext_Product_templateSuffix(ctx, field)
  104612. case "title":
  104613. return ec.fieldContext_Product_title(ctx, field)
  104614. case "totalInventory":
  104615. return ec.fieldContext_Product_totalInventory(ctx, field)
  104616. case "totalVariants":
  104617. return ec.fieldContext_Product_totalVariants(ctx, field)
  104618. case "tracksInventory":
  104619. return ec.fieldContext_Product_tracksInventory(ctx, field)
  104620. case "translations":
  104621. return ec.fieldContext_Product_translations(ctx, field)
  104622. case "unpublishedPublications":
  104623. return ec.fieldContext_Product_unpublishedPublications(ctx, field)
  104624. case "updatedAt":
  104625. return ec.fieldContext_Product_updatedAt(ctx, field)
  104626. case "variants":
  104627. return ec.fieldContext_Product_variants(ctx, field)
  104628. case "vendor":
  104629. return ec.fieldContext_Product_vendor(ctx, field)
  104630. }
  104631. return nil, fmt.Errorf("no field named %q was found under type Product", field.Name)
  104632. },
  104633. }
  104634. return fc, nil
  104635. }
  104636. func (ec *executionContext) _ProductConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *ProductConnection) (ret graphql.Marshaler) {
  104637. fc, err := ec.fieldContext_ProductConnection_pageInfo(ctx, field)
  104638. if err != nil {
  104639. return graphql.Null
  104640. }
  104641. ctx = graphql.WithFieldContext(ctx, fc)
  104642. defer func() {
  104643. if r := recover(); r != nil {
  104644. ec.Error(ctx, ec.Recover(ctx, r))
  104645. ret = graphql.Null
  104646. }
  104647. }()
  104648. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  104649. ctx = rctx // use context from middleware stack in children
  104650. return obj.PageInfo, nil
  104651. })
  104652. if err != nil {
  104653. ec.Error(ctx, err)
  104654. return graphql.Null
  104655. }
  104656. if resTmp == nil {
  104657. if !graphql.HasFieldError(ctx, fc) {
  104658. ec.Errorf(ctx, "must not be null")
  104659. }
  104660. return graphql.Null
  104661. }
  104662. res := resTmp.(*PageInfo)
  104663. fc.Result = res
  104664. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  104665. }
  104666. func (ec *executionContext) fieldContext_ProductConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  104667. fc = &graphql.FieldContext{
  104668. Object: "ProductConnection",
  104669. Field: field,
  104670. IsMethod: false,
  104671. IsResolver: false,
  104672. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  104673. switch field.Name {
  104674. case "endCursor":
  104675. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  104676. case "hasNextPage":
  104677. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  104678. case "hasPreviousPage":
  104679. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  104680. case "startCursor":
  104681. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  104682. }
  104683. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  104684. },
  104685. }
  104686. return fc, nil
  104687. }
  104688. func (ec *executionContext) _ProductContextualPricing_maxVariantPricing(ctx context.Context, field graphql.CollectedField, obj *ProductContextualPricing) (ret graphql.Marshaler) {
  104689. fc, err := ec.fieldContext_ProductContextualPricing_maxVariantPricing(ctx, field)
  104690. if err != nil {
  104691. return graphql.Null
  104692. }
  104693. ctx = graphql.WithFieldContext(ctx, fc)
  104694. defer func() {
  104695. if r := recover(); r != nil {
  104696. ec.Error(ctx, ec.Recover(ctx, r))
  104697. ret = graphql.Null
  104698. }
  104699. }()
  104700. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  104701. ctx = rctx // use context from middleware stack in children
  104702. return obj.MaxVariantPricing, nil
  104703. })
  104704. if err != nil {
  104705. ec.Error(ctx, err)
  104706. return graphql.Null
  104707. }
  104708. if resTmp == nil {
  104709. return graphql.Null
  104710. }
  104711. res := resTmp.(*ProductVariantContextualPricing)
  104712. fc.Result = res
  104713. return ec.marshalOProductVariantContextualPricing2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantContextualPricing(ctx, field.Selections, res)
  104714. }
  104715. func (ec *executionContext) fieldContext_ProductContextualPricing_maxVariantPricing(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  104716. fc = &graphql.FieldContext{
  104717. Object: "ProductContextualPricing",
  104718. Field: field,
  104719. IsMethod: false,
  104720. IsResolver: false,
  104721. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  104722. switch field.Name {
  104723. case "compareAtPrice":
  104724. return ec.fieldContext_ProductVariantContextualPricing_compareAtPrice(ctx, field)
  104725. case "price":
  104726. return ec.fieldContext_ProductVariantContextualPricing_price(ctx, field)
  104727. }
  104728. return nil, fmt.Errorf("no field named %q was found under type ProductVariantContextualPricing", field.Name)
  104729. },
  104730. }
  104731. return fc, nil
  104732. }
  104733. func (ec *executionContext) _ProductContextualPricing_minVariantPricing(ctx context.Context, field graphql.CollectedField, obj *ProductContextualPricing) (ret graphql.Marshaler) {
  104734. fc, err := ec.fieldContext_ProductContextualPricing_minVariantPricing(ctx, field)
  104735. if err != nil {
  104736. return graphql.Null
  104737. }
  104738. ctx = graphql.WithFieldContext(ctx, fc)
  104739. defer func() {
  104740. if r := recover(); r != nil {
  104741. ec.Error(ctx, ec.Recover(ctx, r))
  104742. ret = graphql.Null
  104743. }
  104744. }()
  104745. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  104746. ctx = rctx // use context from middleware stack in children
  104747. return obj.MinVariantPricing, nil
  104748. })
  104749. if err != nil {
  104750. ec.Error(ctx, err)
  104751. return graphql.Null
  104752. }
  104753. if resTmp == nil {
  104754. return graphql.Null
  104755. }
  104756. res := resTmp.(*ProductVariantContextualPricing)
  104757. fc.Result = res
  104758. return ec.marshalOProductVariantContextualPricing2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantContextualPricing(ctx, field.Selections, res)
  104759. }
  104760. func (ec *executionContext) fieldContext_ProductContextualPricing_minVariantPricing(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  104761. fc = &graphql.FieldContext{
  104762. Object: "ProductContextualPricing",
  104763. Field: field,
  104764. IsMethod: false,
  104765. IsResolver: false,
  104766. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  104767. switch field.Name {
  104768. case "compareAtPrice":
  104769. return ec.fieldContext_ProductVariantContextualPricing_compareAtPrice(ctx, field)
  104770. case "price":
  104771. return ec.fieldContext_ProductVariantContextualPricing_price(ctx, field)
  104772. }
  104773. return nil, fmt.Errorf("no field named %q was found under type ProductVariantContextualPricing", field.Name)
  104774. },
  104775. }
  104776. return fc, nil
  104777. }
  104778. func (ec *executionContext) _ProductContextualPricing_priceRange(ctx context.Context, field graphql.CollectedField, obj *ProductContextualPricing) (ret graphql.Marshaler) {
  104779. fc, err := ec.fieldContext_ProductContextualPricing_priceRange(ctx, field)
  104780. if err != nil {
  104781. return graphql.Null
  104782. }
  104783. ctx = graphql.WithFieldContext(ctx, fc)
  104784. defer func() {
  104785. if r := recover(); r != nil {
  104786. ec.Error(ctx, ec.Recover(ctx, r))
  104787. ret = graphql.Null
  104788. }
  104789. }()
  104790. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  104791. ctx = rctx // use context from middleware stack in children
  104792. return obj.PriceRange, nil
  104793. })
  104794. if err != nil {
  104795. ec.Error(ctx, err)
  104796. return graphql.Null
  104797. }
  104798. if resTmp == nil {
  104799. if !graphql.HasFieldError(ctx, fc) {
  104800. ec.Errorf(ctx, "must not be null")
  104801. }
  104802. return graphql.Null
  104803. }
  104804. res := resTmp.(*ProductPriceRangeV2)
  104805. fc.Result = res
  104806. return ec.marshalNProductPriceRangeV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductPriceRangeV2(ctx, field.Selections, res)
  104807. }
  104808. func (ec *executionContext) fieldContext_ProductContextualPricing_priceRange(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  104809. fc = &graphql.FieldContext{
  104810. Object: "ProductContextualPricing",
  104811. Field: field,
  104812. IsMethod: false,
  104813. IsResolver: false,
  104814. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  104815. switch field.Name {
  104816. case "maxVariantPrice":
  104817. return ec.fieldContext_ProductPriceRangeV2_maxVariantPrice(ctx, field)
  104818. case "minVariantPrice":
  104819. return ec.fieldContext_ProductPriceRangeV2_minVariantPrice(ctx, field)
  104820. }
  104821. return nil, fmt.Errorf("no field named %q was found under type ProductPriceRangeV2", field.Name)
  104822. },
  104823. }
  104824. return fc, nil
  104825. }
  104826. func (ec *executionContext) _ProductEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *ProductEdge) (ret graphql.Marshaler) {
  104827. fc, err := ec.fieldContext_ProductEdge_cursor(ctx, field)
  104828. if err != nil {
  104829. return graphql.Null
  104830. }
  104831. ctx = graphql.WithFieldContext(ctx, fc)
  104832. defer func() {
  104833. if r := recover(); r != nil {
  104834. ec.Error(ctx, ec.Recover(ctx, r))
  104835. ret = graphql.Null
  104836. }
  104837. }()
  104838. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  104839. ctx = rctx // use context from middleware stack in children
  104840. return obj.Cursor, nil
  104841. })
  104842. if err != nil {
  104843. ec.Error(ctx, err)
  104844. return graphql.Null
  104845. }
  104846. if resTmp == nil {
  104847. if !graphql.HasFieldError(ctx, fc) {
  104848. ec.Errorf(ctx, "must not be null")
  104849. }
  104850. return graphql.Null
  104851. }
  104852. res := resTmp.(string)
  104853. fc.Result = res
  104854. return ec.marshalNString2string(ctx, field.Selections, res)
  104855. }
  104856. func (ec *executionContext) fieldContext_ProductEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  104857. fc = &graphql.FieldContext{
  104858. Object: "ProductEdge",
  104859. Field: field,
  104860. IsMethod: false,
  104861. IsResolver: false,
  104862. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  104863. return nil, errors.New("field of type String does not have child fields")
  104864. },
  104865. }
  104866. return fc, nil
  104867. }
  104868. func (ec *executionContext) _ProductEdge_node(ctx context.Context, field graphql.CollectedField, obj *ProductEdge) (ret graphql.Marshaler) {
  104869. fc, err := ec.fieldContext_ProductEdge_node(ctx, field)
  104870. if err != nil {
  104871. return graphql.Null
  104872. }
  104873. ctx = graphql.WithFieldContext(ctx, fc)
  104874. defer func() {
  104875. if r := recover(); r != nil {
  104876. ec.Error(ctx, ec.Recover(ctx, r))
  104877. ret = graphql.Null
  104878. }
  104879. }()
  104880. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  104881. ctx = rctx // use context from middleware stack in children
  104882. return obj.Node, nil
  104883. })
  104884. if err != nil {
  104885. ec.Error(ctx, err)
  104886. return graphql.Null
  104887. }
  104888. if resTmp == nil {
  104889. if !graphql.HasFieldError(ctx, fc) {
  104890. ec.Errorf(ctx, "must not be null")
  104891. }
  104892. return graphql.Null
  104893. }
  104894. res := resTmp.(*Product)
  104895. fc.Result = res
  104896. return ec.marshalNProduct2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProduct(ctx, field.Selections, res)
  104897. }
  104898. func (ec *executionContext) fieldContext_ProductEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  104899. fc = &graphql.FieldContext{
  104900. Object: "ProductEdge",
  104901. Field: field,
  104902. IsMethod: false,
  104903. IsResolver: false,
  104904. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  104905. switch field.Name {
  104906. case "availablePublicationCount":
  104907. return ec.fieldContext_Product_availablePublicationCount(ctx, field)
  104908. case "collections":
  104909. return ec.fieldContext_Product_collections(ctx, field)
  104910. case "contextualPricing":
  104911. return ec.fieldContext_Product_contextualPricing(ctx, field)
  104912. case "createdAt":
  104913. return ec.fieldContext_Product_createdAt(ctx, field)
  104914. case "defaultCursor":
  104915. return ec.fieldContext_Product_defaultCursor(ctx, field)
  104916. case "description":
  104917. return ec.fieldContext_Product_description(ctx, field)
  104918. case "descriptionHtml":
  104919. return ec.fieldContext_Product_descriptionHtml(ctx, field)
  104920. case "featuredImage":
  104921. return ec.fieldContext_Product_featuredImage(ctx, field)
  104922. case "featuredMedia":
  104923. return ec.fieldContext_Product_featuredMedia(ctx, field)
  104924. case "feedback":
  104925. return ec.fieldContext_Product_feedback(ctx, field)
  104926. case "giftCardTemplateSuffix":
  104927. return ec.fieldContext_Product_giftCardTemplateSuffix(ctx, field)
  104928. case "handle":
  104929. return ec.fieldContext_Product_handle(ctx, field)
  104930. case "hasOnlyDefaultVariant":
  104931. return ec.fieldContext_Product_hasOnlyDefaultVariant(ctx, field)
  104932. case "hasOutOfStockVariants":
  104933. return ec.fieldContext_Product_hasOutOfStockVariants(ctx, field)
  104934. case "id":
  104935. return ec.fieldContext_Product_id(ctx, field)
  104936. case "images":
  104937. return ec.fieldContext_Product_images(ctx, field)
  104938. case "inCollection":
  104939. return ec.fieldContext_Product_inCollection(ctx, field)
  104940. case "isGiftCard":
  104941. return ec.fieldContext_Product_isGiftCard(ctx, field)
  104942. case "legacyResourceId":
  104943. return ec.fieldContext_Product_legacyResourceId(ctx, field)
  104944. case "media":
  104945. return ec.fieldContext_Product_media(ctx, field)
  104946. case "mediaCount":
  104947. return ec.fieldContext_Product_mediaCount(ctx, field)
  104948. case "metafield":
  104949. return ec.fieldContext_Product_metafield(ctx, field)
  104950. case "metafieldDefinitions":
  104951. return ec.fieldContext_Product_metafieldDefinitions(ctx, field)
  104952. case "metafields":
  104953. return ec.fieldContext_Product_metafields(ctx, field)
  104954. case "onlineStorePreviewUrl":
  104955. return ec.fieldContext_Product_onlineStorePreviewUrl(ctx, field)
  104956. case "onlineStoreUrl":
  104957. return ec.fieldContext_Product_onlineStoreUrl(ctx, field)
  104958. case "options":
  104959. return ec.fieldContext_Product_options(ctx, field)
  104960. case "priceRangeV2":
  104961. return ec.fieldContext_Product_priceRangeV2(ctx, field)
  104962. case "privateMetafield":
  104963. return ec.fieldContext_Product_privateMetafield(ctx, field)
  104964. case "privateMetafields":
  104965. return ec.fieldContext_Product_privateMetafields(ctx, field)
  104966. case "productCategory":
  104967. return ec.fieldContext_Product_productCategory(ctx, field)
  104968. case "productType":
  104969. return ec.fieldContext_Product_productType(ctx, field)
  104970. case "publicationCount":
  104971. return ec.fieldContext_Product_publicationCount(ctx, field)
  104972. case "publishedAt":
  104973. return ec.fieldContext_Product_publishedAt(ctx, field)
  104974. case "publishedOnCurrentPublication":
  104975. return ec.fieldContext_Product_publishedOnCurrentPublication(ctx, field)
  104976. case "publishedOnPublication":
  104977. return ec.fieldContext_Product_publishedOnPublication(ctx, field)
  104978. case "requiresSellingPlan":
  104979. return ec.fieldContext_Product_requiresSellingPlan(ctx, field)
  104980. case "resourcePublicationOnCurrentPublication":
  104981. return ec.fieldContext_Product_resourcePublicationOnCurrentPublication(ctx, field)
  104982. case "resourcePublications":
  104983. return ec.fieldContext_Product_resourcePublications(ctx, field)
  104984. case "resourcePublicationsV2":
  104985. return ec.fieldContext_Product_resourcePublicationsV2(ctx, field)
  104986. case "sellingPlanGroupCount":
  104987. return ec.fieldContext_Product_sellingPlanGroupCount(ctx, field)
  104988. case "sellingPlanGroups":
  104989. return ec.fieldContext_Product_sellingPlanGroups(ctx, field)
  104990. case "seo":
  104991. return ec.fieldContext_Product_seo(ctx, field)
  104992. case "status":
  104993. return ec.fieldContext_Product_status(ctx, field)
  104994. case "tags":
  104995. return ec.fieldContext_Product_tags(ctx, field)
  104996. case "templateSuffix":
  104997. return ec.fieldContext_Product_templateSuffix(ctx, field)
  104998. case "title":
  104999. return ec.fieldContext_Product_title(ctx, field)
  105000. case "totalInventory":
  105001. return ec.fieldContext_Product_totalInventory(ctx, field)
  105002. case "totalVariants":
  105003. return ec.fieldContext_Product_totalVariants(ctx, field)
  105004. case "tracksInventory":
  105005. return ec.fieldContext_Product_tracksInventory(ctx, field)
  105006. case "translations":
  105007. return ec.fieldContext_Product_translations(ctx, field)
  105008. case "unpublishedPublications":
  105009. return ec.fieldContext_Product_unpublishedPublications(ctx, field)
  105010. case "updatedAt":
  105011. return ec.fieldContext_Product_updatedAt(ctx, field)
  105012. case "variants":
  105013. return ec.fieldContext_Product_variants(ctx, field)
  105014. case "vendor":
  105015. return ec.fieldContext_Product_vendor(ctx, field)
  105016. }
  105017. return nil, fmt.Errorf("no field named %q was found under type Product", field.Name)
  105018. },
  105019. }
  105020. return fc, nil
  105021. }
  105022. func (ec *executionContext) _ProductOption_id(ctx context.Context, field graphql.CollectedField, obj *ProductOption) (ret graphql.Marshaler) {
  105023. fc, err := ec.fieldContext_ProductOption_id(ctx, field)
  105024. if err != nil {
  105025. return graphql.Null
  105026. }
  105027. ctx = graphql.WithFieldContext(ctx, fc)
  105028. defer func() {
  105029. if r := recover(); r != nil {
  105030. ec.Error(ctx, ec.Recover(ctx, r))
  105031. ret = graphql.Null
  105032. }
  105033. }()
  105034. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  105035. ctx = rctx // use context from middleware stack in children
  105036. return obj.ID, nil
  105037. })
  105038. if err != nil {
  105039. ec.Error(ctx, err)
  105040. return graphql.Null
  105041. }
  105042. if resTmp == nil {
  105043. if !graphql.HasFieldError(ctx, fc) {
  105044. ec.Errorf(ctx, "must not be null")
  105045. }
  105046. return graphql.Null
  105047. }
  105048. res := resTmp.(string)
  105049. fc.Result = res
  105050. return ec.marshalNID2string(ctx, field.Selections, res)
  105051. }
  105052. func (ec *executionContext) fieldContext_ProductOption_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  105053. fc = &graphql.FieldContext{
  105054. Object: "ProductOption",
  105055. Field: field,
  105056. IsMethod: false,
  105057. IsResolver: false,
  105058. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  105059. return nil, errors.New("field of type ID does not have child fields")
  105060. },
  105061. }
  105062. return fc, nil
  105063. }
  105064. func (ec *executionContext) _ProductOption_name(ctx context.Context, field graphql.CollectedField, obj *ProductOption) (ret graphql.Marshaler) {
  105065. fc, err := ec.fieldContext_ProductOption_name(ctx, field)
  105066. if err != nil {
  105067. return graphql.Null
  105068. }
  105069. ctx = graphql.WithFieldContext(ctx, fc)
  105070. defer func() {
  105071. if r := recover(); r != nil {
  105072. ec.Error(ctx, ec.Recover(ctx, r))
  105073. ret = graphql.Null
  105074. }
  105075. }()
  105076. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  105077. ctx = rctx // use context from middleware stack in children
  105078. return obj.Name, nil
  105079. })
  105080. if err != nil {
  105081. ec.Error(ctx, err)
  105082. return graphql.Null
  105083. }
  105084. if resTmp == nil {
  105085. if !graphql.HasFieldError(ctx, fc) {
  105086. ec.Errorf(ctx, "must not be null")
  105087. }
  105088. return graphql.Null
  105089. }
  105090. res := resTmp.(string)
  105091. fc.Result = res
  105092. return ec.marshalNString2string(ctx, field.Selections, res)
  105093. }
  105094. func (ec *executionContext) fieldContext_ProductOption_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  105095. fc = &graphql.FieldContext{
  105096. Object: "ProductOption",
  105097. Field: field,
  105098. IsMethod: false,
  105099. IsResolver: false,
  105100. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  105101. return nil, errors.New("field of type String does not have child fields")
  105102. },
  105103. }
  105104. return fc, nil
  105105. }
  105106. func (ec *executionContext) _ProductOption_position(ctx context.Context, field graphql.CollectedField, obj *ProductOption) (ret graphql.Marshaler) {
  105107. fc, err := ec.fieldContext_ProductOption_position(ctx, field)
  105108. if err != nil {
  105109. return graphql.Null
  105110. }
  105111. ctx = graphql.WithFieldContext(ctx, fc)
  105112. defer func() {
  105113. if r := recover(); r != nil {
  105114. ec.Error(ctx, ec.Recover(ctx, r))
  105115. ret = graphql.Null
  105116. }
  105117. }()
  105118. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  105119. ctx = rctx // use context from middleware stack in children
  105120. return obj.Position, nil
  105121. })
  105122. if err != nil {
  105123. ec.Error(ctx, err)
  105124. return graphql.Null
  105125. }
  105126. if resTmp == nil {
  105127. if !graphql.HasFieldError(ctx, fc) {
  105128. ec.Errorf(ctx, "must not be null")
  105129. }
  105130. return graphql.Null
  105131. }
  105132. res := resTmp.(int)
  105133. fc.Result = res
  105134. return ec.marshalNInt2int(ctx, field.Selections, res)
  105135. }
  105136. func (ec *executionContext) fieldContext_ProductOption_position(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  105137. fc = &graphql.FieldContext{
  105138. Object: "ProductOption",
  105139. Field: field,
  105140. IsMethod: false,
  105141. IsResolver: false,
  105142. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  105143. return nil, errors.New("field of type Int does not have child fields")
  105144. },
  105145. }
  105146. return fc, nil
  105147. }
  105148. func (ec *executionContext) _ProductOption_translations(ctx context.Context, field graphql.CollectedField, obj *ProductOption) (ret graphql.Marshaler) {
  105149. fc, err := ec.fieldContext_ProductOption_translations(ctx, field)
  105150. if err != nil {
  105151. return graphql.Null
  105152. }
  105153. ctx = graphql.WithFieldContext(ctx, fc)
  105154. defer func() {
  105155. if r := recover(); r != nil {
  105156. ec.Error(ctx, ec.Recover(ctx, r))
  105157. ret = graphql.Null
  105158. }
  105159. }()
  105160. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  105161. ctx = rctx // use context from middleware stack in children
  105162. return obj.Translations, nil
  105163. })
  105164. if err != nil {
  105165. ec.Error(ctx, err)
  105166. return graphql.Null
  105167. }
  105168. if resTmp == nil {
  105169. if !graphql.HasFieldError(ctx, fc) {
  105170. ec.Errorf(ctx, "must not be null")
  105171. }
  105172. return graphql.Null
  105173. }
  105174. res := resTmp.([]*PublishedTranslation)
  105175. fc.Result = res
  105176. return ec.marshalNPublishedTranslation2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublishedTranslationᚄ(ctx, field.Selections, res)
  105177. }
  105178. func (ec *executionContext) fieldContext_ProductOption_translations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  105179. fc = &graphql.FieldContext{
  105180. Object: "ProductOption",
  105181. Field: field,
  105182. IsMethod: false,
  105183. IsResolver: false,
  105184. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  105185. switch field.Name {
  105186. case "key":
  105187. return ec.fieldContext_PublishedTranslation_key(ctx, field)
  105188. case "locale":
  105189. return ec.fieldContext_PublishedTranslation_locale(ctx, field)
  105190. case "marketId":
  105191. return ec.fieldContext_PublishedTranslation_marketId(ctx, field)
  105192. case "value":
  105193. return ec.fieldContext_PublishedTranslation_value(ctx, field)
  105194. }
  105195. return nil, fmt.Errorf("no field named %q was found under type PublishedTranslation", field.Name)
  105196. },
  105197. }
  105198. defer func() {
  105199. if r := recover(); r != nil {
  105200. err = ec.Recover(ctx, r)
  105201. ec.Error(ctx, err)
  105202. }
  105203. }()
  105204. ctx = graphql.WithFieldContext(ctx, fc)
  105205. if fc.Args, err = ec.field_ProductOption_translations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  105206. ec.Error(ctx, err)
  105207. return
  105208. }
  105209. return fc, nil
  105210. }
  105211. func (ec *executionContext) _ProductOption_values(ctx context.Context, field graphql.CollectedField, obj *ProductOption) (ret graphql.Marshaler) {
  105212. fc, err := ec.fieldContext_ProductOption_values(ctx, field)
  105213. if err != nil {
  105214. return graphql.Null
  105215. }
  105216. ctx = graphql.WithFieldContext(ctx, fc)
  105217. defer func() {
  105218. if r := recover(); r != nil {
  105219. ec.Error(ctx, ec.Recover(ctx, r))
  105220. ret = graphql.Null
  105221. }
  105222. }()
  105223. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  105224. ctx = rctx // use context from middleware stack in children
  105225. return obj.Values, nil
  105226. })
  105227. if err != nil {
  105228. ec.Error(ctx, err)
  105229. return graphql.Null
  105230. }
  105231. if resTmp == nil {
  105232. if !graphql.HasFieldError(ctx, fc) {
  105233. ec.Errorf(ctx, "must not be null")
  105234. }
  105235. return graphql.Null
  105236. }
  105237. res := resTmp.([]string)
  105238. fc.Result = res
  105239. return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
  105240. }
  105241. func (ec *executionContext) fieldContext_ProductOption_values(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  105242. fc = &graphql.FieldContext{
  105243. Object: "ProductOption",
  105244. Field: field,
  105245. IsMethod: false,
  105246. IsResolver: false,
  105247. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  105248. return nil, errors.New("field of type String does not have child fields")
  105249. },
  105250. }
  105251. return fc, nil
  105252. }
  105253. func (ec *executionContext) _ProductPriceRangeV2_maxVariantPrice(ctx context.Context, field graphql.CollectedField, obj *ProductPriceRangeV2) (ret graphql.Marshaler) {
  105254. fc, err := ec.fieldContext_ProductPriceRangeV2_maxVariantPrice(ctx, field)
  105255. if err != nil {
  105256. return graphql.Null
  105257. }
  105258. ctx = graphql.WithFieldContext(ctx, fc)
  105259. defer func() {
  105260. if r := recover(); r != nil {
  105261. ec.Error(ctx, ec.Recover(ctx, r))
  105262. ret = graphql.Null
  105263. }
  105264. }()
  105265. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  105266. ctx = rctx // use context from middleware stack in children
  105267. return obj.MaxVariantPrice, nil
  105268. })
  105269. if err != nil {
  105270. ec.Error(ctx, err)
  105271. return graphql.Null
  105272. }
  105273. if resTmp == nil {
  105274. if !graphql.HasFieldError(ctx, fc) {
  105275. ec.Errorf(ctx, "must not be null")
  105276. }
  105277. return graphql.Null
  105278. }
  105279. res := resTmp.(*MoneyV2)
  105280. fc.Result = res
  105281. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  105282. }
  105283. func (ec *executionContext) fieldContext_ProductPriceRangeV2_maxVariantPrice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  105284. fc = &graphql.FieldContext{
  105285. Object: "ProductPriceRangeV2",
  105286. Field: field,
  105287. IsMethod: false,
  105288. IsResolver: false,
  105289. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  105290. switch field.Name {
  105291. case "amount":
  105292. return ec.fieldContext_MoneyV2_amount(ctx, field)
  105293. case "currencyCode":
  105294. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  105295. }
  105296. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  105297. },
  105298. }
  105299. return fc, nil
  105300. }
  105301. func (ec *executionContext) _ProductPriceRangeV2_minVariantPrice(ctx context.Context, field graphql.CollectedField, obj *ProductPriceRangeV2) (ret graphql.Marshaler) {
  105302. fc, err := ec.fieldContext_ProductPriceRangeV2_minVariantPrice(ctx, field)
  105303. if err != nil {
  105304. return graphql.Null
  105305. }
  105306. ctx = graphql.WithFieldContext(ctx, fc)
  105307. defer func() {
  105308. if r := recover(); r != nil {
  105309. ec.Error(ctx, ec.Recover(ctx, r))
  105310. ret = graphql.Null
  105311. }
  105312. }()
  105313. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  105314. ctx = rctx // use context from middleware stack in children
  105315. return obj.MinVariantPrice, nil
  105316. })
  105317. if err != nil {
  105318. ec.Error(ctx, err)
  105319. return graphql.Null
  105320. }
  105321. if resTmp == nil {
  105322. if !graphql.HasFieldError(ctx, fc) {
  105323. ec.Errorf(ctx, "must not be null")
  105324. }
  105325. return graphql.Null
  105326. }
  105327. res := resTmp.(*MoneyV2)
  105328. fc.Result = res
  105329. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  105330. }
  105331. func (ec *executionContext) fieldContext_ProductPriceRangeV2_minVariantPrice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  105332. fc = &graphql.FieldContext{
  105333. Object: "ProductPriceRangeV2",
  105334. Field: field,
  105335. IsMethod: false,
  105336. IsResolver: false,
  105337. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  105338. switch field.Name {
  105339. case "amount":
  105340. return ec.fieldContext_MoneyV2_amount(ctx, field)
  105341. case "currencyCode":
  105342. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  105343. }
  105344. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  105345. },
  105346. }
  105347. return fc, nil
  105348. }
  105349. func (ec *executionContext) _ProductTaxonomyNode_fullName(ctx context.Context, field graphql.CollectedField, obj *ProductTaxonomyNode) (ret graphql.Marshaler) {
  105350. fc, err := ec.fieldContext_ProductTaxonomyNode_fullName(ctx, field)
  105351. if err != nil {
  105352. return graphql.Null
  105353. }
  105354. ctx = graphql.WithFieldContext(ctx, fc)
  105355. defer func() {
  105356. if r := recover(); r != nil {
  105357. ec.Error(ctx, ec.Recover(ctx, r))
  105358. ret = graphql.Null
  105359. }
  105360. }()
  105361. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  105362. ctx = rctx // use context from middleware stack in children
  105363. return obj.FullName, nil
  105364. })
  105365. if err != nil {
  105366. ec.Error(ctx, err)
  105367. return graphql.Null
  105368. }
  105369. if resTmp == nil {
  105370. if !graphql.HasFieldError(ctx, fc) {
  105371. ec.Errorf(ctx, "must not be null")
  105372. }
  105373. return graphql.Null
  105374. }
  105375. res := resTmp.(string)
  105376. fc.Result = res
  105377. return ec.marshalNString2string(ctx, field.Selections, res)
  105378. }
  105379. func (ec *executionContext) fieldContext_ProductTaxonomyNode_fullName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  105380. fc = &graphql.FieldContext{
  105381. Object: "ProductTaxonomyNode",
  105382. Field: field,
  105383. IsMethod: false,
  105384. IsResolver: false,
  105385. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  105386. return nil, errors.New("field of type String does not have child fields")
  105387. },
  105388. }
  105389. return fc, nil
  105390. }
  105391. func (ec *executionContext) _ProductTaxonomyNode_id(ctx context.Context, field graphql.CollectedField, obj *ProductTaxonomyNode) (ret graphql.Marshaler) {
  105392. fc, err := ec.fieldContext_ProductTaxonomyNode_id(ctx, field)
  105393. if err != nil {
  105394. return graphql.Null
  105395. }
  105396. ctx = graphql.WithFieldContext(ctx, fc)
  105397. defer func() {
  105398. if r := recover(); r != nil {
  105399. ec.Error(ctx, ec.Recover(ctx, r))
  105400. ret = graphql.Null
  105401. }
  105402. }()
  105403. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  105404. ctx = rctx // use context from middleware stack in children
  105405. return obj.ID, nil
  105406. })
  105407. if err != nil {
  105408. ec.Error(ctx, err)
  105409. return graphql.Null
  105410. }
  105411. if resTmp == nil {
  105412. if !graphql.HasFieldError(ctx, fc) {
  105413. ec.Errorf(ctx, "must not be null")
  105414. }
  105415. return graphql.Null
  105416. }
  105417. res := resTmp.(string)
  105418. fc.Result = res
  105419. return ec.marshalNID2string(ctx, field.Selections, res)
  105420. }
  105421. func (ec *executionContext) fieldContext_ProductTaxonomyNode_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  105422. fc = &graphql.FieldContext{
  105423. Object: "ProductTaxonomyNode",
  105424. Field: field,
  105425. IsMethod: false,
  105426. IsResolver: false,
  105427. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  105428. return nil, errors.New("field of type ID does not have child fields")
  105429. },
  105430. }
  105431. return fc, nil
  105432. }
  105433. func (ec *executionContext) _ProductTaxonomyNode_isLeaf(ctx context.Context, field graphql.CollectedField, obj *ProductTaxonomyNode) (ret graphql.Marshaler) {
  105434. fc, err := ec.fieldContext_ProductTaxonomyNode_isLeaf(ctx, field)
  105435. if err != nil {
  105436. return graphql.Null
  105437. }
  105438. ctx = graphql.WithFieldContext(ctx, fc)
  105439. defer func() {
  105440. if r := recover(); r != nil {
  105441. ec.Error(ctx, ec.Recover(ctx, r))
  105442. ret = graphql.Null
  105443. }
  105444. }()
  105445. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  105446. ctx = rctx // use context from middleware stack in children
  105447. return obj.IsLeaf, nil
  105448. })
  105449. if err != nil {
  105450. ec.Error(ctx, err)
  105451. return graphql.Null
  105452. }
  105453. if resTmp == nil {
  105454. if !graphql.HasFieldError(ctx, fc) {
  105455. ec.Errorf(ctx, "must not be null")
  105456. }
  105457. return graphql.Null
  105458. }
  105459. res := resTmp.(bool)
  105460. fc.Result = res
  105461. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  105462. }
  105463. func (ec *executionContext) fieldContext_ProductTaxonomyNode_isLeaf(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  105464. fc = &graphql.FieldContext{
  105465. Object: "ProductTaxonomyNode",
  105466. Field: field,
  105467. IsMethod: false,
  105468. IsResolver: false,
  105469. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  105470. return nil, errors.New("field of type Boolean does not have child fields")
  105471. },
  105472. }
  105473. return fc, nil
  105474. }
  105475. func (ec *executionContext) _ProductTaxonomyNode_isRoot(ctx context.Context, field graphql.CollectedField, obj *ProductTaxonomyNode) (ret graphql.Marshaler) {
  105476. fc, err := ec.fieldContext_ProductTaxonomyNode_isRoot(ctx, field)
  105477. if err != nil {
  105478. return graphql.Null
  105479. }
  105480. ctx = graphql.WithFieldContext(ctx, fc)
  105481. defer func() {
  105482. if r := recover(); r != nil {
  105483. ec.Error(ctx, ec.Recover(ctx, r))
  105484. ret = graphql.Null
  105485. }
  105486. }()
  105487. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  105488. ctx = rctx // use context from middleware stack in children
  105489. return obj.IsRoot, nil
  105490. })
  105491. if err != nil {
  105492. ec.Error(ctx, err)
  105493. return graphql.Null
  105494. }
  105495. if resTmp == nil {
  105496. if !graphql.HasFieldError(ctx, fc) {
  105497. ec.Errorf(ctx, "must not be null")
  105498. }
  105499. return graphql.Null
  105500. }
  105501. res := resTmp.(bool)
  105502. fc.Result = res
  105503. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  105504. }
  105505. func (ec *executionContext) fieldContext_ProductTaxonomyNode_isRoot(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  105506. fc = &graphql.FieldContext{
  105507. Object: "ProductTaxonomyNode",
  105508. Field: field,
  105509. IsMethod: false,
  105510. IsResolver: false,
  105511. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  105512. return nil, errors.New("field of type Boolean does not have child fields")
  105513. },
  105514. }
  105515. return fc, nil
  105516. }
  105517. func (ec *executionContext) _ProductTaxonomyNode_name(ctx context.Context, field graphql.CollectedField, obj *ProductTaxonomyNode) (ret graphql.Marshaler) {
  105518. fc, err := ec.fieldContext_ProductTaxonomyNode_name(ctx, field)
  105519. if err != nil {
  105520. return graphql.Null
  105521. }
  105522. ctx = graphql.WithFieldContext(ctx, fc)
  105523. defer func() {
  105524. if r := recover(); r != nil {
  105525. ec.Error(ctx, ec.Recover(ctx, r))
  105526. ret = graphql.Null
  105527. }
  105528. }()
  105529. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  105530. ctx = rctx // use context from middleware stack in children
  105531. return obj.Name, nil
  105532. })
  105533. if err != nil {
  105534. ec.Error(ctx, err)
  105535. return graphql.Null
  105536. }
  105537. if resTmp == nil {
  105538. if !graphql.HasFieldError(ctx, fc) {
  105539. ec.Errorf(ctx, "must not be null")
  105540. }
  105541. return graphql.Null
  105542. }
  105543. res := resTmp.(string)
  105544. fc.Result = res
  105545. return ec.marshalNString2string(ctx, field.Selections, res)
  105546. }
  105547. func (ec *executionContext) fieldContext_ProductTaxonomyNode_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  105548. fc = &graphql.FieldContext{
  105549. Object: "ProductTaxonomyNode",
  105550. Field: field,
  105551. IsMethod: false,
  105552. IsResolver: false,
  105553. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  105554. return nil, errors.New("field of type String does not have child fields")
  105555. },
  105556. }
  105557. return fc, nil
  105558. }
  105559. func (ec *executionContext) _ProductVariant_availableForSale(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  105560. fc, err := ec.fieldContext_ProductVariant_availableForSale(ctx, field)
  105561. if err != nil {
  105562. return graphql.Null
  105563. }
  105564. ctx = graphql.WithFieldContext(ctx, fc)
  105565. defer func() {
  105566. if r := recover(); r != nil {
  105567. ec.Error(ctx, ec.Recover(ctx, r))
  105568. ret = graphql.Null
  105569. }
  105570. }()
  105571. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  105572. ctx = rctx // use context from middleware stack in children
  105573. return obj.AvailableForSale, nil
  105574. })
  105575. if err != nil {
  105576. ec.Error(ctx, err)
  105577. return graphql.Null
  105578. }
  105579. if resTmp == nil {
  105580. if !graphql.HasFieldError(ctx, fc) {
  105581. ec.Errorf(ctx, "must not be null")
  105582. }
  105583. return graphql.Null
  105584. }
  105585. res := resTmp.(bool)
  105586. fc.Result = res
  105587. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  105588. }
  105589. func (ec *executionContext) fieldContext_ProductVariant_availableForSale(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  105590. fc = &graphql.FieldContext{
  105591. Object: "ProductVariant",
  105592. Field: field,
  105593. IsMethod: false,
  105594. IsResolver: false,
  105595. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  105596. return nil, errors.New("field of type Boolean does not have child fields")
  105597. },
  105598. }
  105599. return fc, nil
  105600. }
  105601. func (ec *executionContext) _ProductVariant_barcode(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  105602. fc, err := ec.fieldContext_ProductVariant_barcode(ctx, field)
  105603. if err != nil {
  105604. return graphql.Null
  105605. }
  105606. ctx = graphql.WithFieldContext(ctx, fc)
  105607. defer func() {
  105608. if r := recover(); r != nil {
  105609. ec.Error(ctx, ec.Recover(ctx, r))
  105610. ret = graphql.Null
  105611. }
  105612. }()
  105613. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  105614. ctx = rctx // use context from middleware stack in children
  105615. return obj.Barcode, nil
  105616. })
  105617. if err != nil {
  105618. ec.Error(ctx, err)
  105619. return graphql.Null
  105620. }
  105621. if resTmp == nil {
  105622. return graphql.Null
  105623. }
  105624. res := resTmp.(*string)
  105625. fc.Result = res
  105626. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  105627. }
  105628. func (ec *executionContext) fieldContext_ProductVariant_barcode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  105629. fc = &graphql.FieldContext{
  105630. Object: "ProductVariant",
  105631. Field: field,
  105632. IsMethod: false,
  105633. IsResolver: false,
  105634. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  105635. return nil, errors.New("field of type String does not have child fields")
  105636. },
  105637. }
  105638. return fc, nil
  105639. }
  105640. func (ec *executionContext) _ProductVariant_compareAtPrice(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  105641. fc, err := ec.fieldContext_ProductVariant_compareAtPrice(ctx, field)
  105642. if err != nil {
  105643. return graphql.Null
  105644. }
  105645. ctx = graphql.WithFieldContext(ctx, fc)
  105646. defer func() {
  105647. if r := recover(); r != nil {
  105648. ec.Error(ctx, ec.Recover(ctx, r))
  105649. ret = graphql.Null
  105650. }
  105651. }()
  105652. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  105653. ctx = rctx // use context from middleware stack in children
  105654. return obj.CompareAtPrice, nil
  105655. })
  105656. if err != nil {
  105657. ec.Error(ctx, err)
  105658. return graphql.Null
  105659. }
  105660. if resTmp == nil {
  105661. return graphql.Null
  105662. }
  105663. res := resTmp.(*string)
  105664. fc.Result = res
  105665. return ec.marshalOMoney2ᚖstring(ctx, field.Selections, res)
  105666. }
  105667. func (ec *executionContext) fieldContext_ProductVariant_compareAtPrice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  105668. fc = &graphql.FieldContext{
  105669. Object: "ProductVariant",
  105670. Field: field,
  105671. IsMethod: false,
  105672. IsResolver: false,
  105673. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  105674. return nil, errors.New("field of type Money does not have child fields")
  105675. },
  105676. }
  105677. return fc, nil
  105678. }
  105679. func (ec *executionContext) _ProductVariant_contextualPricing(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  105680. fc, err := ec.fieldContext_ProductVariant_contextualPricing(ctx, field)
  105681. if err != nil {
  105682. return graphql.Null
  105683. }
  105684. ctx = graphql.WithFieldContext(ctx, fc)
  105685. defer func() {
  105686. if r := recover(); r != nil {
  105687. ec.Error(ctx, ec.Recover(ctx, r))
  105688. ret = graphql.Null
  105689. }
  105690. }()
  105691. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  105692. ctx = rctx // use context from middleware stack in children
  105693. return obj.ContextualPricing, nil
  105694. })
  105695. if err != nil {
  105696. ec.Error(ctx, err)
  105697. return graphql.Null
  105698. }
  105699. if resTmp == nil {
  105700. if !graphql.HasFieldError(ctx, fc) {
  105701. ec.Errorf(ctx, "must not be null")
  105702. }
  105703. return graphql.Null
  105704. }
  105705. res := resTmp.(*ProductVariantContextualPricing)
  105706. fc.Result = res
  105707. return ec.marshalNProductVariantContextualPricing2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantContextualPricing(ctx, field.Selections, res)
  105708. }
  105709. func (ec *executionContext) fieldContext_ProductVariant_contextualPricing(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  105710. fc = &graphql.FieldContext{
  105711. Object: "ProductVariant",
  105712. Field: field,
  105713. IsMethod: false,
  105714. IsResolver: false,
  105715. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  105716. switch field.Name {
  105717. case "compareAtPrice":
  105718. return ec.fieldContext_ProductVariantContextualPricing_compareAtPrice(ctx, field)
  105719. case "price":
  105720. return ec.fieldContext_ProductVariantContextualPricing_price(ctx, field)
  105721. }
  105722. return nil, fmt.Errorf("no field named %q was found under type ProductVariantContextualPricing", field.Name)
  105723. },
  105724. }
  105725. defer func() {
  105726. if r := recover(); r != nil {
  105727. err = ec.Recover(ctx, r)
  105728. ec.Error(ctx, err)
  105729. }
  105730. }()
  105731. ctx = graphql.WithFieldContext(ctx, fc)
  105732. if fc.Args, err = ec.field_ProductVariant_contextualPricing_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  105733. ec.Error(ctx, err)
  105734. return
  105735. }
  105736. return fc, nil
  105737. }
  105738. func (ec *executionContext) _ProductVariant_createdAt(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  105739. fc, err := ec.fieldContext_ProductVariant_createdAt(ctx, field)
  105740. if err != nil {
  105741. return graphql.Null
  105742. }
  105743. ctx = graphql.WithFieldContext(ctx, fc)
  105744. defer func() {
  105745. if r := recover(); r != nil {
  105746. ec.Error(ctx, ec.Recover(ctx, r))
  105747. ret = graphql.Null
  105748. }
  105749. }()
  105750. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  105751. ctx = rctx // use context from middleware stack in children
  105752. return obj.CreatedAt, nil
  105753. })
  105754. if err != nil {
  105755. ec.Error(ctx, err)
  105756. return graphql.Null
  105757. }
  105758. if resTmp == nil {
  105759. if !graphql.HasFieldError(ctx, fc) {
  105760. ec.Errorf(ctx, "must not be null")
  105761. }
  105762. return graphql.Null
  105763. }
  105764. res := resTmp.(string)
  105765. fc.Result = res
  105766. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  105767. }
  105768. func (ec *executionContext) fieldContext_ProductVariant_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  105769. fc = &graphql.FieldContext{
  105770. Object: "ProductVariant",
  105771. Field: field,
  105772. IsMethod: false,
  105773. IsResolver: false,
  105774. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  105775. return nil, errors.New("field of type DateTime does not have child fields")
  105776. },
  105777. }
  105778. return fc, nil
  105779. }
  105780. func (ec *executionContext) _ProductVariant_defaultCursor(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  105781. fc, err := ec.fieldContext_ProductVariant_defaultCursor(ctx, field)
  105782. if err != nil {
  105783. return graphql.Null
  105784. }
  105785. ctx = graphql.WithFieldContext(ctx, fc)
  105786. defer func() {
  105787. if r := recover(); r != nil {
  105788. ec.Error(ctx, ec.Recover(ctx, r))
  105789. ret = graphql.Null
  105790. }
  105791. }()
  105792. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  105793. ctx = rctx // use context from middleware stack in children
  105794. return obj.DefaultCursor, nil
  105795. })
  105796. if err != nil {
  105797. ec.Error(ctx, err)
  105798. return graphql.Null
  105799. }
  105800. if resTmp == nil {
  105801. if !graphql.HasFieldError(ctx, fc) {
  105802. ec.Errorf(ctx, "must not be null")
  105803. }
  105804. return graphql.Null
  105805. }
  105806. res := resTmp.(string)
  105807. fc.Result = res
  105808. return ec.marshalNString2string(ctx, field.Selections, res)
  105809. }
  105810. func (ec *executionContext) fieldContext_ProductVariant_defaultCursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  105811. fc = &graphql.FieldContext{
  105812. Object: "ProductVariant",
  105813. Field: field,
  105814. IsMethod: false,
  105815. IsResolver: false,
  105816. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  105817. return nil, errors.New("field of type String does not have child fields")
  105818. },
  105819. }
  105820. return fc, nil
  105821. }
  105822. func (ec *executionContext) _ProductVariant_deliveryProfile(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  105823. fc, err := ec.fieldContext_ProductVariant_deliveryProfile(ctx, field)
  105824. if err != nil {
  105825. return graphql.Null
  105826. }
  105827. ctx = graphql.WithFieldContext(ctx, fc)
  105828. defer func() {
  105829. if r := recover(); r != nil {
  105830. ec.Error(ctx, ec.Recover(ctx, r))
  105831. ret = graphql.Null
  105832. }
  105833. }()
  105834. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  105835. ctx = rctx // use context from middleware stack in children
  105836. return obj.DeliveryProfile, nil
  105837. })
  105838. if err != nil {
  105839. ec.Error(ctx, err)
  105840. return graphql.Null
  105841. }
  105842. if resTmp == nil {
  105843. return graphql.Null
  105844. }
  105845. res := resTmp.(*DeliveryProfile)
  105846. fc.Result = res
  105847. return ec.marshalODeliveryProfile2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryProfile(ctx, field.Selections, res)
  105848. }
  105849. func (ec *executionContext) fieldContext_ProductVariant_deliveryProfile(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  105850. fc = &graphql.FieldContext{
  105851. Object: "ProductVariant",
  105852. Field: field,
  105853. IsMethod: false,
  105854. IsResolver: false,
  105855. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  105856. switch field.Name {
  105857. case "activeMethodDefinitionsCount":
  105858. return ec.fieldContext_DeliveryProfile_activeMethodDefinitionsCount(ctx, field)
  105859. case "default":
  105860. return ec.fieldContext_DeliveryProfile_default(ctx, field)
  105861. case "id":
  105862. return ec.fieldContext_DeliveryProfile_id(ctx, field)
  105863. case "legacyMode":
  105864. return ec.fieldContext_DeliveryProfile_legacyMode(ctx, field)
  105865. case "locationsWithoutRatesCount":
  105866. return ec.fieldContext_DeliveryProfile_locationsWithoutRatesCount(ctx, field)
  105867. case "name":
  105868. return ec.fieldContext_DeliveryProfile_name(ctx, field)
  105869. case "originLocationCount":
  105870. return ec.fieldContext_DeliveryProfile_originLocationCount(ctx, field)
  105871. case "productVariantsCountV2":
  105872. return ec.fieldContext_DeliveryProfile_productVariantsCountV2(ctx, field)
  105873. case "profileItems":
  105874. return ec.fieldContext_DeliveryProfile_profileItems(ctx, field)
  105875. case "profileLocationGroups":
  105876. return ec.fieldContext_DeliveryProfile_profileLocationGroups(ctx, field)
  105877. case "sellingPlanGroups":
  105878. return ec.fieldContext_DeliveryProfile_sellingPlanGroups(ctx, field)
  105879. case "unassignedLocations":
  105880. return ec.fieldContext_DeliveryProfile_unassignedLocations(ctx, field)
  105881. case "zoneCountryCount":
  105882. return ec.fieldContext_DeliveryProfile_zoneCountryCount(ctx, field)
  105883. }
  105884. return nil, fmt.Errorf("no field named %q was found under type DeliveryProfile", field.Name)
  105885. },
  105886. }
  105887. return fc, nil
  105888. }
  105889. func (ec *executionContext) _ProductVariant_displayName(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  105890. fc, err := ec.fieldContext_ProductVariant_displayName(ctx, field)
  105891. if err != nil {
  105892. return graphql.Null
  105893. }
  105894. ctx = graphql.WithFieldContext(ctx, fc)
  105895. defer func() {
  105896. if r := recover(); r != nil {
  105897. ec.Error(ctx, ec.Recover(ctx, r))
  105898. ret = graphql.Null
  105899. }
  105900. }()
  105901. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  105902. ctx = rctx // use context from middleware stack in children
  105903. return obj.DisplayName, nil
  105904. })
  105905. if err != nil {
  105906. ec.Error(ctx, err)
  105907. return graphql.Null
  105908. }
  105909. if resTmp == nil {
  105910. if !graphql.HasFieldError(ctx, fc) {
  105911. ec.Errorf(ctx, "must not be null")
  105912. }
  105913. return graphql.Null
  105914. }
  105915. res := resTmp.(string)
  105916. fc.Result = res
  105917. return ec.marshalNString2string(ctx, field.Selections, res)
  105918. }
  105919. func (ec *executionContext) fieldContext_ProductVariant_displayName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  105920. fc = &graphql.FieldContext{
  105921. Object: "ProductVariant",
  105922. Field: field,
  105923. IsMethod: false,
  105924. IsResolver: false,
  105925. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  105926. return nil, errors.New("field of type String does not have child fields")
  105927. },
  105928. }
  105929. return fc, nil
  105930. }
  105931. func (ec *executionContext) _ProductVariant_fulfillmentServiceEditable(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  105932. fc, err := ec.fieldContext_ProductVariant_fulfillmentServiceEditable(ctx, field)
  105933. if err != nil {
  105934. return graphql.Null
  105935. }
  105936. ctx = graphql.WithFieldContext(ctx, fc)
  105937. defer func() {
  105938. if r := recover(); r != nil {
  105939. ec.Error(ctx, ec.Recover(ctx, r))
  105940. ret = graphql.Null
  105941. }
  105942. }()
  105943. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  105944. ctx = rctx // use context from middleware stack in children
  105945. return obj.FulfillmentServiceEditable, nil
  105946. })
  105947. if err != nil {
  105948. ec.Error(ctx, err)
  105949. return graphql.Null
  105950. }
  105951. if resTmp == nil {
  105952. if !graphql.HasFieldError(ctx, fc) {
  105953. ec.Errorf(ctx, "must not be null")
  105954. }
  105955. return graphql.Null
  105956. }
  105957. res := resTmp.(*EditableProperty)
  105958. fc.Result = res
  105959. return ec.marshalNEditableProperty2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐEditableProperty(ctx, field.Selections, res)
  105960. }
  105961. func (ec *executionContext) fieldContext_ProductVariant_fulfillmentServiceEditable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  105962. fc = &graphql.FieldContext{
  105963. Object: "ProductVariant",
  105964. Field: field,
  105965. IsMethod: false,
  105966. IsResolver: false,
  105967. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  105968. switch field.Name {
  105969. case "locked":
  105970. return ec.fieldContext_EditableProperty_locked(ctx, field)
  105971. case "reason":
  105972. return ec.fieldContext_EditableProperty_reason(ctx, field)
  105973. }
  105974. return nil, fmt.Errorf("no field named %q was found under type EditableProperty", field.Name)
  105975. },
  105976. }
  105977. return fc, nil
  105978. }
  105979. func (ec *executionContext) _ProductVariant_id(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  105980. fc, err := ec.fieldContext_ProductVariant_id(ctx, field)
  105981. if err != nil {
  105982. return graphql.Null
  105983. }
  105984. ctx = graphql.WithFieldContext(ctx, fc)
  105985. defer func() {
  105986. if r := recover(); r != nil {
  105987. ec.Error(ctx, ec.Recover(ctx, r))
  105988. ret = graphql.Null
  105989. }
  105990. }()
  105991. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  105992. ctx = rctx // use context from middleware stack in children
  105993. return obj.ID, nil
  105994. })
  105995. if err != nil {
  105996. ec.Error(ctx, err)
  105997. return graphql.Null
  105998. }
  105999. if resTmp == nil {
  106000. if !graphql.HasFieldError(ctx, fc) {
  106001. ec.Errorf(ctx, "must not be null")
  106002. }
  106003. return graphql.Null
  106004. }
  106005. res := resTmp.(string)
  106006. fc.Result = res
  106007. return ec.marshalNID2string(ctx, field.Selections, res)
  106008. }
  106009. func (ec *executionContext) fieldContext_ProductVariant_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  106010. fc = &graphql.FieldContext{
  106011. Object: "ProductVariant",
  106012. Field: field,
  106013. IsMethod: false,
  106014. IsResolver: false,
  106015. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  106016. return nil, errors.New("field of type ID does not have child fields")
  106017. },
  106018. }
  106019. return fc, nil
  106020. }
  106021. func (ec *executionContext) _ProductVariant_image(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  106022. fc, err := ec.fieldContext_ProductVariant_image(ctx, field)
  106023. if err != nil {
  106024. return graphql.Null
  106025. }
  106026. ctx = graphql.WithFieldContext(ctx, fc)
  106027. defer func() {
  106028. if r := recover(); r != nil {
  106029. ec.Error(ctx, ec.Recover(ctx, r))
  106030. ret = graphql.Null
  106031. }
  106032. }()
  106033. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  106034. ctx = rctx // use context from middleware stack in children
  106035. return obj.Image, nil
  106036. })
  106037. if err != nil {
  106038. ec.Error(ctx, err)
  106039. return graphql.Null
  106040. }
  106041. if resTmp == nil {
  106042. return graphql.Null
  106043. }
  106044. res := resTmp.(*Image)
  106045. fc.Result = res
  106046. return ec.marshalOImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImage(ctx, field.Selections, res)
  106047. }
  106048. func (ec *executionContext) fieldContext_ProductVariant_image(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  106049. fc = &graphql.FieldContext{
  106050. Object: "ProductVariant",
  106051. Field: field,
  106052. IsMethod: false,
  106053. IsResolver: false,
  106054. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  106055. switch field.Name {
  106056. case "altText":
  106057. return ec.fieldContext_Image_altText(ctx, field)
  106058. case "height":
  106059. return ec.fieldContext_Image_height(ctx, field)
  106060. case "id":
  106061. return ec.fieldContext_Image_id(ctx, field)
  106062. case "metafield":
  106063. return ec.fieldContext_Image_metafield(ctx, field)
  106064. case "metafields":
  106065. return ec.fieldContext_Image_metafields(ctx, field)
  106066. case "privateMetafield":
  106067. return ec.fieldContext_Image_privateMetafield(ctx, field)
  106068. case "privateMetafields":
  106069. return ec.fieldContext_Image_privateMetafields(ctx, field)
  106070. case "url":
  106071. return ec.fieldContext_Image_url(ctx, field)
  106072. case "width":
  106073. return ec.fieldContext_Image_width(ctx, field)
  106074. }
  106075. return nil, fmt.Errorf("no field named %q was found under type Image", field.Name)
  106076. },
  106077. }
  106078. return fc, nil
  106079. }
  106080. func (ec *executionContext) _ProductVariant_inventoryItem(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  106081. fc, err := ec.fieldContext_ProductVariant_inventoryItem(ctx, field)
  106082. if err != nil {
  106083. return graphql.Null
  106084. }
  106085. ctx = graphql.WithFieldContext(ctx, fc)
  106086. defer func() {
  106087. if r := recover(); r != nil {
  106088. ec.Error(ctx, ec.Recover(ctx, r))
  106089. ret = graphql.Null
  106090. }
  106091. }()
  106092. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  106093. ctx = rctx // use context from middleware stack in children
  106094. return obj.InventoryItem, nil
  106095. })
  106096. if err != nil {
  106097. ec.Error(ctx, err)
  106098. return graphql.Null
  106099. }
  106100. if resTmp == nil {
  106101. if !graphql.HasFieldError(ctx, fc) {
  106102. ec.Errorf(ctx, "must not be null")
  106103. }
  106104. return graphql.Null
  106105. }
  106106. res := resTmp.(*InventoryItem)
  106107. fc.Result = res
  106108. return ec.marshalNInventoryItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐInventoryItem(ctx, field.Selections, res)
  106109. }
  106110. func (ec *executionContext) fieldContext_ProductVariant_inventoryItem(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  106111. fc = &graphql.FieldContext{
  106112. Object: "ProductVariant",
  106113. Field: field,
  106114. IsMethod: false,
  106115. IsResolver: false,
  106116. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  106117. switch field.Name {
  106118. case "countryCodeOfOrigin":
  106119. return ec.fieldContext_InventoryItem_countryCodeOfOrigin(ctx, field)
  106120. case "countryHarmonizedSystemCodes":
  106121. return ec.fieldContext_InventoryItem_countryHarmonizedSystemCodes(ctx, field)
  106122. case "createdAt":
  106123. return ec.fieldContext_InventoryItem_createdAt(ctx, field)
  106124. case "duplicateSkuCount":
  106125. return ec.fieldContext_InventoryItem_duplicateSkuCount(ctx, field)
  106126. case "harmonizedSystemCode":
  106127. return ec.fieldContext_InventoryItem_harmonizedSystemCode(ctx, field)
  106128. case "id":
  106129. return ec.fieldContext_InventoryItem_id(ctx, field)
  106130. case "inventoryHistoryUrl":
  106131. return ec.fieldContext_InventoryItem_inventoryHistoryUrl(ctx, field)
  106132. case "inventoryLevel":
  106133. return ec.fieldContext_InventoryItem_inventoryLevel(ctx, field)
  106134. case "inventoryLevels":
  106135. return ec.fieldContext_InventoryItem_inventoryLevels(ctx, field)
  106136. case "legacyResourceId":
  106137. return ec.fieldContext_InventoryItem_legacyResourceId(ctx, field)
  106138. case "locationsCount":
  106139. return ec.fieldContext_InventoryItem_locationsCount(ctx, field)
  106140. case "provinceCodeOfOrigin":
  106141. return ec.fieldContext_InventoryItem_provinceCodeOfOrigin(ctx, field)
  106142. case "requiresShipping":
  106143. return ec.fieldContext_InventoryItem_requiresShipping(ctx, field)
  106144. case "sku":
  106145. return ec.fieldContext_InventoryItem_sku(ctx, field)
  106146. case "tracked":
  106147. return ec.fieldContext_InventoryItem_tracked(ctx, field)
  106148. case "trackedEditable":
  106149. return ec.fieldContext_InventoryItem_trackedEditable(ctx, field)
  106150. case "unitCost":
  106151. return ec.fieldContext_InventoryItem_unitCost(ctx, field)
  106152. case "updatedAt":
  106153. return ec.fieldContext_InventoryItem_updatedAt(ctx, field)
  106154. case "variant":
  106155. return ec.fieldContext_InventoryItem_variant(ctx, field)
  106156. }
  106157. return nil, fmt.Errorf("no field named %q was found under type InventoryItem", field.Name)
  106158. },
  106159. }
  106160. return fc, nil
  106161. }
  106162. func (ec *executionContext) _ProductVariant_inventoryPolicy(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  106163. fc, err := ec.fieldContext_ProductVariant_inventoryPolicy(ctx, field)
  106164. if err != nil {
  106165. return graphql.Null
  106166. }
  106167. ctx = graphql.WithFieldContext(ctx, fc)
  106168. defer func() {
  106169. if r := recover(); r != nil {
  106170. ec.Error(ctx, ec.Recover(ctx, r))
  106171. ret = graphql.Null
  106172. }
  106173. }()
  106174. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  106175. ctx = rctx // use context from middleware stack in children
  106176. return obj.InventoryPolicy, nil
  106177. })
  106178. if err != nil {
  106179. ec.Error(ctx, err)
  106180. return graphql.Null
  106181. }
  106182. if resTmp == nil {
  106183. if !graphql.HasFieldError(ctx, fc) {
  106184. ec.Errorf(ctx, "must not be null")
  106185. }
  106186. return graphql.Null
  106187. }
  106188. res := resTmp.(ProductVariantInventoryPolicy)
  106189. fc.Result = res
  106190. return ec.marshalNProductVariantInventoryPolicy2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantInventoryPolicy(ctx, field.Selections, res)
  106191. }
  106192. func (ec *executionContext) fieldContext_ProductVariant_inventoryPolicy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  106193. fc = &graphql.FieldContext{
  106194. Object: "ProductVariant",
  106195. Field: field,
  106196. IsMethod: false,
  106197. IsResolver: false,
  106198. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  106199. return nil, errors.New("field of type ProductVariantInventoryPolicy does not have child fields")
  106200. },
  106201. }
  106202. return fc, nil
  106203. }
  106204. func (ec *executionContext) _ProductVariant_inventoryQuantity(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  106205. fc, err := ec.fieldContext_ProductVariant_inventoryQuantity(ctx, field)
  106206. if err != nil {
  106207. return graphql.Null
  106208. }
  106209. ctx = graphql.WithFieldContext(ctx, fc)
  106210. defer func() {
  106211. if r := recover(); r != nil {
  106212. ec.Error(ctx, ec.Recover(ctx, r))
  106213. ret = graphql.Null
  106214. }
  106215. }()
  106216. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  106217. ctx = rctx // use context from middleware stack in children
  106218. return obj.InventoryQuantity, nil
  106219. })
  106220. if err != nil {
  106221. ec.Error(ctx, err)
  106222. return graphql.Null
  106223. }
  106224. if resTmp == nil {
  106225. return graphql.Null
  106226. }
  106227. res := resTmp.(*int)
  106228. fc.Result = res
  106229. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  106230. }
  106231. func (ec *executionContext) fieldContext_ProductVariant_inventoryQuantity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  106232. fc = &graphql.FieldContext{
  106233. Object: "ProductVariant",
  106234. Field: field,
  106235. IsMethod: false,
  106236. IsResolver: false,
  106237. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  106238. return nil, errors.New("field of type Int does not have child fields")
  106239. },
  106240. }
  106241. return fc, nil
  106242. }
  106243. func (ec *executionContext) _ProductVariant_legacyResourceId(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  106244. fc, err := ec.fieldContext_ProductVariant_legacyResourceId(ctx, field)
  106245. if err != nil {
  106246. return graphql.Null
  106247. }
  106248. ctx = graphql.WithFieldContext(ctx, fc)
  106249. defer func() {
  106250. if r := recover(); r != nil {
  106251. ec.Error(ctx, ec.Recover(ctx, r))
  106252. ret = graphql.Null
  106253. }
  106254. }()
  106255. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  106256. ctx = rctx // use context from middleware stack in children
  106257. return obj.LegacyResourceID, nil
  106258. })
  106259. if err != nil {
  106260. ec.Error(ctx, err)
  106261. return graphql.Null
  106262. }
  106263. if resTmp == nil {
  106264. if !graphql.HasFieldError(ctx, fc) {
  106265. ec.Errorf(ctx, "must not be null")
  106266. }
  106267. return graphql.Null
  106268. }
  106269. res := resTmp.(string)
  106270. fc.Result = res
  106271. return ec.marshalNUnsignedInt642string(ctx, field.Selections, res)
  106272. }
  106273. func (ec *executionContext) fieldContext_ProductVariant_legacyResourceId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  106274. fc = &graphql.FieldContext{
  106275. Object: "ProductVariant",
  106276. Field: field,
  106277. IsMethod: false,
  106278. IsResolver: false,
  106279. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  106280. return nil, errors.New("field of type UnsignedInt64 does not have child fields")
  106281. },
  106282. }
  106283. return fc, nil
  106284. }
  106285. func (ec *executionContext) _ProductVariant_media(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  106286. fc, err := ec.fieldContext_ProductVariant_media(ctx, field)
  106287. if err != nil {
  106288. return graphql.Null
  106289. }
  106290. ctx = graphql.WithFieldContext(ctx, fc)
  106291. defer func() {
  106292. if r := recover(); r != nil {
  106293. ec.Error(ctx, ec.Recover(ctx, r))
  106294. ret = graphql.Null
  106295. }
  106296. }()
  106297. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  106298. ctx = rctx // use context from middleware stack in children
  106299. return obj.Media, nil
  106300. })
  106301. if err != nil {
  106302. ec.Error(ctx, err)
  106303. return graphql.Null
  106304. }
  106305. if resTmp == nil {
  106306. if !graphql.HasFieldError(ctx, fc) {
  106307. ec.Errorf(ctx, "must not be null")
  106308. }
  106309. return graphql.Null
  106310. }
  106311. res := resTmp.(*MediaConnection)
  106312. fc.Result = res
  106313. return ec.marshalNMediaConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaConnection(ctx, field.Selections, res)
  106314. }
  106315. func (ec *executionContext) fieldContext_ProductVariant_media(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  106316. fc = &graphql.FieldContext{
  106317. Object: "ProductVariant",
  106318. Field: field,
  106319. IsMethod: false,
  106320. IsResolver: false,
  106321. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  106322. switch field.Name {
  106323. case "edges":
  106324. return ec.fieldContext_MediaConnection_edges(ctx, field)
  106325. case "nodes":
  106326. return ec.fieldContext_MediaConnection_nodes(ctx, field)
  106327. case "pageInfo":
  106328. return ec.fieldContext_MediaConnection_pageInfo(ctx, field)
  106329. }
  106330. return nil, fmt.Errorf("no field named %q was found under type MediaConnection", field.Name)
  106331. },
  106332. }
  106333. defer func() {
  106334. if r := recover(); r != nil {
  106335. err = ec.Recover(ctx, r)
  106336. ec.Error(ctx, err)
  106337. }
  106338. }()
  106339. ctx = graphql.WithFieldContext(ctx, fc)
  106340. if fc.Args, err = ec.field_ProductVariant_media_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  106341. ec.Error(ctx, err)
  106342. return
  106343. }
  106344. return fc, nil
  106345. }
  106346. func (ec *executionContext) _ProductVariant_metafield(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  106347. fc, err := ec.fieldContext_ProductVariant_metafield(ctx, field)
  106348. if err != nil {
  106349. return graphql.Null
  106350. }
  106351. ctx = graphql.WithFieldContext(ctx, fc)
  106352. defer func() {
  106353. if r := recover(); r != nil {
  106354. ec.Error(ctx, ec.Recover(ctx, r))
  106355. ret = graphql.Null
  106356. }
  106357. }()
  106358. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  106359. ctx = rctx // use context from middleware stack in children
  106360. return obj.Metafield, nil
  106361. })
  106362. if err != nil {
  106363. ec.Error(ctx, err)
  106364. return graphql.Null
  106365. }
  106366. if resTmp == nil {
  106367. return graphql.Null
  106368. }
  106369. res := resTmp.(*Metafield)
  106370. fc.Result = res
  106371. return ec.marshalOMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafield(ctx, field.Selections, res)
  106372. }
  106373. func (ec *executionContext) fieldContext_ProductVariant_metafield(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  106374. fc = &graphql.FieldContext{
  106375. Object: "ProductVariant",
  106376. Field: field,
  106377. IsMethod: false,
  106378. IsResolver: false,
  106379. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  106380. switch field.Name {
  106381. case "createdAt":
  106382. return ec.fieldContext_Metafield_createdAt(ctx, field)
  106383. case "definition":
  106384. return ec.fieldContext_Metafield_definition(ctx, field)
  106385. case "description":
  106386. return ec.fieldContext_Metafield_description(ctx, field)
  106387. case "id":
  106388. return ec.fieldContext_Metafield_id(ctx, field)
  106389. case "key":
  106390. return ec.fieldContext_Metafield_key(ctx, field)
  106391. case "legacyResourceId":
  106392. return ec.fieldContext_Metafield_legacyResourceId(ctx, field)
  106393. case "namespace":
  106394. return ec.fieldContext_Metafield_namespace(ctx, field)
  106395. case "owner":
  106396. return ec.fieldContext_Metafield_owner(ctx, field)
  106397. case "ownerType":
  106398. return ec.fieldContext_Metafield_ownerType(ctx, field)
  106399. case "reference":
  106400. return ec.fieldContext_Metafield_reference(ctx, field)
  106401. case "references":
  106402. return ec.fieldContext_Metafield_references(ctx, field)
  106403. case "type":
  106404. return ec.fieldContext_Metafield_type(ctx, field)
  106405. case "updatedAt":
  106406. return ec.fieldContext_Metafield_updatedAt(ctx, field)
  106407. case "value":
  106408. return ec.fieldContext_Metafield_value(ctx, field)
  106409. }
  106410. return nil, fmt.Errorf("no field named %q was found under type Metafield", field.Name)
  106411. },
  106412. }
  106413. defer func() {
  106414. if r := recover(); r != nil {
  106415. err = ec.Recover(ctx, r)
  106416. ec.Error(ctx, err)
  106417. }
  106418. }()
  106419. ctx = graphql.WithFieldContext(ctx, fc)
  106420. if fc.Args, err = ec.field_ProductVariant_metafield_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  106421. ec.Error(ctx, err)
  106422. return
  106423. }
  106424. return fc, nil
  106425. }
  106426. func (ec *executionContext) _ProductVariant_metafieldDefinitions(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  106427. fc, err := ec.fieldContext_ProductVariant_metafieldDefinitions(ctx, field)
  106428. if err != nil {
  106429. return graphql.Null
  106430. }
  106431. ctx = graphql.WithFieldContext(ctx, fc)
  106432. defer func() {
  106433. if r := recover(); r != nil {
  106434. ec.Error(ctx, ec.Recover(ctx, r))
  106435. ret = graphql.Null
  106436. }
  106437. }()
  106438. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  106439. ctx = rctx // use context from middleware stack in children
  106440. return obj.MetafieldDefinitions, nil
  106441. })
  106442. if err != nil {
  106443. ec.Error(ctx, err)
  106444. return graphql.Null
  106445. }
  106446. if resTmp == nil {
  106447. if !graphql.HasFieldError(ctx, fc) {
  106448. ec.Errorf(ctx, "must not be null")
  106449. }
  106450. return graphql.Null
  106451. }
  106452. res := resTmp.(*MetafieldDefinitionConnection)
  106453. fc.Result = res
  106454. return ec.marshalNMetafieldDefinitionConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionConnection(ctx, field.Selections, res)
  106455. }
  106456. func (ec *executionContext) fieldContext_ProductVariant_metafieldDefinitions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  106457. fc = &graphql.FieldContext{
  106458. Object: "ProductVariant",
  106459. Field: field,
  106460. IsMethod: false,
  106461. IsResolver: false,
  106462. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  106463. switch field.Name {
  106464. case "edges":
  106465. return ec.fieldContext_MetafieldDefinitionConnection_edges(ctx, field)
  106466. case "nodes":
  106467. return ec.fieldContext_MetafieldDefinitionConnection_nodes(ctx, field)
  106468. case "pageInfo":
  106469. return ec.fieldContext_MetafieldDefinitionConnection_pageInfo(ctx, field)
  106470. }
  106471. return nil, fmt.Errorf("no field named %q was found under type MetafieldDefinitionConnection", field.Name)
  106472. },
  106473. }
  106474. defer func() {
  106475. if r := recover(); r != nil {
  106476. err = ec.Recover(ctx, r)
  106477. ec.Error(ctx, err)
  106478. }
  106479. }()
  106480. ctx = graphql.WithFieldContext(ctx, fc)
  106481. if fc.Args, err = ec.field_ProductVariant_metafieldDefinitions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  106482. ec.Error(ctx, err)
  106483. return
  106484. }
  106485. return fc, nil
  106486. }
  106487. func (ec *executionContext) _ProductVariant_metafields(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  106488. fc, err := ec.fieldContext_ProductVariant_metafields(ctx, field)
  106489. if err != nil {
  106490. return graphql.Null
  106491. }
  106492. ctx = graphql.WithFieldContext(ctx, fc)
  106493. defer func() {
  106494. if r := recover(); r != nil {
  106495. ec.Error(ctx, ec.Recover(ctx, r))
  106496. ret = graphql.Null
  106497. }
  106498. }()
  106499. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  106500. ctx = rctx // use context from middleware stack in children
  106501. return obj.Metafields, nil
  106502. })
  106503. if err != nil {
  106504. ec.Error(ctx, err)
  106505. return graphql.Null
  106506. }
  106507. if resTmp == nil {
  106508. if !graphql.HasFieldError(ctx, fc) {
  106509. ec.Errorf(ctx, "must not be null")
  106510. }
  106511. return graphql.Null
  106512. }
  106513. res := resTmp.(*MetafieldConnection)
  106514. fc.Result = res
  106515. return ec.marshalNMetafieldConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldConnection(ctx, field.Selections, res)
  106516. }
  106517. func (ec *executionContext) fieldContext_ProductVariant_metafields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  106518. fc = &graphql.FieldContext{
  106519. Object: "ProductVariant",
  106520. Field: field,
  106521. IsMethod: false,
  106522. IsResolver: false,
  106523. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  106524. switch field.Name {
  106525. case "edges":
  106526. return ec.fieldContext_MetafieldConnection_edges(ctx, field)
  106527. case "nodes":
  106528. return ec.fieldContext_MetafieldConnection_nodes(ctx, field)
  106529. case "pageInfo":
  106530. return ec.fieldContext_MetafieldConnection_pageInfo(ctx, field)
  106531. }
  106532. return nil, fmt.Errorf("no field named %q was found under type MetafieldConnection", field.Name)
  106533. },
  106534. }
  106535. defer func() {
  106536. if r := recover(); r != nil {
  106537. err = ec.Recover(ctx, r)
  106538. ec.Error(ctx, err)
  106539. }
  106540. }()
  106541. ctx = graphql.WithFieldContext(ctx, fc)
  106542. if fc.Args, err = ec.field_ProductVariant_metafields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  106543. ec.Error(ctx, err)
  106544. return
  106545. }
  106546. return fc, nil
  106547. }
  106548. func (ec *executionContext) _ProductVariant_position(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  106549. fc, err := ec.fieldContext_ProductVariant_position(ctx, field)
  106550. if err != nil {
  106551. return graphql.Null
  106552. }
  106553. ctx = graphql.WithFieldContext(ctx, fc)
  106554. defer func() {
  106555. if r := recover(); r != nil {
  106556. ec.Error(ctx, ec.Recover(ctx, r))
  106557. ret = graphql.Null
  106558. }
  106559. }()
  106560. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  106561. ctx = rctx // use context from middleware stack in children
  106562. return obj.Position, nil
  106563. })
  106564. if err != nil {
  106565. ec.Error(ctx, err)
  106566. return graphql.Null
  106567. }
  106568. if resTmp == nil {
  106569. if !graphql.HasFieldError(ctx, fc) {
  106570. ec.Errorf(ctx, "must not be null")
  106571. }
  106572. return graphql.Null
  106573. }
  106574. res := resTmp.(int)
  106575. fc.Result = res
  106576. return ec.marshalNInt2int(ctx, field.Selections, res)
  106577. }
  106578. func (ec *executionContext) fieldContext_ProductVariant_position(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  106579. fc = &graphql.FieldContext{
  106580. Object: "ProductVariant",
  106581. Field: field,
  106582. IsMethod: false,
  106583. IsResolver: false,
  106584. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  106585. return nil, errors.New("field of type Int does not have child fields")
  106586. },
  106587. }
  106588. return fc, nil
  106589. }
  106590. func (ec *executionContext) _ProductVariant_price(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  106591. fc, err := ec.fieldContext_ProductVariant_price(ctx, field)
  106592. if err != nil {
  106593. return graphql.Null
  106594. }
  106595. ctx = graphql.WithFieldContext(ctx, fc)
  106596. defer func() {
  106597. if r := recover(); r != nil {
  106598. ec.Error(ctx, ec.Recover(ctx, r))
  106599. ret = graphql.Null
  106600. }
  106601. }()
  106602. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  106603. ctx = rctx // use context from middleware stack in children
  106604. return obj.Price, nil
  106605. })
  106606. if err != nil {
  106607. ec.Error(ctx, err)
  106608. return graphql.Null
  106609. }
  106610. if resTmp == nil {
  106611. if !graphql.HasFieldError(ctx, fc) {
  106612. ec.Errorf(ctx, "must not be null")
  106613. }
  106614. return graphql.Null
  106615. }
  106616. res := resTmp.(string)
  106617. fc.Result = res
  106618. return ec.marshalNMoney2string(ctx, field.Selections, res)
  106619. }
  106620. func (ec *executionContext) fieldContext_ProductVariant_price(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  106621. fc = &graphql.FieldContext{
  106622. Object: "ProductVariant",
  106623. Field: field,
  106624. IsMethod: false,
  106625. IsResolver: false,
  106626. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  106627. return nil, errors.New("field of type Money does not have child fields")
  106628. },
  106629. }
  106630. return fc, nil
  106631. }
  106632. func (ec *executionContext) _ProductVariant_privateMetafield(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  106633. fc, err := ec.fieldContext_ProductVariant_privateMetafield(ctx, field)
  106634. if err != nil {
  106635. return graphql.Null
  106636. }
  106637. ctx = graphql.WithFieldContext(ctx, fc)
  106638. defer func() {
  106639. if r := recover(); r != nil {
  106640. ec.Error(ctx, ec.Recover(ctx, r))
  106641. ret = graphql.Null
  106642. }
  106643. }()
  106644. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  106645. ctx = rctx // use context from middleware stack in children
  106646. return obj.PrivateMetafield, nil
  106647. })
  106648. if err != nil {
  106649. ec.Error(ctx, err)
  106650. return graphql.Null
  106651. }
  106652. if resTmp == nil {
  106653. return graphql.Null
  106654. }
  106655. res := resTmp.(*PrivateMetafield)
  106656. fc.Result = res
  106657. return ec.marshalOPrivateMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafield(ctx, field.Selections, res)
  106658. }
  106659. func (ec *executionContext) fieldContext_ProductVariant_privateMetafield(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  106660. fc = &graphql.FieldContext{
  106661. Object: "ProductVariant",
  106662. Field: field,
  106663. IsMethod: false,
  106664. IsResolver: false,
  106665. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  106666. switch field.Name {
  106667. case "createdAt":
  106668. return ec.fieldContext_PrivateMetafield_createdAt(ctx, field)
  106669. case "id":
  106670. return ec.fieldContext_PrivateMetafield_id(ctx, field)
  106671. case "key":
  106672. return ec.fieldContext_PrivateMetafield_key(ctx, field)
  106673. case "namespace":
  106674. return ec.fieldContext_PrivateMetafield_namespace(ctx, field)
  106675. case "updatedAt":
  106676. return ec.fieldContext_PrivateMetafield_updatedAt(ctx, field)
  106677. case "value":
  106678. return ec.fieldContext_PrivateMetafield_value(ctx, field)
  106679. case "valueType":
  106680. return ec.fieldContext_PrivateMetafield_valueType(ctx, field)
  106681. }
  106682. return nil, fmt.Errorf("no field named %q was found under type PrivateMetafield", field.Name)
  106683. },
  106684. }
  106685. defer func() {
  106686. if r := recover(); r != nil {
  106687. err = ec.Recover(ctx, r)
  106688. ec.Error(ctx, err)
  106689. }
  106690. }()
  106691. ctx = graphql.WithFieldContext(ctx, fc)
  106692. if fc.Args, err = ec.field_ProductVariant_privateMetafield_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  106693. ec.Error(ctx, err)
  106694. return
  106695. }
  106696. return fc, nil
  106697. }
  106698. func (ec *executionContext) _ProductVariant_privateMetafields(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  106699. fc, err := ec.fieldContext_ProductVariant_privateMetafields(ctx, field)
  106700. if err != nil {
  106701. return graphql.Null
  106702. }
  106703. ctx = graphql.WithFieldContext(ctx, fc)
  106704. defer func() {
  106705. if r := recover(); r != nil {
  106706. ec.Error(ctx, ec.Recover(ctx, r))
  106707. ret = graphql.Null
  106708. }
  106709. }()
  106710. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  106711. ctx = rctx // use context from middleware stack in children
  106712. return obj.PrivateMetafields, nil
  106713. })
  106714. if err != nil {
  106715. ec.Error(ctx, err)
  106716. return graphql.Null
  106717. }
  106718. if resTmp == nil {
  106719. if !graphql.HasFieldError(ctx, fc) {
  106720. ec.Errorf(ctx, "must not be null")
  106721. }
  106722. return graphql.Null
  106723. }
  106724. res := resTmp.(*PrivateMetafieldConnection)
  106725. fc.Result = res
  106726. return ec.marshalNPrivateMetafieldConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafieldConnection(ctx, field.Selections, res)
  106727. }
  106728. func (ec *executionContext) fieldContext_ProductVariant_privateMetafields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  106729. fc = &graphql.FieldContext{
  106730. Object: "ProductVariant",
  106731. Field: field,
  106732. IsMethod: false,
  106733. IsResolver: false,
  106734. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  106735. switch field.Name {
  106736. case "edges":
  106737. return ec.fieldContext_PrivateMetafieldConnection_edges(ctx, field)
  106738. case "nodes":
  106739. return ec.fieldContext_PrivateMetafieldConnection_nodes(ctx, field)
  106740. case "pageInfo":
  106741. return ec.fieldContext_PrivateMetafieldConnection_pageInfo(ctx, field)
  106742. }
  106743. return nil, fmt.Errorf("no field named %q was found under type PrivateMetafieldConnection", field.Name)
  106744. },
  106745. }
  106746. defer func() {
  106747. if r := recover(); r != nil {
  106748. err = ec.Recover(ctx, r)
  106749. ec.Error(ctx, err)
  106750. }
  106751. }()
  106752. ctx = graphql.WithFieldContext(ctx, fc)
  106753. if fc.Args, err = ec.field_ProductVariant_privateMetafields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  106754. ec.Error(ctx, err)
  106755. return
  106756. }
  106757. return fc, nil
  106758. }
  106759. func (ec *executionContext) _ProductVariant_product(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  106760. fc, err := ec.fieldContext_ProductVariant_product(ctx, field)
  106761. if err != nil {
  106762. return graphql.Null
  106763. }
  106764. ctx = graphql.WithFieldContext(ctx, fc)
  106765. defer func() {
  106766. if r := recover(); r != nil {
  106767. ec.Error(ctx, ec.Recover(ctx, r))
  106768. ret = graphql.Null
  106769. }
  106770. }()
  106771. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  106772. ctx = rctx // use context from middleware stack in children
  106773. return obj.Product, nil
  106774. })
  106775. if err != nil {
  106776. ec.Error(ctx, err)
  106777. return graphql.Null
  106778. }
  106779. if resTmp == nil {
  106780. if !graphql.HasFieldError(ctx, fc) {
  106781. ec.Errorf(ctx, "must not be null")
  106782. }
  106783. return graphql.Null
  106784. }
  106785. res := resTmp.(*Product)
  106786. fc.Result = res
  106787. return ec.marshalNProduct2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProduct(ctx, field.Selections, res)
  106788. }
  106789. func (ec *executionContext) fieldContext_ProductVariant_product(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  106790. fc = &graphql.FieldContext{
  106791. Object: "ProductVariant",
  106792. Field: field,
  106793. IsMethod: false,
  106794. IsResolver: false,
  106795. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  106796. switch field.Name {
  106797. case "availablePublicationCount":
  106798. return ec.fieldContext_Product_availablePublicationCount(ctx, field)
  106799. case "collections":
  106800. return ec.fieldContext_Product_collections(ctx, field)
  106801. case "contextualPricing":
  106802. return ec.fieldContext_Product_contextualPricing(ctx, field)
  106803. case "createdAt":
  106804. return ec.fieldContext_Product_createdAt(ctx, field)
  106805. case "defaultCursor":
  106806. return ec.fieldContext_Product_defaultCursor(ctx, field)
  106807. case "description":
  106808. return ec.fieldContext_Product_description(ctx, field)
  106809. case "descriptionHtml":
  106810. return ec.fieldContext_Product_descriptionHtml(ctx, field)
  106811. case "featuredImage":
  106812. return ec.fieldContext_Product_featuredImage(ctx, field)
  106813. case "featuredMedia":
  106814. return ec.fieldContext_Product_featuredMedia(ctx, field)
  106815. case "feedback":
  106816. return ec.fieldContext_Product_feedback(ctx, field)
  106817. case "giftCardTemplateSuffix":
  106818. return ec.fieldContext_Product_giftCardTemplateSuffix(ctx, field)
  106819. case "handle":
  106820. return ec.fieldContext_Product_handle(ctx, field)
  106821. case "hasOnlyDefaultVariant":
  106822. return ec.fieldContext_Product_hasOnlyDefaultVariant(ctx, field)
  106823. case "hasOutOfStockVariants":
  106824. return ec.fieldContext_Product_hasOutOfStockVariants(ctx, field)
  106825. case "id":
  106826. return ec.fieldContext_Product_id(ctx, field)
  106827. case "images":
  106828. return ec.fieldContext_Product_images(ctx, field)
  106829. case "inCollection":
  106830. return ec.fieldContext_Product_inCollection(ctx, field)
  106831. case "isGiftCard":
  106832. return ec.fieldContext_Product_isGiftCard(ctx, field)
  106833. case "legacyResourceId":
  106834. return ec.fieldContext_Product_legacyResourceId(ctx, field)
  106835. case "media":
  106836. return ec.fieldContext_Product_media(ctx, field)
  106837. case "mediaCount":
  106838. return ec.fieldContext_Product_mediaCount(ctx, field)
  106839. case "metafield":
  106840. return ec.fieldContext_Product_metafield(ctx, field)
  106841. case "metafieldDefinitions":
  106842. return ec.fieldContext_Product_metafieldDefinitions(ctx, field)
  106843. case "metafields":
  106844. return ec.fieldContext_Product_metafields(ctx, field)
  106845. case "onlineStorePreviewUrl":
  106846. return ec.fieldContext_Product_onlineStorePreviewUrl(ctx, field)
  106847. case "onlineStoreUrl":
  106848. return ec.fieldContext_Product_onlineStoreUrl(ctx, field)
  106849. case "options":
  106850. return ec.fieldContext_Product_options(ctx, field)
  106851. case "priceRangeV2":
  106852. return ec.fieldContext_Product_priceRangeV2(ctx, field)
  106853. case "privateMetafield":
  106854. return ec.fieldContext_Product_privateMetafield(ctx, field)
  106855. case "privateMetafields":
  106856. return ec.fieldContext_Product_privateMetafields(ctx, field)
  106857. case "productCategory":
  106858. return ec.fieldContext_Product_productCategory(ctx, field)
  106859. case "productType":
  106860. return ec.fieldContext_Product_productType(ctx, field)
  106861. case "publicationCount":
  106862. return ec.fieldContext_Product_publicationCount(ctx, field)
  106863. case "publishedAt":
  106864. return ec.fieldContext_Product_publishedAt(ctx, field)
  106865. case "publishedOnCurrentPublication":
  106866. return ec.fieldContext_Product_publishedOnCurrentPublication(ctx, field)
  106867. case "publishedOnPublication":
  106868. return ec.fieldContext_Product_publishedOnPublication(ctx, field)
  106869. case "requiresSellingPlan":
  106870. return ec.fieldContext_Product_requiresSellingPlan(ctx, field)
  106871. case "resourcePublicationOnCurrentPublication":
  106872. return ec.fieldContext_Product_resourcePublicationOnCurrentPublication(ctx, field)
  106873. case "resourcePublications":
  106874. return ec.fieldContext_Product_resourcePublications(ctx, field)
  106875. case "resourcePublicationsV2":
  106876. return ec.fieldContext_Product_resourcePublicationsV2(ctx, field)
  106877. case "sellingPlanGroupCount":
  106878. return ec.fieldContext_Product_sellingPlanGroupCount(ctx, field)
  106879. case "sellingPlanGroups":
  106880. return ec.fieldContext_Product_sellingPlanGroups(ctx, field)
  106881. case "seo":
  106882. return ec.fieldContext_Product_seo(ctx, field)
  106883. case "status":
  106884. return ec.fieldContext_Product_status(ctx, field)
  106885. case "tags":
  106886. return ec.fieldContext_Product_tags(ctx, field)
  106887. case "templateSuffix":
  106888. return ec.fieldContext_Product_templateSuffix(ctx, field)
  106889. case "title":
  106890. return ec.fieldContext_Product_title(ctx, field)
  106891. case "totalInventory":
  106892. return ec.fieldContext_Product_totalInventory(ctx, field)
  106893. case "totalVariants":
  106894. return ec.fieldContext_Product_totalVariants(ctx, field)
  106895. case "tracksInventory":
  106896. return ec.fieldContext_Product_tracksInventory(ctx, field)
  106897. case "translations":
  106898. return ec.fieldContext_Product_translations(ctx, field)
  106899. case "unpublishedPublications":
  106900. return ec.fieldContext_Product_unpublishedPublications(ctx, field)
  106901. case "updatedAt":
  106902. return ec.fieldContext_Product_updatedAt(ctx, field)
  106903. case "variants":
  106904. return ec.fieldContext_Product_variants(ctx, field)
  106905. case "vendor":
  106906. return ec.fieldContext_Product_vendor(ctx, field)
  106907. }
  106908. return nil, fmt.Errorf("no field named %q was found under type Product", field.Name)
  106909. },
  106910. }
  106911. return fc, nil
  106912. }
  106913. func (ec *executionContext) _ProductVariant_selectedOptions(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  106914. fc, err := ec.fieldContext_ProductVariant_selectedOptions(ctx, field)
  106915. if err != nil {
  106916. return graphql.Null
  106917. }
  106918. ctx = graphql.WithFieldContext(ctx, fc)
  106919. defer func() {
  106920. if r := recover(); r != nil {
  106921. ec.Error(ctx, ec.Recover(ctx, r))
  106922. ret = graphql.Null
  106923. }
  106924. }()
  106925. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  106926. ctx = rctx // use context from middleware stack in children
  106927. return obj.SelectedOptions, nil
  106928. })
  106929. if err != nil {
  106930. ec.Error(ctx, err)
  106931. return graphql.Null
  106932. }
  106933. if resTmp == nil {
  106934. if !graphql.HasFieldError(ctx, fc) {
  106935. ec.Errorf(ctx, "must not be null")
  106936. }
  106937. return graphql.Null
  106938. }
  106939. res := resTmp.([]*SelectedOption)
  106940. fc.Result = res
  106941. return ec.marshalNSelectedOption2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSelectedOptionᚄ(ctx, field.Selections, res)
  106942. }
  106943. func (ec *executionContext) fieldContext_ProductVariant_selectedOptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  106944. fc = &graphql.FieldContext{
  106945. Object: "ProductVariant",
  106946. Field: field,
  106947. IsMethod: false,
  106948. IsResolver: false,
  106949. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  106950. switch field.Name {
  106951. case "name":
  106952. return ec.fieldContext_SelectedOption_name(ctx, field)
  106953. case "value":
  106954. return ec.fieldContext_SelectedOption_value(ctx, field)
  106955. }
  106956. return nil, fmt.Errorf("no field named %q was found under type SelectedOption", field.Name)
  106957. },
  106958. }
  106959. return fc, nil
  106960. }
  106961. func (ec *executionContext) _ProductVariant_sellableOnlineQuantity(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  106962. fc, err := ec.fieldContext_ProductVariant_sellableOnlineQuantity(ctx, field)
  106963. if err != nil {
  106964. return graphql.Null
  106965. }
  106966. ctx = graphql.WithFieldContext(ctx, fc)
  106967. defer func() {
  106968. if r := recover(); r != nil {
  106969. ec.Error(ctx, ec.Recover(ctx, r))
  106970. ret = graphql.Null
  106971. }
  106972. }()
  106973. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  106974. ctx = rctx // use context from middleware stack in children
  106975. return obj.SellableOnlineQuantity, nil
  106976. })
  106977. if err != nil {
  106978. ec.Error(ctx, err)
  106979. return graphql.Null
  106980. }
  106981. if resTmp == nil {
  106982. if !graphql.HasFieldError(ctx, fc) {
  106983. ec.Errorf(ctx, "must not be null")
  106984. }
  106985. return graphql.Null
  106986. }
  106987. res := resTmp.(int)
  106988. fc.Result = res
  106989. return ec.marshalNInt2int(ctx, field.Selections, res)
  106990. }
  106991. func (ec *executionContext) fieldContext_ProductVariant_sellableOnlineQuantity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  106992. fc = &graphql.FieldContext{
  106993. Object: "ProductVariant",
  106994. Field: field,
  106995. IsMethod: false,
  106996. IsResolver: false,
  106997. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  106998. return nil, errors.New("field of type Int does not have child fields")
  106999. },
  107000. }
  107001. return fc, nil
  107002. }
  107003. func (ec *executionContext) _ProductVariant_sellingPlanGroupCount(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  107004. fc, err := ec.fieldContext_ProductVariant_sellingPlanGroupCount(ctx, field)
  107005. if err != nil {
  107006. return graphql.Null
  107007. }
  107008. ctx = graphql.WithFieldContext(ctx, fc)
  107009. defer func() {
  107010. if r := recover(); r != nil {
  107011. ec.Error(ctx, ec.Recover(ctx, r))
  107012. ret = graphql.Null
  107013. }
  107014. }()
  107015. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  107016. ctx = rctx // use context from middleware stack in children
  107017. return obj.SellingPlanGroupCount, nil
  107018. })
  107019. if err != nil {
  107020. ec.Error(ctx, err)
  107021. return graphql.Null
  107022. }
  107023. if resTmp == nil {
  107024. if !graphql.HasFieldError(ctx, fc) {
  107025. ec.Errorf(ctx, "must not be null")
  107026. }
  107027. return graphql.Null
  107028. }
  107029. res := resTmp.(int)
  107030. fc.Result = res
  107031. return ec.marshalNInt2int(ctx, field.Selections, res)
  107032. }
  107033. func (ec *executionContext) fieldContext_ProductVariant_sellingPlanGroupCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  107034. fc = &graphql.FieldContext{
  107035. Object: "ProductVariant",
  107036. Field: field,
  107037. IsMethod: false,
  107038. IsResolver: false,
  107039. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  107040. return nil, errors.New("field of type Int does not have child fields")
  107041. },
  107042. }
  107043. return fc, nil
  107044. }
  107045. func (ec *executionContext) _ProductVariant_sellingPlanGroups(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  107046. fc, err := ec.fieldContext_ProductVariant_sellingPlanGroups(ctx, field)
  107047. if err != nil {
  107048. return graphql.Null
  107049. }
  107050. ctx = graphql.WithFieldContext(ctx, fc)
  107051. defer func() {
  107052. if r := recover(); r != nil {
  107053. ec.Error(ctx, ec.Recover(ctx, r))
  107054. ret = graphql.Null
  107055. }
  107056. }()
  107057. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  107058. ctx = rctx // use context from middleware stack in children
  107059. return obj.SellingPlanGroups, nil
  107060. })
  107061. if err != nil {
  107062. ec.Error(ctx, err)
  107063. return graphql.Null
  107064. }
  107065. if resTmp == nil {
  107066. if !graphql.HasFieldError(ctx, fc) {
  107067. ec.Errorf(ctx, "must not be null")
  107068. }
  107069. return graphql.Null
  107070. }
  107071. res := resTmp.(*SellingPlanGroupConnection)
  107072. fc.Result = res
  107073. return ec.marshalNSellingPlanGroupConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanGroupConnection(ctx, field.Selections, res)
  107074. }
  107075. func (ec *executionContext) fieldContext_ProductVariant_sellingPlanGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  107076. fc = &graphql.FieldContext{
  107077. Object: "ProductVariant",
  107078. Field: field,
  107079. IsMethod: false,
  107080. IsResolver: false,
  107081. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  107082. switch field.Name {
  107083. case "edges":
  107084. return ec.fieldContext_SellingPlanGroupConnection_edges(ctx, field)
  107085. case "nodes":
  107086. return ec.fieldContext_SellingPlanGroupConnection_nodes(ctx, field)
  107087. case "pageInfo":
  107088. return ec.fieldContext_SellingPlanGroupConnection_pageInfo(ctx, field)
  107089. }
  107090. return nil, fmt.Errorf("no field named %q was found under type SellingPlanGroupConnection", field.Name)
  107091. },
  107092. }
  107093. defer func() {
  107094. if r := recover(); r != nil {
  107095. err = ec.Recover(ctx, r)
  107096. ec.Error(ctx, err)
  107097. }
  107098. }()
  107099. ctx = graphql.WithFieldContext(ctx, fc)
  107100. if fc.Args, err = ec.field_ProductVariant_sellingPlanGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  107101. ec.Error(ctx, err)
  107102. return
  107103. }
  107104. return fc, nil
  107105. }
  107106. func (ec *executionContext) _ProductVariant_sku(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  107107. fc, err := ec.fieldContext_ProductVariant_sku(ctx, field)
  107108. if err != nil {
  107109. return graphql.Null
  107110. }
  107111. ctx = graphql.WithFieldContext(ctx, fc)
  107112. defer func() {
  107113. if r := recover(); r != nil {
  107114. ec.Error(ctx, ec.Recover(ctx, r))
  107115. ret = graphql.Null
  107116. }
  107117. }()
  107118. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  107119. ctx = rctx // use context from middleware stack in children
  107120. return obj.Sku, nil
  107121. })
  107122. if err != nil {
  107123. ec.Error(ctx, err)
  107124. return graphql.Null
  107125. }
  107126. if resTmp == nil {
  107127. return graphql.Null
  107128. }
  107129. res := resTmp.(*string)
  107130. fc.Result = res
  107131. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  107132. }
  107133. func (ec *executionContext) fieldContext_ProductVariant_sku(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  107134. fc = &graphql.FieldContext{
  107135. Object: "ProductVariant",
  107136. Field: field,
  107137. IsMethod: false,
  107138. IsResolver: false,
  107139. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  107140. return nil, errors.New("field of type String does not have child fields")
  107141. },
  107142. }
  107143. return fc, nil
  107144. }
  107145. func (ec *executionContext) _ProductVariant_taxCode(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  107146. fc, err := ec.fieldContext_ProductVariant_taxCode(ctx, field)
  107147. if err != nil {
  107148. return graphql.Null
  107149. }
  107150. ctx = graphql.WithFieldContext(ctx, fc)
  107151. defer func() {
  107152. if r := recover(); r != nil {
  107153. ec.Error(ctx, ec.Recover(ctx, r))
  107154. ret = graphql.Null
  107155. }
  107156. }()
  107157. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  107158. ctx = rctx // use context from middleware stack in children
  107159. return obj.TaxCode, nil
  107160. })
  107161. if err != nil {
  107162. ec.Error(ctx, err)
  107163. return graphql.Null
  107164. }
  107165. if resTmp == nil {
  107166. return graphql.Null
  107167. }
  107168. res := resTmp.(*string)
  107169. fc.Result = res
  107170. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  107171. }
  107172. func (ec *executionContext) fieldContext_ProductVariant_taxCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  107173. fc = &graphql.FieldContext{
  107174. Object: "ProductVariant",
  107175. Field: field,
  107176. IsMethod: false,
  107177. IsResolver: false,
  107178. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  107179. return nil, errors.New("field of type String does not have child fields")
  107180. },
  107181. }
  107182. return fc, nil
  107183. }
  107184. func (ec *executionContext) _ProductVariant_taxable(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  107185. fc, err := ec.fieldContext_ProductVariant_taxable(ctx, field)
  107186. if err != nil {
  107187. return graphql.Null
  107188. }
  107189. ctx = graphql.WithFieldContext(ctx, fc)
  107190. defer func() {
  107191. if r := recover(); r != nil {
  107192. ec.Error(ctx, ec.Recover(ctx, r))
  107193. ret = graphql.Null
  107194. }
  107195. }()
  107196. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  107197. ctx = rctx // use context from middleware stack in children
  107198. return obj.Taxable, nil
  107199. })
  107200. if err != nil {
  107201. ec.Error(ctx, err)
  107202. return graphql.Null
  107203. }
  107204. if resTmp == nil {
  107205. if !graphql.HasFieldError(ctx, fc) {
  107206. ec.Errorf(ctx, "must not be null")
  107207. }
  107208. return graphql.Null
  107209. }
  107210. res := resTmp.(bool)
  107211. fc.Result = res
  107212. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  107213. }
  107214. func (ec *executionContext) fieldContext_ProductVariant_taxable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  107215. fc = &graphql.FieldContext{
  107216. Object: "ProductVariant",
  107217. Field: field,
  107218. IsMethod: false,
  107219. IsResolver: false,
  107220. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  107221. return nil, errors.New("field of type Boolean does not have child fields")
  107222. },
  107223. }
  107224. return fc, nil
  107225. }
  107226. func (ec *executionContext) _ProductVariant_title(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  107227. fc, err := ec.fieldContext_ProductVariant_title(ctx, field)
  107228. if err != nil {
  107229. return graphql.Null
  107230. }
  107231. ctx = graphql.WithFieldContext(ctx, fc)
  107232. defer func() {
  107233. if r := recover(); r != nil {
  107234. ec.Error(ctx, ec.Recover(ctx, r))
  107235. ret = graphql.Null
  107236. }
  107237. }()
  107238. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  107239. ctx = rctx // use context from middleware stack in children
  107240. return obj.Title, nil
  107241. })
  107242. if err != nil {
  107243. ec.Error(ctx, err)
  107244. return graphql.Null
  107245. }
  107246. if resTmp == nil {
  107247. if !graphql.HasFieldError(ctx, fc) {
  107248. ec.Errorf(ctx, "must not be null")
  107249. }
  107250. return graphql.Null
  107251. }
  107252. res := resTmp.(string)
  107253. fc.Result = res
  107254. return ec.marshalNString2string(ctx, field.Selections, res)
  107255. }
  107256. func (ec *executionContext) fieldContext_ProductVariant_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  107257. fc = &graphql.FieldContext{
  107258. Object: "ProductVariant",
  107259. Field: field,
  107260. IsMethod: false,
  107261. IsResolver: false,
  107262. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  107263. return nil, errors.New("field of type String does not have child fields")
  107264. },
  107265. }
  107266. return fc, nil
  107267. }
  107268. func (ec *executionContext) _ProductVariant_translations(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  107269. fc, err := ec.fieldContext_ProductVariant_translations(ctx, field)
  107270. if err != nil {
  107271. return graphql.Null
  107272. }
  107273. ctx = graphql.WithFieldContext(ctx, fc)
  107274. defer func() {
  107275. if r := recover(); r != nil {
  107276. ec.Error(ctx, ec.Recover(ctx, r))
  107277. ret = graphql.Null
  107278. }
  107279. }()
  107280. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  107281. ctx = rctx // use context from middleware stack in children
  107282. return obj.Translations, nil
  107283. })
  107284. if err != nil {
  107285. ec.Error(ctx, err)
  107286. return graphql.Null
  107287. }
  107288. if resTmp == nil {
  107289. if !graphql.HasFieldError(ctx, fc) {
  107290. ec.Errorf(ctx, "must not be null")
  107291. }
  107292. return graphql.Null
  107293. }
  107294. res := resTmp.([]*PublishedTranslation)
  107295. fc.Result = res
  107296. return ec.marshalNPublishedTranslation2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublishedTranslationᚄ(ctx, field.Selections, res)
  107297. }
  107298. func (ec *executionContext) fieldContext_ProductVariant_translations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  107299. fc = &graphql.FieldContext{
  107300. Object: "ProductVariant",
  107301. Field: field,
  107302. IsMethod: false,
  107303. IsResolver: false,
  107304. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  107305. switch field.Name {
  107306. case "key":
  107307. return ec.fieldContext_PublishedTranslation_key(ctx, field)
  107308. case "locale":
  107309. return ec.fieldContext_PublishedTranslation_locale(ctx, field)
  107310. case "marketId":
  107311. return ec.fieldContext_PublishedTranslation_marketId(ctx, field)
  107312. case "value":
  107313. return ec.fieldContext_PublishedTranslation_value(ctx, field)
  107314. }
  107315. return nil, fmt.Errorf("no field named %q was found under type PublishedTranslation", field.Name)
  107316. },
  107317. }
  107318. defer func() {
  107319. if r := recover(); r != nil {
  107320. err = ec.Recover(ctx, r)
  107321. ec.Error(ctx, err)
  107322. }
  107323. }()
  107324. ctx = graphql.WithFieldContext(ctx, fc)
  107325. if fc.Args, err = ec.field_ProductVariant_translations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  107326. ec.Error(ctx, err)
  107327. return
  107328. }
  107329. return fc, nil
  107330. }
  107331. func (ec *executionContext) _ProductVariant_updatedAt(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  107332. fc, err := ec.fieldContext_ProductVariant_updatedAt(ctx, field)
  107333. if err != nil {
  107334. return graphql.Null
  107335. }
  107336. ctx = graphql.WithFieldContext(ctx, fc)
  107337. defer func() {
  107338. if r := recover(); r != nil {
  107339. ec.Error(ctx, ec.Recover(ctx, r))
  107340. ret = graphql.Null
  107341. }
  107342. }()
  107343. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  107344. ctx = rctx // use context from middleware stack in children
  107345. return obj.UpdatedAt, nil
  107346. })
  107347. if err != nil {
  107348. ec.Error(ctx, err)
  107349. return graphql.Null
  107350. }
  107351. if resTmp == nil {
  107352. if !graphql.HasFieldError(ctx, fc) {
  107353. ec.Errorf(ctx, "must not be null")
  107354. }
  107355. return graphql.Null
  107356. }
  107357. res := resTmp.(string)
  107358. fc.Result = res
  107359. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  107360. }
  107361. func (ec *executionContext) fieldContext_ProductVariant_updatedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  107362. fc = &graphql.FieldContext{
  107363. Object: "ProductVariant",
  107364. Field: field,
  107365. IsMethod: false,
  107366. IsResolver: false,
  107367. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  107368. return nil, errors.New("field of type DateTime does not have child fields")
  107369. },
  107370. }
  107371. return fc, nil
  107372. }
  107373. func (ec *executionContext) _ProductVariant_weight(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  107374. fc, err := ec.fieldContext_ProductVariant_weight(ctx, field)
  107375. if err != nil {
  107376. return graphql.Null
  107377. }
  107378. ctx = graphql.WithFieldContext(ctx, fc)
  107379. defer func() {
  107380. if r := recover(); r != nil {
  107381. ec.Error(ctx, ec.Recover(ctx, r))
  107382. ret = graphql.Null
  107383. }
  107384. }()
  107385. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  107386. ctx = rctx // use context from middleware stack in children
  107387. return obj.Weight, nil
  107388. })
  107389. if err != nil {
  107390. ec.Error(ctx, err)
  107391. return graphql.Null
  107392. }
  107393. if resTmp == nil {
  107394. return graphql.Null
  107395. }
  107396. res := resTmp.(*float64)
  107397. fc.Result = res
  107398. return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res)
  107399. }
  107400. func (ec *executionContext) fieldContext_ProductVariant_weight(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  107401. fc = &graphql.FieldContext{
  107402. Object: "ProductVariant",
  107403. Field: field,
  107404. IsMethod: false,
  107405. IsResolver: false,
  107406. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  107407. return nil, errors.New("field of type Float does not have child fields")
  107408. },
  107409. }
  107410. return fc, nil
  107411. }
  107412. func (ec *executionContext) _ProductVariant_weightUnit(ctx context.Context, field graphql.CollectedField, obj *ProductVariant) (ret graphql.Marshaler) {
  107413. fc, err := ec.fieldContext_ProductVariant_weightUnit(ctx, field)
  107414. if err != nil {
  107415. return graphql.Null
  107416. }
  107417. ctx = graphql.WithFieldContext(ctx, fc)
  107418. defer func() {
  107419. if r := recover(); r != nil {
  107420. ec.Error(ctx, ec.Recover(ctx, r))
  107421. ret = graphql.Null
  107422. }
  107423. }()
  107424. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  107425. ctx = rctx // use context from middleware stack in children
  107426. return obj.WeightUnit, nil
  107427. })
  107428. if err != nil {
  107429. ec.Error(ctx, err)
  107430. return graphql.Null
  107431. }
  107432. if resTmp == nil {
  107433. if !graphql.HasFieldError(ctx, fc) {
  107434. ec.Errorf(ctx, "must not be null")
  107435. }
  107436. return graphql.Null
  107437. }
  107438. res := resTmp.(WeightUnit)
  107439. fc.Result = res
  107440. return ec.marshalNWeightUnit2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐWeightUnit(ctx, field.Selections, res)
  107441. }
  107442. func (ec *executionContext) fieldContext_ProductVariant_weightUnit(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  107443. fc = &graphql.FieldContext{
  107444. Object: "ProductVariant",
  107445. Field: field,
  107446. IsMethod: false,
  107447. IsResolver: false,
  107448. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  107449. return nil, errors.New("field of type WeightUnit does not have child fields")
  107450. },
  107451. }
  107452. return fc, nil
  107453. }
  107454. func (ec *executionContext) _ProductVariantConnection_edges(ctx context.Context, field graphql.CollectedField, obj *ProductVariantConnection) (ret graphql.Marshaler) {
  107455. fc, err := ec.fieldContext_ProductVariantConnection_edges(ctx, field)
  107456. if err != nil {
  107457. return graphql.Null
  107458. }
  107459. ctx = graphql.WithFieldContext(ctx, fc)
  107460. defer func() {
  107461. if r := recover(); r != nil {
  107462. ec.Error(ctx, ec.Recover(ctx, r))
  107463. ret = graphql.Null
  107464. }
  107465. }()
  107466. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  107467. ctx = rctx // use context from middleware stack in children
  107468. return obj.Edges, nil
  107469. })
  107470. if err != nil {
  107471. ec.Error(ctx, err)
  107472. return graphql.Null
  107473. }
  107474. if resTmp == nil {
  107475. if !graphql.HasFieldError(ctx, fc) {
  107476. ec.Errorf(ctx, "must not be null")
  107477. }
  107478. return graphql.Null
  107479. }
  107480. res := resTmp.([]*ProductVariantEdge)
  107481. fc.Result = res
  107482. return ec.marshalNProductVariantEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantEdgeᚄ(ctx, field.Selections, res)
  107483. }
  107484. func (ec *executionContext) fieldContext_ProductVariantConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  107485. fc = &graphql.FieldContext{
  107486. Object: "ProductVariantConnection",
  107487. Field: field,
  107488. IsMethod: false,
  107489. IsResolver: false,
  107490. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  107491. switch field.Name {
  107492. case "cursor":
  107493. return ec.fieldContext_ProductVariantEdge_cursor(ctx, field)
  107494. case "node":
  107495. return ec.fieldContext_ProductVariantEdge_node(ctx, field)
  107496. }
  107497. return nil, fmt.Errorf("no field named %q was found under type ProductVariantEdge", field.Name)
  107498. },
  107499. }
  107500. return fc, nil
  107501. }
  107502. func (ec *executionContext) _ProductVariantConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *ProductVariantConnection) (ret graphql.Marshaler) {
  107503. fc, err := ec.fieldContext_ProductVariantConnection_nodes(ctx, field)
  107504. if err != nil {
  107505. return graphql.Null
  107506. }
  107507. ctx = graphql.WithFieldContext(ctx, fc)
  107508. defer func() {
  107509. if r := recover(); r != nil {
  107510. ec.Error(ctx, ec.Recover(ctx, r))
  107511. ret = graphql.Null
  107512. }
  107513. }()
  107514. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  107515. ctx = rctx // use context from middleware stack in children
  107516. return obj.Nodes, nil
  107517. })
  107518. if err != nil {
  107519. ec.Error(ctx, err)
  107520. return graphql.Null
  107521. }
  107522. if resTmp == nil {
  107523. if !graphql.HasFieldError(ctx, fc) {
  107524. ec.Errorf(ctx, "must not be null")
  107525. }
  107526. return graphql.Null
  107527. }
  107528. res := resTmp.([]*ProductVariant)
  107529. fc.Result = res
  107530. return ec.marshalNProductVariant2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantᚄ(ctx, field.Selections, res)
  107531. }
  107532. func (ec *executionContext) fieldContext_ProductVariantConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  107533. fc = &graphql.FieldContext{
  107534. Object: "ProductVariantConnection",
  107535. Field: field,
  107536. IsMethod: false,
  107537. IsResolver: false,
  107538. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  107539. switch field.Name {
  107540. case "availableForSale":
  107541. return ec.fieldContext_ProductVariant_availableForSale(ctx, field)
  107542. case "barcode":
  107543. return ec.fieldContext_ProductVariant_barcode(ctx, field)
  107544. case "compareAtPrice":
  107545. return ec.fieldContext_ProductVariant_compareAtPrice(ctx, field)
  107546. case "contextualPricing":
  107547. return ec.fieldContext_ProductVariant_contextualPricing(ctx, field)
  107548. case "createdAt":
  107549. return ec.fieldContext_ProductVariant_createdAt(ctx, field)
  107550. case "defaultCursor":
  107551. return ec.fieldContext_ProductVariant_defaultCursor(ctx, field)
  107552. case "deliveryProfile":
  107553. return ec.fieldContext_ProductVariant_deliveryProfile(ctx, field)
  107554. case "displayName":
  107555. return ec.fieldContext_ProductVariant_displayName(ctx, field)
  107556. case "fulfillmentServiceEditable":
  107557. return ec.fieldContext_ProductVariant_fulfillmentServiceEditable(ctx, field)
  107558. case "id":
  107559. return ec.fieldContext_ProductVariant_id(ctx, field)
  107560. case "image":
  107561. return ec.fieldContext_ProductVariant_image(ctx, field)
  107562. case "inventoryItem":
  107563. return ec.fieldContext_ProductVariant_inventoryItem(ctx, field)
  107564. case "inventoryPolicy":
  107565. return ec.fieldContext_ProductVariant_inventoryPolicy(ctx, field)
  107566. case "inventoryQuantity":
  107567. return ec.fieldContext_ProductVariant_inventoryQuantity(ctx, field)
  107568. case "legacyResourceId":
  107569. return ec.fieldContext_ProductVariant_legacyResourceId(ctx, field)
  107570. case "media":
  107571. return ec.fieldContext_ProductVariant_media(ctx, field)
  107572. case "metafield":
  107573. return ec.fieldContext_ProductVariant_metafield(ctx, field)
  107574. case "metafieldDefinitions":
  107575. return ec.fieldContext_ProductVariant_metafieldDefinitions(ctx, field)
  107576. case "metafields":
  107577. return ec.fieldContext_ProductVariant_metafields(ctx, field)
  107578. case "position":
  107579. return ec.fieldContext_ProductVariant_position(ctx, field)
  107580. case "price":
  107581. return ec.fieldContext_ProductVariant_price(ctx, field)
  107582. case "privateMetafield":
  107583. return ec.fieldContext_ProductVariant_privateMetafield(ctx, field)
  107584. case "privateMetafields":
  107585. return ec.fieldContext_ProductVariant_privateMetafields(ctx, field)
  107586. case "product":
  107587. return ec.fieldContext_ProductVariant_product(ctx, field)
  107588. case "selectedOptions":
  107589. return ec.fieldContext_ProductVariant_selectedOptions(ctx, field)
  107590. case "sellableOnlineQuantity":
  107591. return ec.fieldContext_ProductVariant_sellableOnlineQuantity(ctx, field)
  107592. case "sellingPlanGroupCount":
  107593. return ec.fieldContext_ProductVariant_sellingPlanGroupCount(ctx, field)
  107594. case "sellingPlanGroups":
  107595. return ec.fieldContext_ProductVariant_sellingPlanGroups(ctx, field)
  107596. case "sku":
  107597. return ec.fieldContext_ProductVariant_sku(ctx, field)
  107598. case "taxCode":
  107599. return ec.fieldContext_ProductVariant_taxCode(ctx, field)
  107600. case "taxable":
  107601. return ec.fieldContext_ProductVariant_taxable(ctx, field)
  107602. case "title":
  107603. return ec.fieldContext_ProductVariant_title(ctx, field)
  107604. case "translations":
  107605. return ec.fieldContext_ProductVariant_translations(ctx, field)
  107606. case "updatedAt":
  107607. return ec.fieldContext_ProductVariant_updatedAt(ctx, field)
  107608. case "weight":
  107609. return ec.fieldContext_ProductVariant_weight(ctx, field)
  107610. case "weightUnit":
  107611. return ec.fieldContext_ProductVariant_weightUnit(ctx, field)
  107612. }
  107613. return nil, fmt.Errorf("no field named %q was found under type ProductVariant", field.Name)
  107614. },
  107615. }
  107616. return fc, nil
  107617. }
  107618. func (ec *executionContext) _ProductVariantConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *ProductVariantConnection) (ret graphql.Marshaler) {
  107619. fc, err := ec.fieldContext_ProductVariantConnection_pageInfo(ctx, field)
  107620. if err != nil {
  107621. return graphql.Null
  107622. }
  107623. ctx = graphql.WithFieldContext(ctx, fc)
  107624. defer func() {
  107625. if r := recover(); r != nil {
  107626. ec.Error(ctx, ec.Recover(ctx, r))
  107627. ret = graphql.Null
  107628. }
  107629. }()
  107630. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  107631. ctx = rctx // use context from middleware stack in children
  107632. return obj.PageInfo, nil
  107633. })
  107634. if err != nil {
  107635. ec.Error(ctx, err)
  107636. return graphql.Null
  107637. }
  107638. if resTmp == nil {
  107639. if !graphql.HasFieldError(ctx, fc) {
  107640. ec.Errorf(ctx, "must not be null")
  107641. }
  107642. return graphql.Null
  107643. }
  107644. res := resTmp.(*PageInfo)
  107645. fc.Result = res
  107646. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  107647. }
  107648. func (ec *executionContext) fieldContext_ProductVariantConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  107649. fc = &graphql.FieldContext{
  107650. Object: "ProductVariantConnection",
  107651. Field: field,
  107652. IsMethod: false,
  107653. IsResolver: false,
  107654. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  107655. switch field.Name {
  107656. case "endCursor":
  107657. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  107658. case "hasNextPage":
  107659. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  107660. case "hasPreviousPage":
  107661. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  107662. case "startCursor":
  107663. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  107664. }
  107665. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  107666. },
  107667. }
  107668. return fc, nil
  107669. }
  107670. func (ec *executionContext) _ProductVariantContextualPricing_compareAtPrice(ctx context.Context, field graphql.CollectedField, obj *ProductVariantContextualPricing) (ret graphql.Marshaler) {
  107671. fc, err := ec.fieldContext_ProductVariantContextualPricing_compareAtPrice(ctx, field)
  107672. if err != nil {
  107673. return graphql.Null
  107674. }
  107675. ctx = graphql.WithFieldContext(ctx, fc)
  107676. defer func() {
  107677. if r := recover(); r != nil {
  107678. ec.Error(ctx, ec.Recover(ctx, r))
  107679. ret = graphql.Null
  107680. }
  107681. }()
  107682. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  107683. ctx = rctx // use context from middleware stack in children
  107684. return obj.CompareAtPrice, nil
  107685. })
  107686. if err != nil {
  107687. ec.Error(ctx, err)
  107688. return graphql.Null
  107689. }
  107690. if resTmp == nil {
  107691. return graphql.Null
  107692. }
  107693. res := resTmp.(*MoneyV2)
  107694. fc.Result = res
  107695. return ec.marshalOMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  107696. }
  107697. func (ec *executionContext) fieldContext_ProductVariantContextualPricing_compareAtPrice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  107698. fc = &graphql.FieldContext{
  107699. Object: "ProductVariantContextualPricing",
  107700. Field: field,
  107701. IsMethod: false,
  107702. IsResolver: false,
  107703. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  107704. switch field.Name {
  107705. case "amount":
  107706. return ec.fieldContext_MoneyV2_amount(ctx, field)
  107707. case "currencyCode":
  107708. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  107709. }
  107710. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  107711. },
  107712. }
  107713. return fc, nil
  107714. }
  107715. func (ec *executionContext) _ProductVariantContextualPricing_price(ctx context.Context, field graphql.CollectedField, obj *ProductVariantContextualPricing) (ret graphql.Marshaler) {
  107716. fc, err := ec.fieldContext_ProductVariantContextualPricing_price(ctx, field)
  107717. if err != nil {
  107718. return graphql.Null
  107719. }
  107720. ctx = graphql.WithFieldContext(ctx, fc)
  107721. defer func() {
  107722. if r := recover(); r != nil {
  107723. ec.Error(ctx, ec.Recover(ctx, r))
  107724. ret = graphql.Null
  107725. }
  107726. }()
  107727. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  107728. ctx = rctx // use context from middleware stack in children
  107729. return obj.Price, nil
  107730. })
  107731. if err != nil {
  107732. ec.Error(ctx, err)
  107733. return graphql.Null
  107734. }
  107735. if resTmp == nil {
  107736. if !graphql.HasFieldError(ctx, fc) {
  107737. ec.Errorf(ctx, "must not be null")
  107738. }
  107739. return graphql.Null
  107740. }
  107741. res := resTmp.(*MoneyV2)
  107742. fc.Result = res
  107743. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  107744. }
  107745. func (ec *executionContext) fieldContext_ProductVariantContextualPricing_price(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  107746. fc = &graphql.FieldContext{
  107747. Object: "ProductVariantContextualPricing",
  107748. Field: field,
  107749. IsMethod: false,
  107750. IsResolver: false,
  107751. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  107752. switch field.Name {
  107753. case "amount":
  107754. return ec.fieldContext_MoneyV2_amount(ctx, field)
  107755. case "currencyCode":
  107756. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  107757. }
  107758. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  107759. },
  107760. }
  107761. return fc, nil
  107762. }
  107763. func (ec *executionContext) _ProductVariantEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *ProductVariantEdge) (ret graphql.Marshaler) {
  107764. fc, err := ec.fieldContext_ProductVariantEdge_cursor(ctx, field)
  107765. if err != nil {
  107766. return graphql.Null
  107767. }
  107768. ctx = graphql.WithFieldContext(ctx, fc)
  107769. defer func() {
  107770. if r := recover(); r != nil {
  107771. ec.Error(ctx, ec.Recover(ctx, r))
  107772. ret = graphql.Null
  107773. }
  107774. }()
  107775. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  107776. ctx = rctx // use context from middleware stack in children
  107777. return obj.Cursor, nil
  107778. })
  107779. if err != nil {
  107780. ec.Error(ctx, err)
  107781. return graphql.Null
  107782. }
  107783. if resTmp == nil {
  107784. if !graphql.HasFieldError(ctx, fc) {
  107785. ec.Errorf(ctx, "must not be null")
  107786. }
  107787. return graphql.Null
  107788. }
  107789. res := resTmp.(string)
  107790. fc.Result = res
  107791. return ec.marshalNString2string(ctx, field.Selections, res)
  107792. }
  107793. func (ec *executionContext) fieldContext_ProductVariantEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  107794. fc = &graphql.FieldContext{
  107795. Object: "ProductVariantEdge",
  107796. Field: field,
  107797. IsMethod: false,
  107798. IsResolver: false,
  107799. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  107800. return nil, errors.New("field of type String does not have child fields")
  107801. },
  107802. }
  107803. return fc, nil
  107804. }
  107805. func (ec *executionContext) _ProductVariantEdge_node(ctx context.Context, field graphql.CollectedField, obj *ProductVariantEdge) (ret graphql.Marshaler) {
  107806. fc, err := ec.fieldContext_ProductVariantEdge_node(ctx, field)
  107807. if err != nil {
  107808. return graphql.Null
  107809. }
  107810. ctx = graphql.WithFieldContext(ctx, fc)
  107811. defer func() {
  107812. if r := recover(); r != nil {
  107813. ec.Error(ctx, ec.Recover(ctx, r))
  107814. ret = graphql.Null
  107815. }
  107816. }()
  107817. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  107818. ctx = rctx // use context from middleware stack in children
  107819. return obj.Node, nil
  107820. })
  107821. if err != nil {
  107822. ec.Error(ctx, err)
  107823. return graphql.Null
  107824. }
  107825. if resTmp == nil {
  107826. if !graphql.HasFieldError(ctx, fc) {
  107827. ec.Errorf(ctx, "must not be null")
  107828. }
  107829. return graphql.Null
  107830. }
  107831. res := resTmp.(*ProductVariant)
  107832. fc.Result = res
  107833. return ec.marshalNProductVariant2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariant(ctx, field.Selections, res)
  107834. }
  107835. func (ec *executionContext) fieldContext_ProductVariantEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  107836. fc = &graphql.FieldContext{
  107837. Object: "ProductVariantEdge",
  107838. Field: field,
  107839. IsMethod: false,
  107840. IsResolver: false,
  107841. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  107842. switch field.Name {
  107843. case "availableForSale":
  107844. return ec.fieldContext_ProductVariant_availableForSale(ctx, field)
  107845. case "barcode":
  107846. return ec.fieldContext_ProductVariant_barcode(ctx, field)
  107847. case "compareAtPrice":
  107848. return ec.fieldContext_ProductVariant_compareAtPrice(ctx, field)
  107849. case "contextualPricing":
  107850. return ec.fieldContext_ProductVariant_contextualPricing(ctx, field)
  107851. case "createdAt":
  107852. return ec.fieldContext_ProductVariant_createdAt(ctx, field)
  107853. case "defaultCursor":
  107854. return ec.fieldContext_ProductVariant_defaultCursor(ctx, field)
  107855. case "deliveryProfile":
  107856. return ec.fieldContext_ProductVariant_deliveryProfile(ctx, field)
  107857. case "displayName":
  107858. return ec.fieldContext_ProductVariant_displayName(ctx, field)
  107859. case "fulfillmentServiceEditable":
  107860. return ec.fieldContext_ProductVariant_fulfillmentServiceEditable(ctx, field)
  107861. case "id":
  107862. return ec.fieldContext_ProductVariant_id(ctx, field)
  107863. case "image":
  107864. return ec.fieldContext_ProductVariant_image(ctx, field)
  107865. case "inventoryItem":
  107866. return ec.fieldContext_ProductVariant_inventoryItem(ctx, field)
  107867. case "inventoryPolicy":
  107868. return ec.fieldContext_ProductVariant_inventoryPolicy(ctx, field)
  107869. case "inventoryQuantity":
  107870. return ec.fieldContext_ProductVariant_inventoryQuantity(ctx, field)
  107871. case "legacyResourceId":
  107872. return ec.fieldContext_ProductVariant_legacyResourceId(ctx, field)
  107873. case "media":
  107874. return ec.fieldContext_ProductVariant_media(ctx, field)
  107875. case "metafield":
  107876. return ec.fieldContext_ProductVariant_metafield(ctx, field)
  107877. case "metafieldDefinitions":
  107878. return ec.fieldContext_ProductVariant_metafieldDefinitions(ctx, field)
  107879. case "metafields":
  107880. return ec.fieldContext_ProductVariant_metafields(ctx, field)
  107881. case "position":
  107882. return ec.fieldContext_ProductVariant_position(ctx, field)
  107883. case "price":
  107884. return ec.fieldContext_ProductVariant_price(ctx, field)
  107885. case "privateMetafield":
  107886. return ec.fieldContext_ProductVariant_privateMetafield(ctx, field)
  107887. case "privateMetafields":
  107888. return ec.fieldContext_ProductVariant_privateMetafields(ctx, field)
  107889. case "product":
  107890. return ec.fieldContext_ProductVariant_product(ctx, field)
  107891. case "selectedOptions":
  107892. return ec.fieldContext_ProductVariant_selectedOptions(ctx, field)
  107893. case "sellableOnlineQuantity":
  107894. return ec.fieldContext_ProductVariant_sellableOnlineQuantity(ctx, field)
  107895. case "sellingPlanGroupCount":
  107896. return ec.fieldContext_ProductVariant_sellingPlanGroupCount(ctx, field)
  107897. case "sellingPlanGroups":
  107898. return ec.fieldContext_ProductVariant_sellingPlanGroups(ctx, field)
  107899. case "sku":
  107900. return ec.fieldContext_ProductVariant_sku(ctx, field)
  107901. case "taxCode":
  107902. return ec.fieldContext_ProductVariant_taxCode(ctx, field)
  107903. case "taxable":
  107904. return ec.fieldContext_ProductVariant_taxable(ctx, field)
  107905. case "title":
  107906. return ec.fieldContext_ProductVariant_title(ctx, field)
  107907. case "translations":
  107908. return ec.fieldContext_ProductVariant_translations(ctx, field)
  107909. case "updatedAt":
  107910. return ec.fieldContext_ProductVariant_updatedAt(ctx, field)
  107911. case "weight":
  107912. return ec.fieldContext_ProductVariant_weight(ctx, field)
  107913. case "weightUnit":
  107914. return ec.fieldContext_ProductVariant_weightUnit(ctx, field)
  107915. }
  107916. return nil, fmt.Errorf("no field named %q was found under type ProductVariant", field.Name)
  107917. },
  107918. }
  107919. return fc, nil
  107920. }
  107921. func (ec *executionContext) _ProductVariantsBulkCreateUserError_code(ctx context.Context, field graphql.CollectedField, obj *ProductVariantsBulkCreateUserError) (ret graphql.Marshaler) {
  107922. fc, err := ec.fieldContext_ProductVariantsBulkCreateUserError_code(ctx, field)
  107923. if err != nil {
  107924. return graphql.Null
  107925. }
  107926. ctx = graphql.WithFieldContext(ctx, fc)
  107927. defer func() {
  107928. if r := recover(); r != nil {
  107929. ec.Error(ctx, ec.Recover(ctx, r))
  107930. ret = graphql.Null
  107931. }
  107932. }()
  107933. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  107934. ctx = rctx // use context from middleware stack in children
  107935. return obj.Code, nil
  107936. })
  107937. if err != nil {
  107938. ec.Error(ctx, err)
  107939. return graphql.Null
  107940. }
  107941. if resTmp == nil {
  107942. return graphql.Null
  107943. }
  107944. res := resTmp.(*ProductVariantsBulkCreateUserErrorCode)
  107945. fc.Result = res
  107946. return ec.marshalOProductVariantsBulkCreateUserErrorCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantsBulkCreateUserErrorCode(ctx, field.Selections, res)
  107947. }
  107948. func (ec *executionContext) fieldContext_ProductVariantsBulkCreateUserError_code(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  107949. fc = &graphql.FieldContext{
  107950. Object: "ProductVariantsBulkCreateUserError",
  107951. Field: field,
  107952. IsMethod: false,
  107953. IsResolver: false,
  107954. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  107955. return nil, errors.New("field of type ProductVariantsBulkCreateUserErrorCode does not have child fields")
  107956. },
  107957. }
  107958. return fc, nil
  107959. }
  107960. func (ec *executionContext) _ProductVariantsBulkCreateUserError_field(ctx context.Context, field graphql.CollectedField, obj *ProductVariantsBulkCreateUserError) (ret graphql.Marshaler) {
  107961. fc, err := ec.fieldContext_ProductVariantsBulkCreateUserError_field(ctx, field)
  107962. if err != nil {
  107963. return graphql.Null
  107964. }
  107965. ctx = graphql.WithFieldContext(ctx, fc)
  107966. defer func() {
  107967. if r := recover(); r != nil {
  107968. ec.Error(ctx, ec.Recover(ctx, r))
  107969. ret = graphql.Null
  107970. }
  107971. }()
  107972. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  107973. ctx = rctx // use context from middleware stack in children
  107974. return obj.Field, nil
  107975. })
  107976. if err != nil {
  107977. ec.Error(ctx, err)
  107978. return graphql.Null
  107979. }
  107980. if resTmp == nil {
  107981. return graphql.Null
  107982. }
  107983. res := resTmp.([]string)
  107984. fc.Result = res
  107985. return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
  107986. }
  107987. func (ec *executionContext) fieldContext_ProductVariantsBulkCreateUserError_field(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  107988. fc = &graphql.FieldContext{
  107989. Object: "ProductVariantsBulkCreateUserError",
  107990. Field: field,
  107991. IsMethod: false,
  107992. IsResolver: false,
  107993. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  107994. return nil, errors.New("field of type String does not have child fields")
  107995. },
  107996. }
  107997. return fc, nil
  107998. }
  107999. func (ec *executionContext) _ProductVariantsBulkCreateUserError_message(ctx context.Context, field graphql.CollectedField, obj *ProductVariantsBulkCreateUserError) (ret graphql.Marshaler) {
  108000. fc, err := ec.fieldContext_ProductVariantsBulkCreateUserError_message(ctx, field)
  108001. if err != nil {
  108002. return graphql.Null
  108003. }
  108004. ctx = graphql.WithFieldContext(ctx, fc)
  108005. defer func() {
  108006. if r := recover(); r != nil {
  108007. ec.Error(ctx, ec.Recover(ctx, r))
  108008. ret = graphql.Null
  108009. }
  108010. }()
  108011. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  108012. ctx = rctx // use context from middleware stack in children
  108013. return obj.Message, nil
  108014. })
  108015. if err != nil {
  108016. ec.Error(ctx, err)
  108017. return graphql.Null
  108018. }
  108019. if resTmp == nil {
  108020. if !graphql.HasFieldError(ctx, fc) {
  108021. ec.Errorf(ctx, "must not be null")
  108022. }
  108023. return graphql.Null
  108024. }
  108025. res := resTmp.(string)
  108026. fc.Result = res
  108027. return ec.marshalNString2string(ctx, field.Selections, res)
  108028. }
  108029. func (ec *executionContext) fieldContext_ProductVariantsBulkCreateUserError_message(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  108030. fc = &graphql.FieldContext{
  108031. Object: "ProductVariantsBulkCreateUserError",
  108032. Field: field,
  108033. IsMethod: false,
  108034. IsResolver: false,
  108035. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  108036. return nil, errors.New("field of type String does not have child fields")
  108037. },
  108038. }
  108039. return fc, nil
  108040. }
  108041. func (ec *executionContext) _ProductVariantsBulkDeleteUserError_code(ctx context.Context, field graphql.CollectedField, obj *ProductVariantsBulkDeleteUserError) (ret graphql.Marshaler) {
  108042. fc, err := ec.fieldContext_ProductVariantsBulkDeleteUserError_code(ctx, field)
  108043. if err != nil {
  108044. return graphql.Null
  108045. }
  108046. ctx = graphql.WithFieldContext(ctx, fc)
  108047. defer func() {
  108048. if r := recover(); r != nil {
  108049. ec.Error(ctx, ec.Recover(ctx, r))
  108050. ret = graphql.Null
  108051. }
  108052. }()
  108053. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  108054. ctx = rctx // use context from middleware stack in children
  108055. return obj.Code, nil
  108056. })
  108057. if err != nil {
  108058. ec.Error(ctx, err)
  108059. return graphql.Null
  108060. }
  108061. if resTmp == nil {
  108062. return graphql.Null
  108063. }
  108064. res := resTmp.(*ProductVariantsBulkDeleteUserErrorCode)
  108065. fc.Result = res
  108066. return ec.marshalOProductVariantsBulkDeleteUserErrorCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantsBulkDeleteUserErrorCode(ctx, field.Selections, res)
  108067. }
  108068. func (ec *executionContext) fieldContext_ProductVariantsBulkDeleteUserError_code(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  108069. fc = &graphql.FieldContext{
  108070. Object: "ProductVariantsBulkDeleteUserError",
  108071. Field: field,
  108072. IsMethod: false,
  108073. IsResolver: false,
  108074. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  108075. return nil, errors.New("field of type ProductVariantsBulkDeleteUserErrorCode does not have child fields")
  108076. },
  108077. }
  108078. return fc, nil
  108079. }
  108080. func (ec *executionContext) _ProductVariantsBulkDeleteUserError_field(ctx context.Context, field graphql.CollectedField, obj *ProductVariantsBulkDeleteUserError) (ret graphql.Marshaler) {
  108081. fc, err := ec.fieldContext_ProductVariantsBulkDeleteUserError_field(ctx, field)
  108082. if err != nil {
  108083. return graphql.Null
  108084. }
  108085. ctx = graphql.WithFieldContext(ctx, fc)
  108086. defer func() {
  108087. if r := recover(); r != nil {
  108088. ec.Error(ctx, ec.Recover(ctx, r))
  108089. ret = graphql.Null
  108090. }
  108091. }()
  108092. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  108093. ctx = rctx // use context from middleware stack in children
  108094. return obj.Field, nil
  108095. })
  108096. if err != nil {
  108097. ec.Error(ctx, err)
  108098. return graphql.Null
  108099. }
  108100. if resTmp == nil {
  108101. return graphql.Null
  108102. }
  108103. res := resTmp.([]string)
  108104. fc.Result = res
  108105. return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
  108106. }
  108107. func (ec *executionContext) fieldContext_ProductVariantsBulkDeleteUserError_field(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  108108. fc = &graphql.FieldContext{
  108109. Object: "ProductVariantsBulkDeleteUserError",
  108110. Field: field,
  108111. IsMethod: false,
  108112. IsResolver: false,
  108113. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  108114. return nil, errors.New("field of type String does not have child fields")
  108115. },
  108116. }
  108117. return fc, nil
  108118. }
  108119. func (ec *executionContext) _ProductVariantsBulkDeleteUserError_message(ctx context.Context, field graphql.CollectedField, obj *ProductVariantsBulkDeleteUserError) (ret graphql.Marshaler) {
  108120. fc, err := ec.fieldContext_ProductVariantsBulkDeleteUserError_message(ctx, field)
  108121. if err != nil {
  108122. return graphql.Null
  108123. }
  108124. ctx = graphql.WithFieldContext(ctx, fc)
  108125. defer func() {
  108126. if r := recover(); r != nil {
  108127. ec.Error(ctx, ec.Recover(ctx, r))
  108128. ret = graphql.Null
  108129. }
  108130. }()
  108131. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  108132. ctx = rctx // use context from middleware stack in children
  108133. return obj.Message, nil
  108134. })
  108135. if err != nil {
  108136. ec.Error(ctx, err)
  108137. return graphql.Null
  108138. }
  108139. if resTmp == nil {
  108140. if !graphql.HasFieldError(ctx, fc) {
  108141. ec.Errorf(ctx, "must not be null")
  108142. }
  108143. return graphql.Null
  108144. }
  108145. res := resTmp.(string)
  108146. fc.Result = res
  108147. return ec.marshalNString2string(ctx, field.Selections, res)
  108148. }
  108149. func (ec *executionContext) fieldContext_ProductVariantsBulkDeleteUserError_message(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  108150. fc = &graphql.FieldContext{
  108151. Object: "ProductVariantsBulkDeleteUserError",
  108152. Field: field,
  108153. IsMethod: false,
  108154. IsResolver: false,
  108155. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  108156. return nil, errors.New("field of type String does not have child fields")
  108157. },
  108158. }
  108159. return fc, nil
  108160. }
  108161. func (ec *executionContext) _ProductVariantsBulkReorderUserError_code(ctx context.Context, field graphql.CollectedField, obj *ProductVariantsBulkReorderUserError) (ret graphql.Marshaler) {
  108162. fc, err := ec.fieldContext_ProductVariantsBulkReorderUserError_code(ctx, field)
  108163. if err != nil {
  108164. return graphql.Null
  108165. }
  108166. ctx = graphql.WithFieldContext(ctx, fc)
  108167. defer func() {
  108168. if r := recover(); r != nil {
  108169. ec.Error(ctx, ec.Recover(ctx, r))
  108170. ret = graphql.Null
  108171. }
  108172. }()
  108173. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  108174. ctx = rctx // use context from middleware stack in children
  108175. return obj.Code, nil
  108176. })
  108177. if err != nil {
  108178. ec.Error(ctx, err)
  108179. return graphql.Null
  108180. }
  108181. if resTmp == nil {
  108182. return graphql.Null
  108183. }
  108184. res := resTmp.(*ProductVariantsBulkReorderUserErrorCode)
  108185. fc.Result = res
  108186. return ec.marshalOProductVariantsBulkReorderUserErrorCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantsBulkReorderUserErrorCode(ctx, field.Selections, res)
  108187. }
  108188. func (ec *executionContext) fieldContext_ProductVariantsBulkReorderUserError_code(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  108189. fc = &graphql.FieldContext{
  108190. Object: "ProductVariantsBulkReorderUserError",
  108191. Field: field,
  108192. IsMethod: false,
  108193. IsResolver: false,
  108194. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  108195. return nil, errors.New("field of type ProductVariantsBulkReorderUserErrorCode does not have child fields")
  108196. },
  108197. }
  108198. return fc, nil
  108199. }
  108200. func (ec *executionContext) _ProductVariantsBulkReorderUserError_field(ctx context.Context, field graphql.CollectedField, obj *ProductVariantsBulkReorderUserError) (ret graphql.Marshaler) {
  108201. fc, err := ec.fieldContext_ProductVariantsBulkReorderUserError_field(ctx, field)
  108202. if err != nil {
  108203. return graphql.Null
  108204. }
  108205. ctx = graphql.WithFieldContext(ctx, fc)
  108206. defer func() {
  108207. if r := recover(); r != nil {
  108208. ec.Error(ctx, ec.Recover(ctx, r))
  108209. ret = graphql.Null
  108210. }
  108211. }()
  108212. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  108213. ctx = rctx // use context from middleware stack in children
  108214. return obj.Field, nil
  108215. })
  108216. if err != nil {
  108217. ec.Error(ctx, err)
  108218. return graphql.Null
  108219. }
  108220. if resTmp == nil {
  108221. return graphql.Null
  108222. }
  108223. res := resTmp.([]string)
  108224. fc.Result = res
  108225. return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
  108226. }
  108227. func (ec *executionContext) fieldContext_ProductVariantsBulkReorderUserError_field(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  108228. fc = &graphql.FieldContext{
  108229. Object: "ProductVariantsBulkReorderUserError",
  108230. Field: field,
  108231. IsMethod: false,
  108232. IsResolver: false,
  108233. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  108234. return nil, errors.New("field of type String does not have child fields")
  108235. },
  108236. }
  108237. return fc, nil
  108238. }
  108239. func (ec *executionContext) _ProductVariantsBulkReorderUserError_message(ctx context.Context, field graphql.CollectedField, obj *ProductVariantsBulkReorderUserError) (ret graphql.Marshaler) {
  108240. fc, err := ec.fieldContext_ProductVariantsBulkReorderUserError_message(ctx, field)
  108241. if err != nil {
  108242. return graphql.Null
  108243. }
  108244. ctx = graphql.WithFieldContext(ctx, fc)
  108245. defer func() {
  108246. if r := recover(); r != nil {
  108247. ec.Error(ctx, ec.Recover(ctx, r))
  108248. ret = graphql.Null
  108249. }
  108250. }()
  108251. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  108252. ctx = rctx // use context from middleware stack in children
  108253. return obj.Message, nil
  108254. })
  108255. if err != nil {
  108256. ec.Error(ctx, err)
  108257. return graphql.Null
  108258. }
  108259. if resTmp == nil {
  108260. if !graphql.HasFieldError(ctx, fc) {
  108261. ec.Errorf(ctx, "must not be null")
  108262. }
  108263. return graphql.Null
  108264. }
  108265. res := resTmp.(string)
  108266. fc.Result = res
  108267. return ec.marshalNString2string(ctx, field.Selections, res)
  108268. }
  108269. func (ec *executionContext) fieldContext_ProductVariantsBulkReorderUserError_message(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  108270. fc = &graphql.FieldContext{
  108271. Object: "ProductVariantsBulkReorderUserError",
  108272. Field: field,
  108273. IsMethod: false,
  108274. IsResolver: false,
  108275. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  108276. return nil, errors.New("field of type String does not have child fields")
  108277. },
  108278. }
  108279. return fc, nil
  108280. }
  108281. func (ec *executionContext) _ProductVariantsBulkUpdateUserError_code(ctx context.Context, field graphql.CollectedField, obj *ProductVariantsBulkUpdateUserError) (ret graphql.Marshaler) {
  108282. fc, err := ec.fieldContext_ProductVariantsBulkUpdateUserError_code(ctx, field)
  108283. if err != nil {
  108284. return graphql.Null
  108285. }
  108286. ctx = graphql.WithFieldContext(ctx, fc)
  108287. defer func() {
  108288. if r := recover(); r != nil {
  108289. ec.Error(ctx, ec.Recover(ctx, r))
  108290. ret = graphql.Null
  108291. }
  108292. }()
  108293. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  108294. ctx = rctx // use context from middleware stack in children
  108295. return obj.Code, nil
  108296. })
  108297. if err != nil {
  108298. ec.Error(ctx, err)
  108299. return graphql.Null
  108300. }
  108301. if resTmp == nil {
  108302. return graphql.Null
  108303. }
  108304. res := resTmp.(*ProductVariantsBulkUpdateUserErrorCode)
  108305. fc.Result = res
  108306. return ec.marshalOProductVariantsBulkUpdateUserErrorCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantsBulkUpdateUserErrorCode(ctx, field.Selections, res)
  108307. }
  108308. func (ec *executionContext) fieldContext_ProductVariantsBulkUpdateUserError_code(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  108309. fc = &graphql.FieldContext{
  108310. Object: "ProductVariantsBulkUpdateUserError",
  108311. Field: field,
  108312. IsMethod: false,
  108313. IsResolver: false,
  108314. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  108315. return nil, errors.New("field of type ProductVariantsBulkUpdateUserErrorCode does not have child fields")
  108316. },
  108317. }
  108318. return fc, nil
  108319. }
  108320. func (ec *executionContext) _ProductVariantsBulkUpdateUserError_field(ctx context.Context, field graphql.CollectedField, obj *ProductVariantsBulkUpdateUserError) (ret graphql.Marshaler) {
  108321. fc, err := ec.fieldContext_ProductVariantsBulkUpdateUserError_field(ctx, field)
  108322. if err != nil {
  108323. return graphql.Null
  108324. }
  108325. ctx = graphql.WithFieldContext(ctx, fc)
  108326. defer func() {
  108327. if r := recover(); r != nil {
  108328. ec.Error(ctx, ec.Recover(ctx, r))
  108329. ret = graphql.Null
  108330. }
  108331. }()
  108332. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  108333. ctx = rctx // use context from middleware stack in children
  108334. return obj.Field, nil
  108335. })
  108336. if err != nil {
  108337. ec.Error(ctx, err)
  108338. return graphql.Null
  108339. }
  108340. if resTmp == nil {
  108341. return graphql.Null
  108342. }
  108343. res := resTmp.([]string)
  108344. fc.Result = res
  108345. return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
  108346. }
  108347. func (ec *executionContext) fieldContext_ProductVariantsBulkUpdateUserError_field(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  108348. fc = &graphql.FieldContext{
  108349. Object: "ProductVariantsBulkUpdateUserError",
  108350. Field: field,
  108351. IsMethod: false,
  108352. IsResolver: false,
  108353. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  108354. return nil, errors.New("field of type String does not have child fields")
  108355. },
  108356. }
  108357. return fc, nil
  108358. }
  108359. func (ec *executionContext) _ProductVariantsBulkUpdateUserError_message(ctx context.Context, field graphql.CollectedField, obj *ProductVariantsBulkUpdateUserError) (ret graphql.Marshaler) {
  108360. fc, err := ec.fieldContext_ProductVariantsBulkUpdateUserError_message(ctx, field)
  108361. if err != nil {
  108362. return graphql.Null
  108363. }
  108364. ctx = graphql.WithFieldContext(ctx, fc)
  108365. defer func() {
  108366. if r := recover(); r != nil {
  108367. ec.Error(ctx, ec.Recover(ctx, r))
  108368. ret = graphql.Null
  108369. }
  108370. }()
  108371. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  108372. ctx = rctx // use context from middleware stack in children
  108373. return obj.Message, nil
  108374. })
  108375. if err != nil {
  108376. ec.Error(ctx, err)
  108377. return graphql.Null
  108378. }
  108379. if resTmp == nil {
  108380. if !graphql.HasFieldError(ctx, fc) {
  108381. ec.Errorf(ctx, "must not be null")
  108382. }
  108383. return graphql.Null
  108384. }
  108385. res := resTmp.(string)
  108386. fc.Result = res
  108387. return ec.marshalNString2string(ctx, field.Selections, res)
  108388. }
  108389. func (ec *executionContext) fieldContext_ProductVariantsBulkUpdateUserError_message(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  108390. fc = &graphql.FieldContext{
  108391. Object: "ProductVariantsBulkUpdateUserError",
  108392. Field: field,
  108393. IsMethod: false,
  108394. IsResolver: false,
  108395. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  108396. return nil, errors.New("field of type String does not have child fields")
  108397. },
  108398. }
  108399. return fc, nil
  108400. }
  108401. func (ec *executionContext) _Publication_app(ctx context.Context, field graphql.CollectedField, obj *Publication) (ret graphql.Marshaler) {
  108402. fc, err := ec.fieldContext_Publication_app(ctx, field)
  108403. if err != nil {
  108404. return graphql.Null
  108405. }
  108406. ctx = graphql.WithFieldContext(ctx, fc)
  108407. defer func() {
  108408. if r := recover(); r != nil {
  108409. ec.Error(ctx, ec.Recover(ctx, r))
  108410. ret = graphql.Null
  108411. }
  108412. }()
  108413. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  108414. ctx = rctx // use context from middleware stack in children
  108415. return obj.App, nil
  108416. })
  108417. if err != nil {
  108418. ec.Error(ctx, err)
  108419. return graphql.Null
  108420. }
  108421. if resTmp == nil {
  108422. if !graphql.HasFieldError(ctx, fc) {
  108423. ec.Errorf(ctx, "must not be null")
  108424. }
  108425. return graphql.Null
  108426. }
  108427. res := resTmp.(*App)
  108428. fc.Result = res
  108429. return ec.marshalNApp2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐApp(ctx, field.Selections, res)
  108430. }
  108431. func (ec *executionContext) fieldContext_Publication_app(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  108432. fc = &graphql.FieldContext{
  108433. Object: "Publication",
  108434. Field: field,
  108435. IsMethod: false,
  108436. IsResolver: false,
  108437. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  108438. switch field.Name {
  108439. case "apiKey":
  108440. return ec.fieldContext_App_apiKey(ctx, field)
  108441. case "appStoreAppUrl":
  108442. return ec.fieldContext_App_appStoreAppUrl(ctx, field)
  108443. case "appStoreDeveloperUrl":
  108444. return ec.fieldContext_App_appStoreDeveloperUrl(ctx, field)
  108445. case "availableAccessScopes":
  108446. return ec.fieldContext_App_availableAccessScopes(ctx, field)
  108447. case "banner":
  108448. return ec.fieldContext_App_banner(ctx, field)
  108449. case "description":
  108450. return ec.fieldContext_App_description(ctx, field)
  108451. case "developerName":
  108452. return ec.fieldContext_App_developerName(ctx, field)
  108453. case "developerType":
  108454. return ec.fieldContext_App_developerType(ctx, field)
  108455. case "embedded":
  108456. return ec.fieldContext_App_embedded(ctx, field)
  108457. case "failedRequirements":
  108458. return ec.fieldContext_App_failedRequirements(ctx, field)
  108459. case "features":
  108460. return ec.fieldContext_App_features(ctx, field)
  108461. case "feedback":
  108462. return ec.fieldContext_App_feedback(ctx, field)
  108463. case "handle":
  108464. return ec.fieldContext_App_handle(ctx, field)
  108465. case "icon":
  108466. return ec.fieldContext_App_icon(ctx, field)
  108467. case "id":
  108468. return ec.fieldContext_App_id(ctx, field)
  108469. case "installUrl":
  108470. return ec.fieldContext_App_installUrl(ctx, field)
  108471. case "installation":
  108472. return ec.fieldContext_App_installation(ctx, field)
  108473. case "isPostPurchaseAppInUse":
  108474. return ec.fieldContext_App_isPostPurchaseAppInUse(ctx, field)
  108475. case "previouslyInstalled":
  108476. return ec.fieldContext_App_previouslyInstalled(ctx, field)
  108477. case "pricingDetails":
  108478. return ec.fieldContext_App_pricingDetails(ctx, field)
  108479. case "pricingDetailsSummary":
  108480. return ec.fieldContext_App_pricingDetailsSummary(ctx, field)
  108481. case "privacyPolicyUrl":
  108482. return ec.fieldContext_App_privacyPolicyUrl(ctx, field)
  108483. case "publicCategory":
  108484. return ec.fieldContext_App_publicCategory(ctx, field)
  108485. case "published":
  108486. return ec.fieldContext_App_published(ctx, field)
  108487. case "requestedAccessScopes":
  108488. return ec.fieldContext_App_requestedAccessScopes(ctx, field)
  108489. case "screenshots":
  108490. return ec.fieldContext_App_screenshots(ctx, field)
  108491. case "shopifyDeveloped":
  108492. return ec.fieldContext_App_shopifyDeveloped(ctx, field)
  108493. case "title":
  108494. return ec.fieldContext_App_title(ctx, field)
  108495. case "uninstallMessage":
  108496. return ec.fieldContext_App_uninstallMessage(ctx, field)
  108497. case "webhookApiVersion":
  108498. return ec.fieldContext_App_webhookApiVersion(ctx, field)
  108499. }
  108500. return nil, fmt.Errorf("no field named %q was found under type App", field.Name)
  108501. },
  108502. }
  108503. return fc, nil
  108504. }
  108505. func (ec *executionContext) _Publication_collectionPublicationsV3(ctx context.Context, field graphql.CollectedField, obj *Publication) (ret graphql.Marshaler) {
  108506. fc, err := ec.fieldContext_Publication_collectionPublicationsV3(ctx, field)
  108507. if err != nil {
  108508. return graphql.Null
  108509. }
  108510. ctx = graphql.WithFieldContext(ctx, fc)
  108511. defer func() {
  108512. if r := recover(); r != nil {
  108513. ec.Error(ctx, ec.Recover(ctx, r))
  108514. ret = graphql.Null
  108515. }
  108516. }()
  108517. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  108518. ctx = rctx // use context from middleware stack in children
  108519. return obj.CollectionPublicationsV3, nil
  108520. })
  108521. if err != nil {
  108522. ec.Error(ctx, err)
  108523. return graphql.Null
  108524. }
  108525. if resTmp == nil {
  108526. if !graphql.HasFieldError(ctx, fc) {
  108527. ec.Errorf(ctx, "must not be null")
  108528. }
  108529. return graphql.Null
  108530. }
  108531. res := resTmp.(*ResourcePublicationConnection)
  108532. fc.Result = res
  108533. return ec.marshalNResourcePublicationConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublicationConnection(ctx, field.Selections, res)
  108534. }
  108535. func (ec *executionContext) fieldContext_Publication_collectionPublicationsV3(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  108536. fc = &graphql.FieldContext{
  108537. Object: "Publication",
  108538. Field: field,
  108539. IsMethod: false,
  108540. IsResolver: false,
  108541. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  108542. switch field.Name {
  108543. case "edges":
  108544. return ec.fieldContext_ResourcePublicationConnection_edges(ctx, field)
  108545. case "nodes":
  108546. return ec.fieldContext_ResourcePublicationConnection_nodes(ctx, field)
  108547. case "pageInfo":
  108548. return ec.fieldContext_ResourcePublicationConnection_pageInfo(ctx, field)
  108549. }
  108550. return nil, fmt.Errorf("no field named %q was found under type ResourcePublicationConnection", field.Name)
  108551. },
  108552. }
  108553. defer func() {
  108554. if r := recover(); r != nil {
  108555. err = ec.Recover(ctx, r)
  108556. ec.Error(ctx, err)
  108557. }
  108558. }()
  108559. ctx = graphql.WithFieldContext(ctx, fc)
  108560. if fc.Args, err = ec.field_Publication_collectionPublicationsV3_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  108561. ec.Error(ctx, err)
  108562. return
  108563. }
  108564. return fc, nil
  108565. }
  108566. func (ec *executionContext) _Publication_collections(ctx context.Context, field graphql.CollectedField, obj *Publication) (ret graphql.Marshaler) {
  108567. fc, err := ec.fieldContext_Publication_collections(ctx, field)
  108568. if err != nil {
  108569. return graphql.Null
  108570. }
  108571. ctx = graphql.WithFieldContext(ctx, fc)
  108572. defer func() {
  108573. if r := recover(); r != nil {
  108574. ec.Error(ctx, ec.Recover(ctx, r))
  108575. ret = graphql.Null
  108576. }
  108577. }()
  108578. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  108579. ctx = rctx // use context from middleware stack in children
  108580. return obj.Collections, nil
  108581. })
  108582. if err != nil {
  108583. ec.Error(ctx, err)
  108584. return graphql.Null
  108585. }
  108586. if resTmp == nil {
  108587. if !graphql.HasFieldError(ctx, fc) {
  108588. ec.Errorf(ctx, "must not be null")
  108589. }
  108590. return graphql.Null
  108591. }
  108592. res := resTmp.(*CollectionConnection)
  108593. fc.Result = res
  108594. return ec.marshalNCollectionConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCollectionConnection(ctx, field.Selections, res)
  108595. }
  108596. func (ec *executionContext) fieldContext_Publication_collections(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  108597. fc = &graphql.FieldContext{
  108598. Object: "Publication",
  108599. Field: field,
  108600. IsMethod: false,
  108601. IsResolver: false,
  108602. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  108603. switch field.Name {
  108604. case "edges":
  108605. return ec.fieldContext_CollectionConnection_edges(ctx, field)
  108606. case "nodes":
  108607. return ec.fieldContext_CollectionConnection_nodes(ctx, field)
  108608. case "pageInfo":
  108609. return ec.fieldContext_CollectionConnection_pageInfo(ctx, field)
  108610. }
  108611. return nil, fmt.Errorf("no field named %q was found under type CollectionConnection", field.Name)
  108612. },
  108613. }
  108614. defer func() {
  108615. if r := recover(); r != nil {
  108616. err = ec.Recover(ctx, r)
  108617. ec.Error(ctx, err)
  108618. }
  108619. }()
  108620. ctx = graphql.WithFieldContext(ctx, fc)
  108621. if fc.Args, err = ec.field_Publication_collections_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  108622. ec.Error(ctx, err)
  108623. return
  108624. }
  108625. return fc, nil
  108626. }
  108627. func (ec *executionContext) _Publication_hasCollection(ctx context.Context, field graphql.CollectedField, obj *Publication) (ret graphql.Marshaler) {
  108628. fc, err := ec.fieldContext_Publication_hasCollection(ctx, field)
  108629. if err != nil {
  108630. return graphql.Null
  108631. }
  108632. ctx = graphql.WithFieldContext(ctx, fc)
  108633. defer func() {
  108634. if r := recover(); r != nil {
  108635. ec.Error(ctx, ec.Recover(ctx, r))
  108636. ret = graphql.Null
  108637. }
  108638. }()
  108639. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  108640. ctx = rctx // use context from middleware stack in children
  108641. return obj.HasCollection, nil
  108642. })
  108643. if err != nil {
  108644. ec.Error(ctx, err)
  108645. return graphql.Null
  108646. }
  108647. if resTmp == nil {
  108648. if !graphql.HasFieldError(ctx, fc) {
  108649. ec.Errorf(ctx, "must not be null")
  108650. }
  108651. return graphql.Null
  108652. }
  108653. res := resTmp.(bool)
  108654. fc.Result = res
  108655. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  108656. }
  108657. func (ec *executionContext) fieldContext_Publication_hasCollection(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  108658. fc = &graphql.FieldContext{
  108659. Object: "Publication",
  108660. Field: field,
  108661. IsMethod: false,
  108662. IsResolver: false,
  108663. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  108664. return nil, errors.New("field of type Boolean does not have child fields")
  108665. },
  108666. }
  108667. defer func() {
  108668. if r := recover(); r != nil {
  108669. err = ec.Recover(ctx, r)
  108670. ec.Error(ctx, err)
  108671. }
  108672. }()
  108673. ctx = graphql.WithFieldContext(ctx, fc)
  108674. if fc.Args, err = ec.field_Publication_hasCollection_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  108675. ec.Error(ctx, err)
  108676. return
  108677. }
  108678. return fc, nil
  108679. }
  108680. func (ec *executionContext) _Publication_id(ctx context.Context, field graphql.CollectedField, obj *Publication) (ret graphql.Marshaler) {
  108681. fc, err := ec.fieldContext_Publication_id(ctx, field)
  108682. if err != nil {
  108683. return graphql.Null
  108684. }
  108685. ctx = graphql.WithFieldContext(ctx, fc)
  108686. defer func() {
  108687. if r := recover(); r != nil {
  108688. ec.Error(ctx, ec.Recover(ctx, r))
  108689. ret = graphql.Null
  108690. }
  108691. }()
  108692. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  108693. ctx = rctx // use context from middleware stack in children
  108694. return obj.ID, nil
  108695. })
  108696. if err != nil {
  108697. ec.Error(ctx, err)
  108698. return graphql.Null
  108699. }
  108700. if resTmp == nil {
  108701. if !graphql.HasFieldError(ctx, fc) {
  108702. ec.Errorf(ctx, "must not be null")
  108703. }
  108704. return graphql.Null
  108705. }
  108706. res := resTmp.(string)
  108707. fc.Result = res
  108708. return ec.marshalNID2string(ctx, field.Selections, res)
  108709. }
  108710. func (ec *executionContext) fieldContext_Publication_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  108711. fc = &graphql.FieldContext{
  108712. Object: "Publication",
  108713. Field: field,
  108714. IsMethod: false,
  108715. IsResolver: false,
  108716. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  108717. return nil, errors.New("field of type ID does not have child fields")
  108718. },
  108719. }
  108720. return fc, nil
  108721. }
  108722. func (ec *executionContext) _Publication_name(ctx context.Context, field graphql.CollectedField, obj *Publication) (ret graphql.Marshaler) {
  108723. fc, err := ec.fieldContext_Publication_name(ctx, field)
  108724. if err != nil {
  108725. return graphql.Null
  108726. }
  108727. ctx = graphql.WithFieldContext(ctx, fc)
  108728. defer func() {
  108729. if r := recover(); r != nil {
  108730. ec.Error(ctx, ec.Recover(ctx, r))
  108731. ret = graphql.Null
  108732. }
  108733. }()
  108734. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  108735. ctx = rctx // use context from middleware stack in children
  108736. return obj.Name, nil
  108737. })
  108738. if err != nil {
  108739. ec.Error(ctx, err)
  108740. return graphql.Null
  108741. }
  108742. if resTmp == nil {
  108743. if !graphql.HasFieldError(ctx, fc) {
  108744. ec.Errorf(ctx, "must not be null")
  108745. }
  108746. return graphql.Null
  108747. }
  108748. res := resTmp.(string)
  108749. fc.Result = res
  108750. return ec.marshalNString2string(ctx, field.Selections, res)
  108751. }
  108752. func (ec *executionContext) fieldContext_Publication_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  108753. fc = &graphql.FieldContext{
  108754. Object: "Publication",
  108755. Field: field,
  108756. IsMethod: false,
  108757. IsResolver: false,
  108758. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  108759. return nil, errors.New("field of type String does not have child fields")
  108760. },
  108761. }
  108762. return fc, nil
  108763. }
  108764. func (ec *executionContext) _Publication_productPublicationsV3(ctx context.Context, field graphql.CollectedField, obj *Publication) (ret graphql.Marshaler) {
  108765. fc, err := ec.fieldContext_Publication_productPublicationsV3(ctx, field)
  108766. if err != nil {
  108767. return graphql.Null
  108768. }
  108769. ctx = graphql.WithFieldContext(ctx, fc)
  108770. defer func() {
  108771. if r := recover(); r != nil {
  108772. ec.Error(ctx, ec.Recover(ctx, r))
  108773. ret = graphql.Null
  108774. }
  108775. }()
  108776. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  108777. ctx = rctx // use context from middleware stack in children
  108778. return obj.ProductPublicationsV3, nil
  108779. })
  108780. if err != nil {
  108781. ec.Error(ctx, err)
  108782. return graphql.Null
  108783. }
  108784. if resTmp == nil {
  108785. if !graphql.HasFieldError(ctx, fc) {
  108786. ec.Errorf(ctx, "must not be null")
  108787. }
  108788. return graphql.Null
  108789. }
  108790. res := resTmp.(*ResourcePublicationConnection)
  108791. fc.Result = res
  108792. return ec.marshalNResourcePublicationConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublicationConnection(ctx, field.Selections, res)
  108793. }
  108794. func (ec *executionContext) fieldContext_Publication_productPublicationsV3(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  108795. fc = &graphql.FieldContext{
  108796. Object: "Publication",
  108797. Field: field,
  108798. IsMethod: false,
  108799. IsResolver: false,
  108800. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  108801. switch field.Name {
  108802. case "edges":
  108803. return ec.fieldContext_ResourcePublicationConnection_edges(ctx, field)
  108804. case "nodes":
  108805. return ec.fieldContext_ResourcePublicationConnection_nodes(ctx, field)
  108806. case "pageInfo":
  108807. return ec.fieldContext_ResourcePublicationConnection_pageInfo(ctx, field)
  108808. }
  108809. return nil, fmt.Errorf("no field named %q was found under type ResourcePublicationConnection", field.Name)
  108810. },
  108811. }
  108812. defer func() {
  108813. if r := recover(); r != nil {
  108814. err = ec.Recover(ctx, r)
  108815. ec.Error(ctx, err)
  108816. }
  108817. }()
  108818. ctx = graphql.WithFieldContext(ctx, fc)
  108819. if fc.Args, err = ec.field_Publication_productPublicationsV3_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  108820. ec.Error(ctx, err)
  108821. return
  108822. }
  108823. return fc, nil
  108824. }
  108825. func (ec *executionContext) _Publication_products(ctx context.Context, field graphql.CollectedField, obj *Publication) (ret graphql.Marshaler) {
  108826. fc, err := ec.fieldContext_Publication_products(ctx, field)
  108827. if err != nil {
  108828. return graphql.Null
  108829. }
  108830. ctx = graphql.WithFieldContext(ctx, fc)
  108831. defer func() {
  108832. if r := recover(); r != nil {
  108833. ec.Error(ctx, ec.Recover(ctx, r))
  108834. ret = graphql.Null
  108835. }
  108836. }()
  108837. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  108838. ctx = rctx // use context from middleware stack in children
  108839. return obj.Products, nil
  108840. })
  108841. if err != nil {
  108842. ec.Error(ctx, err)
  108843. return graphql.Null
  108844. }
  108845. if resTmp == nil {
  108846. if !graphql.HasFieldError(ctx, fc) {
  108847. ec.Errorf(ctx, "must not be null")
  108848. }
  108849. return graphql.Null
  108850. }
  108851. res := resTmp.(*ProductConnection)
  108852. fc.Result = res
  108853. return ec.marshalNProductConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductConnection(ctx, field.Selections, res)
  108854. }
  108855. func (ec *executionContext) fieldContext_Publication_products(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  108856. fc = &graphql.FieldContext{
  108857. Object: "Publication",
  108858. Field: field,
  108859. IsMethod: false,
  108860. IsResolver: false,
  108861. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  108862. switch field.Name {
  108863. case "edges":
  108864. return ec.fieldContext_ProductConnection_edges(ctx, field)
  108865. case "nodes":
  108866. return ec.fieldContext_ProductConnection_nodes(ctx, field)
  108867. case "pageInfo":
  108868. return ec.fieldContext_ProductConnection_pageInfo(ctx, field)
  108869. }
  108870. return nil, fmt.Errorf("no field named %q was found under type ProductConnection", field.Name)
  108871. },
  108872. }
  108873. defer func() {
  108874. if r := recover(); r != nil {
  108875. err = ec.Recover(ctx, r)
  108876. ec.Error(ctx, err)
  108877. }
  108878. }()
  108879. ctx = graphql.WithFieldContext(ctx, fc)
  108880. if fc.Args, err = ec.field_Publication_products_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  108881. ec.Error(ctx, err)
  108882. return
  108883. }
  108884. return fc, nil
  108885. }
  108886. func (ec *executionContext) _Publication_supportsFuturePublishing(ctx context.Context, field graphql.CollectedField, obj *Publication) (ret graphql.Marshaler) {
  108887. fc, err := ec.fieldContext_Publication_supportsFuturePublishing(ctx, field)
  108888. if err != nil {
  108889. return graphql.Null
  108890. }
  108891. ctx = graphql.WithFieldContext(ctx, fc)
  108892. defer func() {
  108893. if r := recover(); r != nil {
  108894. ec.Error(ctx, ec.Recover(ctx, r))
  108895. ret = graphql.Null
  108896. }
  108897. }()
  108898. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  108899. ctx = rctx // use context from middleware stack in children
  108900. return obj.SupportsFuturePublishing, nil
  108901. })
  108902. if err != nil {
  108903. ec.Error(ctx, err)
  108904. return graphql.Null
  108905. }
  108906. if resTmp == nil {
  108907. if !graphql.HasFieldError(ctx, fc) {
  108908. ec.Errorf(ctx, "must not be null")
  108909. }
  108910. return graphql.Null
  108911. }
  108912. res := resTmp.(bool)
  108913. fc.Result = res
  108914. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  108915. }
  108916. func (ec *executionContext) fieldContext_Publication_supportsFuturePublishing(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  108917. fc = &graphql.FieldContext{
  108918. Object: "Publication",
  108919. Field: field,
  108920. IsMethod: false,
  108921. IsResolver: false,
  108922. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  108923. return nil, errors.New("field of type Boolean does not have child fields")
  108924. },
  108925. }
  108926. return fc, nil
  108927. }
  108928. func (ec *executionContext) _PublicationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *PublicationConnection) (ret graphql.Marshaler) {
  108929. fc, err := ec.fieldContext_PublicationConnection_edges(ctx, field)
  108930. if err != nil {
  108931. return graphql.Null
  108932. }
  108933. ctx = graphql.WithFieldContext(ctx, fc)
  108934. defer func() {
  108935. if r := recover(); r != nil {
  108936. ec.Error(ctx, ec.Recover(ctx, r))
  108937. ret = graphql.Null
  108938. }
  108939. }()
  108940. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  108941. ctx = rctx // use context from middleware stack in children
  108942. return obj.Edges, nil
  108943. })
  108944. if err != nil {
  108945. ec.Error(ctx, err)
  108946. return graphql.Null
  108947. }
  108948. if resTmp == nil {
  108949. if !graphql.HasFieldError(ctx, fc) {
  108950. ec.Errorf(ctx, "must not be null")
  108951. }
  108952. return graphql.Null
  108953. }
  108954. res := resTmp.([]*PublicationEdge)
  108955. fc.Result = res
  108956. return ec.marshalNPublicationEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublicationEdgeᚄ(ctx, field.Selections, res)
  108957. }
  108958. func (ec *executionContext) fieldContext_PublicationConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  108959. fc = &graphql.FieldContext{
  108960. Object: "PublicationConnection",
  108961. Field: field,
  108962. IsMethod: false,
  108963. IsResolver: false,
  108964. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  108965. switch field.Name {
  108966. case "cursor":
  108967. return ec.fieldContext_PublicationEdge_cursor(ctx, field)
  108968. case "node":
  108969. return ec.fieldContext_PublicationEdge_node(ctx, field)
  108970. }
  108971. return nil, fmt.Errorf("no field named %q was found under type PublicationEdge", field.Name)
  108972. },
  108973. }
  108974. return fc, nil
  108975. }
  108976. func (ec *executionContext) _PublicationConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *PublicationConnection) (ret graphql.Marshaler) {
  108977. fc, err := ec.fieldContext_PublicationConnection_nodes(ctx, field)
  108978. if err != nil {
  108979. return graphql.Null
  108980. }
  108981. ctx = graphql.WithFieldContext(ctx, fc)
  108982. defer func() {
  108983. if r := recover(); r != nil {
  108984. ec.Error(ctx, ec.Recover(ctx, r))
  108985. ret = graphql.Null
  108986. }
  108987. }()
  108988. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  108989. ctx = rctx // use context from middleware stack in children
  108990. return obj.Nodes, nil
  108991. })
  108992. if err != nil {
  108993. ec.Error(ctx, err)
  108994. return graphql.Null
  108995. }
  108996. if resTmp == nil {
  108997. if !graphql.HasFieldError(ctx, fc) {
  108998. ec.Errorf(ctx, "must not be null")
  108999. }
  109000. return graphql.Null
  109001. }
  109002. res := resTmp.([]*Publication)
  109003. fc.Result = res
  109004. return ec.marshalNPublication2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublicationᚄ(ctx, field.Selections, res)
  109005. }
  109006. func (ec *executionContext) fieldContext_PublicationConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  109007. fc = &graphql.FieldContext{
  109008. Object: "PublicationConnection",
  109009. Field: field,
  109010. IsMethod: false,
  109011. IsResolver: false,
  109012. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  109013. switch field.Name {
  109014. case "app":
  109015. return ec.fieldContext_Publication_app(ctx, field)
  109016. case "collectionPublicationsV3":
  109017. return ec.fieldContext_Publication_collectionPublicationsV3(ctx, field)
  109018. case "collections":
  109019. return ec.fieldContext_Publication_collections(ctx, field)
  109020. case "hasCollection":
  109021. return ec.fieldContext_Publication_hasCollection(ctx, field)
  109022. case "id":
  109023. return ec.fieldContext_Publication_id(ctx, field)
  109024. case "name":
  109025. return ec.fieldContext_Publication_name(ctx, field)
  109026. case "productPublicationsV3":
  109027. return ec.fieldContext_Publication_productPublicationsV3(ctx, field)
  109028. case "products":
  109029. return ec.fieldContext_Publication_products(ctx, field)
  109030. case "supportsFuturePublishing":
  109031. return ec.fieldContext_Publication_supportsFuturePublishing(ctx, field)
  109032. }
  109033. return nil, fmt.Errorf("no field named %q was found under type Publication", field.Name)
  109034. },
  109035. }
  109036. return fc, nil
  109037. }
  109038. func (ec *executionContext) _PublicationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *PublicationConnection) (ret graphql.Marshaler) {
  109039. fc, err := ec.fieldContext_PublicationConnection_pageInfo(ctx, field)
  109040. if err != nil {
  109041. return graphql.Null
  109042. }
  109043. ctx = graphql.WithFieldContext(ctx, fc)
  109044. defer func() {
  109045. if r := recover(); r != nil {
  109046. ec.Error(ctx, ec.Recover(ctx, r))
  109047. ret = graphql.Null
  109048. }
  109049. }()
  109050. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  109051. ctx = rctx // use context from middleware stack in children
  109052. return obj.PageInfo, nil
  109053. })
  109054. if err != nil {
  109055. ec.Error(ctx, err)
  109056. return graphql.Null
  109057. }
  109058. if resTmp == nil {
  109059. if !graphql.HasFieldError(ctx, fc) {
  109060. ec.Errorf(ctx, "must not be null")
  109061. }
  109062. return graphql.Null
  109063. }
  109064. res := resTmp.(*PageInfo)
  109065. fc.Result = res
  109066. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  109067. }
  109068. func (ec *executionContext) fieldContext_PublicationConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  109069. fc = &graphql.FieldContext{
  109070. Object: "PublicationConnection",
  109071. Field: field,
  109072. IsMethod: false,
  109073. IsResolver: false,
  109074. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  109075. switch field.Name {
  109076. case "endCursor":
  109077. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  109078. case "hasNextPage":
  109079. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  109080. case "hasPreviousPage":
  109081. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  109082. case "startCursor":
  109083. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  109084. }
  109085. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  109086. },
  109087. }
  109088. return fc, nil
  109089. }
  109090. func (ec *executionContext) _PublicationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *PublicationEdge) (ret graphql.Marshaler) {
  109091. fc, err := ec.fieldContext_PublicationEdge_cursor(ctx, field)
  109092. if err != nil {
  109093. return graphql.Null
  109094. }
  109095. ctx = graphql.WithFieldContext(ctx, fc)
  109096. defer func() {
  109097. if r := recover(); r != nil {
  109098. ec.Error(ctx, ec.Recover(ctx, r))
  109099. ret = graphql.Null
  109100. }
  109101. }()
  109102. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  109103. ctx = rctx // use context from middleware stack in children
  109104. return obj.Cursor, nil
  109105. })
  109106. if err != nil {
  109107. ec.Error(ctx, err)
  109108. return graphql.Null
  109109. }
  109110. if resTmp == nil {
  109111. if !graphql.HasFieldError(ctx, fc) {
  109112. ec.Errorf(ctx, "must not be null")
  109113. }
  109114. return graphql.Null
  109115. }
  109116. res := resTmp.(string)
  109117. fc.Result = res
  109118. return ec.marshalNString2string(ctx, field.Selections, res)
  109119. }
  109120. func (ec *executionContext) fieldContext_PublicationEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  109121. fc = &graphql.FieldContext{
  109122. Object: "PublicationEdge",
  109123. Field: field,
  109124. IsMethod: false,
  109125. IsResolver: false,
  109126. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  109127. return nil, errors.New("field of type String does not have child fields")
  109128. },
  109129. }
  109130. return fc, nil
  109131. }
  109132. func (ec *executionContext) _PublicationEdge_node(ctx context.Context, field graphql.CollectedField, obj *PublicationEdge) (ret graphql.Marshaler) {
  109133. fc, err := ec.fieldContext_PublicationEdge_node(ctx, field)
  109134. if err != nil {
  109135. return graphql.Null
  109136. }
  109137. ctx = graphql.WithFieldContext(ctx, fc)
  109138. defer func() {
  109139. if r := recover(); r != nil {
  109140. ec.Error(ctx, ec.Recover(ctx, r))
  109141. ret = graphql.Null
  109142. }
  109143. }()
  109144. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  109145. ctx = rctx // use context from middleware stack in children
  109146. return obj.Node, nil
  109147. })
  109148. if err != nil {
  109149. ec.Error(ctx, err)
  109150. return graphql.Null
  109151. }
  109152. if resTmp == nil {
  109153. if !graphql.HasFieldError(ctx, fc) {
  109154. ec.Errorf(ctx, "must not be null")
  109155. }
  109156. return graphql.Null
  109157. }
  109158. res := resTmp.(*Publication)
  109159. fc.Result = res
  109160. return ec.marshalNPublication2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublication(ctx, field.Selections, res)
  109161. }
  109162. func (ec *executionContext) fieldContext_PublicationEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  109163. fc = &graphql.FieldContext{
  109164. Object: "PublicationEdge",
  109165. Field: field,
  109166. IsMethod: false,
  109167. IsResolver: false,
  109168. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  109169. switch field.Name {
  109170. case "app":
  109171. return ec.fieldContext_Publication_app(ctx, field)
  109172. case "collectionPublicationsV3":
  109173. return ec.fieldContext_Publication_collectionPublicationsV3(ctx, field)
  109174. case "collections":
  109175. return ec.fieldContext_Publication_collections(ctx, field)
  109176. case "hasCollection":
  109177. return ec.fieldContext_Publication_hasCollection(ctx, field)
  109178. case "id":
  109179. return ec.fieldContext_Publication_id(ctx, field)
  109180. case "name":
  109181. return ec.fieldContext_Publication_name(ctx, field)
  109182. case "productPublicationsV3":
  109183. return ec.fieldContext_Publication_productPublicationsV3(ctx, field)
  109184. case "products":
  109185. return ec.fieldContext_Publication_products(ctx, field)
  109186. case "supportsFuturePublishing":
  109187. return ec.fieldContext_Publication_supportsFuturePublishing(ctx, field)
  109188. }
  109189. return nil, fmt.Errorf("no field named %q was found under type Publication", field.Name)
  109190. },
  109191. }
  109192. return fc, nil
  109193. }
  109194. func (ec *executionContext) _PublishedTranslation_key(ctx context.Context, field graphql.CollectedField, obj *PublishedTranslation) (ret graphql.Marshaler) {
  109195. fc, err := ec.fieldContext_PublishedTranslation_key(ctx, field)
  109196. if err != nil {
  109197. return graphql.Null
  109198. }
  109199. ctx = graphql.WithFieldContext(ctx, fc)
  109200. defer func() {
  109201. if r := recover(); r != nil {
  109202. ec.Error(ctx, ec.Recover(ctx, r))
  109203. ret = graphql.Null
  109204. }
  109205. }()
  109206. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  109207. ctx = rctx // use context from middleware stack in children
  109208. return obj.Key, nil
  109209. })
  109210. if err != nil {
  109211. ec.Error(ctx, err)
  109212. return graphql.Null
  109213. }
  109214. if resTmp == nil {
  109215. if !graphql.HasFieldError(ctx, fc) {
  109216. ec.Errorf(ctx, "must not be null")
  109217. }
  109218. return graphql.Null
  109219. }
  109220. res := resTmp.(string)
  109221. fc.Result = res
  109222. return ec.marshalNString2string(ctx, field.Selections, res)
  109223. }
  109224. func (ec *executionContext) fieldContext_PublishedTranslation_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  109225. fc = &graphql.FieldContext{
  109226. Object: "PublishedTranslation",
  109227. Field: field,
  109228. IsMethod: false,
  109229. IsResolver: false,
  109230. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  109231. return nil, errors.New("field of type String does not have child fields")
  109232. },
  109233. }
  109234. return fc, nil
  109235. }
  109236. func (ec *executionContext) _PublishedTranslation_locale(ctx context.Context, field graphql.CollectedField, obj *PublishedTranslation) (ret graphql.Marshaler) {
  109237. fc, err := ec.fieldContext_PublishedTranslation_locale(ctx, field)
  109238. if err != nil {
  109239. return graphql.Null
  109240. }
  109241. ctx = graphql.WithFieldContext(ctx, fc)
  109242. defer func() {
  109243. if r := recover(); r != nil {
  109244. ec.Error(ctx, ec.Recover(ctx, r))
  109245. ret = graphql.Null
  109246. }
  109247. }()
  109248. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  109249. ctx = rctx // use context from middleware stack in children
  109250. return obj.Locale, nil
  109251. })
  109252. if err != nil {
  109253. ec.Error(ctx, err)
  109254. return graphql.Null
  109255. }
  109256. if resTmp == nil {
  109257. if !graphql.HasFieldError(ctx, fc) {
  109258. ec.Errorf(ctx, "must not be null")
  109259. }
  109260. return graphql.Null
  109261. }
  109262. res := resTmp.(string)
  109263. fc.Result = res
  109264. return ec.marshalNString2string(ctx, field.Selections, res)
  109265. }
  109266. func (ec *executionContext) fieldContext_PublishedTranslation_locale(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  109267. fc = &graphql.FieldContext{
  109268. Object: "PublishedTranslation",
  109269. Field: field,
  109270. IsMethod: false,
  109271. IsResolver: false,
  109272. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  109273. return nil, errors.New("field of type String does not have child fields")
  109274. },
  109275. }
  109276. return fc, nil
  109277. }
  109278. func (ec *executionContext) _PublishedTranslation_marketId(ctx context.Context, field graphql.CollectedField, obj *PublishedTranslation) (ret graphql.Marshaler) {
  109279. fc, err := ec.fieldContext_PublishedTranslation_marketId(ctx, field)
  109280. if err != nil {
  109281. return graphql.Null
  109282. }
  109283. ctx = graphql.WithFieldContext(ctx, fc)
  109284. defer func() {
  109285. if r := recover(); r != nil {
  109286. ec.Error(ctx, ec.Recover(ctx, r))
  109287. ret = graphql.Null
  109288. }
  109289. }()
  109290. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  109291. ctx = rctx // use context from middleware stack in children
  109292. return obj.MarketID, nil
  109293. })
  109294. if err != nil {
  109295. ec.Error(ctx, err)
  109296. return graphql.Null
  109297. }
  109298. if resTmp == nil {
  109299. return graphql.Null
  109300. }
  109301. res := resTmp.(*string)
  109302. fc.Result = res
  109303. return ec.marshalOID2ᚖstring(ctx, field.Selections, res)
  109304. }
  109305. func (ec *executionContext) fieldContext_PublishedTranslation_marketId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  109306. fc = &graphql.FieldContext{
  109307. Object: "PublishedTranslation",
  109308. Field: field,
  109309. IsMethod: false,
  109310. IsResolver: false,
  109311. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  109312. return nil, errors.New("field of type ID does not have child fields")
  109313. },
  109314. }
  109315. return fc, nil
  109316. }
  109317. func (ec *executionContext) _PublishedTranslation_value(ctx context.Context, field graphql.CollectedField, obj *PublishedTranslation) (ret graphql.Marshaler) {
  109318. fc, err := ec.fieldContext_PublishedTranslation_value(ctx, field)
  109319. if err != nil {
  109320. return graphql.Null
  109321. }
  109322. ctx = graphql.WithFieldContext(ctx, fc)
  109323. defer func() {
  109324. if r := recover(); r != nil {
  109325. ec.Error(ctx, ec.Recover(ctx, r))
  109326. ret = graphql.Null
  109327. }
  109328. }()
  109329. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  109330. ctx = rctx // use context from middleware stack in children
  109331. return obj.Value, nil
  109332. })
  109333. if err != nil {
  109334. ec.Error(ctx, err)
  109335. return graphql.Null
  109336. }
  109337. if resTmp == nil {
  109338. return graphql.Null
  109339. }
  109340. res := resTmp.(*string)
  109341. fc.Result = res
  109342. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  109343. }
  109344. func (ec *executionContext) fieldContext_PublishedTranslation_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  109345. fc = &graphql.FieldContext{
  109346. Object: "PublishedTranslation",
  109347. Field: field,
  109348. IsMethod: false,
  109349. IsResolver: false,
  109350. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  109351. return nil, errors.New("field of type String does not have child fields")
  109352. },
  109353. }
  109354. return fc, nil
  109355. }
  109356. func (ec *executionContext) _PurchasingCompany_company(ctx context.Context, field graphql.CollectedField, obj *PurchasingCompany) (ret graphql.Marshaler) {
  109357. fc, err := ec.fieldContext_PurchasingCompany_company(ctx, field)
  109358. if err != nil {
  109359. return graphql.Null
  109360. }
  109361. ctx = graphql.WithFieldContext(ctx, fc)
  109362. defer func() {
  109363. if r := recover(); r != nil {
  109364. ec.Error(ctx, ec.Recover(ctx, r))
  109365. ret = graphql.Null
  109366. }
  109367. }()
  109368. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  109369. ctx = rctx // use context from middleware stack in children
  109370. return obj.Company, nil
  109371. })
  109372. if err != nil {
  109373. ec.Error(ctx, err)
  109374. return graphql.Null
  109375. }
  109376. if resTmp == nil {
  109377. if !graphql.HasFieldError(ctx, fc) {
  109378. ec.Errorf(ctx, "must not be null")
  109379. }
  109380. return graphql.Null
  109381. }
  109382. res := resTmp.(*Company)
  109383. fc.Result = res
  109384. return ec.marshalNCompany2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompany(ctx, field.Selections, res)
  109385. }
  109386. func (ec *executionContext) fieldContext_PurchasingCompany_company(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  109387. fc = &graphql.FieldContext{
  109388. Object: "PurchasingCompany",
  109389. Field: field,
  109390. IsMethod: false,
  109391. IsResolver: false,
  109392. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  109393. switch field.Name {
  109394. case "contactCount":
  109395. return ec.fieldContext_Company_contactCount(ctx, field)
  109396. case "contactRoles":
  109397. return ec.fieldContext_Company_contactRoles(ctx, field)
  109398. case "contacts":
  109399. return ec.fieldContext_Company_contacts(ctx, field)
  109400. case "createdAt":
  109401. return ec.fieldContext_Company_createdAt(ctx, field)
  109402. case "customerSince":
  109403. return ec.fieldContext_Company_customerSince(ctx, field)
  109404. case "defaultCursor":
  109405. return ec.fieldContext_Company_defaultCursor(ctx, field)
  109406. case "defaultRole":
  109407. return ec.fieldContext_Company_defaultRole(ctx, field)
  109408. case "draftOrders":
  109409. return ec.fieldContext_Company_draftOrders(ctx, field)
  109410. case "events":
  109411. return ec.fieldContext_Company_events(ctx, field)
  109412. case "externalId":
  109413. return ec.fieldContext_Company_externalId(ctx, field)
  109414. case "hasTimelineComment":
  109415. return ec.fieldContext_Company_hasTimelineComment(ctx, field)
  109416. case "id":
  109417. return ec.fieldContext_Company_id(ctx, field)
  109418. case "lifetimeDuration":
  109419. return ec.fieldContext_Company_lifetimeDuration(ctx, field)
  109420. case "locationCount":
  109421. return ec.fieldContext_Company_locationCount(ctx, field)
  109422. case "locations":
  109423. return ec.fieldContext_Company_locations(ctx, field)
  109424. case "mainContact":
  109425. return ec.fieldContext_Company_mainContact(ctx, field)
  109426. case "name":
  109427. return ec.fieldContext_Company_name(ctx, field)
  109428. case "note":
  109429. return ec.fieldContext_Company_note(ctx, field)
  109430. case "orderCount":
  109431. return ec.fieldContext_Company_orderCount(ctx, field)
  109432. case "orders":
  109433. return ec.fieldContext_Company_orders(ctx, field)
  109434. case "totalSpent":
  109435. return ec.fieldContext_Company_totalSpent(ctx, field)
  109436. case "updatedAt":
  109437. return ec.fieldContext_Company_updatedAt(ctx, field)
  109438. }
  109439. return nil, fmt.Errorf("no field named %q was found under type Company", field.Name)
  109440. },
  109441. }
  109442. return fc, nil
  109443. }
  109444. func (ec *executionContext) _PurchasingCompany_contact(ctx context.Context, field graphql.CollectedField, obj *PurchasingCompany) (ret graphql.Marshaler) {
  109445. fc, err := ec.fieldContext_PurchasingCompany_contact(ctx, field)
  109446. if err != nil {
  109447. return graphql.Null
  109448. }
  109449. ctx = graphql.WithFieldContext(ctx, fc)
  109450. defer func() {
  109451. if r := recover(); r != nil {
  109452. ec.Error(ctx, ec.Recover(ctx, r))
  109453. ret = graphql.Null
  109454. }
  109455. }()
  109456. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  109457. ctx = rctx // use context from middleware stack in children
  109458. return obj.Contact, nil
  109459. })
  109460. if err != nil {
  109461. ec.Error(ctx, err)
  109462. return graphql.Null
  109463. }
  109464. if resTmp == nil {
  109465. return graphql.Null
  109466. }
  109467. res := resTmp.(*CompanyContact)
  109468. fc.Result = res
  109469. return ec.marshalOCompanyContact2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContact(ctx, field.Selections, res)
  109470. }
  109471. func (ec *executionContext) fieldContext_PurchasingCompany_contact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  109472. fc = &graphql.FieldContext{
  109473. Object: "PurchasingCompany",
  109474. Field: field,
  109475. IsMethod: false,
  109476. IsResolver: false,
  109477. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  109478. switch field.Name {
  109479. case "company":
  109480. return ec.fieldContext_CompanyContact_company(ctx, field)
  109481. case "createdAt":
  109482. return ec.fieldContext_CompanyContact_createdAt(ctx, field)
  109483. case "customer":
  109484. return ec.fieldContext_CompanyContact_customer(ctx, field)
  109485. case "draftOrders":
  109486. return ec.fieldContext_CompanyContact_draftOrders(ctx, field)
  109487. case "id":
  109488. return ec.fieldContext_CompanyContact_id(ctx, field)
  109489. case "isMainContact":
  109490. return ec.fieldContext_CompanyContact_isMainContact(ctx, field)
  109491. case "lifetimeDuration":
  109492. return ec.fieldContext_CompanyContact_lifetimeDuration(ctx, field)
  109493. case "locale":
  109494. return ec.fieldContext_CompanyContact_locale(ctx, field)
  109495. case "orders":
  109496. return ec.fieldContext_CompanyContact_orders(ctx, field)
  109497. case "roleAssignments":
  109498. return ec.fieldContext_CompanyContact_roleAssignments(ctx, field)
  109499. case "title":
  109500. return ec.fieldContext_CompanyContact_title(ctx, field)
  109501. case "updatedAt":
  109502. return ec.fieldContext_CompanyContact_updatedAt(ctx, field)
  109503. }
  109504. return nil, fmt.Errorf("no field named %q was found under type CompanyContact", field.Name)
  109505. },
  109506. }
  109507. return fc, nil
  109508. }
  109509. func (ec *executionContext) _PurchasingCompany_location(ctx context.Context, field graphql.CollectedField, obj *PurchasingCompany) (ret graphql.Marshaler) {
  109510. fc, err := ec.fieldContext_PurchasingCompany_location(ctx, field)
  109511. if err != nil {
  109512. return graphql.Null
  109513. }
  109514. ctx = graphql.WithFieldContext(ctx, fc)
  109515. defer func() {
  109516. if r := recover(); r != nil {
  109517. ec.Error(ctx, ec.Recover(ctx, r))
  109518. ret = graphql.Null
  109519. }
  109520. }()
  109521. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  109522. ctx = rctx // use context from middleware stack in children
  109523. return obj.Location, nil
  109524. })
  109525. if err != nil {
  109526. ec.Error(ctx, err)
  109527. return graphql.Null
  109528. }
  109529. if resTmp == nil {
  109530. if !graphql.HasFieldError(ctx, fc) {
  109531. ec.Errorf(ctx, "must not be null")
  109532. }
  109533. return graphql.Null
  109534. }
  109535. res := resTmp.(*CompanyLocation)
  109536. fc.Result = res
  109537. return ec.marshalNCompanyLocation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyLocation(ctx, field.Selections, res)
  109538. }
  109539. func (ec *executionContext) fieldContext_PurchasingCompany_location(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  109540. fc = &graphql.FieldContext{
  109541. Object: "PurchasingCompany",
  109542. Field: field,
  109543. IsMethod: false,
  109544. IsResolver: false,
  109545. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  109546. switch field.Name {
  109547. case "billingAddress":
  109548. return ec.fieldContext_CompanyLocation_billingAddress(ctx, field)
  109549. case "buyerExperienceConfiguration":
  109550. return ec.fieldContext_CompanyLocation_buyerExperienceConfiguration(ctx, field)
  109551. case "company":
  109552. return ec.fieldContext_CompanyLocation_company(ctx, field)
  109553. case "createdAt":
  109554. return ec.fieldContext_CompanyLocation_createdAt(ctx, field)
  109555. case "currency":
  109556. return ec.fieldContext_CompanyLocation_currency(ctx, field)
  109557. case "defaultCursor":
  109558. return ec.fieldContext_CompanyLocation_defaultCursor(ctx, field)
  109559. case "draftOrders":
  109560. return ec.fieldContext_CompanyLocation_draftOrders(ctx, field)
  109561. case "events":
  109562. return ec.fieldContext_CompanyLocation_events(ctx, field)
  109563. case "externalId":
  109564. return ec.fieldContext_CompanyLocation_externalId(ctx, field)
  109565. case "hasTimelineComment":
  109566. return ec.fieldContext_CompanyLocation_hasTimelineComment(ctx, field)
  109567. case "id":
  109568. return ec.fieldContext_CompanyLocation_id(ctx, field)
  109569. case "locale":
  109570. return ec.fieldContext_CompanyLocation_locale(ctx, field)
  109571. case "market":
  109572. return ec.fieldContext_CompanyLocation_market(ctx, field)
  109573. case "name":
  109574. return ec.fieldContext_CompanyLocation_name(ctx, field)
  109575. case "note":
  109576. return ec.fieldContext_CompanyLocation_note(ctx, field)
  109577. case "orderCount":
  109578. return ec.fieldContext_CompanyLocation_orderCount(ctx, field)
  109579. case "orders":
  109580. return ec.fieldContext_CompanyLocation_orders(ctx, field)
  109581. case "phone":
  109582. return ec.fieldContext_CompanyLocation_phone(ctx, field)
  109583. case "roleAssignments":
  109584. return ec.fieldContext_CompanyLocation_roleAssignments(ctx, field)
  109585. case "shippingAddress":
  109586. return ec.fieldContext_CompanyLocation_shippingAddress(ctx, field)
  109587. case "taxExemptions":
  109588. return ec.fieldContext_CompanyLocation_taxExemptions(ctx, field)
  109589. case "taxRegistrationId":
  109590. return ec.fieldContext_CompanyLocation_taxRegistrationId(ctx, field)
  109591. case "totalSpent":
  109592. return ec.fieldContext_CompanyLocation_totalSpent(ctx, field)
  109593. case "updatedAt":
  109594. return ec.fieldContext_CompanyLocation_updatedAt(ctx, field)
  109595. }
  109596. return nil, fmt.Errorf("no field named %q was found under type CompanyLocation", field.Name)
  109597. },
  109598. }
  109599. return fc, nil
  109600. }
  109601. func (ec *executionContext) _Query_customer(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
  109602. fc, err := ec.fieldContext_Query_customer(ctx, field)
  109603. if err != nil {
  109604. return graphql.Null
  109605. }
  109606. ctx = graphql.WithFieldContext(ctx, fc)
  109607. defer func() {
  109608. if r := recover(); r != nil {
  109609. ec.Error(ctx, ec.Recover(ctx, r))
  109610. ret = graphql.Null
  109611. }
  109612. }()
  109613. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  109614. ctx = rctx // use context from middleware stack in children
  109615. return ec.resolvers.Query().Customer(rctx, fc.Args["id"].(string))
  109616. })
  109617. if err != nil {
  109618. ec.Error(ctx, err)
  109619. return graphql.Null
  109620. }
  109621. if resTmp == nil {
  109622. return graphql.Null
  109623. }
  109624. res := resTmp.(*Customer)
  109625. fc.Result = res
  109626. return ec.marshalOCustomer2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomer(ctx, field.Selections, res)
  109627. }
  109628. func (ec *executionContext) fieldContext_Query_customer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  109629. fc = &graphql.FieldContext{
  109630. Object: "Query",
  109631. Field: field,
  109632. IsMethod: true,
  109633. IsResolver: true,
  109634. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  109635. switch field.Name {
  109636. case "addresses":
  109637. return ec.fieldContext_Customer_addresses(ctx, field)
  109638. case "amountSpent":
  109639. return ec.fieldContext_Customer_amountSpent(ctx, field)
  109640. case "averageOrderAmountV2":
  109641. return ec.fieldContext_Customer_averageOrderAmountV2(ctx, field)
  109642. case "canDelete":
  109643. return ec.fieldContext_Customer_canDelete(ctx, field)
  109644. case "companyContactProfiles":
  109645. return ec.fieldContext_Customer_companyContactProfiles(ctx, field)
  109646. case "createdAt":
  109647. return ec.fieldContext_Customer_createdAt(ctx, field)
  109648. case "defaultAddress":
  109649. return ec.fieldContext_Customer_defaultAddress(ctx, field)
  109650. case "displayName":
  109651. return ec.fieldContext_Customer_displayName(ctx, field)
  109652. case "email":
  109653. return ec.fieldContext_Customer_email(ctx, field)
  109654. case "emailMarketingConsent":
  109655. return ec.fieldContext_Customer_emailMarketingConsent(ctx, field)
  109656. case "events":
  109657. return ec.fieldContext_Customer_events(ctx, field)
  109658. case "firstName":
  109659. return ec.fieldContext_Customer_firstName(ctx, field)
  109660. case "hasTimelineComment":
  109661. return ec.fieldContext_Customer_hasTimelineComment(ctx, field)
  109662. case "id":
  109663. return ec.fieldContext_Customer_id(ctx, field)
  109664. case "image":
  109665. return ec.fieldContext_Customer_image(ctx, field)
  109666. case "lastName":
  109667. return ec.fieldContext_Customer_lastName(ctx, field)
  109668. case "lastOrder":
  109669. return ec.fieldContext_Customer_lastOrder(ctx, field)
  109670. case "legacyResourceId":
  109671. return ec.fieldContext_Customer_legacyResourceId(ctx, field)
  109672. case "lifetimeDuration":
  109673. return ec.fieldContext_Customer_lifetimeDuration(ctx, field)
  109674. case "locale":
  109675. return ec.fieldContext_Customer_locale(ctx, field)
  109676. case "market":
  109677. return ec.fieldContext_Customer_market(ctx, field)
  109678. case "metafield":
  109679. return ec.fieldContext_Customer_metafield(ctx, field)
  109680. case "metafieldDefinitions":
  109681. return ec.fieldContext_Customer_metafieldDefinitions(ctx, field)
  109682. case "metafields":
  109683. return ec.fieldContext_Customer_metafields(ctx, field)
  109684. case "multipassIdentifier":
  109685. return ec.fieldContext_Customer_multipassIdentifier(ctx, field)
  109686. case "note":
  109687. return ec.fieldContext_Customer_note(ctx, field)
  109688. case "numberOfOrders":
  109689. return ec.fieldContext_Customer_numberOfOrders(ctx, field)
  109690. case "orders":
  109691. return ec.fieldContext_Customer_orders(ctx, field)
  109692. case "paymentMethods":
  109693. return ec.fieldContext_Customer_paymentMethods(ctx, field)
  109694. case "phone":
  109695. return ec.fieldContext_Customer_phone(ctx, field)
  109696. case "privateMetafield":
  109697. return ec.fieldContext_Customer_privateMetafield(ctx, field)
  109698. case "privateMetafields":
  109699. return ec.fieldContext_Customer_privateMetafields(ctx, field)
  109700. case "productSubscriberStatus":
  109701. return ec.fieldContext_Customer_productSubscriberStatus(ctx, field)
  109702. case "smsMarketingConsent":
  109703. return ec.fieldContext_Customer_smsMarketingConsent(ctx, field)
  109704. case "state":
  109705. return ec.fieldContext_Customer_state(ctx, field)
  109706. case "statistics":
  109707. return ec.fieldContext_Customer_statistics(ctx, field)
  109708. case "subscriptionContracts":
  109709. return ec.fieldContext_Customer_subscriptionContracts(ctx, field)
  109710. case "tags":
  109711. return ec.fieldContext_Customer_tags(ctx, field)
  109712. case "taxExempt":
  109713. return ec.fieldContext_Customer_taxExempt(ctx, field)
  109714. case "taxExemptions":
  109715. return ec.fieldContext_Customer_taxExemptions(ctx, field)
  109716. case "unsubscribeUrl":
  109717. return ec.fieldContext_Customer_unsubscribeUrl(ctx, field)
  109718. case "updatedAt":
  109719. return ec.fieldContext_Customer_updatedAt(ctx, field)
  109720. case "validEmailAddress":
  109721. return ec.fieldContext_Customer_validEmailAddress(ctx, field)
  109722. case "verifiedEmail":
  109723. return ec.fieldContext_Customer_verifiedEmail(ctx, field)
  109724. }
  109725. return nil, fmt.Errorf("no field named %q was found under type Customer", field.Name)
  109726. },
  109727. }
  109728. defer func() {
  109729. if r := recover(); r != nil {
  109730. err = ec.Recover(ctx, r)
  109731. ec.Error(ctx, err)
  109732. }
  109733. }()
  109734. ctx = graphql.WithFieldContext(ctx, fc)
  109735. if fc.Args, err = ec.field_Query_customer_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  109736. ec.Error(ctx, err)
  109737. return
  109738. }
  109739. return fc, nil
  109740. }
  109741. func (ec *executionContext) _Query__entities(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
  109742. fc, err := ec.fieldContext_Query__entities(ctx, field)
  109743. if err != nil {
  109744. return graphql.Null
  109745. }
  109746. ctx = graphql.WithFieldContext(ctx, fc)
  109747. defer func() {
  109748. if r := recover(); r != nil {
  109749. ec.Error(ctx, ec.Recover(ctx, r))
  109750. ret = graphql.Null
  109751. }
  109752. }()
  109753. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  109754. ctx = rctx // use context from middleware stack in children
  109755. return ec.__resolve_entities(ctx, fc.Args["representations"].([]map[string]interface{})), nil
  109756. })
  109757. if err != nil {
  109758. ec.Error(ctx, err)
  109759. return graphql.Null
  109760. }
  109761. if resTmp == nil {
  109762. if !graphql.HasFieldError(ctx, fc) {
  109763. ec.Errorf(ctx, "must not be null")
  109764. }
  109765. return graphql.Null
  109766. }
  109767. res := resTmp.([]fedruntime.Entity)
  109768. fc.Result = res
  109769. return ec.marshalN_Entity2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋfedruntimeᚐEntity(ctx, field.Selections, res)
  109770. }
  109771. func (ec *executionContext) fieldContext_Query__entities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  109772. fc = &graphql.FieldContext{
  109773. Object: "Query",
  109774. Field: field,
  109775. IsMethod: true,
  109776. IsResolver: false,
  109777. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  109778. return nil, errors.New("field of type _Entity does not have child fields")
  109779. },
  109780. }
  109781. defer func() {
  109782. if r := recover(); r != nil {
  109783. err = ec.Recover(ctx, r)
  109784. ec.Error(ctx, err)
  109785. }
  109786. }()
  109787. ctx = graphql.WithFieldContext(ctx, fc)
  109788. if fc.Args, err = ec.field_Query__entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  109789. ec.Error(ctx, err)
  109790. return
  109791. }
  109792. return fc, nil
  109793. }
  109794. func (ec *executionContext) _Query__service(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
  109795. fc, err := ec.fieldContext_Query__service(ctx, field)
  109796. if err != nil {
  109797. return graphql.Null
  109798. }
  109799. ctx = graphql.WithFieldContext(ctx, fc)
  109800. defer func() {
  109801. if r := recover(); r != nil {
  109802. ec.Error(ctx, ec.Recover(ctx, r))
  109803. ret = graphql.Null
  109804. }
  109805. }()
  109806. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  109807. ctx = rctx // use context from middleware stack in children
  109808. return ec.__resolve__service(ctx)
  109809. })
  109810. if err != nil {
  109811. ec.Error(ctx, err)
  109812. return graphql.Null
  109813. }
  109814. if resTmp == nil {
  109815. if !graphql.HasFieldError(ctx, fc) {
  109816. ec.Errorf(ctx, "must not be null")
  109817. }
  109818. return graphql.Null
  109819. }
  109820. res := resTmp.(fedruntime.Service)
  109821. fc.Result = res
  109822. return ec.marshalN_Service2githubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋfedruntimeᚐService(ctx, field.Selections, res)
  109823. }
  109824. func (ec *executionContext) fieldContext_Query__service(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  109825. fc = &graphql.FieldContext{
  109826. Object: "Query",
  109827. Field: field,
  109828. IsMethod: true,
  109829. IsResolver: false,
  109830. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  109831. switch field.Name {
  109832. case "sdl":
  109833. return ec.fieldContext__Service_sdl(ctx, field)
  109834. }
  109835. return nil, fmt.Errorf("no field named %q was found under type _Service", field.Name)
  109836. },
  109837. }
  109838. return fc, nil
  109839. }
  109840. func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
  109841. fc, err := ec.fieldContext_Query___type(ctx, field)
  109842. if err != nil {
  109843. return graphql.Null
  109844. }
  109845. ctx = graphql.WithFieldContext(ctx, fc)
  109846. defer func() {
  109847. if r := recover(); r != nil {
  109848. ec.Error(ctx, ec.Recover(ctx, r))
  109849. ret = graphql.Null
  109850. }
  109851. }()
  109852. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  109853. ctx = rctx // use context from middleware stack in children
  109854. return ec.introspectType(fc.Args["name"].(string))
  109855. })
  109856. if err != nil {
  109857. ec.Error(ctx, err)
  109858. return graphql.Null
  109859. }
  109860. if resTmp == nil {
  109861. return graphql.Null
  109862. }
  109863. res := resTmp.(*introspection.Type)
  109864. fc.Result = res
  109865. return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  109866. }
  109867. func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  109868. fc = &graphql.FieldContext{
  109869. Object: "Query",
  109870. Field: field,
  109871. IsMethod: true,
  109872. IsResolver: false,
  109873. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  109874. switch field.Name {
  109875. case "kind":
  109876. return ec.fieldContext___Type_kind(ctx, field)
  109877. case "name":
  109878. return ec.fieldContext___Type_name(ctx, field)
  109879. case "description":
  109880. return ec.fieldContext___Type_description(ctx, field)
  109881. case "fields":
  109882. return ec.fieldContext___Type_fields(ctx, field)
  109883. case "interfaces":
  109884. return ec.fieldContext___Type_interfaces(ctx, field)
  109885. case "possibleTypes":
  109886. return ec.fieldContext___Type_possibleTypes(ctx, field)
  109887. case "enumValues":
  109888. return ec.fieldContext___Type_enumValues(ctx, field)
  109889. case "inputFields":
  109890. return ec.fieldContext___Type_inputFields(ctx, field)
  109891. case "ofType":
  109892. return ec.fieldContext___Type_ofType(ctx, field)
  109893. case "specifiedByURL":
  109894. return ec.fieldContext___Type_specifiedByURL(ctx, field)
  109895. }
  109896. return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
  109897. },
  109898. }
  109899. defer func() {
  109900. if r := recover(); r != nil {
  109901. err = ec.Recover(ctx, r)
  109902. ec.Error(ctx, err)
  109903. }
  109904. }()
  109905. ctx = graphql.WithFieldContext(ctx, fc)
  109906. if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  109907. ec.Error(ctx, err)
  109908. return
  109909. }
  109910. return fc, nil
  109911. }
  109912. func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
  109913. fc, err := ec.fieldContext_Query___schema(ctx, field)
  109914. if err != nil {
  109915. return graphql.Null
  109916. }
  109917. ctx = graphql.WithFieldContext(ctx, fc)
  109918. defer func() {
  109919. if r := recover(); r != nil {
  109920. ec.Error(ctx, ec.Recover(ctx, r))
  109921. ret = graphql.Null
  109922. }
  109923. }()
  109924. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  109925. ctx = rctx // use context from middleware stack in children
  109926. return ec.introspectSchema()
  109927. })
  109928. if err != nil {
  109929. ec.Error(ctx, err)
  109930. return graphql.Null
  109931. }
  109932. if resTmp == nil {
  109933. return graphql.Null
  109934. }
  109935. res := resTmp.(*introspection.Schema)
  109936. fc.Result = res
  109937. return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res)
  109938. }
  109939. func (ec *executionContext) fieldContext_Query___schema(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  109940. fc = &graphql.FieldContext{
  109941. Object: "Query",
  109942. Field: field,
  109943. IsMethod: true,
  109944. IsResolver: false,
  109945. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  109946. switch field.Name {
  109947. case "description":
  109948. return ec.fieldContext___Schema_description(ctx, field)
  109949. case "types":
  109950. return ec.fieldContext___Schema_types(ctx, field)
  109951. case "queryType":
  109952. return ec.fieldContext___Schema_queryType(ctx, field)
  109953. case "mutationType":
  109954. return ec.fieldContext___Schema_mutationType(ctx, field)
  109955. case "subscriptionType":
  109956. return ec.fieldContext___Schema_subscriptionType(ctx, field)
  109957. case "directives":
  109958. return ec.fieldContext___Schema_directives(ctx, field)
  109959. }
  109960. return nil, fmt.Errorf("no field named %q was found under type __Schema", field.Name)
  109961. },
  109962. }
  109963. return fc, nil
  109964. }
  109965. func (ec *executionContext) _Refund_createdAt(ctx context.Context, field graphql.CollectedField, obj *Refund) (ret graphql.Marshaler) {
  109966. fc, err := ec.fieldContext_Refund_createdAt(ctx, field)
  109967. if err != nil {
  109968. return graphql.Null
  109969. }
  109970. ctx = graphql.WithFieldContext(ctx, fc)
  109971. defer func() {
  109972. if r := recover(); r != nil {
  109973. ec.Error(ctx, ec.Recover(ctx, r))
  109974. ret = graphql.Null
  109975. }
  109976. }()
  109977. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  109978. ctx = rctx // use context from middleware stack in children
  109979. return obj.CreatedAt, nil
  109980. })
  109981. if err != nil {
  109982. ec.Error(ctx, err)
  109983. return graphql.Null
  109984. }
  109985. if resTmp == nil {
  109986. return graphql.Null
  109987. }
  109988. res := resTmp.(*string)
  109989. fc.Result = res
  109990. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  109991. }
  109992. func (ec *executionContext) fieldContext_Refund_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  109993. fc = &graphql.FieldContext{
  109994. Object: "Refund",
  109995. Field: field,
  109996. IsMethod: false,
  109997. IsResolver: false,
  109998. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  109999. return nil, errors.New("field of type DateTime does not have child fields")
  110000. },
  110001. }
  110002. return fc, nil
  110003. }
  110004. func (ec *executionContext) _Refund_duties(ctx context.Context, field graphql.CollectedField, obj *Refund) (ret graphql.Marshaler) {
  110005. fc, err := ec.fieldContext_Refund_duties(ctx, field)
  110006. if err != nil {
  110007. return graphql.Null
  110008. }
  110009. ctx = graphql.WithFieldContext(ctx, fc)
  110010. defer func() {
  110011. if r := recover(); r != nil {
  110012. ec.Error(ctx, ec.Recover(ctx, r))
  110013. ret = graphql.Null
  110014. }
  110015. }()
  110016. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  110017. ctx = rctx // use context from middleware stack in children
  110018. return obj.Duties, nil
  110019. })
  110020. if err != nil {
  110021. ec.Error(ctx, err)
  110022. return graphql.Null
  110023. }
  110024. if resTmp == nil {
  110025. return graphql.Null
  110026. }
  110027. res := resTmp.([]*RefundDuty)
  110028. fc.Result = res
  110029. return ec.marshalORefundDuty2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundDutyᚄ(ctx, field.Selections, res)
  110030. }
  110031. func (ec *executionContext) fieldContext_Refund_duties(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  110032. fc = &graphql.FieldContext{
  110033. Object: "Refund",
  110034. Field: field,
  110035. IsMethod: false,
  110036. IsResolver: false,
  110037. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  110038. switch field.Name {
  110039. case "amountSet":
  110040. return ec.fieldContext_RefundDuty_amountSet(ctx, field)
  110041. case "originalDuty":
  110042. return ec.fieldContext_RefundDuty_originalDuty(ctx, field)
  110043. }
  110044. return nil, fmt.Errorf("no field named %q was found under type RefundDuty", field.Name)
  110045. },
  110046. }
  110047. return fc, nil
  110048. }
  110049. func (ec *executionContext) _Refund_id(ctx context.Context, field graphql.CollectedField, obj *Refund) (ret graphql.Marshaler) {
  110050. fc, err := ec.fieldContext_Refund_id(ctx, field)
  110051. if err != nil {
  110052. return graphql.Null
  110053. }
  110054. ctx = graphql.WithFieldContext(ctx, fc)
  110055. defer func() {
  110056. if r := recover(); r != nil {
  110057. ec.Error(ctx, ec.Recover(ctx, r))
  110058. ret = graphql.Null
  110059. }
  110060. }()
  110061. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  110062. ctx = rctx // use context from middleware stack in children
  110063. return obj.ID, nil
  110064. })
  110065. if err != nil {
  110066. ec.Error(ctx, err)
  110067. return graphql.Null
  110068. }
  110069. if resTmp == nil {
  110070. if !graphql.HasFieldError(ctx, fc) {
  110071. ec.Errorf(ctx, "must not be null")
  110072. }
  110073. return graphql.Null
  110074. }
  110075. res := resTmp.(string)
  110076. fc.Result = res
  110077. return ec.marshalNID2string(ctx, field.Selections, res)
  110078. }
  110079. func (ec *executionContext) fieldContext_Refund_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  110080. fc = &graphql.FieldContext{
  110081. Object: "Refund",
  110082. Field: field,
  110083. IsMethod: false,
  110084. IsResolver: false,
  110085. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  110086. return nil, errors.New("field of type ID does not have child fields")
  110087. },
  110088. }
  110089. return fc, nil
  110090. }
  110091. func (ec *executionContext) _Refund_legacyResourceId(ctx context.Context, field graphql.CollectedField, obj *Refund) (ret graphql.Marshaler) {
  110092. fc, err := ec.fieldContext_Refund_legacyResourceId(ctx, field)
  110093. if err != nil {
  110094. return graphql.Null
  110095. }
  110096. ctx = graphql.WithFieldContext(ctx, fc)
  110097. defer func() {
  110098. if r := recover(); r != nil {
  110099. ec.Error(ctx, ec.Recover(ctx, r))
  110100. ret = graphql.Null
  110101. }
  110102. }()
  110103. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  110104. ctx = rctx // use context from middleware stack in children
  110105. return obj.LegacyResourceID, nil
  110106. })
  110107. if err != nil {
  110108. ec.Error(ctx, err)
  110109. return graphql.Null
  110110. }
  110111. if resTmp == nil {
  110112. if !graphql.HasFieldError(ctx, fc) {
  110113. ec.Errorf(ctx, "must not be null")
  110114. }
  110115. return graphql.Null
  110116. }
  110117. res := resTmp.(string)
  110118. fc.Result = res
  110119. return ec.marshalNUnsignedInt642string(ctx, field.Selections, res)
  110120. }
  110121. func (ec *executionContext) fieldContext_Refund_legacyResourceId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  110122. fc = &graphql.FieldContext{
  110123. Object: "Refund",
  110124. Field: field,
  110125. IsMethod: false,
  110126. IsResolver: false,
  110127. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  110128. return nil, errors.New("field of type UnsignedInt64 does not have child fields")
  110129. },
  110130. }
  110131. return fc, nil
  110132. }
  110133. func (ec *executionContext) _Refund_note(ctx context.Context, field graphql.CollectedField, obj *Refund) (ret graphql.Marshaler) {
  110134. fc, err := ec.fieldContext_Refund_note(ctx, field)
  110135. if err != nil {
  110136. return graphql.Null
  110137. }
  110138. ctx = graphql.WithFieldContext(ctx, fc)
  110139. defer func() {
  110140. if r := recover(); r != nil {
  110141. ec.Error(ctx, ec.Recover(ctx, r))
  110142. ret = graphql.Null
  110143. }
  110144. }()
  110145. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  110146. ctx = rctx // use context from middleware stack in children
  110147. return obj.Note, nil
  110148. })
  110149. if err != nil {
  110150. ec.Error(ctx, err)
  110151. return graphql.Null
  110152. }
  110153. if resTmp == nil {
  110154. return graphql.Null
  110155. }
  110156. res := resTmp.(*string)
  110157. fc.Result = res
  110158. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  110159. }
  110160. func (ec *executionContext) fieldContext_Refund_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  110161. fc = &graphql.FieldContext{
  110162. Object: "Refund",
  110163. Field: field,
  110164. IsMethod: false,
  110165. IsResolver: false,
  110166. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  110167. return nil, errors.New("field of type String does not have child fields")
  110168. },
  110169. }
  110170. return fc, nil
  110171. }
  110172. func (ec *executionContext) _Refund_order(ctx context.Context, field graphql.CollectedField, obj *Refund) (ret graphql.Marshaler) {
  110173. fc, err := ec.fieldContext_Refund_order(ctx, field)
  110174. if err != nil {
  110175. return graphql.Null
  110176. }
  110177. ctx = graphql.WithFieldContext(ctx, fc)
  110178. defer func() {
  110179. if r := recover(); r != nil {
  110180. ec.Error(ctx, ec.Recover(ctx, r))
  110181. ret = graphql.Null
  110182. }
  110183. }()
  110184. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  110185. ctx = rctx // use context from middleware stack in children
  110186. return obj.Order, nil
  110187. })
  110188. if err != nil {
  110189. ec.Error(ctx, err)
  110190. return graphql.Null
  110191. }
  110192. if resTmp == nil {
  110193. if !graphql.HasFieldError(ctx, fc) {
  110194. ec.Errorf(ctx, "must not be null")
  110195. }
  110196. return graphql.Null
  110197. }
  110198. res := resTmp.(*Order)
  110199. fc.Result = res
  110200. return ec.marshalNOrder2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrder(ctx, field.Selections, res)
  110201. }
  110202. func (ec *executionContext) fieldContext_Refund_order(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  110203. fc = &graphql.FieldContext{
  110204. Object: "Refund",
  110205. Field: field,
  110206. IsMethod: false,
  110207. IsResolver: false,
  110208. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  110209. switch field.Name {
  110210. case "agreements":
  110211. return ec.fieldContext_Order_agreements(ctx, field)
  110212. case "alerts":
  110213. return ec.fieldContext_Order_alerts(ctx, field)
  110214. case "app":
  110215. return ec.fieldContext_Order_app(ctx, field)
  110216. case "billingAddress":
  110217. return ec.fieldContext_Order_billingAddress(ctx, field)
  110218. case "billingAddressMatchesShippingAddress":
  110219. return ec.fieldContext_Order_billingAddressMatchesShippingAddress(ctx, field)
  110220. case "canMarkAsPaid":
  110221. return ec.fieldContext_Order_canMarkAsPaid(ctx, field)
  110222. case "canNotifyCustomer":
  110223. return ec.fieldContext_Order_canNotifyCustomer(ctx, field)
  110224. case "cancelReason":
  110225. return ec.fieldContext_Order_cancelReason(ctx, field)
  110226. case "cancelledAt":
  110227. return ec.fieldContext_Order_cancelledAt(ctx, field)
  110228. case "capturable":
  110229. return ec.fieldContext_Order_capturable(ctx, field)
  110230. case "cartDiscountAmountSet":
  110231. return ec.fieldContext_Order_cartDiscountAmountSet(ctx, field)
  110232. case "channelInformation":
  110233. return ec.fieldContext_Order_channelInformation(ctx, field)
  110234. case "clientIp":
  110235. return ec.fieldContext_Order_clientIp(ctx, field)
  110236. case "closed":
  110237. return ec.fieldContext_Order_closed(ctx, field)
  110238. case "closedAt":
  110239. return ec.fieldContext_Order_closedAt(ctx, field)
  110240. case "confirmed":
  110241. return ec.fieldContext_Order_confirmed(ctx, field)
  110242. case "createdAt":
  110243. return ec.fieldContext_Order_createdAt(ctx, field)
  110244. case "currencyCode":
  110245. return ec.fieldContext_Order_currencyCode(ctx, field)
  110246. case "currentCartDiscountAmountSet":
  110247. return ec.fieldContext_Order_currentCartDiscountAmountSet(ctx, field)
  110248. case "currentSubtotalLineItemsQuantity":
  110249. return ec.fieldContext_Order_currentSubtotalLineItemsQuantity(ctx, field)
  110250. case "currentSubtotalPriceSet":
  110251. return ec.fieldContext_Order_currentSubtotalPriceSet(ctx, field)
  110252. case "currentTaxLines":
  110253. return ec.fieldContext_Order_currentTaxLines(ctx, field)
  110254. case "currentTotalDiscountsSet":
  110255. return ec.fieldContext_Order_currentTotalDiscountsSet(ctx, field)
  110256. case "currentTotalDutiesSet":
  110257. return ec.fieldContext_Order_currentTotalDutiesSet(ctx, field)
  110258. case "currentTotalPriceSet":
  110259. return ec.fieldContext_Order_currentTotalPriceSet(ctx, field)
  110260. case "currentTotalTaxSet":
  110261. return ec.fieldContext_Order_currentTotalTaxSet(ctx, field)
  110262. case "currentTotalWeight":
  110263. return ec.fieldContext_Order_currentTotalWeight(ctx, field)
  110264. case "customAttributes":
  110265. return ec.fieldContext_Order_customAttributes(ctx, field)
  110266. case "customer":
  110267. return ec.fieldContext_Order_customer(ctx, field)
  110268. case "customerAcceptsMarketing":
  110269. return ec.fieldContext_Order_customerAcceptsMarketing(ctx, field)
  110270. case "customerJourneySummary":
  110271. return ec.fieldContext_Order_customerJourneySummary(ctx, field)
  110272. case "customerLocale":
  110273. return ec.fieldContext_Order_customerLocale(ctx, field)
  110274. case "discountApplications":
  110275. return ec.fieldContext_Order_discountApplications(ctx, field)
  110276. case "discountCode":
  110277. return ec.fieldContext_Order_discountCode(ctx, field)
  110278. case "discountCodes":
  110279. return ec.fieldContext_Order_discountCodes(ctx, field)
  110280. case "displayAddress":
  110281. return ec.fieldContext_Order_displayAddress(ctx, field)
  110282. case "displayFinancialStatus":
  110283. return ec.fieldContext_Order_displayFinancialStatus(ctx, field)
  110284. case "displayFulfillmentStatus":
  110285. return ec.fieldContext_Order_displayFulfillmentStatus(ctx, field)
  110286. case "disputes":
  110287. return ec.fieldContext_Order_disputes(ctx, field)
  110288. case "edited":
  110289. return ec.fieldContext_Order_edited(ctx, field)
  110290. case "email":
  110291. return ec.fieldContext_Order_email(ctx, field)
  110292. case "estimatedTaxes":
  110293. return ec.fieldContext_Order_estimatedTaxes(ctx, field)
  110294. case "events":
  110295. return ec.fieldContext_Order_events(ctx, field)
  110296. case "fulfillable":
  110297. return ec.fieldContext_Order_fulfillable(ctx, field)
  110298. case "fulfillmentOrders":
  110299. return ec.fieldContext_Order_fulfillmentOrders(ctx, field)
  110300. case "fulfillments":
  110301. return ec.fieldContext_Order_fulfillments(ctx, field)
  110302. case "fullyPaid":
  110303. return ec.fieldContext_Order_fullyPaid(ctx, field)
  110304. case "hasTimelineComment":
  110305. return ec.fieldContext_Order_hasTimelineComment(ctx, field)
  110306. case "id":
  110307. return ec.fieldContext_Order_id(ctx, field)
  110308. case "legacyResourceId":
  110309. return ec.fieldContext_Order_legacyResourceId(ctx, field)
  110310. case "lineItems":
  110311. return ec.fieldContext_Order_lineItems(ctx, field)
  110312. case "localizationExtensions":
  110313. return ec.fieldContext_Order_localizationExtensions(ctx, field)
  110314. case "merchantEditable":
  110315. return ec.fieldContext_Order_merchantEditable(ctx, field)
  110316. case "merchantEditableErrors":
  110317. return ec.fieldContext_Order_merchantEditableErrors(ctx, field)
  110318. case "merchantOfRecordApp":
  110319. return ec.fieldContext_Order_merchantOfRecordApp(ctx, field)
  110320. case "metafield":
  110321. return ec.fieldContext_Order_metafield(ctx, field)
  110322. case "metafieldDefinitions":
  110323. return ec.fieldContext_Order_metafieldDefinitions(ctx, field)
  110324. case "metafields":
  110325. return ec.fieldContext_Order_metafields(ctx, field)
  110326. case "name":
  110327. return ec.fieldContext_Order_name(ctx, field)
  110328. case "netPaymentSet":
  110329. return ec.fieldContext_Order_netPaymentSet(ctx, field)
  110330. case "nonFulfillableLineItems":
  110331. return ec.fieldContext_Order_nonFulfillableLineItems(ctx, field)
  110332. case "note":
  110333. return ec.fieldContext_Order_note(ctx, field)
  110334. case "originalTotalDutiesSet":
  110335. return ec.fieldContext_Order_originalTotalDutiesSet(ctx, field)
  110336. case "originalTotalPriceSet":
  110337. return ec.fieldContext_Order_originalTotalPriceSet(ctx, field)
  110338. case "paymentCollectionDetails":
  110339. return ec.fieldContext_Order_paymentCollectionDetails(ctx, field)
  110340. case "paymentGatewayNames":
  110341. return ec.fieldContext_Order_paymentGatewayNames(ctx, field)
  110342. case "paymentTerms":
  110343. return ec.fieldContext_Order_paymentTerms(ctx, field)
  110344. case "phone":
  110345. return ec.fieldContext_Order_phone(ctx, field)
  110346. case "physicalLocation":
  110347. return ec.fieldContext_Order_physicalLocation(ctx, field)
  110348. case "presentmentCurrencyCode":
  110349. return ec.fieldContext_Order_presentmentCurrencyCode(ctx, field)
  110350. case "privateMetafield":
  110351. return ec.fieldContext_Order_privateMetafield(ctx, field)
  110352. case "privateMetafields":
  110353. return ec.fieldContext_Order_privateMetafields(ctx, field)
  110354. case "processedAt":
  110355. return ec.fieldContext_Order_processedAt(ctx, field)
  110356. case "publication":
  110357. return ec.fieldContext_Order_publication(ctx, field)
  110358. case "purchasingEntity":
  110359. return ec.fieldContext_Order_purchasingEntity(ctx, field)
  110360. case "refundDiscrepancySet":
  110361. return ec.fieldContext_Order_refundDiscrepancySet(ctx, field)
  110362. case "refundable":
  110363. return ec.fieldContext_Order_refundable(ctx, field)
  110364. case "refunds":
  110365. return ec.fieldContext_Order_refunds(ctx, field)
  110366. case "registeredSourceUrl":
  110367. return ec.fieldContext_Order_registeredSourceUrl(ctx, field)
  110368. case "requiresShipping":
  110369. return ec.fieldContext_Order_requiresShipping(ctx, field)
  110370. case "restockable":
  110371. return ec.fieldContext_Order_restockable(ctx, field)
  110372. case "riskLevel":
  110373. return ec.fieldContext_Order_riskLevel(ctx, field)
  110374. case "risks":
  110375. return ec.fieldContext_Order_risks(ctx, field)
  110376. case "shippingAddress":
  110377. return ec.fieldContext_Order_shippingAddress(ctx, field)
  110378. case "shippingLine":
  110379. return ec.fieldContext_Order_shippingLine(ctx, field)
  110380. case "shippingLines":
  110381. return ec.fieldContext_Order_shippingLines(ctx, field)
  110382. case "sourceIdentifier":
  110383. return ec.fieldContext_Order_sourceIdentifier(ctx, field)
  110384. case "subtotalLineItemsQuantity":
  110385. return ec.fieldContext_Order_subtotalLineItemsQuantity(ctx, field)
  110386. case "subtotalPriceSet":
  110387. return ec.fieldContext_Order_subtotalPriceSet(ctx, field)
  110388. case "suggestedRefund":
  110389. return ec.fieldContext_Order_suggestedRefund(ctx, field)
  110390. case "tags":
  110391. return ec.fieldContext_Order_tags(ctx, field)
  110392. case "taxLines":
  110393. return ec.fieldContext_Order_taxLines(ctx, field)
  110394. case "taxesIncluded":
  110395. return ec.fieldContext_Order_taxesIncluded(ctx, field)
  110396. case "test":
  110397. return ec.fieldContext_Order_test(ctx, field)
  110398. case "totalCapturableSet":
  110399. return ec.fieldContext_Order_totalCapturableSet(ctx, field)
  110400. case "totalDiscountsSet":
  110401. return ec.fieldContext_Order_totalDiscountsSet(ctx, field)
  110402. case "totalOutstandingSet":
  110403. return ec.fieldContext_Order_totalOutstandingSet(ctx, field)
  110404. case "totalPriceSet":
  110405. return ec.fieldContext_Order_totalPriceSet(ctx, field)
  110406. case "totalReceivedSet":
  110407. return ec.fieldContext_Order_totalReceivedSet(ctx, field)
  110408. case "totalRefundedSet":
  110409. return ec.fieldContext_Order_totalRefundedSet(ctx, field)
  110410. case "totalRefundedShippingSet":
  110411. return ec.fieldContext_Order_totalRefundedShippingSet(ctx, field)
  110412. case "totalShippingPriceSet":
  110413. return ec.fieldContext_Order_totalShippingPriceSet(ctx, field)
  110414. case "totalTaxSet":
  110415. return ec.fieldContext_Order_totalTaxSet(ctx, field)
  110416. case "totalTipReceivedSet":
  110417. return ec.fieldContext_Order_totalTipReceivedSet(ctx, field)
  110418. case "totalWeight":
  110419. return ec.fieldContext_Order_totalWeight(ctx, field)
  110420. case "transactions":
  110421. return ec.fieldContext_Order_transactions(ctx, field)
  110422. case "unpaid":
  110423. return ec.fieldContext_Order_unpaid(ctx, field)
  110424. case "updatedAt":
  110425. return ec.fieldContext_Order_updatedAt(ctx, field)
  110426. }
  110427. return nil, fmt.Errorf("no field named %q was found under type Order", field.Name)
  110428. },
  110429. }
  110430. return fc, nil
  110431. }
  110432. func (ec *executionContext) _Refund_refundLineItems(ctx context.Context, field graphql.CollectedField, obj *Refund) (ret graphql.Marshaler) {
  110433. fc, err := ec.fieldContext_Refund_refundLineItems(ctx, field)
  110434. if err != nil {
  110435. return graphql.Null
  110436. }
  110437. ctx = graphql.WithFieldContext(ctx, fc)
  110438. defer func() {
  110439. if r := recover(); r != nil {
  110440. ec.Error(ctx, ec.Recover(ctx, r))
  110441. ret = graphql.Null
  110442. }
  110443. }()
  110444. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  110445. ctx = rctx // use context from middleware stack in children
  110446. return obj.RefundLineItems, nil
  110447. })
  110448. if err != nil {
  110449. ec.Error(ctx, err)
  110450. return graphql.Null
  110451. }
  110452. if resTmp == nil {
  110453. if !graphql.HasFieldError(ctx, fc) {
  110454. ec.Errorf(ctx, "must not be null")
  110455. }
  110456. return graphql.Null
  110457. }
  110458. res := resTmp.(*RefundLineItemConnection)
  110459. fc.Result = res
  110460. return ec.marshalNRefundLineItemConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundLineItemConnection(ctx, field.Selections, res)
  110461. }
  110462. func (ec *executionContext) fieldContext_Refund_refundLineItems(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  110463. fc = &graphql.FieldContext{
  110464. Object: "Refund",
  110465. Field: field,
  110466. IsMethod: false,
  110467. IsResolver: false,
  110468. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  110469. switch field.Name {
  110470. case "edges":
  110471. return ec.fieldContext_RefundLineItemConnection_edges(ctx, field)
  110472. case "nodes":
  110473. return ec.fieldContext_RefundLineItemConnection_nodes(ctx, field)
  110474. case "pageInfo":
  110475. return ec.fieldContext_RefundLineItemConnection_pageInfo(ctx, field)
  110476. }
  110477. return nil, fmt.Errorf("no field named %q was found under type RefundLineItemConnection", field.Name)
  110478. },
  110479. }
  110480. defer func() {
  110481. if r := recover(); r != nil {
  110482. err = ec.Recover(ctx, r)
  110483. ec.Error(ctx, err)
  110484. }
  110485. }()
  110486. ctx = graphql.WithFieldContext(ctx, fc)
  110487. if fc.Args, err = ec.field_Refund_refundLineItems_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  110488. ec.Error(ctx, err)
  110489. return
  110490. }
  110491. return fc, nil
  110492. }
  110493. func (ec *executionContext) _Refund_staffMember(ctx context.Context, field graphql.CollectedField, obj *Refund) (ret graphql.Marshaler) {
  110494. fc, err := ec.fieldContext_Refund_staffMember(ctx, field)
  110495. if err != nil {
  110496. return graphql.Null
  110497. }
  110498. ctx = graphql.WithFieldContext(ctx, fc)
  110499. defer func() {
  110500. if r := recover(); r != nil {
  110501. ec.Error(ctx, ec.Recover(ctx, r))
  110502. ret = graphql.Null
  110503. }
  110504. }()
  110505. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  110506. ctx = rctx // use context from middleware stack in children
  110507. return obj.StaffMember, nil
  110508. })
  110509. if err != nil {
  110510. ec.Error(ctx, err)
  110511. return graphql.Null
  110512. }
  110513. if resTmp == nil {
  110514. return graphql.Null
  110515. }
  110516. res := resTmp.(*StaffMember)
  110517. fc.Result = res
  110518. return ec.marshalOStaffMember2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStaffMember(ctx, field.Selections, res)
  110519. }
  110520. func (ec *executionContext) fieldContext_Refund_staffMember(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  110521. fc = &graphql.FieldContext{
  110522. Object: "Refund",
  110523. Field: field,
  110524. IsMethod: false,
  110525. IsResolver: false,
  110526. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  110527. switch field.Name {
  110528. case "active":
  110529. return ec.fieldContext_StaffMember_active(ctx, field)
  110530. case "avatar":
  110531. return ec.fieldContext_StaffMember_avatar(ctx, field)
  110532. case "email":
  110533. return ec.fieldContext_StaffMember_email(ctx, field)
  110534. case "exists":
  110535. return ec.fieldContext_StaffMember_exists(ctx, field)
  110536. case "firstName":
  110537. return ec.fieldContext_StaffMember_firstName(ctx, field)
  110538. case "id":
  110539. return ec.fieldContext_StaffMember_id(ctx, field)
  110540. case "initials":
  110541. return ec.fieldContext_StaffMember_initials(ctx, field)
  110542. case "isShopOwner":
  110543. return ec.fieldContext_StaffMember_isShopOwner(ctx, field)
  110544. case "lastName":
  110545. return ec.fieldContext_StaffMember_lastName(ctx, field)
  110546. case "locale":
  110547. return ec.fieldContext_StaffMember_locale(ctx, field)
  110548. case "name":
  110549. return ec.fieldContext_StaffMember_name(ctx, field)
  110550. case "phone":
  110551. return ec.fieldContext_StaffMember_phone(ctx, field)
  110552. case "privateData":
  110553. return ec.fieldContext_StaffMember_privateData(ctx, field)
  110554. }
  110555. return nil, fmt.Errorf("no field named %q was found under type StaffMember", field.Name)
  110556. },
  110557. }
  110558. return fc, nil
  110559. }
  110560. func (ec *executionContext) _Refund_totalRefundedSet(ctx context.Context, field graphql.CollectedField, obj *Refund) (ret graphql.Marshaler) {
  110561. fc, err := ec.fieldContext_Refund_totalRefundedSet(ctx, field)
  110562. if err != nil {
  110563. return graphql.Null
  110564. }
  110565. ctx = graphql.WithFieldContext(ctx, fc)
  110566. defer func() {
  110567. if r := recover(); r != nil {
  110568. ec.Error(ctx, ec.Recover(ctx, r))
  110569. ret = graphql.Null
  110570. }
  110571. }()
  110572. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  110573. ctx = rctx // use context from middleware stack in children
  110574. return obj.TotalRefundedSet, nil
  110575. })
  110576. if err != nil {
  110577. ec.Error(ctx, err)
  110578. return graphql.Null
  110579. }
  110580. if resTmp == nil {
  110581. if !graphql.HasFieldError(ctx, fc) {
  110582. ec.Errorf(ctx, "must not be null")
  110583. }
  110584. return graphql.Null
  110585. }
  110586. res := resTmp.(*MoneyBag)
  110587. fc.Result = res
  110588. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  110589. }
  110590. func (ec *executionContext) fieldContext_Refund_totalRefundedSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  110591. fc = &graphql.FieldContext{
  110592. Object: "Refund",
  110593. Field: field,
  110594. IsMethod: false,
  110595. IsResolver: false,
  110596. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  110597. switch field.Name {
  110598. case "presentmentMoney":
  110599. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  110600. case "shopMoney":
  110601. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  110602. }
  110603. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  110604. },
  110605. }
  110606. return fc, nil
  110607. }
  110608. func (ec *executionContext) _Refund_transactions(ctx context.Context, field graphql.CollectedField, obj *Refund) (ret graphql.Marshaler) {
  110609. fc, err := ec.fieldContext_Refund_transactions(ctx, field)
  110610. if err != nil {
  110611. return graphql.Null
  110612. }
  110613. ctx = graphql.WithFieldContext(ctx, fc)
  110614. defer func() {
  110615. if r := recover(); r != nil {
  110616. ec.Error(ctx, ec.Recover(ctx, r))
  110617. ret = graphql.Null
  110618. }
  110619. }()
  110620. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  110621. ctx = rctx // use context from middleware stack in children
  110622. return obj.Transactions, nil
  110623. })
  110624. if err != nil {
  110625. ec.Error(ctx, err)
  110626. return graphql.Null
  110627. }
  110628. if resTmp == nil {
  110629. if !graphql.HasFieldError(ctx, fc) {
  110630. ec.Errorf(ctx, "must not be null")
  110631. }
  110632. return graphql.Null
  110633. }
  110634. res := resTmp.(*OrderTransactionConnection)
  110635. fc.Result = res
  110636. return ec.marshalNOrderTransactionConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderTransactionConnection(ctx, field.Selections, res)
  110637. }
  110638. func (ec *executionContext) fieldContext_Refund_transactions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  110639. fc = &graphql.FieldContext{
  110640. Object: "Refund",
  110641. Field: field,
  110642. IsMethod: false,
  110643. IsResolver: false,
  110644. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  110645. switch field.Name {
  110646. case "edges":
  110647. return ec.fieldContext_OrderTransactionConnection_edges(ctx, field)
  110648. case "nodes":
  110649. return ec.fieldContext_OrderTransactionConnection_nodes(ctx, field)
  110650. case "pageInfo":
  110651. return ec.fieldContext_OrderTransactionConnection_pageInfo(ctx, field)
  110652. }
  110653. return nil, fmt.Errorf("no field named %q was found under type OrderTransactionConnection", field.Name)
  110654. },
  110655. }
  110656. defer func() {
  110657. if r := recover(); r != nil {
  110658. err = ec.Recover(ctx, r)
  110659. ec.Error(ctx, err)
  110660. }
  110661. }()
  110662. ctx = graphql.WithFieldContext(ctx, fc)
  110663. if fc.Args, err = ec.field_Refund_transactions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  110664. ec.Error(ctx, err)
  110665. return
  110666. }
  110667. return fc, nil
  110668. }
  110669. func (ec *executionContext) _Refund_updatedAt(ctx context.Context, field graphql.CollectedField, obj *Refund) (ret graphql.Marshaler) {
  110670. fc, err := ec.fieldContext_Refund_updatedAt(ctx, field)
  110671. if err != nil {
  110672. return graphql.Null
  110673. }
  110674. ctx = graphql.WithFieldContext(ctx, fc)
  110675. defer func() {
  110676. if r := recover(); r != nil {
  110677. ec.Error(ctx, ec.Recover(ctx, r))
  110678. ret = graphql.Null
  110679. }
  110680. }()
  110681. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  110682. ctx = rctx // use context from middleware stack in children
  110683. return obj.UpdatedAt, nil
  110684. })
  110685. if err != nil {
  110686. ec.Error(ctx, err)
  110687. return graphql.Null
  110688. }
  110689. if resTmp == nil {
  110690. if !graphql.HasFieldError(ctx, fc) {
  110691. ec.Errorf(ctx, "must not be null")
  110692. }
  110693. return graphql.Null
  110694. }
  110695. res := resTmp.(string)
  110696. fc.Result = res
  110697. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  110698. }
  110699. func (ec *executionContext) fieldContext_Refund_updatedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  110700. fc = &graphql.FieldContext{
  110701. Object: "Refund",
  110702. Field: field,
  110703. IsMethod: false,
  110704. IsResolver: false,
  110705. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  110706. return nil, errors.New("field of type DateTime does not have child fields")
  110707. },
  110708. }
  110709. return fc, nil
  110710. }
  110711. func (ec *executionContext) _RefundDuty_amountSet(ctx context.Context, field graphql.CollectedField, obj *RefundDuty) (ret graphql.Marshaler) {
  110712. fc, err := ec.fieldContext_RefundDuty_amountSet(ctx, field)
  110713. if err != nil {
  110714. return graphql.Null
  110715. }
  110716. ctx = graphql.WithFieldContext(ctx, fc)
  110717. defer func() {
  110718. if r := recover(); r != nil {
  110719. ec.Error(ctx, ec.Recover(ctx, r))
  110720. ret = graphql.Null
  110721. }
  110722. }()
  110723. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  110724. ctx = rctx // use context from middleware stack in children
  110725. return obj.AmountSet, nil
  110726. })
  110727. if err != nil {
  110728. ec.Error(ctx, err)
  110729. return graphql.Null
  110730. }
  110731. if resTmp == nil {
  110732. if !graphql.HasFieldError(ctx, fc) {
  110733. ec.Errorf(ctx, "must not be null")
  110734. }
  110735. return graphql.Null
  110736. }
  110737. res := resTmp.(*MoneyBag)
  110738. fc.Result = res
  110739. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  110740. }
  110741. func (ec *executionContext) fieldContext_RefundDuty_amountSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  110742. fc = &graphql.FieldContext{
  110743. Object: "RefundDuty",
  110744. Field: field,
  110745. IsMethod: false,
  110746. IsResolver: false,
  110747. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  110748. switch field.Name {
  110749. case "presentmentMoney":
  110750. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  110751. case "shopMoney":
  110752. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  110753. }
  110754. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  110755. },
  110756. }
  110757. return fc, nil
  110758. }
  110759. func (ec *executionContext) _RefundDuty_originalDuty(ctx context.Context, field graphql.CollectedField, obj *RefundDuty) (ret graphql.Marshaler) {
  110760. fc, err := ec.fieldContext_RefundDuty_originalDuty(ctx, field)
  110761. if err != nil {
  110762. return graphql.Null
  110763. }
  110764. ctx = graphql.WithFieldContext(ctx, fc)
  110765. defer func() {
  110766. if r := recover(); r != nil {
  110767. ec.Error(ctx, ec.Recover(ctx, r))
  110768. ret = graphql.Null
  110769. }
  110770. }()
  110771. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  110772. ctx = rctx // use context from middleware stack in children
  110773. return obj.OriginalDuty, nil
  110774. })
  110775. if err != nil {
  110776. ec.Error(ctx, err)
  110777. return graphql.Null
  110778. }
  110779. if resTmp == nil {
  110780. return graphql.Null
  110781. }
  110782. res := resTmp.(*Duty)
  110783. fc.Result = res
  110784. return ec.marshalODuty2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDuty(ctx, field.Selections, res)
  110785. }
  110786. func (ec *executionContext) fieldContext_RefundDuty_originalDuty(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  110787. fc = &graphql.FieldContext{
  110788. Object: "RefundDuty",
  110789. Field: field,
  110790. IsMethod: false,
  110791. IsResolver: false,
  110792. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  110793. switch field.Name {
  110794. case "countryCodeOfOrigin":
  110795. return ec.fieldContext_Duty_countryCodeOfOrigin(ctx, field)
  110796. case "harmonizedSystemCode":
  110797. return ec.fieldContext_Duty_harmonizedSystemCode(ctx, field)
  110798. case "id":
  110799. return ec.fieldContext_Duty_id(ctx, field)
  110800. case "price":
  110801. return ec.fieldContext_Duty_price(ctx, field)
  110802. case "taxLines":
  110803. return ec.fieldContext_Duty_taxLines(ctx, field)
  110804. }
  110805. return nil, fmt.Errorf("no field named %q was found under type Duty", field.Name)
  110806. },
  110807. }
  110808. return fc, nil
  110809. }
  110810. func (ec *executionContext) _RefundLineItem_lineItem(ctx context.Context, field graphql.CollectedField, obj *RefundLineItem) (ret graphql.Marshaler) {
  110811. fc, err := ec.fieldContext_RefundLineItem_lineItem(ctx, field)
  110812. if err != nil {
  110813. return graphql.Null
  110814. }
  110815. ctx = graphql.WithFieldContext(ctx, fc)
  110816. defer func() {
  110817. if r := recover(); r != nil {
  110818. ec.Error(ctx, ec.Recover(ctx, r))
  110819. ret = graphql.Null
  110820. }
  110821. }()
  110822. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  110823. ctx = rctx // use context from middleware stack in children
  110824. return obj.LineItem, nil
  110825. })
  110826. if err != nil {
  110827. ec.Error(ctx, err)
  110828. return graphql.Null
  110829. }
  110830. if resTmp == nil {
  110831. if !graphql.HasFieldError(ctx, fc) {
  110832. ec.Errorf(ctx, "must not be null")
  110833. }
  110834. return graphql.Null
  110835. }
  110836. res := resTmp.(*LineItem)
  110837. fc.Result = res
  110838. return ec.marshalNLineItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLineItem(ctx, field.Selections, res)
  110839. }
  110840. func (ec *executionContext) fieldContext_RefundLineItem_lineItem(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  110841. fc = &graphql.FieldContext{
  110842. Object: "RefundLineItem",
  110843. Field: field,
  110844. IsMethod: false,
  110845. IsResolver: false,
  110846. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  110847. switch field.Name {
  110848. case "contract":
  110849. return ec.fieldContext_LineItem_contract(ctx, field)
  110850. case "currentQuantity":
  110851. return ec.fieldContext_LineItem_currentQuantity(ctx, field)
  110852. case "customAttributes":
  110853. return ec.fieldContext_LineItem_customAttributes(ctx, field)
  110854. case "discountAllocations":
  110855. return ec.fieldContext_LineItem_discountAllocations(ctx, field)
  110856. case "discountedTotalSet":
  110857. return ec.fieldContext_LineItem_discountedTotalSet(ctx, field)
  110858. case "discountedUnitPriceSet":
  110859. return ec.fieldContext_LineItem_discountedUnitPriceSet(ctx, field)
  110860. case "duties":
  110861. return ec.fieldContext_LineItem_duties(ctx, field)
  110862. case "id":
  110863. return ec.fieldContext_LineItem_id(ctx, field)
  110864. case "image":
  110865. return ec.fieldContext_LineItem_image(ctx, field)
  110866. case "merchantEditable":
  110867. return ec.fieldContext_LineItem_merchantEditable(ctx, field)
  110868. case "name":
  110869. return ec.fieldContext_LineItem_name(ctx, field)
  110870. case "nonFulfillableQuantity":
  110871. return ec.fieldContext_LineItem_nonFulfillableQuantity(ctx, field)
  110872. case "originalTotalSet":
  110873. return ec.fieldContext_LineItem_originalTotalSet(ctx, field)
  110874. case "originalUnitPriceSet":
  110875. return ec.fieldContext_LineItem_originalUnitPriceSet(ctx, field)
  110876. case "product":
  110877. return ec.fieldContext_LineItem_product(ctx, field)
  110878. case "quantity":
  110879. return ec.fieldContext_LineItem_quantity(ctx, field)
  110880. case "refundableQuantity":
  110881. return ec.fieldContext_LineItem_refundableQuantity(ctx, field)
  110882. case "requiresShipping":
  110883. return ec.fieldContext_LineItem_requiresShipping(ctx, field)
  110884. case "restockable":
  110885. return ec.fieldContext_LineItem_restockable(ctx, field)
  110886. case "sellingPlan":
  110887. return ec.fieldContext_LineItem_sellingPlan(ctx, field)
  110888. case "sku":
  110889. return ec.fieldContext_LineItem_sku(ctx, field)
  110890. case "staffMember":
  110891. return ec.fieldContext_LineItem_staffMember(ctx, field)
  110892. case "taxLines":
  110893. return ec.fieldContext_LineItem_taxLines(ctx, field)
  110894. case "taxable":
  110895. return ec.fieldContext_LineItem_taxable(ctx, field)
  110896. case "title":
  110897. return ec.fieldContext_LineItem_title(ctx, field)
  110898. case "totalDiscountSet":
  110899. return ec.fieldContext_LineItem_totalDiscountSet(ctx, field)
  110900. case "unfulfilledDiscountedTotalSet":
  110901. return ec.fieldContext_LineItem_unfulfilledDiscountedTotalSet(ctx, field)
  110902. case "unfulfilledOriginalTotalSet":
  110903. return ec.fieldContext_LineItem_unfulfilledOriginalTotalSet(ctx, field)
  110904. case "unfulfilledQuantity":
  110905. return ec.fieldContext_LineItem_unfulfilledQuantity(ctx, field)
  110906. case "variant":
  110907. return ec.fieldContext_LineItem_variant(ctx, field)
  110908. case "variantTitle":
  110909. return ec.fieldContext_LineItem_variantTitle(ctx, field)
  110910. case "vendor":
  110911. return ec.fieldContext_LineItem_vendor(ctx, field)
  110912. }
  110913. return nil, fmt.Errorf("no field named %q was found under type LineItem", field.Name)
  110914. },
  110915. }
  110916. return fc, nil
  110917. }
  110918. func (ec *executionContext) _RefundLineItem_location(ctx context.Context, field graphql.CollectedField, obj *RefundLineItem) (ret graphql.Marshaler) {
  110919. fc, err := ec.fieldContext_RefundLineItem_location(ctx, field)
  110920. if err != nil {
  110921. return graphql.Null
  110922. }
  110923. ctx = graphql.WithFieldContext(ctx, fc)
  110924. defer func() {
  110925. if r := recover(); r != nil {
  110926. ec.Error(ctx, ec.Recover(ctx, r))
  110927. ret = graphql.Null
  110928. }
  110929. }()
  110930. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  110931. ctx = rctx // use context from middleware stack in children
  110932. return obj.Location, nil
  110933. })
  110934. if err != nil {
  110935. ec.Error(ctx, err)
  110936. return graphql.Null
  110937. }
  110938. if resTmp == nil {
  110939. return graphql.Null
  110940. }
  110941. res := resTmp.(*Location)
  110942. fc.Result = res
  110943. return ec.marshalOLocation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocation(ctx, field.Selections, res)
  110944. }
  110945. func (ec *executionContext) fieldContext_RefundLineItem_location(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  110946. fc = &graphql.FieldContext{
  110947. Object: "RefundLineItem",
  110948. Field: field,
  110949. IsMethod: false,
  110950. IsResolver: false,
  110951. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  110952. switch field.Name {
  110953. case "activatable":
  110954. return ec.fieldContext_Location_activatable(ctx, field)
  110955. case "address":
  110956. return ec.fieldContext_Location_address(ctx, field)
  110957. case "addressVerified":
  110958. return ec.fieldContext_Location_addressVerified(ctx, field)
  110959. case "deactivatable":
  110960. return ec.fieldContext_Location_deactivatable(ctx, field)
  110961. case "deactivatedAt":
  110962. return ec.fieldContext_Location_deactivatedAt(ctx, field)
  110963. case "deletable":
  110964. return ec.fieldContext_Location_deletable(ctx, field)
  110965. case "fulfillmentService":
  110966. return ec.fieldContext_Location_fulfillmentService(ctx, field)
  110967. case "fulfillsOnlineOrders":
  110968. return ec.fieldContext_Location_fulfillsOnlineOrders(ctx, field)
  110969. case "hasActiveInventory":
  110970. return ec.fieldContext_Location_hasActiveInventory(ctx, field)
  110971. case "hasUnfulfilledOrders":
  110972. return ec.fieldContext_Location_hasUnfulfilledOrders(ctx, field)
  110973. case "id":
  110974. return ec.fieldContext_Location_id(ctx, field)
  110975. case "inventoryLevel":
  110976. return ec.fieldContext_Location_inventoryLevel(ctx, field)
  110977. case "inventoryLevels":
  110978. return ec.fieldContext_Location_inventoryLevels(ctx, field)
  110979. case "isActive":
  110980. return ec.fieldContext_Location_isActive(ctx, field)
  110981. case "legacyResourceId":
  110982. return ec.fieldContext_Location_legacyResourceId(ctx, field)
  110983. case "metafield":
  110984. return ec.fieldContext_Location_metafield(ctx, field)
  110985. case "metafieldDefinitions":
  110986. return ec.fieldContext_Location_metafieldDefinitions(ctx, field)
  110987. case "metafields":
  110988. return ec.fieldContext_Location_metafields(ctx, field)
  110989. case "name":
  110990. return ec.fieldContext_Location_name(ctx, field)
  110991. case "privateMetafield":
  110992. return ec.fieldContext_Location_privateMetafield(ctx, field)
  110993. case "privateMetafields":
  110994. return ec.fieldContext_Location_privateMetafields(ctx, field)
  110995. case "shipsInventory":
  110996. return ec.fieldContext_Location_shipsInventory(ctx, field)
  110997. case "suggestedAddresses":
  110998. return ec.fieldContext_Location_suggestedAddresses(ctx, field)
  110999. }
  111000. return nil, fmt.Errorf("no field named %q was found under type Location", field.Name)
  111001. },
  111002. }
  111003. return fc, nil
  111004. }
  111005. func (ec *executionContext) _RefundLineItem_priceSet(ctx context.Context, field graphql.CollectedField, obj *RefundLineItem) (ret graphql.Marshaler) {
  111006. fc, err := ec.fieldContext_RefundLineItem_priceSet(ctx, field)
  111007. if err != nil {
  111008. return graphql.Null
  111009. }
  111010. ctx = graphql.WithFieldContext(ctx, fc)
  111011. defer func() {
  111012. if r := recover(); r != nil {
  111013. ec.Error(ctx, ec.Recover(ctx, r))
  111014. ret = graphql.Null
  111015. }
  111016. }()
  111017. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  111018. ctx = rctx // use context from middleware stack in children
  111019. return obj.PriceSet, nil
  111020. })
  111021. if err != nil {
  111022. ec.Error(ctx, err)
  111023. return graphql.Null
  111024. }
  111025. if resTmp == nil {
  111026. if !graphql.HasFieldError(ctx, fc) {
  111027. ec.Errorf(ctx, "must not be null")
  111028. }
  111029. return graphql.Null
  111030. }
  111031. res := resTmp.(*MoneyBag)
  111032. fc.Result = res
  111033. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  111034. }
  111035. func (ec *executionContext) fieldContext_RefundLineItem_priceSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  111036. fc = &graphql.FieldContext{
  111037. Object: "RefundLineItem",
  111038. Field: field,
  111039. IsMethod: false,
  111040. IsResolver: false,
  111041. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  111042. switch field.Name {
  111043. case "presentmentMoney":
  111044. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  111045. case "shopMoney":
  111046. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  111047. }
  111048. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  111049. },
  111050. }
  111051. return fc, nil
  111052. }
  111053. func (ec *executionContext) _RefundLineItem_quantity(ctx context.Context, field graphql.CollectedField, obj *RefundLineItem) (ret graphql.Marshaler) {
  111054. fc, err := ec.fieldContext_RefundLineItem_quantity(ctx, field)
  111055. if err != nil {
  111056. return graphql.Null
  111057. }
  111058. ctx = graphql.WithFieldContext(ctx, fc)
  111059. defer func() {
  111060. if r := recover(); r != nil {
  111061. ec.Error(ctx, ec.Recover(ctx, r))
  111062. ret = graphql.Null
  111063. }
  111064. }()
  111065. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  111066. ctx = rctx // use context from middleware stack in children
  111067. return obj.Quantity, nil
  111068. })
  111069. if err != nil {
  111070. ec.Error(ctx, err)
  111071. return graphql.Null
  111072. }
  111073. if resTmp == nil {
  111074. if !graphql.HasFieldError(ctx, fc) {
  111075. ec.Errorf(ctx, "must not be null")
  111076. }
  111077. return graphql.Null
  111078. }
  111079. res := resTmp.(int)
  111080. fc.Result = res
  111081. return ec.marshalNInt2int(ctx, field.Selections, res)
  111082. }
  111083. func (ec *executionContext) fieldContext_RefundLineItem_quantity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  111084. fc = &graphql.FieldContext{
  111085. Object: "RefundLineItem",
  111086. Field: field,
  111087. IsMethod: false,
  111088. IsResolver: false,
  111089. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  111090. return nil, errors.New("field of type Int does not have child fields")
  111091. },
  111092. }
  111093. return fc, nil
  111094. }
  111095. func (ec *executionContext) _RefundLineItem_restockType(ctx context.Context, field graphql.CollectedField, obj *RefundLineItem) (ret graphql.Marshaler) {
  111096. fc, err := ec.fieldContext_RefundLineItem_restockType(ctx, field)
  111097. if err != nil {
  111098. return graphql.Null
  111099. }
  111100. ctx = graphql.WithFieldContext(ctx, fc)
  111101. defer func() {
  111102. if r := recover(); r != nil {
  111103. ec.Error(ctx, ec.Recover(ctx, r))
  111104. ret = graphql.Null
  111105. }
  111106. }()
  111107. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  111108. ctx = rctx // use context from middleware stack in children
  111109. return obj.RestockType, nil
  111110. })
  111111. if err != nil {
  111112. ec.Error(ctx, err)
  111113. return graphql.Null
  111114. }
  111115. if resTmp == nil {
  111116. if !graphql.HasFieldError(ctx, fc) {
  111117. ec.Errorf(ctx, "must not be null")
  111118. }
  111119. return graphql.Null
  111120. }
  111121. res := resTmp.(RefundLineItemRestockType)
  111122. fc.Result = res
  111123. return ec.marshalNRefundLineItemRestockType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundLineItemRestockType(ctx, field.Selections, res)
  111124. }
  111125. func (ec *executionContext) fieldContext_RefundLineItem_restockType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  111126. fc = &graphql.FieldContext{
  111127. Object: "RefundLineItem",
  111128. Field: field,
  111129. IsMethod: false,
  111130. IsResolver: false,
  111131. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  111132. return nil, errors.New("field of type RefundLineItemRestockType does not have child fields")
  111133. },
  111134. }
  111135. return fc, nil
  111136. }
  111137. func (ec *executionContext) _RefundLineItem_restocked(ctx context.Context, field graphql.CollectedField, obj *RefundLineItem) (ret graphql.Marshaler) {
  111138. fc, err := ec.fieldContext_RefundLineItem_restocked(ctx, field)
  111139. if err != nil {
  111140. return graphql.Null
  111141. }
  111142. ctx = graphql.WithFieldContext(ctx, fc)
  111143. defer func() {
  111144. if r := recover(); r != nil {
  111145. ec.Error(ctx, ec.Recover(ctx, r))
  111146. ret = graphql.Null
  111147. }
  111148. }()
  111149. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  111150. ctx = rctx // use context from middleware stack in children
  111151. return obj.Restocked, nil
  111152. })
  111153. if err != nil {
  111154. ec.Error(ctx, err)
  111155. return graphql.Null
  111156. }
  111157. if resTmp == nil {
  111158. if !graphql.HasFieldError(ctx, fc) {
  111159. ec.Errorf(ctx, "must not be null")
  111160. }
  111161. return graphql.Null
  111162. }
  111163. res := resTmp.(bool)
  111164. fc.Result = res
  111165. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  111166. }
  111167. func (ec *executionContext) fieldContext_RefundLineItem_restocked(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  111168. fc = &graphql.FieldContext{
  111169. Object: "RefundLineItem",
  111170. Field: field,
  111171. IsMethod: false,
  111172. IsResolver: false,
  111173. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  111174. return nil, errors.New("field of type Boolean does not have child fields")
  111175. },
  111176. }
  111177. return fc, nil
  111178. }
  111179. func (ec *executionContext) _RefundLineItem_subtotalSet(ctx context.Context, field graphql.CollectedField, obj *RefundLineItem) (ret graphql.Marshaler) {
  111180. fc, err := ec.fieldContext_RefundLineItem_subtotalSet(ctx, field)
  111181. if err != nil {
  111182. return graphql.Null
  111183. }
  111184. ctx = graphql.WithFieldContext(ctx, fc)
  111185. defer func() {
  111186. if r := recover(); r != nil {
  111187. ec.Error(ctx, ec.Recover(ctx, r))
  111188. ret = graphql.Null
  111189. }
  111190. }()
  111191. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  111192. ctx = rctx // use context from middleware stack in children
  111193. return obj.SubtotalSet, nil
  111194. })
  111195. if err != nil {
  111196. ec.Error(ctx, err)
  111197. return graphql.Null
  111198. }
  111199. if resTmp == nil {
  111200. if !graphql.HasFieldError(ctx, fc) {
  111201. ec.Errorf(ctx, "must not be null")
  111202. }
  111203. return graphql.Null
  111204. }
  111205. res := resTmp.(*MoneyBag)
  111206. fc.Result = res
  111207. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  111208. }
  111209. func (ec *executionContext) fieldContext_RefundLineItem_subtotalSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  111210. fc = &graphql.FieldContext{
  111211. Object: "RefundLineItem",
  111212. Field: field,
  111213. IsMethod: false,
  111214. IsResolver: false,
  111215. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  111216. switch field.Name {
  111217. case "presentmentMoney":
  111218. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  111219. case "shopMoney":
  111220. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  111221. }
  111222. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  111223. },
  111224. }
  111225. return fc, nil
  111226. }
  111227. func (ec *executionContext) _RefundLineItem_totalTaxSet(ctx context.Context, field graphql.CollectedField, obj *RefundLineItem) (ret graphql.Marshaler) {
  111228. fc, err := ec.fieldContext_RefundLineItem_totalTaxSet(ctx, field)
  111229. if err != nil {
  111230. return graphql.Null
  111231. }
  111232. ctx = graphql.WithFieldContext(ctx, fc)
  111233. defer func() {
  111234. if r := recover(); r != nil {
  111235. ec.Error(ctx, ec.Recover(ctx, r))
  111236. ret = graphql.Null
  111237. }
  111238. }()
  111239. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  111240. ctx = rctx // use context from middleware stack in children
  111241. return obj.TotalTaxSet, nil
  111242. })
  111243. if err != nil {
  111244. ec.Error(ctx, err)
  111245. return graphql.Null
  111246. }
  111247. if resTmp == nil {
  111248. if !graphql.HasFieldError(ctx, fc) {
  111249. ec.Errorf(ctx, "must not be null")
  111250. }
  111251. return graphql.Null
  111252. }
  111253. res := resTmp.(*MoneyBag)
  111254. fc.Result = res
  111255. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  111256. }
  111257. func (ec *executionContext) fieldContext_RefundLineItem_totalTaxSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  111258. fc = &graphql.FieldContext{
  111259. Object: "RefundLineItem",
  111260. Field: field,
  111261. IsMethod: false,
  111262. IsResolver: false,
  111263. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  111264. switch field.Name {
  111265. case "presentmentMoney":
  111266. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  111267. case "shopMoney":
  111268. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  111269. }
  111270. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  111271. },
  111272. }
  111273. return fc, nil
  111274. }
  111275. func (ec *executionContext) _RefundLineItemConnection_edges(ctx context.Context, field graphql.CollectedField, obj *RefundLineItemConnection) (ret graphql.Marshaler) {
  111276. fc, err := ec.fieldContext_RefundLineItemConnection_edges(ctx, field)
  111277. if err != nil {
  111278. return graphql.Null
  111279. }
  111280. ctx = graphql.WithFieldContext(ctx, fc)
  111281. defer func() {
  111282. if r := recover(); r != nil {
  111283. ec.Error(ctx, ec.Recover(ctx, r))
  111284. ret = graphql.Null
  111285. }
  111286. }()
  111287. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  111288. ctx = rctx // use context from middleware stack in children
  111289. return obj.Edges, nil
  111290. })
  111291. if err != nil {
  111292. ec.Error(ctx, err)
  111293. return graphql.Null
  111294. }
  111295. if resTmp == nil {
  111296. if !graphql.HasFieldError(ctx, fc) {
  111297. ec.Errorf(ctx, "must not be null")
  111298. }
  111299. return graphql.Null
  111300. }
  111301. res := resTmp.([]*RefundLineItemEdge)
  111302. fc.Result = res
  111303. return ec.marshalNRefundLineItemEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundLineItemEdgeᚄ(ctx, field.Selections, res)
  111304. }
  111305. func (ec *executionContext) fieldContext_RefundLineItemConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  111306. fc = &graphql.FieldContext{
  111307. Object: "RefundLineItemConnection",
  111308. Field: field,
  111309. IsMethod: false,
  111310. IsResolver: false,
  111311. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  111312. switch field.Name {
  111313. case "cursor":
  111314. return ec.fieldContext_RefundLineItemEdge_cursor(ctx, field)
  111315. case "node":
  111316. return ec.fieldContext_RefundLineItemEdge_node(ctx, field)
  111317. }
  111318. return nil, fmt.Errorf("no field named %q was found under type RefundLineItemEdge", field.Name)
  111319. },
  111320. }
  111321. return fc, nil
  111322. }
  111323. func (ec *executionContext) _RefundLineItemConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *RefundLineItemConnection) (ret graphql.Marshaler) {
  111324. fc, err := ec.fieldContext_RefundLineItemConnection_nodes(ctx, field)
  111325. if err != nil {
  111326. return graphql.Null
  111327. }
  111328. ctx = graphql.WithFieldContext(ctx, fc)
  111329. defer func() {
  111330. if r := recover(); r != nil {
  111331. ec.Error(ctx, ec.Recover(ctx, r))
  111332. ret = graphql.Null
  111333. }
  111334. }()
  111335. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  111336. ctx = rctx // use context from middleware stack in children
  111337. return obj.Nodes, nil
  111338. })
  111339. if err != nil {
  111340. ec.Error(ctx, err)
  111341. return graphql.Null
  111342. }
  111343. if resTmp == nil {
  111344. if !graphql.HasFieldError(ctx, fc) {
  111345. ec.Errorf(ctx, "must not be null")
  111346. }
  111347. return graphql.Null
  111348. }
  111349. res := resTmp.([]*RefundLineItem)
  111350. fc.Result = res
  111351. return ec.marshalNRefundLineItem2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundLineItemᚄ(ctx, field.Selections, res)
  111352. }
  111353. func (ec *executionContext) fieldContext_RefundLineItemConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  111354. fc = &graphql.FieldContext{
  111355. Object: "RefundLineItemConnection",
  111356. Field: field,
  111357. IsMethod: false,
  111358. IsResolver: false,
  111359. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  111360. switch field.Name {
  111361. case "lineItem":
  111362. return ec.fieldContext_RefundLineItem_lineItem(ctx, field)
  111363. case "location":
  111364. return ec.fieldContext_RefundLineItem_location(ctx, field)
  111365. case "priceSet":
  111366. return ec.fieldContext_RefundLineItem_priceSet(ctx, field)
  111367. case "quantity":
  111368. return ec.fieldContext_RefundLineItem_quantity(ctx, field)
  111369. case "restockType":
  111370. return ec.fieldContext_RefundLineItem_restockType(ctx, field)
  111371. case "restocked":
  111372. return ec.fieldContext_RefundLineItem_restocked(ctx, field)
  111373. case "subtotalSet":
  111374. return ec.fieldContext_RefundLineItem_subtotalSet(ctx, field)
  111375. case "totalTaxSet":
  111376. return ec.fieldContext_RefundLineItem_totalTaxSet(ctx, field)
  111377. }
  111378. return nil, fmt.Errorf("no field named %q was found under type RefundLineItem", field.Name)
  111379. },
  111380. }
  111381. return fc, nil
  111382. }
  111383. func (ec *executionContext) _RefundLineItemConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *RefundLineItemConnection) (ret graphql.Marshaler) {
  111384. fc, err := ec.fieldContext_RefundLineItemConnection_pageInfo(ctx, field)
  111385. if err != nil {
  111386. return graphql.Null
  111387. }
  111388. ctx = graphql.WithFieldContext(ctx, fc)
  111389. defer func() {
  111390. if r := recover(); r != nil {
  111391. ec.Error(ctx, ec.Recover(ctx, r))
  111392. ret = graphql.Null
  111393. }
  111394. }()
  111395. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  111396. ctx = rctx // use context from middleware stack in children
  111397. return obj.PageInfo, nil
  111398. })
  111399. if err != nil {
  111400. ec.Error(ctx, err)
  111401. return graphql.Null
  111402. }
  111403. if resTmp == nil {
  111404. if !graphql.HasFieldError(ctx, fc) {
  111405. ec.Errorf(ctx, "must not be null")
  111406. }
  111407. return graphql.Null
  111408. }
  111409. res := resTmp.(*PageInfo)
  111410. fc.Result = res
  111411. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  111412. }
  111413. func (ec *executionContext) fieldContext_RefundLineItemConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  111414. fc = &graphql.FieldContext{
  111415. Object: "RefundLineItemConnection",
  111416. Field: field,
  111417. IsMethod: false,
  111418. IsResolver: false,
  111419. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  111420. switch field.Name {
  111421. case "endCursor":
  111422. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  111423. case "hasNextPage":
  111424. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  111425. case "hasPreviousPage":
  111426. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  111427. case "startCursor":
  111428. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  111429. }
  111430. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  111431. },
  111432. }
  111433. return fc, nil
  111434. }
  111435. func (ec *executionContext) _RefundLineItemEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *RefundLineItemEdge) (ret graphql.Marshaler) {
  111436. fc, err := ec.fieldContext_RefundLineItemEdge_cursor(ctx, field)
  111437. if err != nil {
  111438. return graphql.Null
  111439. }
  111440. ctx = graphql.WithFieldContext(ctx, fc)
  111441. defer func() {
  111442. if r := recover(); r != nil {
  111443. ec.Error(ctx, ec.Recover(ctx, r))
  111444. ret = graphql.Null
  111445. }
  111446. }()
  111447. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  111448. ctx = rctx // use context from middleware stack in children
  111449. return obj.Cursor, nil
  111450. })
  111451. if err != nil {
  111452. ec.Error(ctx, err)
  111453. return graphql.Null
  111454. }
  111455. if resTmp == nil {
  111456. if !graphql.HasFieldError(ctx, fc) {
  111457. ec.Errorf(ctx, "must not be null")
  111458. }
  111459. return graphql.Null
  111460. }
  111461. res := resTmp.(string)
  111462. fc.Result = res
  111463. return ec.marshalNString2string(ctx, field.Selections, res)
  111464. }
  111465. func (ec *executionContext) fieldContext_RefundLineItemEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  111466. fc = &graphql.FieldContext{
  111467. Object: "RefundLineItemEdge",
  111468. Field: field,
  111469. IsMethod: false,
  111470. IsResolver: false,
  111471. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  111472. return nil, errors.New("field of type String does not have child fields")
  111473. },
  111474. }
  111475. return fc, nil
  111476. }
  111477. func (ec *executionContext) _RefundLineItemEdge_node(ctx context.Context, field graphql.CollectedField, obj *RefundLineItemEdge) (ret graphql.Marshaler) {
  111478. fc, err := ec.fieldContext_RefundLineItemEdge_node(ctx, field)
  111479. if err != nil {
  111480. return graphql.Null
  111481. }
  111482. ctx = graphql.WithFieldContext(ctx, fc)
  111483. defer func() {
  111484. if r := recover(); r != nil {
  111485. ec.Error(ctx, ec.Recover(ctx, r))
  111486. ret = graphql.Null
  111487. }
  111488. }()
  111489. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  111490. ctx = rctx // use context from middleware stack in children
  111491. return obj.Node, nil
  111492. })
  111493. if err != nil {
  111494. ec.Error(ctx, err)
  111495. return graphql.Null
  111496. }
  111497. if resTmp == nil {
  111498. if !graphql.HasFieldError(ctx, fc) {
  111499. ec.Errorf(ctx, "must not be null")
  111500. }
  111501. return graphql.Null
  111502. }
  111503. res := resTmp.(*RefundLineItem)
  111504. fc.Result = res
  111505. return ec.marshalNRefundLineItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundLineItem(ctx, field.Selections, res)
  111506. }
  111507. func (ec *executionContext) fieldContext_RefundLineItemEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  111508. fc = &graphql.FieldContext{
  111509. Object: "RefundLineItemEdge",
  111510. Field: field,
  111511. IsMethod: false,
  111512. IsResolver: false,
  111513. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  111514. switch field.Name {
  111515. case "lineItem":
  111516. return ec.fieldContext_RefundLineItem_lineItem(ctx, field)
  111517. case "location":
  111518. return ec.fieldContext_RefundLineItem_location(ctx, field)
  111519. case "priceSet":
  111520. return ec.fieldContext_RefundLineItem_priceSet(ctx, field)
  111521. case "quantity":
  111522. return ec.fieldContext_RefundLineItem_quantity(ctx, field)
  111523. case "restockType":
  111524. return ec.fieldContext_RefundLineItem_restockType(ctx, field)
  111525. case "restocked":
  111526. return ec.fieldContext_RefundLineItem_restocked(ctx, field)
  111527. case "subtotalSet":
  111528. return ec.fieldContext_RefundLineItem_subtotalSet(ctx, field)
  111529. case "totalTaxSet":
  111530. return ec.fieldContext_RefundLineItem_totalTaxSet(ctx, field)
  111531. }
  111532. return nil, fmt.Errorf("no field named %q was found under type RefundLineItem", field.Name)
  111533. },
  111534. }
  111535. return fc, nil
  111536. }
  111537. func (ec *executionContext) _ResourceAlert_actions(ctx context.Context, field graphql.CollectedField, obj *ResourceAlert) (ret graphql.Marshaler) {
  111538. fc, err := ec.fieldContext_ResourceAlert_actions(ctx, field)
  111539. if err != nil {
  111540. return graphql.Null
  111541. }
  111542. ctx = graphql.WithFieldContext(ctx, fc)
  111543. defer func() {
  111544. if r := recover(); r != nil {
  111545. ec.Error(ctx, ec.Recover(ctx, r))
  111546. ret = graphql.Null
  111547. }
  111548. }()
  111549. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  111550. ctx = rctx // use context from middleware stack in children
  111551. return obj.Actions, nil
  111552. })
  111553. if err != nil {
  111554. ec.Error(ctx, err)
  111555. return graphql.Null
  111556. }
  111557. if resTmp == nil {
  111558. if !graphql.HasFieldError(ctx, fc) {
  111559. ec.Errorf(ctx, "must not be null")
  111560. }
  111561. return graphql.Null
  111562. }
  111563. res := resTmp.([]*ResourceAlertAction)
  111564. fc.Result = res
  111565. return ec.marshalNResourceAlertAction2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourceAlertActionᚄ(ctx, field.Selections, res)
  111566. }
  111567. func (ec *executionContext) fieldContext_ResourceAlert_actions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  111568. fc = &graphql.FieldContext{
  111569. Object: "ResourceAlert",
  111570. Field: field,
  111571. IsMethod: false,
  111572. IsResolver: false,
  111573. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  111574. switch field.Name {
  111575. case "primary":
  111576. return ec.fieldContext_ResourceAlertAction_primary(ctx, field)
  111577. case "show":
  111578. return ec.fieldContext_ResourceAlertAction_show(ctx, field)
  111579. case "title":
  111580. return ec.fieldContext_ResourceAlertAction_title(ctx, field)
  111581. case "url":
  111582. return ec.fieldContext_ResourceAlertAction_url(ctx, field)
  111583. }
  111584. return nil, fmt.Errorf("no field named %q was found under type ResourceAlertAction", field.Name)
  111585. },
  111586. }
  111587. return fc, nil
  111588. }
  111589. func (ec *executionContext) _ResourceAlert_content(ctx context.Context, field graphql.CollectedField, obj *ResourceAlert) (ret graphql.Marshaler) {
  111590. fc, err := ec.fieldContext_ResourceAlert_content(ctx, field)
  111591. if err != nil {
  111592. return graphql.Null
  111593. }
  111594. ctx = graphql.WithFieldContext(ctx, fc)
  111595. defer func() {
  111596. if r := recover(); r != nil {
  111597. ec.Error(ctx, ec.Recover(ctx, r))
  111598. ret = graphql.Null
  111599. }
  111600. }()
  111601. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  111602. ctx = rctx // use context from middleware stack in children
  111603. return obj.Content, nil
  111604. })
  111605. if err != nil {
  111606. ec.Error(ctx, err)
  111607. return graphql.Null
  111608. }
  111609. if resTmp == nil {
  111610. if !graphql.HasFieldError(ctx, fc) {
  111611. ec.Errorf(ctx, "must not be null")
  111612. }
  111613. return graphql.Null
  111614. }
  111615. res := resTmp.(string)
  111616. fc.Result = res
  111617. return ec.marshalNHTML2string(ctx, field.Selections, res)
  111618. }
  111619. func (ec *executionContext) fieldContext_ResourceAlert_content(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  111620. fc = &graphql.FieldContext{
  111621. Object: "ResourceAlert",
  111622. Field: field,
  111623. IsMethod: false,
  111624. IsResolver: false,
  111625. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  111626. return nil, errors.New("field of type HTML does not have child fields")
  111627. },
  111628. }
  111629. return fc, nil
  111630. }
  111631. func (ec *executionContext) _ResourceAlert_dismissibleHandle(ctx context.Context, field graphql.CollectedField, obj *ResourceAlert) (ret graphql.Marshaler) {
  111632. fc, err := ec.fieldContext_ResourceAlert_dismissibleHandle(ctx, field)
  111633. if err != nil {
  111634. return graphql.Null
  111635. }
  111636. ctx = graphql.WithFieldContext(ctx, fc)
  111637. defer func() {
  111638. if r := recover(); r != nil {
  111639. ec.Error(ctx, ec.Recover(ctx, r))
  111640. ret = graphql.Null
  111641. }
  111642. }()
  111643. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  111644. ctx = rctx // use context from middleware stack in children
  111645. return obj.DismissibleHandle, nil
  111646. })
  111647. if err != nil {
  111648. ec.Error(ctx, err)
  111649. return graphql.Null
  111650. }
  111651. if resTmp == nil {
  111652. return graphql.Null
  111653. }
  111654. res := resTmp.(*string)
  111655. fc.Result = res
  111656. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  111657. }
  111658. func (ec *executionContext) fieldContext_ResourceAlert_dismissibleHandle(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  111659. fc = &graphql.FieldContext{
  111660. Object: "ResourceAlert",
  111661. Field: field,
  111662. IsMethod: false,
  111663. IsResolver: false,
  111664. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  111665. return nil, errors.New("field of type String does not have child fields")
  111666. },
  111667. }
  111668. return fc, nil
  111669. }
  111670. func (ec *executionContext) _ResourceAlert_icon(ctx context.Context, field graphql.CollectedField, obj *ResourceAlert) (ret graphql.Marshaler) {
  111671. fc, err := ec.fieldContext_ResourceAlert_icon(ctx, field)
  111672. if err != nil {
  111673. return graphql.Null
  111674. }
  111675. ctx = graphql.WithFieldContext(ctx, fc)
  111676. defer func() {
  111677. if r := recover(); r != nil {
  111678. ec.Error(ctx, ec.Recover(ctx, r))
  111679. ret = graphql.Null
  111680. }
  111681. }()
  111682. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  111683. ctx = rctx // use context from middleware stack in children
  111684. return obj.Icon, nil
  111685. })
  111686. if err != nil {
  111687. ec.Error(ctx, err)
  111688. return graphql.Null
  111689. }
  111690. if resTmp == nil {
  111691. return graphql.Null
  111692. }
  111693. res := resTmp.(*ResourceAlertIcon)
  111694. fc.Result = res
  111695. return ec.marshalOResourceAlertIcon2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourceAlertIcon(ctx, field.Selections, res)
  111696. }
  111697. func (ec *executionContext) fieldContext_ResourceAlert_icon(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  111698. fc = &graphql.FieldContext{
  111699. Object: "ResourceAlert",
  111700. Field: field,
  111701. IsMethod: false,
  111702. IsResolver: false,
  111703. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  111704. return nil, errors.New("field of type ResourceAlertIcon does not have child fields")
  111705. },
  111706. }
  111707. return fc, nil
  111708. }
  111709. func (ec *executionContext) _ResourceAlert_severity(ctx context.Context, field graphql.CollectedField, obj *ResourceAlert) (ret graphql.Marshaler) {
  111710. fc, err := ec.fieldContext_ResourceAlert_severity(ctx, field)
  111711. if err != nil {
  111712. return graphql.Null
  111713. }
  111714. ctx = graphql.WithFieldContext(ctx, fc)
  111715. defer func() {
  111716. if r := recover(); r != nil {
  111717. ec.Error(ctx, ec.Recover(ctx, r))
  111718. ret = graphql.Null
  111719. }
  111720. }()
  111721. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  111722. ctx = rctx // use context from middleware stack in children
  111723. return obj.Severity, nil
  111724. })
  111725. if err != nil {
  111726. ec.Error(ctx, err)
  111727. return graphql.Null
  111728. }
  111729. if resTmp == nil {
  111730. if !graphql.HasFieldError(ctx, fc) {
  111731. ec.Errorf(ctx, "must not be null")
  111732. }
  111733. return graphql.Null
  111734. }
  111735. res := resTmp.(ResourceAlertSeverity)
  111736. fc.Result = res
  111737. return ec.marshalNResourceAlertSeverity2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourceAlertSeverity(ctx, field.Selections, res)
  111738. }
  111739. func (ec *executionContext) fieldContext_ResourceAlert_severity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  111740. fc = &graphql.FieldContext{
  111741. Object: "ResourceAlert",
  111742. Field: field,
  111743. IsMethod: false,
  111744. IsResolver: false,
  111745. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  111746. return nil, errors.New("field of type ResourceAlertSeverity does not have child fields")
  111747. },
  111748. }
  111749. return fc, nil
  111750. }
  111751. func (ec *executionContext) _ResourceAlert_title(ctx context.Context, field graphql.CollectedField, obj *ResourceAlert) (ret graphql.Marshaler) {
  111752. fc, err := ec.fieldContext_ResourceAlert_title(ctx, field)
  111753. if err != nil {
  111754. return graphql.Null
  111755. }
  111756. ctx = graphql.WithFieldContext(ctx, fc)
  111757. defer func() {
  111758. if r := recover(); r != nil {
  111759. ec.Error(ctx, ec.Recover(ctx, r))
  111760. ret = graphql.Null
  111761. }
  111762. }()
  111763. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  111764. ctx = rctx // use context from middleware stack in children
  111765. return obj.Title, nil
  111766. })
  111767. if err != nil {
  111768. ec.Error(ctx, err)
  111769. return graphql.Null
  111770. }
  111771. if resTmp == nil {
  111772. if !graphql.HasFieldError(ctx, fc) {
  111773. ec.Errorf(ctx, "must not be null")
  111774. }
  111775. return graphql.Null
  111776. }
  111777. res := resTmp.(string)
  111778. fc.Result = res
  111779. return ec.marshalNString2string(ctx, field.Selections, res)
  111780. }
  111781. func (ec *executionContext) fieldContext_ResourceAlert_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  111782. fc = &graphql.FieldContext{
  111783. Object: "ResourceAlert",
  111784. Field: field,
  111785. IsMethod: false,
  111786. IsResolver: false,
  111787. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  111788. return nil, errors.New("field of type String does not have child fields")
  111789. },
  111790. }
  111791. return fc, nil
  111792. }
  111793. func (ec *executionContext) _ResourceAlertAction_primary(ctx context.Context, field graphql.CollectedField, obj *ResourceAlertAction) (ret graphql.Marshaler) {
  111794. fc, err := ec.fieldContext_ResourceAlertAction_primary(ctx, field)
  111795. if err != nil {
  111796. return graphql.Null
  111797. }
  111798. ctx = graphql.WithFieldContext(ctx, fc)
  111799. defer func() {
  111800. if r := recover(); r != nil {
  111801. ec.Error(ctx, ec.Recover(ctx, r))
  111802. ret = graphql.Null
  111803. }
  111804. }()
  111805. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  111806. ctx = rctx // use context from middleware stack in children
  111807. return obj.Primary, nil
  111808. })
  111809. if err != nil {
  111810. ec.Error(ctx, err)
  111811. return graphql.Null
  111812. }
  111813. if resTmp == nil {
  111814. if !graphql.HasFieldError(ctx, fc) {
  111815. ec.Errorf(ctx, "must not be null")
  111816. }
  111817. return graphql.Null
  111818. }
  111819. res := resTmp.(bool)
  111820. fc.Result = res
  111821. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  111822. }
  111823. func (ec *executionContext) fieldContext_ResourceAlertAction_primary(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  111824. fc = &graphql.FieldContext{
  111825. Object: "ResourceAlertAction",
  111826. Field: field,
  111827. IsMethod: false,
  111828. IsResolver: false,
  111829. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  111830. return nil, errors.New("field of type Boolean does not have child fields")
  111831. },
  111832. }
  111833. return fc, nil
  111834. }
  111835. func (ec *executionContext) _ResourceAlertAction_show(ctx context.Context, field graphql.CollectedField, obj *ResourceAlertAction) (ret graphql.Marshaler) {
  111836. fc, err := ec.fieldContext_ResourceAlertAction_show(ctx, field)
  111837. if err != nil {
  111838. return graphql.Null
  111839. }
  111840. ctx = graphql.WithFieldContext(ctx, fc)
  111841. defer func() {
  111842. if r := recover(); r != nil {
  111843. ec.Error(ctx, ec.Recover(ctx, r))
  111844. ret = graphql.Null
  111845. }
  111846. }()
  111847. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  111848. ctx = rctx // use context from middleware stack in children
  111849. return obj.Show, nil
  111850. })
  111851. if err != nil {
  111852. ec.Error(ctx, err)
  111853. return graphql.Null
  111854. }
  111855. if resTmp == nil {
  111856. return graphql.Null
  111857. }
  111858. res := resTmp.(*string)
  111859. fc.Result = res
  111860. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  111861. }
  111862. func (ec *executionContext) fieldContext_ResourceAlertAction_show(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  111863. fc = &graphql.FieldContext{
  111864. Object: "ResourceAlertAction",
  111865. Field: field,
  111866. IsMethod: false,
  111867. IsResolver: false,
  111868. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  111869. return nil, errors.New("field of type String does not have child fields")
  111870. },
  111871. }
  111872. return fc, nil
  111873. }
  111874. func (ec *executionContext) _ResourceAlertAction_title(ctx context.Context, field graphql.CollectedField, obj *ResourceAlertAction) (ret graphql.Marshaler) {
  111875. fc, err := ec.fieldContext_ResourceAlertAction_title(ctx, field)
  111876. if err != nil {
  111877. return graphql.Null
  111878. }
  111879. ctx = graphql.WithFieldContext(ctx, fc)
  111880. defer func() {
  111881. if r := recover(); r != nil {
  111882. ec.Error(ctx, ec.Recover(ctx, r))
  111883. ret = graphql.Null
  111884. }
  111885. }()
  111886. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  111887. ctx = rctx // use context from middleware stack in children
  111888. return obj.Title, nil
  111889. })
  111890. if err != nil {
  111891. ec.Error(ctx, err)
  111892. return graphql.Null
  111893. }
  111894. if resTmp == nil {
  111895. if !graphql.HasFieldError(ctx, fc) {
  111896. ec.Errorf(ctx, "must not be null")
  111897. }
  111898. return graphql.Null
  111899. }
  111900. res := resTmp.(string)
  111901. fc.Result = res
  111902. return ec.marshalNString2string(ctx, field.Selections, res)
  111903. }
  111904. func (ec *executionContext) fieldContext_ResourceAlertAction_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  111905. fc = &graphql.FieldContext{
  111906. Object: "ResourceAlertAction",
  111907. Field: field,
  111908. IsMethod: false,
  111909. IsResolver: false,
  111910. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  111911. return nil, errors.New("field of type String does not have child fields")
  111912. },
  111913. }
  111914. return fc, nil
  111915. }
  111916. func (ec *executionContext) _ResourceAlertAction_url(ctx context.Context, field graphql.CollectedField, obj *ResourceAlertAction) (ret graphql.Marshaler) {
  111917. fc, err := ec.fieldContext_ResourceAlertAction_url(ctx, field)
  111918. if err != nil {
  111919. return graphql.Null
  111920. }
  111921. ctx = graphql.WithFieldContext(ctx, fc)
  111922. defer func() {
  111923. if r := recover(); r != nil {
  111924. ec.Error(ctx, ec.Recover(ctx, r))
  111925. ret = graphql.Null
  111926. }
  111927. }()
  111928. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  111929. ctx = rctx // use context from middleware stack in children
  111930. return obj.URL, nil
  111931. })
  111932. if err != nil {
  111933. ec.Error(ctx, err)
  111934. return graphql.Null
  111935. }
  111936. if resTmp == nil {
  111937. if !graphql.HasFieldError(ctx, fc) {
  111938. ec.Errorf(ctx, "must not be null")
  111939. }
  111940. return graphql.Null
  111941. }
  111942. res := resTmp.(string)
  111943. fc.Result = res
  111944. return ec.marshalNURL2string(ctx, field.Selections, res)
  111945. }
  111946. func (ec *executionContext) fieldContext_ResourceAlertAction_url(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  111947. fc = &graphql.FieldContext{
  111948. Object: "ResourceAlertAction",
  111949. Field: field,
  111950. IsMethod: false,
  111951. IsResolver: false,
  111952. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  111953. return nil, errors.New("field of type URL does not have child fields")
  111954. },
  111955. }
  111956. return fc, nil
  111957. }
  111958. func (ec *executionContext) _ResourceFeedback_details(ctx context.Context, field graphql.CollectedField, obj *ResourceFeedback) (ret graphql.Marshaler) {
  111959. fc, err := ec.fieldContext_ResourceFeedback_details(ctx, field)
  111960. if err != nil {
  111961. return graphql.Null
  111962. }
  111963. ctx = graphql.WithFieldContext(ctx, fc)
  111964. defer func() {
  111965. if r := recover(); r != nil {
  111966. ec.Error(ctx, ec.Recover(ctx, r))
  111967. ret = graphql.Null
  111968. }
  111969. }()
  111970. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  111971. ctx = rctx // use context from middleware stack in children
  111972. return obj.Details, nil
  111973. })
  111974. if err != nil {
  111975. ec.Error(ctx, err)
  111976. return graphql.Null
  111977. }
  111978. if resTmp == nil {
  111979. if !graphql.HasFieldError(ctx, fc) {
  111980. ec.Errorf(ctx, "must not be null")
  111981. }
  111982. return graphql.Null
  111983. }
  111984. res := resTmp.([]*AppFeedback)
  111985. fc.Result = res
  111986. return ec.marshalNAppFeedback2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppFeedbackᚄ(ctx, field.Selections, res)
  111987. }
  111988. func (ec *executionContext) fieldContext_ResourceFeedback_details(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  111989. fc = &graphql.FieldContext{
  111990. Object: "ResourceFeedback",
  111991. Field: field,
  111992. IsMethod: false,
  111993. IsResolver: false,
  111994. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  111995. switch field.Name {
  111996. case "app":
  111997. return ec.fieldContext_AppFeedback_app(ctx, field)
  111998. case "link":
  111999. return ec.fieldContext_AppFeedback_link(ctx, field)
  112000. case "messages":
  112001. return ec.fieldContext_AppFeedback_messages(ctx, field)
  112002. }
  112003. return nil, fmt.Errorf("no field named %q was found under type AppFeedback", field.Name)
  112004. },
  112005. }
  112006. return fc, nil
  112007. }
  112008. func (ec *executionContext) _ResourceFeedback_summary(ctx context.Context, field graphql.CollectedField, obj *ResourceFeedback) (ret graphql.Marshaler) {
  112009. fc, err := ec.fieldContext_ResourceFeedback_summary(ctx, field)
  112010. if err != nil {
  112011. return graphql.Null
  112012. }
  112013. ctx = graphql.WithFieldContext(ctx, fc)
  112014. defer func() {
  112015. if r := recover(); r != nil {
  112016. ec.Error(ctx, ec.Recover(ctx, r))
  112017. ret = graphql.Null
  112018. }
  112019. }()
  112020. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  112021. ctx = rctx // use context from middleware stack in children
  112022. return obj.Summary, nil
  112023. })
  112024. if err != nil {
  112025. ec.Error(ctx, err)
  112026. return graphql.Null
  112027. }
  112028. if resTmp == nil {
  112029. if !graphql.HasFieldError(ctx, fc) {
  112030. ec.Errorf(ctx, "must not be null")
  112031. }
  112032. return graphql.Null
  112033. }
  112034. res := resTmp.(string)
  112035. fc.Result = res
  112036. return ec.marshalNString2string(ctx, field.Selections, res)
  112037. }
  112038. func (ec *executionContext) fieldContext_ResourceFeedback_summary(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  112039. fc = &graphql.FieldContext{
  112040. Object: "ResourceFeedback",
  112041. Field: field,
  112042. IsMethod: false,
  112043. IsResolver: false,
  112044. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  112045. return nil, errors.New("field of type String does not have child fields")
  112046. },
  112047. }
  112048. return fc, nil
  112049. }
  112050. func (ec *executionContext) _ResourceLimit_available(ctx context.Context, field graphql.CollectedField, obj *ResourceLimit) (ret graphql.Marshaler) {
  112051. fc, err := ec.fieldContext_ResourceLimit_available(ctx, field)
  112052. if err != nil {
  112053. return graphql.Null
  112054. }
  112055. ctx = graphql.WithFieldContext(ctx, fc)
  112056. defer func() {
  112057. if r := recover(); r != nil {
  112058. ec.Error(ctx, ec.Recover(ctx, r))
  112059. ret = graphql.Null
  112060. }
  112061. }()
  112062. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  112063. ctx = rctx // use context from middleware stack in children
  112064. return obj.Available, nil
  112065. })
  112066. if err != nil {
  112067. ec.Error(ctx, err)
  112068. return graphql.Null
  112069. }
  112070. if resTmp == nil {
  112071. if !graphql.HasFieldError(ctx, fc) {
  112072. ec.Errorf(ctx, "must not be null")
  112073. }
  112074. return graphql.Null
  112075. }
  112076. res := resTmp.(bool)
  112077. fc.Result = res
  112078. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  112079. }
  112080. func (ec *executionContext) fieldContext_ResourceLimit_available(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  112081. fc = &graphql.FieldContext{
  112082. Object: "ResourceLimit",
  112083. Field: field,
  112084. IsMethod: false,
  112085. IsResolver: false,
  112086. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  112087. return nil, errors.New("field of type Boolean does not have child fields")
  112088. },
  112089. }
  112090. return fc, nil
  112091. }
  112092. func (ec *executionContext) _ResourceLimit_quantityAvailable(ctx context.Context, field graphql.CollectedField, obj *ResourceLimit) (ret graphql.Marshaler) {
  112093. fc, err := ec.fieldContext_ResourceLimit_quantityAvailable(ctx, field)
  112094. if err != nil {
  112095. return graphql.Null
  112096. }
  112097. ctx = graphql.WithFieldContext(ctx, fc)
  112098. defer func() {
  112099. if r := recover(); r != nil {
  112100. ec.Error(ctx, ec.Recover(ctx, r))
  112101. ret = graphql.Null
  112102. }
  112103. }()
  112104. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  112105. ctx = rctx // use context from middleware stack in children
  112106. return obj.QuantityAvailable, nil
  112107. })
  112108. if err != nil {
  112109. ec.Error(ctx, err)
  112110. return graphql.Null
  112111. }
  112112. if resTmp == nil {
  112113. return graphql.Null
  112114. }
  112115. res := resTmp.(*int)
  112116. fc.Result = res
  112117. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  112118. }
  112119. func (ec *executionContext) fieldContext_ResourceLimit_quantityAvailable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  112120. fc = &graphql.FieldContext{
  112121. Object: "ResourceLimit",
  112122. Field: field,
  112123. IsMethod: false,
  112124. IsResolver: false,
  112125. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  112126. return nil, errors.New("field of type Int does not have child fields")
  112127. },
  112128. }
  112129. return fc, nil
  112130. }
  112131. func (ec *executionContext) _ResourceLimit_quantityLimit(ctx context.Context, field graphql.CollectedField, obj *ResourceLimit) (ret graphql.Marshaler) {
  112132. fc, err := ec.fieldContext_ResourceLimit_quantityLimit(ctx, field)
  112133. if err != nil {
  112134. return graphql.Null
  112135. }
  112136. ctx = graphql.WithFieldContext(ctx, fc)
  112137. defer func() {
  112138. if r := recover(); r != nil {
  112139. ec.Error(ctx, ec.Recover(ctx, r))
  112140. ret = graphql.Null
  112141. }
  112142. }()
  112143. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  112144. ctx = rctx // use context from middleware stack in children
  112145. return obj.QuantityLimit, nil
  112146. })
  112147. if err != nil {
  112148. ec.Error(ctx, err)
  112149. return graphql.Null
  112150. }
  112151. if resTmp == nil {
  112152. return graphql.Null
  112153. }
  112154. res := resTmp.(*int)
  112155. fc.Result = res
  112156. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  112157. }
  112158. func (ec *executionContext) fieldContext_ResourceLimit_quantityLimit(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  112159. fc = &graphql.FieldContext{
  112160. Object: "ResourceLimit",
  112161. Field: field,
  112162. IsMethod: false,
  112163. IsResolver: false,
  112164. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  112165. return nil, errors.New("field of type Int does not have child fields")
  112166. },
  112167. }
  112168. return fc, nil
  112169. }
  112170. func (ec *executionContext) _ResourceLimit_quantityUsed(ctx context.Context, field graphql.CollectedField, obj *ResourceLimit) (ret graphql.Marshaler) {
  112171. fc, err := ec.fieldContext_ResourceLimit_quantityUsed(ctx, field)
  112172. if err != nil {
  112173. return graphql.Null
  112174. }
  112175. ctx = graphql.WithFieldContext(ctx, fc)
  112176. defer func() {
  112177. if r := recover(); r != nil {
  112178. ec.Error(ctx, ec.Recover(ctx, r))
  112179. ret = graphql.Null
  112180. }
  112181. }()
  112182. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  112183. ctx = rctx // use context from middleware stack in children
  112184. return obj.QuantityUsed, nil
  112185. })
  112186. if err != nil {
  112187. ec.Error(ctx, err)
  112188. return graphql.Null
  112189. }
  112190. if resTmp == nil {
  112191. return graphql.Null
  112192. }
  112193. res := resTmp.(*int)
  112194. fc.Result = res
  112195. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  112196. }
  112197. func (ec *executionContext) fieldContext_ResourceLimit_quantityUsed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  112198. fc = &graphql.FieldContext{
  112199. Object: "ResourceLimit",
  112200. Field: field,
  112201. IsMethod: false,
  112202. IsResolver: false,
  112203. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  112204. return nil, errors.New("field of type Int does not have child fields")
  112205. },
  112206. }
  112207. return fc, nil
  112208. }
  112209. func (ec *executionContext) _ResourcePublication_isPublished(ctx context.Context, field graphql.CollectedField, obj *ResourcePublication) (ret graphql.Marshaler) {
  112210. fc, err := ec.fieldContext_ResourcePublication_isPublished(ctx, field)
  112211. if err != nil {
  112212. return graphql.Null
  112213. }
  112214. ctx = graphql.WithFieldContext(ctx, fc)
  112215. defer func() {
  112216. if r := recover(); r != nil {
  112217. ec.Error(ctx, ec.Recover(ctx, r))
  112218. ret = graphql.Null
  112219. }
  112220. }()
  112221. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  112222. ctx = rctx // use context from middleware stack in children
  112223. return obj.IsPublished, nil
  112224. })
  112225. if err != nil {
  112226. ec.Error(ctx, err)
  112227. return graphql.Null
  112228. }
  112229. if resTmp == nil {
  112230. if !graphql.HasFieldError(ctx, fc) {
  112231. ec.Errorf(ctx, "must not be null")
  112232. }
  112233. return graphql.Null
  112234. }
  112235. res := resTmp.(bool)
  112236. fc.Result = res
  112237. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  112238. }
  112239. func (ec *executionContext) fieldContext_ResourcePublication_isPublished(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  112240. fc = &graphql.FieldContext{
  112241. Object: "ResourcePublication",
  112242. Field: field,
  112243. IsMethod: false,
  112244. IsResolver: false,
  112245. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  112246. return nil, errors.New("field of type Boolean does not have child fields")
  112247. },
  112248. }
  112249. return fc, nil
  112250. }
  112251. func (ec *executionContext) _ResourcePublication_publication(ctx context.Context, field graphql.CollectedField, obj *ResourcePublication) (ret graphql.Marshaler) {
  112252. fc, err := ec.fieldContext_ResourcePublication_publication(ctx, field)
  112253. if err != nil {
  112254. return graphql.Null
  112255. }
  112256. ctx = graphql.WithFieldContext(ctx, fc)
  112257. defer func() {
  112258. if r := recover(); r != nil {
  112259. ec.Error(ctx, ec.Recover(ctx, r))
  112260. ret = graphql.Null
  112261. }
  112262. }()
  112263. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  112264. ctx = rctx // use context from middleware stack in children
  112265. return obj.Publication, nil
  112266. })
  112267. if err != nil {
  112268. ec.Error(ctx, err)
  112269. return graphql.Null
  112270. }
  112271. if resTmp == nil {
  112272. if !graphql.HasFieldError(ctx, fc) {
  112273. ec.Errorf(ctx, "must not be null")
  112274. }
  112275. return graphql.Null
  112276. }
  112277. res := resTmp.(*Publication)
  112278. fc.Result = res
  112279. return ec.marshalNPublication2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublication(ctx, field.Selections, res)
  112280. }
  112281. func (ec *executionContext) fieldContext_ResourcePublication_publication(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  112282. fc = &graphql.FieldContext{
  112283. Object: "ResourcePublication",
  112284. Field: field,
  112285. IsMethod: false,
  112286. IsResolver: false,
  112287. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  112288. switch field.Name {
  112289. case "app":
  112290. return ec.fieldContext_Publication_app(ctx, field)
  112291. case "collectionPublicationsV3":
  112292. return ec.fieldContext_Publication_collectionPublicationsV3(ctx, field)
  112293. case "collections":
  112294. return ec.fieldContext_Publication_collections(ctx, field)
  112295. case "hasCollection":
  112296. return ec.fieldContext_Publication_hasCollection(ctx, field)
  112297. case "id":
  112298. return ec.fieldContext_Publication_id(ctx, field)
  112299. case "name":
  112300. return ec.fieldContext_Publication_name(ctx, field)
  112301. case "productPublicationsV3":
  112302. return ec.fieldContext_Publication_productPublicationsV3(ctx, field)
  112303. case "products":
  112304. return ec.fieldContext_Publication_products(ctx, field)
  112305. case "supportsFuturePublishing":
  112306. return ec.fieldContext_Publication_supportsFuturePublishing(ctx, field)
  112307. }
  112308. return nil, fmt.Errorf("no field named %q was found under type Publication", field.Name)
  112309. },
  112310. }
  112311. return fc, nil
  112312. }
  112313. func (ec *executionContext) _ResourcePublication_publishDate(ctx context.Context, field graphql.CollectedField, obj *ResourcePublication) (ret graphql.Marshaler) {
  112314. fc, err := ec.fieldContext_ResourcePublication_publishDate(ctx, field)
  112315. if err != nil {
  112316. return graphql.Null
  112317. }
  112318. ctx = graphql.WithFieldContext(ctx, fc)
  112319. defer func() {
  112320. if r := recover(); r != nil {
  112321. ec.Error(ctx, ec.Recover(ctx, r))
  112322. ret = graphql.Null
  112323. }
  112324. }()
  112325. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  112326. ctx = rctx // use context from middleware stack in children
  112327. return obj.PublishDate, nil
  112328. })
  112329. if err != nil {
  112330. ec.Error(ctx, err)
  112331. return graphql.Null
  112332. }
  112333. if resTmp == nil {
  112334. if !graphql.HasFieldError(ctx, fc) {
  112335. ec.Errorf(ctx, "must not be null")
  112336. }
  112337. return graphql.Null
  112338. }
  112339. res := resTmp.(string)
  112340. fc.Result = res
  112341. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  112342. }
  112343. func (ec *executionContext) fieldContext_ResourcePublication_publishDate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  112344. fc = &graphql.FieldContext{
  112345. Object: "ResourcePublication",
  112346. Field: field,
  112347. IsMethod: false,
  112348. IsResolver: false,
  112349. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  112350. return nil, errors.New("field of type DateTime does not have child fields")
  112351. },
  112352. }
  112353. return fc, nil
  112354. }
  112355. func (ec *executionContext) _ResourcePublication_publishable(ctx context.Context, field graphql.CollectedField, obj *ResourcePublication) (ret graphql.Marshaler) {
  112356. fc, err := ec.fieldContext_ResourcePublication_publishable(ctx, field)
  112357. if err != nil {
  112358. return graphql.Null
  112359. }
  112360. ctx = graphql.WithFieldContext(ctx, fc)
  112361. defer func() {
  112362. if r := recover(); r != nil {
  112363. ec.Error(ctx, ec.Recover(ctx, r))
  112364. ret = graphql.Null
  112365. }
  112366. }()
  112367. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  112368. ctx = rctx // use context from middleware stack in children
  112369. return obj.Publishable, nil
  112370. })
  112371. if err != nil {
  112372. ec.Error(ctx, err)
  112373. return graphql.Null
  112374. }
  112375. if resTmp == nil {
  112376. if !graphql.HasFieldError(ctx, fc) {
  112377. ec.Errorf(ctx, "must not be null")
  112378. }
  112379. return graphql.Null
  112380. }
  112381. res := resTmp.(Publishable)
  112382. fc.Result = res
  112383. return ec.marshalNPublishable2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublishable(ctx, field.Selections, res)
  112384. }
  112385. func (ec *executionContext) fieldContext_ResourcePublication_publishable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  112386. fc = &graphql.FieldContext{
  112387. Object: "ResourcePublication",
  112388. Field: field,
  112389. IsMethod: false,
  112390. IsResolver: false,
  112391. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  112392. return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
  112393. },
  112394. }
  112395. return fc, nil
  112396. }
  112397. func (ec *executionContext) _ResourcePublicationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *ResourcePublicationConnection) (ret graphql.Marshaler) {
  112398. fc, err := ec.fieldContext_ResourcePublicationConnection_edges(ctx, field)
  112399. if err != nil {
  112400. return graphql.Null
  112401. }
  112402. ctx = graphql.WithFieldContext(ctx, fc)
  112403. defer func() {
  112404. if r := recover(); r != nil {
  112405. ec.Error(ctx, ec.Recover(ctx, r))
  112406. ret = graphql.Null
  112407. }
  112408. }()
  112409. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  112410. ctx = rctx // use context from middleware stack in children
  112411. return obj.Edges, nil
  112412. })
  112413. if err != nil {
  112414. ec.Error(ctx, err)
  112415. return graphql.Null
  112416. }
  112417. if resTmp == nil {
  112418. if !graphql.HasFieldError(ctx, fc) {
  112419. ec.Errorf(ctx, "must not be null")
  112420. }
  112421. return graphql.Null
  112422. }
  112423. res := resTmp.([]*ResourcePublicationEdge)
  112424. fc.Result = res
  112425. return ec.marshalNResourcePublicationEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublicationEdgeᚄ(ctx, field.Selections, res)
  112426. }
  112427. func (ec *executionContext) fieldContext_ResourcePublicationConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  112428. fc = &graphql.FieldContext{
  112429. Object: "ResourcePublicationConnection",
  112430. Field: field,
  112431. IsMethod: false,
  112432. IsResolver: false,
  112433. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  112434. switch field.Name {
  112435. case "cursor":
  112436. return ec.fieldContext_ResourcePublicationEdge_cursor(ctx, field)
  112437. case "node":
  112438. return ec.fieldContext_ResourcePublicationEdge_node(ctx, field)
  112439. }
  112440. return nil, fmt.Errorf("no field named %q was found under type ResourcePublicationEdge", field.Name)
  112441. },
  112442. }
  112443. return fc, nil
  112444. }
  112445. func (ec *executionContext) _ResourcePublicationConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *ResourcePublicationConnection) (ret graphql.Marshaler) {
  112446. fc, err := ec.fieldContext_ResourcePublicationConnection_nodes(ctx, field)
  112447. if err != nil {
  112448. return graphql.Null
  112449. }
  112450. ctx = graphql.WithFieldContext(ctx, fc)
  112451. defer func() {
  112452. if r := recover(); r != nil {
  112453. ec.Error(ctx, ec.Recover(ctx, r))
  112454. ret = graphql.Null
  112455. }
  112456. }()
  112457. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  112458. ctx = rctx // use context from middleware stack in children
  112459. return obj.Nodes, nil
  112460. })
  112461. if err != nil {
  112462. ec.Error(ctx, err)
  112463. return graphql.Null
  112464. }
  112465. if resTmp == nil {
  112466. if !graphql.HasFieldError(ctx, fc) {
  112467. ec.Errorf(ctx, "must not be null")
  112468. }
  112469. return graphql.Null
  112470. }
  112471. res := resTmp.([]*ResourcePublication)
  112472. fc.Result = res
  112473. return ec.marshalNResourcePublication2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublicationᚄ(ctx, field.Selections, res)
  112474. }
  112475. func (ec *executionContext) fieldContext_ResourcePublicationConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  112476. fc = &graphql.FieldContext{
  112477. Object: "ResourcePublicationConnection",
  112478. Field: field,
  112479. IsMethod: false,
  112480. IsResolver: false,
  112481. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  112482. switch field.Name {
  112483. case "isPublished":
  112484. return ec.fieldContext_ResourcePublication_isPublished(ctx, field)
  112485. case "publication":
  112486. return ec.fieldContext_ResourcePublication_publication(ctx, field)
  112487. case "publishDate":
  112488. return ec.fieldContext_ResourcePublication_publishDate(ctx, field)
  112489. case "publishable":
  112490. return ec.fieldContext_ResourcePublication_publishable(ctx, field)
  112491. }
  112492. return nil, fmt.Errorf("no field named %q was found under type ResourcePublication", field.Name)
  112493. },
  112494. }
  112495. return fc, nil
  112496. }
  112497. func (ec *executionContext) _ResourcePublicationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *ResourcePublicationConnection) (ret graphql.Marshaler) {
  112498. fc, err := ec.fieldContext_ResourcePublicationConnection_pageInfo(ctx, field)
  112499. if err != nil {
  112500. return graphql.Null
  112501. }
  112502. ctx = graphql.WithFieldContext(ctx, fc)
  112503. defer func() {
  112504. if r := recover(); r != nil {
  112505. ec.Error(ctx, ec.Recover(ctx, r))
  112506. ret = graphql.Null
  112507. }
  112508. }()
  112509. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  112510. ctx = rctx // use context from middleware stack in children
  112511. return obj.PageInfo, nil
  112512. })
  112513. if err != nil {
  112514. ec.Error(ctx, err)
  112515. return graphql.Null
  112516. }
  112517. if resTmp == nil {
  112518. if !graphql.HasFieldError(ctx, fc) {
  112519. ec.Errorf(ctx, "must not be null")
  112520. }
  112521. return graphql.Null
  112522. }
  112523. res := resTmp.(*PageInfo)
  112524. fc.Result = res
  112525. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  112526. }
  112527. func (ec *executionContext) fieldContext_ResourcePublicationConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  112528. fc = &graphql.FieldContext{
  112529. Object: "ResourcePublicationConnection",
  112530. Field: field,
  112531. IsMethod: false,
  112532. IsResolver: false,
  112533. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  112534. switch field.Name {
  112535. case "endCursor":
  112536. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  112537. case "hasNextPage":
  112538. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  112539. case "hasPreviousPage":
  112540. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  112541. case "startCursor":
  112542. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  112543. }
  112544. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  112545. },
  112546. }
  112547. return fc, nil
  112548. }
  112549. func (ec *executionContext) _ResourcePublicationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *ResourcePublicationEdge) (ret graphql.Marshaler) {
  112550. fc, err := ec.fieldContext_ResourcePublicationEdge_cursor(ctx, field)
  112551. if err != nil {
  112552. return graphql.Null
  112553. }
  112554. ctx = graphql.WithFieldContext(ctx, fc)
  112555. defer func() {
  112556. if r := recover(); r != nil {
  112557. ec.Error(ctx, ec.Recover(ctx, r))
  112558. ret = graphql.Null
  112559. }
  112560. }()
  112561. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  112562. ctx = rctx // use context from middleware stack in children
  112563. return obj.Cursor, nil
  112564. })
  112565. if err != nil {
  112566. ec.Error(ctx, err)
  112567. return graphql.Null
  112568. }
  112569. if resTmp == nil {
  112570. if !graphql.HasFieldError(ctx, fc) {
  112571. ec.Errorf(ctx, "must not be null")
  112572. }
  112573. return graphql.Null
  112574. }
  112575. res := resTmp.(string)
  112576. fc.Result = res
  112577. return ec.marshalNString2string(ctx, field.Selections, res)
  112578. }
  112579. func (ec *executionContext) fieldContext_ResourcePublicationEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  112580. fc = &graphql.FieldContext{
  112581. Object: "ResourcePublicationEdge",
  112582. Field: field,
  112583. IsMethod: false,
  112584. IsResolver: false,
  112585. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  112586. return nil, errors.New("field of type String does not have child fields")
  112587. },
  112588. }
  112589. return fc, nil
  112590. }
  112591. func (ec *executionContext) _ResourcePublicationEdge_node(ctx context.Context, field graphql.CollectedField, obj *ResourcePublicationEdge) (ret graphql.Marshaler) {
  112592. fc, err := ec.fieldContext_ResourcePublicationEdge_node(ctx, field)
  112593. if err != nil {
  112594. return graphql.Null
  112595. }
  112596. ctx = graphql.WithFieldContext(ctx, fc)
  112597. defer func() {
  112598. if r := recover(); r != nil {
  112599. ec.Error(ctx, ec.Recover(ctx, r))
  112600. ret = graphql.Null
  112601. }
  112602. }()
  112603. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  112604. ctx = rctx // use context from middleware stack in children
  112605. return obj.Node, nil
  112606. })
  112607. if err != nil {
  112608. ec.Error(ctx, err)
  112609. return graphql.Null
  112610. }
  112611. if resTmp == nil {
  112612. if !graphql.HasFieldError(ctx, fc) {
  112613. ec.Errorf(ctx, "must not be null")
  112614. }
  112615. return graphql.Null
  112616. }
  112617. res := resTmp.(*ResourcePublication)
  112618. fc.Result = res
  112619. return ec.marshalNResourcePublication2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublication(ctx, field.Selections, res)
  112620. }
  112621. func (ec *executionContext) fieldContext_ResourcePublicationEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  112622. fc = &graphql.FieldContext{
  112623. Object: "ResourcePublicationEdge",
  112624. Field: field,
  112625. IsMethod: false,
  112626. IsResolver: false,
  112627. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  112628. switch field.Name {
  112629. case "isPublished":
  112630. return ec.fieldContext_ResourcePublication_isPublished(ctx, field)
  112631. case "publication":
  112632. return ec.fieldContext_ResourcePublication_publication(ctx, field)
  112633. case "publishDate":
  112634. return ec.fieldContext_ResourcePublication_publishDate(ctx, field)
  112635. case "publishable":
  112636. return ec.fieldContext_ResourcePublication_publishable(ctx, field)
  112637. }
  112638. return nil, fmt.Errorf("no field named %q was found under type ResourcePublication", field.Name)
  112639. },
  112640. }
  112641. return fc, nil
  112642. }
  112643. func (ec *executionContext) _ResourcePublicationV2_isPublished(ctx context.Context, field graphql.CollectedField, obj *ResourcePublicationV2) (ret graphql.Marshaler) {
  112644. fc, err := ec.fieldContext_ResourcePublicationV2_isPublished(ctx, field)
  112645. if err != nil {
  112646. return graphql.Null
  112647. }
  112648. ctx = graphql.WithFieldContext(ctx, fc)
  112649. defer func() {
  112650. if r := recover(); r != nil {
  112651. ec.Error(ctx, ec.Recover(ctx, r))
  112652. ret = graphql.Null
  112653. }
  112654. }()
  112655. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  112656. ctx = rctx // use context from middleware stack in children
  112657. return obj.IsPublished, nil
  112658. })
  112659. if err != nil {
  112660. ec.Error(ctx, err)
  112661. return graphql.Null
  112662. }
  112663. if resTmp == nil {
  112664. if !graphql.HasFieldError(ctx, fc) {
  112665. ec.Errorf(ctx, "must not be null")
  112666. }
  112667. return graphql.Null
  112668. }
  112669. res := resTmp.(bool)
  112670. fc.Result = res
  112671. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  112672. }
  112673. func (ec *executionContext) fieldContext_ResourcePublicationV2_isPublished(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  112674. fc = &graphql.FieldContext{
  112675. Object: "ResourcePublicationV2",
  112676. Field: field,
  112677. IsMethod: false,
  112678. IsResolver: false,
  112679. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  112680. return nil, errors.New("field of type Boolean does not have child fields")
  112681. },
  112682. }
  112683. return fc, nil
  112684. }
  112685. func (ec *executionContext) _ResourcePublicationV2_publication(ctx context.Context, field graphql.CollectedField, obj *ResourcePublicationV2) (ret graphql.Marshaler) {
  112686. fc, err := ec.fieldContext_ResourcePublicationV2_publication(ctx, field)
  112687. if err != nil {
  112688. return graphql.Null
  112689. }
  112690. ctx = graphql.WithFieldContext(ctx, fc)
  112691. defer func() {
  112692. if r := recover(); r != nil {
  112693. ec.Error(ctx, ec.Recover(ctx, r))
  112694. ret = graphql.Null
  112695. }
  112696. }()
  112697. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  112698. ctx = rctx // use context from middleware stack in children
  112699. return obj.Publication, nil
  112700. })
  112701. if err != nil {
  112702. ec.Error(ctx, err)
  112703. return graphql.Null
  112704. }
  112705. if resTmp == nil {
  112706. if !graphql.HasFieldError(ctx, fc) {
  112707. ec.Errorf(ctx, "must not be null")
  112708. }
  112709. return graphql.Null
  112710. }
  112711. res := resTmp.(*Publication)
  112712. fc.Result = res
  112713. return ec.marshalNPublication2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublication(ctx, field.Selections, res)
  112714. }
  112715. func (ec *executionContext) fieldContext_ResourcePublicationV2_publication(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  112716. fc = &graphql.FieldContext{
  112717. Object: "ResourcePublicationV2",
  112718. Field: field,
  112719. IsMethod: false,
  112720. IsResolver: false,
  112721. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  112722. switch field.Name {
  112723. case "app":
  112724. return ec.fieldContext_Publication_app(ctx, field)
  112725. case "collectionPublicationsV3":
  112726. return ec.fieldContext_Publication_collectionPublicationsV3(ctx, field)
  112727. case "collections":
  112728. return ec.fieldContext_Publication_collections(ctx, field)
  112729. case "hasCollection":
  112730. return ec.fieldContext_Publication_hasCollection(ctx, field)
  112731. case "id":
  112732. return ec.fieldContext_Publication_id(ctx, field)
  112733. case "name":
  112734. return ec.fieldContext_Publication_name(ctx, field)
  112735. case "productPublicationsV3":
  112736. return ec.fieldContext_Publication_productPublicationsV3(ctx, field)
  112737. case "products":
  112738. return ec.fieldContext_Publication_products(ctx, field)
  112739. case "supportsFuturePublishing":
  112740. return ec.fieldContext_Publication_supportsFuturePublishing(ctx, field)
  112741. }
  112742. return nil, fmt.Errorf("no field named %q was found under type Publication", field.Name)
  112743. },
  112744. }
  112745. return fc, nil
  112746. }
  112747. func (ec *executionContext) _ResourcePublicationV2_publishDate(ctx context.Context, field graphql.CollectedField, obj *ResourcePublicationV2) (ret graphql.Marshaler) {
  112748. fc, err := ec.fieldContext_ResourcePublicationV2_publishDate(ctx, field)
  112749. if err != nil {
  112750. return graphql.Null
  112751. }
  112752. ctx = graphql.WithFieldContext(ctx, fc)
  112753. defer func() {
  112754. if r := recover(); r != nil {
  112755. ec.Error(ctx, ec.Recover(ctx, r))
  112756. ret = graphql.Null
  112757. }
  112758. }()
  112759. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  112760. ctx = rctx // use context from middleware stack in children
  112761. return obj.PublishDate, nil
  112762. })
  112763. if err != nil {
  112764. ec.Error(ctx, err)
  112765. return graphql.Null
  112766. }
  112767. if resTmp == nil {
  112768. return graphql.Null
  112769. }
  112770. res := resTmp.(*string)
  112771. fc.Result = res
  112772. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  112773. }
  112774. func (ec *executionContext) fieldContext_ResourcePublicationV2_publishDate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  112775. fc = &graphql.FieldContext{
  112776. Object: "ResourcePublicationV2",
  112777. Field: field,
  112778. IsMethod: false,
  112779. IsResolver: false,
  112780. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  112781. return nil, errors.New("field of type DateTime does not have child fields")
  112782. },
  112783. }
  112784. return fc, nil
  112785. }
  112786. func (ec *executionContext) _ResourcePublicationV2_publishable(ctx context.Context, field graphql.CollectedField, obj *ResourcePublicationV2) (ret graphql.Marshaler) {
  112787. fc, err := ec.fieldContext_ResourcePublicationV2_publishable(ctx, field)
  112788. if err != nil {
  112789. return graphql.Null
  112790. }
  112791. ctx = graphql.WithFieldContext(ctx, fc)
  112792. defer func() {
  112793. if r := recover(); r != nil {
  112794. ec.Error(ctx, ec.Recover(ctx, r))
  112795. ret = graphql.Null
  112796. }
  112797. }()
  112798. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  112799. ctx = rctx // use context from middleware stack in children
  112800. return obj.Publishable, nil
  112801. })
  112802. if err != nil {
  112803. ec.Error(ctx, err)
  112804. return graphql.Null
  112805. }
  112806. if resTmp == nil {
  112807. if !graphql.HasFieldError(ctx, fc) {
  112808. ec.Errorf(ctx, "must not be null")
  112809. }
  112810. return graphql.Null
  112811. }
  112812. res := resTmp.(Publishable)
  112813. fc.Result = res
  112814. return ec.marshalNPublishable2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublishable(ctx, field.Selections, res)
  112815. }
  112816. func (ec *executionContext) fieldContext_ResourcePublicationV2_publishable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  112817. fc = &graphql.FieldContext{
  112818. Object: "ResourcePublicationV2",
  112819. Field: field,
  112820. IsMethod: false,
  112821. IsResolver: false,
  112822. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  112823. return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
  112824. },
  112825. }
  112826. return fc, nil
  112827. }
  112828. func (ec *executionContext) _ResourcePublicationV2Connection_edges(ctx context.Context, field graphql.CollectedField, obj *ResourcePublicationV2Connection) (ret graphql.Marshaler) {
  112829. fc, err := ec.fieldContext_ResourcePublicationV2Connection_edges(ctx, field)
  112830. if err != nil {
  112831. return graphql.Null
  112832. }
  112833. ctx = graphql.WithFieldContext(ctx, fc)
  112834. defer func() {
  112835. if r := recover(); r != nil {
  112836. ec.Error(ctx, ec.Recover(ctx, r))
  112837. ret = graphql.Null
  112838. }
  112839. }()
  112840. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  112841. ctx = rctx // use context from middleware stack in children
  112842. return obj.Edges, nil
  112843. })
  112844. if err != nil {
  112845. ec.Error(ctx, err)
  112846. return graphql.Null
  112847. }
  112848. if resTmp == nil {
  112849. if !graphql.HasFieldError(ctx, fc) {
  112850. ec.Errorf(ctx, "must not be null")
  112851. }
  112852. return graphql.Null
  112853. }
  112854. res := resTmp.([]*ResourcePublicationV2Edge)
  112855. fc.Result = res
  112856. return ec.marshalNResourcePublicationV2Edge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublicationV2Edgeᚄ(ctx, field.Selections, res)
  112857. }
  112858. func (ec *executionContext) fieldContext_ResourcePublicationV2Connection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  112859. fc = &graphql.FieldContext{
  112860. Object: "ResourcePublicationV2Connection",
  112861. Field: field,
  112862. IsMethod: false,
  112863. IsResolver: false,
  112864. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  112865. switch field.Name {
  112866. case "cursor":
  112867. return ec.fieldContext_ResourcePublicationV2Edge_cursor(ctx, field)
  112868. case "node":
  112869. return ec.fieldContext_ResourcePublicationV2Edge_node(ctx, field)
  112870. }
  112871. return nil, fmt.Errorf("no field named %q was found under type ResourcePublicationV2Edge", field.Name)
  112872. },
  112873. }
  112874. return fc, nil
  112875. }
  112876. func (ec *executionContext) _ResourcePublicationV2Connection_nodes(ctx context.Context, field graphql.CollectedField, obj *ResourcePublicationV2Connection) (ret graphql.Marshaler) {
  112877. fc, err := ec.fieldContext_ResourcePublicationV2Connection_nodes(ctx, field)
  112878. if err != nil {
  112879. return graphql.Null
  112880. }
  112881. ctx = graphql.WithFieldContext(ctx, fc)
  112882. defer func() {
  112883. if r := recover(); r != nil {
  112884. ec.Error(ctx, ec.Recover(ctx, r))
  112885. ret = graphql.Null
  112886. }
  112887. }()
  112888. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  112889. ctx = rctx // use context from middleware stack in children
  112890. return obj.Nodes, nil
  112891. })
  112892. if err != nil {
  112893. ec.Error(ctx, err)
  112894. return graphql.Null
  112895. }
  112896. if resTmp == nil {
  112897. if !graphql.HasFieldError(ctx, fc) {
  112898. ec.Errorf(ctx, "must not be null")
  112899. }
  112900. return graphql.Null
  112901. }
  112902. res := resTmp.([]*ResourcePublicationV2)
  112903. fc.Result = res
  112904. return ec.marshalNResourcePublicationV22ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublicationV2ᚄ(ctx, field.Selections, res)
  112905. }
  112906. func (ec *executionContext) fieldContext_ResourcePublicationV2Connection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  112907. fc = &graphql.FieldContext{
  112908. Object: "ResourcePublicationV2Connection",
  112909. Field: field,
  112910. IsMethod: false,
  112911. IsResolver: false,
  112912. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  112913. switch field.Name {
  112914. case "isPublished":
  112915. return ec.fieldContext_ResourcePublicationV2_isPublished(ctx, field)
  112916. case "publication":
  112917. return ec.fieldContext_ResourcePublicationV2_publication(ctx, field)
  112918. case "publishDate":
  112919. return ec.fieldContext_ResourcePublicationV2_publishDate(ctx, field)
  112920. case "publishable":
  112921. return ec.fieldContext_ResourcePublicationV2_publishable(ctx, field)
  112922. }
  112923. return nil, fmt.Errorf("no field named %q was found under type ResourcePublicationV2", field.Name)
  112924. },
  112925. }
  112926. return fc, nil
  112927. }
  112928. func (ec *executionContext) _ResourcePublicationV2Connection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *ResourcePublicationV2Connection) (ret graphql.Marshaler) {
  112929. fc, err := ec.fieldContext_ResourcePublicationV2Connection_pageInfo(ctx, field)
  112930. if err != nil {
  112931. return graphql.Null
  112932. }
  112933. ctx = graphql.WithFieldContext(ctx, fc)
  112934. defer func() {
  112935. if r := recover(); r != nil {
  112936. ec.Error(ctx, ec.Recover(ctx, r))
  112937. ret = graphql.Null
  112938. }
  112939. }()
  112940. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  112941. ctx = rctx // use context from middleware stack in children
  112942. return obj.PageInfo, nil
  112943. })
  112944. if err != nil {
  112945. ec.Error(ctx, err)
  112946. return graphql.Null
  112947. }
  112948. if resTmp == nil {
  112949. if !graphql.HasFieldError(ctx, fc) {
  112950. ec.Errorf(ctx, "must not be null")
  112951. }
  112952. return graphql.Null
  112953. }
  112954. res := resTmp.(*PageInfo)
  112955. fc.Result = res
  112956. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  112957. }
  112958. func (ec *executionContext) fieldContext_ResourcePublicationV2Connection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  112959. fc = &graphql.FieldContext{
  112960. Object: "ResourcePublicationV2Connection",
  112961. Field: field,
  112962. IsMethod: false,
  112963. IsResolver: false,
  112964. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  112965. switch field.Name {
  112966. case "endCursor":
  112967. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  112968. case "hasNextPage":
  112969. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  112970. case "hasPreviousPage":
  112971. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  112972. case "startCursor":
  112973. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  112974. }
  112975. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  112976. },
  112977. }
  112978. return fc, nil
  112979. }
  112980. func (ec *executionContext) _ResourcePublicationV2Edge_cursor(ctx context.Context, field graphql.CollectedField, obj *ResourcePublicationV2Edge) (ret graphql.Marshaler) {
  112981. fc, err := ec.fieldContext_ResourcePublicationV2Edge_cursor(ctx, field)
  112982. if err != nil {
  112983. return graphql.Null
  112984. }
  112985. ctx = graphql.WithFieldContext(ctx, fc)
  112986. defer func() {
  112987. if r := recover(); r != nil {
  112988. ec.Error(ctx, ec.Recover(ctx, r))
  112989. ret = graphql.Null
  112990. }
  112991. }()
  112992. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  112993. ctx = rctx // use context from middleware stack in children
  112994. return obj.Cursor, nil
  112995. })
  112996. if err != nil {
  112997. ec.Error(ctx, err)
  112998. return graphql.Null
  112999. }
  113000. if resTmp == nil {
  113001. if !graphql.HasFieldError(ctx, fc) {
  113002. ec.Errorf(ctx, "must not be null")
  113003. }
  113004. return graphql.Null
  113005. }
  113006. res := resTmp.(string)
  113007. fc.Result = res
  113008. return ec.marshalNString2string(ctx, field.Selections, res)
  113009. }
  113010. func (ec *executionContext) fieldContext_ResourcePublicationV2Edge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  113011. fc = &graphql.FieldContext{
  113012. Object: "ResourcePublicationV2Edge",
  113013. Field: field,
  113014. IsMethod: false,
  113015. IsResolver: false,
  113016. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  113017. return nil, errors.New("field of type String does not have child fields")
  113018. },
  113019. }
  113020. return fc, nil
  113021. }
  113022. func (ec *executionContext) _ResourcePublicationV2Edge_node(ctx context.Context, field graphql.CollectedField, obj *ResourcePublicationV2Edge) (ret graphql.Marshaler) {
  113023. fc, err := ec.fieldContext_ResourcePublicationV2Edge_node(ctx, field)
  113024. if err != nil {
  113025. return graphql.Null
  113026. }
  113027. ctx = graphql.WithFieldContext(ctx, fc)
  113028. defer func() {
  113029. if r := recover(); r != nil {
  113030. ec.Error(ctx, ec.Recover(ctx, r))
  113031. ret = graphql.Null
  113032. }
  113033. }()
  113034. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  113035. ctx = rctx // use context from middleware stack in children
  113036. return obj.Node, nil
  113037. })
  113038. if err != nil {
  113039. ec.Error(ctx, err)
  113040. return graphql.Null
  113041. }
  113042. if resTmp == nil {
  113043. if !graphql.HasFieldError(ctx, fc) {
  113044. ec.Errorf(ctx, "must not be null")
  113045. }
  113046. return graphql.Null
  113047. }
  113048. res := resTmp.(*ResourcePublicationV2)
  113049. fc.Result = res
  113050. return ec.marshalNResourcePublicationV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublicationV2(ctx, field.Selections, res)
  113051. }
  113052. func (ec *executionContext) fieldContext_ResourcePublicationV2Edge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  113053. fc = &graphql.FieldContext{
  113054. Object: "ResourcePublicationV2Edge",
  113055. Field: field,
  113056. IsMethod: false,
  113057. IsResolver: false,
  113058. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  113059. switch field.Name {
  113060. case "isPublished":
  113061. return ec.fieldContext_ResourcePublicationV2_isPublished(ctx, field)
  113062. case "publication":
  113063. return ec.fieldContext_ResourcePublicationV2_publication(ctx, field)
  113064. case "publishDate":
  113065. return ec.fieldContext_ResourcePublicationV2_publishDate(ctx, field)
  113066. case "publishable":
  113067. return ec.fieldContext_ResourcePublicationV2_publishable(ctx, field)
  113068. }
  113069. return nil, fmt.Errorf("no field named %q was found under type ResourcePublicationV2", field.Name)
  113070. },
  113071. }
  113072. return fc, nil
  113073. }
  113074. func (ec *executionContext) _SEO_description(ctx context.Context, field graphql.CollectedField, obj *Seo) (ret graphql.Marshaler) {
  113075. fc, err := ec.fieldContext_SEO_description(ctx, field)
  113076. if err != nil {
  113077. return graphql.Null
  113078. }
  113079. ctx = graphql.WithFieldContext(ctx, fc)
  113080. defer func() {
  113081. if r := recover(); r != nil {
  113082. ec.Error(ctx, ec.Recover(ctx, r))
  113083. ret = graphql.Null
  113084. }
  113085. }()
  113086. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  113087. ctx = rctx // use context from middleware stack in children
  113088. return obj.Description, nil
  113089. })
  113090. if err != nil {
  113091. ec.Error(ctx, err)
  113092. return graphql.Null
  113093. }
  113094. if resTmp == nil {
  113095. return graphql.Null
  113096. }
  113097. res := resTmp.(*string)
  113098. fc.Result = res
  113099. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  113100. }
  113101. func (ec *executionContext) fieldContext_SEO_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  113102. fc = &graphql.FieldContext{
  113103. Object: "SEO",
  113104. Field: field,
  113105. IsMethod: false,
  113106. IsResolver: false,
  113107. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  113108. return nil, errors.New("field of type String does not have child fields")
  113109. },
  113110. }
  113111. return fc, nil
  113112. }
  113113. func (ec *executionContext) _SEO_title(ctx context.Context, field graphql.CollectedField, obj *Seo) (ret graphql.Marshaler) {
  113114. fc, err := ec.fieldContext_SEO_title(ctx, field)
  113115. if err != nil {
  113116. return graphql.Null
  113117. }
  113118. ctx = graphql.WithFieldContext(ctx, fc)
  113119. defer func() {
  113120. if r := recover(); r != nil {
  113121. ec.Error(ctx, ec.Recover(ctx, r))
  113122. ret = graphql.Null
  113123. }
  113124. }()
  113125. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  113126. ctx = rctx // use context from middleware stack in children
  113127. return obj.Title, nil
  113128. })
  113129. if err != nil {
  113130. ec.Error(ctx, err)
  113131. return graphql.Null
  113132. }
  113133. if resTmp == nil {
  113134. return graphql.Null
  113135. }
  113136. res := resTmp.(*string)
  113137. fc.Result = res
  113138. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  113139. }
  113140. func (ec *executionContext) fieldContext_SEO_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  113141. fc = &graphql.FieldContext{
  113142. Object: "SEO",
  113143. Field: field,
  113144. IsMethod: false,
  113145. IsResolver: false,
  113146. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  113147. return nil, errors.New("field of type String does not have child fields")
  113148. },
  113149. }
  113150. return fc, nil
  113151. }
  113152. func (ec *executionContext) _SaleConnection_edges(ctx context.Context, field graphql.CollectedField, obj *SaleConnection) (ret graphql.Marshaler) {
  113153. fc, err := ec.fieldContext_SaleConnection_edges(ctx, field)
  113154. if err != nil {
  113155. return graphql.Null
  113156. }
  113157. ctx = graphql.WithFieldContext(ctx, fc)
  113158. defer func() {
  113159. if r := recover(); r != nil {
  113160. ec.Error(ctx, ec.Recover(ctx, r))
  113161. ret = graphql.Null
  113162. }
  113163. }()
  113164. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  113165. ctx = rctx // use context from middleware stack in children
  113166. return obj.Edges, nil
  113167. })
  113168. if err != nil {
  113169. ec.Error(ctx, err)
  113170. return graphql.Null
  113171. }
  113172. if resTmp == nil {
  113173. if !graphql.HasFieldError(ctx, fc) {
  113174. ec.Errorf(ctx, "must not be null")
  113175. }
  113176. return graphql.Null
  113177. }
  113178. res := resTmp.([]*SaleEdge)
  113179. fc.Result = res
  113180. return ec.marshalNSaleEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSaleEdgeᚄ(ctx, field.Selections, res)
  113181. }
  113182. func (ec *executionContext) fieldContext_SaleConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  113183. fc = &graphql.FieldContext{
  113184. Object: "SaleConnection",
  113185. Field: field,
  113186. IsMethod: false,
  113187. IsResolver: false,
  113188. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  113189. switch field.Name {
  113190. case "cursor":
  113191. return ec.fieldContext_SaleEdge_cursor(ctx, field)
  113192. case "node":
  113193. return ec.fieldContext_SaleEdge_node(ctx, field)
  113194. }
  113195. return nil, fmt.Errorf("no field named %q was found under type SaleEdge", field.Name)
  113196. },
  113197. }
  113198. return fc, nil
  113199. }
  113200. func (ec *executionContext) _SaleConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *SaleConnection) (ret graphql.Marshaler) {
  113201. fc, err := ec.fieldContext_SaleConnection_nodes(ctx, field)
  113202. if err != nil {
  113203. return graphql.Null
  113204. }
  113205. ctx = graphql.WithFieldContext(ctx, fc)
  113206. defer func() {
  113207. if r := recover(); r != nil {
  113208. ec.Error(ctx, ec.Recover(ctx, r))
  113209. ret = graphql.Null
  113210. }
  113211. }()
  113212. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  113213. ctx = rctx // use context from middleware stack in children
  113214. return obj.Nodes, nil
  113215. })
  113216. if err != nil {
  113217. ec.Error(ctx, err)
  113218. return graphql.Null
  113219. }
  113220. if resTmp == nil {
  113221. if !graphql.HasFieldError(ctx, fc) {
  113222. ec.Errorf(ctx, "must not be null")
  113223. }
  113224. return graphql.Null
  113225. }
  113226. res := resTmp.([]Sale)
  113227. fc.Result = res
  113228. return ec.marshalNSale2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSaleᚄ(ctx, field.Selections, res)
  113229. }
  113230. func (ec *executionContext) fieldContext_SaleConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  113231. fc = &graphql.FieldContext{
  113232. Object: "SaleConnection",
  113233. Field: field,
  113234. IsMethod: false,
  113235. IsResolver: false,
  113236. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  113237. return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
  113238. },
  113239. }
  113240. return fc, nil
  113241. }
  113242. func (ec *executionContext) _SaleConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *SaleConnection) (ret graphql.Marshaler) {
  113243. fc, err := ec.fieldContext_SaleConnection_pageInfo(ctx, field)
  113244. if err != nil {
  113245. return graphql.Null
  113246. }
  113247. ctx = graphql.WithFieldContext(ctx, fc)
  113248. defer func() {
  113249. if r := recover(); r != nil {
  113250. ec.Error(ctx, ec.Recover(ctx, r))
  113251. ret = graphql.Null
  113252. }
  113253. }()
  113254. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  113255. ctx = rctx // use context from middleware stack in children
  113256. return obj.PageInfo, nil
  113257. })
  113258. if err != nil {
  113259. ec.Error(ctx, err)
  113260. return graphql.Null
  113261. }
  113262. if resTmp == nil {
  113263. if !graphql.HasFieldError(ctx, fc) {
  113264. ec.Errorf(ctx, "must not be null")
  113265. }
  113266. return graphql.Null
  113267. }
  113268. res := resTmp.(*PageInfo)
  113269. fc.Result = res
  113270. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  113271. }
  113272. func (ec *executionContext) fieldContext_SaleConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  113273. fc = &graphql.FieldContext{
  113274. Object: "SaleConnection",
  113275. Field: field,
  113276. IsMethod: false,
  113277. IsResolver: false,
  113278. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  113279. switch field.Name {
  113280. case "endCursor":
  113281. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  113282. case "hasNextPage":
  113283. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  113284. case "hasPreviousPage":
  113285. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  113286. case "startCursor":
  113287. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  113288. }
  113289. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  113290. },
  113291. }
  113292. return fc, nil
  113293. }
  113294. func (ec *executionContext) _SaleEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *SaleEdge) (ret graphql.Marshaler) {
  113295. fc, err := ec.fieldContext_SaleEdge_cursor(ctx, field)
  113296. if err != nil {
  113297. return graphql.Null
  113298. }
  113299. ctx = graphql.WithFieldContext(ctx, fc)
  113300. defer func() {
  113301. if r := recover(); r != nil {
  113302. ec.Error(ctx, ec.Recover(ctx, r))
  113303. ret = graphql.Null
  113304. }
  113305. }()
  113306. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  113307. ctx = rctx // use context from middleware stack in children
  113308. return obj.Cursor, nil
  113309. })
  113310. if err != nil {
  113311. ec.Error(ctx, err)
  113312. return graphql.Null
  113313. }
  113314. if resTmp == nil {
  113315. if !graphql.HasFieldError(ctx, fc) {
  113316. ec.Errorf(ctx, "must not be null")
  113317. }
  113318. return graphql.Null
  113319. }
  113320. res := resTmp.(string)
  113321. fc.Result = res
  113322. return ec.marshalNString2string(ctx, field.Selections, res)
  113323. }
  113324. func (ec *executionContext) fieldContext_SaleEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  113325. fc = &graphql.FieldContext{
  113326. Object: "SaleEdge",
  113327. Field: field,
  113328. IsMethod: false,
  113329. IsResolver: false,
  113330. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  113331. return nil, errors.New("field of type String does not have child fields")
  113332. },
  113333. }
  113334. return fc, nil
  113335. }
  113336. func (ec *executionContext) _SaleEdge_node(ctx context.Context, field graphql.CollectedField, obj *SaleEdge) (ret graphql.Marshaler) {
  113337. fc, err := ec.fieldContext_SaleEdge_node(ctx, field)
  113338. if err != nil {
  113339. return graphql.Null
  113340. }
  113341. ctx = graphql.WithFieldContext(ctx, fc)
  113342. defer func() {
  113343. if r := recover(); r != nil {
  113344. ec.Error(ctx, ec.Recover(ctx, r))
  113345. ret = graphql.Null
  113346. }
  113347. }()
  113348. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  113349. ctx = rctx // use context from middleware stack in children
  113350. return obj.Node, nil
  113351. })
  113352. if err != nil {
  113353. ec.Error(ctx, err)
  113354. return graphql.Null
  113355. }
  113356. if resTmp == nil {
  113357. if !graphql.HasFieldError(ctx, fc) {
  113358. ec.Errorf(ctx, "must not be null")
  113359. }
  113360. return graphql.Null
  113361. }
  113362. res := resTmp.(Sale)
  113363. fc.Result = res
  113364. return ec.marshalNSale2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSale(ctx, field.Selections, res)
  113365. }
  113366. func (ec *executionContext) fieldContext_SaleEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  113367. fc = &graphql.FieldContext{
  113368. Object: "SaleEdge",
  113369. Field: field,
  113370. IsMethod: false,
  113371. IsResolver: false,
  113372. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  113373. return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
  113374. },
  113375. }
  113376. return fc, nil
  113377. }
  113378. func (ec *executionContext) _SaleTax_amount(ctx context.Context, field graphql.CollectedField, obj *SaleTax) (ret graphql.Marshaler) {
  113379. fc, err := ec.fieldContext_SaleTax_amount(ctx, field)
  113380. if err != nil {
  113381. return graphql.Null
  113382. }
  113383. ctx = graphql.WithFieldContext(ctx, fc)
  113384. defer func() {
  113385. if r := recover(); r != nil {
  113386. ec.Error(ctx, ec.Recover(ctx, r))
  113387. ret = graphql.Null
  113388. }
  113389. }()
  113390. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  113391. ctx = rctx // use context from middleware stack in children
  113392. return obj.Amount, nil
  113393. })
  113394. if err != nil {
  113395. ec.Error(ctx, err)
  113396. return graphql.Null
  113397. }
  113398. if resTmp == nil {
  113399. if !graphql.HasFieldError(ctx, fc) {
  113400. ec.Errorf(ctx, "must not be null")
  113401. }
  113402. return graphql.Null
  113403. }
  113404. res := resTmp.(*MoneyBag)
  113405. fc.Result = res
  113406. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  113407. }
  113408. func (ec *executionContext) fieldContext_SaleTax_amount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  113409. fc = &graphql.FieldContext{
  113410. Object: "SaleTax",
  113411. Field: field,
  113412. IsMethod: false,
  113413. IsResolver: false,
  113414. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  113415. switch field.Name {
  113416. case "presentmentMoney":
  113417. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  113418. case "shopMoney":
  113419. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  113420. }
  113421. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  113422. },
  113423. }
  113424. return fc, nil
  113425. }
  113426. func (ec *executionContext) _SaleTax_id(ctx context.Context, field graphql.CollectedField, obj *SaleTax) (ret graphql.Marshaler) {
  113427. fc, err := ec.fieldContext_SaleTax_id(ctx, field)
  113428. if err != nil {
  113429. return graphql.Null
  113430. }
  113431. ctx = graphql.WithFieldContext(ctx, fc)
  113432. defer func() {
  113433. if r := recover(); r != nil {
  113434. ec.Error(ctx, ec.Recover(ctx, r))
  113435. ret = graphql.Null
  113436. }
  113437. }()
  113438. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  113439. ctx = rctx // use context from middleware stack in children
  113440. return obj.ID, nil
  113441. })
  113442. if err != nil {
  113443. ec.Error(ctx, err)
  113444. return graphql.Null
  113445. }
  113446. if resTmp == nil {
  113447. if !graphql.HasFieldError(ctx, fc) {
  113448. ec.Errorf(ctx, "must not be null")
  113449. }
  113450. return graphql.Null
  113451. }
  113452. res := resTmp.(string)
  113453. fc.Result = res
  113454. return ec.marshalNID2string(ctx, field.Selections, res)
  113455. }
  113456. func (ec *executionContext) fieldContext_SaleTax_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  113457. fc = &graphql.FieldContext{
  113458. Object: "SaleTax",
  113459. Field: field,
  113460. IsMethod: false,
  113461. IsResolver: false,
  113462. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  113463. return nil, errors.New("field of type ID does not have child fields")
  113464. },
  113465. }
  113466. return fc, nil
  113467. }
  113468. func (ec *executionContext) _SaleTax_taxLine(ctx context.Context, field graphql.CollectedField, obj *SaleTax) (ret graphql.Marshaler) {
  113469. fc, err := ec.fieldContext_SaleTax_taxLine(ctx, field)
  113470. if err != nil {
  113471. return graphql.Null
  113472. }
  113473. ctx = graphql.WithFieldContext(ctx, fc)
  113474. defer func() {
  113475. if r := recover(); r != nil {
  113476. ec.Error(ctx, ec.Recover(ctx, r))
  113477. ret = graphql.Null
  113478. }
  113479. }()
  113480. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  113481. ctx = rctx // use context from middleware stack in children
  113482. return obj.TaxLine, nil
  113483. })
  113484. if err != nil {
  113485. ec.Error(ctx, err)
  113486. return graphql.Null
  113487. }
  113488. if resTmp == nil {
  113489. if !graphql.HasFieldError(ctx, fc) {
  113490. ec.Errorf(ctx, "must not be null")
  113491. }
  113492. return graphql.Null
  113493. }
  113494. res := resTmp.(*TaxLine)
  113495. fc.Result = res
  113496. return ec.marshalNTaxLine2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐTaxLine(ctx, field.Selections, res)
  113497. }
  113498. func (ec *executionContext) fieldContext_SaleTax_taxLine(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  113499. fc = &graphql.FieldContext{
  113500. Object: "SaleTax",
  113501. Field: field,
  113502. IsMethod: false,
  113503. IsResolver: false,
  113504. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  113505. switch field.Name {
  113506. case "channelLiable":
  113507. return ec.fieldContext_TaxLine_channelLiable(ctx, field)
  113508. case "priceSet":
  113509. return ec.fieldContext_TaxLine_priceSet(ctx, field)
  113510. case "rate":
  113511. return ec.fieldContext_TaxLine_rate(ctx, field)
  113512. case "ratePercentage":
  113513. return ec.fieldContext_TaxLine_ratePercentage(ctx, field)
  113514. case "title":
  113515. return ec.fieldContext_TaxLine_title(ctx, field)
  113516. }
  113517. return nil, fmt.Errorf("no field named %q was found under type TaxLine", field.Name)
  113518. },
  113519. }
  113520. return fc, nil
  113521. }
  113522. func (ec *executionContext) _SalesAgreementConnection_edges(ctx context.Context, field graphql.CollectedField, obj *SalesAgreementConnection) (ret graphql.Marshaler) {
  113523. fc, err := ec.fieldContext_SalesAgreementConnection_edges(ctx, field)
  113524. if err != nil {
  113525. return graphql.Null
  113526. }
  113527. ctx = graphql.WithFieldContext(ctx, fc)
  113528. defer func() {
  113529. if r := recover(); r != nil {
  113530. ec.Error(ctx, ec.Recover(ctx, r))
  113531. ret = graphql.Null
  113532. }
  113533. }()
  113534. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  113535. ctx = rctx // use context from middleware stack in children
  113536. return obj.Edges, nil
  113537. })
  113538. if err != nil {
  113539. ec.Error(ctx, err)
  113540. return graphql.Null
  113541. }
  113542. if resTmp == nil {
  113543. if !graphql.HasFieldError(ctx, fc) {
  113544. ec.Errorf(ctx, "must not be null")
  113545. }
  113546. return graphql.Null
  113547. }
  113548. res := resTmp.([]*SalesAgreementEdge)
  113549. fc.Result = res
  113550. return ec.marshalNSalesAgreementEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSalesAgreementEdgeᚄ(ctx, field.Selections, res)
  113551. }
  113552. func (ec *executionContext) fieldContext_SalesAgreementConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  113553. fc = &graphql.FieldContext{
  113554. Object: "SalesAgreementConnection",
  113555. Field: field,
  113556. IsMethod: false,
  113557. IsResolver: false,
  113558. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  113559. switch field.Name {
  113560. case "cursor":
  113561. return ec.fieldContext_SalesAgreementEdge_cursor(ctx, field)
  113562. case "node":
  113563. return ec.fieldContext_SalesAgreementEdge_node(ctx, field)
  113564. }
  113565. return nil, fmt.Errorf("no field named %q was found under type SalesAgreementEdge", field.Name)
  113566. },
  113567. }
  113568. return fc, nil
  113569. }
  113570. func (ec *executionContext) _SalesAgreementConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *SalesAgreementConnection) (ret graphql.Marshaler) {
  113571. fc, err := ec.fieldContext_SalesAgreementConnection_nodes(ctx, field)
  113572. if err != nil {
  113573. return graphql.Null
  113574. }
  113575. ctx = graphql.WithFieldContext(ctx, fc)
  113576. defer func() {
  113577. if r := recover(); r != nil {
  113578. ec.Error(ctx, ec.Recover(ctx, r))
  113579. ret = graphql.Null
  113580. }
  113581. }()
  113582. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  113583. ctx = rctx // use context from middleware stack in children
  113584. return obj.Nodes, nil
  113585. })
  113586. if err != nil {
  113587. ec.Error(ctx, err)
  113588. return graphql.Null
  113589. }
  113590. if resTmp == nil {
  113591. if !graphql.HasFieldError(ctx, fc) {
  113592. ec.Errorf(ctx, "must not be null")
  113593. }
  113594. return graphql.Null
  113595. }
  113596. res := resTmp.([]SalesAgreement)
  113597. fc.Result = res
  113598. return ec.marshalNSalesAgreement2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSalesAgreementᚄ(ctx, field.Selections, res)
  113599. }
  113600. func (ec *executionContext) fieldContext_SalesAgreementConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  113601. fc = &graphql.FieldContext{
  113602. Object: "SalesAgreementConnection",
  113603. Field: field,
  113604. IsMethod: false,
  113605. IsResolver: false,
  113606. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  113607. return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
  113608. },
  113609. }
  113610. return fc, nil
  113611. }
  113612. func (ec *executionContext) _SalesAgreementConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *SalesAgreementConnection) (ret graphql.Marshaler) {
  113613. fc, err := ec.fieldContext_SalesAgreementConnection_pageInfo(ctx, field)
  113614. if err != nil {
  113615. return graphql.Null
  113616. }
  113617. ctx = graphql.WithFieldContext(ctx, fc)
  113618. defer func() {
  113619. if r := recover(); r != nil {
  113620. ec.Error(ctx, ec.Recover(ctx, r))
  113621. ret = graphql.Null
  113622. }
  113623. }()
  113624. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  113625. ctx = rctx // use context from middleware stack in children
  113626. return obj.PageInfo, nil
  113627. })
  113628. if err != nil {
  113629. ec.Error(ctx, err)
  113630. return graphql.Null
  113631. }
  113632. if resTmp == nil {
  113633. if !graphql.HasFieldError(ctx, fc) {
  113634. ec.Errorf(ctx, "must not be null")
  113635. }
  113636. return graphql.Null
  113637. }
  113638. res := resTmp.(*PageInfo)
  113639. fc.Result = res
  113640. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  113641. }
  113642. func (ec *executionContext) fieldContext_SalesAgreementConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  113643. fc = &graphql.FieldContext{
  113644. Object: "SalesAgreementConnection",
  113645. Field: field,
  113646. IsMethod: false,
  113647. IsResolver: false,
  113648. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  113649. switch field.Name {
  113650. case "endCursor":
  113651. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  113652. case "hasNextPage":
  113653. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  113654. case "hasPreviousPage":
  113655. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  113656. case "startCursor":
  113657. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  113658. }
  113659. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  113660. },
  113661. }
  113662. return fc, nil
  113663. }
  113664. func (ec *executionContext) _SalesAgreementEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *SalesAgreementEdge) (ret graphql.Marshaler) {
  113665. fc, err := ec.fieldContext_SalesAgreementEdge_cursor(ctx, field)
  113666. if err != nil {
  113667. return graphql.Null
  113668. }
  113669. ctx = graphql.WithFieldContext(ctx, fc)
  113670. defer func() {
  113671. if r := recover(); r != nil {
  113672. ec.Error(ctx, ec.Recover(ctx, r))
  113673. ret = graphql.Null
  113674. }
  113675. }()
  113676. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  113677. ctx = rctx // use context from middleware stack in children
  113678. return obj.Cursor, nil
  113679. })
  113680. if err != nil {
  113681. ec.Error(ctx, err)
  113682. return graphql.Null
  113683. }
  113684. if resTmp == nil {
  113685. if !graphql.HasFieldError(ctx, fc) {
  113686. ec.Errorf(ctx, "must not be null")
  113687. }
  113688. return graphql.Null
  113689. }
  113690. res := resTmp.(string)
  113691. fc.Result = res
  113692. return ec.marshalNString2string(ctx, field.Selections, res)
  113693. }
  113694. func (ec *executionContext) fieldContext_SalesAgreementEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  113695. fc = &graphql.FieldContext{
  113696. Object: "SalesAgreementEdge",
  113697. Field: field,
  113698. IsMethod: false,
  113699. IsResolver: false,
  113700. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  113701. return nil, errors.New("field of type String does not have child fields")
  113702. },
  113703. }
  113704. return fc, nil
  113705. }
  113706. func (ec *executionContext) _SalesAgreementEdge_node(ctx context.Context, field graphql.CollectedField, obj *SalesAgreementEdge) (ret graphql.Marshaler) {
  113707. fc, err := ec.fieldContext_SalesAgreementEdge_node(ctx, field)
  113708. if err != nil {
  113709. return graphql.Null
  113710. }
  113711. ctx = graphql.WithFieldContext(ctx, fc)
  113712. defer func() {
  113713. if r := recover(); r != nil {
  113714. ec.Error(ctx, ec.Recover(ctx, r))
  113715. ret = graphql.Null
  113716. }
  113717. }()
  113718. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  113719. ctx = rctx // use context from middleware stack in children
  113720. return obj.Node, nil
  113721. })
  113722. if err != nil {
  113723. ec.Error(ctx, err)
  113724. return graphql.Null
  113725. }
  113726. if resTmp == nil {
  113727. if !graphql.HasFieldError(ctx, fc) {
  113728. ec.Errorf(ctx, "must not be null")
  113729. }
  113730. return graphql.Null
  113731. }
  113732. res := resTmp.(SalesAgreement)
  113733. fc.Result = res
  113734. return ec.marshalNSalesAgreement2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSalesAgreement(ctx, field.Selections, res)
  113735. }
  113736. func (ec *executionContext) fieldContext_SalesAgreementEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  113737. fc = &graphql.FieldContext{
  113738. Object: "SalesAgreementEdge",
  113739. Field: field,
  113740. IsMethod: false,
  113741. IsResolver: false,
  113742. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  113743. return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
  113744. },
  113745. }
  113746. return fc, nil
  113747. }
  113748. func (ec *executionContext) _SavedSearch_filters(ctx context.Context, field graphql.CollectedField, obj *SavedSearch) (ret graphql.Marshaler) {
  113749. fc, err := ec.fieldContext_SavedSearch_filters(ctx, field)
  113750. if err != nil {
  113751. return graphql.Null
  113752. }
  113753. ctx = graphql.WithFieldContext(ctx, fc)
  113754. defer func() {
  113755. if r := recover(); r != nil {
  113756. ec.Error(ctx, ec.Recover(ctx, r))
  113757. ret = graphql.Null
  113758. }
  113759. }()
  113760. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  113761. ctx = rctx // use context from middleware stack in children
  113762. return obj.Filters, nil
  113763. })
  113764. if err != nil {
  113765. ec.Error(ctx, err)
  113766. return graphql.Null
  113767. }
  113768. if resTmp == nil {
  113769. if !graphql.HasFieldError(ctx, fc) {
  113770. ec.Errorf(ctx, "must not be null")
  113771. }
  113772. return graphql.Null
  113773. }
  113774. res := resTmp.([]*SearchFilter)
  113775. fc.Result = res
  113776. return ec.marshalNSearchFilter2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSearchFilterᚄ(ctx, field.Selections, res)
  113777. }
  113778. func (ec *executionContext) fieldContext_SavedSearch_filters(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  113779. fc = &graphql.FieldContext{
  113780. Object: "SavedSearch",
  113781. Field: field,
  113782. IsMethod: false,
  113783. IsResolver: false,
  113784. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  113785. switch field.Name {
  113786. case "key":
  113787. return ec.fieldContext_SearchFilter_key(ctx, field)
  113788. case "value":
  113789. return ec.fieldContext_SearchFilter_value(ctx, field)
  113790. }
  113791. return nil, fmt.Errorf("no field named %q was found under type SearchFilter", field.Name)
  113792. },
  113793. }
  113794. return fc, nil
  113795. }
  113796. func (ec *executionContext) _SavedSearch_id(ctx context.Context, field graphql.CollectedField, obj *SavedSearch) (ret graphql.Marshaler) {
  113797. fc, err := ec.fieldContext_SavedSearch_id(ctx, field)
  113798. if err != nil {
  113799. return graphql.Null
  113800. }
  113801. ctx = graphql.WithFieldContext(ctx, fc)
  113802. defer func() {
  113803. if r := recover(); r != nil {
  113804. ec.Error(ctx, ec.Recover(ctx, r))
  113805. ret = graphql.Null
  113806. }
  113807. }()
  113808. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  113809. ctx = rctx // use context from middleware stack in children
  113810. return obj.ID, nil
  113811. })
  113812. if err != nil {
  113813. ec.Error(ctx, err)
  113814. return graphql.Null
  113815. }
  113816. if resTmp == nil {
  113817. if !graphql.HasFieldError(ctx, fc) {
  113818. ec.Errorf(ctx, "must not be null")
  113819. }
  113820. return graphql.Null
  113821. }
  113822. res := resTmp.(string)
  113823. fc.Result = res
  113824. return ec.marshalNID2string(ctx, field.Selections, res)
  113825. }
  113826. func (ec *executionContext) fieldContext_SavedSearch_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  113827. fc = &graphql.FieldContext{
  113828. Object: "SavedSearch",
  113829. Field: field,
  113830. IsMethod: false,
  113831. IsResolver: false,
  113832. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  113833. return nil, errors.New("field of type ID does not have child fields")
  113834. },
  113835. }
  113836. return fc, nil
  113837. }
  113838. func (ec *executionContext) _SavedSearch_legacyResourceId(ctx context.Context, field graphql.CollectedField, obj *SavedSearch) (ret graphql.Marshaler) {
  113839. fc, err := ec.fieldContext_SavedSearch_legacyResourceId(ctx, field)
  113840. if err != nil {
  113841. return graphql.Null
  113842. }
  113843. ctx = graphql.WithFieldContext(ctx, fc)
  113844. defer func() {
  113845. if r := recover(); r != nil {
  113846. ec.Error(ctx, ec.Recover(ctx, r))
  113847. ret = graphql.Null
  113848. }
  113849. }()
  113850. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  113851. ctx = rctx // use context from middleware stack in children
  113852. return obj.LegacyResourceID, nil
  113853. })
  113854. if err != nil {
  113855. ec.Error(ctx, err)
  113856. return graphql.Null
  113857. }
  113858. if resTmp == nil {
  113859. if !graphql.HasFieldError(ctx, fc) {
  113860. ec.Errorf(ctx, "must not be null")
  113861. }
  113862. return graphql.Null
  113863. }
  113864. res := resTmp.(string)
  113865. fc.Result = res
  113866. return ec.marshalNUnsignedInt642string(ctx, field.Selections, res)
  113867. }
  113868. func (ec *executionContext) fieldContext_SavedSearch_legacyResourceId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  113869. fc = &graphql.FieldContext{
  113870. Object: "SavedSearch",
  113871. Field: field,
  113872. IsMethod: false,
  113873. IsResolver: false,
  113874. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  113875. return nil, errors.New("field of type UnsignedInt64 does not have child fields")
  113876. },
  113877. }
  113878. return fc, nil
  113879. }
  113880. func (ec *executionContext) _SavedSearch_name(ctx context.Context, field graphql.CollectedField, obj *SavedSearch) (ret graphql.Marshaler) {
  113881. fc, err := ec.fieldContext_SavedSearch_name(ctx, field)
  113882. if err != nil {
  113883. return graphql.Null
  113884. }
  113885. ctx = graphql.WithFieldContext(ctx, fc)
  113886. defer func() {
  113887. if r := recover(); r != nil {
  113888. ec.Error(ctx, ec.Recover(ctx, r))
  113889. ret = graphql.Null
  113890. }
  113891. }()
  113892. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  113893. ctx = rctx // use context from middleware stack in children
  113894. return obj.Name, nil
  113895. })
  113896. if err != nil {
  113897. ec.Error(ctx, err)
  113898. return graphql.Null
  113899. }
  113900. if resTmp == nil {
  113901. if !graphql.HasFieldError(ctx, fc) {
  113902. ec.Errorf(ctx, "must not be null")
  113903. }
  113904. return graphql.Null
  113905. }
  113906. res := resTmp.(string)
  113907. fc.Result = res
  113908. return ec.marshalNString2string(ctx, field.Selections, res)
  113909. }
  113910. func (ec *executionContext) fieldContext_SavedSearch_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  113911. fc = &graphql.FieldContext{
  113912. Object: "SavedSearch",
  113913. Field: field,
  113914. IsMethod: false,
  113915. IsResolver: false,
  113916. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  113917. return nil, errors.New("field of type String does not have child fields")
  113918. },
  113919. }
  113920. return fc, nil
  113921. }
  113922. func (ec *executionContext) _SavedSearch_query(ctx context.Context, field graphql.CollectedField, obj *SavedSearch) (ret graphql.Marshaler) {
  113923. fc, err := ec.fieldContext_SavedSearch_query(ctx, field)
  113924. if err != nil {
  113925. return graphql.Null
  113926. }
  113927. ctx = graphql.WithFieldContext(ctx, fc)
  113928. defer func() {
  113929. if r := recover(); r != nil {
  113930. ec.Error(ctx, ec.Recover(ctx, r))
  113931. ret = graphql.Null
  113932. }
  113933. }()
  113934. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  113935. ctx = rctx // use context from middleware stack in children
  113936. return obj.Query, nil
  113937. })
  113938. if err != nil {
  113939. ec.Error(ctx, err)
  113940. return graphql.Null
  113941. }
  113942. if resTmp == nil {
  113943. if !graphql.HasFieldError(ctx, fc) {
  113944. ec.Errorf(ctx, "must not be null")
  113945. }
  113946. return graphql.Null
  113947. }
  113948. res := resTmp.(string)
  113949. fc.Result = res
  113950. return ec.marshalNString2string(ctx, field.Selections, res)
  113951. }
  113952. func (ec *executionContext) fieldContext_SavedSearch_query(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  113953. fc = &graphql.FieldContext{
  113954. Object: "SavedSearch",
  113955. Field: field,
  113956. IsMethod: false,
  113957. IsResolver: false,
  113958. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  113959. return nil, errors.New("field of type String does not have child fields")
  113960. },
  113961. }
  113962. return fc, nil
  113963. }
  113964. func (ec *executionContext) _SavedSearch_resourceType(ctx context.Context, field graphql.CollectedField, obj *SavedSearch) (ret graphql.Marshaler) {
  113965. fc, err := ec.fieldContext_SavedSearch_resourceType(ctx, field)
  113966. if err != nil {
  113967. return graphql.Null
  113968. }
  113969. ctx = graphql.WithFieldContext(ctx, fc)
  113970. defer func() {
  113971. if r := recover(); r != nil {
  113972. ec.Error(ctx, ec.Recover(ctx, r))
  113973. ret = graphql.Null
  113974. }
  113975. }()
  113976. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  113977. ctx = rctx // use context from middleware stack in children
  113978. return obj.ResourceType, nil
  113979. })
  113980. if err != nil {
  113981. ec.Error(ctx, err)
  113982. return graphql.Null
  113983. }
  113984. if resTmp == nil {
  113985. if !graphql.HasFieldError(ctx, fc) {
  113986. ec.Errorf(ctx, "must not be null")
  113987. }
  113988. return graphql.Null
  113989. }
  113990. res := resTmp.(SearchResultType)
  113991. fc.Result = res
  113992. return ec.marshalNSearchResultType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSearchResultType(ctx, field.Selections, res)
  113993. }
  113994. func (ec *executionContext) fieldContext_SavedSearch_resourceType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  113995. fc = &graphql.FieldContext{
  113996. Object: "SavedSearch",
  113997. Field: field,
  113998. IsMethod: false,
  113999. IsResolver: false,
  114000. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  114001. return nil, errors.New("field of type SearchResultType does not have child fields")
  114002. },
  114003. }
  114004. return fc, nil
  114005. }
  114006. func (ec *executionContext) _SavedSearch_searchTerms(ctx context.Context, field graphql.CollectedField, obj *SavedSearch) (ret graphql.Marshaler) {
  114007. fc, err := ec.fieldContext_SavedSearch_searchTerms(ctx, field)
  114008. if err != nil {
  114009. return graphql.Null
  114010. }
  114011. ctx = graphql.WithFieldContext(ctx, fc)
  114012. defer func() {
  114013. if r := recover(); r != nil {
  114014. ec.Error(ctx, ec.Recover(ctx, r))
  114015. ret = graphql.Null
  114016. }
  114017. }()
  114018. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  114019. ctx = rctx // use context from middleware stack in children
  114020. return obj.SearchTerms, nil
  114021. })
  114022. if err != nil {
  114023. ec.Error(ctx, err)
  114024. return graphql.Null
  114025. }
  114026. if resTmp == nil {
  114027. if !graphql.HasFieldError(ctx, fc) {
  114028. ec.Errorf(ctx, "must not be null")
  114029. }
  114030. return graphql.Null
  114031. }
  114032. res := resTmp.(string)
  114033. fc.Result = res
  114034. return ec.marshalNString2string(ctx, field.Selections, res)
  114035. }
  114036. func (ec *executionContext) fieldContext_SavedSearch_searchTerms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  114037. fc = &graphql.FieldContext{
  114038. Object: "SavedSearch",
  114039. Field: field,
  114040. IsMethod: false,
  114041. IsResolver: false,
  114042. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  114043. return nil, errors.New("field of type String does not have child fields")
  114044. },
  114045. }
  114046. return fc, nil
  114047. }
  114048. func (ec *executionContext) _SavedSearchConnection_edges(ctx context.Context, field graphql.CollectedField, obj *SavedSearchConnection) (ret graphql.Marshaler) {
  114049. fc, err := ec.fieldContext_SavedSearchConnection_edges(ctx, field)
  114050. if err != nil {
  114051. return graphql.Null
  114052. }
  114053. ctx = graphql.WithFieldContext(ctx, fc)
  114054. defer func() {
  114055. if r := recover(); r != nil {
  114056. ec.Error(ctx, ec.Recover(ctx, r))
  114057. ret = graphql.Null
  114058. }
  114059. }()
  114060. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  114061. ctx = rctx // use context from middleware stack in children
  114062. return obj.Edges, nil
  114063. })
  114064. if err != nil {
  114065. ec.Error(ctx, err)
  114066. return graphql.Null
  114067. }
  114068. if resTmp == nil {
  114069. if !graphql.HasFieldError(ctx, fc) {
  114070. ec.Errorf(ctx, "must not be null")
  114071. }
  114072. return graphql.Null
  114073. }
  114074. res := resTmp.([]*SavedSearchEdge)
  114075. fc.Result = res
  114076. return ec.marshalNSavedSearchEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSavedSearchEdgeᚄ(ctx, field.Selections, res)
  114077. }
  114078. func (ec *executionContext) fieldContext_SavedSearchConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  114079. fc = &graphql.FieldContext{
  114080. Object: "SavedSearchConnection",
  114081. Field: field,
  114082. IsMethod: false,
  114083. IsResolver: false,
  114084. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  114085. switch field.Name {
  114086. case "cursor":
  114087. return ec.fieldContext_SavedSearchEdge_cursor(ctx, field)
  114088. case "node":
  114089. return ec.fieldContext_SavedSearchEdge_node(ctx, field)
  114090. }
  114091. return nil, fmt.Errorf("no field named %q was found under type SavedSearchEdge", field.Name)
  114092. },
  114093. }
  114094. return fc, nil
  114095. }
  114096. func (ec *executionContext) _SavedSearchConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *SavedSearchConnection) (ret graphql.Marshaler) {
  114097. fc, err := ec.fieldContext_SavedSearchConnection_nodes(ctx, field)
  114098. if err != nil {
  114099. return graphql.Null
  114100. }
  114101. ctx = graphql.WithFieldContext(ctx, fc)
  114102. defer func() {
  114103. if r := recover(); r != nil {
  114104. ec.Error(ctx, ec.Recover(ctx, r))
  114105. ret = graphql.Null
  114106. }
  114107. }()
  114108. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  114109. ctx = rctx // use context from middleware stack in children
  114110. return obj.Nodes, nil
  114111. })
  114112. if err != nil {
  114113. ec.Error(ctx, err)
  114114. return graphql.Null
  114115. }
  114116. if resTmp == nil {
  114117. if !graphql.HasFieldError(ctx, fc) {
  114118. ec.Errorf(ctx, "must not be null")
  114119. }
  114120. return graphql.Null
  114121. }
  114122. res := resTmp.([]*SavedSearch)
  114123. fc.Result = res
  114124. return ec.marshalNSavedSearch2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSavedSearchᚄ(ctx, field.Selections, res)
  114125. }
  114126. func (ec *executionContext) fieldContext_SavedSearchConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  114127. fc = &graphql.FieldContext{
  114128. Object: "SavedSearchConnection",
  114129. Field: field,
  114130. IsMethod: false,
  114131. IsResolver: false,
  114132. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  114133. switch field.Name {
  114134. case "filters":
  114135. return ec.fieldContext_SavedSearch_filters(ctx, field)
  114136. case "id":
  114137. return ec.fieldContext_SavedSearch_id(ctx, field)
  114138. case "legacyResourceId":
  114139. return ec.fieldContext_SavedSearch_legacyResourceId(ctx, field)
  114140. case "name":
  114141. return ec.fieldContext_SavedSearch_name(ctx, field)
  114142. case "query":
  114143. return ec.fieldContext_SavedSearch_query(ctx, field)
  114144. case "resourceType":
  114145. return ec.fieldContext_SavedSearch_resourceType(ctx, field)
  114146. case "searchTerms":
  114147. return ec.fieldContext_SavedSearch_searchTerms(ctx, field)
  114148. }
  114149. return nil, fmt.Errorf("no field named %q was found under type SavedSearch", field.Name)
  114150. },
  114151. }
  114152. return fc, nil
  114153. }
  114154. func (ec *executionContext) _SavedSearchConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *SavedSearchConnection) (ret graphql.Marshaler) {
  114155. fc, err := ec.fieldContext_SavedSearchConnection_pageInfo(ctx, field)
  114156. if err != nil {
  114157. return graphql.Null
  114158. }
  114159. ctx = graphql.WithFieldContext(ctx, fc)
  114160. defer func() {
  114161. if r := recover(); r != nil {
  114162. ec.Error(ctx, ec.Recover(ctx, r))
  114163. ret = graphql.Null
  114164. }
  114165. }()
  114166. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  114167. ctx = rctx // use context from middleware stack in children
  114168. return obj.PageInfo, nil
  114169. })
  114170. if err != nil {
  114171. ec.Error(ctx, err)
  114172. return graphql.Null
  114173. }
  114174. if resTmp == nil {
  114175. if !graphql.HasFieldError(ctx, fc) {
  114176. ec.Errorf(ctx, "must not be null")
  114177. }
  114178. return graphql.Null
  114179. }
  114180. res := resTmp.(*PageInfo)
  114181. fc.Result = res
  114182. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  114183. }
  114184. func (ec *executionContext) fieldContext_SavedSearchConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  114185. fc = &graphql.FieldContext{
  114186. Object: "SavedSearchConnection",
  114187. Field: field,
  114188. IsMethod: false,
  114189. IsResolver: false,
  114190. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  114191. switch field.Name {
  114192. case "endCursor":
  114193. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  114194. case "hasNextPage":
  114195. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  114196. case "hasPreviousPage":
  114197. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  114198. case "startCursor":
  114199. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  114200. }
  114201. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  114202. },
  114203. }
  114204. return fc, nil
  114205. }
  114206. func (ec *executionContext) _SavedSearchEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *SavedSearchEdge) (ret graphql.Marshaler) {
  114207. fc, err := ec.fieldContext_SavedSearchEdge_cursor(ctx, field)
  114208. if err != nil {
  114209. return graphql.Null
  114210. }
  114211. ctx = graphql.WithFieldContext(ctx, fc)
  114212. defer func() {
  114213. if r := recover(); r != nil {
  114214. ec.Error(ctx, ec.Recover(ctx, r))
  114215. ret = graphql.Null
  114216. }
  114217. }()
  114218. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  114219. ctx = rctx // use context from middleware stack in children
  114220. return obj.Cursor, nil
  114221. })
  114222. if err != nil {
  114223. ec.Error(ctx, err)
  114224. return graphql.Null
  114225. }
  114226. if resTmp == nil {
  114227. if !graphql.HasFieldError(ctx, fc) {
  114228. ec.Errorf(ctx, "must not be null")
  114229. }
  114230. return graphql.Null
  114231. }
  114232. res := resTmp.(string)
  114233. fc.Result = res
  114234. return ec.marshalNString2string(ctx, field.Selections, res)
  114235. }
  114236. func (ec *executionContext) fieldContext_SavedSearchEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  114237. fc = &graphql.FieldContext{
  114238. Object: "SavedSearchEdge",
  114239. Field: field,
  114240. IsMethod: false,
  114241. IsResolver: false,
  114242. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  114243. return nil, errors.New("field of type String does not have child fields")
  114244. },
  114245. }
  114246. return fc, nil
  114247. }
  114248. func (ec *executionContext) _SavedSearchEdge_node(ctx context.Context, field graphql.CollectedField, obj *SavedSearchEdge) (ret graphql.Marshaler) {
  114249. fc, err := ec.fieldContext_SavedSearchEdge_node(ctx, field)
  114250. if err != nil {
  114251. return graphql.Null
  114252. }
  114253. ctx = graphql.WithFieldContext(ctx, fc)
  114254. defer func() {
  114255. if r := recover(); r != nil {
  114256. ec.Error(ctx, ec.Recover(ctx, r))
  114257. ret = graphql.Null
  114258. }
  114259. }()
  114260. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  114261. ctx = rctx // use context from middleware stack in children
  114262. return obj.Node, nil
  114263. })
  114264. if err != nil {
  114265. ec.Error(ctx, err)
  114266. return graphql.Null
  114267. }
  114268. if resTmp == nil {
  114269. if !graphql.HasFieldError(ctx, fc) {
  114270. ec.Errorf(ctx, "must not be null")
  114271. }
  114272. return graphql.Null
  114273. }
  114274. res := resTmp.(*SavedSearch)
  114275. fc.Result = res
  114276. return ec.marshalNSavedSearch2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSavedSearch(ctx, field.Selections, res)
  114277. }
  114278. func (ec *executionContext) fieldContext_SavedSearchEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  114279. fc = &graphql.FieldContext{
  114280. Object: "SavedSearchEdge",
  114281. Field: field,
  114282. IsMethod: false,
  114283. IsResolver: false,
  114284. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  114285. switch field.Name {
  114286. case "filters":
  114287. return ec.fieldContext_SavedSearch_filters(ctx, field)
  114288. case "id":
  114289. return ec.fieldContext_SavedSearch_id(ctx, field)
  114290. case "legacyResourceId":
  114291. return ec.fieldContext_SavedSearch_legacyResourceId(ctx, field)
  114292. case "name":
  114293. return ec.fieldContext_SavedSearch_name(ctx, field)
  114294. case "query":
  114295. return ec.fieldContext_SavedSearch_query(ctx, field)
  114296. case "resourceType":
  114297. return ec.fieldContext_SavedSearch_resourceType(ctx, field)
  114298. case "searchTerms":
  114299. return ec.fieldContext_SavedSearch_searchTerms(ctx, field)
  114300. }
  114301. return nil, fmt.Errorf("no field named %q was found under type SavedSearch", field.Name)
  114302. },
  114303. }
  114304. return fc, nil
  114305. }
  114306. func (ec *executionContext) _ScriptDiscountApplication_allocationMethod(ctx context.Context, field graphql.CollectedField, obj *ScriptDiscountApplication) (ret graphql.Marshaler) {
  114307. fc, err := ec.fieldContext_ScriptDiscountApplication_allocationMethod(ctx, field)
  114308. if err != nil {
  114309. return graphql.Null
  114310. }
  114311. ctx = graphql.WithFieldContext(ctx, fc)
  114312. defer func() {
  114313. if r := recover(); r != nil {
  114314. ec.Error(ctx, ec.Recover(ctx, r))
  114315. ret = graphql.Null
  114316. }
  114317. }()
  114318. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  114319. ctx = rctx // use context from middleware stack in children
  114320. return obj.AllocationMethod, nil
  114321. })
  114322. if err != nil {
  114323. ec.Error(ctx, err)
  114324. return graphql.Null
  114325. }
  114326. if resTmp == nil {
  114327. if !graphql.HasFieldError(ctx, fc) {
  114328. ec.Errorf(ctx, "must not be null")
  114329. }
  114330. return graphql.Null
  114331. }
  114332. res := resTmp.(DiscountApplicationAllocationMethod)
  114333. fc.Result = res
  114334. return ec.marshalNDiscountApplicationAllocationMethod2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplicationAllocationMethod(ctx, field.Selections, res)
  114335. }
  114336. func (ec *executionContext) fieldContext_ScriptDiscountApplication_allocationMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  114337. fc = &graphql.FieldContext{
  114338. Object: "ScriptDiscountApplication",
  114339. Field: field,
  114340. IsMethod: false,
  114341. IsResolver: false,
  114342. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  114343. return nil, errors.New("field of type DiscountApplicationAllocationMethod does not have child fields")
  114344. },
  114345. }
  114346. return fc, nil
  114347. }
  114348. func (ec *executionContext) _ScriptDiscountApplication_index(ctx context.Context, field graphql.CollectedField, obj *ScriptDiscountApplication) (ret graphql.Marshaler) {
  114349. fc, err := ec.fieldContext_ScriptDiscountApplication_index(ctx, field)
  114350. if err != nil {
  114351. return graphql.Null
  114352. }
  114353. ctx = graphql.WithFieldContext(ctx, fc)
  114354. defer func() {
  114355. if r := recover(); r != nil {
  114356. ec.Error(ctx, ec.Recover(ctx, r))
  114357. ret = graphql.Null
  114358. }
  114359. }()
  114360. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  114361. ctx = rctx // use context from middleware stack in children
  114362. return obj.Index, nil
  114363. })
  114364. if err != nil {
  114365. ec.Error(ctx, err)
  114366. return graphql.Null
  114367. }
  114368. if resTmp == nil {
  114369. if !graphql.HasFieldError(ctx, fc) {
  114370. ec.Errorf(ctx, "must not be null")
  114371. }
  114372. return graphql.Null
  114373. }
  114374. res := resTmp.(int)
  114375. fc.Result = res
  114376. return ec.marshalNInt2int(ctx, field.Selections, res)
  114377. }
  114378. func (ec *executionContext) fieldContext_ScriptDiscountApplication_index(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  114379. fc = &graphql.FieldContext{
  114380. Object: "ScriptDiscountApplication",
  114381. Field: field,
  114382. IsMethod: false,
  114383. IsResolver: false,
  114384. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  114385. return nil, errors.New("field of type Int does not have child fields")
  114386. },
  114387. }
  114388. return fc, nil
  114389. }
  114390. func (ec *executionContext) _ScriptDiscountApplication_targetSelection(ctx context.Context, field graphql.CollectedField, obj *ScriptDiscountApplication) (ret graphql.Marshaler) {
  114391. fc, err := ec.fieldContext_ScriptDiscountApplication_targetSelection(ctx, field)
  114392. if err != nil {
  114393. return graphql.Null
  114394. }
  114395. ctx = graphql.WithFieldContext(ctx, fc)
  114396. defer func() {
  114397. if r := recover(); r != nil {
  114398. ec.Error(ctx, ec.Recover(ctx, r))
  114399. ret = graphql.Null
  114400. }
  114401. }()
  114402. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  114403. ctx = rctx // use context from middleware stack in children
  114404. return obj.TargetSelection, nil
  114405. })
  114406. if err != nil {
  114407. ec.Error(ctx, err)
  114408. return graphql.Null
  114409. }
  114410. if resTmp == nil {
  114411. if !graphql.HasFieldError(ctx, fc) {
  114412. ec.Errorf(ctx, "must not be null")
  114413. }
  114414. return graphql.Null
  114415. }
  114416. res := resTmp.(DiscountApplicationTargetSelection)
  114417. fc.Result = res
  114418. return ec.marshalNDiscountApplicationTargetSelection2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplicationTargetSelection(ctx, field.Selections, res)
  114419. }
  114420. func (ec *executionContext) fieldContext_ScriptDiscountApplication_targetSelection(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  114421. fc = &graphql.FieldContext{
  114422. Object: "ScriptDiscountApplication",
  114423. Field: field,
  114424. IsMethod: false,
  114425. IsResolver: false,
  114426. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  114427. return nil, errors.New("field of type DiscountApplicationTargetSelection does not have child fields")
  114428. },
  114429. }
  114430. return fc, nil
  114431. }
  114432. func (ec *executionContext) _ScriptDiscountApplication_targetType(ctx context.Context, field graphql.CollectedField, obj *ScriptDiscountApplication) (ret graphql.Marshaler) {
  114433. fc, err := ec.fieldContext_ScriptDiscountApplication_targetType(ctx, field)
  114434. if err != nil {
  114435. return graphql.Null
  114436. }
  114437. ctx = graphql.WithFieldContext(ctx, fc)
  114438. defer func() {
  114439. if r := recover(); r != nil {
  114440. ec.Error(ctx, ec.Recover(ctx, r))
  114441. ret = graphql.Null
  114442. }
  114443. }()
  114444. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  114445. ctx = rctx // use context from middleware stack in children
  114446. return obj.TargetType, nil
  114447. })
  114448. if err != nil {
  114449. ec.Error(ctx, err)
  114450. return graphql.Null
  114451. }
  114452. if resTmp == nil {
  114453. if !graphql.HasFieldError(ctx, fc) {
  114454. ec.Errorf(ctx, "must not be null")
  114455. }
  114456. return graphql.Null
  114457. }
  114458. res := resTmp.(DiscountApplicationTargetType)
  114459. fc.Result = res
  114460. return ec.marshalNDiscountApplicationTargetType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplicationTargetType(ctx, field.Selections, res)
  114461. }
  114462. func (ec *executionContext) fieldContext_ScriptDiscountApplication_targetType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  114463. fc = &graphql.FieldContext{
  114464. Object: "ScriptDiscountApplication",
  114465. Field: field,
  114466. IsMethod: false,
  114467. IsResolver: false,
  114468. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  114469. return nil, errors.New("field of type DiscountApplicationTargetType does not have child fields")
  114470. },
  114471. }
  114472. return fc, nil
  114473. }
  114474. func (ec *executionContext) _ScriptDiscountApplication_title(ctx context.Context, field graphql.CollectedField, obj *ScriptDiscountApplication) (ret graphql.Marshaler) {
  114475. fc, err := ec.fieldContext_ScriptDiscountApplication_title(ctx, field)
  114476. if err != nil {
  114477. return graphql.Null
  114478. }
  114479. ctx = graphql.WithFieldContext(ctx, fc)
  114480. defer func() {
  114481. if r := recover(); r != nil {
  114482. ec.Error(ctx, ec.Recover(ctx, r))
  114483. ret = graphql.Null
  114484. }
  114485. }()
  114486. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  114487. ctx = rctx // use context from middleware stack in children
  114488. return obj.Title, nil
  114489. })
  114490. if err != nil {
  114491. ec.Error(ctx, err)
  114492. return graphql.Null
  114493. }
  114494. if resTmp == nil {
  114495. if !graphql.HasFieldError(ctx, fc) {
  114496. ec.Errorf(ctx, "must not be null")
  114497. }
  114498. return graphql.Null
  114499. }
  114500. res := resTmp.(string)
  114501. fc.Result = res
  114502. return ec.marshalNString2string(ctx, field.Selections, res)
  114503. }
  114504. func (ec *executionContext) fieldContext_ScriptDiscountApplication_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  114505. fc = &graphql.FieldContext{
  114506. Object: "ScriptDiscountApplication",
  114507. Field: field,
  114508. IsMethod: false,
  114509. IsResolver: false,
  114510. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  114511. return nil, errors.New("field of type String does not have child fields")
  114512. },
  114513. }
  114514. return fc, nil
  114515. }
  114516. func (ec *executionContext) _ScriptDiscountApplication_value(ctx context.Context, field graphql.CollectedField, obj *ScriptDiscountApplication) (ret graphql.Marshaler) {
  114517. fc, err := ec.fieldContext_ScriptDiscountApplication_value(ctx, field)
  114518. if err != nil {
  114519. return graphql.Null
  114520. }
  114521. ctx = graphql.WithFieldContext(ctx, fc)
  114522. defer func() {
  114523. if r := recover(); r != nil {
  114524. ec.Error(ctx, ec.Recover(ctx, r))
  114525. ret = graphql.Null
  114526. }
  114527. }()
  114528. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  114529. ctx = rctx // use context from middleware stack in children
  114530. return obj.Value, nil
  114531. })
  114532. if err != nil {
  114533. ec.Error(ctx, err)
  114534. return graphql.Null
  114535. }
  114536. if resTmp == nil {
  114537. if !graphql.HasFieldError(ctx, fc) {
  114538. ec.Errorf(ctx, "must not be null")
  114539. }
  114540. return graphql.Null
  114541. }
  114542. res := resTmp.(PricingValue)
  114543. fc.Result = res
  114544. return ec.marshalNPricingValue2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPricingValue(ctx, field.Selections, res)
  114545. }
  114546. func (ec *executionContext) fieldContext_ScriptDiscountApplication_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  114547. fc = &graphql.FieldContext{
  114548. Object: "ScriptDiscountApplication",
  114549. Field: field,
  114550. IsMethod: false,
  114551. IsResolver: false,
  114552. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  114553. return nil, errors.New("field of type PricingValue does not have child fields")
  114554. },
  114555. }
  114556. return fc, nil
  114557. }
  114558. func (ec *executionContext) _SearchFilter_key(ctx context.Context, field graphql.CollectedField, obj *SearchFilter) (ret graphql.Marshaler) {
  114559. fc, err := ec.fieldContext_SearchFilter_key(ctx, field)
  114560. if err != nil {
  114561. return graphql.Null
  114562. }
  114563. ctx = graphql.WithFieldContext(ctx, fc)
  114564. defer func() {
  114565. if r := recover(); r != nil {
  114566. ec.Error(ctx, ec.Recover(ctx, r))
  114567. ret = graphql.Null
  114568. }
  114569. }()
  114570. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  114571. ctx = rctx // use context from middleware stack in children
  114572. return obj.Key, nil
  114573. })
  114574. if err != nil {
  114575. ec.Error(ctx, err)
  114576. return graphql.Null
  114577. }
  114578. if resTmp == nil {
  114579. if !graphql.HasFieldError(ctx, fc) {
  114580. ec.Errorf(ctx, "must not be null")
  114581. }
  114582. return graphql.Null
  114583. }
  114584. res := resTmp.(string)
  114585. fc.Result = res
  114586. return ec.marshalNString2string(ctx, field.Selections, res)
  114587. }
  114588. func (ec *executionContext) fieldContext_SearchFilter_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  114589. fc = &graphql.FieldContext{
  114590. Object: "SearchFilter",
  114591. Field: field,
  114592. IsMethod: false,
  114593. IsResolver: false,
  114594. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  114595. return nil, errors.New("field of type String does not have child fields")
  114596. },
  114597. }
  114598. return fc, nil
  114599. }
  114600. func (ec *executionContext) _SearchFilter_value(ctx context.Context, field graphql.CollectedField, obj *SearchFilter) (ret graphql.Marshaler) {
  114601. fc, err := ec.fieldContext_SearchFilter_value(ctx, field)
  114602. if err != nil {
  114603. return graphql.Null
  114604. }
  114605. ctx = graphql.WithFieldContext(ctx, fc)
  114606. defer func() {
  114607. if r := recover(); r != nil {
  114608. ec.Error(ctx, ec.Recover(ctx, r))
  114609. ret = graphql.Null
  114610. }
  114611. }()
  114612. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  114613. ctx = rctx // use context from middleware stack in children
  114614. return obj.Value, nil
  114615. })
  114616. if err != nil {
  114617. ec.Error(ctx, err)
  114618. return graphql.Null
  114619. }
  114620. if resTmp == nil {
  114621. if !graphql.HasFieldError(ctx, fc) {
  114622. ec.Errorf(ctx, "must not be null")
  114623. }
  114624. return graphql.Null
  114625. }
  114626. res := resTmp.(string)
  114627. fc.Result = res
  114628. return ec.marshalNString2string(ctx, field.Selections, res)
  114629. }
  114630. func (ec *executionContext) fieldContext_SearchFilter_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  114631. fc = &graphql.FieldContext{
  114632. Object: "SearchFilter",
  114633. Field: field,
  114634. IsMethod: false,
  114635. IsResolver: false,
  114636. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  114637. return nil, errors.New("field of type String does not have child fields")
  114638. },
  114639. }
  114640. return fc, nil
  114641. }
  114642. func (ec *executionContext) _SearchFilterOptions_productAvailability(ctx context.Context, field graphql.CollectedField, obj *SearchFilterOptions) (ret graphql.Marshaler) {
  114643. fc, err := ec.fieldContext_SearchFilterOptions_productAvailability(ctx, field)
  114644. if err != nil {
  114645. return graphql.Null
  114646. }
  114647. ctx = graphql.WithFieldContext(ctx, fc)
  114648. defer func() {
  114649. if r := recover(); r != nil {
  114650. ec.Error(ctx, ec.Recover(ctx, r))
  114651. ret = graphql.Null
  114652. }
  114653. }()
  114654. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  114655. ctx = rctx // use context from middleware stack in children
  114656. return obj.ProductAvailability, nil
  114657. })
  114658. if err != nil {
  114659. ec.Error(ctx, err)
  114660. return graphql.Null
  114661. }
  114662. if resTmp == nil {
  114663. if !graphql.HasFieldError(ctx, fc) {
  114664. ec.Errorf(ctx, "must not be null")
  114665. }
  114666. return graphql.Null
  114667. }
  114668. res := resTmp.([]*FilterOption)
  114669. fc.Result = res
  114670. return ec.marshalNFilterOption2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFilterOptionᚄ(ctx, field.Selections, res)
  114671. }
  114672. func (ec *executionContext) fieldContext_SearchFilterOptions_productAvailability(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  114673. fc = &graphql.FieldContext{
  114674. Object: "SearchFilterOptions",
  114675. Field: field,
  114676. IsMethod: false,
  114677. IsResolver: false,
  114678. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  114679. switch field.Name {
  114680. case "label":
  114681. return ec.fieldContext_FilterOption_label(ctx, field)
  114682. case "value":
  114683. return ec.fieldContext_FilterOption_value(ctx, field)
  114684. }
  114685. return nil, fmt.Errorf("no field named %q was found under type FilterOption", field.Name)
  114686. },
  114687. }
  114688. return fc, nil
  114689. }
  114690. func (ec *executionContext) _SearchResult_description(ctx context.Context, field graphql.CollectedField, obj *SearchResult) (ret graphql.Marshaler) {
  114691. fc, err := ec.fieldContext_SearchResult_description(ctx, field)
  114692. if err != nil {
  114693. return graphql.Null
  114694. }
  114695. ctx = graphql.WithFieldContext(ctx, fc)
  114696. defer func() {
  114697. if r := recover(); r != nil {
  114698. ec.Error(ctx, ec.Recover(ctx, r))
  114699. ret = graphql.Null
  114700. }
  114701. }()
  114702. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  114703. ctx = rctx // use context from middleware stack in children
  114704. return obj.Description, nil
  114705. })
  114706. if err != nil {
  114707. ec.Error(ctx, err)
  114708. return graphql.Null
  114709. }
  114710. if resTmp == nil {
  114711. return graphql.Null
  114712. }
  114713. res := resTmp.(*string)
  114714. fc.Result = res
  114715. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  114716. }
  114717. func (ec *executionContext) fieldContext_SearchResult_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  114718. fc = &graphql.FieldContext{
  114719. Object: "SearchResult",
  114720. Field: field,
  114721. IsMethod: false,
  114722. IsResolver: false,
  114723. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  114724. return nil, errors.New("field of type String does not have child fields")
  114725. },
  114726. }
  114727. return fc, nil
  114728. }
  114729. func (ec *executionContext) _SearchResult_image(ctx context.Context, field graphql.CollectedField, obj *SearchResult) (ret graphql.Marshaler) {
  114730. fc, err := ec.fieldContext_SearchResult_image(ctx, field)
  114731. if err != nil {
  114732. return graphql.Null
  114733. }
  114734. ctx = graphql.WithFieldContext(ctx, fc)
  114735. defer func() {
  114736. if r := recover(); r != nil {
  114737. ec.Error(ctx, ec.Recover(ctx, r))
  114738. ret = graphql.Null
  114739. }
  114740. }()
  114741. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  114742. ctx = rctx // use context from middleware stack in children
  114743. return obj.Image, nil
  114744. })
  114745. if err != nil {
  114746. ec.Error(ctx, err)
  114747. return graphql.Null
  114748. }
  114749. if resTmp == nil {
  114750. return graphql.Null
  114751. }
  114752. res := resTmp.(*Image)
  114753. fc.Result = res
  114754. return ec.marshalOImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImage(ctx, field.Selections, res)
  114755. }
  114756. func (ec *executionContext) fieldContext_SearchResult_image(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  114757. fc = &graphql.FieldContext{
  114758. Object: "SearchResult",
  114759. Field: field,
  114760. IsMethod: false,
  114761. IsResolver: false,
  114762. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  114763. switch field.Name {
  114764. case "altText":
  114765. return ec.fieldContext_Image_altText(ctx, field)
  114766. case "height":
  114767. return ec.fieldContext_Image_height(ctx, field)
  114768. case "id":
  114769. return ec.fieldContext_Image_id(ctx, field)
  114770. case "metafield":
  114771. return ec.fieldContext_Image_metafield(ctx, field)
  114772. case "metafields":
  114773. return ec.fieldContext_Image_metafields(ctx, field)
  114774. case "privateMetafield":
  114775. return ec.fieldContext_Image_privateMetafield(ctx, field)
  114776. case "privateMetafields":
  114777. return ec.fieldContext_Image_privateMetafields(ctx, field)
  114778. case "url":
  114779. return ec.fieldContext_Image_url(ctx, field)
  114780. case "width":
  114781. return ec.fieldContext_Image_width(ctx, field)
  114782. }
  114783. return nil, fmt.Errorf("no field named %q was found under type Image", field.Name)
  114784. },
  114785. }
  114786. return fc, nil
  114787. }
  114788. func (ec *executionContext) _SearchResult_reference(ctx context.Context, field graphql.CollectedField, obj *SearchResult) (ret graphql.Marshaler) {
  114789. fc, err := ec.fieldContext_SearchResult_reference(ctx, field)
  114790. if err != nil {
  114791. return graphql.Null
  114792. }
  114793. ctx = graphql.WithFieldContext(ctx, fc)
  114794. defer func() {
  114795. if r := recover(); r != nil {
  114796. ec.Error(ctx, ec.Recover(ctx, r))
  114797. ret = graphql.Null
  114798. }
  114799. }()
  114800. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  114801. ctx = rctx // use context from middleware stack in children
  114802. return obj.Reference, nil
  114803. })
  114804. if err != nil {
  114805. ec.Error(ctx, err)
  114806. return graphql.Null
  114807. }
  114808. if resTmp == nil {
  114809. if !graphql.HasFieldError(ctx, fc) {
  114810. ec.Errorf(ctx, "must not be null")
  114811. }
  114812. return graphql.Null
  114813. }
  114814. res := resTmp.(Node)
  114815. fc.Result = res
  114816. return ec.marshalNNode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐNode(ctx, field.Selections, res)
  114817. }
  114818. func (ec *executionContext) fieldContext_SearchResult_reference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  114819. fc = &graphql.FieldContext{
  114820. Object: "SearchResult",
  114821. Field: field,
  114822. IsMethod: false,
  114823. IsResolver: false,
  114824. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  114825. return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
  114826. },
  114827. }
  114828. return fc, nil
  114829. }
  114830. func (ec *executionContext) _SearchResult_title(ctx context.Context, field graphql.CollectedField, obj *SearchResult) (ret graphql.Marshaler) {
  114831. fc, err := ec.fieldContext_SearchResult_title(ctx, field)
  114832. if err != nil {
  114833. return graphql.Null
  114834. }
  114835. ctx = graphql.WithFieldContext(ctx, fc)
  114836. defer func() {
  114837. if r := recover(); r != nil {
  114838. ec.Error(ctx, ec.Recover(ctx, r))
  114839. ret = graphql.Null
  114840. }
  114841. }()
  114842. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  114843. ctx = rctx // use context from middleware stack in children
  114844. return obj.Title, nil
  114845. })
  114846. if err != nil {
  114847. ec.Error(ctx, err)
  114848. return graphql.Null
  114849. }
  114850. if resTmp == nil {
  114851. if !graphql.HasFieldError(ctx, fc) {
  114852. ec.Errorf(ctx, "must not be null")
  114853. }
  114854. return graphql.Null
  114855. }
  114856. res := resTmp.(string)
  114857. fc.Result = res
  114858. return ec.marshalNString2string(ctx, field.Selections, res)
  114859. }
  114860. func (ec *executionContext) fieldContext_SearchResult_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  114861. fc = &graphql.FieldContext{
  114862. Object: "SearchResult",
  114863. Field: field,
  114864. IsMethod: false,
  114865. IsResolver: false,
  114866. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  114867. return nil, errors.New("field of type String does not have child fields")
  114868. },
  114869. }
  114870. return fc, nil
  114871. }
  114872. func (ec *executionContext) _SearchResult_url(ctx context.Context, field graphql.CollectedField, obj *SearchResult) (ret graphql.Marshaler) {
  114873. fc, err := ec.fieldContext_SearchResult_url(ctx, field)
  114874. if err != nil {
  114875. return graphql.Null
  114876. }
  114877. ctx = graphql.WithFieldContext(ctx, fc)
  114878. defer func() {
  114879. if r := recover(); r != nil {
  114880. ec.Error(ctx, ec.Recover(ctx, r))
  114881. ret = graphql.Null
  114882. }
  114883. }()
  114884. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  114885. ctx = rctx // use context from middleware stack in children
  114886. return obj.URL, nil
  114887. })
  114888. if err != nil {
  114889. ec.Error(ctx, err)
  114890. return graphql.Null
  114891. }
  114892. if resTmp == nil {
  114893. if !graphql.HasFieldError(ctx, fc) {
  114894. ec.Errorf(ctx, "must not be null")
  114895. }
  114896. return graphql.Null
  114897. }
  114898. res := resTmp.(string)
  114899. fc.Result = res
  114900. return ec.marshalNURL2string(ctx, field.Selections, res)
  114901. }
  114902. func (ec *executionContext) fieldContext_SearchResult_url(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  114903. fc = &graphql.FieldContext{
  114904. Object: "SearchResult",
  114905. Field: field,
  114906. IsMethod: false,
  114907. IsResolver: false,
  114908. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  114909. return nil, errors.New("field of type URL does not have child fields")
  114910. },
  114911. }
  114912. return fc, nil
  114913. }
  114914. func (ec *executionContext) _SearchResultConnection_edges(ctx context.Context, field graphql.CollectedField, obj *SearchResultConnection) (ret graphql.Marshaler) {
  114915. fc, err := ec.fieldContext_SearchResultConnection_edges(ctx, field)
  114916. if err != nil {
  114917. return graphql.Null
  114918. }
  114919. ctx = graphql.WithFieldContext(ctx, fc)
  114920. defer func() {
  114921. if r := recover(); r != nil {
  114922. ec.Error(ctx, ec.Recover(ctx, r))
  114923. ret = graphql.Null
  114924. }
  114925. }()
  114926. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  114927. ctx = rctx // use context from middleware stack in children
  114928. return obj.Edges, nil
  114929. })
  114930. if err != nil {
  114931. ec.Error(ctx, err)
  114932. return graphql.Null
  114933. }
  114934. if resTmp == nil {
  114935. if !graphql.HasFieldError(ctx, fc) {
  114936. ec.Errorf(ctx, "must not be null")
  114937. }
  114938. return graphql.Null
  114939. }
  114940. res := resTmp.([]*SearchResultEdge)
  114941. fc.Result = res
  114942. return ec.marshalNSearchResultEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSearchResultEdgeᚄ(ctx, field.Selections, res)
  114943. }
  114944. func (ec *executionContext) fieldContext_SearchResultConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  114945. fc = &graphql.FieldContext{
  114946. Object: "SearchResultConnection",
  114947. Field: field,
  114948. IsMethod: false,
  114949. IsResolver: false,
  114950. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  114951. switch field.Name {
  114952. case "cursor":
  114953. return ec.fieldContext_SearchResultEdge_cursor(ctx, field)
  114954. case "node":
  114955. return ec.fieldContext_SearchResultEdge_node(ctx, field)
  114956. }
  114957. return nil, fmt.Errorf("no field named %q was found under type SearchResultEdge", field.Name)
  114958. },
  114959. }
  114960. return fc, nil
  114961. }
  114962. func (ec *executionContext) _SearchResultConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *SearchResultConnection) (ret graphql.Marshaler) {
  114963. fc, err := ec.fieldContext_SearchResultConnection_pageInfo(ctx, field)
  114964. if err != nil {
  114965. return graphql.Null
  114966. }
  114967. ctx = graphql.WithFieldContext(ctx, fc)
  114968. defer func() {
  114969. if r := recover(); r != nil {
  114970. ec.Error(ctx, ec.Recover(ctx, r))
  114971. ret = graphql.Null
  114972. }
  114973. }()
  114974. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  114975. ctx = rctx // use context from middleware stack in children
  114976. return obj.PageInfo, nil
  114977. })
  114978. if err != nil {
  114979. ec.Error(ctx, err)
  114980. return graphql.Null
  114981. }
  114982. if resTmp == nil {
  114983. if !graphql.HasFieldError(ctx, fc) {
  114984. ec.Errorf(ctx, "must not be null")
  114985. }
  114986. return graphql.Null
  114987. }
  114988. res := resTmp.(*PageInfo)
  114989. fc.Result = res
  114990. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  114991. }
  114992. func (ec *executionContext) fieldContext_SearchResultConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  114993. fc = &graphql.FieldContext{
  114994. Object: "SearchResultConnection",
  114995. Field: field,
  114996. IsMethod: false,
  114997. IsResolver: false,
  114998. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  114999. switch field.Name {
  115000. case "endCursor":
  115001. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  115002. case "hasNextPage":
  115003. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  115004. case "hasPreviousPage":
  115005. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  115006. case "startCursor":
  115007. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  115008. }
  115009. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  115010. },
  115011. }
  115012. return fc, nil
  115013. }
  115014. func (ec *executionContext) _SearchResultEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *SearchResultEdge) (ret graphql.Marshaler) {
  115015. fc, err := ec.fieldContext_SearchResultEdge_cursor(ctx, field)
  115016. if err != nil {
  115017. return graphql.Null
  115018. }
  115019. ctx = graphql.WithFieldContext(ctx, fc)
  115020. defer func() {
  115021. if r := recover(); r != nil {
  115022. ec.Error(ctx, ec.Recover(ctx, r))
  115023. ret = graphql.Null
  115024. }
  115025. }()
  115026. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  115027. ctx = rctx // use context from middleware stack in children
  115028. return obj.Cursor, nil
  115029. })
  115030. if err != nil {
  115031. ec.Error(ctx, err)
  115032. return graphql.Null
  115033. }
  115034. if resTmp == nil {
  115035. if !graphql.HasFieldError(ctx, fc) {
  115036. ec.Errorf(ctx, "must not be null")
  115037. }
  115038. return graphql.Null
  115039. }
  115040. res := resTmp.(string)
  115041. fc.Result = res
  115042. return ec.marshalNString2string(ctx, field.Selections, res)
  115043. }
  115044. func (ec *executionContext) fieldContext_SearchResultEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  115045. fc = &graphql.FieldContext{
  115046. Object: "SearchResultEdge",
  115047. Field: field,
  115048. IsMethod: false,
  115049. IsResolver: false,
  115050. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  115051. return nil, errors.New("field of type String does not have child fields")
  115052. },
  115053. }
  115054. return fc, nil
  115055. }
  115056. func (ec *executionContext) _SearchResultEdge_node(ctx context.Context, field graphql.CollectedField, obj *SearchResultEdge) (ret graphql.Marshaler) {
  115057. fc, err := ec.fieldContext_SearchResultEdge_node(ctx, field)
  115058. if err != nil {
  115059. return graphql.Null
  115060. }
  115061. ctx = graphql.WithFieldContext(ctx, fc)
  115062. defer func() {
  115063. if r := recover(); r != nil {
  115064. ec.Error(ctx, ec.Recover(ctx, r))
  115065. ret = graphql.Null
  115066. }
  115067. }()
  115068. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  115069. ctx = rctx // use context from middleware stack in children
  115070. return obj.Node, nil
  115071. })
  115072. if err != nil {
  115073. ec.Error(ctx, err)
  115074. return graphql.Null
  115075. }
  115076. if resTmp == nil {
  115077. if !graphql.HasFieldError(ctx, fc) {
  115078. ec.Errorf(ctx, "must not be null")
  115079. }
  115080. return graphql.Null
  115081. }
  115082. res := resTmp.(*SearchResult)
  115083. fc.Result = res
  115084. return ec.marshalNSearchResult2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSearchResult(ctx, field.Selections, res)
  115085. }
  115086. func (ec *executionContext) fieldContext_SearchResultEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  115087. fc = &graphql.FieldContext{
  115088. Object: "SearchResultEdge",
  115089. Field: field,
  115090. IsMethod: false,
  115091. IsResolver: false,
  115092. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  115093. switch field.Name {
  115094. case "description":
  115095. return ec.fieldContext_SearchResult_description(ctx, field)
  115096. case "image":
  115097. return ec.fieldContext_SearchResult_image(ctx, field)
  115098. case "reference":
  115099. return ec.fieldContext_SearchResult_reference(ctx, field)
  115100. case "title":
  115101. return ec.fieldContext_SearchResult_title(ctx, field)
  115102. case "url":
  115103. return ec.fieldContext_SearchResult_url(ctx, field)
  115104. }
  115105. return nil, fmt.Errorf("no field named %q was found under type SearchResult", field.Name)
  115106. },
  115107. }
  115108. return fc, nil
  115109. }
  115110. func (ec *executionContext) _SelectedOption_name(ctx context.Context, field graphql.CollectedField, obj *SelectedOption) (ret graphql.Marshaler) {
  115111. fc, err := ec.fieldContext_SelectedOption_name(ctx, field)
  115112. if err != nil {
  115113. return graphql.Null
  115114. }
  115115. ctx = graphql.WithFieldContext(ctx, fc)
  115116. defer func() {
  115117. if r := recover(); r != nil {
  115118. ec.Error(ctx, ec.Recover(ctx, r))
  115119. ret = graphql.Null
  115120. }
  115121. }()
  115122. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  115123. ctx = rctx // use context from middleware stack in children
  115124. return obj.Name, nil
  115125. })
  115126. if err != nil {
  115127. ec.Error(ctx, err)
  115128. return graphql.Null
  115129. }
  115130. if resTmp == nil {
  115131. if !graphql.HasFieldError(ctx, fc) {
  115132. ec.Errorf(ctx, "must not be null")
  115133. }
  115134. return graphql.Null
  115135. }
  115136. res := resTmp.(string)
  115137. fc.Result = res
  115138. return ec.marshalNString2string(ctx, field.Selections, res)
  115139. }
  115140. func (ec *executionContext) fieldContext_SelectedOption_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  115141. fc = &graphql.FieldContext{
  115142. Object: "SelectedOption",
  115143. Field: field,
  115144. IsMethod: false,
  115145. IsResolver: false,
  115146. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  115147. return nil, errors.New("field of type String does not have child fields")
  115148. },
  115149. }
  115150. return fc, nil
  115151. }
  115152. func (ec *executionContext) _SelectedOption_value(ctx context.Context, field graphql.CollectedField, obj *SelectedOption) (ret graphql.Marshaler) {
  115153. fc, err := ec.fieldContext_SelectedOption_value(ctx, field)
  115154. if err != nil {
  115155. return graphql.Null
  115156. }
  115157. ctx = graphql.WithFieldContext(ctx, fc)
  115158. defer func() {
  115159. if r := recover(); r != nil {
  115160. ec.Error(ctx, ec.Recover(ctx, r))
  115161. ret = graphql.Null
  115162. }
  115163. }()
  115164. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  115165. ctx = rctx // use context from middleware stack in children
  115166. return obj.Value, nil
  115167. })
  115168. if err != nil {
  115169. ec.Error(ctx, err)
  115170. return graphql.Null
  115171. }
  115172. if resTmp == nil {
  115173. if !graphql.HasFieldError(ctx, fc) {
  115174. ec.Errorf(ctx, "must not be null")
  115175. }
  115176. return graphql.Null
  115177. }
  115178. res := resTmp.(string)
  115179. fc.Result = res
  115180. return ec.marshalNString2string(ctx, field.Selections, res)
  115181. }
  115182. func (ec *executionContext) fieldContext_SelectedOption_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  115183. fc = &graphql.FieldContext{
  115184. Object: "SelectedOption",
  115185. Field: field,
  115186. IsMethod: false,
  115187. IsResolver: false,
  115188. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  115189. return nil, errors.New("field of type String does not have child fields")
  115190. },
  115191. }
  115192. return fc, nil
  115193. }
  115194. func (ec *executionContext) _SellingPlan_billingPolicy(ctx context.Context, field graphql.CollectedField, obj *SellingPlan) (ret graphql.Marshaler) {
  115195. fc, err := ec.fieldContext_SellingPlan_billingPolicy(ctx, field)
  115196. if err != nil {
  115197. return graphql.Null
  115198. }
  115199. ctx = graphql.WithFieldContext(ctx, fc)
  115200. defer func() {
  115201. if r := recover(); r != nil {
  115202. ec.Error(ctx, ec.Recover(ctx, r))
  115203. ret = graphql.Null
  115204. }
  115205. }()
  115206. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  115207. ctx = rctx // use context from middleware stack in children
  115208. return obj.BillingPolicy, nil
  115209. })
  115210. if err != nil {
  115211. ec.Error(ctx, err)
  115212. return graphql.Null
  115213. }
  115214. if resTmp == nil {
  115215. if !graphql.HasFieldError(ctx, fc) {
  115216. ec.Errorf(ctx, "must not be null")
  115217. }
  115218. return graphql.Null
  115219. }
  115220. res := resTmp.(SellingPlanBillingPolicy)
  115221. fc.Result = res
  115222. return ec.marshalNSellingPlanBillingPolicy2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanBillingPolicy(ctx, field.Selections, res)
  115223. }
  115224. func (ec *executionContext) fieldContext_SellingPlan_billingPolicy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  115225. fc = &graphql.FieldContext{
  115226. Object: "SellingPlan",
  115227. Field: field,
  115228. IsMethod: false,
  115229. IsResolver: false,
  115230. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  115231. return nil, errors.New("field of type SellingPlanBillingPolicy does not have child fields")
  115232. },
  115233. }
  115234. return fc, nil
  115235. }
  115236. func (ec *executionContext) _SellingPlan_category(ctx context.Context, field graphql.CollectedField, obj *SellingPlan) (ret graphql.Marshaler) {
  115237. fc, err := ec.fieldContext_SellingPlan_category(ctx, field)
  115238. if err != nil {
  115239. return graphql.Null
  115240. }
  115241. ctx = graphql.WithFieldContext(ctx, fc)
  115242. defer func() {
  115243. if r := recover(); r != nil {
  115244. ec.Error(ctx, ec.Recover(ctx, r))
  115245. ret = graphql.Null
  115246. }
  115247. }()
  115248. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  115249. ctx = rctx // use context from middleware stack in children
  115250. return obj.Category, nil
  115251. })
  115252. if err != nil {
  115253. ec.Error(ctx, err)
  115254. return graphql.Null
  115255. }
  115256. if resTmp == nil {
  115257. return graphql.Null
  115258. }
  115259. res := resTmp.(*SellingPlanCategory)
  115260. fc.Result = res
  115261. return ec.marshalOSellingPlanCategory2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanCategory(ctx, field.Selections, res)
  115262. }
  115263. func (ec *executionContext) fieldContext_SellingPlan_category(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  115264. fc = &graphql.FieldContext{
  115265. Object: "SellingPlan",
  115266. Field: field,
  115267. IsMethod: false,
  115268. IsResolver: false,
  115269. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  115270. return nil, errors.New("field of type SellingPlanCategory does not have child fields")
  115271. },
  115272. }
  115273. return fc, nil
  115274. }
  115275. func (ec *executionContext) _SellingPlan_createdAt(ctx context.Context, field graphql.CollectedField, obj *SellingPlan) (ret graphql.Marshaler) {
  115276. fc, err := ec.fieldContext_SellingPlan_createdAt(ctx, field)
  115277. if err != nil {
  115278. return graphql.Null
  115279. }
  115280. ctx = graphql.WithFieldContext(ctx, fc)
  115281. defer func() {
  115282. if r := recover(); r != nil {
  115283. ec.Error(ctx, ec.Recover(ctx, r))
  115284. ret = graphql.Null
  115285. }
  115286. }()
  115287. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  115288. ctx = rctx // use context from middleware stack in children
  115289. return obj.CreatedAt, nil
  115290. })
  115291. if err != nil {
  115292. ec.Error(ctx, err)
  115293. return graphql.Null
  115294. }
  115295. if resTmp == nil {
  115296. if !graphql.HasFieldError(ctx, fc) {
  115297. ec.Errorf(ctx, "must not be null")
  115298. }
  115299. return graphql.Null
  115300. }
  115301. res := resTmp.(string)
  115302. fc.Result = res
  115303. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  115304. }
  115305. func (ec *executionContext) fieldContext_SellingPlan_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  115306. fc = &graphql.FieldContext{
  115307. Object: "SellingPlan",
  115308. Field: field,
  115309. IsMethod: false,
  115310. IsResolver: false,
  115311. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  115312. return nil, errors.New("field of type DateTime does not have child fields")
  115313. },
  115314. }
  115315. return fc, nil
  115316. }
  115317. func (ec *executionContext) _SellingPlan_deliveryPolicy(ctx context.Context, field graphql.CollectedField, obj *SellingPlan) (ret graphql.Marshaler) {
  115318. fc, err := ec.fieldContext_SellingPlan_deliveryPolicy(ctx, field)
  115319. if err != nil {
  115320. return graphql.Null
  115321. }
  115322. ctx = graphql.WithFieldContext(ctx, fc)
  115323. defer func() {
  115324. if r := recover(); r != nil {
  115325. ec.Error(ctx, ec.Recover(ctx, r))
  115326. ret = graphql.Null
  115327. }
  115328. }()
  115329. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  115330. ctx = rctx // use context from middleware stack in children
  115331. return obj.DeliveryPolicy, nil
  115332. })
  115333. if err != nil {
  115334. ec.Error(ctx, err)
  115335. return graphql.Null
  115336. }
  115337. if resTmp == nil {
  115338. if !graphql.HasFieldError(ctx, fc) {
  115339. ec.Errorf(ctx, "must not be null")
  115340. }
  115341. return graphql.Null
  115342. }
  115343. res := resTmp.(SellingPlanDeliveryPolicy)
  115344. fc.Result = res
  115345. return ec.marshalNSellingPlanDeliveryPolicy2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanDeliveryPolicy(ctx, field.Selections, res)
  115346. }
  115347. func (ec *executionContext) fieldContext_SellingPlan_deliveryPolicy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  115348. fc = &graphql.FieldContext{
  115349. Object: "SellingPlan",
  115350. Field: field,
  115351. IsMethod: false,
  115352. IsResolver: false,
  115353. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  115354. return nil, errors.New("field of type SellingPlanDeliveryPolicy does not have child fields")
  115355. },
  115356. }
  115357. return fc, nil
  115358. }
  115359. func (ec *executionContext) _SellingPlan_description(ctx context.Context, field graphql.CollectedField, obj *SellingPlan) (ret graphql.Marshaler) {
  115360. fc, err := ec.fieldContext_SellingPlan_description(ctx, field)
  115361. if err != nil {
  115362. return graphql.Null
  115363. }
  115364. ctx = graphql.WithFieldContext(ctx, fc)
  115365. defer func() {
  115366. if r := recover(); r != nil {
  115367. ec.Error(ctx, ec.Recover(ctx, r))
  115368. ret = graphql.Null
  115369. }
  115370. }()
  115371. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  115372. ctx = rctx // use context from middleware stack in children
  115373. return obj.Description, nil
  115374. })
  115375. if err != nil {
  115376. ec.Error(ctx, err)
  115377. return graphql.Null
  115378. }
  115379. if resTmp == nil {
  115380. return graphql.Null
  115381. }
  115382. res := resTmp.(*string)
  115383. fc.Result = res
  115384. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  115385. }
  115386. func (ec *executionContext) fieldContext_SellingPlan_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  115387. fc = &graphql.FieldContext{
  115388. Object: "SellingPlan",
  115389. Field: field,
  115390. IsMethod: false,
  115391. IsResolver: false,
  115392. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  115393. return nil, errors.New("field of type String does not have child fields")
  115394. },
  115395. }
  115396. return fc, nil
  115397. }
  115398. func (ec *executionContext) _SellingPlan_id(ctx context.Context, field graphql.CollectedField, obj *SellingPlan) (ret graphql.Marshaler) {
  115399. fc, err := ec.fieldContext_SellingPlan_id(ctx, field)
  115400. if err != nil {
  115401. return graphql.Null
  115402. }
  115403. ctx = graphql.WithFieldContext(ctx, fc)
  115404. defer func() {
  115405. if r := recover(); r != nil {
  115406. ec.Error(ctx, ec.Recover(ctx, r))
  115407. ret = graphql.Null
  115408. }
  115409. }()
  115410. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  115411. ctx = rctx // use context from middleware stack in children
  115412. return obj.ID, nil
  115413. })
  115414. if err != nil {
  115415. ec.Error(ctx, err)
  115416. return graphql.Null
  115417. }
  115418. if resTmp == nil {
  115419. if !graphql.HasFieldError(ctx, fc) {
  115420. ec.Errorf(ctx, "must not be null")
  115421. }
  115422. return graphql.Null
  115423. }
  115424. res := resTmp.(string)
  115425. fc.Result = res
  115426. return ec.marshalNID2string(ctx, field.Selections, res)
  115427. }
  115428. func (ec *executionContext) fieldContext_SellingPlan_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  115429. fc = &graphql.FieldContext{
  115430. Object: "SellingPlan",
  115431. Field: field,
  115432. IsMethod: false,
  115433. IsResolver: false,
  115434. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  115435. return nil, errors.New("field of type ID does not have child fields")
  115436. },
  115437. }
  115438. return fc, nil
  115439. }
  115440. func (ec *executionContext) _SellingPlan_inventoryPolicy(ctx context.Context, field graphql.CollectedField, obj *SellingPlan) (ret graphql.Marshaler) {
  115441. fc, err := ec.fieldContext_SellingPlan_inventoryPolicy(ctx, field)
  115442. if err != nil {
  115443. return graphql.Null
  115444. }
  115445. ctx = graphql.WithFieldContext(ctx, fc)
  115446. defer func() {
  115447. if r := recover(); r != nil {
  115448. ec.Error(ctx, ec.Recover(ctx, r))
  115449. ret = graphql.Null
  115450. }
  115451. }()
  115452. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  115453. ctx = rctx // use context from middleware stack in children
  115454. return obj.InventoryPolicy, nil
  115455. })
  115456. if err != nil {
  115457. ec.Error(ctx, err)
  115458. return graphql.Null
  115459. }
  115460. if resTmp == nil {
  115461. return graphql.Null
  115462. }
  115463. res := resTmp.(*SellingPlanInventoryPolicy)
  115464. fc.Result = res
  115465. return ec.marshalOSellingPlanInventoryPolicy2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanInventoryPolicy(ctx, field.Selections, res)
  115466. }
  115467. func (ec *executionContext) fieldContext_SellingPlan_inventoryPolicy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  115468. fc = &graphql.FieldContext{
  115469. Object: "SellingPlan",
  115470. Field: field,
  115471. IsMethod: false,
  115472. IsResolver: false,
  115473. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  115474. switch field.Name {
  115475. case "reserve":
  115476. return ec.fieldContext_SellingPlanInventoryPolicy_reserve(ctx, field)
  115477. }
  115478. return nil, fmt.Errorf("no field named %q was found under type SellingPlanInventoryPolicy", field.Name)
  115479. },
  115480. }
  115481. return fc, nil
  115482. }
  115483. func (ec *executionContext) _SellingPlan_name(ctx context.Context, field graphql.CollectedField, obj *SellingPlan) (ret graphql.Marshaler) {
  115484. fc, err := ec.fieldContext_SellingPlan_name(ctx, field)
  115485. if err != nil {
  115486. return graphql.Null
  115487. }
  115488. ctx = graphql.WithFieldContext(ctx, fc)
  115489. defer func() {
  115490. if r := recover(); r != nil {
  115491. ec.Error(ctx, ec.Recover(ctx, r))
  115492. ret = graphql.Null
  115493. }
  115494. }()
  115495. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  115496. ctx = rctx // use context from middleware stack in children
  115497. return obj.Name, nil
  115498. })
  115499. if err != nil {
  115500. ec.Error(ctx, err)
  115501. return graphql.Null
  115502. }
  115503. if resTmp == nil {
  115504. if !graphql.HasFieldError(ctx, fc) {
  115505. ec.Errorf(ctx, "must not be null")
  115506. }
  115507. return graphql.Null
  115508. }
  115509. res := resTmp.(string)
  115510. fc.Result = res
  115511. return ec.marshalNString2string(ctx, field.Selections, res)
  115512. }
  115513. func (ec *executionContext) fieldContext_SellingPlan_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  115514. fc = &graphql.FieldContext{
  115515. Object: "SellingPlan",
  115516. Field: field,
  115517. IsMethod: false,
  115518. IsResolver: false,
  115519. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  115520. return nil, errors.New("field of type String does not have child fields")
  115521. },
  115522. }
  115523. return fc, nil
  115524. }
  115525. func (ec *executionContext) _SellingPlan_options(ctx context.Context, field graphql.CollectedField, obj *SellingPlan) (ret graphql.Marshaler) {
  115526. fc, err := ec.fieldContext_SellingPlan_options(ctx, field)
  115527. if err != nil {
  115528. return graphql.Null
  115529. }
  115530. ctx = graphql.WithFieldContext(ctx, fc)
  115531. defer func() {
  115532. if r := recover(); r != nil {
  115533. ec.Error(ctx, ec.Recover(ctx, r))
  115534. ret = graphql.Null
  115535. }
  115536. }()
  115537. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  115538. ctx = rctx // use context from middleware stack in children
  115539. return obj.Options, nil
  115540. })
  115541. if err != nil {
  115542. ec.Error(ctx, err)
  115543. return graphql.Null
  115544. }
  115545. if resTmp == nil {
  115546. if !graphql.HasFieldError(ctx, fc) {
  115547. ec.Errorf(ctx, "must not be null")
  115548. }
  115549. return graphql.Null
  115550. }
  115551. res := resTmp.([]string)
  115552. fc.Result = res
  115553. return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
  115554. }
  115555. func (ec *executionContext) fieldContext_SellingPlan_options(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  115556. fc = &graphql.FieldContext{
  115557. Object: "SellingPlan",
  115558. Field: field,
  115559. IsMethod: false,
  115560. IsResolver: false,
  115561. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  115562. return nil, errors.New("field of type String does not have child fields")
  115563. },
  115564. }
  115565. return fc, nil
  115566. }
  115567. func (ec *executionContext) _SellingPlan_position(ctx context.Context, field graphql.CollectedField, obj *SellingPlan) (ret graphql.Marshaler) {
  115568. fc, err := ec.fieldContext_SellingPlan_position(ctx, field)
  115569. if err != nil {
  115570. return graphql.Null
  115571. }
  115572. ctx = graphql.WithFieldContext(ctx, fc)
  115573. defer func() {
  115574. if r := recover(); r != nil {
  115575. ec.Error(ctx, ec.Recover(ctx, r))
  115576. ret = graphql.Null
  115577. }
  115578. }()
  115579. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  115580. ctx = rctx // use context from middleware stack in children
  115581. return obj.Position, nil
  115582. })
  115583. if err != nil {
  115584. ec.Error(ctx, err)
  115585. return graphql.Null
  115586. }
  115587. if resTmp == nil {
  115588. return graphql.Null
  115589. }
  115590. res := resTmp.(*int)
  115591. fc.Result = res
  115592. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  115593. }
  115594. func (ec *executionContext) fieldContext_SellingPlan_position(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  115595. fc = &graphql.FieldContext{
  115596. Object: "SellingPlan",
  115597. Field: field,
  115598. IsMethod: false,
  115599. IsResolver: false,
  115600. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  115601. return nil, errors.New("field of type Int does not have child fields")
  115602. },
  115603. }
  115604. return fc, nil
  115605. }
  115606. func (ec *executionContext) _SellingPlan_pricingPolicies(ctx context.Context, field graphql.CollectedField, obj *SellingPlan) (ret graphql.Marshaler) {
  115607. fc, err := ec.fieldContext_SellingPlan_pricingPolicies(ctx, field)
  115608. if err != nil {
  115609. return graphql.Null
  115610. }
  115611. ctx = graphql.WithFieldContext(ctx, fc)
  115612. defer func() {
  115613. if r := recover(); r != nil {
  115614. ec.Error(ctx, ec.Recover(ctx, r))
  115615. ret = graphql.Null
  115616. }
  115617. }()
  115618. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  115619. ctx = rctx // use context from middleware stack in children
  115620. return obj.PricingPolicies, nil
  115621. })
  115622. if err != nil {
  115623. ec.Error(ctx, err)
  115624. return graphql.Null
  115625. }
  115626. if resTmp == nil {
  115627. if !graphql.HasFieldError(ctx, fc) {
  115628. ec.Errorf(ctx, "must not be null")
  115629. }
  115630. return graphql.Null
  115631. }
  115632. res := resTmp.([]SellingPlanPricingPolicy)
  115633. fc.Result = res
  115634. return ec.marshalNSellingPlanPricingPolicy2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanPricingPolicyᚄ(ctx, field.Selections, res)
  115635. }
  115636. func (ec *executionContext) fieldContext_SellingPlan_pricingPolicies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  115637. fc = &graphql.FieldContext{
  115638. Object: "SellingPlan",
  115639. Field: field,
  115640. IsMethod: false,
  115641. IsResolver: false,
  115642. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  115643. return nil, errors.New("field of type SellingPlanPricingPolicy does not have child fields")
  115644. },
  115645. }
  115646. return fc, nil
  115647. }
  115648. func (ec *executionContext) _SellingPlanAnchor_cutoffDay(ctx context.Context, field graphql.CollectedField, obj *SellingPlanAnchor) (ret graphql.Marshaler) {
  115649. fc, err := ec.fieldContext_SellingPlanAnchor_cutoffDay(ctx, field)
  115650. if err != nil {
  115651. return graphql.Null
  115652. }
  115653. ctx = graphql.WithFieldContext(ctx, fc)
  115654. defer func() {
  115655. if r := recover(); r != nil {
  115656. ec.Error(ctx, ec.Recover(ctx, r))
  115657. ret = graphql.Null
  115658. }
  115659. }()
  115660. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  115661. ctx = rctx // use context from middleware stack in children
  115662. return obj.CutoffDay, nil
  115663. })
  115664. if err != nil {
  115665. ec.Error(ctx, err)
  115666. return graphql.Null
  115667. }
  115668. if resTmp == nil {
  115669. return graphql.Null
  115670. }
  115671. res := resTmp.(*int)
  115672. fc.Result = res
  115673. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  115674. }
  115675. func (ec *executionContext) fieldContext_SellingPlanAnchor_cutoffDay(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  115676. fc = &graphql.FieldContext{
  115677. Object: "SellingPlanAnchor",
  115678. Field: field,
  115679. IsMethod: false,
  115680. IsResolver: false,
  115681. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  115682. return nil, errors.New("field of type Int does not have child fields")
  115683. },
  115684. }
  115685. return fc, nil
  115686. }
  115687. func (ec *executionContext) _SellingPlanAnchor_day(ctx context.Context, field graphql.CollectedField, obj *SellingPlanAnchor) (ret graphql.Marshaler) {
  115688. fc, err := ec.fieldContext_SellingPlanAnchor_day(ctx, field)
  115689. if err != nil {
  115690. return graphql.Null
  115691. }
  115692. ctx = graphql.WithFieldContext(ctx, fc)
  115693. defer func() {
  115694. if r := recover(); r != nil {
  115695. ec.Error(ctx, ec.Recover(ctx, r))
  115696. ret = graphql.Null
  115697. }
  115698. }()
  115699. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  115700. ctx = rctx // use context from middleware stack in children
  115701. return obj.Day, nil
  115702. })
  115703. if err != nil {
  115704. ec.Error(ctx, err)
  115705. return graphql.Null
  115706. }
  115707. if resTmp == nil {
  115708. if !graphql.HasFieldError(ctx, fc) {
  115709. ec.Errorf(ctx, "must not be null")
  115710. }
  115711. return graphql.Null
  115712. }
  115713. res := resTmp.(int)
  115714. fc.Result = res
  115715. return ec.marshalNInt2int(ctx, field.Selections, res)
  115716. }
  115717. func (ec *executionContext) fieldContext_SellingPlanAnchor_day(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  115718. fc = &graphql.FieldContext{
  115719. Object: "SellingPlanAnchor",
  115720. Field: field,
  115721. IsMethod: false,
  115722. IsResolver: false,
  115723. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  115724. return nil, errors.New("field of type Int does not have child fields")
  115725. },
  115726. }
  115727. return fc, nil
  115728. }
  115729. func (ec *executionContext) _SellingPlanAnchor_month(ctx context.Context, field graphql.CollectedField, obj *SellingPlanAnchor) (ret graphql.Marshaler) {
  115730. fc, err := ec.fieldContext_SellingPlanAnchor_month(ctx, field)
  115731. if err != nil {
  115732. return graphql.Null
  115733. }
  115734. ctx = graphql.WithFieldContext(ctx, fc)
  115735. defer func() {
  115736. if r := recover(); r != nil {
  115737. ec.Error(ctx, ec.Recover(ctx, r))
  115738. ret = graphql.Null
  115739. }
  115740. }()
  115741. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  115742. ctx = rctx // use context from middleware stack in children
  115743. return obj.Month, nil
  115744. })
  115745. if err != nil {
  115746. ec.Error(ctx, err)
  115747. return graphql.Null
  115748. }
  115749. if resTmp == nil {
  115750. return graphql.Null
  115751. }
  115752. res := resTmp.(*int)
  115753. fc.Result = res
  115754. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  115755. }
  115756. func (ec *executionContext) fieldContext_SellingPlanAnchor_month(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  115757. fc = &graphql.FieldContext{
  115758. Object: "SellingPlanAnchor",
  115759. Field: field,
  115760. IsMethod: false,
  115761. IsResolver: false,
  115762. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  115763. return nil, errors.New("field of type Int does not have child fields")
  115764. },
  115765. }
  115766. return fc, nil
  115767. }
  115768. func (ec *executionContext) _SellingPlanAnchor_type(ctx context.Context, field graphql.CollectedField, obj *SellingPlanAnchor) (ret graphql.Marshaler) {
  115769. fc, err := ec.fieldContext_SellingPlanAnchor_type(ctx, field)
  115770. if err != nil {
  115771. return graphql.Null
  115772. }
  115773. ctx = graphql.WithFieldContext(ctx, fc)
  115774. defer func() {
  115775. if r := recover(); r != nil {
  115776. ec.Error(ctx, ec.Recover(ctx, r))
  115777. ret = graphql.Null
  115778. }
  115779. }()
  115780. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  115781. ctx = rctx // use context from middleware stack in children
  115782. return obj.Type, nil
  115783. })
  115784. if err != nil {
  115785. ec.Error(ctx, err)
  115786. return graphql.Null
  115787. }
  115788. if resTmp == nil {
  115789. if !graphql.HasFieldError(ctx, fc) {
  115790. ec.Errorf(ctx, "must not be null")
  115791. }
  115792. return graphql.Null
  115793. }
  115794. res := resTmp.(SellingPlanAnchorType)
  115795. fc.Result = res
  115796. return ec.marshalNSellingPlanAnchorType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanAnchorType(ctx, field.Selections, res)
  115797. }
  115798. func (ec *executionContext) fieldContext_SellingPlanAnchor_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  115799. fc = &graphql.FieldContext{
  115800. Object: "SellingPlanAnchor",
  115801. Field: field,
  115802. IsMethod: false,
  115803. IsResolver: false,
  115804. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  115805. return nil, errors.New("field of type SellingPlanAnchorType does not have child fields")
  115806. },
  115807. }
  115808. return fc, nil
  115809. }
  115810. func (ec *executionContext) _SellingPlanCheckoutCharge_type(ctx context.Context, field graphql.CollectedField, obj *SellingPlanCheckoutCharge) (ret graphql.Marshaler) {
  115811. fc, err := ec.fieldContext_SellingPlanCheckoutCharge_type(ctx, field)
  115812. if err != nil {
  115813. return graphql.Null
  115814. }
  115815. ctx = graphql.WithFieldContext(ctx, fc)
  115816. defer func() {
  115817. if r := recover(); r != nil {
  115818. ec.Error(ctx, ec.Recover(ctx, r))
  115819. ret = graphql.Null
  115820. }
  115821. }()
  115822. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  115823. ctx = rctx // use context from middleware stack in children
  115824. return obj.Type, nil
  115825. })
  115826. if err != nil {
  115827. ec.Error(ctx, err)
  115828. return graphql.Null
  115829. }
  115830. if resTmp == nil {
  115831. if !graphql.HasFieldError(ctx, fc) {
  115832. ec.Errorf(ctx, "must not be null")
  115833. }
  115834. return graphql.Null
  115835. }
  115836. res := resTmp.(SellingPlanCheckoutChargeType)
  115837. fc.Result = res
  115838. return ec.marshalNSellingPlanCheckoutChargeType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanCheckoutChargeType(ctx, field.Selections, res)
  115839. }
  115840. func (ec *executionContext) fieldContext_SellingPlanCheckoutCharge_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  115841. fc = &graphql.FieldContext{
  115842. Object: "SellingPlanCheckoutCharge",
  115843. Field: field,
  115844. IsMethod: false,
  115845. IsResolver: false,
  115846. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  115847. return nil, errors.New("field of type SellingPlanCheckoutChargeType does not have child fields")
  115848. },
  115849. }
  115850. return fc, nil
  115851. }
  115852. func (ec *executionContext) _SellingPlanCheckoutCharge_value(ctx context.Context, field graphql.CollectedField, obj *SellingPlanCheckoutCharge) (ret graphql.Marshaler) {
  115853. fc, err := ec.fieldContext_SellingPlanCheckoutCharge_value(ctx, field)
  115854. if err != nil {
  115855. return graphql.Null
  115856. }
  115857. ctx = graphql.WithFieldContext(ctx, fc)
  115858. defer func() {
  115859. if r := recover(); r != nil {
  115860. ec.Error(ctx, ec.Recover(ctx, r))
  115861. ret = graphql.Null
  115862. }
  115863. }()
  115864. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  115865. ctx = rctx // use context from middleware stack in children
  115866. return obj.Value, nil
  115867. })
  115868. if err != nil {
  115869. ec.Error(ctx, err)
  115870. return graphql.Null
  115871. }
  115872. if resTmp == nil {
  115873. if !graphql.HasFieldError(ctx, fc) {
  115874. ec.Errorf(ctx, "must not be null")
  115875. }
  115876. return graphql.Null
  115877. }
  115878. res := resTmp.(SellingPlanCheckoutChargeValue)
  115879. fc.Result = res
  115880. return ec.marshalNSellingPlanCheckoutChargeValue2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanCheckoutChargeValue(ctx, field.Selections, res)
  115881. }
  115882. func (ec *executionContext) fieldContext_SellingPlanCheckoutCharge_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  115883. fc = &graphql.FieldContext{
  115884. Object: "SellingPlanCheckoutCharge",
  115885. Field: field,
  115886. IsMethod: false,
  115887. IsResolver: false,
  115888. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  115889. return nil, errors.New("field of type SellingPlanCheckoutChargeValue does not have child fields")
  115890. },
  115891. }
  115892. return fc, nil
  115893. }
  115894. func (ec *executionContext) _SellingPlanCheckoutChargePercentageValue_percentage(ctx context.Context, field graphql.CollectedField, obj *SellingPlanCheckoutChargePercentageValue) (ret graphql.Marshaler) {
  115895. fc, err := ec.fieldContext_SellingPlanCheckoutChargePercentageValue_percentage(ctx, field)
  115896. if err != nil {
  115897. return graphql.Null
  115898. }
  115899. ctx = graphql.WithFieldContext(ctx, fc)
  115900. defer func() {
  115901. if r := recover(); r != nil {
  115902. ec.Error(ctx, ec.Recover(ctx, r))
  115903. ret = graphql.Null
  115904. }
  115905. }()
  115906. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  115907. ctx = rctx // use context from middleware stack in children
  115908. return obj.Percentage, nil
  115909. })
  115910. if err != nil {
  115911. ec.Error(ctx, err)
  115912. return graphql.Null
  115913. }
  115914. if resTmp == nil {
  115915. if !graphql.HasFieldError(ctx, fc) {
  115916. ec.Errorf(ctx, "must not be null")
  115917. }
  115918. return graphql.Null
  115919. }
  115920. res := resTmp.(float64)
  115921. fc.Result = res
  115922. return ec.marshalNFloat2float64(ctx, field.Selections, res)
  115923. }
  115924. func (ec *executionContext) fieldContext_SellingPlanCheckoutChargePercentageValue_percentage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  115925. fc = &graphql.FieldContext{
  115926. Object: "SellingPlanCheckoutChargePercentageValue",
  115927. Field: field,
  115928. IsMethod: false,
  115929. IsResolver: false,
  115930. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  115931. return nil, errors.New("field of type Float does not have child fields")
  115932. },
  115933. }
  115934. return fc, nil
  115935. }
  115936. func (ec *executionContext) _SellingPlanConnection_edges(ctx context.Context, field graphql.CollectedField, obj *SellingPlanConnection) (ret graphql.Marshaler) {
  115937. fc, err := ec.fieldContext_SellingPlanConnection_edges(ctx, field)
  115938. if err != nil {
  115939. return graphql.Null
  115940. }
  115941. ctx = graphql.WithFieldContext(ctx, fc)
  115942. defer func() {
  115943. if r := recover(); r != nil {
  115944. ec.Error(ctx, ec.Recover(ctx, r))
  115945. ret = graphql.Null
  115946. }
  115947. }()
  115948. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  115949. ctx = rctx // use context from middleware stack in children
  115950. return obj.Edges, nil
  115951. })
  115952. if err != nil {
  115953. ec.Error(ctx, err)
  115954. return graphql.Null
  115955. }
  115956. if resTmp == nil {
  115957. if !graphql.HasFieldError(ctx, fc) {
  115958. ec.Errorf(ctx, "must not be null")
  115959. }
  115960. return graphql.Null
  115961. }
  115962. res := resTmp.([]*SellingPlanEdge)
  115963. fc.Result = res
  115964. return ec.marshalNSellingPlanEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanEdgeᚄ(ctx, field.Selections, res)
  115965. }
  115966. func (ec *executionContext) fieldContext_SellingPlanConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  115967. fc = &graphql.FieldContext{
  115968. Object: "SellingPlanConnection",
  115969. Field: field,
  115970. IsMethod: false,
  115971. IsResolver: false,
  115972. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  115973. switch field.Name {
  115974. case "cursor":
  115975. return ec.fieldContext_SellingPlanEdge_cursor(ctx, field)
  115976. case "node":
  115977. return ec.fieldContext_SellingPlanEdge_node(ctx, field)
  115978. }
  115979. return nil, fmt.Errorf("no field named %q was found under type SellingPlanEdge", field.Name)
  115980. },
  115981. }
  115982. return fc, nil
  115983. }
  115984. func (ec *executionContext) _SellingPlanConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *SellingPlanConnection) (ret graphql.Marshaler) {
  115985. fc, err := ec.fieldContext_SellingPlanConnection_nodes(ctx, field)
  115986. if err != nil {
  115987. return graphql.Null
  115988. }
  115989. ctx = graphql.WithFieldContext(ctx, fc)
  115990. defer func() {
  115991. if r := recover(); r != nil {
  115992. ec.Error(ctx, ec.Recover(ctx, r))
  115993. ret = graphql.Null
  115994. }
  115995. }()
  115996. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  115997. ctx = rctx // use context from middleware stack in children
  115998. return obj.Nodes, nil
  115999. })
  116000. if err != nil {
  116001. ec.Error(ctx, err)
  116002. return graphql.Null
  116003. }
  116004. if resTmp == nil {
  116005. if !graphql.HasFieldError(ctx, fc) {
  116006. ec.Errorf(ctx, "must not be null")
  116007. }
  116008. return graphql.Null
  116009. }
  116010. res := resTmp.([]*SellingPlan)
  116011. fc.Result = res
  116012. return ec.marshalNSellingPlan2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanᚄ(ctx, field.Selections, res)
  116013. }
  116014. func (ec *executionContext) fieldContext_SellingPlanConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  116015. fc = &graphql.FieldContext{
  116016. Object: "SellingPlanConnection",
  116017. Field: field,
  116018. IsMethod: false,
  116019. IsResolver: false,
  116020. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  116021. switch field.Name {
  116022. case "billingPolicy":
  116023. return ec.fieldContext_SellingPlan_billingPolicy(ctx, field)
  116024. case "category":
  116025. return ec.fieldContext_SellingPlan_category(ctx, field)
  116026. case "createdAt":
  116027. return ec.fieldContext_SellingPlan_createdAt(ctx, field)
  116028. case "deliveryPolicy":
  116029. return ec.fieldContext_SellingPlan_deliveryPolicy(ctx, field)
  116030. case "description":
  116031. return ec.fieldContext_SellingPlan_description(ctx, field)
  116032. case "id":
  116033. return ec.fieldContext_SellingPlan_id(ctx, field)
  116034. case "inventoryPolicy":
  116035. return ec.fieldContext_SellingPlan_inventoryPolicy(ctx, field)
  116036. case "name":
  116037. return ec.fieldContext_SellingPlan_name(ctx, field)
  116038. case "options":
  116039. return ec.fieldContext_SellingPlan_options(ctx, field)
  116040. case "position":
  116041. return ec.fieldContext_SellingPlan_position(ctx, field)
  116042. case "pricingPolicies":
  116043. return ec.fieldContext_SellingPlan_pricingPolicies(ctx, field)
  116044. }
  116045. return nil, fmt.Errorf("no field named %q was found under type SellingPlan", field.Name)
  116046. },
  116047. }
  116048. return fc, nil
  116049. }
  116050. func (ec *executionContext) _SellingPlanConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *SellingPlanConnection) (ret graphql.Marshaler) {
  116051. fc, err := ec.fieldContext_SellingPlanConnection_pageInfo(ctx, field)
  116052. if err != nil {
  116053. return graphql.Null
  116054. }
  116055. ctx = graphql.WithFieldContext(ctx, fc)
  116056. defer func() {
  116057. if r := recover(); r != nil {
  116058. ec.Error(ctx, ec.Recover(ctx, r))
  116059. ret = graphql.Null
  116060. }
  116061. }()
  116062. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  116063. ctx = rctx // use context from middleware stack in children
  116064. return obj.PageInfo, nil
  116065. })
  116066. if err != nil {
  116067. ec.Error(ctx, err)
  116068. return graphql.Null
  116069. }
  116070. if resTmp == nil {
  116071. if !graphql.HasFieldError(ctx, fc) {
  116072. ec.Errorf(ctx, "must not be null")
  116073. }
  116074. return graphql.Null
  116075. }
  116076. res := resTmp.(*PageInfo)
  116077. fc.Result = res
  116078. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  116079. }
  116080. func (ec *executionContext) fieldContext_SellingPlanConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  116081. fc = &graphql.FieldContext{
  116082. Object: "SellingPlanConnection",
  116083. Field: field,
  116084. IsMethod: false,
  116085. IsResolver: false,
  116086. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  116087. switch field.Name {
  116088. case "endCursor":
  116089. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  116090. case "hasNextPage":
  116091. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  116092. case "hasPreviousPage":
  116093. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  116094. case "startCursor":
  116095. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  116096. }
  116097. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  116098. },
  116099. }
  116100. return fc, nil
  116101. }
  116102. func (ec *executionContext) _SellingPlanEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *SellingPlanEdge) (ret graphql.Marshaler) {
  116103. fc, err := ec.fieldContext_SellingPlanEdge_cursor(ctx, field)
  116104. if err != nil {
  116105. return graphql.Null
  116106. }
  116107. ctx = graphql.WithFieldContext(ctx, fc)
  116108. defer func() {
  116109. if r := recover(); r != nil {
  116110. ec.Error(ctx, ec.Recover(ctx, r))
  116111. ret = graphql.Null
  116112. }
  116113. }()
  116114. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  116115. ctx = rctx // use context from middleware stack in children
  116116. return obj.Cursor, nil
  116117. })
  116118. if err != nil {
  116119. ec.Error(ctx, err)
  116120. return graphql.Null
  116121. }
  116122. if resTmp == nil {
  116123. if !graphql.HasFieldError(ctx, fc) {
  116124. ec.Errorf(ctx, "must not be null")
  116125. }
  116126. return graphql.Null
  116127. }
  116128. res := resTmp.(string)
  116129. fc.Result = res
  116130. return ec.marshalNString2string(ctx, field.Selections, res)
  116131. }
  116132. func (ec *executionContext) fieldContext_SellingPlanEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  116133. fc = &graphql.FieldContext{
  116134. Object: "SellingPlanEdge",
  116135. Field: field,
  116136. IsMethod: false,
  116137. IsResolver: false,
  116138. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  116139. return nil, errors.New("field of type String does not have child fields")
  116140. },
  116141. }
  116142. return fc, nil
  116143. }
  116144. func (ec *executionContext) _SellingPlanEdge_node(ctx context.Context, field graphql.CollectedField, obj *SellingPlanEdge) (ret graphql.Marshaler) {
  116145. fc, err := ec.fieldContext_SellingPlanEdge_node(ctx, field)
  116146. if err != nil {
  116147. return graphql.Null
  116148. }
  116149. ctx = graphql.WithFieldContext(ctx, fc)
  116150. defer func() {
  116151. if r := recover(); r != nil {
  116152. ec.Error(ctx, ec.Recover(ctx, r))
  116153. ret = graphql.Null
  116154. }
  116155. }()
  116156. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  116157. ctx = rctx // use context from middleware stack in children
  116158. return obj.Node, nil
  116159. })
  116160. if err != nil {
  116161. ec.Error(ctx, err)
  116162. return graphql.Null
  116163. }
  116164. if resTmp == nil {
  116165. if !graphql.HasFieldError(ctx, fc) {
  116166. ec.Errorf(ctx, "must not be null")
  116167. }
  116168. return graphql.Null
  116169. }
  116170. res := resTmp.(*SellingPlan)
  116171. fc.Result = res
  116172. return ec.marshalNSellingPlan2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlan(ctx, field.Selections, res)
  116173. }
  116174. func (ec *executionContext) fieldContext_SellingPlanEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  116175. fc = &graphql.FieldContext{
  116176. Object: "SellingPlanEdge",
  116177. Field: field,
  116178. IsMethod: false,
  116179. IsResolver: false,
  116180. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  116181. switch field.Name {
  116182. case "billingPolicy":
  116183. return ec.fieldContext_SellingPlan_billingPolicy(ctx, field)
  116184. case "category":
  116185. return ec.fieldContext_SellingPlan_category(ctx, field)
  116186. case "createdAt":
  116187. return ec.fieldContext_SellingPlan_createdAt(ctx, field)
  116188. case "deliveryPolicy":
  116189. return ec.fieldContext_SellingPlan_deliveryPolicy(ctx, field)
  116190. case "description":
  116191. return ec.fieldContext_SellingPlan_description(ctx, field)
  116192. case "id":
  116193. return ec.fieldContext_SellingPlan_id(ctx, field)
  116194. case "inventoryPolicy":
  116195. return ec.fieldContext_SellingPlan_inventoryPolicy(ctx, field)
  116196. case "name":
  116197. return ec.fieldContext_SellingPlan_name(ctx, field)
  116198. case "options":
  116199. return ec.fieldContext_SellingPlan_options(ctx, field)
  116200. case "position":
  116201. return ec.fieldContext_SellingPlan_position(ctx, field)
  116202. case "pricingPolicies":
  116203. return ec.fieldContext_SellingPlan_pricingPolicies(ctx, field)
  116204. }
  116205. return nil, fmt.Errorf("no field named %q was found under type SellingPlan", field.Name)
  116206. },
  116207. }
  116208. return fc, nil
  116209. }
  116210. func (ec *executionContext) _SellingPlanFixedBillingPolicy_checkoutCharge(ctx context.Context, field graphql.CollectedField, obj *SellingPlanFixedBillingPolicy) (ret graphql.Marshaler) {
  116211. fc, err := ec.fieldContext_SellingPlanFixedBillingPolicy_checkoutCharge(ctx, field)
  116212. if err != nil {
  116213. return graphql.Null
  116214. }
  116215. ctx = graphql.WithFieldContext(ctx, fc)
  116216. defer func() {
  116217. if r := recover(); r != nil {
  116218. ec.Error(ctx, ec.Recover(ctx, r))
  116219. ret = graphql.Null
  116220. }
  116221. }()
  116222. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  116223. ctx = rctx // use context from middleware stack in children
  116224. return obj.CheckoutCharge, nil
  116225. })
  116226. if err != nil {
  116227. ec.Error(ctx, err)
  116228. return graphql.Null
  116229. }
  116230. if resTmp == nil {
  116231. if !graphql.HasFieldError(ctx, fc) {
  116232. ec.Errorf(ctx, "must not be null")
  116233. }
  116234. return graphql.Null
  116235. }
  116236. res := resTmp.(*SellingPlanCheckoutCharge)
  116237. fc.Result = res
  116238. return ec.marshalNSellingPlanCheckoutCharge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanCheckoutCharge(ctx, field.Selections, res)
  116239. }
  116240. func (ec *executionContext) fieldContext_SellingPlanFixedBillingPolicy_checkoutCharge(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  116241. fc = &graphql.FieldContext{
  116242. Object: "SellingPlanFixedBillingPolicy",
  116243. Field: field,
  116244. IsMethod: false,
  116245. IsResolver: false,
  116246. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  116247. switch field.Name {
  116248. case "type":
  116249. return ec.fieldContext_SellingPlanCheckoutCharge_type(ctx, field)
  116250. case "value":
  116251. return ec.fieldContext_SellingPlanCheckoutCharge_value(ctx, field)
  116252. }
  116253. return nil, fmt.Errorf("no field named %q was found under type SellingPlanCheckoutCharge", field.Name)
  116254. },
  116255. }
  116256. return fc, nil
  116257. }
  116258. func (ec *executionContext) _SellingPlanFixedBillingPolicy_remainingBalanceChargeExactTime(ctx context.Context, field graphql.CollectedField, obj *SellingPlanFixedBillingPolicy) (ret graphql.Marshaler) {
  116259. fc, err := ec.fieldContext_SellingPlanFixedBillingPolicy_remainingBalanceChargeExactTime(ctx, field)
  116260. if err != nil {
  116261. return graphql.Null
  116262. }
  116263. ctx = graphql.WithFieldContext(ctx, fc)
  116264. defer func() {
  116265. if r := recover(); r != nil {
  116266. ec.Error(ctx, ec.Recover(ctx, r))
  116267. ret = graphql.Null
  116268. }
  116269. }()
  116270. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  116271. ctx = rctx // use context from middleware stack in children
  116272. return obj.RemainingBalanceChargeExactTime, nil
  116273. })
  116274. if err != nil {
  116275. ec.Error(ctx, err)
  116276. return graphql.Null
  116277. }
  116278. if resTmp == nil {
  116279. return graphql.Null
  116280. }
  116281. res := resTmp.(*string)
  116282. fc.Result = res
  116283. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  116284. }
  116285. func (ec *executionContext) fieldContext_SellingPlanFixedBillingPolicy_remainingBalanceChargeExactTime(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  116286. fc = &graphql.FieldContext{
  116287. Object: "SellingPlanFixedBillingPolicy",
  116288. Field: field,
  116289. IsMethod: false,
  116290. IsResolver: false,
  116291. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  116292. return nil, errors.New("field of type DateTime does not have child fields")
  116293. },
  116294. }
  116295. return fc, nil
  116296. }
  116297. func (ec *executionContext) _SellingPlanFixedBillingPolicy_remainingBalanceChargeTimeAfterCheckout(ctx context.Context, field graphql.CollectedField, obj *SellingPlanFixedBillingPolicy) (ret graphql.Marshaler) {
  116298. fc, err := ec.fieldContext_SellingPlanFixedBillingPolicy_remainingBalanceChargeTimeAfterCheckout(ctx, field)
  116299. if err != nil {
  116300. return graphql.Null
  116301. }
  116302. ctx = graphql.WithFieldContext(ctx, fc)
  116303. defer func() {
  116304. if r := recover(); r != nil {
  116305. ec.Error(ctx, ec.Recover(ctx, r))
  116306. ret = graphql.Null
  116307. }
  116308. }()
  116309. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  116310. ctx = rctx // use context from middleware stack in children
  116311. return obj.RemainingBalanceChargeTimeAfterCheckout, nil
  116312. })
  116313. if err != nil {
  116314. ec.Error(ctx, err)
  116315. return graphql.Null
  116316. }
  116317. if resTmp == nil {
  116318. return graphql.Null
  116319. }
  116320. res := resTmp.(*string)
  116321. fc.Result = res
  116322. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  116323. }
  116324. func (ec *executionContext) fieldContext_SellingPlanFixedBillingPolicy_remainingBalanceChargeTimeAfterCheckout(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  116325. fc = &graphql.FieldContext{
  116326. Object: "SellingPlanFixedBillingPolicy",
  116327. Field: field,
  116328. IsMethod: false,
  116329. IsResolver: false,
  116330. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  116331. return nil, errors.New("field of type String does not have child fields")
  116332. },
  116333. }
  116334. return fc, nil
  116335. }
  116336. func (ec *executionContext) _SellingPlanFixedBillingPolicy_remainingBalanceChargeTrigger(ctx context.Context, field graphql.CollectedField, obj *SellingPlanFixedBillingPolicy) (ret graphql.Marshaler) {
  116337. fc, err := ec.fieldContext_SellingPlanFixedBillingPolicy_remainingBalanceChargeTrigger(ctx, field)
  116338. if err != nil {
  116339. return graphql.Null
  116340. }
  116341. ctx = graphql.WithFieldContext(ctx, fc)
  116342. defer func() {
  116343. if r := recover(); r != nil {
  116344. ec.Error(ctx, ec.Recover(ctx, r))
  116345. ret = graphql.Null
  116346. }
  116347. }()
  116348. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  116349. ctx = rctx // use context from middleware stack in children
  116350. return obj.RemainingBalanceChargeTrigger, nil
  116351. })
  116352. if err != nil {
  116353. ec.Error(ctx, err)
  116354. return graphql.Null
  116355. }
  116356. if resTmp == nil {
  116357. if !graphql.HasFieldError(ctx, fc) {
  116358. ec.Errorf(ctx, "must not be null")
  116359. }
  116360. return graphql.Null
  116361. }
  116362. res := resTmp.(SellingPlanRemainingBalanceChargeTrigger)
  116363. fc.Result = res
  116364. return ec.marshalNSellingPlanRemainingBalanceChargeTrigger2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanRemainingBalanceChargeTrigger(ctx, field.Selections, res)
  116365. }
  116366. func (ec *executionContext) fieldContext_SellingPlanFixedBillingPolicy_remainingBalanceChargeTrigger(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  116367. fc = &graphql.FieldContext{
  116368. Object: "SellingPlanFixedBillingPolicy",
  116369. Field: field,
  116370. IsMethod: false,
  116371. IsResolver: false,
  116372. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  116373. return nil, errors.New("field of type SellingPlanRemainingBalanceChargeTrigger does not have child fields")
  116374. },
  116375. }
  116376. return fc, nil
  116377. }
  116378. func (ec *executionContext) _SellingPlanFixedDeliveryPolicy_anchors(ctx context.Context, field graphql.CollectedField, obj *SellingPlanFixedDeliveryPolicy) (ret graphql.Marshaler) {
  116379. fc, err := ec.fieldContext_SellingPlanFixedDeliveryPolicy_anchors(ctx, field)
  116380. if err != nil {
  116381. return graphql.Null
  116382. }
  116383. ctx = graphql.WithFieldContext(ctx, fc)
  116384. defer func() {
  116385. if r := recover(); r != nil {
  116386. ec.Error(ctx, ec.Recover(ctx, r))
  116387. ret = graphql.Null
  116388. }
  116389. }()
  116390. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  116391. ctx = rctx // use context from middleware stack in children
  116392. return obj.Anchors, nil
  116393. })
  116394. if err != nil {
  116395. ec.Error(ctx, err)
  116396. return graphql.Null
  116397. }
  116398. if resTmp == nil {
  116399. if !graphql.HasFieldError(ctx, fc) {
  116400. ec.Errorf(ctx, "must not be null")
  116401. }
  116402. return graphql.Null
  116403. }
  116404. res := resTmp.([]*SellingPlanAnchor)
  116405. fc.Result = res
  116406. return ec.marshalNSellingPlanAnchor2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanAnchorᚄ(ctx, field.Selections, res)
  116407. }
  116408. func (ec *executionContext) fieldContext_SellingPlanFixedDeliveryPolicy_anchors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  116409. fc = &graphql.FieldContext{
  116410. Object: "SellingPlanFixedDeliveryPolicy",
  116411. Field: field,
  116412. IsMethod: false,
  116413. IsResolver: false,
  116414. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  116415. switch field.Name {
  116416. case "cutoffDay":
  116417. return ec.fieldContext_SellingPlanAnchor_cutoffDay(ctx, field)
  116418. case "day":
  116419. return ec.fieldContext_SellingPlanAnchor_day(ctx, field)
  116420. case "month":
  116421. return ec.fieldContext_SellingPlanAnchor_month(ctx, field)
  116422. case "type":
  116423. return ec.fieldContext_SellingPlanAnchor_type(ctx, field)
  116424. }
  116425. return nil, fmt.Errorf("no field named %q was found under type SellingPlanAnchor", field.Name)
  116426. },
  116427. }
  116428. return fc, nil
  116429. }
  116430. func (ec *executionContext) _SellingPlanFixedDeliveryPolicy_cutoff(ctx context.Context, field graphql.CollectedField, obj *SellingPlanFixedDeliveryPolicy) (ret graphql.Marshaler) {
  116431. fc, err := ec.fieldContext_SellingPlanFixedDeliveryPolicy_cutoff(ctx, field)
  116432. if err != nil {
  116433. return graphql.Null
  116434. }
  116435. ctx = graphql.WithFieldContext(ctx, fc)
  116436. defer func() {
  116437. if r := recover(); r != nil {
  116438. ec.Error(ctx, ec.Recover(ctx, r))
  116439. ret = graphql.Null
  116440. }
  116441. }()
  116442. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  116443. ctx = rctx // use context from middleware stack in children
  116444. return obj.Cutoff, nil
  116445. })
  116446. if err != nil {
  116447. ec.Error(ctx, err)
  116448. return graphql.Null
  116449. }
  116450. if resTmp == nil {
  116451. return graphql.Null
  116452. }
  116453. res := resTmp.(*int)
  116454. fc.Result = res
  116455. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  116456. }
  116457. func (ec *executionContext) fieldContext_SellingPlanFixedDeliveryPolicy_cutoff(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  116458. fc = &graphql.FieldContext{
  116459. Object: "SellingPlanFixedDeliveryPolicy",
  116460. Field: field,
  116461. IsMethod: false,
  116462. IsResolver: false,
  116463. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  116464. return nil, errors.New("field of type Int does not have child fields")
  116465. },
  116466. }
  116467. return fc, nil
  116468. }
  116469. func (ec *executionContext) _SellingPlanFixedDeliveryPolicy_fulfillmentExactTime(ctx context.Context, field graphql.CollectedField, obj *SellingPlanFixedDeliveryPolicy) (ret graphql.Marshaler) {
  116470. fc, err := ec.fieldContext_SellingPlanFixedDeliveryPolicy_fulfillmentExactTime(ctx, field)
  116471. if err != nil {
  116472. return graphql.Null
  116473. }
  116474. ctx = graphql.WithFieldContext(ctx, fc)
  116475. defer func() {
  116476. if r := recover(); r != nil {
  116477. ec.Error(ctx, ec.Recover(ctx, r))
  116478. ret = graphql.Null
  116479. }
  116480. }()
  116481. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  116482. ctx = rctx // use context from middleware stack in children
  116483. return obj.FulfillmentExactTime, nil
  116484. })
  116485. if err != nil {
  116486. ec.Error(ctx, err)
  116487. return graphql.Null
  116488. }
  116489. if resTmp == nil {
  116490. return graphql.Null
  116491. }
  116492. res := resTmp.(*string)
  116493. fc.Result = res
  116494. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  116495. }
  116496. func (ec *executionContext) fieldContext_SellingPlanFixedDeliveryPolicy_fulfillmentExactTime(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  116497. fc = &graphql.FieldContext{
  116498. Object: "SellingPlanFixedDeliveryPolicy",
  116499. Field: field,
  116500. IsMethod: false,
  116501. IsResolver: false,
  116502. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  116503. return nil, errors.New("field of type DateTime does not have child fields")
  116504. },
  116505. }
  116506. return fc, nil
  116507. }
  116508. func (ec *executionContext) _SellingPlanFixedDeliveryPolicy_fulfillmentTrigger(ctx context.Context, field graphql.CollectedField, obj *SellingPlanFixedDeliveryPolicy) (ret graphql.Marshaler) {
  116509. fc, err := ec.fieldContext_SellingPlanFixedDeliveryPolicy_fulfillmentTrigger(ctx, field)
  116510. if err != nil {
  116511. return graphql.Null
  116512. }
  116513. ctx = graphql.WithFieldContext(ctx, fc)
  116514. defer func() {
  116515. if r := recover(); r != nil {
  116516. ec.Error(ctx, ec.Recover(ctx, r))
  116517. ret = graphql.Null
  116518. }
  116519. }()
  116520. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  116521. ctx = rctx // use context from middleware stack in children
  116522. return obj.FulfillmentTrigger, nil
  116523. })
  116524. if err != nil {
  116525. ec.Error(ctx, err)
  116526. return graphql.Null
  116527. }
  116528. if resTmp == nil {
  116529. if !graphql.HasFieldError(ctx, fc) {
  116530. ec.Errorf(ctx, "must not be null")
  116531. }
  116532. return graphql.Null
  116533. }
  116534. res := resTmp.(SellingPlanFulfillmentTrigger)
  116535. fc.Result = res
  116536. return ec.marshalNSellingPlanFulfillmentTrigger2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanFulfillmentTrigger(ctx, field.Selections, res)
  116537. }
  116538. func (ec *executionContext) fieldContext_SellingPlanFixedDeliveryPolicy_fulfillmentTrigger(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  116539. fc = &graphql.FieldContext{
  116540. Object: "SellingPlanFixedDeliveryPolicy",
  116541. Field: field,
  116542. IsMethod: false,
  116543. IsResolver: false,
  116544. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  116545. return nil, errors.New("field of type SellingPlanFulfillmentTrigger does not have child fields")
  116546. },
  116547. }
  116548. return fc, nil
  116549. }
  116550. func (ec *executionContext) _SellingPlanFixedDeliveryPolicy_intent(ctx context.Context, field graphql.CollectedField, obj *SellingPlanFixedDeliveryPolicy) (ret graphql.Marshaler) {
  116551. fc, err := ec.fieldContext_SellingPlanFixedDeliveryPolicy_intent(ctx, field)
  116552. if err != nil {
  116553. return graphql.Null
  116554. }
  116555. ctx = graphql.WithFieldContext(ctx, fc)
  116556. defer func() {
  116557. if r := recover(); r != nil {
  116558. ec.Error(ctx, ec.Recover(ctx, r))
  116559. ret = graphql.Null
  116560. }
  116561. }()
  116562. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  116563. ctx = rctx // use context from middleware stack in children
  116564. return obj.Intent, nil
  116565. })
  116566. if err != nil {
  116567. ec.Error(ctx, err)
  116568. return graphql.Null
  116569. }
  116570. if resTmp == nil {
  116571. if !graphql.HasFieldError(ctx, fc) {
  116572. ec.Errorf(ctx, "must not be null")
  116573. }
  116574. return graphql.Null
  116575. }
  116576. res := resTmp.(SellingPlanFixedDeliveryPolicyIntent)
  116577. fc.Result = res
  116578. return ec.marshalNSellingPlanFixedDeliveryPolicyIntent2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanFixedDeliveryPolicyIntent(ctx, field.Selections, res)
  116579. }
  116580. func (ec *executionContext) fieldContext_SellingPlanFixedDeliveryPolicy_intent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  116581. fc = &graphql.FieldContext{
  116582. Object: "SellingPlanFixedDeliveryPolicy",
  116583. Field: field,
  116584. IsMethod: false,
  116585. IsResolver: false,
  116586. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  116587. return nil, errors.New("field of type SellingPlanFixedDeliveryPolicyIntent does not have child fields")
  116588. },
  116589. }
  116590. return fc, nil
  116591. }
  116592. func (ec *executionContext) _SellingPlanFixedDeliveryPolicy_preAnchorBehavior(ctx context.Context, field graphql.CollectedField, obj *SellingPlanFixedDeliveryPolicy) (ret graphql.Marshaler) {
  116593. fc, err := ec.fieldContext_SellingPlanFixedDeliveryPolicy_preAnchorBehavior(ctx, field)
  116594. if err != nil {
  116595. return graphql.Null
  116596. }
  116597. ctx = graphql.WithFieldContext(ctx, fc)
  116598. defer func() {
  116599. if r := recover(); r != nil {
  116600. ec.Error(ctx, ec.Recover(ctx, r))
  116601. ret = graphql.Null
  116602. }
  116603. }()
  116604. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  116605. ctx = rctx // use context from middleware stack in children
  116606. return obj.PreAnchorBehavior, nil
  116607. })
  116608. if err != nil {
  116609. ec.Error(ctx, err)
  116610. return graphql.Null
  116611. }
  116612. if resTmp == nil {
  116613. if !graphql.HasFieldError(ctx, fc) {
  116614. ec.Errorf(ctx, "must not be null")
  116615. }
  116616. return graphql.Null
  116617. }
  116618. res := resTmp.(SellingPlanFixedDeliveryPolicyPreAnchorBehavior)
  116619. fc.Result = res
  116620. return ec.marshalNSellingPlanFixedDeliveryPolicyPreAnchorBehavior2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanFixedDeliveryPolicyPreAnchorBehavior(ctx, field.Selections, res)
  116621. }
  116622. func (ec *executionContext) fieldContext_SellingPlanFixedDeliveryPolicy_preAnchorBehavior(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  116623. fc = &graphql.FieldContext{
  116624. Object: "SellingPlanFixedDeliveryPolicy",
  116625. Field: field,
  116626. IsMethod: false,
  116627. IsResolver: false,
  116628. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  116629. return nil, errors.New("field of type SellingPlanFixedDeliveryPolicyPreAnchorBehavior does not have child fields")
  116630. },
  116631. }
  116632. return fc, nil
  116633. }
  116634. func (ec *executionContext) _SellingPlanFixedPricingPolicy_adjustmentType(ctx context.Context, field graphql.CollectedField, obj *SellingPlanFixedPricingPolicy) (ret graphql.Marshaler) {
  116635. fc, err := ec.fieldContext_SellingPlanFixedPricingPolicy_adjustmentType(ctx, field)
  116636. if err != nil {
  116637. return graphql.Null
  116638. }
  116639. ctx = graphql.WithFieldContext(ctx, fc)
  116640. defer func() {
  116641. if r := recover(); r != nil {
  116642. ec.Error(ctx, ec.Recover(ctx, r))
  116643. ret = graphql.Null
  116644. }
  116645. }()
  116646. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  116647. ctx = rctx // use context from middleware stack in children
  116648. return obj.AdjustmentType, nil
  116649. })
  116650. if err != nil {
  116651. ec.Error(ctx, err)
  116652. return graphql.Null
  116653. }
  116654. if resTmp == nil {
  116655. if !graphql.HasFieldError(ctx, fc) {
  116656. ec.Errorf(ctx, "must not be null")
  116657. }
  116658. return graphql.Null
  116659. }
  116660. res := resTmp.(SellingPlanPricingPolicyAdjustmentType)
  116661. fc.Result = res
  116662. return ec.marshalNSellingPlanPricingPolicyAdjustmentType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanPricingPolicyAdjustmentType(ctx, field.Selections, res)
  116663. }
  116664. func (ec *executionContext) fieldContext_SellingPlanFixedPricingPolicy_adjustmentType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  116665. fc = &graphql.FieldContext{
  116666. Object: "SellingPlanFixedPricingPolicy",
  116667. Field: field,
  116668. IsMethod: false,
  116669. IsResolver: false,
  116670. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  116671. return nil, errors.New("field of type SellingPlanPricingPolicyAdjustmentType does not have child fields")
  116672. },
  116673. }
  116674. return fc, nil
  116675. }
  116676. func (ec *executionContext) _SellingPlanFixedPricingPolicy_adjustmentValue(ctx context.Context, field graphql.CollectedField, obj *SellingPlanFixedPricingPolicy) (ret graphql.Marshaler) {
  116677. fc, err := ec.fieldContext_SellingPlanFixedPricingPolicy_adjustmentValue(ctx, field)
  116678. if err != nil {
  116679. return graphql.Null
  116680. }
  116681. ctx = graphql.WithFieldContext(ctx, fc)
  116682. defer func() {
  116683. if r := recover(); r != nil {
  116684. ec.Error(ctx, ec.Recover(ctx, r))
  116685. ret = graphql.Null
  116686. }
  116687. }()
  116688. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  116689. ctx = rctx // use context from middleware stack in children
  116690. return obj.AdjustmentValue, nil
  116691. })
  116692. if err != nil {
  116693. ec.Error(ctx, err)
  116694. return graphql.Null
  116695. }
  116696. if resTmp == nil {
  116697. if !graphql.HasFieldError(ctx, fc) {
  116698. ec.Errorf(ctx, "must not be null")
  116699. }
  116700. return graphql.Null
  116701. }
  116702. res := resTmp.(SellingPlanPricingPolicyAdjustmentValue)
  116703. fc.Result = res
  116704. return ec.marshalNSellingPlanPricingPolicyAdjustmentValue2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanPricingPolicyAdjustmentValue(ctx, field.Selections, res)
  116705. }
  116706. func (ec *executionContext) fieldContext_SellingPlanFixedPricingPolicy_adjustmentValue(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  116707. fc = &graphql.FieldContext{
  116708. Object: "SellingPlanFixedPricingPolicy",
  116709. Field: field,
  116710. IsMethod: false,
  116711. IsResolver: false,
  116712. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  116713. return nil, errors.New("field of type SellingPlanPricingPolicyAdjustmentValue does not have child fields")
  116714. },
  116715. }
  116716. return fc, nil
  116717. }
  116718. func (ec *executionContext) _SellingPlanFixedPricingPolicy_createdAt(ctx context.Context, field graphql.CollectedField, obj *SellingPlanFixedPricingPolicy) (ret graphql.Marshaler) {
  116719. fc, err := ec.fieldContext_SellingPlanFixedPricingPolicy_createdAt(ctx, field)
  116720. if err != nil {
  116721. return graphql.Null
  116722. }
  116723. ctx = graphql.WithFieldContext(ctx, fc)
  116724. defer func() {
  116725. if r := recover(); r != nil {
  116726. ec.Error(ctx, ec.Recover(ctx, r))
  116727. ret = graphql.Null
  116728. }
  116729. }()
  116730. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  116731. ctx = rctx // use context from middleware stack in children
  116732. return obj.CreatedAt, nil
  116733. })
  116734. if err != nil {
  116735. ec.Error(ctx, err)
  116736. return graphql.Null
  116737. }
  116738. if resTmp == nil {
  116739. if !graphql.HasFieldError(ctx, fc) {
  116740. ec.Errorf(ctx, "must not be null")
  116741. }
  116742. return graphql.Null
  116743. }
  116744. res := resTmp.(string)
  116745. fc.Result = res
  116746. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  116747. }
  116748. func (ec *executionContext) fieldContext_SellingPlanFixedPricingPolicy_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  116749. fc = &graphql.FieldContext{
  116750. Object: "SellingPlanFixedPricingPolicy",
  116751. Field: field,
  116752. IsMethod: false,
  116753. IsResolver: false,
  116754. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  116755. return nil, errors.New("field of type DateTime does not have child fields")
  116756. },
  116757. }
  116758. return fc, nil
  116759. }
  116760. func (ec *executionContext) _SellingPlanGroup_appId(ctx context.Context, field graphql.CollectedField, obj *SellingPlanGroup) (ret graphql.Marshaler) {
  116761. fc, err := ec.fieldContext_SellingPlanGroup_appId(ctx, field)
  116762. if err != nil {
  116763. return graphql.Null
  116764. }
  116765. ctx = graphql.WithFieldContext(ctx, fc)
  116766. defer func() {
  116767. if r := recover(); r != nil {
  116768. ec.Error(ctx, ec.Recover(ctx, r))
  116769. ret = graphql.Null
  116770. }
  116771. }()
  116772. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  116773. ctx = rctx // use context from middleware stack in children
  116774. return obj.AppID, nil
  116775. })
  116776. if err != nil {
  116777. ec.Error(ctx, err)
  116778. return graphql.Null
  116779. }
  116780. if resTmp == nil {
  116781. return graphql.Null
  116782. }
  116783. res := resTmp.(*string)
  116784. fc.Result = res
  116785. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  116786. }
  116787. func (ec *executionContext) fieldContext_SellingPlanGroup_appId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  116788. fc = &graphql.FieldContext{
  116789. Object: "SellingPlanGroup",
  116790. Field: field,
  116791. IsMethod: false,
  116792. IsResolver: false,
  116793. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  116794. return nil, errors.New("field of type String does not have child fields")
  116795. },
  116796. }
  116797. return fc, nil
  116798. }
  116799. func (ec *executionContext) _SellingPlanGroup_appliesToProduct(ctx context.Context, field graphql.CollectedField, obj *SellingPlanGroup) (ret graphql.Marshaler) {
  116800. fc, err := ec.fieldContext_SellingPlanGroup_appliesToProduct(ctx, field)
  116801. if err != nil {
  116802. return graphql.Null
  116803. }
  116804. ctx = graphql.WithFieldContext(ctx, fc)
  116805. defer func() {
  116806. if r := recover(); r != nil {
  116807. ec.Error(ctx, ec.Recover(ctx, r))
  116808. ret = graphql.Null
  116809. }
  116810. }()
  116811. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  116812. ctx = rctx // use context from middleware stack in children
  116813. return obj.AppliesToProduct, nil
  116814. })
  116815. if err != nil {
  116816. ec.Error(ctx, err)
  116817. return graphql.Null
  116818. }
  116819. if resTmp == nil {
  116820. if !graphql.HasFieldError(ctx, fc) {
  116821. ec.Errorf(ctx, "must not be null")
  116822. }
  116823. return graphql.Null
  116824. }
  116825. res := resTmp.(bool)
  116826. fc.Result = res
  116827. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  116828. }
  116829. func (ec *executionContext) fieldContext_SellingPlanGroup_appliesToProduct(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  116830. fc = &graphql.FieldContext{
  116831. Object: "SellingPlanGroup",
  116832. Field: field,
  116833. IsMethod: false,
  116834. IsResolver: false,
  116835. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  116836. return nil, errors.New("field of type Boolean does not have child fields")
  116837. },
  116838. }
  116839. defer func() {
  116840. if r := recover(); r != nil {
  116841. err = ec.Recover(ctx, r)
  116842. ec.Error(ctx, err)
  116843. }
  116844. }()
  116845. ctx = graphql.WithFieldContext(ctx, fc)
  116846. if fc.Args, err = ec.field_SellingPlanGroup_appliesToProduct_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  116847. ec.Error(ctx, err)
  116848. return
  116849. }
  116850. return fc, nil
  116851. }
  116852. func (ec *executionContext) _SellingPlanGroup_appliesToProductVariant(ctx context.Context, field graphql.CollectedField, obj *SellingPlanGroup) (ret graphql.Marshaler) {
  116853. fc, err := ec.fieldContext_SellingPlanGroup_appliesToProductVariant(ctx, field)
  116854. if err != nil {
  116855. return graphql.Null
  116856. }
  116857. ctx = graphql.WithFieldContext(ctx, fc)
  116858. defer func() {
  116859. if r := recover(); r != nil {
  116860. ec.Error(ctx, ec.Recover(ctx, r))
  116861. ret = graphql.Null
  116862. }
  116863. }()
  116864. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  116865. ctx = rctx // use context from middleware stack in children
  116866. return obj.AppliesToProductVariant, nil
  116867. })
  116868. if err != nil {
  116869. ec.Error(ctx, err)
  116870. return graphql.Null
  116871. }
  116872. if resTmp == nil {
  116873. if !graphql.HasFieldError(ctx, fc) {
  116874. ec.Errorf(ctx, "must not be null")
  116875. }
  116876. return graphql.Null
  116877. }
  116878. res := resTmp.(bool)
  116879. fc.Result = res
  116880. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  116881. }
  116882. func (ec *executionContext) fieldContext_SellingPlanGroup_appliesToProductVariant(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  116883. fc = &graphql.FieldContext{
  116884. Object: "SellingPlanGroup",
  116885. Field: field,
  116886. IsMethod: false,
  116887. IsResolver: false,
  116888. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  116889. return nil, errors.New("field of type Boolean does not have child fields")
  116890. },
  116891. }
  116892. defer func() {
  116893. if r := recover(); r != nil {
  116894. err = ec.Recover(ctx, r)
  116895. ec.Error(ctx, err)
  116896. }
  116897. }()
  116898. ctx = graphql.WithFieldContext(ctx, fc)
  116899. if fc.Args, err = ec.field_SellingPlanGroup_appliesToProductVariant_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  116900. ec.Error(ctx, err)
  116901. return
  116902. }
  116903. return fc, nil
  116904. }
  116905. func (ec *executionContext) _SellingPlanGroup_appliesToProductVariants(ctx context.Context, field graphql.CollectedField, obj *SellingPlanGroup) (ret graphql.Marshaler) {
  116906. fc, err := ec.fieldContext_SellingPlanGroup_appliesToProductVariants(ctx, field)
  116907. if err != nil {
  116908. return graphql.Null
  116909. }
  116910. ctx = graphql.WithFieldContext(ctx, fc)
  116911. defer func() {
  116912. if r := recover(); r != nil {
  116913. ec.Error(ctx, ec.Recover(ctx, r))
  116914. ret = graphql.Null
  116915. }
  116916. }()
  116917. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  116918. ctx = rctx // use context from middleware stack in children
  116919. return obj.AppliesToProductVariants, nil
  116920. })
  116921. if err != nil {
  116922. ec.Error(ctx, err)
  116923. return graphql.Null
  116924. }
  116925. if resTmp == nil {
  116926. if !graphql.HasFieldError(ctx, fc) {
  116927. ec.Errorf(ctx, "must not be null")
  116928. }
  116929. return graphql.Null
  116930. }
  116931. res := resTmp.(bool)
  116932. fc.Result = res
  116933. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  116934. }
  116935. func (ec *executionContext) fieldContext_SellingPlanGroup_appliesToProductVariants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  116936. fc = &graphql.FieldContext{
  116937. Object: "SellingPlanGroup",
  116938. Field: field,
  116939. IsMethod: false,
  116940. IsResolver: false,
  116941. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  116942. return nil, errors.New("field of type Boolean does not have child fields")
  116943. },
  116944. }
  116945. defer func() {
  116946. if r := recover(); r != nil {
  116947. err = ec.Recover(ctx, r)
  116948. ec.Error(ctx, err)
  116949. }
  116950. }()
  116951. ctx = graphql.WithFieldContext(ctx, fc)
  116952. if fc.Args, err = ec.field_SellingPlanGroup_appliesToProductVariants_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  116953. ec.Error(ctx, err)
  116954. return
  116955. }
  116956. return fc, nil
  116957. }
  116958. func (ec *executionContext) _SellingPlanGroup_createdAt(ctx context.Context, field graphql.CollectedField, obj *SellingPlanGroup) (ret graphql.Marshaler) {
  116959. fc, err := ec.fieldContext_SellingPlanGroup_createdAt(ctx, field)
  116960. if err != nil {
  116961. return graphql.Null
  116962. }
  116963. ctx = graphql.WithFieldContext(ctx, fc)
  116964. defer func() {
  116965. if r := recover(); r != nil {
  116966. ec.Error(ctx, ec.Recover(ctx, r))
  116967. ret = graphql.Null
  116968. }
  116969. }()
  116970. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  116971. ctx = rctx // use context from middleware stack in children
  116972. return obj.CreatedAt, nil
  116973. })
  116974. if err != nil {
  116975. ec.Error(ctx, err)
  116976. return graphql.Null
  116977. }
  116978. if resTmp == nil {
  116979. if !graphql.HasFieldError(ctx, fc) {
  116980. ec.Errorf(ctx, "must not be null")
  116981. }
  116982. return graphql.Null
  116983. }
  116984. res := resTmp.(string)
  116985. fc.Result = res
  116986. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  116987. }
  116988. func (ec *executionContext) fieldContext_SellingPlanGroup_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  116989. fc = &graphql.FieldContext{
  116990. Object: "SellingPlanGroup",
  116991. Field: field,
  116992. IsMethod: false,
  116993. IsResolver: false,
  116994. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  116995. return nil, errors.New("field of type DateTime does not have child fields")
  116996. },
  116997. }
  116998. return fc, nil
  116999. }
  117000. func (ec *executionContext) _SellingPlanGroup_description(ctx context.Context, field graphql.CollectedField, obj *SellingPlanGroup) (ret graphql.Marshaler) {
  117001. fc, err := ec.fieldContext_SellingPlanGroup_description(ctx, field)
  117002. if err != nil {
  117003. return graphql.Null
  117004. }
  117005. ctx = graphql.WithFieldContext(ctx, fc)
  117006. defer func() {
  117007. if r := recover(); r != nil {
  117008. ec.Error(ctx, ec.Recover(ctx, r))
  117009. ret = graphql.Null
  117010. }
  117011. }()
  117012. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  117013. ctx = rctx // use context from middleware stack in children
  117014. return obj.Description, nil
  117015. })
  117016. if err != nil {
  117017. ec.Error(ctx, err)
  117018. return graphql.Null
  117019. }
  117020. if resTmp == nil {
  117021. return graphql.Null
  117022. }
  117023. res := resTmp.(*string)
  117024. fc.Result = res
  117025. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  117026. }
  117027. func (ec *executionContext) fieldContext_SellingPlanGroup_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  117028. fc = &graphql.FieldContext{
  117029. Object: "SellingPlanGroup",
  117030. Field: field,
  117031. IsMethod: false,
  117032. IsResolver: false,
  117033. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  117034. return nil, errors.New("field of type String does not have child fields")
  117035. },
  117036. }
  117037. return fc, nil
  117038. }
  117039. func (ec *executionContext) _SellingPlanGroup_id(ctx context.Context, field graphql.CollectedField, obj *SellingPlanGroup) (ret graphql.Marshaler) {
  117040. fc, err := ec.fieldContext_SellingPlanGroup_id(ctx, field)
  117041. if err != nil {
  117042. return graphql.Null
  117043. }
  117044. ctx = graphql.WithFieldContext(ctx, fc)
  117045. defer func() {
  117046. if r := recover(); r != nil {
  117047. ec.Error(ctx, ec.Recover(ctx, r))
  117048. ret = graphql.Null
  117049. }
  117050. }()
  117051. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  117052. ctx = rctx // use context from middleware stack in children
  117053. return obj.ID, nil
  117054. })
  117055. if err != nil {
  117056. ec.Error(ctx, err)
  117057. return graphql.Null
  117058. }
  117059. if resTmp == nil {
  117060. if !graphql.HasFieldError(ctx, fc) {
  117061. ec.Errorf(ctx, "must not be null")
  117062. }
  117063. return graphql.Null
  117064. }
  117065. res := resTmp.(string)
  117066. fc.Result = res
  117067. return ec.marshalNID2string(ctx, field.Selections, res)
  117068. }
  117069. func (ec *executionContext) fieldContext_SellingPlanGroup_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  117070. fc = &graphql.FieldContext{
  117071. Object: "SellingPlanGroup",
  117072. Field: field,
  117073. IsMethod: false,
  117074. IsResolver: false,
  117075. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  117076. return nil, errors.New("field of type ID does not have child fields")
  117077. },
  117078. }
  117079. return fc, nil
  117080. }
  117081. func (ec *executionContext) _SellingPlanGroup_merchantCode(ctx context.Context, field graphql.CollectedField, obj *SellingPlanGroup) (ret graphql.Marshaler) {
  117082. fc, err := ec.fieldContext_SellingPlanGroup_merchantCode(ctx, field)
  117083. if err != nil {
  117084. return graphql.Null
  117085. }
  117086. ctx = graphql.WithFieldContext(ctx, fc)
  117087. defer func() {
  117088. if r := recover(); r != nil {
  117089. ec.Error(ctx, ec.Recover(ctx, r))
  117090. ret = graphql.Null
  117091. }
  117092. }()
  117093. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  117094. ctx = rctx // use context from middleware stack in children
  117095. return obj.MerchantCode, nil
  117096. })
  117097. if err != nil {
  117098. ec.Error(ctx, err)
  117099. return graphql.Null
  117100. }
  117101. if resTmp == nil {
  117102. if !graphql.HasFieldError(ctx, fc) {
  117103. ec.Errorf(ctx, "must not be null")
  117104. }
  117105. return graphql.Null
  117106. }
  117107. res := resTmp.(string)
  117108. fc.Result = res
  117109. return ec.marshalNString2string(ctx, field.Selections, res)
  117110. }
  117111. func (ec *executionContext) fieldContext_SellingPlanGroup_merchantCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  117112. fc = &graphql.FieldContext{
  117113. Object: "SellingPlanGroup",
  117114. Field: field,
  117115. IsMethod: false,
  117116. IsResolver: false,
  117117. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  117118. return nil, errors.New("field of type String does not have child fields")
  117119. },
  117120. }
  117121. return fc, nil
  117122. }
  117123. func (ec *executionContext) _SellingPlanGroup_name(ctx context.Context, field graphql.CollectedField, obj *SellingPlanGroup) (ret graphql.Marshaler) {
  117124. fc, err := ec.fieldContext_SellingPlanGroup_name(ctx, field)
  117125. if err != nil {
  117126. return graphql.Null
  117127. }
  117128. ctx = graphql.WithFieldContext(ctx, fc)
  117129. defer func() {
  117130. if r := recover(); r != nil {
  117131. ec.Error(ctx, ec.Recover(ctx, r))
  117132. ret = graphql.Null
  117133. }
  117134. }()
  117135. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  117136. ctx = rctx // use context from middleware stack in children
  117137. return obj.Name, nil
  117138. })
  117139. if err != nil {
  117140. ec.Error(ctx, err)
  117141. return graphql.Null
  117142. }
  117143. if resTmp == nil {
  117144. if !graphql.HasFieldError(ctx, fc) {
  117145. ec.Errorf(ctx, "must not be null")
  117146. }
  117147. return graphql.Null
  117148. }
  117149. res := resTmp.(string)
  117150. fc.Result = res
  117151. return ec.marshalNString2string(ctx, field.Selections, res)
  117152. }
  117153. func (ec *executionContext) fieldContext_SellingPlanGroup_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  117154. fc = &graphql.FieldContext{
  117155. Object: "SellingPlanGroup",
  117156. Field: field,
  117157. IsMethod: false,
  117158. IsResolver: false,
  117159. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  117160. return nil, errors.New("field of type String does not have child fields")
  117161. },
  117162. }
  117163. return fc, nil
  117164. }
  117165. func (ec *executionContext) _SellingPlanGroup_options(ctx context.Context, field graphql.CollectedField, obj *SellingPlanGroup) (ret graphql.Marshaler) {
  117166. fc, err := ec.fieldContext_SellingPlanGroup_options(ctx, field)
  117167. if err != nil {
  117168. return graphql.Null
  117169. }
  117170. ctx = graphql.WithFieldContext(ctx, fc)
  117171. defer func() {
  117172. if r := recover(); r != nil {
  117173. ec.Error(ctx, ec.Recover(ctx, r))
  117174. ret = graphql.Null
  117175. }
  117176. }()
  117177. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  117178. ctx = rctx // use context from middleware stack in children
  117179. return obj.Options, nil
  117180. })
  117181. if err != nil {
  117182. ec.Error(ctx, err)
  117183. return graphql.Null
  117184. }
  117185. if resTmp == nil {
  117186. if !graphql.HasFieldError(ctx, fc) {
  117187. ec.Errorf(ctx, "must not be null")
  117188. }
  117189. return graphql.Null
  117190. }
  117191. res := resTmp.([]string)
  117192. fc.Result = res
  117193. return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
  117194. }
  117195. func (ec *executionContext) fieldContext_SellingPlanGroup_options(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  117196. fc = &graphql.FieldContext{
  117197. Object: "SellingPlanGroup",
  117198. Field: field,
  117199. IsMethod: false,
  117200. IsResolver: false,
  117201. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  117202. return nil, errors.New("field of type String does not have child fields")
  117203. },
  117204. }
  117205. return fc, nil
  117206. }
  117207. func (ec *executionContext) _SellingPlanGroup_position(ctx context.Context, field graphql.CollectedField, obj *SellingPlanGroup) (ret graphql.Marshaler) {
  117208. fc, err := ec.fieldContext_SellingPlanGroup_position(ctx, field)
  117209. if err != nil {
  117210. return graphql.Null
  117211. }
  117212. ctx = graphql.WithFieldContext(ctx, fc)
  117213. defer func() {
  117214. if r := recover(); r != nil {
  117215. ec.Error(ctx, ec.Recover(ctx, r))
  117216. ret = graphql.Null
  117217. }
  117218. }()
  117219. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  117220. ctx = rctx // use context from middleware stack in children
  117221. return obj.Position, nil
  117222. })
  117223. if err != nil {
  117224. ec.Error(ctx, err)
  117225. return graphql.Null
  117226. }
  117227. if resTmp == nil {
  117228. return graphql.Null
  117229. }
  117230. res := resTmp.(*int)
  117231. fc.Result = res
  117232. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  117233. }
  117234. func (ec *executionContext) fieldContext_SellingPlanGroup_position(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  117235. fc = &graphql.FieldContext{
  117236. Object: "SellingPlanGroup",
  117237. Field: field,
  117238. IsMethod: false,
  117239. IsResolver: false,
  117240. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  117241. return nil, errors.New("field of type Int does not have child fields")
  117242. },
  117243. }
  117244. return fc, nil
  117245. }
  117246. func (ec *executionContext) _SellingPlanGroup_productCount(ctx context.Context, field graphql.CollectedField, obj *SellingPlanGroup) (ret graphql.Marshaler) {
  117247. fc, err := ec.fieldContext_SellingPlanGroup_productCount(ctx, field)
  117248. if err != nil {
  117249. return graphql.Null
  117250. }
  117251. ctx = graphql.WithFieldContext(ctx, fc)
  117252. defer func() {
  117253. if r := recover(); r != nil {
  117254. ec.Error(ctx, ec.Recover(ctx, r))
  117255. ret = graphql.Null
  117256. }
  117257. }()
  117258. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  117259. ctx = rctx // use context from middleware stack in children
  117260. return obj.ProductCount, nil
  117261. })
  117262. if err != nil {
  117263. ec.Error(ctx, err)
  117264. return graphql.Null
  117265. }
  117266. if resTmp == nil {
  117267. if !graphql.HasFieldError(ctx, fc) {
  117268. ec.Errorf(ctx, "must not be null")
  117269. }
  117270. return graphql.Null
  117271. }
  117272. res := resTmp.(int)
  117273. fc.Result = res
  117274. return ec.marshalNInt2int(ctx, field.Selections, res)
  117275. }
  117276. func (ec *executionContext) fieldContext_SellingPlanGroup_productCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  117277. fc = &graphql.FieldContext{
  117278. Object: "SellingPlanGroup",
  117279. Field: field,
  117280. IsMethod: false,
  117281. IsResolver: false,
  117282. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  117283. return nil, errors.New("field of type Int does not have child fields")
  117284. },
  117285. }
  117286. return fc, nil
  117287. }
  117288. func (ec *executionContext) _SellingPlanGroup_productVariantCount(ctx context.Context, field graphql.CollectedField, obj *SellingPlanGroup) (ret graphql.Marshaler) {
  117289. fc, err := ec.fieldContext_SellingPlanGroup_productVariantCount(ctx, field)
  117290. if err != nil {
  117291. return graphql.Null
  117292. }
  117293. ctx = graphql.WithFieldContext(ctx, fc)
  117294. defer func() {
  117295. if r := recover(); r != nil {
  117296. ec.Error(ctx, ec.Recover(ctx, r))
  117297. ret = graphql.Null
  117298. }
  117299. }()
  117300. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  117301. ctx = rctx // use context from middleware stack in children
  117302. return obj.ProductVariantCount, nil
  117303. })
  117304. if err != nil {
  117305. ec.Error(ctx, err)
  117306. return graphql.Null
  117307. }
  117308. if resTmp == nil {
  117309. if !graphql.HasFieldError(ctx, fc) {
  117310. ec.Errorf(ctx, "must not be null")
  117311. }
  117312. return graphql.Null
  117313. }
  117314. res := resTmp.(int)
  117315. fc.Result = res
  117316. return ec.marshalNInt2int(ctx, field.Selections, res)
  117317. }
  117318. func (ec *executionContext) fieldContext_SellingPlanGroup_productVariantCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  117319. fc = &graphql.FieldContext{
  117320. Object: "SellingPlanGroup",
  117321. Field: field,
  117322. IsMethod: false,
  117323. IsResolver: false,
  117324. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  117325. return nil, errors.New("field of type Int does not have child fields")
  117326. },
  117327. }
  117328. defer func() {
  117329. if r := recover(); r != nil {
  117330. err = ec.Recover(ctx, r)
  117331. ec.Error(ctx, err)
  117332. }
  117333. }()
  117334. ctx = graphql.WithFieldContext(ctx, fc)
  117335. if fc.Args, err = ec.field_SellingPlanGroup_productVariantCount_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  117336. ec.Error(ctx, err)
  117337. return
  117338. }
  117339. return fc, nil
  117340. }
  117341. func (ec *executionContext) _SellingPlanGroup_productVariants(ctx context.Context, field graphql.CollectedField, obj *SellingPlanGroup) (ret graphql.Marshaler) {
  117342. fc, err := ec.fieldContext_SellingPlanGroup_productVariants(ctx, field)
  117343. if err != nil {
  117344. return graphql.Null
  117345. }
  117346. ctx = graphql.WithFieldContext(ctx, fc)
  117347. defer func() {
  117348. if r := recover(); r != nil {
  117349. ec.Error(ctx, ec.Recover(ctx, r))
  117350. ret = graphql.Null
  117351. }
  117352. }()
  117353. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  117354. ctx = rctx // use context from middleware stack in children
  117355. return obj.ProductVariants, nil
  117356. })
  117357. if err != nil {
  117358. ec.Error(ctx, err)
  117359. return graphql.Null
  117360. }
  117361. if resTmp == nil {
  117362. if !graphql.HasFieldError(ctx, fc) {
  117363. ec.Errorf(ctx, "must not be null")
  117364. }
  117365. return graphql.Null
  117366. }
  117367. res := resTmp.(*ProductVariantConnection)
  117368. fc.Result = res
  117369. return ec.marshalNProductVariantConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantConnection(ctx, field.Selections, res)
  117370. }
  117371. func (ec *executionContext) fieldContext_SellingPlanGroup_productVariants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  117372. fc = &graphql.FieldContext{
  117373. Object: "SellingPlanGroup",
  117374. Field: field,
  117375. IsMethod: false,
  117376. IsResolver: false,
  117377. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  117378. switch field.Name {
  117379. case "edges":
  117380. return ec.fieldContext_ProductVariantConnection_edges(ctx, field)
  117381. case "nodes":
  117382. return ec.fieldContext_ProductVariantConnection_nodes(ctx, field)
  117383. case "pageInfo":
  117384. return ec.fieldContext_ProductVariantConnection_pageInfo(ctx, field)
  117385. }
  117386. return nil, fmt.Errorf("no field named %q was found under type ProductVariantConnection", field.Name)
  117387. },
  117388. }
  117389. defer func() {
  117390. if r := recover(); r != nil {
  117391. err = ec.Recover(ctx, r)
  117392. ec.Error(ctx, err)
  117393. }
  117394. }()
  117395. ctx = graphql.WithFieldContext(ctx, fc)
  117396. if fc.Args, err = ec.field_SellingPlanGroup_productVariants_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  117397. ec.Error(ctx, err)
  117398. return
  117399. }
  117400. return fc, nil
  117401. }
  117402. func (ec *executionContext) _SellingPlanGroup_products(ctx context.Context, field graphql.CollectedField, obj *SellingPlanGroup) (ret graphql.Marshaler) {
  117403. fc, err := ec.fieldContext_SellingPlanGroup_products(ctx, field)
  117404. if err != nil {
  117405. return graphql.Null
  117406. }
  117407. ctx = graphql.WithFieldContext(ctx, fc)
  117408. defer func() {
  117409. if r := recover(); r != nil {
  117410. ec.Error(ctx, ec.Recover(ctx, r))
  117411. ret = graphql.Null
  117412. }
  117413. }()
  117414. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  117415. ctx = rctx // use context from middleware stack in children
  117416. return obj.Products, nil
  117417. })
  117418. if err != nil {
  117419. ec.Error(ctx, err)
  117420. return graphql.Null
  117421. }
  117422. if resTmp == nil {
  117423. if !graphql.HasFieldError(ctx, fc) {
  117424. ec.Errorf(ctx, "must not be null")
  117425. }
  117426. return graphql.Null
  117427. }
  117428. res := resTmp.(*ProductConnection)
  117429. fc.Result = res
  117430. return ec.marshalNProductConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductConnection(ctx, field.Selections, res)
  117431. }
  117432. func (ec *executionContext) fieldContext_SellingPlanGroup_products(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  117433. fc = &graphql.FieldContext{
  117434. Object: "SellingPlanGroup",
  117435. Field: field,
  117436. IsMethod: false,
  117437. IsResolver: false,
  117438. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  117439. switch field.Name {
  117440. case "edges":
  117441. return ec.fieldContext_ProductConnection_edges(ctx, field)
  117442. case "nodes":
  117443. return ec.fieldContext_ProductConnection_nodes(ctx, field)
  117444. case "pageInfo":
  117445. return ec.fieldContext_ProductConnection_pageInfo(ctx, field)
  117446. }
  117447. return nil, fmt.Errorf("no field named %q was found under type ProductConnection", field.Name)
  117448. },
  117449. }
  117450. defer func() {
  117451. if r := recover(); r != nil {
  117452. err = ec.Recover(ctx, r)
  117453. ec.Error(ctx, err)
  117454. }
  117455. }()
  117456. ctx = graphql.WithFieldContext(ctx, fc)
  117457. if fc.Args, err = ec.field_SellingPlanGroup_products_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  117458. ec.Error(ctx, err)
  117459. return
  117460. }
  117461. return fc, nil
  117462. }
  117463. func (ec *executionContext) _SellingPlanGroup_sellingPlans(ctx context.Context, field graphql.CollectedField, obj *SellingPlanGroup) (ret graphql.Marshaler) {
  117464. fc, err := ec.fieldContext_SellingPlanGroup_sellingPlans(ctx, field)
  117465. if err != nil {
  117466. return graphql.Null
  117467. }
  117468. ctx = graphql.WithFieldContext(ctx, fc)
  117469. defer func() {
  117470. if r := recover(); r != nil {
  117471. ec.Error(ctx, ec.Recover(ctx, r))
  117472. ret = graphql.Null
  117473. }
  117474. }()
  117475. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  117476. ctx = rctx // use context from middleware stack in children
  117477. return obj.SellingPlans, nil
  117478. })
  117479. if err != nil {
  117480. ec.Error(ctx, err)
  117481. return graphql.Null
  117482. }
  117483. if resTmp == nil {
  117484. if !graphql.HasFieldError(ctx, fc) {
  117485. ec.Errorf(ctx, "must not be null")
  117486. }
  117487. return graphql.Null
  117488. }
  117489. res := resTmp.(*SellingPlanConnection)
  117490. fc.Result = res
  117491. return ec.marshalNSellingPlanConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanConnection(ctx, field.Selections, res)
  117492. }
  117493. func (ec *executionContext) fieldContext_SellingPlanGroup_sellingPlans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  117494. fc = &graphql.FieldContext{
  117495. Object: "SellingPlanGroup",
  117496. Field: field,
  117497. IsMethod: false,
  117498. IsResolver: false,
  117499. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  117500. switch field.Name {
  117501. case "edges":
  117502. return ec.fieldContext_SellingPlanConnection_edges(ctx, field)
  117503. case "nodes":
  117504. return ec.fieldContext_SellingPlanConnection_nodes(ctx, field)
  117505. case "pageInfo":
  117506. return ec.fieldContext_SellingPlanConnection_pageInfo(ctx, field)
  117507. }
  117508. return nil, fmt.Errorf("no field named %q was found under type SellingPlanConnection", field.Name)
  117509. },
  117510. }
  117511. defer func() {
  117512. if r := recover(); r != nil {
  117513. err = ec.Recover(ctx, r)
  117514. ec.Error(ctx, err)
  117515. }
  117516. }()
  117517. ctx = graphql.WithFieldContext(ctx, fc)
  117518. if fc.Args, err = ec.field_SellingPlanGroup_sellingPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  117519. ec.Error(ctx, err)
  117520. return
  117521. }
  117522. return fc, nil
  117523. }
  117524. func (ec *executionContext) _SellingPlanGroup_summary(ctx context.Context, field graphql.CollectedField, obj *SellingPlanGroup) (ret graphql.Marshaler) {
  117525. fc, err := ec.fieldContext_SellingPlanGroup_summary(ctx, field)
  117526. if err != nil {
  117527. return graphql.Null
  117528. }
  117529. ctx = graphql.WithFieldContext(ctx, fc)
  117530. defer func() {
  117531. if r := recover(); r != nil {
  117532. ec.Error(ctx, ec.Recover(ctx, r))
  117533. ret = graphql.Null
  117534. }
  117535. }()
  117536. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  117537. ctx = rctx // use context from middleware stack in children
  117538. return obj.Summary, nil
  117539. })
  117540. if err != nil {
  117541. ec.Error(ctx, err)
  117542. return graphql.Null
  117543. }
  117544. if resTmp == nil {
  117545. return graphql.Null
  117546. }
  117547. res := resTmp.(*string)
  117548. fc.Result = res
  117549. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  117550. }
  117551. func (ec *executionContext) fieldContext_SellingPlanGroup_summary(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  117552. fc = &graphql.FieldContext{
  117553. Object: "SellingPlanGroup",
  117554. Field: field,
  117555. IsMethod: false,
  117556. IsResolver: false,
  117557. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  117558. return nil, errors.New("field of type String does not have child fields")
  117559. },
  117560. }
  117561. return fc, nil
  117562. }
  117563. func (ec *executionContext) _SellingPlanGroupConnection_edges(ctx context.Context, field graphql.CollectedField, obj *SellingPlanGroupConnection) (ret graphql.Marshaler) {
  117564. fc, err := ec.fieldContext_SellingPlanGroupConnection_edges(ctx, field)
  117565. if err != nil {
  117566. return graphql.Null
  117567. }
  117568. ctx = graphql.WithFieldContext(ctx, fc)
  117569. defer func() {
  117570. if r := recover(); r != nil {
  117571. ec.Error(ctx, ec.Recover(ctx, r))
  117572. ret = graphql.Null
  117573. }
  117574. }()
  117575. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  117576. ctx = rctx // use context from middleware stack in children
  117577. return obj.Edges, nil
  117578. })
  117579. if err != nil {
  117580. ec.Error(ctx, err)
  117581. return graphql.Null
  117582. }
  117583. if resTmp == nil {
  117584. if !graphql.HasFieldError(ctx, fc) {
  117585. ec.Errorf(ctx, "must not be null")
  117586. }
  117587. return graphql.Null
  117588. }
  117589. res := resTmp.([]*SellingPlanGroupEdge)
  117590. fc.Result = res
  117591. return ec.marshalNSellingPlanGroupEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanGroupEdgeᚄ(ctx, field.Selections, res)
  117592. }
  117593. func (ec *executionContext) fieldContext_SellingPlanGroupConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  117594. fc = &graphql.FieldContext{
  117595. Object: "SellingPlanGroupConnection",
  117596. Field: field,
  117597. IsMethod: false,
  117598. IsResolver: false,
  117599. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  117600. switch field.Name {
  117601. case "cursor":
  117602. return ec.fieldContext_SellingPlanGroupEdge_cursor(ctx, field)
  117603. case "node":
  117604. return ec.fieldContext_SellingPlanGroupEdge_node(ctx, field)
  117605. }
  117606. return nil, fmt.Errorf("no field named %q was found under type SellingPlanGroupEdge", field.Name)
  117607. },
  117608. }
  117609. return fc, nil
  117610. }
  117611. func (ec *executionContext) _SellingPlanGroupConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *SellingPlanGroupConnection) (ret graphql.Marshaler) {
  117612. fc, err := ec.fieldContext_SellingPlanGroupConnection_nodes(ctx, field)
  117613. if err != nil {
  117614. return graphql.Null
  117615. }
  117616. ctx = graphql.WithFieldContext(ctx, fc)
  117617. defer func() {
  117618. if r := recover(); r != nil {
  117619. ec.Error(ctx, ec.Recover(ctx, r))
  117620. ret = graphql.Null
  117621. }
  117622. }()
  117623. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  117624. ctx = rctx // use context from middleware stack in children
  117625. return obj.Nodes, nil
  117626. })
  117627. if err != nil {
  117628. ec.Error(ctx, err)
  117629. return graphql.Null
  117630. }
  117631. if resTmp == nil {
  117632. if !graphql.HasFieldError(ctx, fc) {
  117633. ec.Errorf(ctx, "must not be null")
  117634. }
  117635. return graphql.Null
  117636. }
  117637. res := resTmp.([]*SellingPlanGroup)
  117638. fc.Result = res
  117639. return ec.marshalNSellingPlanGroup2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanGroupᚄ(ctx, field.Selections, res)
  117640. }
  117641. func (ec *executionContext) fieldContext_SellingPlanGroupConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  117642. fc = &graphql.FieldContext{
  117643. Object: "SellingPlanGroupConnection",
  117644. Field: field,
  117645. IsMethod: false,
  117646. IsResolver: false,
  117647. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  117648. switch field.Name {
  117649. case "appId":
  117650. return ec.fieldContext_SellingPlanGroup_appId(ctx, field)
  117651. case "appliesToProduct":
  117652. return ec.fieldContext_SellingPlanGroup_appliesToProduct(ctx, field)
  117653. case "appliesToProductVariant":
  117654. return ec.fieldContext_SellingPlanGroup_appliesToProductVariant(ctx, field)
  117655. case "appliesToProductVariants":
  117656. return ec.fieldContext_SellingPlanGroup_appliesToProductVariants(ctx, field)
  117657. case "createdAt":
  117658. return ec.fieldContext_SellingPlanGroup_createdAt(ctx, field)
  117659. case "description":
  117660. return ec.fieldContext_SellingPlanGroup_description(ctx, field)
  117661. case "id":
  117662. return ec.fieldContext_SellingPlanGroup_id(ctx, field)
  117663. case "merchantCode":
  117664. return ec.fieldContext_SellingPlanGroup_merchantCode(ctx, field)
  117665. case "name":
  117666. return ec.fieldContext_SellingPlanGroup_name(ctx, field)
  117667. case "options":
  117668. return ec.fieldContext_SellingPlanGroup_options(ctx, field)
  117669. case "position":
  117670. return ec.fieldContext_SellingPlanGroup_position(ctx, field)
  117671. case "productCount":
  117672. return ec.fieldContext_SellingPlanGroup_productCount(ctx, field)
  117673. case "productVariantCount":
  117674. return ec.fieldContext_SellingPlanGroup_productVariantCount(ctx, field)
  117675. case "productVariants":
  117676. return ec.fieldContext_SellingPlanGroup_productVariants(ctx, field)
  117677. case "products":
  117678. return ec.fieldContext_SellingPlanGroup_products(ctx, field)
  117679. case "sellingPlans":
  117680. return ec.fieldContext_SellingPlanGroup_sellingPlans(ctx, field)
  117681. case "summary":
  117682. return ec.fieldContext_SellingPlanGroup_summary(ctx, field)
  117683. }
  117684. return nil, fmt.Errorf("no field named %q was found under type SellingPlanGroup", field.Name)
  117685. },
  117686. }
  117687. return fc, nil
  117688. }
  117689. func (ec *executionContext) _SellingPlanGroupConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *SellingPlanGroupConnection) (ret graphql.Marshaler) {
  117690. fc, err := ec.fieldContext_SellingPlanGroupConnection_pageInfo(ctx, field)
  117691. if err != nil {
  117692. return graphql.Null
  117693. }
  117694. ctx = graphql.WithFieldContext(ctx, fc)
  117695. defer func() {
  117696. if r := recover(); r != nil {
  117697. ec.Error(ctx, ec.Recover(ctx, r))
  117698. ret = graphql.Null
  117699. }
  117700. }()
  117701. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  117702. ctx = rctx // use context from middleware stack in children
  117703. return obj.PageInfo, nil
  117704. })
  117705. if err != nil {
  117706. ec.Error(ctx, err)
  117707. return graphql.Null
  117708. }
  117709. if resTmp == nil {
  117710. if !graphql.HasFieldError(ctx, fc) {
  117711. ec.Errorf(ctx, "must not be null")
  117712. }
  117713. return graphql.Null
  117714. }
  117715. res := resTmp.(*PageInfo)
  117716. fc.Result = res
  117717. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  117718. }
  117719. func (ec *executionContext) fieldContext_SellingPlanGroupConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  117720. fc = &graphql.FieldContext{
  117721. Object: "SellingPlanGroupConnection",
  117722. Field: field,
  117723. IsMethod: false,
  117724. IsResolver: false,
  117725. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  117726. switch field.Name {
  117727. case "endCursor":
  117728. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  117729. case "hasNextPage":
  117730. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  117731. case "hasPreviousPage":
  117732. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  117733. case "startCursor":
  117734. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  117735. }
  117736. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  117737. },
  117738. }
  117739. return fc, nil
  117740. }
  117741. func (ec *executionContext) _SellingPlanGroupEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *SellingPlanGroupEdge) (ret graphql.Marshaler) {
  117742. fc, err := ec.fieldContext_SellingPlanGroupEdge_cursor(ctx, field)
  117743. if err != nil {
  117744. return graphql.Null
  117745. }
  117746. ctx = graphql.WithFieldContext(ctx, fc)
  117747. defer func() {
  117748. if r := recover(); r != nil {
  117749. ec.Error(ctx, ec.Recover(ctx, r))
  117750. ret = graphql.Null
  117751. }
  117752. }()
  117753. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  117754. ctx = rctx // use context from middleware stack in children
  117755. return obj.Cursor, nil
  117756. })
  117757. if err != nil {
  117758. ec.Error(ctx, err)
  117759. return graphql.Null
  117760. }
  117761. if resTmp == nil {
  117762. if !graphql.HasFieldError(ctx, fc) {
  117763. ec.Errorf(ctx, "must not be null")
  117764. }
  117765. return graphql.Null
  117766. }
  117767. res := resTmp.(string)
  117768. fc.Result = res
  117769. return ec.marshalNString2string(ctx, field.Selections, res)
  117770. }
  117771. func (ec *executionContext) fieldContext_SellingPlanGroupEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  117772. fc = &graphql.FieldContext{
  117773. Object: "SellingPlanGroupEdge",
  117774. Field: field,
  117775. IsMethod: false,
  117776. IsResolver: false,
  117777. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  117778. return nil, errors.New("field of type String does not have child fields")
  117779. },
  117780. }
  117781. return fc, nil
  117782. }
  117783. func (ec *executionContext) _SellingPlanGroupEdge_node(ctx context.Context, field graphql.CollectedField, obj *SellingPlanGroupEdge) (ret graphql.Marshaler) {
  117784. fc, err := ec.fieldContext_SellingPlanGroupEdge_node(ctx, field)
  117785. if err != nil {
  117786. return graphql.Null
  117787. }
  117788. ctx = graphql.WithFieldContext(ctx, fc)
  117789. defer func() {
  117790. if r := recover(); r != nil {
  117791. ec.Error(ctx, ec.Recover(ctx, r))
  117792. ret = graphql.Null
  117793. }
  117794. }()
  117795. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  117796. ctx = rctx // use context from middleware stack in children
  117797. return obj.Node, nil
  117798. })
  117799. if err != nil {
  117800. ec.Error(ctx, err)
  117801. return graphql.Null
  117802. }
  117803. if resTmp == nil {
  117804. if !graphql.HasFieldError(ctx, fc) {
  117805. ec.Errorf(ctx, "must not be null")
  117806. }
  117807. return graphql.Null
  117808. }
  117809. res := resTmp.(*SellingPlanGroup)
  117810. fc.Result = res
  117811. return ec.marshalNSellingPlanGroup2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanGroup(ctx, field.Selections, res)
  117812. }
  117813. func (ec *executionContext) fieldContext_SellingPlanGroupEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  117814. fc = &graphql.FieldContext{
  117815. Object: "SellingPlanGroupEdge",
  117816. Field: field,
  117817. IsMethod: false,
  117818. IsResolver: false,
  117819. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  117820. switch field.Name {
  117821. case "appId":
  117822. return ec.fieldContext_SellingPlanGroup_appId(ctx, field)
  117823. case "appliesToProduct":
  117824. return ec.fieldContext_SellingPlanGroup_appliesToProduct(ctx, field)
  117825. case "appliesToProductVariant":
  117826. return ec.fieldContext_SellingPlanGroup_appliesToProductVariant(ctx, field)
  117827. case "appliesToProductVariants":
  117828. return ec.fieldContext_SellingPlanGroup_appliesToProductVariants(ctx, field)
  117829. case "createdAt":
  117830. return ec.fieldContext_SellingPlanGroup_createdAt(ctx, field)
  117831. case "description":
  117832. return ec.fieldContext_SellingPlanGroup_description(ctx, field)
  117833. case "id":
  117834. return ec.fieldContext_SellingPlanGroup_id(ctx, field)
  117835. case "merchantCode":
  117836. return ec.fieldContext_SellingPlanGroup_merchantCode(ctx, field)
  117837. case "name":
  117838. return ec.fieldContext_SellingPlanGroup_name(ctx, field)
  117839. case "options":
  117840. return ec.fieldContext_SellingPlanGroup_options(ctx, field)
  117841. case "position":
  117842. return ec.fieldContext_SellingPlanGroup_position(ctx, field)
  117843. case "productCount":
  117844. return ec.fieldContext_SellingPlanGroup_productCount(ctx, field)
  117845. case "productVariantCount":
  117846. return ec.fieldContext_SellingPlanGroup_productVariantCount(ctx, field)
  117847. case "productVariants":
  117848. return ec.fieldContext_SellingPlanGroup_productVariants(ctx, field)
  117849. case "products":
  117850. return ec.fieldContext_SellingPlanGroup_products(ctx, field)
  117851. case "sellingPlans":
  117852. return ec.fieldContext_SellingPlanGroup_sellingPlans(ctx, field)
  117853. case "summary":
  117854. return ec.fieldContext_SellingPlanGroup_summary(ctx, field)
  117855. }
  117856. return nil, fmt.Errorf("no field named %q was found under type SellingPlanGroup", field.Name)
  117857. },
  117858. }
  117859. return fc, nil
  117860. }
  117861. func (ec *executionContext) _SellingPlanGroupUserError_code(ctx context.Context, field graphql.CollectedField, obj *SellingPlanGroupUserError) (ret graphql.Marshaler) {
  117862. fc, err := ec.fieldContext_SellingPlanGroupUserError_code(ctx, field)
  117863. if err != nil {
  117864. return graphql.Null
  117865. }
  117866. ctx = graphql.WithFieldContext(ctx, fc)
  117867. defer func() {
  117868. if r := recover(); r != nil {
  117869. ec.Error(ctx, ec.Recover(ctx, r))
  117870. ret = graphql.Null
  117871. }
  117872. }()
  117873. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  117874. ctx = rctx // use context from middleware stack in children
  117875. return obj.Code, nil
  117876. })
  117877. if err != nil {
  117878. ec.Error(ctx, err)
  117879. return graphql.Null
  117880. }
  117881. if resTmp == nil {
  117882. return graphql.Null
  117883. }
  117884. res := resTmp.(*SellingPlanGroupUserErrorCode)
  117885. fc.Result = res
  117886. return ec.marshalOSellingPlanGroupUserErrorCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanGroupUserErrorCode(ctx, field.Selections, res)
  117887. }
  117888. func (ec *executionContext) fieldContext_SellingPlanGroupUserError_code(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  117889. fc = &graphql.FieldContext{
  117890. Object: "SellingPlanGroupUserError",
  117891. Field: field,
  117892. IsMethod: false,
  117893. IsResolver: false,
  117894. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  117895. return nil, errors.New("field of type SellingPlanGroupUserErrorCode does not have child fields")
  117896. },
  117897. }
  117898. return fc, nil
  117899. }
  117900. func (ec *executionContext) _SellingPlanGroupUserError_field(ctx context.Context, field graphql.CollectedField, obj *SellingPlanGroupUserError) (ret graphql.Marshaler) {
  117901. fc, err := ec.fieldContext_SellingPlanGroupUserError_field(ctx, field)
  117902. if err != nil {
  117903. return graphql.Null
  117904. }
  117905. ctx = graphql.WithFieldContext(ctx, fc)
  117906. defer func() {
  117907. if r := recover(); r != nil {
  117908. ec.Error(ctx, ec.Recover(ctx, r))
  117909. ret = graphql.Null
  117910. }
  117911. }()
  117912. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  117913. ctx = rctx // use context from middleware stack in children
  117914. return obj.Field, nil
  117915. })
  117916. if err != nil {
  117917. ec.Error(ctx, err)
  117918. return graphql.Null
  117919. }
  117920. if resTmp == nil {
  117921. return graphql.Null
  117922. }
  117923. res := resTmp.([]string)
  117924. fc.Result = res
  117925. return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
  117926. }
  117927. func (ec *executionContext) fieldContext_SellingPlanGroupUserError_field(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  117928. fc = &graphql.FieldContext{
  117929. Object: "SellingPlanGroupUserError",
  117930. Field: field,
  117931. IsMethod: false,
  117932. IsResolver: false,
  117933. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  117934. return nil, errors.New("field of type String does not have child fields")
  117935. },
  117936. }
  117937. return fc, nil
  117938. }
  117939. func (ec *executionContext) _SellingPlanGroupUserError_message(ctx context.Context, field graphql.CollectedField, obj *SellingPlanGroupUserError) (ret graphql.Marshaler) {
  117940. fc, err := ec.fieldContext_SellingPlanGroupUserError_message(ctx, field)
  117941. if err != nil {
  117942. return graphql.Null
  117943. }
  117944. ctx = graphql.WithFieldContext(ctx, fc)
  117945. defer func() {
  117946. if r := recover(); r != nil {
  117947. ec.Error(ctx, ec.Recover(ctx, r))
  117948. ret = graphql.Null
  117949. }
  117950. }()
  117951. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  117952. ctx = rctx // use context from middleware stack in children
  117953. return obj.Message, nil
  117954. })
  117955. if err != nil {
  117956. ec.Error(ctx, err)
  117957. return graphql.Null
  117958. }
  117959. if resTmp == nil {
  117960. if !graphql.HasFieldError(ctx, fc) {
  117961. ec.Errorf(ctx, "must not be null")
  117962. }
  117963. return graphql.Null
  117964. }
  117965. res := resTmp.(string)
  117966. fc.Result = res
  117967. return ec.marshalNString2string(ctx, field.Selections, res)
  117968. }
  117969. func (ec *executionContext) fieldContext_SellingPlanGroupUserError_message(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  117970. fc = &graphql.FieldContext{
  117971. Object: "SellingPlanGroupUserError",
  117972. Field: field,
  117973. IsMethod: false,
  117974. IsResolver: false,
  117975. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  117976. return nil, errors.New("field of type String does not have child fields")
  117977. },
  117978. }
  117979. return fc, nil
  117980. }
  117981. func (ec *executionContext) _SellingPlanInventoryPolicy_reserve(ctx context.Context, field graphql.CollectedField, obj *SellingPlanInventoryPolicy) (ret graphql.Marshaler) {
  117982. fc, err := ec.fieldContext_SellingPlanInventoryPolicy_reserve(ctx, field)
  117983. if err != nil {
  117984. return graphql.Null
  117985. }
  117986. ctx = graphql.WithFieldContext(ctx, fc)
  117987. defer func() {
  117988. if r := recover(); r != nil {
  117989. ec.Error(ctx, ec.Recover(ctx, r))
  117990. ret = graphql.Null
  117991. }
  117992. }()
  117993. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  117994. ctx = rctx // use context from middleware stack in children
  117995. return obj.Reserve, nil
  117996. })
  117997. if err != nil {
  117998. ec.Error(ctx, err)
  117999. return graphql.Null
  118000. }
  118001. if resTmp == nil {
  118002. if !graphql.HasFieldError(ctx, fc) {
  118003. ec.Errorf(ctx, "must not be null")
  118004. }
  118005. return graphql.Null
  118006. }
  118007. res := resTmp.(SellingPlanReserve)
  118008. fc.Result = res
  118009. return ec.marshalNSellingPlanReserve2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanReserve(ctx, field.Selections, res)
  118010. }
  118011. func (ec *executionContext) fieldContext_SellingPlanInventoryPolicy_reserve(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  118012. fc = &graphql.FieldContext{
  118013. Object: "SellingPlanInventoryPolicy",
  118014. Field: field,
  118015. IsMethod: false,
  118016. IsResolver: false,
  118017. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  118018. return nil, errors.New("field of type SellingPlanReserve does not have child fields")
  118019. },
  118020. }
  118021. return fc, nil
  118022. }
  118023. func (ec *executionContext) _SellingPlanPricingPolicyPercentageValue_percentage(ctx context.Context, field graphql.CollectedField, obj *SellingPlanPricingPolicyPercentageValue) (ret graphql.Marshaler) {
  118024. fc, err := ec.fieldContext_SellingPlanPricingPolicyPercentageValue_percentage(ctx, field)
  118025. if err != nil {
  118026. return graphql.Null
  118027. }
  118028. ctx = graphql.WithFieldContext(ctx, fc)
  118029. defer func() {
  118030. if r := recover(); r != nil {
  118031. ec.Error(ctx, ec.Recover(ctx, r))
  118032. ret = graphql.Null
  118033. }
  118034. }()
  118035. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  118036. ctx = rctx // use context from middleware stack in children
  118037. return obj.Percentage, nil
  118038. })
  118039. if err != nil {
  118040. ec.Error(ctx, err)
  118041. return graphql.Null
  118042. }
  118043. if resTmp == nil {
  118044. if !graphql.HasFieldError(ctx, fc) {
  118045. ec.Errorf(ctx, "must not be null")
  118046. }
  118047. return graphql.Null
  118048. }
  118049. res := resTmp.(float64)
  118050. fc.Result = res
  118051. return ec.marshalNFloat2float64(ctx, field.Selections, res)
  118052. }
  118053. func (ec *executionContext) fieldContext_SellingPlanPricingPolicyPercentageValue_percentage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  118054. fc = &graphql.FieldContext{
  118055. Object: "SellingPlanPricingPolicyPercentageValue",
  118056. Field: field,
  118057. IsMethod: false,
  118058. IsResolver: false,
  118059. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  118060. return nil, errors.New("field of type Float does not have child fields")
  118061. },
  118062. }
  118063. return fc, nil
  118064. }
  118065. func (ec *executionContext) _SellingPlanRecurringBillingPolicy_anchors(ctx context.Context, field graphql.CollectedField, obj *SellingPlanRecurringBillingPolicy) (ret graphql.Marshaler) {
  118066. fc, err := ec.fieldContext_SellingPlanRecurringBillingPolicy_anchors(ctx, field)
  118067. if err != nil {
  118068. return graphql.Null
  118069. }
  118070. ctx = graphql.WithFieldContext(ctx, fc)
  118071. defer func() {
  118072. if r := recover(); r != nil {
  118073. ec.Error(ctx, ec.Recover(ctx, r))
  118074. ret = graphql.Null
  118075. }
  118076. }()
  118077. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  118078. ctx = rctx // use context from middleware stack in children
  118079. return obj.Anchors, nil
  118080. })
  118081. if err != nil {
  118082. ec.Error(ctx, err)
  118083. return graphql.Null
  118084. }
  118085. if resTmp == nil {
  118086. if !graphql.HasFieldError(ctx, fc) {
  118087. ec.Errorf(ctx, "must not be null")
  118088. }
  118089. return graphql.Null
  118090. }
  118091. res := resTmp.([]*SellingPlanAnchor)
  118092. fc.Result = res
  118093. return ec.marshalNSellingPlanAnchor2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanAnchorᚄ(ctx, field.Selections, res)
  118094. }
  118095. func (ec *executionContext) fieldContext_SellingPlanRecurringBillingPolicy_anchors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  118096. fc = &graphql.FieldContext{
  118097. Object: "SellingPlanRecurringBillingPolicy",
  118098. Field: field,
  118099. IsMethod: false,
  118100. IsResolver: false,
  118101. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  118102. switch field.Name {
  118103. case "cutoffDay":
  118104. return ec.fieldContext_SellingPlanAnchor_cutoffDay(ctx, field)
  118105. case "day":
  118106. return ec.fieldContext_SellingPlanAnchor_day(ctx, field)
  118107. case "month":
  118108. return ec.fieldContext_SellingPlanAnchor_month(ctx, field)
  118109. case "type":
  118110. return ec.fieldContext_SellingPlanAnchor_type(ctx, field)
  118111. }
  118112. return nil, fmt.Errorf("no field named %q was found under type SellingPlanAnchor", field.Name)
  118113. },
  118114. }
  118115. return fc, nil
  118116. }
  118117. func (ec *executionContext) _SellingPlanRecurringBillingPolicy_createdAt(ctx context.Context, field graphql.CollectedField, obj *SellingPlanRecurringBillingPolicy) (ret graphql.Marshaler) {
  118118. fc, err := ec.fieldContext_SellingPlanRecurringBillingPolicy_createdAt(ctx, field)
  118119. if err != nil {
  118120. return graphql.Null
  118121. }
  118122. ctx = graphql.WithFieldContext(ctx, fc)
  118123. defer func() {
  118124. if r := recover(); r != nil {
  118125. ec.Error(ctx, ec.Recover(ctx, r))
  118126. ret = graphql.Null
  118127. }
  118128. }()
  118129. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  118130. ctx = rctx // use context from middleware stack in children
  118131. return obj.CreatedAt, nil
  118132. })
  118133. if err != nil {
  118134. ec.Error(ctx, err)
  118135. return graphql.Null
  118136. }
  118137. if resTmp == nil {
  118138. if !graphql.HasFieldError(ctx, fc) {
  118139. ec.Errorf(ctx, "must not be null")
  118140. }
  118141. return graphql.Null
  118142. }
  118143. res := resTmp.(string)
  118144. fc.Result = res
  118145. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  118146. }
  118147. func (ec *executionContext) fieldContext_SellingPlanRecurringBillingPolicy_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  118148. fc = &graphql.FieldContext{
  118149. Object: "SellingPlanRecurringBillingPolicy",
  118150. Field: field,
  118151. IsMethod: false,
  118152. IsResolver: false,
  118153. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  118154. return nil, errors.New("field of type DateTime does not have child fields")
  118155. },
  118156. }
  118157. return fc, nil
  118158. }
  118159. func (ec *executionContext) _SellingPlanRecurringBillingPolicy_interval(ctx context.Context, field graphql.CollectedField, obj *SellingPlanRecurringBillingPolicy) (ret graphql.Marshaler) {
  118160. fc, err := ec.fieldContext_SellingPlanRecurringBillingPolicy_interval(ctx, field)
  118161. if err != nil {
  118162. return graphql.Null
  118163. }
  118164. ctx = graphql.WithFieldContext(ctx, fc)
  118165. defer func() {
  118166. if r := recover(); r != nil {
  118167. ec.Error(ctx, ec.Recover(ctx, r))
  118168. ret = graphql.Null
  118169. }
  118170. }()
  118171. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  118172. ctx = rctx // use context from middleware stack in children
  118173. return obj.Interval, nil
  118174. })
  118175. if err != nil {
  118176. ec.Error(ctx, err)
  118177. return graphql.Null
  118178. }
  118179. if resTmp == nil {
  118180. if !graphql.HasFieldError(ctx, fc) {
  118181. ec.Errorf(ctx, "must not be null")
  118182. }
  118183. return graphql.Null
  118184. }
  118185. res := resTmp.(SellingPlanInterval)
  118186. fc.Result = res
  118187. return ec.marshalNSellingPlanInterval2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanInterval(ctx, field.Selections, res)
  118188. }
  118189. func (ec *executionContext) fieldContext_SellingPlanRecurringBillingPolicy_interval(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  118190. fc = &graphql.FieldContext{
  118191. Object: "SellingPlanRecurringBillingPolicy",
  118192. Field: field,
  118193. IsMethod: false,
  118194. IsResolver: false,
  118195. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  118196. return nil, errors.New("field of type SellingPlanInterval does not have child fields")
  118197. },
  118198. }
  118199. return fc, nil
  118200. }
  118201. func (ec *executionContext) _SellingPlanRecurringBillingPolicy_intervalCount(ctx context.Context, field graphql.CollectedField, obj *SellingPlanRecurringBillingPolicy) (ret graphql.Marshaler) {
  118202. fc, err := ec.fieldContext_SellingPlanRecurringBillingPolicy_intervalCount(ctx, field)
  118203. if err != nil {
  118204. return graphql.Null
  118205. }
  118206. ctx = graphql.WithFieldContext(ctx, fc)
  118207. defer func() {
  118208. if r := recover(); r != nil {
  118209. ec.Error(ctx, ec.Recover(ctx, r))
  118210. ret = graphql.Null
  118211. }
  118212. }()
  118213. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  118214. ctx = rctx // use context from middleware stack in children
  118215. return obj.IntervalCount, nil
  118216. })
  118217. if err != nil {
  118218. ec.Error(ctx, err)
  118219. return graphql.Null
  118220. }
  118221. if resTmp == nil {
  118222. if !graphql.HasFieldError(ctx, fc) {
  118223. ec.Errorf(ctx, "must not be null")
  118224. }
  118225. return graphql.Null
  118226. }
  118227. res := resTmp.(int)
  118228. fc.Result = res
  118229. return ec.marshalNInt2int(ctx, field.Selections, res)
  118230. }
  118231. func (ec *executionContext) fieldContext_SellingPlanRecurringBillingPolicy_intervalCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  118232. fc = &graphql.FieldContext{
  118233. Object: "SellingPlanRecurringBillingPolicy",
  118234. Field: field,
  118235. IsMethod: false,
  118236. IsResolver: false,
  118237. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  118238. return nil, errors.New("field of type Int does not have child fields")
  118239. },
  118240. }
  118241. return fc, nil
  118242. }
  118243. func (ec *executionContext) _SellingPlanRecurringBillingPolicy_maxCycles(ctx context.Context, field graphql.CollectedField, obj *SellingPlanRecurringBillingPolicy) (ret graphql.Marshaler) {
  118244. fc, err := ec.fieldContext_SellingPlanRecurringBillingPolicy_maxCycles(ctx, field)
  118245. if err != nil {
  118246. return graphql.Null
  118247. }
  118248. ctx = graphql.WithFieldContext(ctx, fc)
  118249. defer func() {
  118250. if r := recover(); r != nil {
  118251. ec.Error(ctx, ec.Recover(ctx, r))
  118252. ret = graphql.Null
  118253. }
  118254. }()
  118255. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  118256. ctx = rctx // use context from middleware stack in children
  118257. return obj.MaxCycles, nil
  118258. })
  118259. if err != nil {
  118260. ec.Error(ctx, err)
  118261. return graphql.Null
  118262. }
  118263. if resTmp == nil {
  118264. return graphql.Null
  118265. }
  118266. res := resTmp.(*int)
  118267. fc.Result = res
  118268. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  118269. }
  118270. func (ec *executionContext) fieldContext_SellingPlanRecurringBillingPolicy_maxCycles(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  118271. fc = &graphql.FieldContext{
  118272. Object: "SellingPlanRecurringBillingPolicy",
  118273. Field: field,
  118274. IsMethod: false,
  118275. IsResolver: false,
  118276. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  118277. return nil, errors.New("field of type Int does not have child fields")
  118278. },
  118279. }
  118280. return fc, nil
  118281. }
  118282. func (ec *executionContext) _SellingPlanRecurringBillingPolicy_minCycles(ctx context.Context, field graphql.CollectedField, obj *SellingPlanRecurringBillingPolicy) (ret graphql.Marshaler) {
  118283. fc, err := ec.fieldContext_SellingPlanRecurringBillingPolicy_minCycles(ctx, field)
  118284. if err != nil {
  118285. return graphql.Null
  118286. }
  118287. ctx = graphql.WithFieldContext(ctx, fc)
  118288. defer func() {
  118289. if r := recover(); r != nil {
  118290. ec.Error(ctx, ec.Recover(ctx, r))
  118291. ret = graphql.Null
  118292. }
  118293. }()
  118294. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  118295. ctx = rctx // use context from middleware stack in children
  118296. return obj.MinCycles, nil
  118297. })
  118298. if err != nil {
  118299. ec.Error(ctx, err)
  118300. return graphql.Null
  118301. }
  118302. if resTmp == nil {
  118303. return graphql.Null
  118304. }
  118305. res := resTmp.(*int)
  118306. fc.Result = res
  118307. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  118308. }
  118309. func (ec *executionContext) fieldContext_SellingPlanRecurringBillingPolicy_minCycles(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  118310. fc = &graphql.FieldContext{
  118311. Object: "SellingPlanRecurringBillingPolicy",
  118312. Field: field,
  118313. IsMethod: false,
  118314. IsResolver: false,
  118315. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  118316. return nil, errors.New("field of type Int does not have child fields")
  118317. },
  118318. }
  118319. return fc, nil
  118320. }
  118321. func (ec *executionContext) _SellingPlanRecurringDeliveryPolicy_anchors(ctx context.Context, field graphql.CollectedField, obj *SellingPlanRecurringDeliveryPolicy) (ret graphql.Marshaler) {
  118322. fc, err := ec.fieldContext_SellingPlanRecurringDeliveryPolicy_anchors(ctx, field)
  118323. if err != nil {
  118324. return graphql.Null
  118325. }
  118326. ctx = graphql.WithFieldContext(ctx, fc)
  118327. defer func() {
  118328. if r := recover(); r != nil {
  118329. ec.Error(ctx, ec.Recover(ctx, r))
  118330. ret = graphql.Null
  118331. }
  118332. }()
  118333. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  118334. ctx = rctx // use context from middleware stack in children
  118335. return obj.Anchors, nil
  118336. })
  118337. if err != nil {
  118338. ec.Error(ctx, err)
  118339. return graphql.Null
  118340. }
  118341. if resTmp == nil {
  118342. if !graphql.HasFieldError(ctx, fc) {
  118343. ec.Errorf(ctx, "must not be null")
  118344. }
  118345. return graphql.Null
  118346. }
  118347. res := resTmp.([]*SellingPlanAnchor)
  118348. fc.Result = res
  118349. return ec.marshalNSellingPlanAnchor2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanAnchorᚄ(ctx, field.Selections, res)
  118350. }
  118351. func (ec *executionContext) fieldContext_SellingPlanRecurringDeliveryPolicy_anchors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  118352. fc = &graphql.FieldContext{
  118353. Object: "SellingPlanRecurringDeliveryPolicy",
  118354. Field: field,
  118355. IsMethod: false,
  118356. IsResolver: false,
  118357. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  118358. switch field.Name {
  118359. case "cutoffDay":
  118360. return ec.fieldContext_SellingPlanAnchor_cutoffDay(ctx, field)
  118361. case "day":
  118362. return ec.fieldContext_SellingPlanAnchor_day(ctx, field)
  118363. case "month":
  118364. return ec.fieldContext_SellingPlanAnchor_month(ctx, field)
  118365. case "type":
  118366. return ec.fieldContext_SellingPlanAnchor_type(ctx, field)
  118367. }
  118368. return nil, fmt.Errorf("no field named %q was found under type SellingPlanAnchor", field.Name)
  118369. },
  118370. }
  118371. return fc, nil
  118372. }
  118373. func (ec *executionContext) _SellingPlanRecurringDeliveryPolicy_createdAt(ctx context.Context, field graphql.CollectedField, obj *SellingPlanRecurringDeliveryPolicy) (ret graphql.Marshaler) {
  118374. fc, err := ec.fieldContext_SellingPlanRecurringDeliveryPolicy_createdAt(ctx, field)
  118375. if err != nil {
  118376. return graphql.Null
  118377. }
  118378. ctx = graphql.WithFieldContext(ctx, fc)
  118379. defer func() {
  118380. if r := recover(); r != nil {
  118381. ec.Error(ctx, ec.Recover(ctx, r))
  118382. ret = graphql.Null
  118383. }
  118384. }()
  118385. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  118386. ctx = rctx // use context from middleware stack in children
  118387. return obj.CreatedAt, nil
  118388. })
  118389. if err != nil {
  118390. ec.Error(ctx, err)
  118391. return graphql.Null
  118392. }
  118393. if resTmp == nil {
  118394. if !graphql.HasFieldError(ctx, fc) {
  118395. ec.Errorf(ctx, "must not be null")
  118396. }
  118397. return graphql.Null
  118398. }
  118399. res := resTmp.(string)
  118400. fc.Result = res
  118401. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  118402. }
  118403. func (ec *executionContext) fieldContext_SellingPlanRecurringDeliveryPolicy_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  118404. fc = &graphql.FieldContext{
  118405. Object: "SellingPlanRecurringDeliveryPolicy",
  118406. Field: field,
  118407. IsMethod: false,
  118408. IsResolver: false,
  118409. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  118410. return nil, errors.New("field of type DateTime does not have child fields")
  118411. },
  118412. }
  118413. return fc, nil
  118414. }
  118415. func (ec *executionContext) _SellingPlanRecurringDeliveryPolicy_cutoff(ctx context.Context, field graphql.CollectedField, obj *SellingPlanRecurringDeliveryPolicy) (ret graphql.Marshaler) {
  118416. fc, err := ec.fieldContext_SellingPlanRecurringDeliveryPolicy_cutoff(ctx, field)
  118417. if err != nil {
  118418. return graphql.Null
  118419. }
  118420. ctx = graphql.WithFieldContext(ctx, fc)
  118421. defer func() {
  118422. if r := recover(); r != nil {
  118423. ec.Error(ctx, ec.Recover(ctx, r))
  118424. ret = graphql.Null
  118425. }
  118426. }()
  118427. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  118428. ctx = rctx // use context from middleware stack in children
  118429. return obj.Cutoff, nil
  118430. })
  118431. if err != nil {
  118432. ec.Error(ctx, err)
  118433. return graphql.Null
  118434. }
  118435. if resTmp == nil {
  118436. return graphql.Null
  118437. }
  118438. res := resTmp.(*int)
  118439. fc.Result = res
  118440. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  118441. }
  118442. func (ec *executionContext) fieldContext_SellingPlanRecurringDeliveryPolicy_cutoff(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  118443. fc = &graphql.FieldContext{
  118444. Object: "SellingPlanRecurringDeliveryPolicy",
  118445. Field: field,
  118446. IsMethod: false,
  118447. IsResolver: false,
  118448. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  118449. return nil, errors.New("field of type Int does not have child fields")
  118450. },
  118451. }
  118452. return fc, nil
  118453. }
  118454. func (ec *executionContext) _SellingPlanRecurringDeliveryPolicy_intent(ctx context.Context, field graphql.CollectedField, obj *SellingPlanRecurringDeliveryPolicy) (ret graphql.Marshaler) {
  118455. fc, err := ec.fieldContext_SellingPlanRecurringDeliveryPolicy_intent(ctx, field)
  118456. if err != nil {
  118457. return graphql.Null
  118458. }
  118459. ctx = graphql.WithFieldContext(ctx, fc)
  118460. defer func() {
  118461. if r := recover(); r != nil {
  118462. ec.Error(ctx, ec.Recover(ctx, r))
  118463. ret = graphql.Null
  118464. }
  118465. }()
  118466. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  118467. ctx = rctx // use context from middleware stack in children
  118468. return obj.Intent, nil
  118469. })
  118470. if err != nil {
  118471. ec.Error(ctx, err)
  118472. return graphql.Null
  118473. }
  118474. if resTmp == nil {
  118475. if !graphql.HasFieldError(ctx, fc) {
  118476. ec.Errorf(ctx, "must not be null")
  118477. }
  118478. return graphql.Null
  118479. }
  118480. res := resTmp.(SellingPlanRecurringDeliveryPolicyIntent)
  118481. fc.Result = res
  118482. return ec.marshalNSellingPlanRecurringDeliveryPolicyIntent2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanRecurringDeliveryPolicyIntent(ctx, field.Selections, res)
  118483. }
  118484. func (ec *executionContext) fieldContext_SellingPlanRecurringDeliveryPolicy_intent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  118485. fc = &graphql.FieldContext{
  118486. Object: "SellingPlanRecurringDeliveryPolicy",
  118487. Field: field,
  118488. IsMethod: false,
  118489. IsResolver: false,
  118490. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  118491. return nil, errors.New("field of type SellingPlanRecurringDeliveryPolicyIntent does not have child fields")
  118492. },
  118493. }
  118494. return fc, nil
  118495. }
  118496. func (ec *executionContext) _SellingPlanRecurringDeliveryPolicy_interval(ctx context.Context, field graphql.CollectedField, obj *SellingPlanRecurringDeliveryPolicy) (ret graphql.Marshaler) {
  118497. fc, err := ec.fieldContext_SellingPlanRecurringDeliveryPolicy_interval(ctx, field)
  118498. if err != nil {
  118499. return graphql.Null
  118500. }
  118501. ctx = graphql.WithFieldContext(ctx, fc)
  118502. defer func() {
  118503. if r := recover(); r != nil {
  118504. ec.Error(ctx, ec.Recover(ctx, r))
  118505. ret = graphql.Null
  118506. }
  118507. }()
  118508. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  118509. ctx = rctx // use context from middleware stack in children
  118510. return obj.Interval, nil
  118511. })
  118512. if err != nil {
  118513. ec.Error(ctx, err)
  118514. return graphql.Null
  118515. }
  118516. if resTmp == nil {
  118517. if !graphql.HasFieldError(ctx, fc) {
  118518. ec.Errorf(ctx, "must not be null")
  118519. }
  118520. return graphql.Null
  118521. }
  118522. res := resTmp.(SellingPlanInterval)
  118523. fc.Result = res
  118524. return ec.marshalNSellingPlanInterval2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanInterval(ctx, field.Selections, res)
  118525. }
  118526. func (ec *executionContext) fieldContext_SellingPlanRecurringDeliveryPolicy_interval(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  118527. fc = &graphql.FieldContext{
  118528. Object: "SellingPlanRecurringDeliveryPolicy",
  118529. Field: field,
  118530. IsMethod: false,
  118531. IsResolver: false,
  118532. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  118533. return nil, errors.New("field of type SellingPlanInterval does not have child fields")
  118534. },
  118535. }
  118536. return fc, nil
  118537. }
  118538. func (ec *executionContext) _SellingPlanRecurringDeliveryPolicy_intervalCount(ctx context.Context, field graphql.CollectedField, obj *SellingPlanRecurringDeliveryPolicy) (ret graphql.Marshaler) {
  118539. fc, err := ec.fieldContext_SellingPlanRecurringDeliveryPolicy_intervalCount(ctx, field)
  118540. if err != nil {
  118541. return graphql.Null
  118542. }
  118543. ctx = graphql.WithFieldContext(ctx, fc)
  118544. defer func() {
  118545. if r := recover(); r != nil {
  118546. ec.Error(ctx, ec.Recover(ctx, r))
  118547. ret = graphql.Null
  118548. }
  118549. }()
  118550. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  118551. ctx = rctx // use context from middleware stack in children
  118552. return obj.IntervalCount, nil
  118553. })
  118554. if err != nil {
  118555. ec.Error(ctx, err)
  118556. return graphql.Null
  118557. }
  118558. if resTmp == nil {
  118559. if !graphql.HasFieldError(ctx, fc) {
  118560. ec.Errorf(ctx, "must not be null")
  118561. }
  118562. return graphql.Null
  118563. }
  118564. res := resTmp.(int)
  118565. fc.Result = res
  118566. return ec.marshalNInt2int(ctx, field.Selections, res)
  118567. }
  118568. func (ec *executionContext) fieldContext_SellingPlanRecurringDeliveryPolicy_intervalCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  118569. fc = &graphql.FieldContext{
  118570. Object: "SellingPlanRecurringDeliveryPolicy",
  118571. Field: field,
  118572. IsMethod: false,
  118573. IsResolver: false,
  118574. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  118575. return nil, errors.New("field of type Int does not have child fields")
  118576. },
  118577. }
  118578. return fc, nil
  118579. }
  118580. func (ec *executionContext) _SellingPlanRecurringDeliveryPolicy_preAnchorBehavior(ctx context.Context, field graphql.CollectedField, obj *SellingPlanRecurringDeliveryPolicy) (ret graphql.Marshaler) {
  118581. fc, err := ec.fieldContext_SellingPlanRecurringDeliveryPolicy_preAnchorBehavior(ctx, field)
  118582. if err != nil {
  118583. return graphql.Null
  118584. }
  118585. ctx = graphql.WithFieldContext(ctx, fc)
  118586. defer func() {
  118587. if r := recover(); r != nil {
  118588. ec.Error(ctx, ec.Recover(ctx, r))
  118589. ret = graphql.Null
  118590. }
  118591. }()
  118592. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  118593. ctx = rctx // use context from middleware stack in children
  118594. return obj.PreAnchorBehavior, nil
  118595. })
  118596. if err != nil {
  118597. ec.Error(ctx, err)
  118598. return graphql.Null
  118599. }
  118600. if resTmp == nil {
  118601. if !graphql.HasFieldError(ctx, fc) {
  118602. ec.Errorf(ctx, "must not be null")
  118603. }
  118604. return graphql.Null
  118605. }
  118606. res := resTmp.(SellingPlanRecurringDeliveryPolicyPreAnchorBehavior)
  118607. fc.Result = res
  118608. return ec.marshalNSellingPlanRecurringDeliveryPolicyPreAnchorBehavior2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanRecurringDeliveryPolicyPreAnchorBehavior(ctx, field.Selections, res)
  118609. }
  118610. func (ec *executionContext) fieldContext_SellingPlanRecurringDeliveryPolicy_preAnchorBehavior(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  118611. fc = &graphql.FieldContext{
  118612. Object: "SellingPlanRecurringDeliveryPolicy",
  118613. Field: field,
  118614. IsMethod: false,
  118615. IsResolver: false,
  118616. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  118617. return nil, errors.New("field of type SellingPlanRecurringDeliveryPolicyPreAnchorBehavior does not have child fields")
  118618. },
  118619. }
  118620. return fc, nil
  118621. }
  118622. func (ec *executionContext) _SellingPlanRecurringPricingPolicy_adjustmentType(ctx context.Context, field graphql.CollectedField, obj *SellingPlanRecurringPricingPolicy) (ret graphql.Marshaler) {
  118623. fc, err := ec.fieldContext_SellingPlanRecurringPricingPolicy_adjustmentType(ctx, field)
  118624. if err != nil {
  118625. return graphql.Null
  118626. }
  118627. ctx = graphql.WithFieldContext(ctx, fc)
  118628. defer func() {
  118629. if r := recover(); r != nil {
  118630. ec.Error(ctx, ec.Recover(ctx, r))
  118631. ret = graphql.Null
  118632. }
  118633. }()
  118634. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  118635. ctx = rctx // use context from middleware stack in children
  118636. return obj.AdjustmentType, nil
  118637. })
  118638. if err != nil {
  118639. ec.Error(ctx, err)
  118640. return graphql.Null
  118641. }
  118642. if resTmp == nil {
  118643. if !graphql.HasFieldError(ctx, fc) {
  118644. ec.Errorf(ctx, "must not be null")
  118645. }
  118646. return graphql.Null
  118647. }
  118648. res := resTmp.(SellingPlanPricingPolicyAdjustmentType)
  118649. fc.Result = res
  118650. return ec.marshalNSellingPlanPricingPolicyAdjustmentType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanPricingPolicyAdjustmentType(ctx, field.Selections, res)
  118651. }
  118652. func (ec *executionContext) fieldContext_SellingPlanRecurringPricingPolicy_adjustmentType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  118653. fc = &graphql.FieldContext{
  118654. Object: "SellingPlanRecurringPricingPolicy",
  118655. Field: field,
  118656. IsMethod: false,
  118657. IsResolver: false,
  118658. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  118659. return nil, errors.New("field of type SellingPlanPricingPolicyAdjustmentType does not have child fields")
  118660. },
  118661. }
  118662. return fc, nil
  118663. }
  118664. func (ec *executionContext) _SellingPlanRecurringPricingPolicy_adjustmentValue(ctx context.Context, field graphql.CollectedField, obj *SellingPlanRecurringPricingPolicy) (ret graphql.Marshaler) {
  118665. fc, err := ec.fieldContext_SellingPlanRecurringPricingPolicy_adjustmentValue(ctx, field)
  118666. if err != nil {
  118667. return graphql.Null
  118668. }
  118669. ctx = graphql.WithFieldContext(ctx, fc)
  118670. defer func() {
  118671. if r := recover(); r != nil {
  118672. ec.Error(ctx, ec.Recover(ctx, r))
  118673. ret = graphql.Null
  118674. }
  118675. }()
  118676. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  118677. ctx = rctx // use context from middleware stack in children
  118678. return obj.AdjustmentValue, nil
  118679. })
  118680. if err != nil {
  118681. ec.Error(ctx, err)
  118682. return graphql.Null
  118683. }
  118684. if resTmp == nil {
  118685. if !graphql.HasFieldError(ctx, fc) {
  118686. ec.Errorf(ctx, "must not be null")
  118687. }
  118688. return graphql.Null
  118689. }
  118690. res := resTmp.(SellingPlanPricingPolicyAdjustmentValue)
  118691. fc.Result = res
  118692. return ec.marshalNSellingPlanPricingPolicyAdjustmentValue2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanPricingPolicyAdjustmentValue(ctx, field.Selections, res)
  118693. }
  118694. func (ec *executionContext) fieldContext_SellingPlanRecurringPricingPolicy_adjustmentValue(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  118695. fc = &graphql.FieldContext{
  118696. Object: "SellingPlanRecurringPricingPolicy",
  118697. Field: field,
  118698. IsMethod: false,
  118699. IsResolver: false,
  118700. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  118701. return nil, errors.New("field of type SellingPlanPricingPolicyAdjustmentValue does not have child fields")
  118702. },
  118703. }
  118704. return fc, nil
  118705. }
  118706. func (ec *executionContext) _SellingPlanRecurringPricingPolicy_afterCycle(ctx context.Context, field graphql.CollectedField, obj *SellingPlanRecurringPricingPolicy) (ret graphql.Marshaler) {
  118707. fc, err := ec.fieldContext_SellingPlanRecurringPricingPolicy_afterCycle(ctx, field)
  118708. if err != nil {
  118709. return graphql.Null
  118710. }
  118711. ctx = graphql.WithFieldContext(ctx, fc)
  118712. defer func() {
  118713. if r := recover(); r != nil {
  118714. ec.Error(ctx, ec.Recover(ctx, r))
  118715. ret = graphql.Null
  118716. }
  118717. }()
  118718. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  118719. ctx = rctx // use context from middleware stack in children
  118720. return obj.AfterCycle, nil
  118721. })
  118722. if err != nil {
  118723. ec.Error(ctx, err)
  118724. return graphql.Null
  118725. }
  118726. if resTmp == nil {
  118727. return graphql.Null
  118728. }
  118729. res := resTmp.(*int)
  118730. fc.Result = res
  118731. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  118732. }
  118733. func (ec *executionContext) fieldContext_SellingPlanRecurringPricingPolicy_afterCycle(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  118734. fc = &graphql.FieldContext{
  118735. Object: "SellingPlanRecurringPricingPolicy",
  118736. Field: field,
  118737. IsMethod: false,
  118738. IsResolver: false,
  118739. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  118740. return nil, errors.New("field of type Int does not have child fields")
  118741. },
  118742. }
  118743. return fc, nil
  118744. }
  118745. func (ec *executionContext) _SellingPlanRecurringPricingPolicy_createdAt(ctx context.Context, field graphql.CollectedField, obj *SellingPlanRecurringPricingPolicy) (ret graphql.Marshaler) {
  118746. fc, err := ec.fieldContext_SellingPlanRecurringPricingPolicy_createdAt(ctx, field)
  118747. if err != nil {
  118748. return graphql.Null
  118749. }
  118750. ctx = graphql.WithFieldContext(ctx, fc)
  118751. defer func() {
  118752. if r := recover(); r != nil {
  118753. ec.Error(ctx, ec.Recover(ctx, r))
  118754. ret = graphql.Null
  118755. }
  118756. }()
  118757. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  118758. ctx = rctx // use context from middleware stack in children
  118759. return obj.CreatedAt, nil
  118760. })
  118761. if err != nil {
  118762. ec.Error(ctx, err)
  118763. return graphql.Null
  118764. }
  118765. if resTmp == nil {
  118766. if !graphql.HasFieldError(ctx, fc) {
  118767. ec.Errorf(ctx, "must not be null")
  118768. }
  118769. return graphql.Null
  118770. }
  118771. res := resTmp.(string)
  118772. fc.Result = res
  118773. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  118774. }
  118775. func (ec *executionContext) fieldContext_SellingPlanRecurringPricingPolicy_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  118776. fc = &graphql.FieldContext{
  118777. Object: "SellingPlanRecurringPricingPolicy",
  118778. Field: field,
  118779. IsMethod: false,
  118780. IsResolver: false,
  118781. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  118782. return nil, errors.New("field of type DateTime does not have child fields")
  118783. },
  118784. }
  118785. return fc, nil
  118786. }
  118787. func (ec *executionContext) _ShippingLine_carrierIdentifier(ctx context.Context, field graphql.CollectedField, obj *ShippingLine) (ret graphql.Marshaler) {
  118788. fc, err := ec.fieldContext_ShippingLine_carrierIdentifier(ctx, field)
  118789. if err != nil {
  118790. return graphql.Null
  118791. }
  118792. ctx = graphql.WithFieldContext(ctx, fc)
  118793. defer func() {
  118794. if r := recover(); r != nil {
  118795. ec.Error(ctx, ec.Recover(ctx, r))
  118796. ret = graphql.Null
  118797. }
  118798. }()
  118799. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  118800. ctx = rctx // use context from middleware stack in children
  118801. return obj.CarrierIdentifier, nil
  118802. })
  118803. if err != nil {
  118804. ec.Error(ctx, err)
  118805. return graphql.Null
  118806. }
  118807. if resTmp == nil {
  118808. return graphql.Null
  118809. }
  118810. res := resTmp.(*string)
  118811. fc.Result = res
  118812. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  118813. }
  118814. func (ec *executionContext) fieldContext_ShippingLine_carrierIdentifier(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  118815. fc = &graphql.FieldContext{
  118816. Object: "ShippingLine",
  118817. Field: field,
  118818. IsMethod: false,
  118819. IsResolver: false,
  118820. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  118821. return nil, errors.New("field of type String does not have child fields")
  118822. },
  118823. }
  118824. return fc, nil
  118825. }
  118826. func (ec *executionContext) _ShippingLine_code(ctx context.Context, field graphql.CollectedField, obj *ShippingLine) (ret graphql.Marshaler) {
  118827. fc, err := ec.fieldContext_ShippingLine_code(ctx, field)
  118828. if err != nil {
  118829. return graphql.Null
  118830. }
  118831. ctx = graphql.WithFieldContext(ctx, fc)
  118832. defer func() {
  118833. if r := recover(); r != nil {
  118834. ec.Error(ctx, ec.Recover(ctx, r))
  118835. ret = graphql.Null
  118836. }
  118837. }()
  118838. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  118839. ctx = rctx // use context from middleware stack in children
  118840. return obj.Code, nil
  118841. })
  118842. if err != nil {
  118843. ec.Error(ctx, err)
  118844. return graphql.Null
  118845. }
  118846. if resTmp == nil {
  118847. return graphql.Null
  118848. }
  118849. res := resTmp.(*string)
  118850. fc.Result = res
  118851. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  118852. }
  118853. func (ec *executionContext) fieldContext_ShippingLine_code(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  118854. fc = &graphql.FieldContext{
  118855. Object: "ShippingLine",
  118856. Field: field,
  118857. IsMethod: false,
  118858. IsResolver: false,
  118859. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  118860. return nil, errors.New("field of type String does not have child fields")
  118861. },
  118862. }
  118863. return fc, nil
  118864. }
  118865. func (ec *executionContext) _ShippingLine_custom(ctx context.Context, field graphql.CollectedField, obj *ShippingLine) (ret graphql.Marshaler) {
  118866. fc, err := ec.fieldContext_ShippingLine_custom(ctx, field)
  118867. if err != nil {
  118868. return graphql.Null
  118869. }
  118870. ctx = graphql.WithFieldContext(ctx, fc)
  118871. defer func() {
  118872. if r := recover(); r != nil {
  118873. ec.Error(ctx, ec.Recover(ctx, r))
  118874. ret = graphql.Null
  118875. }
  118876. }()
  118877. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  118878. ctx = rctx // use context from middleware stack in children
  118879. return obj.Custom, nil
  118880. })
  118881. if err != nil {
  118882. ec.Error(ctx, err)
  118883. return graphql.Null
  118884. }
  118885. if resTmp == nil {
  118886. if !graphql.HasFieldError(ctx, fc) {
  118887. ec.Errorf(ctx, "must not be null")
  118888. }
  118889. return graphql.Null
  118890. }
  118891. res := resTmp.(bool)
  118892. fc.Result = res
  118893. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  118894. }
  118895. func (ec *executionContext) fieldContext_ShippingLine_custom(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  118896. fc = &graphql.FieldContext{
  118897. Object: "ShippingLine",
  118898. Field: field,
  118899. IsMethod: false,
  118900. IsResolver: false,
  118901. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  118902. return nil, errors.New("field of type Boolean does not have child fields")
  118903. },
  118904. }
  118905. return fc, nil
  118906. }
  118907. func (ec *executionContext) _ShippingLine_deliveryCategory(ctx context.Context, field graphql.CollectedField, obj *ShippingLine) (ret graphql.Marshaler) {
  118908. fc, err := ec.fieldContext_ShippingLine_deliveryCategory(ctx, field)
  118909. if err != nil {
  118910. return graphql.Null
  118911. }
  118912. ctx = graphql.WithFieldContext(ctx, fc)
  118913. defer func() {
  118914. if r := recover(); r != nil {
  118915. ec.Error(ctx, ec.Recover(ctx, r))
  118916. ret = graphql.Null
  118917. }
  118918. }()
  118919. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  118920. ctx = rctx // use context from middleware stack in children
  118921. return obj.DeliveryCategory, nil
  118922. })
  118923. if err != nil {
  118924. ec.Error(ctx, err)
  118925. return graphql.Null
  118926. }
  118927. if resTmp == nil {
  118928. return graphql.Null
  118929. }
  118930. res := resTmp.(*string)
  118931. fc.Result = res
  118932. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  118933. }
  118934. func (ec *executionContext) fieldContext_ShippingLine_deliveryCategory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  118935. fc = &graphql.FieldContext{
  118936. Object: "ShippingLine",
  118937. Field: field,
  118938. IsMethod: false,
  118939. IsResolver: false,
  118940. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  118941. return nil, errors.New("field of type String does not have child fields")
  118942. },
  118943. }
  118944. return fc, nil
  118945. }
  118946. func (ec *executionContext) _ShippingLine_discountAllocations(ctx context.Context, field graphql.CollectedField, obj *ShippingLine) (ret graphql.Marshaler) {
  118947. fc, err := ec.fieldContext_ShippingLine_discountAllocations(ctx, field)
  118948. if err != nil {
  118949. return graphql.Null
  118950. }
  118951. ctx = graphql.WithFieldContext(ctx, fc)
  118952. defer func() {
  118953. if r := recover(); r != nil {
  118954. ec.Error(ctx, ec.Recover(ctx, r))
  118955. ret = graphql.Null
  118956. }
  118957. }()
  118958. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  118959. ctx = rctx // use context from middleware stack in children
  118960. return obj.DiscountAllocations, nil
  118961. })
  118962. if err != nil {
  118963. ec.Error(ctx, err)
  118964. return graphql.Null
  118965. }
  118966. if resTmp == nil {
  118967. if !graphql.HasFieldError(ctx, fc) {
  118968. ec.Errorf(ctx, "must not be null")
  118969. }
  118970. return graphql.Null
  118971. }
  118972. res := resTmp.([]*DiscountAllocation)
  118973. fc.Result = res
  118974. return ec.marshalNDiscountAllocation2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountAllocationᚄ(ctx, field.Selections, res)
  118975. }
  118976. func (ec *executionContext) fieldContext_ShippingLine_discountAllocations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  118977. fc = &graphql.FieldContext{
  118978. Object: "ShippingLine",
  118979. Field: field,
  118980. IsMethod: false,
  118981. IsResolver: false,
  118982. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  118983. switch field.Name {
  118984. case "allocatedAmountSet":
  118985. return ec.fieldContext_DiscountAllocation_allocatedAmountSet(ctx, field)
  118986. case "discountApplication":
  118987. return ec.fieldContext_DiscountAllocation_discountApplication(ctx, field)
  118988. }
  118989. return nil, fmt.Errorf("no field named %q was found under type DiscountAllocation", field.Name)
  118990. },
  118991. }
  118992. return fc, nil
  118993. }
  118994. func (ec *executionContext) _ShippingLine_discountedPriceSet(ctx context.Context, field graphql.CollectedField, obj *ShippingLine) (ret graphql.Marshaler) {
  118995. fc, err := ec.fieldContext_ShippingLine_discountedPriceSet(ctx, field)
  118996. if err != nil {
  118997. return graphql.Null
  118998. }
  118999. ctx = graphql.WithFieldContext(ctx, fc)
  119000. defer func() {
  119001. if r := recover(); r != nil {
  119002. ec.Error(ctx, ec.Recover(ctx, r))
  119003. ret = graphql.Null
  119004. }
  119005. }()
  119006. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  119007. ctx = rctx // use context from middleware stack in children
  119008. return obj.DiscountedPriceSet, nil
  119009. })
  119010. if err != nil {
  119011. ec.Error(ctx, err)
  119012. return graphql.Null
  119013. }
  119014. if resTmp == nil {
  119015. if !graphql.HasFieldError(ctx, fc) {
  119016. ec.Errorf(ctx, "must not be null")
  119017. }
  119018. return graphql.Null
  119019. }
  119020. res := resTmp.(*MoneyBag)
  119021. fc.Result = res
  119022. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  119023. }
  119024. func (ec *executionContext) fieldContext_ShippingLine_discountedPriceSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  119025. fc = &graphql.FieldContext{
  119026. Object: "ShippingLine",
  119027. Field: field,
  119028. IsMethod: false,
  119029. IsResolver: false,
  119030. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  119031. switch field.Name {
  119032. case "presentmentMoney":
  119033. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  119034. case "shopMoney":
  119035. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  119036. }
  119037. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  119038. },
  119039. }
  119040. return fc, nil
  119041. }
  119042. func (ec *executionContext) _ShippingLine_id(ctx context.Context, field graphql.CollectedField, obj *ShippingLine) (ret graphql.Marshaler) {
  119043. fc, err := ec.fieldContext_ShippingLine_id(ctx, field)
  119044. if err != nil {
  119045. return graphql.Null
  119046. }
  119047. ctx = graphql.WithFieldContext(ctx, fc)
  119048. defer func() {
  119049. if r := recover(); r != nil {
  119050. ec.Error(ctx, ec.Recover(ctx, r))
  119051. ret = graphql.Null
  119052. }
  119053. }()
  119054. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  119055. ctx = rctx // use context from middleware stack in children
  119056. return obj.ID, nil
  119057. })
  119058. if err != nil {
  119059. ec.Error(ctx, err)
  119060. return graphql.Null
  119061. }
  119062. if resTmp == nil {
  119063. return graphql.Null
  119064. }
  119065. res := resTmp.(*string)
  119066. fc.Result = res
  119067. return ec.marshalOID2ᚖstring(ctx, field.Selections, res)
  119068. }
  119069. func (ec *executionContext) fieldContext_ShippingLine_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  119070. fc = &graphql.FieldContext{
  119071. Object: "ShippingLine",
  119072. Field: field,
  119073. IsMethod: false,
  119074. IsResolver: false,
  119075. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  119076. return nil, errors.New("field of type ID does not have child fields")
  119077. },
  119078. }
  119079. return fc, nil
  119080. }
  119081. func (ec *executionContext) _ShippingLine_originalPriceSet(ctx context.Context, field graphql.CollectedField, obj *ShippingLine) (ret graphql.Marshaler) {
  119082. fc, err := ec.fieldContext_ShippingLine_originalPriceSet(ctx, field)
  119083. if err != nil {
  119084. return graphql.Null
  119085. }
  119086. ctx = graphql.WithFieldContext(ctx, fc)
  119087. defer func() {
  119088. if r := recover(); r != nil {
  119089. ec.Error(ctx, ec.Recover(ctx, r))
  119090. ret = graphql.Null
  119091. }
  119092. }()
  119093. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  119094. ctx = rctx // use context from middleware stack in children
  119095. return obj.OriginalPriceSet, nil
  119096. })
  119097. if err != nil {
  119098. ec.Error(ctx, err)
  119099. return graphql.Null
  119100. }
  119101. if resTmp == nil {
  119102. if !graphql.HasFieldError(ctx, fc) {
  119103. ec.Errorf(ctx, "must not be null")
  119104. }
  119105. return graphql.Null
  119106. }
  119107. res := resTmp.(*MoneyBag)
  119108. fc.Result = res
  119109. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  119110. }
  119111. func (ec *executionContext) fieldContext_ShippingLine_originalPriceSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  119112. fc = &graphql.FieldContext{
  119113. Object: "ShippingLine",
  119114. Field: field,
  119115. IsMethod: false,
  119116. IsResolver: false,
  119117. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  119118. switch field.Name {
  119119. case "presentmentMoney":
  119120. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  119121. case "shopMoney":
  119122. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  119123. }
  119124. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  119125. },
  119126. }
  119127. return fc, nil
  119128. }
  119129. func (ec *executionContext) _ShippingLine_phone(ctx context.Context, field graphql.CollectedField, obj *ShippingLine) (ret graphql.Marshaler) {
  119130. fc, err := ec.fieldContext_ShippingLine_phone(ctx, field)
  119131. if err != nil {
  119132. return graphql.Null
  119133. }
  119134. ctx = graphql.WithFieldContext(ctx, fc)
  119135. defer func() {
  119136. if r := recover(); r != nil {
  119137. ec.Error(ctx, ec.Recover(ctx, r))
  119138. ret = graphql.Null
  119139. }
  119140. }()
  119141. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  119142. ctx = rctx // use context from middleware stack in children
  119143. return obj.Phone, nil
  119144. })
  119145. if err != nil {
  119146. ec.Error(ctx, err)
  119147. return graphql.Null
  119148. }
  119149. if resTmp == nil {
  119150. return graphql.Null
  119151. }
  119152. res := resTmp.(*string)
  119153. fc.Result = res
  119154. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  119155. }
  119156. func (ec *executionContext) fieldContext_ShippingLine_phone(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  119157. fc = &graphql.FieldContext{
  119158. Object: "ShippingLine",
  119159. Field: field,
  119160. IsMethod: false,
  119161. IsResolver: false,
  119162. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  119163. return nil, errors.New("field of type String does not have child fields")
  119164. },
  119165. }
  119166. return fc, nil
  119167. }
  119168. func (ec *executionContext) _ShippingLine_requestedFulfillmentService(ctx context.Context, field graphql.CollectedField, obj *ShippingLine) (ret graphql.Marshaler) {
  119169. fc, err := ec.fieldContext_ShippingLine_requestedFulfillmentService(ctx, field)
  119170. if err != nil {
  119171. return graphql.Null
  119172. }
  119173. ctx = graphql.WithFieldContext(ctx, fc)
  119174. defer func() {
  119175. if r := recover(); r != nil {
  119176. ec.Error(ctx, ec.Recover(ctx, r))
  119177. ret = graphql.Null
  119178. }
  119179. }()
  119180. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  119181. ctx = rctx // use context from middleware stack in children
  119182. return obj.RequestedFulfillmentService, nil
  119183. })
  119184. if err != nil {
  119185. ec.Error(ctx, err)
  119186. return graphql.Null
  119187. }
  119188. if resTmp == nil {
  119189. return graphql.Null
  119190. }
  119191. res := resTmp.(*FulfillmentService)
  119192. fc.Result = res
  119193. return ec.marshalOFulfillmentService2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentService(ctx, field.Selections, res)
  119194. }
  119195. func (ec *executionContext) fieldContext_ShippingLine_requestedFulfillmentService(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  119196. fc = &graphql.FieldContext{
  119197. Object: "ShippingLine",
  119198. Field: field,
  119199. IsMethod: false,
  119200. IsResolver: false,
  119201. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  119202. switch field.Name {
  119203. case "callbackUrl":
  119204. return ec.fieldContext_FulfillmentService_callbackUrl(ctx, field)
  119205. case "fulfillmentOrdersOptIn":
  119206. return ec.fieldContext_FulfillmentService_fulfillmentOrdersOptIn(ctx, field)
  119207. case "handle":
  119208. return ec.fieldContext_FulfillmentService_handle(ctx, field)
  119209. case "id":
  119210. return ec.fieldContext_FulfillmentService_id(ctx, field)
  119211. case "inventoryManagement":
  119212. return ec.fieldContext_FulfillmentService_inventoryManagement(ctx, field)
  119213. case "location":
  119214. return ec.fieldContext_FulfillmentService_location(ctx, field)
  119215. case "permitsSkuSharing":
  119216. return ec.fieldContext_FulfillmentService_permitsSkuSharing(ctx, field)
  119217. case "productBased":
  119218. return ec.fieldContext_FulfillmentService_productBased(ctx, field)
  119219. case "serviceName":
  119220. return ec.fieldContext_FulfillmentService_serviceName(ctx, field)
  119221. case "type":
  119222. return ec.fieldContext_FulfillmentService_type(ctx, field)
  119223. }
  119224. return nil, fmt.Errorf("no field named %q was found under type FulfillmentService", field.Name)
  119225. },
  119226. }
  119227. return fc, nil
  119228. }
  119229. func (ec *executionContext) _ShippingLine_shippingRateHandle(ctx context.Context, field graphql.CollectedField, obj *ShippingLine) (ret graphql.Marshaler) {
  119230. fc, err := ec.fieldContext_ShippingLine_shippingRateHandle(ctx, field)
  119231. if err != nil {
  119232. return graphql.Null
  119233. }
  119234. ctx = graphql.WithFieldContext(ctx, fc)
  119235. defer func() {
  119236. if r := recover(); r != nil {
  119237. ec.Error(ctx, ec.Recover(ctx, r))
  119238. ret = graphql.Null
  119239. }
  119240. }()
  119241. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  119242. ctx = rctx // use context from middleware stack in children
  119243. return obj.ShippingRateHandle, nil
  119244. })
  119245. if err != nil {
  119246. ec.Error(ctx, err)
  119247. return graphql.Null
  119248. }
  119249. if resTmp == nil {
  119250. return graphql.Null
  119251. }
  119252. res := resTmp.(*string)
  119253. fc.Result = res
  119254. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  119255. }
  119256. func (ec *executionContext) fieldContext_ShippingLine_shippingRateHandle(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  119257. fc = &graphql.FieldContext{
  119258. Object: "ShippingLine",
  119259. Field: field,
  119260. IsMethod: false,
  119261. IsResolver: false,
  119262. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  119263. return nil, errors.New("field of type String does not have child fields")
  119264. },
  119265. }
  119266. return fc, nil
  119267. }
  119268. func (ec *executionContext) _ShippingLine_source(ctx context.Context, field graphql.CollectedField, obj *ShippingLine) (ret graphql.Marshaler) {
  119269. fc, err := ec.fieldContext_ShippingLine_source(ctx, field)
  119270. if err != nil {
  119271. return graphql.Null
  119272. }
  119273. ctx = graphql.WithFieldContext(ctx, fc)
  119274. defer func() {
  119275. if r := recover(); r != nil {
  119276. ec.Error(ctx, ec.Recover(ctx, r))
  119277. ret = graphql.Null
  119278. }
  119279. }()
  119280. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  119281. ctx = rctx // use context from middleware stack in children
  119282. return obj.Source, nil
  119283. })
  119284. if err != nil {
  119285. ec.Error(ctx, err)
  119286. return graphql.Null
  119287. }
  119288. if resTmp == nil {
  119289. return graphql.Null
  119290. }
  119291. res := resTmp.(*string)
  119292. fc.Result = res
  119293. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  119294. }
  119295. func (ec *executionContext) fieldContext_ShippingLine_source(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  119296. fc = &graphql.FieldContext{
  119297. Object: "ShippingLine",
  119298. Field: field,
  119299. IsMethod: false,
  119300. IsResolver: false,
  119301. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  119302. return nil, errors.New("field of type String does not have child fields")
  119303. },
  119304. }
  119305. return fc, nil
  119306. }
  119307. func (ec *executionContext) _ShippingLine_taxLines(ctx context.Context, field graphql.CollectedField, obj *ShippingLine) (ret graphql.Marshaler) {
  119308. fc, err := ec.fieldContext_ShippingLine_taxLines(ctx, field)
  119309. if err != nil {
  119310. return graphql.Null
  119311. }
  119312. ctx = graphql.WithFieldContext(ctx, fc)
  119313. defer func() {
  119314. if r := recover(); r != nil {
  119315. ec.Error(ctx, ec.Recover(ctx, r))
  119316. ret = graphql.Null
  119317. }
  119318. }()
  119319. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  119320. ctx = rctx // use context from middleware stack in children
  119321. return obj.TaxLines, nil
  119322. })
  119323. if err != nil {
  119324. ec.Error(ctx, err)
  119325. return graphql.Null
  119326. }
  119327. if resTmp == nil {
  119328. if !graphql.HasFieldError(ctx, fc) {
  119329. ec.Errorf(ctx, "must not be null")
  119330. }
  119331. return graphql.Null
  119332. }
  119333. res := resTmp.([]*TaxLine)
  119334. fc.Result = res
  119335. return ec.marshalNTaxLine2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐTaxLineᚄ(ctx, field.Selections, res)
  119336. }
  119337. func (ec *executionContext) fieldContext_ShippingLine_taxLines(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  119338. fc = &graphql.FieldContext{
  119339. Object: "ShippingLine",
  119340. Field: field,
  119341. IsMethod: false,
  119342. IsResolver: false,
  119343. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  119344. switch field.Name {
  119345. case "channelLiable":
  119346. return ec.fieldContext_TaxLine_channelLiable(ctx, field)
  119347. case "priceSet":
  119348. return ec.fieldContext_TaxLine_priceSet(ctx, field)
  119349. case "rate":
  119350. return ec.fieldContext_TaxLine_rate(ctx, field)
  119351. case "ratePercentage":
  119352. return ec.fieldContext_TaxLine_ratePercentage(ctx, field)
  119353. case "title":
  119354. return ec.fieldContext_TaxLine_title(ctx, field)
  119355. }
  119356. return nil, fmt.Errorf("no field named %q was found under type TaxLine", field.Name)
  119357. },
  119358. }
  119359. return fc, nil
  119360. }
  119361. func (ec *executionContext) _ShippingLine_title(ctx context.Context, field graphql.CollectedField, obj *ShippingLine) (ret graphql.Marshaler) {
  119362. fc, err := ec.fieldContext_ShippingLine_title(ctx, field)
  119363. if err != nil {
  119364. return graphql.Null
  119365. }
  119366. ctx = graphql.WithFieldContext(ctx, fc)
  119367. defer func() {
  119368. if r := recover(); r != nil {
  119369. ec.Error(ctx, ec.Recover(ctx, r))
  119370. ret = graphql.Null
  119371. }
  119372. }()
  119373. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  119374. ctx = rctx // use context from middleware stack in children
  119375. return obj.Title, nil
  119376. })
  119377. if err != nil {
  119378. ec.Error(ctx, err)
  119379. return graphql.Null
  119380. }
  119381. if resTmp == nil {
  119382. if !graphql.HasFieldError(ctx, fc) {
  119383. ec.Errorf(ctx, "must not be null")
  119384. }
  119385. return graphql.Null
  119386. }
  119387. res := resTmp.(string)
  119388. fc.Result = res
  119389. return ec.marshalNString2string(ctx, field.Selections, res)
  119390. }
  119391. func (ec *executionContext) fieldContext_ShippingLine_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  119392. fc = &graphql.FieldContext{
  119393. Object: "ShippingLine",
  119394. Field: field,
  119395. IsMethod: false,
  119396. IsResolver: false,
  119397. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  119398. return nil, errors.New("field of type String does not have child fields")
  119399. },
  119400. }
  119401. return fc, nil
  119402. }
  119403. func (ec *executionContext) _ShippingLineConnection_edges(ctx context.Context, field graphql.CollectedField, obj *ShippingLineConnection) (ret graphql.Marshaler) {
  119404. fc, err := ec.fieldContext_ShippingLineConnection_edges(ctx, field)
  119405. if err != nil {
  119406. return graphql.Null
  119407. }
  119408. ctx = graphql.WithFieldContext(ctx, fc)
  119409. defer func() {
  119410. if r := recover(); r != nil {
  119411. ec.Error(ctx, ec.Recover(ctx, r))
  119412. ret = graphql.Null
  119413. }
  119414. }()
  119415. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  119416. ctx = rctx // use context from middleware stack in children
  119417. return obj.Edges, nil
  119418. })
  119419. if err != nil {
  119420. ec.Error(ctx, err)
  119421. return graphql.Null
  119422. }
  119423. if resTmp == nil {
  119424. if !graphql.HasFieldError(ctx, fc) {
  119425. ec.Errorf(ctx, "must not be null")
  119426. }
  119427. return graphql.Null
  119428. }
  119429. res := resTmp.([]*ShippingLineEdge)
  119430. fc.Result = res
  119431. return ec.marshalNShippingLineEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShippingLineEdgeᚄ(ctx, field.Selections, res)
  119432. }
  119433. func (ec *executionContext) fieldContext_ShippingLineConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  119434. fc = &graphql.FieldContext{
  119435. Object: "ShippingLineConnection",
  119436. Field: field,
  119437. IsMethod: false,
  119438. IsResolver: false,
  119439. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  119440. switch field.Name {
  119441. case "cursor":
  119442. return ec.fieldContext_ShippingLineEdge_cursor(ctx, field)
  119443. case "node":
  119444. return ec.fieldContext_ShippingLineEdge_node(ctx, field)
  119445. }
  119446. return nil, fmt.Errorf("no field named %q was found under type ShippingLineEdge", field.Name)
  119447. },
  119448. }
  119449. return fc, nil
  119450. }
  119451. func (ec *executionContext) _ShippingLineConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *ShippingLineConnection) (ret graphql.Marshaler) {
  119452. fc, err := ec.fieldContext_ShippingLineConnection_nodes(ctx, field)
  119453. if err != nil {
  119454. return graphql.Null
  119455. }
  119456. ctx = graphql.WithFieldContext(ctx, fc)
  119457. defer func() {
  119458. if r := recover(); r != nil {
  119459. ec.Error(ctx, ec.Recover(ctx, r))
  119460. ret = graphql.Null
  119461. }
  119462. }()
  119463. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  119464. ctx = rctx // use context from middleware stack in children
  119465. return obj.Nodes, nil
  119466. })
  119467. if err != nil {
  119468. ec.Error(ctx, err)
  119469. return graphql.Null
  119470. }
  119471. if resTmp == nil {
  119472. if !graphql.HasFieldError(ctx, fc) {
  119473. ec.Errorf(ctx, "must not be null")
  119474. }
  119475. return graphql.Null
  119476. }
  119477. res := resTmp.([]*ShippingLine)
  119478. fc.Result = res
  119479. return ec.marshalNShippingLine2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShippingLineᚄ(ctx, field.Selections, res)
  119480. }
  119481. func (ec *executionContext) fieldContext_ShippingLineConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  119482. fc = &graphql.FieldContext{
  119483. Object: "ShippingLineConnection",
  119484. Field: field,
  119485. IsMethod: false,
  119486. IsResolver: false,
  119487. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  119488. switch field.Name {
  119489. case "carrierIdentifier":
  119490. return ec.fieldContext_ShippingLine_carrierIdentifier(ctx, field)
  119491. case "code":
  119492. return ec.fieldContext_ShippingLine_code(ctx, field)
  119493. case "custom":
  119494. return ec.fieldContext_ShippingLine_custom(ctx, field)
  119495. case "deliveryCategory":
  119496. return ec.fieldContext_ShippingLine_deliveryCategory(ctx, field)
  119497. case "discountAllocations":
  119498. return ec.fieldContext_ShippingLine_discountAllocations(ctx, field)
  119499. case "discountedPriceSet":
  119500. return ec.fieldContext_ShippingLine_discountedPriceSet(ctx, field)
  119501. case "id":
  119502. return ec.fieldContext_ShippingLine_id(ctx, field)
  119503. case "originalPriceSet":
  119504. return ec.fieldContext_ShippingLine_originalPriceSet(ctx, field)
  119505. case "phone":
  119506. return ec.fieldContext_ShippingLine_phone(ctx, field)
  119507. case "requestedFulfillmentService":
  119508. return ec.fieldContext_ShippingLine_requestedFulfillmentService(ctx, field)
  119509. case "shippingRateHandle":
  119510. return ec.fieldContext_ShippingLine_shippingRateHandle(ctx, field)
  119511. case "source":
  119512. return ec.fieldContext_ShippingLine_source(ctx, field)
  119513. case "taxLines":
  119514. return ec.fieldContext_ShippingLine_taxLines(ctx, field)
  119515. case "title":
  119516. return ec.fieldContext_ShippingLine_title(ctx, field)
  119517. }
  119518. return nil, fmt.Errorf("no field named %q was found under type ShippingLine", field.Name)
  119519. },
  119520. }
  119521. return fc, nil
  119522. }
  119523. func (ec *executionContext) _ShippingLineConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *ShippingLineConnection) (ret graphql.Marshaler) {
  119524. fc, err := ec.fieldContext_ShippingLineConnection_pageInfo(ctx, field)
  119525. if err != nil {
  119526. return graphql.Null
  119527. }
  119528. ctx = graphql.WithFieldContext(ctx, fc)
  119529. defer func() {
  119530. if r := recover(); r != nil {
  119531. ec.Error(ctx, ec.Recover(ctx, r))
  119532. ret = graphql.Null
  119533. }
  119534. }()
  119535. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  119536. ctx = rctx // use context from middleware stack in children
  119537. return obj.PageInfo, nil
  119538. })
  119539. if err != nil {
  119540. ec.Error(ctx, err)
  119541. return graphql.Null
  119542. }
  119543. if resTmp == nil {
  119544. if !graphql.HasFieldError(ctx, fc) {
  119545. ec.Errorf(ctx, "must not be null")
  119546. }
  119547. return graphql.Null
  119548. }
  119549. res := resTmp.(*PageInfo)
  119550. fc.Result = res
  119551. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  119552. }
  119553. func (ec *executionContext) fieldContext_ShippingLineConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  119554. fc = &graphql.FieldContext{
  119555. Object: "ShippingLineConnection",
  119556. Field: field,
  119557. IsMethod: false,
  119558. IsResolver: false,
  119559. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  119560. switch field.Name {
  119561. case "endCursor":
  119562. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  119563. case "hasNextPage":
  119564. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  119565. case "hasPreviousPage":
  119566. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  119567. case "startCursor":
  119568. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  119569. }
  119570. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  119571. },
  119572. }
  119573. return fc, nil
  119574. }
  119575. func (ec *executionContext) _ShippingLineEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *ShippingLineEdge) (ret graphql.Marshaler) {
  119576. fc, err := ec.fieldContext_ShippingLineEdge_cursor(ctx, field)
  119577. if err != nil {
  119578. return graphql.Null
  119579. }
  119580. ctx = graphql.WithFieldContext(ctx, fc)
  119581. defer func() {
  119582. if r := recover(); r != nil {
  119583. ec.Error(ctx, ec.Recover(ctx, r))
  119584. ret = graphql.Null
  119585. }
  119586. }()
  119587. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  119588. ctx = rctx // use context from middleware stack in children
  119589. return obj.Cursor, nil
  119590. })
  119591. if err != nil {
  119592. ec.Error(ctx, err)
  119593. return graphql.Null
  119594. }
  119595. if resTmp == nil {
  119596. if !graphql.HasFieldError(ctx, fc) {
  119597. ec.Errorf(ctx, "must not be null")
  119598. }
  119599. return graphql.Null
  119600. }
  119601. res := resTmp.(string)
  119602. fc.Result = res
  119603. return ec.marshalNString2string(ctx, field.Selections, res)
  119604. }
  119605. func (ec *executionContext) fieldContext_ShippingLineEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  119606. fc = &graphql.FieldContext{
  119607. Object: "ShippingLineEdge",
  119608. Field: field,
  119609. IsMethod: false,
  119610. IsResolver: false,
  119611. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  119612. return nil, errors.New("field of type String does not have child fields")
  119613. },
  119614. }
  119615. return fc, nil
  119616. }
  119617. func (ec *executionContext) _ShippingLineEdge_node(ctx context.Context, field graphql.CollectedField, obj *ShippingLineEdge) (ret graphql.Marshaler) {
  119618. fc, err := ec.fieldContext_ShippingLineEdge_node(ctx, field)
  119619. if err != nil {
  119620. return graphql.Null
  119621. }
  119622. ctx = graphql.WithFieldContext(ctx, fc)
  119623. defer func() {
  119624. if r := recover(); r != nil {
  119625. ec.Error(ctx, ec.Recover(ctx, r))
  119626. ret = graphql.Null
  119627. }
  119628. }()
  119629. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  119630. ctx = rctx // use context from middleware stack in children
  119631. return obj.Node, nil
  119632. })
  119633. if err != nil {
  119634. ec.Error(ctx, err)
  119635. return graphql.Null
  119636. }
  119637. if resTmp == nil {
  119638. if !graphql.HasFieldError(ctx, fc) {
  119639. ec.Errorf(ctx, "must not be null")
  119640. }
  119641. return graphql.Null
  119642. }
  119643. res := resTmp.(*ShippingLine)
  119644. fc.Result = res
  119645. return ec.marshalNShippingLine2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShippingLine(ctx, field.Selections, res)
  119646. }
  119647. func (ec *executionContext) fieldContext_ShippingLineEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  119648. fc = &graphql.FieldContext{
  119649. Object: "ShippingLineEdge",
  119650. Field: field,
  119651. IsMethod: false,
  119652. IsResolver: false,
  119653. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  119654. switch field.Name {
  119655. case "carrierIdentifier":
  119656. return ec.fieldContext_ShippingLine_carrierIdentifier(ctx, field)
  119657. case "code":
  119658. return ec.fieldContext_ShippingLine_code(ctx, field)
  119659. case "custom":
  119660. return ec.fieldContext_ShippingLine_custom(ctx, field)
  119661. case "deliveryCategory":
  119662. return ec.fieldContext_ShippingLine_deliveryCategory(ctx, field)
  119663. case "discountAllocations":
  119664. return ec.fieldContext_ShippingLine_discountAllocations(ctx, field)
  119665. case "discountedPriceSet":
  119666. return ec.fieldContext_ShippingLine_discountedPriceSet(ctx, field)
  119667. case "id":
  119668. return ec.fieldContext_ShippingLine_id(ctx, field)
  119669. case "originalPriceSet":
  119670. return ec.fieldContext_ShippingLine_originalPriceSet(ctx, field)
  119671. case "phone":
  119672. return ec.fieldContext_ShippingLine_phone(ctx, field)
  119673. case "requestedFulfillmentService":
  119674. return ec.fieldContext_ShippingLine_requestedFulfillmentService(ctx, field)
  119675. case "shippingRateHandle":
  119676. return ec.fieldContext_ShippingLine_shippingRateHandle(ctx, field)
  119677. case "source":
  119678. return ec.fieldContext_ShippingLine_source(ctx, field)
  119679. case "taxLines":
  119680. return ec.fieldContext_ShippingLine_taxLines(ctx, field)
  119681. case "title":
  119682. return ec.fieldContext_ShippingLine_title(ctx, field)
  119683. }
  119684. return nil, fmt.Errorf("no field named %q was found under type ShippingLine", field.Name)
  119685. },
  119686. }
  119687. return fc, nil
  119688. }
  119689. func (ec *executionContext) _ShippingRefund_amountSet(ctx context.Context, field graphql.CollectedField, obj *ShippingRefund) (ret graphql.Marshaler) {
  119690. fc, err := ec.fieldContext_ShippingRefund_amountSet(ctx, field)
  119691. if err != nil {
  119692. return graphql.Null
  119693. }
  119694. ctx = graphql.WithFieldContext(ctx, fc)
  119695. defer func() {
  119696. if r := recover(); r != nil {
  119697. ec.Error(ctx, ec.Recover(ctx, r))
  119698. ret = graphql.Null
  119699. }
  119700. }()
  119701. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  119702. ctx = rctx // use context from middleware stack in children
  119703. return obj.AmountSet, nil
  119704. })
  119705. if err != nil {
  119706. ec.Error(ctx, err)
  119707. return graphql.Null
  119708. }
  119709. if resTmp == nil {
  119710. if !graphql.HasFieldError(ctx, fc) {
  119711. ec.Errorf(ctx, "must not be null")
  119712. }
  119713. return graphql.Null
  119714. }
  119715. res := resTmp.(*MoneyBag)
  119716. fc.Result = res
  119717. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  119718. }
  119719. func (ec *executionContext) fieldContext_ShippingRefund_amountSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  119720. fc = &graphql.FieldContext{
  119721. Object: "ShippingRefund",
  119722. Field: field,
  119723. IsMethod: false,
  119724. IsResolver: false,
  119725. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  119726. switch field.Name {
  119727. case "presentmentMoney":
  119728. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  119729. case "shopMoney":
  119730. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  119731. }
  119732. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  119733. },
  119734. }
  119735. return fc, nil
  119736. }
  119737. func (ec *executionContext) _ShippingRefund_maximumRefundableSet(ctx context.Context, field graphql.CollectedField, obj *ShippingRefund) (ret graphql.Marshaler) {
  119738. fc, err := ec.fieldContext_ShippingRefund_maximumRefundableSet(ctx, field)
  119739. if err != nil {
  119740. return graphql.Null
  119741. }
  119742. ctx = graphql.WithFieldContext(ctx, fc)
  119743. defer func() {
  119744. if r := recover(); r != nil {
  119745. ec.Error(ctx, ec.Recover(ctx, r))
  119746. ret = graphql.Null
  119747. }
  119748. }()
  119749. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  119750. ctx = rctx // use context from middleware stack in children
  119751. return obj.MaximumRefundableSet, nil
  119752. })
  119753. if err != nil {
  119754. ec.Error(ctx, err)
  119755. return graphql.Null
  119756. }
  119757. if resTmp == nil {
  119758. if !graphql.HasFieldError(ctx, fc) {
  119759. ec.Errorf(ctx, "must not be null")
  119760. }
  119761. return graphql.Null
  119762. }
  119763. res := resTmp.(*MoneyBag)
  119764. fc.Result = res
  119765. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  119766. }
  119767. func (ec *executionContext) fieldContext_ShippingRefund_maximumRefundableSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  119768. fc = &graphql.FieldContext{
  119769. Object: "ShippingRefund",
  119770. Field: field,
  119771. IsMethod: false,
  119772. IsResolver: false,
  119773. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  119774. switch field.Name {
  119775. case "presentmentMoney":
  119776. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  119777. case "shopMoney":
  119778. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  119779. }
  119780. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  119781. },
  119782. }
  119783. return fc, nil
  119784. }
  119785. func (ec *executionContext) _ShippingRefund_taxSet(ctx context.Context, field graphql.CollectedField, obj *ShippingRefund) (ret graphql.Marshaler) {
  119786. fc, err := ec.fieldContext_ShippingRefund_taxSet(ctx, field)
  119787. if err != nil {
  119788. return graphql.Null
  119789. }
  119790. ctx = graphql.WithFieldContext(ctx, fc)
  119791. defer func() {
  119792. if r := recover(); r != nil {
  119793. ec.Error(ctx, ec.Recover(ctx, r))
  119794. ret = graphql.Null
  119795. }
  119796. }()
  119797. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  119798. ctx = rctx // use context from middleware stack in children
  119799. return obj.TaxSet, nil
  119800. })
  119801. if err != nil {
  119802. ec.Error(ctx, err)
  119803. return graphql.Null
  119804. }
  119805. if resTmp == nil {
  119806. if !graphql.HasFieldError(ctx, fc) {
  119807. ec.Errorf(ctx, "must not be null")
  119808. }
  119809. return graphql.Null
  119810. }
  119811. res := resTmp.(*MoneyBag)
  119812. fc.Result = res
  119813. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  119814. }
  119815. func (ec *executionContext) fieldContext_ShippingRefund_taxSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  119816. fc = &graphql.FieldContext{
  119817. Object: "ShippingRefund",
  119818. Field: field,
  119819. IsMethod: false,
  119820. IsResolver: false,
  119821. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  119822. switch field.Name {
  119823. case "presentmentMoney":
  119824. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  119825. case "shopMoney":
  119826. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  119827. }
  119828. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  119829. },
  119830. }
  119831. return fc, nil
  119832. }
  119833. func (ec *executionContext) _Shop_alerts(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  119834. fc, err := ec.fieldContext_Shop_alerts(ctx, field)
  119835. if err != nil {
  119836. return graphql.Null
  119837. }
  119838. ctx = graphql.WithFieldContext(ctx, fc)
  119839. defer func() {
  119840. if r := recover(); r != nil {
  119841. ec.Error(ctx, ec.Recover(ctx, r))
  119842. ret = graphql.Null
  119843. }
  119844. }()
  119845. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  119846. ctx = rctx // use context from middleware stack in children
  119847. return obj.Alerts, nil
  119848. })
  119849. if err != nil {
  119850. ec.Error(ctx, err)
  119851. return graphql.Null
  119852. }
  119853. if resTmp == nil {
  119854. if !graphql.HasFieldError(ctx, fc) {
  119855. ec.Errorf(ctx, "must not be null")
  119856. }
  119857. return graphql.Null
  119858. }
  119859. res := resTmp.([]*ShopAlert)
  119860. fc.Result = res
  119861. return ec.marshalNShopAlert2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopAlertᚄ(ctx, field.Selections, res)
  119862. }
  119863. func (ec *executionContext) fieldContext_Shop_alerts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  119864. fc = &graphql.FieldContext{
  119865. Object: "Shop",
  119866. Field: field,
  119867. IsMethod: false,
  119868. IsResolver: false,
  119869. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  119870. switch field.Name {
  119871. case "action":
  119872. return ec.fieldContext_ShopAlert_action(ctx, field)
  119873. case "description":
  119874. return ec.fieldContext_ShopAlert_description(ctx, field)
  119875. }
  119876. return nil, fmt.Errorf("no field named %q was found under type ShopAlert", field.Name)
  119877. },
  119878. }
  119879. return fc, nil
  119880. }
  119881. func (ec *executionContext) _Shop_allProductCategories(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  119882. fc, err := ec.fieldContext_Shop_allProductCategories(ctx, field)
  119883. if err != nil {
  119884. return graphql.Null
  119885. }
  119886. ctx = graphql.WithFieldContext(ctx, fc)
  119887. defer func() {
  119888. if r := recover(); r != nil {
  119889. ec.Error(ctx, ec.Recover(ctx, r))
  119890. ret = graphql.Null
  119891. }
  119892. }()
  119893. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  119894. ctx = rctx // use context from middleware stack in children
  119895. return obj.AllProductCategories, nil
  119896. })
  119897. if err != nil {
  119898. ec.Error(ctx, err)
  119899. return graphql.Null
  119900. }
  119901. if resTmp == nil {
  119902. if !graphql.HasFieldError(ctx, fc) {
  119903. ec.Errorf(ctx, "must not be null")
  119904. }
  119905. return graphql.Null
  119906. }
  119907. res := resTmp.([]*ProductCategory)
  119908. fc.Result = res
  119909. return ec.marshalNProductCategory2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductCategoryᚄ(ctx, field.Selections, res)
  119910. }
  119911. func (ec *executionContext) fieldContext_Shop_allProductCategories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  119912. fc = &graphql.FieldContext{
  119913. Object: "Shop",
  119914. Field: field,
  119915. IsMethod: false,
  119916. IsResolver: false,
  119917. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  119918. switch field.Name {
  119919. case "productTaxonomyNode":
  119920. return ec.fieldContext_ProductCategory_productTaxonomyNode(ctx, field)
  119921. }
  119922. return nil, fmt.Errorf("no field named %q was found under type ProductCategory", field.Name)
  119923. },
  119924. }
  119925. return fc, nil
  119926. }
  119927. func (ec *executionContext) _Shop_assignedFulfillmentOrders(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  119928. fc, err := ec.fieldContext_Shop_assignedFulfillmentOrders(ctx, field)
  119929. if err != nil {
  119930. return graphql.Null
  119931. }
  119932. ctx = graphql.WithFieldContext(ctx, fc)
  119933. defer func() {
  119934. if r := recover(); r != nil {
  119935. ec.Error(ctx, ec.Recover(ctx, r))
  119936. ret = graphql.Null
  119937. }
  119938. }()
  119939. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  119940. ctx = rctx // use context from middleware stack in children
  119941. return obj.AssignedFulfillmentOrders, nil
  119942. })
  119943. if err != nil {
  119944. ec.Error(ctx, err)
  119945. return graphql.Null
  119946. }
  119947. if resTmp == nil {
  119948. if !graphql.HasFieldError(ctx, fc) {
  119949. ec.Errorf(ctx, "must not be null")
  119950. }
  119951. return graphql.Null
  119952. }
  119953. res := resTmp.(*FulfillmentOrderConnection)
  119954. fc.Result = res
  119955. return ec.marshalNFulfillmentOrderConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderConnection(ctx, field.Selections, res)
  119956. }
  119957. func (ec *executionContext) fieldContext_Shop_assignedFulfillmentOrders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  119958. fc = &graphql.FieldContext{
  119959. Object: "Shop",
  119960. Field: field,
  119961. IsMethod: false,
  119962. IsResolver: false,
  119963. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  119964. switch field.Name {
  119965. case "edges":
  119966. return ec.fieldContext_FulfillmentOrderConnection_edges(ctx, field)
  119967. case "nodes":
  119968. return ec.fieldContext_FulfillmentOrderConnection_nodes(ctx, field)
  119969. case "pageInfo":
  119970. return ec.fieldContext_FulfillmentOrderConnection_pageInfo(ctx, field)
  119971. }
  119972. return nil, fmt.Errorf("no field named %q was found under type FulfillmentOrderConnection", field.Name)
  119973. },
  119974. }
  119975. defer func() {
  119976. if r := recover(); r != nil {
  119977. err = ec.Recover(ctx, r)
  119978. ec.Error(ctx, err)
  119979. }
  119980. }()
  119981. ctx = graphql.WithFieldContext(ctx, fc)
  119982. if fc.Args, err = ec.field_Shop_assignedFulfillmentOrders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  119983. ec.Error(ctx, err)
  119984. return
  119985. }
  119986. return fc, nil
  119987. }
  119988. func (ec *executionContext) _Shop_availableChannelApps(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  119989. fc, err := ec.fieldContext_Shop_availableChannelApps(ctx, field)
  119990. if err != nil {
  119991. return graphql.Null
  119992. }
  119993. ctx = graphql.WithFieldContext(ctx, fc)
  119994. defer func() {
  119995. if r := recover(); r != nil {
  119996. ec.Error(ctx, ec.Recover(ctx, r))
  119997. ret = graphql.Null
  119998. }
  119999. }()
  120000. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  120001. ctx = rctx // use context from middleware stack in children
  120002. return obj.AvailableChannelApps, nil
  120003. })
  120004. if err != nil {
  120005. ec.Error(ctx, err)
  120006. return graphql.Null
  120007. }
  120008. if resTmp == nil {
  120009. if !graphql.HasFieldError(ctx, fc) {
  120010. ec.Errorf(ctx, "must not be null")
  120011. }
  120012. return graphql.Null
  120013. }
  120014. res := resTmp.(*AppConnection)
  120015. fc.Result = res
  120016. return ec.marshalNAppConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppConnection(ctx, field.Selections, res)
  120017. }
  120018. func (ec *executionContext) fieldContext_Shop_availableChannelApps(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  120019. fc = &graphql.FieldContext{
  120020. Object: "Shop",
  120021. Field: field,
  120022. IsMethod: false,
  120023. IsResolver: false,
  120024. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  120025. switch field.Name {
  120026. case "edges":
  120027. return ec.fieldContext_AppConnection_edges(ctx, field)
  120028. case "nodes":
  120029. return ec.fieldContext_AppConnection_nodes(ctx, field)
  120030. case "pageInfo":
  120031. return ec.fieldContext_AppConnection_pageInfo(ctx, field)
  120032. }
  120033. return nil, fmt.Errorf("no field named %q was found under type AppConnection", field.Name)
  120034. },
  120035. }
  120036. defer func() {
  120037. if r := recover(); r != nil {
  120038. err = ec.Recover(ctx, r)
  120039. ec.Error(ctx, err)
  120040. }
  120041. }()
  120042. ctx = graphql.WithFieldContext(ctx, fc)
  120043. if fc.Args, err = ec.field_Shop_availableChannelApps_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  120044. ec.Error(ctx, err)
  120045. return
  120046. }
  120047. return fc, nil
  120048. }
  120049. func (ec *executionContext) _Shop_billingAddress(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  120050. fc, err := ec.fieldContext_Shop_billingAddress(ctx, field)
  120051. if err != nil {
  120052. return graphql.Null
  120053. }
  120054. ctx = graphql.WithFieldContext(ctx, fc)
  120055. defer func() {
  120056. if r := recover(); r != nil {
  120057. ec.Error(ctx, ec.Recover(ctx, r))
  120058. ret = graphql.Null
  120059. }
  120060. }()
  120061. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  120062. ctx = rctx // use context from middleware stack in children
  120063. return obj.BillingAddress, nil
  120064. })
  120065. if err != nil {
  120066. ec.Error(ctx, err)
  120067. return graphql.Null
  120068. }
  120069. if resTmp == nil {
  120070. if !graphql.HasFieldError(ctx, fc) {
  120071. ec.Errorf(ctx, "must not be null")
  120072. }
  120073. return graphql.Null
  120074. }
  120075. res := resTmp.(*MailingAddress)
  120076. fc.Result = res
  120077. return ec.marshalNMailingAddress2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMailingAddress(ctx, field.Selections, res)
  120078. }
  120079. func (ec *executionContext) fieldContext_Shop_billingAddress(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  120080. fc = &graphql.FieldContext{
  120081. Object: "Shop",
  120082. Field: field,
  120083. IsMethod: false,
  120084. IsResolver: false,
  120085. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  120086. switch field.Name {
  120087. case "address1":
  120088. return ec.fieldContext_MailingAddress_address1(ctx, field)
  120089. case "address2":
  120090. return ec.fieldContext_MailingAddress_address2(ctx, field)
  120091. case "city":
  120092. return ec.fieldContext_MailingAddress_city(ctx, field)
  120093. case "company":
  120094. return ec.fieldContext_MailingAddress_company(ctx, field)
  120095. case "coordinatesValidated":
  120096. return ec.fieldContext_MailingAddress_coordinatesValidated(ctx, field)
  120097. case "country":
  120098. return ec.fieldContext_MailingAddress_country(ctx, field)
  120099. case "countryCodeV2":
  120100. return ec.fieldContext_MailingAddress_countryCodeV2(ctx, field)
  120101. case "firstName":
  120102. return ec.fieldContext_MailingAddress_firstName(ctx, field)
  120103. case "formattedArea":
  120104. return ec.fieldContext_MailingAddress_formattedArea(ctx, field)
  120105. case "id":
  120106. return ec.fieldContext_MailingAddress_id(ctx, field)
  120107. case "lastName":
  120108. return ec.fieldContext_MailingAddress_lastName(ctx, field)
  120109. case "latitude":
  120110. return ec.fieldContext_MailingAddress_latitude(ctx, field)
  120111. case "longitude":
  120112. return ec.fieldContext_MailingAddress_longitude(ctx, field)
  120113. case "name":
  120114. return ec.fieldContext_MailingAddress_name(ctx, field)
  120115. case "phone":
  120116. return ec.fieldContext_MailingAddress_phone(ctx, field)
  120117. case "province":
  120118. return ec.fieldContext_MailingAddress_province(ctx, field)
  120119. case "provinceCode":
  120120. return ec.fieldContext_MailingAddress_provinceCode(ctx, field)
  120121. case "zip":
  120122. return ec.fieldContext_MailingAddress_zip(ctx, field)
  120123. }
  120124. return nil, fmt.Errorf("no field named %q was found under type MailingAddress", field.Name)
  120125. },
  120126. }
  120127. return fc, nil
  120128. }
  120129. func (ec *executionContext) _Shop_channelDefinitionsForInstalledChannels(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  120130. fc, err := ec.fieldContext_Shop_channelDefinitionsForInstalledChannels(ctx, field)
  120131. if err != nil {
  120132. return graphql.Null
  120133. }
  120134. ctx = graphql.WithFieldContext(ctx, fc)
  120135. defer func() {
  120136. if r := recover(); r != nil {
  120137. ec.Error(ctx, ec.Recover(ctx, r))
  120138. ret = graphql.Null
  120139. }
  120140. }()
  120141. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  120142. ctx = rctx // use context from middleware stack in children
  120143. return obj.ChannelDefinitionsForInstalledChannels, nil
  120144. })
  120145. if err != nil {
  120146. ec.Error(ctx, err)
  120147. return graphql.Null
  120148. }
  120149. if resTmp == nil {
  120150. if !graphql.HasFieldError(ctx, fc) {
  120151. ec.Errorf(ctx, "must not be null")
  120152. }
  120153. return graphql.Null
  120154. }
  120155. res := resTmp.([]*AvailableChannelDefinitionsByChannel)
  120156. fc.Result = res
  120157. return ec.marshalNAvailableChannelDefinitionsByChannel2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAvailableChannelDefinitionsByChannelᚄ(ctx, field.Selections, res)
  120158. }
  120159. func (ec *executionContext) fieldContext_Shop_channelDefinitionsForInstalledChannels(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  120160. fc = &graphql.FieldContext{
  120161. Object: "Shop",
  120162. Field: field,
  120163. IsMethod: false,
  120164. IsResolver: false,
  120165. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  120166. switch field.Name {
  120167. case "channelDefinitions":
  120168. return ec.fieldContext_AvailableChannelDefinitionsByChannel_channelDefinitions(ctx, field)
  120169. case "channelName":
  120170. return ec.fieldContext_AvailableChannelDefinitionsByChannel_channelName(ctx, field)
  120171. }
  120172. return nil, fmt.Errorf("no field named %q was found under type AvailableChannelDefinitionsByChannel", field.Name)
  120173. },
  120174. }
  120175. return fc, nil
  120176. }
  120177. func (ec *executionContext) _Shop_checkoutApiSupported(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  120178. fc, err := ec.fieldContext_Shop_checkoutApiSupported(ctx, field)
  120179. if err != nil {
  120180. return graphql.Null
  120181. }
  120182. ctx = graphql.WithFieldContext(ctx, fc)
  120183. defer func() {
  120184. if r := recover(); r != nil {
  120185. ec.Error(ctx, ec.Recover(ctx, r))
  120186. ret = graphql.Null
  120187. }
  120188. }()
  120189. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  120190. ctx = rctx // use context from middleware stack in children
  120191. return obj.CheckoutAPISupported, nil
  120192. })
  120193. if err != nil {
  120194. ec.Error(ctx, err)
  120195. return graphql.Null
  120196. }
  120197. if resTmp == nil {
  120198. if !graphql.HasFieldError(ctx, fc) {
  120199. ec.Errorf(ctx, "must not be null")
  120200. }
  120201. return graphql.Null
  120202. }
  120203. res := resTmp.(bool)
  120204. fc.Result = res
  120205. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  120206. }
  120207. func (ec *executionContext) fieldContext_Shop_checkoutApiSupported(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  120208. fc = &graphql.FieldContext{
  120209. Object: "Shop",
  120210. Field: field,
  120211. IsMethod: false,
  120212. IsResolver: false,
  120213. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  120214. return nil, errors.New("field of type Boolean does not have child fields")
  120215. },
  120216. }
  120217. return fc, nil
  120218. }
  120219. func (ec *executionContext) _Shop_contactEmail(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  120220. fc, err := ec.fieldContext_Shop_contactEmail(ctx, field)
  120221. if err != nil {
  120222. return graphql.Null
  120223. }
  120224. ctx = graphql.WithFieldContext(ctx, fc)
  120225. defer func() {
  120226. if r := recover(); r != nil {
  120227. ec.Error(ctx, ec.Recover(ctx, r))
  120228. ret = graphql.Null
  120229. }
  120230. }()
  120231. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  120232. ctx = rctx // use context from middleware stack in children
  120233. return obj.ContactEmail, nil
  120234. })
  120235. if err != nil {
  120236. ec.Error(ctx, err)
  120237. return graphql.Null
  120238. }
  120239. if resTmp == nil {
  120240. if !graphql.HasFieldError(ctx, fc) {
  120241. ec.Errorf(ctx, "must not be null")
  120242. }
  120243. return graphql.Null
  120244. }
  120245. res := resTmp.(string)
  120246. fc.Result = res
  120247. return ec.marshalNString2string(ctx, field.Selections, res)
  120248. }
  120249. func (ec *executionContext) fieldContext_Shop_contactEmail(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  120250. fc = &graphql.FieldContext{
  120251. Object: "Shop",
  120252. Field: field,
  120253. IsMethod: false,
  120254. IsResolver: false,
  120255. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  120256. return nil, errors.New("field of type String does not have child fields")
  120257. },
  120258. }
  120259. return fc, nil
  120260. }
  120261. func (ec *executionContext) _Shop_countriesInShippingZones(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  120262. fc, err := ec.fieldContext_Shop_countriesInShippingZones(ctx, field)
  120263. if err != nil {
  120264. return graphql.Null
  120265. }
  120266. ctx = graphql.WithFieldContext(ctx, fc)
  120267. defer func() {
  120268. if r := recover(); r != nil {
  120269. ec.Error(ctx, ec.Recover(ctx, r))
  120270. ret = graphql.Null
  120271. }
  120272. }()
  120273. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  120274. ctx = rctx // use context from middleware stack in children
  120275. return obj.CountriesInShippingZones, nil
  120276. })
  120277. if err != nil {
  120278. ec.Error(ctx, err)
  120279. return graphql.Null
  120280. }
  120281. if resTmp == nil {
  120282. if !graphql.HasFieldError(ctx, fc) {
  120283. ec.Errorf(ctx, "must not be null")
  120284. }
  120285. return graphql.Null
  120286. }
  120287. res := resTmp.(*CountriesInShippingZones)
  120288. fc.Result = res
  120289. return ec.marshalNCountriesInShippingZones2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountriesInShippingZones(ctx, field.Selections, res)
  120290. }
  120291. func (ec *executionContext) fieldContext_Shop_countriesInShippingZones(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  120292. fc = &graphql.FieldContext{
  120293. Object: "Shop",
  120294. Field: field,
  120295. IsMethod: false,
  120296. IsResolver: false,
  120297. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  120298. switch field.Name {
  120299. case "countryCodes":
  120300. return ec.fieldContext_CountriesInShippingZones_countryCodes(ctx, field)
  120301. case "includeRestOfWorld":
  120302. return ec.fieldContext_CountriesInShippingZones_includeRestOfWorld(ctx, field)
  120303. }
  120304. return nil, fmt.Errorf("no field named %q was found under type CountriesInShippingZones", field.Name)
  120305. },
  120306. }
  120307. return fc, nil
  120308. }
  120309. func (ec *executionContext) _Shop_currencyCode(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  120310. fc, err := ec.fieldContext_Shop_currencyCode(ctx, field)
  120311. if err != nil {
  120312. return graphql.Null
  120313. }
  120314. ctx = graphql.WithFieldContext(ctx, fc)
  120315. defer func() {
  120316. if r := recover(); r != nil {
  120317. ec.Error(ctx, ec.Recover(ctx, r))
  120318. ret = graphql.Null
  120319. }
  120320. }()
  120321. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  120322. ctx = rctx // use context from middleware stack in children
  120323. return obj.CurrencyCode, nil
  120324. })
  120325. if err != nil {
  120326. ec.Error(ctx, err)
  120327. return graphql.Null
  120328. }
  120329. if resTmp == nil {
  120330. if !graphql.HasFieldError(ctx, fc) {
  120331. ec.Errorf(ctx, "must not be null")
  120332. }
  120333. return graphql.Null
  120334. }
  120335. res := resTmp.(CurrencyCode)
  120336. fc.Result = res
  120337. return ec.marshalNCurrencyCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencyCode(ctx, field.Selections, res)
  120338. }
  120339. func (ec *executionContext) fieldContext_Shop_currencyCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  120340. fc = &graphql.FieldContext{
  120341. Object: "Shop",
  120342. Field: field,
  120343. IsMethod: false,
  120344. IsResolver: false,
  120345. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  120346. return nil, errors.New("field of type CurrencyCode does not have child fields")
  120347. },
  120348. }
  120349. return fc, nil
  120350. }
  120351. func (ec *executionContext) _Shop_currencyFormats(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  120352. fc, err := ec.fieldContext_Shop_currencyFormats(ctx, field)
  120353. if err != nil {
  120354. return graphql.Null
  120355. }
  120356. ctx = graphql.WithFieldContext(ctx, fc)
  120357. defer func() {
  120358. if r := recover(); r != nil {
  120359. ec.Error(ctx, ec.Recover(ctx, r))
  120360. ret = graphql.Null
  120361. }
  120362. }()
  120363. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  120364. ctx = rctx // use context from middleware stack in children
  120365. return obj.CurrencyFormats, nil
  120366. })
  120367. if err != nil {
  120368. ec.Error(ctx, err)
  120369. return graphql.Null
  120370. }
  120371. if resTmp == nil {
  120372. if !graphql.HasFieldError(ctx, fc) {
  120373. ec.Errorf(ctx, "must not be null")
  120374. }
  120375. return graphql.Null
  120376. }
  120377. res := resTmp.(*CurrencyFormats)
  120378. fc.Result = res
  120379. return ec.marshalNCurrencyFormats2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencyFormats(ctx, field.Selections, res)
  120380. }
  120381. func (ec *executionContext) fieldContext_Shop_currencyFormats(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  120382. fc = &graphql.FieldContext{
  120383. Object: "Shop",
  120384. Field: field,
  120385. IsMethod: false,
  120386. IsResolver: false,
  120387. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  120388. switch field.Name {
  120389. case "moneyFormat":
  120390. return ec.fieldContext_CurrencyFormats_moneyFormat(ctx, field)
  120391. case "moneyInEmailsFormat":
  120392. return ec.fieldContext_CurrencyFormats_moneyInEmailsFormat(ctx, field)
  120393. case "moneyWithCurrencyFormat":
  120394. return ec.fieldContext_CurrencyFormats_moneyWithCurrencyFormat(ctx, field)
  120395. case "moneyWithCurrencyInEmailsFormat":
  120396. return ec.fieldContext_CurrencyFormats_moneyWithCurrencyInEmailsFormat(ctx, field)
  120397. }
  120398. return nil, fmt.Errorf("no field named %q was found under type CurrencyFormats", field.Name)
  120399. },
  120400. }
  120401. return fc, nil
  120402. }
  120403. func (ec *executionContext) _Shop_currencySettings(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  120404. fc, err := ec.fieldContext_Shop_currencySettings(ctx, field)
  120405. if err != nil {
  120406. return graphql.Null
  120407. }
  120408. ctx = graphql.WithFieldContext(ctx, fc)
  120409. defer func() {
  120410. if r := recover(); r != nil {
  120411. ec.Error(ctx, ec.Recover(ctx, r))
  120412. ret = graphql.Null
  120413. }
  120414. }()
  120415. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  120416. ctx = rctx // use context from middleware stack in children
  120417. return obj.CurrencySettings, nil
  120418. })
  120419. if err != nil {
  120420. ec.Error(ctx, err)
  120421. return graphql.Null
  120422. }
  120423. if resTmp == nil {
  120424. if !graphql.HasFieldError(ctx, fc) {
  120425. ec.Errorf(ctx, "must not be null")
  120426. }
  120427. return graphql.Null
  120428. }
  120429. res := resTmp.(*CurrencySettingConnection)
  120430. fc.Result = res
  120431. return ec.marshalNCurrencySettingConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencySettingConnection(ctx, field.Selections, res)
  120432. }
  120433. func (ec *executionContext) fieldContext_Shop_currencySettings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  120434. fc = &graphql.FieldContext{
  120435. Object: "Shop",
  120436. Field: field,
  120437. IsMethod: false,
  120438. IsResolver: false,
  120439. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  120440. switch field.Name {
  120441. case "edges":
  120442. return ec.fieldContext_CurrencySettingConnection_edges(ctx, field)
  120443. case "nodes":
  120444. return ec.fieldContext_CurrencySettingConnection_nodes(ctx, field)
  120445. case "pageInfo":
  120446. return ec.fieldContext_CurrencySettingConnection_pageInfo(ctx, field)
  120447. }
  120448. return nil, fmt.Errorf("no field named %q was found under type CurrencySettingConnection", field.Name)
  120449. },
  120450. }
  120451. defer func() {
  120452. if r := recover(); r != nil {
  120453. err = ec.Recover(ctx, r)
  120454. ec.Error(ctx, err)
  120455. }
  120456. }()
  120457. ctx = graphql.WithFieldContext(ctx, fc)
  120458. if fc.Args, err = ec.field_Shop_currencySettings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  120459. ec.Error(ctx, err)
  120460. return
  120461. }
  120462. return fc, nil
  120463. }
  120464. func (ec *executionContext) _Shop_customerAccounts(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  120465. fc, err := ec.fieldContext_Shop_customerAccounts(ctx, field)
  120466. if err != nil {
  120467. return graphql.Null
  120468. }
  120469. ctx = graphql.WithFieldContext(ctx, fc)
  120470. defer func() {
  120471. if r := recover(); r != nil {
  120472. ec.Error(ctx, ec.Recover(ctx, r))
  120473. ret = graphql.Null
  120474. }
  120475. }()
  120476. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  120477. ctx = rctx // use context from middleware stack in children
  120478. return obj.CustomerAccounts, nil
  120479. })
  120480. if err != nil {
  120481. ec.Error(ctx, err)
  120482. return graphql.Null
  120483. }
  120484. if resTmp == nil {
  120485. if !graphql.HasFieldError(ctx, fc) {
  120486. ec.Errorf(ctx, "must not be null")
  120487. }
  120488. return graphql.Null
  120489. }
  120490. res := resTmp.(ShopCustomerAccountsSetting)
  120491. fc.Result = res
  120492. return ec.marshalNShopCustomerAccountsSetting2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopCustomerAccountsSetting(ctx, field.Selections, res)
  120493. }
  120494. func (ec *executionContext) fieldContext_Shop_customerAccounts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  120495. fc = &graphql.FieldContext{
  120496. Object: "Shop",
  120497. Field: field,
  120498. IsMethod: false,
  120499. IsResolver: false,
  120500. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  120501. return nil, errors.New("field of type ShopCustomerAccountsSetting does not have child fields")
  120502. },
  120503. }
  120504. return fc, nil
  120505. }
  120506. func (ec *executionContext) _Shop_customerTags(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  120507. fc, err := ec.fieldContext_Shop_customerTags(ctx, field)
  120508. if err != nil {
  120509. return graphql.Null
  120510. }
  120511. ctx = graphql.WithFieldContext(ctx, fc)
  120512. defer func() {
  120513. if r := recover(); r != nil {
  120514. ec.Error(ctx, ec.Recover(ctx, r))
  120515. ret = graphql.Null
  120516. }
  120517. }()
  120518. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  120519. ctx = rctx // use context from middleware stack in children
  120520. return obj.CustomerTags, nil
  120521. })
  120522. if err != nil {
  120523. ec.Error(ctx, err)
  120524. return graphql.Null
  120525. }
  120526. if resTmp == nil {
  120527. if !graphql.HasFieldError(ctx, fc) {
  120528. ec.Errorf(ctx, "must not be null")
  120529. }
  120530. return graphql.Null
  120531. }
  120532. res := resTmp.(*StringConnection)
  120533. fc.Result = res
  120534. return ec.marshalNStringConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStringConnection(ctx, field.Selections, res)
  120535. }
  120536. func (ec *executionContext) fieldContext_Shop_customerTags(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  120537. fc = &graphql.FieldContext{
  120538. Object: "Shop",
  120539. Field: field,
  120540. IsMethod: false,
  120541. IsResolver: false,
  120542. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  120543. switch field.Name {
  120544. case "edges":
  120545. return ec.fieldContext_StringConnection_edges(ctx, field)
  120546. case "pageInfo":
  120547. return ec.fieldContext_StringConnection_pageInfo(ctx, field)
  120548. }
  120549. return nil, fmt.Errorf("no field named %q was found under type StringConnection", field.Name)
  120550. },
  120551. }
  120552. defer func() {
  120553. if r := recover(); r != nil {
  120554. err = ec.Recover(ctx, r)
  120555. ec.Error(ctx, err)
  120556. }
  120557. }()
  120558. ctx = graphql.WithFieldContext(ctx, fc)
  120559. if fc.Args, err = ec.field_Shop_customerTags_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  120560. ec.Error(ctx, err)
  120561. return
  120562. }
  120563. return fc, nil
  120564. }
  120565. func (ec *executionContext) _Shop_description(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  120566. fc, err := ec.fieldContext_Shop_description(ctx, field)
  120567. if err != nil {
  120568. return graphql.Null
  120569. }
  120570. ctx = graphql.WithFieldContext(ctx, fc)
  120571. defer func() {
  120572. if r := recover(); r != nil {
  120573. ec.Error(ctx, ec.Recover(ctx, r))
  120574. ret = graphql.Null
  120575. }
  120576. }()
  120577. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  120578. ctx = rctx // use context from middleware stack in children
  120579. return obj.Description, nil
  120580. })
  120581. if err != nil {
  120582. ec.Error(ctx, err)
  120583. return graphql.Null
  120584. }
  120585. if resTmp == nil {
  120586. return graphql.Null
  120587. }
  120588. res := resTmp.(*string)
  120589. fc.Result = res
  120590. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  120591. }
  120592. func (ec *executionContext) fieldContext_Shop_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  120593. fc = &graphql.FieldContext{
  120594. Object: "Shop",
  120595. Field: field,
  120596. IsMethod: false,
  120597. IsResolver: false,
  120598. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  120599. return nil, errors.New("field of type String does not have child fields")
  120600. },
  120601. }
  120602. return fc, nil
  120603. }
  120604. func (ec *executionContext) _Shop_draftOrderTags(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  120605. fc, err := ec.fieldContext_Shop_draftOrderTags(ctx, field)
  120606. if err != nil {
  120607. return graphql.Null
  120608. }
  120609. ctx = graphql.WithFieldContext(ctx, fc)
  120610. defer func() {
  120611. if r := recover(); r != nil {
  120612. ec.Error(ctx, ec.Recover(ctx, r))
  120613. ret = graphql.Null
  120614. }
  120615. }()
  120616. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  120617. ctx = rctx // use context from middleware stack in children
  120618. return obj.DraftOrderTags, nil
  120619. })
  120620. if err != nil {
  120621. ec.Error(ctx, err)
  120622. return graphql.Null
  120623. }
  120624. if resTmp == nil {
  120625. if !graphql.HasFieldError(ctx, fc) {
  120626. ec.Errorf(ctx, "must not be null")
  120627. }
  120628. return graphql.Null
  120629. }
  120630. res := resTmp.(*StringConnection)
  120631. fc.Result = res
  120632. return ec.marshalNStringConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStringConnection(ctx, field.Selections, res)
  120633. }
  120634. func (ec *executionContext) fieldContext_Shop_draftOrderTags(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  120635. fc = &graphql.FieldContext{
  120636. Object: "Shop",
  120637. Field: field,
  120638. IsMethod: false,
  120639. IsResolver: false,
  120640. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  120641. switch field.Name {
  120642. case "edges":
  120643. return ec.fieldContext_StringConnection_edges(ctx, field)
  120644. case "pageInfo":
  120645. return ec.fieldContext_StringConnection_pageInfo(ctx, field)
  120646. }
  120647. return nil, fmt.Errorf("no field named %q was found under type StringConnection", field.Name)
  120648. },
  120649. }
  120650. defer func() {
  120651. if r := recover(); r != nil {
  120652. err = ec.Recover(ctx, r)
  120653. ec.Error(ctx, err)
  120654. }
  120655. }()
  120656. ctx = graphql.WithFieldContext(ctx, fc)
  120657. if fc.Args, err = ec.field_Shop_draftOrderTags_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  120658. ec.Error(ctx, err)
  120659. return
  120660. }
  120661. return fc, nil
  120662. }
  120663. func (ec *executionContext) _Shop_email(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  120664. fc, err := ec.fieldContext_Shop_email(ctx, field)
  120665. if err != nil {
  120666. return graphql.Null
  120667. }
  120668. ctx = graphql.WithFieldContext(ctx, fc)
  120669. defer func() {
  120670. if r := recover(); r != nil {
  120671. ec.Error(ctx, ec.Recover(ctx, r))
  120672. ret = graphql.Null
  120673. }
  120674. }()
  120675. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  120676. ctx = rctx // use context from middleware stack in children
  120677. return obj.Email, nil
  120678. })
  120679. if err != nil {
  120680. ec.Error(ctx, err)
  120681. return graphql.Null
  120682. }
  120683. if resTmp == nil {
  120684. if !graphql.HasFieldError(ctx, fc) {
  120685. ec.Errorf(ctx, "must not be null")
  120686. }
  120687. return graphql.Null
  120688. }
  120689. res := resTmp.(string)
  120690. fc.Result = res
  120691. return ec.marshalNString2string(ctx, field.Selections, res)
  120692. }
  120693. func (ec *executionContext) fieldContext_Shop_email(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  120694. fc = &graphql.FieldContext{
  120695. Object: "Shop",
  120696. Field: field,
  120697. IsMethod: false,
  120698. IsResolver: false,
  120699. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  120700. return nil, errors.New("field of type String does not have child fields")
  120701. },
  120702. }
  120703. return fc, nil
  120704. }
  120705. func (ec *executionContext) _Shop_enabledPresentmentCurrencies(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  120706. fc, err := ec.fieldContext_Shop_enabledPresentmentCurrencies(ctx, field)
  120707. if err != nil {
  120708. return graphql.Null
  120709. }
  120710. ctx = graphql.WithFieldContext(ctx, fc)
  120711. defer func() {
  120712. if r := recover(); r != nil {
  120713. ec.Error(ctx, ec.Recover(ctx, r))
  120714. ret = graphql.Null
  120715. }
  120716. }()
  120717. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  120718. ctx = rctx // use context from middleware stack in children
  120719. return obj.EnabledPresentmentCurrencies, nil
  120720. })
  120721. if err != nil {
  120722. ec.Error(ctx, err)
  120723. return graphql.Null
  120724. }
  120725. if resTmp == nil {
  120726. if !graphql.HasFieldError(ctx, fc) {
  120727. ec.Errorf(ctx, "must not be null")
  120728. }
  120729. return graphql.Null
  120730. }
  120731. res := resTmp.([]CurrencyCode)
  120732. fc.Result = res
  120733. return ec.marshalNCurrencyCode2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencyCodeᚄ(ctx, field.Selections, res)
  120734. }
  120735. func (ec *executionContext) fieldContext_Shop_enabledPresentmentCurrencies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  120736. fc = &graphql.FieldContext{
  120737. Object: "Shop",
  120738. Field: field,
  120739. IsMethod: false,
  120740. IsResolver: false,
  120741. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  120742. return nil, errors.New("field of type CurrencyCode does not have child fields")
  120743. },
  120744. }
  120745. return fc, nil
  120746. }
  120747. func (ec *executionContext) _Shop_features(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  120748. fc, err := ec.fieldContext_Shop_features(ctx, field)
  120749. if err != nil {
  120750. return graphql.Null
  120751. }
  120752. ctx = graphql.WithFieldContext(ctx, fc)
  120753. defer func() {
  120754. if r := recover(); r != nil {
  120755. ec.Error(ctx, ec.Recover(ctx, r))
  120756. ret = graphql.Null
  120757. }
  120758. }()
  120759. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  120760. ctx = rctx // use context from middleware stack in children
  120761. return obj.Features, nil
  120762. })
  120763. if err != nil {
  120764. ec.Error(ctx, err)
  120765. return graphql.Null
  120766. }
  120767. if resTmp == nil {
  120768. if !graphql.HasFieldError(ctx, fc) {
  120769. ec.Errorf(ctx, "must not be null")
  120770. }
  120771. return graphql.Null
  120772. }
  120773. res := resTmp.(*ShopFeatures)
  120774. fc.Result = res
  120775. return ec.marshalNShopFeatures2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopFeatures(ctx, field.Selections, res)
  120776. }
  120777. func (ec *executionContext) fieldContext_Shop_features(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  120778. fc = &graphql.FieldContext{
  120779. Object: "Shop",
  120780. Field: field,
  120781. IsMethod: false,
  120782. IsResolver: false,
  120783. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  120784. switch field.Name {
  120785. case "avalaraAvatax":
  120786. return ec.fieldContext_ShopFeatures_avalaraAvatax(ctx, field)
  120787. case "branding":
  120788. return ec.fieldContext_ShopFeatures_branding(ctx, field)
  120789. case "captcha":
  120790. return ec.fieldContext_ShopFeatures_captcha(ctx, field)
  120791. case "captchaExternalDomains":
  120792. return ec.fieldContext_ShopFeatures_captchaExternalDomains(ctx, field)
  120793. case "dynamicRemarketing":
  120794. return ec.fieldContext_ShopFeatures_dynamicRemarketing(ctx, field)
  120795. case "eligibleForSubscriptionMigration":
  120796. return ec.fieldContext_ShopFeatures_eligibleForSubscriptionMigration(ctx, field)
  120797. case "eligibleForSubscriptions":
  120798. return ec.fieldContext_ShopFeatures_eligibleForSubscriptions(ctx, field)
  120799. case "giftCards":
  120800. return ec.fieldContext_ShopFeatures_giftCards(ctx, field)
  120801. case "harmonizedSystemCode":
  120802. return ec.fieldContext_ShopFeatures_harmonizedSystemCode(ctx, field)
  120803. case "internationalDomains":
  120804. return ec.fieldContext_ShopFeatures_internationalDomains(ctx, field)
  120805. case "internationalPriceOverrides":
  120806. return ec.fieldContext_ShopFeatures_internationalPriceOverrides(ctx, field)
  120807. case "internationalPriceRules":
  120808. return ec.fieldContext_ShopFeatures_internationalPriceRules(ctx, field)
  120809. case "legacySubscriptionGatewayEnabled":
  120810. return ec.fieldContext_ShopFeatures_legacySubscriptionGatewayEnabled(ctx, field)
  120811. case "liveView":
  120812. return ec.fieldContext_ShopFeatures_liveView(ctx, field)
  120813. case "onboardingVisual":
  120814. return ec.fieldContext_ShopFeatures_onboardingVisual(ctx, field)
  120815. case "paypalExpressSubscriptionGatewayStatus":
  120816. return ec.fieldContext_ShopFeatures_paypalExpressSubscriptionGatewayStatus(ctx, field)
  120817. case "reports":
  120818. return ec.fieldContext_ShopFeatures_reports(ctx, field)
  120819. case "sellsSubscriptions":
  120820. return ec.fieldContext_ShopFeatures_sellsSubscriptions(ctx, field)
  120821. case "showMetrics":
  120822. return ec.fieldContext_ShopFeatures_showMetrics(ctx, field)
  120823. case "storefront":
  120824. return ec.fieldContext_ShopFeatures_storefront(ctx, field)
  120825. case "usingShopifyBalance":
  120826. return ec.fieldContext_ShopFeatures_usingShopifyBalance(ctx, field)
  120827. }
  120828. return nil, fmt.Errorf("no field named %q was found under type ShopFeatures", field.Name)
  120829. },
  120830. }
  120831. return fc, nil
  120832. }
  120833. func (ec *executionContext) _Shop_fulfillmentServices(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  120834. fc, err := ec.fieldContext_Shop_fulfillmentServices(ctx, field)
  120835. if err != nil {
  120836. return graphql.Null
  120837. }
  120838. ctx = graphql.WithFieldContext(ctx, fc)
  120839. defer func() {
  120840. if r := recover(); r != nil {
  120841. ec.Error(ctx, ec.Recover(ctx, r))
  120842. ret = graphql.Null
  120843. }
  120844. }()
  120845. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  120846. ctx = rctx // use context from middleware stack in children
  120847. return obj.FulfillmentServices, nil
  120848. })
  120849. if err != nil {
  120850. ec.Error(ctx, err)
  120851. return graphql.Null
  120852. }
  120853. if resTmp == nil {
  120854. if !graphql.HasFieldError(ctx, fc) {
  120855. ec.Errorf(ctx, "must not be null")
  120856. }
  120857. return graphql.Null
  120858. }
  120859. res := resTmp.([]*FulfillmentService)
  120860. fc.Result = res
  120861. return ec.marshalNFulfillmentService2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentServiceᚄ(ctx, field.Selections, res)
  120862. }
  120863. func (ec *executionContext) fieldContext_Shop_fulfillmentServices(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  120864. fc = &graphql.FieldContext{
  120865. Object: "Shop",
  120866. Field: field,
  120867. IsMethod: false,
  120868. IsResolver: false,
  120869. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  120870. switch field.Name {
  120871. case "callbackUrl":
  120872. return ec.fieldContext_FulfillmentService_callbackUrl(ctx, field)
  120873. case "fulfillmentOrdersOptIn":
  120874. return ec.fieldContext_FulfillmentService_fulfillmentOrdersOptIn(ctx, field)
  120875. case "handle":
  120876. return ec.fieldContext_FulfillmentService_handle(ctx, field)
  120877. case "id":
  120878. return ec.fieldContext_FulfillmentService_id(ctx, field)
  120879. case "inventoryManagement":
  120880. return ec.fieldContext_FulfillmentService_inventoryManagement(ctx, field)
  120881. case "location":
  120882. return ec.fieldContext_FulfillmentService_location(ctx, field)
  120883. case "permitsSkuSharing":
  120884. return ec.fieldContext_FulfillmentService_permitsSkuSharing(ctx, field)
  120885. case "productBased":
  120886. return ec.fieldContext_FulfillmentService_productBased(ctx, field)
  120887. case "serviceName":
  120888. return ec.fieldContext_FulfillmentService_serviceName(ctx, field)
  120889. case "type":
  120890. return ec.fieldContext_FulfillmentService_type(ctx, field)
  120891. }
  120892. return nil, fmt.Errorf("no field named %q was found under type FulfillmentService", field.Name)
  120893. },
  120894. }
  120895. return fc, nil
  120896. }
  120897. func (ec *executionContext) _Shop_ianaTimezone(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  120898. fc, err := ec.fieldContext_Shop_ianaTimezone(ctx, field)
  120899. if err != nil {
  120900. return graphql.Null
  120901. }
  120902. ctx = graphql.WithFieldContext(ctx, fc)
  120903. defer func() {
  120904. if r := recover(); r != nil {
  120905. ec.Error(ctx, ec.Recover(ctx, r))
  120906. ret = graphql.Null
  120907. }
  120908. }()
  120909. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  120910. ctx = rctx // use context from middleware stack in children
  120911. return obj.IanaTimezone, nil
  120912. })
  120913. if err != nil {
  120914. ec.Error(ctx, err)
  120915. return graphql.Null
  120916. }
  120917. if resTmp == nil {
  120918. if !graphql.HasFieldError(ctx, fc) {
  120919. ec.Errorf(ctx, "must not be null")
  120920. }
  120921. return graphql.Null
  120922. }
  120923. res := resTmp.(string)
  120924. fc.Result = res
  120925. return ec.marshalNString2string(ctx, field.Selections, res)
  120926. }
  120927. func (ec *executionContext) fieldContext_Shop_ianaTimezone(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  120928. fc = &graphql.FieldContext{
  120929. Object: "Shop",
  120930. Field: field,
  120931. IsMethod: false,
  120932. IsResolver: false,
  120933. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  120934. return nil, errors.New("field of type String does not have child fields")
  120935. },
  120936. }
  120937. return fc, nil
  120938. }
  120939. func (ec *executionContext) _Shop_id(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  120940. fc, err := ec.fieldContext_Shop_id(ctx, field)
  120941. if err != nil {
  120942. return graphql.Null
  120943. }
  120944. ctx = graphql.WithFieldContext(ctx, fc)
  120945. defer func() {
  120946. if r := recover(); r != nil {
  120947. ec.Error(ctx, ec.Recover(ctx, r))
  120948. ret = graphql.Null
  120949. }
  120950. }()
  120951. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  120952. ctx = rctx // use context from middleware stack in children
  120953. return obj.ID, nil
  120954. })
  120955. if err != nil {
  120956. ec.Error(ctx, err)
  120957. return graphql.Null
  120958. }
  120959. if resTmp == nil {
  120960. if !graphql.HasFieldError(ctx, fc) {
  120961. ec.Errorf(ctx, "must not be null")
  120962. }
  120963. return graphql.Null
  120964. }
  120965. res := resTmp.(string)
  120966. fc.Result = res
  120967. return ec.marshalNID2string(ctx, field.Selections, res)
  120968. }
  120969. func (ec *executionContext) fieldContext_Shop_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  120970. fc = &graphql.FieldContext{
  120971. Object: "Shop",
  120972. Field: field,
  120973. IsMethod: false,
  120974. IsResolver: false,
  120975. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  120976. return nil, errors.New("field of type ID does not have child fields")
  120977. },
  120978. }
  120979. return fc, nil
  120980. }
  120981. func (ec *executionContext) _Shop_limitedPendingOrderCount(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  120982. fc, err := ec.fieldContext_Shop_limitedPendingOrderCount(ctx, field)
  120983. if err != nil {
  120984. return graphql.Null
  120985. }
  120986. ctx = graphql.WithFieldContext(ctx, fc)
  120987. defer func() {
  120988. if r := recover(); r != nil {
  120989. ec.Error(ctx, ec.Recover(ctx, r))
  120990. ret = graphql.Null
  120991. }
  120992. }()
  120993. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  120994. ctx = rctx // use context from middleware stack in children
  120995. return obj.LimitedPendingOrderCount, nil
  120996. })
  120997. if err != nil {
  120998. ec.Error(ctx, err)
  120999. return graphql.Null
  121000. }
  121001. if resTmp == nil {
  121002. if !graphql.HasFieldError(ctx, fc) {
  121003. ec.Errorf(ctx, "must not be null")
  121004. }
  121005. return graphql.Null
  121006. }
  121007. res := resTmp.(*LimitedPendingOrderCount)
  121008. fc.Result = res
  121009. return ec.marshalNLimitedPendingOrderCount2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLimitedPendingOrderCount(ctx, field.Selections, res)
  121010. }
  121011. func (ec *executionContext) fieldContext_Shop_limitedPendingOrderCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  121012. fc = &graphql.FieldContext{
  121013. Object: "Shop",
  121014. Field: field,
  121015. IsMethod: false,
  121016. IsResolver: false,
  121017. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  121018. switch field.Name {
  121019. case "atMax":
  121020. return ec.fieldContext_LimitedPendingOrderCount_atMax(ctx, field)
  121021. case "count":
  121022. return ec.fieldContext_LimitedPendingOrderCount_count(ctx, field)
  121023. }
  121024. return nil, fmt.Errorf("no field named %q was found under type LimitedPendingOrderCount", field.Name)
  121025. },
  121026. }
  121027. return fc, nil
  121028. }
  121029. func (ec *executionContext) _Shop_merchantApprovalSignals(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  121030. fc, err := ec.fieldContext_Shop_merchantApprovalSignals(ctx, field)
  121031. if err != nil {
  121032. return graphql.Null
  121033. }
  121034. ctx = graphql.WithFieldContext(ctx, fc)
  121035. defer func() {
  121036. if r := recover(); r != nil {
  121037. ec.Error(ctx, ec.Recover(ctx, r))
  121038. ret = graphql.Null
  121039. }
  121040. }()
  121041. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  121042. ctx = rctx // use context from middleware stack in children
  121043. return obj.MerchantApprovalSignals, nil
  121044. })
  121045. if err != nil {
  121046. ec.Error(ctx, err)
  121047. return graphql.Null
  121048. }
  121049. if resTmp == nil {
  121050. return graphql.Null
  121051. }
  121052. res := resTmp.(*MerchantApprovalSignals)
  121053. fc.Result = res
  121054. return ec.marshalOMerchantApprovalSignals2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMerchantApprovalSignals(ctx, field.Selections, res)
  121055. }
  121056. func (ec *executionContext) fieldContext_Shop_merchantApprovalSignals(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  121057. fc = &graphql.FieldContext{
  121058. Object: "Shop",
  121059. Field: field,
  121060. IsMethod: false,
  121061. IsResolver: false,
  121062. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  121063. switch field.Name {
  121064. case "identityVerified":
  121065. return ec.fieldContext_MerchantApprovalSignals_identityVerified(ctx, field)
  121066. case "verifiedByShopify":
  121067. return ec.fieldContext_MerchantApprovalSignals_verifiedByShopify(ctx, field)
  121068. }
  121069. return nil, fmt.Errorf("no field named %q was found under type MerchantApprovalSignals", field.Name)
  121070. },
  121071. }
  121072. return fc, nil
  121073. }
  121074. func (ec *executionContext) _Shop_metafield(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  121075. fc, err := ec.fieldContext_Shop_metafield(ctx, field)
  121076. if err != nil {
  121077. return graphql.Null
  121078. }
  121079. ctx = graphql.WithFieldContext(ctx, fc)
  121080. defer func() {
  121081. if r := recover(); r != nil {
  121082. ec.Error(ctx, ec.Recover(ctx, r))
  121083. ret = graphql.Null
  121084. }
  121085. }()
  121086. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  121087. ctx = rctx // use context from middleware stack in children
  121088. return obj.Metafield, nil
  121089. })
  121090. if err != nil {
  121091. ec.Error(ctx, err)
  121092. return graphql.Null
  121093. }
  121094. if resTmp == nil {
  121095. return graphql.Null
  121096. }
  121097. res := resTmp.(*Metafield)
  121098. fc.Result = res
  121099. return ec.marshalOMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafield(ctx, field.Selections, res)
  121100. }
  121101. func (ec *executionContext) fieldContext_Shop_metafield(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  121102. fc = &graphql.FieldContext{
  121103. Object: "Shop",
  121104. Field: field,
  121105. IsMethod: false,
  121106. IsResolver: false,
  121107. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  121108. switch field.Name {
  121109. case "createdAt":
  121110. return ec.fieldContext_Metafield_createdAt(ctx, field)
  121111. case "definition":
  121112. return ec.fieldContext_Metafield_definition(ctx, field)
  121113. case "description":
  121114. return ec.fieldContext_Metafield_description(ctx, field)
  121115. case "id":
  121116. return ec.fieldContext_Metafield_id(ctx, field)
  121117. case "key":
  121118. return ec.fieldContext_Metafield_key(ctx, field)
  121119. case "legacyResourceId":
  121120. return ec.fieldContext_Metafield_legacyResourceId(ctx, field)
  121121. case "namespace":
  121122. return ec.fieldContext_Metafield_namespace(ctx, field)
  121123. case "owner":
  121124. return ec.fieldContext_Metafield_owner(ctx, field)
  121125. case "ownerType":
  121126. return ec.fieldContext_Metafield_ownerType(ctx, field)
  121127. case "reference":
  121128. return ec.fieldContext_Metafield_reference(ctx, field)
  121129. case "references":
  121130. return ec.fieldContext_Metafield_references(ctx, field)
  121131. case "type":
  121132. return ec.fieldContext_Metafield_type(ctx, field)
  121133. case "updatedAt":
  121134. return ec.fieldContext_Metafield_updatedAt(ctx, field)
  121135. case "value":
  121136. return ec.fieldContext_Metafield_value(ctx, field)
  121137. }
  121138. return nil, fmt.Errorf("no field named %q was found under type Metafield", field.Name)
  121139. },
  121140. }
  121141. defer func() {
  121142. if r := recover(); r != nil {
  121143. err = ec.Recover(ctx, r)
  121144. ec.Error(ctx, err)
  121145. }
  121146. }()
  121147. ctx = graphql.WithFieldContext(ctx, fc)
  121148. if fc.Args, err = ec.field_Shop_metafield_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  121149. ec.Error(ctx, err)
  121150. return
  121151. }
  121152. return fc, nil
  121153. }
  121154. func (ec *executionContext) _Shop_metafields(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  121155. fc, err := ec.fieldContext_Shop_metafields(ctx, field)
  121156. if err != nil {
  121157. return graphql.Null
  121158. }
  121159. ctx = graphql.WithFieldContext(ctx, fc)
  121160. defer func() {
  121161. if r := recover(); r != nil {
  121162. ec.Error(ctx, ec.Recover(ctx, r))
  121163. ret = graphql.Null
  121164. }
  121165. }()
  121166. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  121167. ctx = rctx // use context from middleware stack in children
  121168. return obj.Metafields, nil
  121169. })
  121170. if err != nil {
  121171. ec.Error(ctx, err)
  121172. return graphql.Null
  121173. }
  121174. if resTmp == nil {
  121175. if !graphql.HasFieldError(ctx, fc) {
  121176. ec.Errorf(ctx, "must not be null")
  121177. }
  121178. return graphql.Null
  121179. }
  121180. res := resTmp.(*MetafieldConnection)
  121181. fc.Result = res
  121182. return ec.marshalNMetafieldConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldConnection(ctx, field.Selections, res)
  121183. }
  121184. func (ec *executionContext) fieldContext_Shop_metafields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  121185. fc = &graphql.FieldContext{
  121186. Object: "Shop",
  121187. Field: field,
  121188. IsMethod: false,
  121189. IsResolver: false,
  121190. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  121191. switch field.Name {
  121192. case "edges":
  121193. return ec.fieldContext_MetafieldConnection_edges(ctx, field)
  121194. case "nodes":
  121195. return ec.fieldContext_MetafieldConnection_nodes(ctx, field)
  121196. case "pageInfo":
  121197. return ec.fieldContext_MetafieldConnection_pageInfo(ctx, field)
  121198. }
  121199. return nil, fmt.Errorf("no field named %q was found under type MetafieldConnection", field.Name)
  121200. },
  121201. }
  121202. defer func() {
  121203. if r := recover(); r != nil {
  121204. err = ec.Recover(ctx, r)
  121205. ec.Error(ctx, err)
  121206. }
  121207. }()
  121208. ctx = graphql.WithFieldContext(ctx, fc)
  121209. if fc.Args, err = ec.field_Shop_metafields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  121210. ec.Error(ctx, err)
  121211. return
  121212. }
  121213. return fc, nil
  121214. }
  121215. func (ec *executionContext) _Shop_myshopifyDomain(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  121216. fc, err := ec.fieldContext_Shop_myshopifyDomain(ctx, field)
  121217. if err != nil {
  121218. return graphql.Null
  121219. }
  121220. ctx = graphql.WithFieldContext(ctx, fc)
  121221. defer func() {
  121222. if r := recover(); r != nil {
  121223. ec.Error(ctx, ec.Recover(ctx, r))
  121224. ret = graphql.Null
  121225. }
  121226. }()
  121227. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  121228. ctx = rctx // use context from middleware stack in children
  121229. return obj.MyshopifyDomain, nil
  121230. })
  121231. if err != nil {
  121232. ec.Error(ctx, err)
  121233. return graphql.Null
  121234. }
  121235. if resTmp == nil {
  121236. if !graphql.HasFieldError(ctx, fc) {
  121237. ec.Errorf(ctx, "must not be null")
  121238. }
  121239. return graphql.Null
  121240. }
  121241. res := resTmp.(string)
  121242. fc.Result = res
  121243. return ec.marshalNString2string(ctx, field.Selections, res)
  121244. }
  121245. func (ec *executionContext) fieldContext_Shop_myshopifyDomain(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  121246. fc = &graphql.FieldContext{
  121247. Object: "Shop",
  121248. Field: field,
  121249. IsMethod: false,
  121250. IsResolver: false,
  121251. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  121252. return nil, errors.New("field of type String does not have child fields")
  121253. },
  121254. }
  121255. return fc, nil
  121256. }
  121257. func (ec *executionContext) _Shop_name(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  121258. fc, err := ec.fieldContext_Shop_name(ctx, field)
  121259. if err != nil {
  121260. return graphql.Null
  121261. }
  121262. ctx = graphql.WithFieldContext(ctx, fc)
  121263. defer func() {
  121264. if r := recover(); r != nil {
  121265. ec.Error(ctx, ec.Recover(ctx, r))
  121266. ret = graphql.Null
  121267. }
  121268. }()
  121269. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  121270. ctx = rctx // use context from middleware stack in children
  121271. return obj.Name, nil
  121272. })
  121273. if err != nil {
  121274. ec.Error(ctx, err)
  121275. return graphql.Null
  121276. }
  121277. if resTmp == nil {
  121278. if !graphql.HasFieldError(ctx, fc) {
  121279. ec.Errorf(ctx, "must not be null")
  121280. }
  121281. return graphql.Null
  121282. }
  121283. res := resTmp.(string)
  121284. fc.Result = res
  121285. return ec.marshalNString2string(ctx, field.Selections, res)
  121286. }
  121287. func (ec *executionContext) fieldContext_Shop_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  121288. fc = &graphql.FieldContext{
  121289. Object: "Shop",
  121290. Field: field,
  121291. IsMethod: false,
  121292. IsResolver: false,
  121293. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  121294. return nil, errors.New("field of type String does not have child fields")
  121295. },
  121296. }
  121297. return fc, nil
  121298. }
  121299. func (ec *executionContext) _Shop_navigationSettings(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  121300. fc, err := ec.fieldContext_Shop_navigationSettings(ctx, field)
  121301. if err != nil {
  121302. return graphql.Null
  121303. }
  121304. ctx = graphql.WithFieldContext(ctx, fc)
  121305. defer func() {
  121306. if r := recover(); r != nil {
  121307. ec.Error(ctx, ec.Recover(ctx, r))
  121308. ret = graphql.Null
  121309. }
  121310. }()
  121311. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  121312. ctx = rctx // use context from middleware stack in children
  121313. return obj.NavigationSettings, nil
  121314. })
  121315. if err != nil {
  121316. ec.Error(ctx, err)
  121317. return graphql.Null
  121318. }
  121319. if resTmp == nil {
  121320. if !graphql.HasFieldError(ctx, fc) {
  121321. ec.Errorf(ctx, "must not be null")
  121322. }
  121323. return graphql.Null
  121324. }
  121325. res := resTmp.([]*NavigationItem)
  121326. fc.Result = res
  121327. return ec.marshalNNavigationItem2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐNavigationItemᚄ(ctx, field.Selections, res)
  121328. }
  121329. func (ec *executionContext) fieldContext_Shop_navigationSettings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  121330. fc = &graphql.FieldContext{
  121331. Object: "Shop",
  121332. Field: field,
  121333. IsMethod: false,
  121334. IsResolver: false,
  121335. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  121336. switch field.Name {
  121337. case "id":
  121338. return ec.fieldContext_NavigationItem_id(ctx, field)
  121339. case "title":
  121340. return ec.fieldContext_NavigationItem_title(ctx, field)
  121341. case "url":
  121342. return ec.fieldContext_NavigationItem_url(ctx, field)
  121343. }
  121344. return nil, fmt.Errorf("no field named %q was found under type NavigationItem", field.Name)
  121345. },
  121346. }
  121347. return fc, nil
  121348. }
  121349. func (ec *executionContext) _Shop_orderNumberFormatPrefix(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  121350. fc, err := ec.fieldContext_Shop_orderNumberFormatPrefix(ctx, field)
  121351. if err != nil {
  121352. return graphql.Null
  121353. }
  121354. ctx = graphql.WithFieldContext(ctx, fc)
  121355. defer func() {
  121356. if r := recover(); r != nil {
  121357. ec.Error(ctx, ec.Recover(ctx, r))
  121358. ret = graphql.Null
  121359. }
  121360. }()
  121361. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  121362. ctx = rctx // use context from middleware stack in children
  121363. return obj.OrderNumberFormatPrefix, nil
  121364. })
  121365. if err != nil {
  121366. ec.Error(ctx, err)
  121367. return graphql.Null
  121368. }
  121369. if resTmp == nil {
  121370. if !graphql.HasFieldError(ctx, fc) {
  121371. ec.Errorf(ctx, "must not be null")
  121372. }
  121373. return graphql.Null
  121374. }
  121375. res := resTmp.(string)
  121376. fc.Result = res
  121377. return ec.marshalNString2string(ctx, field.Selections, res)
  121378. }
  121379. func (ec *executionContext) fieldContext_Shop_orderNumberFormatPrefix(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  121380. fc = &graphql.FieldContext{
  121381. Object: "Shop",
  121382. Field: field,
  121383. IsMethod: false,
  121384. IsResolver: false,
  121385. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  121386. return nil, errors.New("field of type String does not have child fields")
  121387. },
  121388. }
  121389. return fc, nil
  121390. }
  121391. func (ec *executionContext) _Shop_orderNumberFormatSuffix(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  121392. fc, err := ec.fieldContext_Shop_orderNumberFormatSuffix(ctx, field)
  121393. if err != nil {
  121394. return graphql.Null
  121395. }
  121396. ctx = graphql.WithFieldContext(ctx, fc)
  121397. defer func() {
  121398. if r := recover(); r != nil {
  121399. ec.Error(ctx, ec.Recover(ctx, r))
  121400. ret = graphql.Null
  121401. }
  121402. }()
  121403. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  121404. ctx = rctx // use context from middleware stack in children
  121405. return obj.OrderNumberFormatSuffix, nil
  121406. })
  121407. if err != nil {
  121408. ec.Error(ctx, err)
  121409. return graphql.Null
  121410. }
  121411. if resTmp == nil {
  121412. if !graphql.HasFieldError(ctx, fc) {
  121413. ec.Errorf(ctx, "must not be null")
  121414. }
  121415. return graphql.Null
  121416. }
  121417. res := resTmp.(string)
  121418. fc.Result = res
  121419. return ec.marshalNString2string(ctx, field.Selections, res)
  121420. }
  121421. func (ec *executionContext) fieldContext_Shop_orderNumberFormatSuffix(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  121422. fc = &graphql.FieldContext{
  121423. Object: "Shop",
  121424. Field: field,
  121425. IsMethod: false,
  121426. IsResolver: false,
  121427. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  121428. return nil, errors.New("field of type String does not have child fields")
  121429. },
  121430. }
  121431. return fc, nil
  121432. }
  121433. func (ec *executionContext) _Shop_orderTags(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  121434. fc, err := ec.fieldContext_Shop_orderTags(ctx, field)
  121435. if err != nil {
  121436. return graphql.Null
  121437. }
  121438. ctx = graphql.WithFieldContext(ctx, fc)
  121439. defer func() {
  121440. if r := recover(); r != nil {
  121441. ec.Error(ctx, ec.Recover(ctx, r))
  121442. ret = graphql.Null
  121443. }
  121444. }()
  121445. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  121446. ctx = rctx // use context from middleware stack in children
  121447. return obj.OrderTags, nil
  121448. })
  121449. if err != nil {
  121450. ec.Error(ctx, err)
  121451. return graphql.Null
  121452. }
  121453. if resTmp == nil {
  121454. if !graphql.HasFieldError(ctx, fc) {
  121455. ec.Errorf(ctx, "must not be null")
  121456. }
  121457. return graphql.Null
  121458. }
  121459. res := resTmp.(*StringConnection)
  121460. fc.Result = res
  121461. return ec.marshalNStringConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStringConnection(ctx, field.Selections, res)
  121462. }
  121463. func (ec *executionContext) fieldContext_Shop_orderTags(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  121464. fc = &graphql.FieldContext{
  121465. Object: "Shop",
  121466. Field: field,
  121467. IsMethod: false,
  121468. IsResolver: false,
  121469. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  121470. switch field.Name {
  121471. case "edges":
  121472. return ec.fieldContext_StringConnection_edges(ctx, field)
  121473. case "pageInfo":
  121474. return ec.fieldContext_StringConnection_pageInfo(ctx, field)
  121475. }
  121476. return nil, fmt.Errorf("no field named %q was found under type StringConnection", field.Name)
  121477. },
  121478. }
  121479. defer func() {
  121480. if r := recover(); r != nil {
  121481. err = ec.Recover(ctx, r)
  121482. ec.Error(ctx, err)
  121483. }
  121484. }()
  121485. ctx = graphql.WithFieldContext(ctx, fc)
  121486. if fc.Args, err = ec.field_Shop_orderTags_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  121487. ec.Error(ctx, err)
  121488. return
  121489. }
  121490. return fc, nil
  121491. }
  121492. func (ec *executionContext) _Shop_paymentSettings(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  121493. fc, err := ec.fieldContext_Shop_paymentSettings(ctx, field)
  121494. if err != nil {
  121495. return graphql.Null
  121496. }
  121497. ctx = graphql.WithFieldContext(ctx, fc)
  121498. defer func() {
  121499. if r := recover(); r != nil {
  121500. ec.Error(ctx, ec.Recover(ctx, r))
  121501. ret = graphql.Null
  121502. }
  121503. }()
  121504. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  121505. ctx = rctx // use context from middleware stack in children
  121506. return obj.PaymentSettings, nil
  121507. })
  121508. if err != nil {
  121509. ec.Error(ctx, err)
  121510. return graphql.Null
  121511. }
  121512. if resTmp == nil {
  121513. if !graphql.HasFieldError(ctx, fc) {
  121514. ec.Errorf(ctx, "must not be null")
  121515. }
  121516. return graphql.Null
  121517. }
  121518. res := resTmp.(*PaymentSettings)
  121519. fc.Result = res
  121520. return ec.marshalNPaymentSettings2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentSettings(ctx, field.Selections, res)
  121521. }
  121522. func (ec *executionContext) fieldContext_Shop_paymentSettings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  121523. fc = &graphql.FieldContext{
  121524. Object: "Shop",
  121525. Field: field,
  121526. IsMethod: false,
  121527. IsResolver: false,
  121528. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  121529. switch field.Name {
  121530. case "supportedDigitalWallets":
  121531. return ec.fieldContext_PaymentSettings_supportedDigitalWallets(ctx, field)
  121532. }
  121533. return nil, fmt.Errorf("no field named %q was found under type PaymentSettings", field.Name)
  121534. },
  121535. }
  121536. return fc, nil
  121537. }
  121538. func (ec *executionContext) _Shop_plan(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  121539. fc, err := ec.fieldContext_Shop_plan(ctx, field)
  121540. if err != nil {
  121541. return graphql.Null
  121542. }
  121543. ctx = graphql.WithFieldContext(ctx, fc)
  121544. defer func() {
  121545. if r := recover(); r != nil {
  121546. ec.Error(ctx, ec.Recover(ctx, r))
  121547. ret = graphql.Null
  121548. }
  121549. }()
  121550. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  121551. ctx = rctx // use context from middleware stack in children
  121552. return obj.Plan, nil
  121553. })
  121554. if err != nil {
  121555. ec.Error(ctx, err)
  121556. return graphql.Null
  121557. }
  121558. if resTmp == nil {
  121559. if !graphql.HasFieldError(ctx, fc) {
  121560. ec.Errorf(ctx, "must not be null")
  121561. }
  121562. return graphql.Null
  121563. }
  121564. res := resTmp.(*ShopPlan)
  121565. fc.Result = res
  121566. return ec.marshalNShopPlan2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopPlan(ctx, field.Selections, res)
  121567. }
  121568. func (ec *executionContext) fieldContext_Shop_plan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  121569. fc = &graphql.FieldContext{
  121570. Object: "Shop",
  121571. Field: field,
  121572. IsMethod: false,
  121573. IsResolver: false,
  121574. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  121575. switch field.Name {
  121576. case "displayName":
  121577. return ec.fieldContext_ShopPlan_displayName(ctx, field)
  121578. case "partnerDevelopment":
  121579. return ec.fieldContext_ShopPlan_partnerDevelopment(ctx, field)
  121580. case "shopifyPlus":
  121581. return ec.fieldContext_ShopPlan_shopifyPlus(ctx, field)
  121582. }
  121583. return nil, fmt.Errorf("no field named %q was found under type ShopPlan", field.Name)
  121584. },
  121585. }
  121586. return fc, nil
  121587. }
  121588. func (ec *executionContext) _Shop_primaryDomain(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  121589. fc, err := ec.fieldContext_Shop_primaryDomain(ctx, field)
  121590. if err != nil {
  121591. return graphql.Null
  121592. }
  121593. ctx = graphql.WithFieldContext(ctx, fc)
  121594. defer func() {
  121595. if r := recover(); r != nil {
  121596. ec.Error(ctx, ec.Recover(ctx, r))
  121597. ret = graphql.Null
  121598. }
  121599. }()
  121600. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  121601. ctx = rctx // use context from middleware stack in children
  121602. return obj.PrimaryDomain, nil
  121603. })
  121604. if err != nil {
  121605. ec.Error(ctx, err)
  121606. return graphql.Null
  121607. }
  121608. if resTmp == nil {
  121609. if !graphql.HasFieldError(ctx, fc) {
  121610. ec.Errorf(ctx, "must not be null")
  121611. }
  121612. return graphql.Null
  121613. }
  121614. res := resTmp.(*Domain)
  121615. fc.Result = res
  121616. return ec.marshalNDomain2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDomain(ctx, field.Selections, res)
  121617. }
  121618. func (ec *executionContext) fieldContext_Shop_primaryDomain(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  121619. fc = &graphql.FieldContext{
  121620. Object: "Shop",
  121621. Field: field,
  121622. IsMethod: false,
  121623. IsResolver: false,
  121624. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  121625. switch field.Name {
  121626. case "host":
  121627. return ec.fieldContext_Domain_host(ctx, field)
  121628. case "id":
  121629. return ec.fieldContext_Domain_id(ctx, field)
  121630. case "localization":
  121631. return ec.fieldContext_Domain_localization(ctx, field)
  121632. case "marketWebPresence":
  121633. return ec.fieldContext_Domain_marketWebPresence(ctx, field)
  121634. case "sslEnabled":
  121635. return ec.fieldContext_Domain_sslEnabled(ctx, field)
  121636. case "url":
  121637. return ec.fieldContext_Domain_url(ctx, field)
  121638. }
  121639. return nil, fmt.Errorf("no field named %q was found under type Domain", field.Name)
  121640. },
  121641. }
  121642. return fc, nil
  121643. }
  121644. func (ec *executionContext) _Shop_privateMetafield(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  121645. fc, err := ec.fieldContext_Shop_privateMetafield(ctx, field)
  121646. if err != nil {
  121647. return graphql.Null
  121648. }
  121649. ctx = graphql.WithFieldContext(ctx, fc)
  121650. defer func() {
  121651. if r := recover(); r != nil {
  121652. ec.Error(ctx, ec.Recover(ctx, r))
  121653. ret = graphql.Null
  121654. }
  121655. }()
  121656. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  121657. ctx = rctx // use context from middleware stack in children
  121658. return obj.PrivateMetafield, nil
  121659. })
  121660. if err != nil {
  121661. ec.Error(ctx, err)
  121662. return graphql.Null
  121663. }
  121664. if resTmp == nil {
  121665. return graphql.Null
  121666. }
  121667. res := resTmp.(*PrivateMetafield)
  121668. fc.Result = res
  121669. return ec.marshalOPrivateMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafield(ctx, field.Selections, res)
  121670. }
  121671. func (ec *executionContext) fieldContext_Shop_privateMetafield(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  121672. fc = &graphql.FieldContext{
  121673. Object: "Shop",
  121674. Field: field,
  121675. IsMethod: false,
  121676. IsResolver: false,
  121677. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  121678. switch field.Name {
  121679. case "createdAt":
  121680. return ec.fieldContext_PrivateMetafield_createdAt(ctx, field)
  121681. case "id":
  121682. return ec.fieldContext_PrivateMetafield_id(ctx, field)
  121683. case "key":
  121684. return ec.fieldContext_PrivateMetafield_key(ctx, field)
  121685. case "namespace":
  121686. return ec.fieldContext_PrivateMetafield_namespace(ctx, field)
  121687. case "updatedAt":
  121688. return ec.fieldContext_PrivateMetafield_updatedAt(ctx, field)
  121689. case "value":
  121690. return ec.fieldContext_PrivateMetafield_value(ctx, field)
  121691. case "valueType":
  121692. return ec.fieldContext_PrivateMetafield_valueType(ctx, field)
  121693. }
  121694. return nil, fmt.Errorf("no field named %q was found under type PrivateMetafield", field.Name)
  121695. },
  121696. }
  121697. defer func() {
  121698. if r := recover(); r != nil {
  121699. err = ec.Recover(ctx, r)
  121700. ec.Error(ctx, err)
  121701. }
  121702. }()
  121703. ctx = graphql.WithFieldContext(ctx, fc)
  121704. if fc.Args, err = ec.field_Shop_privateMetafield_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  121705. ec.Error(ctx, err)
  121706. return
  121707. }
  121708. return fc, nil
  121709. }
  121710. func (ec *executionContext) _Shop_privateMetafields(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  121711. fc, err := ec.fieldContext_Shop_privateMetafields(ctx, field)
  121712. if err != nil {
  121713. return graphql.Null
  121714. }
  121715. ctx = graphql.WithFieldContext(ctx, fc)
  121716. defer func() {
  121717. if r := recover(); r != nil {
  121718. ec.Error(ctx, ec.Recover(ctx, r))
  121719. ret = graphql.Null
  121720. }
  121721. }()
  121722. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  121723. ctx = rctx // use context from middleware stack in children
  121724. return obj.PrivateMetafields, nil
  121725. })
  121726. if err != nil {
  121727. ec.Error(ctx, err)
  121728. return graphql.Null
  121729. }
  121730. if resTmp == nil {
  121731. if !graphql.HasFieldError(ctx, fc) {
  121732. ec.Errorf(ctx, "must not be null")
  121733. }
  121734. return graphql.Null
  121735. }
  121736. res := resTmp.(*PrivateMetafieldConnection)
  121737. fc.Result = res
  121738. return ec.marshalNPrivateMetafieldConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafieldConnection(ctx, field.Selections, res)
  121739. }
  121740. func (ec *executionContext) fieldContext_Shop_privateMetafields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  121741. fc = &graphql.FieldContext{
  121742. Object: "Shop",
  121743. Field: field,
  121744. IsMethod: false,
  121745. IsResolver: false,
  121746. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  121747. switch field.Name {
  121748. case "edges":
  121749. return ec.fieldContext_PrivateMetafieldConnection_edges(ctx, field)
  121750. case "nodes":
  121751. return ec.fieldContext_PrivateMetafieldConnection_nodes(ctx, field)
  121752. case "pageInfo":
  121753. return ec.fieldContext_PrivateMetafieldConnection_pageInfo(ctx, field)
  121754. }
  121755. return nil, fmt.Errorf("no field named %q was found under type PrivateMetafieldConnection", field.Name)
  121756. },
  121757. }
  121758. defer func() {
  121759. if r := recover(); r != nil {
  121760. err = ec.Recover(ctx, r)
  121761. ec.Error(ctx, err)
  121762. }
  121763. }()
  121764. ctx = graphql.WithFieldContext(ctx, fc)
  121765. if fc.Args, err = ec.field_Shop_privateMetafields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  121766. ec.Error(ctx, err)
  121767. return
  121768. }
  121769. return fc, nil
  121770. }
  121771. func (ec *executionContext) _Shop_productImages(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  121772. fc, err := ec.fieldContext_Shop_productImages(ctx, field)
  121773. if err != nil {
  121774. return graphql.Null
  121775. }
  121776. ctx = graphql.WithFieldContext(ctx, fc)
  121777. defer func() {
  121778. if r := recover(); r != nil {
  121779. ec.Error(ctx, ec.Recover(ctx, r))
  121780. ret = graphql.Null
  121781. }
  121782. }()
  121783. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  121784. ctx = rctx // use context from middleware stack in children
  121785. return obj.ProductImages, nil
  121786. })
  121787. if err != nil {
  121788. ec.Error(ctx, err)
  121789. return graphql.Null
  121790. }
  121791. if resTmp == nil {
  121792. if !graphql.HasFieldError(ctx, fc) {
  121793. ec.Errorf(ctx, "must not be null")
  121794. }
  121795. return graphql.Null
  121796. }
  121797. res := resTmp.(*ImageConnection)
  121798. fc.Result = res
  121799. return ec.marshalNImageConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImageConnection(ctx, field.Selections, res)
  121800. }
  121801. func (ec *executionContext) fieldContext_Shop_productImages(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  121802. fc = &graphql.FieldContext{
  121803. Object: "Shop",
  121804. Field: field,
  121805. IsMethod: false,
  121806. IsResolver: false,
  121807. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  121808. switch field.Name {
  121809. case "edges":
  121810. return ec.fieldContext_ImageConnection_edges(ctx, field)
  121811. case "nodes":
  121812. return ec.fieldContext_ImageConnection_nodes(ctx, field)
  121813. case "pageInfo":
  121814. return ec.fieldContext_ImageConnection_pageInfo(ctx, field)
  121815. }
  121816. return nil, fmt.Errorf("no field named %q was found under type ImageConnection", field.Name)
  121817. },
  121818. }
  121819. defer func() {
  121820. if r := recover(); r != nil {
  121821. err = ec.Recover(ctx, r)
  121822. ec.Error(ctx, err)
  121823. }
  121824. }()
  121825. ctx = graphql.WithFieldContext(ctx, fc)
  121826. if fc.Args, err = ec.field_Shop_productImages_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  121827. ec.Error(ctx, err)
  121828. return
  121829. }
  121830. return fc, nil
  121831. }
  121832. func (ec *executionContext) _Shop_productTags(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  121833. fc, err := ec.fieldContext_Shop_productTags(ctx, field)
  121834. if err != nil {
  121835. return graphql.Null
  121836. }
  121837. ctx = graphql.WithFieldContext(ctx, fc)
  121838. defer func() {
  121839. if r := recover(); r != nil {
  121840. ec.Error(ctx, ec.Recover(ctx, r))
  121841. ret = graphql.Null
  121842. }
  121843. }()
  121844. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  121845. ctx = rctx // use context from middleware stack in children
  121846. return obj.ProductTags, nil
  121847. })
  121848. if err != nil {
  121849. ec.Error(ctx, err)
  121850. return graphql.Null
  121851. }
  121852. if resTmp == nil {
  121853. if !graphql.HasFieldError(ctx, fc) {
  121854. ec.Errorf(ctx, "must not be null")
  121855. }
  121856. return graphql.Null
  121857. }
  121858. res := resTmp.(*StringConnection)
  121859. fc.Result = res
  121860. return ec.marshalNStringConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStringConnection(ctx, field.Selections, res)
  121861. }
  121862. func (ec *executionContext) fieldContext_Shop_productTags(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  121863. fc = &graphql.FieldContext{
  121864. Object: "Shop",
  121865. Field: field,
  121866. IsMethod: false,
  121867. IsResolver: false,
  121868. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  121869. switch field.Name {
  121870. case "edges":
  121871. return ec.fieldContext_StringConnection_edges(ctx, field)
  121872. case "pageInfo":
  121873. return ec.fieldContext_StringConnection_pageInfo(ctx, field)
  121874. }
  121875. return nil, fmt.Errorf("no field named %q was found under type StringConnection", field.Name)
  121876. },
  121877. }
  121878. defer func() {
  121879. if r := recover(); r != nil {
  121880. err = ec.Recover(ctx, r)
  121881. ec.Error(ctx, err)
  121882. }
  121883. }()
  121884. ctx = graphql.WithFieldContext(ctx, fc)
  121885. if fc.Args, err = ec.field_Shop_productTags_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  121886. ec.Error(ctx, err)
  121887. return
  121888. }
  121889. return fc, nil
  121890. }
  121891. func (ec *executionContext) _Shop_productTypes(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  121892. fc, err := ec.fieldContext_Shop_productTypes(ctx, field)
  121893. if err != nil {
  121894. return graphql.Null
  121895. }
  121896. ctx = graphql.WithFieldContext(ctx, fc)
  121897. defer func() {
  121898. if r := recover(); r != nil {
  121899. ec.Error(ctx, ec.Recover(ctx, r))
  121900. ret = graphql.Null
  121901. }
  121902. }()
  121903. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  121904. ctx = rctx // use context from middleware stack in children
  121905. return obj.ProductTypes, nil
  121906. })
  121907. if err != nil {
  121908. ec.Error(ctx, err)
  121909. return graphql.Null
  121910. }
  121911. if resTmp == nil {
  121912. if !graphql.HasFieldError(ctx, fc) {
  121913. ec.Errorf(ctx, "must not be null")
  121914. }
  121915. return graphql.Null
  121916. }
  121917. res := resTmp.(*StringConnection)
  121918. fc.Result = res
  121919. return ec.marshalNStringConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStringConnection(ctx, field.Selections, res)
  121920. }
  121921. func (ec *executionContext) fieldContext_Shop_productTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  121922. fc = &graphql.FieldContext{
  121923. Object: "Shop",
  121924. Field: field,
  121925. IsMethod: false,
  121926. IsResolver: false,
  121927. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  121928. switch field.Name {
  121929. case "edges":
  121930. return ec.fieldContext_StringConnection_edges(ctx, field)
  121931. case "pageInfo":
  121932. return ec.fieldContext_StringConnection_pageInfo(ctx, field)
  121933. }
  121934. return nil, fmt.Errorf("no field named %q was found under type StringConnection", field.Name)
  121935. },
  121936. }
  121937. defer func() {
  121938. if r := recover(); r != nil {
  121939. err = ec.Recover(ctx, r)
  121940. ec.Error(ctx, err)
  121941. }
  121942. }()
  121943. ctx = graphql.WithFieldContext(ctx, fc)
  121944. if fc.Args, err = ec.field_Shop_productTypes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  121945. ec.Error(ctx, err)
  121946. return
  121947. }
  121948. return fc, nil
  121949. }
  121950. func (ec *executionContext) _Shop_productVendors(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  121951. fc, err := ec.fieldContext_Shop_productVendors(ctx, field)
  121952. if err != nil {
  121953. return graphql.Null
  121954. }
  121955. ctx = graphql.WithFieldContext(ctx, fc)
  121956. defer func() {
  121957. if r := recover(); r != nil {
  121958. ec.Error(ctx, ec.Recover(ctx, r))
  121959. ret = graphql.Null
  121960. }
  121961. }()
  121962. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  121963. ctx = rctx // use context from middleware stack in children
  121964. return obj.ProductVendors, nil
  121965. })
  121966. if err != nil {
  121967. ec.Error(ctx, err)
  121968. return graphql.Null
  121969. }
  121970. if resTmp == nil {
  121971. if !graphql.HasFieldError(ctx, fc) {
  121972. ec.Errorf(ctx, "must not be null")
  121973. }
  121974. return graphql.Null
  121975. }
  121976. res := resTmp.(*StringConnection)
  121977. fc.Result = res
  121978. return ec.marshalNStringConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStringConnection(ctx, field.Selections, res)
  121979. }
  121980. func (ec *executionContext) fieldContext_Shop_productVendors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  121981. fc = &graphql.FieldContext{
  121982. Object: "Shop",
  121983. Field: field,
  121984. IsMethod: false,
  121985. IsResolver: false,
  121986. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  121987. switch field.Name {
  121988. case "edges":
  121989. return ec.fieldContext_StringConnection_edges(ctx, field)
  121990. case "pageInfo":
  121991. return ec.fieldContext_StringConnection_pageInfo(ctx, field)
  121992. }
  121993. return nil, fmt.Errorf("no field named %q was found under type StringConnection", field.Name)
  121994. },
  121995. }
  121996. defer func() {
  121997. if r := recover(); r != nil {
  121998. err = ec.Recover(ctx, r)
  121999. ec.Error(ctx, err)
  122000. }
  122001. }()
  122002. ctx = graphql.WithFieldContext(ctx, fc)
  122003. if fc.Args, err = ec.field_Shop_productVendors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  122004. ec.Error(ctx, err)
  122005. return
  122006. }
  122007. return fc, nil
  122008. }
  122009. func (ec *executionContext) _Shop_publicationCount(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  122010. fc, err := ec.fieldContext_Shop_publicationCount(ctx, field)
  122011. if err != nil {
  122012. return graphql.Null
  122013. }
  122014. ctx = graphql.WithFieldContext(ctx, fc)
  122015. defer func() {
  122016. if r := recover(); r != nil {
  122017. ec.Error(ctx, ec.Recover(ctx, r))
  122018. ret = graphql.Null
  122019. }
  122020. }()
  122021. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  122022. ctx = rctx // use context from middleware stack in children
  122023. return obj.PublicationCount, nil
  122024. })
  122025. if err != nil {
  122026. ec.Error(ctx, err)
  122027. return graphql.Null
  122028. }
  122029. if resTmp == nil {
  122030. if !graphql.HasFieldError(ctx, fc) {
  122031. ec.Errorf(ctx, "must not be null")
  122032. }
  122033. return graphql.Null
  122034. }
  122035. res := resTmp.(int)
  122036. fc.Result = res
  122037. return ec.marshalNInt2int(ctx, field.Selections, res)
  122038. }
  122039. func (ec *executionContext) fieldContext_Shop_publicationCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  122040. fc = &graphql.FieldContext{
  122041. Object: "Shop",
  122042. Field: field,
  122043. IsMethod: false,
  122044. IsResolver: false,
  122045. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  122046. return nil, errors.New("field of type Int does not have child fields")
  122047. },
  122048. }
  122049. return fc, nil
  122050. }
  122051. func (ec *executionContext) _Shop_resourceLimits(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  122052. fc, err := ec.fieldContext_Shop_resourceLimits(ctx, field)
  122053. if err != nil {
  122054. return graphql.Null
  122055. }
  122056. ctx = graphql.WithFieldContext(ctx, fc)
  122057. defer func() {
  122058. if r := recover(); r != nil {
  122059. ec.Error(ctx, ec.Recover(ctx, r))
  122060. ret = graphql.Null
  122061. }
  122062. }()
  122063. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  122064. ctx = rctx // use context from middleware stack in children
  122065. return obj.ResourceLimits, nil
  122066. })
  122067. if err != nil {
  122068. ec.Error(ctx, err)
  122069. return graphql.Null
  122070. }
  122071. if resTmp == nil {
  122072. if !graphql.HasFieldError(ctx, fc) {
  122073. ec.Errorf(ctx, "must not be null")
  122074. }
  122075. return graphql.Null
  122076. }
  122077. res := resTmp.(*ShopResourceLimits)
  122078. fc.Result = res
  122079. return ec.marshalNShopResourceLimits2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopResourceLimits(ctx, field.Selections, res)
  122080. }
  122081. func (ec *executionContext) fieldContext_Shop_resourceLimits(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  122082. fc = &graphql.FieldContext{
  122083. Object: "Shop",
  122084. Field: field,
  122085. IsMethod: false,
  122086. IsResolver: false,
  122087. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  122088. switch field.Name {
  122089. case "locationLimit":
  122090. return ec.fieldContext_ShopResourceLimits_locationLimit(ctx, field)
  122091. case "maxProductOptions":
  122092. return ec.fieldContext_ShopResourceLimits_maxProductOptions(ctx, field)
  122093. case "maxProductVariants":
  122094. return ec.fieldContext_ShopResourceLimits_maxProductVariants(ctx, field)
  122095. case "redirectLimitReached":
  122096. return ec.fieldContext_ShopResourceLimits_redirectLimitReached(ctx, field)
  122097. case "skuResourceLimits":
  122098. return ec.fieldContext_ShopResourceLimits_skuResourceLimits(ctx, field)
  122099. }
  122100. return nil, fmt.Errorf("no field named %q was found under type ShopResourceLimits", field.Name)
  122101. },
  122102. }
  122103. return fc, nil
  122104. }
  122105. func (ec *executionContext) _Shop_richTextEditorUrl(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  122106. fc, err := ec.fieldContext_Shop_richTextEditorUrl(ctx, field)
  122107. if err != nil {
  122108. return graphql.Null
  122109. }
  122110. ctx = graphql.WithFieldContext(ctx, fc)
  122111. defer func() {
  122112. if r := recover(); r != nil {
  122113. ec.Error(ctx, ec.Recover(ctx, r))
  122114. ret = graphql.Null
  122115. }
  122116. }()
  122117. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  122118. ctx = rctx // use context from middleware stack in children
  122119. return obj.RichTextEditorURL, nil
  122120. })
  122121. if err != nil {
  122122. ec.Error(ctx, err)
  122123. return graphql.Null
  122124. }
  122125. if resTmp == nil {
  122126. if !graphql.HasFieldError(ctx, fc) {
  122127. ec.Errorf(ctx, "must not be null")
  122128. }
  122129. return graphql.Null
  122130. }
  122131. res := resTmp.(string)
  122132. fc.Result = res
  122133. return ec.marshalNURL2string(ctx, field.Selections, res)
  122134. }
  122135. func (ec *executionContext) fieldContext_Shop_richTextEditorUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  122136. fc = &graphql.FieldContext{
  122137. Object: "Shop",
  122138. Field: field,
  122139. IsMethod: false,
  122140. IsResolver: false,
  122141. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  122142. return nil, errors.New("field of type URL does not have child fields")
  122143. },
  122144. }
  122145. return fc, nil
  122146. }
  122147. func (ec *executionContext) _Shop_search(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  122148. fc, err := ec.fieldContext_Shop_search(ctx, field)
  122149. if err != nil {
  122150. return graphql.Null
  122151. }
  122152. ctx = graphql.WithFieldContext(ctx, fc)
  122153. defer func() {
  122154. if r := recover(); r != nil {
  122155. ec.Error(ctx, ec.Recover(ctx, r))
  122156. ret = graphql.Null
  122157. }
  122158. }()
  122159. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  122160. ctx = rctx // use context from middleware stack in children
  122161. return obj.Search, nil
  122162. })
  122163. if err != nil {
  122164. ec.Error(ctx, err)
  122165. return graphql.Null
  122166. }
  122167. if resTmp == nil {
  122168. if !graphql.HasFieldError(ctx, fc) {
  122169. ec.Errorf(ctx, "must not be null")
  122170. }
  122171. return graphql.Null
  122172. }
  122173. res := resTmp.(*SearchResultConnection)
  122174. fc.Result = res
  122175. return ec.marshalNSearchResultConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSearchResultConnection(ctx, field.Selections, res)
  122176. }
  122177. func (ec *executionContext) fieldContext_Shop_search(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  122178. fc = &graphql.FieldContext{
  122179. Object: "Shop",
  122180. Field: field,
  122181. IsMethod: false,
  122182. IsResolver: false,
  122183. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  122184. switch field.Name {
  122185. case "edges":
  122186. return ec.fieldContext_SearchResultConnection_edges(ctx, field)
  122187. case "pageInfo":
  122188. return ec.fieldContext_SearchResultConnection_pageInfo(ctx, field)
  122189. }
  122190. return nil, fmt.Errorf("no field named %q was found under type SearchResultConnection", field.Name)
  122191. },
  122192. }
  122193. defer func() {
  122194. if r := recover(); r != nil {
  122195. err = ec.Recover(ctx, r)
  122196. ec.Error(ctx, err)
  122197. }
  122198. }()
  122199. ctx = graphql.WithFieldContext(ctx, fc)
  122200. if fc.Args, err = ec.field_Shop_search_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  122201. ec.Error(ctx, err)
  122202. return
  122203. }
  122204. return fc, nil
  122205. }
  122206. func (ec *executionContext) _Shop_searchFilters(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  122207. fc, err := ec.fieldContext_Shop_searchFilters(ctx, field)
  122208. if err != nil {
  122209. return graphql.Null
  122210. }
  122211. ctx = graphql.WithFieldContext(ctx, fc)
  122212. defer func() {
  122213. if r := recover(); r != nil {
  122214. ec.Error(ctx, ec.Recover(ctx, r))
  122215. ret = graphql.Null
  122216. }
  122217. }()
  122218. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  122219. ctx = rctx // use context from middleware stack in children
  122220. return obj.SearchFilters, nil
  122221. })
  122222. if err != nil {
  122223. ec.Error(ctx, err)
  122224. return graphql.Null
  122225. }
  122226. if resTmp == nil {
  122227. if !graphql.HasFieldError(ctx, fc) {
  122228. ec.Errorf(ctx, "must not be null")
  122229. }
  122230. return graphql.Null
  122231. }
  122232. res := resTmp.(*SearchFilterOptions)
  122233. fc.Result = res
  122234. return ec.marshalNSearchFilterOptions2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSearchFilterOptions(ctx, field.Selections, res)
  122235. }
  122236. func (ec *executionContext) fieldContext_Shop_searchFilters(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  122237. fc = &graphql.FieldContext{
  122238. Object: "Shop",
  122239. Field: field,
  122240. IsMethod: false,
  122241. IsResolver: false,
  122242. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  122243. switch field.Name {
  122244. case "productAvailability":
  122245. return ec.fieldContext_SearchFilterOptions_productAvailability(ctx, field)
  122246. }
  122247. return nil, fmt.Errorf("no field named %q was found under type SearchFilterOptions", field.Name)
  122248. },
  122249. }
  122250. return fc, nil
  122251. }
  122252. func (ec *executionContext) _Shop_setupRequired(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  122253. fc, err := ec.fieldContext_Shop_setupRequired(ctx, field)
  122254. if err != nil {
  122255. return graphql.Null
  122256. }
  122257. ctx = graphql.WithFieldContext(ctx, fc)
  122258. defer func() {
  122259. if r := recover(); r != nil {
  122260. ec.Error(ctx, ec.Recover(ctx, r))
  122261. ret = graphql.Null
  122262. }
  122263. }()
  122264. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  122265. ctx = rctx // use context from middleware stack in children
  122266. return obj.SetupRequired, nil
  122267. })
  122268. if err != nil {
  122269. ec.Error(ctx, err)
  122270. return graphql.Null
  122271. }
  122272. if resTmp == nil {
  122273. if !graphql.HasFieldError(ctx, fc) {
  122274. ec.Errorf(ctx, "must not be null")
  122275. }
  122276. return graphql.Null
  122277. }
  122278. res := resTmp.(bool)
  122279. fc.Result = res
  122280. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  122281. }
  122282. func (ec *executionContext) fieldContext_Shop_setupRequired(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  122283. fc = &graphql.FieldContext{
  122284. Object: "Shop",
  122285. Field: field,
  122286. IsMethod: false,
  122287. IsResolver: false,
  122288. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  122289. return nil, errors.New("field of type Boolean does not have child fields")
  122290. },
  122291. }
  122292. return fc, nil
  122293. }
  122294. func (ec *executionContext) _Shop_shipsToCountries(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  122295. fc, err := ec.fieldContext_Shop_shipsToCountries(ctx, field)
  122296. if err != nil {
  122297. return graphql.Null
  122298. }
  122299. ctx = graphql.WithFieldContext(ctx, fc)
  122300. defer func() {
  122301. if r := recover(); r != nil {
  122302. ec.Error(ctx, ec.Recover(ctx, r))
  122303. ret = graphql.Null
  122304. }
  122305. }()
  122306. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  122307. ctx = rctx // use context from middleware stack in children
  122308. return obj.ShipsToCountries, nil
  122309. })
  122310. if err != nil {
  122311. ec.Error(ctx, err)
  122312. return graphql.Null
  122313. }
  122314. if resTmp == nil {
  122315. if !graphql.HasFieldError(ctx, fc) {
  122316. ec.Errorf(ctx, "must not be null")
  122317. }
  122318. return graphql.Null
  122319. }
  122320. res := resTmp.([]CountryCode)
  122321. fc.Result = res
  122322. return ec.marshalNCountryCode2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCodeᚄ(ctx, field.Selections, res)
  122323. }
  122324. func (ec *executionContext) fieldContext_Shop_shipsToCountries(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  122325. fc = &graphql.FieldContext{
  122326. Object: "Shop",
  122327. Field: field,
  122328. IsMethod: false,
  122329. IsResolver: false,
  122330. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  122331. return nil, errors.New("field of type CountryCode does not have child fields")
  122332. },
  122333. }
  122334. return fc, nil
  122335. }
  122336. func (ec *executionContext) _Shop_shopPolicies(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  122337. fc, err := ec.fieldContext_Shop_shopPolicies(ctx, field)
  122338. if err != nil {
  122339. return graphql.Null
  122340. }
  122341. ctx = graphql.WithFieldContext(ctx, fc)
  122342. defer func() {
  122343. if r := recover(); r != nil {
  122344. ec.Error(ctx, ec.Recover(ctx, r))
  122345. ret = graphql.Null
  122346. }
  122347. }()
  122348. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  122349. ctx = rctx // use context from middleware stack in children
  122350. return obj.ShopPolicies, nil
  122351. })
  122352. if err != nil {
  122353. ec.Error(ctx, err)
  122354. return graphql.Null
  122355. }
  122356. if resTmp == nil {
  122357. if !graphql.HasFieldError(ctx, fc) {
  122358. ec.Errorf(ctx, "must not be null")
  122359. }
  122360. return graphql.Null
  122361. }
  122362. res := resTmp.([]*ShopPolicy)
  122363. fc.Result = res
  122364. return ec.marshalNShopPolicy2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopPolicyᚄ(ctx, field.Selections, res)
  122365. }
  122366. func (ec *executionContext) fieldContext_Shop_shopPolicies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  122367. fc = &graphql.FieldContext{
  122368. Object: "Shop",
  122369. Field: field,
  122370. IsMethod: false,
  122371. IsResolver: false,
  122372. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  122373. switch field.Name {
  122374. case "body":
  122375. return ec.fieldContext_ShopPolicy_body(ctx, field)
  122376. case "id":
  122377. return ec.fieldContext_ShopPolicy_id(ctx, field)
  122378. case "translations":
  122379. return ec.fieldContext_ShopPolicy_translations(ctx, field)
  122380. case "type":
  122381. return ec.fieldContext_ShopPolicy_type(ctx, field)
  122382. case "url":
  122383. return ec.fieldContext_ShopPolicy_url(ctx, field)
  122384. }
  122385. return nil, fmt.Errorf("no field named %q was found under type ShopPolicy", field.Name)
  122386. },
  122387. }
  122388. return fc, nil
  122389. }
  122390. func (ec *executionContext) _Shop_staffMembers(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  122391. fc, err := ec.fieldContext_Shop_staffMembers(ctx, field)
  122392. if err != nil {
  122393. return graphql.Null
  122394. }
  122395. ctx = graphql.WithFieldContext(ctx, fc)
  122396. defer func() {
  122397. if r := recover(); r != nil {
  122398. ec.Error(ctx, ec.Recover(ctx, r))
  122399. ret = graphql.Null
  122400. }
  122401. }()
  122402. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  122403. ctx = rctx // use context from middleware stack in children
  122404. return obj.StaffMembers, nil
  122405. })
  122406. if err != nil {
  122407. ec.Error(ctx, err)
  122408. return graphql.Null
  122409. }
  122410. if resTmp == nil {
  122411. if !graphql.HasFieldError(ctx, fc) {
  122412. ec.Errorf(ctx, "must not be null")
  122413. }
  122414. return graphql.Null
  122415. }
  122416. res := resTmp.(*StaffMemberConnection)
  122417. fc.Result = res
  122418. return ec.marshalNStaffMemberConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStaffMemberConnection(ctx, field.Selections, res)
  122419. }
  122420. func (ec *executionContext) fieldContext_Shop_staffMembers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  122421. fc = &graphql.FieldContext{
  122422. Object: "Shop",
  122423. Field: field,
  122424. IsMethod: false,
  122425. IsResolver: false,
  122426. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  122427. switch field.Name {
  122428. case "edges":
  122429. return ec.fieldContext_StaffMemberConnection_edges(ctx, field)
  122430. case "nodes":
  122431. return ec.fieldContext_StaffMemberConnection_nodes(ctx, field)
  122432. case "pageInfo":
  122433. return ec.fieldContext_StaffMemberConnection_pageInfo(ctx, field)
  122434. }
  122435. return nil, fmt.Errorf("no field named %q was found under type StaffMemberConnection", field.Name)
  122436. },
  122437. }
  122438. defer func() {
  122439. if r := recover(); r != nil {
  122440. err = ec.Recover(ctx, r)
  122441. ec.Error(ctx, err)
  122442. }
  122443. }()
  122444. ctx = graphql.WithFieldContext(ctx, fc)
  122445. if fc.Args, err = ec.field_Shop_staffMembers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  122446. ec.Error(ctx, err)
  122447. return
  122448. }
  122449. return fc, nil
  122450. }
  122451. func (ec *executionContext) _Shop_storefrontAccessTokens(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  122452. fc, err := ec.fieldContext_Shop_storefrontAccessTokens(ctx, field)
  122453. if err != nil {
  122454. return graphql.Null
  122455. }
  122456. ctx = graphql.WithFieldContext(ctx, fc)
  122457. defer func() {
  122458. if r := recover(); r != nil {
  122459. ec.Error(ctx, ec.Recover(ctx, r))
  122460. ret = graphql.Null
  122461. }
  122462. }()
  122463. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  122464. ctx = rctx // use context from middleware stack in children
  122465. return obj.StorefrontAccessTokens, nil
  122466. })
  122467. if err != nil {
  122468. ec.Error(ctx, err)
  122469. return graphql.Null
  122470. }
  122471. if resTmp == nil {
  122472. if !graphql.HasFieldError(ctx, fc) {
  122473. ec.Errorf(ctx, "must not be null")
  122474. }
  122475. return graphql.Null
  122476. }
  122477. res := resTmp.(*StorefrontAccessTokenConnection)
  122478. fc.Result = res
  122479. return ec.marshalNStorefrontAccessTokenConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStorefrontAccessTokenConnection(ctx, field.Selections, res)
  122480. }
  122481. func (ec *executionContext) fieldContext_Shop_storefrontAccessTokens(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  122482. fc = &graphql.FieldContext{
  122483. Object: "Shop",
  122484. Field: field,
  122485. IsMethod: false,
  122486. IsResolver: false,
  122487. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  122488. switch field.Name {
  122489. case "edges":
  122490. return ec.fieldContext_StorefrontAccessTokenConnection_edges(ctx, field)
  122491. case "nodes":
  122492. return ec.fieldContext_StorefrontAccessTokenConnection_nodes(ctx, field)
  122493. case "pageInfo":
  122494. return ec.fieldContext_StorefrontAccessTokenConnection_pageInfo(ctx, field)
  122495. }
  122496. return nil, fmt.Errorf("no field named %q was found under type StorefrontAccessTokenConnection", field.Name)
  122497. },
  122498. }
  122499. defer func() {
  122500. if r := recover(); r != nil {
  122501. err = ec.Recover(ctx, r)
  122502. ec.Error(ctx, err)
  122503. }
  122504. }()
  122505. ctx = graphql.WithFieldContext(ctx, fc)
  122506. if fc.Args, err = ec.field_Shop_storefrontAccessTokens_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  122507. ec.Error(ctx, err)
  122508. return
  122509. }
  122510. return fc, nil
  122511. }
  122512. func (ec *executionContext) _Shop_taxShipping(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  122513. fc, err := ec.fieldContext_Shop_taxShipping(ctx, field)
  122514. if err != nil {
  122515. return graphql.Null
  122516. }
  122517. ctx = graphql.WithFieldContext(ctx, fc)
  122518. defer func() {
  122519. if r := recover(); r != nil {
  122520. ec.Error(ctx, ec.Recover(ctx, r))
  122521. ret = graphql.Null
  122522. }
  122523. }()
  122524. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  122525. ctx = rctx // use context from middleware stack in children
  122526. return obj.TaxShipping, nil
  122527. })
  122528. if err != nil {
  122529. ec.Error(ctx, err)
  122530. return graphql.Null
  122531. }
  122532. if resTmp == nil {
  122533. if !graphql.HasFieldError(ctx, fc) {
  122534. ec.Errorf(ctx, "must not be null")
  122535. }
  122536. return graphql.Null
  122537. }
  122538. res := resTmp.(bool)
  122539. fc.Result = res
  122540. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  122541. }
  122542. func (ec *executionContext) fieldContext_Shop_taxShipping(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  122543. fc = &graphql.FieldContext{
  122544. Object: "Shop",
  122545. Field: field,
  122546. IsMethod: false,
  122547. IsResolver: false,
  122548. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  122549. return nil, errors.New("field of type Boolean does not have child fields")
  122550. },
  122551. }
  122552. return fc, nil
  122553. }
  122554. func (ec *executionContext) _Shop_taxesIncluded(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  122555. fc, err := ec.fieldContext_Shop_taxesIncluded(ctx, field)
  122556. if err != nil {
  122557. return graphql.Null
  122558. }
  122559. ctx = graphql.WithFieldContext(ctx, fc)
  122560. defer func() {
  122561. if r := recover(); r != nil {
  122562. ec.Error(ctx, ec.Recover(ctx, r))
  122563. ret = graphql.Null
  122564. }
  122565. }()
  122566. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  122567. ctx = rctx // use context from middleware stack in children
  122568. return obj.TaxesIncluded, nil
  122569. })
  122570. if err != nil {
  122571. ec.Error(ctx, err)
  122572. return graphql.Null
  122573. }
  122574. if resTmp == nil {
  122575. if !graphql.HasFieldError(ctx, fc) {
  122576. ec.Errorf(ctx, "must not be null")
  122577. }
  122578. return graphql.Null
  122579. }
  122580. res := resTmp.(bool)
  122581. fc.Result = res
  122582. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  122583. }
  122584. func (ec *executionContext) fieldContext_Shop_taxesIncluded(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  122585. fc = &graphql.FieldContext{
  122586. Object: "Shop",
  122587. Field: field,
  122588. IsMethod: false,
  122589. IsResolver: false,
  122590. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  122591. return nil, errors.New("field of type Boolean does not have child fields")
  122592. },
  122593. }
  122594. return fc, nil
  122595. }
  122596. func (ec *executionContext) _Shop_timezoneAbbreviation(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  122597. fc, err := ec.fieldContext_Shop_timezoneAbbreviation(ctx, field)
  122598. if err != nil {
  122599. return graphql.Null
  122600. }
  122601. ctx = graphql.WithFieldContext(ctx, fc)
  122602. defer func() {
  122603. if r := recover(); r != nil {
  122604. ec.Error(ctx, ec.Recover(ctx, r))
  122605. ret = graphql.Null
  122606. }
  122607. }()
  122608. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  122609. ctx = rctx // use context from middleware stack in children
  122610. return obj.TimezoneAbbreviation, nil
  122611. })
  122612. if err != nil {
  122613. ec.Error(ctx, err)
  122614. return graphql.Null
  122615. }
  122616. if resTmp == nil {
  122617. if !graphql.HasFieldError(ctx, fc) {
  122618. ec.Errorf(ctx, "must not be null")
  122619. }
  122620. return graphql.Null
  122621. }
  122622. res := resTmp.(string)
  122623. fc.Result = res
  122624. return ec.marshalNString2string(ctx, field.Selections, res)
  122625. }
  122626. func (ec *executionContext) fieldContext_Shop_timezoneAbbreviation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  122627. fc = &graphql.FieldContext{
  122628. Object: "Shop",
  122629. Field: field,
  122630. IsMethod: false,
  122631. IsResolver: false,
  122632. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  122633. return nil, errors.New("field of type String does not have child fields")
  122634. },
  122635. }
  122636. return fc, nil
  122637. }
  122638. func (ec *executionContext) _Shop_timezoneOffset(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  122639. fc, err := ec.fieldContext_Shop_timezoneOffset(ctx, field)
  122640. if err != nil {
  122641. return graphql.Null
  122642. }
  122643. ctx = graphql.WithFieldContext(ctx, fc)
  122644. defer func() {
  122645. if r := recover(); r != nil {
  122646. ec.Error(ctx, ec.Recover(ctx, r))
  122647. ret = graphql.Null
  122648. }
  122649. }()
  122650. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  122651. ctx = rctx // use context from middleware stack in children
  122652. return obj.TimezoneOffset, nil
  122653. })
  122654. if err != nil {
  122655. ec.Error(ctx, err)
  122656. return graphql.Null
  122657. }
  122658. if resTmp == nil {
  122659. if !graphql.HasFieldError(ctx, fc) {
  122660. ec.Errorf(ctx, "must not be null")
  122661. }
  122662. return graphql.Null
  122663. }
  122664. res := resTmp.(string)
  122665. fc.Result = res
  122666. return ec.marshalNString2string(ctx, field.Selections, res)
  122667. }
  122668. func (ec *executionContext) fieldContext_Shop_timezoneOffset(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  122669. fc = &graphql.FieldContext{
  122670. Object: "Shop",
  122671. Field: field,
  122672. IsMethod: false,
  122673. IsResolver: false,
  122674. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  122675. return nil, errors.New("field of type String does not have child fields")
  122676. },
  122677. }
  122678. return fc, nil
  122679. }
  122680. func (ec *executionContext) _Shop_timezoneOffsetMinutes(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  122681. fc, err := ec.fieldContext_Shop_timezoneOffsetMinutes(ctx, field)
  122682. if err != nil {
  122683. return graphql.Null
  122684. }
  122685. ctx = graphql.WithFieldContext(ctx, fc)
  122686. defer func() {
  122687. if r := recover(); r != nil {
  122688. ec.Error(ctx, ec.Recover(ctx, r))
  122689. ret = graphql.Null
  122690. }
  122691. }()
  122692. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  122693. ctx = rctx // use context from middleware stack in children
  122694. return obj.TimezoneOffsetMinutes, nil
  122695. })
  122696. if err != nil {
  122697. ec.Error(ctx, err)
  122698. return graphql.Null
  122699. }
  122700. if resTmp == nil {
  122701. if !graphql.HasFieldError(ctx, fc) {
  122702. ec.Errorf(ctx, "must not be null")
  122703. }
  122704. return graphql.Null
  122705. }
  122706. res := resTmp.(int)
  122707. fc.Result = res
  122708. return ec.marshalNInt2int(ctx, field.Selections, res)
  122709. }
  122710. func (ec *executionContext) fieldContext_Shop_timezoneOffsetMinutes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  122711. fc = &graphql.FieldContext{
  122712. Object: "Shop",
  122713. Field: field,
  122714. IsMethod: false,
  122715. IsResolver: false,
  122716. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  122717. return nil, errors.New("field of type Int does not have child fields")
  122718. },
  122719. }
  122720. return fc, nil
  122721. }
  122722. func (ec *executionContext) _Shop_transactionalSmsDisabled(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  122723. fc, err := ec.fieldContext_Shop_transactionalSmsDisabled(ctx, field)
  122724. if err != nil {
  122725. return graphql.Null
  122726. }
  122727. ctx = graphql.WithFieldContext(ctx, fc)
  122728. defer func() {
  122729. if r := recover(); r != nil {
  122730. ec.Error(ctx, ec.Recover(ctx, r))
  122731. ret = graphql.Null
  122732. }
  122733. }()
  122734. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  122735. ctx = rctx // use context from middleware stack in children
  122736. return obj.TransactionalSmsDisabled, nil
  122737. })
  122738. if err != nil {
  122739. ec.Error(ctx, err)
  122740. return graphql.Null
  122741. }
  122742. if resTmp == nil {
  122743. if !graphql.HasFieldError(ctx, fc) {
  122744. ec.Errorf(ctx, "must not be null")
  122745. }
  122746. return graphql.Null
  122747. }
  122748. res := resTmp.(bool)
  122749. fc.Result = res
  122750. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  122751. }
  122752. func (ec *executionContext) fieldContext_Shop_transactionalSmsDisabled(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  122753. fc = &graphql.FieldContext{
  122754. Object: "Shop",
  122755. Field: field,
  122756. IsMethod: false,
  122757. IsResolver: false,
  122758. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  122759. return nil, errors.New("field of type Boolean does not have child fields")
  122760. },
  122761. }
  122762. return fc, nil
  122763. }
  122764. func (ec *executionContext) _Shop_translations(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  122765. fc, err := ec.fieldContext_Shop_translations(ctx, field)
  122766. if err != nil {
  122767. return graphql.Null
  122768. }
  122769. ctx = graphql.WithFieldContext(ctx, fc)
  122770. defer func() {
  122771. if r := recover(); r != nil {
  122772. ec.Error(ctx, ec.Recover(ctx, r))
  122773. ret = graphql.Null
  122774. }
  122775. }()
  122776. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  122777. ctx = rctx // use context from middleware stack in children
  122778. return obj.Translations, nil
  122779. })
  122780. if err != nil {
  122781. ec.Error(ctx, err)
  122782. return graphql.Null
  122783. }
  122784. if resTmp == nil {
  122785. if !graphql.HasFieldError(ctx, fc) {
  122786. ec.Errorf(ctx, "must not be null")
  122787. }
  122788. return graphql.Null
  122789. }
  122790. res := resTmp.([]*PublishedTranslation)
  122791. fc.Result = res
  122792. return ec.marshalNPublishedTranslation2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublishedTranslationᚄ(ctx, field.Selections, res)
  122793. }
  122794. func (ec *executionContext) fieldContext_Shop_translations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  122795. fc = &graphql.FieldContext{
  122796. Object: "Shop",
  122797. Field: field,
  122798. IsMethod: false,
  122799. IsResolver: false,
  122800. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  122801. switch field.Name {
  122802. case "key":
  122803. return ec.fieldContext_PublishedTranslation_key(ctx, field)
  122804. case "locale":
  122805. return ec.fieldContext_PublishedTranslation_locale(ctx, field)
  122806. case "marketId":
  122807. return ec.fieldContext_PublishedTranslation_marketId(ctx, field)
  122808. case "value":
  122809. return ec.fieldContext_PublishedTranslation_value(ctx, field)
  122810. }
  122811. return nil, fmt.Errorf("no field named %q was found under type PublishedTranslation", field.Name)
  122812. },
  122813. }
  122814. defer func() {
  122815. if r := recover(); r != nil {
  122816. err = ec.Recover(ctx, r)
  122817. ec.Error(ctx, err)
  122818. }
  122819. }()
  122820. ctx = graphql.WithFieldContext(ctx, fc)
  122821. if fc.Args, err = ec.field_Shop_translations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  122822. ec.Error(ctx, err)
  122823. return
  122824. }
  122825. return fc, nil
  122826. }
  122827. func (ec *executionContext) _Shop_unitSystem(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  122828. fc, err := ec.fieldContext_Shop_unitSystem(ctx, field)
  122829. if err != nil {
  122830. return graphql.Null
  122831. }
  122832. ctx = graphql.WithFieldContext(ctx, fc)
  122833. defer func() {
  122834. if r := recover(); r != nil {
  122835. ec.Error(ctx, ec.Recover(ctx, r))
  122836. ret = graphql.Null
  122837. }
  122838. }()
  122839. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  122840. ctx = rctx // use context from middleware stack in children
  122841. return obj.UnitSystem, nil
  122842. })
  122843. if err != nil {
  122844. ec.Error(ctx, err)
  122845. return graphql.Null
  122846. }
  122847. if resTmp == nil {
  122848. if !graphql.HasFieldError(ctx, fc) {
  122849. ec.Errorf(ctx, "must not be null")
  122850. }
  122851. return graphql.Null
  122852. }
  122853. res := resTmp.(UnitSystem)
  122854. fc.Result = res
  122855. return ec.marshalNUnitSystem2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐUnitSystem(ctx, field.Selections, res)
  122856. }
  122857. func (ec *executionContext) fieldContext_Shop_unitSystem(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  122858. fc = &graphql.FieldContext{
  122859. Object: "Shop",
  122860. Field: field,
  122861. IsMethod: false,
  122862. IsResolver: false,
  122863. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  122864. return nil, errors.New("field of type UnitSystem does not have child fields")
  122865. },
  122866. }
  122867. return fc, nil
  122868. }
  122869. func (ec *executionContext) _Shop_uploadedImagesByIds(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  122870. fc, err := ec.fieldContext_Shop_uploadedImagesByIds(ctx, field)
  122871. if err != nil {
  122872. return graphql.Null
  122873. }
  122874. ctx = graphql.WithFieldContext(ctx, fc)
  122875. defer func() {
  122876. if r := recover(); r != nil {
  122877. ec.Error(ctx, ec.Recover(ctx, r))
  122878. ret = graphql.Null
  122879. }
  122880. }()
  122881. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  122882. ctx = rctx // use context from middleware stack in children
  122883. return obj.UploadedImagesByIds, nil
  122884. })
  122885. if err != nil {
  122886. ec.Error(ctx, err)
  122887. return graphql.Null
  122888. }
  122889. if resTmp == nil {
  122890. if !graphql.HasFieldError(ctx, fc) {
  122891. ec.Errorf(ctx, "must not be null")
  122892. }
  122893. return graphql.Null
  122894. }
  122895. res := resTmp.([]*Image)
  122896. fc.Result = res
  122897. return ec.marshalNImage2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImageᚄ(ctx, field.Selections, res)
  122898. }
  122899. func (ec *executionContext) fieldContext_Shop_uploadedImagesByIds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  122900. fc = &graphql.FieldContext{
  122901. Object: "Shop",
  122902. Field: field,
  122903. IsMethod: false,
  122904. IsResolver: false,
  122905. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  122906. switch field.Name {
  122907. case "altText":
  122908. return ec.fieldContext_Image_altText(ctx, field)
  122909. case "height":
  122910. return ec.fieldContext_Image_height(ctx, field)
  122911. case "id":
  122912. return ec.fieldContext_Image_id(ctx, field)
  122913. case "metafield":
  122914. return ec.fieldContext_Image_metafield(ctx, field)
  122915. case "metafields":
  122916. return ec.fieldContext_Image_metafields(ctx, field)
  122917. case "privateMetafield":
  122918. return ec.fieldContext_Image_privateMetafield(ctx, field)
  122919. case "privateMetafields":
  122920. return ec.fieldContext_Image_privateMetafields(ctx, field)
  122921. case "url":
  122922. return ec.fieldContext_Image_url(ctx, field)
  122923. case "width":
  122924. return ec.fieldContext_Image_width(ctx, field)
  122925. }
  122926. return nil, fmt.Errorf("no field named %q was found under type Image", field.Name)
  122927. },
  122928. }
  122929. defer func() {
  122930. if r := recover(); r != nil {
  122931. err = ec.Recover(ctx, r)
  122932. ec.Error(ctx, err)
  122933. }
  122934. }()
  122935. ctx = graphql.WithFieldContext(ctx, fc)
  122936. if fc.Args, err = ec.field_Shop_uploadedImagesByIds_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  122937. ec.Error(ctx, err)
  122938. return
  122939. }
  122940. return fc, nil
  122941. }
  122942. func (ec *executionContext) _Shop_url(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  122943. fc, err := ec.fieldContext_Shop_url(ctx, field)
  122944. if err != nil {
  122945. return graphql.Null
  122946. }
  122947. ctx = graphql.WithFieldContext(ctx, fc)
  122948. defer func() {
  122949. if r := recover(); r != nil {
  122950. ec.Error(ctx, ec.Recover(ctx, r))
  122951. ret = graphql.Null
  122952. }
  122953. }()
  122954. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  122955. ctx = rctx // use context from middleware stack in children
  122956. return obj.URL, nil
  122957. })
  122958. if err != nil {
  122959. ec.Error(ctx, err)
  122960. return graphql.Null
  122961. }
  122962. if resTmp == nil {
  122963. if !graphql.HasFieldError(ctx, fc) {
  122964. ec.Errorf(ctx, "must not be null")
  122965. }
  122966. return graphql.Null
  122967. }
  122968. res := resTmp.(string)
  122969. fc.Result = res
  122970. return ec.marshalNURL2string(ctx, field.Selections, res)
  122971. }
  122972. func (ec *executionContext) fieldContext_Shop_url(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  122973. fc = &graphql.FieldContext{
  122974. Object: "Shop",
  122975. Field: field,
  122976. IsMethod: false,
  122977. IsResolver: false,
  122978. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  122979. return nil, errors.New("field of type URL does not have child fields")
  122980. },
  122981. }
  122982. return fc, nil
  122983. }
  122984. func (ec *executionContext) _Shop_weightUnit(ctx context.Context, field graphql.CollectedField, obj *Shop) (ret graphql.Marshaler) {
  122985. fc, err := ec.fieldContext_Shop_weightUnit(ctx, field)
  122986. if err != nil {
  122987. return graphql.Null
  122988. }
  122989. ctx = graphql.WithFieldContext(ctx, fc)
  122990. defer func() {
  122991. if r := recover(); r != nil {
  122992. ec.Error(ctx, ec.Recover(ctx, r))
  122993. ret = graphql.Null
  122994. }
  122995. }()
  122996. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  122997. ctx = rctx // use context from middleware stack in children
  122998. return obj.WeightUnit, nil
  122999. })
  123000. if err != nil {
  123001. ec.Error(ctx, err)
  123002. return graphql.Null
  123003. }
  123004. if resTmp == nil {
  123005. if !graphql.HasFieldError(ctx, fc) {
  123006. ec.Errorf(ctx, "must not be null")
  123007. }
  123008. return graphql.Null
  123009. }
  123010. res := resTmp.(WeightUnit)
  123011. fc.Result = res
  123012. return ec.marshalNWeightUnit2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐWeightUnit(ctx, field.Selections, res)
  123013. }
  123014. func (ec *executionContext) fieldContext_Shop_weightUnit(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  123015. fc = &graphql.FieldContext{
  123016. Object: "Shop",
  123017. Field: field,
  123018. IsMethod: false,
  123019. IsResolver: false,
  123020. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  123021. return nil, errors.New("field of type WeightUnit does not have child fields")
  123022. },
  123023. }
  123024. return fc, nil
  123025. }
  123026. func (ec *executionContext) _ShopAlert_action(ctx context.Context, field graphql.CollectedField, obj *ShopAlert) (ret graphql.Marshaler) {
  123027. fc, err := ec.fieldContext_ShopAlert_action(ctx, field)
  123028. if err != nil {
  123029. return graphql.Null
  123030. }
  123031. ctx = graphql.WithFieldContext(ctx, fc)
  123032. defer func() {
  123033. if r := recover(); r != nil {
  123034. ec.Error(ctx, ec.Recover(ctx, r))
  123035. ret = graphql.Null
  123036. }
  123037. }()
  123038. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  123039. ctx = rctx // use context from middleware stack in children
  123040. return obj.Action, nil
  123041. })
  123042. if err != nil {
  123043. ec.Error(ctx, err)
  123044. return graphql.Null
  123045. }
  123046. if resTmp == nil {
  123047. if !graphql.HasFieldError(ctx, fc) {
  123048. ec.Errorf(ctx, "must not be null")
  123049. }
  123050. return graphql.Null
  123051. }
  123052. res := resTmp.(*ShopAlertAction)
  123053. fc.Result = res
  123054. return ec.marshalNShopAlertAction2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopAlertAction(ctx, field.Selections, res)
  123055. }
  123056. func (ec *executionContext) fieldContext_ShopAlert_action(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  123057. fc = &graphql.FieldContext{
  123058. Object: "ShopAlert",
  123059. Field: field,
  123060. IsMethod: false,
  123061. IsResolver: false,
  123062. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  123063. switch field.Name {
  123064. case "title":
  123065. return ec.fieldContext_ShopAlertAction_title(ctx, field)
  123066. case "url":
  123067. return ec.fieldContext_ShopAlertAction_url(ctx, field)
  123068. }
  123069. return nil, fmt.Errorf("no field named %q was found under type ShopAlertAction", field.Name)
  123070. },
  123071. }
  123072. return fc, nil
  123073. }
  123074. func (ec *executionContext) _ShopAlert_description(ctx context.Context, field graphql.CollectedField, obj *ShopAlert) (ret graphql.Marshaler) {
  123075. fc, err := ec.fieldContext_ShopAlert_description(ctx, field)
  123076. if err != nil {
  123077. return graphql.Null
  123078. }
  123079. ctx = graphql.WithFieldContext(ctx, fc)
  123080. defer func() {
  123081. if r := recover(); r != nil {
  123082. ec.Error(ctx, ec.Recover(ctx, r))
  123083. ret = graphql.Null
  123084. }
  123085. }()
  123086. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  123087. ctx = rctx // use context from middleware stack in children
  123088. return obj.Description, nil
  123089. })
  123090. if err != nil {
  123091. ec.Error(ctx, err)
  123092. return graphql.Null
  123093. }
  123094. if resTmp == nil {
  123095. if !graphql.HasFieldError(ctx, fc) {
  123096. ec.Errorf(ctx, "must not be null")
  123097. }
  123098. return graphql.Null
  123099. }
  123100. res := resTmp.(string)
  123101. fc.Result = res
  123102. return ec.marshalNString2string(ctx, field.Selections, res)
  123103. }
  123104. func (ec *executionContext) fieldContext_ShopAlert_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  123105. fc = &graphql.FieldContext{
  123106. Object: "ShopAlert",
  123107. Field: field,
  123108. IsMethod: false,
  123109. IsResolver: false,
  123110. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  123111. return nil, errors.New("field of type String does not have child fields")
  123112. },
  123113. }
  123114. return fc, nil
  123115. }
  123116. func (ec *executionContext) _ShopAlertAction_title(ctx context.Context, field graphql.CollectedField, obj *ShopAlertAction) (ret graphql.Marshaler) {
  123117. fc, err := ec.fieldContext_ShopAlertAction_title(ctx, field)
  123118. if err != nil {
  123119. return graphql.Null
  123120. }
  123121. ctx = graphql.WithFieldContext(ctx, fc)
  123122. defer func() {
  123123. if r := recover(); r != nil {
  123124. ec.Error(ctx, ec.Recover(ctx, r))
  123125. ret = graphql.Null
  123126. }
  123127. }()
  123128. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  123129. ctx = rctx // use context from middleware stack in children
  123130. return obj.Title, nil
  123131. })
  123132. if err != nil {
  123133. ec.Error(ctx, err)
  123134. return graphql.Null
  123135. }
  123136. if resTmp == nil {
  123137. if !graphql.HasFieldError(ctx, fc) {
  123138. ec.Errorf(ctx, "must not be null")
  123139. }
  123140. return graphql.Null
  123141. }
  123142. res := resTmp.(string)
  123143. fc.Result = res
  123144. return ec.marshalNString2string(ctx, field.Selections, res)
  123145. }
  123146. func (ec *executionContext) fieldContext_ShopAlertAction_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  123147. fc = &graphql.FieldContext{
  123148. Object: "ShopAlertAction",
  123149. Field: field,
  123150. IsMethod: false,
  123151. IsResolver: false,
  123152. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  123153. return nil, errors.New("field of type String does not have child fields")
  123154. },
  123155. }
  123156. return fc, nil
  123157. }
  123158. func (ec *executionContext) _ShopAlertAction_url(ctx context.Context, field graphql.CollectedField, obj *ShopAlertAction) (ret graphql.Marshaler) {
  123159. fc, err := ec.fieldContext_ShopAlertAction_url(ctx, field)
  123160. if err != nil {
  123161. return graphql.Null
  123162. }
  123163. ctx = graphql.WithFieldContext(ctx, fc)
  123164. defer func() {
  123165. if r := recover(); r != nil {
  123166. ec.Error(ctx, ec.Recover(ctx, r))
  123167. ret = graphql.Null
  123168. }
  123169. }()
  123170. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  123171. ctx = rctx // use context from middleware stack in children
  123172. return obj.URL, nil
  123173. })
  123174. if err != nil {
  123175. ec.Error(ctx, err)
  123176. return graphql.Null
  123177. }
  123178. if resTmp == nil {
  123179. if !graphql.HasFieldError(ctx, fc) {
  123180. ec.Errorf(ctx, "must not be null")
  123181. }
  123182. return graphql.Null
  123183. }
  123184. res := resTmp.(string)
  123185. fc.Result = res
  123186. return ec.marshalNURL2string(ctx, field.Selections, res)
  123187. }
  123188. func (ec *executionContext) fieldContext_ShopAlertAction_url(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  123189. fc = &graphql.FieldContext{
  123190. Object: "ShopAlertAction",
  123191. Field: field,
  123192. IsMethod: false,
  123193. IsResolver: false,
  123194. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  123195. return nil, errors.New("field of type URL does not have child fields")
  123196. },
  123197. }
  123198. return fc, nil
  123199. }
  123200. func (ec *executionContext) _ShopFeatures_avalaraAvatax(ctx context.Context, field graphql.CollectedField, obj *ShopFeatures) (ret graphql.Marshaler) {
  123201. fc, err := ec.fieldContext_ShopFeatures_avalaraAvatax(ctx, field)
  123202. if err != nil {
  123203. return graphql.Null
  123204. }
  123205. ctx = graphql.WithFieldContext(ctx, fc)
  123206. defer func() {
  123207. if r := recover(); r != nil {
  123208. ec.Error(ctx, ec.Recover(ctx, r))
  123209. ret = graphql.Null
  123210. }
  123211. }()
  123212. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  123213. ctx = rctx // use context from middleware stack in children
  123214. return obj.AvalaraAvatax, nil
  123215. })
  123216. if err != nil {
  123217. ec.Error(ctx, err)
  123218. return graphql.Null
  123219. }
  123220. if resTmp == nil {
  123221. if !graphql.HasFieldError(ctx, fc) {
  123222. ec.Errorf(ctx, "must not be null")
  123223. }
  123224. return graphql.Null
  123225. }
  123226. res := resTmp.(bool)
  123227. fc.Result = res
  123228. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  123229. }
  123230. func (ec *executionContext) fieldContext_ShopFeatures_avalaraAvatax(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  123231. fc = &graphql.FieldContext{
  123232. Object: "ShopFeatures",
  123233. Field: field,
  123234. IsMethod: false,
  123235. IsResolver: false,
  123236. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  123237. return nil, errors.New("field of type Boolean does not have child fields")
  123238. },
  123239. }
  123240. return fc, nil
  123241. }
  123242. func (ec *executionContext) _ShopFeatures_branding(ctx context.Context, field graphql.CollectedField, obj *ShopFeatures) (ret graphql.Marshaler) {
  123243. fc, err := ec.fieldContext_ShopFeatures_branding(ctx, field)
  123244. if err != nil {
  123245. return graphql.Null
  123246. }
  123247. ctx = graphql.WithFieldContext(ctx, fc)
  123248. defer func() {
  123249. if r := recover(); r != nil {
  123250. ec.Error(ctx, ec.Recover(ctx, r))
  123251. ret = graphql.Null
  123252. }
  123253. }()
  123254. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  123255. ctx = rctx // use context from middleware stack in children
  123256. return obj.Branding, nil
  123257. })
  123258. if err != nil {
  123259. ec.Error(ctx, err)
  123260. return graphql.Null
  123261. }
  123262. if resTmp == nil {
  123263. if !graphql.HasFieldError(ctx, fc) {
  123264. ec.Errorf(ctx, "must not be null")
  123265. }
  123266. return graphql.Null
  123267. }
  123268. res := resTmp.(ShopBranding)
  123269. fc.Result = res
  123270. return ec.marshalNShopBranding2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopBranding(ctx, field.Selections, res)
  123271. }
  123272. func (ec *executionContext) fieldContext_ShopFeatures_branding(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  123273. fc = &graphql.FieldContext{
  123274. Object: "ShopFeatures",
  123275. Field: field,
  123276. IsMethod: false,
  123277. IsResolver: false,
  123278. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  123279. return nil, errors.New("field of type ShopBranding does not have child fields")
  123280. },
  123281. }
  123282. return fc, nil
  123283. }
  123284. func (ec *executionContext) _ShopFeatures_captcha(ctx context.Context, field graphql.CollectedField, obj *ShopFeatures) (ret graphql.Marshaler) {
  123285. fc, err := ec.fieldContext_ShopFeatures_captcha(ctx, field)
  123286. if err != nil {
  123287. return graphql.Null
  123288. }
  123289. ctx = graphql.WithFieldContext(ctx, fc)
  123290. defer func() {
  123291. if r := recover(); r != nil {
  123292. ec.Error(ctx, ec.Recover(ctx, r))
  123293. ret = graphql.Null
  123294. }
  123295. }()
  123296. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  123297. ctx = rctx // use context from middleware stack in children
  123298. return obj.Captcha, nil
  123299. })
  123300. if err != nil {
  123301. ec.Error(ctx, err)
  123302. return graphql.Null
  123303. }
  123304. if resTmp == nil {
  123305. if !graphql.HasFieldError(ctx, fc) {
  123306. ec.Errorf(ctx, "must not be null")
  123307. }
  123308. return graphql.Null
  123309. }
  123310. res := resTmp.(bool)
  123311. fc.Result = res
  123312. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  123313. }
  123314. func (ec *executionContext) fieldContext_ShopFeatures_captcha(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  123315. fc = &graphql.FieldContext{
  123316. Object: "ShopFeatures",
  123317. Field: field,
  123318. IsMethod: false,
  123319. IsResolver: false,
  123320. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  123321. return nil, errors.New("field of type Boolean does not have child fields")
  123322. },
  123323. }
  123324. return fc, nil
  123325. }
  123326. func (ec *executionContext) _ShopFeatures_captchaExternalDomains(ctx context.Context, field graphql.CollectedField, obj *ShopFeatures) (ret graphql.Marshaler) {
  123327. fc, err := ec.fieldContext_ShopFeatures_captchaExternalDomains(ctx, field)
  123328. if err != nil {
  123329. return graphql.Null
  123330. }
  123331. ctx = graphql.WithFieldContext(ctx, fc)
  123332. defer func() {
  123333. if r := recover(); r != nil {
  123334. ec.Error(ctx, ec.Recover(ctx, r))
  123335. ret = graphql.Null
  123336. }
  123337. }()
  123338. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  123339. ctx = rctx // use context from middleware stack in children
  123340. return obj.CaptchaExternalDomains, nil
  123341. })
  123342. if err != nil {
  123343. ec.Error(ctx, err)
  123344. return graphql.Null
  123345. }
  123346. if resTmp == nil {
  123347. if !graphql.HasFieldError(ctx, fc) {
  123348. ec.Errorf(ctx, "must not be null")
  123349. }
  123350. return graphql.Null
  123351. }
  123352. res := resTmp.(bool)
  123353. fc.Result = res
  123354. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  123355. }
  123356. func (ec *executionContext) fieldContext_ShopFeatures_captchaExternalDomains(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  123357. fc = &graphql.FieldContext{
  123358. Object: "ShopFeatures",
  123359. Field: field,
  123360. IsMethod: false,
  123361. IsResolver: false,
  123362. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  123363. return nil, errors.New("field of type Boolean does not have child fields")
  123364. },
  123365. }
  123366. return fc, nil
  123367. }
  123368. func (ec *executionContext) _ShopFeatures_dynamicRemarketing(ctx context.Context, field graphql.CollectedField, obj *ShopFeatures) (ret graphql.Marshaler) {
  123369. fc, err := ec.fieldContext_ShopFeatures_dynamicRemarketing(ctx, field)
  123370. if err != nil {
  123371. return graphql.Null
  123372. }
  123373. ctx = graphql.WithFieldContext(ctx, fc)
  123374. defer func() {
  123375. if r := recover(); r != nil {
  123376. ec.Error(ctx, ec.Recover(ctx, r))
  123377. ret = graphql.Null
  123378. }
  123379. }()
  123380. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  123381. ctx = rctx // use context from middleware stack in children
  123382. return obj.DynamicRemarketing, nil
  123383. })
  123384. if err != nil {
  123385. ec.Error(ctx, err)
  123386. return graphql.Null
  123387. }
  123388. if resTmp == nil {
  123389. if !graphql.HasFieldError(ctx, fc) {
  123390. ec.Errorf(ctx, "must not be null")
  123391. }
  123392. return graphql.Null
  123393. }
  123394. res := resTmp.(bool)
  123395. fc.Result = res
  123396. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  123397. }
  123398. func (ec *executionContext) fieldContext_ShopFeatures_dynamicRemarketing(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  123399. fc = &graphql.FieldContext{
  123400. Object: "ShopFeatures",
  123401. Field: field,
  123402. IsMethod: false,
  123403. IsResolver: false,
  123404. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  123405. return nil, errors.New("field of type Boolean does not have child fields")
  123406. },
  123407. }
  123408. return fc, nil
  123409. }
  123410. func (ec *executionContext) _ShopFeatures_eligibleForSubscriptionMigration(ctx context.Context, field graphql.CollectedField, obj *ShopFeatures) (ret graphql.Marshaler) {
  123411. fc, err := ec.fieldContext_ShopFeatures_eligibleForSubscriptionMigration(ctx, field)
  123412. if err != nil {
  123413. return graphql.Null
  123414. }
  123415. ctx = graphql.WithFieldContext(ctx, fc)
  123416. defer func() {
  123417. if r := recover(); r != nil {
  123418. ec.Error(ctx, ec.Recover(ctx, r))
  123419. ret = graphql.Null
  123420. }
  123421. }()
  123422. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  123423. ctx = rctx // use context from middleware stack in children
  123424. return obj.EligibleForSubscriptionMigration, nil
  123425. })
  123426. if err != nil {
  123427. ec.Error(ctx, err)
  123428. return graphql.Null
  123429. }
  123430. if resTmp == nil {
  123431. if !graphql.HasFieldError(ctx, fc) {
  123432. ec.Errorf(ctx, "must not be null")
  123433. }
  123434. return graphql.Null
  123435. }
  123436. res := resTmp.(bool)
  123437. fc.Result = res
  123438. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  123439. }
  123440. func (ec *executionContext) fieldContext_ShopFeatures_eligibleForSubscriptionMigration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  123441. fc = &graphql.FieldContext{
  123442. Object: "ShopFeatures",
  123443. Field: field,
  123444. IsMethod: false,
  123445. IsResolver: false,
  123446. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  123447. return nil, errors.New("field of type Boolean does not have child fields")
  123448. },
  123449. }
  123450. return fc, nil
  123451. }
  123452. func (ec *executionContext) _ShopFeatures_eligibleForSubscriptions(ctx context.Context, field graphql.CollectedField, obj *ShopFeatures) (ret graphql.Marshaler) {
  123453. fc, err := ec.fieldContext_ShopFeatures_eligibleForSubscriptions(ctx, field)
  123454. if err != nil {
  123455. return graphql.Null
  123456. }
  123457. ctx = graphql.WithFieldContext(ctx, fc)
  123458. defer func() {
  123459. if r := recover(); r != nil {
  123460. ec.Error(ctx, ec.Recover(ctx, r))
  123461. ret = graphql.Null
  123462. }
  123463. }()
  123464. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  123465. ctx = rctx // use context from middleware stack in children
  123466. return obj.EligibleForSubscriptions, nil
  123467. })
  123468. if err != nil {
  123469. ec.Error(ctx, err)
  123470. return graphql.Null
  123471. }
  123472. if resTmp == nil {
  123473. if !graphql.HasFieldError(ctx, fc) {
  123474. ec.Errorf(ctx, "must not be null")
  123475. }
  123476. return graphql.Null
  123477. }
  123478. res := resTmp.(bool)
  123479. fc.Result = res
  123480. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  123481. }
  123482. func (ec *executionContext) fieldContext_ShopFeatures_eligibleForSubscriptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  123483. fc = &graphql.FieldContext{
  123484. Object: "ShopFeatures",
  123485. Field: field,
  123486. IsMethod: false,
  123487. IsResolver: false,
  123488. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  123489. return nil, errors.New("field of type Boolean does not have child fields")
  123490. },
  123491. }
  123492. return fc, nil
  123493. }
  123494. func (ec *executionContext) _ShopFeatures_giftCards(ctx context.Context, field graphql.CollectedField, obj *ShopFeatures) (ret graphql.Marshaler) {
  123495. fc, err := ec.fieldContext_ShopFeatures_giftCards(ctx, field)
  123496. if err != nil {
  123497. return graphql.Null
  123498. }
  123499. ctx = graphql.WithFieldContext(ctx, fc)
  123500. defer func() {
  123501. if r := recover(); r != nil {
  123502. ec.Error(ctx, ec.Recover(ctx, r))
  123503. ret = graphql.Null
  123504. }
  123505. }()
  123506. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  123507. ctx = rctx // use context from middleware stack in children
  123508. return obj.GiftCards, nil
  123509. })
  123510. if err != nil {
  123511. ec.Error(ctx, err)
  123512. return graphql.Null
  123513. }
  123514. if resTmp == nil {
  123515. if !graphql.HasFieldError(ctx, fc) {
  123516. ec.Errorf(ctx, "must not be null")
  123517. }
  123518. return graphql.Null
  123519. }
  123520. res := resTmp.(bool)
  123521. fc.Result = res
  123522. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  123523. }
  123524. func (ec *executionContext) fieldContext_ShopFeatures_giftCards(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  123525. fc = &graphql.FieldContext{
  123526. Object: "ShopFeatures",
  123527. Field: field,
  123528. IsMethod: false,
  123529. IsResolver: false,
  123530. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  123531. return nil, errors.New("field of type Boolean does not have child fields")
  123532. },
  123533. }
  123534. return fc, nil
  123535. }
  123536. func (ec *executionContext) _ShopFeatures_harmonizedSystemCode(ctx context.Context, field graphql.CollectedField, obj *ShopFeatures) (ret graphql.Marshaler) {
  123537. fc, err := ec.fieldContext_ShopFeatures_harmonizedSystemCode(ctx, field)
  123538. if err != nil {
  123539. return graphql.Null
  123540. }
  123541. ctx = graphql.WithFieldContext(ctx, fc)
  123542. defer func() {
  123543. if r := recover(); r != nil {
  123544. ec.Error(ctx, ec.Recover(ctx, r))
  123545. ret = graphql.Null
  123546. }
  123547. }()
  123548. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  123549. ctx = rctx // use context from middleware stack in children
  123550. return obj.HarmonizedSystemCode, nil
  123551. })
  123552. if err != nil {
  123553. ec.Error(ctx, err)
  123554. return graphql.Null
  123555. }
  123556. if resTmp == nil {
  123557. if !graphql.HasFieldError(ctx, fc) {
  123558. ec.Errorf(ctx, "must not be null")
  123559. }
  123560. return graphql.Null
  123561. }
  123562. res := resTmp.(bool)
  123563. fc.Result = res
  123564. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  123565. }
  123566. func (ec *executionContext) fieldContext_ShopFeatures_harmonizedSystemCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  123567. fc = &graphql.FieldContext{
  123568. Object: "ShopFeatures",
  123569. Field: field,
  123570. IsMethod: false,
  123571. IsResolver: false,
  123572. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  123573. return nil, errors.New("field of type Boolean does not have child fields")
  123574. },
  123575. }
  123576. return fc, nil
  123577. }
  123578. func (ec *executionContext) _ShopFeatures_internationalDomains(ctx context.Context, field graphql.CollectedField, obj *ShopFeatures) (ret graphql.Marshaler) {
  123579. fc, err := ec.fieldContext_ShopFeatures_internationalDomains(ctx, field)
  123580. if err != nil {
  123581. return graphql.Null
  123582. }
  123583. ctx = graphql.WithFieldContext(ctx, fc)
  123584. defer func() {
  123585. if r := recover(); r != nil {
  123586. ec.Error(ctx, ec.Recover(ctx, r))
  123587. ret = graphql.Null
  123588. }
  123589. }()
  123590. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  123591. ctx = rctx // use context from middleware stack in children
  123592. return obj.InternationalDomains, nil
  123593. })
  123594. if err != nil {
  123595. ec.Error(ctx, err)
  123596. return graphql.Null
  123597. }
  123598. if resTmp == nil {
  123599. if !graphql.HasFieldError(ctx, fc) {
  123600. ec.Errorf(ctx, "must not be null")
  123601. }
  123602. return graphql.Null
  123603. }
  123604. res := resTmp.(bool)
  123605. fc.Result = res
  123606. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  123607. }
  123608. func (ec *executionContext) fieldContext_ShopFeatures_internationalDomains(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  123609. fc = &graphql.FieldContext{
  123610. Object: "ShopFeatures",
  123611. Field: field,
  123612. IsMethod: false,
  123613. IsResolver: false,
  123614. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  123615. return nil, errors.New("field of type Boolean does not have child fields")
  123616. },
  123617. }
  123618. return fc, nil
  123619. }
  123620. func (ec *executionContext) _ShopFeatures_internationalPriceOverrides(ctx context.Context, field graphql.CollectedField, obj *ShopFeatures) (ret graphql.Marshaler) {
  123621. fc, err := ec.fieldContext_ShopFeatures_internationalPriceOverrides(ctx, field)
  123622. if err != nil {
  123623. return graphql.Null
  123624. }
  123625. ctx = graphql.WithFieldContext(ctx, fc)
  123626. defer func() {
  123627. if r := recover(); r != nil {
  123628. ec.Error(ctx, ec.Recover(ctx, r))
  123629. ret = graphql.Null
  123630. }
  123631. }()
  123632. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  123633. ctx = rctx // use context from middleware stack in children
  123634. return obj.InternationalPriceOverrides, nil
  123635. })
  123636. if err != nil {
  123637. ec.Error(ctx, err)
  123638. return graphql.Null
  123639. }
  123640. if resTmp == nil {
  123641. if !graphql.HasFieldError(ctx, fc) {
  123642. ec.Errorf(ctx, "must not be null")
  123643. }
  123644. return graphql.Null
  123645. }
  123646. res := resTmp.(bool)
  123647. fc.Result = res
  123648. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  123649. }
  123650. func (ec *executionContext) fieldContext_ShopFeatures_internationalPriceOverrides(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  123651. fc = &graphql.FieldContext{
  123652. Object: "ShopFeatures",
  123653. Field: field,
  123654. IsMethod: false,
  123655. IsResolver: false,
  123656. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  123657. return nil, errors.New("field of type Boolean does not have child fields")
  123658. },
  123659. }
  123660. return fc, nil
  123661. }
  123662. func (ec *executionContext) _ShopFeatures_internationalPriceRules(ctx context.Context, field graphql.CollectedField, obj *ShopFeatures) (ret graphql.Marshaler) {
  123663. fc, err := ec.fieldContext_ShopFeatures_internationalPriceRules(ctx, field)
  123664. if err != nil {
  123665. return graphql.Null
  123666. }
  123667. ctx = graphql.WithFieldContext(ctx, fc)
  123668. defer func() {
  123669. if r := recover(); r != nil {
  123670. ec.Error(ctx, ec.Recover(ctx, r))
  123671. ret = graphql.Null
  123672. }
  123673. }()
  123674. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  123675. ctx = rctx // use context from middleware stack in children
  123676. return obj.InternationalPriceRules, nil
  123677. })
  123678. if err != nil {
  123679. ec.Error(ctx, err)
  123680. return graphql.Null
  123681. }
  123682. if resTmp == nil {
  123683. if !graphql.HasFieldError(ctx, fc) {
  123684. ec.Errorf(ctx, "must not be null")
  123685. }
  123686. return graphql.Null
  123687. }
  123688. res := resTmp.(bool)
  123689. fc.Result = res
  123690. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  123691. }
  123692. func (ec *executionContext) fieldContext_ShopFeatures_internationalPriceRules(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  123693. fc = &graphql.FieldContext{
  123694. Object: "ShopFeatures",
  123695. Field: field,
  123696. IsMethod: false,
  123697. IsResolver: false,
  123698. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  123699. return nil, errors.New("field of type Boolean does not have child fields")
  123700. },
  123701. }
  123702. return fc, nil
  123703. }
  123704. func (ec *executionContext) _ShopFeatures_legacySubscriptionGatewayEnabled(ctx context.Context, field graphql.CollectedField, obj *ShopFeatures) (ret graphql.Marshaler) {
  123705. fc, err := ec.fieldContext_ShopFeatures_legacySubscriptionGatewayEnabled(ctx, field)
  123706. if err != nil {
  123707. return graphql.Null
  123708. }
  123709. ctx = graphql.WithFieldContext(ctx, fc)
  123710. defer func() {
  123711. if r := recover(); r != nil {
  123712. ec.Error(ctx, ec.Recover(ctx, r))
  123713. ret = graphql.Null
  123714. }
  123715. }()
  123716. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  123717. ctx = rctx // use context from middleware stack in children
  123718. return obj.LegacySubscriptionGatewayEnabled, nil
  123719. })
  123720. if err != nil {
  123721. ec.Error(ctx, err)
  123722. return graphql.Null
  123723. }
  123724. if resTmp == nil {
  123725. if !graphql.HasFieldError(ctx, fc) {
  123726. ec.Errorf(ctx, "must not be null")
  123727. }
  123728. return graphql.Null
  123729. }
  123730. res := resTmp.(bool)
  123731. fc.Result = res
  123732. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  123733. }
  123734. func (ec *executionContext) fieldContext_ShopFeatures_legacySubscriptionGatewayEnabled(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  123735. fc = &graphql.FieldContext{
  123736. Object: "ShopFeatures",
  123737. Field: field,
  123738. IsMethod: false,
  123739. IsResolver: false,
  123740. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  123741. return nil, errors.New("field of type Boolean does not have child fields")
  123742. },
  123743. }
  123744. return fc, nil
  123745. }
  123746. func (ec *executionContext) _ShopFeatures_liveView(ctx context.Context, field graphql.CollectedField, obj *ShopFeatures) (ret graphql.Marshaler) {
  123747. fc, err := ec.fieldContext_ShopFeatures_liveView(ctx, field)
  123748. if err != nil {
  123749. return graphql.Null
  123750. }
  123751. ctx = graphql.WithFieldContext(ctx, fc)
  123752. defer func() {
  123753. if r := recover(); r != nil {
  123754. ec.Error(ctx, ec.Recover(ctx, r))
  123755. ret = graphql.Null
  123756. }
  123757. }()
  123758. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  123759. ctx = rctx // use context from middleware stack in children
  123760. return obj.LiveView, nil
  123761. })
  123762. if err != nil {
  123763. ec.Error(ctx, err)
  123764. return graphql.Null
  123765. }
  123766. if resTmp == nil {
  123767. if !graphql.HasFieldError(ctx, fc) {
  123768. ec.Errorf(ctx, "must not be null")
  123769. }
  123770. return graphql.Null
  123771. }
  123772. res := resTmp.(bool)
  123773. fc.Result = res
  123774. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  123775. }
  123776. func (ec *executionContext) fieldContext_ShopFeatures_liveView(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  123777. fc = &graphql.FieldContext{
  123778. Object: "ShopFeatures",
  123779. Field: field,
  123780. IsMethod: false,
  123781. IsResolver: false,
  123782. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  123783. return nil, errors.New("field of type Boolean does not have child fields")
  123784. },
  123785. }
  123786. return fc, nil
  123787. }
  123788. func (ec *executionContext) _ShopFeatures_onboardingVisual(ctx context.Context, field graphql.CollectedField, obj *ShopFeatures) (ret graphql.Marshaler) {
  123789. fc, err := ec.fieldContext_ShopFeatures_onboardingVisual(ctx, field)
  123790. if err != nil {
  123791. return graphql.Null
  123792. }
  123793. ctx = graphql.WithFieldContext(ctx, fc)
  123794. defer func() {
  123795. if r := recover(); r != nil {
  123796. ec.Error(ctx, ec.Recover(ctx, r))
  123797. ret = graphql.Null
  123798. }
  123799. }()
  123800. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  123801. ctx = rctx // use context from middleware stack in children
  123802. return obj.OnboardingVisual, nil
  123803. })
  123804. if err != nil {
  123805. ec.Error(ctx, err)
  123806. return graphql.Null
  123807. }
  123808. if resTmp == nil {
  123809. if !graphql.HasFieldError(ctx, fc) {
  123810. ec.Errorf(ctx, "must not be null")
  123811. }
  123812. return graphql.Null
  123813. }
  123814. res := resTmp.(bool)
  123815. fc.Result = res
  123816. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  123817. }
  123818. func (ec *executionContext) fieldContext_ShopFeatures_onboardingVisual(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  123819. fc = &graphql.FieldContext{
  123820. Object: "ShopFeatures",
  123821. Field: field,
  123822. IsMethod: false,
  123823. IsResolver: false,
  123824. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  123825. return nil, errors.New("field of type Boolean does not have child fields")
  123826. },
  123827. }
  123828. return fc, nil
  123829. }
  123830. func (ec *executionContext) _ShopFeatures_paypalExpressSubscriptionGatewayStatus(ctx context.Context, field graphql.CollectedField, obj *ShopFeatures) (ret graphql.Marshaler) {
  123831. fc, err := ec.fieldContext_ShopFeatures_paypalExpressSubscriptionGatewayStatus(ctx, field)
  123832. if err != nil {
  123833. return graphql.Null
  123834. }
  123835. ctx = graphql.WithFieldContext(ctx, fc)
  123836. defer func() {
  123837. if r := recover(); r != nil {
  123838. ec.Error(ctx, ec.Recover(ctx, r))
  123839. ret = graphql.Null
  123840. }
  123841. }()
  123842. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  123843. ctx = rctx // use context from middleware stack in children
  123844. return obj.PaypalExpressSubscriptionGatewayStatus, nil
  123845. })
  123846. if err != nil {
  123847. ec.Error(ctx, err)
  123848. return graphql.Null
  123849. }
  123850. if resTmp == nil {
  123851. if !graphql.HasFieldError(ctx, fc) {
  123852. ec.Errorf(ctx, "must not be null")
  123853. }
  123854. return graphql.Null
  123855. }
  123856. res := resTmp.(PaypalExpressSubscriptionsGatewayStatus)
  123857. fc.Result = res
  123858. return ec.marshalNPaypalExpressSubscriptionsGatewayStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaypalExpressSubscriptionsGatewayStatus(ctx, field.Selections, res)
  123859. }
  123860. func (ec *executionContext) fieldContext_ShopFeatures_paypalExpressSubscriptionGatewayStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  123861. fc = &graphql.FieldContext{
  123862. Object: "ShopFeatures",
  123863. Field: field,
  123864. IsMethod: false,
  123865. IsResolver: false,
  123866. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  123867. return nil, errors.New("field of type PaypalExpressSubscriptionsGatewayStatus does not have child fields")
  123868. },
  123869. }
  123870. return fc, nil
  123871. }
  123872. func (ec *executionContext) _ShopFeatures_reports(ctx context.Context, field graphql.CollectedField, obj *ShopFeatures) (ret graphql.Marshaler) {
  123873. fc, err := ec.fieldContext_ShopFeatures_reports(ctx, field)
  123874. if err != nil {
  123875. return graphql.Null
  123876. }
  123877. ctx = graphql.WithFieldContext(ctx, fc)
  123878. defer func() {
  123879. if r := recover(); r != nil {
  123880. ec.Error(ctx, ec.Recover(ctx, r))
  123881. ret = graphql.Null
  123882. }
  123883. }()
  123884. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  123885. ctx = rctx // use context from middleware stack in children
  123886. return obj.Reports, nil
  123887. })
  123888. if err != nil {
  123889. ec.Error(ctx, err)
  123890. return graphql.Null
  123891. }
  123892. if resTmp == nil {
  123893. if !graphql.HasFieldError(ctx, fc) {
  123894. ec.Errorf(ctx, "must not be null")
  123895. }
  123896. return graphql.Null
  123897. }
  123898. res := resTmp.(bool)
  123899. fc.Result = res
  123900. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  123901. }
  123902. func (ec *executionContext) fieldContext_ShopFeatures_reports(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  123903. fc = &graphql.FieldContext{
  123904. Object: "ShopFeatures",
  123905. Field: field,
  123906. IsMethod: false,
  123907. IsResolver: false,
  123908. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  123909. return nil, errors.New("field of type Boolean does not have child fields")
  123910. },
  123911. }
  123912. return fc, nil
  123913. }
  123914. func (ec *executionContext) _ShopFeatures_sellsSubscriptions(ctx context.Context, field graphql.CollectedField, obj *ShopFeatures) (ret graphql.Marshaler) {
  123915. fc, err := ec.fieldContext_ShopFeatures_sellsSubscriptions(ctx, field)
  123916. if err != nil {
  123917. return graphql.Null
  123918. }
  123919. ctx = graphql.WithFieldContext(ctx, fc)
  123920. defer func() {
  123921. if r := recover(); r != nil {
  123922. ec.Error(ctx, ec.Recover(ctx, r))
  123923. ret = graphql.Null
  123924. }
  123925. }()
  123926. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  123927. ctx = rctx // use context from middleware stack in children
  123928. return obj.SellsSubscriptions, nil
  123929. })
  123930. if err != nil {
  123931. ec.Error(ctx, err)
  123932. return graphql.Null
  123933. }
  123934. if resTmp == nil {
  123935. if !graphql.HasFieldError(ctx, fc) {
  123936. ec.Errorf(ctx, "must not be null")
  123937. }
  123938. return graphql.Null
  123939. }
  123940. res := resTmp.(bool)
  123941. fc.Result = res
  123942. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  123943. }
  123944. func (ec *executionContext) fieldContext_ShopFeatures_sellsSubscriptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  123945. fc = &graphql.FieldContext{
  123946. Object: "ShopFeatures",
  123947. Field: field,
  123948. IsMethod: false,
  123949. IsResolver: false,
  123950. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  123951. return nil, errors.New("field of type Boolean does not have child fields")
  123952. },
  123953. }
  123954. return fc, nil
  123955. }
  123956. func (ec *executionContext) _ShopFeatures_showMetrics(ctx context.Context, field graphql.CollectedField, obj *ShopFeatures) (ret graphql.Marshaler) {
  123957. fc, err := ec.fieldContext_ShopFeatures_showMetrics(ctx, field)
  123958. if err != nil {
  123959. return graphql.Null
  123960. }
  123961. ctx = graphql.WithFieldContext(ctx, fc)
  123962. defer func() {
  123963. if r := recover(); r != nil {
  123964. ec.Error(ctx, ec.Recover(ctx, r))
  123965. ret = graphql.Null
  123966. }
  123967. }()
  123968. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  123969. ctx = rctx // use context from middleware stack in children
  123970. return obj.ShowMetrics, nil
  123971. })
  123972. if err != nil {
  123973. ec.Error(ctx, err)
  123974. return graphql.Null
  123975. }
  123976. if resTmp == nil {
  123977. if !graphql.HasFieldError(ctx, fc) {
  123978. ec.Errorf(ctx, "must not be null")
  123979. }
  123980. return graphql.Null
  123981. }
  123982. res := resTmp.(bool)
  123983. fc.Result = res
  123984. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  123985. }
  123986. func (ec *executionContext) fieldContext_ShopFeatures_showMetrics(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  123987. fc = &graphql.FieldContext{
  123988. Object: "ShopFeatures",
  123989. Field: field,
  123990. IsMethod: false,
  123991. IsResolver: false,
  123992. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  123993. return nil, errors.New("field of type Boolean does not have child fields")
  123994. },
  123995. }
  123996. return fc, nil
  123997. }
  123998. func (ec *executionContext) _ShopFeatures_storefront(ctx context.Context, field graphql.CollectedField, obj *ShopFeatures) (ret graphql.Marshaler) {
  123999. fc, err := ec.fieldContext_ShopFeatures_storefront(ctx, field)
  124000. if err != nil {
  124001. return graphql.Null
  124002. }
  124003. ctx = graphql.WithFieldContext(ctx, fc)
  124004. defer func() {
  124005. if r := recover(); r != nil {
  124006. ec.Error(ctx, ec.Recover(ctx, r))
  124007. ret = graphql.Null
  124008. }
  124009. }()
  124010. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  124011. ctx = rctx // use context from middleware stack in children
  124012. return obj.Storefront, nil
  124013. })
  124014. if err != nil {
  124015. ec.Error(ctx, err)
  124016. return graphql.Null
  124017. }
  124018. if resTmp == nil {
  124019. if !graphql.HasFieldError(ctx, fc) {
  124020. ec.Errorf(ctx, "must not be null")
  124021. }
  124022. return graphql.Null
  124023. }
  124024. res := resTmp.(bool)
  124025. fc.Result = res
  124026. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  124027. }
  124028. func (ec *executionContext) fieldContext_ShopFeatures_storefront(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  124029. fc = &graphql.FieldContext{
  124030. Object: "ShopFeatures",
  124031. Field: field,
  124032. IsMethod: false,
  124033. IsResolver: false,
  124034. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  124035. return nil, errors.New("field of type Boolean does not have child fields")
  124036. },
  124037. }
  124038. return fc, nil
  124039. }
  124040. func (ec *executionContext) _ShopFeatures_usingShopifyBalance(ctx context.Context, field graphql.CollectedField, obj *ShopFeatures) (ret graphql.Marshaler) {
  124041. fc, err := ec.fieldContext_ShopFeatures_usingShopifyBalance(ctx, field)
  124042. if err != nil {
  124043. return graphql.Null
  124044. }
  124045. ctx = graphql.WithFieldContext(ctx, fc)
  124046. defer func() {
  124047. if r := recover(); r != nil {
  124048. ec.Error(ctx, ec.Recover(ctx, r))
  124049. ret = graphql.Null
  124050. }
  124051. }()
  124052. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  124053. ctx = rctx // use context from middleware stack in children
  124054. return obj.UsingShopifyBalance, nil
  124055. })
  124056. if err != nil {
  124057. ec.Error(ctx, err)
  124058. return graphql.Null
  124059. }
  124060. if resTmp == nil {
  124061. if !graphql.HasFieldError(ctx, fc) {
  124062. ec.Errorf(ctx, "must not be null")
  124063. }
  124064. return graphql.Null
  124065. }
  124066. res := resTmp.(bool)
  124067. fc.Result = res
  124068. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  124069. }
  124070. func (ec *executionContext) fieldContext_ShopFeatures_usingShopifyBalance(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  124071. fc = &graphql.FieldContext{
  124072. Object: "ShopFeatures",
  124073. Field: field,
  124074. IsMethod: false,
  124075. IsResolver: false,
  124076. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  124077. return nil, errors.New("field of type Boolean does not have child fields")
  124078. },
  124079. }
  124080. return fc, nil
  124081. }
  124082. func (ec *executionContext) _ShopPlan_displayName(ctx context.Context, field graphql.CollectedField, obj *ShopPlan) (ret graphql.Marshaler) {
  124083. fc, err := ec.fieldContext_ShopPlan_displayName(ctx, field)
  124084. if err != nil {
  124085. return graphql.Null
  124086. }
  124087. ctx = graphql.WithFieldContext(ctx, fc)
  124088. defer func() {
  124089. if r := recover(); r != nil {
  124090. ec.Error(ctx, ec.Recover(ctx, r))
  124091. ret = graphql.Null
  124092. }
  124093. }()
  124094. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  124095. ctx = rctx // use context from middleware stack in children
  124096. return obj.DisplayName, nil
  124097. })
  124098. if err != nil {
  124099. ec.Error(ctx, err)
  124100. return graphql.Null
  124101. }
  124102. if resTmp == nil {
  124103. if !graphql.HasFieldError(ctx, fc) {
  124104. ec.Errorf(ctx, "must not be null")
  124105. }
  124106. return graphql.Null
  124107. }
  124108. res := resTmp.(string)
  124109. fc.Result = res
  124110. return ec.marshalNString2string(ctx, field.Selections, res)
  124111. }
  124112. func (ec *executionContext) fieldContext_ShopPlan_displayName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  124113. fc = &graphql.FieldContext{
  124114. Object: "ShopPlan",
  124115. Field: field,
  124116. IsMethod: false,
  124117. IsResolver: false,
  124118. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  124119. return nil, errors.New("field of type String does not have child fields")
  124120. },
  124121. }
  124122. return fc, nil
  124123. }
  124124. func (ec *executionContext) _ShopPlan_partnerDevelopment(ctx context.Context, field graphql.CollectedField, obj *ShopPlan) (ret graphql.Marshaler) {
  124125. fc, err := ec.fieldContext_ShopPlan_partnerDevelopment(ctx, field)
  124126. if err != nil {
  124127. return graphql.Null
  124128. }
  124129. ctx = graphql.WithFieldContext(ctx, fc)
  124130. defer func() {
  124131. if r := recover(); r != nil {
  124132. ec.Error(ctx, ec.Recover(ctx, r))
  124133. ret = graphql.Null
  124134. }
  124135. }()
  124136. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  124137. ctx = rctx // use context from middleware stack in children
  124138. return obj.PartnerDevelopment, nil
  124139. })
  124140. if err != nil {
  124141. ec.Error(ctx, err)
  124142. return graphql.Null
  124143. }
  124144. if resTmp == nil {
  124145. if !graphql.HasFieldError(ctx, fc) {
  124146. ec.Errorf(ctx, "must not be null")
  124147. }
  124148. return graphql.Null
  124149. }
  124150. res := resTmp.(bool)
  124151. fc.Result = res
  124152. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  124153. }
  124154. func (ec *executionContext) fieldContext_ShopPlan_partnerDevelopment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  124155. fc = &graphql.FieldContext{
  124156. Object: "ShopPlan",
  124157. Field: field,
  124158. IsMethod: false,
  124159. IsResolver: false,
  124160. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  124161. return nil, errors.New("field of type Boolean does not have child fields")
  124162. },
  124163. }
  124164. return fc, nil
  124165. }
  124166. func (ec *executionContext) _ShopPlan_shopifyPlus(ctx context.Context, field graphql.CollectedField, obj *ShopPlan) (ret graphql.Marshaler) {
  124167. fc, err := ec.fieldContext_ShopPlan_shopifyPlus(ctx, field)
  124168. if err != nil {
  124169. return graphql.Null
  124170. }
  124171. ctx = graphql.WithFieldContext(ctx, fc)
  124172. defer func() {
  124173. if r := recover(); r != nil {
  124174. ec.Error(ctx, ec.Recover(ctx, r))
  124175. ret = graphql.Null
  124176. }
  124177. }()
  124178. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  124179. ctx = rctx // use context from middleware stack in children
  124180. return obj.ShopifyPlus, nil
  124181. })
  124182. if err != nil {
  124183. ec.Error(ctx, err)
  124184. return graphql.Null
  124185. }
  124186. if resTmp == nil {
  124187. if !graphql.HasFieldError(ctx, fc) {
  124188. ec.Errorf(ctx, "must not be null")
  124189. }
  124190. return graphql.Null
  124191. }
  124192. res := resTmp.(bool)
  124193. fc.Result = res
  124194. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  124195. }
  124196. func (ec *executionContext) fieldContext_ShopPlan_shopifyPlus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  124197. fc = &graphql.FieldContext{
  124198. Object: "ShopPlan",
  124199. Field: field,
  124200. IsMethod: false,
  124201. IsResolver: false,
  124202. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  124203. return nil, errors.New("field of type Boolean does not have child fields")
  124204. },
  124205. }
  124206. return fc, nil
  124207. }
  124208. func (ec *executionContext) _ShopPolicy_body(ctx context.Context, field graphql.CollectedField, obj *ShopPolicy) (ret graphql.Marshaler) {
  124209. fc, err := ec.fieldContext_ShopPolicy_body(ctx, field)
  124210. if err != nil {
  124211. return graphql.Null
  124212. }
  124213. ctx = graphql.WithFieldContext(ctx, fc)
  124214. defer func() {
  124215. if r := recover(); r != nil {
  124216. ec.Error(ctx, ec.Recover(ctx, r))
  124217. ret = graphql.Null
  124218. }
  124219. }()
  124220. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  124221. ctx = rctx // use context from middleware stack in children
  124222. return obj.Body, nil
  124223. })
  124224. if err != nil {
  124225. ec.Error(ctx, err)
  124226. return graphql.Null
  124227. }
  124228. if resTmp == nil {
  124229. if !graphql.HasFieldError(ctx, fc) {
  124230. ec.Errorf(ctx, "must not be null")
  124231. }
  124232. return graphql.Null
  124233. }
  124234. res := resTmp.(string)
  124235. fc.Result = res
  124236. return ec.marshalNHTML2string(ctx, field.Selections, res)
  124237. }
  124238. func (ec *executionContext) fieldContext_ShopPolicy_body(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  124239. fc = &graphql.FieldContext{
  124240. Object: "ShopPolicy",
  124241. Field: field,
  124242. IsMethod: false,
  124243. IsResolver: false,
  124244. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  124245. return nil, errors.New("field of type HTML does not have child fields")
  124246. },
  124247. }
  124248. return fc, nil
  124249. }
  124250. func (ec *executionContext) _ShopPolicy_id(ctx context.Context, field graphql.CollectedField, obj *ShopPolicy) (ret graphql.Marshaler) {
  124251. fc, err := ec.fieldContext_ShopPolicy_id(ctx, field)
  124252. if err != nil {
  124253. return graphql.Null
  124254. }
  124255. ctx = graphql.WithFieldContext(ctx, fc)
  124256. defer func() {
  124257. if r := recover(); r != nil {
  124258. ec.Error(ctx, ec.Recover(ctx, r))
  124259. ret = graphql.Null
  124260. }
  124261. }()
  124262. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  124263. ctx = rctx // use context from middleware stack in children
  124264. return obj.ID, nil
  124265. })
  124266. if err != nil {
  124267. ec.Error(ctx, err)
  124268. return graphql.Null
  124269. }
  124270. if resTmp == nil {
  124271. if !graphql.HasFieldError(ctx, fc) {
  124272. ec.Errorf(ctx, "must not be null")
  124273. }
  124274. return graphql.Null
  124275. }
  124276. res := resTmp.(string)
  124277. fc.Result = res
  124278. return ec.marshalNID2string(ctx, field.Selections, res)
  124279. }
  124280. func (ec *executionContext) fieldContext_ShopPolicy_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  124281. fc = &graphql.FieldContext{
  124282. Object: "ShopPolicy",
  124283. Field: field,
  124284. IsMethod: false,
  124285. IsResolver: false,
  124286. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  124287. return nil, errors.New("field of type ID does not have child fields")
  124288. },
  124289. }
  124290. return fc, nil
  124291. }
  124292. func (ec *executionContext) _ShopPolicy_translations(ctx context.Context, field graphql.CollectedField, obj *ShopPolicy) (ret graphql.Marshaler) {
  124293. fc, err := ec.fieldContext_ShopPolicy_translations(ctx, field)
  124294. if err != nil {
  124295. return graphql.Null
  124296. }
  124297. ctx = graphql.WithFieldContext(ctx, fc)
  124298. defer func() {
  124299. if r := recover(); r != nil {
  124300. ec.Error(ctx, ec.Recover(ctx, r))
  124301. ret = graphql.Null
  124302. }
  124303. }()
  124304. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  124305. ctx = rctx // use context from middleware stack in children
  124306. return obj.Translations, nil
  124307. })
  124308. if err != nil {
  124309. ec.Error(ctx, err)
  124310. return graphql.Null
  124311. }
  124312. if resTmp == nil {
  124313. if !graphql.HasFieldError(ctx, fc) {
  124314. ec.Errorf(ctx, "must not be null")
  124315. }
  124316. return graphql.Null
  124317. }
  124318. res := resTmp.([]*PublishedTranslation)
  124319. fc.Result = res
  124320. return ec.marshalNPublishedTranslation2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublishedTranslationᚄ(ctx, field.Selections, res)
  124321. }
  124322. func (ec *executionContext) fieldContext_ShopPolicy_translations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  124323. fc = &graphql.FieldContext{
  124324. Object: "ShopPolicy",
  124325. Field: field,
  124326. IsMethod: false,
  124327. IsResolver: false,
  124328. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  124329. switch field.Name {
  124330. case "key":
  124331. return ec.fieldContext_PublishedTranslation_key(ctx, field)
  124332. case "locale":
  124333. return ec.fieldContext_PublishedTranslation_locale(ctx, field)
  124334. case "marketId":
  124335. return ec.fieldContext_PublishedTranslation_marketId(ctx, field)
  124336. case "value":
  124337. return ec.fieldContext_PublishedTranslation_value(ctx, field)
  124338. }
  124339. return nil, fmt.Errorf("no field named %q was found under type PublishedTranslation", field.Name)
  124340. },
  124341. }
  124342. defer func() {
  124343. if r := recover(); r != nil {
  124344. err = ec.Recover(ctx, r)
  124345. ec.Error(ctx, err)
  124346. }
  124347. }()
  124348. ctx = graphql.WithFieldContext(ctx, fc)
  124349. if fc.Args, err = ec.field_ShopPolicy_translations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  124350. ec.Error(ctx, err)
  124351. return
  124352. }
  124353. return fc, nil
  124354. }
  124355. func (ec *executionContext) _ShopPolicy_type(ctx context.Context, field graphql.CollectedField, obj *ShopPolicy) (ret graphql.Marshaler) {
  124356. fc, err := ec.fieldContext_ShopPolicy_type(ctx, field)
  124357. if err != nil {
  124358. return graphql.Null
  124359. }
  124360. ctx = graphql.WithFieldContext(ctx, fc)
  124361. defer func() {
  124362. if r := recover(); r != nil {
  124363. ec.Error(ctx, ec.Recover(ctx, r))
  124364. ret = graphql.Null
  124365. }
  124366. }()
  124367. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  124368. ctx = rctx // use context from middleware stack in children
  124369. return obj.Type, nil
  124370. })
  124371. if err != nil {
  124372. ec.Error(ctx, err)
  124373. return graphql.Null
  124374. }
  124375. if resTmp == nil {
  124376. if !graphql.HasFieldError(ctx, fc) {
  124377. ec.Errorf(ctx, "must not be null")
  124378. }
  124379. return graphql.Null
  124380. }
  124381. res := resTmp.(ShopPolicyType)
  124382. fc.Result = res
  124383. return ec.marshalNShopPolicyType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopPolicyType(ctx, field.Selections, res)
  124384. }
  124385. func (ec *executionContext) fieldContext_ShopPolicy_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  124386. fc = &graphql.FieldContext{
  124387. Object: "ShopPolicy",
  124388. Field: field,
  124389. IsMethod: false,
  124390. IsResolver: false,
  124391. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  124392. return nil, errors.New("field of type ShopPolicyType does not have child fields")
  124393. },
  124394. }
  124395. return fc, nil
  124396. }
  124397. func (ec *executionContext) _ShopPolicy_url(ctx context.Context, field graphql.CollectedField, obj *ShopPolicy) (ret graphql.Marshaler) {
  124398. fc, err := ec.fieldContext_ShopPolicy_url(ctx, field)
  124399. if err != nil {
  124400. return graphql.Null
  124401. }
  124402. ctx = graphql.WithFieldContext(ctx, fc)
  124403. defer func() {
  124404. if r := recover(); r != nil {
  124405. ec.Error(ctx, ec.Recover(ctx, r))
  124406. ret = graphql.Null
  124407. }
  124408. }()
  124409. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  124410. ctx = rctx // use context from middleware stack in children
  124411. return obj.URL, nil
  124412. })
  124413. if err != nil {
  124414. ec.Error(ctx, err)
  124415. return graphql.Null
  124416. }
  124417. if resTmp == nil {
  124418. if !graphql.HasFieldError(ctx, fc) {
  124419. ec.Errorf(ctx, "must not be null")
  124420. }
  124421. return graphql.Null
  124422. }
  124423. res := resTmp.(string)
  124424. fc.Result = res
  124425. return ec.marshalNURL2string(ctx, field.Selections, res)
  124426. }
  124427. func (ec *executionContext) fieldContext_ShopPolicy_url(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  124428. fc = &graphql.FieldContext{
  124429. Object: "ShopPolicy",
  124430. Field: field,
  124431. IsMethod: false,
  124432. IsResolver: false,
  124433. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  124434. return nil, errors.New("field of type URL does not have child fields")
  124435. },
  124436. }
  124437. return fc, nil
  124438. }
  124439. func (ec *executionContext) _ShopResourceLimits_locationLimit(ctx context.Context, field graphql.CollectedField, obj *ShopResourceLimits) (ret graphql.Marshaler) {
  124440. fc, err := ec.fieldContext_ShopResourceLimits_locationLimit(ctx, field)
  124441. if err != nil {
  124442. return graphql.Null
  124443. }
  124444. ctx = graphql.WithFieldContext(ctx, fc)
  124445. defer func() {
  124446. if r := recover(); r != nil {
  124447. ec.Error(ctx, ec.Recover(ctx, r))
  124448. ret = graphql.Null
  124449. }
  124450. }()
  124451. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  124452. ctx = rctx // use context from middleware stack in children
  124453. return obj.LocationLimit, nil
  124454. })
  124455. if err != nil {
  124456. ec.Error(ctx, err)
  124457. return graphql.Null
  124458. }
  124459. if resTmp == nil {
  124460. if !graphql.HasFieldError(ctx, fc) {
  124461. ec.Errorf(ctx, "must not be null")
  124462. }
  124463. return graphql.Null
  124464. }
  124465. res := resTmp.(int)
  124466. fc.Result = res
  124467. return ec.marshalNInt2int(ctx, field.Selections, res)
  124468. }
  124469. func (ec *executionContext) fieldContext_ShopResourceLimits_locationLimit(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  124470. fc = &graphql.FieldContext{
  124471. Object: "ShopResourceLimits",
  124472. Field: field,
  124473. IsMethod: false,
  124474. IsResolver: false,
  124475. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  124476. return nil, errors.New("field of type Int does not have child fields")
  124477. },
  124478. }
  124479. return fc, nil
  124480. }
  124481. func (ec *executionContext) _ShopResourceLimits_maxProductOptions(ctx context.Context, field graphql.CollectedField, obj *ShopResourceLimits) (ret graphql.Marshaler) {
  124482. fc, err := ec.fieldContext_ShopResourceLimits_maxProductOptions(ctx, field)
  124483. if err != nil {
  124484. return graphql.Null
  124485. }
  124486. ctx = graphql.WithFieldContext(ctx, fc)
  124487. defer func() {
  124488. if r := recover(); r != nil {
  124489. ec.Error(ctx, ec.Recover(ctx, r))
  124490. ret = graphql.Null
  124491. }
  124492. }()
  124493. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  124494. ctx = rctx // use context from middleware stack in children
  124495. return obj.MaxProductOptions, nil
  124496. })
  124497. if err != nil {
  124498. ec.Error(ctx, err)
  124499. return graphql.Null
  124500. }
  124501. if resTmp == nil {
  124502. if !graphql.HasFieldError(ctx, fc) {
  124503. ec.Errorf(ctx, "must not be null")
  124504. }
  124505. return graphql.Null
  124506. }
  124507. res := resTmp.(int)
  124508. fc.Result = res
  124509. return ec.marshalNInt2int(ctx, field.Selections, res)
  124510. }
  124511. func (ec *executionContext) fieldContext_ShopResourceLimits_maxProductOptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  124512. fc = &graphql.FieldContext{
  124513. Object: "ShopResourceLimits",
  124514. Field: field,
  124515. IsMethod: false,
  124516. IsResolver: false,
  124517. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  124518. return nil, errors.New("field of type Int does not have child fields")
  124519. },
  124520. }
  124521. return fc, nil
  124522. }
  124523. func (ec *executionContext) _ShopResourceLimits_maxProductVariants(ctx context.Context, field graphql.CollectedField, obj *ShopResourceLimits) (ret graphql.Marshaler) {
  124524. fc, err := ec.fieldContext_ShopResourceLimits_maxProductVariants(ctx, field)
  124525. if err != nil {
  124526. return graphql.Null
  124527. }
  124528. ctx = graphql.WithFieldContext(ctx, fc)
  124529. defer func() {
  124530. if r := recover(); r != nil {
  124531. ec.Error(ctx, ec.Recover(ctx, r))
  124532. ret = graphql.Null
  124533. }
  124534. }()
  124535. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  124536. ctx = rctx // use context from middleware stack in children
  124537. return obj.MaxProductVariants, nil
  124538. })
  124539. if err != nil {
  124540. ec.Error(ctx, err)
  124541. return graphql.Null
  124542. }
  124543. if resTmp == nil {
  124544. if !graphql.HasFieldError(ctx, fc) {
  124545. ec.Errorf(ctx, "must not be null")
  124546. }
  124547. return graphql.Null
  124548. }
  124549. res := resTmp.(int)
  124550. fc.Result = res
  124551. return ec.marshalNInt2int(ctx, field.Selections, res)
  124552. }
  124553. func (ec *executionContext) fieldContext_ShopResourceLimits_maxProductVariants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  124554. fc = &graphql.FieldContext{
  124555. Object: "ShopResourceLimits",
  124556. Field: field,
  124557. IsMethod: false,
  124558. IsResolver: false,
  124559. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  124560. return nil, errors.New("field of type Int does not have child fields")
  124561. },
  124562. }
  124563. return fc, nil
  124564. }
  124565. func (ec *executionContext) _ShopResourceLimits_redirectLimitReached(ctx context.Context, field graphql.CollectedField, obj *ShopResourceLimits) (ret graphql.Marshaler) {
  124566. fc, err := ec.fieldContext_ShopResourceLimits_redirectLimitReached(ctx, field)
  124567. if err != nil {
  124568. return graphql.Null
  124569. }
  124570. ctx = graphql.WithFieldContext(ctx, fc)
  124571. defer func() {
  124572. if r := recover(); r != nil {
  124573. ec.Error(ctx, ec.Recover(ctx, r))
  124574. ret = graphql.Null
  124575. }
  124576. }()
  124577. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  124578. ctx = rctx // use context from middleware stack in children
  124579. return obj.RedirectLimitReached, nil
  124580. })
  124581. if err != nil {
  124582. ec.Error(ctx, err)
  124583. return graphql.Null
  124584. }
  124585. if resTmp == nil {
  124586. if !graphql.HasFieldError(ctx, fc) {
  124587. ec.Errorf(ctx, "must not be null")
  124588. }
  124589. return graphql.Null
  124590. }
  124591. res := resTmp.(bool)
  124592. fc.Result = res
  124593. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  124594. }
  124595. func (ec *executionContext) fieldContext_ShopResourceLimits_redirectLimitReached(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  124596. fc = &graphql.FieldContext{
  124597. Object: "ShopResourceLimits",
  124598. Field: field,
  124599. IsMethod: false,
  124600. IsResolver: false,
  124601. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  124602. return nil, errors.New("field of type Boolean does not have child fields")
  124603. },
  124604. }
  124605. return fc, nil
  124606. }
  124607. func (ec *executionContext) _ShopResourceLimits_skuResourceLimits(ctx context.Context, field graphql.CollectedField, obj *ShopResourceLimits) (ret graphql.Marshaler) {
  124608. fc, err := ec.fieldContext_ShopResourceLimits_skuResourceLimits(ctx, field)
  124609. if err != nil {
  124610. return graphql.Null
  124611. }
  124612. ctx = graphql.WithFieldContext(ctx, fc)
  124613. defer func() {
  124614. if r := recover(); r != nil {
  124615. ec.Error(ctx, ec.Recover(ctx, r))
  124616. ret = graphql.Null
  124617. }
  124618. }()
  124619. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  124620. ctx = rctx // use context from middleware stack in children
  124621. return obj.SkuResourceLimits, nil
  124622. })
  124623. if err != nil {
  124624. ec.Error(ctx, err)
  124625. return graphql.Null
  124626. }
  124627. if resTmp == nil {
  124628. if !graphql.HasFieldError(ctx, fc) {
  124629. ec.Errorf(ctx, "must not be null")
  124630. }
  124631. return graphql.Null
  124632. }
  124633. res := resTmp.(*ResourceLimit)
  124634. fc.Result = res
  124635. return ec.marshalNResourceLimit2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourceLimit(ctx, field.Selections, res)
  124636. }
  124637. func (ec *executionContext) fieldContext_ShopResourceLimits_skuResourceLimits(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  124638. fc = &graphql.FieldContext{
  124639. Object: "ShopResourceLimits",
  124640. Field: field,
  124641. IsMethod: false,
  124642. IsResolver: false,
  124643. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  124644. switch field.Name {
  124645. case "available":
  124646. return ec.fieldContext_ResourceLimit_available(ctx, field)
  124647. case "quantityAvailable":
  124648. return ec.fieldContext_ResourceLimit_quantityAvailable(ctx, field)
  124649. case "quantityLimit":
  124650. return ec.fieldContext_ResourceLimit_quantityLimit(ctx, field)
  124651. case "quantityUsed":
  124652. return ec.fieldContext_ResourceLimit_quantityUsed(ctx, field)
  124653. }
  124654. return nil, fmt.Errorf("no field named %q was found under type ResourceLimit", field.Name)
  124655. },
  124656. }
  124657. return fc, nil
  124658. }
  124659. func (ec *executionContext) _ShopifyPaymentsExtendedAuthorization_extendedAuthorizationExpiresAt(ctx context.Context, field graphql.CollectedField, obj *ShopifyPaymentsExtendedAuthorization) (ret graphql.Marshaler) {
  124660. fc, err := ec.fieldContext_ShopifyPaymentsExtendedAuthorization_extendedAuthorizationExpiresAt(ctx, field)
  124661. if err != nil {
  124662. return graphql.Null
  124663. }
  124664. ctx = graphql.WithFieldContext(ctx, fc)
  124665. defer func() {
  124666. if r := recover(); r != nil {
  124667. ec.Error(ctx, ec.Recover(ctx, r))
  124668. ret = graphql.Null
  124669. }
  124670. }()
  124671. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  124672. ctx = rctx // use context from middleware stack in children
  124673. return obj.ExtendedAuthorizationExpiresAt, nil
  124674. })
  124675. if err != nil {
  124676. ec.Error(ctx, err)
  124677. return graphql.Null
  124678. }
  124679. if resTmp == nil {
  124680. if !graphql.HasFieldError(ctx, fc) {
  124681. ec.Errorf(ctx, "must not be null")
  124682. }
  124683. return graphql.Null
  124684. }
  124685. res := resTmp.(string)
  124686. fc.Result = res
  124687. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  124688. }
  124689. func (ec *executionContext) fieldContext_ShopifyPaymentsExtendedAuthorization_extendedAuthorizationExpiresAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  124690. fc = &graphql.FieldContext{
  124691. Object: "ShopifyPaymentsExtendedAuthorization",
  124692. Field: field,
  124693. IsMethod: false,
  124694. IsResolver: false,
  124695. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  124696. return nil, errors.New("field of type DateTime does not have child fields")
  124697. },
  124698. }
  124699. return fc, nil
  124700. }
  124701. func (ec *executionContext) _ShopifyPaymentsExtendedAuthorization_standardAuthorizationExpiresAt(ctx context.Context, field graphql.CollectedField, obj *ShopifyPaymentsExtendedAuthorization) (ret graphql.Marshaler) {
  124702. fc, err := ec.fieldContext_ShopifyPaymentsExtendedAuthorization_standardAuthorizationExpiresAt(ctx, field)
  124703. if err != nil {
  124704. return graphql.Null
  124705. }
  124706. ctx = graphql.WithFieldContext(ctx, fc)
  124707. defer func() {
  124708. if r := recover(); r != nil {
  124709. ec.Error(ctx, ec.Recover(ctx, r))
  124710. ret = graphql.Null
  124711. }
  124712. }()
  124713. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  124714. ctx = rctx // use context from middleware stack in children
  124715. return obj.StandardAuthorizationExpiresAt, nil
  124716. })
  124717. if err != nil {
  124718. ec.Error(ctx, err)
  124719. return graphql.Null
  124720. }
  124721. if resTmp == nil {
  124722. if !graphql.HasFieldError(ctx, fc) {
  124723. ec.Errorf(ctx, "must not be null")
  124724. }
  124725. return graphql.Null
  124726. }
  124727. res := resTmp.(string)
  124728. fc.Result = res
  124729. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  124730. }
  124731. func (ec *executionContext) fieldContext_ShopifyPaymentsExtendedAuthorization_standardAuthorizationExpiresAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  124732. fc = &graphql.FieldContext{
  124733. Object: "ShopifyPaymentsExtendedAuthorization",
  124734. Field: field,
  124735. IsMethod: false,
  124736. IsResolver: false,
  124737. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  124738. return nil, errors.New("field of type DateTime does not have child fields")
  124739. },
  124740. }
  124741. return fc, nil
  124742. }
  124743. func (ec *executionContext) _ShopifyPaymentsRefundSet_acquirerReferenceNumber(ctx context.Context, field graphql.CollectedField, obj *ShopifyPaymentsRefundSet) (ret graphql.Marshaler) {
  124744. fc, err := ec.fieldContext_ShopifyPaymentsRefundSet_acquirerReferenceNumber(ctx, field)
  124745. if err != nil {
  124746. return graphql.Null
  124747. }
  124748. ctx = graphql.WithFieldContext(ctx, fc)
  124749. defer func() {
  124750. if r := recover(); r != nil {
  124751. ec.Error(ctx, ec.Recover(ctx, r))
  124752. ret = graphql.Null
  124753. }
  124754. }()
  124755. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  124756. ctx = rctx // use context from middleware stack in children
  124757. return obj.AcquirerReferenceNumber, nil
  124758. })
  124759. if err != nil {
  124760. ec.Error(ctx, err)
  124761. return graphql.Null
  124762. }
  124763. if resTmp == nil {
  124764. return graphql.Null
  124765. }
  124766. res := resTmp.(*string)
  124767. fc.Result = res
  124768. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  124769. }
  124770. func (ec *executionContext) fieldContext_ShopifyPaymentsRefundSet_acquirerReferenceNumber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  124771. fc = &graphql.FieldContext{
  124772. Object: "ShopifyPaymentsRefundSet",
  124773. Field: field,
  124774. IsMethod: false,
  124775. IsResolver: false,
  124776. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  124777. return nil, errors.New("field of type String does not have child fields")
  124778. },
  124779. }
  124780. return fc, nil
  124781. }
  124782. func (ec *executionContext) _ShopifyPaymentsTransactionSet_extendedAuthorizationSet(ctx context.Context, field graphql.CollectedField, obj *ShopifyPaymentsTransactionSet) (ret graphql.Marshaler) {
  124783. fc, err := ec.fieldContext_ShopifyPaymentsTransactionSet_extendedAuthorizationSet(ctx, field)
  124784. if err != nil {
  124785. return graphql.Null
  124786. }
  124787. ctx = graphql.WithFieldContext(ctx, fc)
  124788. defer func() {
  124789. if r := recover(); r != nil {
  124790. ec.Error(ctx, ec.Recover(ctx, r))
  124791. ret = graphql.Null
  124792. }
  124793. }()
  124794. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  124795. ctx = rctx // use context from middleware stack in children
  124796. return obj.ExtendedAuthorizationSet, nil
  124797. })
  124798. if err != nil {
  124799. ec.Error(ctx, err)
  124800. return graphql.Null
  124801. }
  124802. if resTmp == nil {
  124803. return graphql.Null
  124804. }
  124805. res := resTmp.(*ShopifyPaymentsExtendedAuthorization)
  124806. fc.Result = res
  124807. return ec.marshalOShopifyPaymentsExtendedAuthorization2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopifyPaymentsExtendedAuthorization(ctx, field.Selections, res)
  124808. }
  124809. func (ec *executionContext) fieldContext_ShopifyPaymentsTransactionSet_extendedAuthorizationSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  124810. fc = &graphql.FieldContext{
  124811. Object: "ShopifyPaymentsTransactionSet",
  124812. Field: field,
  124813. IsMethod: false,
  124814. IsResolver: false,
  124815. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  124816. switch field.Name {
  124817. case "extendedAuthorizationExpiresAt":
  124818. return ec.fieldContext_ShopifyPaymentsExtendedAuthorization_extendedAuthorizationExpiresAt(ctx, field)
  124819. case "standardAuthorizationExpiresAt":
  124820. return ec.fieldContext_ShopifyPaymentsExtendedAuthorization_standardAuthorizationExpiresAt(ctx, field)
  124821. }
  124822. return nil, fmt.Errorf("no field named %q was found under type ShopifyPaymentsExtendedAuthorization", field.Name)
  124823. },
  124824. }
  124825. return fc, nil
  124826. }
  124827. func (ec *executionContext) _ShopifyPaymentsTransactionSet_refundSet(ctx context.Context, field graphql.CollectedField, obj *ShopifyPaymentsTransactionSet) (ret graphql.Marshaler) {
  124828. fc, err := ec.fieldContext_ShopifyPaymentsTransactionSet_refundSet(ctx, field)
  124829. if err != nil {
  124830. return graphql.Null
  124831. }
  124832. ctx = graphql.WithFieldContext(ctx, fc)
  124833. defer func() {
  124834. if r := recover(); r != nil {
  124835. ec.Error(ctx, ec.Recover(ctx, r))
  124836. ret = graphql.Null
  124837. }
  124838. }()
  124839. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  124840. ctx = rctx // use context from middleware stack in children
  124841. return obj.RefundSet, nil
  124842. })
  124843. if err != nil {
  124844. ec.Error(ctx, err)
  124845. return graphql.Null
  124846. }
  124847. if resTmp == nil {
  124848. return graphql.Null
  124849. }
  124850. res := resTmp.(*ShopifyPaymentsRefundSet)
  124851. fc.Result = res
  124852. return ec.marshalOShopifyPaymentsRefundSet2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopifyPaymentsRefundSet(ctx, field.Selections, res)
  124853. }
  124854. func (ec *executionContext) fieldContext_ShopifyPaymentsTransactionSet_refundSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  124855. fc = &graphql.FieldContext{
  124856. Object: "ShopifyPaymentsTransactionSet",
  124857. Field: field,
  124858. IsMethod: false,
  124859. IsResolver: false,
  124860. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  124861. switch field.Name {
  124862. case "acquirerReferenceNumber":
  124863. return ec.fieldContext_ShopifyPaymentsRefundSet_acquirerReferenceNumber(ctx, field)
  124864. }
  124865. return nil, fmt.Errorf("no field named %q was found under type ShopifyPaymentsRefundSet", field.Name)
  124866. },
  124867. }
  124868. return fc, nil
  124869. }
  124870. func (ec *executionContext) _StaffMember_active(ctx context.Context, field graphql.CollectedField, obj *StaffMember) (ret graphql.Marshaler) {
  124871. fc, err := ec.fieldContext_StaffMember_active(ctx, field)
  124872. if err != nil {
  124873. return graphql.Null
  124874. }
  124875. ctx = graphql.WithFieldContext(ctx, fc)
  124876. defer func() {
  124877. if r := recover(); r != nil {
  124878. ec.Error(ctx, ec.Recover(ctx, r))
  124879. ret = graphql.Null
  124880. }
  124881. }()
  124882. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  124883. ctx = rctx // use context from middleware stack in children
  124884. return obj.Active, nil
  124885. })
  124886. if err != nil {
  124887. ec.Error(ctx, err)
  124888. return graphql.Null
  124889. }
  124890. if resTmp == nil {
  124891. if !graphql.HasFieldError(ctx, fc) {
  124892. ec.Errorf(ctx, "must not be null")
  124893. }
  124894. return graphql.Null
  124895. }
  124896. res := resTmp.(bool)
  124897. fc.Result = res
  124898. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  124899. }
  124900. func (ec *executionContext) fieldContext_StaffMember_active(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  124901. fc = &graphql.FieldContext{
  124902. Object: "StaffMember",
  124903. Field: field,
  124904. IsMethod: false,
  124905. IsResolver: false,
  124906. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  124907. return nil, errors.New("field of type Boolean does not have child fields")
  124908. },
  124909. }
  124910. return fc, nil
  124911. }
  124912. func (ec *executionContext) _StaffMember_avatar(ctx context.Context, field graphql.CollectedField, obj *StaffMember) (ret graphql.Marshaler) {
  124913. fc, err := ec.fieldContext_StaffMember_avatar(ctx, field)
  124914. if err != nil {
  124915. return graphql.Null
  124916. }
  124917. ctx = graphql.WithFieldContext(ctx, fc)
  124918. defer func() {
  124919. if r := recover(); r != nil {
  124920. ec.Error(ctx, ec.Recover(ctx, r))
  124921. ret = graphql.Null
  124922. }
  124923. }()
  124924. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  124925. ctx = rctx // use context from middleware stack in children
  124926. return obj.Avatar, nil
  124927. })
  124928. if err != nil {
  124929. ec.Error(ctx, err)
  124930. return graphql.Null
  124931. }
  124932. if resTmp == nil {
  124933. if !graphql.HasFieldError(ctx, fc) {
  124934. ec.Errorf(ctx, "must not be null")
  124935. }
  124936. return graphql.Null
  124937. }
  124938. res := resTmp.(*Image)
  124939. fc.Result = res
  124940. return ec.marshalNImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImage(ctx, field.Selections, res)
  124941. }
  124942. func (ec *executionContext) fieldContext_StaffMember_avatar(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  124943. fc = &graphql.FieldContext{
  124944. Object: "StaffMember",
  124945. Field: field,
  124946. IsMethod: false,
  124947. IsResolver: false,
  124948. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  124949. switch field.Name {
  124950. case "altText":
  124951. return ec.fieldContext_Image_altText(ctx, field)
  124952. case "height":
  124953. return ec.fieldContext_Image_height(ctx, field)
  124954. case "id":
  124955. return ec.fieldContext_Image_id(ctx, field)
  124956. case "metafield":
  124957. return ec.fieldContext_Image_metafield(ctx, field)
  124958. case "metafields":
  124959. return ec.fieldContext_Image_metafields(ctx, field)
  124960. case "privateMetafield":
  124961. return ec.fieldContext_Image_privateMetafield(ctx, field)
  124962. case "privateMetafields":
  124963. return ec.fieldContext_Image_privateMetafields(ctx, field)
  124964. case "url":
  124965. return ec.fieldContext_Image_url(ctx, field)
  124966. case "width":
  124967. return ec.fieldContext_Image_width(ctx, field)
  124968. }
  124969. return nil, fmt.Errorf("no field named %q was found under type Image", field.Name)
  124970. },
  124971. }
  124972. defer func() {
  124973. if r := recover(); r != nil {
  124974. err = ec.Recover(ctx, r)
  124975. ec.Error(ctx, err)
  124976. }
  124977. }()
  124978. ctx = graphql.WithFieldContext(ctx, fc)
  124979. if fc.Args, err = ec.field_StaffMember_avatar_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  124980. ec.Error(ctx, err)
  124981. return
  124982. }
  124983. return fc, nil
  124984. }
  124985. func (ec *executionContext) _StaffMember_email(ctx context.Context, field graphql.CollectedField, obj *StaffMember) (ret graphql.Marshaler) {
  124986. fc, err := ec.fieldContext_StaffMember_email(ctx, field)
  124987. if err != nil {
  124988. return graphql.Null
  124989. }
  124990. ctx = graphql.WithFieldContext(ctx, fc)
  124991. defer func() {
  124992. if r := recover(); r != nil {
  124993. ec.Error(ctx, ec.Recover(ctx, r))
  124994. ret = graphql.Null
  124995. }
  124996. }()
  124997. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  124998. ctx = rctx // use context from middleware stack in children
  124999. return obj.Email, nil
  125000. })
  125001. if err != nil {
  125002. ec.Error(ctx, err)
  125003. return graphql.Null
  125004. }
  125005. if resTmp == nil {
  125006. if !graphql.HasFieldError(ctx, fc) {
  125007. ec.Errorf(ctx, "must not be null")
  125008. }
  125009. return graphql.Null
  125010. }
  125011. res := resTmp.(string)
  125012. fc.Result = res
  125013. return ec.marshalNString2string(ctx, field.Selections, res)
  125014. }
  125015. func (ec *executionContext) fieldContext_StaffMember_email(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  125016. fc = &graphql.FieldContext{
  125017. Object: "StaffMember",
  125018. Field: field,
  125019. IsMethod: false,
  125020. IsResolver: false,
  125021. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  125022. return nil, errors.New("field of type String does not have child fields")
  125023. },
  125024. }
  125025. return fc, nil
  125026. }
  125027. func (ec *executionContext) _StaffMember_exists(ctx context.Context, field graphql.CollectedField, obj *StaffMember) (ret graphql.Marshaler) {
  125028. fc, err := ec.fieldContext_StaffMember_exists(ctx, field)
  125029. if err != nil {
  125030. return graphql.Null
  125031. }
  125032. ctx = graphql.WithFieldContext(ctx, fc)
  125033. defer func() {
  125034. if r := recover(); r != nil {
  125035. ec.Error(ctx, ec.Recover(ctx, r))
  125036. ret = graphql.Null
  125037. }
  125038. }()
  125039. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  125040. ctx = rctx // use context from middleware stack in children
  125041. return obj.Exists, nil
  125042. })
  125043. if err != nil {
  125044. ec.Error(ctx, err)
  125045. return graphql.Null
  125046. }
  125047. if resTmp == nil {
  125048. if !graphql.HasFieldError(ctx, fc) {
  125049. ec.Errorf(ctx, "must not be null")
  125050. }
  125051. return graphql.Null
  125052. }
  125053. res := resTmp.(bool)
  125054. fc.Result = res
  125055. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  125056. }
  125057. func (ec *executionContext) fieldContext_StaffMember_exists(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  125058. fc = &graphql.FieldContext{
  125059. Object: "StaffMember",
  125060. Field: field,
  125061. IsMethod: false,
  125062. IsResolver: false,
  125063. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  125064. return nil, errors.New("field of type Boolean does not have child fields")
  125065. },
  125066. }
  125067. return fc, nil
  125068. }
  125069. func (ec *executionContext) _StaffMember_firstName(ctx context.Context, field graphql.CollectedField, obj *StaffMember) (ret graphql.Marshaler) {
  125070. fc, err := ec.fieldContext_StaffMember_firstName(ctx, field)
  125071. if err != nil {
  125072. return graphql.Null
  125073. }
  125074. ctx = graphql.WithFieldContext(ctx, fc)
  125075. defer func() {
  125076. if r := recover(); r != nil {
  125077. ec.Error(ctx, ec.Recover(ctx, r))
  125078. ret = graphql.Null
  125079. }
  125080. }()
  125081. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  125082. ctx = rctx // use context from middleware stack in children
  125083. return obj.FirstName, nil
  125084. })
  125085. if err != nil {
  125086. ec.Error(ctx, err)
  125087. return graphql.Null
  125088. }
  125089. if resTmp == nil {
  125090. return graphql.Null
  125091. }
  125092. res := resTmp.(*string)
  125093. fc.Result = res
  125094. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  125095. }
  125096. func (ec *executionContext) fieldContext_StaffMember_firstName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  125097. fc = &graphql.FieldContext{
  125098. Object: "StaffMember",
  125099. Field: field,
  125100. IsMethod: false,
  125101. IsResolver: false,
  125102. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  125103. return nil, errors.New("field of type String does not have child fields")
  125104. },
  125105. }
  125106. return fc, nil
  125107. }
  125108. func (ec *executionContext) _StaffMember_id(ctx context.Context, field graphql.CollectedField, obj *StaffMember) (ret graphql.Marshaler) {
  125109. fc, err := ec.fieldContext_StaffMember_id(ctx, field)
  125110. if err != nil {
  125111. return graphql.Null
  125112. }
  125113. ctx = graphql.WithFieldContext(ctx, fc)
  125114. defer func() {
  125115. if r := recover(); r != nil {
  125116. ec.Error(ctx, ec.Recover(ctx, r))
  125117. ret = graphql.Null
  125118. }
  125119. }()
  125120. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  125121. ctx = rctx // use context from middleware stack in children
  125122. return obj.ID, nil
  125123. })
  125124. if err != nil {
  125125. ec.Error(ctx, err)
  125126. return graphql.Null
  125127. }
  125128. if resTmp == nil {
  125129. if !graphql.HasFieldError(ctx, fc) {
  125130. ec.Errorf(ctx, "must not be null")
  125131. }
  125132. return graphql.Null
  125133. }
  125134. res := resTmp.(string)
  125135. fc.Result = res
  125136. return ec.marshalNID2string(ctx, field.Selections, res)
  125137. }
  125138. func (ec *executionContext) fieldContext_StaffMember_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  125139. fc = &graphql.FieldContext{
  125140. Object: "StaffMember",
  125141. Field: field,
  125142. IsMethod: false,
  125143. IsResolver: false,
  125144. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  125145. return nil, errors.New("field of type ID does not have child fields")
  125146. },
  125147. }
  125148. return fc, nil
  125149. }
  125150. func (ec *executionContext) _StaffMember_initials(ctx context.Context, field graphql.CollectedField, obj *StaffMember) (ret graphql.Marshaler) {
  125151. fc, err := ec.fieldContext_StaffMember_initials(ctx, field)
  125152. if err != nil {
  125153. return graphql.Null
  125154. }
  125155. ctx = graphql.WithFieldContext(ctx, fc)
  125156. defer func() {
  125157. if r := recover(); r != nil {
  125158. ec.Error(ctx, ec.Recover(ctx, r))
  125159. ret = graphql.Null
  125160. }
  125161. }()
  125162. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  125163. ctx = rctx // use context from middleware stack in children
  125164. return obj.Initials, nil
  125165. })
  125166. if err != nil {
  125167. ec.Error(ctx, err)
  125168. return graphql.Null
  125169. }
  125170. if resTmp == nil {
  125171. return graphql.Null
  125172. }
  125173. res := resTmp.([]string)
  125174. fc.Result = res
  125175. return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
  125176. }
  125177. func (ec *executionContext) fieldContext_StaffMember_initials(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  125178. fc = &graphql.FieldContext{
  125179. Object: "StaffMember",
  125180. Field: field,
  125181. IsMethod: false,
  125182. IsResolver: false,
  125183. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  125184. return nil, errors.New("field of type String does not have child fields")
  125185. },
  125186. }
  125187. return fc, nil
  125188. }
  125189. func (ec *executionContext) _StaffMember_isShopOwner(ctx context.Context, field graphql.CollectedField, obj *StaffMember) (ret graphql.Marshaler) {
  125190. fc, err := ec.fieldContext_StaffMember_isShopOwner(ctx, field)
  125191. if err != nil {
  125192. return graphql.Null
  125193. }
  125194. ctx = graphql.WithFieldContext(ctx, fc)
  125195. defer func() {
  125196. if r := recover(); r != nil {
  125197. ec.Error(ctx, ec.Recover(ctx, r))
  125198. ret = graphql.Null
  125199. }
  125200. }()
  125201. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  125202. ctx = rctx // use context from middleware stack in children
  125203. return obj.IsShopOwner, nil
  125204. })
  125205. if err != nil {
  125206. ec.Error(ctx, err)
  125207. return graphql.Null
  125208. }
  125209. if resTmp == nil {
  125210. if !graphql.HasFieldError(ctx, fc) {
  125211. ec.Errorf(ctx, "must not be null")
  125212. }
  125213. return graphql.Null
  125214. }
  125215. res := resTmp.(bool)
  125216. fc.Result = res
  125217. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  125218. }
  125219. func (ec *executionContext) fieldContext_StaffMember_isShopOwner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  125220. fc = &graphql.FieldContext{
  125221. Object: "StaffMember",
  125222. Field: field,
  125223. IsMethod: false,
  125224. IsResolver: false,
  125225. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  125226. return nil, errors.New("field of type Boolean does not have child fields")
  125227. },
  125228. }
  125229. return fc, nil
  125230. }
  125231. func (ec *executionContext) _StaffMember_lastName(ctx context.Context, field graphql.CollectedField, obj *StaffMember) (ret graphql.Marshaler) {
  125232. fc, err := ec.fieldContext_StaffMember_lastName(ctx, field)
  125233. if err != nil {
  125234. return graphql.Null
  125235. }
  125236. ctx = graphql.WithFieldContext(ctx, fc)
  125237. defer func() {
  125238. if r := recover(); r != nil {
  125239. ec.Error(ctx, ec.Recover(ctx, r))
  125240. ret = graphql.Null
  125241. }
  125242. }()
  125243. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  125244. ctx = rctx // use context from middleware stack in children
  125245. return obj.LastName, nil
  125246. })
  125247. if err != nil {
  125248. ec.Error(ctx, err)
  125249. return graphql.Null
  125250. }
  125251. if resTmp == nil {
  125252. return graphql.Null
  125253. }
  125254. res := resTmp.(*string)
  125255. fc.Result = res
  125256. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  125257. }
  125258. func (ec *executionContext) fieldContext_StaffMember_lastName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  125259. fc = &graphql.FieldContext{
  125260. Object: "StaffMember",
  125261. Field: field,
  125262. IsMethod: false,
  125263. IsResolver: false,
  125264. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  125265. return nil, errors.New("field of type String does not have child fields")
  125266. },
  125267. }
  125268. return fc, nil
  125269. }
  125270. func (ec *executionContext) _StaffMember_locale(ctx context.Context, field graphql.CollectedField, obj *StaffMember) (ret graphql.Marshaler) {
  125271. fc, err := ec.fieldContext_StaffMember_locale(ctx, field)
  125272. if err != nil {
  125273. return graphql.Null
  125274. }
  125275. ctx = graphql.WithFieldContext(ctx, fc)
  125276. defer func() {
  125277. if r := recover(); r != nil {
  125278. ec.Error(ctx, ec.Recover(ctx, r))
  125279. ret = graphql.Null
  125280. }
  125281. }()
  125282. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  125283. ctx = rctx // use context from middleware stack in children
  125284. return obj.Locale, nil
  125285. })
  125286. if err != nil {
  125287. ec.Error(ctx, err)
  125288. return graphql.Null
  125289. }
  125290. if resTmp == nil {
  125291. if !graphql.HasFieldError(ctx, fc) {
  125292. ec.Errorf(ctx, "must not be null")
  125293. }
  125294. return graphql.Null
  125295. }
  125296. res := resTmp.(string)
  125297. fc.Result = res
  125298. return ec.marshalNString2string(ctx, field.Selections, res)
  125299. }
  125300. func (ec *executionContext) fieldContext_StaffMember_locale(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  125301. fc = &graphql.FieldContext{
  125302. Object: "StaffMember",
  125303. Field: field,
  125304. IsMethod: false,
  125305. IsResolver: false,
  125306. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  125307. return nil, errors.New("field of type String does not have child fields")
  125308. },
  125309. }
  125310. return fc, nil
  125311. }
  125312. func (ec *executionContext) _StaffMember_name(ctx context.Context, field graphql.CollectedField, obj *StaffMember) (ret graphql.Marshaler) {
  125313. fc, err := ec.fieldContext_StaffMember_name(ctx, field)
  125314. if err != nil {
  125315. return graphql.Null
  125316. }
  125317. ctx = graphql.WithFieldContext(ctx, fc)
  125318. defer func() {
  125319. if r := recover(); r != nil {
  125320. ec.Error(ctx, ec.Recover(ctx, r))
  125321. ret = graphql.Null
  125322. }
  125323. }()
  125324. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  125325. ctx = rctx // use context from middleware stack in children
  125326. return obj.Name, nil
  125327. })
  125328. if err != nil {
  125329. ec.Error(ctx, err)
  125330. return graphql.Null
  125331. }
  125332. if resTmp == nil {
  125333. if !graphql.HasFieldError(ctx, fc) {
  125334. ec.Errorf(ctx, "must not be null")
  125335. }
  125336. return graphql.Null
  125337. }
  125338. res := resTmp.(string)
  125339. fc.Result = res
  125340. return ec.marshalNString2string(ctx, field.Selections, res)
  125341. }
  125342. func (ec *executionContext) fieldContext_StaffMember_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  125343. fc = &graphql.FieldContext{
  125344. Object: "StaffMember",
  125345. Field: field,
  125346. IsMethod: false,
  125347. IsResolver: false,
  125348. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  125349. return nil, errors.New("field of type String does not have child fields")
  125350. },
  125351. }
  125352. return fc, nil
  125353. }
  125354. func (ec *executionContext) _StaffMember_phone(ctx context.Context, field graphql.CollectedField, obj *StaffMember) (ret graphql.Marshaler) {
  125355. fc, err := ec.fieldContext_StaffMember_phone(ctx, field)
  125356. if err != nil {
  125357. return graphql.Null
  125358. }
  125359. ctx = graphql.WithFieldContext(ctx, fc)
  125360. defer func() {
  125361. if r := recover(); r != nil {
  125362. ec.Error(ctx, ec.Recover(ctx, r))
  125363. ret = graphql.Null
  125364. }
  125365. }()
  125366. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  125367. ctx = rctx // use context from middleware stack in children
  125368. return obj.Phone, nil
  125369. })
  125370. if err != nil {
  125371. ec.Error(ctx, err)
  125372. return graphql.Null
  125373. }
  125374. if resTmp == nil {
  125375. return graphql.Null
  125376. }
  125377. res := resTmp.(*string)
  125378. fc.Result = res
  125379. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  125380. }
  125381. func (ec *executionContext) fieldContext_StaffMember_phone(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  125382. fc = &graphql.FieldContext{
  125383. Object: "StaffMember",
  125384. Field: field,
  125385. IsMethod: false,
  125386. IsResolver: false,
  125387. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  125388. return nil, errors.New("field of type String does not have child fields")
  125389. },
  125390. }
  125391. return fc, nil
  125392. }
  125393. func (ec *executionContext) _StaffMember_privateData(ctx context.Context, field graphql.CollectedField, obj *StaffMember) (ret graphql.Marshaler) {
  125394. fc, err := ec.fieldContext_StaffMember_privateData(ctx, field)
  125395. if err != nil {
  125396. return graphql.Null
  125397. }
  125398. ctx = graphql.WithFieldContext(ctx, fc)
  125399. defer func() {
  125400. if r := recover(); r != nil {
  125401. ec.Error(ctx, ec.Recover(ctx, r))
  125402. ret = graphql.Null
  125403. }
  125404. }()
  125405. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  125406. ctx = rctx // use context from middleware stack in children
  125407. return obj.PrivateData, nil
  125408. })
  125409. if err != nil {
  125410. ec.Error(ctx, err)
  125411. return graphql.Null
  125412. }
  125413. if resTmp == nil {
  125414. if !graphql.HasFieldError(ctx, fc) {
  125415. ec.Errorf(ctx, "must not be null")
  125416. }
  125417. return graphql.Null
  125418. }
  125419. res := resTmp.(*StaffMemberPrivateData)
  125420. fc.Result = res
  125421. return ec.marshalNStaffMemberPrivateData2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStaffMemberPrivateData(ctx, field.Selections, res)
  125422. }
  125423. func (ec *executionContext) fieldContext_StaffMember_privateData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  125424. fc = &graphql.FieldContext{
  125425. Object: "StaffMember",
  125426. Field: field,
  125427. IsMethod: false,
  125428. IsResolver: false,
  125429. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  125430. switch field.Name {
  125431. case "accountSettingsUrl":
  125432. return ec.fieldContext_StaffMemberPrivateData_accountSettingsUrl(ctx, field)
  125433. case "createdAt":
  125434. return ec.fieldContext_StaffMemberPrivateData_createdAt(ctx, field)
  125435. }
  125436. return nil, fmt.Errorf("no field named %q was found under type StaffMemberPrivateData", field.Name)
  125437. },
  125438. }
  125439. return fc, nil
  125440. }
  125441. func (ec *executionContext) _StaffMemberConnection_edges(ctx context.Context, field graphql.CollectedField, obj *StaffMemberConnection) (ret graphql.Marshaler) {
  125442. fc, err := ec.fieldContext_StaffMemberConnection_edges(ctx, field)
  125443. if err != nil {
  125444. return graphql.Null
  125445. }
  125446. ctx = graphql.WithFieldContext(ctx, fc)
  125447. defer func() {
  125448. if r := recover(); r != nil {
  125449. ec.Error(ctx, ec.Recover(ctx, r))
  125450. ret = graphql.Null
  125451. }
  125452. }()
  125453. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  125454. ctx = rctx // use context from middleware stack in children
  125455. return obj.Edges, nil
  125456. })
  125457. if err != nil {
  125458. ec.Error(ctx, err)
  125459. return graphql.Null
  125460. }
  125461. if resTmp == nil {
  125462. if !graphql.HasFieldError(ctx, fc) {
  125463. ec.Errorf(ctx, "must not be null")
  125464. }
  125465. return graphql.Null
  125466. }
  125467. res := resTmp.([]*StaffMemberEdge)
  125468. fc.Result = res
  125469. return ec.marshalNStaffMemberEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStaffMemberEdgeᚄ(ctx, field.Selections, res)
  125470. }
  125471. func (ec *executionContext) fieldContext_StaffMemberConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  125472. fc = &graphql.FieldContext{
  125473. Object: "StaffMemberConnection",
  125474. Field: field,
  125475. IsMethod: false,
  125476. IsResolver: false,
  125477. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  125478. switch field.Name {
  125479. case "cursor":
  125480. return ec.fieldContext_StaffMemberEdge_cursor(ctx, field)
  125481. case "node":
  125482. return ec.fieldContext_StaffMemberEdge_node(ctx, field)
  125483. }
  125484. return nil, fmt.Errorf("no field named %q was found under type StaffMemberEdge", field.Name)
  125485. },
  125486. }
  125487. return fc, nil
  125488. }
  125489. func (ec *executionContext) _StaffMemberConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *StaffMemberConnection) (ret graphql.Marshaler) {
  125490. fc, err := ec.fieldContext_StaffMemberConnection_nodes(ctx, field)
  125491. if err != nil {
  125492. return graphql.Null
  125493. }
  125494. ctx = graphql.WithFieldContext(ctx, fc)
  125495. defer func() {
  125496. if r := recover(); r != nil {
  125497. ec.Error(ctx, ec.Recover(ctx, r))
  125498. ret = graphql.Null
  125499. }
  125500. }()
  125501. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  125502. ctx = rctx // use context from middleware stack in children
  125503. return obj.Nodes, nil
  125504. })
  125505. if err != nil {
  125506. ec.Error(ctx, err)
  125507. return graphql.Null
  125508. }
  125509. if resTmp == nil {
  125510. if !graphql.HasFieldError(ctx, fc) {
  125511. ec.Errorf(ctx, "must not be null")
  125512. }
  125513. return graphql.Null
  125514. }
  125515. res := resTmp.([]*StaffMember)
  125516. fc.Result = res
  125517. return ec.marshalNStaffMember2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStaffMemberᚄ(ctx, field.Selections, res)
  125518. }
  125519. func (ec *executionContext) fieldContext_StaffMemberConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  125520. fc = &graphql.FieldContext{
  125521. Object: "StaffMemberConnection",
  125522. Field: field,
  125523. IsMethod: false,
  125524. IsResolver: false,
  125525. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  125526. switch field.Name {
  125527. case "active":
  125528. return ec.fieldContext_StaffMember_active(ctx, field)
  125529. case "avatar":
  125530. return ec.fieldContext_StaffMember_avatar(ctx, field)
  125531. case "email":
  125532. return ec.fieldContext_StaffMember_email(ctx, field)
  125533. case "exists":
  125534. return ec.fieldContext_StaffMember_exists(ctx, field)
  125535. case "firstName":
  125536. return ec.fieldContext_StaffMember_firstName(ctx, field)
  125537. case "id":
  125538. return ec.fieldContext_StaffMember_id(ctx, field)
  125539. case "initials":
  125540. return ec.fieldContext_StaffMember_initials(ctx, field)
  125541. case "isShopOwner":
  125542. return ec.fieldContext_StaffMember_isShopOwner(ctx, field)
  125543. case "lastName":
  125544. return ec.fieldContext_StaffMember_lastName(ctx, field)
  125545. case "locale":
  125546. return ec.fieldContext_StaffMember_locale(ctx, field)
  125547. case "name":
  125548. return ec.fieldContext_StaffMember_name(ctx, field)
  125549. case "phone":
  125550. return ec.fieldContext_StaffMember_phone(ctx, field)
  125551. case "privateData":
  125552. return ec.fieldContext_StaffMember_privateData(ctx, field)
  125553. }
  125554. return nil, fmt.Errorf("no field named %q was found under type StaffMember", field.Name)
  125555. },
  125556. }
  125557. return fc, nil
  125558. }
  125559. func (ec *executionContext) _StaffMemberConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *StaffMemberConnection) (ret graphql.Marshaler) {
  125560. fc, err := ec.fieldContext_StaffMemberConnection_pageInfo(ctx, field)
  125561. if err != nil {
  125562. return graphql.Null
  125563. }
  125564. ctx = graphql.WithFieldContext(ctx, fc)
  125565. defer func() {
  125566. if r := recover(); r != nil {
  125567. ec.Error(ctx, ec.Recover(ctx, r))
  125568. ret = graphql.Null
  125569. }
  125570. }()
  125571. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  125572. ctx = rctx // use context from middleware stack in children
  125573. return obj.PageInfo, nil
  125574. })
  125575. if err != nil {
  125576. ec.Error(ctx, err)
  125577. return graphql.Null
  125578. }
  125579. if resTmp == nil {
  125580. if !graphql.HasFieldError(ctx, fc) {
  125581. ec.Errorf(ctx, "must not be null")
  125582. }
  125583. return graphql.Null
  125584. }
  125585. res := resTmp.(*PageInfo)
  125586. fc.Result = res
  125587. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  125588. }
  125589. func (ec *executionContext) fieldContext_StaffMemberConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  125590. fc = &graphql.FieldContext{
  125591. Object: "StaffMemberConnection",
  125592. Field: field,
  125593. IsMethod: false,
  125594. IsResolver: false,
  125595. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  125596. switch field.Name {
  125597. case "endCursor":
  125598. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  125599. case "hasNextPage":
  125600. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  125601. case "hasPreviousPage":
  125602. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  125603. case "startCursor":
  125604. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  125605. }
  125606. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  125607. },
  125608. }
  125609. return fc, nil
  125610. }
  125611. func (ec *executionContext) _StaffMemberEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *StaffMemberEdge) (ret graphql.Marshaler) {
  125612. fc, err := ec.fieldContext_StaffMemberEdge_cursor(ctx, field)
  125613. if err != nil {
  125614. return graphql.Null
  125615. }
  125616. ctx = graphql.WithFieldContext(ctx, fc)
  125617. defer func() {
  125618. if r := recover(); r != nil {
  125619. ec.Error(ctx, ec.Recover(ctx, r))
  125620. ret = graphql.Null
  125621. }
  125622. }()
  125623. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  125624. ctx = rctx // use context from middleware stack in children
  125625. return obj.Cursor, nil
  125626. })
  125627. if err != nil {
  125628. ec.Error(ctx, err)
  125629. return graphql.Null
  125630. }
  125631. if resTmp == nil {
  125632. if !graphql.HasFieldError(ctx, fc) {
  125633. ec.Errorf(ctx, "must not be null")
  125634. }
  125635. return graphql.Null
  125636. }
  125637. res := resTmp.(string)
  125638. fc.Result = res
  125639. return ec.marshalNString2string(ctx, field.Selections, res)
  125640. }
  125641. func (ec *executionContext) fieldContext_StaffMemberEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  125642. fc = &graphql.FieldContext{
  125643. Object: "StaffMemberEdge",
  125644. Field: field,
  125645. IsMethod: false,
  125646. IsResolver: false,
  125647. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  125648. return nil, errors.New("field of type String does not have child fields")
  125649. },
  125650. }
  125651. return fc, nil
  125652. }
  125653. func (ec *executionContext) _StaffMemberEdge_node(ctx context.Context, field graphql.CollectedField, obj *StaffMemberEdge) (ret graphql.Marshaler) {
  125654. fc, err := ec.fieldContext_StaffMemberEdge_node(ctx, field)
  125655. if err != nil {
  125656. return graphql.Null
  125657. }
  125658. ctx = graphql.WithFieldContext(ctx, fc)
  125659. defer func() {
  125660. if r := recover(); r != nil {
  125661. ec.Error(ctx, ec.Recover(ctx, r))
  125662. ret = graphql.Null
  125663. }
  125664. }()
  125665. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  125666. ctx = rctx // use context from middleware stack in children
  125667. return obj.Node, nil
  125668. })
  125669. if err != nil {
  125670. ec.Error(ctx, err)
  125671. return graphql.Null
  125672. }
  125673. if resTmp == nil {
  125674. if !graphql.HasFieldError(ctx, fc) {
  125675. ec.Errorf(ctx, "must not be null")
  125676. }
  125677. return graphql.Null
  125678. }
  125679. res := resTmp.(*StaffMember)
  125680. fc.Result = res
  125681. return ec.marshalNStaffMember2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStaffMember(ctx, field.Selections, res)
  125682. }
  125683. func (ec *executionContext) fieldContext_StaffMemberEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  125684. fc = &graphql.FieldContext{
  125685. Object: "StaffMemberEdge",
  125686. Field: field,
  125687. IsMethod: false,
  125688. IsResolver: false,
  125689. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  125690. switch field.Name {
  125691. case "active":
  125692. return ec.fieldContext_StaffMember_active(ctx, field)
  125693. case "avatar":
  125694. return ec.fieldContext_StaffMember_avatar(ctx, field)
  125695. case "email":
  125696. return ec.fieldContext_StaffMember_email(ctx, field)
  125697. case "exists":
  125698. return ec.fieldContext_StaffMember_exists(ctx, field)
  125699. case "firstName":
  125700. return ec.fieldContext_StaffMember_firstName(ctx, field)
  125701. case "id":
  125702. return ec.fieldContext_StaffMember_id(ctx, field)
  125703. case "initials":
  125704. return ec.fieldContext_StaffMember_initials(ctx, field)
  125705. case "isShopOwner":
  125706. return ec.fieldContext_StaffMember_isShopOwner(ctx, field)
  125707. case "lastName":
  125708. return ec.fieldContext_StaffMember_lastName(ctx, field)
  125709. case "locale":
  125710. return ec.fieldContext_StaffMember_locale(ctx, field)
  125711. case "name":
  125712. return ec.fieldContext_StaffMember_name(ctx, field)
  125713. case "phone":
  125714. return ec.fieldContext_StaffMember_phone(ctx, field)
  125715. case "privateData":
  125716. return ec.fieldContext_StaffMember_privateData(ctx, field)
  125717. }
  125718. return nil, fmt.Errorf("no field named %q was found under type StaffMember", field.Name)
  125719. },
  125720. }
  125721. return fc, nil
  125722. }
  125723. func (ec *executionContext) _StaffMemberPrivateData_accountSettingsUrl(ctx context.Context, field graphql.CollectedField, obj *StaffMemberPrivateData) (ret graphql.Marshaler) {
  125724. fc, err := ec.fieldContext_StaffMemberPrivateData_accountSettingsUrl(ctx, field)
  125725. if err != nil {
  125726. return graphql.Null
  125727. }
  125728. ctx = graphql.WithFieldContext(ctx, fc)
  125729. defer func() {
  125730. if r := recover(); r != nil {
  125731. ec.Error(ctx, ec.Recover(ctx, r))
  125732. ret = graphql.Null
  125733. }
  125734. }()
  125735. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  125736. ctx = rctx // use context from middleware stack in children
  125737. return obj.AccountSettingsURL, nil
  125738. })
  125739. if err != nil {
  125740. ec.Error(ctx, err)
  125741. return graphql.Null
  125742. }
  125743. if resTmp == nil {
  125744. if !graphql.HasFieldError(ctx, fc) {
  125745. ec.Errorf(ctx, "must not be null")
  125746. }
  125747. return graphql.Null
  125748. }
  125749. res := resTmp.(string)
  125750. fc.Result = res
  125751. return ec.marshalNURL2string(ctx, field.Selections, res)
  125752. }
  125753. func (ec *executionContext) fieldContext_StaffMemberPrivateData_accountSettingsUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  125754. fc = &graphql.FieldContext{
  125755. Object: "StaffMemberPrivateData",
  125756. Field: field,
  125757. IsMethod: false,
  125758. IsResolver: false,
  125759. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  125760. return nil, errors.New("field of type URL does not have child fields")
  125761. },
  125762. }
  125763. return fc, nil
  125764. }
  125765. func (ec *executionContext) _StaffMemberPrivateData_createdAt(ctx context.Context, field graphql.CollectedField, obj *StaffMemberPrivateData) (ret graphql.Marshaler) {
  125766. fc, err := ec.fieldContext_StaffMemberPrivateData_createdAt(ctx, field)
  125767. if err != nil {
  125768. return graphql.Null
  125769. }
  125770. ctx = graphql.WithFieldContext(ctx, fc)
  125771. defer func() {
  125772. if r := recover(); r != nil {
  125773. ec.Error(ctx, ec.Recover(ctx, r))
  125774. ret = graphql.Null
  125775. }
  125776. }()
  125777. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  125778. ctx = rctx // use context from middleware stack in children
  125779. return obj.CreatedAt, nil
  125780. })
  125781. if err != nil {
  125782. ec.Error(ctx, err)
  125783. return graphql.Null
  125784. }
  125785. if resTmp == nil {
  125786. if !graphql.HasFieldError(ctx, fc) {
  125787. ec.Errorf(ctx, "must not be null")
  125788. }
  125789. return graphql.Null
  125790. }
  125791. res := resTmp.(string)
  125792. fc.Result = res
  125793. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  125794. }
  125795. func (ec *executionContext) fieldContext_StaffMemberPrivateData_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  125796. fc = &graphql.FieldContext{
  125797. Object: "StaffMemberPrivateData",
  125798. Field: field,
  125799. IsMethod: false,
  125800. IsResolver: false,
  125801. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  125802. return nil, errors.New("field of type DateTime does not have child fields")
  125803. },
  125804. }
  125805. return fc, nil
  125806. }
  125807. func (ec *executionContext) _StandardMetafieldDefinitionTemplate_description(ctx context.Context, field graphql.CollectedField, obj *StandardMetafieldDefinitionTemplate) (ret graphql.Marshaler) {
  125808. fc, err := ec.fieldContext_StandardMetafieldDefinitionTemplate_description(ctx, field)
  125809. if err != nil {
  125810. return graphql.Null
  125811. }
  125812. ctx = graphql.WithFieldContext(ctx, fc)
  125813. defer func() {
  125814. if r := recover(); r != nil {
  125815. ec.Error(ctx, ec.Recover(ctx, r))
  125816. ret = graphql.Null
  125817. }
  125818. }()
  125819. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  125820. ctx = rctx // use context from middleware stack in children
  125821. return obj.Description, nil
  125822. })
  125823. if err != nil {
  125824. ec.Error(ctx, err)
  125825. return graphql.Null
  125826. }
  125827. if resTmp == nil {
  125828. return graphql.Null
  125829. }
  125830. res := resTmp.(*string)
  125831. fc.Result = res
  125832. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  125833. }
  125834. func (ec *executionContext) fieldContext_StandardMetafieldDefinitionTemplate_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  125835. fc = &graphql.FieldContext{
  125836. Object: "StandardMetafieldDefinitionTemplate",
  125837. Field: field,
  125838. IsMethod: false,
  125839. IsResolver: false,
  125840. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  125841. return nil, errors.New("field of type String does not have child fields")
  125842. },
  125843. }
  125844. return fc, nil
  125845. }
  125846. func (ec *executionContext) _StandardMetafieldDefinitionTemplate_id(ctx context.Context, field graphql.CollectedField, obj *StandardMetafieldDefinitionTemplate) (ret graphql.Marshaler) {
  125847. fc, err := ec.fieldContext_StandardMetafieldDefinitionTemplate_id(ctx, field)
  125848. if err != nil {
  125849. return graphql.Null
  125850. }
  125851. ctx = graphql.WithFieldContext(ctx, fc)
  125852. defer func() {
  125853. if r := recover(); r != nil {
  125854. ec.Error(ctx, ec.Recover(ctx, r))
  125855. ret = graphql.Null
  125856. }
  125857. }()
  125858. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  125859. ctx = rctx // use context from middleware stack in children
  125860. return obj.ID, nil
  125861. })
  125862. if err != nil {
  125863. ec.Error(ctx, err)
  125864. return graphql.Null
  125865. }
  125866. if resTmp == nil {
  125867. if !graphql.HasFieldError(ctx, fc) {
  125868. ec.Errorf(ctx, "must not be null")
  125869. }
  125870. return graphql.Null
  125871. }
  125872. res := resTmp.(string)
  125873. fc.Result = res
  125874. return ec.marshalNID2string(ctx, field.Selections, res)
  125875. }
  125876. func (ec *executionContext) fieldContext_StandardMetafieldDefinitionTemplate_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  125877. fc = &graphql.FieldContext{
  125878. Object: "StandardMetafieldDefinitionTemplate",
  125879. Field: field,
  125880. IsMethod: false,
  125881. IsResolver: false,
  125882. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  125883. return nil, errors.New("field of type ID does not have child fields")
  125884. },
  125885. }
  125886. return fc, nil
  125887. }
  125888. func (ec *executionContext) _StandardMetafieldDefinitionTemplate_key(ctx context.Context, field graphql.CollectedField, obj *StandardMetafieldDefinitionTemplate) (ret graphql.Marshaler) {
  125889. fc, err := ec.fieldContext_StandardMetafieldDefinitionTemplate_key(ctx, field)
  125890. if err != nil {
  125891. return graphql.Null
  125892. }
  125893. ctx = graphql.WithFieldContext(ctx, fc)
  125894. defer func() {
  125895. if r := recover(); r != nil {
  125896. ec.Error(ctx, ec.Recover(ctx, r))
  125897. ret = graphql.Null
  125898. }
  125899. }()
  125900. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  125901. ctx = rctx // use context from middleware stack in children
  125902. return obj.Key, nil
  125903. })
  125904. if err != nil {
  125905. ec.Error(ctx, err)
  125906. return graphql.Null
  125907. }
  125908. if resTmp == nil {
  125909. if !graphql.HasFieldError(ctx, fc) {
  125910. ec.Errorf(ctx, "must not be null")
  125911. }
  125912. return graphql.Null
  125913. }
  125914. res := resTmp.(string)
  125915. fc.Result = res
  125916. return ec.marshalNString2string(ctx, field.Selections, res)
  125917. }
  125918. func (ec *executionContext) fieldContext_StandardMetafieldDefinitionTemplate_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  125919. fc = &graphql.FieldContext{
  125920. Object: "StandardMetafieldDefinitionTemplate",
  125921. Field: field,
  125922. IsMethod: false,
  125923. IsResolver: false,
  125924. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  125925. return nil, errors.New("field of type String does not have child fields")
  125926. },
  125927. }
  125928. return fc, nil
  125929. }
  125930. func (ec *executionContext) _StandardMetafieldDefinitionTemplate_name(ctx context.Context, field graphql.CollectedField, obj *StandardMetafieldDefinitionTemplate) (ret graphql.Marshaler) {
  125931. fc, err := ec.fieldContext_StandardMetafieldDefinitionTemplate_name(ctx, field)
  125932. if err != nil {
  125933. return graphql.Null
  125934. }
  125935. ctx = graphql.WithFieldContext(ctx, fc)
  125936. defer func() {
  125937. if r := recover(); r != nil {
  125938. ec.Error(ctx, ec.Recover(ctx, r))
  125939. ret = graphql.Null
  125940. }
  125941. }()
  125942. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  125943. ctx = rctx // use context from middleware stack in children
  125944. return obj.Name, nil
  125945. })
  125946. if err != nil {
  125947. ec.Error(ctx, err)
  125948. return graphql.Null
  125949. }
  125950. if resTmp == nil {
  125951. if !graphql.HasFieldError(ctx, fc) {
  125952. ec.Errorf(ctx, "must not be null")
  125953. }
  125954. return graphql.Null
  125955. }
  125956. res := resTmp.(string)
  125957. fc.Result = res
  125958. return ec.marshalNString2string(ctx, field.Selections, res)
  125959. }
  125960. func (ec *executionContext) fieldContext_StandardMetafieldDefinitionTemplate_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  125961. fc = &graphql.FieldContext{
  125962. Object: "StandardMetafieldDefinitionTemplate",
  125963. Field: field,
  125964. IsMethod: false,
  125965. IsResolver: false,
  125966. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  125967. return nil, errors.New("field of type String does not have child fields")
  125968. },
  125969. }
  125970. return fc, nil
  125971. }
  125972. func (ec *executionContext) _StandardMetafieldDefinitionTemplate_namespace(ctx context.Context, field graphql.CollectedField, obj *StandardMetafieldDefinitionTemplate) (ret graphql.Marshaler) {
  125973. fc, err := ec.fieldContext_StandardMetafieldDefinitionTemplate_namespace(ctx, field)
  125974. if err != nil {
  125975. return graphql.Null
  125976. }
  125977. ctx = graphql.WithFieldContext(ctx, fc)
  125978. defer func() {
  125979. if r := recover(); r != nil {
  125980. ec.Error(ctx, ec.Recover(ctx, r))
  125981. ret = graphql.Null
  125982. }
  125983. }()
  125984. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  125985. ctx = rctx // use context from middleware stack in children
  125986. return obj.Namespace, nil
  125987. })
  125988. if err != nil {
  125989. ec.Error(ctx, err)
  125990. return graphql.Null
  125991. }
  125992. if resTmp == nil {
  125993. if !graphql.HasFieldError(ctx, fc) {
  125994. ec.Errorf(ctx, "must not be null")
  125995. }
  125996. return graphql.Null
  125997. }
  125998. res := resTmp.(string)
  125999. fc.Result = res
  126000. return ec.marshalNString2string(ctx, field.Selections, res)
  126001. }
  126002. func (ec *executionContext) fieldContext_StandardMetafieldDefinitionTemplate_namespace(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  126003. fc = &graphql.FieldContext{
  126004. Object: "StandardMetafieldDefinitionTemplate",
  126005. Field: field,
  126006. IsMethod: false,
  126007. IsResolver: false,
  126008. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  126009. return nil, errors.New("field of type String does not have child fields")
  126010. },
  126011. }
  126012. return fc, nil
  126013. }
  126014. func (ec *executionContext) _StandardMetafieldDefinitionTemplate_ownerTypes(ctx context.Context, field graphql.CollectedField, obj *StandardMetafieldDefinitionTemplate) (ret graphql.Marshaler) {
  126015. fc, err := ec.fieldContext_StandardMetafieldDefinitionTemplate_ownerTypes(ctx, field)
  126016. if err != nil {
  126017. return graphql.Null
  126018. }
  126019. ctx = graphql.WithFieldContext(ctx, fc)
  126020. defer func() {
  126021. if r := recover(); r != nil {
  126022. ec.Error(ctx, ec.Recover(ctx, r))
  126023. ret = graphql.Null
  126024. }
  126025. }()
  126026. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  126027. ctx = rctx // use context from middleware stack in children
  126028. return obj.OwnerTypes, nil
  126029. })
  126030. if err != nil {
  126031. ec.Error(ctx, err)
  126032. return graphql.Null
  126033. }
  126034. if resTmp == nil {
  126035. if !graphql.HasFieldError(ctx, fc) {
  126036. ec.Errorf(ctx, "must not be null")
  126037. }
  126038. return graphql.Null
  126039. }
  126040. res := resTmp.([]MetafieldOwnerType)
  126041. fc.Result = res
  126042. return ec.marshalNMetafieldOwnerType2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldOwnerTypeᚄ(ctx, field.Selections, res)
  126043. }
  126044. func (ec *executionContext) fieldContext_StandardMetafieldDefinitionTemplate_ownerTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  126045. fc = &graphql.FieldContext{
  126046. Object: "StandardMetafieldDefinitionTemplate",
  126047. Field: field,
  126048. IsMethod: false,
  126049. IsResolver: false,
  126050. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  126051. return nil, errors.New("field of type MetafieldOwnerType does not have child fields")
  126052. },
  126053. }
  126054. return fc, nil
  126055. }
  126056. func (ec *executionContext) _StandardMetafieldDefinitionTemplate_type(ctx context.Context, field graphql.CollectedField, obj *StandardMetafieldDefinitionTemplate) (ret graphql.Marshaler) {
  126057. fc, err := ec.fieldContext_StandardMetafieldDefinitionTemplate_type(ctx, field)
  126058. if err != nil {
  126059. return graphql.Null
  126060. }
  126061. ctx = graphql.WithFieldContext(ctx, fc)
  126062. defer func() {
  126063. if r := recover(); r != nil {
  126064. ec.Error(ctx, ec.Recover(ctx, r))
  126065. ret = graphql.Null
  126066. }
  126067. }()
  126068. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  126069. ctx = rctx // use context from middleware stack in children
  126070. return obj.Type, nil
  126071. })
  126072. if err != nil {
  126073. ec.Error(ctx, err)
  126074. return graphql.Null
  126075. }
  126076. if resTmp == nil {
  126077. if !graphql.HasFieldError(ctx, fc) {
  126078. ec.Errorf(ctx, "must not be null")
  126079. }
  126080. return graphql.Null
  126081. }
  126082. res := resTmp.(*MetafieldDefinitionType)
  126083. fc.Result = res
  126084. return ec.marshalNMetafieldDefinitionType2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionType(ctx, field.Selections, res)
  126085. }
  126086. func (ec *executionContext) fieldContext_StandardMetafieldDefinitionTemplate_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  126087. fc = &graphql.FieldContext{
  126088. Object: "StandardMetafieldDefinitionTemplate",
  126089. Field: field,
  126090. IsMethod: false,
  126091. IsResolver: false,
  126092. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  126093. switch field.Name {
  126094. case "category":
  126095. return ec.fieldContext_MetafieldDefinitionType_category(ctx, field)
  126096. case "name":
  126097. return ec.fieldContext_MetafieldDefinitionType_name(ctx, field)
  126098. case "supportedValidations":
  126099. return ec.fieldContext_MetafieldDefinitionType_supportedValidations(ctx, field)
  126100. case "supportsDefinitionMigrations":
  126101. return ec.fieldContext_MetafieldDefinitionType_supportsDefinitionMigrations(ctx, field)
  126102. }
  126103. return nil, fmt.Errorf("no field named %q was found under type MetafieldDefinitionType", field.Name)
  126104. },
  126105. }
  126106. return fc, nil
  126107. }
  126108. func (ec *executionContext) _StandardMetafieldDefinitionTemplate_validations(ctx context.Context, field graphql.CollectedField, obj *StandardMetafieldDefinitionTemplate) (ret graphql.Marshaler) {
  126109. fc, err := ec.fieldContext_StandardMetafieldDefinitionTemplate_validations(ctx, field)
  126110. if err != nil {
  126111. return graphql.Null
  126112. }
  126113. ctx = graphql.WithFieldContext(ctx, fc)
  126114. defer func() {
  126115. if r := recover(); r != nil {
  126116. ec.Error(ctx, ec.Recover(ctx, r))
  126117. ret = graphql.Null
  126118. }
  126119. }()
  126120. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  126121. ctx = rctx // use context from middleware stack in children
  126122. return obj.Validations, nil
  126123. })
  126124. if err != nil {
  126125. ec.Error(ctx, err)
  126126. return graphql.Null
  126127. }
  126128. if resTmp == nil {
  126129. if !graphql.HasFieldError(ctx, fc) {
  126130. ec.Errorf(ctx, "must not be null")
  126131. }
  126132. return graphql.Null
  126133. }
  126134. res := resTmp.([]*MetafieldDefinitionValidation)
  126135. fc.Result = res
  126136. return ec.marshalNMetafieldDefinitionValidation2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionValidationᚄ(ctx, field.Selections, res)
  126137. }
  126138. func (ec *executionContext) fieldContext_StandardMetafieldDefinitionTemplate_validations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  126139. fc = &graphql.FieldContext{
  126140. Object: "StandardMetafieldDefinitionTemplate",
  126141. Field: field,
  126142. IsMethod: false,
  126143. IsResolver: false,
  126144. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  126145. switch field.Name {
  126146. case "name":
  126147. return ec.fieldContext_MetafieldDefinitionValidation_name(ctx, field)
  126148. case "type":
  126149. return ec.fieldContext_MetafieldDefinitionValidation_type(ctx, field)
  126150. case "value":
  126151. return ec.fieldContext_MetafieldDefinitionValidation_value(ctx, field)
  126152. }
  126153. return nil, fmt.Errorf("no field named %q was found under type MetafieldDefinitionValidation", field.Name)
  126154. },
  126155. }
  126156. return fc, nil
  126157. }
  126158. func (ec *executionContext) _StandardMetafieldDefinitionTemplate_visibleToStorefrontApi(ctx context.Context, field graphql.CollectedField, obj *StandardMetafieldDefinitionTemplate) (ret graphql.Marshaler) {
  126159. fc, err := ec.fieldContext_StandardMetafieldDefinitionTemplate_visibleToStorefrontApi(ctx, field)
  126160. if err != nil {
  126161. return graphql.Null
  126162. }
  126163. ctx = graphql.WithFieldContext(ctx, fc)
  126164. defer func() {
  126165. if r := recover(); r != nil {
  126166. ec.Error(ctx, ec.Recover(ctx, r))
  126167. ret = graphql.Null
  126168. }
  126169. }()
  126170. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  126171. ctx = rctx // use context from middleware stack in children
  126172. return obj.VisibleToStorefrontAPI, nil
  126173. })
  126174. if err != nil {
  126175. ec.Error(ctx, err)
  126176. return graphql.Null
  126177. }
  126178. if resTmp == nil {
  126179. if !graphql.HasFieldError(ctx, fc) {
  126180. ec.Errorf(ctx, "must not be null")
  126181. }
  126182. return graphql.Null
  126183. }
  126184. res := resTmp.(bool)
  126185. fc.Result = res
  126186. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  126187. }
  126188. func (ec *executionContext) fieldContext_StandardMetafieldDefinitionTemplate_visibleToStorefrontApi(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  126189. fc = &graphql.FieldContext{
  126190. Object: "StandardMetafieldDefinitionTemplate",
  126191. Field: field,
  126192. IsMethod: false,
  126193. IsResolver: false,
  126194. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  126195. return nil, errors.New("field of type Boolean does not have child fields")
  126196. },
  126197. }
  126198. return fc, nil
  126199. }
  126200. func (ec *executionContext) _StorefrontAccessToken_accessScopes(ctx context.Context, field graphql.CollectedField, obj *StorefrontAccessToken) (ret graphql.Marshaler) {
  126201. fc, err := ec.fieldContext_StorefrontAccessToken_accessScopes(ctx, field)
  126202. if err != nil {
  126203. return graphql.Null
  126204. }
  126205. ctx = graphql.WithFieldContext(ctx, fc)
  126206. defer func() {
  126207. if r := recover(); r != nil {
  126208. ec.Error(ctx, ec.Recover(ctx, r))
  126209. ret = graphql.Null
  126210. }
  126211. }()
  126212. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  126213. ctx = rctx // use context from middleware stack in children
  126214. return obj.AccessScopes, nil
  126215. })
  126216. if err != nil {
  126217. ec.Error(ctx, err)
  126218. return graphql.Null
  126219. }
  126220. if resTmp == nil {
  126221. if !graphql.HasFieldError(ctx, fc) {
  126222. ec.Errorf(ctx, "must not be null")
  126223. }
  126224. return graphql.Null
  126225. }
  126226. res := resTmp.([]*AccessScope)
  126227. fc.Result = res
  126228. return ec.marshalNAccessScope2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAccessScopeᚄ(ctx, field.Selections, res)
  126229. }
  126230. func (ec *executionContext) fieldContext_StorefrontAccessToken_accessScopes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  126231. fc = &graphql.FieldContext{
  126232. Object: "StorefrontAccessToken",
  126233. Field: field,
  126234. IsMethod: false,
  126235. IsResolver: false,
  126236. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  126237. switch field.Name {
  126238. case "description":
  126239. return ec.fieldContext_AccessScope_description(ctx, field)
  126240. case "handle":
  126241. return ec.fieldContext_AccessScope_handle(ctx, field)
  126242. }
  126243. return nil, fmt.Errorf("no field named %q was found under type AccessScope", field.Name)
  126244. },
  126245. }
  126246. return fc, nil
  126247. }
  126248. func (ec *executionContext) _StorefrontAccessToken_accessToken(ctx context.Context, field graphql.CollectedField, obj *StorefrontAccessToken) (ret graphql.Marshaler) {
  126249. fc, err := ec.fieldContext_StorefrontAccessToken_accessToken(ctx, field)
  126250. if err != nil {
  126251. return graphql.Null
  126252. }
  126253. ctx = graphql.WithFieldContext(ctx, fc)
  126254. defer func() {
  126255. if r := recover(); r != nil {
  126256. ec.Error(ctx, ec.Recover(ctx, r))
  126257. ret = graphql.Null
  126258. }
  126259. }()
  126260. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  126261. ctx = rctx // use context from middleware stack in children
  126262. return obj.AccessToken, nil
  126263. })
  126264. if err != nil {
  126265. ec.Error(ctx, err)
  126266. return graphql.Null
  126267. }
  126268. if resTmp == nil {
  126269. if !graphql.HasFieldError(ctx, fc) {
  126270. ec.Errorf(ctx, "must not be null")
  126271. }
  126272. return graphql.Null
  126273. }
  126274. res := resTmp.(string)
  126275. fc.Result = res
  126276. return ec.marshalNString2string(ctx, field.Selections, res)
  126277. }
  126278. func (ec *executionContext) fieldContext_StorefrontAccessToken_accessToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  126279. fc = &graphql.FieldContext{
  126280. Object: "StorefrontAccessToken",
  126281. Field: field,
  126282. IsMethod: false,
  126283. IsResolver: false,
  126284. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  126285. return nil, errors.New("field of type String does not have child fields")
  126286. },
  126287. }
  126288. return fc, nil
  126289. }
  126290. func (ec *executionContext) _StorefrontAccessToken_createdAt(ctx context.Context, field graphql.CollectedField, obj *StorefrontAccessToken) (ret graphql.Marshaler) {
  126291. fc, err := ec.fieldContext_StorefrontAccessToken_createdAt(ctx, field)
  126292. if err != nil {
  126293. return graphql.Null
  126294. }
  126295. ctx = graphql.WithFieldContext(ctx, fc)
  126296. defer func() {
  126297. if r := recover(); r != nil {
  126298. ec.Error(ctx, ec.Recover(ctx, r))
  126299. ret = graphql.Null
  126300. }
  126301. }()
  126302. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  126303. ctx = rctx // use context from middleware stack in children
  126304. return obj.CreatedAt, nil
  126305. })
  126306. if err != nil {
  126307. ec.Error(ctx, err)
  126308. return graphql.Null
  126309. }
  126310. if resTmp == nil {
  126311. if !graphql.HasFieldError(ctx, fc) {
  126312. ec.Errorf(ctx, "must not be null")
  126313. }
  126314. return graphql.Null
  126315. }
  126316. res := resTmp.(string)
  126317. fc.Result = res
  126318. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  126319. }
  126320. func (ec *executionContext) fieldContext_StorefrontAccessToken_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  126321. fc = &graphql.FieldContext{
  126322. Object: "StorefrontAccessToken",
  126323. Field: field,
  126324. IsMethod: false,
  126325. IsResolver: false,
  126326. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  126327. return nil, errors.New("field of type DateTime does not have child fields")
  126328. },
  126329. }
  126330. return fc, nil
  126331. }
  126332. func (ec *executionContext) _StorefrontAccessToken_id(ctx context.Context, field graphql.CollectedField, obj *StorefrontAccessToken) (ret graphql.Marshaler) {
  126333. fc, err := ec.fieldContext_StorefrontAccessToken_id(ctx, field)
  126334. if err != nil {
  126335. return graphql.Null
  126336. }
  126337. ctx = graphql.WithFieldContext(ctx, fc)
  126338. defer func() {
  126339. if r := recover(); r != nil {
  126340. ec.Error(ctx, ec.Recover(ctx, r))
  126341. ret = graphql.Null
  126342. }
  126343. }()
  126344. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  126345. ctx = rctx // use context from middleware stack in children
  126346. return obj.ID, nil
  126347. })
  126348. if err != nil {
  126349. ec.Error(ctx, err)
  126350. return graphql.Null
  126351. }
  126352. if resTmp == nil {
  126353. if !graphql.HasFieldError(ctx, fc) {
  126354. ec.Errorf(ctx, "must not be null")
  126355. }
  126356. return graphql.Null
  126357. }
  126358. res := resTmp.(string)
  126359. fc.Result = res
  126360. return ec.marshalNID2string(ctx, field.Selections, res)
  126361. }
  126362. func (ec *executionContext) fieldContext_StorefrontAccessToken_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  126363. fc = &graphql.FieldContext{
  126364. Object: "StorefrontAccessToken",
  126365. Field: field,
  126366. IsMethod: false,
  126367. IsResolver: false,
  126368. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  126369. return nil, errors.New("field of type ID does not have child fields")
  126370. },
  126371. }
  126372. return fc, nil
  126373. }
  126374. func (ec *executionContext) _StorefrontAccessToken_title(ctx context.Context, field graphql.CollectedField, obj *StorefrontAccessToken) (ret graphql.Marshaler) {
  126375. fc, err := ec.fieldContext_StorefrontAccessToken_title(ctx, field)
  126376. if err != nil {
  126377. return graphql.Null
  126378. }
  126379. ctx = graphql.WithFieldContext(ctx, fc)
  126380. defer func() {
  126381. if r := recover(); r != nil {
  126382. ec.Error(ctx, ec.Recover(ctx, r))
  126383. ret = graphql.Null
  126384. }
  126385. }()
  126386. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  126387. ctx = rctx // use context from middleware stack in children
  126388. return obj.Title, nil
  126389. })
  126390. if err != nil {
  126391. ec.Error(ctx, err)
  126392. return graphql.Null
  126393. }
  126394. if resTmp == nil {
  126395. if !graphql.HasFieldError(ctx, fc) {
  126396. ec.Errorf(ctx, "must not be null")
  126397. }
  126398. return graphql.Null
  126399. }
  126400. res := resTmp.(string)
  126401. fc.Result = res
  126402. return ec.marshalNString2string(ctx, field.Selections, res)
  126403. }
  126404. func (ec *executionContext) fieldContext_StorefrontAccessToken_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  126405. fc = &graphql.FieldContext{
  126406. Object: "StorefrontAccessToken",
  126407. Field: field,
  126408. IsMethod: false,
  126409. IsResolver: false,
  126410. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  126411. return nil, errors.New("field of type String does not have child fields")
  126412. },
  126413. }
  126414. return fc, nil
  126415. }
  126416. func (ec *executionContext) _StorefrontAccessToken_updatedAt(ctx context.Context, field graphql.CollectedField, obj *StorefrontAccessToken) (ret graphql.Marshaler) {
  126417. fc, err := ec.fieldContext_StorefrontAccessToken_updatedAt(ctx, field)
  126418. if err != nil {
  126419. return graphql.Null
  126420. }
  126421. ctx = graphql.WithFieldContext(ctx, fc)
  126422. defer func() {
  126423. if r := recover(); r != nil {
  126424. ec.Error(ctx, ec.Recover(ctx, r))
  126425. ret = graphql.Null
  126426. }
  126427. }()
  126428. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  126429. ctx = rctx // use context from middleware stack in children
  126430. return obj.UpdatedAt, nil
  126431. })
  126432. if err != nil {
  126433. ec.Error(ctx, err)
  126434. return graphql.Null
  126435. }
  126436. if resTmp == nil {
  126437. if !graphql.HasFieldError(ctx, fc) {
  126438. ec.Errorf(ctx, "must not be null")
  126439. }
  126440. return graphql.Null
  126441. }
  126442. res := resTmp.(string)
  126443. fc.Result = res
  126444. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  126445. }
  126446. func (ec *executionContext) fieldContext_StorefrontAccessToken_updatedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  126447. fc = &graphql.FieldContext{
  126448. Object: "StorefrontAccessToken",
  126449. Field: field,
  126450. IsMethod: false,
  126451. IsResolver: false,
  126452. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  126453. return nil, errors.New("field of type DateTime does not have child fields")
  126454. },
  126455. }
  126456. return fc, nil
  126457. }
  126458. func (ec *executionContext) _StorefrontAccessTokenConnection_edges(ctx context.Context, field graphql.CollectedField, obj *StorefrontAccessTokenConnection) (ret graphql.Marshaler) {
  126459. fc, err := ec.fieldContext_StorefrontAccessTokenConnection_edges(ctx, field)
  126460. if err != nil {
  126461. return graphql.Null
  126462. }
  126463. ctx = graphql.WithFieldContext(ctx, fc)
  126464. defer func() {
  126465. if r := recover(); r != nil {
  126466. ec.Error(ctx, ec.Recover(ctx, r))
  126467. ret = graphql.Null
  126468. }
  126469. }()
  126470. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  126471. ctx = rctx // use context from middleware stack in children
  126472. return obj.Edges, nil
  126473. })
  126474. if err != nil {
  126475. ec.Error(ctx, err)
  126476. return graphql.Null
  126477. }
  126478. if resTmp == nil {
  126479. if !graphql.HasFieldError(ctx, fc) {
  126480. ec.Errorf(ctx, "must not be null")
  126481. }
  126482. return graphql.Null
  126483. }
  126484. res := resTmp.([]*StorefrontAccessTokenEdge)
  126485. fc.Result = res
  126486. return ec.marshalNStorefrontAccessTokenEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStorefrontAccessTokenEdgeᚄ(ctx, field.Selections, res)
  126487. }
  126488. func (ec *executionContext) fieldContext_StorefrontAccessTokenConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  126489. fc = &graphql.FieldContext{
  126490. Object: "StorefrontAccessTokenConnection",
  126491. Field: field,
  126492. IsMethod: false,
  126493. IsResolver: false,
  126494. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  126495. switch field.Name {
  126496. case "cursor":
  126497. return ec.fieldContext_StorefrontAccessTokenEdge_cursor(ctx, field)
  126498. case "node":
  126499. return ec.fieldContext_StorefrontAccessTokenEdge_node(ctx, field)
  126500. }
  126501. return nil, fmt.Errorf("no field named %q was found under type StorefrontAccessTokenEdge", field.Name)
  126502. },
  126503. }
  126504. return fc, nil
  126505. }
  126506. func (ec *executionContext) _StorefrontAccessTokenConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *StorefrontAccessTokenConnection) (ret graphql.Marshaler) {
  126507. fc, err := ec.fieldContext_StorefrontAccessTokenConnection_nodes(ctx, field)
  126508. if err != nil {
  126509. return graphql.Null
  126510. }
  126511. ctx = graphql.WithFieldContext(ctx, fc)
  126512. defer func() {
  126513. if r := recover(); r != nil {
  126514. ec.Error(ctx, ec.Recover(ctx, r))
  126515. ret = graphql.Null
  126516. }
  126517. }()
  126518. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  126519. ctx = rctx // use context from middleware stack in children
  126520. return obj.Nodes, nil
  126521. })
  126522. if err != nil {
  126523. ec.Error(ctx, err)
  126524. return graphql.Null
  126525. }
  126526. if resTmp == nil {
  126527. if !graphql.HasFieldError(ctx, fc) {
  126528. ec.Errorf(ctx, "must not be null")
  126529. }
  126530. return graphql.Null
  126531. }
  126532. res := resTmp.([]*StorefrontAccessToken)
  126533. fc.Result = res
  126534. return ec.marshalNStorefrontAccessToken2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStorefrontAccessTokenᚄ(ctx, field.Selections, res)
  126535. }
  126536. func (ec *executionContext) fieldContext_StorefrontAccessTokenConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  126537. fc = &graphql.FieldContext{
  126538. Object: "StorefrontAccessTokenConnection",
  126539. Field: field,
  126540. IsMethod: false,
  126541. IsResolver: false,
  126542. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  126543. switch field.Name {
  126544. case "accessScopes":
  126545. return ec.fieldContext_StorefrontAccessToken_accessScopes(ctx, field)
  126546. case "accessToken":
  126547. return ec.fieldContext_StorefrontAccessToken_accessToken(ctx, field)
  126548. case "createdAt":
  126549. return ec.fieldContext_StorefrontAccessToken_createdAt(ctx, field)
  126550. case "id":
  126551. return ec.fieldContext_StorefrontAccessToken_id(ctx, field)
  126552. case "title":
  126553. return ec.fieldContext_StorefrontAccessToken_title(ctx, field)
  126554. case "updatedAt":
  126555. return ec.fieldContext_StorefrontAccessToken_updatedAt(ctx, field)
  126556. }
  126557. return nil, fmt.Errorf("no field named %q was found under type StorefrontAccessToken", field.Name)
  126558. },
  126559. }
  126560. return fc, nil
  126561. }
  126562. func (ec *executionContext) _StorefrontAccessTokenConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *StorefrontAccessTokenConnection) (ret graphql.Marshaler) {
  126563. fc, err := ec.fieldContext_StorefrontAccessTokenConnection_pageInfo(ctx, field)
  126564. if err != nil {
  126565. return graphql.Null
  126566. }
  126567. ctx = graphql.WithFieldContext(ctx, fc)
  126568. defer func() {
  126569. if r := recover(); r != nil {
  126570. ec.Error(ctx, ec.Recover(ctx, r))
  126571. ret = graphql.Null
  126572. }
  126573. }()
  126574. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  126575. ctx = rctx // use context from middleware stack in children
  126576. return obj.PageInfo, nil
  126577. })
  126578. if err != nil {
  126579. ec.Error(ctx, err)
  126580. return graphql.Null
  126581. }
  126582. if resTmp == nil {
  126583. if !graphql.HasFieldError(ctx, fc) {
  126584. ec.Errorf(ctx, "must not be null")
  126585. }
  126586. return graphql.Null
  126587. }
  126588. res := resTmp.(*PageInfo)
  126589. fc.Result = res
  126590. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  126591. }
  126592. func (ec *executionContext) fieldContext_StorefrontAccessTokenConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  126593. fc = &graphql.FieldContext{
  126594. Object: "StorefrontAccessTokenConnection",
  126595. Field: field,
  126596. IsMethod: false,
  126597. IsResolver: false,
  126598. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  126599. switch field.Name {
  126600. case "endCursor":
  126601. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  126602. case "hasNextPage":
  126603. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  126604. case "hasPreviousPage":
  126605. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  126606. case "startCursor":
  126607. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  126608. }
  126609. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  126610. },
  126611. }
  126612. return fc, nil
  126613. }
  126614. func (ec *executionContext) _StorefrontAccessTokenEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *StorefrontAccessTokenEdge) (ret graphql.Marshaler) {
  126615. fc, err := ec.fieldContext_StorefrontAccessTokenEdge_cursor(ctx, field)
  126616. if err != nil {
  126617. return graphql.Null
  126618. }
  126619. ctx = graphql.WithFieldContext(ctx, fc)
  126620. defer func() {
  126621. if r := recover(); r != nil {
  126622. ec.Error(ctx, ec.Recover(ctx, r))
  126623. ret = graphql.Null
  126624. }
  126625. }()
  126626. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  126627. ctx = rctx // use context from middleware stack in children
  126628. return obj.Cursor, nil
  126629. })
  126630. if err != nil {
  126631. ec.Error(ctx, err)
  126632. return graphql.Null
  126633. }
  126634. if resTmp == nil {
  126635. if !graphql.HasFieldError(ctx, fc) {
  126636. ec.Errorf(ctx, "must not be null")
  126637. }
  126638. return graphql.Null
  126639. }
  126640. res := resTmp.(string)
  126641. fc.Result = res
  126642. return ec.marshalNString2string(ctx, field.Selections, res)
  126643. }
  126644. func (ec *executionContext) fieldContext_StorefrontAccessTokenEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  126645. fc = &graphql.FieldContext{
  126646. Object: "StorefrontAccessTokenEdge",
  126647. Field: field,
  126648. IsMethod: false,
  126649. IsResolver: false,
  126650. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  126651. return nil, errors.New("field of type String does not have child fields")
  126652. },
  126653. }
  126654. return fc, nil
  126655. }
  126656. func (ec *executionContext) _StorefrontAccessTokenEdge_node(ctx context.Context, field graphql.CollectedField, obj *StorefrontAccessTokenEdge) (ret graphql.Marshaler) {
  126657. fc, err := ec.fieldContext_StorefrontAccessTokenEdge_node(ctx, field)
  126658. if err != nil {
  126659. return graphql.Null
  126660. }
  126661. ctx = graphql.WithFieldContext(ctx, fc)
  126662. defer func() {
  126663. if r := recover(); r != nil {
  126664. ec.Error(ctx, ec.Recover(ctx, r))
  126665. ret = graphql.Null
  126666. }
  126667. }()
  126668. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  126669. ctx = rctx // use context from middleware stack in children
  126670. return obj.Node, nil
  126671. })
  126672. if err != nil {
  126673. ec.Error(ctx, err)
  126674. return graphql.Null
  126675. }
  126676. if resTmp == nil {
  126677. if !graphql.HasFieldError(ctx, fc) {
  126678. ec.Errorf(ctx, "must not be null")
  126679. }
  126680. return graphql.Null
  126681. }
  126682. res := resTmp.(*StorefrontAccessToken)
  126683. fc.Result = res
  126684. return ec.marshalNStorefrontAccessToken2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStorefrontAccessToken(ctx, field.Selections, res)
  126685. }
  126686. func (ec *executionContext) fieldContext_StorefrontAccessTokenEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  126687. fc = &graphql.FieldContext{
  126688. Object: "StorefrontAccessTokenEdge",
  126689. Field: field,
  126690. IsMethod: false,
  126691. IsResolver: false,
  126692. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  126693. switch field.Name {
  126694. case "accessScopes":
  126695. return ec.fieldContext_StorefrontAccessToken_accessScopes(ctx, field)
  126696. case "accessToken":
  126697. return ec.fieldContext_StorefrontAccessToken_accessToken(ctx, field)
  126698. case "createdAt":
  126699. return ec.fieldContext_StorefrontAccessToken_createdAt(ctx, field)
  126700. case "id":
  126701. return ec.fieldContext_StorefrontAccessToken_id(ctx, field)
  126702. case "title":
  126703. return ec.fieldContext_StorefrontAccessToken_title(ctx, field)
  126704. case "updatedAt":
  126705. return ec.fieldContext_StorefrontAccessToken_updatedAt(ctx, field)
  126706. }
  126707. return nil, fmt.Errorf("no field named %q was found under type StorefrontAccessToken", field.Name)
  126708. },
  126709. }
  126710. return fc, nil
  126711. }
  126712. func (ec *executionContext) _StringConnection_edges(ctx context.Context, field graphql.CollectedField, obj *StringConnection) (ret graphql.Marshaler) {
  126713. fc, err := ec.fieldContext_StringConnection_edges(ctx, field)
  126714. if err != nil {
  126715. return graphql.Null
  126716. }
  126717. ctx = graphql.WithFieldContext(ctx, fc)
  126718. defer func() {
  126719. if r := recover(); r != nil {
  126720. ec.Error(ctx, ec.Recover(ctx, r))
  126721. ret = graphql.Null
  126722. }
  126723. }()
  126724. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  126725. ctx = rctx // use context from middleware stack in children
  126726. return obj.Edges, nil
  126727. })
  126728. if err != nil {
  126729. ec.Error(ctx, err)
  126730. return graphql.Null
  126731. }
  126732. if resTmp == nil {
  126733. if !graphql.HasFieldError(ctx, fc) {
  126734. ec.Errorf(ctx, "must not be null")
  126735. }
  126736. return graphql.Null
  126737. }
  126738. res := resTmp.([]*StringEdge)
  126739. fc.Result = res
  126740. return ec.marshalNStringEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStringEdgeᚄ(ctx, field.Selections, res)
  126741. }
  126742. func (ec *executionContext) fieldContext_StringConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  126743. fc = &graphql.FieldContext{
  126744. Object: "StringConnection",
  126745. Field: field,
  126746. IsMethod: false,
  126747. IsResolver: false,
  126748. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  126749. switch field.Name {
  126750. case "cursor":
  126751. return ec.fieldContext_StringEdge_cursor(ctx, field)
  126752. case "node":
  126753. return ec.fieldContext_StringEdge_node(ctx, field)
  126754. }
  126755. return nil, fmt.Errorf("no field named %q was found under type StringEdge", field.Name)
  126756. },
  126757. }
  126758. return fc, nil
  126759. }
  126760. func (ec *executionContext) _StringConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *StringConnection) (ret graphql.Marshaler) {
  126761. fc, err := ec.fieldContext_StringConnection_pageInfo(ctx, field)
  126762. if err != nil {
  126763. return graphql.Null
  126764. }
  126765. ctx = graphql.WithFieldContext(ctx, fc)
  126766. defer func() {
  126767. if r := recover(); r != nil {
  126768. ec.Error(ctx, ec.Recover(ctx, r))
  126769. ret = graphql.Null
  126770. }
  126771. }()
  126772. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  126773. ctx = rctx // use context from middleware stack in children
  126774. return obj.PageInfo, nil
  126775. })
  126776. if err != nil {
  126777. ec.Error(ctx, err)
  126778. return graphql.Null
  126779. }
  126780. if resTmp == nil {
  126781. if !graphql.HasFieldError(ctx, fc) {
  126782. ec.Errorf(ctx, "must not be null")
  126783. }
  126784. return graphql.Null
  126785. }
  126786. res := resTmp.(*PageInfo)
  126787. fc.Result = res
  126788. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  126789. }
  126790. func (ec *executionContext) fieldContext_StringConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  126791. fc = &graphql.FieldContext{
  126792. Object: "StringConnection",
  126793. Field: field,
  126794. IsMethod: false,
  126795. IsResolver: false,
  126796. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  126797. switch field.Name {
  126798. case "endCursor":
  126799. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  126800. case "hasNextPage":
  126801. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  126802. case "hasPreviousPage":
  126803. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  126804. case "startCursor":
  126805. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  126806. }
  126807. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  126808. },
  126809. }
  126810. return fc, nil
  126811. }
  126812. func (ec *executionContext) _StringEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *StringEdge) (ret graphql.Marshaler) {
  126813. fc, err := ec.fieldContext_StringEdge_cursor(ctx, field)
  126814. if err != nil {
  126815. return graphql.Null
  126816. }
  126817. ctx = graphql.WithFieldContext(ctx, fc)
  126818. defer func() {
  126819. if r := recover(); r != nil {
  126820. ec.Error(ctx, ec.Recover(ctx, r))
  126821. ret = graphql.Null
  126822. }
  126823. }()
  126824. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  126825. ctx = rctx // use context from middleware stack in children
  126826. return obj.Cursor, nil
  126827. })
  126828. if err != nil {
  126829. ec.Error(ctx, err)
  126830. return graphql.Null
  126831. }
  126832. if resTmp == nil {
  126833. if !graphql.HasFieldError(ctx, fc) {
  126834. ec.Errorf(ctx, "must not be null")
  126835. }
  126836. return graphql.Null
  126837. }
  126838. res := resTmp.(string)
  126839. fc.Result = res
  126840. return ec.marshalNString2string(ctx, field.Selections, res)
  126841. }
  126842. func (ec *executionContext) fieldContext_StringEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  126843. fc = &graphql.FieldContext{
  126844. Object: "StringEdge",
  126845. Field: field,
  126846. IsMethod: false,
  126847. IsResolver: false,
  126848. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  126849. return nil, errors.New("field of type String does not have child fields")
  126850. },
  126851. }
  126852. return fc, nil
  126853. }
  126854. func (ec *executionContext) _StringEdge_node(ctx context.Context, field graphql.CollectedField, obj *StringEdge) (ret graphql.Marshaler) {
  126855. fc, err := ec.fieldContext_StringEdge_node(ctx, field)
  126856. if err != nil {
  126857. return graphql.Null
  126858. }
  126859. ctx = graphql.WithFieldContext(ctx, fc)
  126860. defer func() {
  126861. if r := recover(); r != nil {
  126862. ec.Error(ctx, ec.Recover(ctx, r))
  126863. ret = graphql.Null
  126864. }
  126865. }()
  126866. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  126867. ctx = rctx // use context from middleware stack in children
  126868. return obj.Node, nil
  126869. })
  126870. if err != nil {
  126871. ec.Error(ctx, err)
  126872. return graphql.Null
  126873. }
  126874. if resTmp == nil {
  126875. if !graphql.HasFieldError(ctx, fc) {
  126876. ec.Errorf(ctx, "must not be null")
  126877. }
  126878. return graphql.Null
  126879. }
  126880. res := resTmp.(string)
  126881. fc.Result = res
  126882. return ec.marshalNString2string(ctx, field.Selections, res)
  126883. }
  126884. func (ec *executionContext) fieldContext_StringEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  126885. fc = &graphql.FieldContext{
  126886. Object: "StringEdge",
  126887. Field: field,
  126888. IsMethod: false,
  126889. IsResolver: false,
  126890. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  126891. return nil, errors.New("field of type String does not have child fields")
  126892. },
  126893. }
  126894. return fc, nil
  126895. }
  126896. func (ec *executionContext) _SubscriptionAppliedCodeDiscount_id(ctx context.Context, field graphql.CollectedField, obj *SubscriptionAppliedCodeDiscount) (ret graphql.Marshaler) {
  126897. fc, err := ec.fieldContext_SubscriptionAppliedCodeDiscount_id(ctx, field)
  126898. if err != nil {
  126899. return graphql.Null
  126900. }
  126901. ctx = graphql.WithFieldContext(ctx, fc)
  126902. defer func() {
  126903. if r := recover(); r != nil {
  126904. ec.Error(ctx, ec.Recover(ctx, r))
  126905. ret = graphql.Null
  126906. }
  126907. }()
  126908. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  126909. ctx = rctx // use context from middleware stack in children
  126910. return obj.ID, nil
  126911. })
  126912. if err != nil {
  126913. ec.Error(ctx, err)
  126914. return graphql.Null
  126915. }
  126916. if resTmp == nil {
  126917. if !graphql.HasFieldError(ctx, fc) {
  126918. ec.Errorf(ctx, "must not be null")
  126919. }
  126920. return graphql.Null
  126921. }
  126922. res := resTmp.(string)
  126923. fc.Result = res
  126924. return ec.marshalNID2string(ctx, field.Selections, res)
  126925. }
  126926. func (ec *executionContext) fieldContext_SubscriptionAppliedCodeDiscount_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  126927. fc = &graphql.FieldContext{
  126928. Object: "SubscriptionAppliedCodeDiscount",
  126929. Field: field,
  126930. IsMethod: false,
  126931. IsResolver: false,
  126932. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  126933. return nil, errors.New("field of type ID does not have child fields")
  126934. },
  126935. }
  126936. return fc, nil
  126937. }
  126938. func (ec *executionContext) _SubscriptionAppliedCodeDiscount_redeemCode(ctx context.Context, field graphql.CollectedField, obj *SubscriptionAppliedCodeDiscount) (ret graphql.Marshaler) {
  126939. fc, err := ec.fieldContext_SubscriptionAppliedCodeDiscount_redeemCode(ctx, field)
  126940. if err != nil {
  126941. return graphql.Null
  126942. }
  126943. ctx = graphql.WithFieldContext(ctx, fc)
  126944. defer func() {
  126945. if r := recover(); r != nil {
  126946. ec.Error(ctx, ec.Recover(ctx, r))
  126947. ret = graphql.Null
  126948. }
  126949. }()
  126950. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  126951. ctx = rctx // use context from middleware stack in children
  126952. return obj.RedeemCode, nil
  126953. })
  126954. if err != nil {
  126955. ec.Error(ctx, err)
  126956. return graphql.Null
  126957. }
  126958. if resTmp == nil {
  126959. if !graphql.HasFieldError(ctx, fc) {
  126960. ec.Errorf(ctx, "must not be null")
  126961. }
  126962. return graphql.Null
  126963. }
  126964. res := resTmp.(string)
  126965. fc.Result = res
  126966. return ec.marshalNString2string(ctx, field.Selections, res)
  126967. }
  126968. func (ec *executionContext) fieldContext_SubscriptionAppliedCodeDiscount_redeemCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  126969. fc = &graphql.FieldContext{
  126970. Object: "SubscriptionAppliedCodeDiscount",
  126971. Field: field,
  126972. IsMethod: false,
  126973. IsResolver: false,
  126974. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  126975. return nil, errors.New("field of type String does not have child fields")
  126976. },
  126977. }
  126978. return fc, nil
  126979. }
  126980. func (ec *executionContext) _SubscriptionAppliedCodeDiscount_rejectionReason(ctx context.Context, field graphql.CollectedField, obj *SubscriptionAppliedCodeDiscount) (ret graphql.Marshaler) {
  126981. fc, err := ec.fieldContext_SubscriptionAppliedCodeDiscount_rejectionReason(ctx, field)
  126982. if err != nil {
  126983. return graphql.Null
  126984. }
  126985. ctx = graphql.WithFieldContext(ctx, fc)
  126986. defer func() {
  126987. if r := recover(); r != nil {
  126988. ec.Error(ctx, ec.Recover(ctx, r))
  126989. ret = graphql.Null
  126990. }
  126991. }()
  126992. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  126993. ctx = rctx // use context from middleware stack in children
  126994. return obj.RejectionReason, nil
  126995. })
  126996. if err != nil {
  126997. ec.Error(ctx, err)
  126998. return graphql.Null
  126999. }
  127000. if resTmp == nil {
  127001. return graphql.Null
  127002. }
  127003. res := resTmp.(*SubscriptionDiscountRejectionReason)
  127004. fc.Result = res
  127005. return ec.marshalOSubscriptionDiscountRejectionReason2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionDiscountRejectionReason(ctx, field.Selections, res)
  127006. }
  127007. func (ec *executionContext) fieldContext_SubscriptionAppliedCodeDiscount_rejectionReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  127008. fc = &graphql.FieldContext{
  127009. Object: "SubscriptionAppliedCodeDiscount",
  127010. Field: field,
  127011. IsMethod: false,
  127012. IsResolver: false,
  127013. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  127014. return nil, errors.New("field of type SubscriptionDiscountRejectionReason does not have child fields")
  127015. },
  127016. }
  127017. return fc, nil
  127018. }
  127019. func (ec *executionContext) _SubscriptionBillingAttempt_completedAt(ctx context.Context, field graphql.CollectedField, obj *SubscriptionBillingAttempt) (ret graphql.Marshaler) {
  127020. fc, err := ec.fieldContext_SubscriptionBillingAttempt_completedAt(ctx, field)
  127021. if err != nil {
  127022. return graphql.Null
  127023. }
  127024. ctx = graphql.WithFieldContext(ctx, fc)
  127025. defer func() {
  127026. if r := recover(); r != nil {
  127027. ec.Error(ctx, ec.Recover(ctx, r))
  127028. ret = graphql.Null
  127029. }
  127030. }()
  127031. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  127032. ctx = rctx // use context from middleware stack in children
  127033. return obj.CompletedAt, nil
  127034. })
  127035. if err != nil {
  127036. ec.Error(ctx, err)
  127037. return graphql.Null
  127038. }
  127039. if resTmp == nil {
  127040. return graphql.Null
  127041. }
  127042. res := resTmp.(*string)
  127043. fc.Result = res
  127044. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  127045. }
  127046. func (ec *executionContext) fieldContext_SubscriptionBillingAttempt_completedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  127047. fc = &graphql.FieldContext{
  127048. Object: "SubscriptionBillingAttempt",
  127049. Field: field,
  127050. IsMethod: false,
  127051. IsResolver: false,
  127052. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  127053. return nil, errors.New("field of type DateTime does not have child fields")
  127054. },
  127055. }
  127056. return fc, nil
  127057. }
  127058. func (ec *executionContext) _SubscriptionBillingAttempt_createdAt(ctx context.Context, field graphql.CollectedField, obj *SubscriptionBillingAttempt) (ret graphql.Marshaler) {
  127059. fc, err := ec.fieldContext_SubscriptionBillingAttempt_createdAt(ctx, field)
  127060. if err != nil {
  127061. return graphql.Null
  127062. }
  127063. ctx = graphql.WithFieldContext(ctx, fc)
  127064. defer func() {
  127065. if r := recover(); r != nil {
  127066. ec.Error(ctx, ec.Recover(ctx, r))
  127067. ret = graphql.Null
  127068. }
  127069. }()
  127070. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  127071. ctx = rctx // use context from middleware stack in children
  127072. return obj.CreatedAt, nil
  127073. })
  127074. if err != nil {
  127075. ec.Error(ctx, err)
  127076. return graphql.Null
  127077. }
  127078. if resTmp == nil {
  127079. if !graphql.HasFieldError(ctx, fc) {
  127080. ec.Errorf(ctx, "must not be null")
  127081. }
  127082. return graphql.Null
  127083. }
  127084. res := resTmp.(string)
  127085. fc.Result = res
  127086. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  127087. }
  127088. func (ec *executionContext) fieldContext_SubscriptionBillingAttempt_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  127089. fc = &graphql.FieldContext{
  127090. Object: "SubscriptionBillingAttempt",
  127091. Field: field,
  127092. IsMethod: false,
  127093. IsResolver: false,
  127094. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  127095. return nil, errors.New("field of type DateTime does not have child fields")
  127096. },
  127097. }
  127098. return fc, nil
  127099. }
  127100. func (ec *executionContext) _SubscriptionBillingAttempt_errorCode(ctx context.Context, field graphql.CollectedField, obj *SubscriptionBillingAttempt) (ret graphql.Marshaler) {
  127101. fc, err := ec.fieldContext_SubscriptionBillingAttempt_errorCode(ctx, field)
  127102. if err != nil {
  127103. return graphql.Null
  127104. }
  127105. ctx = graphql.WithFieldContext(ctx, fc)
  127106. defer func() {
  127107. if r := recover(); r != nil {
  127108. ec.Error(ctx, ec.Recover(ctx, r))
  127109. ret = graphql.Null
  127110. }
  127111. }()
  127112. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  127113. ctx = rctx // use context from middleware stack in children
  127114. return obj.ErrorCode, nil
  127115. })
  127116. if err != nil {
  127117. ec.Error(ctx, err)
  127118. return graphql.Null
  127119. }
  127120. if resTmp == nil {
  127121. return graphql.Null
  127122. }
  127123. res := resTmp.(*SubscriptionBillingAttemptErrorCode)
  127124. fc.Result = res
  127125. return ec.marshalOSubscriptionBillingAttemptErrorCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionBillingAttemptErrorCode(ctx, field.Selections, res)
  127126. }
  127127. func (ec *executionContext) fieldContext_SubscriptionBillingAttempt_errorCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  127128. fc = &graphql.FieldContext{
  127129. Object: "SubscriptionBillingAttempt",
  127130. Field: field,
  127131. IsMethod: false,
  127132. IsResolver: false,
  127133. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  127134. return nil, errors.New("field of type SubscriptionBillingAttemptErrorCode does not have child fields")
  127135. },
  127136. }
  127137. return fc, nil
  127138. }
  127139. func (ec *executionContext) _SubscriptionBillingAttempt_errorMessage(ctx context.Context, field graphql.CollectedField, obj *SubscriptionBillingAttempt) (ret graphql.Marshaler) {
  127140. fc, err := ec.fieldContext_SubscriptionBillingAttempt_errorMessage(ctx, field)
  127141. if err != nil {
  127142. return graphql.Null
  127143. }
  127144. ctx = graphql.WithFieldContext(ctx, fc)
  127145. defer func() {
  127146. if r := recover(); r != nil {
  127147. ec.Error(ctx, ec.Recover(ctx, r))
  127148. ret = graphql.Null
  127149. }
  127150. }()
  127151. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  127152. ctx = rctx // use context from middleware stack in children
  127153. return obj.ErrorMessage, nil
  127154. })
  127155. if err != nil {
  127156. ec.Error(ctx, err)
  127157. return graphql.Null
  127158. }
  127159. if resTmp == nil {
  127160. return graphql.Null
  127161. }
  127162. res := resTmp.(*string)
  127163. fc.Result = res
  127164. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  127165. }
  127166. func (ec *executionContext) fieldContext_SubscriptionBillingAttempt_errorMessage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  127167. fc = &graphql.FieldContext{
  127168. Object: "SubscriptionBillingAttempt",
  127169. Field: field,
  127170. IsMethod: false,
  127171. IsResolver: false,
  127172. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  127173. return nil, errors.New("field of type String does not have child fields")
  127174. },
  127175. }
  127176. return fc, nil
  127177. }
  127178. func (ec *executionContext) _SubscriptionBillingAttempt_id(ctx context.Context, field graphql.CollectedField, obj *SubscriptionBillingAttempt) (ret graphql.Marshaler) {
  127179. fc, err := ec.fieldContext_SubscriptionBillingAttempt_id(ctx, field)
  127180. if err != nil {
  127181. return graphql.Null
  127182. }
  127183. ctx = graphql.WithFieldContext(ctx, fc)
  127184. defer func() {
  127185. if r := recover(); r != nil {
  127186. ec.Error(ctx, ec.Recover(ctx, r))
  127187. ret = graphql.Null
  127188. }
  127189. }()
  127190. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  127191. ctx = rctx // use context from middleware stack in children
  127192. return obj.ID, nil
  127193. })
  127194. if err != nil {
  127195. ec.Error(ctx, err)
  127196. return graphql.Null
  127197. }
  127198. if resTmp == nil {
  127199. if !graphql.HasFieldError(ctx, fc) {
  127200. ec.Errorf(ctx, "must not be null")
  127201. }
  127202. return graphql.Null
  127203. }
  127204. res := resTmp.(string)
  127205. fc.Result = res
  127206. return ec.marshalNID2string(ctx, field.Selections, res)
  127207. }
  127208. func (ec *executionContext) fieldContext_SubscriptionBillingAttempt_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  127209. fc = &graphql.FieldContext{
  127210. Object: "SubscriptionBillingAttempt",
  127211. Field: field,
  127212. IsMethod: false,
  127213. IsResolver: false,
  127214. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  127215. return nil, errors.New("field of type ID does not have child fields")
  127216. },
  127217. }
  127218. return fc, nil
  127219. }
  127220. func (ec *executionContext) _SubscriptionBillingAttempt_idempotencyKey(ctx context.Context, field graphql.CollectedField, obj *SubscriptionBillingAttempt) (ret graphql.Marshaler) {
  127221. fc, err := ec.fieldContext_SubscriptionBillingAttempt_idempotencyKey(ctx, field)
  127222. if err != nil {
  127223. return graphql.Null
  127224. }
  127225. ctx = graphql.WithFieldContext(ctx, fc)
  127226. defer func() {
  127227. if r := recover(); r != nil {
  127228. ec.Error(ctx, ec.Recover(ctx, r))
  127229. ret = graphql.Null
  127230. }
  127231. }()
  127232. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  127233. ctx = rctx // use context from middleware stack in children
  127234. return obj.IdempotencyKey, nil
  127235. })
  127236. if err != nil {
  127237. ec.Error(ctx, err)
  127238. return graphql.Null
  127239. }
  127240. if resTmp == nil {
  127241. if !graphql.HasFieldError(ctx, fc) {
  127242. ec.Errorf(ctx, "must not be null")
  127243. }
  127244. return graphql.Null
  127245. }
  127246. res := resTmp.(string)
  127247. fc.Result = res
  127248. return ec.marshalNString2string(ctx, field.Selections, res)
  127249. }
  127250. func (ec *executionContext) fieldContext_SubscriptionBillingAttempt_idempotencyKey(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  127251. fc = &graphql.FieldContext{
  127252. Object: "SubscriptionBillingAttempt",
  127253. Field: field,
  127254. IsMethod: false,
  127255. IsResolver: false,
  127256. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  127257. return nil, errors.New("field of type String does not have child fields")
  127258. },
  127259. }
  127260. return fc, nil
  127261. }
  127262. func (ec *executionContext) _SubscriptionBillingAttempt_nextActionUrl(ctx context.Context, field graphql.CollectedField, obj *SubscriptionBillingAttempt) (ret graphql.Marshaler) {
  127263. fc, err := ec.fieldContext_SubscriptionBillingAttempt_nextActionUrl(ctx, field)
  127264. if err != nil {
  127265. return graphql.Null
  127266. }
  127267. ctx = graphql.WithFieldContext(ctx, fc)
  127268. defer func() {
  127269. if r := recover(); r != nil {
  127270. ec.Error(ctx, ec.Recover(ctx, r))
  127271. ret = graphql.Null
  127272. }
  127273. }()
  127274. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  127275. ctx = rctx // use context from middleware stack in children
  127276. return obj.NextActionURL, nil
  127277. })
  127278. if err != nil {
  127279. ec.Error(ctx, err)
  127280. return graphql.Null
  127281. }
  127282. if resTmp == nil {
  127283. return graphql.Null
  127284. }
  127285. res := resTmp.(*string)
  127286. fc.Result = res
  127287. return ec.marshalOURL2ᚖstring(ctx, field.Selections, res)
  127288. }
  127289. func (ec *executionContext) fieldContext_SubscriptionBillingAttempt_nextActionUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  127290. fc = &graphql.FieldContext{
  127291. Object: "SubscriptionBillingAttempt",
  127292. Field: field,
  127293. IsMethod: false,
  127294. IsResolver: false,
  127295. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  127296. return nil, errors.New("field of type URL does not have child fields")
  127297. },
  127298. }
  127299. return fc, nil
  127300. }
  127301. func (ec *executionContext) _SubscriptionBillingAttempt_order(ctx context.Context, field graphql.CollectedField, obj *SubscriptionBillingAttempt) (ret graphql.Marshaler) {
  127302. fc, err := ec.fieldContext_SubscriptionBillingAttempt_order(ctx, field)
  127303. if err != nil {
  127304. return graphql.Null
  127305. }
  127306. ctx = graphql.WithFieldContext(ctx, fc)
  127307. defer func() {
  127308. if r := recover(); r != nil {
  127309. ec.Error(ctx, ec.Recover(ctx, r))
  127310. ret = graphql.Null
  127311. }
  127312. }()
  127313. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  127314. ctx = rctx // use context from middleware stack in children
  127315. return obj.Order, nil
  127316. })
  127317. if err != nil {
  127318. ec.Error(ctx, err)
  127319. return graphql.Null
  127320. }
  127321. if resTmp == nil {
  127322. return graphql.Null
  127323. }
  127324. res := resTmp.(*Order)
  127325. fc.Result = res
  127326. return ec.marshalOOrder2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrder(ctx, field.Selections, res)
  127327. }
  127328. func (ec *executionContext) fieldContext_SubscriptionBillingAttempt_order(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  127329. fc = &graphql.FieldContext{
  127330. Object: "SubscriptionBillingAttempt",
  127331. Field: field,
  127332. IsMethod: false,
  127333. IsResolver: false,
  127334. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  127335. switch field.Name {
  127336. case "agreements":
  127337. return ec.fieldContext_Order_agreements(ctx, field)
  127338. case "alerts":
  127339. return ec.fieldContext_Order_alerts(ctx, field)
  127340. case "app":
  127341. return ec.fieldContext_Order_app(ctx, field)
  127342. case "billingAddress":
  127343. return ec.fieldContext_Order_billingAddress(ctx, field)
  127344. case "billingAddressMatchesShippingAddress":
  127345. return ec.fieldContext_Order_billingAddressMatchesShippingAddress(ctx, field)
  127346. case "canMarkAsPaid":
  127347. return ec.fieldContext_Order_canMarkAsPaid(ctx, field)
  127348. case "canNotifyCustomer":
  127349. return ec.fieldContext_Order_canNotifyCustomer(ctx, field)
  127350. case "cancelReason":
  127351. return ec.fieldContext_Order_cancelReason(ctx, field)
  127352. case "cancelledAt":
  127353. return ec.fieldContext_Order_cancelledAt(ctx, field)
  127354. case "capturable":
  127355. return ec.fieldContext_Order_capturable(ctx, field)
  127356. case "cartDiscountAmountSet":
  127357. return ec.fieldContext_Order_cartDiscountAmountSet(ctx, field)
  127358. case "channelInformation":
  127359. return ec.fieldContext_Order_channelInformation(ctx, field)
  127360. case "clientIp":
  127361. return ec.fieldContext_Order_clientIp(ctx, field)
  127362. case "closed":
  127363. return ec.fieldContext_Order_closed(ctx, field)
  127364. case "closedAt":
  127365. return ec.fieldContext_Order_closedAt(ctx, field)
  127366. case "confirmed":
  127367. return ec.fieldContext_Order_confirmed(ctx, field)
  127368. case "createdAt":
  127369. return ec.fieldContext_Order_createdAt(ctx, field)
  127370. case "currencyCode":
  127371. return ec.fieldContext_Order_currencyCode(ctx, field)
  127372. case "currentCartDiscountAmountSet":
  127373. return ec.fieldContext_Order_currentCartDiscountAmountSet(ctx, field)
  127374. case "currentSubtotalLineItemsQuantity":
  127375. return ec.fieldContext_Order_currentSubtotalLineItemsQuantity(ctx, field)
  127376. case "currentSubtotalPriceSet":
  127377. return ec.fieldContext_Order_currentSubtotalPriceSet(ctx, field)
  127378. case "currentTaxLines":
  127379. return ec.fieldContext_Order_currentTaxLines(ctx, field)
  127380. case "currentTotalDiscountsSet":
  127381. return ec.fieldContext_Order_currentTotalDiscountsSet(ctx, field)
  127382. case "currentTotalDutiesSet":
  127383. return ec.fieldContext_Order_currentTotalDutiesSet(ctx, field)
  127384. case "currentTotalPriceSet":
  127385. return ec.fieldContext_Order_currentTotalPriceSet(ctx, field)
  127386. case "currentTotalTaxSet":
  127387. return ec.fieldContext_Order_currentTotalTaxSet(ctx, field)
  127388. case "currentTotalWeight":
  127389. return ec.fieldContext_Order_currentTotalWeight(ctx, field)
  127390. case "customAttributes":
  127391. return ec.fieldContext_Order_customAttributes(ctx, field)
  127392. case "customer":
  127393. return ec.fieldContext_Order_customer(ctx, field)
  127394. case "customerAcceptsMarketing":
  127395. return ec.fieldContext_Order_customerAcceptsMarketing(ctx, field)
  127396. case "customerJourneySummary":
  127397. return ec.fieldContext_Order_customerJourneySummary(ctx, field)
  127398. case "customerLocale":
  127399. return ec.fieldContext_Order_customerLocale(ctx, field)
  127400. case "discountApplications":
  127401. return ec.fieldContext_Order_discountApplications(ctx, field)
  127402. case "discountCode":
  127403. return ec.fieldContext_Order_discountCode(ctx, field)
  127404. case "discountCodes":
  127405. return ec.fieldContext_Order_discountCodes(ctx, field)
  127406. case "displayAddress":
  127407. return ec.fieldContext_Order_displayAddress(ctx, field)
  127408. case "displayFinancialStatus":
  127409. return ec.fieldContext_Order_displayFinancialStatus(ctx, field)
  127410. case "displayFulfillmentStatus":
  127411. return ec.fieldContext_Order_displayFulfillmentStatus(ctx, field)
  127412. case "disputes":
  127413. return ec.fieldContext_Order_disputes(ctx, field)
  127414. case "edited":
  127415. return ec.fieldContext_Order_edited(ctx, field)
  127416. case "email":
  127417. return ec.fieldContext_Order_email(ctx, field)
  127418. case "estimatedTaxes":
  127419. return ec.fieldContext_Order_estimatedTaxes(ctx, field)
  127420. case "events":
  127421. return ec.fieldContext_Order_events(ctx, field)
  127422. case "fulfillable":
  127423. return ec.fieldContext_Order_fulfillable(ctx, field)
  127424. case "fulfillmentOrders":
  127425. return ec.fieldContext_Order_fulfillmentOrders(ctx, field)
  127426. case "fulfillments":
  127427. return ec.fieldContext_Order_fulfillments(ctx, field)
  127428. case "fullyPaid":
  127429. return ec.fieldContext_Order_fullyPaid(ctx, field)
  127430. case "hasTimelineComment":
  127431. return ec.fieldContext_Order_hasTimelineComment(ctx, field)
  127432. case "id":
  127433. return ec.fieldContext_Order_id(ctx, field)
  127434. case "legacyResourceId":
  127435. return ec.fieldContext_Order_legacyResourceId(ctx, field)
  127436. case "lineItems":
  127437. return ec.fieldContext_Order_lineItems(ctx, field)
  127438. case "localizationExtensions":
  127439. return ec.fieldContext_Order_localizationExtensions(ctx, field)
  127440. case "merchantEditable":
  127441. return ec.fieldContext_Order_merchantEditable(ctx, field)
  127442. case "merchantEditableErrors":
  127443. return ec.fieldContext_Order_merchantEditableErrors(ctx, field)
  127444. case "merchantOfRecordApp":
  127445. return ec.fieldContext_Order_merchantOfRecordApp(ctx, field)
  127446. case "metafield":
  127447. return ec.fieldContext_Order_metafield(ctx, field)
  127448. case "metafieldDefinitions":
  127449. return ec.fieldContext_Order_metafieldDefinitions(ctx, field)
  127450. case "metafields":
  127451. return ec.fieldContext_Order_metafields(ctx, field)
  127452. case "name":
  127453. return ec.fieldContext_Order_name(ctx, field)
  127454. case "netPaymentSet":
  127455. return ec.fieldContext_Order_netPaymentSet(ctx, field)
  127456. case "nonFulfillableLineItems":
  127457. return ec.fieldContext_Order_nonFulfillableLineItems(ctx, field)
  127458. case "note":
  127459. return ec.fieldContext_Order_note(ctx, field)
  127460. case "originalTotalDutiesSet":
  127461. return ec.fieldContext_Order_originalTotalDutiesSet(ctx, field)
  127462. case "originalTotalPriceSet":
  127463. return ec.fieldContext_Order_originalTotalPriceSet(ctx, field)
  127464. case "paymentCollectionDetails":
  127465. return ec.fieldContext_Order_paymentCollectionDetails(ctx, field)
  127466. case "paymentGatewayNames":
  127467. return ec.fieldContext_Order_paymentGatewayNames(ctx, field)
  127468. case "paymentTerms":
  127469. return ec.fieldContext_Order_paymentTerms(ctx, field)
  127470. case "phone":
  127471. return ec.fieldContext_Order_phone(ctx, field)
  127472. case "physicalLocation":
  127473. return ec.fieldContext_Order_physicalLocation(ctx, field)
  127474. case "presentmentCurrencyCode":
  127475. return ec.fieldContext_Order_presentmentCurrencyCode(ctx, field)
  127476. case "privateMetafield":
  127477. return ec.fieldContext_Order_privateMetafield(ctx, field)
  127478. case "privateMetafields":
  127479. return ec.fieldContext_Order_privateMetafields(ctx, field)
  127480. case "processedAt":
  127481. return ec.fieldContext_Order_processedAt(ctx, field)
  127482. case "publication":
  127483. return ec.fieldContext_Order_publication(ctx, field)
  127484. case "purchasingEntity":
  127485. return ec.fieldContext_Order_purchasingEntity(ctx, field)
  127486. case "refundDiscrepancySet":
  127487. return ec.fieldContext_Order_refundDiscrepancySet(ctx, field)
  127488. case "refundable":
  127489. return ec.fieldContext_Order_refundable(ctx, field)
  127490. case "refunds":
  127491. return ec.fieldContext_Order_refunds(ctx, field)
  127492. case "registeredSourceUrl":
  127493. return ec.fieldContext_Order_registeredSourceUrl(ctx, field)
  127494. case "requiresShipping":
  127495. return ec.fieldContext_Order_requiresShipping(ctx, field)
  127496. case "restockable":
  127497. return ec.fieldContext_Order_restockable(ctx, field)
  127498. case "riskLevel":
  127499. return ec.fieldContext_Order_riskLevel(ctx, field)
  127500. case "risks":
  127501. return ec.fieldContext_Order_risks(ctx, field)
  127502. case "shippingAddress":
  127503. return ec.fieldContext_Order_shippingAddress(ctx, field)
  127504. case "shippingLine":
  127505. return ec.fieldContext_Order_shippingLine(ctx, field)
  127506. case "shippingLines":
  127507. return ec.fieldContext_Order_shippingLines(ctx, field)
  127508. case "sourceIdentifier":
  127509. return ec.fieldContext_Order_sourceIdentifier(ctx, field)
  127510. case "subtotalLineItemsQuantity":
  127511. return ec.fieldContext_Order_subtotalLineItemsQuantity(ctx, field)
  127512. case "subtotalPriceSet":
  127513. return ec.fieldContext_Order_subtotalPriceSet(ctx, field)
  127514. case "suggestedRefund":
  127515. return ec.fieldContext_Order_suggestedRefund(ctx, field)
  127516. case "tags":
  127517. return ec.fieldContext_Order_tags(ctx, field)
  127518. case "taxLines":
  127519. return ec.fieldContext_Order_taxLines(ctx, field)
  127520. case "taxesIncluded":
  127521. return ec.fieldContext_Order_taxesIncluded(ctx, field)
  127522. case "test":
  127523. return ec.fieldContext_Order_test(ctx, field)
  127524. case "totalCapturableSet":
  127525. return ec.fieldContext_Order_totalCapturableSet(ctx, field)
  127526. case "totalDiscountsSet":
  127527. return ec.fieldContext_Order_totalDiscountsSet(ctx, field)
  127528. case "totalOutstandingSet":
  127529. return ec.fieldContext_Order_totalOutstandingSet(ctx, field)
  127530. case "totalPriceSet":
  127531. return ec.fieldContext_Order_totalPriceSet(ctx, field)
  127532. case "totalReceivedSet":
  127533. return ec.fieldContext_Order_totalReceivedSet(ctx, field)
  127534. case "totalRefundedSet":
  127535. return ec.fieldContext_Order_totalRefundedSet(ctx, field)
  127536. case "totalRefundedShippingSet":
  127537. return ec.fieldContext_Order_totalRefundedShippingSet(ctx, field)
  127538. case "totalShippingPriceSet":
  127539. return ec.fieldContext_Order_totalShippingPriceSet(ctx, field)
  127540. case "totalTaxSet":
  127541. return ec.fieldContext_Order_totalTaxSet(ctx, field)
  127542. case "totalTipReceivedSet":
  127543. return ec.fieldContext_Order_totalTipReceivedSet(ctx, field)
  127544. case "totalWeight":
  127545. return ec.fieldContext_Order_totalWeight(ctx, field)
  127546. case "transactions":
  127547. return ec.fieldContext_Order_transactions(ctx, field)
  127548. case "unpaid":
  127549. return ec.fieldContext_Order_unpaid(ctx, field)
  127550. case "updatedAt":
  127551. return ec.fieldContext_Order_updatedAt(ctx, field)
  127552. }
  127553. return nil, fmt.Errorf("no field named %q was found under type Order", field.Name)
  127554. },
  127555. }
  127556. return fc, nil
  127557. }
  127558. func (ec *executionContext) _SubscriptionBillingAttempt_originTime(ctx context.Context, field graphql.CollectedField, obj *SubscriptionBillingAttempt) (ret graphql.Marshaler) {
  127559. fc, err := ec.fieldContext_SubscriptionBillingAttempt_originTime(ctx, field)
  127560. if err != nil {
  127561. return graphql.Null
  127562. }
  127563. ctx = graphql.WithFieldContext(ctx, fc)
  127564. defer func() {
  127565. if r := recover(); r != nil {
  127566. ec.Error(ctx, ec.Recover(ctx, r))
  127567. ret = graphql.Null
  127568. }
  127569. }()
  127570. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  127571. ctx = rctx // use context from middleware stack in children
  127572. return obj.OriginTime, nil
  127573. })
  127574. if err != nil {
  127575. ec.Error(ctx, err)
  127576. return graphql.Null
  127577. }
  127578. if resTmp == nil {
  127579. return graphql.Null
  127580. }
  127581. res := resTmp.(*string)
  127582. fc.Result = res
  127583. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  127584. }
  127585. func (ec *executionContext) fieldContext_SubscriptionBillingAttempt_originTime(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  127586. fc = &graphql.FieldContext{
  127587. Object: "SubscriptionBillingAttempt",
  127588. Field: field,
  127589. IsMethod: false,
  127590. IsResolver: false,
  127591. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  127592. return nil, errors.New("field of type DateTime does not have child fields")
  127593. },
  127594. }
  127595. return fc, nil
  127596. }
  127597. func (ec *executionContext) _SubscriptionBillingAttempt_ready(ctx context.Context, field graphql.CollectedField, obj *SubscriptionBillingAttempt) (ret graphql.Marshaler) {
  127598. fc, err := ec.fieldContext_SubscriptionBillingAttempt_ready(ctx, field)
  127599. if err != nil {
  127600. return graphql.Null
  127601. }
  127602. ctx = graphql.WithFieldContext(ctx, fc)
  127603. defer func() {
  127604. if r := recover(); r != nil {
  127605. ec.Error(ctx, ec.Recover(ctx, r))
  127606. ret = graphql.Null
  127607. }
  127608. }()
  127609. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  127610. ctx = rctx // use context from middleware stack in children
  127611. return obj.Ready, nil
  127612. })
  127613. if err != nil {
  127614. ec.Error(ctx, err)
  127615. return graphql.Null
  127616. }
  127617. if resTmp == nil {
  127618. if !graphql.HasFieldError(ctx, fc) {
  127619. ec.Errorf(ctx, "must not be null")
  127620. }
  127621. return graphql.Null
  127622. }
  127623. res := resTmp.(bool)
  127624. fc.Result = res
  127625. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  127626. }
  127627. func (ec *executionContext) fieldContext_SubscriptionBillingAttempt_ready(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  127628. fc = &graphql.FieldContext{
  127629. Object: "SubscriptionBillingAttempt",
  127630. Field: field,
  127631. IsMethod: false,
  127632. IsResolver: false,
  127633. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  127634. return nil, errors.New("field of type Boolean does not have child fields")
  127635. },
  127636. }
  127637. return fc, nil
  127638. }
  127639. func (ec *executionContext) _SubscriptionBillingAttempt_subscriptionContract(ctx context.Context, field graphql.CollectedField, obj *SubscriptionBillingAttempt) (ret graphql.Marshaler) {
  127640. fc, err := ec.fieldContext_SubscriptionBillingAttempt_subscriptionContract(ctx, field)
  127641. if err != nil {
  127642. return graphql.Null
  127643. }
  127644. ctx = graphql.WithFieldContext(ctx, fc)
  127645. defer func() {
  127646. if r := recover(); r != nil {
  127647. ec.Error(ctx, ec.Recover(ctx, r))
  127648. ret = graphql.Null
  127649. }
  127650. }()
  127651. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  127652. ctx = rctx // use context from middleware stack in children
  127653. return obj.SubscriptionContract, nil
  127654. })
  127655. if err != nil {
  127656. ec.Error(ctx, err)
  127657. return graphql.Null
  127658. }
  127659. if resTmp == nil {
  127660. if !graphql.HasFieldError(ctx, fc) {
  127661. ec.Errorf(ctx, "must not be null")
  127662. }
  127663. return graphql.Null
  127664. }
  127665. res := resTmp.(*SubscriptionContract)
  127666. fc.Result = res
  127667. return ec.marshalNSubscriptionContract2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionContract(ctx, field.Selections, res)
  127668. }
  127669. func (ec *executionContext) fieldContext_SubscriptionBillingAttempt_subscriptionContract(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  127670. fc = &graphql.FieldContext{
  127671. Object: "SubscriptionBillingAttempt",
  127672. Field: field,
  127673. IsMethod: false,
  127674. IsResolver: false,
  127675. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  127676. switch field.Name {
  127677. case "app":
  127678. return ec.fieldContext_SubscriptionContract_app(ctx, field)
  127679. case "appAdminUrl":
  127680. return ec.fieldContext_SubscriptionContract_appAdminUrl(ctx, field)
  127681. case "billingAttempts":
  127682. return ec.fieldContext_SubscriptionContract_billingAttempts(ctx, field)
  127683. case "billingPolicy":
  127684. return ec.fieldContext_SubscriptionContract_billingPolicy(ctx, field)
  127685. case "createdAt":
  127686. return ec.fieldContext_SubscriptionContract_createdAt(ctx, field)
  127687. case "currencyCode":
  127688. return ec.fieldContext_SubscriptionContract_currencyCode(ctx, field)
  127689. case "customAttributes":
  127690. return ec.fieldContext_SubscriptionContract_customAttributes(ctx, field)
  127691. case "customer":
  127692. return ec.fieldContext_SubscriptionContract_customer(ctx, field)
  127693. case "customerPaymentMethod":
  127694. return ec.fieldContext_SubscriptionContract_customerPaymentMethod(ctx, field)
  127695. case "deliveryMethod":
  127696. return ec.fieldContext_SubscriptionContract_deliveryMethod(ctx, field)
  127697. case "deliveryPolicy":
  127698. return ec.fieldContext_SubscriptionContract_deliveryPolicy(ctx, field)
  127699. case "deliveryPrice":
  127700. return ec.fieldContext_SubscriptionContract_deliveryPrice(ctx, field)
  127701. case "discounts":
  127702. return ec.fieldContext_SubscriptionContract_discounts(ctx, field)
  127703. case "id":
  127704. return ec.fieldContext_SubscriptionContract_id(ctx, field)
  127705. case "lastPaymentStatus":
  127706. return ec.fieldContext_SubscriptionContract_lastPaymentStatus(ctx, field)
  127707. case "lineCount":
  127708. return ec.fieldContext_SubscriptionContract_lineCount(ctx, field)
  127709. case "lines":
  127710. return ec.fieldContext_SubscriptionContract_lines(ctx, field)
  127711. case "nextBillingDate":
  127712. return ec.fieldContext_SubscriptionContract_nextBillingDate(ctx, field)
  127713. case "note":
  127714. return ec.fieldContext_SubscriptionContract_note(ctx, field)
  127715. case "orders":
  127716. return ec.fieldContext_SubscriptionContract_orders(ctx, field)
  127717. case "originOrder":
  127718. return ec.fieldContext_SubscriptionContract_originOrder(ctx, field)
  127719. case "status":
  127720. return ec.fieldContext_SubscriptionContract_status(ctx, field)
  127721. case "updatedAt":
  127722. return ec.fieldContext_SubscriptionContract_updatedAt(ctx, field)
  127723. }
  127724. return nil, fmt.Errorf("no field named %q was found under type SubscriptionContract", field.Name)
  127725. },
  127726. }
  127727. return fc, nil
  127728. }
  127729. func (ec *executionContext) _SubscriptionBillingAttemptConnection_edges(ctx context.Context, field graphql.CollectedField, obj *SubscriptionBillingAttemptConnection) (ret graphql.Marshaler) {
  127730. fc, err := ec.fieldContext_SubscriptionBillingAttemptConnection_edges(ctx, field)
  127731. if err != nil {
  127732. return graphql.Null
  127733. }
  127734. ctx = graphql.WithFieldContext(ctx, fc)
  127735. defer func() {
  127736. if r := recover(); r != nil {
  127737. ec.Error(ctx, ec.Recover(ctx, r))
  127738. ret = graphql.Null
  127739. }
  127740. }()
  127741. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  127742. ctx = rctx // use context from middleware stack in children
  127743. return obj.Edges, nil
  127744. })
  127745. if err != nil {
  127746. ec.Error(ctx, err)
  127747. return graphql.Null
  127748. }
  127749. if resTmp == nil {
  127750. if !graphql.HasFieldError(ctx, fc) {
  127751. ec.Errorf(ctx, "must not be null")
  127752. }
  127753. return graphql.Null
  127754. }
  127755. res := resTmp.([]*SubscriptionBillingAttemptEdge)
  127756. fc.Result = res
  127757. return ec.marshalNSubscriptionBillingAttemptEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionBillingAttemptEdgeᚄ(ctx, field.Selections, res)
  127758. }
  127759. func (ec *executionContext) fieldContext_SubscriptionBillingAttemptConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  127760. fc = &graphql.FieldContext{
  127761. Object: "SubscriptionBillingAttemptConnection",
  127762. Field: field,
  127763. IsMethod: false,
  127764. IsResolver: false,
  127765. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  127766. switch field.Name {
  127767. case "cursor":
  127768. return ec.fieldContext_SubscriptionBillingAttemptEdge_cursor(ctx, field)
  127769. case "node":
  127770. return ec.fieldContext_SubscriptionBillingAttemptEdge_node(ctx, field)
  127771. }
  127772. return nil, fmt.Errorf("no field named %q was found under type SubscriptionBillingAttemptEdge", field.Name)
  127773. },
  127774. }
  127775. return fc, nil
  127776. }
  127777. func (ec *executionContext) _SubscriptionBillingAttemptConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *SubscriptionBillingAttemptConnection) (ret graphql.Marshaler) {
  127778. fc, err := ec.fieldContext_SubscriptionBillingAttemptConnection_nodes(ctx, field)
  127779. if err != nil {
  127780. return graphql.Null
  127781. }
  127782. ctx = graphql.WithFieldContext(ctx, fc)
  127783. defer func() {
  127784. if r := recover(); r != nil {
  127785. ec.Error(ctx, ec.Recover(ctx, r))
  127786. ret = graphql.Null
  127787. }
  127788. }()
  127789. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  127790. ctx = rctx // use context from middleware stack in children
  127791. return obj.Nodes, nil
  127792. })
  127793. if err != nil {
  127794. ec.Error(ctx, err)
  127795. return graphql.Null
  127796. }
  127797. if resTmp == nil {
  127798. if !graphql.HasFieldError(ctx, fc) {
  127799. ec.Errorf(ctx, "must not be null")
  127800. }
  127801. return graphql.Null
  127802. }
  127803. res := resTmp.([]*SubscriptionBillingAttempt)
  127804. fc.Result = res
  127805. return ec.marshalNSubscriptionBillingAttempt2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionBillingAttemptᚄ(ctx, field.Selections, res)
  127806. }
  127807. func (ec *executionContext) fieldContext_SubscriptionBillingAttemptConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  127808. fc = &graphql.FieldContext{
  127809. Object: "SubscriptionBillingAttemptConnection",
  127810. Field: field,
  127811. IsMethod: false,
  127812. IsResolver: false,
  127813. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  127814. switch field.Name {
  127815. case "completedAt":
  127816. return ec.fieldContext_SubscriptionBillingAttempt_completedAt(ctx, field)
  127817. case "createdAt":
  127818. return ec.fieldContext_SubscriptionBillingAttempt_createdAt(ctx, field)
  127819. case "errorCode":
  127820. return ec.fieldContext_SubscriptionBillingAttempt_errorCode(ctx, field)
  127821. case "errorMessage":
  127822. return ec.fieldContext_SubscriptionBillingAttempt_errorMessage(ctx, field)
  127823. case "id":
  127824. return ec.fieldContext_SubscriptionBillingAttempt_id(ctx, field)
  127825. case "idempotencyKey":
  127826. return ec.fieldContext_SubscriptionBillingAttempt_idempotencyKey(ctx, field)
  127827. case "nextActionUrl":
  127828. return ec.fieldContext_SubscriptionBillingAttempt_nextActionUrl(ctx, field)
  127829. case "order":
  127830. return ec.fieldContext_SubscriptionBillingAttempt_order(ctx, field)
  127831. case "originTime":
  127832. return ec.fieldContext_SubscriptionBillingAttempt_originTime(ctx, field)
  127833. case "ready":
  127834. return ec.fieldContext_SubscriptionBillingAttempt_ready(ctx, field)
  127835. case "subscriptionContract":
  127836. return ec.fieldContext_SubscriptionBillingAttempt_subscriptionContract(ctx, field)
  127837. }
  127838. return nil, fmt.Errorf("no field named %q was found under type SubscriptionBillingAttempt", field.Name)
  127839. },
  127840. }
  127841. return fc, nil
  127842. }
  127843. func (ec *executionContext) _SubscriptionBillingAttemptConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *SubscriptionBillingAttemptConnection) (ret graphql.Marshaler) {
  127844. fc, err := ec.fieldContext_SubscriptionBillingAttemptConnection_pageInfo(ctx, field)
  127845. if err != nil {
  127846. return graphql.Null
  127847. }
  127848. ctx = graphql.WithFieldContext(ctx, fc)
  127849. defer func() {
  127850. if r := recover(); r != nil {
  127851. ec.Error(ctx, ec.Recover(ctx, r))
  127852. ret = graphql.Null
  127853. }
  127854. }()
  127855. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  127856. ctx = rctx // use context from middleware stack in children
  127857. return obj.PageInfo, nil
  127858. })
  127859. if err != nil {
  127860. ec.Error(ctx, err)
  127861. return graphql.Null
  127862. }
  127863. if resTmp == nil {
  127864. if !graphql.HasFieldError(ctx, fc) {
  127865. ec.Errorf(ctx, "must not be null")
  127866. }
  127867. return graphql.Null
  127868. }
  127869. res := resTmp.(*PageInfo)
  127870. fc.Result = res
  127871. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  127872. }
  127873. func (ec *executionContext) fieldContext_SubscriptionBillingAttemptConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  127874. fc = &graphql.FieldContext{
  127875. Object: "SubscriptionBillingAttemptConnection",
  127876. Field: field,
  127877. IsMethod: false,
  127878. IsResolver: false,
  127879. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  127880. switch field.Name {
  127881. case "endCursor":
  127882. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  127883. case "hasNextPage":
  127884. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  127885. case "hasPreviousPage":
  127886. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  127887. case "startCursor":
  127888. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  127889. }
  127890. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  127891. },
  127892. }
  127893. return fc, nil
  127894. }
  127895. func (ec *executionContext) _SubscriptionBillingAttemptEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *SubscriptionBillingAttemptEdge) (ret graphql.Marshaler) {
  127896. fc, err := ec.fieldContext_SubscriptionBillingAttemptEdge_cursor(ctx, field)
  127897. if err != nil {
  127898. return graphql.Null
  127899. }
  127900. ctx = graphql.WithFieldContext(ctx, fc)
  127901. defer func() {
  127902. if r := recover(); r != nil {
  127903. ec.Error(ctx, ec.Recover(ctx, r))
  127904. ret = graphql.Null
  127905. }
  127906. }()
  127907. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  127908. ctx = rctx // use context from middleware stack in children
  127909. return obj.Cursor, nil
  127910. })
  127911. if err != nil {
  127912. ec.Error(ctx, err)
  127913. return graphql.Null
  127914. }
  127915. if resTmp == nil {
  127916. if !graphql.HasFieldError(ctx, fc) {
  127917. ec.Errorf(ctx, "must not be null")
  127918. }
  127919. return graphql.Null
  127920. }
  127921. res := resTmp.(string)
  127922. fc.Result = res
  127923. return ec.marshalNString2string(ctx, field.Selections, res)
  127924. }
  127925. func (ec *executionContext) fieldContext_SubscriptionBillingAttemptEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  127926. fc = &graphql.FieldContext{
  127927. Object: "SubscriptionBillingAttemptEdge",
  127928. Field: field,
  127929. IsMethod: false,
  127930. IsResolver: false,
  127931. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  127932. return nil, errors.New("field of type String does not have child fields")
  127933. },
  127934. }
  127935. return fc, nil
  127936. }
  127937. func (ec *executionContext) _SubscriptionBillingAttemptEdge_node(ctx context.Context, field graphql.CollectedField, obj *SubscriptionBillingAttemptEdge) (ret graphql.Marshaler) {
  127938. fc, err := ec.fieldContext_SubscriptionBillingAttemptEdge_node(ctx, field)
  127939. if err != nil {
  127940. return graphql.Null
  127941. }
  127942. ctx = graphql.WithFieldContext(ctx, fc)
  127943. defer func() {
  127944. if r := recover(); r != nil {
  127945. ec.Error(ctx, ec.Recover(ctx, r))
  127946. ret = graphql.Null
  127947. }
  127948. }()
  127949. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  127950. ctx = rctx // use context from middleware stack in children
  127951. return obj.Node, nil
  127952. })
  127953. if err != nil {
  127954. ec.Error(ctx, err)
  127955. return graphql.Null
  127956. }
  127957. if resTmp == nil {
  127958. if !graphql.HasFieldError(ctx, fc) {
  127959. ec.Errorf(ctx, "must not be null")
  127960. }
  127961. return graphql.Null
  127962. }
  127963. res := resTmp.(*SubscriptionBillingAttempt)
  127964. fc.Result = res
  127965. return ec.marshalNSubscriptionBillingAttempt2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionBillingAttempt(ctx, field.Selections, res)
  127966. }
  127967. func (ec *executionContext) fieldContext_SubscriptionBillingAttemptEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  127968. fc = &graphql.FieldContext{
  127969. Object: "SubscriptionBillingAttemptEdge",
  127970. Field: field,
  127971. IsMethod: false,
  127972. IsResolver: false,
  127973. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  127974. switch field.Name {
  127975. case "completedAt":
  127976. return ec.fieldContext_SubscriptionBillingAttempt_completedAt(ctx, field)
  127977. case "createdAt":
  127978. return ec.fieldContext_SubscriptionBillingAttempt_createdAt(ctx, field)
  127979. case "errorCode":
  127980. return ec.fieldContext_SubscriptionBillingAttempt_errorCode(ctx, field)
  127981. case "errorMessage":
  127982. return ec.fieldContext_SubscriptionBillingAttempt_errorMessage(ctx, field)
  127983. case "id":
  127984. return ec.fieldContext_SubscriptionBillingAttempt_id(ctx, field)
  127985. case "idempotencyKey":
  127986. return ec.fieldContext_SubscriptionBillingAttempt_idempotencyKey(ctx, field)
  127987. case "nextActionUrl":
  127988. return ec.fieldContext_SubscriptionBillingAttempt_nextActionUrl(ctx, field)
  127989. case "order":
  127990. return ec.fieldContext_SubscriptionBillingAttempt_order(ctx, field)
  127991. case "originTime":
  127992. return ec.fieldContext_SubscriptionBillingAttempt_originTime(ctx, field)
  127993. case "ready":
  127994. return ec.fieldContext_SubscriptionBillingAttempt_ready(ctx, field)
  127995. case "subscriptionContract":
  127996. return ec.fieldContext_SubscriptionBillingAttempt_subscriptionContract(ctx, field)
  127997. }
  127998. return nil, fmt.Errorf("no field named %q was found under type SubscriptionBillingAttempt", field.Name)
  127999. },
  128000. }
  128001. return fc, nil
  128002. }
  128003. func (ec *executionContext) _SubscriptionBillingPolicy_anchors(ctx context.Context, field graphql.CollectedField, obj *SubscriptionBillingPolicy) (ret graphql.Marshaler) {
  128004. fc, err := ec.fieldContext_SubscriptionBillingPolicy_anchors(ctx, field)
  128005. if err != nil {
  128006. return graphql.Null
  128007. }
  128008. ctx = graphql.WithFieldContext(ctx, fc)
  128009. defer func() {
  128010. if r := recover(); r != nil {
  128011. ec.Error(ctx, ec.Recover(ctx, r))
  128012. ret = graphql.Null
  128013. }
  128014. }()
  128015. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  128016. ctx = rctx // use context from middleware stack in children
  128017. return obj.Anchors, nil
  128018. })
  128019. if err != nil {
  128020. ec.Error(ctx, err)
  128021. return graphql.Null
  128022. }
  128023. if resTmp == nil {
  128024. if !graphql.HasFieldError(ctx, fc) {
  128025. ec.Errorf(ctx, "must not be null")
  128026. }
  128027. return graphql.Null
  128028. }
  128029. res := resTmp.([]*SellingPlanAnchor)
  128030. fc.Result = res
  128031. return ec.marshalNSellingPlanAnchor2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanAnchorᚄ(ctx, field.Selections, res)
  128032. }
  128033. func (ec *executionContext) fieldContext_SubscriptionBillingPolicy_anchors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  128034. fc = &graphql.FieldContext{
  128035. Object: "SubscriptionBillingPolicy",
  128036. Field: field,
  128037. IsMethod: false,
  128038. IsResolver: false,
  128039. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  128040. switch field.Name {
  128041. case "cutoffDay":
  128042. return ec.fieldContext_SellingPlanAnchor_cutoffDay(ctx, field)
  128043. case "day":
  128044. return ec.fieldContext_SellingPlanAnchor_day(ctx, field)
  128045. case "month":
  128046. return ec.fieldContext_SellingPlanAnchor_month(ctx, field)
  128047. case "type":
  128048. return ec.fieldContext_SellingPlanAnchor_type(ctx, field)
  128049. }
  128050. return nil, fmt.Errorf("no field named %q was found under type SellingPlanAnchor", field.Name)
  128051. },
  128052. }
  128053. return fc, nil
  128054. }
  128055. func (ec *executionContext) _SubscriptionBillingPolicy_interval(ctx context.Context, field graphql.CollectedField, obj *SubscriptionBillingPolicy) (ret graphql.Marshaler) {
  128056. fc, err := ec.fieldContext_SubscriptionBillingPolicy_interval(ctx, field)
  128057. if err != nil {
  128058. return graphql.Null
  128059. }
  128060. ctx = graphql.WithFieldContext(ctx, fc)
  128061. defer func() {
  128062. if r := recover(); r != nil {
  128063. ec.Error(ctx, ec.Recover(ctx, r))
  128064. ret = graphql.Null
  128065. }
  128066. }()
  128067. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  128068. ctx = rctx // use context from middleware stack in children
  128069. return obj.Interval, nil
  128070. })
  128071. if err != nil {
  128072. ec.Error(ctx, err)
  128073. return graphql.Null
  128074. }
  128075. if resTmp == nil {
  128076. if !graphql.HasFieldError(ctx, fc) {
  128077. ec.Errorf(ctx, "must not be null")
  128078. }
  128079. return graphql.Null
  128080. }
  128081. res := resTmp.(SellingPlanInterval)
  128082. fc.Result = res
  128083. return ec.marshalNSellingPlanInterval2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanInterval(ctx, field.Selections, res)
  128084. }
  128085. func (ec *executionContext) fieldContext_SubscriptionBillingPolicy_interval(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  128086. fc = &graphql.FieldContext{
  128087. Object: "SubscriptionBillingPolicy",
  128088. Field: field,
  128089. IsMethod: false,
  128090. IsResolver: false,
  128091. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  128092. return nil, errors.New("field of type SellingPlanInterval does not have child fields")
  128093. },
  128094. }
  128095. return fc, nil
  128096. }
  128097. func (ec *executionContext) _SubscriptionBillingPolicy_intervalCount(ctx context.Context, field graphql.CollectedField, obj *SubscriptionBillingPolicy) (ret graphql.Marshaler) {
  128098. fc, err := ec.fieldContext_SubscriptionBillingPolicy_intervalCount(ctx, field)
  128099. if err != nil {
  128100. return graphql.Null
  128101. }
  128102. ctx = graphql.WithFieldContext(ctx, fc)
  128103. defer func() {
  128104. if r := recover(); r != nil {
  128105. ec.Error(ctx, ec.Recover(ctx, r))
  128106. ret = graphql.Null
  128107. }
  128108. }()
  128109. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  128110. ctx = rctx // use context from middleware stack in children
  128111. return obj.IntervalCount, nil
  128112. })
  128113. if err != nil {
  128114. ec.Error(ctx, err)
  128115. return graphql.Null
  128116. }
  128117. if resTmp == nil {
  128118. if !graphql.HasFieldError(ctx, fc) {
  128119. ec.Errorf(ctx, "must not be null")
  128120. }
  128121. return graphql.Null
  128122. }
  128123. res := resTmp.(int)
  128124. fc.Result = res
  128125. return ec.marshalNInt2int(ctx, field.Selections, res)
  128126. }
  128127. func (ec *executionContext) fieldContext_SubscriptionBillingPolicy_intervalCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  128128. fc = &graphql.FieldContext{
  128129. Object: "SubscriptionBillingPolicy",
  128130. Field: field,
  128131. IsMethod: false,
  128132. IsResolver: false,
  128133. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  128134. return nil, errors.New("field of type Int does not have child fields")
  128135. },
  128136. }
  128137. return fc, nil
  128138. }
  128139. func (ec *executionContext) _SubscriptionBillingPolicy_maxCycles(ctx context.Context, field graphql.CollectedField, obj *SubscriptionBillingPolicy) (ret graphql.Marshaler) {
  128140. fc, err := ec.fieldContext_SubscriptionBillingPolicy_maxCycles(ctx, field)
  128141. if err != nil {
  128142. return graphql.Null
  128143. }
  128144. ctx = graphql.WithFieldContext(ctx, fc)
  128145. defer func() {
  128146. if r := recover(); r != nil {
  128147. ec.Error(ctx, ec.Recover(ctx, r))
  128148. ret = graphql.Null
  128149. }
  128150. }()
  128151. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  128152. ctx = rctx // use context from middleware stack in children
  128153. return obj.MaxCycles, nil
  128154. })
  128155. if err != nil {
  128156. ec.Error(ctx, err)
  128157. return graphql.Null
  128158. }
  128159. if resTmp == nil {
  128160. return graphql.Null
  128161. }
  128162. res := resTmp.(*int)
  128163. fc.Result = res
  128164. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  128165. }
  128166. func (ec *executionContext) fieldContext_SubscriptionBillingPolicy_maxCycles(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  128167. fc = &graphql.FieldContext{
  128168. Object: "SubscriptionBillingPolicy",
  128169. Field: field,
  128170. IsMethod: false,
  128171. IsResolver: false,
  128172. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  128173. return nil, errors.New("field of type Int does not have child fields")
  128174. },
  128175. }
  128176. return fc, nil
  128177. }
  128178. func (ec *executionContext) _SubscriptionBillingPolicy_minCycles(ctx context.Context, field graphql.CollectedField, obj *SubscriptionBillingPolicy) (ret graphql.Marshaler) {
  128179. fc, err := ec.fieldContext_SubscriptionBillingPolicy_minCycles(ctx, field)
  128180. if err != nil {
  128181. return graphql.Null
  128182. }
  128183. ctx = graphql.WithFieldContext(ctx, fc)
  128184. defer func() {
  128185. if r := recover(); r != nil {
  128186. ec.Error(ctx, ec.Recover(ctx, r))
  128187. ret = graphql.Null
  128188. }
  128189. }()
  128190. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  128191. ctx = rctx // use context from middleware stack in children
  128192. return obj.MinCycles, nil
  128193. })
  128194. if err != nil {
  128195. ec.Error(ctx, err)
  128196. return graphql.Null
  128197. }
  128198. if resTmp == nil {
  128199. return graphql.Null
  128200. }
  128201. res := resTmp.(*int)
  128202. fc.Result = res
  128203. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  128204. }
  128205. func (ec *executionContext) fieldContext_SubscriptionBillingPolicy_minCycles(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  128206. fc = &graphql.FieldContext{
  128207. Object: "SubscriptionBillingPolicy",
  128208. Field: field,
  128209. IsMethod: false,
  128210. IsResolver: false,
  128211. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  128212. return nil, errors.New("field of type Int does not have child fields")
  128213. },
  128214. }
  128215. return fc, nil
  128216. }
  128217. func (ec *executionContext) _SubscriptionContract_app(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContract) (ret graphql.Marshaler) {
  128218. fc, err := ec.fieldContext_SubscriptionContract_app(ctx, field)
  128219. if err != nil {
  128220. return graphql.Null
  128221. }
  128222. ctx = graphql.WithFieldContext(ctx, fc)
  128223. defer func() {
  128224. if r := recover(); r != nil {
  128225. ec.Error(ctx, ec.Recover(ctx, r))
  128226. ret = graphql.Null
  128227. }
  128228. }()
  128229. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  128230. ctx = rctx // use context from middleware stack in children
  128231. return obj.App, nil
  128232. })
  128233. if err != nil {
  128234. ec.Error(ctx, err)
  128235. return graphql.Null
  128236. }
  128237. if resTmp == nil {
  128238. return graphql.Null
  128239. }
  128240. res := resTmp.(*App)
  128241. fc.Result = res
  128242. return ec.marshalOApp2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐApp(ctx, field.Selections, res)
  128243. }
  128244. func (ec *executionContext) fieldContext_SubscriptionContract_app(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  128245. fc = &graphql.FieldContext{
  128246. Object: "SubscriptionContract",
  128247. Field: field,
  128248. IsMethod: false,
  128249. IsResolver: false,
  128250. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  128251. switch field.Name {
  128252. case "apiKey":
  128253. return ec.fieldContext_App_apiKey(ctx, field)
  128254. case "appStoreAppUrl":
  128255. return ec.fieldContext_App_appStoreAppUrl(ctx, field)
  128256. case "appStoreDeveloperUrl":
  128257. return ec.fieldContext_App_appStoreDeveloperUrl(ctx, field)
  128258. case "availableAccessScopes":
  128259. return ec.fieldContext_App_availableAccessScopes(ctx, field)
  128260. case "banner":
  128261. return ec.fieldContext_App_banner(ctx, field)
  128262. case "description":
  128263. return ec.fieldContext_App_description(ctx, field)
  128264. case "developerName":
  128265. return ec.fieldContext_App_developerName(ctx, field)
  128266. case "developerType":
  128267. return ec.fieldContext_App_developerType(ctx, field)
  128268. case "embedded":
  128269. return ec.fieldContext_App_embedded(ctx, field)
  128270. case "failedRequirements":
  128271. return ec.fieldContext_App_failedRequirements(ctx, field)
  128272. case "features":
  128273. return ec.fieldContext_App_features(ctx, field)
  128274. case "feedback":
  128275. return ec.fieldContext_App_feedback(ctx, field)
  128276. case "handle":
  128277. return ec.fieldContext_App_handle(ctx, field)
  128278. case "icon":
  128279. return ec.fieldContext_App_icon(ctx, field)
  128280. case "id":
  128281. return ec.fieldContext_App_id(ctx, field)
  128282. case "installUrl":
  128283. return ec.fieldContext_App_installUrl(ctx, field)
  128284. case "installation":
  128285. return ec.fieldContext_App_installation(ctx, field)
  128286. case "isPostPurchaseAppInUse":
  128287. return ec.fieldContext_App_isPostPurchaseAppInUse(ctx, field)
  128288. case "previouslyInstalled":
  128289. return ec.fieldContext_App_previouslyInstalled(ctx, field)
  128290. case "pricingDetails":
  128291. return ec.fieldContext_App_pricingDetails(ctx, field)
  128292. case "pricingDetailsSummary":
  128293. return ec.fieldContext_App_pricingDetailsSummary(ctx, field)
  128294. case "privacyPolicyUrl":
  128295. return ec.fieldContext_App_privacyPolicyUrl(ctx, field)
  128296. case "publicCategory":
  128297. return ec.fieldContext_App_publicCategory(ctx, field)
  128298. case "published":
  128299. return ec.fieldContext_App_published(ctx, field)
  128300. case "requestedAccessScopes":
  128301. return ec.fieldContext_App_requestedAccessScopes(ctx, field)
  128302. case "screenshots":
  128303. return ec.fieldContext_App_screenshots(ctx, field)
  128304. case "shopifyDeveloped":
  128305. return ec.fieldContext_App_shopifyDeveloped(ctx, field)
  128306. case "title":
  128307. return ec.fieldContext_App_title(ctx, field)
  128308. case "uninstallMessage":
  128309. return ec.fieldContext_App_uninstallMessage(ctx, field)
  128310. case "webhookApiVersion":
  128311. return ec.fieldContext_App_webhookApiVersion(ctx, field)
  128312. }
  128313. return nil, fmt.Errorf("no field named %q was found under type App", field.Name)
  128314. },
  128315. }
  128316. return fc, nil
  128317. }
  128318. func (ec *executionContext) _SubscriptionContract_appAdminUrl(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContract) (ret graphql.Marshaler) {
  128319. fc, err := ec.fieldContext_SubscriptionContract_appAdminUrl(ctx, field)
  128320. if err != nil {
  128321. return graphql.Null
  128322. }
  128323. ctx = graphql.WithFieldContext(ctx, fc)
  128324. defer func() {
  128325. if r := recover(); r != nil {
  128326. ec.Error(ctx, ec.Recover(ctx, r))
  128327. ret = graphql.Null
  128328. }
  128329. }()
  128330. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  128331. ctx = rctx // use context from middleware stack in children
  128332. return obj.AppAdminURL, nil
  128333. })
  128334. if err != nil {
  128335. ec.Error(ctx, err)
  128336. return graphql.Null
  128337. }
  128338. if resTmp == nil {
  128339. return graphql.Null
  128340. }
  128341. res := resTmp.(*string)
  128342. fc.Result = res
  128343. return ec.marshalOURL2ᚖstring(ctx, field.Selections, res)
  128344. }
  128345. func (ec *executionContext) fieldContext_SubscriptionContract_appAdminUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  128346. fc = &graphql.FieldContext{
  128347. Object: "SubscriptionContract",
  128348. Field: field,
  128349. IsMethod: false,
  128350. IsResolver: false,
  128351. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  128352. return nil, errors.New("field of type URL does not have child fields")
  128353. },
  128354. }
  128355. return fc, nil
  128356. }
  128357. func (ec *executionContext) _SubscriptionContract_billingAttempts(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContract) (ret graphql.Marshaler) {
  128358. fc, err := ec.fieldContext_SubscriptionContract_billingAttempts(ctx, field)
  128359. if err != nil {
  128360. return graphql.Null
  128361. }
  128362. ctx = graphql.WithFieldContext(ctx, fc)
  128363. defer func() {
  128364. if r := recover(); r != nil {
  128365. ec.Error(ctx, ec.Recover(ctx, r))
  128366. ret = graphql.Null
  128367. }
  128368. }()
  128369. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  128370. ctx = rctx // use context from middleware stack in children
  128371. return obj.BillingAttempts, nil
  128372. })
  128373. if err != nil {
  128374. ec.Error(ctx, err)
  128375. return graphql.Null
  128376. }
  128377. if resTmp == nil {
  128378. if !graphql.HasFieldError(ctx, fc) {
  128379. ec.Errorf(ctx, "must not be null")
  128380. }
  128381. return graphql.Null
  128382. }
  128383. res := resTmp.(*SubscriptionBillingAttemptConnection)
  128384. fc.Result = res
  128385. return ec.marshalNSubscriptionBillingAttemptConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionBillingAttemptConnection(ctx, field.Selections, res)
  128386. }
  128387. func (ec *executionContext) fieldContext_SubscriptionContract_billingAttempts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  128388. fc = &graphql.FieldContext{
  128389. Object: "SubscriptionContract",
  128390. Field: field,
  128391. IsMethod: false,
  128392. IsResolver: false,
  128393. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  128394. switch field.Name {
  128395. case "edges":
  128396. return ec.fieldContext_SubscriptionBillingAttemptConnection_edges(ctx, field)
  128397. case "nodes":
  128398. return ec.fieldContext_SubscriptionBillingAttemptConnection_nodes(ctx, field)
  128399. case "pageInfo":
  128400. return ec.fieldContext_SubscriptionBillingAttemptConnection_pageInfo(ctx, field)
  128401. }
  128402. return nil, fmt.Errorf("no field named %q was found under type SubscriptionBillingAttemptConnection", field.Name)
  128403. },
  128404. }
  128405. defer func() {
  128406. if r := recover(); r != nil {
  128407. err = ec.Recover(ctx, r)
  128408. ec.Error(ctx, err)
  128409. }
  128410. }()
  128411. ctx = graphql.WithFieldContext(ctx, fc)
  128412. if fc.Args, err = ec.field_SubscriptionContract_billingAttempts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  128413. ec.Error(ctx, err)
  128414. return
  128415. }
  128416. return fc, nil
  128417. }
  128418. func (ec *executionContext) _SubscriptionContract_billingPolicy(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContract) (ret graphql.Marshaler) {
  128419. fc, err := ec.fieldContext_SubscriptionContract_billingPolicy(ctx, field)
  128420. if err != nil {
  128421. return graphql.Null
  128422. }
  128423. ctx = graphql.WithFieldContext(ctx, fc)
  128424. defer func() {
  128425. if r := recover(); r != nil {
  128426. ec.Error(ctx, ec.Recover(ctx, r))
  128427. ret = graphql.Null
  128428. }
  128429. }()
  128430. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  128431. ctx = rctx // use context from middleware stack in children
  128432. return obj.BillingPolicy, nil
  128433. })
  128434. if err != nil {
  128435. ec.Error(ctx, err)
  128436. return graphql.Null
  128437. }
  128438. if resTmp == nil {
  128439. if !graphql.HasFieldError(ctx, fc) {
  128440. ec.Errorf(ctx, "must not be null")
  128441. }
  128442. return graphql.Null
  128443. }
  128444. res := resTmp.(*SubscriptionBillingPolicy)
  128445. fc.Result = res
  128446. return ec.marshalNSubscriptionBillingPolicy2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionBillingPolicy(ctx, field.Selections, res)
  128447. }
  128448. func (ec *executionContext) fieldContext_SubscriptionContract_billingPolicy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  128449. fc = &graphql.FieldContext{
  128450. Object: "SubscriptionContract",
  128451. Field: field,
  128452. IsMethod: false,
  128453. IsResolver: false,
  128454. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  128455. switch field.Name {
  128456. case "anchors":
  128457. return ec.fieldContext_SubscriptionBillingPolicy_anchors(ctx, field)
  128458. case "interval":
  128459. return ec.fieldContext_SubscriptionBillingPolicy_interval(ctx, field)
  128460. case "intervalCount":
  128461. return ec.fieldContext_SubscriptionBillingPolicy_intervalCount(ctx, field)
  128462. case "maxCycles":
  128463. return ec.fieldContext_SubscriptionBillingPolicy_maxCycles(ctx, field)
  128464. case "minCycles":
  128465. return ec.fieldContext_SubscriptionBillingPolicy_minCycles(ctx, field)
  128466. }
  128467. return nil, fmt.Errorf("no field named %q was found under type SubscriptionBillingPolicy", field.Name)
  128468. },
  128469. }
  128470. return fc, nil
  128471. }
  128472. func (ec *executionContext) _SubscriptionContract_createdAt(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContract) (ret graphql.Marshaler) {
  128473. fc, err := ec.fieldContext_SubscriptionContract_createdAt(ctx, field)
  128474. if err != nil {
  128475. return graphql.Null
  128476. }
  128477. ctx = graphql.WithFieldContext(ctx, fc)
  128478. defer func() {
  128479. if r := recover(); r != nil {
  128480. ec.Error(ctx, ec.Recover(ctx, r))
  128481. ret = graphql.Null
  128482. }
  128483. }()
  128484. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  128485. ctx = rctx // use context from middleware stack in children
  128486. return obj.CreatedAt, nil
  128487. })
  128488. if err != nil {
  128489. ec.Error(ctx, err)
  128490. return graphql.Null
  128491. }
  128492. if resTmp == nil {
  128493. if !graphql.HasFieldError(ctx, fc) {
  128494. ec.Errorf(ctx, "must not be null")
  128495. }
  128496. return graphql.Null
  128497. }
  128498. res := resTmp.(string)
  128499. fc.Result = res
  128500. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  128501. }
  128502. func (ec *executionContext) fieldContext_SubscriptionContract_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  128503. fc = &graphql.FieldContext{
  128504. Object: "SubscriptionContract",
  128505. Field: field,
  128506. IsMethod: false,
  128507. IsResolver: false,
  128508. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  128509. return nil, errors.New("field of type DateTime does not have child fields")
  128510. },
  128511. }
  128512. return fc, nil
  128513. }
  128514. func (ec *executionContext) _SubscriptionContract_currencyCode(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContract) (ret graphql.Marshaler) {
  128515. fc, err := ec.fieldContext_SubscriptionContract_currencyCode(ctx, field)
  128516. if err != nil {
  128517. return graphql.Null
  128518. }
  128519. ctx = graphql.WithFieldContext(ctx, fc)
  128520. defer func() {
  128521. if r := recover(); r != nil {
  128522. ec.Error(ctx, ec.Recover(ctx, r))
  128523. ret = graphql.Null
  128524. }
  128525. }()
  128526. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  128527. ctx = rctx // use context from middleware stack in children
  128528. return obj.CurrencyCode, nil
  128529. })
  128530. if err != nil {
  128531. ec.Error(ctx, err)
  128532. return graphql.Null
  128533. }
  128534. if resTmp == nil {
  128535. if !graphql.HasFieldError(ctx, fc) {
  128536. ec.Errorf(ctx, "must not be null")
  128537. }
  128538. return graphql.Null
  128539. }
  128540. res := resTmp.(CurrencyCode)
  128541. fc.Result = res
  128542. return ec.marshalNCurrencyCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencyCode(ctx, field.Selections, res)
  128543. }
  128544. func (ec *executionContext) fieldContext_SubscriptionContract_currencyCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  128545. fc = &graphql.FieldContext{
  128546. Object: "SubscriptionContract",
  128547. Field: field,
  128548. IsMethod: false,
  128549. IsResolver: false,
  128550. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  128551. return nil, errors.New("field of type CurrencyCode does not have child fields")
  128552. },
  128553. }
  128554. return fc, nil
  128555. }
  128556. func (ec *executionContext) _SubscriptionContract_customAttributes(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContract) (ret graphql.Marshaler) {
  128557. fc, err := ec.fieldContext_SubscriptionContract_customAttributes(ctx, field)
  128558. if err != nil {
  128559. return graphql.Null
  128560. }
  128561. ctx = graphql.WithFieldContext(ctx, fc)
  128562. defer func() {
  128563. if r := recover(); r != nil {
  128564. ec.Error(ctx, ec.Recover(ctx, r))
  128565. ret = graphql.Null
  128566. }
  128567. }()
  128568. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  128569. ctx = rctx // use context from middleware stack in children
  128570. return obj.CustomAttributes, nil
  128571. })
  128572. if err != nil {
  128573. ec.Error(ctx, err)
  128574. return graphql.Null
  128575. }
  128576. if resTmp == nil {
  128577. if !graphql.HasFieldError(ctx, fc) {
  128578. ec.Errorf(ctx, "must not be null")
  128579. }
  128580. return graphql.Null
  128581. }
  128582. res := resTmp.([]*Attribute)
  128583. fc.Result = res
  128584. return ec.marshalNAttribute2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAttributeᚄ(ctx, field.Selections, res)
  128585. }
  128586. func (ec *executionContext) fieldContext_SubscriptionContract_customAttributes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  128587. fc = &graphql.FieldContext{
  128588. Object: "SubscriptionContract",
  128589. Field: field,
  128590. IsMethod: false,
  128591. IsResolver: false,
  128592. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  128593. switch field.Name {
  128594. case "key":
  128595. return ec.fieldContext_Attribute_key(ctx, field)
  128596. case "value":
  128597. return ec.fieldContext_Attribute_value(ctx, field)
  128598. }
  128599. return nil, fmt.Errorf("no field named %q was found under type Attribute", field.Name)
  128600. },
  128601. }
  128602. return fc, nil
  128603. }
  128604. func (ec *executionContext) _SubscriptionContract_customer(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContract) (ret graphql.Marshaler) {
  128605. fc, err := ec.fieldContext_SubscriptionContract_customer(ctx, field)
  128606. if err != nil {
  128607. return graphql.Null
  128608. }
  128609. ctx = graphql.WithFieldContext(ctx, fc)
  128610. defer func() {
  128611. if r := recover(); r != nil {
  128612. ec.Error(ctx, ec.Recover(ctx, r))
  128613. ret = graphql.Null
  128614. }
  128615. }()
  128616. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  128617. ctx = rctx // use context from middleware stack in children
  128618. return obj.Customer, nil
  128619. })
  128620. if err != nil {
  128621. ec.Error(ctx, err)
  128622. return graphql.Null
  128623. }
  128624. if resTmp == nil {
  128625. return graphql.Null
  128626. }
  128627. res := resTmp.(*Customer)
  128628. fc.Result = res
  128629. return ec.marshalOCustomer2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomer(ctx, field.Selections, res)
  128630. }
  128631. func (ec *executionContext) fieldContext_SubscriptionContract_customer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  128632. fc = &graphql.FieldContext{
  128633. Object: "SubscriptionContract",
  128634. Field: field,
  128635. IsMethod: false,
  128636. IsResolver: false,
  128637. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  128638. switch field.Name {
  128639. case "addresses":
  128640. return ec.fieldContext_Customer_addresses(ctx, field)
  128641. case "amountSpent":
  128642. return ec.fieldContext_Customer_amountSpent(ctx, field)
  128643. case "averageOrderAmountV2":
  128644. return ec.fieldContext_Customer_averageOrderAmountV2(ctx, field)
  128645. case "canDelete":
  128646. return ec.fieldContext_Customer_canDelete(ctx, field)
  128647. case "companyContactProfiles":
  128648. return ec.fieldContext_Customer_companyContactProfiles(ctx, field)
  128649. case "createdAt":
  128650. return ec.fieldContext_Customer_createdAt(ctx, field)
  128651. case "defaultAddress":
  128652. return ec.fieldContext_Customer_defaultAddress(ctx, field)
  128653. case "displayName":
  128654. return ec.fieldContext_Customer_displayName(ctx, field)
  128655. case "email":
  128656. return ec.fieldContext_Customer_email(ctx, field)
  128657. case "emailMarketingConsent":
  128658. return ec.fieldContext_Customer_emailMarketingConsent(ctx, field)
  128659. case "events":
  128660. return ec.fieldContext_Customer_events(ctx, field)
  128661. case "firstName":
  128662. return ec.fieldContext_Customer_firstName(ctx, field)
  128663. case "hasTimelineComment":
  128664. return ec.fieldContext_Customer_hasTimelineComment(ctx, field)
  128665. case "id":
  128666. return ec.fieldContext_Customer_id(ctx, field)
  128667. case "image":
  128668. return ec.fieldContext_Customer_image(ctx, field)
  128669. case "lastName":
  128670. return ec.fieldContext_Customer_lastName(ctx, field)
  128671. case "lastOrder":
  128672. return ec.fieldContext_Customer_lastOrder(ctx, field)
  128673. case "legacyResourceId":
  128674. return ec.fieldContext_Customer_legacyResourceId(ctx, field)
  128675. case "lifetimeDuration":
  128676. return ec.fieldContext_Customer_lifetimeDuration(ctx, field)
  128677. case "locale":
  128678. return ec.fieldContext_Customer_locale(ctx, field)
  128679. case "market":
  128680. return ec.fieldContext_Customer_market(ctx, field)
  128681. case "metafield":
  128682. return ec.fieldContext_Customer_metafield(ctx, field)
  128683. case "metafieldDefinitions":
  128684. return ec.fieldContext_Customer_metafieldDefinitions(ctx, field)
  128685. case "metafields":
  128686. return ec.fieldContext_Customer_metafields(ctx, field)
  128687. case "multipassIdentifier":
  128688. return ec.fieldContext_Customer_multipassIdentifier(ctx, field)
  128689. case "note":
  128690. return ec.fieldContext_Customer_note(ctx, field)
  128691. case "numberOfOrders":
  128692. return ec.fieldContext_Customer_numberOfOrders(ctx, field)
  128693. case "orders":
  128694. return ec.fieldContext_Customer_orders(ctx, field)
  128695. case "paymentMethods":
  128696. return ec.fieldContext_Customer_paymentMethods(ctx, field)
  128697. case "phone":
  128698. return ec.fieldContext_Customer_phone(ctx, field)
  128699. case "privateMetafield":
  128700. return ec.fieldContext_Customer_privateMetafield(ctx, field)
  128701. case "privateMetafields":
  128702. return ec.fieldContext_Customer_privateMetafields(ctx, field)
  128703. case "productSubscriberStatus":
  128704. return ec.fieldContext_Customer_productSubscriberStatus(ctx, field)
  128705. case "smsMarketingConsent":
  128706. return ec.fieldContext_Customer_smsMarketingConsent(ctx, field)
  128707. case "state":
  128708. return ec.fieldContext_Customer_state(ctx, field)
  128709. case "statistics":
  128710. return ec.fieldContext_Customer_statistics(ctx, field)
  128711. case "subscriptionContracts":
  128712. return ec.fieldContext_Customer_subscriptionContracts(ctx, field)
  128713. case "tags":
  128714. return ec.fieldContext_Customer_tags(ctx, field)
  128715. case "taxExempt":
  128716. return ec.fieldContext_Customer_taxExempt(ctx, field)
  128717. case "taxExemptions":
  128718. return ec.fieldContext_Customer_taxExemptions(ctx, field)
  128719. case "unsubscribeUrl":
  128720. return ec.fieldContext_Customer_unsubscribeUrl(ctx, field)
  128721. case "updatedAt":
  128722. return ec.fieldContext_Customer_updatedAt(ctx, field)
  128723. case "validEmailAddress":
  128724. return ec.fieldContext_Customer_validEmailAddress(ctx, field)
  128725. case "verifiedEmail":
  128726. return ec.fieldContext_Customer_verifiedEmail(ctx, field)
  128727. }
  128728. return nil, fmt.Errorf("no field named %q was found under type Customer", field.Name)
  128729. },
  128730. }
  128731. return fc, nil
  128732. }
  128733. func (ec *executionContext) _SubscriptionContract_customerPaymentMethod(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContract) (ret graphql.Marshaler) {
  128734. fc, err := ec.fieldContext_SubscriptionContract_customerPaymentMethod(ctx, field)
  128735. if err != nil {
  128736. return graphql.Null
  128737. }
  128738. ctx = graphql.WithFieldContext(ctx, fc)
  128739. defer func() {
  128740. if r := recover(); r != nil {
  128741. ec.Error(ctx, ec.Recover(ctx, r))
  128742. ret = graphql.Null
  128743. }
  128744. }()
  128745. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  128746. ctx = rctx // use context from middleware stack in children
  128747. return obj.CustomerPaymentMethod, nil
  128748. })
  128749. if err != nil {
  128750. ec.Error(ctx, err)
  128751. return graphql.Null
  128752. }
  128753. if resTmp == nil {
  128754. return graphql.Null
  128755. }
  128756. res := resTmp.(*CustomerPaymentMethod)
  128757. fc.Result = res
  128758. return ec.marshalOCustomerPaymentMethod2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerPaymentMethod(ctx, field.Selections, res)
  128759. }
  128760. func (ec *executionContext) fieldContext_SubscriptionContract_customerPaymentMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  128761. fc = &graphql.FieldContext{
  128762. Object: "SubscriptionContract",
  128763. Field: field,
  128764. IsMethod: false,
  128765. IsResolver: false,
  128766. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  128767. switch field.Name {
  128768. case "customer":
  128769. return ec.fieldContext_CustomerPaymentMethod_customer(ctx, field)
  128770. case "id":
  128771. return ec.fieldContext_CustomerPaymentMethod_id(ctx, field)
  128772. case "instrument":
  128773. return ec.fieldContext_CustomerPaymentMethod_instrument(ctx, field)
  128774. case "revokedAt":
  128775. return ec.fieldContext_CustomerPaymentMethod_revokedAt(ctx, field)
  128776. case "revokedReason":
  128777. return ec.fieldContext_CustomerPaymentMethod_revokedReason(ctx, field)
  128778. case "subscriptionContracts":
  128779. return ec.fieldContext_CustomerPaymentMethod_subscriptionContracts(ctx, field)
  128780. }
  128781. return nil, fmt.Errorf("no field named %q was found under type CustomerPaymentMethod", field.Name)
  128782. },
  128783. }
  128784. defer func() {
  128785. if r := recover(); r != nil {
  128786. err = ec.Recover(ctx, r)
  128787. ec.Error(ctx, err)
  128788. }
  128789. }()
  128790. ctx = graphql.WithFieldContext(ctx, fc)
  128791. if fc.Args, err = ec.field_SubscriptionContract_customerPaymentMethod_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  128792. ec.Error(ctx, err)
  128793. return
  128794. }
  128795. return fc, nil
  128796. }
  128797. func (ec *executionContext) _SubscriptionContract_deliveryMethod(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContract) (ret graphql.Marshaler) {
  128798. fc, err := ec.fieldContext_SubscriptionContract_deliveryMethod(ctx, field)
  128799. if err != nil {
  128800. return graphql.Null
  128801. }
  128802. ctx = graphql.WithFieldContext(ctx, fc)
  128803. defer func() {
  128804. if r := recover(); r != nil {
  128805. ec.Error(ctx, ec.Recover(ctx, r))
  128806. ret = graphql.Null
  128807. }
  128808. }()
  128809. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  128810. ctx = rctx // use context from middleware stack in children
  128811. return obj.DeliveryMethod, nil
  128812. })
  128813. if err != nil {
  128814. ec.Error(ctx, err)
  128815. return graphql.Null
  128816. }
  128817. if resTmp == nil {
  128818. return graphql.Null
  128819. }
  128820. res := resTmp.(SubscriptionDeliveryMethod)
  128821. fc.Result = res
  128822. return ec.marshalOSubscriptionDeliveryMethod2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionDeliveryMethod(ctx, field.Selections, res)
  128823. }
  128824. func (ec *executionContext) fieldContext_SubscriptionContract_deliveryMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  128825. fc = &graphql.FieldContext{
  128826. Object: "SubscriptionContract",
  128827. Field: field,
  128828. IsMethod: false,
  128829. IsResolver: false,
  128830. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  128831. return nil, errors.New("field of type SubscriptionDeliveryMethod does not have child fields")
  128832. },
  128833. }
  128834. return fc, nil
  128835. }
  128836. func (ec *executionContext) _SubscriptionContract_deliveryPolicy(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContract) (ret graphql.Marshaler) {
  128837. fc, err := ec.fieldContext_SubscriptionContract_deliveryPolicy(ctx, field)
  128838. if err != nil {
  128839. return graphql.Null
  128840. }
  128841. ctx = graphql.WithFieldContext(ctx, fc)
  128842. defer func() {
  128843. if r := recover(); r != nil {
  128844. ec.Error(ctx, ec.Recover(ctx, r))
  128845. ret = graphql.Null
  128846. }
  128847. }()
  128848. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  128849. ctx = rctx // use context from middleware stack in children
  128850. return obj.DeliveryPolicy, nil
  128851. })
  128852. if err != nil {
  128853. ec.Error(ctx, err)
  128854. return graphql.Null
  128855. }
  128856. if resTmp == nil {
  128857. if !graphql.HasFieldError(ctx, fc) {
  128858. ec.Errorf(ctx, "must not be null")
  128859. }
  128860. return graphql.Null
  128861. }
  128862. res := resTmp.(*SubscriptionDeliveryPolicy)
  128863. fc.Result = res
  128864. return ec.marshalNSubscriptionDeliveryPolicy2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionDeliveryPolicy(ctx, field.Selections, res)
  128865. }
  128866. func (ec *executionContext) fieldContext_SubscriptionContract_deliveryPolicy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  128867. fc = &graphql.FieldContext{
  128868. Object: "SubscriptionContract",
  128869. Field: field,
  128870. IsMethod: false,
  128871. IsResolver: false,
  128872. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  128873. switch field.Name {
  128874. case "anchors":
  128875. return ec.fieldContext_SubscriptionDeliveryPolicy_anchors(ctx, field)
  128876. case "interval":
  128877. return ec.fieldContext_SubscriptionDeliveryPolicy_interval(ctx, field)
  128878. case "intervalCount":
  128879. return ec.fieldContext_SubscriptionDeliveryPolicy_intervalCount(ctx, field)
  128880. }
  128881. return nil, fmt.Errorf("no field named %q was found under type SubscriptionDeliveryPolicy", field.Name)
  128882. },
  128883. }
  128884. return fc, nil
  128885. }
  128886. func (ec *executionContext) _SubscriptionContract_deliveryPrice(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContract) (ret graphql.Marshaler) {
  128887. fc, err := ec.fieldContext_SubscriptionContract_deliveryPrice(ctx, field)
  128888. if err != nil {
  128889. return graphql.Null
  128890. }
  128891. ctx = graphql.WithFieldContext(ctx, fc)
  128892. defer func() {
  128893. if r := recover(); r != nil {
  128894. ec.Error(ctx, ec.Recover(ctx, r))
  128895. ret = graphql.Null
  128896. }
  128897. }()
  128898. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  128899. ctx = rctx // use context from middleware stack in children
  128900. return obj.DeliveryPrice, nil
  128901. })
  128902. if err != nil {
  128903. ec.Error(ctx, err)
  128904. return graphql.Null
  128905. }
  128906. if resTmp == nil {
  128907. if !graphql.HasFieldError(ctx, fc) {
  128908. ec.Errorf(ctx, "must not be null")
  128909. }
  128910. return graphql.Null
  128911. }
  128912. res := resTmp.(*MoneyV2)
  128913. fc.Result = res
  128914. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  128915. }
  128916. func (ec *executionContext) fieldContext_SubscriptionContract_deliveryPrice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  128917. fc = &graphql.FieldContext{
  128918. Object: "SubscriptionContract",
  128919. Field: field,
  128920. IsMethod: false,
  128921. IsResolver: false,
  128922. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  128923. switch field.Name {
  128924. case "amount":
  128925. return ec.fieldContext_MoneyV2_amount(ctx, field)
  128926. case "currencyCode":
  128927. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  128928. }
  128929. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  128930. },
  128931. }
  128932. return fc, nil
  128933. }
  128934. func (ec *executionContext) _SubscriptionContract_discounts(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContract) (ret graphql.Marshaler) {
  128935. fc, err := ec.fieldContext_SubscriptionContract_discounts(ctx, field)
  128936. if err != nil {
  128937. return graphql.Null
  128938. }
  128939. ctx = graphql.WithFieldContext(ctx, fc)
  128940. defer func() {
  128941. if r := recover(); r != nil {
  128942. ec.Error(ctx, ec.Recover(ctx, r))
  128943. ret = graphql.Null
  128944. }
  128945. }()
  128946. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  128947. ctx = rctx // use context from middleware stack in children
  128948. return obj.Discounts, nil
  128949. })
  128950. if err != nil {
  128951. ec.Error(ctx, err)
  128952. return graphql.Null
  128953. }
  128954. if resTmp == nil {
  128955. if !graphql.HasFieldError(ctx, fc) {
  128956. ec.Errorf(ctx, "must not be null")
  128957. }
  128958. return graphql.Null
  128959. }
  128960. res := resTmp.(*SubscriptionManualDiscountConnection)
  128961. fc.Result = res
  128962. return ec.marshalNSubscriptionManualDiscountConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionManualDiscountConnection(ctx, field.Selections, res)
  128963. }
  128964. func (ec *executionContext) fieldContext_SubscriptionContract_discounts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  128965. fc = &graphql.FieldContext{
  128966. Object: "SubscriptionContract",
  128967. Field: field,
  128968. IsMethod: false,
  128969. IsResolver: false,
  128970. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  128971. switch field.Name {
  128972. case "edges":
  128973. return ec.fieldContext_SubscriptionManualDiscountConnection_edges(ctx, field)
  128974. case "nodes":
  128975. return ec.fieldContext_SubscriptionManualDiscountConnection_nodes(ctx, field)
  128976. case "pageInfo":
  128977. return ec.fieldContext_SubscriptionManualDiscountConnection_pageInfo(ctx, field)
  128978. }
  128979. return nil, fmt.Errorf("no field named %q was found under type SubscriptionManualDiscountConnection", field.Name)
  128980. },
  128981. }
  128982. defer func() {
  128983. if r := recover(); r != nil {
  128984. err = ec.Recover(ctx, r)
  128985. ec.Error(ctx, err)
  128986. }
  128987. }()
  128988. ctx = graphql.WithFieldContext(ctx, fc)
  128989. if fc.Args, err = ec.field_SubscriptionContract_discounts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  128990. ec.Error(ctx, err)
  128991. return
  128992. }
  128993. return fc, nil
  128994. }
  128995. func (ec *executionContext) _SubscriptionContract_id(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContract) (ret graphql.Marshaler) {
  128996. fc, err := ec.fieldContext_SubscriptionContract_id(ctx, field)
  128997. if err != nil {
  128998. return graphql.Null
  128999. }
  129000. ctx = graphql.WithFieldContext(ctx, fc)
  129001. defer func() {
  129002. if r := recover(); r != nil {
  129003. ec.Error(ctx, ec.Recover(ctx, r))
  129004. ret = graphql.Null
  129005. }
  129006. }()
  129007. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  129008. ctx = rctx // use context from middleware stack in children
  129009. return obj.ID, nil
  129010. })
  129011. if err != nil {
  129012. ec.Error(ctx, err)
  129013. return graphql.Null
  129014. }
  129015. if resTmp == nil {
  129016. if !graphql.HasFieldError(ctx, fc) {
  129017. ec.Errorf(ctx, "must not be null")
  129018. }
  129019. return graphql.Null
  129020. }
  129021. res := resTmp.(string)
  129022. fc.Result = res
  129023. return ec.marshalNID2string(ctx, field.Selections, res)
  129024. }
  129025. func (ec *executionContext) fieldContext_SubscriptionContract_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  129026. fc = &graphql.FieldContext{
  129027. Object: "SubscriptionContract",
  129028. Field: field,
  129029. IsMethod: false,
  129030. IsResolver: false,
  129031. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  129032. return nil, errors.New("field of type ID does not have child fields")
  129033. },
  129034. }
  129035. return fc, nil
  129036. }
  129037. func (ec *executionContext) _SubscriptionContract_lastPaymentStatus(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContract) (ret graphql.Marshaler) {
  129038. fc, err := ec.fieldContext_SubscriptionContract_lastPaymentStatus(ctx, field)
  129039. if err != nil {
  129040. return graphql.Null
  129041. }
  129042. ctx = graphql.WithFieldContext(ctx, fc)
  129043. defer func() {
  129044. if r := recover(); r != nil {
  129045. ec.Error(ctx, ec.Recover(ctx, r))
  129046. ret = graphql.Null
  129047. }
  129048. }()
  129049. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  129050. ctx = rctx // use context from middleware stack in children
  129051. return obj.LastPaymentStatus, nil
  129052. })
  129053. if err != nil {
  129054. ec.Error(ctx, err)
  129055. return graphql.Null
  129056. }
  129057. if resTmp == nil {
  129058. return graphql.Null
  129059. }
  129060. res := resTmp.(*SubscriptionContractLastPaymentStatus)
  129061. fc.Result = res
  129062. return ec.marshalOSubscriptionContractLastPaymentStatus2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionContractLastPaymentStatus(ctx, field.Selections, res)
  129063. }
  129064. func (ec *executionContext) fieldContext_SubscriptionContract_lastPaymentStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  129065. fc = &graphql.FieldContext{
  129066. Object: "SubscriptionContract",
  129067. Field: field,
  129068. IsMethod: false,
  129069. IsResolver: false,
  129070. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  129071. return nil, errors.New("field of type SubscriptionContractLastPaymentStatus does not have child fields")
  129072. },
  129073. }
  129074. return fc, nil
  129075. }
  129076. func (ec *executionContext) _SubscriptionContract_lineCount(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContract) (ret graphql.Marshaler) {
  129077. fc, err := ec.fieldContext_SubscriptionContract_lineCount(ctx, field)
  129078. if err != nil {
  129079. return graphql.Null
  129080. }
  129081. ctx = graphql.WithFieldContext(ctx, fc)
  129082. defer func() {
  129083. if r := recover(); r != nil {
  129084. ec.Error(ctx, ec.Recover(ctx, r))
  129085. ret = graphql.Null
  129086. }
  129087. }()
  129088. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  129089. ctx = rctx // use context from middleware stack in children
  129090. return obj.LineCount, nil
  129091. })
  129092. if err != nil {
  129093. ec.Error(ctx, err)
  129094. return graphql.Null
  129095. }
  129096. if resTmp == nil {
  129097. if !graphql.HasFieldError(ctx, fc) {
  129098. ec.Errorf(ctx, "must not be null")
  129099. }
  129100. return graphql.Null
  129101. }
  129102. res := resTmp.(int)
  129103. fc.Result = res
  129104. return ec.marshalNInt2int(ctx, field.Selections, res)
  129105. }
  129106. func (ec *executionContext) fieldContext_SubscriptionContract_lineCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  129107. fc = &graphql.FieldContext{
  129108. Object: "SubscriptionContract",
  129109. Field: field,
  129110. IsMethod: false,
  129111. IsResolver: false,
  129112. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  129113. return nil, errors.New("field of type Int does not have child fields")
  129114. },
  129115. }
  129116. return fc, nil
  129117. }
  129118. func (ec *executionContext) _SubscriptionContract_lines(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContract) (ret graphql.Marshaler) {
  129119. fc, err := ec.fieldContext_SubscriptionContract_lines(ctx, field)
  129120. if err != nil {
  129121. return graphql.Null
  129122. }
  129123. ctx = graphql.WithFieldContext(ctx, fc)
  129124. defer func() {
  129125. if r := recover(); r != nil {
  129126. ec.Error(ctx, ec.Recover(ctx, r))
  129127. ret = graphql.Null
  129128. }
  129129. }()
  129130. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  129131. ctx = rctx // use context from middleware stack in children
  129132. return obj.Lines, nil
  129133. })
  129134. if err != nil {
  129135. ec.Error(ctx, err)
  129136. return graphql.Null
  129137. }
  129138. if resTmp == nil {
  129139. if !graphql.HasFieldError(ctx, fc) {
  129140. ec.Errorf(ctx, "must not be null")
  129141. }
  129142. return graphql.Null
  129143. }
  129144. res := resTmp.(*SubscriptionLineConnection)
  129145. fc.Result = res
  129146. return ec.marshalNSubscriptionLineConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionLineConnection(ctx, field.Selections, res)
  129147. }
  129148. func (ec *executionContext) fieldContext_SubscriptionContract_lines(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  129149. fc = &graphql.FieldContext{
  129150. Object: "SubscriptionContract",
  129151. Field: field,
  129152. IsMethod: false,
  129153. IsResolver: false,
  129154. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  129155. switch field.Name {
  129156. case "edges":
  129157. return ec.fieldContext_SubscriptionLineConnection_edges(ctx, field)
  129158. case "nodes":
  129159. return ec.fieldContext_SubscriptionLineConnection_nodes(ctx, field)
  129160. case "pageInfo":
  129161. return ec.fieldContext_SubscriptionLineConnection_pageInfo(ctx, field)
  129162. }
  129163. return nil, fmt.Errorf("no field named %q was found under type SubscriptionLineConnection", field.Name)
  129164. },
  129165. }
  129166. defer func() {
  129167. if r := recover(); r != nil {
  129168. err = ec.Recover(ctx, r)
  129169. ec.Error(ctx, err)
  129170. }
  129171. }()
  129172. ctx = graphql.WithFieldContext(ctx, fc)
  129173. if fc.Args, err = ec.field_SubscriptionContract_lines_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  129174. ec.Error(ctx, err)
  129175. return
  129176. }
  129177. return fc, nil
  129178. }
  129179. func (ec *executionContext) _SubscriptionContract_nextBillingDate(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContract) (ret graphql.Marshaler) {
  129180. fc, err := ec.fieldContext_SubscriptionContract_nextBillingDate(ctx, field)
  129181. if err != nil {
  129182. return graphql.Null
  129183. }
  129184. ctx = graphql.WithFieldContext(ctx, fc)
  129185. defer func() {
  129186. if r := recover(); r != nil {
  129187. ec.Error(ctx, ec.Recover(ctx, r))
  129188. ret = graphql.Null
  129189. }
  129190. }()
  129191. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  129192. ctx = rctx // use context from middleware stack in children
  129193. return obj.NextBillingDate, nil
  129194. })
  129195. if err != nil {
  129196. ec.Error(ctx, err)
  129197. return graphql.Null
  129198. }
  129199. if resTmp == nil {
  129200. return graphql.Null
  129201. }
  129202. res := resTmp.(*string)
  129203. fc.Result = res
  129204. return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res)
  129205. }
  129206. func (ec *executionContext) fieldContext_SubscriptionContract_nextBillingDate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  129207. fc = &graphql.FieldContext{
  129208. Object: "SubscriptionContract",
  129209. Field: field,
  129210. IsMethod: false,
  129211. IsResolver: false,
  129212. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  129213. return nil, errors.New("field of type DateTime does not have child fields")
  129214. },
  129215. }
  129216. return fc, nil
  129217. }
  129218. func (ec *executionContext) _SubscriptionContract_note(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContract) (ret graphql.Marshaler) {
  129219. fc, err := ec.fieldContext_SubscriptionContract_note(ctx, field)
  129220. if err != nil {
  129221. return graphql.Null
  129222. }
  129223. ctx = graphql.WithFieldContext(ctx, fc)
  129224. defer func() {
  129225. if r := recover(); r != nil {
  129226. ec.Error(ctx, ec.Recover(ctx, r))
  129227. ret = graphql.Null
  129228. }
  129229. }()
  129230. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  129231. ctx = rctx // use context from middleware stack in children
  129232. return obj.Note, nil
  129233. })
  129234. if err != nil {
  129235. ec.Error(ctx, err)
  129236. return graphql.Null
  129237. }
  129238. if resTmp == nil {
  129239. return graphql.Null
  129240. }
  129241. res := resTmp.(*string)
  129242. fc.Result = res
  129243. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  129244. }
  129245. func (ec *executionContext) fieldContext_SubscriptionContract_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  129246. fc = &graphql.FieldContext{
  129247. Object: "SubscriptionContract",
  129248. Field: field,
  129249. IsMethod: false,
  129250. IsResolver: false,
  129251. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  129252. return nil, errors.New("field of type String does not have child fields")
  129253. },
  129254. }
  129255. return fc, nil
  129256. }
  129257. func (ec *executionContext) _SubscriptionContract_orders(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContract) (ret graphql.Marshaler) {
  129258. fc, err := ec.fieldContext_SubscriptionContract_orders(ctx, field)
  129259. if err != nil {
  129260. return graphql.Null
  129261. }
  129262. ctx = graphql.WithFieldContext(ctx, fc)
  129263. defer func() {
  129264. if r := recover(); r != nil {
  129265. ec.Error(ctx, ec.Recover(ctx, r))
  129266. ret = graphql.Null
  129267. }
  129268. }()
  129269. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  129270. ctx = rctx // use context from middleware stack in children
  129271. return obj.Orders, nil
  129272. })
  129273. if err != nil {
  129274. ec.Error(ctx, err)
  129275. return graphql.Null
  129276. }
  129277. if resTmp == nil {
  129278. if !graphql.HasFieldError(ctx, fc) {
  129279. ec.Errorf(ctx, "must not be null")
  129280. }
  129281. return graphql.Null
  129282. }
  129283. res := resTmp.(*OrderConnection)
  129284. fc.Result = res
  129285. return ec.marshalNOrderConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderConnection(ctx, field.Selections, res)
  129286. }
  129287. func (ec *executionContext) fieldContext_SubscriptionContract_orders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  129288. fc = &graphql.FieldContext{
  129289. Object: "SubscriptionContract",
  129290. Field: field,
  129291. IsMethod: false,
  129292. IsResolver: false,
  129293. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  129294. switch field.Name {
  129295. case "edges":
  129296. return ec.fieldContext_OrderConnection_edges(ctx, field)
  129297. case "nodes":
  129298. return ec.fieldContext_OrderConnection_nodes(ctx, field)
  129299. case "pageInfo":
  129300. return ec.fieldContext_OrderConnection_pageInfo(ctx, field)
  129301. }
  129302. return nil, fmt.Errorf("no field named %q was found under type OrderConnection", field.Name)
  129303. },
  129304. }
  129305. defer func() {
  129306. if r := recover(); r != nil {
  129307. err = ec.Recover(ctx, r)
  129308. ec.Error(ctx, err)
  129309. }
  129310. }()
  129311. ctx = graphql.WithFieldContext(ctx, fc)
  129312. if fc.Args, err = ec.field_SubscriptionContract_orders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  129313. ec.Error(ctx, err)
  129314. return
  129315. }
  129316. return fc, nil
  129317. }
  129318. func (ec *executionContext) _SubscriptionContract_originOrder(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContract) (ret graphql.Marshaler) {
  129319. fc, err := ec.fieldContext_SubscriptionContract_originOrder(ctx, field)
  129320. if err != nil {
  129321. return graphql.Null
  129322. }
  129323. ctx = graphql.WithFieldContext(ctx, fc)
  129324. defer func() {
  129325. if r := recover(); r != nil {
  129326. ec.Error(ctx, ec.Recover(ctx, r))
  129327. ret = graphql.Null
  129328. }
  129329. }()
  129330. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  129331. ctx = rctx // use context from middleware stack in children
  129332. return obj.OriginOrder, nil
  129333. })
  129334. if err != nil {
  129335. ec.Error(ctx, err)
  129336. return graphql.Null
  129337. }
  129338. if resTmp == nil {
  129339. return graphql.Null
  129340. }
  129341. res := resTmp.(*Order)
  129342. fc.Result = res
  129343. return ec.marshalOOrder2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrder(ctx, field.Selections, res)
  129344. }
  129345. func (ec *executionContext) fieldContext_SubscriptionContract_originOrder(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  129346. fc = &graphql.FieldContext{
  129347. Object: "SubscriptionContract",
  129348. Field: field,
  129349. IsMethod: false,
  129350. IsResolver: false,
  129351. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  129352. switch field.Name {
  129353. case "agreements":
  129354. return ec.fieldContext_Order_agreements(ctx, field)
  129355. case "alerts":
  129356. return ec.fieldContext_Order_alerts(ctx, field)
  129357. case "app":
  129358. return ec.fieldContext_Order_app(ctx, field)
  129359. case "billingAddress":
  129360. return ec.fieldContext_Order_billingAddress(ctx, field)
  129361. case "billingAddressMatchesShippingAddress":
  129362. return ec.fieldContext_Order_billingAddressMatchesShippingAddress(ctx, field)
  129363. case "canMarkAsPaid":
  129364. return ec.fieldContext_Order_canMarkAsPaid(ctx, field)
  129365. case "canNotifyCustomer":
  129366. return ec.fieldContext_Order_canNotifyCustomer(ctx, field)
  129367. case "cancelReason":
  129368. return ec.fieldContext_Order_cancelReason(ctx, field)
  129369. case "cancelledAt":
  129370. return ec.fieldContext_Order_cancelledAt(ctx, field)
  129371. case "capturable":
  129372. return ec.fieldContext_Order_capturable(ctx, field)
  129373. case "cartDiscountAmountSet":
  129374. return ec.fieldContext_Order_cartDiscountAmountSet(ctx, field)
  129375. case "channelInformation":
  129376. return ec.fieldContext_Order_channelInformation(ctx, field)
  129377. case "clientIp":
  129378. return ec.fieldContext_Order_clientIp(ctx, field)
  129379. case "closed":
  129380. return ec.fieldContext_Order_closed(ctx, field)
  129381. case "closedAt":
  129382. return ec.fieldContext_Order_closedAt(ctx, field)
  129383. case "confirmed":
  129384. return ec.fieldContext_Order_confirmed(ctx, field)
  129385. case "createdAt":
  129386. return ec.fieldContext_Order_createdAt(ctx, field)
  129387. case "currencyCode":
  129388. return ec.fieldContext_Order_currencyCode(ctx, field)
  129389. case "currentCartDiscountAmountSet":
  129390. return ec.fieldContext_Order_currentCartDiscountAmountSet(ctx, field)
  129391. case "currentSubtotalLineItemsQuantity":
  129392. return ec.fieldContext_Order_currentSubtotalLineItemsQuantity(ctx, field)
  129393. case "currentSubtotalPriceSet":
  129394. return ec.fieldContext_Order_currentSubtotalPriceSet(ctx, field)
  129395. case "currentTaxLines":
  129396. return ec.fieldContext_Order_currentTaxLines(ctx, field)
  129397. case "currentTotalDiscountsSet":
  129398. return ec.fieldContext_Order_currentTotalDiscountsSet(ctx, field)
  129399. case "currentTotalDutiesSet":
  129400. return ec.fieldContext_Order_currentTotalDutiesSet(ctx, field)
  129401. case "currentTotalPriceSet":
  129402. return ec.fieldContext_Order_currentTotalPriceSet(ctx, field)
  129403. case "currentTotalTaxSet":
  129404. return ec.fieldContext_Order_currentTotalTaxSet(ctx, field)
  129405. case "currentTotalWeight":
  129406. return ec.fieldContext_Order_currentTotalWeight(ctx, field)
  129407. case "customAttributes":
  129408. return ec.fieldContext_Order_customAttributes(ctx, field)
  129409. case "customer":
  129410. return ec.fieldContext_Order_customer(ctx, field)
  129411. case "customerAcceptsMarketing":
  129412. return ec.fieldContext_Order_customerAcceptsMarketing(ctx, field)
  129413. case "customerJourneySummary":
  129414. return ec.fieldContext_Order_customerJourneySummary(ctx, field)
  129415. case "customerLocale":
  129416. return ec.fieldContext_Order_customerLocale(ctx, field)
  129417. case "discountApplications":
  129418. return ec.fieldContext_Order_discountApplications(ctx, field)
  129419. case "discountCode":
  129420. return ec.fieldContext_Order_discountCode(ctx, field)
  129421. case "discountCodes":
  129422. return ec.fieldContext_Order_discountCodes(ctx, field)
  129423. case "displayAddress":
  129424. return ec.fieldContext_Order_displayAddress(ctx, field)
  129425. case "displayFinancialStatus":
  129426. return ec.fieldContext_Order_displayFinancialStatus(ctx, field)
  129427. case "displayFulfillmentStatus":
  129428. return ec.fieldContext_Order_displayFulfillmentStatus(ctx, field)
  129429. case "disputes":
  129430. return ec.fieldContext_Order_disputes(ctx, field)
  129431. case "edited":
  129432. return ec.fieldContext_Order_edited(ctx, field)
  129433. case "email":
  129434. return ec.fieldContext_Order_email(ctx, field)
  129435. case "estimatedTaxes":
  129436. return ec.fieldContext_Order_estimatedTaxes(ctx, field)
  129437. case "events":
  129438. return ec.fieldContext_Order_events(ctx, field)
  129439. case "fulfillable":
  129440. return ec.fieldContext_Order_fulfillable(ctx, field)
  129441. case "fulfillmentOrders":
  129442. return ec.fieldContext_Order_fulfillmentOrders(ctx, field)
  129443. case "fulfillments":
  129444. return ec.fieldContext_Order_fulfillments(ctx, field)
  129445. case "fullyPaid":
  129446. return ec.fieldContext_Order_fullyPaid(ctx, field)
  129447. case "hasTimelineComment":
  129448. return ec.fieldContext_Order_hasTimelineComment(ctx, field)
  129449. case "id":
  129450. return ec.fieldContext_Order_id(ctx, field)
  129451. case "legacyResourceId":
  129452. return ec.fieldContext_Order_legacyResourceId(ctx, field)
  129453. case "lineItems":
  129454. return ec.fieldContext_Order_lineItems(ctx, field)
  129455. case "localizationExtensions":
  129456. return ec.fieldContext_Order_localizationExtensions(ctx, field)
  129457. case "merchantEditable":
  129458. return ec.fieldContext_Order_merchantEditable(ctx, field)
  129459. case "merchantEditableErrors":
  129460. return ec.fieldContext_Order_merchantEditableErrors(ctx, field)
  129461. case "merchantOfRecordApp":
  129462. return ec.fieldContext_Order_merchantOfRecordApp(ctx, field)
  129463. case "metafield":
  129464. return ec.fieldContext_Order_metafield(ctx, field)
  129465. case "metafieldDefinitions":
  129466. return ec.fieldContext_Order_metafieldDefinitions(ctx, field)
  129467. case "metafields":
  129468. return ec.fieldContext_Order_metafields(ctx, field)
  129469. case "name":
  129470. return ec.fieldContext_Order_name(ctx, field)
  129471. case "netPaymentSet":
  129472. return ec.fieldContext_Order_netPaymentSet(ctx, field)
  129473. case "nonFulfillableLineItems":
  129474. return ec.fieldContext_Order_nonFulfillableLineItems(ctx, field)
  129475. case "note":
  129476. return ec.fieldContext_Order_note(ctx, field)
  129477. case "originalTotalDutiesSet":
  129478. return ec.fieldContext_Order_originalTotalDutiesSet(ctx, field)
  129479. case "originalTotalPriceSet":
  129480. return ec.fieldContext_Order_originalTotalPriceSet(ctx, field)
  129481. case "paymentCollectionDetails":
  129482. return ec.fieldContext_Order_paymentCollectionDetails(ctx, field)
  129483. case "paymentGatewayNames":
  129484. return ec.fieldContext_Order_paymentGatewayNames(ctx, field)
  129485. case "paymentTerms":
  129486. return ec.fieldContext_Order_paymentTerms(ctx, field)
  129487. case "phone":
  129488. return ec.fieldContext_Order_phone(ctx, field)
  129489. case "physicalLocation":
  129490. return ec.fieldContext_Order_physicalLocation(ctx, field)
  129491. case "presentmentCurrencyCode":
  129492. return ec.fieldContext_Order_presentmentCurrencyCode(ctx, field)
  129493. case "privateMetafield":
  129494. return ec.fieldContext_Order_privateMetafield(ctx, field)
  129495. case "privateMetafields":
  129496. return ec.fieldContext_Order_privateMetafields(ctx, field)
  129497. case "processedAt":
  129498. return ec.fieldContext_Order_processedAt(ctx, field)
  129499. case "publication":
  129500. return ec.fieldContext_Order_publication(ctx, field)
  129501. case "purchasingEntity":
  129502. return ec.fieldContext_Order_purchasingEntity(ctx, field)
  129503. case "refundDiscrepancySet":
  129504. return ec.fieldContext_Order_refundDiscrepancySet(ctx, field)
  129505. case "refundable":
  129506. return ec.fieldContext_Order_refundable(ctx, field)
  129507. case "refunds":
  129508. return ec.fieldContext_Order_refunds(ctx, field)
  129509. case "registeredSourceUrl":
  129510. return ec.fieldContext_Order_registeredSourceUrl(ctx, field)
  129511. case "requiresShipping":
  129512. return ec.fieldContext_Order_requiresShipping(ctx, field)
  129513. case "restockable":
  129514. return ec.fieldContext_Order_restockable(ctx, field)
  129515. case "riskLevel":
  129516. return ec.fieldContext_Order_riskLevel(ctx, field)
  129517. case "risks":
  129518. return ec.fieldContext_Order_risks(ctx, field)
  129519. case "shippingAddress":
  129520. return ec.fieldContext_Order_shippingAddress(ctx, field)
  129521. case "shippingLine":
  129522. return ec.fieldContext_Order_shippingLine(ctx, field)
  129523. case "shippingLines":
  129524. return ec.fieldContext_Order_shippingLines(ctx, field)
  129525. case "sourceIdentifier":
  129526. return ec.fieldContext_Order_sourceIdentifier(ctx, field)
  129527. case "subtotalLineItemsQuantity":
  129528. return ec.fieldContext_Order_subtotalLineItemsQuantity(ctx, field)
  129529. case "subtotalPriceSet":
  129530. return ec.fieldContext_Order_subtotalPriceSet(ctx, field)
  129531. case "suggestedRefund":
  129532. return ec.fieldContext_Order_suggestedRefund(ctx, field)
  129533. case "tags":
  129534. return ec.fieldContext_Order_tags(ctx, field)
  129535. case "taxLines":
  129536. return ec.fieldContext_Order_taxLines(ctx, field)
  129537. case "taxesIncluded":
  129538. return ec.fieldContext_Order_taxesIncluded(ctx, field)
  129539. case "test":
  129540. return ec.fieldContext_Order_test(ctx, field)
  129541. case "totalCapturableSet":
  129542. return ec.fieldContext_Order_totalCapturableSet(ctx, field)
  129543. case "totalDiscountsSet":
  129544. return ec.fieldContext_Order_totalDiscountsSet(ctx, field)
  129545. case "totalOutstandingSet":
  129546. return ec.fieldContext_Order_totalOutstandingSet(ctx, field)
  129547. case "totalPriceSet":
  129548. return ec.fieldContext_Order_totalPriceSet(ctx, field)
  129549. case "totalReceivedSet":
  129550. return ec.fieldContext_Order_totalReceivedSet(ctx, field)
  129551. case "totalRefundedSet":
  129552. return ec.fieldContext_Order_totalRefundedSet(ctx, field)
  129553. case "totalRefundedShippingSet":
  129554. return ec.fieldContext_Order_totalRefundedShippingSet(ctx, field)
  129555. case "totalShippingPriceSet":
  129556. return ec.fieldContext_Order_totalShippingPriceSet(ctx, field)
  129557. case "totalTaxSet":
  129558. return ec.fieldContext_Order_totalTaxSet(ctx, field)
  129559. case "totalTipReceivedSet":
  129560. return ec.fieldContext_Order_totalTipReceivedSet(ctx, field)
  129561. case "totalWeight":
  129562. return ec.fieldContext_Order_totalWeight(ctx, field)
  129563. case "transactions":
  129564. return ec.fieldContext_Order_transactions(ctx, field)
  129565. case "unpaid":
  129566. return ec.fieldContext_Order_unpaid(ctx, field)
  129567. case "updatedAt":
  129568. return ec.fieldContext_Order_updatedAt(ctx, field)
  129569. }
  129570. return nil, fmt.Errorf("no field named %q was found under type Order", field.Name)
  129571. },
  129572. }
  129573. return fc, nil
  129574. }
  129575. func (ec *executionContext) _SubscriptionContract_status(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContract) (ret graphql.Marshaler) {
  129576. fc, err := ec.fieldContext_SubscriptionContract_status(ctx, field)
  129577. if err != nil {
  129578. return graphql.Null
  129579. }
  129580. ctx = graphql.WithFieldContext(ctx, fc)
  129581. defer func() {
  129582. if r := recover(); r != nil {
  129583. ec.Error(ctx, ec.Recover(ctx, r))
  129584. ret = graphql.Null
  129585. }
  129586. }()
  129587. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  129588. ctx = rctx // use context from middleware stack in children
  129589. return obj.Status, nil
  129590. })
  129591. if err != nil {
  129592. ec.Error(ctx, err)
  129593. return graphql.Null
  129594. }
  129595. if resTmp == nil {
  129596. if !graphql.HasFieldError(ctx, fc) {
  129597. ec.Errorf(ctx, "must not be null")
  129598. }
  129599. return graphql.Null
  129600. }
  129601. res := resTmp.(SubscriptionContractSubscriptionStatus)
  129602. fc.Result = res
  129603. return ec.marshalNSubscriptionContractSubscriptionStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionContractSubscriptionStatus(ctx, field.Selections, res)
  129604. }
  129605. func (ec *executionContext) fieldContext_SubscriptionContract_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  129606. fc = &graphql.FieldContext{
  129607. Object: "SubscriptionContract",
  129608. Field: field,
  129609. IsMethod: false,
  129610. IsResolver: false,
  129611. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  129612. return nil, errors.New("field of type SubscriptionContractSubscriptionStatus does not have child fields")
  129613. },
  129614. }
  129615. return fc, nil
  129616. }
  129617. func (ec *executionContext) _SubscriptionContract_updatedAt(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContract) (ret graphql.Marshaler) {
  129618. fc, err := ec.fieldContext_SubscriptionContract_updatedAt(ctx, field)
  129619. if err != nil {
  129620. return graphql.Null
  129621. }
  129622. ctx = graphql.WithFieldContext(ctx, fc)
  129623. defer func() {
  129624. if r := recover(); r != nil {
  129625. ec.Error(ctx, ec.Recover(ctx, r))
  129626. ret = graphql.Null
  129627. }
  129628. }()
  129629. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  129630. ctx = rctx // use context from middleware stack in children
  129631. return obj.UpdatedAt, nil
  129632. })
  129633. if err != nil {
  129634. ec.Error(ctx, err)
  129635. return graphql.Null
  129636. }
  129637. if resTmp == nil {
  129638. if !graphql.HasFieldError(ctx, fc) {
  129639. ec.Errorf(ctx, "must not be null")
  129640. }
  129641. return graphql.Null
  129642. }
  129643. res := resTmp.(string)
  129644. fc.Result = res
  129645. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  129646. }
  129647. func (ec *executionContext) fieldContext_SubscriptionContract_updatedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  129648. fc = &graphql.FieldContext{
  129649. Object: "SubscriptionContract",
  129650. Field: field,
  129651. IsMethod: false,
  129652. IsResolver: false,
  129653. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  129654. return nil, errors.New("field of type DateTime does not have child fields")
  129655. },
  129656. }
  129657. return fc, nil
  129658. }
  129659. func (ec *executionContext) _SubscriptionContractConnection_edges(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContractConnection) (ret graphql.Marshaler) {
  129660. fc, err := ec.fieldContext_SubscriptionContractConnection_edges(ctx, field)
  129661. if err != nil {
  129662. return graphql.Null
  129663. }
  129664. ctx = graphql.WithFieldContext(ctx, fc)
  129665. defer func() {
  129666. if r := recover(); r != nil {
  129667. ec.Error(ctx, ec.Recover(ctx, r))
  129668. ret = graphql.Null
  129669. }
  129670. }()
  129671. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  129672. ctx = rctx // use context from middleware stack in children
  129673. return obj.Edges, nil
  129674. })
  129675. if err != nil {
  129676. ec.Error(ctx, err)
  129677. return graphql.Null
  129678. }
  129679. if resTmp == nil {
  129680. if !graphql.HasFieldError(ctx, fc) {
  129681. ec.Errorf(ctx, "must not be null")
  129682. }
  129683. return graphql.Null
  129684. }
  129685. res := resTmp.([]*SubscriptionContractEdge)
  129686. fc.Result = res
  129687. return ec.marshalNSubscriptionContractEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionContractEdgeᚄ(ctx, field.Selections, res)
  129688. }
  129689. func (ec *executionContext) fieldContext_SubscriptionContractConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  129690. fc = &graphql.FieldContext{
  129691. Object: "SubscriptionContractConnection",
  129692. Field: field,
  129693. IsMethod: false,
  129694. IsResolver: false,
  129695. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  129696. switch field.Name {
  129697. case "cursor":
  129698. return ec.fieldContext_SubscriptionContractEdge_cursor(ctx, field)
  129699. case "node":
  129700. return ec.fieldContext_SubscriptionContractEdge_node(ctx, field)
  129701. }
  129702. return nil, fmt.Errorf("no field named %q was found under type SubscriptionContractEdge", field.Name)
  129703. },
  129704. }
  129705. return fc, nil
  129706. }
  129707. func (ec *executionContext) _SubscriptionContractConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContractConnection) (ret graphql.Marshaler) {
  129708. fc, err := ec.fieldContext_SubscriptionContractConnection_nodes(ctx, field)
  129709. if err != nil {
  129710. return graphql.Null
  129711. }
  129712. ctx = graphql.WithFieldContext(ctx, fc)
  129713. defer func() {
  129714. if r := recover(); r != nil {
  129715. ec.Error(ctx, ec.Recover(ctx, r))
  129716. ret = graphql.Null
  129717. }
  129718. }()
  129719. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  129720. ctx = rctx // use context from middleware stack in children
  129721. return obj.Nodes, nil
  129722. })
  129723. if err != nil {
  129724. ec.Error(ctx, err)
  129725. return graphql.Null
  129726. }
  129727. if resTmp == nil {
  129728. if !graphql.HasFieldError(ctx, fc) {
  129729. ec.Errorf(ctx, "must not be null")
  129730. }
  129731. return graphql.Null
  129732. }
  129733. res := resTmp.([]*SubscriptionContract)
  129734. fc.Result = res
  129735. return ec.marshalNSubscriptionContract2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionContractᚄ(ctx, field.Selections, res)
  129736. }
  129737. func (ec *executionContext) fieldContext_SubscriptionContractConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  129738. fc = &graphql.FieldContext{
  129739. Object: "SubscriptionContractConnection",
  129740. Field: field,
  129741. IsMethod: false,
  129742. IsResolver: false,
  129743. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  129744. switch field.Name {
  129745. case "app":
  129746. return ec.fieldContext_SubscriptionContract_app(ctx, field)
  129747. case "appAdminUrl":
  129748. return ec.fieldContext_SubscriptionContract_appAdminUrl(ctx, field)
  129749. case "billingAttempts":
  129750. return ec.fieldContext_SubscriptionContract_billingAttempts(ctx, field)
  129751. case "billingPolicy":
  129752. return ec.fieldContext_SubscriptionContract_billingPolicy(ctx, field)
  129753. case "createdAt":
  129754. return ec.fieldContext_SubscriptionContract_createdAt(ctx, field)
  129755. case "currencyCode":
  129756. return ec.fieldContext_SubscriptionContract_currencyCode(ctx, field)
  129757. case "customAttributes":
  129758. return ec.fieldContext_SubscriptionContract_customAttributes(ctx, field)
  129759. case "customer":
  129760. return ec.fieldContext_SubscriptionContract_customer(ctx, field)
  129761. case "customerPaymentMethod":
  129762. return ec.fieldContext_SubscriptionContract_customerPaymentMethod(ctx, field)
  129763. case "deliveryMethod":
  129764. return ec.fieldContext_SubscriptionContract_deliveryMethod(ctx, field)
  129765. case "deliveryPolicy":
  129766. return ec.fieldContext_SubscriptionContract_deliveryPolicy(ctx, field)
  129767. case "deliveryPrice":
  129768. return ec.fieldContext_SubscriptionContract_deliveryPrice(ctx, field)
  129769. case "discounts":
  129770. return ec.fieldContext_SubscriptionContract_discounts(ctx, field)
  129771. case "id":
  129772. return ec.fieldContext_SubscriptionContract_id(ctx, field)
  129773. case "lastPaymentStatus":
  129774. return ec.fieldContext_SubscriptionContract_lastPaymentStatus(ctx, field)
  129775. case "lineCount":
  129776. return ec.fieldContext_SubscriptionContract_lineCount(ctx, field)
  129777. case "lines":
  129778. return ec.fieldContext_SubscriptionContract_lines(ctx, field)
  129779. case "nextBillingDate":
  129780. return ec.fieldContext_SubscriptionContract_nextBillingDate(ctx, field)
  129781. case "note":
  129782. return ec.fieldContext_SubscriptionContract_note(ctx, field)
  129783. case "orders":
  129784. return ec.fieldContext_SubscriptionContract_orders(ctx, field)
  129785. case "originOrder":
  129786. return ec.fieldContext_SubscriptionContract_originOrder(ctx, field)
  129787. case "status":
  129788. return ec.fieldContext_SubscriptionContract_status(ctx, field)
  129789. case "updatedAt":
  129790. return ec.fieldContext_SubscriptionContract_updatedAt(ctx, field)
  129791. }
  129792. return nil, fmt.Errorf("no field named %q was found under type SubscriptionContract", field.Name)
  129793. },
  129794. }
  129795. return fc, nil
  129796. }
  129797. func (ec *executionContext) _SubscriptionContractConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContractConnection) (ret graphql.Marshaler) {
  129798. fc, err := ec.fieldContext_SubscriptionContractConnection_pageInfo(ctx, field)
  129799. if err != nil {
  129800. return graphql.Null
  129801. }
  129802. ctx = graphql.WithFieldContext(ctx, fc)
  129803. defer func() {
  129804. if r := recover(); r != nil {
  129805. ec.Error(ctx, ec.Recover(ctx, r))
  129806. ret = graphql.Null
  129807. }
  129808. }()
  129809. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  129810. ctx = rctx // use context from middleware stack in children
  129811. return obj.PageInfo, nil
  129812. })
  129813. if err != nil {
  129814. ec.Error(ctx, err)
  129815. return graphql.Null
  129816. }
  129817. if resTmp == nil {
  129818. if !graphql.HasFieldError(ctx, fc) {
  129819. ec.Errorf(ctx, "must not be null")
  129820. }
  129821. return graphql.Null
  129822. }
  129823. res := resTmp.(*PageInfo)
  129824. fc.Result = res
  129825. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  129826. }
  129827. func (ec *executionContext) fieldContext_SubscriptionContractConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  129828. fc = &graphql.FieldContext{
  129829. Object: "SubscriptionContractConnection",
  129830. Field: field,
  129831. IsMethod: false,
  129832. IsResolver: false,
  129833. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  129834. switch field.Name {
  129835. case "endCursor":
  129836. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  129837. case "hasNextPage":
  129838. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  129839. case "hasPreviousPage":
  129840. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  129841. case "startCursor":
  129842. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  129843. }
  129844. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  129845. },
  129846. }
  129847. return fc, nil
  129848. }
  129849. func (ec *executionContext) _SubscriptionContractEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContractEdge) (ret graphql.Marshaler) {
  129850. fc, err := ec.fieldContext_SubscriptionContractEdge_cursor(ctx, field)
  129851. if err != nil {
  129852. return graphql.Null
  129853. }
  129854. ctx = graphql.WithFieldContext(ctx, fc)
  129855. defer func() {
  129856. if r := recover(); r != nil {
  129857. ec.Error(ctx, ec.Recover(ctx, r))
  129858. ret = graphql.Null
  129859. }
  129860. }()
  129861. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  129862. ctx = rctx // use context from middleware stack in children
  129863. return obj.Cursor, nil
  129864. })
  129865. if err != nil {
  129866. ec.Error(ctx, err)
  129867. return graphql.Null
  129868. }
  129869. if resTmp == nil {
  129870. if !graphql.HasFieldError(ctx, fc) {
  129871. ec.Errorf(ctx, "must not be null")
  129872. }
  129873. return graphql.Null
  129874. }
  129875. res := resTmp.(string)
  129876. fc.Result = res
  129877. return ec.marshalNString2string(ctx, field.Selections, res)
  129878. }
  129879. func (ec *executionContext) fieldContext_SubscriptionContractEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  129880. fc = &graphql.FieldContext{
  129881. Object: "SubscriptionContractEdge",
  129882. Field: field,
  129883. IsMethod: false,
  129884. IsResolver: false,
  129885. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  129886. return nil, errors.New("field of type String does not have child fields")
  129887. },
  129888. }
  129889. return fc, nil
  129890. }
  129891. func (ec *executionContext) _SubscriptionContractEdge_node(ctx context.Context, field graphql.CollectedField, obj *SubscriptionContractEdge) (ret graphql.Marshaler) {
  129892. fc, err := ec.fieldContext_SubscriptionContractEdge_node(ctx, field)
  129893. if err != nil {
  129894. return graphql.Null
  129895. }
  129896. ctx = graphql.WithFieldContext(ctx, fc)
  129897. defer func() {
  129898. if r := recover(); r != nil {
  129899. ec.Error(ctx, ec.Recover(ctx, r))
  129900. ret = graphql.Null
  129901. }
  129902. }()
  129903. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  129904. ctx = rctx // use context from middleware stack in children
  129905. return obj.Node, nil
  129906. })
  129907. if err != nil {
  129908. ec.Error(ctx, err)
  129909. return graphql.Null
  129910. }
  129911. if resTmp == nil {
  129912. if !graphql.HasFieldError(ctx, fc) {
  129913. ec.Errorf(ctx, "must not be null")
  129914. }
  129915. return graphql.Null
  129916. }
  129917. res := resTmp.(*SubscriptionContract)
  129918. fc.Result = res
  129919. return ec.marshalNSubscriptionContract2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionContract(ctx, field.Selections, res)
  129920. }
  129921. func (ec *executionContext) fieldContext_SubscriptionContractEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  129922. fc = &graphql.FieldContext{
  129923. Object: "SubscriptionContractEdge",
  129924. Field: field,
  129925. IsMethod: false,
  129926. IsResolver: false,
  129927. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  129928. switch field.Name {
  129929. case "app":
  129930. return ec.fieldContext_SubscriptionContract_app(ctx, field)
  129931. case "appAdminUrl":
  129932. return ec.fieldContext_SubscriptionContract_appAdminUrl(ctx, field)
  129933. case "billingAttempts":
  129934. return ec.fieldContext_SubscriptionContract_billingAttempts(ctx, field)
  129935. case "billingPolicy":
  129936. return ec.fieldContext_SubscriptionContract_billingPolicy(ctx, field)
  129937. case "createdAt":
  129938. return ec.fieldContext_SubscriptionContract_createdAt(ctx, field)
  129939. case "currencyCode":
  129940. return ec.fieldContext_SubscriptionContract_currencyCode(ctx, field)
  129941. case "customAttributes":
  129942. return ec.fieldContext_SubscriptionContract_customAttributes(ctx, field)
  129943. case "customer":
  129944. return ec.fieldContext_SubscriptionContract_customer(ctx, field)
  129945. case "customerPaymentMethod":
  129946. return ec.fieldContext_SubscriptionContract_customerPaymentMethod(ctx, field)
  129947. case "deliveryMethod":
  129948. return ec.fieldContext_SubscriptionContract_deliveryMethod(ctx, field)
  129949. case "deliveryPolicy":
  129950. return ec.fieldContext_SubscriptionContract_deliveryPolicy(ctx, field)
  129951. case "deliveryPrice":
  129952. return ec.fieldContext_SubscriptionContract_deliveryPrice(ctx, field)
  129953. case "discounts":
  129954. return ec.fieldContext_SubscriptionContract_discounts(ctx, field)
  129955. case "id":
  129956. return ec.fieldContext_SubscriptionContract_id(ctx, field)
  129957. case "lastPaymentStatus":
  129958. return ec.fieldContext_SubscriptionContract_lastPaymentStatus(ctx, field)
  129959. case "lineCount":
  129960. return ec.fieldContext_SubscriptionContract_lineCount(ctx, field)
  129961. case "lines":
  129962. return ec.fieldContext_SubscriptionContract_lines(ctx, field)
  129963. case "nextBillingDate":
  129964. return ec.fieldContext_SubscriptionContract_nextBillingDate(ctx, field)
  129965. case "note":
  129966. return ec.fieldContext_SubscriptionContract_note(ctx, field)
  129967. case "orders":
  129968. return ec.fieldContext_SubscriptionContract_orders(ctx, field)
  129969. case "originOrder":
  129970. return ec.fieldContext_SubscriptionContract_originOrder(ctx, field)
  129971. case "status":
  129972. return ec.fieldContext_SubscriptionContract_status(ctx, field)
  129973. case "updatedAt":
  129974. return ec.fieldContext_SubscriptionContract_updatedAt(ctx, field)
  129975. }
  129976. return nil, fmt.Errorf("no field named %q was found under type SubscriptionContract", field.Name)
  129977. },
  129978. }
  129979. return fc, nil
  129980. }
  129981. func (ec *executionContext) _SubscriptionCyclePriceAdjustment_adjustmentType(ctx context.Context, field graphql.CollectedField, obj *SubscriptionCyclePriceAdjustment) (ret graphql.Marshaler) {
  129982. fc, err := ec.fieldContext_SubscriptionCyclePriceAdjustment_adjustmentType(ctx, field)
  129983. if err != nil {
  129984. return graphql.Null
  129985. }
  129986. ctx = graphql.WithFieldContext(ctx, fc)
  129987. defer func() {
  129988. if r := recover(); r != nil {
  129989. ec.Error(ctx, ec.Recover(ctx, r))
  129990. ret = graphql.Null
  129991. }
  129992. }()
  129993. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  129994. ctx = rctx // use context from middleware stack in children
  129995. return obj.AdjustmentType, nil
  129996. })
  129997. if err != nil {
  129998. ec.Error(ctx, err)
  129999. return graphql.Null
  130000. }
  130001. if resTmp == nil {
  130002. if !graphql.HasFieldError(ctx, fc) {
  130003. ec.Errorf(ctx, "must not be null")
  130004. }
  130005. return graphql.Null
  130006. }
  130007. res := resTmp.(SellingPlanPricingPolicyAdjustmentType)
  130008. fc.Result = res
  130009. return ec.marshalNSellingPlanPricingPolicyAdjustmentType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanPricingPolicyAdjustmentType(ctx, field.Selections, res)
  130010. }
  130011. func (ec *executionContext) fieldContext_SubscriptionCyclePriceAdjustment_adjustmentType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  130012. fc = &graphql.FieldContext{
  130013. Object: "SubscriptionCyclePriceAdjustment",
  130014. Field: field,
  130015. IsMethod: false,
  130016. IsResolver: false,
  130017. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  130018. return nil, errors.New("field of type SellingPlanPricingPolicyAdjustmentType does not have child fields")
  130019. },
  130020. }
  130021. return fc, nil
  130022. }
  130023. func (ec *executionContext) _SubscriptionCyclePriceAdjustment_adjustmentValue(ctx context.Context, field graphql.CollectedField, obj *SubscriptionCyclePriceAdjustment) (ret graphql.Marshaler) {
  130024. fc, err := ec.fieldContext_SubscriptionCyclePriceAdjustment_adjustmentValue(ctx, field)
  130025. if err != nil {
  130026. return graphql.Null
  130027. }
  130028. ctx = graphql.WithFieldContext(ctx, fc)
  130029. defer func() {
  130030. if r := recover(); r != nil {
  130031. ec.Error(ctx, ec.Recover(ctx, r))
  130032. ret = graphql.Null
  130033. }
  130034. }()
  130035. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  130036. ctx = rctx // use context from middleware stack in children
  130037. return obj.AdjustmentValue, nil
  130038. })
  130039. if err != nil {
  130040. ec.Error(ctx, err)
  130041. return graphql.Null
  130042. }
  130043. if resTmp == nil {
  130044. if !graphql.HasFieldError(ctx, fc) {
  130045. ec.Errorf(ctx, "must not be null")
  130046. }
  130047. return graphql.Null
  130048. }
  130049. res := resTmp.(SellingPlanPricingPolicyAdjustmentValue)
  130050. fc.Result = res
  130051. return ec.marshalNSellingPlanPricingPolicyAdjustmentValue2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanPricingPolicyAdjustmentValue(ctx, field.Selections, res)
  130052. }
  130053. func (ec *executionContext) fieldContext_SubscriptionCyclePriceAdjustment_adjustmentValue(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  130054. fc = &graphql.FieldContext{
  130055. Object: "SubscriptionCyclePriceAdjustment",
  130056. Field: field,
  130057. IsMethod: false,
  130058. IsResolver: false,
  130059. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  130060. return nil, errors.New("field of type SellingPlanPricingPolicyAdjustmentValue does not have child fields")
  130061. },
  130062. }
  130063. return fc, nil
  130064. }
  130065. func (ec *executionContext) _SubscriptionCyclePriceAdjustment_afterCycle(ctx context.Context, field graphql.CollectedField, obj *SubscriptionCyclePriceAdjustment) (ret graphql.Marshaler) {
  130066. fc, err := ec.fieldContext_SubscriptionCyclePriceAdjustment_afterCycle(ctx, field)
  130067. if err != nil {
  130068. return graphql.Null
  130069. }
  130070. ctx = graphql.WithFieldContext(ctx, fc)
  130071. defer func() {
  130072. if r := recover(); r != nil {
  130073. ec.Error(ctx, ec.Recover(ctx, r))
  130074. ret = graphql.Null
  130075. }
  130076. }()
  130077. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  130078. ctx = rctx // use context from middleware stack in children
  130079. return obj.AfterCycle, nil
  130080. })
  130081. if err != nil {
  130082. ec.Error(ctx, err)
  130083. return graphql.Null
  130084. }
  130085. if resTmp == nil {
  130086. if !graphql.HasFieldError(ctx, fc) {
  130087. ec.Errorf(ctx, "must not be null")
  130088. }
  130089. return graphql.Null
  130090. }
  130091. res := resTmp.(int)
  130092. fc.Result = res
  130093. return ec.marshalNInt2int(ctx, field.Selections, res)
  130094. }
  130095. func (ec *executionContext) fieldContext_SubscriptionCyclePriceAdjustment_afterCycle(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  130096. fc = &graphql.FieldContext{
  130097. Object: "SubscriptionCyclePriceAdjustment",
  130098. Field: field,
  130099. IsMethod: false,
  130100. IsResolver: false,
  130101. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  130102. return nil, errors.New("field of type Int does not have child fields")
  130103. },
  130104. }
  130105. return fc, nil
  130106. }
  130107. func (ec *executionContext) _SubscriptionCyclePriceAdjustment_computedPrice(ctx context.Context, field graphql.CollectedField, obj *SubscriptionCyclePriceAdjustment) (ret graphql.Marshaler) {
  130108. fc, err := ec.fieldContext_SubscriptionCyclePriceAdjustment_computedPrice(ctx, field)
  130109. if err != nil {
  130110. return graphql.Null
  130111. }
  130112. ctx = graphql.WithFieldContext(ctx, fc)
  130113. defer func() {
  130114. if r := recover(); r != nil {
  130115. ec.Error(ctx, ec.Recover(ctx, r))
  130116. ret = graphql.Null
  130117. }
  130118. }()
  130119. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  130120. ctx = rctx // use context from middleware stack in children
  130121. return obj.ComputedPrice, nil
  130122. })
  130123. if err != nil {
  130124. ec.Error(ctx, err)
  130125. return graphql.Null
  130126. }
  130127. if resTmp == nil {
  130128. if !graphql.HasFieldError(ctx, fc) {
  130129. ec.Errorf(ctx, "must not be null")
  130130. }
  130131. return graphql.Null
  130132. }
  130133. res := resTmp.(*MoneyV2)
  130134. fc.Result = res
  130135. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  130136. }
  130137. func (ec *executionContext) fieldContext_SubscriptionCyclePriceAdjustment_computedPrice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  130138. fc = &graphql.FieldContext{
  130139. Object: "SubscriptionCyclePriceAdjustment",
  130140. Field: field,
  130141. IsMethod: false,
  130142. IsResolver: false,
  130143. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  130144. switch field.Name {
  130145. case "amount":
  130146. return ec.fieldContext_MoneyV2_amount(ctx, field)
  130147. case "currencyCode":
  130148. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  130149. }
  130150. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  130151. },
  130152. }
  130153. return fc, nil
  130154. }
  130155. func (ec *executionContext) _SubscriptionDeliveryMethodLocalDelivery_address(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDeliveryMethodLocalDelivery) (ret graphql.Marshaler) {
  130156. fc, err := ec.fieldContext_SubscriptionDeliveryMethodLocalDelivery_address(ctx, field)
  130157. if err != nil {
  130158. return graphql.Null
  130159. }
  130160. ctx = graphql.WithFieldContext(ctx, fc)
  130161. defer func() {
  130162. if r := recover(); r != nil {
  130163. ec.Error(ctx, ec.Recover(ctx, r))
  130164. ret = graphql.Null
  130165. }
  130166. }()
  130167. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  130168. ctx = rctx // use context from middleware stack in children
  130169. return obj.Address, nil
  130170. })
  130171. if err != nil {
  130172. ec.Error(ctx, err)
  130173. return graphql.Null
  130174. }
  130175. if resTmp == nil {
  130176. if !graphql.HasFieldError(ctx, fc) {
  130177. ec.Errorf(ctx, "must not be null")
  130178. }
  130179. return graphql.Null
  130180. }
  130181. res := resTmp.(*SubscriptionMailingAddress)
  130182. fc.Result = res
  130183. return ec.marshalNSubscriptionMailingAddress2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionMailingAddress(ctx, field.Selections, res)
  130184. }
  130185. func (ec *executionContext) fieldContext_SubscriptionDeliveryMethodLocalDelivery_address(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  130186. fc = &graphql.FieldContext{
  130187. Object: "SubscriptionDeliveryMethodLocalDelivery",
  130188. Field: field,
  130189. IsMethod: false,
  130190. IsResolver: false,
  130191. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  130192. switch field.Name {
  130193. case "address1":
  130194. return ec.fieldContext_SubscriptionMailingAddress_address1(ctx, field)
  130195. case "address2":
  130196. return ec.fieldContext_SubscriptionMailingAddress_address2(ctx, field)
  130197. case "city":
  130198. return ec.fieldContext_SubscriptionMailingAddress_city(ctx, field)
  130199. case "company":
  130200. return ec.fieldContext_SubscriptionMailingAddress_company(ctx, field)
  130201. case "country":
  130202. return ec.fieldContext_SubscriptionMailingAddress_country(ctx, field)
  130203. case "countryCode":
  130204. return ec.fieldContext_SubscriptionMailingAddress_countryCode(ctx, field)
  130205. case "firstName":
  130206. return ec.fieldContext_SubscriptionMailingAddress_firstName(ctx, field)
  130207. case "lastName":
  130208. return ec.fieldContext_SubscriptionMailingAddress_lastName(ctx, field)
  130209. case "name":
  130210. return ec.fieldContext_SubscriptionMailingAddress_name(ctx, field)
  130211. case "phone":
  130212. return ec.fieldContext_SubscriptionMailingAddress_phone(ctx, field)
  130213. case "province":
  130214. return ec.fieldContext_SubscriptionMailingAddress_province(ctx, field)
  130215. case "provinceCode":
  130216. return ec.fieldContext_SubscriptionMailingAddress_provinceCode(ctx, field)
  130217. case "zip":
  130218. return ec.fieldContext_SubscriptionMailingAddress_zip(ctx, field)
  130219. }
  130220. return nil, fmt.Errorf("no field named %q was found under type SubscriptionMailingAddress", field.Name)
  130221. },
  130222. }
  130223. return fc, nil
  130224. }
  130225. func (ec *executionContext) _SubscriptionDeliveryMethodLocalDelivery_localDeliveryOption(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDeliveryMethodLocalDelivery) (ret graphql.Marshaler) {
  130226. fc, err := ec.fieldContext_SubscriptionDeliveryMethodLocalDelivery_localDeliveryOption(ctx, field)
  130227. if err != nil {
  130228. return graphql.Null
  130229. }
  130230. ctx = graphql.WithFieldContext(ctx, fc)
  130231. defer func() {
  130232. if r := recover(); r != nil {
  130233. ec.Error(ctx, ec.Recover(ctx, r))
  130234. ret = graphql.Null
  130235. }
  130236. }()
  130237. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  130238. ctx = rctx // use context from middleware stack in children
  130239. return obj.LocalDeliveryOption, nil
  130240. })
  130241. if err != nil {
  130242. ec.Error(ctx, err)
  130243. return graphql.Null
  130244. }
  130245. if resTmp == nil {
  130246. if !graphql.HasFieldError(ctx, fc) {
  130247. ec.Errorf(ctx, "must not be null")
  130248. }
  130249. return graphql.Null
  130250. }
  130251. res := resTmp.(*SubscriptionDeliveryMethodLocalDeliveryOption)
  130252. fc.Result = res
  130253. return ec.marshalNSubscriptionDeliveryMethodLocalDeliveryOption2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionDeliveryMethodLocalDeliveryOption(ctx, field.Selections, res)
  130254. }
  130255. func (ec *executionContext) fieldContext_SubscriptionDeliveryMethodLocalDelivery_localDeliveryOption(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  130256. fc = &graphql.FieldContext{
  130257. Object: "SubscriptionDeliveryMethodLocalDelivery",
  130258. Field: field,
  130259. IsMethod: false,
  130260. IsResolver: false,
  130261. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  130262. switch field.Name {
  130263. case "code":
  130264. return ec.fieldContext_SubscriptionDeliveryMethodLocalDeliveryOption_code(ctx, field)
  130265. case "description":
  130266. return ec.fieldContext_SubscriptionDeliveryMethodLocalDeliveryOption_description(ctx, field)
  130267. case "instructions":
  130268. return ec.fieldContext_SubscriptionDeliveryMethodLocalDeliveryOption_instructions(ctx, field)
  130269. case "phone":
  130270. return ec.fieldContext_SubscriptionDeliveryMethodLocalDeliveryOption_phone(ctx, field)
  130271. case "presentmentTitle":
  130272. return ec.fieldContext_SubscriptionDeliveryMethodLocalDeliveryOption_presentmentTitle(ctx, field)
  130273. case "title":
  130274. return ec.fieldContext_SubscriptionDeliveryMethodLocalDeliveryOption_title(ctx, field)
  130275. }
  130276. return nil, fmt.Errorf("no field named %q was found under type SubscriptionDeliveryMethodLocalDeliveryOption", field.Name)
  130277. },
  130278. }
  130279. return fc, nil
  130280. }
  130281. func (ec *executionContext) _SubscriptionDeliveryMethodLocalDeliveryOption_code(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDeliveryMethodLocalDeliveryOption) (ret graphql.Marshaler) {
  130282. fc, err := ec.fieldContext_SubscriptionDeliveryMethodLocalDeliveryOption_code(ctx, field)
  130283. if err != nil {
  130284. return graphql.Null
  130285. }
  130286. ctx = graphql.WithFieldContext(ctx, fc)
  130287. defer func() {
  130288. if r := recover(); r != nil {
  130289. ec.Error(ctx, ec.Recover(ctx, r))
  130290. ret = graphql.Null
  130291. }
  130292. }()
  130293. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  130294. ctx = rctx // use context from middleware stack in children
  130295. return obj.Code, nil
  130296. })
  130297. if err != nil {
  130298. ec.Error(ctx, err)
  130299. return graphql.Null
  130300. }
  130301. if resTmp == nil {
  130302. return graphql.Null
  130303. }
  130304. res := resTmp.(*string)
  130305. fc.Result = res
  130306. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  130307. }
  130308. func (ec *executionContext) fieldContext_SubscriptionDeliveryMethodLocalDeliveryOption_code(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  130309. fc = &graphql.FieldContext{
  130310. Object: "SubscriptionDeliveryMethodLocalDeliveryOption",
  130311. Field: field,
  130312. IsMethod: false,
  130313. IsResolver: false,
  130314. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  130315. return nil, errors.New("field of type String does not have child fields")
  130316. },
  130317. }
  130318. return fc, nil
  130319. }
  130320. func (ec *executionContext) _SubscriptionDeliveryMethodLocalDeliveryOption_description(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDeliveryMethodLocalDeliveryOption) (ret graphql.Marshaler) {
  130321. fc, err := ec.fieldContext_SubscriptionDeliveryMethodLocalDeliveryOption_description(ctx, field)
  130322. if err != nil {
  130323. return graphql.Null
  130324. }
  130325. ctx = graphql.WithFieldContext(ctx, fc)
  130326. defer func() {
  130327. if r := recover(); r != nil {
  130328. ec.Error(ctx, ec.Recover(ctx, r))
  130329. ret = graphql.Null
  130330. }
  130331. }()
  130332. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  130333. ctx = rctx // use context from middleware stack in children
  130334. return obj.Description, nil
  130335. })
  130336. if err != nil {
  130337. ec.Error(ctx, err)
  130338. return graphql.Null
  130339. }
  130340. if resTmp == nil {
  130341. return graphql.Null
  130342. }
  130343. res := resTmp.(*string)
  130344. fc.Result = res
  130345. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  130346. }
  130347. func (ec *executionContext) fieldContext_SubscriptionDeliveryMethodLocalDeliveryOption_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  130348. fc = &graphql.FieldContext{
  130349. Object: "SubscriptionDeliveryMethodLocalDeliveryOption",
  130350. Field: field,
  130351. IsMethod: false,
  130352. IsResolver: false,
  130353. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  130354. return nil, errors.New("field of type String does not have child fields")
  130355. },
  130356. }
  130357. return fc, nil
  130358. }
  130359. func (ec *executionContext) _SubscriptionDeliveryMethodLocalDeliveryOption_instructions(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDeliveryMethodLocalDeliveryOption) (ret graphql.Marshaler) {
  130360. fc, err := ec.fieldContext_SubscriptionDeliveryMethodLocalDeliveryOption_instructions(ctx, field)
  130361. if err != nil {
  130362. return graphql.Null
  130363. }
  130364. ctx = graphql.WithFieldContext(ctx, fc)
  130365. defer func() {
  130366. if r := recover(); r != nil {
  130367. ec.Error(ctx, ec.Recover(ctx, r))
  130368. ret = graphql.Null
  130369. }
  130370. }()
  130371. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  130372. ctx = rctx // use context from middleware stack in children
  130373. return obj.Instructions, nil
  130374. })
  130375. if err != nil {
  130376. ec.Error(ctx, err)
  130377. return graphql.Null
  130378. }
  130379. if resTmp == nil {
  130380. return graphql.Null
  130381. }
  130382. res := resTmp.(*string)
  130383. fc.Result = res
  130384. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  130385. }
  130386. func (ec *executionContext) fieldContext_SubscriptionDeliveryMethodLocalDeliveryOption_instructions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  130387. fc = &graphql.FieldContext{
  130388. Object: "SubscriptionDeliveryMethodLocalDeliveryOption",
  130389. Field: field,
  130390. IsMethod: false,
  130391. IsResolver: false,
  130392. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  130393. return nil, errors.New("field of type String does not have child fields")
  130394. },
  130395. }
  130396. return fc, nil
  130397. }
  130398. func (ec *executionContext) _SubscriptionDeliveryMethodLocalDeliveryOption_phone(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDeliveryMethodLocalDeliveryOption) (ret graphql.Marshaler) {
  130399. fc, err := ec.fieldContext_SubscriptionDeliveryMethodLocalDeliveryOption_phone(ctx, field)
  130400. if err != nil {
  130401. return graphql.Null
  130402. }
  130403. ctx = graphql.WithFieldContext(ctx, fc)
  130404. defer func() {
  130405. if r := recover(); r != nil {
  130406. ec.Error(ctx, ec.Recover(ctx, r))
  130407. ret = graphql.Null
  130408. }
  130409. }()
  130410. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  130411. ctx = rctx // use context from middleware stack in children
  130412. return obj.Phone, nil
  130413. })
  130414. if err != nil {
  130415. ec.Error(ctx, err)
  130416. return graphql.Null
  130417. }
  130418. if resTmp == nil {
  130419. if !graphql.HasFieldError(ctx, fc) {
  130420. ec.Errorf(ctx, "must not be null")
  130421. }
  130422. return graphql.Null
  130423. }
  130424. res := resTmp.(string)
  130425. fc.Result = res
  130426. return ec.marshalNString2string(ctx, field.Selections, res)
  130427. }
  130428. func (ec *executionContext) fieldContext_SubscriptionDeliveryMethodLocalDeliveryOption_phone(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  130429. fc = &graphql.FieldContext{
  130430. Object: "SubscriptionDeliveryMethodLocalDeliveryOption",
  130431. Field: field,
  130432. IsMethod: false,
  130433. IsResolver: false,
  130434. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  130435. return nil, errors.New("field of type String does not have child fields")
  130436. },
  130437. }
  130438. return fc, nil
  130439. }
  130440. func (ec *executionContext) _SubscriptionDeliveryMethodLocalDeliveryOption_presentmentTitle(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDeliveryMethodLocalDeliveryOption) (ret graphql.Marshaler) {
  130441. fc, err := ec.fieldContext_SubscriptionDeliveryMethodLocalDeliveryOption_presentmentTitle(ctx, field)
  130442. if err != nil {
  130443. return graphql.Null
  130444. }
  130445. ctx = graphql.WithFieldContext(ctx, fc)
  130446. defer func() {
  130447. if r := recover(); r != nil {
  130448. ec.Error(ctx, ec.Recover(ctx, r))
  130449. ret = graphql.Null
  130450. }
  130451. }()
  130452. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  130453. ctx = rctx // use context from middleware stack in children
  130454. return obj.PresentmentTitle, nil
  130455. })
  130456. if err != nil {
  130457. ec.Error(ctx, err)
  130458. return graphql.Null
  130459. }
  130460. if resTmp == nil {
  130461. return graphql.Null
  130462. }
  130463. res := resTmp.(*string)
  130464. fc.Result = res
  130465. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  130466. }
  130467. func (ec *executionContext) fieldContext_SubscriptionDeliveryMethodLocalDeliveryOption_presentmentTitle(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  130468. fc = &graphql.FieldContext{
  130469. Object: "SubscriptionDeliveryMethodLocalDeliveryOption",
  130470. Field: field,
  130471. IsMethod: false,
  130472. IsResolver: false,
  130473. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  130474. return nil, errors.New("field of type String does not have child fields")
  130475. },
  130476. }
  130477. return fc, nil
  130478. }
  130479. func (ec *executionContext) _SubscriptionDeliveryMethodLocalDeliveryOption_title(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDeliveryMethodLocalDeliveryOption) (ret graphql.Marshaler) {
  130480. fc, err := ec.fieldContext_SubscriptionDeliveryMethodLocalDeliveryOption_title(ctx, field)
  130481. if err != nil {
  130482. return graphql.Null
  130483. }
  130484. ctx = graphql.WithFieldContext(ctx, fc)
  130485. defer func() {
  130486. if r := recover(); r != nil {
  130487. ec.Error(ctx, ec.Recover(ctx, r))
  130488. ret = graphql.Null
  130489. }
  130490. }()
  130491. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  130492. ctx = rctx // use context from middleware stack in children
  130493. return obj.Title, nil
  130494. })
  130495. if err != nil {
  130496. ec.Error(ctx, err)
  130497. return graphql.Null
  130498. }
  130499. if resTmp == nil {
  130500. return graphql.Null
  130501. }
  130502. res := resTmp.(*string)
  130503. fc.Result = res
  130504. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  130505. }
  130506. func (ec *executionContext) fieldContext_SubscriptionDeliveryMethodLocalDeliveryOption_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  130507. fc = &graphql.FieldContext{
  130508. Object: "SubscriptionDeliveryMethodLocalDeliveryOption",
  130509. Field: field,
  130510. IsMethod: false,
  130511. IsResolver: false,
  130512. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  130513. return nil, errors.New("field of type String does not have child fields")
  130514. },
  130515. }
  130516. return fc, nil
  130517. }
  130518. func (ec *executionContext) _SubscriptionDeliveryMethodPickup_pickupOption(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDeliveryMethodPickup) (ret graphql.Marshaler) {
  130519. fc, err := ec.fieldContext_SubscriptionDeliveryMethodPickup_pickupOption(ctx, field)
  130520. if err != nil {
  130521. return graphql.Null
  130522. }
  130523. ctx = graphql.WithFieldContext(ctx, fc)
  130524. defer func() {
  130525. if r := recover(); r != nil {
  130526. ec.Error(ctx, ec.Recover(ctx, r))
  130527. ret = graphql.Null
  130528. }
  130529. }()
  130530. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  130531. ctx = rctx // use context from middleware stack in children
  130532. return obj.PickupOption, nil
  130533. })
  130534. if err != nil {
  130535. ec.Error(ctx, err)
  130536. return graphql.Null
  130537. }
  130538. if resTmp == nil {
  130539. if !graphql.HasFieldError(ctx, fc) {
  130540. ec.Errorf(ctx, "must not be null")
  130541. }
  130542. return graphql.Null
  130543. }
  130544. res := resTmp.(*SubscriptionDeliveryMethodPickupOption)
  130545. fc.Result = res
  130546. return ec.marshalNSubscriptionDeliveryMethodPickupOption2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionDeliveryMethodPickupOption(ctx, field.Selections, res)
  130547. }
  130548. func (ec *executionContext) fieldContext_SubscriptionDeliveryMethodPickup_pickupOption(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  130549. fc = &graphql.FieldContext{
  130550. Object: "SubscriptionDeliveryMethodPickup",
  130551. Field: field,
  130552. IsMethod: false,
  130553. IsResolver: false,
  130554. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  130555. switch field.Name {
  130556. case "code":
  130557. return ec.fieldContext_SubscriptionDeliveryMethodPickupOption_code(ctx, field)
  130558. case "description":
  130559. return ec.fieldContext_SubscriptionDeliveryMethodPickupOption_description(ctx, field)
  130560. case "location":
  130561. return ec.fieldContext_SubscriptionDeliveryMethodPickupOption_location(ctx, field)
  130562. case "presentmentTitle":
  130563. return ec.fieldContext_SubscriptionDeliveryMethodPickupOption_presentmentTitle(ctx, field)
  130564. case "title":
  130565. return ec.fieldContext_SubscriptionDeliveryMethodPickupOption_title(ctx, field)
  130566. }
  130567. return nil, fmt.Errorf("no field named %q was found under type SubscriptionDeliveryMethodPickupOption", field.Name)
  130568. },
  130569. }
  130570. return fc, nil
  130571. }
  130572. func (ec *executionContext) _SubscriptionDeliveryMethodPickupOption_code(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDeliveryMethodPickupOption) (ret graphql.Marshaler) {
  130573. fc, err := ec.fieldContext_SubscriptionDeliveryMethodPickupOption_code(ctx, field)
  130574. if err != nil {
  130575. return graphql.Null
  130576. }
  130577. ctx = graphql.WithFieldContext(ctx, fc)
  130578. defer func() {
  130579. if r := recover(); r != nil {
  130580. ec.Error(ctx, ec.Recover(ctx, r))
  130581. ret = graphql.Null
  130582. }
  130583. }()
  130584. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  130585. ctx = rctx // use context from middleware stack in children
  130586. return obj.Code, nil
  130587. })
  130588. if err != nil {
  130589. ec.Error(ctx, err)
  130590. return graphql.Null
  130591. }
  130592. if resTmp == nil {
  130593. return graphql.Null
  130594. }
  130595. res := resTmp.(*string)
  130596. fc.Result = res
  130597. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  130598. }
  130599. func (ec *executionContext) fieldContext_SubscriptionDeliveryMethodPickupOption_code(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  130600. fc = &graphql.FieldContext{
  130601. Object: "SubscriptionDeliveryMethodPickupOption",
  130602. Field: field,
  130603. IsMethod: false,
  130604. IsResolver: false,
  130605. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  130606. return nil, errors.New("field of type String does not have child fields")
  130607. },
  130608. }
  130609. return fc, nil
  130610. }
  130611. func (ec *executionContext) _SubscriptionDeliveryMethodPickupOption_description(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDeliveryMethodPickupOption) (ret graphql.Marshaler) {
  130612. fc, err := ec.fieldContext_SubscriptionDeliveryMethodPickupOption_description(ctx, field)
  130613. if err != nil {
  130614. return graphql.Null
  130615. }
  130616. ctx = graphql.WithFieldContext(ctx, fc)
  130617. defer func() {
  130618. if r := recover(); r != nil {
  130619. ec.Error(ctx, ec.Recover(ctx, r))
  130620. ret = graphql.Null
  130621. }
  130622. }()
  130623. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  130624. ctx = rctx // use context from middleware stack in children
  130625. return obj.Description, nil
  130626. })
  130627. if err != nil {
  130628. ec.Error(ctx, err)
  130629. return graphql.Null
  130630. }
  130631. if resTmp == nil {
  130632. return graphql.Null
  130633. }
  130634. res := resTmp.(*string)
  130635. fc.Result = res
  130636. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  130637. }
  130638. func (ec *executionContext) fieldContext_SubscriptionDeliveryMethodPickupOption_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  130639. fc = &graphql.FieldContext{
  130640. Object: "SubscriptionDeliveryMethodPickupOption",
  130641. Field: field,
  130642. IsMethod: false,
  130643. IsResolver: false,
  130644. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  130645. return nil, errors.New("field of type String does not have child fields")
  130646. },
  130647. }
  130648. return fc, nil
  130649. }
  130650. func (ec *executionContext) _SubscriptionDeliveryMethodPickupOption_location(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDeliveryMethodPickupOption) (ret graphql.Marshaler) {
  130651. fc, err := ec.fieldContext_SubscriptionDeliveryMethodPickupOption_location(ctx, field)
  130652. if err != nil {
  130653. return graphql.Null
  130654. }
  130655. ctx = graphql.WithFieldContext(ctx, fc)
  130656. defer func() {
  130657. if r := recover(); r != nil {
  130658. ec.Error(ctx, ec.Recover(ctx, r))
  130659. ret = graphql.Null
  130660. }
  130661. }()
  130662. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  130663. ctx = rctx // use context from middleware stack in children
  130664. return obj.Location, nil
  130665. })
  130666. if err != nil {
  130667. ec.Error(ctx, err)
  130668. return graphql.Null
  130669. }
  130670. if resTmp == nil {
  130671. if !graphql.HasFieldError(ctx, fc) {
  130672. ec.Errorf(ctx, "must not be null")
  130673. }
  130674. return graphql.Null
  130675. }
  130676. res := resTmp.(*Location)
  130677. fc.Result = res
  130678. return ec.marshalNLocation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocation(ctx, field.Selections, res)
  130679. }
  130680. func (ec *executionContext) fieldContext_SubscriptionDeliveryMethodPickupOption_location(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  130681. fc = &graphql.FieldContext{
  130682. Object: "SubscriptionDeliveryMethodPickupOption",
  130683. Field: field,
  130684. IsMethod: false,
  130685. IsResolver: false,
  130686. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  130687. switch field.Name {
  130688. case "activatable":
  130689. return ec.fieldContext_Location_activatable(ctx, field)
  130690. case "address":
  130691. return ec.fieldContext_Location_address(ctx, field)
  130692. case "addressVerified":
  130693. return ec.fieldContext_Location_addressVerified(ctx, field)
  130694. case "deactivatable":
  130695. return ec.fieldContext_Location_deactivatable(ctx, field)
  130696. case "deactivatedAt":
  130697. return ec.fieldContext_Location_deactivatedAt(ctx, field)
  130698. case "deletable":
  130699. return ec.fieldContext_Location_deletable(ctx, field)
  130700. case "fulfillmentService":
  130701. return ec.fieldContext_Location_fulfillmentService(ctx, field)
  130702. case "fulfillsOnlineOrders":
  130703. return ec.fieldContext_Location_fulfillsOnlineOrders(ctx, field)
  130704. case "hasActiveInventory":
  130705. return ec.fieldContext_Location_hasActiveInventory(ctx, field)
  130706. case "hasUnfulfilledOrders":
  130707. return ec.fieldContext_Location_hasUnfulfilledOrders(ctx, field)
  130708. case "id":
  130709. return ec.fieldContext_Location_id(ctx, field)
  130710. case "inventoryLevel":
  130711. return ec.fieldContext_Location_inventoryLevel(ctx, field)
  130712. case "inventoryLevels":
  130713. return ec.fieldContext_Location_inventoryLevels(ctx, field)
  130714. case "isActive":
  130715. return ec.fieldContext_Location_isActive(ctx, field)
  130716. case "legacyResourceId":
  130717. return ec.fieldContext_Location_legacyResourceId(ctx, field)
  130718. case "metafield":
  130719. return ec.fieldContext_Location_metafield(ctx, field)
  130720. case "metafieldDefinitions":
  130721. return ec.fieldContext_Location_metafieldDefinitions(ctx, field)
  130722. case "metafields":
  130723. return ec.fieldContext_Location_metafields(ctx, field)
  130724. case "name":
  130725. return ec.fieldContext_Location_name(ctx, field)
  130726. case "privateMetafield":
  130727. return ec.fieldContext_Location_privateMetafield(ctx, field)
  130728. case "privateMetafields":
  130729. return ec.fieldContext_Location_privateMetafields(ctx, field)
  130730. case "shipsInventory":
  130731. return ec.fieldContext_Location_shipsInventory(ctx, field)
  130732. case "suggestedAddresses":
  130733. return ec.fieldContext_Location_suggestedAddresses(ctx, field)
  130734. }
  130735. return nil, fmt.Errorf("no field named %q was found under type Location", field.Name)
  130736. },
  130737. }
  130738. return fc, nil
  130739. }
  130740. func (ec *executionContext) _SubscriptionDeliveryMethodPickupOption_presentmentTitle(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDeliveryMethodPickupOption) (ret graphql.Marshaler) {
  130741. fc, err := ec.fieldContext_SubscriptionDeliveryMethodPickupOption_presentmentTitle(ctx, field)
  130742. if err != nil {
  130743. return graphql.Null
  130744. }
  130745. ctx = graphql.WithFieldContext(ctx, fc)
  130746. defer func() {
  130747. if r := recover(); r != nil {
  130748. ec.Error(ctx, ec.Recover(ctx, r))
  130749. ret = graphql.Null
  130750. }
  130751. }()
  130752. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  130753. ctx = rctx // use context from middleware stack in children
  130754. return obj.PresentmentTitle, nil
  130755. })
  130756. if err != nil {
  130757. ec.Error(ctx, err)
  130758. return graphql.Null
  130759. }
  130760. if resTmp == nil {
  130761. return graphql.Null
  130762. }
  130763. res := resTmp.(*string)
  130764. fc.Result = res
  130765. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  130766. }
  130767. func (ec *executionContext) fieldContext_SubscriptionDeliveryMethodPickupOption_presentmentTitle(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  130768. fc = &graphql.FieldContext{
  130769. Object: "SubscriptionDeliveryMethodPickupOption",
  130770. Field: field,
  130771. IsMethod: false,
  130772. IsResolver: false,
  130773. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  130774. return nil, errors.New("field of type String does not have child fields")
  130775. },
  130776. }
  130777. return fc, nil
  130778. }
  130779. func (ec *executionContext) _SubscriptionDeliveryMethodPickupOption_title(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDeliveryMethodPickupOption) (ret graphql.Marshaler) {
  130780. fc, err := ec.fieldContext_SubscriptionDeliveryMethodPickupOption_title(ctx, field)
  130781. if err != nil {
  130782. return graphql.Null
  130783. }
  130784. ctx = graphql.WithFieldContext(ctx, fc)
  130785. defer func() {
  130786. if r := recover(); r != nil {
  130787. ec.Error(ctx, ec.Recover(ctx, r))
  130788. ret = graphql.Null
  130789. }
  130790. }()
  130791. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  130792. ctx = rctx // use context from middleware stack in children
  130793. return obj.Title, nil
  130794. })
  130795. if err != nil {
  130796. ec.Error(ctx, err)
  130797. return graphql.Null
  130798. }
  130799. if resTmp == nil {
  130800. return graphql.Null
  130801. }
  130802. res := resTmp.(*string)
  130803. fc.Result = res
  130804. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  130805. }
  130806. func (ec *executionContext) fieldContext_SubscriptionDeliveryMethodPickupOption_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  130807. fc = &graphql.FieldContext{
  130808. Object: "SubscriptionDeliveryMethodPickupOption",
  130809. Field: field,
  130810. IsMethod: false,
  130811. IsResolver: false,
  130812. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  130813. return nil, errors.New("field of type String does not have child fields")
  130814. },
  130815. }
  130816. return fc, nil
  130817. }
  130818. func (ec *executionContext) _SubscriptionDeliveryMethodShipping_address(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDeliveryMethodShipping) (ret graphql.Marshaler) {
  130819. fc, err := ec.fieldContext_SubscriptionDeliveryMethodShipping_address(ctx, field)
  130820. if err != nil {
  130821. return graphql.Null
  130822. }
  130823. ctx = graphql.WithFieldContext(ctx, fc)
  130824. defer func() {
  130825. if r := recover(); r != nil {
  130826. ec.Error(ctx, ec.Recover(ctx, r))
  130827. ret = graphql.Null
  130828. }
  130829. }()
  130830. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  130831. ctx = rctx // use context from middleware stack in children
  130832. return obj.Address, nil
  130833. })
  130834. if err != nil {
  130835. ec.Error(ctx, err)
  130836. return graphql.Null
  130837. }
  130838. if resTmp == nil {
  130839. if !graphql.HasFieldError(ctx, fc) {
  130840. ec.Errorf(ctx, "must not be null")
  130841. }
  130842. return graphql.Null
  130843. }
  130844. res := resTmp.(*SubscriptionMailingAddress)
  130845. fc.Result = res
  130846. return ec.marshalNSubscriptionMailingAddress2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionMailingAddress(ctx, field.Selections, res)
  130847. }
  130848. func (ec *executionContext) fieldContext_SubscriptionDeliveryMethodShipping_address(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  130849. fc = &graphql.FieldContext{
  130850. Object: "SubscriptionDeliveryMethodShipping",
  130851. Field: field,
  130852. IsMethod: false,
  130853. IsResolver: false,
  130854. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  130855. switch field.Name {
  130856. case "address1":
  130857. return ec.fieldContext_SubscriptionMailingAddress_address1(ctx, field)
  130858. case "address2":
  130859. return ec.fieldContext_SubscriptionMailingAddress_address2(ctx, field)
  130860. case "city":
  130861. return ec.fieldContext_SubscriptionMailingAddress_city(ctx, field)
  130862. case "company":
  130863. return ec.fieldContext_SubscriptionMailingAddress_company(ctx, field)
  130864. case "country":
  130865. return ec.fieldContext_SubscriptionMailingAddress_country(ctx, field)
  130866. case "countryCode":
  130867. return ec.fieldContext_SubscriptionMailingAddress_countryCode(ctx, field)
  130868. case "firstName":
  130869. return ec.fieldContext_SubscriptionMailingAddress_firstName(ctx, field)
  130870. case "lastName":
  130871. return ec.fieldContext_SubscriptionMailingAddress_lastName(ctx, field)
  130872. case "name":
  130873. return ec.fieldContext_SubscriptionMailingAddress_name(ctx, field)
  130874. case "phone":
  130875. return ec.fieldContext_SubscriptionMailingAddress_phone(ctx, field)
  130876. case "province":
  130877. return ec.fieldContext_SubscriptionMailingAddress_province(ctx, field)
  130878. case "provinceCode":
  130879. return ec.fieldContext_SubscriptionMailingAddress_provinceCode(ctx, field)
  130880. case "zip":
  130881. return ec.fieldContext_SubscriptionMailingAddress_zip(ctx, field)
  130882. }
  130883. return nil, fmt.Errorf("no field named %q was found under type SubscriptionMailingAddress", field.Name)
  130884. },
  130885. }
  130886. return fc, nil
  130887. }
  130888. func (ec *executionContext) _SubscriptionDeliveryMethodShipping_shippingOption(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDeliveryMethodShipping) (ret graphql.Marshaler) {
  130889. fc, err := ec.fieldContext_SubscriptionDeliveryMethodShipping_shippingOption(ctx, field)
  130890. if err != nil {
  130891. return graphql.Null
  130892. }
  130893. ctx = graphql.WithFieldContext(ctx, fc)
  130894. defer func() {
  130895. if r := recover(); r != nil {
  130896. ec.Error(ctx, ec.Recover(ctx, r))
  130897. ret = graphql.Null
  130898. }
  130899. }()
  130900. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  130901. ctx = rctx // use context from middleware stack in children
  130902. return obj.ShippingOption, nil
  130903. })
  130904. if err != nil {
  130905. ec.Error(ctx, err)
  130906. return graphql.Null
  130907. }
  130908. if resTmp == nil {
  130909. if !graphql.HasFieldError(ctx, fc) {
  130910. ec.Errorf(ctx, "must not be null")
  130911. }
  130912. return graphql.Null
  130913. }
  130914. res := resTmp.(*SubscriptionDeliveryMethodShippingOption)
  130915. fc.Result = res
  130916. return ec.marshalNSubscriptionDeliveryMethodShippingOption2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionDeliveryMethodShippingOption(ctx, field.Selections, res)
  130917. }
  130918. func (ec *executionContext) fieldContext_SubscriptionDeliveryMethodShipping_shippingOption(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  130919. fc = &graphql.FieldContext{
  130920. Object: "SubscriptionDeliveryMethodShipping",
  130921. Field: field,
  130922. IsMethod: false,
  130923. IsResolver: false,
  130924. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  130925. switch field.Name {
  130926. case "carrierService":
  130927. return ec.fieldContext_SubscriptionDeliveryMethodShippingOption_carrierService(ctx, field)
  130928. case "code":
  130929. return ec.fieldContext_SubscriptionDeliveryMethodShippingOption_code(ctx, field)
  130930. case "description":
  130931. return ec.fieldContext_SubscriptionDeliveryMethodShippingOption_description(ctx, field)
  130932. case "presentmentTitle":
  130933. return ec.fieldContext_SubscriptionDeliveryMethodShippingOption_presentmentTitle(ctx, field)
  130934. case "title":
  130935. return ec.fieldContext_SubscriptionDeliveryMethodShippingOption_title(ctx, field)
  130936. }
  130937. return nil, fmt.Errorf("no field named %q was found under type SubscriptionDeliveryMethodShippingOption", field.Name)
  130938. },
  130939. }
  130940. return fc, nil
  130941. }
  130942. func (ec *executionContext) _SubscriptionDeliveryMethodShippingOption_carrierService(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDeliveryMethodShippingOption) (ret graphql.Marshaler) {
  130943. fc, err := ec.fieldContext_SubscriptionDeliveryMethodShippingOption_carrierService(ctx, field)
  130944. if err != nil {
  130945. return graphql.Null
  130946. }
  130947. ctx = graphql.WithFieldContext(ctx, fc)
  130948. defer func() {
  130949. if r := recover(); r != nil {
  130950. ec.Error(ctx, ec.Recover(ctx, r))
  130951. ret = graphql.Null
  130952. }
  130953. }()
  130954. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  130955. ctx = rctx // use context from middleware stack in children
  130956. return obj.CarrierService, nil
  130957. })
  130958. if err != nil {
  130959. ec.Error(ctx, err)
  130960. return graphql.Null
  130961. }
  130962. if resTmp == nil {
  130963. return graphql.Null
  130964. }
  130965. res := resTmp.(*DeliveryCarrierService)
  130966. fc.Result = res
  130967. return ec.marshalODeliveryCarrierService2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryCarrierService(ctx, field.Selections, res)
  130968. }
  130969. func (ec *executionContext) fieldContext_SubscriptionDeliveryMethodShippingOption_carrierService(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  130970. fc = &graphql.FieldContext{
  130971. Object: "SubscriptionDeliveryMethodShippingOption",
  130972. Field: field,
  130973. IsMethod: false,
  130974. IsResolver: false,
  130975. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  130976. switch field.Name {
  130977. case "availableServicesForCountries":
  130978. return ec.fieldContext_DeliveryCarrierService_availableServicesForCountries(ctx, field)
  130979. case "formattedName":
  130980. return ec.fieldContext_DeliveryCarrierService_formattedName(ctx, field)
  130981. case "icon":
  130982. return ec.fieldContext_DeliveryCarrierService_icon(ctx, field)
  130983. case "id":
  130984. return ec.fieldContext_DeliveryCarrierService_id(ctx, field)
  130985. case "name":
  130986. return ec.fieldContext_DeliveryCarrierService_name(ctx, field)
  130987. }
  130988. return nil, fmt.Errorf("no field named %q was found under type DeliveryCarrierService", field.Name)
  130989. },
  130990. }
  130991. return fc, nil
  130992. }
  130993. func (ec *executionContext) _SubscriptionDeliveryMethodShippingOption_code(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDeliveryMethodShippingOption) (ret graphql.Marshaler) {
  130994. fc, err := ec.fieldContext_SubscriptionDeliveryMethodShippingOption_code(ctx, field)
  130995. if err != nil {
  130996. return graphql.Null
  130997. }
  130998. ctx = graphql.WithFieldContext(ctx, fc)
  130999. defer func() {
  131000. if r := recover(); r != nil {
  131001. ec.Error(ctx, ec.Recover(ctx, r))
  131002. ret = graphql.Null
  131003. }
  131004. }()
  131005. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  131006. ctx = rctx // use context from middleware stack in children
  131007. return obj.Code, nil
  131008. })
  131009. if err != nil {
  131010. ec.Error(ctx, err)
  131011. return graphql.Null
  131012. }
  131013. if resTmp == nil {
  131014. return graphql.Null
  131015. }
  131016. res := resTmp.(*string)
  131017. fc.Result = res
  131018. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  131019. }
  131020. func (ec *executionContext) fieldContext_SubscriptionDeliveryMethodShippingOption_code(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  131021. fc = &graphql.FieldContext{
  131022. Object: "SubscriptionDeliveryMethodShippingOption",
  131023. Field: field,
  131024. IsMethod: false,
  131025. IsResolver: false,
  131026. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  131027. return nil, errors.New("field of type String does not have child fields")
  131028. },
  131029. }
  131030. return fc, nil
  131031. }
  131032. func (ec *executionContext) _SubscriptionDeliveryMethodShippingOption_description(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDeliveryMethodShippingOption) (ret graphql.Marshaler) {
  131033. fc, err := ec.fieldContext_SubscriptionDeliveryMethodShippingOption_description(ctx, field)
  131034. if err != nil {
  131035. return graphql.Null
  131036. }
  131037. ctx = graphql.WithFieldContext(ctx, fc)
  131038. defer func() {
  131039. if r := recover(); r != nil {
  131040. ec.Error(ctx, ec.Recover(ctx, r))
  131041. ret = graphql.Null
  131042. }
  131043. }()
  131044. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  131045. ctx = rctx // use context from middleware stack in children
  131046. return obj.Description, nil
  131047. })
  131048. if err != nil {
  131049. ec.Error(ctx, err)
  131050. return graphql.Null
  131051. }
  131052. if resTmp == nil {
  131053. return graphql.Null
  131054. }
  131055. res := resTmp.(*string)
  131056. fc.Result = res
  131057. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  131058. }
  131059. func (ec *executionContext) fieldContext_SubscriptionDeliveryMethodShippingOption_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  131060. fc = &graphql.FieldContext{
  131061. Object: "SubscriptionDeliveryMethodShippingOption",
  131062. Field: field,
  131063. IsMethod: false,
  131064. IsResolver: false,
  131065. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  131066. return nil, errors.New("field of type String does not have child fields")
  131067. },
  131068. }
  131069. return fc, nil
  131070. }
  131071. func (ec *executionContext) _SubscriptionDeliveryMethodShippingOption_presentmentTitle(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDeliveryMethodShippingOption) (ret graphql.Marshaler) {
  131072. fc, err := ec.fieldContext_SubscriptionDeliveryMethodShippingOption_presentmentTitle(ctx, field)
  131073. if err != nil {
  131074. return graphql.Null
  131075. }
  131076. ctx = graphql.WithFieldContext(ctx, fc)
  131077. defer func() {
  131078. if r := recover(); r != nil {
  131079. ec.Error(ctx, ec.Recover(ctx, r))
  131080. ret = graphql.Null
  131081. }
  131082. }()
  131083. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  131084. ctx = rctx // use context from middleware stack in children
  131085. return obj.PresentmentTitle, nil
  131086. })
  131087. if err != nil {
  131088. ec.Error(ctx, err)
  131089. return graphql.Null
  131090. }
  131091. if resTmp == nil {
  131092. return graphql.Null
  131093. }
  131094. res := resTmp.(*string)
  131095. fc.Result = res
  131096. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  131097. }
  131098. func (ec *executionContext) fieldContext_SubscriptionDeliveryMethodShippingOption_presentmentTitle(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  131099. fc = &graphql.FieldContext{
  131100. Object: "SubscriptionDeliveryMethodShippingOption",
  131101. Field: field,
  131102. IsMethod: false,
  131103. IsResolver: false,
  131104. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  131105. return nil, errors.New("field of type String does not have child fields")
  131106. },
  131107. }
  131108. return fc, nil
  131109. }
  131110. func (ec *executionContext) _SubscriptionDeliveryMethodShippingOption_title(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDeliveryMethodShippingOption) (ret graphql.Marshaler) {
  131111. fc, err := ec.fieldContext_SubscriptionDeliveryMethodShippingOption_title(ctx, field)
  131112. if err != nil {
  131113. return graphql.Null
  131114. }
  131115. ctx = graphql.WithFieldContext(ctx, fc)
  131116. defer func() {
  131117. if r := recover(); r != nil {
  131118. ec.Error(ctx, ec.Recover(ctx, r))
  131119. ret = graphql.Null
  131120. }
  131121. }()
  131122. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  131123. ctx = rctx // use context from middleware stack in children
  131124. return obj.Title, nil
  131125. })
  131126. if err != nil {
  131127. ec.Error(ctx, err)
  131128. return graphql.Null
  131129. }
  131130. if resTmp == nil {
  131131. return graphql.Null
  131132. }
  131133. res := resTmp.(*string)
  131134. fc.Result = res
  131135. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  131136. }
  131137. func (ec *executionContext) fieldContext_SubscriptionDeliveryMethodShippingOption_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  131138. fc = &graphql.FieldContext{
  131139. Object: "SubscriptionDeliveryMethodShippingOption",
  131140. Field: field,
  131141. IsMethod: false,
  131142. IsResolver: false,
  131143. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  131144. return nil, errors.New("field of type String does not have child fields")
  131145. },
  131146. }
  131147. return fc, nil
  131148. }
  131149. func (ec *executionContext) _SubscriptionDeliveryPolicy_anchors(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDeliveryPolicy) (ret graphql.Marshaler) {
  131150. fc, err := ec.fieldContext_SubscriptionDeliveryPolicy_anchors(ctx, field)
  131151. if err != nil {
  131152. return graphql.Null
  131153. }
  131154. ctx = graphql.WithFieldContext(ctx, fc)
  131155. defer func() {
  131156. if r := recover(); r != nil {
  131157. ec.Error(ctx, ec.Recover(ctx, r))
  131158. ret = graphql.Null
  131159. }
  131160. }()
  131161. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  131162. ctx = rctx // use context from middleware stack in children
  131163. return obj.Anchors, nil
  131164. })
  131165. if err != nil {
  131166. ec.Error(ctx, err)
  131167. return graphql.Null
  131168. }
  131169. if resTmp == nil {
  131170. if !graphql.HasFieldError(ctx, fc) {
  131171. ec.Errorf(ctx, "must not be null")
  131172. }
  131173. return graphql.Null
  131174. }
  131175. res := resTmp.([]*SellingPlanAnchor)
  131176. fc.Result = res
  131177. return ec.marshalNSellingPlanAnchor2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanAnchorᚄ(ctx, field.Selections, res)
  131178. }
  131179. func (ec *executionContext) fieldContext_SubscriptionDeliveryPolicy_anchors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  131180. fc = &graphql.FieldContext{
  131181. Object: "SubscriptionDeliveryPolicy",
  131182. Field: field,
  131183. IsMethod: false,
  131184. IsResolver: false,
  131185. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  131186. switch field.Name {
  131187. case "cutoffDay":
  131188. return ec.fieldContext_SellingPlanAnchor_cutoffDay(ctx, field)
  131189. case "day":
  131190. return ec.fieldContext_SellingPlanAnchor_day(ctx, field)
  131191. case "month":
  131192. return ec.fieldContext_SellingPlanAnchor_month(ctx, field)
  131193. case "type":
  131194. return ec.fieldContext_SellingPlanAnchor_type(ctx, field)
  131195. }
  131196. return nil, fmt.Errorf("no field named %q was found under type SellingPlanAnchor", field.Name)
  131197. },
  131198. }
  131199. return fc, nil
  131200. }
  131201. func (ec *executionContext) _SubscriptionDeliveryPolicy_interval(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDeliveryPolicy) (ret graphql.Marshaler) {
  131202. fc, err := ec.fieldContext_SubscriptionDeliveryPolicy_interval(ctx, field)
  131203. if err != nil {
  131204. return graphql.Null
  131205. }
  131206. ctx = graphql.WithFieldContext(ctx, fc)
  131207. defer func() {
  131208. if r := recover(); r != nil {
  131209. ec.Error(ctx, ec.Recover(ctx, r))
  131210. ret = graphql.Null
  131211. }
  131212. }()
  131213. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  131214. ctx = rctx // use context from middleware stack in children
  131215. return obj.Interval, nil
  131216. })
  131217. if err != nil {
  131218. ec.Error(ctx, err)
  131219. return graphql.Null
  131220. }
  131221. if resTmp == nil {
  131222. if !graphql.HasFieldError(ctx, fc) {
  131223. ec.Errorf(ctx, "must not be null")
  131224. }
  131225. return graphql.Null
  131226. }
  131227. res := resTmp.(SellingPlanInterval)
  131228. fc.Result = res
  131229. return ec.marshalNSellingPlanInterval2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanInterval(ctx, field.Selections, res)
  131230. }
  131231. func (ec *executionContext) fieldContext_SubscriptionDeliveryPolicy_interval(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  131232. fc = &graphql.FieldContext{
  131233. Object: "SubscriptionDeliveryPolicy",
  131234. Field: field,
  131235. IsMethod: false,
  131236. IsResolver: false,
  131237. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  131238. return nil, errors.New("field of type SellingPlanInterval does not have child fields")
  131239. },
  131240. }
  131241. return fc, nil
  131242. }
  131243. func (ec *executionContext) _SubscriptionDeliveryPolicy_intervalCount(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDeliveryPolicy) (ret graphql.Marshaler) {
  131244. fc, err := ec.fieldContext_SubscriptionDeliveryPolicy_intervalCount(ctx, field)
  131245. if err != nil {
  131246. return graphql.Null
  131247. }
  131248. ctx = graphql.WithFieldContext(ctx, fc)
  131249. defer func() {
  131250. if r := recover(); r != nil {
  131251. ec.Error(ctx, ec.Recover(ctx, r))
  131252. ret = graphql.Null
  131253. }
  131254. }()
  131255. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  131256. ctx = rctx // use context from middleware stack in children
  131257. return obj.IntervalCount, nil
  131258. })
  131259. if err != nil {
  131260. ec.Error(ctx, err)
  131261. return graphql.Null
  131262. }
  131263. if resTmp == nil {
  131264. if !graphql.HasFieldError(ctx, fc) {
  131265. ec.Errorf(ctx, "must not be null")
  131266. }
  131267. return graphql.Null
  131268. }
  131269. res := resTmp.(int)
  131270. fc.Result = res
  131271. return ec.marshalNInt2int(ctx, field.Selections, res)
  131272. }
  131273. func (ec *executionContext) fieldContext_SubscriptionDeliveryPolicy_intervalCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  131274. fc = &graphql.FieldContext{
  131275. Object: "SubscriptionDeliveryPolicy",
  131276. Field: field,
  131277. IsMethod: false,
  131278. IsResolver: false,
  131279. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  131280. return nil, errors.New("field of type Int does not have child fields")
  131281. },
  131282. }
  131283. return fc, nil
  131284. }
  131285. func (ec *executionContext) _SubscriptionDiscountAllocation_amount(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDiscountAllocation) (ret graphql.Marshaler) {
  131286. fc, err := ec.fieldContext_SubscriptionDiscountAllocation_amount(ctx, field)
  131287. if err != nil {
  131288. return graphql.Null
  131289. }
  131290. ctx = graphql.WithFieldContext(ctx, fc)
  131291. defer func() {
  131292. if r := recover(); r != nil {
  131293. ec.Error(ctx, ec.Recover(ctx, r))
  131294. ret = graphql.Null
  131295. }
  131296. }()
  131297. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  131298. ctx = rctx // use context from middleware stack in children
  131299. return obj.Amount, nil
  131300. })
  131301. if err != nil {
  131302. ec.Error(ctx, err)
  131303. return graphql.Null
  131304. }
  131305. if resTmp == nil {
  131306. if !graphql.HasFieldError(ctx, fc) {
  131307. ec.Errorf(ctx, "must not be null")
  131308. }
  131309. return graphql.Null
  131310. }
  131311. res := resTmp.(*MoneyV2)
  131312. fc.Result = res
  131313. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  131314. }
  131315. func (ec *executionContext) fieldContext_SubscriptionDiscountAllocation_amount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  131316. fc = &graphql.FieldContext{
  131317. Object: "SubscriptionDiscountAllocation",
  131318. Field: field,
  131319. IsMethod: false,
  131320. IsResolver: false,
  131321. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  131322. switch field.Name {
  131323. case "amount":
  131324. return ec.fieldContext_MoneyV2_amount(ctx, field)
  131325. case "currencyCode":
  131326. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  131327. }
  131328. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  131329. },
  131330. }
  131331. return fc, nil
  131332. }
  131333. func (ec *executionContext) _SubscriptionDiscountAllocation_discount(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDiscountAllocation) (ret graphql.Marshaler) {
  131334. fc, err := ec.fieldContext_SubscriptionDiscountAllocation_discount(ctx, field)
  131335. if err != nil {
  131336. return graphql.Null
  131337. }
  131338. ctx = graphql.WithFieldContext(ctx, fc)
  131339. defer func() {
  131340. if r := recover(); r != nil {
  131341. ec.Error(ctx, ec.Recover(ctx, r))
  131342. ret = graphql.Null
  131343. }
  131344. }()
  131345. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  131346. ctx = rctx // use context from middleware stack in children
  131347. return obj.Discount, nil
  131348. })
  131349. if err != nil {
  131350. ec.Error(ctx, err)
  131351. return graphql.Null
  131352. }
  131353. if resTmp == nil {
  131354. if !graphql.HasFieldError(ctx, fc) {
  131355. ec.Errorf(ctx, "must not be null")
  131356. }
  131357. return graphql.Null
  131358. }
  131359. res := resTmp.(SubscriptionDiscount)
  131360. fc.Result = res
  131361. return ec.marshalNSubscriptionDiscount2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionDiscount(ctx, field.Selections, res)
  131362. }
  131363. func (ec *executionContext) fieldContext_SubscriptionDiscountAllocation_discount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  131364. fc = &graphql.FieldContext{
  131365. Object: "SubscriptionDiscountAllocation",
  131366. Field: field,
  131367. IsMethod: false,
  131368. IsResolver: false,
  131369. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  131370. return nil, errors.New("field of type SubscriptionDiscount does not have child fields")
  131371. },
  131372. }
  131373. return fc, nil
  131374. }
  131375. func (ec *executionContext) _SubscriptionDiscountEntitledLines_all(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDiscountEntitledLines) (ret graphql.Marshaler) {
  131376. fc, err := ec.fieldContext_SubscriptionDiscountEntitledLines_all(ctx, field)
  131377. if err != nil {
  131378. return graphql.Null
  131379. }
  131380. ctx = graphql.WithFieldContext(ctx, fc)
  131381. defer func() {
  131382. if r := recover(); r != nil {
  131383. ec.Error(ctx, ec.Recover(ctx, r))
  131384. ret = graphql.Null
  131385. }
  131386. }()
  131387. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  131388. ctx = rctx // use context from middleware stack in children
  131389. return obj.All, nil
  131390. })
  131391. if err != nil {
  131392. ec.Error(ctx, err)
  131393. return graphql.Null
  131394. }
  131395. if resTmp == nil {
  131396. if !graphql.HasFieldError(ctx, fc) {
  131397. ec.Errorf(ctx, "must not be null")
  131398. }
  131399. return graphql.Null
  131400. }
  131401. res := resTmp.(bool)
  131402. fc.Result = res
  131403. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  131404. }
  131405. func (ec *executionContext) fieldContext_SubscriptionDiscountEntitledLines_all(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  131406. fc = &graphql.FieldContext{
  131407. Object: "SubscriptionDiscountEntitledLines",
  131408. Field: field,
  131409. IsMethod: false,
  131410. IsResolver: false,
  131411. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  131412. return nil, errors.New("field of type Boolean does not have child fields")
  131413. },
  131414. }
  131415. return fc, nil
  131416. }
  131417. func (ec *executionContext) _SubscriptionDiscountEntitledLines_lines(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDiscountEntitledLines) (ret graphql.Marshaler) {
  131418. fc, err := ec.fieldContext_SubscriptionDiscountEntitledLines_lines(ctx, field)
  131419. if err != nil {
  131420. return graphql.Null
  131421. }
  131422. ctx = graphql.WithFieldContext(ctx, fc)
  131423. defer func() {
  131424. if r := recover(); r != nil {
  131425. ec.Error(ctx, ec.Recover(ctx, r))
  131426. ret = graphql.Null
  131427. }
  131428. }()
  131429. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  131430. ctx = rctx // use context from middleware stack in children
  131431. return obj.Lines, nil
  131432. })
  131433. if err != nil {
  131434. ec.Error(ctx, err)
  131435. return graphql.Null
  131436. }
  131437. if resTmp == nil {
  131438. if !graphql.HasFieldError(ctx, fc) {
  131439. ec.Errorf(ctx, "must not be null")
  131440. }
  131441. return graphql.Null
  131442. }
  131443. res := resTmp.(*SubscriptionLineConnection)
  131444. fc.Result = res
  131445. return ec.marshalNSubscriptionLineConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionLineConnection(ctx, field.Selections, res)
  131446. }
  131447. func (ec *executionContext) fieldContext_SubscriptionDiscountEntitledLines_lines(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  131448. fc = &graphql.FieldContext{
  131449. Object: "SubscriptionDiscountEntitledLines",
  131450. Field: field,
  131451. IsMethod: false,
  131452. IsResolver: false,
  131453. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  131454. switch field.Name {
  131455. case "edges":
  131456. return ec.fieldContext_SubscriptionLineConnection_edges(ctx, field)
  131457. case "nodes":
  131458. return ec.fieldContext_SubscriptionLineConnection_nodes(ctx, field)
  131459. case "pageInfo":
  131460. return ec.fieldContext_SubscriptionLineConnection_pageInfo(ctx, field)
  131461. }
  131462. return nil, fmt.Errorf("no field named %q was found under type SubscriptionLineConnection", field.Name)
  131463. },
  131464. }
  131465. defer func() {
  131466. if r := recover(); r != nil {
  131467. err = ec.Recover(ctx, r)
  131468. ec.Error(ctx, err)
  131469. }
  131470. }()
  131471. ctx = graphql.WithFieldContext(ctx, fc)
  131472. if fc.Args, err = ec.field_SubscriptionDiscountEntitledLines_lines_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  131473. ec.Error(ctx, err)
  131474. return
  131475. }
  131476. return fc, nil
  131477. }
  131478. func (ec *executionContext) _SubscriptionDiscountFixedAmountValue_amount(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDiscountFixedAmountValue) (ret graphql.Marshaler) {
  131479. fc, err := ec.fieldContext_SubscriptionDiscountFixedAmountValue_amount(ctx, field)
  131480. if err != nil {
  131481. return graphql.Null
  131482. }
  131483. ctx = graphql.WithFieldContext(ctx, fc)
  131484. defer func() {
  131485. if r := recover(); r != nil {
  131486. ec.Error(ctx, ec.Recover(ctx, r))
  131487. ret = graphql.Null
  131488. }
  131489. }()
  131490. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  131491. ctx = rctx // use context from middleware stack in children
  131492. return obj.Amount, nil
  131493. })
  131494. if err != nil {
  131495. ec.Error(ctx, err)
  131496. return graphql.Null
  131497. }
  131498. if resTmp == nil {
  131499. if !graphql.HasFieldError(ctx, fc) {
  131500. ec.Errorf(ctx, "must not be null")
  131501. }
  131502. return graphql.Null
  131503. }
  131504. res := resTmp.(*MoneyV2)
  131505. fc.Result = res
  131506. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  131507. }
  131508. func (ec *executionContext) fieldContext_SubscriptionDiscountFixedAmountValue_amount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  131509. fc = &graphql.FieldContext{
  131510. Object: "SubscriptionDiscountFixedAmountValue",
  131511. Field: field,
  131512. IsMethod: false,
  131513. IsResolver: false,
  131514. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  131515. switch field.Name {
  131516. case "amount":
  131517. return ec.fieldContext_MoneyV2_amount(ctx, field)
  131518. case "currencyCode":
  131519. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  131520. }
  131521. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  131522. },
  131523. }
  131524. return fc, nil
  131525. }
  131526. func (ec *executionContext) _SubscriptionDiscountFixedAmountValue_appliesOnEachItem(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDiscountFixedAmountValue) (ret graphql.Marshaler) {
  131527. fc, err := ec.fieldContext_SubscriptionDiscountFixedAmountValue_appliesOnEachItem(ctx, field)
  131528. if err != nil {
  131529. return graphql.Null
  131530. }
  131531. ctx = graphql.WithFieldContext(ctx, fc)
  131532. defer func() {
  131533. if r := recover(); r != nil {
  131534. ec.Error(ctx, ec.Recover(ctx, r))
  131535. ret = graphql.Null
  131536. }
  131537. }()
  131538. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  131539. ctx = rctx // use context from middleware stack in children
  131540. return obj.AppliesOnEachItem, nil
  131541. })
  131542. if err != nil {
  131543. ec.Error(ctx, err)
  131544. return graphql.Null
  131545. }
  131546. if resTmp == nil {
  131547. if !graphql.HasFieldError(ctx, fc) {
  131548. ec.Errorf(ctx, "must not be null")
  131549. }
  131550. return graphql.Null
  131551. }
  131552. res := resTmp.(bool)
  131553. fc.Result = res
  131554. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  131555. }
  131556. func (ec *executionContext) fieldContext_SubscriptionDiscountFixedAmountValue_appliesOnEachItem(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  131557. fc = &graphql.FieldContext{
  131558. Object: "SubscriptionDiscountFixedAmountValue",
  131559. Field: field,
  131560. IsMethod: false,
  131561. IsResolver: false,
  131562. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  131563. return nil, errors.New("field of type Boolean does not have child fields")
  131564. },
  131565. }
  131566. return fc, nil
  131567. }
  131568. func (ec *executionContext) _SubscriptionDiscountPercentageValue_percentage(ctx context.Context, field graphql.CollectedField, obj *SubscriptionDiscountPercentageValue) (ret graphql.Marshaler) {
  131569. fc, err := ec.fieldContext_SubscriptionDiscountPercentageValue_percentage(ctx, field)
  131570. if err != nil {
  131571. return graphql.Null
  131572. }
  131573. ctx = graphql.WithFieldContext(ctx, fc)
  131574. defer func() {
  131575. if r := recover(); r != nil {
  131576. ec.Error(ctx, ec.Recover(ctx, r))
  131577. ret = graphql.Null
  131578. }
  131579. }()
  131580. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  131581. ctx = rctx // use context from middleware stack in children
  131582. return obj.Percentage, nil
  131583. })
  131584. if err != nil {
  131585. ec.Error(ctx, err)
  131586. return graphql.Null
  131587. }
  131588. if resTmp == nil {
  131589. if !graphql.HasFieldError(ctx, fc) {
  131590. ec.Errorf(ctx, "must not be null")
  131591. }
  131592. return graphql.Null
  131593. }
  131594. res := resTmp.(int)
  131595. fc.Result = res
  131596. return ec.marshalNInt2int(ctx, field.Selections, res)
  131597. }
  131598. func (ec *executionContext) fieldContext_SubscriptionDiscountPercentageValue_percentage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  131599. fc = &graphql.FieldContext{
  131600. Object: "SubscriptionDiscountPercentageValue",
  131601. Field: field,
  131602. IsMethod: false,
  131603. IsResolver: false,
  131604. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  131605. return nil, errors.New("field of type Int does not have child fields")
  131606. },
  131607. }
  131608. return fc, nil
  131609. }
  131610. func (ec *executionContext) _SubscriptionLine_currentPrice(ctx context.Context, field graphql.CollectedField, obj *SubscriptionLine) (ret graphql.Marshaler) {
  131611. fc, err := ec.fieldContext_SubscriptionLine_currentPrice(ctx, field)
  131612. if err != nil {
  131613. return graphql.Null
  131614. }
  131615. ctx = graphql.WithFieldContext(ctx, fc)
  131616. defer func() {
  131617. if r := recover(); r != nil {
  131618. ec.Error(ctx, ec.Recover(ctx, r))
  131619. ret = graphql.Null
  131620. }
  131621. }()
  131622. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  131623. ctx = rctx // use context from middleware stack in children
  131624. return obj.CurrentPrice, nil
  131625. })
  131626. if err != nil {
  131627. ec.Error(ctx, err)
  131628. return graphql.Null
  131629. }
  131630. if resTmp == nil {
  131631. if !graphql.HasFieldError(ctx, fc) {
  131632. ec.Errorf(ctx, "must not be null")
  131633. }
  131634. return graphql.Null
  131635. }
  131636. res := resTmp.(*MoneyV2)
  131637. fc.Result = res
  131638. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  131639. }
  131640. func (ec *executionContext) fieldContext_SubscriptionLine_currentPrice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  131641. fc = &graphql.FieldContext{
  131642. Object: "SubscriptionLine",
  131643. Field: field,
  131644. IsMethod: false,
  131645. IsResolver: false,
  131646. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  131647. switch field.Name {
  131648. case "amount":
  131649. return ec.fieldContext_MoneyV2_amount(ctx, field)
  131650. case "currencyCode":
  131651. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  131652. }
  131653. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  131654. },
  131655. }
  131656. return fc, nil
  131657. }
  131658. func (ec *executionContext) _SubscriptionLine_customAttributes(ctx context.Context, field graphql.CollectedField, obj *SubscriptionLine) (ret graphql.Marshaler) {
  131659. fc, err := ec.fieldContext_SubscriptionLine_customAttributes(ctx, field)
  131660. if err != nil {
  131661. return graphql.Null
  131662. }
  131663. ctx = graphql.WithFieldContext(ctx, fc)
  131664. defer func() {
  131665. if r := recover(); r != nil {
  131666. ec.Error(ctx, ec.Recover(ctx, r))
  131667. ret = graphql.Null
  131668. }
  131669. }()
  131670. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  131671. ctx = rctx // use context from middleware stack in children
  131672. return obj.CustomAttributes, nil
  131673. })
  131674. if err != nil {
  131675. ec.Error(ctx, err)
  131676. return graphql.Null
  131677. }
  131678. if resTmp == nil {
  131679. if !graphql.HasFieldError(ctx, fc) {
  131680. ec.Errorf(ctx, "must not be null")
  131681. }
  131682. return graphql.Null
  131683. }
  131684. res := resTmp.([]*Attribute)
  131685. fc.Result = res
  131686. return ec.marshalNAttribute2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAttributeᚄ(ctx, field.Selections, res)
  131687. }
  131688. func (ec *executionContext) fieldContext_SubscriptionLine_customAttributes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  131689. fc = &graphql.FieldContext{
  131690. Object: "SubscriptionLine",
  131691. Field: field,
  131692. IsMethod: false,
  131693. IsResolver: false,
  131694. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  131695. switch field.Name {
  131696. case "key":
  131697. return ec.fieldContext_Attribute_key(ctx, field)
  131698. case "value":
  131699. return ec.fieldContext_Attribute_value(ctx, field)
  131700. }
  131701. return nil, fmt.Errorf("no field named %q was found under type Attribute", field.Name)
  131702. },
  131703. }
  131704. return fc, nil
  131705. }
  131706. func (ec *executionContext) _SubscriptionLine_discountAllocations(ctx context.Context, field graphql.CollectedField, obj *SubscriptionLine) (ret graphql.Marshaler) {
  131707. fc, err := ec.fieldContext_SubscriptionLine_discountAllocations(ctx, field)
  131708. if err != nil {
  131709. return graphql.Null
  131710. }
  131711. ctx = graphql.WithFieldContext(ctx, fc)
  131712. defer func() {
  131713. if r := recover(); r != nil {
  131714. ec.Error(ctx, ec.Recover(ctx, r))
  131715. ret = graphql.Null
  131716. }
  131717. }()
  131718. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  131719. ctx = rctx // use context from middleware stack in children
  131720. return obj.DiscountAllocations, nil
  131721. })
  131722. if err != nil {
  131723. ec.Error(ctx, err)
  131724. return graphql.Null
  131725. }
  131726. if resTmp == nil {
  131727. if !graphql.HasFieldError(ctx, fc) {
  131728. ec.Errorf(ctx, "must not be null")
  131729. }
  131730. return graphql.Null
  131731. }
  131732. res := resTmp.([]*SubscriptionDiscountAllocation)
  131733. fc.Result = res
  131734. return ec.marshalNSubscriptionDiscountAllocation2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionDiscountAllocationᚄ(ctx, field.Selections, res)
  131735. }
  131736. func (ec *executionContext) fieldContext_SubscriptionLine_discountAllocations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  131737. fc = &graphql.FieldContext{
  131738. Object: "SubscriptionLine",
  131739. Field: field,
  131740. IsMethod: false,
  131741. IsResolver: false,
  131742. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  131743. switch field.Name {
  131744. case "amount":
  131745. return ec.fieldContext_SubscriptionDiscountAllocation_amount(ctx, field)
  131746. case "discount":
  131747. return ec.fieldContext_SubscriptionDiscountAllocation_discount(ctx, field)
  131748. }
  131749. return nil, fmt.Errorf("no field named %q was found under type SubscriptionDiscountAllocation", field.Name)
  131750. },
  131751. }
  131752. return fc, nil
  131753. }
  131754. func (ec *executionContext) _SubscriptionLine_id(ctx context.Context, field graphql.CollectedField, obj *SubscriptionLine) (ret graphql.Marshaler) {
  131755. fc, err := ec.fieldContext_SubscriptionLine_id(ctx, field)
  131756. if err != nil {
  131757. return graphql.Null
  131758. }
  131759. ctx = graphql.WithFieldContext(ctx, fc)
  131760. defer func() {
  131761. if r := recover(); r != nil {
  131762. ec.Error(ctx, ec.Recover(ctx, r))
  131763. ret = graphql.Null
  131764. }
  131765. }()
  131766. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  131767. ctx = rctx // use context from middleware stack in children
  131768. return obj.ID, nil
  131769. })
  131770. if err != nil {
  131771. ec.Error(ctx, err)
  131772. return graphql.Null
  131773. }
  131774. if resTmp == nil {
  131775. if !graphql.HasFieldError(ctx, fc) {
  131776. ec.Errorf(ctx, "must not be null")
  131777. }
  131778. return graphql.Null
  131779. }
  131780. res := resTmp.(string)
  131781. fc.Result = res
  131782. return ec.marshalNID2string(ctx, field.Selections, res)
  131783. }
  131784. func (ec *executionContext) fieldContext_SubscriptionLine_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  131785. fc = &graphql.FieldContext{
  131786. Object: "SubscriptionLine",
  131787. Field: field,
  131788. IsMethod: false,
  131789. IsResolver: false,
  131790. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  131791. return nil, errors.New("field of type ID does not have child fields")
  131792. },
  131793. }
  131794. return fc, nil
  131795. }
  131796. func (ec *executionContext) _SubscriptionLine_lineDiscountedPrice(ctx context.Context, field graphql.CollectedField, obj *SubscriptionLine) (ret graphql.Marshaler) {
  131797. fc, err := ec.fieldContext_SubscriptionLine_lineDiscountedPrice(ctx, field)
  131798. if err != nil {
  131799. return graphql.Null
  131800. }
  131801. ctx = graphql.WithFieldContext(ctx, fc)
  131802. defer func() {
  131803. if r := recover(); r != nil {
  131804. ec.Error(ctx, ec.Recover(ctx, r))
  131805. ret = graphql.Null
  131806. }
  131807. }()
  131808. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  131809. ctx = rctx // use context from middleware stack in children
  131810. return obj.LineDiscountedPrice, nil
  131811. })
  131812. if err != nil {
  131813. ec.Error(ctx, err)
  131814. return graphql.Null
  131815. }
  131816. if resTmp == nil {
  131817. if !graphql.HasFieldError(ctx, fc) {
  131818. ec.Errorf(ctx, "must not be null")
  131819. }
  131820. return graphql.Null
  131821. }
  131822. res := resTmp.(*MoneyV2)
  131823. fc.Result = res
  131824. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  131825. }
  131826. func (ec *executionContext) fieldContext_SubscriptionLine_lineDiscountedPrice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  131827. fc = &graphql.FieldContext{
  131828. Object: "SubscriptionLine",
  131829. Field: field,
  131830. IsMethod: false,
  131831. IsResolver: false,
  131832. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  131833. switch field.Name {
  131834. case "amount":
  131835. return ec.fieldContext_MoneyV2_amount(ctx, field)
  131836. case "currencyCode":
  131837. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  131838. }
  131839. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  131840. },
  131841. }
  131842. return fc, nil
  131843. }
  131844. func (ec *executionContext) _SubscriptionLine_pricingPolicy(ctx context.Context, field graphql.CollectedField, obj *SubscriptionLine) (ret graphql.Marshaler) {
  131845. fc, err := ec.fieldContext_SubscriptionLine_pricingPolicy(ctx, field)
  131846. if err != nil {
  131847. return graphql.Null
  131848. }
  131849. ctx = graphql.WithFieldContext(ctx, fc)
  131850. defer func() {
  131851. if r := recover(); r != nil {
  131852. ec.Error(ctx, ec.Recover(ctx, r))
  131853. ret = graphql.Null
  131854. }
  131855. }()
  131856. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  131857. ctx = rctx // use context from middleware stack in children
  131858. return obj.PricingPolicy, nil
  131859. })
  131860. if err != nil {
  131861. ec.Error(ctx, err)
  131862. return graphql.Null
  131863. }
  131864. if resTmp == nil {
  131865. return graphql.Null
  131866. }
  131867. res := resTmp.(*SubscriptionPricingPolicy)
  131868. fc.Result = res
  131869. return ec.marshalOSubscriptionPricingPolicy2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionPricingPolicy(ctx, field.Selections, res)
  131870. }
  131871. func (ec *executionContext) fieldContext_SubscriptionLine_pricingPolicy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  131872. fc = &graphql.FieldContext{
  131873. Object: "SubscriptionLine",
  131874. Field: field,
  131875. IsMethod: false,
  131876. IsResolver: false,
  131877. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  131878. switch field.Name {
  131879. case "basePrice":
  131880. return ec.fieldContext_SubscriptionPricingPolicy_basePrice(ctx, field)
  131881. case "cycleDiscounts":
  131882. return ec.fieldContext_SubscriptionPricingPolicy_cycleDiscounts(ctx, field)
  131883. }
  131884. return nil, fmt.Errorf("no field named %q was found under type SubscriptionPricingPolicy", field.Name)
  131885. },
  131886. }
  131887. return fc, nil
  131888. }
  131889. func (ec *executionContext) _SubscriptionLine_productId(ctx context.Context, field graphql.CollectedField, obj *SubscriptionLine) (ret graphql.Marshaler) {
  131890. fc, err := ec.fieldContext_SubscriptionLine_productId(ctx, field)
  131891. if err != nil {
  131892. return graphql.Null
  131893. }
  131894. ctx = graphql.WithFieldContext(ctx, fc)
  131895. defer func() {
  131896. if r := recover(); r != nil {
  131897. ec.Error(ctx, ec.Recover(ctx, r))
  131898. ret = graphql.Null
  131899. }
  131900. }()
  131901. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  131902. ctx = rctx // use context from middleware stack in children
  131903. return obj.ProductID, nil
  131904. })
  131905. if err != nil {
  131906. ec.Error(ctx, err)
  131907. return graphql.Null
  131908. }
  131909. if resTmp == nil {
  131910. return graphql.Null
  131911. }
  131912. res := resTmp.(*string)
  131913. fc.Result = res
  131914. return ec.marshalOID2ᚖstring(ctx, field.Selections, res)
  131915. }
  131916. func (ec *executionContext) fieldContext_SubscriptionLine_productId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  131917. fc = &graphql.FieldContext{
  131918. Object: "SubscriptionLine",
  131919. Field: field,
  131920. IsMethod: false,
  131921. IsResolver: false,
  131922. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  131923. return nil, errors.New("field of type ID does not have child fields")
  131924. },
  131925. }
  131926. return fc, nil
  131927. }
  131928. func (ec *executionContext) _SubscriptionLine_quantity(ctx context.Context, field graphql.CollectedField, obj *SubscriptionLine) (ret graphql.Marshaler) {
  131929. fc, err := ec.fieldContext_SubscriptionLine_quantity(ctx, field)
  131930. if err != nil {
  131931. return graphql.Null
  131932. }
  131933. ctx = graphql.WithFieldContext(ctx, fc)
  131934. defer func() {
  131935. if r := recover(); r != nil {
  131936. ec.Error(ctx, ec.Recover(ctx, r))
  131937. ret = graphql.Null
  131938. }
  131939. }()
  131940. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  131941. ctx = rctx // use context from middleware stack in children
  131942. return obj.Quantity, nil
  131943. })
  131944. if err != nil {
  131945. ec.Error(ctx, err)
  131946. return graphql.Null
  131947. }
  131948. if resTmp == nil {
  131949. if !graphql.HasFieldError(ctx, fc) {
  131950. ec.Errorf(ctx, "must not be null")
  131951. }
  131952. return graphql.Null
  131953. }
  131954. res := resTmp.(int)
  131955. fc.Result = res
  131956. return ec.marshalNInt2int(ctx, field.Selections, res)
  131957. }
  131958. func (ec *executionContext) fieldContext_SubscriptionLine_quantity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  131959. fc = &graphql.FieldContext{
  131960. Object: "SubscriptionLine",
  131961. Field: field,
  131962. IsMethod: false,
  131963. IsResolver: false,
  131964. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  131965. return nil, errors.New("field of type Int does not have child fields")
  131966. },
  131967. }
  131968. return fc, nil
  131969. }
  131970. func (ec *executionContext) _SubscriptionLine_requiresShipping(ctx context.Context, field graphql.CollectedField, obj *SubscriptionLine) (ret graphql.Marshaler) {
  131971. fc, err := ec.fieldContext_SubscriptionLine_requiresShipping(ctx, field)
  131972. if err != nil {
  131973. return graphql.Null
  131974. }
  131975. ctx = graphql.WithFieldContext(ctx, fc)
  131976. defer func() {
  131977. if r := recover(); r != nil {
  131978. ec.Error(ctx, ec.Recover(ctx, r))
  131979. ret = graphql.Null
  131980. }
  131981. }()
  131982. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  131983. ctx = rctx // use context from middleware stack in children
  131984. return obj.RequiresShipping, nil
  131985. })
  131986. if err != nil {
  131987. ec.Error(ctx, err)
  131988. return graphql.Null
  131989. }
  131990. if resTmp == nil {
  131991. if !graphql.HasFieldError(ctx, fc) {
  131992. ec.Errorf(ctx, "must not be null")
  131993. }
  131994. return graphql.Null
  131995. }
  131996. res := resTmp.(bool)
  131997. fc.Result = res
  131998. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  131999. }
  132000. func (ec *executionContext) fieldContext_SubscriptionLine_requiresShipping(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  132001. fc = &graphql.FieldContext{
  132002. Object: "SubscriptionLine",
  132003. Field: field,
  132004. IsMethod: false,
  132005. IsResolver: false,
  132006. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  132007. return nil, errors.New("field of type Boolean does not have child fields")
  132008. },
  132009. }
  132010. return fc, nil
  132011. }
  132012. func (ec *executionContext) _SubscriptionLine_sellingPlanId(ctx context.Context, field graphql.CollectedField, obj *SubscriptionLine) (ret graphql.Marshaler) {
  132013. fc, err := ec.fieldContext_SubscriptionLine_sellingPlanId(ctx, field)
  132014. if err != nil {
  132015. return graphql.Null
  132016. }
  132017. ctx = graphql.WithFieldContext(ctx, fc)
  132018. defer func() {
  132019. if r := recover(); r != nil {
  132020. ec.Error(ctx, ec.Recover(ctx, r))
  132021. ret = graphql.Null
  132022. }
  132023. }()
  132024. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  132025. ctx = rctx // use context from middleware stack in children
  132026. return obj.SellingPlanID, nil
  132027. })
  132028. if err != nil {
  132029. ec.Error(ctx, err)
  132030. return graphql.Null
  132031. }
  132032. if resTmp == nil {
  132033. return graphql.Null
  132034. }
  132035. res := resTmp.(*string)
  132036. fc.Result = res
  132037. return ec.marshalOID2ᚖstring(ctx, field.Selections, res)
  132038. }
  132039. func (ec *executionContext) fieldContext_SubscriptionLine_sellingPlanId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  132040. fc = &graphql.FieldContext{
  132041. Object: "SubscriptionLine",
  132042. Field: field,
  132043. IsMethod: false,
  132044. IsResolver: false,
  132045. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  132046. return nil, errors.New("field of type ID does not have child fields")
  132047. },
  132048. }
  132049. return fc, nil
  132050. }
  132051. func (ec *executionContext) _SubscriptionLine_sellingPlanName(ctx context.Context, field graphql.CollectedField, obj *SubscriptionLine) (ret graphql.Marshaler) {
  132052. fc, err := ec.fieldContext_SubscriptionLine_sellingPlanName(ctx, field)
  132053. if err != nil {
  132054. return graphql.Null
  132055. }
  132056. ctx = graphql.WithFieldContext(ctx, fc)
  132057. defer func() {
  132058. if r := recover(); r != nil {
  132059. ec.Error(ctx, ec.Recover(ctx, r))
  132060. ret = graphql.Null
  132061. }
  132062. }()
  132063. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  132064. ctx = rctx // use context from middleware stack in children
  132065. return obj.SellingPlanName, nil
  132066. })
  132067. if err != nil {
  132068. ec.Error(ctx, err)
  132069. return graphql.Null
  132070. }
  132071. if resTmp == nil {
  132072. return graphql.Null
  132073. }
  132074. res := resTmp.(*string)
  132075. fc.Result = res
  132076. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  132077. }
  132078. func (ec *executionContext) fieldContext_SubscriptionLine_sellingPlanName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  132079. fc = &graphql.FieldContext{
  132080. Object: "SubscriptionLine",
  132081. Field: field,
  132082. IsMethod: false,
  132083. IsResolver: false,
  132084. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  132085. return nil, errors.New("field of type String does not have child fields")
  132086. },
  132087. }
  132088. return fc, nil
  132089. }
  132090. func (ec *executionContext) _SubscriptionLine_sku(ctx context.Context, field graphql.CollectedField, obj *SubscriptionLine) (ret graphql.Marshaler) {
  132091. fc, err := ec.fieldContext_SubscriptionLine_sku(ctx, field)
  132092. if err != nil {
  132093. return graphql.Null
  132094. }
  132095. ctx = graphql.WithFieldContext(ctx, fc)
  132096. defer func() {
  132097. if r := recover(); r != nil {
  132098. ec.Error(ctx, ec.Recover(ctx, r))
  132099. ret = graphql.Null
  132100. }
  132101. }()
  132102. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  132103. ctx = rctx // use context from middleware stack in children
  132104. return obj.Sku, nil
  132105. })
  132106. if err != nil {
  132107. ec.Error(ctx, err)
  132108. return graphql.Null
  132109. }
  132110. if resTmp == nil {
  132111. return graphql.Null
  132112. }
  132113. res := resTmp.(*string)
  132114. fc.Result = res
  132115. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  132116. }
  132117. func (ec *executionContext) fieldContext_SubscriptionLine_sku(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  132118. fc = &graphql.FieldContext{
  132119. Object: "SubscriptionLine",
  132120. Field: field,
  132121. IsMethod: false,
  132122. IsResolver: false,
  132123. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  132124. return nil, errors.New("field of type String does not have child fields")
  132125. },
  132126. }
  132127. return fc, nil
  132128. }
  132129. func (ec *executionContext) _SubscriptionLine_taxable(ctx context.Context, field graphql.CollectedField, obj *SubscriptionLine) (ret graphql.Marshaler) {
  132130. fc, err := ec.fieldContext_SubscriptionLine_taxable(ctx, field)
  132131. if err != nil {
  132132. return graphql.Null
  132133. }
  132134. ctx = graphql.WithFieldContext(ctx, fc)
  132135. defer func() {
  132136. if r := recover(); r != nil {
  132137. ec.Error(ctx, ec.Recover(ctx, r))
  132138. ret = graphql.Null
  132139. }
  132140. }()
  132141. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  132142. ctx = rctx // use context from middleware stack in children
  132143. return obj.Taxable, nil
  132144. })
  132145. if err != nil {
  132146. ec.Error(ctx, err)
  132147. return graphql.Null
  132148. }
  132149. if resTmp == nil {
  132150. if !graphql.HasFieldError(ctx, fc) {
  132151. ec.Errorf(ctx, "must not be null")
  132152. }
  132153. return graphql.Null
  132154. }
  132155. res := resTmp.(bool)
  132156. fc.Result = res
  132157. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  132158. }
  132159. func (ec *executionContext) fieldContext_SubscriptionLine_taxable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  132160. fc = &graphql.FieldContext{
  132161. Object: "SubscriptionLine",
  132162. Field: field,
  132163. IsMethod: false,
  132164. IsResolver: false,
  132165. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  132166. return nil, errors.New("field of type Boolean does not have child fields")
  132167. },
  132168. }
  132169. return fc, nil
  132170. }
  132171. func (ec *executionContext) _SubscriptionLine_title(ctx context.Context, field graphql.CollectedField, obj *SubscriptionLine) (ret graphql.Marshaler) {
  132172. fc, err := ec.fieldContext_SubscriptionLine_title(ctx, field)
  132173. if err != nil {
  132174. return graphql.Null
  132175. }
  132176. ctx = graphql.WithFieldContext(ctx, fc)
  132177. defer func() {
  132178. if r := recover(); r != nil {
  132179. ec.Error(ctx, ec.Recover(ctx, r))
  132180. ret = graphql.Null
  132181. }
  132182. }()
  132183. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  132184. ctx = rctx // use context from middleware stack in children
  132185. return obj.Title, nil
  132186. })
  132187. if err != nil {
  132188. ec.Error(ctx, err)
  132189. return graphql.Null
  132190. }
  132191. if resTmp == nil {
  132192. if !graphql.HasFieldError(ctx, fc) {
  132193. ec.Errorf(ctx, "must not be null")
  132194. }
  132195. return graphql.Null
  132196. }
  132197. res := resTmp.(string)
  132198. fc.Result = res
  132199. return ec.marshalNString2string(ctx, field.Selections, res)
  132200. }
  132201. func (ec *executionContext) fieldContext_SubscriptionLine_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  132202. fc = &graphql.FieldContext{
  132203. Object: "SubscriptionLine",
  132204. Field: field,
  132205. IsMethod: false,
  132206. IsResolver: false,
  132207. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  132208. return nil, errors.New("field of type String does not have child fields")
  132209. },
  132210. }
  132211. return fc, nil
  132212. }
  132213. func (ec *executionContext) _SubscriptionLine_variantId(ctx context.Context, field graphql.CollectedField, obj *SubscriptionLine) (ret graphql.Marshaler) {
  132214. fc, err := ec.fieldContext_SubscriptionLine_variantId(ctx, field)
  132215. if err != nil {
  132216. return graphql.Null
  132217. }
  132218. ctx = graphql.WithFieldContext(ctx, fc)
  132219. defer func() {
  132220. if r := recover(); r != nil {
  132221. ec.Error(ctx, ec.Recover(ctx, r))
  132222. ret = graphql.Null
  132223. }
  132224. }()
  132225. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  132226. ctx = rctx // use context from middleware stack in children
  132227. return obj.VariantID, nil
  132228. })
  132229. if err != nil {
  132230. ec.Error(ctx, err)
  132231. return graphql.Null
  132232. }
  132233. if resTmp == nil {
  132234. return graphql.Null
  132235. }
  132236. res := resTmp.(*string)
  132237. fc.Result = res
  132238. return ec.marshalOID2ᚖstring(ctx, field.Selections, res)
  132239. }
  132240. func (ec *executionContext) fieldContext_SubscriptionLine_variantId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  132241. fc = &graphql.FieldContext{
  132242. Object: "SubscriptionLine",
  132243. Field: field,
  132244. IsMethod: false,
  132245. IsResolver: false,
  132246. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  132247. return nil, errors.New("field of type ID does not have child fields")
  132248. },
  132249. }
  132250. return fc, nil
  132251. }
  132252. func (ec *executionContext) _SubscriptionLine_variantImage(ctx context.Context, field graphql.CollectedField, obj *SubscriptionLine) (ret graphql.Marshaler) {
  132253. fc, err := ec.fieldContext_SubscriptionLine_variantImage(ctx, field)
  132254. if err != nil {
  132255. return graphql.Null
  132256. }
  132257. ctx = graphql.WithFieldContext(ctx, fc)
  132258. defer func() {
  132259. if r := recover(); r != nil {
  132260. ec.Error(ctx, ec.Recover(ctx, r))
  132261. ret = graphql.Null
  132262. }
  132263. }()
  132264. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  132265. ctx = rctx // use context from middleware stack in children
  132266. return obj.VariantImage, nil
  132267. })
  132268. if err != nil {
  132269. ec.Error(ctx, err)
  132270. return graphql.Null
  132271. }
  132272. if resTmp == nil {
  132273. return graphql.Null
  132274. }
  132275. res := resTmp.(*Image)
  132276. fc.Result = res
  132277. return ec.marshalOImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImage(ctx, field.Selections, res)
  132278. }
  132279. func (ec *executionContext) fieldContext_SubscriptionLine_variantImage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  132280. fc = &graphql.FieldContext{
  132281. Object: "SubscriptionLine",
  132282. Field: field,
  132283. IsMethod: false,
  132284. IsResolver: false,
  132285. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  132286. switch field.Name {
  132287. case "altText":
  132288. return ec.fieldContext_Image_altText(ctx, field)
  132289. case "height":
  132290. return ec.fieldContext_Image_height(ctx, field)
  132291. case "id":
  132292. return ec.fieldContext_Image_id(ctx, field)
  132293. case "metafield":
  132294. return ec.fieldContext_Image_metafield(ctx, field)
  132295. case "metafields":
  132296. return ec.fieldContext_Image_metafields(ctx, field)
  132297. case "privateMetafield":
  132298. return ec.fieldContext_Image_privateMetafield(ctx, field)
  132299. case "privateMetafields":
  132300. return ec.fieldContext_Image_privateMetafields(ctx, field)
  132301. case "url":
  132302. return ec.fieldContext_Image_url(ctx, field)
  132303. case "width":
  132304. return ec.fieldContext_Image_width(ctx, field)
  132305. }
  132306. return nil, fmt.Errorf("no field named %q was found under type Image", field.Name)
  132307. },
  132308. }
  132309. return fc, nil
  132310. }
  132311. func (ec *executionContext) _SubscriptionLine_variantTitle(ctx context.Context, field graphql.CollectedField, obj *SubscriptionLine) (ret graphql.Marshaler) {
  132312. fc, err := ec.fieldContext_SubscriptionLine_variantTitle(ctx, field)
  132313. if err != nil {
  132314. return graphql.Null
  132315. }
  132316. ctx = graphql.WithFieldContext(ctx, fc)
  132317. defer func() {
  132318. if r := recover(); r != nil {
  132319. ec.Error(ctx, ec.Recover(ctx, r))
  132320. ret = graphql.Null
  132321. }
  132322. }()
  132323. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  132324. ctx = rctx // use context from middleware stack in children
  132325. return obj.VariantTitle, nil
  132326. })
  132327. if err != nil {
  132328. ec.Error(ctx, err)
  132329. return graphql.Null
  132330. }
  132331. if resTmp == nil {
  132332. return graphql.Null
  132333. }
  132334. res := resTmp.(*string)
  132335. fc.Result = res
  132336. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  132337. }
  132338. func (ec *executionContext) fieldContext_SubscriptionLine_variantTitle(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  132339. fc = &graphql.FieldContext{
  132340. Object: "SubscriptionLine",
  132341. Field: field,
  132342. IsMethod: false,
  132343. IsResolver: false,
  132344. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  132345. return nil, errors.New("field of type String does not have child fields")
  132346. },
  132347. }
  132348. return fc, nil
  132349. }
  132350. func (ec *executionContext) _SubscriptionLineConnection_edges(ctx context.Context, field graphql.CollectedField, obj *SubscriptionLineConnection) (ret graphql.Marshaler) {
  132351. fc, err := ec.fieldContext_SubscriptionLineConnection_edges(ctx, field)
  132352. if err != nil {
  132353. return graphql.Null
  132354. }
  132355. ctx = graphql.WithFieldContext(ctx, fc)
  132356. defer func() {
  132357. if r := recover(); r != nil {
  132358. ec.Error(ctx, ec.Recover(ctx, r))
  132359. ret = graphql.Null
  132360. }
  132361. }()
  132362. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  132363. ctx = rctx // use context from middleware stack in children
  132364. return obj.Edges, nil
  132365. })
  132366. if err != nil {
  132367. ec.Error(ctx, err)
  132368. return graphql.Null
  132369. }
  132370. if resTmp == nil {
  132371. if !graphql.HasFieldError(ctx, fc) {
  132372. ec.Errorf(ctx, "must not be null")
  132373. }
  132374. return graphql.Null
  132375. }
  132376. res := resTmp.([]*SubscriptionLineEdge)
  132377. fc.Result = res
  132378. return ec.marshalNSubscriptionLineEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionLineEdgeᚄ(ctx, field.Selections, res)
  132379. }
  132380. func (ec *executionContext) fieldContext_SubscriptionLineConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  132381. fc = &graphql.FieldContext{
  132382. Object: "SubscriptionLineConnection",
  132383. Field: field,
  132384. IsMethod: false,
  132385. IsResolver: false,
  132386. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  132387. switch field.Name {
  132388. case "cursor":
  132389. return ec.fieldContext_SubscriptionLineEdge_cursor(ctx, field)
  132390. case "node":
  132391. return ec.fieldContext_SubscriptionLineEdge_node(ctx, field)
  132392. }
  132393. return nil, fmt.Errorf("no field named %q was found under type SubscriptionLineEdge", field.Name)
  132394. },
  132395. }
  132396. return fc, nil
  132397. }
  132398. func (ec *executionContext) _SubscriptionLineConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *SubscriptionLineConnection) (ret graphql.Marshaler) {
  132399. fc, err := ec.fieldContext_SubscriptionLineConnection_nodes(ctx, field)
  132400. if err != nil {
  132401. return graphql.Null
  132402. }
  132403. ctx = graphql.WithFieldContext(ctx, fc)
  132404. defer func() {
  132405. if r := recover(); r != nil {
  132406. ec.Error(ctx, ec.Recover(ctx, r))
  132407. ret = graphql.Null
  132408. }
  132409. }()
  132410. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  132411. ctx = rctx // use context from middleware stack in children
  132412. return obj.Nodes, nil
  132413. })
  132414. if err != nil {
  132415. ec.Error(ctx, err)
  132416. return graphql.Null
  132417. }
  132418. if resTmp == nil {
  132419. if !graphql.HasFieldError(ctx, fc) {
  132420. ec.Errorf(ctx, "must not be null")
  132421. }
  132422. return graphql.Null
  132423. }
  132424. res := resTmp.([]*SubscriptionLine)
  132425. fc.Result = res
  132426. return ec.marshalNSubscriptionLine2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionLineᚄ(ctx, field.Selections, res)
  132427. }
  132428. func (ec *executionContext) fieldContext_SubscriptionLineConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  132429. fc = &graphql.FieldContext{
  132430. Object: "SubscriptionLineConnection",
  132431. Field: field,
  132432. IsMethod: false,
  132433. IsResolver: false,
  132434. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  132435. switch field.Name {
  132436. case "currentPrice":
  132437. return ec.fieldContext_SubscriptionLine_currentPrice(ctx, field)
  132438. case "customAttributes":
  132439. return ec.fieldContext_SubscriptionLine_customAttributes(ctx, field)
  132440. case "discountAllocations":
  132441. return ec.fieldContext_SubscriptionLine_discountAllocations(ctx, field)
  132442. case "id":
  132443. return ec.fieldContext_SubscriptionLine_id(ctx, field)
  132444. case "lineDiscountedPrice":
  132445. return ec.fieldContext_SubscriptionLine_lineDiscountedPrice(ctx, field)
  132446. case "pricingPolicy":
  132447. return ec.fieldContext_SubscriptionLine_pricingPolicy(ctx, field)
  132448. case "productId":
  132449. return ec.fieldContext_SubscriptionLine_productId(ctx, field)
  132450. case "quantity":
  132451. return ec.fieldContext_SubscriptionLine_quantity(ctx, field)
  132452. case "requiresShipping":
  132453. return ec.fieldContext_SubscriptionLine_requiresShipping(ctx, field)
  132454. case "sellingPlanId":
  132455. return ec.fieldContext_SubscriptionLine_sellingPlanId(ctx, field)
  132456. case "sellingPlanName":
  132457. return ec.fieldContext_SubscriptionLine_sellingPlanName(ctx, field)
  132458. case "sku":
  132459. return ec.fieldContext_SubscriptionLine_sku(ctx, field)
  132460. case "taxable":
  132461. return ec.fieldContext_SubscriptionLine_taxable(ctx, field)
  132462. case "title":
  132463. return ec.fieldContext_SubscriptionLine_title(ctx, field)
  132464. case "variantId":
  132465. return ec.fieldContext_SubscriptionLine_variantId(ctx, field)
  132466. case "variantImage":
  132467. return ec.fieldContext_SubscriptionLine_variantImage(ctx, field)
  132468. case "variantTitle":
  132469. return ec.fieldContext_SubscriptionLine_variantTitle(ctx, field)
  132470. }
  132471. return nil, fmt.Errorf("no field named %q was found under type SubscriptionLine", field.Name)
  132472. },
  132473. }
  132474. return fc, nil
  132475. }
  132476. func (ec *executionContext) _SubscriptionLineConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *SubscriptionLineConnection) (ret graphql.Marshaler) {
  132477. fc, err := ec.fieldContext_SubscriptionLineConnection_pageInfo(ctx, field)
  132478. if err != nil {
  132479. return graphql.Null
  132480. }
  132481. ctx = graphql.WithFieldContext(ctx, fc)
  132482. defer func() {
  132483. if r := recover(); r != nil {
  132484. ec.Error(ctx, ec.Recover(ctx, r))
  132485. ret = graphql.Null
  132486. }
  132487. }()
  132488. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  132489. ctx = rctx // use context from middleware stack in children
  132490. return obj.PageInfo, nil
  132491. })
  132492. if err != nil {
  132493. ec.Error(ctx, err)
  132494. return graphql.Null
  132495. }
  132496. if resTmp == nil {
  132497. if !graphql.HasFieldError(ctx, fc) {
  132498. ec.Errorf(ctx, "must not be null")
  132499. }
  132500. return graphql.Null
  132501. }
  132502. res := resTmp.(*PageInfo)
  132503. fc.Result = res
  132504. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  132505. }
  132506. func (ec *executionContext) fieldContext_SubscriptionLineConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  132507. fc = &graphql.FieldContext{
  132508. Object: "SubscriptionLineConnection",
  132509. Field: field,
  132510. IsMethod: false,
  132511. IsResolver: false,
  132512. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  132513. switch field.Name {
  132514. case "endCursor":
  132515. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  132516. case "hasNextPage":
  132517. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  132518. case "hasPreviousPage":
  132519. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  132520. case "startCursor":
  132521. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  132522. }
  132523. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  132524. },
  132525. }
  132526. return fc, nil
  132527. }
  132528. func (ec *executionContext) _SubscriptionLineEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *SubscriptionLineEdge) (ret graphql.Marshaler) {
  132529. fc, err := ec.fieldContext_SubscriptionLineEdge_cursor(ctx, field)
  132530. if err != nil {
  132531. return graphql.Null
  132532. }
  132533. ctx = graphql.WithFieldContext(ctx, fc)
  132534. defer func() {
  132535. if r := recover(); r != nil {
  132536. ec.Error(ctx, ec.Recover(ctx, r))
  132537. ret = graphql.Null
  132538. }
  132539. }()
  132540. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  132541. ctx = rctx // use context from middleware stack in children
  132542. return obj.Cursor, nil
  132543. })
  132544. if err != nil {
  132545. ec.Error(ctx, err)
  132546. return graphql.Null
  132547. }
  132548. if resTmp == nil {
  132549. if !graphql.HasFieldError(ctx, fc) {
  132550. ec.Errorf(ctx, "must not be null")
  132551. }
  132552. return graphql.Null
  132553. }
  132554. res := resTmp.(string)
  132555. fc.Result = res
  132556. return ec.marshalNString2string(ctx, field.Selections, res)
  132557. }
  132558. func (ec *executionContext) fieldContext_SubscriptionLineEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  132559. fc = &graphql.FieldContext{
  132560. Object: "SubscriptionLineEdge",
  132561. Field: field,
  132562. IsMethod: false,
  132563. IsResolver: false,
  132564. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  132565. return nil, errors.New("field of type String does not have child fields")
  132566. },
  132567. }
  132568. return fc, nil
  132569. }
  132570. func (ec *executionContext) _SubscriptionLineEdge_node(ctx context.Context, field graphql.CollectedField, obj *SubscriptionLineEdge) (ret graphql.Marshaler) {
  132571. fc, err := ec.fieldContext_SubscriptionLineEdge_node(ctx, field)
  132572. if err != nil {
  132573. return graphql.Null
  132574. }
  132575. ctx = graphql.WithFieldContext(ctx, fc)
  132576. defer func() {
  132577. if r := recover(); r != nil {
  132578. ec.Error(ctx, ec.Recover(ctx, r))
  132579. ret = graphql.Null
  132580. }
  132581. }()
  132582. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  132583. ctx = rctx // use context from middleware stack in children
  132584. return obj.Node, nil
  132585. })
  132586. if err != nil {
  132587. ec.Error(ctx, err)
  132588. return graphql.Null
  132589. }
  132590. if resTmp == nil {
  132591. if !graphql.HasFieldError(ctx, fc) {
  132592. ec.Errorf(ctx, "must not be null")
  132593. }
  132594. return graphql.Null
  132595. }
  132596. res := resTmp.(*SubscriptionLine)
  132597. fc.Result = res
  132598. return ec.marshalNSubscriptionLine2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionLine(ctx, field.Selections, res)
  132599. }
  132600. func (ec *executionContext) fieldContext_SubscriptionLineEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  132601. fc = &graphql.FieldContext{
  132602. Object: "SubscriptionLineEdge",
  132603. Field: field,
  132604. IsMethod: false,
  132605. IsResolver: false,
  132606. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  132607. switch field.Name {
  132608. case "currentPrice":
  132609. return ec.fieldContext_SubscriptionLine_currentPrice(ctx, field)
  132610. case "customAttributes":
  132611. return ec.fieldContext_SubscriptionLine_customAttributes(ctx, field)
  132612. case "discountAllocations":
  132613. return ec.fieldContext_SubscriptionLine_discountAllocations(ctx, field)
  132614. case "id":
  132615. return ec.fieldContext_SubscriptionLine_id(ctx, field)
  132616. case "lineDiscountedPrice":
  132617. return ec.fieldContext_SubscriptionLine_lineDiscountedPrice(ctx, field)
  132618. case "pricingPolicy":
  132619. return ec.fieldContext_SubscriptionLine_pricingPolicy(ctx, field)
  132620. case "productId":
  132621. return ec.fieldContext_SubscriptionLine_productId(ctx, field)
  132622. case "quantity":
  132623. return ec.fieldContext_SubscriptionLine_quantity(ctx, field)
  132624. case "requiresShipping":
  132625. return ec.fieldContext_SubscriptionLine_requiresShipping(ctx, field)
  132626. case "sellingPlanId":
  132627. return ec.fieldContext_SubscriptionLine_sellingPlanId(ctx, field)
  132628. case "sellingPlanName":
  132629. return ec.fieldContext_SubscriptionLine_sellingPlanName(ctx, field)
  132630. case "sku":
  132631. return ec.fieldContext_SubscriptionLine_sku(ctx, field)
  132632. case "taxable":
  132633. return ec.fieldContext_SubscriptionLine_taxable(ctx, field)
  132634. case "title":
  132635. return ec.fieldContext_SubscriptionLine_title(ctx, field)
  132636. case "variantId":
  132637. return ec.fieldContext_SubscriptionLine_variantId(ctx, field)
  132638. case "variantImage":
  132639. return ec.fieldContext_SubscriptionLine_variantImage(ctx, field)
  132640. case "variantTitle":
  132641. return ec.fieldContext_SubscriptionLine_variantTitle(ctx, field)
  132642. }
  132643. return nil, fmt.Errorf("no field named %q was found under type SubscriptionLine", field.Name)
  132644. },
  132645. }
  132646. return fc, nil
  132647. }
  132648. func (ec *executionContext) _SubscriptionMailingAddress_address1(ctx context.Context, field graphql.CollectedField, obj *SubscriptionMailingAddress) (ret graphql.Marshaler) {
  132649. fc, err := ec.fieldContext_SubscriptionMailingAddress_address1(ctx, field)
  132650. if err != nil {
  132651. return graphql.Null
  132652. }
  132653. ctx = graphql.WithFieldContext(ctx, fc)
  132654. defer func() {
  132655. if r := recover(); r != nil {
  132656. ec.Error(ctx, ec.Recover(ctx, r))
  132657. ret = graphql.Null
  132658. }
  132659. }()
  132660. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  132661. ctx = rctx // use context from middleware stack in children
  132662. return obj.Address1, nil
  132663. })
  132664. if err != nil {
  132665. ec.Error(ctx, err)
  132666. return graphql.Null
  132667. }
  132668. if resTmp == nil {
  132669. return graphql.Null
  132670. }
  132671. res := resTmp.(*string)
  132672. fc.Result = res
  132673. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  132674. }
  132675. func (ec *executionContext) fieldContext_SubscriptionMailingAddress_address1(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  132676. fc = &graphql.FieldContext{
  132677. Object: "SubscriptionMailingAddress",
  132678. Field: field,
  132679. IsMethod: false,
  132680. IsResolver: false,
  132681. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  132682. return nil, errors.New("field of type String does not have child fields")
  132683. },
  132684. }
  132685. return fc, nil
  132686. }
  132687. func (ec *executionContext) _SubscriptionMailingAddress_address2(ctx context.Context, field graphql.CollectedField, obj *SubscriptionMailingAddress) (ret graphql.Marshaler) {
  132688. fc, err := ec.fieldContext_SubscriptionMailingAddress_address2(ctx, field)
  132689. if err != nil {
  132690. return graphql.Null
  132691. }
  132692. ctx = graphql.WithFieldContext(ctx, fc)
  132693. defer func() {
  132694. if r := recover(); r != nil {
  132695. ec.Error(ctx, ec.Recover(ctx, r))
  132696. ret = graphql.Null
  132697. }
  132698. }()
  132699. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  132700. ctx = rctx // use context from middleware stack in children
  132701. return obj.Address2, nil
  132702. })
  132703. if err != nil {
  132704. ec.Error(ctx, err)
  132705. return graphql.Null
  132706. }
  132707. if resTmp == nil {
  132708. return graphql.Null
  132709. }
  132710. res := resTmp.(*string)
  132711. fc.Result = res
  132712. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  132713. }
  132714. func (ec *executionContext) fieldContext_SubscriptionMailingAddress_address2(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  132715. fc = &graphql.FieldContext{
  132716. Object: "SubscriptionMailingAddress",
  132717. Field: field,
  132718. IsMethod: false,
  132719. IsResolver: false,
  132720. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  132721. return nil, errors.New("field of type String does not have child fields")
  132722. },
  132723. }
  132724. return fc, nil
  132725. }
  132726. func (ec *executionContext) _SubscriptionMailingAddress_city(ctx context.Context, field graphql.CollectedField, obj *SubscriptionMailingAddress) (ret graphql.Marshaler) {
  132727. fc, err := ec.fieldContext_SubscriptionMailingAddress_city(ctx, field)
  132728. if err != nil {
  132729. return graphql.Null
  132730. }
  132731. ctx = graphql.WithFieldContext(ctx, fc)
  132732. defer func() {
  132733. if r := recover(); r != nil {
  132734. ec.Error(ctx, ec.Recover(ctx, r))
  132735. ret = graphql.Null
  132736. }
  132737. }()
  132738. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  132739. ctx = rctx // use context from middleware stack in children
  132740. return obj.City, nil
  132741. })
  132742. if err != nil {
  132743. ec.Error(ctx, err)
  132744. return graphql.Null
  132745. }
  132746. if resTmp == nil {
  132747. return graphql.Null
  132748. }
  132749. res := resTmp.(*string)
  132750. fc.Result = res
  132751. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  132752. }
  132753. func (ec *executionContext) fieldContext_SubscriptionMailingAddress_city(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  132754. fc = &graphql.FieldContext{
  132755. Object: "SubscriptionMailingAddress",
  132756. Field: field,
  132757. IsMethod: false,
  132758. IsResolver: false,
  132759. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  132760. return nil, errors.New("field of type String does not have child fields")
  132761. },
  132762. }
  132763. return fc, nil
  132764. }
  132765. func (ec *executionContext) _SubscriptionMailingAddress_company(ctx context.Context, field graphql.CollectedField, obj *SubscriptionMailingAddress) (ret graphql.Marshaler) {
  132766. fc, err := ec.fieldContext_SubscriptionMailingAddress_company(ctx, field)
  132767. if err != nil {
  132768. return graphql.Null
  132769. }
  132770. ctx = graphql.WithFieldContext(ctx, fc)
  132771. defer func() {
  132772. if r := recover(); r != nil {
  132773. ec.Error(ctx, ec.Recover(ctx, r))
  132774. ret = graphql.Null
  132775. }
  132776. }()
  132777. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  132778. ctx = rctx // use context from middleware stack in children
  132779. return obj.Company, nil
  132780. })
  132781. if err != nil {
  132782. ec.Error(ctx, err)
  132783. return graphql.Null
  132784. }
  132785. if resTmp == nil {
  132786. return graphql.Null
  132787. }
  132788. res := resTmp.(*string)
  132789. fc.Result = res
  132790. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  132791. }
  132792. func (ec *executionContext) fieldContext_SubscriptionMailingAddress_company(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  132793. fc = &graphql.FieldContext{
  132794. Object: "SubscriptionMailingAddress",
  132795. Field: field,
  132796. IsMethod: false,
  132797. IsResolver: false,
  132798. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  132799. return nil, errors.New("field of type String does not have child fields")
  132800. },
  132801. }
  132802. return fc, nil
  132803. }
  132804. func (ec *executionContext) _SubscriptionMailingAddress_country(ctx context.Context, field graphql.CollectedField, obj *SubscriptionMailingAddress) (ret graphql.Marshaler) {
  132805. fc, err := ec.fieldContext_SubscriptionMailingAddress_country(ctx, field)
  132806. if err != nil {
  132807. return graphql.Null
  132808. }
  132809. ctx = graphql.WithFieldContext(ctx, fc)
  132810. defer func() {
  132811. if r := recover(); r != nil {
  132812. ec.Error(ctx, ec.Recover(ctx, r))
  132813. ret = graphql.Null
  132814. }
  132815. }()
  132816. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  132817. ctx = rctx // use context from middleware stack in children
  132818. return obj.Country, nil
  132819. })
  132820. if err != nil {
  132821. ec.Error(ctx, err)
  132822. return graphql.Null
  132823. }
  132824. if resTmp == nil {
  132825. return graphql.Null
  132826. }
  132827. res := resTmp.(*string)
  132828. fc.Result = res
  132829. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  132830. }
  132831. func (ec *executionContext) fieldContext_SubscriptionMailingAddress_country(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  132832. fc = &graphql.FieldContext{
  132833. Object: "SubscriptionMailingAddress",
  132834. Field: field,
  132835. IsMethod: false,
  132836. IsResolver: false,
  132837. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  132838. return nil, errors.New("field of type String does not have child fields")
  132839. },
  132840. }
  132841. return fc, nil
  132842. }
  132843. func (ec *executionContext) _SubscriptionMailingAddress_countryCode(ctx context.Context, field graphql.CollectedField, obj *SubscriptionMailingAddress) (ret graphql.Marshaler) {
  132844. fc, err := ec.fieldContext_SubscriptionMailingAddress_countryCode(ctx, field)
  132845. if err != nil {
  132846. return graphql.Null
  132847. }
  132848. ctx = graphql.WithFieldContext(ctx, fc)
  132849. defer func() {
  132850. if r := recover(); r != nil {
  132851. ec.Error(ctx, ec.Recover(ctx, r))
  132852. ret = graphql.Null
  132853. }
  132854. }()
  132855. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  132856. ctx = rctx // use context from middleware stack in children
  132857. return obj.CountryCode, nil
  132858. })
  132859. if err != nil {
  132860. ec.Error(ctx, err)
  132861. return graphql.Null
  132862. }
  132863. if resTmp == nil {
  132864. return graphql.Null
  132865. }
  132866. res := resTmp.(*CountryCode)
  132867. fc.Result = res
  132868. return ec.marshalOCountryCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCode(ctx, field.Selections, res)
  132869. }
  132870. func (ec *executionContext) fieldContext_SubscriptionMailingAddress_countryCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  132871. fc = &graphql.FieldContext{
  132872. Object: "SubscriptionMailingAddress",
  132873. Field: field,
  132874. IsMethod: false,
  132875. IsResolver: false,
  132876. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  132877. return nil, errors.New("field of type CountryCode does not have child fields")
  132878. },
  132879. }
  132880. return fc, nil
  132881. }
  132882. func (ec *executionContext) _SubscriptionMailingAddress_firstName(ctx context.Context, field graphql.CollectedField, obj *SubscriptionMailingAddress) (ret graphql.Marshaler) {
  132883. fc, err := ec.fieldContext_SubscriptionMailingAddress_firstName(ctx, field)
  132884. if err != nil {
  132885. return graphql.Null
  132886. }
  132887. ctx = graphql.WithFieldContext(ctx, fc)
  132888. defer func() {
  132889. if r := recover(); r != nil {
  132890. ec.Error(ctx, ec.Recover(ctx, r))
  132891. ret = graphql.Null
  132892. }
  132893. }()
  132894. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  132895. ctx = rctx // use context from middleware stack in children
  132896. return obj.FirstName, nil
  132897. })
  132898. if err != nil {
  132899. ec.Error(ctx, err)
  132900. return graphql.Null
  132901. }
  132902. if resTmp == nil {
  132903. return graphql.Null
  132904. }
  132905. res := resTmp.(*string)
  132906. fc.Result = res
  132907. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  132908. }
  132909. func (ec *executionContext) fieldContext_SubscriptionMailingAddress_firstName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  132910. fc = &graphql.FieldContext{
  132911. Object: "SubscriptionMailingAddress",
  132912. Field: field,
  132913. IsMethod: false,
  132914. IsResolver: false,
  132915. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  132916. return nil, errors.New("field of type String does not have child fields")
  132917. },
  132918. }
  132919. return fc, nil
  132920. }
  132921. func (ec *executionContext) _SubscriptionMailingAddress_lastName(ctx context.Context, field graphql.CollectedField, obj *SubscriptionMailingAddress) (ret graphql.Marshaler) {
  132922. fc, err := ec.fieldContext_SubscriptionMailingAddress_lastName(ctx, field)
  132923. if err != nil {
  132924. return graphql.Null
  132925. }
  132926. ctx = graphql.WithFieldContext(ctx, fc)
  132927. defer func() {
  132928. if r := recover(); r != nil {
  132929. ec.Error(ctx, ec.Recover(ctx, r))
  132930. ret = graphql.Null
  132931. }
  132932. }()
  132933. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  132934. ctx = rctx // use context from middleware stack in children
  132935. return obj.LastName, nil
  132936. })
  132937. if err != nil {
  132938. ec.Error(ctx, err)
  132939. return graphql.Null
  132940. }
  132941. if resTmp == nil {
  132942. return graphql.Null
  132943. }
  132944. res := resTmp.(*string)
  132945. fc.Result = res
  132946. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  132947. }
  132948. func (ec *executionContext) fieldContext_SubscriptionMailingAddress_lastName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  132949. fc = &graphql.FieldContext{
  132950. Object: "SubscriptionMailingAddress",
  132951. Field: field,
  132952. IsMethod: false,
  132953. IsResolver: false,
  132954. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  132955. return nil, errors.New("field of type String does not have child fields")
  132956. },
  132957. }
  132958. return fc, nil
  132959. }
  132960. func (ec *executionContext) _SubscriptionMailingAddress_name(ctx context.Context, field graphql.CollectedField, obj *SubscriptionMailingAddress) (ret graphql.Marshaler) {
  132961. fc, err := ec.fieldContext_SubscriptionMailingAddress_name(ctx, field)
  132962. if err != nil {
  132963. return graphql.Null
  132964. }
  132965. ctx = graphql.WithFieldContext(ctx, fc)
  132966. defer func() {
  132967. if r := recover(); r != nil {
  132968. ec.Error(ctx, ec.Recover(ctx, r))
  132969. ret = graphql.Null
  132970. }
  132971. }()
  132972. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  132973. ctx = rctx // use context from middleware stack in children
  132974. return obj.Name, nil
  132975. })
  132976. if err != nil {
  132977. ec.Error(ctx, err)
  132978. return graphql.Null
  132979. }
  132980. if resTmp == nil {
  132981. return graphql.Null
  132982. }
  132983. res := resTmp.(*string)
  132984. fc.Result = res
  132985. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  132986. }
  132987. func (ec *executionContext) fieldContext_SubscriptionMailingAddress_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  132988. fc = &graphql.FieldContext{
  132989. Object: "SubscriptionMailingAddress",
  132990. Field: field,
  132991. IsMethod: false,
  132992. IsResolver: false,
  132993. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  132994. return nil, errors.New("field of type String does not have child fields")
  132995. },
  132996. }
  132997. return fc, nil
  132998. }
  132999. func (ec *executionContext) _SubscriptionMailingAddress_phone(ctx context.Context, field graphql.CollectedField, obj *SubscriptionMailingAddress) (ret graphql.Marshaler) {
  133000. fc, err := ec.fieldContext_SubscriptionMailingAddress_phone(ctx, field)
  133001. if err != nil {
  133002. return graphql.Null
  133003. }
  133004. ctx = graphql.WithFieldContext(ctx, fc)
  133005. defer func() {
  133006. if r := recover(); r != nil {
  133007. ec.Error(ctx, ec.Recover(ctx, r))
  133008. ret = graphql.Null
  133009. }
  133010. }()
  133011. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  133012. ctx = rctx // use context from middleware stack in children
  133013. return obj.Phone, nil
  133014. })
  133015. if err != nil {
  133016. ec.Error(ctx, err)
  133017. return graphql.Null
  133018. }
  133019. if resTmp == nil {
  133020. return graphql.Null
  133021. }
  133022. res := resTmp.(*string)
  133023. fc.Result = res
  133024. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  133025. }
  133026. func (ec *executionContext) fieldContext_SubscriptionMailingAddress_phone(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  133027. fc = &graphql.FieldContext{
  133028. Object: "SubscriptionMailingAddress",
  133029. Field: field,
  133030. IsMethod: false,
  133031. IsResolver: false,
  133032. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  133033. return nil, errors.New("field of type String does not have child fields")
  133034. },
  133035. }
  133036. return fc, nil
  133037. }
  133038. func (ec *executionContext) _SubscriptionMailingAddress_province(ctx context.Context, field graphql.CollectedField, obj *SubscriptionMailingAddress) (ret graphql.Marshaler) {
  133039. fc, err := ec.fieldContext_SubscriptionMailingAddress_province(ctx, field)
  133040. if err != nil {
  133041. return graphql.Null
  133042. }
  133043. ctx = graphql.WithFieldContext(ctx, fc)
  133044. defer func() {
  133045. if r := recover(); r != nil {
  133046. ec.Error(ctx, ec.Recover(ctx, r))
  133047. ret = graphql.Null
  133048. }
  133049. }()
  133050. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  133051. ctx = rctx // use context from middleware stack in children
  133052. return obj.Province, nil
  133053. })
  133054. if err != nil {
  133055. ec.Error(ctx, err)
  133056. return graphql.Null
  133057. }
  133058. if resTmp == nil {
  133059. return graphql.Null
  133060. }
  133061. res := resTmp.(*string)
  133062. fc.Result = res
  133063. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  133064. }
  133065. func (ec *executionContext) fieldContext_SubscriptionMailingAddress_province(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  133066. fc = &graphql.FieldContext{
  133067. Object: "SubscriptionMailingAddress",
  133068. Field: field,
  133069. IsMethod: false,
  133070. IsResolver: false,
  133071. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  133072. return nil, errors.New("field of type String does not have child fields")
  133073. },
  133074. }
  133075. return fc, nil
  133076. }
  133077. func (ec *executionContext) _SubscriptionMailingAddress_provinceCode(ctx context.Context, field graphql.CollectedField, obj *SubscriptionMailingAddress) (ret graphql.Marshaler) {
  133078. fc, err := ec.fieldContext_SubscriptionMailingAddress_provinceCode(ctx, field)
  133079. if err != nil {
  133080. return graphql.Null
  133081. }
  133082. ctx = graphql.WithFieldContext(ctx, fc)
  133083. defer func() {
  133084. if r := recover(); r != nil {
  133085. ec.Error(ctx, ec.Recover(ctx, r))
  133086. ret = graphql.Null
  133087. }
  133088. }()
  133089. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  133090. ctx = rctx // use context from middleware stack in children
  133091. return obj.ProvinceCode, nil
  133092. })
  133093. if err != nil {
  133094. ec.Error(ctx, err)
  133095. return graphql.Null
  133096. }
  133097. if resTmp == nil {
  133098. return graphql.Null
  133099. }
  133100. res := resTmp.(*string)
  133101. fc.Result = res
  133102. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  133103. }
  133104. func (ec *executionContext) fieldContext_SubscriptionMailingAddress_provinceCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  133105. fc = &graphql.FieldContext{
  133106. Object: "SubscriptionMailingAddress",
  133107. Field: field,
  133108. IsMethod: false,
  133109. IsResolver: false,
  133110. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  133111. return nil, errors.New("field of type String does not have child fields")
  133112. },
  133113. }
  133114. return fc, nil
  133115. }
  133116. func (ec *executionContext) _SubscriptionMailingAddress_zip(ctx context.Context, field graphql.CollectedField, obj *SubscriptionMailingAddress) (ret graphql.Marshaler) {
  133117. fc, err := ec.fieldContext_SubscriptionMailingAddress_zip(ctx, field)
  133118. if err != nil {
  133119. return graphql.Null
  133120. }
  133121. ctx = graphql.WithFieldContext(ctx, fc)
  133122. defer func() {
  133123. if r := recover(); r != nil {
  133124. ec.Error(ctx, ec.Recover(ctx, r))
  133125. ret = graphql.Null
  133126. }
  133127. }()
  133128. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  133129. ctx = rctx // use context from middleware stack in children
  133130. return obj.Zip, nil
  133131. })
  133132. if err != nil {
  133133. ec.Error(ctx, err)
  133134. return graphql.Null
  133135. }
  133136. if resTmp == nil {
  133137. return graphql.Null
  133138. }
  133139. res := resTmp.(*string)
  133140. fc.Result = res
  133141. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  133142. }
  133143. func (ec *executionContext) fieldContext_SubscriptionMailingAddress_zip(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  133144. fc = &graphql.FieldContext{
  133145. Object: "SubscriptionMailingAddress",
  133146. Field: field,
  133147. IsMethod: false,
  133148. IsResolver: false,
  133149. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  133150. return nil, errors.New("field of type String does not have child fields")
  133151. },
  133152. }
  133153. return fc, nil
  133154. }
  133155. func (ec *executionContext) _SubscriptionManualDiscount_entitledLines(ctx context.Context, field graphql.CollectedField, obj *SubscriptionManualDiscount) (ret graphql.Marshaler) {
  133156. fc, err := ec.fieldContext_SubscriptionManualDiscount_entitledLines(ctx, field)
  133157. if err != nil {
  133158. return graphql.Null
  133159. }
  133160. ctx = graphql.WithFieldContext(ctx, fc)
  133161. defer func() {
  133162. if r := recover(); r != nil {
  133163. ec.Error(ctx, ec.Recover(ctx, r))
  133164. ret = graphql.Null
  133165. }
  133166. }()
  133167. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  133168. ctx = rctx // use context from middleware stack in children
  133169. return obj.EntitledLines, nil
  133170. })
  133171. if err != nil {
  133172. ec.Error(ctx, err)
  133173. return graphql.Null
  133174. }
  133175. if resTmp == nil {
  133176. if !graphql.HasFieldError(ctx, fc) {
  133177. ec.Errorf(ctx, "must not be null")
  133178. }
  133179. return graphql.Null
  133180. }
  133181. res := resTmp.(*SubscriptionDiscountEntitledLines)
  133182. fc.Result = res
  133183. return ec.marshalNSubscriptionDiscountEntitledLines2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionDiscountEntitledLines(ctx, field.Selections, res)
  133184. }
  133185. func (ec *executionContext) fieldContext_SubscriptionManualDiscount_entitledLines(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  133186. fc = &graphql.FieldContext{
  133187. Object: "SubscriptionManualDiscount",
  133188. Field: field,
  133189. IsMethod: false,
  133190. IsResolver: false,
  133191. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  133192. switch field.Name {
  133193. case "all":
  133194. return ec.fieldContext_SubscriptionDiscountEntitledLines_all(ctx, field)
  133195. case "lines":
  133196. return ec.fieldContext_SubscriptionDiscountEntitledLines_lines(ctx, field)
  133197. }
  133198. return nil, fmt.Errorf("no field named %q was found under type SubscriptionDiscountEntitledLines", field.Name)
  133199. },
  133200. }
  133201. return fc, nil
  133202. }
  133203. func (ec *executionContext) _SubscriptionManualDiscount_id(ctx context.Context, field graphql.CollectedField, obj *SubscriptionManualDiscount) (ret graphql.Marshaler) {
  133204. fc, err := ec.fieldContext_SubscriptionManualDiscount_id(ctx, field)
  133205. if err != nil {
  133206. return graphql.Null
  133207. }
  133208. ctx = graphql.WithFieldContext(ctx, fc)
  133209. defer func() {
  133210. if r := recover(); r != nil {
  133211. ec.Error(ctx, ec.Recover(ctx, r))
  133212. ret = graphql.Null
  133213. }
  133214. }()
  133215. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  133216. ctx = rctx // use context from middleware stack in children
  133217. return obj.ID, nil
  133218. })
  133219. if err != nil {
  133220. ec.Error(ctx, err)
  133221. return graphql.Null
  133222. }
  133223. if resTmp == nil {
  133224. if !graphql.HasFieldError(ctx, fc) {
  133225. ec.Errorf(ctx, "must not be null")
  133226. }
  133227. return graphql.Null
  133228. }
  133229. res := resTmp.(string)
  133230. fc.Result = res
  133231. return ec.marshalNID2string(ctx, field.Selections, res)
  133232. }
  133233. func (ec *executionContext) fieldContext_SubscriptionManualDiscount_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  133234. fc = &graphql.FieldContext{
  133235. Object: "SubscriptionManualDiscount",
  133236. Field: field,
  133237. IsMethod: false,
  133238. IsResolver: false,
  133239. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  133240. return nil, errors.New("field of type ID does not have child fields")
  133241. },
  133242. }
  133243. return fc, nil
  133244. }
  133245. func (ec *executionContext) _SubscriptionManualDiscount_recurringCycleLimit(ctx context.Context, field graphql.CollectedField, obj *SubscriptionManualDiscount) (ret graphql.Marshaler) {
  133246. fc, err := ec.fieldContext_SubscriptionManualDiscount_recurringCycleLimit(ctx, field)
  133247. if err != nil {
  133248. return graphql.Null
  133249. }
  133250. ctx = graphql.WithFieldContext(ctx, fc)
  133251. defer func() {
  133252. if r := recover(); r != nil {
  133253. ec.Error(ctx, ec.Recover(ctx, r))
  133254. ret = graphql.Null
  133255. }
  133256. }()
  133257. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  133258. ctx = rctx // use context from middleware stack in children
  133259. return obj.RecurringCycleLimit, nil
  133260. })
  133261. if err != nil {
  133262. ec.Error(ctx, err)
  133263. return graphql.Null
  133264. }
  133265. if resTmp == nil {
  133266. return graphql.Null
  133267. }
  133268. res := resTmp.(*int)
  133269. fc.Result = res
  133270. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  133271. }
  133272. func (ec *executionContext) fieldContext_SubscriptionManualDiscount_recurringCycleLimit(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  133273. fc = &graphql.FieldContext{
  133274. Object: "SubscriptionManualDiscount",
  133275. Field: field,
  133276. IsMethod: false,
  133277. IsResolver: false,
  133278. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  133279. return nil, errors.New("field of type Int does not have child fields")
  133280. },
  133281. }
  133282. return fc, nil
  133283. }
  133284. func (ec *executionContext) _SubscriptionManualDiscount_rejectionReason(ctx context.Context, field graphql.CollectedField, obj *SubscriptionManualDiscount) (ret graphql.Marshaler) {
  133285. fc, err := ec.fieldContext_SubscriptionManualDiscount_rejectionReason(ctx, field)
  133286. if err != nil {
  133287. return graphql.Null
  133288. }
  133289. ctx = graphql.WithFieldContext(ctx, fc)
  133290. defer func() {
  133291. if r := recover(); r != nil {
  133292. ec.Error(ctx, ec.Recover(ctx, r))
  133293. ret = graphql.Null
  133294. }
  133295. }()
  133296. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  133297. ctx = rctx // use context from middleware stack in children
  133298. return obj.RejectionReason, nil
  133299. })
  133300. if err != nil {
  133301. ec.Error(ctx, err)
  133302. return graphql.Null
  133303. }
  133304. if resTmp == nil {
  133305. return graphql.Null
  133306. }
  133307. res := resTmp.(*SubscriptionDiscountRejectionReason)
  133308. fc.Result = res
  133309. return ec.marshalOSubscriptionDiscountRejectionReason2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionDiscountRejectionReason(ctx, field.Selections, res)
  133310. }
  133311. func (ec *executionContext) fieldContext_SubscriptionManualDiscount_rejectionReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  133312. fc = &graphql.FieldContext{
  133313. Object: "SubscriptionManualDiscount",
  133314. Field: field,
  133315. IsMethod: false,
  133316. IsResolver: false,
  133317. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  133318. return nil, errors.New("field of type SubscriptionDiscountRejectionReason does not have child fields")
  133319. },
  133320. }
  133321. return fc, nil
  133322. }
  133323. func (ec *executionContext) _SubscriptionManualDiscount_targetType(ctx context.Context, field graphql.CollectedField, obj *SubscriptionManualDiscount) (ret graphql.Marshaler) {
  133324. fc, err := ec.fieldContext_SubscriptionManualDiscount_targetType(ctx, field)
  133325. if err != nil {
  133326. return graphql.Null
  133327. }
  133328. ctx = graphql.WithFieldContext(ctx, fc)
  133329. defer func() {
  133330. if r := recover(); r != nil {
  133331. ec.Error(ctx, ec.Recover(ctx, r))
  133332. ret = graphql.Null
  133333. }
  133334. }()
  133335. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  133336. ctx = rctx // use context from middleware stack in children
  133337. return obj.TargetType, nil
  133338. })
  133339. if err != nil {
  133340. ec.Error(ctx, err)
  133341. return graphql.Null
  133342. }
  133343. if resTmp == nil {
  133344. if !graphql.HasFieldError(ctx, fc) {
  133345. ec.Errorf(ctx, "must not be null")
  133346. }
  133347. return graphql.Null
  133348. }
  133349. res := resTmp.(DiscountTargetType)
  133350. fc.Result = res
  133351. return ec.marshalNDiscountTargetType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountTargetType(ctx, field.Selections, res)
  133352. }
  133353. func (ec *executionContext) fieldContext_SubscriptionManualDiscount_targetType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  133354. fc = &graphql.FieldContext{
  133355. Object: "SubscriptionManualDiscount",
  133356. Field: field,
  133357. IsMethod: false,
  133358. IsResolver: false,
  133359. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  133360. return nil, errors.New("field of type DiscountTargetType does not have child fields")
  133361. },
  133362. }
  133363. return fc, nil
  133364. }
  133365. func (ec *executionContext) _SubscriptionManualDiscount_title(ctx context.Context, field graphql.CollectedField, obj *SubscriptionManualDiscount) (ret graphql.Marshaler) {
  133366. fc, err := ec.fieldContext_SubscriptionManualDiscount_title(ctx, field)
  133367. if err != nil {
  133368. return graphql.Null
  133369. }
  133370. ctx = graphql.WithFieldContext(ctx, fc)
  133371. defer func() {
  133372. if r := recover(); r != nil {
  133373. ec.Error(ctx, ec.Recover(ctx, r))
  133374. ret = graphql.Null
  133375. }
  133376. }()
  133377. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  133378. ctx = rctx // use context from middleware stack in children
  133379. return obj.Title, nil
  133380. })
  133381. if err != nil {
  133382. ec.Error(ctx, err)
  133383. return graphql.Null
  133384. }
  133385. if resTmp == nil {
  133386. return graphql.Null
  133387. }
  133388. res := resTmp.(*string)
  133389. fc.Result = res
  133390. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  133391. }
  133392. func (ec *executionContext) fieldContext_SubscriptionManualDiscount_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  133393. fc = &graphql.FieldContext{
  133394. Object: "SubscriptionManualDiscount",
  133395. Field: field,
  133396. IsMethod: false,
  133397. IsResolver: false,
  133398. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  133399. return nil, errors.New("field of type String does not have child fields")
  133400. },
  133401. }
  133402. return fc, nil
  133403. }
  133404. func (ec *executionContext) _SubscriptionManualDiscount_type(ctx context.Context, field graphql.CollectedField, obj *SubscriptionManualDiscount) (ret graphql.Marshaler) {
  133405. fc, err := ec.fieldContext_SubscriptionManualDiscount_type(ctx, field)
  133406. if err != nil {
  133407. return graphql.Null
  133408. }
  133409. ctx = graphql.WithFieldContext(ctx, fc)
  133410. defer func() {
  133411. if r := recover(); r != nil {
  133412. ec.Error(ctx, ec.Recover(ctx, r))
  133413. ret = graphql.Null
  133414. }
  133415. }()
  133416. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  133417. ctx = rctx // use context from middleware stack in children
  133418. return obj.Type, nil
  133419. })
  133420. if err != nil {
  133421. ec.Error(ctx, err)
  133422. return graphql.Null
  133423. }
  133424. if resTmp == nil {
  133425. if !graphql.HasFieldError(ctx, fc) {
  133426. ec.Errorf(ctx, "must not be null")
  133427. }
  133428. return graphql.Null
  133429. }
  133430. res := resTmp.(DiscountType)
  133431. fc.Result = res
  133432. return ec.marshalNDiscountType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountType(ctx, field.Selections, res)
  133433. }
  133434. func (ec *executionContext) fieldContext_SubscriptionManualDiscount_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  133435. fc = &graphql.FieldContext{
  133436. Object: "SubscriptionManualDiscount",
  133437. Field: field,
  133438. IsMethod: false,
  133439. IsResolver: false,
  133440. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  133441. return nil, errors.New("field of type DiscountType does not have child fields")
  133442. },
  133443. }
  133444. return fc, nil
  133445. }
  133446. func (ec *executionContext) _SubscriptionManualDiscount_usageCount(ctx context.Context, field graphql.CollectedField, obj *SubscriptionManualDiscount) (ret graphql.Marshaler) {
  133447. fc, err := ec.fieldContext_SubscriptionManualDiscount_usageCount(ctx, field)
  133448. if err != nil {
  133449. return graphql.Null
  133450. }
  133451. ctx = graphql.WithFieldContext(ctx, fc)
  133452. defer func() {
  133453. if r := recover(); r != nil {
  133454. ec.Error(ctx, ec.Recover(ctx, r))
  133455. ret = graphql.Null
  133456. }
  133457. }()
  133458. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  133459. ctx = rctx // use context from middleware stack in children
  133460. return obj.UsageCount, nil
  133461. })
  133462. if err != nil {
  133463. ec.Error(ctx, err)
  133464. return graphql.Null
  133465. }
  133466. if resTmp == nil {
  133467. if !graphql.HasFieldError(ctx, fc) {
  133468. ec.Errorf(ctx, "must not be null")
  133469. }
  133470. return graphql.Null
  133471. }
  133472. res := resTmp.(int)
  133473. fc.Result = res
  133474. return ec.marshalNInt2int(ctx, field.Selections, res)
  133475. }
  133476. func (ec *executionContext) fieldContext_SubscriptionManualDiscount_usageCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  133477. fc = &graphql.FieldContext{
  133478. Object: "SubscriptionManualDiscount",
  133479. Field: field,
  133480. IsMethod: false,
  133481. IsResolver: false,
  133482. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  133483. return nil, errors.New("field of type Int does not have child fields")
  133484. },
  133485. }
  133486. return fc, nil
  133487. }
  133488. func (ec *executionContext) _SubscriptionManualDiscount_value(ctx context.Context, field graphql.CollectedField, obj *SubscriptionManualDiscount) (ret graphql.Marshaler) {
  133489. fc, err := ec.fieldContext_SubscriptionManualDiscount_value(ctx, field)
  133490. if err != nil {
  133491. return graphql.Null
  133492. }
  133493. ctx = graphql.WithFieldContext(ctx, fc)
  133494. defer func() {
  133495. if r := recover(); r != nil {
  133496. ec.Error(ctx, ec.Recover(ctx, r))
  133497. ret = graphql.Null
  133498. }
  133499. }()
  133500. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  133501. ctx = rctx // use context from middleware stack in children
  133502. return obj.Value, nil
  133503. })
  133504. if err != nil {
  133505. ec.Error(ctx, err)
  133506. return graphql.Null
  133507. }
  133508. if resTmp == nil {
  133509. if !graphql.HasFieldError(ctx, fc) {
  133510. ec.Errorf(ctx, "must not be null")
  133511. }
  133512. return graphql.Null
  133513. }
  133514. res := resTmp.(SubscriptionDiscountValue)
  133515. fc.Result = res
  133516. return ec.marshalNSubscriptionDiscountValue2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionDiscountValue(ctx, field.Selections, res)
  133517. }
  133518. func (ec *executionContext) fieldContext_SubscriptionManualDiscount_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  133519. fc = &graphql.FieldContext{
  133520. Object: "SubscriptionManualDiscount",
  133521. Field: field,
  133522. IsMethod: false,
  133523. IsResolver: false,
  133524. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  133525. return nil, errors.New("field of type SubscriptionDiscountValue does not have child fields")
  133526. },
  133527. }
  133528. return fc, nil
  133529. }
  133530. func (ec *executionContext) _SubscriptionManualDiscountConnection_edges(ctx context.Context, field graphql.CollectedField, obj *SubscriptionManualDiscountConnection) (ret graphql.Marshaler) {
  133531. fc, err := ec.fieldContext_SubscriptionManualDiscountConnection_edges(ctx, field)
  133532. if err != nil {
  133533. return graphql.Null
  133534. }
  133535. ctx = graphql.WithFieldContext(ctx, fc)
  133536. defer func() {
  133537. if r := recover(); r != nil {
  133538. ec.Error(ctx, ec.Recover(ctx, r))
  133539. ret = graphql.Null
  133540. }
  133541. }()
  133542. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  133543. ctx = rctx // use context from middleware stack in children
  133544. return obj.Edges, nil
  133545. })
  133546. if err != nil {
  133547. ec.Error(ctx, err)
  133548. return graphql.Null
  133549. }
  133550. if resTmp == nil {
  133551. if !graphql.HasFieldError(ctx, fc) {
  133552. ec.Errorf(ctx, "must not be null")
  133553. }
  133554. return graphql.Null
  133555. }
  133556. res := resTmp.([]*SubscriptionManualDiscountEdge)
  133557. fc.Result = res
  133558. return ec.marshalNSubscriptionManualDiscountEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionManualDiscountEdgeᚄ(ctx, field.Selections, res)
  133559. }
  133560. func (ec *executionContext) fieldContext_SubscriptionManualDiscountConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  133561. fc = &graphql.FieldContext{
  133562. Object: "SubscriptionManualDiscountConnection",
  133563. Field: field,
  133564. IsMethod: false,
  133565. IsResolver: false,
  133566. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  133567. switch field.Name {
  133568. case "cursor":
  133569. return ec.fieldContext_SubscriptionManualDiscountEdge_cursor(ctx, field)
  133570. case "node":
  133571. return ec.fieldContext_SubscriptionManualDiscountEdge_node(ctx, field)
  133572. }
  133573. return nil, fmt.Errorf("no field named %q was found under type SubscriptionManualDiscountEdge", field.Name)
  133574. },
  133575. }
  133576. return fc, nil
  133577. }
  133578. func (ec *executionContext) _SubscriptionManualDiscountConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *SubscriptionManualDiscountConnection) (ret graphql.Marshaler) {
  133579. fc, err := ec.fieldContext_SubscriptionManualDiscountConnection_nodes(ctx, field)
  133580. if err != nil {
  133581. return graphql.Null
  133582. }
  133583. ctx = graphql.WithFieldContext(ctx, fc)
  133584. defer func() {
  133585. if r := recover(); r != nil {
  133586. ec.Error(ctx, ec.Recover(ctx, r))
  133587. ret = graphql.Null
  133588. }
  133589. }()
  133590. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  133591. ctx = rctx // use context from middleware stack in children
  133592. return obj.Nodes, nil
  133593. })
  133594. if err != nil {
  133595. ec.Error(ctx, err)
  133596. return graphql.Null
  133597. }
  133598. if resTmp == nil {
  133599. if !graphql.HasFieldError(ctx, fc) {
  133600. ec.Errorf(ctx, "must not be null")
  133601. }
  133602. return graphql.Null
  133603. }
  133604. res := resTmp.([]*SubscriptionManualDiscount)
  133605. fc.Result = res
  133606. return ec.marshalNSubscriptionManualDiscount2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionManualDiscountᚄ(ctx, field.Selections, res)
  133607. }
  133608. func (ec *executionContext) fieldContext_SubscriptionManualDiscountConnection_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  133609. fc = &graphql.FieldContext{
  133610. Object: "SubscriptionManualDiscountConnection",
  133611. Field: field,
  133612. IsMethod: false,
  133613. IsResolver: false,
  133614. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  133615. switch field.Name {
  133616. case "entitledLines":
  133617. return ec.fieldContext_SubscriptionManualDiscount_entitledLines(ctx, field)
  133618. case "id":
  133619. return ec.fieldContext_SubscriptionManualDiscount_id(ctx, field)
  133620. case "recurringCycleLimit":
  133621. return ec.fieldContext_SubscriptionManualDiscount_recurringCycleLimit(ctx, field)
  133622. case "rejectionReason":
  133623. return ec.fieldContext_SubscriptionManualDiscount_rejectionReason(ctx, field)
  133624. case "targetType":
  133625. return ec.fieldContext_SubscriptionManualDiscount_targetType(ctx, field)
  133626. case "title":
  133627. return ec.fieldContext_SubscriptionManualDiscount_title(ctx, field)
  133628. case "type":
  133629. return ec.fieldContext_SubscriptionManualDiscount_type(ctx, field)
  133630. case "usageCount":
  133631. return ec.fieldContext_SubscriptionManualDiscount_usageCount(ctx, field)
  133632. case "value":
  133633. return ec.fieldContext_SubscriptionManualDiscount_value(ctx, field)
  133634. }
  133635. return nil, fmt.Errorf("no field named %q was found under type SubscriptionManualDiscount", field.Name)
  133636. },
  133637. }
  133638. return fc, nil
  133639. }
  133640. func (ec *executionContext) _SubscriptionManualDiscountConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *SubscriptionManualDiscountConnection) (ret graphql.Marshaler) {
  133641. fc, err := ec.fieldContext_SubscriptionManualDiscountConnection_pageInfo(ctx, field)
  133642. if err != nil {
  133643. return graphql.Null
  133644. }
  133645. ctx = graphql.WithFieldContext(ctx, fc)
  133646. defer func() {
  133647. if r := recover(); r != nil {
  133648. ec.Error(ctx, ec.Recover(ctx, r))
  133649. ret = graphql.Null
  133650. }
  133651. }()
  133652. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  133653. ctx = rctx // use context from middleware stack in children
  133654. return obj.PageInfo, nil
  133655. })
  133656. if err != nil {
  133657. ec.Error(ctx, err)
  133658. return graphql.Null
  133659. }
  133660. if resTmp == nil {
  133661. if !graphql.HasFieldError(ctx, fc) {
  133662. ec.Errorf(ctx, "must not be null")
  133663. }
  133664. return graphql.Null
  133665. }
  133666. res := resTmp.(*PageInfo)
  133667. fc.Result = res
  133668. return ec.marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx, field.Selections, res)
  133669. }
  133670. func (ec *executionContext) fieldContext_SubscriptionManualDiscountConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  133671. fc = &graphql.FieldContext{
  133672. Object: "SubscriptionManualDiscountConnection",
  133673. Field: field,
  133674. IsMethod: false,
  133675. IsResolver: false,
  133676. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  133677. switch field.Name {
  133678. case "endCursor":
  133679. return ec.fieldContext_PageInfo_endCursor(ctx, field)
  133680. case "hasNextPage":
  133681. return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
  133682. case "hasPreviousPage":
  133683. return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
  133684. case "startCursor":
  133685. return ec.fieldContext_PageInfo_startCursor(ctx, field)
  133686. }
  133687. return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
  133688. },
  133689. }
  133690. return fc, nil
  133691. }
  133692. func (ec *executionContext) _SubscriptionManualDiscountEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *SubscriptionManualDiscountEdge) (ret graphql.Marshaler) {
  133693. fc, err := ec.fieldContext_SubscriptionManualDiscountEdge_cursor(ctx, field)
  133694. if err != nil {
  133695. return graphql.Null
  133696. }
  133697. ctx = graphql.WithFieldContext(ctx, fc)
  133698. defer func() {
  133699. if r := recover(); r != nil {
  133700. ec.Error(ctx, ec.Recover(ctx, r))
  133701. ret = graphql.Null
  133702. }
  133703. }()
  133704. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  133705. ctx = rctx // use context from middleware stack in children
  133706. return obj.Cursor, nil
  133707. })
  133708. if err != nil {
  133709. ec.Error(ctx, err)
  133710. return graphql.Null
  133711. }
  133712. if resTmp == nil {
  133713. if !graphql.HasFieldError(ctx, fc) {
  133714. ec.Errorf(ctx, "must not be null")
  133715. }
  133716. return graphql.Null
  133717. }
  133718. res := resTmp.(string)
  133719. fc.Result = res
  133720. return ec.marshalNString2string(ctx, field.Selections, res)
  133721. }
  133722. func (ec *executionContext) fieldContext_SubscriptionManualDiscountEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  133723. fc = &graphql.FieldContext{
  133724. Object: "SubscriptionManualDiscountEdge",
  133725. Field: field,
  133726. IsMethod: false,
  133727. IsResolver: false,
  133728. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  133729. return nil, errors.New("field of type String does not have child fields")
  133730. },
  133731. }
  133732. return fc, nil
  133733. }
  133734. func (ec *executionContext) _SubscriptionManualDiscountEdge_node(ctx context.Context, field graphql.CollectedField, obj *SubscriptionManualDiscountEdge) (ret graphql.Marshaler) {
  133735. fc, err := ec.fieldContext_SubscriptionManualDiscountEdge_node(ctx, field)
  133736. if err != nil {
  133737. return graphql.Null
  133738. }
  133739. ctx = graphql.WithFieldContext(ctx, fc)
  133740. defer func() {
  133741. if r := recover(); r != nil {
  133742. ec.Error(ctx, ec.Recover(ctx, r))
  133743. ret = graphql.Null
  133744. }
  133745. }()
  133746. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  133747. ctx = rctx // use context from middleware stack in children
  133748. return obj.Node, nil
  133749. })
  133750. if err != nil {
  133751. ec.Error(ctx, err)
  133752. return graphql.Null
  133753. }
  133754. if resTmp == nil {
  133755. if !graphql.HasFieldError(ctx, fc) {
  133756. ec.Errorf(ctx, "must not be null")
  133757. }
  133758. return graphql.Null
  133759. }
  133760. res := resTmp.(*SubscriptionManualDiscount)
  133761. fc.Result = res
  133762. return ec.marshalNSubscriptionManualDiscount2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionManualDiscount(ctx, field.Selections, res)
  133763. }
  133764. func (ec *executionContext) fieldContext_SubscriptionManualDiscountEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  133765. fc = &graphql.FieldContext{
  133766. Object: "SubscriptionManualDiscountEdge",
  133767. Field: field,
  133768. IsMethod: false,
  133769. IsResolver: false,
  133770. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  133771. switch field.Name {
  133772. case "entitledLines":
  133773. return ec.fieldContext_SubscriptionManualDiscount_entitledLines(ctx, field)
  133774. case "id":
  133775. return ec.fieldContext_SubscriptionManualDiscount_id(ctx, field)
  133776. case "recurringCycleLimit":
  133777. return ec.fieldContext_SubscriptionManualDiscount_recurringCycleLimit(ctx, field)
  133778. case "rejectionReason":
  133779. return ec.fieldContext_SubscriptionManualDiscount_rejectionReason(ctx, field)
  133780. case "targetType":
  133781. return ec.fieldContext_SubscriptionManualDiscount_targetType(ctx, field)
  133782. case "title":
  133783. return ec.fieldContext_SubscriptionManualDiscount_title(ctx, field)
  133784. case "type":
  133785. return ec.fieldContext_SubscriptionManualDiscount_type(ctx, field)
  133786. case "usageCount":
  133787. return ec.fieldContext_SubscriptionManualDiscount_usageCount(ctx, field)
  133788. case "value":
  133789. return ec.fieldContext_SubscriptionManualDiscount_value(ctx, field)
  133790. }
  133791. return nil, fmt.Errorf("no field named %q was found under type SubscriptionManualDiscount", field.Name)
  133792. },
  133793. }
  133794. return fc, nil
  133795. }
  133796. func (ec *executionContext) _SubscriptionPricingPolicy_basePrice(ctx context.Context, field graphql.CollectedField, obj *SubscriptionPricingPolicy) (ret graphql.Marshaler) {
  133797. fc, err := ec.fieldContext_SubscriptionPricingPolicy_basePrice(ctx, field)
  133798. if err != nil {
  133799. return graphql.Null
  133800. }
  133801. ctx = graphql.WithFieldContext(ctx, fc)
  133802. defer func() {
  133803. if r := recover(); r != nil {
  133804. ec.Error(ctx, ec.Recover(ctx, r))
  133805. ret = graphql.Null
  133806. }
  133807. }()
  133808. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  133809. ctx = rctx // use context from middleware stack in children
  133810. return obj.BasePrice, nil
  133811. })
  133812. if err != nil {
  133813. ec.Error(ctx, err)
  133814. return graphql.Null
  133815. }
  133816. if resTmp == nil {
  133817. if !graphql.HasFieldError(ctx, fc) {
  133818. ec.Errorf(ctx, "must not be null")
  133819. }
  133820. return graphql.Null
  133821. }
  133822. res := resTmp.(*MoneyV2)
  133823. fc.Result = res
  133824. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  133825. }
  133826. func (ec *executionContext) fieldContext_SubscriptionPricingPolicy_basePrice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  133827. fc = &graphql.FieldContext{
  133828. Object: "SubscriptionPricingPolicy",
  133829. Field: field,
  133830. IsMethod: false,
  133831. IsResolver: false,
  133832. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  133833. switch field.Name {
  133834. case "amount":
  133835. return ec.fieldContext_MoneyV2_amount(ctx, field)
  133836. case "currencyCode":
  133837. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  133838. }
  133839. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  133840. },
  133841. }
  133842. return fc, nil
  133843. }
  133844. func (ec *executionContext) _SubscriptionPricingPolicy_cycleDiscounts(ctx context.Context, field graphql.CollectedField, obj *SubscriptionPricingPolicy) (ret graphql.Marshaler) {
  133845. fc, err := ec.fieldContext_SubscriptionPricingPolicy_cycleDiscounts(ctx, field)
  133846. if err != nil {
  133847. return graphql.Null
  133848. }
  133849. ctx = graphql.WithFieldContext(ctx, fc)
  133850. defer func() {
  133851. if r := recover(); r != nil {
  133852. ec.Error(ctx, ec.Recover(ctx, r))
  133853. ret = graphql.Null
  133854. }
  133855. }()
  133856. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  133857. ctx = rctx // use context from middleware stack in children
  133858. return obj.CycleDiscounts, nil
  133859. })
  133860. if err != nil {
  133861. ec.Error(ctx, err)
  133862. return graphql.Null
  133863. }
  133864. if resTmp == nil {
  133865. if !graphql.HasFieldError(ctx, fc) {
  133866. ec.Errorf(ctx, "must not be null")
  133867. }
  133868. return graphql.Null
  133869. }
  133870. res := resTmp.([]*SubscriptionCyclePriceAdjustment)
  133871. fc.Result = res
  133872. return ec.marshalNSubscriptionCyclePriceAdjustment2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionCyclePriceAdjustmentᚄ(ctx, field.Selections, res)
  133873. }
  133874. func (ec *executionContext) fieldContext_SubscriptionPricingPolicy_cycleDiscounts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  133875. fc = &graphql.FieldContext{
  133876. Object: "SubscriptionPricingPolicy",
  133877. Field: field,
  133878. IsMethod: false,
  133879. IsResolver: false,
  133880. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  133881. switch field.Name {
  133882. case "adjustmentType":
  133883. return ec.fieldContext_SubscriptionCyclePriceAdjustment_adjustmentType(ctx, field)
  133884. case "adjustmentValue":
  133885. return ec.fieldContext_SubscriptionCyclePriceAdjustment_adjustmentValue(ctx, field)
  133886. case "afterCycle":
  133887. return ec.fieldContext_SubscriptionCyclePriceAdjustment_afterCycle(ctx, field)
  133888. case "computedPrice":
  133889. return ec.fieldContext_SubscriptionCyclePriceAdjustment_computedPrice(ctx, field)
  133890. }
  133891. return nil, fmt.Errorf("no field named %q was found under type SubscriptionCyclePriceAdjustment", field.Name)
  133892. },
  133893. }
  133894. return fc, nil
  133895. }
  133896. func (ec *executionContext) _SuggestedOrderTransaction_accountNumber(ctx context.Context, field graphql.CollectedField, obj *SuggestedOrderTransaction) (ret graphql.Marshaler) {
  133897. fc, err := ec.fieldContext_SuggestedOrderTransaction_accountNumber(ctx, field)
  133898. if err != nil {
  133899. return graphql.Null
  133900. }
  133901. ctx = graphql.WithFieldContext(ctx, fc)
  133902. defer func() {
  133903. if r := recover(); r != nil {
  133904. ec.Error(ctx, ec.Recover(ctx, r))
  133905. ret = graphql.Null
  133906. }
  133907. }()
  133908. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  133909. ctx = rctx // use context from middleware stack in children
  133910. return obj.AccountNumber, nil
  133911. })
  133912. if err != nil {
  133913. ec.Error(ctx, err)
  133914. return graphql.Null
  133915. }
  133916. if resTmp == nil {
  133917. return graphql.Null
  133918. }
  133919. res := resTmp.(*string)
  133920. fc.Result = res
  133921. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  133922. }
  133923. func (ec *executionContext) fieldContext_SuggestedOrderTransaction_accountNumber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  133924. fc = &graphql.FieldContext{
  133925. Object: "SuggestedOrderTransaction",
  133926. Field: field,
  133927. IsMethod: false,
  133928. IsResolver: false,
  133929. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  133930. return nil, errors.New("field of type String does not have child fields")
  133931. },
  133932. }
  133933. return fc, nil
  133934. }
  133935. func (ec *executionContext) _SuggestedOrderTransaction_amountSet(ctx context.Context, field graphql.CollectedField, obj *SuggestedOrderTransaction) (ret graphql.Marshaler) {
  133936. fc, err := ec.fieldContext_SuggestedOrderTransaction_amountSet(ctx, field)
  133937. if err != nil {
  133938. return graphql.Null
  133939. }
  133940. ctx = graphql.WithFieldContext(ctx, fc)
  133941. defer func() {
  133942. if r := recover(); r != nil {
  133943. ec.Error(ctx, ec.Recover(ctx, r))
  133944. ret = graphql.Null
  133945. }
  133946. }()
  133947. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  133948. ctx = rctx // use context from middleware stack in children
  133949. return obj.AmountSet, nil
  133950. })
  133951. if err != nil {
  133952. ec.Error(ctx, err)
  133953. return graphql.Null
  133954. }
  133955. if resTmp == nil {
  133956. if !graphql.HasFieldError(ctx, fc) {
  133957. ec.Errorf(ctx, "must not be null")
  133958. }
  133959. return graphql.Null
  133960. }
  133961. res := resTmp.(*MoneyBag)
  133962. fc.Result = res
  133963. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  133964. }
  133965. func (ec *executionContext) fieldContext_SuggestedOrderTransaction_amountSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  133966. fc = &graphql.FieldContext{
  133967. Object: "SuggestedOrderTransaction",
  133968. Field: field,
  133969. IsMethod: false,
  133970. IsResolver: false,
  133971. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  133972. switch field.Name {
  133973. case "presentmentMoney":
  133974. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  133975. case "shopMoney":
  133976. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  133977. }
  133978. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  133979. },
  133980. }
  133981. return fc, nil
  133982. }
  133983. func (ec *executionContext) _SuggestedOrderTransaction_formattedGateway(ctx context.Context, field graphql.CollectedField, obj *SuggestedOrderTransaction) (ret graphql.Marshaler) {
  133984. fc, err := ec.fieldContext_SuggestedOrderTransaction_formattedGateway(ctx, field)
  133985. if err != nil {
  133986. return graphql.Null
  133987. }
  133988. ctx = graphql.WithFieldContext(ctx, fc)
  133989. defer func() {
  133990. if r := recover(); r != nil {
  133991. ec.Error(ctx, ec.Recover(ctx, r))
  133992. ret = graphql.Null
  133993. }
  133994. }()
  133995. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  133996. ctx = rctx // use context from middleware stack in children
  133997. return obj.FormattedGateway, nil
  133998. })
  133999. if err != nil {
  134000. ec.Error(ctx, err)
  134001. return graphql.Null
  134002. }
  134003. if resTmp == nil {
  134004. return graphql.Null
  134005. }
  134006. res := resTmp.(*string)
  134007. fc.Result = res
  134008. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  134009. }
  134010. func (ec *executionContext) fieldContext_SuggestedOrderTransaction_formattedGateway(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  134011. fc = &graphql.FieldContext{
  134012. Object: "SuggestedOrderTransaction",
  134013. Field: field,
  134014. IsMethod: false,
  134015. IsResolver: false,
  134016. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  134017. return nil, errors.New("field of type String does not have child fields")
  134018. },
  134019. }
  134020. return fc, nil
  134021. }
  134022. func (ec *executionContext) _SuggestedOrderTransaction_gateway(ctx context.Context, field graphql.CollectedField, obj *SuggestedOrderTransaction) (ret graphql.Marshaler) {
  134023. fc, err := ec.fieldContext_SuggestedOrderTransaction_gateway(ctx, field)
  134024. if err != nil {
  134025. return graphql.Null
  134026. }
  134027. ctx = graphql.WithFieldContext(ctx, fc)
  134028. defer func() {
  134029. if r := recover(); r != nil {
  134030. ec.Error(ctx, ec.Recover(ctx, r))
  134031. ret = graphql.Null
  134032. }
  134033. }()
  134034. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  134035. ctx = rctx // use context from middleware stack in children
  134036. return obj.Gateway, nil
  134037. })
  134038. if err != nil {
  134039. ec.Error(ctx, err)
  134040. return graphql.Null
  134041. }
  134042. if resTmp == nil {
  134043. return graphql.Null
  134044. }
  134045. res := resTmp.(*string)
  134046. fc.Result = res
  134047. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  134048. }
  134049. func (ec *executionContext) fieldContext_SuggestedOrderTransaction_gateway(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  134050. fc = &graphql.FieldContext{
  134051. Object: "SuggestedOrderTransaction",
  134052. Field: field,
  134053. IsMethod: false,
  134054. IsResolver: false,
  134055. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  134056. return nil, errors.New("field of type String does not have child fields")
  134057. },
  134058. }
  134059. return fc, nil
  134060. }
  134061. func (ec *executionContext) _SuggestedOrderTransaction_kind(ctx context.Context, field graphql.CollectedField, obj *SuggestedOrderTransaction) (ret graphql.Marshaler) {
  134062. fc, err := ec.fieldContext_SuggestedOrderTransaction_kind(ctx, field)
  134063. if err != nil {
  134064. return graphql.Null
  134065. }
  134066. ctx = graphql.WithFieldContext(ctx, fc)
  134067. defer func() {
  134068. if r := recover(); r != nil {
  134069. ec.Error(ctx, ec.Recover(ctx, r))
  134070. ret = graphql.Null
  134071. }
  134072. }()
  134073. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  134074. ctx = rctx // use context from middleware stack in children
  134075. return obj.Kind, nil
  134076. })
  134077. if err != nil {
  134078. ec.Error(ctx, err)
  134079. return graphql.Null
  134080. }
  134081. if resTmp == nil {
  134082. if !graphql.HasFieldError(ctx, fc) {
  134083. ec.Errorf(ctx, "must not be null")
  134084. }
  134085. return graphql.Null
  134086. }
  134087. res := resTmp.(SuggestedOrderTransactionKind)
  134088. fc.Result = res
  134089. return ec.marshalNSuggestedOrderTransactionKind2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSuggestedOrderTransactionKind(ctx, field.Selections, res)
  134090. }
  134091. func (ec *executionContext) fieldContext_SuggestedOrderTransaction_kind(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  134092. fc = &graphql.FieldContext{
  134093. Object: "SuggestedOrderTransaction",
  134094. Field: field,
  134095. IsMethod: false,
  134096. IsResolver: false,
  134097. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  134098. return nil, errors.New("field of type SuggestedOrderTransactionKind does not have child fields")
  134099. },
  134100. }
  134101. return fc, nil
  134102. }
  134103. func (ec *executionContext) _SuggestedOrderTransaction_maximumRefundableSet(ctx context.Context, field graphql.CollectedField, obj *SuggestedOrderTransaction) (ret graphql.Marshaler) {
  134104. fc, err := ec.fieldContext_SuggestedOrderTransaction_maximumRefundableSet(ctx, field)
  134105. if err != nil {
  134106. return graphql.Null
  134107. }
  134108. ctx = graphql.WithFieldContext(ctx, fc)
  134109. defer func() {
  134110. if r := recover(); r != nil {
  134111. ec.Error(ctx, ec.Recover(ctx, r))
  134112. ret = graphql.Null
  134113. }
  134114. }()
  134115. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  134116. ctx = rctx // use context from middleware stack in children
  134117. return obj.MaximumRefundableSet, nil
  134118. })
  134119. if err != nil {
  134120. ec.Error(ctx, err)
  134121. return graphql.Null
  134122. }
  134123. if resTmp == nil {
  134124. return graphql.Null
  134125. }
  134126. res := resTmp.(*MoneyBag)
  134127. fc.Result = res
  134128. return ec.marshalOMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  134129. }
  134130. func (ec *executionContext) fieldContext_SuggestedOrderTransaction_maximumRefundableSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  134131. fc = &graphql.FieldContext{
  134132. Object: "SuggestedOrderTransaction",
  134133. Field: field,
  134134. IsMethod: false,
  134135. IsResolver: false,
  134136. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  134137. switch field.Name {
  134138. case "presentmentMoney":
  134139. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  134140. case "shopMoney":
  134141. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  134142. }
  134143. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  134144. },
  134145. }
  134146. return fc, nil
  134147. }
  134148. func (ec *executionContext) _SuggestedOrderTransaction_parentTransaction(ctx context.Context, field graphql.CollectedField, obj *SuggestedOrderTransaction) (ret graphql.Marshaler) {
  134149. fc, err := ec.fieldContext_SuggestedOrderTransaction_parentTransaction(ctx, field)
  134150. if err != nil {
  134151. return graphql.Null
  134152. }
  134153. ctx = graphql.WithFieldContext(ctx, fc)
  134154. defer func() {
  134155. if r := recover(); r != nil {
  134156. ec.Error(ctx, ec.Recover(ctx, r))
  134157. ret = graphql.Null
  134158. }
  134159. }()
  134160. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  134161. ctx = rctx // use context from middleware stack in children
  134162. return obj.ParentTransaction, nil
  134163. })
  134164. if err != nil {
  134165. ec.Error(ctx, err)
  134166. return graphql.Null
  134167. }
  134168. if resTmp == nil {
  134169. return graphql.Null
  134170. }
  134171. res := resTmp.(*OrderTransaction)
  134172. fc.Result = res
  134173. return ec.marshalOOrderTransaction2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderTransaction(ctx, field.Selections, res)
  134174. }
  134175. func (ec *executionContext) fieldContext_SuggestedOrderTransaction_parentTransaction(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  134176. fc = &graphql.FieldContext{
  134177. Object: "SuggestedOrderTransaction",
  134178. Field: field,
  134179. IsMethod: false,
  134180. IsResolver: false,
  134181. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  134182. switch field.Name {
  134183. case "accountNumber":
  134184. return ec.fieldContext_OrderTransaction_accountNumber(ctx, field)
  134185. case "amountSet":
  134186. return ec.fieldContext_OrderTransaction_amountSet(ctx, field)
  134187. case "authorizationCode":
  134188. return ec.fieldContext_OrderTransaction_authorizationCode(ctx, field)
  134189. case "authorizationExpiresAt":
  134190. return ec.fieldContext_OrderTransaction_authorizationExpiresAt(ctx, field)
  134191. case "createdAt":
  134192. return ec.fieldContext_OrderTransaction_createdAt(ctx, field)
  134193. case "errorCode":
  134194. return ec.fieldContext_OrderTransaction_errorCode(ctx, field)
  134195. case "fees":
  134196. return ec.fieldContext_OrderTransaction_fees(ctx, field)
  134197. case "formattedGateway":
  134198. return ec.fieldContext_OrderTransaction_formattedGateway(ctx, field)
  134199. case "gateway":
  134200. return ec.fieldContext_OrderTransaction_gateway(ctx, field)
  134201. case "id":
  134202. return ec.fieldContext_OrderTransaction_id(ctx, field)
  134203. case "kind":
  134204. return ec.fieldContext_OrderTransaction_kind(ctx, field)
  134205. case "manuallyCapturable":
  134206. return ec.fieldContext_OrderTransaction_manuallyCapturable(ctx, field)
  134207. case "maximumRefundableV2":
  134208. return ec.fieldContext_OrderTransaction_maximumRefundableV2(ctx, field)
  134209. case "order":
  134210. return ec.fieldContext_OrderTransaction_order(ctx, field)
  134211. case "parentTransaction":
  134212. return ec.fieldContext_OrderTransaction_parentTransaction(ctx, field)
  134213. case "paymentIcon":
  134214. return ec.fieldContext_OrderTransaction_paymentIcon(ctx, field)
  134215. case "processedAt":
  134216. return ec.fieldContext_OrderTransaction_processedAt(ctx, field)
  134217. case "receiptJson":
  134218. return ec.fieldContext_OrderTransaction_receiptJson(ctx, field)
  134219. case "settlementCurrency":
  134220. return ec.fieldContext_OrderTransaction_settlementCurrency(ctx, field)
  134221. case "settlementCurrencyRate":
  134222. return ec.fieldContext_OrderTransaction_settlementCurrencyRate(ctx, field)
  134223. case "shopifyPaymentsSet":
  134224. return ec.fieldContext_OrderTransaction_shopifyPaymentsSet(ctx, field)
  134225. case "status":
  134226. return ec.fieldContext_OrderTransaction_status(ctx, field)
  134227. case "test":
  134228. return ec.fieldContext_OrderTransaction_test(ctx, field)
  134229. case "totalUnsettledSet":
  134230. return ec.fieldContext_OrderTransaction_totalUnsettledSet(ctx, field)
  134231. case "user":
  134232. return ec.fieldContext_OrderTransaction_user(ctx, field)
  134233. }
  134234. return nil, fmt.Errorf("no field named %q was found under type OrderTransaction", field.Name)
  134235. },
  134236. }
  134237. return fc, nil
  134238. }
  134239. func (ec *executionContext) _SuggestedRefund_amountSet(ctx context.Context, field graphql.CollectedField, obj *SuggestedRefund) (ret graphql.Marshaler) {
  134240. fc, err := ec.fieldContext_SuggestedRefund_amountSet(ctx, field)
  134241. if err != nil {
  134242. return graphql.Null
  134243. }
  134244. ctx = graphql.WithFieldContext(ctx, fc)
  134245. defer func() {
  134246. if r := recover(); r != nil {
  134247. ec.Error(ctx, ec.Recover(ctx, r))
  134248. ret = graphql.Null
  134249. }
  134250. }()
  134251. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  134252. ctx = rctx // use context from middleware stack in children
  134253. return obj.AmountSet, nil
  134254. })
  134255. if err != nil {
  134256. ec.Error(ctx, err)
  134257. return graphql.Null
  134258. }
  134259. if resTmp == nil {
  134260. if !graphql.HasFieldError(ctx, fc) {
  134261. ec.Errorf(ctx, "must not be null")
  134262. }
  134263. return graphql.Null
  134264. }
  134265. res := resTmp.(*MoneyBag)
  134266. fc.Result = res
  134267. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  134268. }
  134269. func (ec *executionContext) fieldContext_SuggestedRefund_amountSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  134270. fc = &graphql.FieldContext{
  134271. Object: "SuggestedRefund",
  134272. Field: field,
  134273. IsMethod: false,
  134274. IsResolver: false,
  134275. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  134276. switch field.Name {
  134277. case "presentmentMoney":
  134278. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  134279. case "shopMoney":
  134280. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  134281. }
  134282. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  134283. },
  134284. }
  134285. return fc, nil
  134286. }
  134287. func (ec *executionContext) _SuggestedRefund_discountedSubtotalSet(ctx context.Context, field graphql.CollectedField, obj *SuggestedRefund) (ret graphql.Marshaler) {
  134288. fc, err := ec.fieldContext_SuggestedRefund_discountedSubtotalSet(ctx, field)
  134289. if err != nil {
  134290. return graphql.Null
  134291. }
  134292. ctx = graphql.WithFieldContext(ctx, fc)
  134293. defer func() {
  134294. if r := recover(); r != nil {
  134295. ec.Error(ctx, ec.Recover(ctx, r))
  134296. ret = graphql.Null
  134297. }
  134298. }()
  134299. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  134300. ctx = rctx // use context from middleware stack in children
  134301. return obj.DiscountedSubtotalSet, nil
  134302. })
  134303. if err != nil {
  134304. ec.Error(ctx, err)
  134305. return graphql.Null
  134306. }
  134307. if resTmp == nil {
  134308. if !graphql.HasFieldError(ctx, fc) {
  134309. ec.Errorf(ctx, "must not be null")
  134310. }
  134311. return graphql.Null
  134312. }
  134313. res := resTmp.(*MoneyBag)
  134314. fc.Result = res
  134315. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  134316. }
  134317. func (ec *executionContext) fieldContext_SuggestedRefund_discountedSubtotalSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  134318. fc = &graphql.FieldContext{
  134319. Object: "SuggestedRefund",
  134320. Field: field,
  134321. IsMethod: false,
  134322. IsResolver: false,
  134323. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  134324. switch field.Name {
  134325. case "presentmentMoney":
  134326. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  134327. case "shopMoney":
  134328. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  134329. }
  134330. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  134331. },
  134332. }
  134333. return fc, nil
  134334. }
  134335. func (ec *executionContext) _SuggestedRefund_maximumRefundableSet(ctx context.Context, field graphql.CollectedField, obj *SuggestedRefund) (ret graphql.Marshaler) {
  134336. fc, err := ec.fieldContext_SuggestedRefund_maximumRefundableSet(ctx, field)
  134337. if err != nil {
  134338. return graphql.Null
  134339. }
  134340. ctx = graphql.WithFieldContext(ctx, fc)
  134341. defer func() {
  134342. if r := recover(); r != nil {
  134343. ec.Error(ctx, ec.Recover(ctx, r))
  134344. ret = graphql.Null
  134345. }
  134346. }()
  134347. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  134348. ctx = rctx // use context from middleware stack in children
  134349. return obj.MaximumRefundableSet, nil
  134350. })
  134351. if err != nil {
  134352. ec.Error(ctx, err)
  134353. return graphql.Null
  134354. }
  134355. if resTmp == nil {
  134356. if !graphql.HasFieldError(ctx, fc) {
  134357. ec.Errorf(ctx, "must not be null")
  134358. }
  134359. return graphql.Null
  134360. }
  134361. res := resTmp.(*MoneyBag)
  134362. fc.Result = res
  134363. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  134364. }
  134365. func (ec *executionContext) fieldContext_SuggestedRefund_maximumRefundableSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  134366. fc = &graphql.FieldContext{
  134367. Object: "SuggestedRefund",
  134368. Field: field,
  134369. IsMethod: false,
  134370. IsResolver: false,
  134371. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  134372. switch field.Name {
  134373. case "presentmentMoney":
  134374. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  134375. case "shopMoney":
  134376. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  134377. }
  134378. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  134379. },
  134380. }
  134381. return fc, nil
  134382. }
  134383. func (ec *executionContext) _SuggestedRefund_refundDuties(ctx context.Context, field graphql.CollectedField, obj *SuggestedRefund) (ret graphql.Marshaler) {
  134384. fc, err := ec.fieldContext_SuggestedRefund_refundDuties(ctx, field)
  134385. if err != nil {
  134386. return graphql.Null
  134387. }
  134388. ctx = graphql.WithFieldContext(ctx, fc)
  134389. defer func() {
  134390. if r := recover(); r != nil {
  134391. ec.Error(ctx, ec.Recover(ctx, r))
  134392. ret = graphql.Null
  134393. }
  134394. }()
  134395. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  134396. ctx = rctx // use context from middleware stack in children
  134397. return obj.RefundDuties, nil
  134398. })
  134399. if err != nil {
  134400. ec.Error(ctx, err)
  134401. return graphql.Null
  134402. }
  134403. if resTmp == nil {
  134404. if !graphql.HasFieldError(ctx, fc) {
  134405. ec.Errorf(ctx, "must not be null")
  134406. }
  134407. return graphql.Null
  134408. }
  134409. res := resTmp.([]*RefundDuty)
  134410. fc.Result = res
  134411. return ec.marshalNRefundDuty2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundDutyᚄ(ctx, field.Selections, res)
  134412. }
  134413. func (ec *executionContext) fieldContext_SuggestedRefund_refundDuties(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  134414. fc = &graphql.FieldContext{
  134415. Object: "SuggestedRefund",
  134416. Field: field,
  134417. IsMethod: false,
  134418. IsResolver: false,
  134419. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  134420. switch field.Name {
  134421. case "amountSet":
  134422. return ec.fieldContext_RefundDuty_amountSet(ctx, field)
  134423. case "originalDuty":
  134424. return ec.fieldContext_RefundDuty_originalDuty(ctx, field)
  134425. }
  134426. return nil, fmt.Errorf("no field named %q was found under type RefundDuty", field.Name)
  134427. },
  134428. }
  134429. return fc, nil
  134430. }
  134431. func (ec *executionContext) _SuggestedRefund_refundLineItems(ctx context.Context, field graphql.CollectedField, obj *SuggestedRefund) (ret graphql.Marshaler) {
  134432. fc, err := ec.fieldContext_SuggestedRefund_refundLineItems(ctx, field)
  134433. if err != nil {
  134434. return graphql.Null
  134435. }
  134436. ctx = graphql.WithFieldContext(ctx, fc)
  134437. defer func() {
  134438. if r := recover(); r != nil {
  134439. ec.Error(ctx, ec.Recover(ctx, r))
  134440. ret = graphql.Null
  134441. }
  134442. }()
  134443. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  134444. ctx = rctx // use context from middleware stack in children
  134445. return obj.RefundLineItems, nil
  134446. })
  134447. if err != nil {
  134448. ec.Error(ctx, err)
  134449. return graphql.Null
  134450. }
  134451. if resTmp == nil {
  134452. if !graphql.HasFieldError(ctx, fc) {
  134453. ec.Errorf(ctx, "must not be null")
  134454. }
  134455. return graphql.Null
  134456. }
  134457. res := resTmp.([]*RefundLineItem)
  134458. fc.Result = res
  134459. return ec.marshalNRefundLineItem2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundLineItemᚄ(ctx, field.Selections, res)
  134460. }
  134461. func (ec *executionContext) fieldContext_SuggestedRefund_refundLineItems(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  134462. fc = &graphql.FieldContext{
  134463. Object: "SuggestedRefund",
  134464. Field: field,
  134465. IsMethod: false,
  134466. IsResolver: false,
  134467. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  134468. switch field.Name {
  134469. case "lineItem":
  134470. return ec.fieldContext_RefundLineItem_lineItem(ctx, field)
  134471. case "location":
  134472. return ec.fieldContext_RefundLineItem_location(ctx, field)
  134473. case "priceSet":
  134474. return ec.fieldContext_RefundLineItem_priceSet(ctx, field)
  134475. case "quantity":
  134476. return ec.fieldContext_RefundLineItem_quantity(ctx, field)
  134477. case "restockType":
  134478. return ec.fieldContext_RefundLineItem_restockType(ctx, field)
  134479. case "restocked":
  134480. return ec.fieldContext_RefundLineItem_restocked(ctx, field)
  134481. case "subtotalSet":
  134482. return ec.fieldContext_RefundLineItem_subtotalSet(ctx, field)
  134483. case "totalTaxSet":
  134484. return ec.fieldContext_RefundLineItem_totalTaxSet(ctx, field)
  134485. }
  134486. return nil, fmt.Errorf("no field named %q was found under type RefundLineItem", field.Name)
  134487. },
  134488. }
  134489. return fc, nil
  134490. }
  134491. func (ec *executionContext) _SuggestedRefund_shipping(ctx context.Context, field graphql.CollectedField, obj *SuggestedRefund) (ret graphql.Marshaler) {
  134492. fc, err := ec.fieldContext_SuggestedRefund_shipping(ctx, field)
  134493. if err != nil {
  134494. return graphql.Null
  134495. }
  134496. ctx = graphql.WithFieldContext(ctx, fc)
  134497. defer func() {
  134498. if r := recover(); r != nil {
  134499. ec.Error(ctx, ec.Recover(ctx, r))
  134500. ret = graphql.Null
  134501. }
  134502. }()
  134503. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  134504. ctx = rctx // use context from middleware stack in children
  134505. return obj.Shipping, nil
  134506. })
  134507. if err != nil {
  134508. ec.Error(ctx, err)
  134509. return graphql.Null
  134510. }
  134511. if resTmp == nil {
  134512. if !graphql.HasFieldError(ctx, fc) {
  134513. ec.Errorf(ctx, "must not be null")
  134514. }
  134515. return graphql.Null
  134516. }
  134517. res := resTmp.(*ShippingRefund)
  134518. fc.Result = res
  134519. return ec.marshalNShippingRefund2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShippingRefund(ctx, field.Selections, res)
  134520. }
  134521. func (ec *executionContext) fieldContext_SuggestedRefund_shipping(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  134522. fc = &graphql.FieldContext{
  134523. Object: "SuggestedRefund",
  134524. Field: field,
  134525. IsMethod: false,
  134526. IsResolver: false,
  134527. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  134528. switch field.Name {
  134529. case "amountSet":
  134530. return ec.fieldContext_ShippingRefund_amountSet(ctx, field)
  134531. case "maximumRefundableSet":
  134532. return ec.fieldContext_ShippingRefund_maximumRefundableSet(ctx, field)
  134533. case "taxSet":
  134534. return ec.fieldContext_ShippingRefund_taxSet(ctx, field)
  134535. }
  134536. return nil, fmt.Errorf("no field named %q was found under type ShippingRefund", field.Name)
  134537. },
  134538. }
  134539. return fc, nil
  134540. }
  134541. func (ec *executionContext) _SuggestedRefund_subtotalSet(ctx context.Context, field graphql.CollectedField, obj *SuggestedRefund) (ret graphql.Marshaler) {
  134542. fc, err := ec.fieldContext_SuggestedRefund_subtotalSet(ctx, field)
  134543. if err != nil {
  134544. return graphql.Null
  134545. }
  134546. ctx = graphql.WithFieldContext(ctx, fc)
  134547. defer func() {
  134548. if r := recover(); r != nil {
  134549. ec.Error(ctx, ec.Recover(ctx, r))
  134550. ret = graphql.Null
  134551. }
  134552. }()
  134553. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  134554. ctx = rctx // use context from middleware stack in children
  134555. return obj.SubtotalSet, nil
  134556. })
  134557. if err != nil {
  134558. ec.Error(ctx, err)
  134559. return graphql.Null
  134560. }
  134561. if resTmp == nil {
  134562. if !graphql.HasFieldError(ctx, fc) {
  134563. ec.Errorf(ctx, "must not be null")
  134564. }
  134565. return graphql.Null
  134566. }
  134567. res := resTmp.(*MoneyBag)
  134568. fc.Result = res
  134569. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  134570. }
  134571. func (ec *executionContext) fieldContext_SuggestedRefund_subtotalSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  134572. fc = &graphql.FieldContext{
  134573. Object: "SuggestedRefund",
  134574. Field: field,
  134575. IsMethod: false,
  134576. IsResolver: false,
  134577. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  134578. switch field.Name {
  134579. case "presentmentMoney":
  134580. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  134581. case "shopMoney":
  134582. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  134583. }
  134584. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  134585. },
  134586. }
  134587. return fc, nil
  134588. }
  134589. func (ec *executionContext) _SuggestedRefund_suggestedTransactions(ctx context.Context, field graphql.CollectedField, obj *SuggestedRefund) (ret graphql.Marshaler) {
  134590. fc, err := ec.fieldContext_SuggestedRefund_suggestedTransactions(ctx, field)
  134591. if err != nil {
  134592. return graphql.Null
  134593. }
  134594. ctx = graphql.WithFieldContext(ctx, fc)
  134595. defer func() {
  134596. if r := recover(); r != nil {
  134597. ec.Error(ctx, ec.Recover(ctx, r))
  134598. ret = graphql.Null
  134599. }
  134600. }()
  134601. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  134602. ctx = rctx // use context from middleware stack in children
  134603. return obj.SuggestedTransactions, nil
  134604. })
  134605. if err != nil {
  134606. ec.Error(ctx, err)
  134607. return graphql.Null
  134608. }
  134609. if resTmp == nil {
  134610. if !graphql.HasFieldError(ctx, fc) {
  134611. ec.Errorf(ctx, "must not be null")
  134612. }
  134613. return graphql.Null
  134614. }
  134615. res := resTmp.([]*SuggestedOrderTransaction)
  134616. fc.Result = res
  134617. return ec.marshalNSuggestedOrderTransaction2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSuggestedOrderTransactionᚄ(ctx, field.Selections, res)
  134618. }
  134619. func (ec *executionContext) fieldContext_SuggestedRefund_suggestedTransactions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  134620. fc = &graphql.FieldContext{
  134621. Object: "SuggestedRefund",
  134622. Field: field,
  134623. IsMethod: false,
  134624. IsResolver: false,
  134625. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  134626. switch field.Name {
  134627. case "accountNumber":
  134628. return ec.fieldContext_SuggestedOrderTransaction_accountNumber(ctx, field)
  134629. case "amountSet":
  134630. return ec.fieldContext_SuggestedOrderTransaction_amountSet(ctx, field)
  134631. case "formattedGateway":
  134632. return ec.fieldContext_SuggestedOrderTransaction_formattedGateway(ctx, field)
  134633. case "gateway":
  134634. return ec.fieldContext_SuggestedOrderTransaction_gateway(ctx, field)
  134635. case "kind":
  134636. return ec.fieldContext_SuggestedOrderTransaction_kind(ctx, field)
  134637. case "maximumRefundableSet":
  134638. return ec.fieldContext_SuggestedOrderTransaction_maximumRefundableSet(ctx, field)
  134639. case "parentTransaction":
  134640. return ec.fieldContext_SuggestedOrderTransaction_parentTransaction(ctx, field)
  134641. }
  134642. return nil, fmt.Errorf("no field named %q was found under type SuggestedOrderTransaction", field.Name)
  134643. },
  134644. }
  134645. return fc, nil
  134646. }
  134647. func (ec *executionContext) _SuggestedRefund_totalCartDiscountAmountSet(ctx context.Context, field graphql.CollectedField, obj *SuggestedRefund) (ret graphql.Marshaler) {
  134648. fc, err := ec.fieldContext_SuggestedRefund_totalCartDiscountAmountSet(ctx, field)
  134649. if err != nil {
  134650. return graphql.Null
  134651. }
  134652. ctx = graphql.WithFieldContext(ctx, fc)
  134653. defer func() {
  134654. if r := recover(); r != nil {
  134655. ec.Error(ctx, ec.Recover(ctx, r))
  134656. ret = graphql.Null
  134657. }
  134658. }()
  134659. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  134660. ctx = rctx // use context from middleware stack in children
  134661. return obj.TotalCartDiscountAmountSet, nil
  134662. })
  134663. if err != nil {
  134664. ec.Error(ctx, err)
  134665. return graphql.Null
  134666. }
  134667. if resTmp == nil {
  134668. if !graphql.HasFieldError(ctx, fc) {
  134669. ec.Errorf(ctx, "must not be null")
  134670. }
  134671. return graphql.Null
  134672. }
  134673. res := resTmp.(*MoneyBag)
  134674. fc.Result = res
  134675. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  134676. }
  134677. func (ec *executionContext) fieldContext_SuggestedRefund_totalCartDiscountAmountSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  134678. fc = &graphql.FieldContext{
  134679. Object: "SuggestedRefund",
  134680. Field: field,
  134681. IsMethod: false,
  134682. IsResolver: false,
  134683. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  134684. switch field.Name {
  134685. case "presentmentMoney":
  134686. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  134687. case "shopMoney":
  134688. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  134689. }
  134690. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  134691. },
  134692. }
  134693. return fc, nil
  134694. }
  134695. func (ec *executionContext) _SuggestedRefund_totalDutiesSet(ctx context.Context, field graphql.CollectedField, obj *SuggestedRefund) (ret graphql.Marshaler) {
  134696. fc, err := ec.fieldContext_SuggestedRefund_totalDutiesSet(ctx, field)
  134697. if err != nil {
  134698. return graphql.Null
  134699. }
  134700. ctx = graphql.WithFieldContext(ctx, fc)
  134701. defer func() {
  134702. if r := recover(); r != nil {
  134703. ec.Error(ctx, ec.Recover(ctx, r))
  134704. ret = graphql.Null
  134705. }
  134706. }()
  134707. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  134708. ctx = rctx // use context from middleware stack in children
  134709. return obj.TotalDutiesSet, nil
  134710. })
  134711. if err != nil {
  134712. ec.Error(ctx, err)
  134713. return graphql.Null
  134714. }
  134715. if resTmp == nil {
  134716. if !graphql.HasFieldError(ctx, fc) {
  134717. ec.Errorf(ctx, "must not be null")
  134718. }
  134719. return graphql.Null
  134720. }
  134721. res := resTmp.(*MoneyBag)
  134722. fc.Result = res
  134723. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  134724. }
  134725. func (ec *executionContext) fieldContext_SuggestedRefund_totalDutiesSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  134726. fc = &graphql.FieldContext{
  134727. Object: "SuggestedRefund",
  134728. Field: field,
  134729. IsMethod: false,
  134730. IsResolver: false,
  134731. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  134732. switch field.Name {
  134733. case "presentmentMoney":
  134734. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  134735. case "shopMoney":
  134736. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  134737. }
  134738. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  134739. },
  134740. }
  134741. return fc, nil
  134742. }
  134743. func (ec *executionContext) _SuggestedRefund_totalTaxSet(ctx context.Context, field graphql.CollectedField, obj *SuggestedRefund) (ret graphql.Marshaler) {
  134744. fc, err := ec.fieldContext_SuggestedRefund_totalTaxSet(ctx, field)
  134745. if err != nil {
  134746. return graphql.Null
  134747. }
  134748. ctx = graphql.WithFieldContext(ctx, fc)
  134749. defer func() {
  134750. if r := recover(); r != nil {
  134751. ec.Error(ctx, ec.Recover(ctx, r))
  134752. ret = graphql.Null
  134753. }
  134754. }()
  134755. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  134756. ctx = rctx // use context from middleware stack in children
  134757. return obj.TotalTaxSet, nil
  134758. })
  134759. if err != nil {
  134760. ec.Error(ctx, err)
  134761. return graphql.Null
  134762. }
  134763. if resTmp == nil {
  134764. if !graphql.HasFieldError(ctx, fc) {
  134765. ec.Errorf(ctx, "must not be null")
  134766. }
  134767. return graphql.Null
  134768. }
  134769. res := resTmp.(*MoneyBag)
  134770. fc.Result = res
  134771. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  134772. }
  134773. func (ec *executionContext) fieldContext_SuggestedRefund_totalTaxSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  134774. fc = &graphql.FieldContext{
  134775. Object: "SuggestedRefund",
  134776. Field: field,
  134777. IsMethod: false,
  134778. IsResolver: false,
  134779. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  134780. switch field.Name {
  134781. case "presentmentMoney":
  134782. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  134783. case "shopMoney":
  134784. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  134785. }
  134786. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  134787. },
  134788. }
  134789. return fc, nil
  134790. }
  134791. func (ec *executionContext) _TaxLine_channelLiable(ctx context.Context, field graphql.CollectedField, obj *TaxLine) (ret graphql.Marshaler) {
  134792. fc, err := ec.fieldContext_TaxLine_channelLiable(ctx, field)
  134793. if err != nil {
  134794. return graphql.Null
  134795. }
  134796. ctx = graphql.WithFieldContext(ctx, fc)
  134797. defer func() {
  134798. if r := recover(); r != nil {
  134799. ec.Error(ctx, ec.Recover(ctx, r))
  134800. ret = graphql.Null
  134801. }
  134802. }()
  134803. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  134804. ctx = rctx // use context from middleware stack in children
  134805. return obj.ChannelLiable, nil
  134806. })
  134807. if err != nil {
  134808. ec.Error(ctx, err)
  134809. return graphql.Null
  134810. }
  134811. if resTmp == nil {
  134812. return graphql.Null
  134813. }
  134814. res := resTmp.(*bool)
  134815. fc.Result = res
  134816. return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res)
  134817. }
  134818. func (ec *executionContext) fieldContext_TaxLine_channelLiable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  134819. fc = &graphql.FieldContext{
  134820. Object: "TaxLine",
  134821. Field: field,
  134822. IsMethod: false,
  134823. IsResolver: false,
  134824. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  134825. return nil, errors.New("field of type Boolean does not have child fields")
  134826. },
  134827. }
  134828. return fc, nil
  134829. }
  134830. func (ec *executionContext) _TaxLine_priceSet(ctx context.Context, field graphql.CollectedField, obj *TaxLine) (ret graphql.Marshaler) {
  134831. fc, err := ec.fieldContext_TaxLine_priceSet(ctx, field)
  134832. if err != nil {
  134833. return graphql.Null
  134834. }
  134835. ctx = graphql.WithFieldContext(ctx, fc)
  134836. defer func() {
  134837. if r := recover(); r != nil {
  134838. ec.Error(ctx, ec.Recover(ctx, r))
  134839. ret = graphql.Null
  134840. }
  134841. }()
  134842. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  134843. ctx = rctx // use context from middleware stack in children
  134844. return obj.PriceSet, nil
  134845. })
  134846. if err != nil {
  134847. ec.Error(ctx, err)
  134848. return graphql.Null
  134849. }
  134850. if resTmp == nil {
  134851. if !graphql.HasFieldError(ctx, fc) {
  134852. ec.Errorf(ctx, "must not be null")
  134853. }
  134854. return graphql.Null
  134855. }
  134856. res := resTmp.(*MoneyBag)
  134857. fc.Result = res
  134858. return ec.marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx, field.Selections, res)
  134859. }
  134860. func (ec *executionContext) fieldContext_TaxLine_priceSet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  134861. fc = &graphql.FieldContext{
  134862. Object: "TaxLine",
  134863. Field: field,
  134864. IsMethod: false,
  134865. IsResolver: false,
  134866. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  134867. switch field.Name {
  134868. case "presentmentMoney":
  134869. return ec.fieldContext_MoneyBag_presentmentMoney(ctx, field)
  134870. case "shopMoney":
  134871. return ec.fieldContext_MoneyBag_shopMoney(ctx, field)
  134872. }
  134873. return nil, fmt.Errorf("no field named %q was found under type MoneyBag", field.Name)
  134874. },
  134875. }
  134876. return fc, nil
  134877. }
  134878. func (ec *executionContext) _TaxLine_rate(ctx context.Context, field graphql.CollectedField, obj *TaxLine) (ret graphql.Marshaler) {
  134879. fc, err := ec.fieldContext_TaxLine_rate(ctx, field)
  134880. if err != nil {
  134881. return graphql.Null
  134882. }
  134883. ctx = graphql.WithFieldContext(ctx, fc)
  134884. defer func() {
  134885. if r := recover(); r != nil {
  134886. ec.Error(ctx, ec.Recover(ctx, r))
  134887. ret = graphql.Null
  134888. }
  134889. }()
  134890. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  134891. ctx = rctx // use context from middleware stack in children
  134892. return obj.Rate, nil
  134893. })
  134894. if err != nil {
  134895. ec.Error(ctx, err)
  134896. return graphql.Null
  134897. }
  134898. if resTmp == nil {
  134899. return graphql.Null
  134900. }
  134901. res := resTmp.(*float64)
  134902. fc.Result = res
  134903. return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res)
  134904. }
  134905. func (ec *executionContext) fieldContext_TaxLine_rate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  134906. fc = &graphql.FieldContext{
  134907. Object: "TaxLine",
  134908. Field: field,
  134909. IsMethod: false,
  134910. IsResolver: false,
  134911. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  134912. return nil, errors.New("field of type Float does not have child fields")
  134913. },
  134914. }
  134915. return fc, nil
  134916. }
  134917. func (ec *executionContext) _TaxLine_ratePercentage(ctx context.Context, field graphql.CollectedField, obj *TaxLine) (ret graphql.Marshaler) {
  134918. fc, err := ec.fieldContext_TaxLine_ratePercentage(ctx, field)
  134919. if err != nil {
  134920. return graphql.Null
  134921. }
  134922. ctx = graphql.WithFieldContext(ctx, fc)
  134923. defer func() {
  134924. if r := recover(); r != nil {
  134925. ec.Error(ctx, ec.Recover(ctx, r))
  134926. ret = graphql.Null
  134927. }
  134928. }()
  134929. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  134930. ctx = rctx // use context from middleware stack in children
  134931. return obj.RatePercentage, nil
  134932. })
  134933. if err != nil {
  134934. ec.Error(ctx, err)
  134935. return graphql.Null
  134936. }
  134937. if resTmp == nil {
  134938. return graphql.Null
  134939. }
  134940. res := resTmp.(*float64)
  134941. fc.Result = res
  134942. return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res)
  134943. }
  134944. func (ec *executionContext) fieldContext_TaxLine_ratePercentage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  134945. fc = &graphql.FieldContext{
  134946. Object: "TaxLine",
  134947. Field: field,
  134948. IsMethod: false,
  134949. IsResolver: false,
  134950. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  134951. return nil, errors.New("field of type Float does not have child fields")
  134952. },
  134953. }
  134954. return fc, nil
  134955. }
  134956. func (ec *executionContext) _TaxLine_title(ctx context.Context, field graphql.CollectedField, obj *TaxLine) (ret graphql.Marshaler) {
  134957. fc, err := ec.fieldContext_TaxLine_title(ctx, field)
  134958. if err != nil {
  134959. return graphql.Null
  134960. }
  134961. ctx = graphql.WithFieldContext(ctx, fc)
  134962. defer func() {
  134963. if r := recover(); r != nil {
  134964. ec.Error(ctx, ec.Recover(ctx, r))
  134965. ret = graphql.Null
  134966. }
  134967. }()
  134968. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  134969. ctx = rctx // use context from middleware stack in children
  134970. return obj.Title, nil
  134971. })
  134972. if err != nil {
  134973. ec.Error(ctx, err)
  134974. return graphql.Null
  134975. }
  134976. if resTmp == nil {
  134977. if !graphql.HasFieldError(ctx, fc) {
  134978. ec.Errorf(ctx, "must not be null")
  134979. }
  134980. return graphql.Null
  134981. }
  134982. res := resTmp.(string)
  134983. fc.Result = res
  134984. return ec.marshalNString2string(ctx, field.Selections, res)
  134985. }
  134986. func (ec *executionContext) fieldContext_TaxLine_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  134987. fc = &graphql.FieldContext{
  134988. Object: "TaxLine",
  134989. Field: field,
  134990. IsMethod: false,
  134991. IsResolver: false,
  134992. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  134993. return nil, errors.New("field of type String does not have child fields")
  134994. },
  134995. }
  134996. return fc, nil
  134997. }
  134998. func (ec *executionContext) _TransactionFee_amount(ctx context.Context, field graphql.CollectedField, obj *TransactionFee) (ret graphql.Marshaler) {
  134999. fc, err := ec.fieldContext_TransactionFee_amount(ctx, field)
  135000. if err != nil {
  135001. return graphql.Null
  135002. }
  135003. ctx = graphql.WithFieldContext(ctx, fc)
  135004. defer func() {
  135005. if r := recover(); r != nil {
  135006. ec.Error(ctx, ec.Recover(ctx, r))
  135007. ret = graphql.Null
  135008. }
  135009. }()
  135010. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  135011. ctx = rctx // use context from middleware stack in children
  135012. return obj.Amount, nil
  135013. })
  135014. if err != nil {
  135015. ec.Error(ctx, err)
  135016. return graphql.Null
  135017. }
  135018. if resTmp == nil {
  135019. if !graphql.HasFieldError(ctx, fc) {
  135020. ec.Errorf(ctx, "must not be null")
  135021. }
  135022. return graphql.Null
  135023. }
  135024. res := resTmp.(*MoneyV2)
  135025. fc.Result = res
  135026. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  135027. }
  135028. func (ec *executionContext) fieldContext_TransactionFee_amount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  135029. fc = &graphql.FieldContext{
  135030. Object: "TransactionFee",
  135031. Field: field,
  135032. IsMethod: false,
  135033. IsResolver: false,
  135034. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  135035. switch field.Name {
  135036. case "amount":
  135037. return ec.fieldContext_MoneyV2_amount(ctx, field)
  135038. case "currencyCode":
  135039. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  135040. }
  135041. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  135042. },
  135043. }
  135044. return fc, nil
  135045. }
  135046. func (ec *executionContext) _TransactionFee_flatFee(ctx context.Context, field graphql.CollectedField, obj *TransactionFee) (ret graphql.Marshaler) {
  135047. fc, err := ec.fieldContext_TransactionFee_flatFee(ctx, field)
  135048. if err != nil {
  135049. return graphql.Null
  135050. }
  135051. ctx = graphql.WithFieldContext(ctx, fc)
  135052. defer func() {
  135053. if r := recover(); r != nil {
  135054. ec.Error(ctx, ec.Recover(ctx, r))
  135055. ret = graphql.Null
  135056. }
  135057. }()
  135058. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  135059. ctx = rctx // use context from middleware stack in children
  135060. return obj.FlatFee, nil
  135061. })
  135062. if err != nil {
  135063. ec.Error(ctx, err)
  135064. return graphql.Null
  135065. }
  135066. if resTmp == nil {
  135067. if !graphql.HasFieldError(ctx, fc) {
  135068. ec.Errorf(ctx, "must not be null")
  135069. }
  135070. return graphql.Null
  135071. }
  135072. res := resTmp.(*MoneyV2)
  135073. fc.Result = res
  135074. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  135075. }
  135076. func (ec *executionContext) fieldContext_TransactionFee_flatFee(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  135077. fc = &graphql.FieldContext{
  135078. Object: "TransactionFee",
  135079. Field: field,
  135080. IsMethod: false,
  135081. IsResolver: false,
  135082. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  135083. switch field.Name {
  135084. case "amount":
  135085. return ec.fieldContext_MoneyV2_amount(ctx, field)
  135086. case "currencyCode":
  135087. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  135088. }
  135089. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  135090. },
  135091. }
  135092. return fc, nil
  135093. }
  135094. func (ec *executionContext) _TransactionFee_flatFeeName(ctx context.Context, field graphql.CollectedField, obj *TransactionFee) (ret graphql.Marshaler) {
  135095. fc, err := ec.fieldContext_TransactionFee_flatFeeName(ctx, field)
  135096. if err != nil {
  135097. return graphql.Null
  135098. }
  135099. ctx = graphql.WithFieldContext(ctx, fc)
  135100. defer func() {
  135101. if r := recover(); r != nil {
  135102. ec.Error(ctx, ec.Recover(ctx, r))
  135103. ret = graphql.Null
  135104. }
  135105. }()
  135106. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  135107. ctx = rctx // use context from middleware stack in children
  135108. return obj.FlatFeeName, nil
  135109. })
  135110. if err != nil {
  135111. ec.Error(ctx, err)
  135112. return graphql.Null
  135113. }
  135114. if resTmp == nil {
  135115. return graphql.Null
  135116. }
  135117. res := resTmp.(*string)
  135118. fc.Result = res
  135119. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  135120. }
  135121. func (ec *executionContext) fieldContext_TransactionFee_flatFeeName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  135122. fc = &graphql.FieldContext{
  135123. Object: "TransactionFee",
  135124. Field: field,
  135125. IsMethod: false,
  135126. IsResolver: false,
  135127. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  135128. return nil, errors.New("field of type String does not have child fields")
  135129. },
  135130. }
  135131. return fc, nil
  135132. }
  135133. func (ec *executionContext) _TransactionFee_id(ctx context.Context, field graphql.CollectedField, obj *TransactionFee) (ret graphql.Marshaler) {
  135134. fc, err := ec.fieldContext_TransactionFee_id(ctx, field)
  135135. if err != nil {
  135136. return graphql.Null
  135137. }
  135138. ctx = graphql.WithFieldContext(ctx, fc)
  135139. defer func() {
  135140. if r := recover(); r != nil {
  135141. ec.Error(ctx, ec.Recover(ctx, r))
  135142. ret = graphql.Null
  135143. }
  135144. }()
  135145. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  135146. ctx = rctx // use context from middleware stack in children
  135147. return obj.ID, nil
  135148. })
  135149. if err != nil {
  135150. ec.Error(ctx, err)
  135151. return graphql.Null
  135152. }
  135153. if resTmp == nil {
  135154. if !graphql.HasFieldError(ctx, fc) {
  135155. ec.Errorf(ctx, "must not be null")
  135156. }
  135157. return graphql.Null
  135158. }
  135159. res := resTmp.(string)
  135160. fc.Result = res
  135161. return ec.marshalNID2string(ctx, field.Selections, res)
  135162. }
  135163. func (ec *executionContext) fieldContext_TransactionFee_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  135164. fc = &graphql.FieldContext{
  135165. Object: "TransactionFee",
  135166. Field: field,
  135167. IsMethod: false,
  135168. IsResolver: false,
  135169. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  135170. return nil, errors.New("field of type ID does not have child fields")
  135171. },
  135172. }
  135173. return fc, nil
  135174. }
  135175. func (ec *executionContext) _TransactionFee_rate(ctx context.Context, field graphql.CollectedField, obj *TransactionFee) (ret graphql.Marshaler) {
  135176. fc, err := ec.fieldContext_TransactionFee_rate(ctx, field)
  135177. if err != nil {
  135178. return graphql.Null
  135179. }
  135180. ctx = graphql.WithFieldContext(ctx, fc)
  135181. defer func() {
  135182. if r := recover(); r != nil {
  135183. ec.Error(ctx, ec.Recover(ctx, r))
  135184. ret = graphql.Null
  135185. }
  135186. }()
  135187. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  135188. ctx = rctx // use context from middleware stack in children
  135189. return obj.Rate, nil
  135190. })
  135191. if err != nil {
  135192. ec.Error(ctx, err)
  135193. return graphql.Null
  135194. }
  135195. if resTmp == nil {
  135196. if !graphql.HasFieldError(ctx, fc) {
  135197. ec.Errorf(ctx, "must not be null")
  135198. }
  135199. return graphql.Null
  135200. }
  135201. res := resTmp.(string)
  135202. fc.Result = res
  135203. return ec.marshalNDecimal2string(ctx, field.Selections, res)
  135204. }
  135205. func (ec *executionContext) fieldContext_TransactionFee_rate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  135206. fc = &graphql.FieldContext{
  135207. Object: "TransactionFee",
  135208. Field: field,
  135209. IsMethod: false,
  135210. IsResolver: false,
  135211. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  135212. return nil, errors.New("field of type Decimal does not have child fields")
  135213. },
  135214. }
  135215. return fc, nil
  135216. }
  135217. func (ec *executionContext) _TransactionFee_rateName(ctx context.Context, field graphql.CollectedField, obj *TransactionFee) (ret graphql.Marshaler) {
  135218. fc, err := ec.fieldContext_TransactionFee_rateName(ctx, field)
  135219. if err != nil {
  135220. return graphql.Null
  135221. }
  135222. ctx = graphql.WithFieldContext(ctx, fc)
  135223. defer func() {
  135224. if r := recover(); r != nil {
  135225. ec.Error(ctx, ec.Recover(ctx, r))
  135226. ret = graphql.Null
  135227. }
  135228. }()
  135229. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  135230. ctx = rctx // use context from middleware stack in children
  135231. return obj.RateName, nil
  135232. })
  135233. if err != nil {
  135234. ec.Error(ctx, err)
  135235. return graphql.Null
  135236. }
  135237. if resTmp == nil {
  135238. return graphql.Null
  135239. }
  135240. res := resTmp.(*string)
  135241. fc.Result = res
  135242. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  135243. }
  135244. func (ec *executionContext) fieldContext_TransactionFee_rateName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  135245. fc = &graphql.FieldContext{
  135246. Object: "TransactionFee",
  135247. Field: field,
  135248. IsMethod: false,
  135249. IsResolver: false,
  135250. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  135251. return nil, errors.New("field of type String does not have child fields")
  135252. },
  135253. }
  135254. return fc, nil
  135255. }
  135256. func (ec *executionContext) _TransactionFee_taxAmount(ctx context.Context, field graphql.CollectedField, obj *TransactionFee) (ret graphql.Marshaler) {
  135257. fc, err := ec.fieldContext_TransactionFee_taxAmount(ctx, field)
  135258. if err != nil {
  135259. return graphql.Null
  135260. }
  135261. ctx = graphql.WithFieldContext(ctx, fc)
  135262. defer func() {
  135263. if r := recover(); r != nil {
  135264. ec.Error(ctx, ec.Recover(ctx, r))
  135265. ret = graphql.Null
  135266. }
  135267. }()
  135268. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  135269. ctx = rctx // use context from middleware stack in children
  135270. return obj.TaxAmount, nil
  135271. })
  135272. if err != nil {
  135273. ec.Error(ctx, err)
  135274. return graphql.Null
  135275. }
  135276. if resTmp == nil {
  135277. if !graphql.HasFieldError(ctx, fc) {
  135278. ec.Errorf(ctx, "must not be null")
  135279. }
  135280. return graphql.Null
  135281. }
  135282. res := resTmp.(*MoneyV2)
  135283. fc.Result = res
  135284. return ec.marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx, field.Selections, res)
  135285. }
  135286. func (ec *executionContext) fieldContext_TransactionFee_taxAmount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  135287. fc = &graphql.FieldContext{
  135288. Object: "TransactionFee",
  135289. Field: field,
  135290. IsMethod: false,
  135291. IsResolver: false,
  135292. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  135293. switch field.Name {
  135294. case "amount":
  135295. return ec.fieldContext_MoneyV2_amount(ctx, field)
  135296. case "currencyCode":
  135297. return ec.fieldContext_MoneyV2_currencyCode(ctx, field)
  135298. }
  135299. return nil, fmt.Errorf("no field named %q was found under type MoneyV2", field.Name)
  135300. },
  135301. }
  135302. return fc, nil
  135303. }
  135304. func (ec *executionContext) _TransactionFee_type(ctx context.Context, field graphql.CollectedField, obj *TransactionFee) (ret graphql.Marshaler) {
  135305. fc, err := ec.fieldContext_TransactionFee_type(ctx, field)
  135306. if err != nil {
  135307. return graphql.Null
  135308. }
  135309. ctx = graphql.WithFieldContext(ctx, fc)
  135310. defer func() {
  135311. if r := recover(); r != nil {
  135312. ec.Error(ctx, ec.Recover(ctx, r))
  135313. ret = graphql.Null
  135314. }
  135315. }()
  135316. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  135317. ctx = rctx // use context from middleware stack in children
  135318. return obj.Type, nil
  135319. })
  135320. if err != nil {
  135321. ec.Error(ctx, err)
  135322. return graphql.Null
  135323. }
  135324. if resTmp == nil {
  135325. if !graphql.HasFieldError(ctx, fc) {
  135326. ec.Errorf(ctx, "must not be null")
  135327. }
  135328. return graphql.Null
  135329. }
  135330. res := resTmp.(string)
  135331. fc.Result = res
  135332. return ec.marshalNString2string(ctx, field.Selections, res)
  135333. }
  135334. func (ec *executionContext) fieldContext_TransactionFee_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  135335. fc = &graphql.FieldContext{
  135336. Object: "TransactionFee",
  135337. Field: field,
  135338. IsMethod: false,
  135339. IsResolver: false,
  135340. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  135341. return nil, errors.New("field of type String does not have child fields")
  135342. },
  135343. }
  135344. return fc, nil
  135345. }
  135346. func (ec *executionContext) _TypedAttribute_key(ctx context.Context, field graphql.CollectedField, obj *TypedAttribute) (ret graphql.Marshaler) {
  135347. fc, err := ec.fieldContext_TypedAttribute_key(ctx, field)
  135348. if err != nil {
  135349. return graphql.Null
  135350. }
  135351. ctx = graphql.WithFieldContext(ctx, fc)
  135352. defer func() {
  135353. if r := recover(); r != nil {
  135354. ec.Error(ctx, ec.Recover(ctx, r))
  135355. ret = graphql.Null
  135356. }
  135357. }()
  135358. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  135359. ctx = rctx // use context from middleware stack in children
  135360. return obj.Key, nil
  135361. })
  135362. if err != nil {
  135363. ec.Error(ctx, err)
  135364. return graphql.Null
  135365. }
  135366. if resTmp == nil {
  135367. if !graphql.HasFieldError(ctx, fc) {
  135368. ec.Errorf(ctx, "must not be null")
  135369. }
  135370. return graphql.Null
  135371. }
  135372. res := resTmp.(string)
  135373. fc.Result = res
  135374. return ec.marshalNString2string(ctx, field.Selections, res)
  135375. }
  135376. func (ec *executionContext) fieldContext_TypedAttribute_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  135377. fc = &graphql.FieldContext{
  135378. Object: "TypedAttribute",
  135379. Field: field,
  135380. IsMethod: false,
  135381. IsResolver: false,
  135382. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  135383. return nil, errors.New("field of type String does not have child fields")
  135384. },
  135385. }
  135386. return fc, nil
  135387. }
  135388. func (ec *executionContext) _TypedAttribute_value(ctx context.Context, field graphql.CollectedField, obj *TypedAttribute) (ret graphql.Marshaler) {
  135389. fc, err := ec.fieldContext_TypedAttribute_value(ctx, field)
  135390. if err != nil {
  135391. return graphql.Null
  135392. }
  135393. ctx = graphql.WithFieldContext(ctx, fc)
  135394. defer func() {
  135395. if r := recover(); r != nil {
  135396. ec.Error(ctx, ec.Recover(ctx, r))
  135397. ret = graphql.Null
  135398. }
  135399. }()
  135400. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  135401. ctx = rctx // use context from middleware stack in children
  135402. return obj.Value, nil
  135403. })
  135404. if err != nil {
  135405. ec.Error(ctx, err)
  135406. return graphql.Null
  135407. }
  135408. if resTmp == nil {
  135409. if !graphql.HasFieldError(ctx, fc) {
  135410. ec.Errorf(ctx, "must not be null")
  135411. }
  135412. return graphql.Null
  135413. }
  135414. res := resTmp.(string)
  135415. fc.Result = res
  135416. return ec.marshalNString2string(ctx, field.Selections, res)
  135417. }
  135418. func (ec *executionContext) fieldContext_TypedAttribute_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  135419. fc = &graphql.FieldContext{
  135420. Object: "TypedAttribute",
  135421. Field: field,
  135422. IsMethod: false,
  135423. IsResolver: false,
  135424. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  135425. return nil, errors.New("field of type String does not have child fields")
  135426. },
  135427. }
  135428. return fc, nil
  135429. }
  135430. func (ec *executionContext) _UTMParameters_campaign(ctx context.Context, field graphql.CollectedField, obj *UTMParameters) (ret graphql.Marshaler) {
  135431. fc, err := ec.fieldContext_UTMParameters_campaign(ctx, field)
  135432. if err != nil {
  135433. return graphql.Null
  135434. }
  135435. ctx = graphql.WithFieldContext(ctx, fc)
  135436. defer func() {
  135437. if r := recover(); r != nil {
  135438. ec.Error(ctx, ec.Recover(ctx, r))
  135439. ret = graphql.Null
  135440. }
  135441. }()
  135442. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  135443. ctx = rctx // use context from middleware stack in children
  135444. return obj.Campaign, nil
  135445. })
  135446. if err != nil {
  135447. ec.Error(ctx, err)
  135448. return graphql.Null
  135449. }
  135450. if resTmp == nil {
  135451. return graphql.Null
  135452. }
  135453. res := resTmp.(*string)
  135454. fc.Result = res
  135455. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  135456. }
  135457. func (ec *executionContext) fieldContext_UTMParameters_campaign(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  135458. fc = &graphql.FieldContext{
  135459. Object: "UTMParameters",
  135460. Field: field,
  135461. IsMethod: false,
  135462. IsResolver: false,
  135463. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  135464. return nil, errors.New("field of type String does not have child fields")
  135465. },
  135466. }
  135467. return fc, nil
  135468. }
  135469. func (ec *executionContext) _UTMParameters_content(ctx context.Context, field graphql.CollectedField, obj *UTMParameters) (ret graphql.Marshaler) {
  135470. fc, err := ec.fieldContext_UTMParameters_content(ctx, field)
  135471. if err != nil {
  135472. return graphql.Null
  135473. }
  135474. ctx = graphql.WithFieldContext(ctx, fc)
  135475. defer func() {
  135476. if r := recover(); r != nil {
  135477. ec.Error(ctx, ec.Recover(ctx, r))
  135478. ret = graphql.Null
  135479. }
  135480. }()
  135481. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  135482. ctx = rctx // use context from middleware stack in children
  135483. return obj.Content, nil
  135484. })
  135485. if err != nil {
  135486. ec.Error(ctx, err)
  135487. return graphql.Null
  135488. }
  135489. if resTmp == nil {
  135490. return graphql.Null
  135491. }
  135492. res := resTmp.(*string)
  135493. fc.Result = res
  135494. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  135495. }
  135496. func (ec *executionContext) fieldContext_UTMParameters_content(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  135497. fc = &graphql.FieldContext{
  135498. Object: "UTMParameters",
  135499. Field: field,
  135500. IsMethod: false,
  135501. IsResolver: false,
  135502. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  135503. return nil, errors.New("field of type String does not have child fields")
  135504. },
  135505. }
  135506. return fc, nil
  135507. }
  135508. func (ec *executionContext) _UTMParameters_medium(ctx context.Context, field graphql.CollectedField, obj *UTMParameters) (ret graphql.Marshaler) {
  135509. fc, err := ec.fieldContext_UTMParameters_medium(ctx, field)
  135510. if err != nil {
  135511. return graphql.Null
  135512. }
  135513. ctx = graphql.WithFieldContext(ctx, fc)
  135514. defer func() {
  135515. if r := recover(); r != nil {
  135516. ec.Error(ctx, ec.Recover(ctx, r))
  135517. ret = graphql.Null
  135518. }
  135519. }()
  135520. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  135521. ctx = rctx // use context from middleware stack in children
  135522. return obj.Medium, nil
  135523. })
  135524. if err != nil {
  135525. ec.Error(ctx, err)
  135526. return graphql.Null
  135527. }
  135528. if resTmp == nil {
  135529. return graphql.Null
  135530. }
  135531. res := resTmp.(*string)
  135532. fc.Result = res
  135533. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  135534. }
  135535. func (ec *executionContext) fieldContext_UTMParameters_medium(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  135536. fc = &graphql.FieldContext{
  135537. Object: "UTMParameters",
  135538. Field: field,
  135539. IsMethod: false,
  135540. IsResolver: false,
  135541. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  135542. return nil, errors.New("field of type String does not have child fields")
  135543. },
  135544. }
  135545. return fc, nil
  135546. }
  135547. func (ec *executionContext) _UTMParameters_source(ctx context.Context, field graphql.CollectedField, obj *UTMParameters) (ret graphql.Marshaler) {
  135548. fc, err := ec.fieldContext_UTMParameters_source(ctx, field)
  135549. if err != nil {
  135550. return graphql.Null
  135551. }
  135552. ctx = graphql.WithFieldContext(ctx, fc)
  135553. defer func() {
  135554. if r := recover(); r != nil {
  135555. ec.Error(ctx, ec.Recover(ctx, r))
  135556. ret = graphql.Null
  135557. }
  135558. }()
  135559. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  135560. ctx = rctx // use context from middleware stack in children
  135561. return obj.Source, nil
  135562. })
  135563. if err != nil {
  135564. ec.Error(ctx, err)
  135565. return graphql.Null
  135566. }
  135567. if resTmp == nil {
  135568. return graphql.Null
  135569. }
  135570. res := resTmp.(*string)
  135571. fc.Result = res
  135572. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  135573. }
  135574. func (ec *executionContext) fieldContext_UTMParameters_source(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  135575. fc = &graphql.FieldContext{
  135576. Object: "UTMParameters",
  135577. Field: field,
  135578. IsMethod: false,
  135579. IsResolver: false,
  135580. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  135581. return nil, errors.New("field of type String does not have child fields")
  135582. },
  135583. }
  135584. return fc, nil
  135585. }
  135586. func (ec *executionContext) _UTMParameters_term(ctx context.Context, field graphql.CollectedField, obj *UTMParameters) (ret graphql.Marshaler) {
  135587. fc, err := ec.fieldContext_UTMParameters_term(ctx, field)
  135588. if err != nil {
  135589. return graphql.Null
  135590. }
  135591. ctx = graphql.WithFieldContext(ctx, fc)
  135592. defer func() {
  135593. if r := recover(); r != nil {
  135594. ec.Error(ctx, ec.Recover(ctx, r))
  135595. ret = graphql.Null
  135596. }
  135597. }()
  135598. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  135599. ctx = rctx // use context from middleware stack in children
  135600. return obj.Term, nil
  135601. })
  135602. if err != nil {
  135603. ec.Error(ctx, err)
  135604. return graphql.Null
  135605. }
  135606. if resTmp == nil {
  135607. return graphql.Null
  135608. }
  135609. res := resTmp.(*string)
  135610. fc.Result = res
  135611. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  135612. }
  135613. func (ec *executionContext) fieldContext_UTMParameters_term(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  135614. fc = &graphql.FieldContext{
  135615. Object: "UTMParameters",
  135616. Field: field,
  135617. IsMethod: false,
  135618. IsResolver: false,
  135619. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  135620. return nil, errors.New("field of type String does not have child fields")
  135621. },
  135622. }
  135623. return fc, nil
  135624. }
  135625. func (ec *executionContext) _UserError_field(ctx context.Context, field graphql.CollectedField, obj *UserError) (ret graphql.Marshaler) {
  135626. fc, err := ec.fieldContext_UserError_field(ctx, field)
  135627. if err != nil {
  135628. return graphql.Null
  135629. }
  135630. ctx = graphql.WithFieldContext(ctx, fc)
  135631. defer func() {
  135632. if r := recover(); r != nil {
  135633. ec.Error(ctx, ec.Recover(ctx, r))
  135634. ret = graphql.Null
  135635. }
  135636. }()
  135637. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  135638. ctx = rctx // use context from middleware stack in children
  135639. return obj.Field, nil
  135640. })
  135641. if err != nil {
  135642. ec.Error(ctx, err)
  135643. return graphql.Null
  135644. }
  135645. if resTmp == nil {
  135646. return graphql.Null
  135647. }
  135648. res := resTmp.([]string)
  135649. fc.Result = res
  135650. return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
  135651. }
  135652. func (ec *executionContext) fieldContext_UserError_field(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  135653. fc = &graphql.FieldContext{
  135654. Object: "UserError",
  135655. Field: field,
  135656. IsMethod: false,
  135657. IsResolver: false,
  135658. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  135659. return nil, errors.New("field of type String does not have child fields")
  135660. },
  135661. }
  135662. return fc, nil
  135663. }
  135664. func (ec *executionContext) _UserError_message(ctx context.Context, field graphql.CollectedField, obj *UserError) (ret graphql.Marshaler) {
  135665. fc, err := ec.fieldContext_UserError_message(ctx, field)
  135666. if err != nil {
  135667. return graphql.Null
  135668. }
  135669. ctx = graphql.WithFieldContext(ctx, fc)
  135670. defer func() {
  135671. if r := recover(); r != nil {
  135672. ec.Error(ctx, ec.Recover(ctx, r))
  135673. ret = graphql.Null
  135674. }
  135675. }()
  135676. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  135677. ctx = rctx // use context from middleware stack in children
  135678. return obj.Message, nil
  135679. })
  135680. if err != nil {
  135681. ec.Error(ctx, err)
  135682. return graphql.Null
  135683. }
  135684. if resTmp == nil {
  135685. if !graphql.HasFieldError(ctx, fc) {
  135686. ec.Errorf(ctx, "must not be null")
  135687. }
  135688. return graphql.Null
  135689. }
  135690. res := resTmp.(string)
  135691. fc.Result = res
  135692. return ec.marshalNString2string(ctx, field.Selections, res)
  135693. }
  135694. func (ec *executionContext) fieldContext_UserError_message(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  135695. fc = &graphql.FieldContext{
  135696. Object: "UserError",
  135697. Field: field,
  135698. IsMethod: false,
  135699. IsResolver: false,
  135700. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  135701. return nil, errors.New("field of type String does not have child fields")
  135702. },
  135703. }
  135704. return fc, nil
  135705. }
  135706. func (ec *executionContext) _VaultCreditCard_billingAddress(ctx context.Context, field graphql.CollectedField, obj *VaultCreditCard) (ret graphql.Marshaler) {
  135707. fc, err := ec.fieldContext_VaultCreditCard_billingAddress(ctx, field)
  135708. if err != nil {
  135709. return graphql.Null
  135710. }
  135711. ctx = graphql.WithFieldContext(ctx, fc)
  135712. defer func() {
  135713. if r := recover(); r != nil {
  135714. ec.Error(ctx, ec.Recover(ctx, r))
  135715. ret = graphql.Null
  135716. }
  135717. }()
  135718. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  135719. ctx = rctx // use context from middleware stack in children
  135720. return obj.BillingAddress, nil
  135721. })
  135722. if err != nil {
  135723. ec.Error(ctx, err)
  135724. return graphql.Null
  135725. }
  135726. if resTmp == nil {
  135727. return graphql.Null
  135728. }
  135729. res := resTmp.(*CustomerCreditCardBillingAddress)
  135730. fc.Result = res
  135731. return ec.marshalOCustomerCreditCardBillingAddress2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerCreditCardBillingAddress(ctx, field.Selections, res)
  135732. }
  135733. func (ec *executionContext) fieldContext_VaultCreditCard_billingAddress(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  135734. fc = &graphql.FieldContext{
  135735. Object: "VaultCreditCard",
  135736. Field: field,
  135737. IsMethod: false,
  135738. IsResolver: false,
  135739. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  135740. switch field.Name {
  135741. case "address1":
  135742. return ec.fieldContext_CustomerCreditCardBillingAddress_address1(ctx, field)
  135743. case "city":
  135744. return ec.fieldContext_CustomerCreditCardBillingAddress_city(ctx, field)
  135745. case "country":
  135746. return ec.fieldContext_CustomerCreditCardBillingAddress_country(ctx, field)
  135747. case "countryCode":
  135748. return ec.fieldContext_CustomerCreditCardBillingAddress_countryCode(ctx, field)
  135749. case "province":
  135750. return ec.fieldContext_CustomerCreditCardBillingAddress_province(ctx, field)
  135751. case "provinceCode":
  135752. return ec.fieldContext_CustomerCreditCardBillingAddress_provinceCode(ctx, field)
  135753. case "zip":
  135754. return ec.fieldContext_CustomerCreditCardBillingAddress_zip(ctx, field)
  135755. }
  135756. return nil, fmt.Errorf("no field named %q was found under type CustomerCreditCardBillingAddress", field.Name)
  135757. },
  135758. }
  135759. return fc, nil
  135760. }
  135761. func (ec *executionContext) _VaultCreditCard_brand(ctx context.Context, field graphql.CollectedField, obj *VaultCreditCard) (ret graphql.Marshaler) {
  135762. fc, err := ec.fieldContext_VaultCreditCard_brand(ctx, field)
  135763. if err != nil {
  135764. return graphql.Null
  135765. }
  135766. ctx = graphql.WithFieldContext(ctx, fc)
  135767. defer func() {
  135768. if r := recover(); r != nil {
  135769. ec.Error(ctx, ec.Recover(ctx, r))
  135770. ret = graphql.Null
  135771. }
  135772. }()
  135773. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  135774. ctx = rctx // use context from middleware stack in children
  135775. return obj.Brand, nil
  135776. })
  135777. if err != nil {
  135778. ec.Error(ctx, err)
  135779. return graphql.Null
  135780. }
  135781. if resTmp == nil {
  135782. if !graphql.HasFieldError(ctx, fc) {
  135783. ec.Errorf(ctx, "must not be null")
  135784. }
  135785. return graphql.Null
  135786. }
  135787. res := resTmp.(string)
  135788. fc.Result = res
  135789. return ec.marshalNString2string(ctx, field.Selections, res)
  135790. }
  135791. func (ec *executionContext) fieldContext_VaultCreditCard_brand(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  135792. fc = &graphql.FieldContext{
  135793. Object: "VaultCreditCard",
  135794. Field: field,
  135795. IsMethod: false,
  135796. IsResolver: false,
  135797. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  135798. return nil, errors.New("field of type String does not have child fields")
  135799. },
  135800. }
  135801. return fc, nil
  135802. }
  135803. func (ec *executionContext) _VaultCreditCard_expired(ctx context.Context, field graphql.CollectedField, obj *VaultCreditCard) (ret graphql.Marshaler) {
  135804. fc, err := ec.fieldContext_VaultCreditCard_expired(ctx, field)
  135805. if err != nil {
  135806. return graphql.Null
  135807. }
  135808. ctx = graphql.WithFieldContext(ctx, fc)
  135809. defer func() {
  135810. if r := recover(); r != nil {
  135811. ec.Error(ctx, ec.Recover(ctx, r))
  135812. ret = graphql.Null
  135813. }
  135814. }()
  135815. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  135816. ctx = rctx // use context from middleware stack in children
  135817. return obj.Expired, nil
  135818. })
  135819. if err != nil {
  135820. ec.Error(ctx, err)
  135821. return graphql.Null
  135822. }
  135823. if resTmp == nil {
  135824. if !graphql.HasFieldError(ctx, fc) {
  135825. ec.Errorf(ctx, "must not be null")
  135826. }
  135827. return graphql.Null
  135828. }
  135829. res := resTmp.(bool)
  135830. fc.Result = res
  135831. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  135832. }
  135833. func (ec *executionContext) fieldContext_VaultCreditCard_expired(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  135834. fc = &graphql.FieldContext{
  135835. Object: "VaultCreditCard",
  135836. Field: field,
  135837. IsMethod: false,
  135838. IsResolver: false,
  135839. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  135840. return nil, errors.New("field of type Boolean does not have child fields")
  135841. },
  135842. }
  135843. return fc, nil
  135844. }
  135845. func (ec *executionContext) _VaultCreditCard_expiryMonth(ctx context.Context, field graphql.CollectedField, obj *VaultCreditCard) (ret graphql.Marshaler) {
  135846. fc, err := ec.fieldContext_VaultCreditCard_expiryMonth(ctx, field)
  135847. if err != nil {
  135848. return graphql.Null
  135849. }
  135850. ctx = graphql.WithFieldContext(ctx, fc)
  135851. defer func() {
  135852. if r := recover(); r != nil {
  135853. ec.Error(ctx, ec.Recover(ctx, r))
  135854. ret = graphql.Null
  135855. }
  135856. }()
  135857. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  135858. ctx = rctx // use context from middleware stack in children
  135859. return obj.ExpiryMonth, nil
  135860. })
  135861. if err != nil {
  135862. ec.Error(ctx, err)
  135863. return graphql.Null
  135864. }
  135865. if resTmp == nil {
  135866. if !graphql.HasFieldError(ctx, fc) {
  135867. ec.Errorf(ctx, "must not be null")
  135868. }
  135869. return graphql.Null
  135870. }
  135871. res := resTmp.(int)
  135872. fc.Result = res
  135873. return ec.marshalNInt2int(ctx, field.Selections, res)
  135874. }
  135875. func (ec *executionContext) fieldContext_VaultCreditCard_expiryMonth(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  135876. fc = &graphql.FieldContext{
  135877. Object: "VaultCreditCard",
  135878. Field: field,
  135879. IsMethod: false,
  135880. IsResolver: false,
  135881. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  135882. return nil, errors.New("field of type Int does not have child fields")
  135883. },
  135884. }
  135885. return fc, nil
  135886. }
  135887. func (ec *executionContext) _VaultCreditCard_expiryYear(ctx context.Context, field graphql.CollectedField, obj *VaultCreditCard) (ret graphql.Marshaler) {
  135888. fc, err := ec.fieldContext_VaultCreditCard_expiryYear(ctx, field)
  135889. if err != nil {
  135890. return graphql.Null
  135891. }
  135892. ctx = graphql.WithFieldContext(ctx, fc)
  135893. defer func() {
  135894. if r := recover(); r != nil {
  135895. ec.Error(ctx, ec.Recover(ctx, r))
  135896. ret = graphql.Null
  135897. }
  135898. }()
  135899. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  135900. ctx = rctx // use context from middleware stack in children
  135901. return obj.ExpiryYear, nil
  135902. })
  135903. if err != nil {
  135904. ec.Error(ctx, err)
  135905. return graphql.Null
  135906. }
  135907. if resTmp == nil {
  135908. if !graphql.HasFieldError(ctx, fc) {
  135909. ec.Errorf(ctx, "must not be null")
  135910. }
  135911. return graphql.Null
  135912. }
  135913. res := resTmp.(int)
  135914. fc.Result = res
  135915. return ec.marshalNInt2int(ctx, field.Selections, res)
  135916. }
  135917. func (ec *executionContext) fieldContext_VaultCreditCard_expiryYear(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  135918. fc = &graphql.FieldContext{
  135919. Object: "VaultCreditCard",
  135920. Field: field,
  135921. IsMethod: false,
  135922. IsResolver: false,
  135923. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  135924. return nil, errors.New("field of type Int does not have child fields")
  135925. },
  135926. }
  135927. return fc, nil
  135928. }
  135929. func (ec *executionContext) _VaultCreditCard_lastDigits(ctx context.Context, field graphql.CollectedField, obj *VaultCreditCard) (ret graphql.Marshaler) {
  135930. fc, err := ec.fieldContext_VaultCreditCard_lastDigits(ctx, field)
  135931. if err != nil {
  135932. return graphql.Null
  135933. }
  135934. ctx = graphql.WithFieldContext(ctx, fc)
  135935. defer func() {
  135936. if r := recover(); r != nil {
  135937. ec.Error(ctx, ec.Recover(ctx, r))
  135938. ret = graphql.Null
  135939. }
  135940. }()
  135941. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  135942. ctx = rctx // use context from middleware stack in children
  135943. return obj.LastDigits, nil
  135944. })
  135945. if err != nil {
  135946. ec.Error(ctx, err)
  135947. return graphql.Null
  135948. }
  135949. if resTmp == nil {
  135950. if !graphql.HasFieldError(ctx, fc) {
  135951. ec.Errorf(ctx, "must not be null")
  135952. }
  135953. return graphql.Null
  135954. }
  135955. res := resTmp.(string)
  135956. fc.Result = res
  135957. return ec.marshalNString2string(ctx, field.Selections, res)
  135958. }
  135959. func (ec *executionContext) fieldContext_VaultCreditCard_lastDigits(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  135960. fc = &graphql.FieldContext{
  135961. Object: "VaultCreditCard",
  135962. Field: field,
  135963. IsMethod: false,
  135964. IsResolver: false,
  135965. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  135966. return nil, errors.New("field of type String does not have child fields")
  135967. },
  135968. }
  135969. return fc, nil
  135970. }
  135971. func (ec *executionContext) _VaultCreditCard_name(ctx context.Context, field graphql.CollectedField, obj *VaultCreditCard) (ret graphql.Marshaler) {
  135972. fc, err := ec.fieldContext_VaultCreditCard_name(ctx, field)
  135973. if err != nil {
  135974. return graphql.Null
  135975. }
  135976. ctx = graphql.WithFieldContext(ctx, fc)
  135977. defer func() {
  135978. if r := recover(); r != nil {
  135979. ec.Error(ctx, ec.Recover(ctx, r))
  135980. ret = graphql.Null
  135981. }
  135982. }()
  135983. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  135984. ctx = rctx // use context from middleware stack in children
  135985. return obj.Name, nil
  135986. })
  135987. if err != nil {
  135988. ec.Error(ctx, err)
  135989. return graphql.Null
  135990. }
  135991. if resTmp == nil {
  135992. if !graphql.HasFieldError(ctx, fc) {
  135993. ec.Errorf(ctx, "must not be null")
  135994. }
  135995. return graphql.Null
  135996. }
  135997. res := resTmp.(string)
  135998. fc.Result = res
  135999. return ec.marshalNString2string(ctx, field.Selections, res)
  136000. }
  136001. func (ec *executionContext) fieldContext_VaultCreditCard_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  136002. fc = &graphql.FieldContext{
  136003. Object: "VaultCreditCard",
  136004. Field: field,
  136005. IsMethod: false,
  136006. IsResolver: false,
  136007. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  136008. return nil, errors.New("field of type String does not have child fields")
  136009. },
  136010. }
  136011. return fc, nil
  136012. }
  136013. func (ec *executionContext) _VaultPaypalBillingAgreement_inactive(ctx context.Context, field graphql.CollectedField, obj *VaultPaypalBillingAgreement) (ret graphql.Marshaler) {
  136014. fc, err := ec.fieldContext_VaultPaypalBillingAgreement_inactive(ctx, field)
  136015. if err != nil {
  136016. return graphql.Null
  136017. }
  136018. ctx = graphql.WithFieldContext(ctx, fc)
  136019. defer func() {
  136020. if r := recover(); r != nil {
  136021. ec.Error(ctx, ec.Recover(ctx, r))
  136022. ret = graphql.Null
  136023. }
  136024. }()
  136025. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  136026. ctx = rctx // use context from middleware stack in children
  136027. return obj.Inactive, nil
  136028. })
  136029. if err != nil {
  136030. ec.Error(ctx, err)
  136031. return graphql.Null
  136032. }
  136033. if resTmp == nil {
  136034. if !graphql.HasFieldError(ctx, fc) {
  136035. ec.Errorf(ctx, "must not be null")
  136036. }
  136037. return graphql.Null
  136038. }
  136039. res := resTmp.(bool)
  136040. fc.Result = res
  136041. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  136042. }
  136043. func (ec *executionContext) fieldContext_VaultPaypalBillingAgreement_inactive(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  136044. fc = &graphql.FieldContext{
  136045. Object: "VaultPaypalBillingAgreement",
  136046. Field: field,
  136047. IsMethod: false,
  136048. IsResolver: false,
  136049. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  136050. return nil, errors.New("field of type Boolean does not have child fields")
  136051. },
  136052. }
  136053. return fc, nil
  136054. }
  136055. func (ec *executionContext) _VaultPaypalBillingAgreement_name(ctx context.Context, field graphql.CollectedField, obj *VaultPaypalBillingAgreement) (ret graphql.Marshaler) {
  136056. fc, err := ec.fieldContext_VaultPaypalBillingAgreement_name(ctx, field)
  136057. if err != nil {
  136058. return graphql.Null
  136059. }
  136060. ctx = graphql.WithFieldContext(ctx, fc)
  136061. defer func() {
  136062. if r := recover(); r != nil {
  136063. ec.Error(ctx, ec.Recover(ctx, r))
  136064. ret = graphql.Null
  136065. }
  136066. }()
  136067. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  136068. ctx = rctx // use context from middleware stack in children
  136069. return obj.Name, nil
  136070. })
  136071. if err != nil {
  136072. ec.Error(ctx, err)
  136073. return graphql.Null
  136074. }
  136075. if resTmp == nil {
  136076. if !graphql.HasFieldError(ctx, fc) {
  136077. ec.Errorf(ctx, "must not be null")
  136078. }
  136079. return graphql.Null
  136080. }
  136081. res := resTmp.(string)
  136082. fc.Result = res
  136083. return ec.marshalNString2string(ctx, field.Selections, res)
  136084. }
  136085. func (ec *executionContext) fieldContext_VaultPaypalBillingAgreement_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  136086. fc = &graphql.FieldContext{
  136087. Object: "VaultPaypalBillingAgreement",
  136088. Field: field,
  136089. IsMethod: false,
  136090. IsResolver: false,
  136091. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  136092. return nil, errors.New("field of type String does not have child fields")
  136093. },
  136094. }
  136095. return fc, nil
  136096. }
  136097. func (ec *executionContext) _VaultPaypalBillingAgreement_paypalAccountEmail(ctx context.Context, field graphql.CollectedField, obj *VaultPaypalBillingAgreement) (ret graphql.Marshaler) {
  136098. fc, err := ec.fieldContext_VaultPaypalBillingAgreement_paypalAccountEmail(ctx, field)
  136099. if err != nil {
  136100. return graphql.Null
  136101. }
  136102. ctx = graphql.WithFieldContext(ctx, fc)
  136103. defer func() {
  136104. if r := recover(); r != nil {
  136105. ec.Error(ctx, ec.Recover(ctx, r))
  136106. ret = graphql.Null
  136107. }
  136108. }()
  136109. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  136110. ctx = rctx // use context from middleware stack in children
  136111. return obj.PaypalAccountEmail, nil
  136112. })
  136113. if err != nil {
  136114. ec.Error(ctx, err)
  136115. return graphql.Null
  136116. }
  136117. if resTmp == nil {
  136118. if !graphql.HasFieldError(ctx, fc) {
  136119. ec.Errorf(ctx, "must not be null")
  136120. }
  136121. return graphql.Null
  136122. }
  136123. res := resTmp.(string)
  136124. fc.Result = res
  136125. return ec.marshalNString2string(ctx, field.Selections, res)
  136126. }
  136127. func (ec *executionContext) fieldContext_VaultPaypalBillingAgreement_paypalAccountEmail(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  136128. fc = &graphql.FieldContext{
  136129. Object: "VaultPaypalBillingAgreement",
  136130. Field: field,
  136131. IsMethod: false,
  136132. IsResolver: false,
  136133. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  136134. return nil, errors.New("field of type String does not have child fields")
  136135. },
  136136. }
  136137. return fc, nil
  136138. }
  136139. func (ec *executionContext) _Video_alt(ctx context.Context, field graphql.CollectedField, obj *Video) (ret graphql.Marshaler) {
  136140. fc, err := ec.fieldContext_Video_alt(ctx, field)
  136141. if err != nil {
  136142. return graphql.Null
  136143. }
  136144. ctx = graphql.WithFieldContext(ctx, fc)
  136145. defer func() {
  136146. if r := recover(); r != nil {
  136147. ec.Error(ctx, ec.Recover(ctx, r))
  136148. ret = graphql.Null
  136149. }
  136150. }()
  136151. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  136152. ctx = rctx // use context from middleware stack in children
  136153. return obj.Alt, nil
  136154. })
  136155. if err != nil {
  136156. ec.Error(ctx, err)
  136157. return graphql.Null
  136158. }
  136159. if resTmp == nil {
  136160. return graphql.Null
  136161. }
  136162. res := resTmp.(*string)
  136163. fc.Result = res
  136164. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  136165. }
  136166. func (ec *executionContext) fieldContext_Video_alt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  136167. fc = &graphql.FieldContext{
  136168. Object: "Video",
  136169. Field: field,
  136170. IsMethod: false,
  136171. IsResolver: false,
  136172. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  136173. return nil, errors.New("field of type String does not have child fields")
  136174. },
  136175. }
  136176. return fc, nil
  136177. }
  136178. func (ec *executionContext) _Video_createdAt(ctx context.Context, field graphql.CollectedField, obj *Video) (ret graphql.Marshaler) {
  136179. fc, err := ec.fieldContext_Video_createdAt(ctx, field)
  136180. if err != nil {
  136181. return graphql.Null
  136182. }
  136183. ctx = graphql.WithFieldContext(ctx, fc)
  136184. defer func() {
  136185. if r := recover(); r != nil {
  136186. ec.Error(ctx, ec.Recover(ctx, r))
  136187. ret = graphql.Null
  136188. }
  136189. }()
  136190. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  136191. ctx = rctx // use context from middleware stack in children
  136192. return obj.CreatedAt, nil
  136193. })
  136194. if err != nil {
  136195. ec.Error(ctx, err)
  136196. return graphql.Null
  136197. }
  136198. if resTmp == nil {
  136199. if !graphql.HasFieldError(ctx, fc) {
  136200. ec.Errorf(ctx, "must not be null")
  136201. }
  136202. return graphql.Null
  136203. }
  136204. res := resTmp.(string)
  136205. fc.Result = res
  136206. return ec.marshalNDateTime2string(ctx, field.Selections, res)
  136207. }
  136208. func (ec *executionContext) fieldContext_Video_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  136209. fc = &graphql.FieldContext{
  136210. Object: "Video",
  136211. Field: field,
  136212. IsMethod: false,
  136213. IsResolver: false,
  136214. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  136215. return nil, errors.New("field of type DateTime does not have child fields")
  136216. },
  136217. }
  136218. return fc, nil
  136219. }
  136220. func (ec *executionContext) _Video_duration(ctx context.Context, field graphql.CollectedField, obj *Video) (ret graphql.Marshaler) {
  136221. fc, err := ec.fieldContext_Video_duration(ctx, field)
  136222. if err != nil {
  136223. return graphql.Null
  136224. }
  136225. ctx = graphql.WithFieldContext(ctx, fc)
  136226. defer func() {
  136227. if r := recover(); r != nil {
  136228. ec.Error(ctx, ec.Recover(ctx, r))
  136229. ret = graphql.Null
  136230. }
  136231. }()
  136232. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  136233. ctx = rctx // use context from middleware stack in children
  136234. return obj.Duration, nil
  136235. })
  136236. if err != nil {
  136237. ec.Error(ctx, err)
  136238. return graphql.Null
  136239. }
  136240. if resTmp == nil {
  136241. return graphql.Null
  136242. }
  136243. res := resTmp.(*int)
  136244. fc.Result = res
  136245. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  136246. }
  136247. func (ec *executionContext) fieldContext_Video_duration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  136248. fc = &graphql.FieldContext{
  136249. Object: "Video",
  136250. Field: field,
  136251. IsMethod: false,
  136252. IsResolver: false,
  136253. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  136254. return nil, errors.New("field of type Int does not have child fields")
  136255. },
  136256. }
  136257. return fc, nil
  136258. }
  136259. func (ec *executionContext) _Video_fileErrors(ctx context.Context, field graphql.CollectedField, obj *Video) (ret graphql.Marshaler) {
  136260. fc, err := ec.fieldContext_Video_fileErrors(ctx, field)
  136261. if err != nil {
  136262. return graphql.Null
  136263. }
  136264. ctx = graphql.WithFieldContext(ctx, fc)
  136265. defer func() {
  136266. if r := recover(); r != nil {
  136267. ec.Error(ctx, ec.Recover(ctx, r))
  136268. ret = graphql.Null
  136269. }
  136270. }()
  136271. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  136272. ctx = rctx // use context from middleware stack in children
  136273. return obj.FileErrors, nil
  136274. })
  136275. if err != nil {
  136276. ec.Error(ctx, err)
  136277. return graphql.Null
  136278. }
  136279. if resTmp == nil {
  136280. if !graphql.HasFieldError(ctx, fc) {
  136281. ec.Errorf(ctx, "must not be null")
  136282. }
  136283. return graphql.Null
  136284. }
  136285. res := resTmp.([]*FileError)
  136286. fc.Result = res
  136287. return ec.marshalNFileError2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFileErrorᚄ(ctx, field.Selections, res)
  136288. }
  136289. func (ec *executionContext) fieldContext_Video_fileErrors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  136290. fc = &graphql.FieldContext{
  136291. Object: "Video",
  136292. Field: field,
  136293. IsMethod: false,
  136294. IsResolver: false,
  136295. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  136296. switch field.Name {
  136297. case "code":
  136298. return ec.fieldContext_FileError_code(ctx, field)
  136299. case "details":
  136300. return ec.fieldContext_FileError_details(ctx, field)
  136301. case "message":
  136302. return ec.fieldContext_FileError_message(ctx, field)
  136303. }
  136304. return nil, fmt.Errorf("no field named %q was found under type FileError", field.Name)
  136305. },
  136306. }
  136307. return fc, nil
  136308. }
  136309. func (ec *executionContext) _Video_fileStatus(ctx context.Context, field graphql.CollectedField, obj *Video) (ret graphql.Marshaler) {
  136310. fc, err := ec.fieldContext_Video_fileStatus(ctx, field)
  136311. if err != nil {
  136312. return graphql.Null
  136313. }
  136314. ctx = graphql.WithFieldContext(ctx, fc)
  136315. defer func() {
  136316. if r := recover(); r != nil {
  136317. ec.Error(ctx, ec.Recover(ctx, r))
  136318. ret = graphql.Null
  136319. }
  136320. }()
  136321. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  136322. ctx = rctx // use context from middleware stack in children
  136323. return obj.FileStatus, nil
  136324. })
  136325. if err != nil {
  136326. ec.Error(ctx, err)
  136327. return graphql.Null
  136328. }
  136329. if resTmp == nil {
  136330. if !graphql.HasFieldError(ctx, fc) {
  136331. ec.Errorf(ctx, "must not be null")
  136332. }
  136333. return graphql.Null
  136334. }
  136335. res := resTmp.(FileStatus)
  136336. fc.Result = res
  136337. return ec.marshalNFileStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFileStatus(ctx, field.Selections, res)
  136338. }
  136339. func (ec *executionContext) fieldContext_Video_fileStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  136340. fc = &graphql.FieldContext{
  136341. Object: "Video",
  136342. Field: field,
  136343. IsMethod: false,
  136344. IsResolver: false,
  136345. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  136346. return nil, errors.New("field of type FileStatus does not have child fields")
  136347. },
  136348. }
  136349. return fc, nil
  136350. }
  136351. func (ec *executionContext) _Video_filename(ctx context.Context, field graphql.CollectedField, obj *Video) (ret graphql.Marshaler) {
  136352. fc, err := ec.fieldContext_Video_filename(ctx, field)
  136353. if err != nil {
  136354. return graphql.Null
  136355. }
  136356. ctx = graphql.WithFieldContext(ctx, fc)
  136357. defer func() {
  136358. if r := recover(); r != nil {
  136359. ec.Error(ctx, ec.Recover(ctx, r))
  136360. ret = graphql.Null
  136361. }
  136362. }()
  136363. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  136364. ctx = rctx // use context from middleware stack in children
  136365. return obj.Filename, nil
  136366. })
  136367. if err != nil {
  136368. ec.Error(ctx, err)
  136369. return graphql.Null
  136370. }
  136371. if resTmp == nil {
  136372. if !graphql.HasFieldError(ctx, fc) {
  136373. ec.Errorf(ctx, "must not be null")
  136374. }
  136375. return graphql.Null
  136376. }
  136377. res := resTmp.(string)
  136378. fc.Result = res
  136379. return ec.marshalNString2string(ctx, field.Selections, res)
  136380. }
  136381. func (ec *executionContext) fieldContext_Video_filename(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  136382. fc = &graphql.FieldContext{
  136383. Object: "Video",
  136384. Field: field,
  136385. IsMethod: false,
  136386. IsResolver: false,
  136387. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  136388. return nil, errors.New("field of type String does not have child fields")
  136389. },
  136390. }
  136391. return fc, nil
  136392. }
  136393. func (ec *executionContext) _Video_id(ctx context.Context, field graphql.CollectedField, obj *Video) (ret graphql.Marshaler) {
  136394. fc, err := ec.fieldContext_Video_id(ctx, field)
  136395. if err != nil {
  136396. return graphql.Null
  136397. }
  136398. ctx = graphql.WithFieldContext(ctx, fc)
  136399. defer func() {
  136400. if r := recover(); r != nil {
  136401. ec.Error(ctx, ec.Recover(ctx, r))
  136402. ret = graphql.Null
  136403. }
  136404. }()
  136405. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  136406. ctx = rctx // use context from middleware stack in children
  136407. return obj.ID, nil
  136408. })
  136409. if err != nil {
  136410. ec.Error(ctx, err)
  136411. return graphql.Null
  136412. }
  136413. if resTmp == nil {
  136414. if !graphql.HasFieldError(ctx, fc) {
  136415. ec.Errorf(ctx, "must not be null")
  136416. }
  136417. return graphql.Null
  136418. }
  136419. res := resTmp.(string)
  136420. fc.Result = res
  136421. return ec.marshalNID2string(ctx, field.Selections, res)
  136422. }
  136423. func (ec *executionContext) fieldContext_Video_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  136424. fc = &graphql.FieldContext{
  136425. Object: "Video",
  136426. Field: field,
  136427. IsMethod: false,
  136428. IsResolver: false,
  136429. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  136430. return nil, errors.New("field of type ID does not have child fields")
  136431. },
  136432. }
  136433. return fc, nil
  136434. }
  136435. func (ec *executionContext) _Video_mediaContentType(ctx context.Context, field graphql.CollectedField, obj *Video) (ret graphql.Marshaler) {
  136436. fc, err := ec.fieldContext_Video_mediaContentType(ctx, field)
  136437. if err != nil {
  136438. return graphql.Null
  136439. }
  136440. ctx = graphql.WithFieldContext(ctx, fc)
  136441. defer func() {
  136442. if r := recover(); r != nil {
  136443. ec.Error(ctx, ec.Recover(ctx, r))
  136444. ret = graphql.Null
  136445. }
  136446. }()
  136447. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  136448. ctx = rctx // use context from middleware stack in children
  136449. return obj.MediaContentType, nil
  136450. })
  136451. if err != nil {
  136452. ec.Error(ctx, err)
  136453. return graphql.Null
  136454. }
  136455. if resTmp == nil {
  136456. if !graphql.HasFieldError(ctx, fc) {
  136457. ec.Errorf(ctx, "must not be null")
  136458. }
  136459. return graphql.Null
  136460. }
  136461. res := resTmp.(MediaContentType)
  136462. fc.Result = res
  136463. return ec.marshalNMediaContentType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaContentType(ctx, field.Selections, res)
  136464. }
  136465. func (ec *executionContext) fieldContext_Video_mediaContentType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  136466. fc = &graphql.FieldContext{
  136467. Object: "Video",
  136468. Field: field,
  136469. IsMethod: false,
  136470. IsResolver: false,
  136471. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  136472. return nil, errors.New("field of type MediaContentType does not have child fields")
  136473. },
  136474. }
  136475. return fc, nil
  136476. }
  136477. func (ec *executionContext) _Video_mediaErrors(ctx context.Context, field graphql.CollectedField, obj *Video) (ret graphql.Marshaler) {
  136478. fc, err := ec.fieldContext_Video_mediaErrors(ctx, field)
  136479. if err != nil {
  136480. return graphql.Null
  136481. }
  136482. ctx = graphql.WithFieldContext(ctx, fc)
  136483. defer func() {
  136484. if r := recover(); r != nil {
  136485. ec.Error(ctx, ec.Recover(ctx, r))
  136486. ret = graphql.Null
  136487. }
  136488. }()
  136489. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  136490. ctx = rctx // use context from middleware stack in children
  136491. return obj.MediaErrors, nil
  136492. })
  136493. if err != nil {
  136494. ec.Error(ctx, err)
  136495. return graphql.Null
  136496. }
  136497. if resTmp == nil {
  136498. if !graphql.HasFieldError(ctx, fc) {
  136499. ec.Errorf(ctx, "must not be null")
  136500. }
  136501. return graphql.Null
  136502. }
  136503. res := resTmp.([]*MediaError)
  136504. fc.Result = res
  136505. return ec.marshalNMediaError2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaErrorᚄ(ctx, field.Selections, res)
  136506. }
  136507. func (ec *executionContext) fieldContext_Video_mediaErrors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  136508. fc = &graphql.FieldContext{
  136509. Object: "Video",
  136510. Field: field,
  136511. IsMethod: false,
  136512. IsResolver: false,
  136513. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  136514. switch field.Name {
  136515. case "code":
  136516. return ec.fieldContext_MediaError_code(ctx, field)
  136517. case "details":
  136518. return ec.fieldContext_MediaError_details(ctx, field)
  136519. case "message":
  136520. return ec.fieldContext_MediaError_message(ctx, field)
  136521. }
  136522. return nil, fmt.Errorf("no field named %q was found under type MediaError", field.Name)
  136523. },
  136524. }
  136525. return fc, nil
  136526. }
  136527. func (ec *executionContext) _Video_mediaWarnings(ctx context.Context, field graphql.CollectedField, obj *Video) (ret graphql.Marshaler) {
  136528. fc, err := ec.fieldContext_Video_mediaWarnings(ctx, field)
  136529. if err != nil {
  136530. return graphql.Null
  136531. }
  136532. ctx = graphql.WithFieldContext(ctx, fc)
  136533. defer func() {
  136534. if r := recover(); r != nil {
  136535. ec.Error(ctx, ec.Recover(ctx, r))
  136536. ret = graphql.Null
  136537. }
  136538. }()
  136539. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  136540. ctx = rctx // use context from middleware stack in children
  136541. return obj.MediaWarnings, nil
  136542. })
  136543. if err != nil {
  136544. ec.Error(ctx, err)
  136545. return graphql.Null
  136546. }
  136547. if resTmp == nil {
  136548. if !graphql.HasFieldError(ctx, fc) {
  136549. ec.Errorf(ctx, "must not be null")
  136550. }
  136551. return graphql.Null
  136552. }
  136553. res := resTmp.([]*MediaWarning)
  136554. fc.Result = res
  136555. return ec.marshalNMediaWarning2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaWarningᚄ(ctx, field.Selections, res)
  136556. }
  136557. func (ec *executionContext) fieldContext_Video_mediaWarnings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  136558. fc = &graphql.FieldContext{
  136559. Object: "Video",
  136560. Field: field,
  136561. IsMethod: false,
  136562. IsResolver: false,
  136563. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  136564. switch field.Name {
  136565. case "code":
  136566. return ec.fieldContext_MediaWarning_code(ctx, field)
  136567. case "message":
  136568. return ec.fieldContext_MediaWarning_message(ctx, field)
  136569. }
  136570. return nil, fmt.Errorf("no field named %q was found under type MediaWarning", field.Name)
  136571. },
  136572. }
  136573. return fc, nil
  136574. }
  136575. func (ec *executionContext) _Video_originalSource(ctx context.Context, field graphql.CollectedField, obj *Video) (ret graphql.Marshaler) {
  136576. fc, err := ec.fieldContext_Video_originalSource(ctx, field)
  136577. if err != nil {
  136578. return graphql.Null
  136579. }
  136580. ctx = graphql.WithFieldContext(ctx, fc)
  136581. defer func() {
  136582. if r := recover(); r != nil {
  136583. ec.Error(ctx, ec.Recover(ctx, r))
  136584. ret = graphql.Null
  136585. }
  136586. }()
  136587. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  136588. ctx = rctx // use context from middleware stack in children
  136589. return obj.OriginalSource, nil
  136590. })
  136591. if err != nil {
  136592. ec.Error(ctx, err)
  136593. return graphql.Null
  136594. }
  136595. if resTmp == nil {
  136596. return graphql.Null
  136597. }
  136598. res := resTmp.(*VideoSource)
  136599. fc.Result = res
  136600. return ec.marshalOVideoSource2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐVideoSource(ctx, field.Selections, res)
  136601. }
  136602. func (ec *executionContext) fieldContext_Video_originalSource(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  136603. fc = &graphql.FieldContext{
  136604. Object: "Video",
  136605. Field: field,
  136606. IsMethod: false,
  136607. IsResolver: false,
  136608. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  136609. switch field.Name {
  136610. case "fileSize":
  136611. return ec.fieldContext_VideoSource_fileSize(ctx, field)
  136612. case "format":
  136613. return ec.fieldContext_VideoSource_format(ctx, field)
  136614. case "height":
  136615. return ec.fieldContext_VideoSource_height(ctx, field)
  136616. case "mimeType":
  136617. return ec.fieldContext_VideoSource_mimeType(ctx, field)
  136618. case "url":
  136619. return ec.fieldContext_VideoSource_url(ctx, field)
  136620. case "width":
  136621. return ec.fieldContext_VideoSource_width(ctx, field)
  136622. }
  136623. return nil, fmt.Errorf("no field named %q was found under type VideoSource", field.Name)
  136624. },
  136625. }
  136626. return fc, nil
  136627. }
  136628. func (ec *executionContext) _Video_preview(ctx context.Context, field graphql.CollectedField, obj *Video) (ret graphql.Marshaler) {
  136629. fc, err := ec.fieldContext_Video_preview(ctx, field)
  136630. if err != nil {
  136631. return graphql.Null
  136632. }
  136633. ctx = graphql.WithFieldContext(ctx, fc)
  136634. defer func() {
  136635. if r := recover(); r != nil {
  136636. ec.Error(ctx, ec.Recover(ctx, r))
  136637. ret = graphql.Null
  136638. }
  136639. }()
  136640. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  136641. ctx = rctx // use context from middleware stack in children
  136642. return obj.Preview, nil
  136643. })
  136644. if err != nil {
  136645. ec.Error(ctx, err)
  136646. return graphql.Null
  136647. }
  136648. if resTmp == nil {
  136649. return graphql.Null
  136650. }
  136651. res := resTmp.(*MediaPreviewImage)
  136652. fc.Result = res
  136653. return ec.marshalOMediaPreviewImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaPreviewImage(ctx, field.Selections, res)
  136654. }
  136655. func (ec *executionContext) fieldContext_Video_preview(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  136656. fc = &graphql.FieldContext{
  136657. Object: "Video",
  136658. Field: field,
  136659. IsMethod: false,
  136660. IsResolver: false,
  136661. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  136662. switch field.Name {
  136663. case "image":
  136664. return ec.fieldContext_MediaPreviewImage_image(ctx, field)
  136665. case "status":
  136666. return ec.fieldContext_MediaPreviewImage_status(ctx, field)
  136667. }
  136668. return nil, fmt.Errorf("no field named %q was found under type MediaPreviewImage", field.Name)
  136669. },
  136670. }
  136671. return fc, nil
  136672. }
  136673. func (ec *executionContext) _Video_sources(ctx context.Context, field graphql.CollectedField, obj *Video) (ret graphql.Marshaler) {
  136674. fc, err := ec.fieldContext_Video_sources(ctx, field)
  136675. if err != nil {
  136676. return graphql.Null
  136677. }
  136678. ctx = graphql.WithFieldContext(ctx, fc)
  136679. defer func() {
  136680. if r := recover(); r != nil {
  136681. ec.Error(ctx, ec.Recover(ctx, r))
  136682. ret = graphql.Null
  136683. }
  136684. }()
  136685. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  136686. ctx = rctx // use context from middleware stack in children
  136687. return obj.Sources, nil
  136688. })
  136689. if err != nil {
  136690. ec.Error(ctx, err)
  136691. return graphql.Null
  136692. }
  136693. if resTmp == nil {
  136694. if !graphql.HasFieldError(ctx, fc) {
  136695. ec.Errorf(ctx, "must not be null")
  136696. }
  136697. return graphql.Null
  136698. }
  136699. res := resTmp.([]*VideoSource)
  136700. fc.Result = res
  136701. return ec.marshalNVideoSource2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐVideoSourceᚄ(ctx, field.Selections, res)
  136702. }
  136703. func (ec *executionContext) fieldContext_Video_sources(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  136704. fc = &graphql.FieldContext{
  136705. Object: "Video",
  136706. Field: field,
  136707. IsMethod: false,
  136708. IsResolver: false,
  136709. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  136710. switch field.Name {
  136711. case "fileSize":
  136712. return ec.fieldContext_VideoSource_fileSize(ctx, field)
  136713. case "format":
  136714. return ec.fieldContext_VideoSource_format(ctx, field)
  136715. case "height":
  136716. return ec.fieldContext_VideoSource_height(ctx, field)
  136717. case "mimeType":
  136718. return ec.fieldContext_VideoSource_mimeType(ctx, field)
  136719. case "url":
  136720. return ec.fieldContext_VideoSource_url(ctx, field)
  136721. case "width":
  136722. return ec.fieldContext_VideoSource_width(ctx, field)
  136723. }
  136724. return nil, fmt.Errorf("no field named %q was found under type VideoSource", field.Name)
  136725. },
  136726. }
  136727. return fc, nil
  136728. }
  136729. func (ec *executionContext) _Video_status(ctx context.Context, field graphql.CollectedField, obj *Video) (ret graphql.Marshaler) {
  136730. fc, err := ec.fieldContext_Video_status(ctx, field)
  136731. if err != nil {
  136732. return graphql.Null
  136733. }
  136734. ctx = graphql.WithFieldContext(ctx, fc)
  136735. defer func() {
  136736. if r := recover(); r != nil {
  136737. ec.Error(ctx, ec.Recover(ctx, r))
  136738. ret = graphql.Null
  136739. }
  136740. }()
  136741. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  136742. ctx = rctx // use context from middleware stack in children
  136743. return obj.Status, nil
  136744. })
  136745. if err != nil {
  136746. ec.Error(ctx, err)
  136747. return graphql.Null
  136748. }
  136749. if resTmp == nil {
  136750. if !graphql.HasFieldError(ctx, fc) {
  136751. ec.Errorf(ctx, "must not be null")
  136752. }
  136753. return graphql.Null
  136754. }
  136755. res := resTmp.(MediaStatus)
  136756. fc.Result = res
  136757. return ec.marshalNMediaStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaStatus(ctx, field.Selections, res)
  136758. }
  136759. func (ec *executionContext) fieldContext_Video_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  136760. fc = &graphql.FieldContext{
  136761. Object: "Video",
  136762. Field: field,
  136763. IsMethod: false,
  136764. IsResolver: false,
  136765. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  136766. return nil, errors.New("field of type MediaStatus does not have child fields")
  136767. },
  136768. }
  136769. return fc, nil
  136770. }
  136771. func (ec *executionContext) _VideoSource_fileSize(ctx context.Context, field graphql.CollectedField, obj *VideoSource) (ret graphql.Marshaler) {
  136772. fc, err := ec.fieldContext_VideoSource_fileSize(ctx, field)
  136773. if err != nil {
  136774. return graphql.Null
  136775. }
  136776. ctx = graphql.WithFieldContext(ctx, fc)
  136777. defer func() {
  136778. if r := recover(); r != nil {
  136779. ec.Error(ctx, ec.Recover(ctx, r))
  136780. ret = graphql.Null
  136781. }
  136782. }()
  136783. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  136784. ctx = rctx // use context from middleware stack in children
  136785. return obj.FileSize, nil
  136786. })
  136787. if err != nil {
  136788. ec.Error(ctx, err)
  136789. return graphql.Null
  136790. }
  136791. if resTmp == nil {
  136792. return graphql.Null
  136793. }
  136794. res := resTmp.(*int)
  136795. fc.Result = res
  136796. return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
  136797. }
  136798. func (ec *executionContext) fieldContext_VideoSource_fileSize(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  136799. fc = &graphql.FieldContext{
  136800. Object: "VideoSource",
  136801. Field: field,
  136802. IsMethod: false,
  136803. IsResolver: false,
  136804. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  136805. return nil, errors.New("field of type Int does not have child fields")
  136806. },
  136807. }
  136808. return fc, nil
  136809. }
  136810. func (ec *executionContext) _VideoSource_format(ctx context.Context, field graphql.CollectedField, obj *VideoSource) (ret graphql.Marshaler) {
  136811. fc, err := ec.fieldContext_VideoSource_format(ctx, field)
  136812. if err != nil {
  136813. return graphql.Null
  136814. }
  136815. ctx = graphql.WithFieldContext(ctx, fc)
  136816. defer func() {
  136817. if r := recover(); r != nil {
  136818. ec.Error(ctx, ec.Recover(ctx, r))
  136819. ret = graphql.Null
  136820. }
  136821. }()
  136822. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  136823. ctx = rctx // use context from middleware stack in children
  136824. return obj.Format, nil
  136825. })
  136826. if err != nil {
  136827. ec.Error(ctx, err)
  136828. return graphql.Null
  136829. }
  136830. if resTmp == nil {
  136831. if !graphql.HasFieldError(ctx, fc) {
  136832. ec.Errorf(ctx, "must not be null")
  136833. }
  136834. return graphql.Null
  136835. }
  136836. res := resTmp.(string)
  136837. fc.Result = res
  136838. return ec.marshalNString2string(ctx, field.Selections, res)
  136839. }
  136840. func (ec *executionContext) fieldContext_VideoSource_format(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  136841. fc = &graphql.FieldContext{
  136842. Object: "VideoSource",
  136843. Field: field,
  136844. IsMethod: false,
  136845. IsResolver: false,
  136846. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  136847. return nil, errors.New("field of type String does not have child fields")
  136848. },
  136849. }
  136850. return fc, nil
  136851. }
  136852. func (ec *executionContext) _VideoSource_height(ctx context.Context, field graphql.CollectedField, obj *VideoSource) (ret graphql.Marshaler) {
  136853. fc, err := ec.fieldContext_VideoSource_height(ctx, field)
  136854. if err != nil {
  136855. return graphql.Null
  136856. }
  136857. ctx = graphql.WithFieldContext(ctx, fc)
  136858. defer func() {
  136859. if r := recover(); r != nil {
  136860. ec.Error(ctx, ec.Recover(ctx, r))
  136861. ret = graphql.Null
  136862. }
  136863. }()
  136864. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  136865. ctx = rctx // use context from middleware stack in children
  136866. return obj.Height, nil
  136867. })
  136868. if err != nil {
  136869. ec.Error(ctx, err)
  136870. return graphql.Null
  136871. }
  136872. if resTmp == nil {
  136873. if !graphql.HasFieldError(ctx, fc) {
  136874. ec.Errorf(ctx, "must not be null")
  136875. }
  136876. return graphql.Null
  136877. }
  136878. res := resTmp.(int)
  136879. fc.Result = res
  136880. return ec.marshalNInt2int(ctx, field.Selections, res)
  136881. }
  136882. func (ec *executionContext) fieldContext_VideoSource_height(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  136883. fc = &graphql.FieldContext{
  136884. Object: "VideoSource",
  136885. Field: field,
  136886. IsMethod: false,
  136887. IsResolver: false,
  136888. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  136889. return nil, errors.New("field of type Int does not have child fields")
  136890. },
  136891. }
  136892. return fc, nil
  136893. }
  136894. func (ec *executionContext) _VideoSource_mimeType(ctx context.Context, field graphql.CollectedField, obj *VideoSource) (ret graphql.Marshaler) {
  136895. fc, err := ec.fieldContext_VideoSource_mimeType(ctx, field)
  136896. if err != nil {
  136897. return graphql.Null
  136898. }
  136899. ctx = graphql.WithFieldContext(ctx, fc)
  136900. defer func() {
  136901. if r := recover(); r != nil {
  136902. ec.Error(ctx, ec.Recover(ctx, r))
  136903. ret = graphql.Null
  136904. }
  136905. }()
  136906. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  136907. ctx = rctx // use context from middleware stack in children
  136908. return obj.MimeType, nil
  136909. })
  136910. if err != nil {
  136911. ec.Error(ctx, err)
  136912. return graphql.Null
  136913. }
  136914. if resTmp == nil {
  136915. if !graphql.HasFieldError(ctx, fc) {
  136916. ec.Errorf(ctx, "must not be null")
  136917. }
  136918. return graphql.Null
  136919. }
  136920. res := resTmp.(string)
  136921. fc.Result = res
  136922. return ec.marshalNString2string(ctx, field.Selections, res)
  136923. }
  136924. func (ec *executionContext) fieldContext_VideoSource_mimeType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  136925. fc = &graphql.FieldContext{
  136926. Object: "VideoSource",
  136927. Field: field,
  136928. IsMethod: false,
  136929. IsResolver: false,
  136930. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  136931. return nil, errors.New("field of type String does not have child fields")
  136932. },
  136933. }
  136934. return fc, nil
  136935. }
  136936. func (ec *executionContext) _VideoSource_url(ctx context.Context, field graphql.CollectedField, obj *VideoSource) (ret graphql.Marshaler) {
  136937. fc, err := ec.fieldContext_VideoSource_url(ctx, field)
  136938. if err != nil {
  136939. return graphql.Null
  136940. }
  136941. ctx = graphql.WithFieldContext(ctx, fc)
  136942. defer func() {
  136943. if r := recover(); r != nil {
  136944. ec.Error(ctx, ec.Recover(ctx, r))
  136945. ret = graphql.Null
  136946. }
  136947. }()
  136948. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  136949. ctx = rctx // use context from middleware stack in children
  136950. return obj.URL, nil
  136951. })
  136952. if err != nil {
  136953. ec.Error(ctx, err)
  136954. return graphql.Null
  136955. }
  136956. if resTmp == nil {
  136957. if !graphql.HasFieldError(ctx, fc) {
  136958. ec.Errorf(ctx, "must not be null")
  136959. }
  136960. return graphql.Null
  136961. }
  136962. res := resTmp.(string)
  136963. fc.Result = res
  136964. return ec.marshalNString2string(ctx, field.Selections, res)
  136965. }
  136966. func (ec *executionContext) fieldContext_VideoSource_url(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  136967. fc = &graphql.FieldContext{
  136968. Object: "VideoSource",
  136969. Field: field,
  136970. IsMethod: false,
  136971. IsResolver: false,
  136972. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  136973. return nil, errors.New("field of type String does not have child fields")
  136974. },
  136975. }
  136976. return fc, nil
  136977. }
  136978. func (ec *executionContext) _VideoSource_width(ctx context.Context, field graphql.CollectedField, obj *VideoSource) (ret graphql.Marshaler) {
  136979. fc, err := ec.fieldContext_VideoSource_width(ctx, field)
  136980. if err != nil {
  136981. return graphql.Null
  136982. }
  136983. ctx = graphql.WithFieldContext(ctx, fc)
  136984. defer func() {
  136985. if r := recover(); r != nil {
  136986. ec.Error(ctx, ec.Recover(ctx, r))
  136987. ret = graphql.Null
  136988. }
  136989. }()
  136990. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  136991. ctx = rctx // use context from middleware stack in children
  136992. return obj.Width, nil
  136993. })
  136994. if err != nil {
  136995. ec.Error(ctx, err)
  136996. return graphql.Null
  136997. }
  136998. if resTmp == nil {
  136999. if !graphql.HasFieldError(ctx, fc) {
  137000. ec.Errorf(ctx, "must not be null")
  137001. }
  137002. return graphql.Null
  137003. }
  137004. res := resTmp.(int)
  137005. fc.Result = res
  137006. return ec.marshalNInt2int(ctx, field.Selections, res)
  137007. }
  137008. func (ec *executionContext) fieldContext_VideoSource_width(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  137009. fc = &graphql.FieldContext{
  137010. Object: "VideoSource",
  137011. Field: field,
  137012. IsMethod: false,
  137013. IsResolver: false,
  137014. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  137015. return nil, errors.New("field of type Int does not have child fields")
  137016. },
  137017. }
  137018. return fc, nil
  137019. }
  137020. func (ec *executionContext) _Weight_unit(ctx context.Context, field graphql.CollectedField, obj *Weight) (ret graphql.Marshaler) {
  137021. fc, err := ec.fieldContext_Weight_unit(ctx, field)
  137022. if err != nil {
  137023. return graphql.Null
  137024. }
  137025. ctx = graphql.WithFieldContext(ctx, fc)
  137026. defer func() {
  137027. if r := recover(); r != nil {
  137028. ec.Error(ctx, ec.Recover(ctx, r))
  137029. ret = graphql.Null
  137030. }
  137031. }()
  137032. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  137033. ctx = rctx // use context from middleware stack in children
  137034. return obj.Unit, nil
  137035. })
  137036. if err != nil {
  137037. ec.Error(ctx, err)
  137038. return graphql.Null
  137039. }
  137040. if resTmp == nil {
  137041. if !graphql.HasFieldError(ctx, fc) {
  137042. ec.Errorf(ctx, "must not be null")
  137043. }
  137044. return graphql.Null
  137045. }
  137046. res := resTmp.(WeightUnit)
  137047. fc.Result = res
  137048. return ec.marshalNWeightUnit2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐWeightUnit(ctx, field.Selections, res)
  137049. }
  137050. func (ec *executionContext) fieldContext_Weight_unit(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  137051. fc = &graphql.FieldContext{
  137052. Object: "Weight",
  137053. Field: field,
  137054. IsMethod: false,
  137055. IsResolver: false,
  137056. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  137057. return nil, errors.New("field of type WeightUnit does not have child fields")
  137058. },
  137059. }
  137060. return fc, nil
  137061. }
  137062. func (ec *executionContext) _Weight_value(ctx context.Context, field graphql.CollectedField, obj *Weight) (ret graphql.Marshaler) {
  137063. fc, err := ec.fieldContext_Weight_value(ctx, field)
  137064. if err != nil {
  137065. return graphql.Null
  137066. }
  137067. ctx = graphql.WithFieldContext(ctx, fc)
  137068. defer func() {
  137069. if r := recover(); r != nil {
  137070. ec.Error(ctx, ec.Recover(ctx, r))
  137071. ret = graphql.Null
  137072. }
  137073. }()
  137074. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  137075. ctx = rctx // use context from middleware stack in children
  137076. return obj.Value, nil
  137077. })
  137078. if err != nil {
  137079. ec.Error(ctx, err)
  137080. return graphql.Null
  137081. }
  137082. if resTmp == nil {
  137083. if !graphql.HasFieldError(ctx, fc) {
  137084. ec.Errorf(ctx, "must not be null")
  137085. }
  137086. return graphql.Null
  137087. }
  137088. res := resTmp.(float64)
  137089. fc.Result = res
  137090. return ec.marshalNFloat2float64(ctx, field.Selections, res)
  137091. }
  137092. func (ec *executionContext) fieldContext_Weight_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  137093. fc = &graphql.FieldContext{
  137094. Object: "Weight",
  137095. Field: field,
  137096. IsMethod: false,
  137097. IsResolver: false,
  137098. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  137099. return nil, errors.New("field of type Float does not have child fields")
  137100. },
  137101. }
  137102. return fc, nil
  137103. }
  137104. func (ec *executionContext) __Service_sdl(ctx context.Context, field graphql.CollectedField, obj *fedruntime.Service) (ret graphql.Marshaler) {
  137105. fc, err := ec.fieldContext__Service_sdl(ctx, field)
  137106. if err != nil {
  137107. return graphql.Null
  137108. }
  137109. ctx = graphql.WithFieldContext(ctx, fc)
  137110. defer func() {
  137111. if r := recover(); r != nil {
  137112. ec.Error(ctx, ec.Recover(ctx, r))
  137113. ret = graphql.Null
  137114. }
  137115. }()
  137116. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  137117. ctx = rctx // use context from middleware stack in children
  137118. return obj.SDL, nil
  137119. })
  137120. if err != nil {
  137121. ec.Error(ctx, err)
  137122. return graphql.Null
  137123. }
  137124. if resTmp == nil {
  137125. return graphql.Null
  137126. }
  137127. res := resTmp.(string)
  137128. fc.Result = res
  137129. return ec.marshalOString2string(ctx, field.Selections, res)
  137130. }
  137131. func (ec *executionContext) fieldContext__Service_sdl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  137132. fc = &graphql.FieldContext{
  137133. Object: "_Service",
  137134. Field: field,
  137135. IsMethod: false,
  137136. IsResolver: false,
  137137. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  137138. return nil, errors.New("field of type String does not have child fields")
  137139. },
  137140. }
  137141. return fc, nil
  137142. }
  137143. func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
  137144. fc, err := ec.fieldContext___Directive_name(ctx, field)
  137145. if err != nil {
  137146. return graphql.Null
  137147. }
  137148. ctx = graphql.WithFieldContext(ctx, fc)
  137149. defer func() {
  137150. if r := recover(); r != nil {
  137151. ec.Error(ctx, ec.Recover(ctx, r))
  137152. ret = graphql.Null
  137153. }
  137154. }()
  137155. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  137156. ctx = rctx // use context from middleware stack in children
  137157. return obj.Name, nil
  137158. })
  137159. if err != nil {
  137160. ec.Error(ctx, err)
  137161. return graphql.Null
  137162. }
  137163. if resTmp == nil {
  137164. if !graphql.HasFieldError(ctx, fc) {
  137165. ec.Errorf(ctx, "must not be null")
  137166. }
  137167. return graphql.Null
  137168. }
  137169. res := resTmp.(string)
  137170. fc.Result = res
  137171. return ec.marshalNString2string(ctx, field.Selections, res)
  137172. }
  137173. func (ec *executionContext) fieldContext___Directive_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  137174. fc = &graphql.FieldContext{
  137175. Object: "__Directive",
  137176. Field: field,
  137177. IsMethod: false,
  137178. IsResolver: false,
  137179. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  137180. return nil, errors.New("field of type String does not have child fields")
  137181. },
  137182. }
  137183. return fc, nil
  137184. }
  137185. func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
  137186. fc, err := ec.fieldContext___Directive_description(ctx, field)
  137187. if err != nil {
  137188. return graphql.Null
  137189. }
  137190. ctx = graphql.WithFieldContext(ctx, fc)
  137191. defer func() {
  137192. if r := recover(); r != nil {
  137193. ec.Error(ctx, ec.Recover(ctx, r))
  137194. ret = graphql.Null
  137195. }
  137196. }()
  137197. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  137198. ctx = rctx // use context from middleware stack in children
  137199. return obj.Description(), nil
  137200. })
  137201. if err != nil {
  137202. ec.Error(ctx, err)
  137203. return graphql.Null
  137204. }
  137205. if resTmp == nil {
  137206. return graphql.Null
  137207. }
  137208. res := resTmp.(*string)
  137209. fc.Result = res
  137210. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  137211. }
  137212. func (ec *executionContext) fieldContext___Directive_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  137213. fc = &graphql.FieldContext{
  137214. Object: "__Directive",
  137215. Field: field,
  137216. IsMethod: true,
  137217. IsResolver: false,
  137218. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  137219. return nil, errors.New("field of type String does not have child fields")
  137220. },
  137221. }
  137222. return fc, nil
  137223. }
  137224. func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
  137225. fc, err := ec.fieldContext___Directive_locations(ctx, field)
  137226. if err != nil {
  137227. return graphql.Null
  137228. }
  137229. ctx = graphql.WithFieldContext(ctx, fc)
  137230. defer func() {
  137231. if r := recover(); r != nil {
  137232. ec.Error(ctx, ec.Recover(ctx, r))
  137233. ret = graphql.Null
  137234. }
  137235. }()
  137236. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  137237. ctx = rctx // use context from middleware stack in children
  137238. return obj.Locations, nil
  137239. })
  137240. if err != nil {
  137241. ec.Error(ctx, err)
  137242. return graphql.Null
  137243. }
  137244. if resTmp == nil {
  137245. if !graphql.HasFieldError(ctx, fc) {
  137246. ec.Errorf(ctx, "must not be null")
  137247. }
  137248. return graphql.Null
  137249. }
  137250. res := resTmp.([]string)
  137251. fc.Result = res
  137252. return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res)
  137253. }
  137254. func (ec *executionContext) fieldContext___Directive_locations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  137255. fc = &graphql.FieldContext{
  137256. Object: "__Directive",
  137257. Field: field,
  137258. IsMethod: false,
  137259. IsResolver: false,
  137260. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  137261. return nil, errors.New("field of type __DirectiveLocation does not have child fields")
  137262. },
  137263. }
  137264. return fc, nil
  137265. }
  137266. func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
  137267. fc, err := ec.fieldContext___Directive_args(ctx, field)
  137268. if err != nil {
  137269. return graphql.Null
  137270. }
  137271. ctx = graphql.WithFieldContext(ctx, fc)
  137272. defer func() {
  137273. if r := recover(); r != nil {
  137274. ec.Error(ctx, ec.Recover(ctx, r))
  137275. ret = graphql.Null
  137276. }
  137277. }()
  137278. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  137279. ctx = rctx // use context from middleware stack in children
  137280. return obj.Args, nil
  137281. })
  137282. if err != nil {
  137283. ec.Error(ctx, err)
  137284. return graphql.Null
  137285. }
  137286. if resTmp == nil {
  137287. if !graphql.HasFieldError(ctx, fc) {
  137288. ec.Errorf(ctx, "must not be null")
  137289. }
  137290. return graphql.Null
  137291. }
  137292. res := resTmp.([]introspection.InputValue)
  137293. fc.Result = res
  137294. return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
  137295. }
  137296. func (ec *executionContext) fieldContext___Directive_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  137297. fc = &graphql.FieldContext{
  137298. Object: "__Directive",
  137299. Field: field,
  137300. IsMethod: false,
  137301. IsResolver: false,
  137302. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  137303. switch field.Name {
  137304. case "name":
  137305. return ec.fieldContext___InputValue_name(ctx, field)
  137306. case "description":
  137307. return ec.fieldContext___InputValue_description(ctx, field)
  137308. case "type":
  137309. return ec.fieldContext___InputValue_type(ctx, field)
  137310. case "defaultValue":
  137311. return ec.fieldContext___InputValue_defaultValue(ctx, field)
  137312. }
  137313. return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
  137314. },
  137315. }
  137316. return fc, nil
  137317. }
  137318. func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
  137319. fc, err := ec.fieldContext___Directive_isRepeatable(ctx, field)
  137320. if err != nil {
  137321. return graphql.Null
  137322. }
  137323. ctx = graphql.WithFieldContext(ctx, fc)
  137324. defer func() {
  137325. if r := recover(); r != nil {
  137326. ec.Error(ctx, ec.Recover(ctx, r))
  137327. ret = graphql.Null
  137328. }
  137329. }()
  137330. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  137331. ctx = rctx // use context from middleware stack in children
  137332. return obj.IsRepeatable, nil
  137333. })
  137334. if err != nil {
  137335. ec.Error(ctx, err)
  137336. return graphql.Null
  137337. }
  137338. if resTmp == nil {
  137339. if !graphql.HasFieldError(ctx, fc) {
  137340. ec.Errorf(ctx, "must not be null")
  137341. }
  137342. return graphql.Null
  137343. }
  137344. res := resTmp.(bool)
  137345. fc.Result = res
  137346. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  137347. }
  137348. func (ec *executionContext) fieldContext___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  137349. fc = &graphql.FieldContext{
  137350. Object: "__Directive",
  137351. Field: field,
  137352. IsMethod: false,
  137353. IsResolver: false,
  137354. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  137355. return nil, errors.New("field of type Boolean does not have child fields")
  137356. },
  137357. }
  137358. return fc, nil
  137359. }
  137360. func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
  137361. fc, err := ec.fieldContext___EnumValue_name(ctx, field)
  137362. if err != nil {
  137363. return graphql.Null
  137364. }
  137365. ctx = graphql.WithFieldContext(ctx, fc)
  137366. defer func() {
  137367. if r := recover(); r != nil {
  137368. ec.Error(ctx, ec.Recover(ctx, r))
  137369. ret = graphql.Null
  137370. }
  137371. }()
  137372. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  137373. ctx = rctx // use context from middleware stack in children
  137374. return obj.Name, nil
  137375. })
  137376. if err != nil {
  137377. ec.Error(ctx, err)
  137378. return graphql.Null
  137379. }
  137380. if resTmp == nil {
  137381. if !graphql.HasFieldError(ctx, fc) {
  137382. ec.Errorf(ctx, "must not be null")
  137383. }
  137384. return graphql.Null
  137385. }
  137386. res := resTmp.(string)
  137387. fc.Result = res
  137388. return ec.marshalNString2string(ctx, field.Selections, res)
  137389. }
  137390. func (ec *executionContext) fieldContext___EnumValue_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  137391. fc = &graphql.FieldContext{
  137392. Object: "__EnumValue",
  137393. Field: field,
  137394. IsMethod: false,
  137395. IsResolver: false,
  137396. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  137397. return nil, errors.New("field of type String does not have child fields")
  137398. },
  137399. }
  137400. return fc, nil
  137401. }
  137402. func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
  137403. fc, err := ec.fieldContext___EnumValue_description(ctx, field)
  137404. if err != nil {
  137405. return graphql.Null
  137406. }
  137407. ctx = graphql.WithFieldContext(ctx, fc)
  137408. defer func() {
  137409. if r := recover(); r != nil {
  137410. ec.Error(ctx, ec.Recover(ctx, r))
  137411. ret = graphql.Null
  137412. }
  137413. }()
  137414. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  137415. ctx = rctx // use context from middleware stack in children
  137416. return obj.Description(), nil
  137417. })
  137418. if err != nil {
  137419. ec.Error(ctx, err)
  137420. return graphql.Null
  137421. }
  137422. if resTmp == nil {
  137423. return graphql.Null
  137424. }
  137425. res := resTmp.(*string)
  137426. fc.Result = res
  137427. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  137428. }
  137429. func (ec *executionContext) fieldContext___EnumValue_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  137430. fc = &graphql.FieldContext{
  137431. Object: "__EnumValue",
  137432. Field: field,
  137433. IsMethod: true,
  137434. IsResolver: false,
  137435. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  137436. return nil, errors.New("field of type String does not have child fields")
  137437. },
  137438. }
  137439. return fc, nil
  137440. }
  137441. func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
  137442. fc, err := ec.fieldContext___EnumValue_isDeprecated(ctx, field)
  137443. if err != nil {
  137444. return graphql.Null
  137445. }
  137446. ctx = graphql.WithFieldContext(ctx, fc)
  137447. defer func() {
  137448. if r := recover(); r != nil {
  137449. ec.Error(ctx, ec.Recover(ctx, r))
  137450. ret = graphql.Null
  137451. }
  137452. }()
  137453. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  137454. ctx = rctx // use context from middleware stack in children
  137455. return obj.IsDeprecated(), nil
  137456. })
  137457. if err != nil {
  137458. ec.Error(ctx, err)
  137459. return graphql.Null
  137460. }
  137461. if resTmp == nil {
  137462. if !graphql.HasFieldError(ctx, fc) {
  137463. ec.Errorf(ctx, "must not be null")
  137464. }
  137465. return graphql.Null
  137466. }
  137467. res := resTmp.(bool)
  137468. fc.Result = res
  137469. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  137470. }
  137471. func (ec *executionContext) fieldContext___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  137472. fc = &graphql.FieldContext{
  137473. Object: "__EnumValue",
  137474. Field: field,
  137475. IsMethod: true,
  137476. IsResolver: false,
  137477. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  137478. return nil, errors.New("field of type Boolean does not have child fields")
  137479. },
  137480. }
  137481. return fc, nil
  137482. }
  137483. func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
  137484. fc, err := ec.fieldContext___EnumValue_deprecationReason(ctx, field)
  137485. if err != nil {
  137486. return graphql.Null
  137487. }
  137488. ctx = graphql.WithFieldContext(ctx, fc)
  137489. defer func() {
  137490. if r := recover(); r != nil {
  137491. ec.Error(ctx, ec.Recover(ctx, r))
  137492. ret = graphql.Null
  137493. }
  137494. }()
  137495. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  137496. ctx = rctx // use context from middleware stack in children
  137497. return obj.DeprecationReason(), nil
  137498. })
  137499. if err != nil {
  137500. ec.Error(ctx, err)
  137501. return graphql.Null
  137502. }
  137503. if resTmp == nil {
  137504. return graphql.Null
  137505. }
  137506. res := resTmp.(*string)
  137507. fc.Result = res
  137508. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  137509. }
  137510. func (ec *executionContext) fieldContext___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  137511. fc = &graphql.FieldContext{
  137512. Object: "__EnumValue",
  137513. Field: field,
  137514. IsMethod: true,
  137515. IsResolver: false,
  137516. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  137517. return nil, errors.New("field of type String does not have child fields")
  137518. },
  137519. }
  137520. return fc, nil
  137521. }
  137522. func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
  137523. fc, err := ec.fieldContext___Field_name(ctx, field)
  137524. if err != nil {
  137525. return graphql.Null
  137526. }
  137527. ctx = graphql.WithFieldContext(ctx, fc)
  137528. defer func() {
  137529. if r := recover(); r != nil {
  137530. ec.Error(ctx, ec.Recover(ctx, r))
  137531. ret = graphql.Null
  137532. }
  137533. }()
  137534. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  137535. ctx = rctx // use context from middleware stack in children
  137536. return obj.Name, nil
  137537. })
  137538. if err != nil {
  137539. ec.Error(ctx, err)
  137540. return graphql.Null
  137541. }
  137542. if resTmp == nil {
  137543. if !graphql.HasFieldError(ctx, fc) {
  137544. ec.Errorf(ctx, "must not be null")
  137545. }
  137546. return graphql.Null
  137547. }
  137548. res := resTmp.(string)
  137549. fc.Result = res
  137550. return ec.marshalNString2string(ctx, field.Selections, res)
  137551. }
  137552. func (ec *executionContext) fieldContext___Field_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  137553. fc = &graphql.FieldContext{
  137554. Object: "__Field",
  137555. Field: field,
  137556. IsMethod: false,
  137557. IsResolver: false,
  137558. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  137559. return nil, errors.New("field of type String does not have child fields")
  137560. },
  137561. }
  137562. return fc, nil
  137563. }
  137564. func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
  137565. fc, err := ec.fieldContext___Field_description(ctx, field)
  137566. if err != nil {
  137567. return graphql.Null
  137568. }
  137569. ctx = graphql.WithFieldContext(ctx, fc)
  137570. defer func() {
  137571. if r := recover(); r != nil {
  137572. ec.Error(ctx, ec.Recover(ctx, r))
  137573. ret = graphql.Null
  137574. }
  137575. }()
  137576. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  137577. ctx = rctx // use context from middleware stack in children
  137578. return obj.Description(), nil
  137579. })
  137580. if err != nil {
  137581. ec.Error(ctx, err)
  137582. return graphql.Null
  137583. }
  137584. if resTmp == nil {
  137585. return graphql.Null
  137586. }
  137587. res := resTmp.(*string)
  137588. fc.Result = res
  137589. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  137590. }
  137591. func (ec *executionContext) fieldContext___Field_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  137592. fc = &graphql.FieldContext{
  137593. Object: "__Field",
  137594. Field: field,
  137595. IsMethod: true,
  137596. IsResolver: false,
  137597. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  137598. return nil, errors.New("field of type String does not have child fields")
  137599. },
  137600. }
  137601. return fc, nil
  137602. }
  137603. func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
  137604. fc, err := ec.fieldContext___Field_args(ctx, field)
  137605. if err != nil {
  137606. return graphql.Null
  137607. }
  137608. ctx = graphql.WithFieldContext(ctx, fc)
  137609. defer func() {
  137610. if r := recover(); r != nil {
  137611. ec.Error(ctx, ec.Recover(ctx, r))
  137612. ret = graphql.Null
  137613. }
  137614. }()
  137615. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  137616. ctx = rctx // use context from middleware stack in children
  137617. return obj.Args, nil
  137618. })
  137619. if err != nil {
  137620. ec.Error(ctx, err)
  137621. return graphql.Null
  137622. }
  137623. if resTmp == nil {
  137624. if !graphql.HasFieldError(ctx, fc) {
  137625. ec.Errorf(ctx, "must not be null")
  137626. }
  137627. return graphql.Null
  137628. }
  137629. res := resTmp.([]introspection.InputValue)
  137630. fc.Result = res
  137631. return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
  137632. }
  137633. func (ec *executionContext) fieldContext___Field_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  137634. fc = &graphql.FieldContext{
  137635. Object: "__Field",
  137636. Field: field,
  137637. IsMethod: false,
  137638. IsResolver: false,
  137639. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  137640. switch field.Name {
  137641. case "name":
  137642. return ec.fieldContext___InputValue_name(ctx, field)
  137643. case "description":
  137644. return ec.fieldContext___InputValue_description(ctx, field)
  137645. case "type":
  137646. return ec.fieldContext___InputValue_type(ctx, field)
  137647. case "defaultValue":
  137648. return ec.fieldContext___InputValue_defaultValue(ctx, field)
  137649. }
  137650. return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
  137651. },
  137652. }
  137653. return fc, nil
  137654. }
  137655. func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
  137656. fc, err := ec.fieldContext___Field_type(ctx, field)
  137657. if err != nil {
  137658. return graphql.Null
  137659. }
  137660. ctx = graphql.WithFieldContext(ctx, fc)
  137661. defer func() {
  137662. if r := recover(); r != nil {
  137663. ec.Error(ctx, ec.Recover(ctx, r))
  137664. ret = graphql.Null
  137665. }
  137666. }()
  137667. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  137668. ctx = rctx // use context from middleware stack in children
  137669. return obj.Type, nil
  137670. })
  137671. if err != nil {
  137672. ec.Error(ctx, err)
  137673. return graphql.Null
  137674. }
  137675. if resTmp == nil {
  137676. if !graphql.HasFieldError(ctx, fc) {
  137677. ec.Errorf(ctx, "must not be null")
  137678. }
  137679. return graphql.Null
  137680. }
  137681. res := resTmp.(*introspection.Type)
  137682. fc.Result = res
  137683. return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  137684. }
  137685. func (ec *executionContext) fieldContext___Field_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  137686. fc = &graphql.FieldContext{
  137687. Object: "__Field",
  137688. Field: field,
  137689. IsMethod: false,
  137690. IsResolver: false,
  137691. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  137692. switch field.Name {
  137693. case "kind":
  137694. return ec.fieldContext___Type_kind(ctx, field)
  137695. case "name":
  137696. return ec.fieldContext___Type_name(ctx, field)
  137697. case "description":
  137698. return ec.fieldContext___Type_description(ctx, field)
  137699. case "fields":
  137700. return ec.fieldContext___Type_fields(ctx, field)
  137701. case "interfaces":
  137702. return ec.fieldContext___Type_interfaces(ctx, field)
  137703. case "possibleTypes":
  137704. return ec.fieldContext___Type_possibleTypes(ctx, field)
  137705. case "enumValues":
  137706. return ec.fieldContext___Type_enumValues(ctx, field)
  137707. case "inputFields":
  137708. return ec.fieldContext___Type_inputFields(ctx, field)
  137709. case "ofType":
  137710. return ec.fieldContext___Type_ofType(ctx, field)
  137711. case "specifiedByURL":
  137712. return ec.fieldContext___Type_specifiedByURL(ctx, field)
  137713. }
  137714. return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
  137715. },
  137716. }
  137717. return fc, nil
  137718. }
  137719. func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
  137720. fc, err := ec.fieldContext___Field_isDeprecated(ctx, field)
  137721. if err != nil {
  137722. return graphql.Null
  137723. }
  137724. ctx = graphql.WithFieldContext(ctx, fc)
  137725. defer func() {
  137726. if r := recover(); r != nil {
  137727. ec.Error(ctx, ec.Recover(ctx, r))
  137728. ret = graphql.Null
  137729. }
  137730. }()
  137731. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  137732. ctx = rctx // use context from middleware stack in children
  137733. return obj.IsDeprecated(), nil
  137734. })
  137735. if err != nil {
  137736. ec.Error(ctx, err)
  137737. return graphql.Null
  137738. }
  137739. if resTmp == nil {
  137740. if !graphql.HasFieldError(ctx, fc) {
  137741. ec.Errorf(ctx, "must not be null")
  137742. }
  137743. return graphql.Null
  137744. }
  137745. res := resTmp.(bool)
  137746. fc.Result = res
  137747. return ec.marshalNBoolean2bool(ctx, field.Selections, res)
  137748. }
  137749. func (ec *executionContext) fieldContext___Field_isDeprecated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  137750. fc = &graphql.FieldContext{
  137751. Object: "__Field",
  137752. Field: field,
  137753. IsMethod: true,
  137754. IsResolver: false,
  137755. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  137756. return nil, errors.New("field of type Boolean does not have child fields")
  137757. },
  137758. }
  137759. return fc, nil
  137760. }
  137761. func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
  137762. fc, err := ec.fieldContext___Field_deprecationReason(ctx, field)
  137763. if err != nil {
  137764. return graphql.Null
  137765. }
  137766. ctx = graphql.WithFieldContext(ctx, fc)
  137767. defer func() {
  137768. if r := recover(); r != nil {
  137769. ec.Error(ctx, ec.Recover(ctx, r))
  137770. ret = graphql.Null
  137771. }
  137772. }()
  137773. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  137774. ctx = rctx // use context from middleware stack in children
  137775. return obj.DeprecationReason(), nil
  137776. })
  137777. if err != nil {
  137778. ec.Error(ctx, err)
  137779. return graphql.Null
  137780. }
  137781. if resTmp == nil {
  137782. return graphql.Null
  137783. }
  137784. res := resTmp.(*string)
  137785. fc.Result = res
  137786. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  137787. }
  137788. func (ec *executionContext) fieldContext___Field_deprecationReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  137789. fc = &graphql.FieldContext{
  137790. Object: "__Field",
  137791. Field: field,
  137792. IsMethod: true,
  137793. IsResolver: false,
  137794. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  137795. return nil, errors.New("field of type String does not have child fields")
  137796. },
  137797. }
  137798. return fc, nil
  137799. }
  137800. func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
  137801. fc, err := ec.fieldContext___InputValue_name(ctx, field)
  137802. if err != nil {
  137803. return graphql.Null
  137804. }
  137805. ctx = graphql.WithFieldContext(ctx, fc)
  137806. defer func() {
  137807. if r := recover(); r != nil {
  137808. ec.Error(ctx, ec.Recover(ctx, r))
  137809. ret = graphql.Null
  137810. }
  137811. }()
  137812. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  137813. ctx = rctx // use context from middleware stack in children
  137814. return obj.Name, nil
  137815. })
  137816. if err != nil {
  137817. ec.Error(ctx, err)
  137818. return graphql.Null
  137819. }
  137820. if resTmp == nil {
  137821. if !graphql.HasFieldError(ctx, fc) {
  137822. ec.Errorf(ctx, "must not be null")
  137823. }
  137824. return graphql.Null
  137825. }
  137826. res := resTmp.(string)
  137827. fc.Result = res
  137828. return ec.marshalNString2string(ctx, field.Selections, res)
  137829. }
  137830. func (ec *executionContext) fieldContext___InputValue_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  137831. fc = &graphql.FieldContext{
  137832. Object: "__InputValue",
  137833. Field: field,
  137834. IsMethod: false,
  137835. IsResolver: false,
  137836. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  137837. return nil, errors.New("field of type String does not have child fields")
  137838. },
  137839. }
  137840. return fc, nil
  137841. }
  137842. func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
  137843. fc, err := ec.fieldContext___InputValue_description(ctx, field)
  137844. if err != nil {
  137845. return graphql.Null
  137846. }
  137847. ctx = graphql.WithFieldContext(ctx, fc)
  137848. defer func() {
  137849. if r := recover(); r != nil {
  137850. ec.Error(ctx, ec.Recover(ctx, r))
  137851. ret = graphql.Null
  137852. }
  137853. }()
  137854. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  137855. ctx = rctx // use context from middleware stack in children
  137856. return obj.Description(), nil
  137857. })
  137858. if err != nil {
  137859. ec.Error(ctx, err)
  137860. return graphql.Null
  137861. }
  137862. if resTmp == nil {
  137863. return graphql.Null
  137864. }
  137865. res := resTmp.(*string)
  137866. fc.Result = res
  137867. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  137868. }
  137869. func (ec *executionContext) fieldContext___InputValue_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  137870. fc = &graphql.FieldContext{
  137871. Object: "__InputValue",
  137872. Field: field,
  137873. IsMethod: true,
  137874. IsResolver: false,
  137875. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  137876. return nil, errors.New("field of type String does not have child fields")
  137877. },
  137878. }
  137879. return fc, nil
  137880. }
  137881. func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
  137882. fc, err := ec.fieldContext___InputValue_type(ctx, field)
  137883. if err != nil {
  137884. return graphql.Null
  137885. }
  137886. ctx = graphql.WithFieldContext(ctx, fc)
  137887. defer func() {
  137888. if r := recover(); r != nil {
  137889. ec.Error(ctx, ec.Recover(ctx, r))
  137890. ret = graphql.Null
  137891. }
  137892. }()
  137893. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  137894. ctx = rctx // use context from middleware stack in children
  137895. return obj.Type, nil
  137896. })
  137897. if err != nil {
  137898. ec.Error(ctx, err)
  137899. return graphql.Null
  137900. }
  137901. if resTmp == nil {
  137902. if !graphql.HasFieldError(ctx, fc) {
  137903. ec.Errorf(ctx, "must not be null")
  137904. }
  137905. return graphql.Null
  137906. }
  137907. res := resTmp.(*introspection.Type)
  137908. fc.Result = res
  137909. return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  137910. }
  137911. func (ec *executionContext) fieldContext___InputValue_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  137912. fc = &graphql.FieldContext{
  137913. Object: "__InputValue",
  137914. Field: field,
  137915. IsMethod: false,
  137916. IsResolver: false,
  137917. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  137918. switch field.Name {
  137919. case "kind":
  137920. return ec.fieldContext___Type_kind(ctx, field)
  137921. case "name":
  137922. return ec.fieldContext___Type_name(ctx, field)
  137923. case "description":
  137924. return ec.fieldContext___Type_description(ctx, field)
  137925. case "fields":
  137926. return ec.fieldContext___Type_fields(ctx, field)
  137927. case "interfaces":
  137928. return ec.fieldContext___Type_interfaces(ctx, field)
  137929. case "possibleTypes":
  137930. return ec.fieldContext___Type_possibleTypes(ctx, field)
  137931. case "enumValues":
  137932. return ec.fieldContext___Type_enumValues(ctx, field)
  137933. case "inputFields":
  137934. return ec.fieldContext___Type_inputFields(ctx, field)
  137935. case "ofType":
  137936. return ec.fieldContext___Type_ofType(ctx, field)
  137937. case "specifiedByURL":
  137938. return ec.fieldContext___Type_specifiedByURL(ctx, field)
  137939. }
  137940. return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
  137941. },
  137942. }
  137943. return fc, nil
  137944. }
  137945. func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
  137946. fc, err := ec.fieldContext___InputValue_defaultValue(ctx, field)
  137947. if err != nil {
  137948. return graphql.Null
  137949. }
  137950. ctx = graphql.WithFieldContext(ctx, fc)
  137951. defer func() {
  137952. if r := recover(); r != nil {
  137953. ec.Error(ctx, ec.Recover(ctx, r))
  137954. ret = graphql.Null
  137955. }
  137956. }()
  137957. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  137958. ctx = rctx // use context from middleware stack in children
  137959. return obj.DefaultValue, nil
  137960. })
  137961. if err != nil {
  137962. ec.Error(ctx, err)
  137963. return graphql.Null
  137964. }
  137965. if resTmp == nil {
  137966. return graphql.Null
  137967. }
  137968. res := resTmp.(*string)
  137969. fc.Result = res
  137970. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  137971. }
  137972. func (ec *executionContext) fieldContext___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  137973. fc = &graphql.FieldContext{
  137974. Object: "__InputValue",
  137975. Field: field,
  137976. IsMethod: false,
  137977. IsResolver: false,
  137978. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  137979. return nil, errors.New("field of type String does not have child fields")
  137980. },
  137981. }
  137982. return fc, nil
  137983. }
  137984. func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
  137985. fc, err := ec.fieldContext___Schema_description(ctx, field)
  137986. if err != nil {
  137987. return graphql.Null
  137988. }
  137989. ctx = graphql.WithFieldContext(ctx, fc)
  137990. defer func() {
  137991. if r := recover(); r != nil {
  137992. ec.Error(ctx, ec.Recover(ctx, r))
  137993. ret = graphql.Null
  137994. }
  137995. }()
  137996. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  137997. ctx = rctx // use context from middleware stack in children
  137998. return obj.Description(), nil
  137999. })
  138000. if err != nil {
  138001. ec.Error(ctx, err)
  138002. return graphql.Null
  138003. }
  138004. if resTmp == nil {
  138005. return graphql.Null
  138006. }
  138007. res := resTmp.(*string)
  138008. fc.Result = res
  138009. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  138010. }
  138011. func (ec *executionContext) fieldContext___Schema_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  138012. fc = &graphql.FieldContext{
  138013. Object: "__Schema",
  138014. Field: field,
  138015. IsMethod: true,
  138016. IsResolver: false,
  138017. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  138018. return nil, errors.New("field of type String does not have child fields")
  138019. },
  138020. }
  138021. return fc, nil
  138022. }
  138023. func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
  138024. fc, err := ec.fieldContext___Schema_types(ctx, field)
  138025. if err != nil {
  138026. return graphql.Null
  138027. }
  138028. ctx = graphql.WithFieldContext(ctx, fc)
  138029. defer func() {
  138030. if r := recover(); r != nil {
  138031. ec.Error(ctx, ec.Recover(ctx, r))
  138032. ret = graphql.Null
  138033. }
  138034. }()
  138035. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  138036. ctx = rctx // use context from middleware stack in children
  138037. return obj.Types(), nil
  138038. })
  138039. if err != nil {
  138040. ec.Error(ctx, err)
  138041. return graphql.Null
  138042. }
  138043. if resTmp == nil {
  138044. if !graphql.HasFieldError(ctx, fc) {
  138045. ec.Errorf(ctx, "must not be null")
  138046. }
  138047. return graphql.Null
  138048. }
  138049. res := resTmp.([]introspection.Type)
  138050. fc.Result = res
  138051. return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
  138052. }
  138053. func (ec *executionContext) fieldContext___Schema_types(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  138054. fc = &graphql.FieldContext{
  138055. Object: "__Schema",
  138056. Field: field,
  138057. IsMethod: true,
  138058. IsResolver: false,
  138059. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  138060. switch field.Name {
  138061. case "kind":
  138062. return ec.fieldContext___Type_kind(ctx, field)
  138063. case "name":
  138064. return ec.fieldContext___Type_name(ctx, field)
  138065. case "description":
  138066. return ec.fieldContext___Type_description(ctx, field)
  138067. case "fields":
  138068. return ec.fieldContext___Type_fields(ctx, field)
  138069. case "interfaces":
  138070. return ec.fieldContext___Type_interfaces(ctx, field)
  138071. case "possibleTypes":
  138072. return ec.fieldContext___Type_possibleTypes(ctx, field)
  138073. case "enumValues":
  138074. return ec.fieldContext___Type_enumValues(ctx, field)
  138075. case "inputFields":
  138076. return ec.fieldContext___Type_inputFields(ctx, field)
  138077. case "ofType":
  138078. return ec.fieldContext___Type_ofType(ctx, field)
  138079. case "specifiedByURL":
  138080. return ec.fieldContext___Type_specifiedByURL(ctx, field)
  138081. }
  138082. return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
  138083. },
  138084. }
  138085. return fc, nil
  138086. }
  138087. func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
  138088. fc, err := ec.fieldContext___Schema_queryType(ctx, field)
  138089. if err != nil {
  138090. return graphql.Null
  138091. }
  138092. ctx = graphql.WithFieldContext(ctx, fc)
  138093. defer func() {
  138094. if r := recover(); r != nil {
  138095. ec.Error(ctx, ec.Recover(ctx, r))
  138096. ret = graphql.Null
  138097. }
  138098. }()
  138099. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  138100. ctx = rctx // use context from middleware stack in children
  138101. return obj.QueryType(), nil
  138102. })
  138103. if err != nil {
  138104. ec.Error(ctx, err)
  138105. return graphql.Null
  138106. }
  138107. if resTmp == nil {
  138108. if !graphql.HasFieldError(ctx, fc) {
  138109. ec.Errorf(ctx, "must not be null")
  138110. }
  138111. return graphql.Null
  138112. }
  138113. res := resTmp.(*introspection.Type)
  138114. fc.Result = res
  138115. return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  138116. }
  138117. func (ec *executionContext) fieldContext___Schema_queryType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  138118. fc = &graphql.FieldContext{
  138119. Object: "__Schema",
  138120. Field: field,
  138121. IsMethod: true,
  138122. IsResolver: false,
  138123. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  138124. switch field.Name {
  138125. case "kind":
  138126. return ec.fieldContext___Type_kind(ctx, field)
  138127. case "name":
  138128. return ec.fieldContext___Type_name(ctx, field)
  138129. case "description":
  138130. return ec.fieldContext___Type_description(ctx, field)
  138131. case "fields":
  138132. return ec.fieldContext___Type_fields(ctx, field)
  138133. case "interfaces":
  138134. return ec.fieldContext___Type_interfaces(ctx, field)
  138135. case "possibleTypes":
  138136. return ec.fieldContext___Type_possibleTypes(ctx, field)
  138137. case "enumValues":
  138138. return ec.fieldContext___Type_enumValues(ctx, field)
  138139. case "inputFields":
  138140. return ec.fieldContext___Type_inputFields(ctx, field)
  138141. case "ofType":
  138142. return ec.fieldContext___Type_ofType(ctx, field)
  138143. case "specifiedByURL":
  138144. return ec.fieldContext___Type_specifiedByURL(ctx, field)
  138145. }
  138146. return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
  138147. },
  138148. }
  138149. return fc, nil
  138150. }
  138151. func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
  138152. fc, err := ec.fieldContext___Schema_mutationType(ctx, field)
  138153. if err != nil {
  138154. return graphql.Null
  138155. }
  138156. ctx = graphql.WithFieldContext(ctx, fc)
  138157. defer func() {
  138158. if r := recover(); r != nil {
  138159. ec.Error(ctx, ec.Recover(ctx, r))
  138160. ret = graphql.Null
  138161. }
  138162. }()
  138163. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  138164. ctx = rctx // use context from middleware stack in children
  138165. return obj.MutationType(), nil
  138166. })
  138167. if err != nil {
  138168. ec.Error(ctx, err)
  138169. return graphql.Null
  138170. }
  138171. if resTmp == nil {
  138172. return graphql.Null
  138173. }
  138174. res := resTmp.(*introspection.Type)
  138175. fc.Result = res
  138176. return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  138177. }
  138178. func (ec *executionContext) fieldContext___Schema_mutationType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  138179. fc = &graphql.FieldContext{
  138180. Object: "__Schema",
  138181. Field: field,
  138182. IsMethod: true,
  138183. IsResolver: false,
  138184. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  138185. switch field.Name {
  138186. case "kind":
  138187. return ec.fieldContext___Type_kind(ctx, field)
  138188. case "name":
  138189. return ec.fieldContext___Type_name(ctx, field)
  138190. case "description":
  138191. return ec.fieldContext___Type_description(ctx, field)
  138192. case "fields":
  138193. return ec.fieldContext___Type_fields(ctx, field)
  138194. case "interfaces":
  138195. return ec.fieldContext___Type_interfaces(ctx, field)
  138196. case "possibleTypes":
  138197. return ec.fieldContext___Type_possibleTypes(ctx, field)
  138198. case "enumValues":
  138199. return ec.fieldContext___Type_enumValues(ctx, field)
  138200. case "inputFields":
  138201. return ec.fieldContext___Type_inputFields(ctx, field)
  138202. case "ofType":
  138203. return ec.fieldContext___Type_ofType(ctx, field)
  138204. case "specifiedByURL":
  138205. return ec.fieldContext___Type_specifiedByURL(ctx, field)
  138206. }
  138207. return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
  138208. },
  138209. }
  138210. return fc, nil
  138211. }
  138212. func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
  138213. fc, err := ec.fieldContext___Schema_subscriptionType(ctx, field)
  138214. if err != nil {
  138215. return graphql.Null
  138216. }
  138217. ctx = graphql.WithFieldContext(ctx, fc)
  138218. defer func() {
  138219. if r := recover(); r != nil {
  138220. ec.Error(ctx, ec.Recover(ctx, r))
  138221. ret = graphql.Null
  138222. }
  138223. }()
  138224. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  138225. ctx = rctx // use context from middleware stack in children
  138226. return obj.SubscriptionType(), nil
  138227. })
  138228. if err != nil {
  138229. ec.Error(ctx, err)
  138230. return graphql.Null
  138231. }
  138232. if resTmp == nil {
  138233. return graphql.Null
  138234. }
  138235. res := resTmp.(*introspection.Type)
  138236. fc.Result = res
  138237. return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  138238. }
  138239. func (ec *executionContext) fieldContext___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  138240. fc = &graphql.FieldContext{
  138241. Object: "__Schema",
  138242. Field: field,
  138243. IsMethod: true,
  138244. IsResolver: false,
  138245. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  138246. switch field.Name {
  138247. case "kind":
  138248. return ec.fieldContext___Type_kind(ctx, field)
  138249. case "name":
  138250. return ec.fieldContext___Type_name(ctx, field)
  138251. case "description":
  138252. return ec.fieldContext___Type_description(ctx, field)
  138253. case "fields":
  138254. return ec.fieldContext___Type_fields(ctx, field)
  138255. case "interfaces":
  138256. return ec.fieldContext___Type_interfaces(ctx, field)
  138257. case "possibleTypes":
  138258. return ec.fieldContext___Type_possibleTypes(ctx, field)
  138259. case "enumValues":
  138260. return ec.fieldContext___Type_enumValues(ctx, field)
  138261. case "inputFields":
  138262. return ec.fieldContext___Type_inputFields(ctx, field)
  138263. case "ofType":
  138264. return ec.fieldContext___Type_ofType(ctx, field)
  138265. case "specifiedByURL":
  138266. return ec.fieldContext___Type_specifiedByURL(ctx, field)
  138267. }
  138268. return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
  138269. },
  138270. }
  138271. return fc, nil
  138272. }
  138273. func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
  138274. fc, err := ec.fieldContext___Schema_directives(ctx, field)
  138275. if err != nil {
  138276. return graphql.Null
  138277. }
  138278. ctx = graphql.WithFieldContext(ctx, fc)
  138279. defer func() {
  138280. if r := recover(); r != nil {
  138281. ec.Error(ctx, ec.Recover(ctx, r))
  138282. ret = graphql.Null
  138283. }
  138284. }()
  138285. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  138286. ctx = rctx // use context from middleware stack in children
  138287. return obj.Directives(), nil
  138288. })
  138289. if err != nil {
  138290. ec.Error(ctx, err)
  138291. return graphql.Null
  138292. }
  138293. if resTmp == nil {
  138294. if !graphql.HasFieldError(ctx, fc) {
  138295. ec.Errorf(ctx, "must not be null")
  138296. }
  138297. return graphql.Null
  138298. }
  138299. res := resTmp.([]introspection.Directive)
  138300. fc.Result = res
  138301. return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res)
  138302. }
  138303. func (ec *executionContext) fieldContext___Schema_directives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  138304. fc = &graphql.FieldContext{
  138305. Object: "__Schema",
  138306. Field: field,
  138307. IsMethod: true,
  138308. IsResolver: false,
  138309. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  138310. switch field.Name {
  138311. case "name":
  138312. return ec.fieldContext___Directive_name(ctx, field)
  138313. case "description":
  138314. return ec.fieldContext___Directive_description(ctx, field)
  138315. case "locations":
  138316. return ec.fieldContext___Directive_locations(ctx, field)
  138317. case "args":
  138318. return ec.fieldContext___Directive_args(ctx, field)
  138319. case "isRepeatable":
  138320. return ec.fieldContext___Directive_isRepeatable(ctx, field)
  138321. }
  138322. return nil, fmt.Errorf("no field named %q was found under type __Directive", field.Name)
  138323. },
  138324. }
  138325. return fc, nil
  138326. }
  138327. func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  138328. fc, err := ec.fieldContext___Type_kind(ctx, field)
  138329. if err != nil {
  138330. return graphql.Null
  138331. }
  138332. ctx = graphql.WithFieldContext(ctx, fc)
  138333. defer func() {
  138334. if r := recover(); r != nil {
  138335. ec.Error(ctx, ec.Recover(ctx, r))
  138336. ret = graphql.Null
  138337. }
  138338. }()
  138339. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  138340. ctx = rctx // use context from middleware stack in children
  138341. return obj.Kind(), nil
  138342. })
  138343. if err != nil {
  138344. ec.Error(ctx, err)
  138345. return graphql.Null
  138346. }
  138347. if resTmp == nil {
  138348. if !graphql.HasFieldError(ctx, fc) {
  138349. ec.Errorf(ctx, "must not be null")
  138350. }
  138351. return graphql.Null
  138352. }
  138353. res := resTmp.(string)
  138354. fc.Result = res
  138355. return ec.marshalN__TypeKind2string(ctx, field.Selections, res)
  138356. }
  138357. func (ec *executionContext) fieldContext___Type_kind(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  138358. fc = &graphql.FieldContext{
  138359. Object: "__Type",
  138360. Field: field,
  138361. IsMethod: true,
  138362. IsResolver: false,
  138363. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  138364. return nil, errors.New("field of type __TypeKind does not have child fields")
  138365. },
  138366. }
  138367. return fc, nil
  138368. }
  138369. func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  138370. fc, err := ec.fieldContext___Type_name(ctx, field)
  138371. if err != nil {
  138372. return graphql.Null
  138373. }
  138374. ctx = graphql.WithFieldContext(ctx, fc)
  138375. defer func() {
  138376. if r := recover(); r != nil {
  138377. ec.Error(ctx, ec.Recover(ctx, r))
  138378. ret = graphql.Null
  138379. }
  138380. }()
  138381. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  138382. ctx = rctx // use context from middleware stack in children
  138383. return obj.Name(), nil
  138384. })
  138385. if err != nil {
  138386. ec.Error(ctx, err)
  138387. return graphql.Null
  138388. }
  138389. if resTmp == nil {
  138390. return graphql.Null
  138391. }
  138392. res := resTmp.(*string)
  138393. fc.Result = res
  138394. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  138395. }
  138396. func (ec *executionContext) fieldContext___Type_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  138397. fc = &graphql.FieldContext{
  138398. Object: "__Type",
  138399. Field: field,
  138400. IsMethod: true,
  138401. IsResolver: false,
  138402. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  138403. return nil, errors.New("field of type String does not have child fields")
  138404. },
  138405. }
  138406. return fc, nil
  138407. }
  138408. func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  138409. fc, err := ec.fieldContext___Type_description(ctx, field)
  138410. if err != nil {
  138411. return graphql.Null
  138412. }
  138413. ctx = graphql.WithFieldContext(ctx, fc)
  138414. defer func() {
  138415. if r := recover(); r != nil {
  138416. ec.Error(ctx, ec.Recover(ctx, r))
  138417. ret = graphql.Null
  138418. }
  138419. }()
  138420. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  138421. ctx = rctx // use context from middleware stack in children
  138422. return obj.Description(), nil
  138423. })
  138424. if err != nil {
  138425. ec.Error(ctx, err)
  138426. return graphql.Null
  138427. }
  138428. if resTmp == nil {
  138429. return graphql.Null
  138430. }
  138431. res := resTmp.(*string)
  138432. fc.Result = res
  138433. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  138434. }
  138435. func (ec *executionContext) fieldContext___Type_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  138436. fc = &graphql.FieldContext{
  138437. Object: "__Type",
  138438. Field: field,
  138439. IsMethod: true,
  138440. IsResolver: false,
  138441. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  138442. return nil, errors.New("field of type String does not have child fields")
  138443. },
  138444. }
  138445. return fc, nil
  138446. }
  138447. func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  138448. fc, err := ec.fieldContext___Type_fields(ctx, field)
  138449. if err != nil {
  138450. return graphql.Null
  138451. }
  138452. ctx = graphql.WithFieldContext(ctx, fc)
  138453. defer func() {
  138454. if r := recover(); r != nil {
  138455. ec.Error(ctx, ec.Recover(ctx, r))
  138456. ret = graphql.Null
  138457. }
  138458. }()
  138459. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  138460. ctx = rctx // use context from middleware stack in children
  138461. return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil
  138462. })
  138463. if err != nil {
  138464. ec.Error(ctx, err)
  138465. return graphql.Null
  138466. }
  138467. if resTmp == nil {
  138468. return graphql.Null
  138469. }
  138470. res := resTmp.([]introspection.Field)
  138471. fc.Result = res
  138472. return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res)
  138473. }
  138474. func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  138475. fc = &graphql.FieldContext{
  138476. Object: "__Type",
  138477. Field: field,
  138478. IsMethod: true,
  138479. IsResolver: false,
  138480. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  138481. switch field.Name {
  138482. case "name":
  138483. return ec.fieldContext___Field_name(ctx, field)
  138484. case "description":
  138485. return ec.fieldContext___Field_description(ctx, field)
  138486. case "args":
  138487. return ec.fieldContext___Field_args(ctx, field)
  138488. case "type":
  138489. return ec.fieldContext___Field_type(ctx, field)
  138490. case "isDeprecated":
  138491. return ec.fieldContext___Field_isDeprecated(ctx, field)
  138492. case "deprecationReason":
  138493. return ec.fieldContext___Field_deprecationReason(ctx, field)
  138494. }
  138495. return nil, fmt.Errorf("no field named %q was found under type __Field", field.Name)
  138496. },
  138497. }
  138498. defer func() {
  138499. if r := recover(); r != nil {
  138500. err = ec.Recover(ctx, r)
  138501. ec.Error(ctx, err)
  138502. }
  138503. }()
  138504. ctx = graphql.WithFieldContext(ctx, fc)
  138505. if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  138506. ec.Error(ctx, err)
  138507. return
  138508. }
  138509. return fc, nil
  138510. }
  138511. func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  138512. fc, err := ec.fieldContext___Type_interfaces(ctx, field)
  138513. if err != nil {
  138514. return graphql.Null
  138515. }
  138516. ctx = graphql.WithFieldContext(ctx, fc)
  138517. defer func() {
  138518. if r := recover(); r != nil {
  138519. ec.Error(ctx, ec.Recover(ctx, r))
  138520. ret = graphql.Null
  138521. }
  138522. }()
  138523. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  138524. ctx = rctx // use context from middleware stack in children
  138525. return obj.Interfaces(), nil
  138526. })
  138527. if err != nil {
  138528. ec.Error(ctx, err)
  138529. return graphql.Null
  138530. }
  138531. if resTmp == nil {
  138532. return graphql.Null
  138533. }
  138534. res := resTmp.([]introspection.Type)
  138535. fc.Result = res
  138536. return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
  138537. }
  138538. func (ec *executionContext) fieldContext___Type_interfaces(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  138539. fc = &graphql.FieldContext{
  138540. Object: "__Type",
  138541. Field: field,
  138542. IsMethod: true,
  138543. IsResolver: false,
  138544. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  138545. switch field.Name {
  138546. case "kind":
  138547. return ec.fieldContext___Type_kind(ctx, field)
  138548. case "name":
  138549. return ec.fieldContext___Type_name(ctx, field)
  138550. case "description":
  138551. return ec.fieldContext___Type_description(ctx, field)
  138552. case "fields":
  138553. return ec.fieldContext___Type_fields(ctx, field)
  138554. case "interfaces":
  138555. return ec.fieldContext___Type_interfaces(ctx, field)
  138556. case "possibleTypes":
  138557. return ec.fieldContext___Type_possibleTypes(ctx, field)
  138558. case "enumValues":
  138559. return ec.fieldContext___Type_enumValues(ctx, field)
  138560. case "inputFields":
  138561. return ec.fieldContext___Type_inputFields(ctx, field)
  138562. case "ofType":
  138563. return ec.fieldContext___Type_ofType(ctx, field)
  138564. case "specifiedByURL":
  138565. return ec.fieldContext___Type_specifiedByURL(ctx, field)
  138566. }
  138567. return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
  138568. },
  138569. }
  138570. return fc, nil
  138571. }
  138572. func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  138573. fc, err := ec.fieldContext___Type_possibleTypes(ctx, field)
  138574. if err != nil {
  138575. return graphql.Null
  138576. }
  138577. ctx = graphql.WithFieldContext(ctx, fc)
  138578. defer func() {
  138579. if r := recover(); r != nil {
  138580. ec.Error(ctx, ec.Recover(ctx, r))
  138581. ret = graphql.Null
  138582. }
  138583. }()
  138584. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  138585. ctx = rctx // use context from middleware stack in children
  138586. return obj.PossibleTypes(), nil
  138587. })
  138588. if err != nil {
  138589. ec.Error(ctx, err)
  138590. return graphql.Null
  138591. }
  138592. if resTmp == nil {
  138593. return graphql.Null
  138594. }
  138595. res := resTmp.([]introspection.Type)
  138596. fc.Result = res
  138597. return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
  138598. }
  138599. func (ec *executionContext) fieldContext___Type_possibleTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  138600. fc = &graphql.FieldContext{
  138601. Object: "__Type",
  138602. Field: field,
  138603. IsMethod: true,
  138604. IsResolver: false,
  138605. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  138606. switch field.Name {
  138607. case "kind":
  138608. return ec.fieldContext___Type_kind(ctx, field)
  138609. case "name":
  138610. return ec.fieldContext___Type_name(ctx, field)
  138611. case "description":
  138612. return ec.fieldContext___Type_description(ctx, field)
  138613. case "fields":
  138614. return ec.fieldContext___Type_fields(ctx, field)
  138615. case "interfaces":
  138616. return ec.fieldContext___Type_interfaces(ctx, field)
  138617. case "possibleTypes":
  138618. return ec.fieldContext___Type_possibleTypes(ctx, field)
  138619. case "enumValues":
  138620. return ec.fieldContext___Type_enumValues(ctx, field)
  138621. case "inputFields":
  138622. return ec.fieldContext___Type_inputFields(ctx, field)
  138623. case "ofType":
  138624. return ec.fieldContext___Type_ofType(ctx, field)
  138625. case "specifiedByURL":
  138626. return ec.fieldContext___Type_specifiedByURL(ctx, field)
  138627. }
  138628. return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
  138629. },
  138630. }
  138631. return fc, nil
  138632. }
  138633. func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  138634. fc, err := ec.fieldContext___Type_enumValues(ctx, field)
  138635. if err != nil {
  138636. return graphql.Null
  138637. }
  138638. ctx = graphql.WithFieldContext(ctx, fc)
  138639. defer func() {
  138640. if r := recover(); r != nil {
  138641. ec.Error(ctx, ec.Recover(ctx, r))
  138642. ret = graphql.Null
  138643. }
  138644. }()
  138645. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  138646. ctx = rctx // use context from middleware stack in children
  138647. return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil
  138648. })
  138649. if err != nil {
  138650. ec.Error(ctx, err)
  138651. return graphql.Null
  138652. }
  138653. if resTmp == nil {
  138654. return graphql.Null
  138655. }
  138656. res := resTmp.([]introspection.EnumValue)
  138657. fc.Result = res
  138658. return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res)
  138659. }
  138660. func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  138661. fc = &graphql.FieldContext{
  138662. Object: "__Type",
  138663. Field: field,
  138664. IsMethod: true,
  138665. IsResolver: false,
  138666. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  138667. switch field.Name {
  138668. case "name":
  138669. return ec.fieldContext___EnumValue_name(ctx, field)
  138670. case "description":
  138671. return ec.fieldContext___EnumValue_description(ctx, field)
  138672. case "isDeprecated":
  138673. return ec.fieldContext___EnumValue_isDeprecated(ctx, field)
  138674. case "deprecationReason":
  138675. return ec.fieldContext___EnumValue_deprecationReason(ctx, field)
  138676. }
  138677. return nil, fmt.Errorf("no field named %q was found under type __EnumValue", field.Name)
  138678. },
  138679. }
  138680. defer func() {
  138681. if r := recover(); r != nil {
  138682. err = ec.Recover(ctx, r)
  138683. ec.Error(ctx, err)
  138684. }
  138685. }()
  138686. ctx = graphql.WithFieldContext(ctx, fc)
  138687. if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
  138688. ec.Error(ctx, err)
  138689. return
  138690. }
  138691. return fc, nil
  138692. }
  138693. func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  138694. fc, err := ec.fieldContext___Type_inputFields(ctx, field)
  138695. if err != nil {
  138696. return graphql.Null
  138697. }
  138698. ctx = graphql.WithFieldContext(ctx, fc)
  138699. defer func() {
  138700. if r := recover(); r != nil {
  138701. ec.Error(ctx, ec.Recover(ctx, r))
  138702. ret = graphql.Null
  138703. }
  138704. }()
  138705. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  138706. ctx = rctx // use context from middleware stack in children
  138707. return obj.InputFields(), nil
  138708. })
  138709. if err != nil {
  138710. ec.Error(ctx, err)
  138711. return graphql.Null
  138712. }
  138713. if resTmp == nil {
  138714. return graphql.Null
  138715. }
  138716. res := resTmp.([]introspection.InputValue)
  138717. fc.Result = res
  138718. return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
  138719. }
  138720. func (ec *executionContext) fieldContext___Type_inputFields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  138721. fc = &graphql.FieldContext{
  138722. Object: "__Type",
  138723. Field: field,
  138724. IsMethod: true,
  138725. IsResolver: false,
  138726. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  138727. switch field.Name {
  138728. case "name":
  138729. return ec.fieldContext___InputValue_name(ctx, field)
  138730. case "description":
  138731. return ec.fieldContext___InputValue_description(ctx, field)
  138732. case "type":
  138733. return ec.fieldContext___InputValue_type(ctx, field)
  138734. case "defaultValue":
  138735. return ec.fieldContext___InputValue_defaultValue(ctx, field)
  138736. }
  138737. return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
  138738. },
  138739. }
  138740. return fc, nil
  138741. }
  138742. func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  138743. fc, err := ec.fieldContext___Type_ofType(ctx, field)
  138744. if err != nil {
  138745. return graphql.Null
  138746. }
  138747. ctx = graphql.WithFieldContext(ctx, fc)
  138748. defer func() {
  138749. if r := recover(); r != nil {
  138750. ec.Error(ctx, ec.Recover(ctx, r))
  138751. ret = graphql.Null
  138752. }
  138753. }()
  138754. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  138755. ctx = rctx // use context from middleware stack in children
  138756. return obj.OfType(), nil
  138757. })
  138758. if err != nil {
  138759. ec.Error(ctx, err)
  138760. return graphql.Null
  138761. }
  138762. if resTmp == nil {
  138763. return graphql.Null
  138764. }
  138765. res := resTmp.(*introspection.Type)
  138766. fc.Result = res
  138767. return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
  138768. }
  138769. func (ec *executionContext) fieldContext___Type_ofType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  138770. fc = &graphql.FieldContext{
  138771. Object: "__Type",
  138772. Field: field,
  138773. IsMethod: true,
  138774. IsResolver: false,
  138775. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  138776. switch field.Name {
  138777. case "kind":
  138778. return ec.fieldContext___Type_kind(ctx, field)
  138779. case "name":
  138780. return ec.fieldContext___Type_name(ctx, field)
  138781. case "description":
  138782. return ec.fieldContext___Type_description(ctx, field)
  138783. case "fields":
  138784. return ec.fieldContext___Type_fields(ctx, field)
  138785. case "interfaces":
  138786. return ec.fieldContext___Type_interfaces(ctx, field)
  138787. case "possibleTypes":
  138788. return ec.fieldContext___Type_possibleTypes(ctx, field)
  138789. case "enumValues":
  138790. return ec.fieldContext___Type_enumValues(ctx, field)
  138791. case "inputFields":
  138792. return ec.fieldContext___Type_inputFields(ctx, field)
  138793. case "ofType":
  138794. return ec.fieldContext___Type_ofType(ctx, field)
  138795. case "specifiedByURL":
  138796. return ec.fieldContext___Type_specifiedByURL(ctx, field)
  138797. }
  138798. return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
  138799. },
  138800. }
  138801. return fc, nil
  138802. }
  138803. func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
  138804. fc, err := ec.fieldContext___Type_specifiedByURL(ctx, field)
  138805. if err != nil {
  138806. return graphql.Null
  138807. }
  138808. ctx = graphql.WithFieldContext(ctx, fc)
  138809. defer func() {
  138810. if r := recover(); r != nil {
  138811. ec.Error(ctx, ec.Recover(ctx, r))
  138812. ret = graphql.Null
  138813. }
  138814. }()
  138815. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
  138816. ctx = rctx // use context from middleware stack in children
  138817. return obj.SpecifiedByURL(), nil
  138818. })
  138819. if err != nil {
  138820. ec.Error(ctx, err)
  138821. return graphql.Null
  138822. }
  138823. if resTmp == nil {
  138824. return graphql.Null
  138825. }
  138826. res := resTmp.(*string)
  138827. fc.Result = res
  138828. return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
  138829. }
  138830. func (ec *executionContext) fieldContext___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
  138831. fc = &graphql.FieldContext{
  138832. Object: "__Type",
  138833. Field: field,
  138834. IsMethod: true,
  138835. IsResolver: false,
  138836. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
  138837. return nil, errors.New("field of type String does not have child fields")
  138838. },
  138839. }
  138840. return fc, nil
  138841. }
  138842. // endregion **************************** field.gotpl *****************************
  138843. // region **************************** input.gotpl *****************************
  138844. func (ec *executionContext) unmarshalInputContextualPricingContext(ctx context.Context, obj interface{}) (ContextualPricingContext, error) {
  138845. var it ContextualPricingContext
  138846. asMap := map[string]interface{}{}
  138847. for k, v := range obj.(map[string]interface{}) {
  138848. asMap[k] = v
  138849. }
  138850. fieldsInOrder := [...]string{"country", "companyLocationId"}
  138851. for _, k := range fieldsInOrder {
  138852. v, ok := asMap[k]
  138853. if !ok {
  138854. continue
  138855. }
  138856. switch k {
  138857. case "country":
  138858. var err error
  138859. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("country"))
  138860. it.Country, err = ec.unmarshalOCountryCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCode(ctx, v)
  138861. if err != nil {
  138862. return it, err
  138863. }
  138864. case "companyLocationId":
  138865. var err error
  138866. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyLocationId"))
  138867. it.CompanyLocationID, err = ec.unmarshalOID2ᚖstring(ctx, v)
  138868. if err != nil {
  138869. return it, err
  138870. }
  138871. }
  138872. }
  138873. return it, nil
  138874. }
  138875. func (ec *executionContext) unmarshalInputCustomerInput(ctx context.Context, obj interface{}) (CustomerInput, error) {
  138876. var it CustomerInput
  138877. asMap := map[string]interface{}{}
  138878. for k, v := range obj.(map[string]interface{}) {
  138879. asMap[k] = v
  138880. }
  138881. fieldsInOrder := [...]string{"addresses", "email", "firstName", "id", "lastName", "locale", "metafields", "note", "phone", "privateMetafields", "tags"}
  138882. for _, k := range fieldsInOrder {
  138883. v, ok := asMap[k]
  138884. if !ok {
  138885. continue
  138886. }
  138887. switch k {
  138888. case "addresses":
  138889. var err error
  138890. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addresses"))
  138891. it.Addresses, err = ec.unmarshalOMailingAddressInput2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMailingAddressInputᚄ(ctx, v)
  138892. if err != nil {
  138893. return it, err
  138894. }
  138895. case "email":
  138896. var err error
  138897. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email"))
  138898. it.Email, err = ec.unmarshalOString2ᚖstring(ctx, v)
  138899. if err != nil {
  138900. return it, err
  138901. }
  138902. case "firstName":
  138903. var err error
  138904. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstName"))
  138905. it.FirstName, err = ec.unmarshalOString2ᚖstring(ctx, v)
  138906. if err != nil {
  138907. return it, err
  138908. }
  138909. case "id":
  138910. var err error
  138911. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
  138912. it.ID, err = ec.unmarshalOID2ᚖstring(ctx, v)
  138913. if err != nil {
  138914. return it, err
  138915. }
  138916. case "lastName":
  138917. var err error
  138918. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastName"))
  138919. it.LastName, err = ec.unmarshalOString2ᚖstring(ctx, v)
  138920. if err != nil {
  138921. return it, err
  138922. }
  138923. case "locale":
  138924. var err error
  138925. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("locale"))
  138926. it.Locale, err = ec.unmarshalOString2ᚖstring(ctx, v)
  138927. if err != nil {
  138928. return it, err
  138929. }
  138930. case "metafields":
  138931. var err error
  138932. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metafields"))
  138933. it.Metafields, err = ec.unmarshalOMetafieldInput2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldInputᚄ(ctx, v)
  138934. if err != nil {
  138935. return it, err
  138936. }
  138937. case "note":
  138938. var err error
  138939. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("note"))
  138940. it.Note, err = ec.unmarshalOString2ᚖstring(ctx, v)
  138941. if err != nil {
  138942. return it, err
  138943. }
  138944. case "phone":
  138945. var err error
  138946. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phone"))
  138947. it.Phone, err = ec.unmarshalOString2ᚖstring(ctx, v)
  138948. if err != nil {
  138949. return it, err
  138950. }
  138951. case "privateMetafields":
  138952. var err error
  138953. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("privateMetafields"))
  138954. it.PrivateMetafields, err = ec.unmarshalOPrivateMetafieldInput2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafieldInputᚄ(ctx, v)
  138955. if err != nil {
  138956. return it, err
  138957. }
  138958. case "tags":
  138959. var err error
  138960. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags"))
  138961. it.Tags, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v)
  138962. if err != nil {
  138963. return it, err
  138964. }
  138965. }
  138966. }
  138967. return it, nil
  138968. }
  138969. func (ec *executionContext) unmarshalInputImageTransformInput(ctx context.Context, obj interface{}) (ImageTransformInput, error) {
  138970. var it ImageTransformInput
  138971. asMap := map[string]interface{}{}
  138972. for k, v := range obj.(map[string]interface{}) {
  138973. asMap[k] = v
  138974. }
  138975. if _, present := asMap["scale"]; !present {
  138976. asMap["scale"] = 1
  138977. }
  138978. fieldsInOrder := [...]string{"crop", "maxWidth", "maxHeight", "scale", "preferredContentType"}
  138979. for _, k := range fieldsInOrder {
  138980. v, ok := asMap[k]
  138981. if !ok {
  138982. continue
  138983. }
  138984. switch k {
  138985. case "crop":
  138986. var err error
  138987. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("crop"))
  138988. it.Crop, err = ec.unmarshalOCropRegion2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCropRegion(ctx, v)
  138989. if err != nil {
  138990. return it, err
  138991. }
  138992. case "maxWidth":
  138993. var err error
  138994. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("maxWidth"))
  138995. it.MaxWidth, err = ec.unmarshalOInt2ᚖint(ctx, v)
  138996. if err != nil {
  138997. return it, err
  138998. }
  138999. case "maxHeight":
  139000. var err error
  139001. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("maxHeight"))
  139002. it.MaxHeight, err = ec.unmarshalOInt2ᚖint(ctx, v)
  139003. if err != nil {
  139004. return it, err
  139005. }
  139006. case "scale":
  139007. var err error
  139008. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scale"))
  139009. it.Scale, err = ec.unmarshalOInt2ᚖint(ctx, v)
  139010. if err != nil {
  139011. return it, err
  139012. }
  139013. case "preferredContentType":
  139014. var err error
  139015. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("preferredContentType"))
  139016. it.PreferredContentType, err = ec.unmarshalOImageContentType2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImageContentType(ctx, v)
  139017. if err != nil {
  139018. return it, err
  139019. }
  139020. }
  139021. }
  139022. return it, nil
  139023. }
  139024. func (ec *executionContext) unmarshalInputMailingAddressInput(ctx context.Context, obj interface{}) (MailingAddressInput, error) {
  139025. var it MailingAddressInput
  139026. asMap := map[string]interface{}{}
  139027. for k, v := range obj.(map[string]interface{}) {
  139028. asMap[k] = v
  139029. }
  139030. fieldsInOrder := [...]string{"address1", "address2", "city", "company", "countryCode", "firstName", "lastName", "phone", "provinceCode", "zip"}
  139031. for _, k := range fieldsInOrder {
  139032. v, ok := asMap[k]
  139033. if !ok {
  139034. continue
  139035. }
  139036. switch k {
  139037. case "address1":
  139038. var err error
  139039. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("address1"))
  139040. it.Address1, err = ec.unmarshalOString2ᚖstring(ctx, v)
  139041. if err != nil {
  139042. return it, err
  139043. }
  139044. case "address2":
  139045. var err error
  139046. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("address2"))
  139047. it.Address2, err = ec.unmarshalOString2ᚖstring(ctx, v)
  139048. if err != nil {
  139049. return it, err
  139050. }
  139051. case "city":
  139052. var err error
  139053. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("city"))
  139054. it.City, err = ec.unmarshalOString2ᚖstring(ctx, v)
  139055. if err != nil {
  139056. return it, err
  139057. }
  139058. case "company":
  139059. var err error
  139060. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("company"))
  139061. it.Company, err = ec.unmarshalOString2ᚖstring(ctx, v)
  139062. if err != nil {
  139063. return it, err
  139064. }
  139065. case "countryCode":
  139066. var err error
  139067. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("countryCode"))
  139068. it.CountryCode, err = ec.unmarshalOCountryCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCode(ctx, v)
  139069. if err != nil {
  139070. return it, err
  139071. }
  139072. case "firstName":
  139073. var err error
  139074. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstName"))
  139075. it.FirstName, err = ec.unmarshalOString2ᚖstring(ctx, v)
  139076. if err != nil {
  139077. return it, err
  139078. }
  139079. case "lastName":
  139080. var err error
  139081. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastName"))
  139082. it.LastName, err = ec.unmarshalOString2ᚖstring(ctx, v)
  139083. if err != nil {
  139084. return it, err
  139085. }
  139086. case "phone":
  139087. var err error
  139088. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phone"))
  139089. it.Phone, err = ec.unmarshalOString2ᚖstring(ctx, v)
  139090. if err != nil {
  139091. return it, err
  139092. }
  139093. case "provinceCode":
  139094. var err error
  139095. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("provinceCode"))
  139096. it.ProvinceCode, err = ec.unmarshalOString2ᚖstring(ctx, v)
  139097. if err != nil {
  139098. return it, err
  139099. }
  139100. case "zip":
  139101. var err error
  139102. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("zip"))
  139103. it.Zip, err = ec.unmarshalOString2ᚖstring(ctx, v)
  139104. if err != nil {
  139105. return it, err
  139106. }
  139107. }
  139108. }
  139109. return it, nil
  139110. }
  139111. func (ec *executionContext) unmarshalInputMetafieldInput(ctx context.Context, obj interface{}) (MetafieldInput, error) {
  139112. var it MetafieldInput
  139113. asMap := map[string]interface{}{}
  139114. for k, v := range obj.(map[string]interface{}) {
  139115. asMap[k] = v
  139116. }
  139117. fieldsInOrder := [...]string{"description", "id", "namespace", "key", "value", "type"}
  139118. for _, k := range fieldsInOrder {
  139119. v, ok := asMap[k]
  139120. if !ok {
  139121. continue
  139122. }
  139123. switch k {
  139124. case "description":
  139125. var err error
  139126. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description"))
  139127. it.Description, err = ec.unmarshalOString2ᚖstring(ctx, v)
  139128. if err != nil {
  139129. return it, err
  139130. }
  139131. case "id":
  139132. var err error
  139133. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
  139134. it.ID, err = ec.unmarshalOID2ᚖstring(ctx, v)
  139135. if err != nil {
  139136. return it, err
  139137. }
  139138. case "namespace":
  139139. var err error
  139140. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  139141. it.Namespace, err = ec.unmarshalOString2ᚖstring(ctx, v)
  139142. if err != nil {
  139143. return it, err
  139144. }
  139145. case "key":
  139146. var err error
  139147. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key"))
  139148. it.Key, err = ec.unmarshalOString2ᚖstring(ctx, v)
  139149. if err != nil {
  139150. return it, err
  139151. }
  139152. case "value":
  139153. var err error
  139154. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value"))
  139155. it.Value, err = ec.unmarshalOString2ᚖstring(ctx, v)
  139156. if err != nil {
  139157. return it, err
  139158. }
  139159. case "type":
  139160. var err error
  139161. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type"))
  139162. it.Type, err = ec.unmarshalOString2ᚖstring(ctx, v)
  139163. if err != nil {
  139164. return it, err
  139165. }
  139166. }
  139167. }
  139168. return it, nil
  139169. }
  139170. func (ec *executionContext) unmarshalInputPrivateMetafieldInput(ctx context.Context, obj interface{}) (PrivateMetafieldInput, error) {
  139171. var it PrivateMetafieldInput
  139172. asMap := map[string]interface{}{}
  139173. for k, v := range obj.(map[string]interface{}) {
  139174. asMap[k] = v
  139175. }
  139176. fieldsInOrder := [...]string{"owner", "namespace", "key", "valueInput"}
  139177. for _, k := range fieldsInOrder {
  139178. v, ok := asMap[k]
  139179. if !ok {
  139180. continue
  139181. }
  139182. switch k {
  139183. case "owner":
  139184. var err error
  139185. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("owner"))
  139186. it.Owner, err = ec.unmarshalOID2ᚖstring(ctx, v)
  139187. if err != nil {
  139188. return it, err
  139189. }
  139190. case "namespace":
  139191. var err error
  139192. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace"))
  139193. it.Namespace, err = ec.unmarshalNString2string(ctx, v)
  139194. if err != nil {
  139195. return it, err
  139196. }
  139197. case "key":
  139198. var err error
  139199. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key"))
  139200. it.Key, err = ec.unmarshalNString2string(ctx, v)
  139201. if err != nil {
  139202. return it, err
  139203. }
  139204. case "valueInput":
  139205. var err error
  139206. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("valueInput"))
  139207. it.ValueInput, err = ec.unmarshalNPrivateMetafieldValueInput2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafieldValueInput(ctx, v)
  139208. if err != nil {
  139209. return it, err
  139210. }
  139211. }
  139212. }
  139213. return it, nil
  139214. }
  139215. func (ec *executionContext) unmarshalInputPrivateMetafieldValueInput(ctx context.Context, obj interface{}) (PrivateMetafieldValueInput, error) {
  139216. var it PrivateMetafieldValueInput
  139217. asMap := map[string]interface{}{}
  139218. for k, v := range obj.(map[string]interface{}) {
  139219. asMap[k] = v
  139220. }
  139221. fieldsInOrder := [...]string{"value", "valueType"}
  139222. for _, k := range fieldsInOrder {
  139223. v, ok := asMap[k]
  139224. if !ok {
  139225. continue
  139226. }
  139227. switch k {
  139228. case "value":
  139229. var err error
  139230. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value"))
  139231. it.Value, err = ec.unmarshalNString2string(ctx, v)
  139232. if err != nil {
  139233. return it, err
  139234. }
  139235. case "valueType":
  139236. var err error
  139237. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("valueType"))
  139238. it.ValueType, err = ec.unmarshalNPrivateMetafieldValueType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafieldValueType(ctx, v)
  139239. if err != nil {
  139240. return it, err
  139241. }
  139242. }
  139243. }
  139244. return it, nil
  139245. }
  139246. func (ec *executionContext) unmarshalInputRefundDutyInput(ctx context.Context, obj interface{}) (RefundDutyInput, error) {
  139247. var it RefundDutyInput
  139248. asMap := map[string]interface{}{}
  139249. for k, v := range obj.(map[string]interface{}) {
  139250. asMap[k] = v
  139251. }
  139252. fieldsInOrder := [...]string{"dutyId", "refundType"}
  139253. for _, k := range fieldsInOrder {
  139254. v, ok := asMap[k]
  139255. if !ok {
  139256. continue
  139257. }
  139258. switch k {
  139259. case "dutyId":
  139260. var err error
  139261. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dutyId"))
  139262. it.DutyID, err = ec.unmarshalNID2string(ctx, v)
  139263. if err != nil {
  139264. return it, err
  139265. }
  139266. case "refundType":
  139267. var err error
  139268. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refundType"))
  139269. it.RefundType, err = ec.unmarshalORefundDutyRefundType2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundDutyRefundType(ctx, v)
  139270. if err != nil {
  139271. return it, err
  139272. }
  139273. }
  139274. }
  139275. return it, nil
  139276. }
  139277. func (ec *executionContext) unmarshalInputRefundLineItemInput(ctx context.Context, obj interface{}) (RefundLineItemInput, error) {
  139278. var it RefundLineItemInput
  139279. asMap := map[string]interface{}{}
  139280. for k, v := range obj.(map[string]interface{}) {
  139281. asMap[k] = v
  139282. }
  139283. fieldsInOrder := [...]string{"lineItemId", "quantity", "restockType", "locationId"}
  139284. for _, k := range fieldsInOrder {
  139285. v, ok := asMap[k]
  139286. if !ok {
  139287. continue
  139288. }
  139289. switch k {
  139290. case "lineItemId":
  139291. var err error
  139292. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lineItemId"))
  139293. it.LineItemID, err = ec.unmarshalNID2string(ctx, v)
  139294. if err != nil {
  139295. return it, err
  139296. }
  139297. case "quantity":
  139298. var err error
  139299. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("quantity"))
  139300. it.Quantity, err = ec.unmarshalNInt2int(ctx, v)
  139301. if err != nil {
  139302. return it, err
  139303. }
  139304. case "restockType":
  139305. var err error
  139306. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("restockType"))
  139307. it.RestockType, err = ec.unmarshalORefundLineItemRestockType2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundLineItemRestockType(ctx, v)
  139308. if err != nil {
  139309. return it, err
  139310. }
  139311. case "locationId":
  139312. var err error
  139313. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("locationId"))
  139314. it.LocationID, err = ec.unmarshalOID2ᚖstring(ctx, v)
  139315. if err != nil {
  139316. return it, err
  139317. }
  139318. }
  139319. }
  139320. return it, nil
  139321. }
  139322. func (ec *executionContext) unmarshalInputSEOInput(ctx context.Context, obj interface{}) (SEOInput, error) {
  139323. var it SEOInput
  139324. asMap := map[string]interface{}{}
  139325. for k, v := range obj.(map[string]interface{}) {
  139326. asMap[k] = v
  139327. }
  139328. fieldsInOrder := [...]string{"title", "description"}
  139329. for _, k := range fieldsInOrder {
  139330. v, ok := asMap[k]
  139331. if !ok {
  139332. continue
  139333. }
  139334. switch k {
  139335. case "title":
  139336. var err error
  139337. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title"))
  139338. it.Title, err = ec.unmarshalOString2ᚖstring(ctx, v)
  139339. if err != nil {
  139340. return it, err
  139341. }
  139342. case "description":
  139343. var err error
  139344. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description"))
  139345. it.Description, err = ec.unmarshalOString2ᚖstring(ctx, v)
  139346. if err != nil {
  139347. return it, err
  139348. }
  139349. }
  139350. }
  139351. return it, nil
  139352. }
  139353. // endregion **************************** input.gotpl *****************************
  139354. // region ************************** interface.gotpl ***************************
  139355. func (ec *executionContext) _AppPricingDetails(ctx context.Context, sel ast.SelectionSet, obj AppPricingDetails) graphql.Marshaler {
  139356. switch obj := (obj).(type) {
  139357. case nil:
  139358. return graphql.Null
  139359. case AppRecurringPricing:
  139360. return ec._AppRecurringPricing(ctx, sel, &obj)
  139361. case *AppRecurringPricing:
  139362. if obj == nil {
  139363. return graphql.Null
  139364. }
  139365. return ec._AppRecurringPricing(ctx, sel, obj)
  139366. case AppUsagePricing:
  139367. return ec._AppUsagePricing(ctx, sel, &obj)
  139368. case *AppUsagePricing:
  139369. if obj == nil {
  139370. return graphql.Null
  139371. }
  139372. return ec._AppUsagePricing(ctx, sel, obj)
  139373. default:
  139374. panic(fmt.Errorf("unexpected type %T", obj))
  139375. }
  139376. }
  139377. func (ec *executionContext) _AppPurchase(ctx context.Context, sel ast.SelectionSet, obj AppPurchase) graphql.Marshaler {
  139378. switch obj := (obj).(type) {
  139379. case nil:
  139380. return graphql.Null
  139381. case AppPurchaseOneTime:
  139382. return ec._AppPurchaseOneTime(ctx, sel, &obj)
  139383. case *AppPurchaseOneTime:
  139384. if obj == nil {
  139385. return graphql.Null
  139386. }
  139387. return ec._AppPurchaseOneTime(ctx, sel, obj)
  139388. default:
  139389. panic(fmt.Errorf("unexpected type %T", obj))
  139390. }
  139391. }
  139392. func (ec *executionContext) _AppSubscriptionDiscountValue(ctx context.Context, sel ast.SelectionSet, obj AppSubscriptionDiscountValue) graphql.Marshaler {
  139393. switch obj := (obj).(type) {
  139394. case nil:
  139395. return graphql.Null
  139396. case AppSubscriptionDiscountAmount:
  139397. return ec._AppSubscriptionDiscountAmount(ctx, sel, &obj)
  139398. case *AppSubscriptionDiscountAmount:
  139399. if obj == nil {
  139400. return graphql.Null
  139401. }
  139402. return ec._AppSubscriptionDiscountAmount(ctx, sel, obj)
  139403. case AppSubscriptionDiscountPercentage:
  139404. return ec._AppSubscriptionDiscountPercentage(ctx, sel, &obj)
  139405. case *AppSubscriptionDiscountPercentage:
  139406. if obj == nil {
  139407. return graphql.Null
  139408. }
  139409. return ec._AppSubscriptionDiscountPercentage(ctx, sel, obj)
  139410. default:
  139411. panic(fmt.Errorf("unexpected type %T", obj))
  139412. }
  139413. }
  139414. func (ec *executionContext) _CommentEventEmbed(ctx context.Context, sel ast.SelectionSet, obj CommentEventEmbed) graphql.Marshaler {
  139415. switch obj := (obj).(type) {
  139416. case nil:
  139417. return graphql.Null
  139418. case Customer:
  139419. return ec._Customer(ctx, sel, &obj)
  139420. case *Customer:
  139421. if obj == nil {
  139422. return graphql.Null
  139423. }
  139424. return ec._Customer(ctx, sel, obj)
  139425. case DraftOrder:
  139426. return ec._DraftOrder(ctx, sel, &obj)
  139427. case *DraftOrder:
  139428. if obj == nil {
  139429. return graphql.Null
  139430. }
  139431. return ec._DraftOrder(ctx, sel, obj)
  139432. case Order:
  139433. return ec._Order(ctx, sel, &obj)
  139434. case *Order:
  139435. if obj == nil {
  139436. return graphql.Null
  139437. }
  139438. return ec._Order(ctx, sel, obj)
  139439. case Product:
  139440. return ec._Product(ctx, sel, &obj)
  139441. case *Product:
  139442. if obj == nil {
  139443. return graphql.Null
  139444. }
  139445. return ec._Product(ctx, sel, obj)
  139446. case ProductVariant:
  139447. return ec._ProductVariant(ctx, sel, &obj)
  139448. case *ProductVariant:
  139449. if obj == nil {
  139450. return graphql.Null
  139451. }
  139452. return ec._ProductVariant(ctx, sel, obj)
  139453. default:
  139454. panic(fmt.Errorf("unexpected type %T", obj))
  139455. }
  139456. }
  139457. func (ec *executionContext) _CommentEventSubject(ctx context.Context, sel ast.SelectionSet, obj CommentEventSubject) graphql.Marshaler {
  139458. switch obj := (obj).(type) {
  139459. case nil:
  139460. return graphql.Null
  139461. case Company:
  139462. return ec._Company(ctx, sel, &obj)
  139463. case *Company:
  139464. if obj == nil {
  139465. return graphql.Null
  139466. }
  139467. return ec._Company(ctx, sel, obj)
  139468. case CompanyLocation:
  139469. return ec._CompanyLocation(ctx, sel, &obj)
  139470. case *CompanyLocation:
  139471. if obj == nil {
  139472. return graphql.Null
  139473. }
  139474. return ec._CompanyLocation(ctx, sel, obj)
  139475. case Customer:
  139476. return ec._Customer(ctx, sel, &obj)
  139477. case *Customer:
  139478. if obj == nil {
  139479. return graphql.Null
  139480. }
  139481. return ec._Customer(ctx, sel, obj)
  139482. case DraftOrder:
  139483. return ec._DraftOrder(ctx, sel, &obj)
  139484. case *DraftOrder:
  139485. if obj == nil {
  139486. return graphql.Null
  139487. }
  139488. return ec._DraftOrder(ctx, sel, obj)
  139489. case Order:
  139490. return ec._Order(ctx, sel, &obj)
  139491. case *Order:
  139492. if obj == nil {
  139493. return graphql.Null
  139494. }
  139495. return ec._Order(ctx, sel, obj)
  139496. default:
  139497. panic(fmt.Errorf("unexpected type %T", obj))
  139498. }
  139499. }
  139500. func (ec *executionContext) _CustomerMoment(ctx context.Context, sel ast.SelectionSet, obj CustomerMoment) graphql.Marshaler {
  139501. switch obj := (obj).(type) {
  139502. case nil:
  139503. return graphql.Null
  139504. case CustomerVisit:
  139505. return ec._CustomerVisit(ctx, sel, &obj)
  139506. case *CustomerVisit:
  139507. if obj == nil {
  139508. return graphql.Null
  139509. }
  139510. return ec._CustomerVisit(ctx, sel, obj)
  139511. default:
  139512. panic(fmt.Errorf("unexpected type %T", obj))
  139513. }
  139514. }
  139515. func (ec *executionContext) _CustomerPaymentInstrument(ctx context.Context, sel ast.SelectionSet, obj CustomerPaymentInstrument) graphql.Marshaler {
  139516. switch obj := (obj).(type) {
  139517. case nil:
  139518. return graphql.Null
  139519. case CustomerCreditCard:
  139520. return ec._CustomerCreditCard(ctx, sel, &obj)
  139521. case *CustomerCreditCard:
  139522. if obj == nil {
  139523. return graphql.Null
  139524. }
  139525. return ec._CustomerCreditCard(ctx, sel, obj)
  139526. case CustomerPaypalBillingAgreement:
  139527. return ec._CustomerPaypalBillingAgreement(ctx, sel, &obj)
  139528. case *CustomerPaypalBillingAgreement:
  139529. if obj == nil {
  139530. return graphql.Null
  139531. }
  139532. return ec._CustomerPaypalBillingAgreement(ctx, sel, obj)
  139533. case CustomerShopPayAgreement:
  139534. return ec._CustomerShopPayAgreement(ctx, sel, &obj)
  139535. case *CustomerShopPayAgreement:
  139536. if obj == nil {
  139537. return graphql.Null
  139538. }
  139539. return ec._CustomerShopPayAgreement(ctx, sel, obj)
  139540. default:
  139541. panic(fmt.Errorf("unexpected type %T", obj))
  139542. }
  139543. }
  139544. func (ec *executionContext) _DeliveryConditionCriteria(ctx context.Context, sel ast.SelectionSet, obj DeliveryConditionCriteria) graphql.Marshaler {
  139545. switch obj := (obj).(type) {
  139546. case nil:
  139547. return graphql.Null
  139548. case MoneyV2:
  139549. return ec._MoneyV2(ctx, sel, &obj)
  139550. case *MoneyV2:
  139551. if obj == nil {
  139552. return graphql.Null
  139553. }
  139554. return ec._MoneyV2(ctx, sel, obj)
  139555. case Weight:
  139556. return ec._Weight(ctx, sel, &obj)
  139557. case *Weight:
  139558. if obj == nil {
  139559. return graphql.Null
  139560. }
  139561. return ec._Weight(ctx, sel, obj)
  139562. default:
  139563. panic(fmt.Errorf("unexpected type %T", obj))
  139564. }
  139565. }
  139566. func (ec *executionContext) _DeliveryRateProvider(ctx context.Context, sel ast.SelectionSet, obj DeliveryRateProvider) graphql.Marshaler {
  139567. switch obj := (obj).(type) {
  139568. case nil:
  139569. return graphql.Null
  139570. case DeliveryParticipant:
  139571. return ec._DeliveryParticipant(ctx, sel, &obj)
  139572. case *DeliveryParticipant:
  139573. if obj == nil {
  139574. return graphql.Null
  139575. }
  139576. return ec._DeliveryParticipant(ctx, sel, obj)
  139577. case DeliveryRateDefinition:
  139578. return ec._DeliveryRateDefinition(ctx, sel, &obj)
  139579. case *DeliveryRateDefinition:
  139580. if obj == nil {
  139581. return graphql.Null
  139582. }
  139583. return ec._DeliveryRateDefinition(ctx, sel, obj)
  139584. default:
  139585. panic(fmt.Errorf("unexpected type %T", obj))
  139586. }
  139587. }
  139588. func (ec *executionContext) _DiscountApplication(ctx context.Context, sel ast.SelectionSet, obj DiscountApplication) graphql.Marshaler {
  139589. switch obj := (obj).(type) {
  139590. case nil:
  139591. return graphql.Null
  139592. case AutomaticDiscountApplication:
  139593. return ec._AutomaticDiscountApplication(ctx, sel, &obj)
  139594. case *AutomaticDiscountApplication:
  139595. if obj == nil {
  139596. return graphql.Null
  139597. }
  139598. return ec._AutomaticDiscountApplication(ctx, sel, obj)
  139599. case DiscountCodeApplication:
  139600. return ec._DiscountCodeApplication(ctx, sel, &obj)
  139601. case *DiscountCodeApplication:
  139602. if obj == nil {
  139603. return graphql.Null
  139604. }
  139605. return ec._DiscountCodeApplication(ctx, sel, obj)
  139606. case ManualDiscountApplication:
  139607. return ec._ManualDiscountApplication(ctx, sel, &obj)
  139608. case *ManualDiscountApplication:
  139609. if obj == nil {
  139610. return graphql.Null
  139611. }
  139612. return ec._ManualDiscountApplication(ctx, sel, obj)
  139613. case ScriptDiscountApplication:
  139614. return ec._ScriptDiscountApplication(ctx, sel, &obj)
  139615. case *ScriptDiscountApplication:
  139616. if obj == nil {
  139617. return graphql.Null
  139618. }
  139619. return ec._ScriptDiscountApplication(ctx, sel, obj)
  139620. default:
  139621. panic(fmt.Errorf("unexpected type %T", obj))
  139622. }
  139623. }
  139624. func (ec *executionContext) _DisplayableError(ctx context.Context, sel ast.SelectionSet, obj DisplayableError) graphql.Marshaler {
  139625. switch obj := (obj).(type) {
  139626. case nil:
  139627. return graphql.Null
  139628. case UserError:
  139629. return ec._UserError(ctx, sel, &obj)
  139630. case *UserError:
  139631. if obj == nil {
  139632. return graphql.Null
  139633. }
  139634. return ec._UserError(ctx, sel, obj)
  139635. case MediaUserError:
  139636. return ec._MediaUserError(ctx, sel, &obj)
  139637. case *MediaUserError:
  139638. if obj == nil {
  139639. return graphql.Null
  139640. }
  139641. return ec._MediaUserError(ctx, sel, obj)
  139642. case ProductChangeStatusUserError:
  139643. return ec._ProductChangeStatusUserError(ctx, sel, &obj)
  139644. case *ProductChangeStatusUserError:
  139645. if obj == nil {
  139646. return graphql.Null
  139647. }
  139648. return ec._ProductChangeStatusUserError(ctx, sel, obj)
  139649. case SellingPlanGroupUserError:
  139650. return ec._SellingPlanGroupUserError(ctx, sel, &obj)
  139651. case *SellingPlanGroupUserError:
  139652. if obj == nil {
  139653. return graphql.Null
  139654. }
  139655. return ec._SellingPlanGroupUserError(ctx, sel, obj)
  139656. case ProductVariantsBulkCreateUserError:
  139657. return ec._ProductVariantsBulkCreateUserError(ctx, sel, &obj)
  139658. case *ProductVariantsBulkCreateUserError:
  139659. if obj == nil {
  139660. return graphql.Null
  139661. }
  139662. return ec._ProductVariantsBulkCreateUserError(ctx, sel, obj)
  139663. case ProductVariantsBulkDeleteUserError:
  139664. return ec._ProductVariantsBulkDeleteUserError(ctx, sel, &obj)
  139665. case *ProductVariantsBulkDeleteUserError:
  139666. if obj == nil {
  139667. return graphql.Null
  139668. }
  139669. return ec._ProductVariantsBulkDeleteUserError(ctx, sel, obj)
  139670. case ProductVariantsBulkReorderUserError:
  139671. return ec._ProductVariantsBulkReorderUserError(ctx, sel, &obj)
  139672. case *ProductVariantsBulkReorderUserError:
  139673. if obj == nil {
  139674. return graphql.Null
  139675. }
  139676. return ec._ProductVariantsBulkReorderUserError(ctx, sel, obj)
  139677. case ProductVariantsBulkUpdateUserError:
  139678. return ec._ProductVariantsBulkUpdateUserError(ctx, sel, &obj)
  139679. case *ProductVariantsBulkUpdateUserError:
  139680. if obj == nil {
  139681. return graphql.Null
  139682. }
  139683. return ec._ProductVariantsBulkUpdateUserError(ctx, sel, obj)
  139684. default:
  139685. panic(fmt.Errorf("unexpected type %T", obj))
  139686. }
  139687. }
  139688. func (ec *executionContext) _Event(ctx context.Context, sel ast.SelectionSet, obj Event) graphql.Marshaler {
  139689. switch obj := (obj).(type) {
  139690. case nil:
  139691. return graphql.Null
  139692. case CommentEvent:
  139693. return ec._CommentEvent(ctx, sel, &obj)
  139694. case *CommentEvent:
  139695. if obj == nil {
  139696. return graphql.Null
  139697. }
  139698. return ec._CommentEvent(ctx, sel, obj)
  139699. case BasicEvent:
  139700. return ec._BasicEvent(ctx, sel, &obj)
  139701. case *BasicEvent:
  139702. if obj == nil {
  139703. return graphql.Null
  139704. }
  139705. return ec._BasicEvent(ctx, sel, obj)
  139706. default:
  139707. panic(fmt.Errorf("unexpected type %T", obj))
  139708. }
  139709. }
  139710. func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj File) graphql.Marshaler {
  139711. switch obj := (obj).(type) {
  139712. case nil:
  139713. return graphql.Null
  139714. case GenericFile:
  139715. return ec._GenericFile(ctx, sel, &obj)
  139716. case *GenericFile:
  139717. if obj == nil {
  139718. return graphql.Null
  139719. }
  139720. return ec._GenericFile(ctx, sel, obj)
  139721. case MediaImage:
  139722. return ec._MediaImage(ctx, sel, &obj)
  139723. case *MediaImage:
  139724. if obj == nil {
  139725. return graphql.Null
  139726. }
  139727. return ec._MediaImage(ctx, sel, obj)
  139728. case Video:
  139729. return ec._Video(ctx, sel, &obj)
  139730. case *Video:
  139731. if obj == nil {
  139732. return graphql.Null
  139733. }
  139734. return ec._Video(ctx, sel, obj)
  139735. default:
  139736. panic(fmt.Errorf("unexpected type %T", obj))
  139737. }
  139738. }
  139739. func (ec *executionContext) _HasEvents(ctx context.Context, sel ast.SelectionSet, obj HasEvents) graphql.Marshaler {
  139740. switch obj := (obj).(type) {
  139741. case nil:
  139742. return graphql.Null
  139743. case Company:
  139744. return ec._Company(ctx, sel, &obj)
  139745. case *Company:
  139746. if obj == nil {
  139747. return graphql.Null
  139748. }
  139749. return ec._Company(ctx, sel, obj)
  139750. case CompanyLocation:
  139751. return ec._CompanyLocation(ctx, sel, &obj)
  139752. case *CompanyLocation:
  139753. if obj == nil {
  139754. return graphql.Null
  139755. }
  139756. return ec._CompanyLocation(ctx, sel, obj)
  139757. case Customer:
  139758. return ec._Customer(ctx, sel, &obj)
  139759. case *Customer:
  139760. if obj == nil {
  139761. return graphql.Null
  139762. }
  139763. return ec._Customer(ctx, sel, obj)
  139764. case DraftOrder:
  139765. return ec._DraftOrder(ctx, sel, &obj)
  139766. case *DraftOrder:
  139767. if obj == nil {
  139768. return graphql.Null
  139769. }
  139770. return ec._DraftOrder(ctx, sel, obj)
  139771. case Order:
  139772. return ec._Order(ctx, sel, &obj)
  139773. case *Order:
  139774. if obj == nil {
  139775. return graphql.Null
  139776. }
  139777. return ec._Order(ctx, sel, obj)
  139778. default:
  139779. panic(fmt.Errorf("unexpected type %T", obj))
  139780. }
  139781. }
  139782. func (ec *executionContext) _HasLocalizationExtensions(ctx context.Context, sel ast.SelectionSet, obj HasLocalizationExtensions) graphql.Marshaler {
  139783. switch obj := (obj).(type) {
  139784. case nil:
  139785. return graphql.Null
  139786. case DraftOrder:
  139787. return ec._DraftOrder(ctx, sel, &obj)
  139788. case *DraftOrder:
  139789. if obj == nil {
  139790. return graphql.Null
  139791. }
  139792. return ec._DraftOrder(ctx, sel, obj)
  139793. case Order:
  139794. return ec._Order(ctx, sel, &obj)
  139795. case *Order:
  139796. if obj == nil {
  139797. return graphql.Null
  139798. }
  139799. return ec._Order(ctx, sel, obj)
  139800. default:
  139801. panic(fmt.Errorf("unexpected type %T", obj))
  139802. }
  139803. }
  139804. func (ec *executionContext) _HasMetafieldDefinitions(ctx context.Context, sel ast.SelectionSet, obj HasMetafieldDefinitions) graphql.Marshaler {
  139805. switch obj := (obj).(type) {
  139806. case nil:
  139807. return graphql.Null
  139808. case Customer:
  139809. return ec._Customer(ctx, sel, &obj)
  139810. case *Customer:
  139811. if obj == nil {
  139812. return graphql.Null
  139813. }
  139814. return ec._Customer(ctx, sel, obj)
  139815. case Location:
  139816. return ec._Location(ctx, sel, &obj)
  139817. case *Location:
  139818. if obj == nil {
  139819. return graphql.Null
  139820. }
  139821. return ec._Location(ctx, sel, obj)
  139822. case Order:
  139823. return ec._Order(ctx, sel, &obj)
  139824. case *Order:
  139825. if obj == nil {
  139826. return graphql.Null
  139827. }
  139828. return ec._Order(ctx, sel, obj)
  139829. case Product:
  139830. return ec._Product(ctx, sel, &obj)
  139831. case *Product:
  139832. if obj == nil {
  139833. return graphql.Null
  139834. }
  139835. return ec._Product(ctx, sel, obj)
  139836. case ProductVariant:
  139837. return ec._ProductVariant(ctx, sel, &obj)
  139838. case *ProductVariant:
  139839. if obj == nil {
  139840. return graphql.Null
  139841. }
  139842. return ec._ProductVariant(ctx, sel, obj)
  139843. case Collection:
  139844. return ec._Collection(ctx, sel, &obj)
  139845. case *Collection:
  139846. if obj == nil {
  139847. return graphql.Null
  139848. }
  139849. return ec._Collection(ctx, sel, obj)
  139850. default:
  139851. panic(fmt.Errorf("unexpected type %T", obj))
  139852. }
  139853. }
  139854. func (ec *executionContext) _HasMetafields(ctx context.Context, sel ast.SelectionSet, obj HasMetafields) graphql.Marshaler {
  139855. switch obj := (obj).(type) {
  139856. case nil:
  139857. return graphql.Null
  139858. case AppInstallation:
  139859. return ec._AppInstallation(ctx, sel, &obj)
  139860. case *AppInstallation:
  139861. if obj == nil {
  139862. return graphql.Null
  139863. }
  139864. return ec._AppInstallation(ctx, sel, obj)
  139865. case Customer:
  139866. return ec._Customer(ctx, sel, &obj)
  139867. case *Customer:
  139868. if obj == nil {
  139869. return graphql.Null
  139870. }
  139871. return ec._Customer(ctx, sel, obj)
  139872. case Location:
  139873. return ec._Location(ctx, sel, &obj)
  139874. case *Location:
  139875. if obj == nil {
  139876. return graphql.Null
  139877. }
  139878. return ec._Location(ctx, sel, obj)
  139879. case Image:
  139880. return ec._Image(ctx, sel, &obj)
  139881. case *Image:
  139882. if obj == nil {
  139883. return graphql.Null
  139884. }
  139885. return ec._Image(ctx, sel, obj)
  139886. case DraftOrder:
  139887. return ec._DraftOrder(ctx, sel, &obj)
  139888. case *DraftOrder:
  139889. if obj == nil {
  139890. return graphql.Null
  139891. }
  139892. return ec._DraftOrder(ctx, sel, obj)
  139893. case Order:
  139894. return ec._Order(ctx, sel, &obj)
  139895. case *Order:
  139896. if obj == nil {
  139897. return graphql.Null
  139898. }
  139899. return ec._Order(ctx, sel, obj)
  139900. case Product:
  139901. return ec._Product(ctx, sel, &obj)
  139902. case *Product:
  139903. if obj == nil {
  139904. return graphql.Null
  139905. }
  139906. return ec._Product(ctx, sel, obj)
  139907. case ProductVariant:
  139908. return ec._ProductVariant(ctx, sel, &obj)
  139909. case *ProductVariant:
  139910. if obj == nil {
  139911. return graphql.Null
  139912. }
  139913. return ec._ProductVariant(ctx, sel, obj)
  139914. case Collection:
  139915. return ec._Collection(ctx, sel, &obj)
  139916. case *Collection:
  139917. if obj == nil {
  139918. return graphql.Null
  139919. }
  139920. return ec._Collection(ctx, sel, obj)
  139921. case Shop:
  139922. return ec._Shop(ctx, sel, &obj)
  139923. case *Shop:
  139924. if obj == nil {
  139925. return graphql.Null
  139926. }
  139927. return ec._Shop(ctx, sel, obj)
  139928. default:
  139929. panic(fmt.Errorf("unexpected type %T", obj))
  139930. }
  139931. }
  139932. func (ec *executionContext) _HasPublishedTranslations(ctx context.Context, sel ast.SelectionSet, obj HasPublishedTranslations) graphql.Marshaler {
  139933. switch obj := (obj).(type) {
  139934. case nil:
  139935. return graphql.Null
  139936. case Link:
  139937. return ec._Link(ctx, sel, &obj)
  139938. case *Link:
  139939. if obj == nil {
  139940. return graphql.Null
  139941. }
  139942. return ec._Link(ctx, sel, obj)
  139943. case OnlineStorePage:
  139944. return ec._OnlineStorePage(ctx, sel, &obj)
  139945. case *OnlineStorePage:
  139946. if obj == nil {
  139947. return graphql.Null
  139948. }
  139949. return ec._OnlineStorePage(ctx, sel, obj)
  139950. case Product:
  139951. return ec._Product(ctx, sel, &obj)
  139952. case *Product:
  139953. if obj == nil {
  139954. return graphql.Null
  139955. }
  139956. return ec._Product(ctx, sel, obj)
  139957. case ProductVariant:
  139958. return ec._ProductVariant(ctx, sel, &obj)
  139959. case *ProductVariant:
  139960. if obj == nil {
  139961. return graphql.Null
  139962. }
  139963. return ec._ProductVariant(ctx, sel, obj)
  139964. case ProductOption:
  139965. return ec._ProductOption(ctx, sel, &obj)
  139966. case *ProductOption:
  139967. if obj == nil {
  139968. return graphql.Null
  139969. }
  139970. return ec._ProductOption(ctx, sel, obj)
  139971. case Collection:
  139972. return ec._Collection(ctx, sel, &obj)
  139973. case *Collection:
  139974. if obj == nil {
  139975. return graphql.Null
  139976. }
  139977. return ec._Collection(ctx, sel, obj)
  139978. case Shop:
  139979. return ec._Shop(ctx, sel, &obj)
  139980. case *Shop:
  139981. if obj == nil {
  139982. return graphql.Null
  139983. }
  139984. return ec._Shop(ctx, sel, obj)
  139985. case ShopPolicy:
  139986. return ec._ShopPolicy(ctx, sel, &obj)
  139987. case *ShopPolicy:
  139988. if obj == nil {
  139989. return graphql.Null
  139990. }
  139991. return ec._ShopPolicy(ctx, sel, obj)
  139992. default:
  139993. panic(fmt.Errorf("unexpected type %T", obj))
  139994. }
  139995. }
  139996. func (ec *executionContext) _LegacyInteroperability(ctx context.Context, sel ast.SelectionSet, obj LegacyInteroperability) graphql.Marshaler {
  139997. switch obj := (obj).(type) {
  139998. case nil:
  139999. return graphql.Null
  140000. case Customer:
  140001. return ec._Customer(ctx, sel, &obj)
  140002. case *Customer:
  140003. if obj == nil {
  140004. return graphql.Null
  140005. }
  140006. return ec._Customer(ctx, sel, obj)
  140007. case MarketingEvent:
  140008. return ec._MarketingEvent(ctx, sel, &obj)
  140009. case *MarketingEvent:
  140010. if obj == nil {
  140011. return graphql.Null
  140012. }
  140013. return ec._MarketingEvent(ctx, sel, obj)
  140014. case Fulfillment:
  140015. return ec._Fulfillment(ctx, sel, &obj)
  140016. case *Fulfillment:
  140017. if obj == nil {
  140018. return graphql.Null
  140019. }
  140020. return ec._Fulfillment(ctx, sel, obj)
  140021. case InventoryItem:
  140022. return ec._InventoryItem(ctx, sel, &obj)
  140023. case *InventoryItem:
  140024. if obj == nil {
  140025. return graphql.Null
  140026. }
  140027. return ec._InventoryItem(ctx, sel, obj)
  140028. case Location:
  140029. return ec._Location(ctx, sel, &obj)
  140030. case *Location:
  140031. if obj == nil {
  140032. return graphql.Null
  140033. }
  140034. return ec._Location(ctx, sel, obj)
  140035. case Metafield:
  140036. return ec._Metafield(ctx, sel, &obj)
  140037. case *Metafield:
  140038. if obj == nil {
  140039. return graphql.Null
  140040. }
  140041. return ec._Metafield(ctx, sel, obj)
  140042. case DraftOrder:
  140043. return ec._DraftOrder(ctx, sel, &obj)
  140044. case *DraftOrder:
  140045. if obj == nil {
  140046. return graphql.Null
  140047. }
  140048. return ec._DraftOrder(ctx, sel, obj)
  140049. case Order:
  140050. return ec._Order(ctx, sel, &obj)
  140051. case *Order:
  140052. if obj == nil {
  140053. return graphql.Null
  140054. }
  140055. return ec._Order(ctx, sel, obj)
  140056. case Refund:
  140057. return ec._Refund(ctx, sel, &obj)
  140058. case *Refund:
  140059. if obj == nil {
  140060. return graphql.Null
  140061. }
  140062. return ec._Refund(ctx, sel, obj)
  140063. case Product:
  140064. return ec._Product(ctx, sel, &obj)
  140065. case *Product:
  140066. if obj == nil {
  140067. return graphql.Null
  140068. }
  140069. return ec._Product(ctx, sel, obj)
  140070. case ProductVariant:
  140071. return ec._ProductVariant(ctx, sel, &obj)
  140072. case *ProductVariant:
  140073. if obj == nil {
  140074. return graphql.Null
  140075. }
  140076. return ec._ProductVariant(ctx, sel, obj)
  140077. case SavedSearch:
  140078. return ec._SavedSearch(ctx, sel, &obj)
  140079. case *SavedSearch:
  140080. if obj == nil {
  140081. return graphql.Null
  140082. }
  140083. return ec._SavedSearch(ctx, sel, obj)
  140084. default:
  140085. panic(fmt.Errorf("unexpected type %T", obj))
  140086. }
  140087. }
  140088. func (ec *executionContext) _MarketRegion(ctx context.Context, sel ast.SelectionSet, obj MarketRegion) graphql.Marshaler {
  140089. switch obj := (obj).(type) {
  140090. case nil:
  140091. return graphql.Null
  140092. default:
  140093. panic(fmt.Errorf("unexpected type %T", obj))
  140094. }
  140095. }
  140096. func (ec *executionContext) _Media(ctx context.Context, sel ast.SelectionSet, obj Media) graphql.Marshaler {
  140097. switch obj := (obj).(type) {
  140098. case nil:
  140099. return graphql.Null
  140100. case MediaImage:
  140101. return ec._MediaImage(ctx, sel, &obj)
  140102. case *MediaImage:
  140103. if obj == nil {
  140104. return graphql.Null
  140105. }
  140106. return ec._MediaImage(ctx, sel, obj)
  140107. case Video:
  140108. return ec._Video(ctx, sel, &obj)
  140109. case *Video:
  140110. if obj == nil {
  140111. return graphql.Null
  140112. }
  140113. return ec._Video(ctx, sel, obj)
  140114. default:
  140115. panic(fmt.Errorf("unexpected type %T", obj))
  140116. }
  140117. }
  140118. func (ec *executionContext) _MetafieldReference(ctx context.Context, sel ast.SelectionSet, obj MetafieldReference) graphql.Marshaler {
  140119. switch obj := (obj).(type) {
  140120. case nil:
  140121. return graphql.Null
  140122. case Collection:
  140123. return ec._Collection(ctx, sel, &obj)
  140124. case *Collection:
  140125. if obj == nil {
  140126. return graphql.Null
  140127. }
  140128. return ec._Collection(ctx, sel, obj)
  140129. case GenericFile:
  140130. return ec._GenericFile(ctx, sel, &obj)
  140131. case *GenericFile:
  140132. if obj == nil {
  140133. return graphql.Null
  140134. }
  140135. return ec._GenericFile(ctx, sel, obj)
  140136. case MediaImage:
  140137. return ec._MediaImage(ctx, sel, &obj)
  140138. case *MediaImage:
  140139. if obj == nil {
  140140. return graphql.Null
  140141. }
  140142. return ec._MediaImage(ctx, sel, obj)
  140143. case OnlineStorePage:
  140144. return ec._OnlineStorePage(ctx, sel, &obj)
  140145. case *OnlineStorePage:
  140146. if obj == nil {
  140147. return graphql.Null
  140148. }
  140149. return ec._OnlineStorePage(ctx, sel, obj)
  140150. case Product:
  140151. return ec._Product(ctx, sel, &obj)
  140152. case *Product:
  140153. if obj == nil {
  140154. return graphql.Null
  140155. }
  140156. return ec._Product(ctx, sel, obj)
  140157. case ProductVariant:
  140158. return ec._ProductVariant(ctx, sel, &obj)
  140159. case *ProductVariant:
  140160. if obj == nil {
  140161. return graphql.Null
  140162. }
  140163. return ec._ProductVariant(ctx, sel, obj)
  140164. case Video:
  140165. return ec._Video(ctx, sel, &obj)
  140166. case *Video:
  140167. if obj == nil {
  140168. return graphql.Null
  140169. }
  140170. return ec._Video(ctx, sel, obj)
  140171. default:
  140172. panic(fmt.Errorf("unexpected type %T", obj))
  140173. }
  140174. }
  140175. func (ec *executionContext) _Navigable(ctx context.Context, sel ast.SelectionSet, obj Navigable) graphql.Marshaler {
  140176. switch obj := (obj).(type) {
  140177. case nil:
  140178. return graphql.Null
  140179. case OnlineStorePage:
  140180. return ec._OnlineStorePage(ctx, sel, &obj)
  140181. case *OnlineStorePage:
  140182. if obj == nil {
  140183. return graphql.Null
  140184. }
  140185. return ec._OnlineStorePage(ctx, sel, obj)
  140186. case Company:
  140187. return ec._Company(ctx, sel, &obj)
  140188. case *Company:
  140189. if obj == nil {
  140190. return graphql.Null
  140191. }
  140192. return ec._Company(ctx, sel, obj)
  140193. case CompanyLocation:
  140194. return ec._CompanyLocation(ctx, sel, &obj)
  140195. case *CompanyLocation:
  140196. if obj == nil {
  140197. return graphql.Null
  140198. }
  140199. return ec._CompanyLocation(ctx, sel, obj)
  140200. case DraftOrder:
  140201. return ec._DraftOrder(ctx, sel, &obj)
  140202. case *DraftOrder:
  140203. if obj == nil {
  140204. return graphql.Null
  140205. }
  140206. return ec._DraftOrder(ctx, sel, obj)
  140207. case Product:
  140208. return ec._Product(ctx, sel, &obj)
  140209. case *Product:
  140210. if obj == nil {
  140211. return graphql.Null
  140212. }
  140213. return ec._Product(ctx, sel, obj)
  140214. case ProductVariant:
  140215. return ec._ProductVariant(ctx, sel, &obj)
  140216. case *ProductVariant:
  140217. if obj == nil {
  140218. return graphql.Null
  140219. }
  140220. return ec._ProductVariant(ctx, sel, obj)
  140221. default:
  140222. panic(fmt.Errorf("unexpected type %T", obj))
  140223. }
  140224. }
  140225. func (ec *executionContext) _Node(ctx context.Context, sel ast.SelectionSet, obj Node) graphql.Marshaler {
  140226. switch obj := (obj).(type) {
  140227. case nil:
  140228. return graphql.Null
  140229. case App:
  140230. return ec._App(ctx, sel, &obj)
  140231. case *App:
  140232. if obj == nil {
  140233. return graphql.Null
  140234. }
  140235. return ec._App(ctx, sel, obj)
  140236. case AppInstallation:
  140237. return ec._AppInstallation(ctx, sel, &obj)
  140238. case *AppInstallation:
  140239. if obj == nil {
  140240. return graphql.Null
  140241. }
  140242. return ec._AppInstallation(ctx, sel, obj)
  140243. case AppSubscription:
  140244. return ec._AppSubscription(ctx, sel, &obj)
  140245. case *AppSubscription:
  140246. if obj == nil {
  140247. return graphql.Null
  140248. }
  140249. return ec._AppSubscription(ctx, sel, obj)
  140250. case Publication:
  140251. return ec._Publication(ctx, sel, &obj)
  140252. case *Publication:
  140253. if obj == nil {
  140254. return graphql.Null
  140255. }
  140256. return ec._Publication(ctx, sel, obj)
  140257. case AppCredit:
  140258. return ec._AppCredit(ctx, sel, &obj)
  140259. case *AppCredit:
  140260. if obj == nil {
  140261. return graphql.Null
  140262. }
  140263. return ec._AppCredit(ctx, sel, obj)
  140264. case AppPurchaseOneTime:
  140265. return ec._AppPurchaseOneTime(ctx, sel, &obj)
  140266. case *AppPurchaseOneTime:
  140267. if obj == nil {
  140268. return graphql.Null
  140269. }
  140270. return ec._AppPurchaseOneTime(ctx, sel, obj)
  140271. case AppRevenueAttributionRecord:
  140272. return ec._AppRevenueAttributionRecord(ctx, sel, &obj)
  140273. case *AppRevenueAttributionRecord:
  140274. if obj == nil {
  140275. return graphql.Null
  140276. }
  140277. return ec._AppRevenueAttributionRecord(ctx, sel, obj)
  140278. case AppUsageRecord:
  140279. return ec._AppUsageRecord(ctx, sel, &obj)
  140280. case *AppUsageRecord:
  140281. if obj == nil {
  140282. return graphql.Null
  140283. }
  140284. return ec._AppUsageRecord(ctx, sel, obj)
  140285. case SubscriptionContract:
  140286. return ec._SubscriptionContract(ctx, sel, &obj)
  140287. case *SubscriptionContract:
  140288. if obj == nil {
  140289. return graphql.Null
  140290. }
  140291. return ec._SubscriptionContract(ctx, sel, obj)
  140292. case Domain:
  140293. return ec._Domain(ctx, sel, &obj)
  140294. case *Domain:
  140295. if obj == nil {
  140296. return graphql.Null
  140297. }
  140298. return ec._Domain(ctx, sel, obj)
  140299. case OnlineStorePage:
  140300. return ec._OnlineStorePage(ctx, sel, &obj)
  140301. case *OnlineStorePage:
  140302. if obj == nil {
  140303. return graphql.Null
  140304. }
  140305. return ec._OnlineStorePage(ctx, sel, obj)
  140306. case ChannelInformation:
  140307. return ec._ChannelInformation(ctx, sel, &obj)
  140308. case *ChannelInformation:
  140309. if obj == nil {
  140310. return graphql.Null
  140311. }
  140312. return ec._ChannelInformation(ctx, sel, obj)
  140313. case ChannelDefinition:
  140314. return ec._ChannelDefinition(ctx, sel, &obj)
  140315. case *ChannelDefinition:
  140316. if obj == nil {
  140317. return graphql.Null
  140318. }
  140319. return ec._ChannelDefinition(ctx, sel, obj)
  140320. case CommentEvent:
  140321. return ec._CommentEvent(ctx, sel, &obj)
  140322. case *CommentEvent:
  140323. if obj == nil {
  140324. return graphql.Null
  140325. }
  140326. return ec._CommentEvent(ctx, sel, obj)
  140327. case Company:
  140328. return ec._Company(ctx, sel, &obj)
  140329. case *Company:
  140330. if obj == nil {
  140331. return graphql.Null
  140332. }
  140333. return ec._Company(ctx, sel, obj)
  140334. case CompanyContact:
  140335. return ec._CompanyContact(ctx, sel, &obj)
  140336. case *CompanyContact:
  140337. if obj == nil {
  140338. return graphql.Null
  140339. }
  140340. return ec._CompanyContact(ctx, sel, obj)
  140341. case CompanyContactRole:
  140342. return ec._CompanyContactRole(ctx, sel, &obj)
  140343. case *CompanyContactRole:
  140344. if obj == nil {
  140345. return graphql.Null
  140346. }
  140347. return ec._CompanyContactRole(ctx, sel, obj)
  140348. case CompanyContactRoleAssignment:
  140349. return ec._CompanyContactRoleAssignment(ctx, sel, &obj)
  140350. case *CompanyContactRoleAssignment:
  140351. if obj == nil {
  140352. return graphql.Null
  140353. }
  140354. return ec._CompanyContactRoleAssignment(ctx, sel, obj)
  140355. case CompanyLocation:
  140356. return ec._CompanyLocation(ctx, sel, &obj)
  140357. case *CompanyLocation:
  140358. if obj == nil {
  140359. return graphql.Null
  140360. }
  140361. return ec._CompanyLocation(ctx, sel, obj)
  140362. case CompanyAddress:
  140363. return ec._CompanyAddress(ctx, sel, &obj)
  140364. case *CompanyAddress:
  140365. if obj == nil {
  140366. return graphql.Null
  140367. }
  140368. return ec._CompanyAddress(ctx, sel, obj)
  140369. case StorefrontAccessToken:
  140370. return ec._StorefrontAccessToken(ctx, sel, &obj)
  140371. case *StorefrontAccessToken:
  140372. if obj == nil {
  140373. return graphql.Null
  140374. }
  140375. return ec._StorefrontAccessToken(ctx, sel, obj)
  140376. case Customer:
  140377. return ec._Customer(ctx, sel, &obj)
  140378. case *Customer:
  140379. if obj == nil {
  140380. return graphql.Null
  140381. }
  140382. return ec._Customer(ctx, sel, obj)
  140383. case StaffMember:
  140384. return ec._StaffMember(ctx, sel, &obj)
  140385. case *StaffMember:
  140386. if obj == nil {
  140387. return graphql.Null
  140388. }
  140389. return ec._StaffMember(ctx, sel, obj)
  140390. case CustomerVisit:
  140391. return ec._CustomerVisit(ctx, sel, &obj)
  140392. case *CustomerVisit:
  140393. if obj == nil {
  140394. return graphql.Null
  140395. }
  140396. return ec._CustomerVisit(ctx, sel, obj)
  140397. case MarketingEvent:
  140398. return ec._MarketingEvent(ctx, sel, &obj)
  140399. case *MarketingEvent:
  140400. if obj == nil {
  140401. return graphql.Null
  140402. }
  140403. return ec._MarketingEvent(ctx, sel, obj)
  140404. case CustomerPaymentMethod:
  140405. return ec._CustomerPaymentMethod(ctx, sel, &obj)
  140406. case *CustomerPaymentMethod:
  140407. if obj == nil {
  140408. return graphql.Null
  140409. }
  140410. return ec._CustomerPaymentMethod(ctx, sel, obj)
  140411. case DeliveryParticipant:
  140412. return ec._DeliveryParticipant(ctx, sel, &obj)
  140413. case *DeliveryParticipant:
  140414. if obj == nil {
  140415. return graphql.Null
  140416. }
  140417. return ec._DeliveryParticipant(ctx, sel, obj)
  140418. case DeliveryProfile:
  140419. return ec._DeliveryProfile(ctx, sel, &obj)
  140420. case *DeliveryProfile:
  140421. if obj == nil {
  140422. return graphql.Null
  140423. }
  140424. return ec._DeliveryProfile(ctx, sel, obj)
  140425. case DeliveryProfileItem:
  140426. return ec._DeliveryProfileItem(ctx, sel, &obj)
  140427. case *DeliveryProfileItem:
  140428. if obj == nil {
  140429. return graphql.Null
  140430. }
  140431. return ec._DeliveryProfileItem(ctx, sel, obj)
  140432. case DeliveryLocationGroup:
  140433. return ec._DeliveryLocationGroup(ctx, sel, &obj)
  140434. case *DeliveryLocationGroup:
  140435. if obj == nil {
  140436. return graphql.Null
  140437. }
  140438. return ec._DeliveryLocationGroup(ctx, sel, obj)
  140439. case DeliveryZone:
  140440. return ec._DeliveryZone(ctx, sel, &obj)
  140441. case *DeliveryZone:
  140442. if obj == nil {
  140443. return graphql.Null
  140444. }
  140445. return ec._DeliveryZone(ctx, sel, obj)
  140446. case DeliveryCountry:
  140447. return ec._DeliveryCountry(ctx, sel, &obj)
  140448. case *DeliveryCountry:
  140449. if obj == nil {
  140450. return graphql.Null
  140451. }
  140452. return ec._DeliveryCountry(ctx, sel, obj)
  140453. case DeliveryProvince:
  140454. return ec._DeliveryProvince(ctx, sel, &obj)
  140455. case *DeliveryProvince:
  140456. if obj == nil {
  140457. return graphql.Null
  140458. }
  140459. return ec._DeliveryProvince(ctx, sel, obj)
  140460. case DeliveryMethodDefinition:
  140461. return ec._DeliveryMethodDefinition(ctx, sel, &obj)
  140462. case *DeliveryMethodDefinition:
  140463. if obj == nil {
  140464. return graphql.Null
  140465. }
  140466. return ec._DeliveryMethodDefinition(ctx, sel, obj)
  140467. case DeliveryCondition:
  140468. return ec._DeliveryCondition(ctx, sel, &obj)
  140469. case *DeliveryCondition:
  140470. if obj == nil {
  140471. return graphql.Null
  140472. }
  140473. return ec._DeliveryCondition(ctx, sel, obj)
  140474. case DeliveryMethod:
  140475. return ec._DeliveryMethod(ctx, sel, &obj)
  140476. case *DeliveryMethod:
  140477. if obj == nil {
  140478. return graphql.Null
  140479. }
  140480. return ec._DeliveryMethod(ctx, sel, obj)
  140481. case DeliveryRateDefinition:
  140482. return ec._DeliveryRateDefinition(ctx, sel, &obj)
  140483. case *DeliveryRateDefinition:
  140484. if obj == nil {
  140485. return graphql.Null
  140486. }
  140487. return ec._DeliveryRateDefinition(ctx, sel, obj)
  140488. case DeliveryCarrierService:
  140489. return ec._DeliveryCarrierService(ctx, sel, &obj)
  140490. case *DeliveryCarrierService:
  140491. if obj == nil {
  140492. return graphql.Null
  140493. }
  140494. return ec._DeliveryCarrierService(ctx, sel, obj)
  140495. case BasicEvent:
  140496. return ec._BasicEvent(ctx, sel, &obj)
  140497. case *BasicEvent:
  140498. if obj == nil {
  140499. return graphql.Null
  140500. }
  140501. return ec._BasicEvent(ctx, sel, obj)
  140502. case InventoryLevel:
  140503. return ec._InventoryLevel(ctx, sel, &obj)
  140504. case *InventoryLevel:
  140505. if obj == nil {
  140506. return graphql.Null
  140507. }
  140508. return ec._InventoryLevel(ctx, sel, obj)
  140509. case Fulfillment:
  140510. return ec._Fulfillment(ctx, sel, &obj)
  140511. case *Fulfillment:
  140512. if obj == nil {
  140513. return graphql.Null
  140514. }
  140515. return ec._Fulfillment(ctx, sel, obj)
  140516. case FulfillmentOrder:
  140517. return ec._FulfillmentOrder(ctx, sel, &obj)
  140518. case *FulfillmentOrder:
  140519. if obj == nil {
  140520. return graphql.Null
  140521. }
  140522. return ec._FulfillmentOrder(ctx, sel, obj)
  140523. case InventoryItem:
  140524. return ec._InventoryItem(ctx, sel, &obj)
  140525. case *InventoryItem:
  140526. if obj == nil {
  140527. return graphql.Null
  140528. }
  140529. return ec._InventoryItem(ctx, sel, obj)
  140530. case FulfillmentOrderDestination:
  140531. return ec._FulfillmentOrderDestination(ctx, sel, &obj)
  140532. case *FulfillmentOrderDestination:
  140533. if obj == nil {
  140534. return graphql.Null
  140535. }
  140536. return ec._FulfillmentOrderDestination(ctx, sel, obj)
  140537. case FulfillmentEvent:
  140538. return ec._FulfillmentEvent(ctx, sel, &obj)
  140539. case *FulfillmentEvent:
  140540. if obj == nil {
  140541. return graphql.Null
  140542. }
  140543. return ec._FulfillmentEvent(ctx, sel, obj)
  140544. case FulfillmentLineItem:
  140545. return ec._FulfillmentLineItem(ctx, sel, &obj)
  140546. case *FulfillmentLineItem:
  140547. if obj == nil {
  140548. return graphql.Null
  140549. }
  140550. return ec._FulfillmentLineItem(ctx, sel, obj)
  140551. case FulfillmentOrderLineItem:
  140552. return ec._FulfillmentOrderLineItem(ctx, sel, &obj)
  140553. case *FulfillmentOrderLineItem:
  140554. if obj == nil {
  140555. return graphql.Null
  140556. }
  140557. return ec._FulfillmentOrderLineItem(ctx, sel, obj)
  140558. case FulfillmentOrderMerchantRequest:
  140559. return ec._FulfillmentOrderMerchantRequest(ctx, sel, &obj)
  140560. case *FulfillmentOrderMerchantRequest:
  140561. if obj == nil {
  140562. return graphql.Null
  140563. }
  140564. return ec._FulfillmentOrderMerchantRequest(ctx, sel, obj)
  140565. case Location:
  140566. return ec._Location(ctx, sel, &obj)
  140567. case *Location:
  140568. if obj == nil {
  140569. return graphql.Null
  140570. }
  140571. return ec._Location(ctx, sel, obj)
  140572. case MailingAddress:
  140573. return ec._MailingAddress(ctx, sel, &obj)
  140574. case *MailingAddress:
  140575. if obj == nil {
  140576. return graphql.Null
  140577. }
  140578. return ec._MailingAddress(ctx, sel, obj)
  140579. case Market:
  140580. return ec._Market(ctx, sel, &obj)
  140581. case *Market:
  140582. if obj == nil {
  140583. return graphql.Null
  140584. }
  140585. return ec._Market(ctx, sel, obj)
  140586. case MarketWebPresence:
  140587. return ec._MarketWebPresence(ctx, sel, &obj)
  140588. case *MarketWebPresence:
  140589. if obj == nil {
  140590. return graphql.Null
  140591. }
  140592. return ec._MarketWebPresence(ctx, sel, obj)
  140593. case GenericFile:
  140594. return ec._GenericFile(ctx, sel, &obj)
  140595. case *GenericFile:
  140596. if obj == nil {
  140597. return graphql.Null
  140598. }
  140599. return ec._GenericFile(ctx, sel, obj)
  140600. case MediaImage:
  140601. return ec._MediaImage(ctx, sel, &obj)
  140602. case *MediaImage:
  140603. if obj == nil {
  140604. return graphql.Null
  140605. }
  140606. return ec._MediaImage(ctx, sel, obj)
  140607. case Video:
  140608. return ec._Video(ctx, sel, &obj)
  140609. case *Video:
  140610. if obj == nil {
  140611. return graphql.Null
  140612. }
  140613. return ec._Video(ctx, sel, obj)
  140614. case Metafield:
  140615. return ec._Metafield(ctx, sel, &obj)
  140616. case *Metafield:
  140617. if obj == nil {
  140618. return graphql.Null
  140619. }
  140620. return ec._Metafield(ctx, sel, obj)
  140621. case MetafieldDefinition:
  140622. return ec._MetafieldDefinition(ctx, sel, &obj)
  140623. case *MetafieldDefinition:
  140624. if obj == nil {
  140625. return graphql.Null
  140626. }
  140627. return ec._MetafieldDefinition(ctx, sel, obj)
  140628. case StandardMetafieldDefinitionTemplate:
  140629. return ec._StandardMetafieldDefinitionTemplate(ctx, sel, &obj)
  140630. case *StandardMetafieldDefinitionTemplate:
  140631. if obj == nil {
  140632. return graphql.Null
  140633. }
  140634. return ec._StandardMetafieldDefinitionTemplate(ctx, sel, obj)
  140635. case PrivateMetafield:
  140636. return ec._PrivateMetafield(ctx, sel, &obj)
  140637. case *PrivateMetafield:
  140638. if obj == nil {
  140639. return graphql.Null
  140640. }
  140641. return ec._PrivateMetafield(ctx, sel, obj)
  140642. case PriceList:
  140643. return ec._PriceList(ctx, sel, &obj)
  140644. case *PriceList:
  140645. if obj == nil {
  140646. return graphql.Null
  140647. }
  140648. return ec._PriceList(ctx, sel, obj)
  140649. case DraftOrder:
  140650. return ec._DraftOrder(ctx, sel, &obj)
  140651. case *DraftOrder:
  140652. if obj == nil {
  140653. return graphql.Null
  140654. }
  140655. return ec._DraftOrder(ctx, sel, obj)
  140656. case DraftOrderLineItem:
  140657. return ec._DraftOrderLineItem(ctx, sel, &obj)
  140658. case *DraftOrderLineItem:
  140659. if obj == nil {
  140660. return graphql.Null
  140661. }
  140662. return ec._DraftOrderLineItem(ctx, sel, obj)
  140663. case Order:
  140664. return ec._Order(ctx, sel, &obj)
  140665. case *Order:
  140666. if obj == nil {
  140667. return graphql.Null
  140668. }
  140669. return ec._Order(ctx, sel, obj)
  140670. case PaymentSchedule:
  140671. return ec._PaymentSchedule(ctx, sel, &obj)
  140672. case *PaymentSchedule:
  140673. if obj == nil {
  140674. return graphql.Null
  140675. }
  140676. return ec._PaymentSchedule(ctx, sel, obj)
  140677. case PaymentTerms:
  140678. return ec._PaymentTerms(ctx, sel, &obj)
  140679. case *PaymentTerms:
  140680. if obj == nil {
  140681. return graphql.Null
  140682. }
  140683. return ec._PaymentTerms(ctx, sel, obj)
  140684. case SellingPlanGroup:
  140685. return ec._SellingPlanGroup(ctx, sel, &obj)
  140686. case *SellingPlanGroup:
  140687. if obj == nil {
  140688. return graphql.Null
  140689. }
  140690. return ec._SellingPlanGroup(ctx, sel, obj)
  140691. case SellingPlan:
  140692. return ec._SellingPlan(ctx, sel, &obj)
  140693. case *SellingPlan:
  140694. if obj == nil {
  140695. return graphql.Null
  140696. }
  140697. return ec._SellingPlan(ctx, sel, obj)
  140698. case OrderTransaction:
  140699. return ec._OrderTransaction(ctx, sel, &obj)
  140700. case *OrderTransaction:
  140701. if obj == nil {
  140702. return graphql.Null
  140703. }
  140704. return ec._OrderTransaction(ctx, sel, obj)
  140705. case TransactionFee:
  140706. return ec._TransactionFee(ctx, sel, &obj)
  140707. case *TransactionFee:
  140708. if obj == nil {
  140709. return graphql.Null
  140710. }
  140711. return ec._TransactionFee(ctx, sel, obj)
  140712. case LineItem:
  140713. return ec._LineItem(ctx, sel, &obj)
  140714. case *LineItem:
  140715. if obj == nil {
  140716. return graphql.Null
  140717. }
  140718. return ec._LineItem(ctx, sel, obj)
  140719. case Duty:
  140720. return ec._Duty(ctx, sel, &obj)
  140721. case *Duty:
  140722. if obj == nil {
  140723. return graphql.Null
  140724. }
  140725. return ec._Duty(ctx, sel, obj)
  140726. case Refund:
  140727. return ec._Refund(ctx, sel, &obj)
  140728. case *Refund:
  140729. if obj == nil {
  140730. return graphql.Null
  140731. }
  140732. return ec._Refund(ctx, sel, obj)
  140733. case PaymentMandate:
  140734. return ec._PaymentMandate(ctx, sel, &obj)
  140735. case *PaymentMandate:
  140736. if obj == nil {
  140737. return graphql.Null
  140738. }
  140739. return ec._PaymentMandate(ctx, sel, obj)
  140740. case OrderDisputeSummary:
  140741. return ec._OrderDisputeSummary(ctx, sel, &obj)
  140742. case *OrderDisputeSummary:
  140743. if obj == nil {
  140744. return graphql.Null
  140745. }
  140746. return ec._OrderDisputeSummary(ctx, sel, obj)
  140747. case SubscriptionBillingAttempt:
  140748. return ec._SubscriptionBillingAttempt(ctx, sel, &obj)
  140749. case *SubscriptionBillingAttempt:
  140750. if obj == nil {
  140751. return graphql.Null
  140752. }
  140753. return ec._SubscriptionBillingAttempt(ctx, sel, obj)
  140754. case PaymentTermsTemplate:
  140755. return ec._PaymentTermsTemplate(ctx, sel, &obj)
  140756. case *PaymentTermsTemplate:
  140757. if obj == nil {
  140758. return graphql.Null
  140759. }
  140760. return ec._PaymentTermsTemplate(ctx, sel, obj)
  140761. case Product:
  140762. return ec._Product(ctx, sel, &obj)
  140763. case *Product:
  140764. if obj == nil {
  140765. return graphql.Null
  140766. }
  140767. return ec._Product(ctx, sel, obj)
  140768. case ProductVariant:
  140769. return ec._ProductVariant(ctx, sel, &obj)
  140770. case *ProductVariant:
  140771. if obj == nil {
  140772. return graphql.Null
  140773. }
  140774. return ec._ProductVariant(ctx, sel, obj)
  140775. case ProductOption:
  140776. return ec._ProductOption(ctx, sel, &obj)
  140777. case *ProductOption:
  140778. if obj == nil {
  140779. return graphql.Null
  140780. }
  140781. return ec._ProductOption(ctx, sel, obj)
  140782. case Collection:
  140783. return ec._Collection(ctx, sel, &obj)
  140784. case *Collection:
  140785. if obj == nil {
  140786. return graphql.Null
  140787. }
  140788. return ec._Collection(ctx, sel, obj)
  140789. case ProductTaxonomyNode:
  140790. return ec._ProductTaxonomyNode(ctx, sel, &obj)
  140791. case *ProductTaxonomyNode:
  140792. if obj == nil {
  140793. return graphql.Null
  140794. }
  140795. return ec._ProductTaxonomyNode(ctx, sel, obj)
  140796. case Shop:
  140797. return ec._Shop(ctx, sel, &obj)
  140798. case *Shop:
  140799. if obj == nil {
  140800. return graphql.Null
  140801. }
  140802. return ec._Shop(ctx, sel, obj)
  140803. case ShopPolicy:
  140804. return ec._ShopPolicy(ctx, sel, &obj)
  140805. case *ShopPolicy:
  140806. if obj == nil {
  140807. return graphql.Null
  140808. }
  140809. return ec._ShopPolicy(ctx, sel, obj)
  140810. case SavedSearch:
  140811. return ec._SavedSearch(ctx, sel, &obj)
  140812. case *SavedSearch:
  140813. if obj == nil {
  140814. return graphql.Null
  140815. }
  140816. return ec._SavedSearch(ctx, sel, obj)
  140817. default:
  140818. panic(fmt.Errorf("unexpected type %T", obj))
  140819. }
  140820. }
  140821. func (ec *executionContext) _OnlineStorePreviewable(ctx context.Context, sel ast.SelectionSet, obj OnlineStorePreviewable) graphql.Marshaler {
  140822. switch obj := (obj).(type) {
  140823. case nil:
  140824. return graphql.Null
  140825. case Product:
  140826. return ec._Product(ctx, sel, &obj)
  140827. case *Product:
  140828. if obj == nil {
  140829. return graphql.Null
  140830. }
  140831. return ec._Product(ctx, sel, obj)
  140832. default:
  140833. panic(fmt.Errorf("unexpected type %T", obj))
  140834. }
  140835. }
  140836. func (ec *executionContext) _PaymentInstrument(ctx context.Context, sel ast.SelectionSet, obj PaymentInstrument) graphql.Marshaler {
  140837. switch obj := (obj).(type) {
  140838. case nil:
  140839. return graphql.Null
  140840. case VaultCreditCard:
  140841. return ec._VaultCreditCard(ctx, sel, &obj)
  140842. case *VaultCreditCard:
  140843. if obj == nil {
  140844. return graphql.Null
  140845. }
  140846. return ec._VaultCreditCard(ctx, sel, obj)
  140847. case VaultPaypalBillingAgreement:
  140848. return ec._VaultPaypalBillingAgreement(ctx, sel, &obj)
  140849. case *VaultPaypalBillingAgreement:
  140850. if obj == nil {
  140851. return graphql.Null
  140852. }
  140853. return ec._VaultPaypalBillingAgreement(ctx, sel, obj)
  140854. default:
  140855. panic(fmt.Errorf("unexpected type %T", obj))
  140856. }
  140857. }
  140858. func (ec *executionContext) _PricingValue(ctx context.Context, sel ast.SelectionSet, obj PricingValue) graphql.Marshaler {
  140859. switch obj := (obj).(type) {
  140860. case nil:
  140861. return graphql.Null
  140862. case MoneyV2:
  140863. return ec._MoneyV2(ctx, sel, &obj)
  140864. case *MoneyV2:
  140865. if obj == nil {
  140866. return graphql.Null
  140867. }
  140868. return ec._MoneyV2(ctx, sel, obj)
  140869. case PricingPercentageValue:
  140870. return ec._PricingPercentageValue(ctx, sel, &obj)
  140871. case *PricingPercentageValue:
  140872. if obj == nil {
  140873. return graphql.Null
  140874. }
  140875. return ec._PricingPercentageValue(ctx, sel, obj)
  140876. default:
  140877. panic(fmt.Errorf("unexpected type %T", obj))
  140878. }
  140879. }
  140880. func (ec *executionContext) _Publishable(ctx context.Context, sel ast.SelectionSet, obj Publishable) graphql.Marshaler {
  140881. switch obj := (obj).(type) {
  140882. case nil:
  140883. return graphql.Null
  140884. case Product:
  140885. return ec._Product(ctx, sel, &obj)
  140886. case *Product:
  140887. if obj == nil {
  140888. return graphql.Null
  140889. }
  140890. return ec._Product(ctx, sel, obj)
  140891. case Collection:
  140892. return ec._Collection(ctx, sel, &obj)
  140893. case *Collection:
  140894. if obj == nil {
  140895. return graphql.Null
  140896. }
  140897. return ec._Collection(ctx, sel, obj)
  140898. default:
  140899. panic(fmt.Errorf("unexpected type %T", obj))
  140900. }
  140901. }
  140902. func (ec *executionContext) _PurchasingEntity(ctx context.Context, sel ast.SelectionSet, obj PurchasingEntity) graphql.Marshaler {
  140903. switch obj := (obj).(type) {
  140904. case nil:
  140905. return graphql.Null
  140906. case Customer:
  140907. return ec._Customer(ctx, sel, &obj)
  140908. case *Customer:
  140909. if obj == nil {
  140910. return graphql.Null
  140911. }
  140912. return ec._Customer(ctx, sel, obj)
  140913. case PurchasingCompany:
  140914. return ec._PurchasingCompany(ctx, sel, &obj)
  140915. case *PurchasingCompany:
  140916. if obj == nil {
  140917. return graphql.Null
  140918. }
  140919. return ec._PurchasingCompany(ctx, sel, obj)
  140920. default:
  140921. panic(fmt.Errorf("unexpected type %T", obj))
  140922. }
  140923. }
  140924. func (ec *executionContext) _Sale(ctx context.Context, sel ast.SelectionSet, obj Sale) graphql.Marshaler {
  140925. switch obj := (obj).(type) {
  140926. case nil:
  140927. return graphql.Null
  140928. default:
  140929. panic(fmt.Errorf("unexpected type %T", obj))
  140930. }
  140931. }
  140932. func (ec *executionContext) _SalesAgreement(ctx context.Context, sel ast.SelectionSet, obj SalesAgreement) graphql.Marshaler {
  140933. switch obj := (obj).(type) {
  140934. case nil:
  140935. return graphql.Null
  140936. default:
  140937. panic(fmt.Errorf("unexpected type %T", obj))
  140938. }
  140939. }
  140940. func (ec *executionContext) _SellingPlanBillingPolicy(ctx context.Context, sel ast.SelectionSet, obj SellingPlanBillingPolicy) graphql.Marshaler {
  140941. switch obj := (obj).(type) {
  140942. case nil:
  140943. return graphql.Null
  140944. case SellingPlanFixedBillingPolicy:
  140945. return ec._SellingPlanFixedBillingPolicy(ctx, sel, &obj)
  140946. case *SellingPlanFixedBillingPolicy:
  140947. if obj == nil {
  140948. return graphql.Null
  140949. }
  140950. return ec._SellingPlanFixedBillingPolicy(ctx, sel, obj)
  140951. case SellingPlanRecurringBillingPolicy:
  140952. return ec._SellingPlanRecurringBillingPolicy(ctx, sel, &obj)
  140953. case *SellingPlanRecurringBillingPolicy:
  140954. if obj == nil {
  140955. return graphql.Null
  140956. }
  140957. return ec._SellingPlanRecurringBillingPolicy(ctx, sel, obj)
  140958. default:
  140959. panic(fmt.Errorf("unexpected type %T", obj))
  140960. }
  140961. }
  140962. func (ec *executionContext) _SellingPlanCheckoutChargeValue(ctx context.Context, sel ast.SelectionSet, obj SellingPlanCheckoutChargeValue) graphql.Marshaler {
  140963. switch obj := (obj).(type) {
  140964. case nil:
  140965. return graphql.Null
  140966. case MoneyV2:
  140967. return ec._MoneyV2(ctx, sel, &obj)
  140968. case *MoneyV2:
  140969. if obj == nil {
  140970. return graphql.Null
  140971. }
  140972. return ec._MoneyV2(ctx, sel, obj)
  140973. case SellingPlanCheckoutChargePercentageValue:
  140974. return ec._SellingPlanCheckoutChargePercentageValue(ctx, sel, &obj)
  140975. case *SellingPlanCheckoutChargePercentageValue:
  140976. if obj == nil {
  140977. return graphql.Null
  140978. }
  140979. return ec._SellingPlanCheckoutChargePercentageValue(ctx, sel, obj)
  140980. default:
  140981. panic(fmt.Errorf("unexpected type %T", obj))
  140982. }
  140983. }
  140984. func (ec *executionContext) _SellingPlanDeliveryPolicy(ctx context.Context, sel ast.SelectionSet, obj SellingPlanDeliveryPolicy) graphql.Marshaler {
  140985. switch obj := (obj).(type) {
  140986. case nil:
  140987. return graphql.Null
  140988. case SellingPlanFixedDeliveryPolicy:
  140989. return ec._SellingPlanFixedDeliveryPolicy(ctx, sel, &obj)
  140990. case *SellingPlanFixedDeliveryPolicy:
  140991. if obj == nil {
  140992. return graphql.Null
  140993. }
  140994. return ec._SellingPlanFixedDeliveryPolicy(ctx, sel, obj)
  140995. case SellingPlanRecurringDeliveryPolicy:
  140996. return ec._SellingPlanRecurringDeliveryPolicy(ctx, sel, &obj)
  140997. case *SellingPlanRecurringDeliveryPolicy:
  140998. if obj == nil {
  140999. return graphql.Null
  141000. }
  141001. return ec._SellingPlanRecurringDeliveryPolicy(ctx, sel, obj)
  141002. default:
  141003. panic(fmt.Errorf("unexpected type %T", obj))
  141004. }
  141005. }
  141006. func (ec *executionContext) _SellingPlanPricingPolicy(ctx context.Context, sel ast.SelectionSet, obj SellingPlanPricingPolicy) graphql.Marshaler {
  141007. switch obj := (obj).(type) {
  141008. case nil:
  141009. return graphql.Null
  141010. case SellingPlanFixedPricingPolicy:
  141011. return ec._SellingPlanFixedPricingPolicy(ctx, sel, &obj)
  141012. case *SellingPlanFixedPricingPolicy:
  141013. if obj == nil {
  141014. return graphql.Null
  141015. }
  141016. return ec._SellingPlanFixedPricingPolicy(ctx, sel, obj)
  141017. case SellingPlanRecurringPricingPolicy:
  141018. return ec._SellingPlanRecurringPricingPolicy(ctx, sel, &obj)
  141019. case *SellingPlanRecurringPricingPolicy:
  141020. if obj == nil {
  141021. return graphql.Null
  141022. }
  141023. return ec._SellingPlanRecurringPricingPolicy(ctx, sel, obj)
  141024. default:
  141025. panic(fmt.Errorf("unexpected type %T", obj))
  141026. }
  141027. }
  141028. func (ec *executionContext) _SellingPlanPricingPolicyAdjustmentValue(ctx context.Context, sel ast.SelectionSet, obj SellingPlanPricingPolicyAdjustmentValue) graphql.Marshaler {
  141029. switch obj := (obj).(type) {
  141030. case nil:
  141031. return graphql.Null
  141032. case MoneyV2:
  141033. return ec._MoneyV2(ctx, sel, &obj)
  141034. case *MoneyV2:
  141035. if obj == nil {
  141036. return graphql.Null
  141037. }
  141038. return ec._MoneyV2(ctx, sel, obj)
  141039. case SellingPlanPricingPolicyPercentageValue:
  141040. return ec._SellingPlanPricingPolicyPercentageValue(ctx, sel, &obj)
  141041. case *SellingPlanPricingPolicyPercentageValue:
  141042. if obj == nil {
  141043. return graphql.Null
  141044. }
  141045. return ec._SellingPlanPricingPolicyPercentageValue(ctx, sel, obj)
  141046. default:
  141047. panic(fmt.Errorf("unexpected type %T", obj))
  141048. }
  141049. }
  141050. func (ec *executionContext) _SellingPlanPricingPolicyBase(ctx context.Context, sel ast.SelectionSet, obj SellingPlanPricingPolicyBase) graphql.Marshaler {
  141051. switch obj := (obj).(type) {
  141052. case nil:
  141053. return graphql.Null
  141054. case SellingPlanFixedPricingPolicy:
  141055. return ec._SellingPlanFixedPricingPolicy(ctx, sel, &obj)
  141056. case *SellingPlanFixedPricingPolicy:
  141057. if obj == nil {
  141058. return graphql.Null
  141059. }
  141060. return ec._SellingPlanFixedPricingPolicy(ctx, sel, obj)
  141061. case SellingPlanRecurringPricingPolicy:
  141062. return ec._SellingPlanRecurringPricingPolicy(ctx, sel, &obj)
  141063. case *SellingPlanRecurringPricingPolicy:
  141064. if obj == nil {
  141065. return graphql.Null
  141066. }
  141067. return ec._SellingPlanRecurringPricingPolicy(ctx, sel, obj)
  141068. default:
  141069. panic(fmt.Errorf("unexpected type %T", obj))
  141070. }
  141071. }
  141072. func (ec *executionContext) _SubscriptionContractBase(ctx context.Context, sel ast.SelectionSet, obj SubscriptionContractBase) graphql.Marshaler {
  141073. switch obj := (obj).(type) {
  141074. case nil:
  141075. return graphql.Null
  141076. case SubscriptionContract:
  141077. return ec._SubscriptionContract(ctx, sel, &obj)
  141078. case *SubscriptionContract:
  141079. if obj == nil {
  141080. return graphql.Null
  141081. }
  141082. return ec._SubscriptionContract(ctx, sel, obj)
  141083. default:
  141084. panic(fmt.Errorf("unexpected type %T", obj))
  141085. }
  141086. }
  141087. func (ec *executionContext) _SubscriptionDeliveryMethod(ctx context.Context, sel ast.SelectionSet, obj SubscriptionDeliveryMethod) graphql.Marshaler {
  141088. switch obj := (obj).(type) {
  141089. case nil:
  141090. return graphql.Null
  141091. case SubscriptionDeliveryMethodLocalDelivery:
  141092. return ec._SubscriptionDeliveryMethodLocalDelivery(ctx, sel, &obj)
  141093. case *SubscriptionDeliveryMethodLocalDelivery:
  141094. if obj == nil {
  141095. return graphql.Null
  141096. }
  141097. return ec._SubscriptionDeliveryMethodLocalDelivery(ctx, sel, obj)
  141098. case SubscriptionDeliveryMethodPickup:
  141099. return ec._SubscriptionDeliveryMethodPickup(ctx, sel, &obj)
  141100. case *SubscriptionDeliveryMethodPickup:
  141101. if obj == nil {
  141102. return graphql.Null
  141103. }
  141104. return ec._SubscriptionDeliveryMethodPickup(ctx, sel, obj)
  141105. case SubscriptionDeliveryMethodShipping:
  141106. return ec._SubscriptionDeliveryMethodShipping(ctx, sel, &obj)
  141107. case *SubscriptionDeliveryMethodShipping:
  141108. if obj == nil {
  141109. return graphql.Null
  141110. }
  141111. return ec._SubscriptionDeliveryMethodShipping(ctx, sel, obj)
  141112. default:
  141113. panic(fmt.Errorf("unexpected type %T", obj))
  141114. }
  141115. }
  141116. func (ec *executionContext) _SubscriptionDiscount(ctx context.Context, sel ast.SelectionSet, obj SubscriptionDiscount) graphql.Marshaler {
  141117. switch obj := (obj).(type) {
  141118. case nil:
  141119. return graphql.Null
  141120. case SubscriptionAppliedCodeDiscount:
  141121. return ec._SubscriptionAppliedCodeDiscount(ctx, sel, &obj)
  141122. case *SubscriptionAppliedCodeDiscount:
  141123. if obj == nil {
  141124. return graphql.Null
  141125. }
  141126. return ec._SubscriptionAppliedCodeDiscount(ctx, sel, obj)
  141127. case SubscriptionManualDiscount:
  141128. return ec._SubscriptionManualDiscount(ctx, sel, &obj)
  141129. case *SubscriptionManualDiscount:
  141130. if obj == nil {
  141131. return graphql.Null
  141132. }
  141133. return ec._SubscriptionManualDiscount(ctx, sel, obj)
  141134. default:
  141135. panic(fmt.Errorf("unexpected type %T", obj))
  141136. }
  141137. }
  141138. func (ec *executionContext) _SubscriptionDiscountValue(ctx context.Context, sel ast.SelectionSet, obj SubscriptionDiscountValue) graphql.Marshaler {
  141139. switch obj := (obj).(type) {
  141140. case nil:
  141141. return graphql.Null
  141142. case SubscriptionDiscountFixedAmountValue:
  141143. return ec._SubscriptionDiscountFixedAmountValue(ctx, sel, &obj)
  141144. case *SubscriptionDiscountFixedAmountValue:
  141145. if obj == nil {
  141146. return graphql.Null
  141147. }
  141148. return ec._SubscriptionDiscountFixedAmountValue(ctx, sel, obj)
  141149. case SubscriptionDiscountPercentageValue:
  141150. return ec._SubscriptionDiscountPercentageValue(ctx, sel, &obj)
  141151. case *SubscriptionDiscountPercentageValue:
  141152. if obj == nil {
  141153. return graphql.Null
  141154. }
  141155. return ec._SubscriptionDiscountPercentageValue(ctx, sel, obj)
  141156. default:
  141157. panic(fmt.Errorf("unexpected type %T", obj))
  141158. }
  141159. }
  141160. func (ec *executionContext) __Entity(ctx context.Context, sel ast.SelectionSet, obj fedruntime.Entity) graphql.Marshaler {
  141161. switch obj := (obj).(type) {
  141162. case nil:
  141163. return graphql.Null
  141164. case Product:
  141165. return ec._Product(ctx, sel, &obj)
  141166. case *Product:
  141167. if obj == nil {
  141168. return graphql.Null
  141169. }
  141170. return ec._Product(ctx, sel, obj)
  141171. default:
  141172. panic(fmt.Errorf("unexpected type %T", obj))
  141173. }
  141174. }
  141175. // endregion ************************** interface.gotpl ***************************
  141176. // region **************************** object.gotpl ****************************
  141177. var accessScopeImplementors = []string{"AccessScope"}
  141178. func (ec *executionContext) _AccessScope(ctx context.Context, sel ast.SelectionSet, obj *AccessScope) graphql.Marshaler {
  141179. fields := graphql.CollectFields(ec.OperationContext, sel, accessScopeImplementors)
  141180. out := graphql.NewFieldSet(fields)
  141181. var invalids uint32
  141182. for i, field := range fields {
  141183. switch field.Name {
  141184. case "__typename":
  141185. out.Values[i] = graphql.MarshalString("AccessScope")
  141186. case "description":
  141187. out.Values[i] = ec._AccessScope_description(ctx, field, obj)
  141188. if out.Values[i] == graphql.Null {
  141189. invalids++
  141190. }
  141191. case "handle":
  141192. out.Values[i] = ec._AccessScope_handle(ctx, field, obj)
  141193. if out.Values[i] == graphql.Null {
  141194. invalids++
  141195. }
  141196. default:
  141197. panic("unknown field " + strconv.Quote(field.Name))
  141198. }
  141199. }
  141200. out.Dispatch()
  141201. if invalids > 0 {
  141202. return graphql.Null
  141203. }
  141204. return out
  141205. }
  141206. var appImplementors = []string{"App", "Node"}
  141207. func (ec *executionContext) _App(ctx context.Context, sel ast.SelectionSet, obj *App) graphql.Marshaler {
  141208. fields := graphql.CollectFields(ec.OperationContext, sel, appImplementors)
  141209. out := graphql.NewFieldSet(fields)
  141210. var invalids uint32
  141211. for i, field := range fields {
  141212. switch field.Name {
  141213. case "__typename":
  141214. out.Values[i] = graphql.MarshalString("App")
  141215. case "apiKey":
  141216. out.Values[i] = ec._App_apiKey(ctx, field, obj)
  141217. if out.Values[i] == graphql.Null {
  141218. invalids++
  141219. }
  141220. case "appStoreAppUrl":
  141221. out.Values[i] = ec._App_appStoreAppUrl(ctx, field, obj)
  141222. case "appStoreDeveloperUrl":
  141223. out.Values[i] = ec._App_appStoreDeveloperUrl(ctx, field, obj)
  141224. case "availableAccessScopes":
  141225. out.Values[i] = ec._App_availableAccessScopes(ctx, field, obj)
  141226. if out.Values[i] == graphql.Null {
  141227. invalids++
  141228. }
  141229. case "banner":
  141230. out.Values[i] = ec._App_banner(ctx, field, obj)
  141231. if out.Values[i] == graphql.Null {
  141232. invalids++
  141233. }
  141234. case "description":
  141235. out.Values[i] = ec._App_description(ctx, field, obj)
  141236. case "developerName":
  141237. out.Values[i] = ec._App_developerName(ctx, field, obj)
  141238. case "developerType":
  141239. out.Values[i] = ec._App_developerType(ctx, field, obj)
  141240. if out.Values[i] == graphql.Null {
  141241. invalids++
  141242. }
  141243. case "embedded":
  141244. out.Values[i] = ec._App_embedded(ctx, field, obj)
  141245. if out.Values[i] == graphql.Null {
  141246. invalids++
  141247. }
  141248. case "failedRequirements":
  141249. out.Values[i] = ec._App_failedRequirements(ctx, field, obj)
  141250. if out.Values[i] == graphql.Null {
  141251. invalids++
  141252. }
  141253. case "features":
  141254. out.Values[i] = ec._App_features(ctx, field, obj)
  141255. if out.Values[i] == graphql.Null {
  141256. invalids++
  141257. }
  141258. case "feedback":
  141259. out.Values[i] = ec._App_feedback(ctx, field, obj)
  141260. case "handle":
  141261. out.Values[i] = ec._App_handle(ctx, field, obj)
  141262. case "icon":
  141263. out.Values[i] = ec._App_icon(ctx, field, obj)
  141264. if out.Values[i] == graphql.Null {
  141265. invalids++
  141266. }
  141267. case "id":
  141268. out.Values[i] = ec._App_id(ctx, field, obj)
  141269. if out.Values[i] == graphql.Null {
  141270. invalids++
  141271. }
  141272. case "installUrl":
  141273. out.Values[i] = ec._App_installUrl(ctx, field, obj)
  141274. case "installation":
  141275. out.Values[i] = ec._App_installation(ctx, field, obj)
  141276. case "isPostPurchaseAppInUse":
  141277. out.Values[i] = ec._App_isPostPurchaseAppInUse(ctx, field, obj)
  141278. if out.Values[i] == graphql.Null {
  141279. invalids++
  141280. }
  141281. case "previouslyInstalled":
  141282. out.Values[i] = ec._App_previouslyInstalled(ctx, field, obj)
  141283. if out.Values[i] == graphql.Null {
  141284. invalids++
  141285. }
  141286. case "pricingDetails":
  141287. out.Values[i] = ec._App_pricingDetails(ctx, field, obj)
  141288. case "pricingDetailsSummary":
  141289. out.Values[i] = ec._App_pricingDetailsSummary(ctx, field, obj)
  141290. if out.Values[i] == graphql.Null {
  141291. invalids++
  141292. }
  141293. case "privacyPolicyUrl":
  141294. out.Values[i] = ec._App_privacyPolicyUrl(ctx, field, obj)
  141295. case "publicCategory":
  141296. out.Values[i] = ec._App_publicCategory(ctx, field, obj)
  141297. if out.Values[i] == graphql.Null {
  141298. invalids++
  141299. }
  141300. case "published":
  141301. out.Values[i] = ec._App_published(ctx, field, obj)
  141302. if out.Values[i] == graphql.Null {
  141303. invalids++
  141304. }
  141305. case "requestedAccessScopes":
  141306. out.Values[i] = ec._App_requestedAccessScopes(ctx, field, obj)
  141307. if out.Values[i] == graphql.Null {
  141308. invalids++
  141309. }
  141310. case "screenshots":
  141311. out.Values[i] = ec._App_screenshots(ctx, field, obj)
  141312. if out.Values[i] == graphql.Null {
  141313. invalids++
  141314. }
  141315. case "shopifyDeveloped":
  141316. out.Values[i] = ec._App_shopifyDeveloped(ctx, field, obj)
  141317. if out.Values[i] == graphql.Null {
  141318. invalids++
  141319. }
  141320. case "title":
  141321. out.Values[i] = ec._App_title(ctx, field, obj)
  141322. if out.Values[i] == graphql.Null {
  141323. invalids++
  141324. }
  141325. case "uninstallMessage":
  141326. out.Values[i] = ec._App_uninstallMessage(ctx, field, obj)
  141327. if out.Values[i] == graphql.Null {
  141328. invalids++
  141329. }
  141330. case "webhookApiVersion":
  141331. out.Values[i] = ec._App_webhookApiVersion(ctx, field, obj)
  141332. if out.Values[i] == graphql.Null {
  141333. invalids++
  141334. }
  141335. default:
  141336. panic("unknown field " + strconv.Quote(field.Name))
  141337. }
  141338. }
  141339. out.Dispatch()
  141340. if invalids > 0 {
  141341. return graphql.Null
  141342. }
  141343. return out
  141344. }
  141345. var appConnectionImplementors = []string{"AppConnection"}
  141346. func (ec *executionContext) _AppConnection(ctx context.Context, sel ast.SelectionSet, obj *AppConnection) graphql.Marshaler {
  141347. fields := graphql.CollectFields(ec.OperationContext, sel, appConnectionImplementors)
  141348. out := graphql.NewFieldSet(fields)
  141349. var invalids uint32
  141350. for i, field := range fields {
  141351. switch field.Name {
  141352. case "__typename":
  141353. out.Values[i] = graphql.MarshalString("AppConnection")
  141354. case "edges":
  141355. out.Values[i] = ec._AppConnection_edges(ctx, field, obj)
  141356. if out.Values[i] == graphql.Null {
  141357. invalids++
  141358. }
  141359. case "nodes":
  141360. out.Values[i] = ec._AppConnection_nodes(ctx, field, obj)
  141361. if out.Values[i] == graphql.Null {
  141362. invalids++
  141363. }
  141364. case "pageInfo":
  141365. out.Values[i] = ec._AppConnection_pageInfo(ctx, field, obj)
  141366. if out.Values[i] == graphql.Null {
  141367. invalids++
  141368. }
  141369. default:
  141370. panic("unknown field " + strconv.Quote(field.Name))
  141371. }
  141372. }
  141373. out.Dispatch()
  141374. if invalids > 0 {
  141375. return graphql.Null
  141376. }
  141377. return out
  141378. }
  141379. var appCreditImplementors = []string{"AppCredit", "Node"}
  141380. func (ec *executionContext) _AppCredit(ctx context.Context, sel ast.SelectionSet, obj *AppCredit) graphql.Marshaler {
  141381. fields := graphql.CollectFields(ec.OperationContext, sel, appCreditImplementors)
  141382. out := graphql.NewFieldSet(fields)
  141383. var invalids uint32
  141384. for i, field := range fields {
  141385. switch field.Name {
  141386. case "__typename":
  141387. out.Values[i] = graphql.MarshalString("AppCredit")
  141388. case "amount":
  141389. out.Values[i] = ec._AppCredit_amount(ctx, field, obj)
  141390. if out.Values[i] == graphql.Null {
  141391. invalids++
  141392. }
  141393. case "createdAt":
  141394. out.Values[i] = ec._AppCredit_createdAt(ctx, field, obj)
  141395. if out.Values[i] == graphql.Null {
  141396. invalids++
  141397. }
  141398. case "description":
  141399. out.Values[i] = ec._AppCredit_description(ctx, field, obj)
  141400. if out.Values[i] == graphql.Null {
  141401. invalids++
  141402. }
  141403. case "id":
  141404. out.Values[i] = ec._AppCredit_id(ctx, field, obj)
  141405. if out.Values[i] == graphql.Null {
  141406. invalids++
  141407. }
  141408. case "test":
  141409. out.Values[i] = ec._AppCredit_test(ctx, field, obj)
  141410. if out.Values[i] == graphql.Null {
  141411. invalids++
  141412. }
  141413. default:
  141414. panic("unknown field " + strconv.Quote(field.Name))
  141415. }
  141416. }
  141417. out.Dispatch()
  141418. if invalids > 0 {
  141419. return graphql.Null
  141420. }
  141421. return out
  141422. }
  141423. var appCreditConnectionImplementors = []string{"AppCreditConnection"}
  141424. func (ec *executionContext) _AppCreditConnection(ctx context.Context, sel ast.SelectionSet, obj *AppCreditConnection) graphql.Marshaler {
  141425. fields := graphql.CollectFields(ec.OperationContext, sel, appCreditConnectionImplementors)
  141426. out := graphql.NewFieldSet(fields)
  141427. var invalids uint32
  141428. for i, field := range fields {
  141429. switch field.Name {
  141430. case "__typename":
  141431. out.Values[i] = graphql.MarshalString("AppCreditConnection")
  141432. case "edges":
  141433. out.Values[i] = ec._AppCreditConnection_edges(ctx, field, obj)
  141434. if out.Values[i] == graphql.Null {
  141435. invalids++
  141436. }
  141437. case "nodes":
  141438. out.Values[i] = ec._AppCreditConnection_nodes(ctx, field, obj)
  141439. if out.Values[i] == graphql.Null {
  141440. invalids++
  141441. }
  141442. case "pageInfo":
  141443. out.Values[i] = ec._AppCreditConnection_pageInfo(ctx, field, obj)
  141444. if out.Values[i] == graphql.Null {
  141445. invalids++
  141446. }
  141447. default:
  141448. panic("unknown field " + strconv.Quote(field.Name))
  141449. }
  141450. }
  141451. out.Dispatch()
  141452. if invalids > 0 {
  141453. return graphql.Null
  141454. }
  141455. return out
  141456. }
  141457. var appCreditEdgeImplementors = []string{"AppCreditEdge"}
  141458. func (ec *executionContext) _AppCreditEdge(ctx context.Context, sel ast.SelectionSet, obj *AppCreditEdge) graphql.Marshaler {
  141459. fields := graphql.CollectFields(ec.OperationContext, sel, appCreditEdgeImplementors)
  141460. out := graphql.NewFieldSet(fields)
  141461. var invalids uint32
  141462. for i, field := range fields {
  141463. switch field.Name {
  141464. case "__typename":
  141465. out.Values[i] = graphql.MarshalString("AppCreditEdge")
  141466. case "cursor":
  141467. out.Values[i] = ec._AppCreditEdge_cursor(ctx, field, obj)
  141468. if out.Values[i] == graphql.Null {
  141469. invalids++
  141470. }
  141471. case "node":
  141472. out.Values[i] = ec._AppCreditEdge_node(ctx, field, obj)
  141473. if out.Values[i] == graphql.Null {
  141474. invalids++
  141475. }
  141476. default:
  141477. panic("unknown field " + strconv.Quote(field.Name))
  141478. }
  141479. }
  141480. out.Dispatch()
  141481. if invalids > 0 {
  141482. return graphql.Null
  141483. }
  141484. return out
  141485. }
  141486. var appEdgeImplementors = []string{"AppEdge"}
  141487. func (ec *executionContext) _AppEdge(ctx context.Context, sel ast.SelectionSet, obj *AppEdge) graphql.Marshaler {
  141488. fields := graphql.CollectFields(ec.OperationContext, sel, appEdgeImplementors)
  141489. out := graphql.NewFieldSet(fields)
  141490. var invalids uint32
  141491. for i, field := range fields {
  141492. switch field.Name {
  141493. case "__typename":
  141494. out.Values[i] = graphql.MarshalString("AppEdge")
  141495. case "cursor":
  141496. out.Values[i] = ec._AppEdge_cursor(ctx, field, obj)
  141497. if out.Values[i] == graphql.Null {
  141498. invalids++
  141499. }
  141500. case "node":
  141501. out.Values[i] = ec._AppEdge_node(ctx, field, obj)
  141502. if out.Values[i] == graphql.Null {
  141503. invalids++
  141504. }
  141505. default:
  141506. panic("unknown field " + strconv.Quote(field.Name))
  141507. }
  141508. }
  141509. out.Dispatch()
  141510. if invalids > 0 {
  141511. return graphql.Null
  141512. }
  141513. return out
  141514. }
  141515. var appFeedbackImplementors = []string{"AppFeedback"}
  141516. func (ec *executionContext) _AppFeedback(ctx context.Context, sel ast.SelectionSet, obj *AppFeedback) graphql.Marshaler {
  141517. fields := graphql.CollectFields(ec.OperationContext, sel, appFeedbackImplementors)
  141518. out := graphql.NewFieldSet(fields)
  141519. var invalids uint32
  141520. for i, field := range fields {
  141521. switch field.Name {
  141522. case "__typename":
  141523. out.Values[i] = graphql.MarshalString("AppFeedback")
  141524. case "app":
  141525. out.Values[i] = ec._AppFeedback_app(ctx, field, obj)
  141526. if out.Values[i] == graphql.Null {
  141527. invalids++
  141528. }
  141529. case "link":
  141530. out.Values[i] = ec._AppFeedback_link(ctx, field, obj)
  141531. case "messages":
  141532. out.Values[i] = ec._AppFeedback_messages(ctx, field, obj)
  141533. if out.Values[i] == graphql.Null {
  141534. invalids++
  141535. }
  141536. default:
  141537. panic("unknown field " + strconv.Quote(field.Name))
  141538. }
  141539. }
  141540. out.Dispatch()
  141541. if invalids > 0 {
  141542. return graphql.Null
  141543. }
  141544. return out
  141545. }
  141546. var appInstallationImplementors = []string{"AppInstallation", "HasMetafields", "Node"}
  141547. func (ec *executionContext) _AppInstallation(ctx context.Context, sel ast.SelectionSet, obj *AppInstallation) graphql.Marshaler {
  141548. fields := graphql.CollectFields(ec.OperationContext, sel, appInstallationImplementors)
  141549. out := graphql.NewFieldSet(fields)
  141550. var invalids uint32
  141551. for i, field := range fields {
  141552. switch field.Name {
  141553. case "__typename":
  141554. out.Values[i] = graphql.MarshalString("AppInstallation")
  141555. case "accessScopes":
  141556. out.Values[i] = ec._AppInstallation_accessScopes(ctx, field, obj)
  141557. if out.Values[i] == graphql.Null {
  141558. invalids++
  141559. }
  141560. case "activeSubscriptions":
  141561. out.Values[i] = ec._AppInstallation_activeSubscriptions(ctx, field, obj)
  141562. if out.Values[i] == graphql.Null {
  141563. invalids++
  141564. }
  141565. case "allSubscriptions":
  141566. out.Values[i] = ec._AppInstallation_allSubscriptions(ctx, field, obj)
  141567. if out.Values[i] == graphql.Null {
  141568. invalids++
  141569. }
  141570. case "app":
  141571. out.Values[i] = ec._AppInstallation_app(ctx, field, obj)
  141572. if out.Values[i] == graphql.Null {
  141573. invalids++
  141574. }
  141575. case "credits":
  141576. out.Values[i] = ec._AppInstallation_credits(ctx, field, obj)
  141577. if out.Values[i] == graphql.Null {
  141578. invalids++
  141579. }
  141580. case "id":
  141581. out.Values[i] = ec._AppInstallation_id(ctx, field, obj)
  141582. if out.Values[i] == graphql.Null {
  141583. invalids++
  141584. }
  141585. case "launchUrl":
  141586. out.Values[i] = ec._AppInstallation_launchUrl(ctx, field, obj)
  141587. if out.Values[i] == graphql.Null {
  141588. invalids++
  141589. }
  141590. case "metafield":
  141591. out.Values[i] = ec._AppInstallation_metafield(ctx, field, obj)
  141592. case "metafields":
  141593. out.Values[i] = ec._AppInstallation_metafields(ctx, field, obj)
  141594. if out.Values[i] == graphql.Null {
  141595. invalids++
  141596. }
  141597. case "oneTimePurchases":
  141598. out.Values[i] = ec._AppInstallation_oneTimePurchases(ctx, field, obj)
  141599. if out.Values[i] == graphql.Null {
  141600. invalids++
  141601. }
  141602. case "privateMetafield":
  141603. out.Values[i] = ec._AppInstallation_privateMetafield(ctx, field, obj)
  141604. case "privateMetafields":
  141605. out.Values[i] = ec._AppInstallation_privateMetafields(ctx, field, obj)
  141606. if out.Values[i] == graphql.Null {
  141607. invalids++
  141608. }
  141609. case "publication":
  141610. out.Values[i] = ec._AppInstallation_publication(ctx, field, obj)
  141611. case "revenueAttributionRecords":
  141612. out.Values[i] = ec._AppInstallation_revenueAttributionRecords(ctx, field, obj)
  141613. if out.Values[i] == graphql.Null {
  141614. invalids++
  141615. }
  141616. case "uninstallUrl":
  141617. out.Values[i] = ec._AppInstallation_uninstallUrl(ctx, field, obj)
  141618. default:
  141619. panic("unknown field " + strconv.Quote(field.Name))
  141620. }
  141621. }
  141622. out.Dispatch()
  141623. if invalids > 0 {
  141624. return graphql.Null
  141625. }
  141626. return out
  141627. }
  141628. var appPlanV2Implementors = []string{"AppPlanV2"}
  141629. func (ec *executionContext) _AppPlanV2(ctx context.Context, sel ast.SelectionSet, obj *AppPlanV2) graphql.Marshaler {
  141630. fields := graphql.CollectFields(ec.OperationContext, sel, appPlanV2Implementors)
  141631. out := graphql.NewFieldSet(fields)
  141632. var invalids uint32
  141633. for i, field := range fields {
  141634. switch field.Name {
  141635. case "__typename":
  141636. out.Values[i] = graphql.MarshalString("AppPlanV2")
  141637. case "pricingDetails":
  141638. out.Values[i] = ec._AppPlanV2_pricingDetails(ctx, field, obj)
  141639. if out.Values[i] == graphql.Null {
  141640. invalids++
  141641. }
  141642. default:
  141643. panic("unknown field " + strconv.Quote(field.Name))
  141644. }
  141645. }
  141646. out.Dispatch()
  141647. if invalids > 0 {
  141648. return graphql.Null
  141649. }
  141650. return out
  141651. }
  141652. var appPurchaseOneTimeImplementors = []string{"AppPurchaseOneTime", "AppPurchase", "Node"}
  141653. func (ec *executionContext) _AppPurchaseOneTime(ctx context.Context, sel ast.SelectionSet, obj *AppPurchaseOneTime) graphql.Marshaler {
  141654. fields := graphql.CollectFields(ec.OperationContext, sel, appPurchaseOneTimeImplementors)
  141655. out := graphql.NewFieldSet(fields)
  141656. var invalids uint32
  141657. for i, field := range fields {
  141658. switch field.Name {
  141659. case "__typename":
  141660. out.Values[i] = graphql.MarshalString("AppPurchaseOneTime")
  141661. case "createdAt":
  141662. out.Values[i] = ec._AppPurchaseOneTime_createdAt(ctx, field, obj)
  141663. if out.Values[i] == graphql.Null {
  141664. invalids++
  141665. }
  141666. case "id":
  141667. out.Values[i] = ec._AppPurchaseOneTime_id(ctx, field, obj)
  141668. if out.Values[i] == graphql.Null {
  141669. invalids++
  141670. }
  141671. case "name":
  141672. out.Values[i] = ec._AppPurchaseOneTime_name(ctx, field, obj)
  141673. if out.Values[i] == graphql.Null {
  141674. invalids++
  141675. }
  141676. case "price":
  141677. out.Values[i] = ec._AppPurchaseOneTime_price(ctx, field, obj)
  141678. if out.Values[i] == graphql.Null {
  141679. invalids++
  141680. }
  141681. case "status":
  141682. out.Values[i] = ec._AppPurchaseOneTime_status(ctx, field, obj)
  141683. if out.Values[i] == graphql.Null {
  141684. invalids++
  141685. }
  141686. case "test":
  141687. out.Values[i] = ec._AppPurchaseOneTime_test(ctx, field, obj)
  141688. if out.Values[i] == graphql.Null {
  141689. invalids++
  141690. }
  141691. default:
  141692. panic("unknown field " + strconv.Quote(field.Name))
  141693. }
  141694. }
  141695. out.Dispatch()
  141696. if invalids > 0 {
  141697. return graphql.Null
  141698. }
  141699. return out
  141700. }
  141701. var appPurchaseOneTimeConnectionImplementors = []string{"AppPurchaseOneTimeConnection"}
  141702. func (ec *executionContext) _AppPurchaseOneTimeConnection(ctx context.Context, sel ast.SelectionSet, obj *AppPurchaseOneTimeConnection) graphql.Marshaler {
  141703. fields := graphql.CollectFields(ec.OperationContext, sel, appPurchaseOneTimeConnectionImplementors)
  141704. out := graphql.NewFieldSet(fields)
  141705. var invalids uint32
  141706. for i, field := range fields {
  141707. switch field.Name {
  141708. case "__typename":
  141709. out.Values[i] = graphql.MarshalString("AppPurchaseOneTimeConnection")
  141710. case "edges":
  141711. out.Values[i] = ec._AppPurchaseOneTimeConnection_edges(ctx, field, obj)
  141712. if out.Values[i] == graphql.Null {
  141713. invalids++
  141714. }
  141715. case "nodes":
  141716. out.Values[i] = ec._AppPurchaseOneTimeConnection_nodes(ctx, field, obj)
  141717. if out.Values[i] == graphql.Null {
  141718. invalids++
  141719. }
  141720. case "pageInfo":
  141721. out.Values[i] = ec._AppPurchaseOneTimeConnection_pageInfo(ctx, field, obj)
  141722. if out.Values[i] == graphql.Null {
  141723. invalids++
  141724. }
  141725. default:
  141726. panic("unknown field " + strconv.Quote(field.Name))
  141727. }
  141728. }
  141729. out.Dispatch()
  141730. if invalids > 0 {
  141731. return graphql.Null
  141732. }
  141733. return out
  141734. }
  141735. var appPurchaseOneTimeEdgeImplementors = []string{"AppPurchaseOneTimeEdge"}
  141736. func (ec *executionContext) _AppPurchaseOneTimeEdge(ctx context.Context, sel ast.SelectionSet, obj *AppPurchaseOneTimeEdge) graphql.Marshaler {
  141737. fields := graphql.CollectFields(ec.OperationContext, sel, appPurchaseOneTimeEdgeImplementors)
  141738. out := graphql.NewFieldSet(fields)
  141739. var invalids uint32
  141740. for i, field := range fields {
  141741. switch field.Name {
  141742. case "__typename":
  141743. out.Values[i] = graphql.MarshalString("AppPurchaseOneTimeEdge")
  141744. case "cursor":
  141745. out.Values[i] = ec._AppPurchaseOneTimeEdge_cursor(ctx, field, obj)
  141746. if out.Values[i] == graphql.Null {
  141747. invalids++
  141748. }
  141749. case "node":
  141750. out.Values[i] = ec._AppPurchaseOneTimeEdge_node(ctx, field, obj)
  141751. if out.Values[i] == graphql.Null {
  141752. invalids++
  141753. }
  141754. default:
  141755. panic("unknown field " + strconv.Quote(field.Name))
  141756. }
  141757. }
  141758. out.Dispatch()
  141759. if invalids > 0 {
  141760. return graphql.Null
  141761. }
  141762. return out
  141763. }
  141764. var appRecurringPricingImplementors = []string{"AppRecurringPricing", "AppPricingDetails"}
  141765. func (ec *executionContext) _AppRecurringPricing(ctx context.Context, sel ast.SelectionSet, obj *AppRecurringPricing) graphql.Marshaler {
  141766. fields := graphql.CollectFields(ec.OperationContext, sel, appRecurringPricingImplementors)
  141767. out := graphql.NewFieldSet(fields)
  141768. var invalids uint32
  141769. for i, field := range fields {
  141770. switch field.Name {
  141771. case "__typename":
  141772. out.Values[i] = graphql.MarshalString("AppRecurringPricing")
  141773. case "discount":
  141774. out.Values[i] = ec._AppRecurringPricing_discount(ctx, field, obj)
  141775. case "interval":
  141776. out.Values[i] = ec._AppRecurringPricing_interval(ctx, field, obj)
  141777. if out.Values[i] == graphql.Null {
  141778. invalids++
  141779. }
  141780. case "price":
  141781. out.Values[i] = ec._AppRecurringPricing_price(ctx, field, obj)
  141782. if out.Values[i] == graphql.Null {
  141783. invalids++
  141784. }
  141785. default:
  141786. panic("unknown field " + strconv.Quote(field.Name))
  141787. }
  141788. }
  141789. out.Dispatch()
  141790. if invalids > 0 {
  141791. return graphql.Null
  141792. }
  141793. return out
  141794. }
  141795. var appRevenueAttributionRecordImplementors = []string{"AppRevenueAttributionRecord", "Node"}
  141796. func (ec *executionContext) _AppRevenueAttributionRecord(ctx context.Context, sel ast.SelectionSet, obj *AppRevenueAttributionRecord) graphql.Marshaler {
  141797. fields := graphql.CollectFields(ec.OperationContext, sel, appRevenueAttributionRecordImplementors)
  141798. out := graphql.NewFieldSet(fields)
  141799. var invalids uint32
  141800. for i, field := range fields {
  141801. switch field.Name {
  141802. case "__typename":
  141803. out.Values[i] = graphql.MarshalString("AppRevenueAttributionRecord")
  141804. case "amount":
  141805. out.Values[i] = ec._AppRevenueAttributionRecord_amount(ctx, field, obj)
  141806. if out.Values[i] == graphql.Null {
  141807. invalids++
  141808. }
  141809. case "capturedAt":
  141810. out.Values[i] = ec._AppRevenueAttributionRecord_capturedAt(ctx, field, obj)
  141811. if out.Values[i] == graphql.Null {
  141812. invalids++
  141813. }
  141814. case "createdAt":
  141815. out.Values[i] = ec._AppRevenueAttributionRecord_createdAt(ctx, field, obj)
  141816. if out.Values[i] == graphql.Null {
  141817. invalids++
  141818. }
  141819. case "id":
  141820. out.Values[i] = ec._AppRevenueAttributionRecord_id(ctx, field, obj)
  141821. if out.Values[i] == graphql.Null {
  141822. invalids++
  141823. }
  141824. case "idempotencyKey":
  141825. out.Values[i] = ec._AppRevenueAttributionRecord_idempotencyKey(ctx, field, obj)
  141826. if out.Values[i] == graphql.Null {
  141827. invalids++
  141828. }
  141829. case "test":
  141830. out.Values[i] = ec._AppRevenueAttributionRecord_test(ctx, field, obj)
  141831. if out.Values[i] == graphql.Null {
  141832. invalids++
  141833. }
  141834. case "type":
  141835. out.Values[i] = ec._AppRevenueAttributionRecord_type(ctx, field, obj)
  141836. if out.Values[i] == graphql.Null {
  141837. invalids++
  141838. }
  141839. default:
  141840. panic("unknown field " + strconv.Quote(field.Name))
  141841. }
  141842. }
  141843. out.Dispatch()
  141844. if invalids > 0 {
  141845. return graphql.Null
  141846. }
  141847. return out
  141848. }
  141849. var appRevenueAttributionRecordConnectionImplementors = []string{"AppRevenueAttributionRecordConnection"}
  141850. func (ec *executionContext) _AppRevenueAttributionRecordConnection(ctx context.Context, sel ast.SelectionSet, obj *AppRevenueAttributionRecordConnection) graphql.Marshaler {
  141851. fields := graphql.CollectFields(ec.OperationContext, sel, appRevenueAttributionRecordConnectionImplementors)
  141852. out := graphql.NewFieldSet(fields)
  141853. var invalids uint32
  141854. for i, field := range fields {
  141855. switch field.Name {
  141856. case "__typename":
  141857. out.Values[i] = graphql.MarshalString("AppRevenueAttributionRecordConnection")
  141858. case "edges":
  141859. out.Values[i] = ec._AppRevenueAttributionRecordConnection_edges(ctx, field, obj)
  141860. if out.Values[i] == graphql.Null {
  141861. invalids++
  141862. }
  141863. case "nodes":
  141864. out.Values[i] = ec._AppRevenueAttributionRecordConnection_nodes(ctx, field, obj)
  141865. if out.Values[i] == graphql.Null {
  141866. invalids++
  141867. }
  141868. case "pageInfo":
  141869. out.Values[i] = ec._AppRevenueAttributionRecordConnection_pageInfo(ctx, field, obj)
  141870. if out.Values[i] == graphql.Null {
  141871. invalids++
  141872. }
  141873. default:
  141874. panic("unknown field " + strconv.Quote(field.Name))
  141875. }
  141876. }
  141877. out.Dispatch()
  141878. if invalids > 0 {
  141879. return graphql.Null
  141880. }
  141881. return out
  141882. }
  141883. var appRevenueAttributionRecordEdgeImplementors = []string{"AppRevenueAttributionRecordEdge"}
  141884. func (ec *executionContext) _AppRevenueAttributionRecordEdge(ctx context.Context, sel ast.SelectionSet, obj *AppRevenueAttributionRecordEdge) graphql.Marshaler {
  141885. fields := graphql.CollectFields(ec.OperationContext, sel, appRevenueAttributionRecordEdgeImplementors)
  141886. out := graphql.NewFieldSet(fields)
  141887. var invalids uint32
  141888. for i, field := range fields {
  141889. switch field.Name {
  141890. case "__typename":
  141891. out.Values[i] = graphql.MarshalString("AppRevenueAttributionRecordEdge")
  141892. case "cursor":
  141893. out.Values[i] = ec._AppRevenueAttributionRecordEdge_cursor(ctx, field, obj)
  141894. if out.Values[i] == graphql.Null {
  141895. invalids++
  141896. }
  141897. case "node":
  141898. out.Values[i] = ec._AppRevenueAttributionRecordEdge_node(ctx, field, obj)
  141899. if out.Values[i] == graphql.Null {
  141900. invalids++
  141901. }
  141902. default:
  141903. panic("unknown field " + strconv.Quote(field.Name))
  141904. }
  141905. }
  141906. out.Dispatch()
  141907. if invalids > 0 {
  141908. return graphql.Null
  141909. }
  141910. return out
  141911. }
  141912. var appSubscriptionImplementors = []string{"AppSubscription", "Node"}
  141913. func (ec *executionContext) _AppSubscription(ctx context.Context, sel ast.SelectionSet, obj *AppSubscription) graphql.Marshaler {
  141914. fields := graphql.CollectFields(ec.OperationContext, sel, appSubscriptionImplementors)
  141915. out := graphql.NewFieldSet(fields)
  141916. var invalids uint32
  141917. for i, field := range fields {
  141918. switch field.Name {
  141919. case "__typename":
  141920. out.Values[i] = graphql.MarshalString("AppSubscription")
  141921. case "createdAt":
  141922. out.Values[i] = ec._AppSubscription_createdAt(ctx, field, obj)
  141923. if out.Values[i] == graphql.Null {
  141924. invalids++
  141925. }
  141926. case "currentPeriodEnd":
  141927. out.Values[i] = ec._AppSubscription_currentPeriodEnd(ctx, field, obj)
  141928. case "id":
  141929. out.Values[i] = ec._AppSubscription_id(ctx, field, obj)
  141930. if out.Values[i] == graphql.Null {
  141931. invalids++
  141932. }
  141933. case "lineItems":
  141934. out.Values[i] = ec._AppSubscription_lineItems(ctx, field, obj)
  141935. if out.Values[i] == graphql.Null {
  141936. invalids++
  141937. }
  141938. case "name":
  141939. out.Values[i] = ec._AppSubscription_name(ctx, field, obj)
  141940. if out.Values[i] == graphql.Null {
  141941. invalids++
  141942. }
  141943. case "returnUrl":
  141944. out.Values[i] = ec._AppSubscription_returnUrl(ctx, field, obj)
  141945. if out.Values[i] == graphql.Null {
  141946. invalids++
  141947. }
  141948. case "status":
  141949. out.Values[i] = ec._AppSubscription_status(ctx, field, obj)
  141950. if out.Values[i] == graphql.Null {
  141951. invalids++
  141952. }
  141953. case "test":
  141954. out.Values[i] = ec._AppSubscription_test(ctx, field, obj)
  141955. if out.Values[i] == graphql.Null {
  141956. invalids++
  141957. }
  141958. case "trialDays":
  141959. out.Values[i] = ec._AppSubscription_trialDays(ctx, field, obj)
  141960. if out.Values[i] == graphql.Null {
  141961. invalids++
  141962. }
  141963. default:
  141964. panic("unknown field " + strconv.Quote(field.Name))
  141965. }
  141966. }
  141967. out.Dispatch()
  141968. if invalids > 0 {
  141969. return graphql.Null
  141970. }
  141971. return out
  141972. }
  141973. var appSubscriptionConnectionImplementors = []string{"AppSubscriptionConnection"}
  141974. func (ec *executionContext) _AppSubscriptionConnection(ctx context.Context, sel ast.SelectionSet, obj *AppSubscriptionConnection) graphql.Marshaler {
  141975. fields := graphql.CollectFields(ec.OperationContext, sel, appSubscriptionConnectionImplementors)
  141976. out := graphql.NewFieldSet(fields)
  141977. var invalids uint32
  141978. for i, field := range fields {
  141979. switch field.Name {
  141980. case "__typename":
  141981. out.Values[i] = graphql.MarshalString("AppSubscriptionConnection")
  141982. case "edges":
  141983. out.Values[i] = ec._AppSubscriptionConnection_edges(ctx, field, obj)
  141984. if out.Values[i] == graphql.Null {
  141985. invalids++
  141986. }
  141987. case "nodes":
  141988. out.Values[i] = ec._AppSubscriptionConnection_nodes(ctx, field, obj)
  141989. if out.Values[i] == graphql.Null {
  141990. invalids++
  141991. }
  141992. case "pageInfo":
  141993. out.Values[i] = ec._AppSubscriptionConnection_pageInfo(ctx, field, obj)
  141994. if out.Values[i] == graphql.Null {
  141995. invalids++
  141996. }
  141997. default:
  141998. panic("unknown field " + strconv.Quote(field.Name))
  141999. }
  142000. }
  142001. out.Dispatch()
  142002. if invalids > 0 {
  142003. return graphql.Null
  142004. }
  142005. return out
  142006. }
  142007. var appSubscriptionDiscountImplementors = []string{"AppSubscriptionDiscount"}
  142008. func (ec *executionContext) _AppSubscriptionDiscount(ctx context.Context, sel ast.SelectionSet, obj *AppSubscriptionDiscount) graphql.Marshaler {
  142009. fields := graphql.CollectFields(ec.OperationContext, sel, appSubscriptionDiscountImplementors)
  142010. out := graphql.NewFieldSet(fields)
  142011. var invalids uint32
  142012. for i, field := range fields {
  142013. switch field.Name {
  142014. case "__typename":
  142015. out.Values[i] = graphql.MarshalString("AppSubscriptionDiscount")
  142016. case "durationLimitInIntervals":
  142017. out.Values[i] = ec._AppSubscriptionDiscount_durationLimitInIntervals(ctx, field, obj)
  142018. case "priceAfterDiscount":
  142019. out.Values[i] = ec._AppSubscriptionDiscount_priceAfterDiscount(ctx, field, obj)
  142020. if out.Values[i] == graphql.Null {
  142021. invalids++
  142022. }
  142023. case "remainingDurationInIntervals":
  142024. out.Values[i] = ec._AppSubscriptionDiscount_remainingDurationInIntervals(ctx, field, obj)
  142025. case "value":
  142026. out.Values[i] = ec._AppSubscriptionDiscount_value(ctx, field, obj)
  142027. if out.Values[i] == graphql.Null {
  142028. invalids++
  142029. }
  142030. default:
  142031. panic("unknown field " + strconv.Quote(field.Name))
  142032. }
  142033. }
  142034. out.Dispatch()
  142035. if invalids > 0 {
  142036. return graphql.Null
  142037. }
  142038. return out
  142039. }
  142040. var appSubscriptionDiscountAmountImplementors = []string{"AppSubscriptionDiscountAmount", "AppSubscriptionDiscountValue"}
  142041. func (ec *executionContext) _AppSubscriptionDiscountAmount(ctx context.Context, sel ast.SelectionSet, obj *AppSubscriptionDiscountAmount) graphql.Marshaler {
  142042. fields := graphql.CollectFields(ec.OperationContext, sel, appSubscriptionDiscountAmountImplementors)
  142043. out := graphql.NewFieldSet(fields)
  142044. var invalids uint32
  142045. for i, field := range fields {
  142046. switch field.Name {
  142047. case "__typename":
  142048. out.Values[i] = graphql.MarshalString("AppSubscriptionDiscountAmount")
  142049. case "amount":
  142050. out.Values[i] = ec._AppSubscriptionDiscountAmount_amount(ctx, field, obj)
  142051. if out.Values[i] == graphql.Null {
  142052. invalids++
  142053. }
  142054. default:
  142055. panic("unknown field " + strconv.Quote(field.Name))
  142056. }
  142057. }
  142058. out.Dispatch()
  142059. if invalids > 0 {
  142060. return graphql.Null
  142061. }
  142062. return out
  142063. }
  142064. var appSubscriptionDiscountPercentageImplementors = []string{"AppSubscriptionDiscountPercentage", "AppSubscriptionDiscountValue"}
  142065. func (ec *executionContext) _AppSubscriptionDiscountPercentage(ctx context.Context, sel ast.SelectionSet, obj *AppSubscriptionDiscountPercentage) graphql.Marshaler {
  142066. fields := graphql.CollectFields(ec.OperationContext, sel, appSubscriptionDiscountPercentageImplementors)
  142067. out := graphql.NewFieldSet(fields)
  142068. var invalids uint32
  142069. for i, field := range fields {
  142070. switch field.Name {
  142071. case "__typename":
  142072. out.Values[i] = graphql.MarshalString("AppSubscriptionDiscountPercentage")
  142073. case "percentage":
  142074. out.Values[i] = ec._AppSubscriptionDiscountPercentage_percentage(ctx, field, obj)
  142075. if out.Values[i] == graphql.Null {
  142076. invalids++
  142077. }
  142078. default:
  142079. panic("unknown field " + strconv.Quote(field.Name))
  142080. }
  142081. }
  142082. out.Dispatch()
  142083. if invalids > 0 {
  142084. return graphql.Null
  142085. }
  142086. return out
  142087. }
  142088. var appSubscriptionEdgeImplementors = []string{"AppSubscriptionEdge"}
  142089. func (ec *executionContext) _AppSubscriptionEdge(ctx context.Context, sel ast.SelectionSet, obj *AppSubscriptionEdge) graphql.Marshaler {
  142090. fields := graphql.CollectFields(ec.OperationContext, sel, appSubscriptionEdgeImplementors)
  142091. out := graphql.NewFieldSet(fields)
  142092. var invalids uint32
  142093. for i, field := range fields {
  142094. switch field.Name {
  142095. case "__typename":
  142096. out.Values[i] = graphql.MarshalString("AppSubscriptionEdge")
  142097. case "cursor":
  142098. out.Values[i] = ec._AppSubscriptionEdge_cursor(ctx, field, obj)
  142099. if out.Values[i] == graphql.Null {
  142100. invalids++
  142101. }
  142102. case "node":
  142103. out.Values[i] = ec._AppSubscriptionEdge_node(ctx, field, obj)
  142104. if out.Values[i] == graphql.Null {
  142105. invalids++
  142106. }
  142107. default:
  142108. panic("unknown field " + strconv.Quote(field.Name))
  142109. }
  142110. }
  142111. out.Dispatch()
  142112. if invalids > 0 {
  142113. return graphql.Null
  142114. }
  142115. return out
  142116. }
  142117. var appSubscriptionLineItemImplementors = []string{"AppSubscriptionLineItem"}
  142118. func (ec *executionContext) _AppSubscriptionLineItem(ctx context.Context, sel ast.SelectionSet, obj *AppSubscriptionLineItem) graphql.Marshaler {
  142119. fields := graphql.CollectFields(ec.OperationContext, sel, appSubscriptionLineItemImplementors)
  142120. out := graphql.NewFieldSet(fields)
  142121. var invalids uint32
  142122. for i, field := range fields {
  142123. switch field.Name {
  142124. case "__typename":
  142125. out.Values[i] = graphql.MarshalString("AppSubscriptionLineItem")
  142126. case "id":
  142127. out.Values[i] = ec._AppSubscriptionLineItem_id(ctx, field, obj)
  142128. if out.Values[i] == graphql.Null {
  142129. invalids++
  142130. }
  142131. case "plan":
  142132. out.Values[i] = ec._AppSubscriptionLineItem_plan(ctx, field, obj)
  142133. if out.Values[i] == graphql.Null {
  142134. invalids++
  142135. }
  142136. case "usageRecords":
  142137. out.Values[i] = ec._AppSubscriptionLineItem_usageRecords(ctx, field, obj)
  142138. if out.Values[i] == graphql.Null {
  142139. invalids++
  142140. }
  142141. default:
  142142. panic("unknown field " + strconv.Quote(field.Name))
  142143. }
  142144. }
  142145. out.Dispatch()
  142146. if invalids > 0 {
  142147. return graphql.Null
  142148. }
  142149. return out
  142150. }
  142151. var appUsagePricingImplementors = []string{"AppUsagePricing", "AppPricingDetails"}
  142152. func (ec *executionContext) _AppUsagePricing(ctx context.Context, sel ast.SelectionSet, obj *AppUsagePricing) graphql.Marshaler {
  142153. fields := graphql.CollectFields(ec.OperationContext, sel, appUsagePricingImplementors)
  142154. out := graphql.NewFieldSet(fields)
  142155. var invalids uint32
  142156. for i, field := range fields {
  142157. switch field.Name {
  142158. case "__typename":
  142159. out.Values[i] = graphql.MarshalString("AppUsagePricing")
  142160. case "balanceUsed":
  142161. out.Values[i] = ec._AppUsagePricing_balanceUsed(ctx, field, obj)
  142162. if out.Values[i] == graphql.Null {
  142163. invalids++
  142164. }
  142165. case "cappedAmount":
  142166. out.Values[i] = ec._AppUsagePricing_cappedAmount(ctx, field, obj)
  142167. if out.Values[i] == graphql.Null {
  142168. invalids++
  142169. }
  142170. case "interval":
  142171. out.Values[i] = ec._AppUsagePricing_interval(ctx, field, obj)
  142172. if out.Values[i] == graphql.Null {
  142173. invalids++
  142174. }
  142175. case "terms":
  142176. out.Values[i] = ec._AppUsagePricing_terms(ctx, field, obj)
  142177. if out.Values[i] == graphql.Null {
  142178. invalids++
  142179. }
  142180. default:
  142181. panic("unknown field " + strconv.Quote(field.Name))
  142182. }
  142183. }
  142184. out.Dispatch()
  142185. if invalids > 0 {
  142186. return graphql.Null
  142187. }
  142188. return out
  142189. }
  142190. var appUsageRecordImplementors = []string{"AppUsageRecord", "Node"}
  142191. func (ec *executionContext) _AppUsageRecord(ctx context.Context, sel ast.SelectionSet, obj *AppUsageRecord) graphql.Marshaler {
  142192. fields := graphql.CollectFields(ec.OperationContext, sel, appUsageRecordImplementors)
  142193. out := graphql.NewFieldSet(fields)
  142194. var invalids uint32
  142195. for i, field := range fields {
  142196. switch field.Name {
  142197. case "__typename":
  142198. out.Values[i] = graphql.MarshalString("AppUsageRecord")
  142199. case "createdAt":
  142200. out.Values[i] = ec._AppUsageRecord_createdAt(ctx, field, obj)
  142201. if out.Values[i] == graphql.Null {
  142202. invalids++
  142203. }
  142204. case "description":
  142205. out.Values[i] = ec._AppUsageRecord_description(ctx, field, obj)
  142206. if out.Values[i] == graphql.Null {
  142207. invalids++
  142208. }
  142209. case "id":
  142210. out.Values[i] = ec._AppUsageRecord_id(ctx, field, obj)
  142211. if out.Values[i] == graphql.Null {
  142212. invalids++
  142213. }
  142214. case "price":
  142215. out.Values[i] = ec._AppUsageRecord_price(ctx, field, obj)
  142216. if out.Values[i] == graphql.Null {
  142217. invalids++
  142218. }
  142219. case "subscriptionLineItem":
  142220. out.Values[i] = ec._AppUsageRecord_subscriptionLineItem(ctx, field, obj)
  142221. if out.Values[i] == graphql.Null {
  142222. invalids++
  142223. }
  142224. default:
  142225. panic("unknown field " + strconv.Quote(field.Name))
  142226. }
  142227. }
  142228. out.Dispatch()
  142229. if invalids > 0 {
  142230. return graphql.Null
  142231. }
  142232. return out
  142233. }
  142234. var appUsageRecordConnectionImplementors = []string{"AppUsageRecordConnection"}
  142235. func (ec *executionContext) _AppUsageRecordConnection(ctx context.Context, sel ast.SelectionSet, obj *AppUsageRecordConnection) graphql.Marshaler {
  142236. fields := graphql.CollectFields(ec.OperationContext, sel, appUsageRecordConnectionImplementors)
  142237. out := graphql.NewFieldSet(fields)
  142238. var invalids uint32
  142239. for i, field := range fields {
  142240. switch field.Name {
  142241. case "__typename":
  142242. out.Values[i] = graphql.MarshalString("AppUsageRecordConnection")
  142243. case "edges":
  142244. out.Values[i] = ec._AppUsageRecordConnection_edges(ctx, field, obj)
  142245. if out.Values[i] == graphql.Null {
  142246. invalids++
  142247. }
  142248. case "nodes":
  142249. out.Values[i] = ec._AppUsageRecordConnection_nodes(ctx, field, obj)
  142250. if out.Values[i] == graphql.Null {
  142251. invalids++
  142252. }
  142253. case "pageInfo":
  142254. out.Values[i] = ec._AppUsageRecordConnection_pageInfo(ctx, field, obj)
  142255. if out.Values[i] == graphql.Null {
  142256. invalids++
  142257. }
  142258. default:
  142259. panic("unknown field " + strconv.Quote(field.Name))
  142260. }
  142261. }
  142262. out.Dispatch()
  142263. if invalids > 0 {
  142264. return graphql.Null
  142265. }
  142266. return out
  142267. }
  142268. var appUsageRecordEdgeImplementors = []string{"AppUsageRecordEdge"}
  142269. func (ec *executionContext) _AppUsageRecordEdge(ctx context.Context, sel ast.SelectionSet, obj *AppUsageRecordEdge) graphql.Marshaler {
  142270. fields := graphql.CollectFields(ec.OperationContext, sel, appUsageRecordEdgeImplementors)
  142271. out := graphql.NewFieldSet(fields)
  142272. var invalids uint32
  142273. for i, field := range fields {
  142274. switch field.Name {
  142275. case "__typename":
  142276. out.Values[i] = graphql.MarshalString("AppUsageRecordEdge")
  142277. case "cursor":
  142278. out.Values[i] = ec._AppUsageRecordEdge_cursor(ctx, field, obj)
  142279. if out.Values[i] == graphql.Null {
  142280. invalids++
  142281. }
  142282. case "node":
  142283. out.Values[i] = ec._AppUsageRecordEdge_node(ctx, field, obj)
  142284. if out.Values[i] == graphql.Null {
  142285. invalids++
  142286. }
  142287. default:
  142288. panic("unknown field " + strconv.Quote(field.Name))
  142289. }
  142290. }
  142291. out.Dispatch()
  142292. if invalids > 0 {
  142293. return graphql.Null
  142294. }
  142295. return out
  142296. }
  142297. var attributeImplementors = []string{"Attribute"}
  142298. func (ec *executionContext) _Attribute(ctx context.Context, sel ast.SelectionSet, obj *Attribute) graphql.Marshaler {
  142299. fields := graphql.CollectFields(ec.OperationContext, sel, attributeImplementors)
  142300. out := graphql.NewFieldSet(fields)
  142301. var invalids uint32
  142302. for i, field := range fields {
  142303. switch field.Name {
  142304. case "__typename":
  142305. out.Values[i] = graphql.MarshalString("Attribute")
  142306. case "key":
  142307. out.Values[i] = ec._Attribute_key(ctx, field, obj)
  142308. if out.Values[i] == graphql.Null {
  142309. invalids++
  142310. }
  142311. case "value":
  142312. out.Values[i] = ec._Attribute_value(ctx, field, obj)
  142313. default:
  142314. panic("unknown field " + strconv.Quote(field.Name))
  142315. }
  142316. }
  142317. out.Dispatch()
  142318. if invalids > 0 {
  142319. return graphql.Null
  142320. }
  142321. return out
  142322. }
  142323. var automaticDiscountApplicationImplementors = []string{"AutomaticDiscountApplication", "DiscountApplication"}
  142324. func (ec *executionContext) _AutomaticDiscountApplication(ctx context.Context, sel ast.SelectionSet, obj *AutomaticDiscountApplication) graphql.Marshaler {
  142325. fields := graphql.CollectFields(ec.OperationContext, sel, automaticDiscountApplicationImplementors)
  142326. out := graphql.NewFieldSet(fields)
  142327. var invalids uint32
  142328. for i, field := range fields {
  142329. switch field.Name {
  142330. case "__typename":
  142331. out.Values[i] = graphql.MarshalString("AutomaticDiscountApplication")
  142332. case "allocationMethod":
  142333. out.Values[i] = ec._AutomaticDiscountApplication_allocationMethod(ctx, field, obj)
  142334. if out.Values[i] == graphql.Null {
  142335. invalids++
  142336. }
  142337. case "index":
  142338. out.Values[i] = ec._AutomaticDiscountApplication_index(ctx, field, obj)
  142339. if out.Values[i] == graphql.Null {
  142340. invalids++
  142341. }
  142342. case "targetSelection":
  142343. out.Values[i] = ec._AutomaticDiscountApplication_targetSelection(ctx, field, obj)
  142344. if out.Values[i] == graphql.Null {
  142345. invalids++
  142346. }
  142347. case "targetType":
  142348. out.Values[i] = ec._AutomaticDiscountApplication_targetType(ctx, field, obj)
  142349. if out.Values[i] == graphql.Null {
  142350. invalids++
  142351. }
  142352. case "title":
  142353. out.Values[i] = ec._AutomaticDiscountApplication_title(ctx, field, obj)
  142354. if out.Values[i] == graphql.Null {
  142355. invalids++
  142356. }
  142357. case "value":
  142358. out.Values[i] = ec._AutomaticDiscountApplication_value(ctx, field, obj)
  142359. if out.Values[i] == graphql.Null {
  142360. invalids++
  142361. }
  142362. default:
  142363. panic("unknown field " + strconv.Quote(field.Name))
  142364. }
  142365. }
  142366. out.Dispatch()
  142367. if invalids > 0 {
  142368. return graphql.Null
  142369. }
  142370. return out
  142371. }
  142372. var availableChannelDefinitionsByChannelImplementors = []string{"AvailableChannelDefinitionsByChannel"}
  142373. func (ec *executionContext) _AvailableChannelDefinitionsByChannel(ctx context.Context, sel ast.SelectionSet, obj *AvailableChannelDefinitionsByChannel) graphql.Marshaler {
  142374. fields := graphql.CollectFields(ec.OperationContext, sel, availableChannelDefinitionsByChannelImplementors)
  142375. out := graphql.NewFieldSet(fields)
  142376. var invalids uint32
  142377. for i, field := range fields {
  142378. switch field.Name {
  142379. case "__typename":
  142380. out.Values[i] = graphql.MarshalString("AvailableChannelDefinitionsByChannel")
  142381. case "channelDefinitions":
  142382. out.Values[i] = ec._AvailableChannelDefinitionsByChannel_channelDefinitions(ctx, field, obj)
  142383. if out.Values[i] == graphql.Null {
  142384. invalids++
  142385. }
  142386. case "channelName":
  142387. out.Values[i] = ec._AvailableChannelDefinitionsByChannel_channelName(ctx, field, obj)
  142388. if out.Values[i] == graphql.Null {
  142389. invalids++
  142390. }
  142391. default:
  142392. panic("unknown field " + strconv.Quote(field.Name))
  142393. }
  142394. }
  142395. out.Dispatch()
  142396. if invalids > 0 {
  142397. return graphql.Null
  142398. }
  142399. return out
  142400. }
  142401. var basicEventImplementors = []string{"BasicEvent", "Event", "Node"}
  142402. func (ec *executionContext) _BasicEvent(ctx context.Context, sel ast.SelectionSet, obj *BasicEvent) graphql.Marshaler {
  142403. fields := graphql.CollectFields(ec.OperationContext, sel, basicEventImplementors)
  142404. out := graphql.NewFieldSet(fields)
  142405. var invalids uint32
  142406. for i, field := range fields {
  142407. switch field.Name {
  142408. case "__typename":
  142409. out.Values[i] = graphql.MarshalString("BasicEvent")
  142410. case "appTitle":
  142411. out.Values[i] = ec._BasicEvent_appTitle(ctx, field, obj)
  142412. case "attributeToApp":
  142413. out.Values[i] = ec._BasicEvent_attributeToApp(ctx, field, obj)
  142414. if out.Values[i] == graphql.Null {
  142415. invalids++
  142416. }
  142417. case "attributeToUser":
  142418. out.Values[i] = ec._BasicEvent_attributeToUser(ctx, field, obj)
  142419. if out.Values[i] == graphql.Null {
  142420. invalids++
  142421. }
  142422. case "createdAt":
  142423. out.Values[i] = ec._BasicEvent_createdAt(ctx, field, obj)
  142424. if out.Values[i] == graphql.Null {
  142425. invalids++
  142426. }
  142427. case "criticalAlert":
  142428. out.Values[i] = ec._BasicEvent_criticalAlert(ctx, field, obj)
  142429. if out.Values[i] == graphql.Null {
  142430. invalids++
  142431. }
  142432. case "id":
  142433. out.Values[i] = ec._BasicEvent_id(ctx, field, obj)
  142434. if out.Values[i] == graphql.Null {
  142435. invalids++
  142436. }
  142437. case "message":
  142438. out.Values[i] = ec._BasicEvent_message(ctx, field, obj)
  142439. if out.Values[i] == graphql.Null {
  142440. invalids++
  142441. }
  142442. default:
  142443. panic("unknown field " + strconv.Quote(field.Name))
  142444. }
  142445. }
  142446. out.Dispatch()
  142447. if invalids > 0 {
  142448. return graphql.Null
  142449. }
  142450. return out
  142451. }
  142452. var buyerExperienceConfigurationImplementors = []string{"BuyerExperienceConfiguration"}
  142453. func (ec *executionContext) _BuyerExperienceConfiguration(ctx context.Context, sel ast.SelectionSet, obj *BuyerExperienceConfiguration) graphql.Marshaler {
  142454. fields := graphql.CollectFields(ec.OperationContext, sel, buyerExperienceConfigurationImplementors)
  142455. out := graphql.NewFieldSet(fields)
  142456. var invalids uint32
  142457. for i, field := range fields {
  142458. switch field.Name {
  142459. case "__typename":
  142460. out.Values[i] = graphql.MarshalString("BuyerExperienceConfiguration")
  142461. case "checkoutToDraft":
  142462. out.Values[i] = ec._BuyerExperienceConfiguration_checkoutToDraft(ctx, field, obj)
  142463. if out.Values[i] == graphql.Null {
  142464. invalids++
  142465. }
  142466. case "payNowOnly":
  142467. out.Values[i] = ec._BuyerExperienceConfiguration_payNowOnly(ctx, field, obj)
  142468. if out.Values[i] == graphql.Null {
  142469. invalids++
  142470. }
  142471. case "paymentTermsTemplate":
  142472. out.Values[i] = ec._BuyerExperienceConfiguration_paymentTermsTemplate(ctx, field, obj)
  142473. default:
  142474. panic("unknown field " + strconv.Quote(field.Name))
  142475. }
  142476. }
  142477. out.Dispatch()
  142478. if invalids > 0 {
  142479. return graphql.Null
  142480. }
  142481. return out
  142482. }
  142483. var channelDefinitionImplementors = []string{"ChannelDefinition", "Node"}
  142484. func (ec *executionContext) _ChannelDefinition(ctx context.Context, sel ast.SelectionSet, obj *ChannelDefinition) graphql.Marshaler {
  142485. fields := graphql.CollectFields(ec.OperationContext, sel, channelDefinitionImplementors)
  142486. out := graphql.NewFieldSet(fields)
  142487. var invalids uint32
  142488. for i, field := range fields {
  142489. switch field.Name {
  142490. case "__typename":
  142491. out.Values[i] = graphql.MarshalString("ChannelDefinition")
  142492. case "channelName":
  142493. out.Values[i] = ec._ChannelDefinition_channelName(ctx, field, obj)
  142494. if out.Values[i] == graphql.Null {
  142495. invalids++
  142496. }
  142497. case "handle":
  142498. out.Values[i] = ec._ChannelDefinition_handle(ctx, field, obj)
  142499. if out.Values[i] == graphql.Null {
  142500. invalids++
  142501. }
  142502. case "id":
  142503. out.Values[i] = ec._ChannelDefinition_id(ctx, field, obj)
  142504. if out.Values[i] == graphql.Null {
  142505. invalids++
  142506. }
  142507. case "subChannelName":
  142508. out.Values[i] = ec._ChannelDefinition_subChannelName(ctx, field, obj)
  142509. if out.Values[i] == graphql.Null {
  142510. invalids++
  142511. }
  142512. case "svgIcon":
  142513. out.Values[i] = ec._ChannelDefinition_svgIcon(ctx, field, obj)
  142514. default:
  142515. panic("unknown field " + strconv.Quote(field.Name))
  142516. }
  142517. }
  142518. out.Dispatch()
  142519. if invalids > 0 {
  142520. return graphql.Null
  142521. }
  142522. return out
  142523. }
  142524. var channelInformationImplementors = []string{"ChannelInformation", "Node"}
  142525. func (ec *executionContext) _ChannelInformation(ctx context.Context, sel ast.SelectionSet, obj *ChannelInformation) graphql.Marshaler {
  142526. fields := graphql.CollectFields(ec.OperationContext, sel, channelInformationImplementors)
  142527. out := graphql.NewFieldSet(fields)
  142528. var invalids uint32
  142529. for i, field := range fields {
  142530. switch field.Name {
  142531. case "__typename":
  142532. out.Values[i] = graphql.MarshalString("ChannelInformation")
  142533. case "app":
  142534. out.Values[i] = ec._ChannelInformation_app(ctx, field, obj)
  142535. if out.Values[i] == graphql.Null {
  142536. invalids++
  142537. }
  142538. case "channelDefinition":
  142539. out.Values[i] = ec._ChannelInformation_channelDefinition(ctx, field, obj)
  142540. case "channelId":
  142541. out.Values[i] = ec._ChannelInformation_channelId(ctx, field, obj)
  142542. if out.Values[i] == graphql.Null {
  142543. invalids++
  142544. }
  142545. case "id":
  142546. out.Values[i] = ec._ChannelInformation_id(ctx, field, obj)
  142547. if out.Values[i] == graphql.Null {
  142548. invalids++
  142549. }
  142550. default:
  142551. panic("unknown field " + strconv.Quote(field.Name))
  142552. }
  142553. }
  142554. out.Dispatch()
  142555. if invalids > 0 {
  142556. return graphql.Null
  142557. }
  142558. return out
  142559. }
  142560. var collectionImplementors = []string{"Collection", "HasMetafieldDefinitions", "HasMetafields", "HasPublishedTranslations", "Node", "Publishable", "MetafieldReference"}
  142561. func (ec *executionContext) _Collection(ctx context.Context, sel ast.SelectionSet, obj *Collection) graphql.Marshaler {
  142562. fields := graphql.CollectFields(ec.OperationContext, sel, collectionImplementors)
  142563. out := graphql.NewFieldSet(fields)
  142564. var invalids uint32
  142565. for i, field := range fields {
  142566. switch field.Name {
  142567. case "__typename":
  142568. out.Values[i] = graphql.MarshalString("Collection")
  142569. case "availablePublicationCount":
  142570. out.Values[i] = ec._Collection_availablePublicationCount(ctx, field, obj)
  142571. if out.Values[i] == graphql.Null {
  142572. invalids++
  142573. }
  142574. case "description":
  142575. out.Values[i] = ec._Collection_description(ctx, field, obj)
  142576. if out.Values[i] == graphql.Null {
  142577. invalids++
  142578. }
  142579. case "descriptionHtml":
  142580. out.Values[i] = ec._Collection_descriptionHtml(ctx, field, obj)
  142581. if out.Values[i] == graphql.Null {
  142582. invalids++
  142583. }
  142584. case "feedback":
  142585. out.Values[i] = ec._Collection_feedback(ctx, field, obj)
  142586. case "handle":
  142587. out.Values[i] = ec._Collection_handle(ctx, field, obj)
  142588. if out.Values[i] == graphql.Null {
  142589. invalids++
  142590. }
  142591. case "hasProduct":
  142592. out.Values[i] = ec._Collection_hasProduct(ctx, field, obj)
  142593. if out.Values[i] == graphql.Null {
  142594. invalids++
  142595. }
  142596. case "id":
  142597. out.Values[i] = ec._Collection_id(ctx, field, obj)
  142598. if out.Values[i] == graphql.Null {
  142599. invalids++
  142600. }
  142601. case "image":
  142602. out.Values[i] = ec._Collection_image(ctx, field, obj)
  142603. case "legacyResourceId":
  142604. out.Values[i] = ec._Collection_legacyResourceId(ctx, field, obj)
  142605. if out.Values[i] == graphql.Null {
  142606. invalids++
  142607. }
  142608. case "metafield":
  142609. out.Values[i] = ec._Collection_metafield(ctx, field, obj)
  142610. case "metafieldDefinitions":
  142611. out.Values[i] = ec._Collection_metafieldDefinitions(ctx, field, obj)
  142612. if out.Values[i] == graphql.Null {
  142613. invalids++
  142614. }
  142615. case "metafields":
  142616. out.Values[i] = ec._Collection_metafields(ctx, field, obj)
  142617. if out.Values[i] == graphql.Null {
  142618. invalids++
  142619. }
  142620. case "privateMetafield":
  142621. out.Values[i] = ec._Collection_privateMetafield(ctx, field, obj)
  142622. case "privateMetafields":
  142623. out.Values[i] = ec._Collection_privateMetafields(ctx, field, obj)
  142624. if out.Values[i] == graphql.Null {
  142625. invalids++
  142626. }
  142627. case "products":
  142628. out.Values[i] = ec._Collection_products(ctx, field, obj)
  142629. if out.Values[i] == graphql.Null {
  142630. invalids++
  142631. }
  142632. case "productsCount":
  142633. out.Values[i] = ec._Collection_productsCount(ctx, field, obj)
  142634. if out.Values[i] == graphql.Null {
  142635. invalids++
  142636. }
  142637. case "publicationCount":
  142638. out.Values[i] = ec._Collection_publicationCount(ctx, field, obj)
  142639. if out.Values[i] == graphql.Null {
  142640. invalids++
  142641. }
  142642. case "publishedOnCurrentPublication":
  142643. out.Values[i] = ec._Collection_publishedOnCurrentPublication(ctx, field, obj)
  142644. if out.Values[i] == graphql.Null {
  142645. invalids++
  142646. }
  142647. case "publishedOnPublication":
  142648. out.Values[i] = ec._Collection_publishedOnPublication(ctx, field, obj)
  142649. if out.Values[i] == graphql.Null {
  142650. invalids++
  142651. }
  142652. case "resourcePublications":
  142653. out.Values[i] = ec._Collection_resourcePublications(ctx, field, obj)
  142654. if out.Values[i] == graphql.Null {
  142655. invalids++
  142656. }
  142657. case "resourcePublicationsV2":
  142658. out.Values[i] = ec._Collection_resourcePublicationsV2(ctx, field, obj)
  142659. if out.Values[i] == graphql.Null {
  142660. invalids++
  142661. }
  142662. case "ruleSet":
  142663. out.Values[i] = ec._Collection_ruleSet(ctx, field, obj)
  142664. case "seo":
  142665. out.Values[i] = ec._Collection_seo(ctx, field, obj)
  142666. if out.Values[i] == graphql.Null {
  142667. invalids++
  142668. }
  142669. case "sortOrder":
  142670. out.Values[i] = ec._Collection_sortOrder(ctx, field, obj)
  142671. if out.Values[i] == graphql.Null {
  142672. invalids++
  142673. }
  142674. case "templateSuffix":
  142675. out.Values[i] = ec._Collection_templateSuffix(ctx, field, obj)
  142676. case "title":
  142677. out.Values[i] = ec._Collection_title(ctx, field, obj)
  142678. if out.Values[i] == graphql.Null {
  142679. invalids++
  142680. }
  142681. case "translations":
  142682. out.Values[i] = ec._Collection_translations(ctx, field, obj)
  142683. if out.Values[i] == graphql.Null {
  142684. invalids++
  142685. }
  142686. case "unpublishedPublications":
  142687. out.Values[i] = ec._Collection_unpublishedPublications(ctx, field, obj)
  142688. if out.Values[i] == graphql.Null {
  142689. invalids++
  142690. }
  142691. case "updatedAt":
  142692. out.Values[i] = ec._Collection_updatedAt(ctx, field, obj)
  142693. if out.Values[i] == graphql.Null {
  142694. invalids++
  142695. }
  142696. default:
  142697. panic("unknown field " + strconv.Quote(field.Name))
  142698. }
  142699. }
  142700. out.Dispatch()
  142701. if invalids > 0 {
  142702. return graphql.Null
  142703. }
  142704. return out
  142705. }
  142706. var collectionConnectionImplementors = []string{"CollectionConnection"}
  142707. func (ec *executionContext) _CollectionConnection(ctx context.Context, sel ast.SelectionSet, obj *CollectionConnection) graphql.Marshaler {
  142708. fields := graphql.CollectFields(ec.OperationContext, sel, collectionConnectionImplementors)
  142709. out := graphql.NewFieldSet(fields)
  142710. var invalids uint32
  142711. for i, field := range fields {
  142712. switch field.Name {
  142713. case "__typename":
  142714. out.Values[i] = graphql.MarshalString("CollectionConnection")
  142715. case "edges":
  142716. out.Values[i] = ec._CollectionConnection_edges(ctx, field, obj)
  142717. if out.Values[i] == graphql.Null {
  142718. invalids++
  142719. }
  142720. case "nodes":
  142721. out.Values[i] = ec._CollectionConnection_nodes(ctx, field, obj)
  142722. if out.Values[i] == graphql.Null {
  142723. invalids++
  142724. }
  142725. case "pageInfo":
  142726. out.Values[i] = ec._CollectionConnection_pageInfo(ctx, field, obj)
  142727. if out.Values[i] == graphql.Null {
  142728. invalids++
  142729. }
  142730. default:
  142731. panic("unknown field " + strconv.Quote(field.Name))
  142732. }
  142733. }
  142734. out.Dispatch()
  142735. if invalids > 0 {
  142736. return graphql.Null
  142737. }
  142738. return out
  142739. }
  142740. var collectionEdgeImplementors = []string{"CollectionEdge"}
  142741. func (ec *executionContext) _CollectionEdge(ctx context.Context, sel ast.SelectionSet, obj *CollectionEdge) graphql.Marshaler {
  142742. fields := graphql.CollectFields(ec.OperationContext, sel, collectionEdgeImplementors)
  142743. out := graphql.NewFieldSet(fields)
  142744. var invalids uint32
  142745. for i, field := range fields {
  142746. switch field.Name {
  142747. case "__typename":
  142748. out.Values[i] = graphql.MarshalString("CollectionEdge")
  142749. case "cursor":
  142750. out.Values[i] = ec._CollectionEdge_cursor(ctx, field, obj)
  142751. if out.Values[i] == graphql.Null {
  142752. invalids++
  142753. }
  142754. case "node":
  142755. out.Values[i] = ec._CollectionEdge_node(ctx, field, obj)
  142756. if out.Values[i] == graphql.Null {
  142757. invalids++
  142758. }
  142759. default:
  142760. panic("unknown field " + strconv.Quote(field.Name))
  142761. }
  142762. }
  142763. out.Dispatch()
  142764. if invalids > 0 {
  142765. return graphql.Null
  142766. }
  142767. return out
  142768. }
  142769. var collectionRuleImplementors = []string{"CollectionRule"}
  142770. func (ec *executionContext) _CollectionRule(ctx context.Context, sel ast.SelectionSet, obj *CollectionRule) graphql.Marshaler {
  142771. fields := graphql.CollectFields(ec.OperationContext, sel, collectionRuleImplementors)
  142772. out := graphql.NewFieldSet(fields)
  142773. var invalids uint32
  142774. for i, field := range fields {
  142775. switch field.Name {
  142776. case "__typename":
  142777. out.Values[i] = graphql.MarshalString("CollectionRule")
  142778. case "appliedDisjunctively":
  142779. out.Values[i] = ec._CollectionRule_appliedDisjunctively(ctx, field, obj)
  142780. if out.Values[i] == graphql.Null {
  142781. invalids++
  142782. }
  142783. case "rules":
  142784. out.Values[i] = ec._CollectionRule_rules(ctx, field, obj)
  142785. if out.Values[i] == graphql.Null {
  142786. invalids++
  142787. }
  142788. default:
  142789. panic("unknown field " + strconv.Quote(field.Name))
  142790. }
  142791. }
  142792. out.Dispatch()
  142793. if invalids > 0 {
  142794. return graphql.Null
  142795. }
  142796. return out
  142797. }
  142798. var collectionRuleSetImplementors = []string{"CollectionRuleSet"}
  142799. func (ec *executionContext) _CollectionRuleSet(ctx context.Context, sel ast.SelectionSet, obj *CollectionRuleSet) graphql.Marshaler {
  142800. fields := graphql.CollectFields(ec.OperationContext, sel, collectionRuleSetImplementors)
  142801. out := graphql.NewFieldSet(fields)
  142802. var invalids uint32
  142803. for i, field := range fields {
  142804. switch field.Name {
  142805. case "__typename":
  142806. out.Values[i] = graphql.MarshalString("CollectionRuleSet")
  142807. case "appliedDisjunctively":
  142808. out.Values[i] = ec._CollectionRuleSet_appliedDisjunctively(ctx, field, obj)
  142809. if out.Values[i] == graphql.Null {
  142810. invalids++
  142811. }
  142812. case "rules":
  142813. out.Values[i] = ec._CollectionRuleSet_rules(ctx, field, obj)
  142814. if out.Values[i] == graphql.Null {
  142815. invalids++
  142816. }
  142817. default:
  142818. panic("unknown field " + strconv.Quote(field.Name))
  142819. }
  142820. }
  142821. out.Dispatch()
  142822. if invalids > 0 {
  142823. return graphql.Null
  142824. }
  142825. return out
  142826. }
  142827. var commentEventImplementors = []string{"CommentEvent", "Event", "Node"}
  142828. func (ec *executionContext) _CommentEvent(ctx context.Context, sel ast.SelectionSet, obj *CommentEvent) graphql.Marshaler {
  142829. fields := graphql.CollectFields(ec.OperationContext, sel, commentEventImplementors)
  142830. out := graphql.NewFieldSet(fields)
  142831. var invalids uint32
  142832. for i, field := range fields {
  142833. switch field.Name {
  142834. case "__typename":
  142835. out.Values[i] = graphql.MarshalString("CommentEvent")
  142836. case "appTitle":
  142837. out.Values[i] = ec._CommentEvent_appTitle(ctx, field, obj)
  142838. case "attachments":
  142839. out.Values[i] = ec._CommentEvent_attachments(ctx, field, obj)
  142840. if out.Values[i] == graphql.Null {
  142841. invalids++
  142842. }
  142843. case "attributeToApp":
  142844. out.Values[i] = ec._CommentEvent_attributeToApp(ctx, field, obj)
  142845. if out.Values[i] == graphql.Null {
  142846. invalids++
  142847. }
  142848. case "attributeToUser":
  142849. out.Values[i] = ec._CommentEvent_attributeToUser(ctx, field, obj)
  142850. if out.Values[i] == graphql.Null {
  142851. invalids++
  142852. }
  142853. case "author":
  142854. out.Values[i] = ec._CommentEvent_author(ctx, field, obj)
  142855. if out.Values[i] == graphql.Null {
  142856. invalids++
  142857. }
  142858. case "canDelete":
  142859. out.Values[i] = ec._CommentEvent_canDelete(ctx, field, obj)
  142860. if out.Values[i] == graphql.Null {
  142861. invalids++
  142862. }
  142863. case "canEdit":
  142864. out.Values[i] = ec._CommentEvent_canEdit(ctx, field, obj)
  142865. if out.Values[i] == graphql.Null {
  142866. invalids++
  142867. }
  142868. case "createdAt":
  142869. out.Values[i] = ec._CommentEvent_createdAt(ctx, field, obj)
  142870. if out.Values[i] == graphql.Null {
  142871. invalids++
  142872. }
  142873. case "criticalAlert":
  142874. out.Values[i] = ec._CommentEvent_criticalAlert(ctx, field, obj)
  142875. if out.Values[i] == graphql.Null {
  142876. invalids++
  142877. }
  142878. case "edited":
  142879. out.Values[i] = ec._CommentEvent_edited(ctx, field, obj)
  142880. if out.Values[i] == graphql.Null {
  142881. invalids++
  142882. }
  142883. case "embed":
  142884. out.Values[i] = ec._CommentEvent_embed(ctx, field, obj)
  142885. case "id":
  142886. out.Values[i] = ec._CommentEvent_id(ctx, field, obj)
  142887. if out.Values[i] == graphql.Null {
  142888. invalids++
  142889. }
  142890. case "message":
  142891. out.Values[i] = ec._CommentEvent_message(ctx, field, obj)
  142892. if out.Values[i] == graphql.Null {
  142893. invalids++
  142894. }
  142895. case "rawMessage":
  142896. out.Values[i] = ec._CommentEvent_rawMessage(ctx, field, obj)
  142897. if out.Values[i] == graphql.Null {
  142898. invalids++
  142899. }
  142900. case "subject":
  142901. out.Values[i] = ec._CommentEvent_subject(ctx, field, obj)
  142902. if out.Values[i] == graphql.Null {
  142903. invalids++
  142904. }
  142905. default:
  142906. panic("unknown field " + strconv.Quote(field.Name))
  142907. }
  142908. }
  142909. out.Dispatch()
  142910. if invalids > 0 {
  142911. return graphql.Null
  142912. }
  142913. return out
  142914. }
  142915. var commentEventAttachmentImplementors = []string{"CommentEventAttachment"}
  142916. func (ec *executionContext) _CommentEventAttachment(ctx context.Context, sel ast.SelectionSet, obj *CommentEventAttachment) graphql.Marshaler {
  142917. fields := graphql.CollectFields(ec.OperationContext, sel, commentEventAttachmentImplementors)
  142918. out := graphql.NewFieldSet(fields)
  142919. var invalids uint32
  142920. for i, field := range fields {
  142921. switch field.Name {
  142922. case "__typename":
  142923. out.Values[i] = graphql.MarshalString("CommentEventAttachment")
  142924. case "fileExtension":
  142925. out.Values[i] = ec._CommentEventAttachment_fileExtension(ctx, field, obj)
  142926. case "id":
  142927. out.Values[i] = ec._CommentEventAttachment_id(ctx, field, obj)
  142928. if out.Values[i] == graphql.Null {
  142929. invalids++
  142930. }
  142931. case "image":
  142932. out.Values[i] = ec._CommentEventAttachment_image(ctx, field, obj)
  142933. case "name":
  142934. out.Values[i] = ec._CommentEventAttachment_name(ctx, field, obj)
  142935. if out.Values[i] == graphql.Null {
  142936. invalids++
  142937. }
  142938. case "size":
  142939. out.Values[i] = ec._CommentEventAttachment_size(ctx, field, obj)
  142940. if out.Values[i] == graphql.Null {
  142941. invalids++
  142942. }
  142943. case "url":
  142944. out.Values[i] = ec._CommentEventAttachment_url(ctx, field, obj)
  142945. if out.Values[i] == graphql.Null {
  142946. invalids++
  142947. }
  142948. default:
  142949. panic("unknown field " + strconv.Quote(field.Name))
  142950. }
  142951. }
  142952. out.Dispatch()
  142953. if invalids > 0 {
  142954. return graphql.Null
  142955. }
  142956. return out
  142957. }
  142958. var companyImplementors = []string{"Company", "CommentEventSubject", "HasEvents", "Navigable", "Node"}
  142959. func (ec *executionContext) _Company(ctx context.Context, sel ast.SelectionSet, obj *Company) graphql.Marshaler {
  142960. fields := graphql.CollectFields(ec.OperationContext, sel, companyImplementors)
  142961. out := graphql.NewFieldSet(fields)
  142962. var invalids uint32
  142963. for i, field := range fields {
  142964. switch field.Name {
  142965. case "__typename":
  142966. out.Values[i] = graphql.MarshalString("Company")
  142967. case "contactCount":
  142968. out.Values[i] = ec._Company_contactCount(ctx, field, obj)
  142969. if out.Values[i] == graphql.Null {
  142970. invalids++
  142971. }
  142972. case "contactRoles":
  142973. out.Values[i] = ec._Company_contactRoles(ctx, field, obj)
  142974. if out.Values[i] == graphql.Null {
  142975. invalids++
  142976. }
  142977. case "contacts":
  142978. out.Values[i] = ec._Company_contacts(ctx, field, obj)
  142979. if out.Values[i] == graphql.Null {
  142980. invalids++
  142981. }
  142982. case "createdAt":
  142983. out.Values[i] = ec._Company_createdAt(ctx, field, obj)
  142984. if out.Values[i] == graphql.Null {
  142985. invalids++
  142986. }
  142987. case "customerSince":
  142988. out.Values[i] = ec._Company_customerSince(ctx, field, obj)
  142989. if out.Values[i] == graphql.Null {
  142990. invalids++
  142991. }
  142992. case "defaultCursor":
  142993. out.Values[i] = ec._Company_defaultCursor(ctx, field, obj)
  142994. if out.Values[i] == graphql.Null {
  142995. invalids++
  142996. }
  142997. case "defaultRole":
  142998. out.Values[i] = ec._Company_defaultRole(ctx, field, obj)
  142999. case "draftOrders":
  143000. out.Values[i] = ec._Company_draftOrders(ctx, field, obj)
  143001. if out.Values[i] == graphql.Null {
  143002. invalids++
  143003. }
  143004. case "events":
  143005. out.Values[i] = ec._Company_events(ctx, field, obj)
  143006. if out.Values[i] == graphql.Null {
  143007. invalids++
  143008. }
  143009. case "externalId":
  143010. out.Values[i] = ec._Company_externalId(ctx, field, obj)
  143011. case "hasTimelineComment":
  143012. out.Values[i] = ec._Company_hasTimelineComment(ctx, field, obj)
  143013. if out.Values[i] == graphql.Null {
  143014. invalids++
  143015. }
  143016. case "id":
  143017. out.Values[i] = ec._Company_id(ctx, field, obj)
  143018. if out.Values[i] == graphql.Null {
  143019. invalids++
  143020. }
  143021. case "lifetimeDuration":
  143022. out.Values[i] = ec._Company_lifetimeDuration(ctx, field, obj)
  143023. if out.Values[i] == graphql.Null {
  143024. invalids++
  143025. }
  143026. case "locationCount":
  143027. out.Values[i] = ec._Company_locationCount(ctx, field, obj)
  143028. if out.Values[i] == graphql.Null {
  143029. invalids++
  143030. }
  143031. case "locations":
  143032. out.Values[i] = ec._Company_locations(ctx, field, obj)
  143033. if out.Values[i] == graphql.Null {
  143034. invalids++
  143035. }
  143036. case "mainContact":
  143037. out.Values[i] = ec._Company_mainContact(ctx, field, obj)
  143038. case "name":
  143039. out.Values[i] = ec._Company_name(ctx, field, obj)
  143040. if out.Values[i] == graphql.Null {
  143041. invalids++
  143042. }
  143043. case "note":
  143044. out.Values[i] = ec._Company_note(ctx, field, obj)
  143045. case "orderCount":
  143046. out.Values[i] = ec._Company_orderCount(ctx, field, obj)
  143047. if out.Values[i] == graphql.Null {
  143048. invalids++
  143049. }
  143050. case "orders":
  143051. out.Values[i] = ec._Company_orders(ctx, field, obj)
  143052. if out.Values[i] == graphql.Null {
  143053. invalids++
  143054. }
  143055. case "totalSpent":
  143056. out.Values[i] = ec._Company_totalSpent(ctx, field, obj)
  143057. if out.Values[i] == graphql.Null {
  143058. invalids++
  143059. }
  143060. case "updatedAt":
  143061. out.Values[i] = ec._Company_updatedAt(ctx, field, obj)
  143062. if out.Values[i] == graphql.Null {
  143063. invalids++
  143064. }
  143065. default:
  143066. panic("unknown field " + strconv.Quote(field.Name))
  143067. }
  143068. }
  143069. out.Dispatch()
  143070. if invalids > 0 {
  143071. return graphql.Null
  143072. }
  143073. return out
  143074. }
  143075. var companyAddressImplementors = []string{"CompanyAddress", "Node"}
  143076. func (ec *executionContext) _CompanyAddress(ctx context.Context, sel ast.SelectionSet, obj *CompanyAddress) graphql.Marshaler {
  143077. fields := graphql.CollectFields(ec.OperationContext, sel, companyAddressImplementors)
  143078. out := graphql.NewFieldSet(fields)
  143079. var invalids uint32
  143080. for i, field := range fields {
  143081. switch field.Name {
  143082. case "__typename":
  143083. out.Values[i] = graphql.MarshalString("CompanyAddress")
  143084. case "address1":
  143085. out.Values[i] = ec._CompanyAddress_address1(ctx, field, obj)
  143086. if out.Values[i] == graphql.Null {
  143087. invalids++
  143088. }
  143089. case "address2":
  143090. out.Values[i] = ec._CompanyAddress_address2(ctx, field, obj)
  143091. case "city":
  143092. out.Values[i] = ec._CompanyAddress_city(ctx, field, obj)
  143093. case "companyName":
  143094. out.Values[i] = ec._CompanyAddress_companyName(ctx, field, obj)
  143095. if out.Values[i] == graphql.Null {
  143096. invalids++
  143097. }
  143098. case "country":
  143099. out.Values[i] = ec._CompanyAddress_country(ctx, field, obj)
  143100. case "countryCode":
  143101. out.Values[i] = ec._CompanyAddress_countryCode(ctx, field, obj)
  143102. if out.Values[i] == graphql.Null {
  143103. invalids++
  143104. }
  143105. case "createdAt":
  143106. out.Values[i] = ec._CompanyAddress_createdAt(ctx, field, obj)
  143107. if out.Values[i] == graphql.Null {
  143108. invalids++
  143109. }
  143110. case "formattedArea":
  143111. out.Values[i] = ec._CompanyAddress_formattedArea(ctx, field, obj)
  143112. case "id":
  143113. out.Values[i] = ec._CompanyAddress_id(ctx, field, obj)
  143114. if out.Values[i] == graphql.Null {
  143115. invalids++
  143116. }
  143117. case "phone":
  143118. out.Values[i] = ec._CompanyAddress_phone(ctx, field, obj)
  143119. case "province":
  143120. out.Values[i] = ec._CompanyAddress_province(ctx, field, obj)
  143121. case "recipient":
  143122. out.Values[i] = ec._CompanyAddress_recipient(ctx, field, obj)
  143123. case "updatedAt":
  143124. out.Values[i] = ec._CompanyAddress_updatedAt(ctx, field, obj)
  143125. if out.Values[i] == graphql.Null {
  143126. invalids++
  143127. }
  143128. case "zip":
  143129. out.Values[i] = ec._CompanyAddress_zip(ctx, field, obj)
  143130. case "zoneCode":
  143131. out.Values[i] = ec._CompanyAddress_zoneCode(ctx, field, obj)
  143132. default:
  143133. panic("unknown field " + strconv.Quote(field.Name))
  143134. }
  143135. }
  143136. out.Dispatch()
  143137. if invalids > 0 {
  143138. return graphql.Null
  143139. }
  143140. return out
  143141. }
  143142. var companyContactImplementors = []string{"CompanyContact", "Node"}
  143143. func (ec *executionContext) _CompanyContact(ctx context.Context, sel ast.SelectionSet, obj *CompanyContact) graphql.Marshaler {
  143144. fields := graphql.CollectFields(ec.OperationContext, sel, companyContactImplementors)
  143145. out := graphql.NewFieldSet(fields)
  143146. var invalids uint32
  143147. for i, field := range fields {
  143148. switch field.Name {
  143149. case "__typename":
  143150. out.Values[i] = graphql.MarshalString("CompanyContact")
  143151. case "company":
  143152. out.Values[i] = ec._CompanyContact_company(ctx, field, obj)
  143153. if out.Values[i] == graphql.Null {
  143154. invalids++
  143155. }
  143156. case "createdAt":
  143157. out.Values[i] = ec._CompanyContact_createdAt(ctx, field, obj)
  143158. if out.Values[i] == graphql.Null {
  143159. invalids++
  143160. }
  143161. case "customer":
  143162. out.Values[i] = ec._CompanyContact_customer(ctx, field, obj)
  143163. if out.Values[i] == graphql.Null {
  143164. invalids++
  143165. }
  143166. case "draftOrders":
  143167. out.Values[i] = ec._CompanyContact_draftOrders(ctx, field, obj)
  143168. if out.Values[i] == graphql.Null {
  143169. invalids++
  143170. }
  143171. case "id":
  143172. out.Values[i] = ec._CompanyContact_id(ctx, field, obj)
  143173. if out.Values[i] == graphql.Null {
  143174. invalids++
  143175. }
  143176. case "isMainContact":
  143177. out.Values[i] = ec._CompanyContact_isMainContact(ctx, field, obj)
  143178. if out.Values[i] == graphql.Null {
  143179. invalids++
  143180. }
  143181. case "lifetimeDuration":
  143182. out.Values[i] = ec._CompanyContact_lifetimeDuration(ctx, field, obj)
  143183. if out.Values[i] == graphql.Null {
  143184. invalids++
  143185. }
  143186. case "locale":
  143187. out.Values[i] = ec._CompanyContact_locale(ctx, field, obj)
  143188. case "orders":
  143189. out.Values[i] = ec._CompanyContact_orders(ctx, field, obj)
  143190. if out.Values[i] == graphql.Null {
  143191. invalids++
  143192. }
  143193. case "roleAssignments":
  143194. out.Values[i] = ec._CompanyContact_roleAssignments(ctx, field, obj)
  143195. if out.Values[i] == graphql.Null {
  143196. invalids++
  143197. }
  143198. case "title":
  143199. out.Values[i] = ec._CompanyContact_title(ctx, field, obj)
  143200. case "updatedAt":
  143201. out.Values[i] = ec._CompanyContact_updatedAt(ctx, field, obj)
  143202. if out.Values[i] == graphql.Null {
  143203. invalids++
  143204. }
  143205. default:
  143206. panic("unknown field " + strconv.Quote(field.Name))
  143207. }
  143208. }
  143209. out.Dispatch()
  143210. if invalids > 0 {
  143211. return graphql.Null
  143212. }
  143213. return out
  143214. }
  143215. var companyContactConnectionImplementors = []string{"CompanyContactConnection"}
  143216. func (ec *executionContext) _CompanyContactConnection(ctx context.Context, sel ast.SelectionSet, obj *CompanyContactConnection) graphql.Marshaler {
  143217. fields := graphql.CollectFields(ec.OperationContext, sel, companyContactConnectionImplementors)
  143218. out := graphql.NewFieldSet(fields)
  143219. var invalids uint32
  143220. for i, field := range fields {
  143221. switch field.Name {
  143222. case "__typename":
  143223. out.Values[i] = graphql.MarshalString("CompanyContactConnection")
  143224. case "edges":
  143225. out.Values[i] = ec._CompanyContactConnection_edges(ctx, field, obj)
  143226. if out.Values[i] == graphql.Null {
  143227. invalids++
  143228. }
  143229. case "nodes":
  143230. out.Values[i] = ec._CompanyContactConnection_nodes(ctx, field, obj)
  143231. if out.Values[i] == graphql.Null {
  143232. invalids++
  143233. }
  143234. case "pageInfo":
  143235. out.Values[i] = ec._CompanyContactConnection_pageInfo(ctx, field, obj)
  143236. if out.Values[i] == graphql.Null {
  143237. invalids++
  143238. }
  143239. default:
  143240. panic("unknown field " + strconv.Quote(field.Name))
  143241. }
  143242. }
  143243. out.Dispatch()
  143244. if invalids > 0 {
  143245. return graphql.Null
  143246. }
  143247. return out
  143248. }
  143249. var companyContactEdgeImplementors = []string{"CompanyContactEdge"}
  143250. func (ec *executionContext) _CompanyContactEdge(ctx context.Context, sel ast.SelectionSet, obj *CompanyContactEdge) graphql.Marshaler {
  143251. fields := graphql.CollectFields(ec.OperationContext, sel, companyContactEdgeImplementors)
  143252. out := graphql.NewFieldSet(fields)
  143253. var invalids uint32
  143254. for i, field := range fields {
  143255. switch field.Name {
  143256. case "__typename":
  143257. out.Values[i] = graphql.MarshalString("CompanyContactEdge")
  143258. case "cursor":
  143259. out.Values[i] = ec._CompanyContactEdge_cursor(ctx, field, obj)
  143260. if out.Values[i] == graphql.Null {
  143261. invalids++
  143262. }
  143263. case "node":
  143264. out.Values[i] = ec._CompanyContactEdge_node(ctx, field, obj)
  143265. if out.Values[i] == graphql.Null {
  143266. invalids++
  143267. }
  143268. default:
  143269. panic("unknown field " + strconv.Quote(field.Name))
  143270. }
  143271. }
  143272. out.Dispatch()
  143273. if invalids > 0 {
  143274. return graphql.Null
  143275. }
  143276. return out
  143277. }
  143278. var companyContactRoleImplementors = []string{"CompanyContactRole", "Node"}
  143279. func (ec *executionContext) _CompanyContactRole(ctx context.Context, sel ast.SelectionSet, obj *CompanyContactRole) graphql.Marshaler {
  143280. fields := graphql.CollectFields(ec.OperationContext, sel, companyContactRoleImplementors)
  143281. out := graphql.NewFieldSet(fields)
  143282. var invalids uint32
  143283. for i, field := range fields {
  143284. switch field.Name {
  143285. case "__typename":
  143286. out.Values[i] = graphql.MarshalString("CompanyContactRole")
  143287. case "id":
  143288. out.Values[i] = ec._CompanyContactRole_id(ctx, field, obj)
  143289. if out.Values[i] == graphql.Null {
  143290. invalids++
  143291. }
  143292. case "name":
  143293. out.Values[i] = ec._CompanyContactRole_name(ctx, field, obj)
  143294. if out.Values[i] == graphql.Null {
  143295. invalids++
  143296. }
  143297. case "note":
  143298. out.Values[i] = ec._CompanyContactRole_note(ctx, field, obj)
  143299. default:
  143300. panic("unknown field " + strconv.Quote(field.Name))
  143301. }
  143302. }
  143303. out.Dispatch()
  143304. if invalids > 0 {
  143305. return graphql.Null
  143306. }
  143307. return out
  143308. }
  143309. var companyContactRoleAssignmentImplementors = []string{"CompanyContactRoleAssignment", "Node"}
  143310. func (ec *executionContext) _CompanyContactRoleAssignment(ctx context.Context, sel ast.SelectionSet, obj *CompanyContactRoleAssignment) graphql.Marshaler {
  143311. fields := graphql.CollectFields(ec.OperationContext, sel, companyContactRoleAssignmentImplementors)
  143312. out := graphql.NewFieldSet(fields)
  143313. var invalids uint32
  143314. for i, field := range fields {
  143315. switch field.Name {
  143316. case "__typename":
  143317. out.Values[i] = graphql.MarshalString("CompanyContactRoleAssignment")
  143318. case "company":
  143319. out.Values[i] = ec._CompanyContactRoleAssignment_company(ctx, field, obj)
  143320. if out.Values[i] == graphql.Null {
  143321. invalids++
  143322. }
  143323. case "companyContact":
  143324. out.Values[i] = ec._CompanyContactRoleAssignment_companyContact(ctx, field, obj)
  143325. if out.Values[i] == graphql.Null {
  143326. invalids++
  143327. }
  143328. case "companyLocation":
  143329. out.Values[i] = ec._CompanyContactRoleAssignment_companyLocation(ctx, field, obj)
  143330. if out.Values[i] == graphql.Null {
  143331. invalids++
  143332. }
  143333. case "createdAt":
  143334. out.Values[i] = ec._CompanyContactRoleAssignment_createdAt(ctx, field, obj)
  143335. if out.Values[i] == graphql.Null {
  143336. invalids++
  143337. }
  143338. case "id":
  143339. out.Values[i] = ec._CompanyContactRoleAssignment_id(ctx, field, obj)
  143340. if out.Values[i] == graphql.Null {
  143341. invalids++
  143342. }
  143343. case "role":
  143344. out.Values[i] = ec._CompanyContactRoleAssignment_role(ctx, field, obj)
  143345. if out.Values[i] == graphql.Null {
  143346. invalids++
  143347. }
  143348. case "updatedAt":
  143349. out.Values[i] = ec._CompanyContactRoleAssignment_updatedAt(ctx, field, obj)
  143350. if out.Values[i] == graphql.Null {
  143351. invalids++
  143352. }
  143353. default:
  143354. panic("unknown field " + strconv.Quote(field.Name))
  143355. }
  143356. }
  143357. out.Dispatch()
  143358. if invalids > 0 {
  143359. return graphql.Null
  143360. }
  143361. return out
  143362. }
  143363. var companyContactRoleAssignmentConnectionImplementors = []string{"CompanyContactRoleAssignmentConnection"}
  143364. func (ec *executionContext) _CompanyContactRoleAssignmentConnection(ctx context.Context, sel ast.SelectionSet, obj *CompanyContactRoleAssignmentConnection) graphql.Marshaler {
  143365. fields := graphql.CollectFields(ec.OperationContext, sel, companyContactRoleAssignmentConnectionImplementors)
  143366. out := graphql.NewFieldSet(fields)
  143367. var invalids uint32
  143368. for i, field := range fields {
  143369. switch field.Name {
  143370. case "__typename":
  143371. out.Values[i] = graphql.MarshalString("CompanyContactRoleAssignmentConnection")
  143372. case "edges":
  143373. out.Values[i] = ec._CompanyContactRoleAssignmentConnection_edges(ctx, field, obj)
  143374. if out.Values[i] == graphql.Null {
  143375. invalids++
  143376. }
  143377. case "nodes":
  143378. out.Values[i] = ec._CompanyContactRoleAssignmentConnection_nodes(ctx, field, obj)
  143379. if out.Values[i] == graphql.Null {
  143380. invalids++
  143381. }
  143382. case "pageInfo":
  143383. out.Values[i] = ec._CompanyContactRoleAssignmentConnection_pageInfo(ctx, field, obj)
  143384. if out.Values[i] == graphql.Null {
  143385. invalids++
  143386. }
  143387. default:
  143388. panic("unknown field " + strconv.Quote(field.Name))
  143389. }
  143390. }
  143391. out.Dispatch()
  143392. if invalids > 0 {
  143393. return graphql.Null
  143394. }
  143395. return out
  143396. }
  143397. var companyContactRoleAssignmentEdgeImplementors = []string{"CompanyContactRoleAssignmentEdge"}
  143398. func (ec *executionContext) _CompanyContactRoleAssignmentEdge(ctx context.Context, sel ast.SelectionSet, obj *CompanyContactRoleAssignmentEdge) graphql.Marshaler {
  143399. fields := graphql.CollectFields(ec.OperationContext, sel, companyContactRoleAssignmentEdgeImplementors)
  143400. out := graphql.NewFieldSet(fields)
  143401. var invalids uint32
  143402. for i, field := range fields {
  143403. switch field.Name {
  143404. case "__typename":
  143405. out.Values[i] = graphql.MarshalString("CompanyContactRoleAssignmentEdge")
  143406. case "cursor":
  143407. out.Values[i] = ec._CompanyContactRoleAssignmentEdge_cursor(ctx, field, obj)
  143408. if out.Values[i] == graphql.Null {
  143409. invalids++
  143410. }
  143411. case "node":
  143412. out.Values[i] = ec._CompanyContactRoleAssignmentEdge_node(ctx, field, obj)
  143413. if out.Values[i] == graphql.Null {
  143414. invalids++
  143415. }
  143416. default:
  143417. panic("unknown field " + strconv.Quote(field.Name))
  143418. }
  143419. }
  143420. out.Dispatch()
  143421. if invalids > 0 {
  143422. return graphql.Null
  143423. }
  143424. return out
  143425. }
  143426. var companyContactRoleConnectionImplementors = []string{"CompanyContactRoleConnection"}
  143427. func (ec *executionContext) _CompanyContactRoleConnection(ctx context.Context, sel ast.SelectionSet, obj *CompanyContactRoleConnection) graphql.Marshaler {
  143428. fields := graphql.CollectFields(ec.OperationContext, sel, companyContactRoleConnectionImplementors)
  143429. out := graphql.NewFieldSet(fields)
  143430. var invalids uint32
  143431. for i, field := range fields {
  143432. switch field.Name {
  143433. case "__typename":
  143434. out.Values[i] = graphql.MarshalString("CompanyContactRoleConnection")
  143435. case "edges":
  143436. out.Values[i] = ec._CompanyContactRoleConnection_edges(ctx, field, obj)
  143437. if out.Values[i] == graphql.Null {
  143438. invalids++
  143439. }
  143440. case "nodes":
  143441. out.Values[i] = ec._CompanyContactRoleConnection_nodes(ctx, field, obj)
  143442. if out.Values[i] == graphql.Null {
  143443. invalids++
  143444. }
  143445. case "pageInfo":
  143446. out.Values[i] = ec._CompanyContactRoleConnection_pageInfo(ctx, field, obj)
  143447. if out.Values[i] == graphql.Null {
  143448. invalids++
  143449. }
  143450. default:
  143451. panic("unknown field " + strconv.Quote(field.Name))
  143452. }
  143453. }
  143454. out.Dispatch()
  143455. if invalids > 0 {
  143456. return graphql.Null
  143457. }
  143458. return out
  143459. }
  143460. var companyContactRoleEdgeImplementors = []string{"CompanyContactRoleEdge"}
  143461. func (ec *executionContext) _CompanyContactRoleEdge(ctx context.Context, sel ast.SelectionSet, obj *CompanyContactRoleEdge) graphql.Marshaler {
  143462. fields := graphql.CollectFields(ec.OperationContext, sel, companyContactRoleEdgeImplementors)
  143463. out := graphql.NewFieldSet(fields)
  143464. var invalids uint32
  143465. for i, field := range fields {
  143466. switch field.Name {
  143467. case "__typename":
  143468. out.Values[i] = graphql.MarshalString("CompanyContactRoleEdge")
  143469. case "cursor":
  143470. out.Values[i] = ec._CompanyContactRoleEdge_cursor(ctx, field, obj)
  143471. if out.Values[i] == graphql.Null {
  143472. invalids++
  143473. }
  143474. case "node":
  143475. out.Values[i] = ec._CompanyContactRoleEdge_node(ctx, field, obj)
  143476. if out.Values[i] == graphql.Null {
  143477. invalids++
  143478. }
  143479. default:
  143480. panic("unknown field " + strconv.Quote(field.Name))
  143481. }
  143482. }
  143483. out.Dispatch()
  143484. if invalids > 0 {
  143485. return graphql.Null
  143486. }
  143487. return out
  143488. }
  143489. var companyLocationImplementors = []string{"CompanyLocation", "CommentEventSubject", "HasEvents", "Navigable", "Node"}
  143490. func (ec *executionContext) _CompanyLocation(ctx context.Context, sel ast.SelectionSet, obj *CompanyLocation) graphql.Marshaler {
  143491. fields := graphql.CollectFields(ec.OperationContext, sel, companyLocationImplementors)
  143492. out := graphql.NewFieldSet(fields)
  143493. var invalids uint32
  143494. for i, field := range fields {
  143495. switch field.Name {
  143496. case "__typename":
  143497. out.Values[i] = graphql.MarshalString("CompanyLocation")
  143498. case "billingAddress":
  143499. out.Values[i] = ec._CompanyLocation_billingAddress(ctx, field, obj)
  143500. case "buyerExperienceConfiguration":
  143501. out.Values[i] = ec._CompanyLocation_buyerExperienceConfiguration(ctx, field, obj)
  143502. case "company":
  143503. out.Values[i] = ec._CompanyLocation_company(ctx, field, obj)
  143504. if out.Values[i] == graphql.Null {
  143505. invalids++
  143506. }
  143507. case "createdAt":
  143508. out.Values[i] = ec._CompanyLocation_createdAt(ctx, field, obj)
  143509. if out.Values[i] == graphql.Null {
  143510. invalids++
  143511. }
  143512. case "currency":
  143513. out.Values[i] = ec._CompanyLocation_currency(ctx, field, obj)
  143514. if out.Values[i] == graphql.Null {
  143515. invalids++
  143516. }
  143517. case "defaultCursor":
  143518. out.Values[i] = ec._CompanyLocation_defaultCursor(ctx, field, obj)
  143519. if out.Values[i] == graphql.Null {
  143520. invalids++
  143521. }
  143522. case "draftOrders":
  143523. out.Values[i] = ec._CompanyLocation_draftOrders(ctx, field, obj)
  143524. if out.Values[i] == graphql.Null {
  143525. invalids++
  143526. }
  143527. case "events":
  143528. out.Values[i] = ec._CompanyLocation_events(ctx, field, obj)
  143529. if out.Values[i] == graphql.Null {
  143530. invalids++
  143531. }
  143532. case "externalId":
  143533. out.Values[i] = ec._CompanyLocation_externalId(ctx, field, obj)
  143534. case "hasTimelineComment":
  143535. out.Values[i] = ec._CompanyLocation_hasTimelineComment(ctx, field, obj)
  143536. if out.Values[i] == graphql.Null {
  143537. invalids++
  143538. }
  143539. case "id":
  143540. out.Values[i] = ec._CompanyLocation_id(ctx, field, obj)
  143541. if out.Values[i] == graphql.Null {
  143542. invalids++
  143543. }
  143544. case "locale":
  143545. out.Values[i] = ec._CompanyLocation_locale(ctx, field, obj)
  143546. case "market":
  143547. out.Values[i] = ec._CompanyLocation_market(ctx, field, obj)
  143548. if out.Values[i] == graphql.Null {
  143549. invalids++
  143550. }
  143551. case "name":
  143552. out.Values[i] = ec._CompanyLocation_name(ctx, field, obj)
  143553. if out.Values[i] == graphql.Null {
  143554. invalids++
  143555. }
  143556. case "note":
  143557. out.Values[i] = ec._CompanyLocation_note(ctx, field, obj)
  143558. case "orderCount":
  143559. out.Values[i] = ec._CompanyLocation_orderCount(ctx, field, obj)
  143560. if out.Values[i] == graphql.Null {
  143561. invalids++
  143562. }
  143563. case "orders":
  143564. out.Values[i] = ec._CompanyLocation_orders(ctx, field, obj)
  143565. if out.Values[i] == graphql.Null {
  143566. invalids++
  143567. }
  143568. case "phone":
  143569. out.Values[i] = ec._CompanyLocation_phone(ctx, field, obj)
  143570. case "roleAssignments":
  143571. out.Values[i] = ec._CompanyLocation_roleAssignments(ctx, field, obj)
  143572. if out.Values[i] == graphql.Null {
  143573. invalids++
  143574. }
  143575. case "shippingAddress":
  143576. out.Values[i] = ec._CompanyLocation_shippingAddress(ctx, field, obj)
  143577. case "taxExemptions":
  143578. out.Values[i] = ec._CompanyLocation_taxExemptions(ctx, field, obj)
  143579. if out.Values[i] == graphql.Null {
  143580. invalids++
  143581. }
  143582. case "taxRegistrationId":
  143583. out.Values[i] = ec._CompanyLocation_taxRegistrationId(ctx, field, obj)
  143584. case "totalSpent":
  143585. out.Values[i] = ec._CompanyLocation_totalSpent(ctx, field, obj)
  143586. if out.Values[i] == graphql.Null {
  143587. invalids++
  143588. }
  143589. case "updatedAt":
  143590. out.Values[i] = ec._CompanyLocation_updatedAt(ctx, field, obj)
  143591. if out.Values[i] == graphql.Null {
  143592. invalids++
  143593. }
  143594. default:
  143595. panic("unknown field " + strconv.Quote(field.Name))
  143596. }
  143597. }
  143598. out.Dispatch()
  143599. if invalids > 0 {
  143600. return graphql.Null
  143601. }
  143602. return out
  143603. }
  143604. var companyLocationConnectionImplementors = []string{"CompanyLocationConnection"}
  143605. func (ec *executionContext) _CompanyLocationConnection(ctx context.Context, sel ast.SelectionSet, obj *CompanyLocationConnection) graphql.Marshaler {
  143606. fields := graphql.CollectFields(ec.OperationContext, sel, companyLocationConnectionImplementors)
  143607. out := graphql.NewFieldSet(fields)
  143608. var invalids uint32
  143609. for i, field := range fields {
  143610. switch field.Name {
  143611. case "__typename":
  143612. out.Values[i] = graphql.MarshalString("CompanyLocationConnection")
  143613. case "edges":
  143614. out.Values[i] = ec._CompanyLocationConnection_edges(ctx, field, obj)
  143615. if out.Values[i] == graphql.Null {
  143616. invalids++
  143617. }
  143618. case "nodes":
  143619. out.Values[i] = ec._CompanyLocationConnection_nodes(ctx, field, obj)
  143620. if out.Values[i] == graphql.Null {
  143621. invalids++
  143622. }
  143623. case "pageInfo":
  143624. out.Values[i] = ec._CompanyLocationConnection_pageInfo(ctx, field, obj)
  143625. if out.Values[i] == graphql.Null {
  143626. invalids++
  143627. }
  143628. default:
  143629. panic("unknown field " + strconv.Quote(field.Name))
  143630. }
  143631. }
  143632. out.Dispatch()
  143633. if invalids > 0 {
  143634. return graphql.Null
  143635. }
  143636. return out
  143637. }
  143638. var companyLocationEdgeImplementors = []string{"CompanyLocationEdge"}
  143639. func (ec *executionContext) _CompanyLocationEdge(ctx context.Context, sel ast.SelectionSet, obj *CompanyLocationEdge) graphql.Marshaler {
  143640. fields := graphql.CollectFields(ec.OperationContext, sel, companyLocationEdgeImplementors)
  143641. out := graphql.NewFieldSet(fields)
  143642. var invalids uint32
  143643. for i, field := range fields {
  143644. switch field.Name {
  143645. case "__typename":
  143646. out.Values[i] = graphql.MarshalString("CompanyLocationEdge")
  143647. case "cursor":
  143648. out.Values[i] = ec._CompanyLocationEdge_cursor(ctx, field, obj)
  143649. if out.Values[i] == graphql.Null {
  143650. invalids++
  143651. }
  143652. case "node":
  143653. out.Values[i] = ec._CompanyLocationEdge_node(ctx, field, obj)
  143654. if out.Values[i] == graphql.Null {
  143655. invalids++
  143656. }
  143657. default:
  143658. panic("unknown field " + strconv.Quote(field.Name))
  143659. }
  143660. }
  143661. out.Dispatch()
  143662. if invalids > 0 {
  143663. return graphql.Null
  143664. }
  143665. return out
  143666. }
  143667. var countriesInShippingZonesImplementors = []string{"CountriesInShippingZones"}
  143668. func (ec *executionContext) _CountriesInShippingZones(ctx context.Context, sel ast.SelectionSet, obj *CountriesInShippingZones) graphql.Marshaler {
  143669. fields := graphql.CollectFields(ec.OperationContext, sel, countriesInShippingZonesImplementors)
  143670. out := graphql.NewFieldSet(fields)
  143671. var invalids uint32
  143672. for i, field := range fields {
  143673. switch field.Name {
  143674. case "__typename":
  143675. out.Values[i] = graphql.MarshalString("CountriesInShippingZones")
  143676. case "countryCodes":
  143677. out.Values[i] = ec._CountriesInShippingZones_countryCodes(ctx, field, obj)
  143678. if out.Values[i] == graphql.Null {
  143679. invalids++
  143680. }
  143681. case "includeRestOfWorld":
  143682. out.Values[i] = ec._CountriesInShippingZones_includeRestOfWorld(ctx, field, obj)
  143683. if out.Values[i] == graphql.Null {
  143684. invalids++
  143685. }
  143686. default:
  143687. panic("unknown field " + strconv.Quote(field.Name))
  143688. }
  143689. }
  143690. out.Dispatch()
  143691. if invalids > 0 {
  143692. return graphql.Null
  143693. }
  143694. return out
  143695. }
  143696. var countryHarmonizedSystemCodeImplementors = []string{"CountryHarmonizedSystemCode"}
  143697. func (ec *executionContext) _CountryHarmonizedSystemCode(ctx context.Context, sel ast.SelectionSet, obj *CountryHarmonizedSystemCode) graphql.Marshaler {
  143698. fields := graphql.CollectFields(ec.OperationContext, sel, countryHarmonizedSystemCodeImplementors)
  143699. out := graphql.NewFieldSet(fields)
  143700. var invalids uint32
  143701. for i, field := range fields {
  143702. switch field.Name {
  143703. case "__typename":
  143704. out.Values[i] = graphql.MarshalString("CountryHarmonizedSystemCode")
  143705. case "countryCode":
  143706. out.Values[i] = ec._CountryHarmonizedSystemCode_countryCode(ctx, field, obj)
  143707. if out.Values[i] == graphql.Null {
  143708. invalids++
  143709. }
  143710. case "harmonizedSystemCode":
  143711. out.Values[i] = ec._CountryHarmonizedSystemCode_harmonizedSystemCode(ctx, field, obj)
  143712. if out.Values[i] == graphql.Null {
  143713. invalids++
  143714. }
  143715. default:
  143716. panic("unknown field " + strconv.Quote(field.Name))
  143717. }
  143718. }
  143719. out.Dispatch()
  143720. if invalids > 0 {
  143721. return graphql.Null
  143722. }
  143723. return out
  143724. }
  143725. var countryHarmonizedSystemCodeConnectionImplementors = []string{"CountryHarmonizedSystemCodeConnection"}
  143726. func (ec *executionContext) _CountryHarmonizedSystemCodeConnection(ctx context.Context, sel ast.SelectionSet, obj *CountryHarmonizedSystemCodeConnection) graphql.Marshaler {
  143727. fields := graphql.CollectFields(ec.OperationContext, sel, countryHarmonizedSystemCodeConnectionImplementors)
  143728. out := graphql.NewFieldSet(fields)
  143729. var invalids uint32
  143730. for i, field := range fields {
  143731. switch field.Name {
  143732. case "__typename":
  143733. out.Values[i] = graphql.MarshalString("CountryHarmonizedSystemCodeConnection")
  143734. case "edges":
  143735. out.Values[i] = ec._CountryHarmonizedSystemCodeConnection_edges(ctx, field, obj)
  143736. if out.Values[i] == graphql.Null {
  143737. invalids++
  143738. }
  143739. case "nodes":
  143740. out.Values[i] = ec._CountryHarmonizedSystemCodeConnection_nodes(ctx, field, obj)
  143741. if out.Values[i] == graphql.Null {
  143742. invalids++
  143743. }
  143744. case "pageInfo":
  143745. out.Values[i] = ec._CountryHarmonizedSystemCodeConnection_pageInfo(ctx, field, obj)
  143746. if out.Values[i] == graphql.Null {
  143747. invalids++
  143748. }
  143749. default:
  143750. panic("unknown field " + strconv.Quote(field.Name))
  143751. }
  143752. }
  143753. out.Dispatch()
  143754. if invalids > 0 {
  143755. return graphql.Null
  143756. }
  143757. return out
  143758. }
  143759. var countryHarmonizedSystemCodeEdgeImplementors = []string{"CountryHarmonizedSystemCodeEdge"}
  143760. func (ec *executionContext) _CountryHarmonizedSystemCodeEdge(ctx context.Context, sel ast.SelectionSet, obj *CountryHarmonizedSystemCodeEdge) graphql.Marshaler {
  143761. fields := graphql.CollectFields(ec.OperationContext, sel, countryHarmonizedSystemCodeEdgeImplementors)
  143762. out := graphql.NewFieldSet(fields)
  143763. var invalids uint32
  143764. for i, field := range fields {
  143765. switch field.Name {
  143766. case "__typename":
  143767. out.Values[i] = graphql.MarshalString("CountryHarmonizedSystemCodeEdge")
  143768. case "cursor":
  143769. out.Values[i] = ec._CountryHarmonizedSystemCodeEdge_cursor(ctx, field, obj)
  143770. if out.Values[i] == graphql.Null {
  143771. invalids++
  143772. }
  143773. case "node":
  143774. out.Values[i] = ec._CountryHarmonizedSystemCodeEdge_node(ctx, field, obj)
  143775. if out.Values[i] == graphql.Null {
  143776. invalids++
  143777. }
  143778. default:
  143779. panic("unknown field " + strconv.Quote(field.Name))
  143780. }
  143781. }
  143782. out.Dispatch()
  143783. if invalids > 0 {
  143784. return graphql.Null
  143785. }
  143786. return out
  143787. }
  143788. var currencyFormatsImplementors = []string{"CurrencyFormats"}
  143789. func (ec *executionContext) _CurrencyFormats(ctx context.Context, sel ast.SelectionSet, obj *CurrencyFormats) graphql.Marshaler {
  143790. fields := graphql.CollectFields(ec.OperationContext, sel, currencyFormatsImplementors)
  143791. out := graphql.NewFieldSet(fields)
  143792. var invalids uint32
  143793. for i, field := range fields {
  143794. switch field.Name {
  143795. case "__typename":
  143796. out.Values[i] = graphql.MarshalString("CurrencyFormats")
  143797. case "moneyFormat":
  143798. out.Values[i] = ec._CurrencyFormats_moneyFormat(ctx, field, obj)
  143799. if out.Values[i] == graphql.Null {
  143800. invalids++
  143801. }
  143802. case "moneyInEmailsFormat":
  143803. out.Values[i] = ec._CurrencyFormats_moneyInEmailsFormat(ctx, field, obj)
  143804. if out.Values[i] == graphql.Null {
  143805. invalids++
  143806. }
  143807. case "moneyWithCurrencyFormat":
  143808. out.Values[i] = ec._CurrencyFormats_moneyWithCurrencyFormat(ctx, field, obj)
  143809. if out.Values[i] == graphql.Null {
  143810. invalids++
  143811. }
  143812. case "moneyWithCurrencyInEmailsFormat":
  143813. out.Values[i] = ec._CurrencyFormats_moneyWithCurrencyInEmailsFormat(ctx, field, obj)
  143814. if out.Values[i] == graphql.Null {
  143815. invalids++
  143816. }
  143817. default:
  143818. panic("unknown field " + strconv.Quote(field.Name))
  143819. }
  143820. }
  143821. out.Dispatch()
  143822. if invalids > 0 {
  143823. return graphql.Null
  143824. }
  143825. return out
  143826. }
  143827. var currencySettingImplementors = []string{"CurrencySetting"}
  143828. func (ec *executionContext) _CurrencySetting(ctx context.Context, sel ast.SelectionSet, obj *CurrencySetting) graphql.Marshaler {
  143829. fields := graphql.CollectFields(ec.OperationContext, sel, currencySettingImplementors)
  143830. out := graphql.NewFieldSet(fields)
  143831. var invalids uint32
  143832. for i, field := range fields {
  143833. switch field.Name {
  143834. case "__typename":
  143835. out.Values[i] = graphql.MarshalString("CurrencySetting")
  143836. case "currencyCode":
  143837. out.Values[i] = ec._CurrencySetting_currencyCode(ctx, field, obj)
  143838. if out.Values[i] == graphql.Null {
  143839. invalids++
  143840. }
  143841. case "currencyName":
  143842. out.Values[i] = ec._CurrencySetting_currencyName(ctx, field, obj)
  143843. if out.Values[i] == graphql.Null {
  143844. invalids++
  143845. }
  143846. case "enabled":
  143847. out.Values[i] = ec._CurrencySetting_enabled(ctx, field, obj)
  143848. if out.Values[i] == graphql.Null {
  143849. invalids++
  143850. }
  143851. case "rateUpdatedAt":
  143852. out.Values[i] = ec._CurrencySetting_rateUpdatedAt(ctx, field, obj)
  143853. default:
  143854. panic("unknown field " + strconv.Quote(field.Name))
  143855. }
  143856. }
  143857. out.Dispatch()
  143858. if invalids > 0 {
  143859. return graphql.Null
  143860. }
  143861. return out
  143862. }
  143863. var currencySettingConnectionImplementors = []string{"CurrencySettingConnection"}
  143864. func (ec *executionContext) _CurrencySettingConnection(ctx context.Context, sel ast.SelectionSet, obj *CurrencySettingConnection) graphql.Marshaler {
  143865. fields := graphql.CollectFields(ec.OperationContext, sel, currencySettingConnectionImplementors)
  143866. out := graphql.NewFieldSet(fields)
  143867. var invalids uint32
  143868. for i, field := range fields {
  143869. switch field.Name {
  143870. case "__typename":
  143871. out.Values[i] = graphql.MarshalString("CurrencySettingConnection")
  143872. case "edges":
  143873. out.Values[i] = ec._CurrencySettingConnection_edges(ctx, field, obj)
  143874. if out.Values[i] == graphql.Null {
  143875. invalids++
  143876. }
  143877. case "nodes":
  143878. out.Values[i] = ec._CurrencySettingConnection_nodes(ctx, field, obj)
  143879. if out.Values[i] == graphql.Null {
  143880. invalids++
  143881. }
  143882. case "pageInfo":
  143883. out.Values[i] = ec._CurrencySettingConnection_pageInfo(ctx, field, obj)
  143884. if out.Values[i] == graphql.Null {
  143885. invalids++
  143886. }
  143887. default:
  143888. panic("unknown field " + strconv.Quote(field.Name))
  143889. }
  143890. }
  143891. out.Dispatch()
  143892. if invalids > 0 {
  143893. return graphql.Null
  143894. }
  143895. return out
  143896. }
  143897. var currencySettingEdgeImplementors = []string{"CurrencySettingEdge"}
  143898. func (ec *executionContext) _CurrencySettingEdge(ctx context.Context, sel ast.SelectionSet, obj *CurrencySettingEdge) graphql.Marshaler {
  143899. fields := graphql.CollectFields(ec.OperationContext, sel, currencySettingEdgeImplementors)
  143900. out := graphql.NewFieldSet(fields)
  143901. var invalids uint32
  143902. for i, field := range fields {
  143903. switch field.Name {
  143904. case "__typename":
  143905. out.Values[i] = graphql.MarshalString("CurrencySettingEdge")
  143906. case "cursor":
  143907. out.Values[i] = ec._CurrencySettingEdge_cursor(ctx, field, obj)
  143908. if out.Values[i] == graphql.Null {
  143909. invalids++
  143910. }
  143911. case "node":
  143912. out.Values[i] = ec._CurrencySettingEdge_node(ctx, field, obj)
  143913. if out.Values[i] == graphql.Null {
  143914. invalids++
  143915. }
  143916. default:
  143917. panic("unknown field " + strconv.Quote(field.Name))
  143918. }
  143919. }
  143920. out.Dispatch()
  143921. if invalids > 0 {
  143922. return graphql.Null
  143923. }
  143924. return out
  143925. }
  143926. var customerImplementors = []string{"Customer", "CommentEventSubject", "HasEvents", "HasMetafieldDefinitions", "HasMetafields", "LegacyInteroperability", "Node", "CommentEventEmbed", "PurchasingEntity"}
  143927. func (ec *executionContext) _Customer(ctx context.Context, sel ast.SelectionSet, obj *Customer) graphql.Marshaler {
  143928. fields := graphql.CollectFields(ec.OperationContext, sel, customerImplementors)
  143929. out := graphql.NewFieldSet(fields)
  143930. var invalids uint32
  143931. for i, field := range fields {
  143932. switch field.Name {
  143933. case "__typename":
  143934. out.Values[i] = graphql.MarshalString("Customer")
  143935. case "addresses":
  143936. out.Values[i] = ec._Customer_addresses(ctx, field, obj)
  143937. if out.Values[i] == graphql.Null {
  143938. invalids++
  143939. }
  143940. case "amountSpent":
  143941. out.Values[i] = ec._Customer_amountSpent(ctx, field, obj)
  143942. if out.Values[i] == graphql.Null {
  143943. invalids++
  143944. }
  143945. case "averageOrderAmountV2":
  143946. out.Values[i] = ec._Customer_averageOrderAmountV2(ctx, field, obj)
  143947. case "canDelete":
  143948. out.Values[i] = ec._Customer_canDelete(ctx, field, obj)
  143949. if out.Values[i] == graphql.Null {
  143950. invalids++
  143951. }
  143952. case "companyContactProfiles":
  143953. out.Values[i] = ec._Customer_companyContactProfiles(ctx, field, obj)
  143954. if out.Values[i] == graphql.Null {
  143955. invalids++
  143956. }
  143957. case "createdAt":
  143958. out.Values[i] = ec._Customer_createdAt(ctx, field, obj)
  143959. if out.Values[i] == graphql.Null {
  143960. invalids++
  143961. }
  143962. case "defaultAddress":
  143963. out.Values[i] = ec._Customer_defaultAddress(ctx, field, obj)
  143964. case "displayName":
  143965. out.Values[i] = ec._Customer_displayName(ctx, field, obj)
  143966. if out.Values[i] == graphql.Null {
  143967. invalids++
  143968. }
  143969. case "email":
  143970. out.Values[i] = ec._Customer_email(ctx, field, obj)
  143971. case "emailMarketingConsent":
  143972. out.Values[i] = ec._Customer_emailMarketingConsent(ctx, field, obj)
  143973. case "events":
  143974. out.Values[i] = ec._Customer_events(ctx, field, obj)
  143975. if out.Values[i] == graphql.Null {
  143976. invalids++
  143977. }
  143978. case "firstName":
  143979. out.Values[i] = ec._Customer_firstName(ctx, field, obj)
  143980. case "hasTimelineComment":
  143981. out.Values[i] = ec._Customer_hasTimelineComment(ctx, field, obj)
  143982. if out.Values[i] == graphql.Null {
  143983. invalids++
  143984. }
  143985. case "id":
  143986. out.Values[i] = ec._Customer_id(ctx, field, obj)
  143987. if out.Values[i] == graphql.Null {
  143988. invalids++
  143989. }
  143990. case "image":
  143991. out.Values[i] = ec._Customer_image(ctx, field, obj)
  143992. if out.Values[i] == graphql.Null {
  143993. invalids++
  143994. }
  143995. case "lastName":
  143996. out.Values[i] = ec._Customer_lastName(ctx, field, obj)
  143997. case "lastOrder":
  143998. out.Values[i] = ec._Customer_lastOrder(ctx, field, obj)
  143999. case "legacyResourceId":
  144000. out.Values[i] = ec._Customer_legacyResourceId(ctx, field, obj)
  144001. if out.Values[i] == graphql.Null {
  144002. invalids++
  144003. }
  144004. case "lifetimeDuration":
  144005. out.Values[i] = ec._Customer_lifetimeDuration(ctx, field, obj)
  144006. if out.Values[i] == graphql.Null {
  144007. invalids++
  144008. }
  144009. case "locale":
  144010. out.Values[i] = ec._Customer_locale(ctx, field, obj)
  144011. if out.Values[i] == graphql.Null {
  144012. invalids++
  144013. }
  144014. case "market":
  144015. out.Values[i] = ec._Customer_market(ctx, field, obj)
  144016. case "metafield":
  144017. out.Values[i] = ec._Customer_metafield(ctx, field, obj)
  144018. case "metafieldDefinitions":
  144019. out.Values[i] = ec._Customer_metafieldDefinitions(ctx, field, obj)
  144020. if out.Values[i] == graphql.Null {
  144021. invalids++
  144022. }
  144023. case "metafields":
  144024. out.Values[i] = ec._Customer_metafields(ctx, field, obj)
  144025. if out.Values[i] == graphql.Null {
  144026. invalids++
  144027. }
  144028. case "multipassIdentifier":
  144029. out.Values[i] = ec._Customer_multipassIdentifier(ctx, field, obj)
  144030. case "note":
  144031. out.Values[i] = ec._Customer_note(ctx, field, obj)
  144032. case "numberOfOrders":
  144033. out.Values[i] = ec._Customer_numberOfOrders(ctx, field, obj)
  144034. if out.Values[i] == graphql.Null {
  144035. invalids++
  144036. }
  144037. case "orders":
  144038. out.Values[i] = ec._Customer_orders(ctx, field, obj)
  144039. if out.Values[i] == graphql.Null {
  144040. invalids++
  144041. }
  144042. case "paymentMethods":
  144043. out.Values[i] = ec._Customer_paymentMethods(ctx, field, obj)
  144044. if out.Values[i] == graphql.Null {
  144045. invalids++
  144046. }
  144047. case "phone":
  144048. out.Values[i] = ec._Customer_phone(ctx, field, obj)
  144049. case "privateMetafield":
  144050. out.Values[i] = ec._Customer_privateMetafield(ctx, field, obj)
  144051. case "privateMetafields":
  144052. out.Values[i] = ec._Customer_privateMetafields(ctx, field, obj)
  144053. if out.Values[i] == graphql.Null {
  144054. invalids++
  144055. }
  144056. case "productSubscriberStatus":
  144057. out.Values[i] = ec._Customer_productSubscriberStatus(ctx, field, obj)
  144058. if out.Values[i] == graphql.Null {
  144059. invalids++
  144060. }
  144061. case "smsMarketingConsent":
  144062. out.Values[i] = ec._Customer_smsMarketingConsent(ctx, field, obj)
  144063. case "state":
  144064. out.Values[i] = ec._Customer_state(ctx, field, obj)
  144065. if out.Values[i] == graphql.Null {
  144066. invalids++
  144067. }
  144068. case "statistics":
  144069. out.Values[i] = ec._Customer_statistics(ctx, field, obj)
  144070. if out.Values[i] == graphql.Null {
  144071. invalids++
  144072. }
  144073. case "subscriptionContracts":
  144074. out.Values[i] = ec._Customer_subscriptionContracts(ctx, field, obj)
  144075. if out.Values[i] == graphql.Null {
  144076. invalids++
  144077. }
  144078. case "tags":
  144079. out.Values[i] = ec._Customer_tags(ctx, field, obj)
  144080. if out.Values[i] == graphql.Null {
  144081. invalids++
  144082. }
  144083. case "taxExempt":
  144084. out.Values[i] = ec._Customer_taxExempt(ctx, field, obj)
  144085. if out.Values[i] == graphql.Null {
  144086. invalids++
  144087. }
  144088. case "taxExemptions":
  144089. out.Values[i] = ec._Customer_taxExemptions(ctx, field, obj)
  144090. if out.Values[i] == graphql.Null {
  144091. invalids++
  144092. }
  144093. case "unsubscribeUrl":
  144094. out.Values[i] = ec._Customer_unsubscribeUrl(ctx, field, obj)
  144095. if out.Values[i] == graphql.Null {
  144096. invalids++
  144097. }
  144098. case "updatedAt":
  144099. out.Values[i] = ec._Customer_updatedAt(ctx, field, obj)
  144100. if out.Values[i] == graphql.Null {
  144101. invalids++
  144102. }
  144103. case "validEmailAddress":
  144104. out.Values[i] = ec._Customer_validEmailAddress(ctx, field, obj)
  144105. if out.Values[i] == graphql.Null {
  144106. invalids++
  144107. }
  144108. case "verifiedEmail":
  144109. out.Values[i] = ec._Customer_verifiedEmail(ctx, field, obj)
  144110. if out.Values[i] == graphql.Null {
  144111. invalids++
  144112. }
  144113. default:
  144114. panic("unknown field " + strconv.Quote(field.Name))
  144115. }
  144116. }
  144117. out.Dispatch()
  144118. if invalids > 0 {
  144119. return graphql.Null
  144120. }
  144121. return out
  144122. }
  144123. var customerCreatePayloadImplementors = []string{"CustomerCreatePayload"}
  144124. func (ec *executionContext) _CustomerCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *CustomerCreatePayload) graphql.Marshaler {
  144125. fields := graphql.CollectFields(ec.OperationContext, sel, customerCreatePayloadImplementors)
  144126. out := graphql.NewFieldSet(fields)
  144127. var invalids uint32
  144128. for i, field := range fields {
  144129. switch field.Name {
  144130. case "__typename":
  144131. out.Values[i] = graphql.MarshalString("CustomerCreatePayload")
  144132. case "customer":
  144133. out.Values[i] = ec._CustomerCreatePayload_customer(ctx, field, obj)
  144134. case "userErrors":
  144135. out.Values[i] = ec._CustomerCreatePayload_userErrors(ctx, field, obj)
  144136. if out.Values[i] == graphql.Null {
  144137. invalids++
  144138. }
  144139. default:
  144140. panic("unknown field " + strconv.Quote(field.Name))
  144141. }
  144142. }
  144143. out.Dispatch()
  144144. if invalids > 0 {
  144145. return graphql.Null
  144146. }
  144147. return out
  144148. }
  144149. var customerCreditCardImplementors = []string{"CustomerCreditCard", "CustomerPaymentInstrument"}
  144150. func (ec *executionContext) _CustomerCreditCard(ctx context.Context, sel ast.SelectionSet, obj *CustomerCreditCard) graphql.Marshaler {
  144151. fields := graphql.CollectFields(ec.OperationContext, sel, customerCreditCardImplementors)
  144152. out := graphql.NewFieldSet(fields)
  144153. var invalids uint32
  144154. for i, field := range fields {
  144155. switch field.Name {
  144156. case "__typename":
  144157. out.Values[i] = graphql.MarshalString("CustomerCreditCard")
  144158. case "billingAddress":
  144159. out.Values[i] = ec._CustomerCreditCard_billingAddress(ctx, field, obj)
  144160. case "brand":
  144161. out.Values[i] = ec._CustomerCreditCard_brand(ctx, field, obj)
  144162. if out.Values[i] == graphql.Null {
  144163. invalids++
  144164. }
  144165. case "expiresSoon":
  144166. out.Values[i] = ec._CustomerCreditCard_expiresSoon(ctx, field, obj)
  144167. if out.Values[i] == graphql.Null {
  144168. invalids++
  144169. }
  144170. case "expiryMonth":
  144171. out.Values[i] = ec._CustomerCreditCard_expiryMonth(ctx, field, obj)
  144172. if out.Values[i] == graphql.Null {
  144173. invalids++
  144174. }
  144175. case "expiryYear":
  144176. out.Values[i] = ec._CustomerCreditCard_expiryYear(ctx, field, obj)
  144177. if out.Values[i] == graphql.Null {
  144178. invalids++
  144179. }
  144180. case "firstDigits":
  144181. out.Values[i] = ec._CustomerCreditCard_firstDigits(ctx, field, obj)
  144182. case "isRevocable":
  144183. out.Values[i] = ec._CustomerCreditCard_isRevocable(ctx, field, obj)
  144184. if out.Values[i] == graphql.Null {
  144185. invalids++
  144186. }
  144187. case "lastDigits":
  144188. out.Values[i] = ec._CustomerCreditCard_lastDigits(ctx, field, obj)
  144189. if out.Values[i] == graphql.Null {
  144190. invalids++
  144191. }
  144192. case "maskedNumber":
  144193. out.Values[i] = ec._CustomerCreditCard_maskedNumber(ctx, field, obj)
  144194. if out.Values[i] == graphql.Null {
  144195. invalids++
  144196. }
  144197. case "name":
  144198. out.Values[i] = ec._CustomerCreditCard_name(ctx, field, obj)
  144199. if out.Values[i] == graphql.Null {
  144200. invalids++
  144201. }
  144202. case "source":
  144203. out.Values[i] = ec._CustomerCreditCard_source(ctx, field, obj)
  144204. case "virtualLastDigits":
  144205. out.Values[i] = ec._CustomerCreditCard_virtualLastDigits(ctx, field, obj)
  144206. default:
  144207. panic("unknown field " + strconv.Quote(field.Name))
  144208. }
  144209. }
  144210. out.Dispatch()
  144211. if invalids > 0 {
  144212. return graphql.Null
  144213. }
  144214. return out
  144215. }
  144216. var customerCreditCardBillingAddressImplementors = []string{"CustomerCreditCardBillingAddress"}
  144217. func (ec *executionContext) _CustomerCreditCardBillingAddress(ctx context.Context, sel ast.SelectionSet, obj *CustomerCreditCardBillingAddress) graphql.Marshaler {
  144218. fields := graphql.CollectFields(ec.OperationContext, sel, customerCreditCardBillingAddressImplementors)
  144219. out := graphql.NewFieldSet(fields)
  144220. var invalids uint32
  144221. for i, field := range fields {
  144222. switch field.Name {
  144223. case "__typename":
  144224. out.Values[i] = graphql.MarshalString("CustomerCreditCardBillingAddress")
  144225. case "address1":
  144226. out.Values[i] = ec._CustomerCreditCardBillingAddress_address1(ctx, field, obj)
  144227. case "city":
  144228. out.Values[i] = ec._CustomerCreditCardBillingAddress_city(ctx, field, obj)
  144229. case "country":
  144230. out.Values[i] = ec._CustomerCreditCardBillingAddress_country(ctx, field, obj)
  144231. case "countryCode":
  144232. out.Values[i] = ec._CustomerCreditCardBillingAddress_countryCode(ctx, field, obj)
  144233. case "province":
  144234. out.Values[i] = ec._CustomerCreditCardBillingAddress_province(ctx, field, obj)
  144235. case "provinceCode":
  144236. out.Values[i] = ec._CustomerCreditCardBillingAddress_provinceCode(ctx, field, obj)
  144237. case "zip":
  144238. out.Values[i] = ec._CustomerCreditCardBillingAddress_zip(ctx, field, obj)
  144239. default:
  144240. panic("unknown field " + strconv.Quote(field.Name))
  144241. }
  144242. }
  144243. out.Dispatch()
  144244. if invalids > 0 {
  144245. return graphql.Null
  144246. }
  144247. return out
  144248. }
  144249. var customerEmailMarketingConsentStateImplementors = []string{"CustomerEmailMarketingConsentState"}
  144250. func (ec *executionContext) _CustomerEmailMarketingConsentState(ctx context.Context, sel ast.SelectionSet, obj *CustomerEmailMarketingConsentState) graphql.Marshaler {
  144251. fields := graphql.CollectFields(ec.OperationContext, sel, customerEmailMarketingConsentStateImplementors)
  144252. out := graphql.NewFieldSet(fields)
  144253. var invalids uint32
  144254. for i, field := range fields {
  144255. switch field.Name {
  144256. case "__typename":
  144257. out.Values[i] = graphql.MarshalString("CustomerEmailMarketingConsentState")
  144258. case "consentUpdatedAt":
  144259. out.Values[i] = ec._CustomerEmailMarketingConsentState_consentUpdatedAt(ctx, field, obj)
  144260. case "marketingOptInLevel":
  144261. out.Values[i] = ec._CustomerEmailMarketingConsentState_marketingOptInLevel(ctx, field, obj)
  144262. case "marketingState":
  144263. out.Values[i] = ec._CustomerEmailMarketingConsentState_marketingState(ctx, field, obj)
  144264. if out.Values[i] == graphql.Null {
  144265. invalids++
  144266. }
  144267. default:
  144268. panic("unknown field " + strconv.Quote(field.Name))
  144269. }
  144270. }
  144271. out.Dispatch()
  144272. if invalids > 0 {
  144273. return graphql.Null
  144274. }
  144275. return out
  144276. }
  144277. var customerJourneySummaryImplementors = []string{"CustomerJourneySummary"}
  144278. func (ec *executionContext) _CustomerJourneySummary(ctx context.Context, sel ast.SelectionSet, obj *CustomerJourneySummary) graphql.Marshaler {
  144279. fields := graphql.CollectFields(ec.OperationContext, sel, customerJourneySummaryImplementors)
  144280. out := graphql.NewFieldSet(fields)
  144281. var invalids uint32
  144282. for i, field := range fields {
  144283. switch field.Name {
  144284. case "__typename":
  144285. out.Values[i] = graphql.MarshalString("CustomerJourneySummary")
  144286. case "customerOrderIndex":
  144287. out.Values[i] = ec._CustomerJourneySummary_customerOrderIndex(ctx, field, obj)
  144288. case "daysToConversion":
  144289. out.Values[i] = ec._CustomerJourneySummary_daysToConversion(ctx, field, obj)
  144290. case "firstVisit":
  144291. out.Values[i] = ec._CustomerJourneySummary_firstVisit(ctx, field, obj)
  144292. case "lastVisit":
  144293. out.Values[i] = ec._CustomerJourneySummary_lastVisit(ctx, field, obj)
  144294. case "moments":
  144295. out.Values[i] = ec._CustomerJourneySummary_moments(ctx, field, obj)
  144296. case "momentsCount":
  144297. out.Values[i] = ec._CustomerJourneySummary_momentsCount(ctx, field, obj)
  144298. case "ready":
  144299. out.Values[i] = ec._CustomerJourneySummary_ready(ctx, field, obj)
  144300. if out.Values[i] == graphql.Null {
  144301. invalids++
  144302. }
  144303. default:
  144304. panic("unknown field " + strconv.Quote(field.Name))
  144305. }
  144306. }
  144307. out.Dispatch()
  144308. if invalids > 0 {
  144309. return graphql.Null
  144310. }
  144311. return out
  144312. }
  144313. var customerMomentConnectionImplementors = []string{"CustomerMomentConnection"}
  144314. func (ec *executionContext) _CustomerMomentConnection(ctx context.Context, sel ast.SelectionSet, obj *CustomerMomentConnection) graphql.Marshaler {
  144315. fields := graphql.CollectFields(ec.OperationContext, sel, customerMomentConnectionImplementors)
  144316. out := graphql.NewFieldSet(fields)
  144317. var invalids uint32
  144318. for i, field := range fields {
  144319. switch field.Name {
  144320. case "__typename":
  144321. out.Values[i] = graphql.MarshalString("CustomerMomentConnection")
  144322. case "edges":
  144323. out.Values[i] = ec._CustomerMomentConnection_edges(ctx, field, obj)
  144324. if out.Values[i] == graphql.Null {
  144325. invalids++
  144326. }
  144327. case "nodes":
  144328. out.Values[i] = ec._CustomerMomentConnection_nodes(ctx, field, obj)
  144329. if out.Values[i] == graphql.Null {
  144330. invalids++
  144331. }
  144332. case "pageInfo":
  144333. out.Values[i] = ec._CustomerMomentConnection_pageInfo(ctx, field, obj)
  144334. if out.Values[i] == graphql.Null {
  144335. invalids++
  144336. }
  144337. default:
  144338. panic("unknown field " + strconv.Quote(field.Name))
  144339. }
  144340. }
  144341. out.Dispatch()
  144342. if invalids > 0 {
  144343. return graphql.Null
  144344. }
  144345. return out
  144346. }
  144347. var customerMomentEdgeImplementors = []string{"CustomerMomentEdge"}
  144348. func (ec *executionContext) _CustomerMomentEdge(ctx context.Context, sel ast.SelectionSet, obj *CustomerMomentEdge) graphql.Marshaler {
  144349. fields := graphql.CollectFields(ec.OperationContext, sel, customerMomentEdgeImplementors)
  144350. out := graphql.NewFieldSet(fields)
  144351. var invalids uint32
  144352. for i, field := range fields {
  144353. switch field.Name {
  144354. case "__typename":
  144355. out.Values[i] = graphql.MarshalString("CustomerMomentEdge")
  144356. case "cursor":
  144357. out.Values[i] = ec._CustomerMomentEdge_cursor(ctx, field, obj)
  144358. if out.Values[i] == graphql.Null {
  144359. invalids++
  144360. }
  144361. case "node":
  144362. out.Values[i] = ec._CustomerMomentEdge_node(ctx, field, obj)
  144363. if out.Values[i] == graphql.Null {
  144364. invalids++
  144365. }
  144366. default:
  144367. panic("unknown field " + strconv.Quote(field.Name))
  144368. }
  144369. }
  144370. out.Dispatch()
  144371. if invalids > 0 {
  144372. return graphql.Null
  144373. }
  144374. return out
  144375. }
  144376. var customerPaymentInstrumentBillingAddressImplementors = []string{"CustomerPaymentInstrumentBillingAddress"}
  144377. func (ec *executionContext) _CustomerPaymentInstrumentBillingAddress(ctx context.Context, sel ast.SelectionSet, obj *CustomerPaymentInstrumentBillingAddress) graphql.Marshaler {
  144378. fields := graphql.CollectFields(ec.OperationContext, sel, customerPaymentInstrumentBillingAddressImplementors)
  144379. out := graphql.NewFieldSet(fields)
  144380. var invalids uint32
  144381. for i, field := range fields {
  144382. switch field.Name {
  144383. case "__typename":
  144384. out.Values[i] = graphql.MarshalString("CustomerPaymentInstrumentBillingAddress")
  144385. case "address1":
  144386. out.Values[i] = ec._CustomerPaymentInstrumentBillingAddress_address1(ctx, field, obj)
  144387. case "city":
  144388. out.Values[i] = ec._CustomerPaymentInstrumentBillingAddress_city(ctx, field, obj)
  144389. case "country":
  144390. out.Values[i] = ec._CustomerPaymentInstrumentBillingAddress_country(ctx, field, obj)
  144391. case "countryCode":
  144392. out.Values[i] = ec._CustomerPaymentInstrumentBillingAddress_countryCode(ctx, field, obj)
  144393. case "name":
  144394. out.Values[i] = ec._CustomerPaymentInstrumentBillingAddress_name(ctx, field, obj)
  144395. case "province":
  144396. out.Values[i] = ec._CustomerPaymentInstrumentBillingAddress_province(ctx, field, obj)
  144397. case "provinceCode":
  144398. out.Values[i] = ec._CustomerPaymentInstrumentBillingAddress_provinceCode(ctx, field, obj)
  144399. case "zip":
  144400. out.Values[i] = ec._CustomerPaymentInstrumentBillingAddress_zip(ctx, field, obj)
  144401. default:
  144402. panic("unknown field " + strconv.Quote(field.Name))
  144403. }
  144404. }
  144405. out.Dispatch()
  144406. if invalids > 0 {
  144407. return graphql.Null
  144408. }
  144409. return out
  144410. }
  144411. var customerPaymentMethodImplementors = []string{"CustomerPaymentMethod", "Node"}
  144412. func (ec *executionContext) _CustomerPaymentMethod(ctx context.Context, sel ast.SelectionSet, obj *CustomerPaymentMethod) graphql.Marshaler {
  144413. fields := graphql.CollectFields(ec.OperationContext, sel, customerPaymentMethodImplementors)
  144414. out := graphql.NewFieldSet(fields)
  144415. var invalids uint32
  144416. for i, field := range fields {
  144417. switch field.Name {
  144418. case "__typename":
  144419. out.Values[i] = graphql.MarshalString("CustomerPaymentMethod")
  144420. case "customer":
  144421. out.Values[i] = ec._CustomerPaymentMethod_customer(ctx, field, obj)
  144422. case "id":
  144423. out.Values[i] = ec._CustomerPaymentMethod_id(ctx, field, obj)
  144424. if out.Values[i] == graphql.Null {
  144425. invalids++
  144426. }
  144427. case "instrument":
  144428. out.Values[i] = ec._CustomerPaymentMethod_instrument(ctx, field, obj)
  144429. case "revokedAt":
  144430. out.Values[i] = ec._CustomerPaymentMethod_revokedAt(ctx, field, obj)
  144431. case "revokedReason":
  144432. out.Values[i] = ec._CustomerPaymentMethod_revokedReason(ctx, field, obj)
  144433. case "subscriptionContracts":
  144434. out.Values[i] = ec._CustomerPaymentMethod_subscriptionContracts(ctx, field, obj)
  144435. if out.Values[i] == graphql.Null {
  144436. invalids++
  144437. }
  144438. default:
  144439. panic("unknown field " + strconv.Quote(field.Name))
  144440. }
  144441. }
  144442. out.Dispatch()
  144443. if invalids > 0 {
  144444. return graphql.Null
  144445. }
  144446. return out
  144447. }
  144448. var customerPaymentMethodConnectionImplementors = []string{"CustomerPaymentMethodConnection"}
  144449. func (ec *executionContext) _CustomerPaymentMethodConnection(ctx context.Context, sel ast.SelectionSet, obj *CustomerPaymentMethodConnection) graphql.Marshaler {
  144450. fields := graphql.CollectFields(ec.OperationContext, sel, customerPaymentMethodConnectionImplementors)
  144451. out := graphql.NewFieldSet(fields)
  144452. var invalids uint32
  144453. for i, field := range fields {
  144454. switch field.Name {
  144455. case "__typename":
  144456. out.Values[i] = graphql.MarshalString("CustomerPaymentMethodConnection")
  144457. case "edges":
  144458. out.Values[i] = ec._CustomerPaymentMethodConnection_edges(ctx, field, obj)
  144459. if out.Values[i] == graphql.Null {
  144460. invalids++
  144461. }
  144462. case "nodes":
  144463. out.Values[i] = ec._CustomerPaymentMethodConnection_nodes(ctx, field, obj)
  144464. if out.Values[i] == graphql.Null {
  144465. invalids++
  144466. }
  144467. case "pageInfo":
  144468. out.Values[i] = ec._CustomerPaymentMethodConnection_pageInfo(ctx, field, obj)
  144469. if out.Values[i] == graphql.Null {
  144470. invalids++
  144471. }
  144472. default:
  144473. panic("unknown field " + strconv.Quote(field.Name))
  144474. }
  144475. }
  144476. out.Dispatch()
  144477. if invalids > 0 {
  144478. return graphql.Null
  144479. }
  144480. return out
  144481. }
  144482. var customerPaymentMethodEdgeImplementors = []string{"CustomerPaymentMethodEdge"}
  144483. func (ec *executionContext) _CustomerPaymentMethodEdge(ctx context.Context, sel ast.SelectionSet, obj *CustomerPaymentMethodEdge) graphql.Marshaler {
  144484. fields := graphql.CollectFields(ec.OperationContext, sel, customerPaymentMethodEdgeImplementors)
  144485. out := graphql.NewFieldSet(fields)
  144486. var invalids uint32
  144487. for i, field := range fields {
  144488. switch field.Name {
  144489. case "__typename":
  144490. out.Values[i] = graphql.MarshalString("CustomerPaymentMethodEdge")
  144491. case "cursor":
  144492. out.Values[i] = ec._CustomerPaymentMethodEdge_cursor(ctx, field, obj)
  144493. if out.Values[i] == graphql.Null {
  144494. invalids++
  144495. }
  144496. case "node":
  144497. out.Values[i] = ec._CustomerPaymentMethodEdge_node(ctx, field, obj)
  144498. if out.Values[i] == graphql.Null {
  144499. invalids++
  144500. }
  144501. default:
  144502. panic("unknown field " + strconv.Quote(field.Name))
  144503. }
  144504. }
  144505. out.Dispatch()
  144506. if invalids > 0 {
  144507. return graphql.Null
  144508. }
  144509. return out
  144510. }
  144511. var customerPaypalBillingAgreementImplementors = []string{"CustomerPaypalBillingAgreement", "CustomerPaymentInstrument"}
  144512. func (ec *executionContext) _CustomerPaypalBillingAgreement(ctx context.Context, sel ast.SelectionSet, obj *CustomerPaypalBillingAgreement) graphql.Marshaler {
  144513. fields := graphql.CollectFields(ec.OperationContext, sel, customerPaypalBillingAgreementImplementors)
  144514. out := graphql.NewFieldSet(fields)
  144515. var invalids uint32
  144516. for i, field := range fields {
  144517. switch field.Name {
  144518. case "__typename":
  144519. out.Values[i] = graphql.MarshalString("CustomerPaypalBillingAgreement")
  144520. case "billingAddress":
  144521. out.Values[i] = ec._CustomerPaypalBillingAgreement_billingAddress(ctx, field, obj)
  144522. case "inactive":
  144523. out.Values[i] = ec._CustomerPaypalBillingAgreement_inactive(ctx, field, obj)
  144524. if out.Values[i] == graphql.Null {
  144525. invalids++
  144526. }
  144527. case "isRevocable":
  144528. out.Values[i] = ec._CustomerPaypalBillingAgreement_isRevocable(ctx, field, obj)
  144529. if out.Values[i] == graphql.Null {
  144530. invalids++
  144531. }
  144532. case "paypalAccountEmail":
  144533. out.Values[i] = ec._CustomerPaypalBillingAgreement_paypalAccountEmail(ctx, field, obj)
  144534. default:
  144535. panic("unknown field " + strconv.Quote(field.Name))
  144536. }
  144537. }
  144538. out.Dispatch()
  144539. if invalids > 0 {
  144540. return graphql.Null
  144541. }
  144542. return out
  144543. }
  144544. var customerShopPayAgreementImplementors = []string{"CustomerShopPayAgreement", "CustomerPaymentInstrument"}
  144545. func (ec *executionContext) _CustomerShopPayAgreement(ctx context.Context, sel ast.SelectionSet, obj *CustomerShopPayAgreement) graphql.Marshaler {
  144546. fields := graphql.CollectFields(ec.OperationContext, sel, customerShopPayAgreementImplementors)
  144547. out := graphql.NewFieldSet(fields)
  144548. var invalids uint32
  144549. for i, field := range fields {
  144550. switch field.Name {
  144551. case "__typename":
  144552. out.Values[i] = graphql.MarshalString("CustomerShopPayAgreement")
  144553. case "expiresSoon":
  144554. out.Values[i] = ec._CustomerShopPayAgreement_expiresSoon(ctx, field, obj)
  144555. if out.Values[i] == graphql.Null {
  144556. invalids++
  144557. }
  144558. case "expiryMonth":
  144559. out.Values[i] = ec._CustomerShopPayAgreement_expiryMonth(ctx, field, obj)
  144560. if out.Values[i] == graphql.Null {
  144561. invalids++
  144562. }
  144563. case "expiryYear":
  144564. out.Values[i] = ec._CustomerShopPayAgreement_expiryYear(ctx, field, obj)
  144565. if out.Values[i] == graphql.Null {
  144566. invalids++
  144567. }
  144568. case "inactive":
  144569. out.Values[i] = ec._CustomerShopPayAgreement_inactive(ctx, field, obj)
  144570. if out.Values[i] == graphql.Null {
  144571. invalids++
  144572. }
  144573. case "isRevocable":
  144574. out.Values[i] = ec._CustomerShopPayAgreement_isRevocable(ctx, field, obj)
  144575. if out.Values[i] == graphql.Null {
  144576. invalids++
  144577. }
  144578. case "lastDigits":
  144579. out.Values[i] = ec._CustomerShopPayAgreement_lastDigits(ctx, field, obj)
  144580. if out.Values[i] == graphql.Null {
  144581. invalids++
  144582. }
  144583. case "maskedNumber":
  144584. out.Values[i] = ec._CustomerShopPayAgreement_maskedNumber(ctx, field, obj)
  144585. if out.Values[i] == graphql.Null {
  144586. invalids++
  144587. }
  144588. case "name":
  144589. out.Values[i] = ec._CustomerShopPayAgreement_name(ctx, field, obj)
  144590. if out.Values[i] == graphql.Null {
  144591. invalids++
  144592. }
  144593. default:
  144594. panic("unknown field " + strconv.Quote(field.Name))
  144595. }
  144596. }
  144597. out.Dispatch()
  144598. if invalids > 0 {
  144599. return graphql.Null
  144600. }
  144601. return out
  144602. }
  144603. var customerSmsMarketingConsentStateImplementors = []string{"CustomerSmsMarketingConsentState"}
  144604. func (ec *executionContext) _CustomerSmsMarketingConsentState(ctx context.Context, sel ast.SelectionSet, obj *CustomerSmsMarketingConsentState) graphql.Marshaler {
  144605. fields := graphql.CollectFields(ec.OperationContext, sel, customerSmsMarketingConsentStateImplementors)
  144606. out := graphql.NewFieldSet(fields)
  144607. var invalids uint32
  144608. for i, field := range fields {
  144609. switch field.Name {
  144610. case "__typename":
  144611. out.Values[i] = graphql.MarshalString("CustomerSmsMarketingConsentState")
  144612. case "consentCollectedFrom":
  144613. out.Values[i] = ec._CustomerSmsMarketingConsentState_consentCollectedFrom(ctx, field, obj)
  144614. case "consentUpdatedAt":
  144615. out.Values[i] = ec._CustomerSmsMarketingConsentState_consentUpdatedAt(ctx, field, obj)
  144616. case "marketingOptInLevel":
  144617. out.Values[i] = ec._CustomerSmsMarketingConsentState_marketingOptInLevel(ctx, field, obj)
  144618. if out.Values[i] == graphql.Null {
  144619. invalids++
  144620. }
  144621. case "marketingState":
  144622. out.Values[i] = ec._CustomerSmsMarketingConsentState_marketingState(ctx, field, obj)
  144623. if out.Values[i] == graphql.Null {
  144624. invalids++
  144625. }
  144626. default:
  144627. panic("unknown field " + strconv.Quote(field.Name))
  144628. }
  144629. }
  144630. out.Dispatch()
  144631. if invalids > 0 {
  144632. return graphql.Null
  144633. }
  144634. return out
  144635. }
  144636. var customerStatisticsImplementors = []string{"CustomerStatistics"}
  144637. func (ec *executionContext) _CustomerStatistics(ctx context.Context, sel ast.SelectionSet, obj *CustomerStatistics) graphql.Marshaler {
  144638. fields := graphql.CollectFields(ec.OperationContext, sel, customerStatisticsImplementors)
  144639. out := graphql.NewFieldSet(fields)
  144640. var invalids uint32
  144641. for i, field := range fields {
  144642. switch field.Name {
  144643. case "__typename":
  144644. out.Values[i] = graphql.MarshalString("CustomerStatistics")
  144645. case "predictedSpendTier":
  144646. out.Values[i] = ec._CustomerStatistics_predictedSpendTier(ctx, field, obj)
  144647. default:
  144648. panic("unknown field " + strconv.Quote(field.Name))
  144649. }
  144650. }
  144651. out.Dispatch()
  144652. if invalids > 0 {
  144653. return graphql.Null
  144654. }
  144655. return out
  144656. }
  144657. var customerVisitImplementors = []string{"CustomerVisit", "CustomerMoment", "Node"}
  144658. func (ec *executionContext) _CustomerVisit(ctx context.Context, sel ast.SelectionSet, obj *CustomerVisit) graphql.Marshaler {
  144659. fields := graphql.CollectFields(ec.OperationContext, sel, customerVisitImplementors)
  144660. out := graphql.NewFieldSet(fields)
  144661. var invalids uint32
  144662. for i, field := range fields {
  144663. switch field.Name {
  144664. case "__typename":
  144665. out.Values[i] = graphql.MarshalString("CustomerVisit")
  144666. case "id":
  144667. out.Values[i] = ec._CustomerVisit_id(ctx, field, obj)
  144668. if out.Values[i] == graphql.Null {
  144669. invalids++
  144670. }
  144671. case "landingPage":
  144672. out.Values[i] = ec._CustomerVisit_landingPage(ctx, field, obj)
  144673. case "landingPageHtml":
  144674. out.Values[i] = ec._CustomerVisit_landingPageHtml(ctx, field, obj)
  144675. case "marketingEvent":
  144676. out.Values[i] = ec._CustomerVisit_marketingEvent(ctx, field, obj)
  144677. case "occurredAt":
  144678. out.Values[i] = ec._CustomerVisit_occurredAt(ctx, field, obj)
  144679. if out.Values[i] == graphql.Null {
  144680. invalids++
  144681. }
  144682. case "referralCode":
  144683. out.Values[i] = ec._CustomerVisit_referralCode(ctx, field, obj)
  144684. case "referralInfoHtml":
  144685. out.Values[i] = ec._CustomerVisit_referralInfoHtml(ctx, field, obj)
  144686. if out.Values[i] == graphql.Null {
  144687. invalids++
  144688. }
  144689. case "referrerUrl":
  144690. out.Values[i] = ec._CustomerVisit_referrerUrl(ctx, field, obj)
  144691. case "source":
  144692. out.Values[i] = ec._CustomerVisit_source(ctx, field, obj)
  144693. if out.Values[i] == graphql.Null {
  144694. invalids++
  144695. }
  144696. case "sourceDescription":
  144697. out.Values[i] = ec._CustomerVisit_sourceDescription(ctx, field, obj)
  144698. case "sourceType":
  144699. out.Values[i] = ec._CustomerVisit_sourceType(ctx, field, obj)
  144700. case "utmParameters":
  144701. out.Values[i] = ec._CustomerVisit_utmParameters(ctx, field, obj)
  144702. default:
  144703. panic("unknown field " + strconv.Quote(field.Name))
  144704. }
  144705. }
  144706. out.Dispatch()
  144707. if invalids > 0 {
  144708. return graphql.Null
  144709. }
  144710. return out
  144711. }
  144712. var deliveryAvailableServiceImplementors = []string{"DeliveryAvailableService"}
  144713. func (ec *executionContext) _DeliveryAvailableService(ctx context.Context, sel ast.SelectionSet, obj *DeliveryAvailableService) graphql.Marshaler {
  144714. fields := graphql.CollectFields(ec.OperationContext, sel, deliveryAvailableServiceImplementors)
  144715. out := graphql.NewFieldSet(fields)
  144716. var invalids uint32
  144717. for i, field := range fields {
  144718. switch field.Name {
  144719. case "__typename":
  144720. out.Values[i] = graphql.MarshalString("DeliveryAvailableService")
  144721. case "countries":
  144722. out.Values[i] = ec._DeliveryAvailableService_countries(ctx, field, obj)
  144723. if out.Values[i] == graphql.Null {
  144724. invalids++
  144725. }
  144726. case "name":
  144727. out.Values[i] = ec._DeliveryAvailableService_name(ctx, field, obj)
  144728. if out.Values[i] == graphql.Null {
  144729. invalids++
  144730. }
  144731. default:
  144732. panic("unknown field " + strconv.Quote(field.Name))
  144733. }
  144734. }
  144735. out.Dispatch()
  144736. if invalids > 0 {
  144737. return graphql.Null
  144738. }
  144739. return out
  144740. }
  144741. var deliveryCarrierServiceImplementors = []string{"DeliveryCarrierService", "Node"}
  144742. func (ec *executionContext) _DeliveryCarrierService(ctx context.Context, sel ast.SelectionSet, obj *DeliveryCarrierService) graphql.Marshaler {
  144743. fields := graphql.CollectFields(ec.OperationContext, sel, deliveryCarrierServiceImplementors)
  144744. out := graphql.NewFieldSet(fields)
  144745. var invalids uint32
  144746. for i, field := range fields {
  144747. switch field.Name {
  144748. case "__typename":
  144749. out.Values[i] = graphql.MarshalString("DeliveryCarrierService")
  144750. case "availableServicesForCountries":
  144751. out.Values[i] = ec._DeliveryCarrierService_availableServicesForCountries(ctx, field, obj)
  144752. if out.Values[i] == graphql.Null {
  144753. invalids++
  144754. }
  144755. case "formattedName":
  144756. out.Values[i] = ec._DeliveryCarrierService_formattedName(ctx, field, obj)
  144757. case "icon":
  144758. out.Values[i] = ec._DeliveryCarrierService_icon(ctx, field, obj)
  144759. if out.Values[i] == graphql.Null {
  144760. invalids++
  144761. }
  144762. case "id":
  144763. out.Values[i] = ec._DeliveryCarrierService_id(ctx, field, obj)
  144764. if out.Values[i] == graphql.Null {
  144765. invalids++
  144766. }
  144767. case "name":
  144768. out.Values[i] = ec._DeliveryCarrierService_name(ctx, field, obj)
  144769. default:
  144770. panic("unknown field " + strconv.Quote(field.Name))
  144771. }
  144772. }
  144773. out.Dispatch()
  144774. if invalids > 0 {
  144775. return graphql.Null
  144776. }
  144777. return out
  144778. }
  144779. var deliveryConditionImplementors = []string{"DeliveryCondition", "Node"}
  144780. func (ec *executionContext) _DeliveryCondition(ctx context.Context, sel ast.SelectionSet, obj *DeliveryCondition) graphql.Marshaler {
  144781. fields := graphql.CollectFields(ec.OperationContext, sel, deliveryConditionImplementors)
  144782. out := graphql.NewFieldSet(fields)
  144783. var invalids uint32
  144784. for i, field := range fields {
  144785. switch field.Name {
  144786. case "__typename":
  144787. out.Values[i] = graphql.MarshalString("DeliveryCondition")
  144788. case "conditionCriteria":
  144789. out.Values[i] = ec._DeliveryCondition_conditionCriteria(ctx, field, obj)
  144790. if out.Values[i] == graphql.Null {
  144791. invalids++
  144792. }
  144793. case "field":
  144794. out.Values[i] = ec._DeliveryCondition_field(ctx, field, obj)
  144795. if out.Values[i] == graphql.Null {
  144796. invalids++
  144797. }
  144798. case "id":
  144799. out.Values[i] = ec._DeliveryCondition_id(ctx, field, obj)
  144800. if out.Values[i] == graphql.Null {
  144801. invalids++
  144802. }
  144803. case "operator":
  144804. out.Values[i] = ec._DeliveryCondition_operator(ctx, field, obj)
  144805. if out.Values[i] == graphql.Null {
  144806. invalids++
  144807. }
  144808. default:
  144809. panic("unknown field " + strconv.Quote(field.Name))
  144810. }
  144811. }
  144812. out.Dispatch()
  144813. if invalids > 0 {
  144814. return graphql.Null
  144815. }
  144816. return out
  144817. }
  144818. var deliveryCountryImplementors = []string{"DeliveryCountry", "Node"}
  144819. func (ec *executionContext) _DeliveryCountry(ctx context.Context, sel ast.SelectionSet, obj *DeliveryCountry) graphql.Marshaler {
  144820. fields := graphql.CollectFields(ec.OperationContext, sel, deliveryCountryImplementors)
  144821. out := graphql.NewFieldSet(fields)
  144822. var invalids uint32
  144823. for i, field := range fields {
  144824. switch field.Name {
  144825. case "__typename":
  144826. out.Values[i] = graphql.MarshalString("DeliveryCountry")
  144827. case "code":
  144828. out.Values[i] = ec._DeliveryCountry_code(ctx, field, obj)
  144829. if out.Values[i] == graphql.Null {
  144830. invalids++
  144831. }
  144832. case "id":
  144833. out.Values[i] = ec._DeliveryCountry_id(ctx, field, obj)
  144834. if out.Values[i] == graphql.Null {
  144835. invalids++
  144836. }
  144837. case "name":
  144838. out.Values[i] = ec._DeliveryCountry_name(ctx, field, obj)
  144839. if out.Values[i] == graphql.Null {
  144840. invalids++
  144841. }
  144842. case "provinces":
  144843. out.Values[i] = ec._DeliveryCountry_provinces(ctx, field, obj)
  144844. if out.Values[i] == graphql.Null {
  144845. invalids++
  144846. }
  144847. case "translatedName":
  144848. out.Values[i] = ec._DeliveryCountry_translatedName(ctx, field, obj)
  144849. if out.Values[i] == graphql.Null {
  144850. invalids++
  144851. }
  144852. default:
  144853. panic("unknown field " + strconv.Quote(field.Name))
  144854. }
  144855. }
  144856. out.Dispatch()
  144857. if invalids > 0 {
  144858. return graphql.Null
  144859. }
  144860. return out
  144861. }
  144862. var deliveryCountryAndZoneImplementors = []string{"DeliveryCountryAndZone"}
  144863. func (ec *executionContext) _DeliveryCountryAndZone(ctx context.Context, sel ast.SelectionSet, obj *DeliveryCountryAndZone) graphql.Marshaler {
  144864. fields := graphql.CollectFields(ec.OperationContext, sel, deliveryCountryAndZoneImplementors)
  144865. out := graphql.NewFieldSet(fields)
  144866. var invalids uint32
  144867. for i, field := range fields {
  144868. switch field.Name {
  144869. case "__typename":
  144870. out.Values[i] = graphql.MarshalString("DeliveryCountryAndZone")
  144871. case "country":
  144872. out.Values[i] = ec._DeliveryCountryAndZone_country(ctx, field, obj)
  144873. if out.Values[i] == graphql.Null {
  144874. invalids++
  144875. }
  144876. case "zone":
  144877. out.Values[i] = ec._DeliveryCountryAndZone_zone(ctx, field, obj)
  144878. if out.Values[i] == graphql.Null {
  144879. invalids++
  144880. }
  144881. default:
  144882. panic("unknown field " + strconv.Quote(field.Name))
  144883. }
  144884. }
  144885. out.Dispatch()
  144886. if invalids > 0 {
  144887. return graphql.Null
  144888. }
  144889. return out
  144890. }
  144891. var deliveryCountryCodeOrRestOfWorldImplementors = []string{"DeliveryCountryCodeOrRestOfWorld"}
  144892. func (ec *executionContext) _DeliveryCountryCodeOrRestOfWorld(ctx context.Context, sel ast.SelectionSet, obj *DeliveryCountryCodeOrRestOfWorld) graphql.Marshaler {
  144893. fields := graphql.CollectFields(ec.OperationContext, sel, deliveryCountryCodeOrRestOfWorldImplementors)
  144894. out := graphql.NewFieldSet(fields)
  144895. var invalids uint32
  144896. for i, field := range fields {
  144897. switch field.Name {
  144898. case "__typename":
  144899. out.Values[i] = graphql.MarshalString("DeliveryCountryCodeOrRestOfWorld")
  144900. case "countryCode":
  144901. out.Values[i] = ec._DeliveryCountryCodeOrRestOfWorld_countryCode(ctx, field, obj)
  144902. case "restOfWorld":
  144903. out.Values[i] = ec._DeliveryCountryCodeOrRestOfWorld_restOfWorld(ctx, field, obj)
  144904. if out.Values[i] == graphql.Null {
  144905. invalids++
  144906. }
  144907. default:
  144908. panic("unknown field " + strconv.Quote(field.Name))
  144909. }
  144910. }
  144911. out.Dispatch()
  144912. if invalids > 0 {
  144913. return graphql.Null
  144914. }
  144915. return out
  144916. }
  144917. var deliveryCountryCodesOrRestOfWorldImplementors = []string{"DeliveryCountryCodesOrRestOfWorld"}
  144918. func (ec *executionContext) _DeliveryCountryCodesOrRestOfWorld(ctx context.Context, sel ast.SelectionSet, obj *DeliveryCountryCodesOrRestOfWorld) graphql.Marshaler {
  144919. fields := graphql.CollectFields(ec.OperationContext, sel, deliveryCountryCodesOrRestOfWorldImplementors)
  144920. out := graphql.NewFieldSet(fields)
  144921. var invalids uint32
  144922. for i, field := range fields {
  144923. switch field.Name {
  144924. case "__typename":
  144925. out.Values[i] = graphql.MarshalString("DeliveryCountryCodesOrRestOfWorld")
  144926. case "countryCodes":
  144927. out.Values[i] = ec._DeliveryCountryCodesOrRestOfWorld_countryCodes(ctx, field, obj)
  144928. if out.Values[i] == graphql.Null {
  144929. invalids++
  144930. }
  144931. case "restOfWorld":
  144932. out.Values[i] = ec._DeliveryCountryCodesOrRestOfWorld_restOfWorld(ctx, field, obj)
  144933. if out.Values[i] == graphql.Null {
  144934. invalids++
  144935. }
  144936. default:
  144937. panic("unknown field " + strconv.Quote(field.Name))
  144938. }
  144939. }
  144940. out.Dispatch()
  144941. if invalids > 0 {
  144942. return graphql.Null
  144943. }
  144944. return out
  144945. }
  144946. var deliveryLocationGroupImplementors = []string{"DeliveryLocationGroup", "Node"}
  144947. func (ec *executionContext) _DeliveryLocationGroup(ctx context.Context, sel ast.SelectionSet, obj *DeliveryLocationGroup) graphql.Marshaler {
  144948. fields := graphql.CollectFields(ec.OperationContext, sel, deliveryLocationGroupImplementors)
  144949. out := graphql.NewFieldSet(fields)
  144950. var invalids uint32
  144951. for i, field := range fields {
  144952. switch field.Name {
  144953. case "__typename":
  144954. out.Values[i] = graphql.MarshalString("DeliveryLocationGroup")
  144955. case "id":
  144956. out.Values[i] = ec._DeliveryLocationGroup_id(ctx, field, obj)
  144957. if out.Values[i] == graphql.Null {
  144958. invalids++
  144959. }
  144960. case "locations":
  144961. out.Values[i] = ec._DeliveryLocationGroup_locations(ctx, field, obj)
  144962. if out.Values[i] == graphql.Null {
  144963. invalids++
  144964. }
  144965. default:
  144966. panic("unknown field " + strconv.Quote(field.Name))
  144967. }
  144968. }
  144969. out.Dispatch()
  144970. if invalids > 0 {
  144971. return graphql.Null
  144972. }
  144973. return out
  144974. }
  144975. var deliveryLocationGroupZoneImplementors = []string{"DeliveryLocationGroupZone"}
  144976. func (ec *executionContext) _DeliveryLocationGroupZone(ctx context.Context, sel ast.SelectionSet, obj *DeliveryLocationGroupZone) graphql.Marshaler {
  144977. fields := graphql.CollectFields(ec.OperationContext, sel, deliveryLocationGroupZoneImplementors)
  144978. out := graphql.NewFieldSet(fields)
  144979. var invalids uint32
  144980. for i, field := range fields {
  144981. switch field.Name {
  144982. case "__typename":
  144983. out.Values[i] = graphql.MarshalString("DeliveryLocationGroupZone")
  144984. case "methodDefinitionCounts":
  144985. out.Values[i] = ec._DeliveryLocationGroupZone_methodDefinitionCounts(ctx, field, obj)
  144986. if out.Values[i] == graphql.Null {
  144987. invalids++
  144988. }
  144989. case "methodDefinitions":
  144990. out.Values[i] = ec._DeliveryLocationGroupZone_methodDefinitions(ctx, field, obj)
  144991. if out.Values[i] == graphql.Null {
  144992. invalids++
  144993. }
  144994. case "zone":
  144995. out.Values[i] = ec._DeliveryLocationGroupZone_zone(ctx, field, obj)
  144996. if out.Values[i] == graphql.Null {
  144997. invalids++
  144998. }
  144999. default:
  145000. panic("unknown field " + strconv.Quote(field.Name))
  145001. }
  145002. }
  145003. out.Dispatch()
  145004. if invalids > 0 {
  145005. return graphql.Null
  145006. }
  145007. return out
  145008. }
  145009. var deliveryLocationGroupZoneConnectionImplementors = []string{"DeliveryLocationGroupZoneConnection"}
  145010. func (ec *executionContext) _DeliveryLocationGroupZoneConnection(ctx context.Context, sel ast.SelectionSet, obj *DeliveryLocationGroupZoneConnection) graphql.Marshaler {
  145011. fields := graphql.CollectFields(ec.OperationContext, sel, deliveryLocationGroupZoneConnectionImplementors)
  145012. out := graphql.NewFieldSet(fields)
  145013. var invalids uint32
  145014. for i, field := range fields {
  145015. switch field.Name {
  145016. case "__typename":
  145017. out.Values[i] = graphql.MarshalString("DeliveryLocationGroupZoneConnection")
  145018. case "edges":
  145019. out.Values[i] = ec._DeliveryLocationGroupZoneConnection_edges(ctx, field, obj)
  145020. if out.Values[i] == graphql.Null {
  145021. invalids++
  145022. }
  145023. case "nodes":
  145024. out.Values[i] = ec._DeliveryLocationGroupZoneConnection_nodes(ctx, field, obj)
  145025. if out.Values[i] == graphql.Null {
  145026. invalids++
  145027. }
  145028. case "pageInfo":
  145029. out.Values[i] = ec._DeliveryLocationGroupZoneConnection_pageInfo(ctx, field, obj)
  145030. if out.Values[i] == graphql.Null {
  145031. invalids++
  145032. }
  145033. default:
  145034. panic("unknown field " + strconv.Quote(field.Name))
  145035. }
  145036. }
  145037. out.Dispatch()
  145038. if invalids > 0 {
  145039. return graphql.Null
  145040. }
  145041. return out
  145042. }
  145043. var deliveryLocationGroupZoneEdgeImplementors = []string{"DeliveryLocationGroupZoneEdge"}
  145044. func (ec *executionContext) _DeliveryLocationGroupZoneEdge(ctx context.Context, sel ast.SelectionSet, obj *DeliveryLocationGroupZoneEdge) graphql.Marshaler {
  145045. fields := graphql.CollectFields(ec.OperationContext, sel, deliveryLocationGroupZoneEdgeImplementors)
  145046. out := graphql.NewFieldSet(fields)
  145047. var invalids uint32
  145048. for i, field := range fields {
  145049. switch field.Name {
  145050. case "__typename":
  145051. out.Values[i] = graphql.MarshalString("DeliveryLocationGroupZoneEdge")
  145052. case "cursor":
  145053. out.Values[i] = ec._DeliveryLocationGroupZoneEdge_cursor(ctx, field, obj)
  145054. if out.Values[i] == graphql.Null {
  145055. invalids++
  145056. }
  145057. case "node":
  145058. out.Values[i] = ec._DeliveryLocationGroupZoneEdge_node(ctx, field, obj)
  145059. if out.Values[i] == graphql.Null {
  145060. invalids++
  145061. }
  145062. default:
  145063. panic("unknown field " + strconv.Quote(field.Name))
  145064. }
  145065. }
  145066. out.Dispatch()
  145067. if invalids > 0 {
  145068. return graphql.Null
  145069. }
  145070. return out
  145071. }
  145072. var deliveryMethodImplementors = []string{"DeliveryMethod", "Node"}
  145073. func (ec *executionContext) _DeliveryMethod(ctx context.Context, sel ast.SelectionSet, obj *DeliveryMethod) graphql.Marshaler {
  145074. fields := graphql.CollectFields(ec.OperationContext, sel, deliveryMethodImplementors)
  145075. out := graphql.NewFieldSet(fields)
  145076. var invalids uint32
  145077. for i, field := range fields {
  145078. switch field.Name {
  145079. case "__typename":
  145080. out.Values[i] = graphql.MarshalString("DeliveryMethod")
  145081. case "id":
  145082. out.Values[i] = ec._DeliveryMethod_id(ctx, field, obj)
  145083. if out.Values[i] == graphql.Null {
  145084. invalids++
  145085. }
  145086. case "maxDeliveryDateTime":
  145087. out.Values[i] = ec._DeliveryMethod_maxDeliveryDateTime(ctx, field, obj)
  145088. case "methodType":
  145089. out.Values[i] = ec._DeliveryMethod_methodType(ctx, field, obj)
  145090. if out.Values[i] == graphql.Null {
  145091. invalids++
  145092. }
  145093. case "minDeliveryDateTime":
  145094. out.Values[i] = ec._DeliveryMethod_minDeliveryDateTime(ctx, field, obj)
  145095. default:
  145096. panic("unknown field " + strconv.Quote(field.Name))
  145097. }
  145098. }
  145099. out.Dispatch()
  145100. if invalids > 0 {
  145101. return graphql.Null
  145102. }
  145103. return out
  145104. }
  145105. var deliveryMethodDefinitionImplementors = []string{"DeliveryMethodDefinition", "Node"}
  145106. func (ec *executionContext) _DeliveryMethodDefinition(ctx context.Context, sel ast.SelectionSet, obj *DeliveryMethodDefinition) graphql.Marshaler {
  145107. fields := graphql.CollectFields(ec.OperationContext, sel, deliveryMethodDefinitionImplementors)
  145108. out := graphql.NewFieldSet(fields)
  145109. var invalids uint32
  145110. for i, field := range fields {
  145111. switch field.Name {
  145112. case "__typename":
  145113. out.Values[i] = graphql.MarshalString("DeliveryMethodDefinition")
  145114. case "active":
  145115. out.Values[i] = ec._DeliveryMethodDefinition_active(ctx, field, obj)
  145116. if out.Values[i] == graphql.Null {
  145117. invalids++
  145118. }
  145119. case "description":
  145120. out.Values[i] = ec._DeliveryMethodDefinition_description(ctx, field, obj)
  145121. case "id":
  145122. out.Values[i] = ec._DeliveryMethodDefinition_id(ctx, field, obj)
  145123. if out.Values[i] == graphql.Null {
  145124. invalids++
  145125. }
  145126. case "methodConditions":
  145127. out.Values[i] = ec._DeliveryMethodDefinition_methodConditions(ctx, field, obj)
  145128. if out.Values[i] == graphql.Null {
  145129. invalids++
  145130. }
  145131. case "name":
  145132. out.Values[i] = ec._DeliveryMethodDefinition_name(ctx, field, obj)
  145133. if out.Values[i] == graphql.Null {
  145134. invalids++
  145135. }
  145136. case "rateProvider":
  145137. out.Values[i] = ec._DeliveryMethodDefinition_rateProvider(ctx, field, obj)
  145138. if out.Values[i] == graphql.Null {
  145139. invalids++
  145140. }
  145141. default:
  145142. panic("unknown field " + strconv.Quote(field.Name))
  145143. }
  145144. }
  145145. out.Dispatch()
  145146. if invalids > 0 {
  145147. return graphql.Null
  145148. }
  145149. return out
  145150. }
  145151. var deliveryMethodDefinitionConnectionImplementors = []string{"DeliveryMethodDefinitionConnection"}
  145152. func (ec *executionContext) _DeliveryMethodDefinitionConnection(ctx context.Context, sel ast.SelectionSet, obj *DeliveryMethodDefinitionConnection) graphql.Marshaler {
  145153. fields := graphql.CollectFields(ec.OperationContext, sel, deliveryMethodDefinitionConnectionImplementors)
  145154. out := graphql.NewFieldSet(fields)
  145155. var invalids uint32
  145156. for i, field := range fields {
  145157. switch field.Name {
  145158. case "__typename":
  145159. out.Values[i] = graphql.MarshalString("DeliveryMethodDefinitionConnection")
  145160. case "edges":
  145161. out.Values[i] = ec._DeliveryMethodDefinitionConnection_edges(ctx, field, obj)
  145162. if out.Values[i] == graphql.Null {
  145163. invalids++
  145164. }
  145165. case "nodes":
  145166. out.Values[i] = ec._DeliveryMethodDefinitionConnection_nodes(ctx, field, obj)
  145167. if out.Values[i] == graphql.Null {
  145168. invalids++
  145169. }
  145170. case "pageInfo":
  145171. out.Values[i] = ec._DeliveryMethodDefinitionConnection_pageInfo(ctx, field, obj)
  145172. if out.Values[i] == graphql.Null {
  145173. invalids++
  145174. }
  145175. default:
  145176. panic("unknown field " + strconv.Quote(field.Name))
  145177. }
  145178. }
  145179. out.Dispatch()
  145180. if invalids > 0 {
  145181. return graphql.Null
  145182. }
  145183. return out
  145184. }
  145185. var deliveryMethodDefinitionCountsImplementors = []string{"DeliveryMethodDefinitionCounts"}
  145186. func (ec *executionContext) _DeliveryMethodDefinitionCounts(ctx context.Context, sel ast.SelectionSet, obj *DeliveryMethodDefinitionCounts) graphql.Marshaler {
  145187. fields := graphql.CollectFields(ec.OperationContext, sel, deliveryMethodDefinitionCountsImplementors)
  145188. out := graphql.NewFieldSet(fields)
  145189. var invalids uint32
  145190. for i, field := range fields {
  145191. switch field.Name {
  145192. case "__typename":
  145193. out.Values[i] = graphql.MarshalString("DeliveryMethodDefinitionCounts")
  145194. case "participantDefinitionsCount":
  145195. out.Values[i] = ec._DeliveryMethodDefinitionCounts_participantDefinitionsCount(ctx, field, obj)
  145196. if out.Values[i] == graphql.Null {
  145197. invalids++
  145198. }
  145199. case "rateDefinitionsCount":
  145200. out.Values[i] = ec._DeliveryMethodDefinitionCounts_rateDefinitionsCount(ctx, field, obj)
  145201. if out.Values[i] == graphql.Null {
  145202. invalids++
  145203. }
  145204. default:
  145205. panic("unknown field " + strconv.Quote(field.Name))
  145206. }
  145207. }
  145208. out.Dispatch()
  145209. if invalids > 0 {
  145210. return graphql.Null
  145211. }
  145212. return out
  145213. }
  145214. var deliveryMethodDefinitionEdgeImplementors = []string{"DeliveryMethodDefinitionEdge"}
  145215. func (ec *executionContext) _DeliveryMethodDefinitionEdge(ctx context.Context, sel ast.SelectionSet, obj *DeliveryMethodDefinitionEdge) graphql.Marshaler {
  145216. fields := graphql.CollectFields(ec.OperationContext, sel, deliveryMethodDefinitionEdgeImplementors)
  145217. out := graphql.NewFieldSet(fields)
  145218. var invalids uint32
  145219. for i, field := range fields {
  145220. switch field.Name {
  145221. case "__typename":
  145222. out.Values[i] = graphql.MarshalString("DeliveryMethodDefinitionEdge")
  145223. case "cursor":
  145224. out.Values[i] = ec._DeliveryMethodDefinitionEdge_cursor(ctx, field, obj)
  145225. if out.Values[i] == graphql.Null {
  145226. invalids++
  145227. }
  145228. case "node":
  145229. out.Values[i] = ec._DeliveryMethodDefinitionEdge_node(ctx, field, obj)
  145230. if out.Values[i] == graphql.Null {
  145231. invalids++
  145232. }
  145233. default:
  145234. panic("unknown field " + strconv.Quote(field.Name))
  145235. }
  145236. }
  145237. out.Dispatch()
  145238. if invalids > 0 {
  145239. return graphql.Null
  145240. }
  145241. return out
  145242. }
  145243. var deliveryParticipantImplementors = []string{"DeliveryParticipant", "Node", "DeliveryRateProvider"}
  145244. func (ec *executionContext) _DeliveryParticipant(ctx context.Context, sel ast.SelectionSet, obj *DeliveryParticipant) graphql.Marshaler {
  145245. fields := graphql.CollectFields(ec.OperationContext, sel, deliveryParticipantImplementors)
  145246. out := graphql.NewFieldSet(fields)
  145247. var invalids uint32
  145248. for i, field := range fields {
  145249. switch field.Name {
  145250. case "__typename":
  145251. out.Values[i] = graphql.MarshalString("DeliveryParticipant")
  145252. case "adaptToNewServicesFlag":
  145253. out.Values[i] = ec._DeliveryParticipant_adaptToNewServicesFlag(ctx, field, obj)
  145254. if out.Values[i] == graphql.Null {
  145255. invalids++
  145256. }
  145257. case "carrierService":
  145258. out.Values[i] = ec._DeliveryParticipant_carrierService(ctx, field, obj)
  145259. if out.Values[i] == graphql.Null {
  145260. invalids++
  145261. }
  145262. case "fixedFee":
  145263. out.Values[i] = ec._DeliveryParticipant_fixedFee(ctx, field, obj)
  145264. case "id":
  145265. out.Values[i] = ec._DeliveryParticipant_id(ctx, field, obj)
  145266. if out.Values[i] == graphql.Null {
  145267. invalids++
  145268. }
  145269. case "participantServices":
  145270. out.Values[i] = ec._DeliveryParticipant_participantServices(ctx, field, obj)
  145271. if out.Values[i] == graphql.Null {
  145272. invalids++
  145273. }
  145274. case "percentageOfRateFee":
  145275. out.Values[i] = ec._DeliveryParticipant_percentageOfRateFee(ctx, field, obj)
  145276. if out.Values[i] == graphql.Null {
  145277. invalids++
  145278. }
  145279. default:
  145280. panic("unknown field " + strconv.Quote(field.Name))
  145281. }
  145282. }
  145283. out.Dispatch()
  145284. if invalids > 0 {
  145285. return graphql.Null
  145286. }
  145287. return out
  145288. }
  145289. var deliveryParticipantServiceImplementors = []string{"DeliveryParticipantService"}
  145290. func (ec *executionContext) _DeliveryParticipantService(ctx context.Context, sel ast.SelectionSet, obj *DeliveryParticipantService) graphql.Marshaler {
  145291. fields := graphql.CollectFields(ec.OperationContext, sel, deliveryParticipantServiceImplementors)
  145292. out := graphql.NewFieldSet(fields)
  145293. var invalids uint32
  145294. for i, field := range fields {
  145295. switch field.Name {
  145296. case "__typename":
  145297. out.Values[i] = graphql.MarshalString("DeliveryParticipantService")
  145298. case "active":
  145299. out.Values[i] = ec._DeliveryParticipantService_active(ctx, field, obj)
  145300. if out.Values[i] == graphql.Null {
  145301. invalids++
  145302. }
  145303. case "name":
  145304. out.Values[i] = ec._DeliveryParticipantService_name(ctx, field, obj)
  145305. if out.Values[i] == graphql.Null {
  145306. invalids++
  145307. }
  145308. default:
  145309. panic("unknown field " + strconv.Quote(field.Name))
  145310. }
  145311. }
  145312. out.Dispatch()
  145313. if invalids > 0 {
  145314. return graphql.Null
  145315. }
  145316. return out
  145317. }
  145318. var deliveryProductVariantsCountImplementors = []string{"DeliveryProductVariantsCount"}
  145319. func (ec *executionContext) _DeliveryProductVariantsCount(ctx context.Context, sel ast.SelectionSet, obj *DeliveryProductVariantsCount) graphql.Marshaler {
  145320. fields := graphql.CollectFields(ec.OperationContext, sel, deliveryProductVariantsCountImplementors)
  145321. out := graphql.NewFieldSet(fields)
  145322. var invalids uint32
  145323. for i, field := range fields {
  145324. switch field.Name {
  145325. case "__typename":
  145326. out.Values[i] = graphql.MarshalString("DeliveryProductVariantsCount")
  145327. case "capped":
  145328. out.Values[i] = ec._DeliveryProductVariantsCount_capped(ctx, field, obj)
  145329. if out.Values[i] == graphql.Null {
  145330. invalids++
  145331. }
  145332. case "count":
  145333. out.Values[i] = ec._DeliveryProductVariantsCount_count(ctx, field, obj)
  145334. if out.Values[i] == graphql.Null {
  145335. invalids++
  145336. }
  145337. default:
  145338. panic("unknown field " + strconv.Quote(field.Name))
  145339. }
  145340. }
  145341. out.Dispatch()
  145342. if invalids > 0 {
  145343. return graphql.Null
  145344. }
  145345. return out
  145346. }
  145347. var deliveryProfileImplementors = []string{"DeliveryProfile", "Node"}
  145348. func (ec *executionContext) _DeliveryProfile(ctx context.Context, sel ast.SelectionSet, obj *DeliveryProfile) graphql.Marshaler {
  145349. fields := graphql.CollectFields(ec.OperationContext, sel, deliveryProfileImplementors)
  145350. out := graphql.NewFieldSet(fields)
  145351. var invalids uint32
  145352. for i, field := range fields {
  145353. switch field.Name {
  145354. case "__typename":
  145355. out.Values[i] = graphql.MarshalString("DeliveryProfile")
  145356. case "activeMethodDefinitionsCount":
  145357. out.Values[i] = ec._DeliveryProfile_activeMethodDefinitionsCount(ctx, field, obj)
  145358. if out.Values[i] == graphql.Null {
  145359. invalids++
  145360. }
  145361. case "default":
  145362. out.Values[i] = ec._DeliveryProfile_default(ctx, field, obj)
  145363. if out.Values[i] == graphql.Null {
  145364. invalids++
  145365. }
  145366. case "id":
  145367. out.Values[i] = ec._DeliveryProfile_id(ctx, field, obj)
  145368. if out.Values[i] == graphql.Null {
  145369. invalids++
  145370. }
  145371. case "legacyMode":
  145372. out.Values[i] = ec._DeliveryProfile_legacyMode(ctx, field, obj)
  145373. if out.Values[i] == graphql.Null {
  145374. invalids++
  145375. }
  145376. case "locationsWithoutRatesCount":
  145377. out.Values[i] = ec._DeliveryProfile_locationsWithoutRatesCount(ctx, field, obj)
  145378. if out.Values[i] == graphql.Null {
  145379. invalids++
  145380. }
  145381. case "name":
  145382. out.Values[i] = ec._DeliveryProfile_name(ctx, field, obj)
  145383. if out.Values[i] == graphql.Null {
  145384. invalids++
  145385. }
  145386. case "originLocationCount":
  145387. out.Values[i] = ec._DeliveryProfile_originLocationCount(ctx, field, obj)
  145388. if out.Values[i] == graphql.Null {
  145389. invalids++
  145390. }
  145391. case "productVariantsCountV2":
  145392. out.Values[i] = ec._DeliveryProfile_productVariantsCountV2(ctx, field, obj)
  145393. if out.Values[i] == graphql.Null {
  145394. invalids++
  145395. }
  145396. case "profileItems":
  145397. out.Values[i] = ec._DeliveryProfile_profileItems(ctx, field, obj)
  145398. if out.Values[i] == graphql.Null {
  145399. invalids++
  145400. }
  145401. case "profileLocationGroups":
  145402. out.Values[i] = ec._DeliveryProfile_profileLocationGroups(ctx, field, obj)
  145403. if out.Values[i] == graphql.Null {
  145404. invalids++
  145405. }
  145406. case "sellingPlanGroups":
  145407. out.Values[i] = ec._DeliveryProfile_sellingPlanGroups(ctx, field, obj)
  145408. if out.Values[i] == graphql.Null {
  145409. invalids++
  145410. }
  145411. case "unassignedLocations":
  145412. out.Values[i] = ec._DeliveryProfile_unassignedLocations(ctx, field, obj)
  145413. if out.Values[i] == graphql.Null {
  145414. invalids++
  145415. }
  145416. case "zoneCountryCount":
  145417. out.Values[i] = ec._DeliveryProfile_zoneCountryCount(ctx, field, obj)
  145418. if out.Values[i] == graphql.Null {
  145419. invalids++
  145420. }
  145421. default:
  145422. panic("unknown field " + strconv.Quote(field.Name))
  145423. }
  145424. }
  145425. out.Dispatch()
  145426. if invalids > 0 {
  145427. return graphql.Null
  145428. }
  145429. return out
  145430. }
  145431. var deliveryProfileItemImplementors = []string{"DeliveryProfileItem", "Node"}
  145432. func (ec *executionContext) _DeliveryProfileItem(ctx context.Context, sel ast.SelectionSet, obj *DeliveryProfileItem) graphql.Marshaler {
  145433. fields := graphql.CollectFields(ec.OperationContext, sel, deliveryProfileItemImplementors)
  145434. out := graphql.NewFieldSet(fields)
  145435. var invalids uint32
  145436. for i, field := range fields {
  145437. switch field.Name {
  145438. case "__typename":
  145439. out.Values[i] = graphql.MarshalString("DeliveryProfileItem")
  145440. case "id":
  145441. out.Values[i] = ec._DeliveryProfileItem_id(ctx, field, obj)
  145442. if out.Values[i] == graphql.Null {
  145443. invalids++
  145444. }
  145445. case "product":
  145446. out.Values[i] = ec._DeliveryProfileItem_product(ctx, field, obj)
  145447. if out.Values[i] == graphql.Null {
  145448. invalids++
  145449. }
  145450. case "variants":
  145451. out.Values[i] = ec._DeliveryProfileItem_variants(ctx, field, obj)
  145452. if out.Values[i] == graphql.Null {
  145453. invalids++
  145454. }
  145455. default:
  145456. panic("unknown field " + strconv.Quote(field.Name))
  145457. }
  145458. }
  145459. out.Dispatch()
  145460. if invalids > 0 {
  145461. return graphql.Null
  145462. }
  145463. return out
  145464. }
  145465. var deliveryProfileItemConnectionImplementors = []string{"DeliveryProfileItemConnection"}
  145466. func (ec *executionContext) _DeliveryProfileItemConnection(ctx context.Context, sel ast.SelectionSet, obj *DeliveryProfileItemConnection) graphql.Marshaler {
  145467. fields := graphql.CollectFields(ec.OperationContext, sel, deliveryProfileItemConnectionImplementors)
  145468. out := graphql.NewFieldSet(fields)
  145469. var invalids uint32
  145470. for i, field := range fields {
  145471. switch field.Name {
  145472. case "__typename":
  145473. out.Values[i] = graphql.MarshalString("DeliveryProfileItemConnection")
  145474. case "edges":
  145475. out.Values[i] = ec._DeliveryProfileItemConnection_edges(ctx, field, obj)
  145476. if out.Values[i] == graphql.Null {
  145477. invalids++
  145478. }
  145479. case "nodes":
  145480. out.Values[i] = ec._DeliveryProfileItemConnection_nodes(ctx, field, obj)
  145481. if out.Values[i] == graphql.Null {
  145482. invalids++
  145483. }
  145484. case "pageInfo":
  145485. out.Values[i] = ec._DeliveryProfileItemConnection_pageInfo(ctx, field, obj)
  145486. if out.Values[i] == graphql.Null {
  145487. invalids++
  145488. }
  145489. default:
  145490. panic("unknown field " + strconv.Quote(field.Name))
  145491. }
  145492. }
  145493. out.Dispatch()
  145494. if invalids > 0 {
  145495. return graphql.Null
  145496. }
  145497. return out
  145498. }
  145499. var deliveryProfileItemEdgeImplementors = []string{"DeliveryProfileItemEdge"}
  145500. func (ec *executionContext) _DeliveryProfileItemEdge(ctx context.Context, sel ast.SelectionSet, obj *DeliveryProfileItemEdge) graphql.Marshaler {
  145501. fields := graphql.CollectFields(ec.OperationContext, sel, deliveryProfileItemEdgeImplementors)
  145502. out := graphql.NewFieldSet(fields)
  145503. var invalids uint32
  145504. for i, field := range fields {
  145505. switch field.Name {
  145506. case "__typename":
  145507. out.Values[i] = graphql.MarshalString("DeliveryProfileItemEdge")
  145508. case "cursor":
  145509. out.Values[i] = ec._DeliveryProfileItemEdge_cursor(ctx, field, obj)
  145510. if out.Values[i] == graphql.Null {
  145511. invalids++
  145512. }
  145513. case "node":
  145514. out.Values[i] = ec._DeliveryProfileItemEdge_node(ctx, field, obj)
  145515. if out.Values[i] == graphql.Null {
  145516. invalids++
  145517. }
  145518. default:
  145519. panic("unknown field " + strconv.Quote(field.Name))
  145520. }
  145521. }
  145522. out.Dispatch()
  145523. if invalids > 0 {
  145524. return graphql.Null
  145525. }
  145526. return out
  145527. }
  145528. var deliveryProfileLocationGroupImplementors = []string{"DeliveryProfileLocationGroup"}
  145529. func (ec *executionContext) _DeliveryProfileLocationGroup(ctx context.Context, sel ast.SelectionSet, obj *DeliveryProfileLocationGroup) graphql.Marshaler {
  145530. fields := graphql.CollectFields(ec.OperationContext, sel, deliveryProfileLocationGroupImplementors)
  145531. out := graphql.NewFieldSet(fields)
  145532. var invalids uint32
  145533. for i, field := range fields {
  145534. switch field.Name {
  145535. case "__typename":
  145536. out.Values[i] = graphql.MarshalString("DeliveryProfileLocationGroup")
  145537. case "countriesInAnyZone":
  145538. out.Values[i] = ec._DeliveryProfileLocationGroup_countriesInAnyZone(ctx, field, obj)
  145539. if out.Values[i] == graphql.Null {
  145540. invalids++
  145541. }
  145542. case "locationGroup":
  145543. out.Values[i] = ec._DeliveryProfileLocationGroup_locationGroup(ctx, field, obj)
  145544. if out.Values[i] == graphql.Null {
  145545. invalids++
  145546. }
  145547. case "locationGroupZones":
  145548. out.Values[i] = ec._DeliveryProfileLocationGroup_locationGroupZones(ctx, field, obj)
  145549. if out.Values[i] == graphql.Null {
  145550. invalids++
  145551. }
  145552. default:
  145553. panic("unknown field " + strconv.Quote(field.Name))
  145554. }
  145555. }
  145556. out.Dispatch()
  145557. if invalids > 0 {
  145558. return graphql.Null
  145559. }
  145560. return out
  145561. }
  145562. var deliveryProvinceImplementors = []string{"DeliveryProvince", "Node"}
  145563. func (ec *executionContext) _DeliveryProvince(ctx context.Context, sel ast.SelectionSet, obj *DeliveryProvince) graphql.Marshaler {
  145564. fields := graphql.CollectFields(ec.OperationContext, sel, deliveryProvinceImplementors)
  145565. out := graphql.NewFieldSet(fields)
  145566. var invalids uint32
  145567. for i, field := range fields {
  145568. switch field.Name {
  145569. case "__typename":
  145570. out.Values[i] = graphql.MarshalString("DeliveryProvince")
  145571. case "code":
  145572. out.Values[i] = ec._DeliveryProvince_code(ctx, field, obj)
  145573. if out.Values[i] == graphql.Null {
  145574. invalids++
  145575. }
  145576. case "id":
  145577. out.Values[i] = ec._DeliveryProvince_id(ctx, field, obj)
  145578. if out.Values[i] == graphql.Null {
  145579. invalids++
  145580. }
  145581. case "name":
  145582. out.Values[i] = ec._DeliveryProvince_name(ctx, field, obj)
  145583. if out.Values[i] == graphql.Null {
  145584. invalids++
  145585. }
  145586. case "translatedName":
  145587. out.Values[i] = ec._DeliveryProvince_translatedName(ctx, field, obj)
  145588. if out.Values[i] == graphql.Null {
  145589. invalids++
  145590. }
  145591. default:
  145592. panic("unknown field " + strconv.Quote(field.Name))
  145593. }
  145594. }
  145595. out.Dispatch()
  145596. if invalids > 0 {
  145597. return graphql.Null
  145598. }
  145599. return out
  145600. }
  145601. var deliveryRateDefinitionImplementors = []string{"DeliveryRateDefinition", "Node", "DeliveryRateProvider"}
  145602. func (ec *executionContext) _DeliveryRateDefinition(ctx context.Context, sel ast.SelectionSet, obj *DeliveryRateDefinition) graphql.Marshaler {
  145603. fields := graphql.CollectFields(ec.OperationContext, sel, deliveryRateDefinitionImplementors)
  145604. out := graphql.NewFieldSet(fields)
  145605. var invalids uint32
  145606. for i, field := range fields {
  145607. switch field.Name {
  145608. case "__typename":
  145609. out.Values[i] = graphql.MarshalString("DeliveryRateDefinition")
  145610. case "id":
  145611. out.Values[i] = ec._DeliveryRateDefinition_id(ctx, field, obj)
  145612. if out.Values[i] == graphql.Null {
  145613. invalids++
  145614. }
  145615. case "price":
  145616. out.Values[i] = ec._DeliveryRateDefinition_price(ctx, field, obj)
  145617. if out.Values[i] == graphql.Null {
  145618. invalids++
  145619. }
  145620. default:
  145621. panic("unknown field " + strconv.Quote(field.Name))
  145622. }
  145623. }
  145624. out.Dispatch()
  145625. if invalids > 0 {
  145626. return graphql.Null
  145627. }
  145628. return out
  145629. }
  145630. var deliveryZoneImplementors = []string{"DeliveryZone", "Node"}
  145631. func (ec *executionContext) _DeliveryZone(ctx context.Context, sel ast.SelectionSet, obj *DeliveryZone) graphql.Marshaler {
  145632. fields := graphql.CollectFields(ec.OperationContext, sel, deliveryZoneImplementors)
  145633. out := graphql.NewFieldSet(fields)
  145634. var invalids uint32
  145635. for i, field := range fields {
  145636. switch field.Name {
  145637. case "__typename":
  145638. out.Values[i] = graphql.MarshalString("DeliveryZone")
  145639. case "countries":
  145640. out.Values[i] = ec._DeliveryZone_countries(ctx, field, obj)
  145641. if out.Values[i] == graphql.Null {
  145642. invalids++
  145643. }
  145644. case "id":
  145645. out.Values[i] = ec._DeliveryZone_id(ctx, field, obj)
  145646. if out.Values[i] == graphql.Null {
  145647. invalids++
  145648. }
  145649. case "name":
  145650. out.Values[i] = ec._DeliveryZone_name(ctx, field, obj)
  145651. if out.Values[i] == graphql.Null {
  145652. invalids++
  145653. }
  145654. default:
  145655. panic("unknown field " + strconv.Quote(field.Name))
  145656. }
  145657. }
  145658. out.Dispatch()
  145659. if invalids > 0 {
  145660. return graphql.Null
  145661. }
  145662. return out
  145663. }
  145664. var discountAllocationImplementors = []string{"DiscountAllocation"}
  145665. func (ec *executionContext) _DiscountAllocation(ctx context.Context, sel ast.SelectionSet, obj *DiscountAllocation) graphql.Marshaler {
  145666. fields := graphql.CollectFields(ec.OperationContext, sel, discountAllocationImplementors)
  145667. out := graphql.NewFieldSet(fields)
  145668. var invalids uint32
  145669. for i, field := range fields {
  145670. switch field.Name {
  145671. case "__typename":
  145672. out.Values[i] = graphql.MarshalString("DiscountAllocation")
  145673. case "allocatedAmountSet":
  145674. out.Values[i] = ec._DiscountAllocation_allocatedAmountSet(ctx, field, obj)
  145675. if out.Values[i] == graphql.Null {
  145676. invalids++
  145677. }
  145678. case "discountApplication":
  145679. out.Values[i] = ec._DiscountAllocation_discountApplication(ctx, field, obj)
  145680. if out.Values[i] == graphql.Null {
  145681. invalids++
  145682. }
  145683. default:
  145684. panic("unknown field " + strconv.Quote(field.Name))
  145685. }
  145686. }
  145687. out.Dispatch()
  145688. if invalids > 0 {
  145689. return graphql.Null
  145690. }
  145691. return out
  145692. }
  145693. var discountApplicationConnectionImplementors = []string{"DiscountApplicationConnection"}
  145694. func (ec *executionContext) _DiscountApplicationConnection(ctx context.Context, sel ast.SelectionSet, obj *DiscountApplicationConnection) graphql.Marshaler {
  145695. fields := graphql.CollectFields(ec.OperationContext, sel, discountApplicationConnectionImplementors)
  145696. out := graphql.NewFieldSet(fields)
  145697. var invalids uint32
  145698. for i, field := range fields {
  145699. switch field.Name {
  145700. case "__typename":
  145701. out.Values[i] = graphql.MarshalString("DiscountApplicationConnection")
  145702. case "edges":
  145703. out.Values[i] = ec._DiscountApplicationConnection_edges(ctx, field, obj)
  145704. if out.Values[i] == graphql.Null {
  145705. invalids++
  145706. }
  145707. case "nodes":
  145708. out.Values[i] = ec._DiscountApplicationConnection_nodes(ctx, field, obj)
  145709. if out.Values[i] == graphql.Null {
  145710. invalids++
  145711. }
  145712. case "pageInfo":
  145713. out.Values[i] = ec._DiscountApplicationConnection_pageInfo(ctx, field, obj)
  145714. if out.Values[i] == graphql.Null {
  145715. invalids++
  145716. }
  145717. default:
  145718. panic("unknown field " + strconv.Quote(field.Name))
  145719. }
  145720. }
  145721. out.Dispatch()
  145722. if invalids > 0 {
  145723. return graphql.Null
  145724. }
  145725. return out
  145726. }
  145727. var discountApplicationEdgeImplementors = []string{"DiscountApplicationEdge"}
  145728. func (ec *executionContext) _DiscountApplicationEdge(ctx context.Context, sel ast.SelectionSet, obj *DiscountApplicationEdge) graphql.Marshaler {
  145729. fields := graphql.CollectFields(ec.OperationContext, sel, discountApplicationEdgeImplementors)
  145730. out := graphql.NewFieldSet(fields)
  145731. var invalids uint32
  145732. for i, field := range fields {
  145733. switch field.Name {
  145734. case "__typename":
  145735. out.Values[i] = graphql.MarshalString("DiscountApplicationEdge")
  145736. case "cursor":
  145737. out.Values[i] = ec._DiscountApplicationEdge_cursor(ctx, field, obj)
  145738. if out.Values[i] == graphql.Null {
  145739. invalids++
  145740. }
  145741. case "node":
  145742. out.Values[i] = ec._DiscountApplicationEdge_node(ctx, field, obj)
  145743. if out.Values[i] == graphql.Null {
  145744. invalids++
  145745. }
  145746. default:
  145747. panic("unknown field " + strconv.Quote(field.Name))
  145748. }
  145749. }
  145750. out.Dispatch()
  145751. if invalids > 0 {
  145752. return graphql.Null
  145753. }
  145754. return out
  145755. }
  145756. var discountCodeApplicationImplementors = []string{"DiscountCodeApplication", "DiscountApplication"}
  145757. func (ec *executionContext) _DiscountCodeApplication(ctx context.Context, sel ast.SelectionSet, obj *DiscountCodeApplication) graphql.Marshaler {
  145758. fields := graphql.CollectFields(ec.OperationContext, sel, discountCodeApplicationImplementors)
  145759. out := graphql.NewFieldSet(fields)
  145760. var invalids uint32
  145761. for i, field := range fields {
  145762. switch field.Name {
  145763. case "__typename":
  145764. out.Values[i] = graphql.MarshalString("DiscountCodeApplication")
  145765. case "allocationMethod":
  145766. out.Values[i] = ec._DiscountCodeApplication_allocationMethod(ctx, field, obj)
  145767. if out.Values[i] == graphql.Null {
  145768. invalids++
  145769. }
  145770. case "code":
  145771. out.Values[i] = ec._DiscountCodeApplication_code(ctx, field, obj)
  145772. if out.Values[i] == graphql.Null {
  145773. invalids++
  145774. }
  145775. case "index":
  145776. out.Values[i] = ec._DiscountCodeApplication_index(ctx, field, obj)
  145777. if out.Values[i] == graphql.Null {
  145778. invalids++
  145779. }
  145780. case "targetSelection":
  145781. out.Values[i] = ec._DiscountCodeApplication_targetSelection(ctx, field, obj)
  145782. if out.Values[i] == graphql.Null {
  145783. invalids++
  145784. }
  145785. case "targetType":
  145786. out.Values[i] = ec._DiscountCodeApplication_targetType(ctx, field, obj)
  145787. if out.Values[i] == graphql.Null {
  145788. invalids++
  145789. }
  145790. case "value":
  145791. out.Values[i] = ec._DiscountCodeApplication_value(ctx, field, obj)
  145792. if out.Values[i] == graphql.Null {
  145793. invalids++
  145794. }
  145795. default:
  145796. panic("unknown field " + strconv.Quote(field.Name))
  145797. }
  145798. }
  145799. out.Dispatch()
  145800. if invalids > 0 {
  145801. return graphql.Null
  145802. }
  145803. return out
  145804. }
  145805. var domainImplementors = []string{"Domain", "Node"}
  145806. func (ec *executionContext) _Domain(ctx context.Context, sel ast.SelectionSet, obj *Domain) graphql.Marshaler {
  145807. fields := graphql.CollectFields(ec.OperationContext, sel, domainImplementors)
  145808. out := graphql.NewFieldSet(fields)
  145809. var invalids uint32
  145810. for i, field := range fields {
  145811. switch field.Name {
  145812. case "__typename":
  145813. out.Values[i] = graphql.MarshalString("Domain")
  145814. case "host":
  145815. out.Values[i] = ec._Domain_host(ctx, field, obj)
  145816. if out.Values[i] == graphql.Null {
  145817. invalids++
  145818. }
  145819. case "id":
  145820. out.Values[i] = ec._Domain_id(ctx, field, obj)
  145821. if out.Values[i] == graphql.Null {
  145822. invalids++
  145823. }
  145824. case "localization":
  145825. out.Values[i] = ec._Domain_localization(ctx, field, obj)
  145826. case "marketWebPresence":
  145827. out.Values[i] = ec._Domain_marketWebPresence(ctx, field, obj)
  145828. case "sslEnabled":
  145829. out.Values[i] = ec._Domain_sslEnabled(ctx, field, obj)
  145830. if out.Values[i] == graphql.Null {
  145831. invalids++
  145832. }
  145833. case "url":
  145834. out.Values[i] = ec._Domain_url(ctx, field, obj)
  145835. if out.Values[i] == graphql.Null {
  145836. invalids++
  145837. }
  145838. default:
  145839. panic("unknown field " + strconv.Quote(field.Name))
  145840. }
  145841. }
  145842. out.Dispatch()
  145843. if invalids > 0 {
  145844. return graphql.Null
  145845. }
  145846. return out
  145847. }
  145848. var domainLocalizationImplementors = []string{"DomainLocalization"}
  145849. func (ec *executionContext) _DomainLocalization(ctx context.Context, sel ast.SelectionSet, obj *DomainLocalization) graphql.Marshaler {
  145850. fields := graphql.CollectFields(ec.OperationContext, sel, domainLocalizationImplementors)
  145851. out := graphql.NewFieldSet(fields)
  145852. var invalids uint32
  145853. for i, field := range fields {
  145854. switch field.Name {
  145855. case "__typename":
  145856. out.Values[i] = graphql.MarshalString("DomainLocalization")
  145857. case "alternateLocales":
  145858. out.Values[i] = ec._DomainLocalization_alternateLocales(ctx, field, obj)
  145859. if out.Values[i] == graphql.Null {
  145860. invalids++
  145861. }
  145862. case "country":
  145863. out.Values[i] = ec._DomainLocalization_country(ctx, field, obj)
  145864. case "defaultLocale":
  145865. out.Values[i] = ec._DomainLocalization_defaultLocale(ctx, field, obj)
  145866. if out.Values[i] == graphql.Null {
  145867. invalids++
  145868. }
  145869. default:
  145870. panic("unknown field " + strconv.Quote(field.Name))
  145871. }
  145872. }
  145873. out.Dispatch()
  145874. if invalids > 0 {
  145875. return graphql.Null
  145876. }
  145877. return out
  145878. }
  145879. var draftOrderImplementors = []string{"DraftOrder", "CommentEventSubject", "HasEvents", "HasLocalizationExtensions", "HasMetafields", "LegacyInteroperability", "Navigable", "Node", "CommentEventEmbed"}
  145880. func (ec *executionContext) _DraftOrder(ctx context.Context, sel ast.SelectionSet, obj *DraftOrder) graphql.Marshaler {
  145881. fields := graphql.CollectFields(ec.OperationContext, sel, draftOrderImplementors)
  145882. out := graphql.NewFieldSet(fields)
  145883. var invalids uint32
  145884. for i, field := range fields {
  145885. switch field.Name {
  145886. case "__typename":
  145887. out.Values[i] = graphql.MarshalString("DraftOrder")
  145888. case "appliedDiscount":
  145889. out.Values[i] = ec._DraftOrder_appliedDiscount(ctx, field, obj)
  145890. case "billingAddress":
  145891. out.Values[i] = ec._DraftOrder_billingAddress(ctx, field, obj)
  145892. case "billingAddressMatchesShippingAddress":
  145893. out.Values[i] = ec._DraftOrder_billingAddressMatchesShippingAddress(ctx, field, obj)
  145894. if out.Values[i] == graphql.Null {
  145895. invalids++
  145896. }
  145897. case "completedAt":
  145898. out.Values[i] = ec._DraftOrder_completedAt(ctx, field, obj)
  145899. case "createdAt":
  145900. out.Values[i] = ec._DraftOrder_createdAt(ctx, field, obj)
  145901. if out.Values[i] == graphql.Null {
  145902. invalids++
  145903. }
  145904. case "currencyCode":
  145905. out.Values[i] = ec._DraftOrder_currencyCode(ctx, field, obj)
  145906. if out.Values[i] == graphql.Null {
  145907. invalids++
  145908. }
  145909. case "customAttributes":
  145910. out.Values[i] = ec._DraftOrder_customAttributes(ctx, field, obj)
  145911. if out.Values[i] == graphql.Null {
  145912. invalids++
  145913. }
  145914. case "customer":
  145915. out.Values[i] = ec._DraftOrder_customer(ctx, field, obj)
  145916. case "defaultCursor":
  145917. out.Values[i] = ec._DraftOrder_defaultCursor(ctx, field, obj)
  145918. if out.Values[i] == graphql.Null {
  145919. invalids++
  145920. }
  145921. case "email":
  145922. out.Values[i] = ec._DraftOrder_email(ctx, field, obj)
  145923. case "events":
  145924. out.Values[i] = ec._DraftOrder_events(ctx, field, obj)
  145925. if out.Values[i] == graphql.Null {
  145926. invalids++
  145927. }
  145928. case "hasTimelineComment":
  145929. out.Values[i] = ec._DraftOrder_hasTimelineComment(ctx, field, obj)
  145930. if out.Values[i] == graphql.Null {
  145931. invalids++
  145932. }
  145933. case "id":
  145934. out.Values[i] = ec._DraftOrder_id(ctx, field, obj)
  145935. if out.Values[i] == graphql.Null {
  145936. invalids++
  145937. }
  145938. case "invoiceEmailTemplateSubject":
  145939. out.Values[i] = ec._DraftOrder_invoiceEmailTemplateSubject(ctx, field, obj)
  145940. if out.Values[i] == graphql.Null {
  145941. invalids++
  145942. }
  145943. case "invoiceSentAt":
  145944. out.Values[i] = ec._DraftOrder_invoiceSentAt(ctx, field, obj)
  145945. case "invoiceUrl":
  145946. out.Values[i] = ec._DraftOrder_invoiceUrl(ctx, field, obj)
  145947. case "legacyResourceId":
  145948. out.Values[i] = ec._DraftOrder_legacyResourceId(ctx, field, obj)
  145949. if out.Values[i] == graphql.Null {
  145950. invalids++
  145951. }
  145952. case "lineItems":
  145953. out.Values[i] = ec._DraftOrder_lineItems(ctx, field, obj)
  145954. if out.Values[i] == graphql.Null {
  145955. invalids++
  145956. }
  145957. case "lineItemsSubtotalPrice":
  145958. out.Values[i] = ec._DraftOrder_lineItemsSubtotalPrice(ctx, field, obj)
  145959. if out.Values[i] == graphql.Null {
  145960. invalids++
  145961. }
  145962. case "localizationExtensions":
  145963. out.Values[i] = ec._DraftOrder_localizationExtensions(ctx, field, obj)
  145964. if out.Values[i] == graphql.Null {
  145965. invalids++
  145966. }
  145967. case "marketName":
  145968. out.Values[i] = ec._DraftOrder_marketName(ctx, field, obj)
  145969. if out.Values[i] == graphql.Null {
  145970. invalids++
  145971. }
  145972. case "marketRegionCountryCode":
  145973. out.Values[i] = ec._DraftOrder_marketRegionCountryCode(ctx, field, obj)
  145974. if out.Values[i] == graphql.Null {
  145975. invalids++
  145976. }
  145977. case "metafield":
  145978. out.Values[i] = ec._DraftOrder_metafield(ctx, field, obj)
  145979. case "metafields":
  145980. out.Values[i] = ec._DraftOrder_metafields(ctx, field, obj)
  145981. if out.Values[i] == graphql.Null {
  145982. invalids++
  145983. }
  145984. case "name":
  145985. out.Values[i] = ec._DraftOrder_name(ctx, field, obj)
  145986. if out.Values[i] == graphql.Null {
  145987. invalids++
  145988. }
  145989. case "note2":
  145990. out.Values[i] = ec._DraftOrder_note2(ctx, field, obj)
  145991. case "order":
  145992. out.Values[i] = ec._DraftOrder_order(ctx, field, obj)
  145993. case "paymentTerms":
  145994. out.Values[i] = ec._DraftOrder_paymentTerms(ctx, field, obj)
  145995. case "phone":
  145996. out.Values[i] = ec._DraftOrder_phone(ctx, field, obj)
  145997. case "presentmentCurrencyCode":
  145998. out.Values[i] = ec._DraftOrder_presentmentCurrencyCode(ctx, field, obj)
  145999. if out.Values[i] == graphql.Null {
  146000. invalids++
  146001. }
  146002. case "privateMetafield":
  146003. out.Values[i] = ec._DraftOrder_privateMetafield(ctx, field, obj)
  146004. case "privateMetafields":
  146005. out.Values[i] = ec._DraftOrder_privateMetafields(ctx, field, obj)
  146006. if out.Values[i] == graphql.Null {
  146007. invalids++
  146008. }
  146009. case "purchasingEntity":
  146010. out.Values[i] = ec._DraftOrder_purchasingEntity(ctx, field, obj)
  146011. case "ready":
  146012. out.Values[i] = ec._DraftOrder_ready(ctx, field, obj)
  146013. if out.Values[i] == graphql.Null {
  146014. invalids++
  146015. }
  146016. case "reserveInventoryUntil":
  146017. out.Values[i] = ec._DraftOrder_reserveInventoryUntil(ctx, field, obj)
  146018. case "shippingAddress":
  146019. out.Values[i] = ec._DraftOrder_shippingAddress(ctx, field, obj)
  146020. case "shippingLine":
  146021. out.Values[i] = ec._DraftOrder_shippingLine(ctx, field, obj)
  146022. case "status":
  146023. out.Values[i] = ec._DraftOrder_status(ctx, field, obj)
  146024. if out.Values[i] == graphql.Null {
  146025. invalids++
  146026. }
  146027. case "subtotalPrice":
  146028. out.Values[i] = ec._DraftOrder_subtotalPrice(ctx, field, obj)
  146029. if out.Values[i] == graphql.Null {
  146030. invalids++
  146031. }
  146032. case "subtotalPriceSet":
  146033. out.Values[i] = ec._DraftOrder_subtotalPriceSet(ctx, field, obj)
  146034. if out.Values[i] == graphql.Null {
  146035. invalids++
  146036. }
  146037. case "tags":
  146038. out.Values[i] = ec._DraftOrder_tags(ctx, field, obj)
  146039. if out.Values[i] == graphql.Null {
  146040. invalids++
  146041. }
  146042. case "taxExempt":
  146043. out.Values[i] = ec._DraftOrder_taxExempt(ctx, field, obj)
  146044. if out.Values[i] == graphql.Null {
  146045. invalids++
  146046. }
  146047. case "taxLines":
  146048. out.Values[i] = ec._DraftOrder_taxLines(ctx, field, obj)
  146049. if out.Values[i] == graphql.Null {
  146050. invalids++
  146051. }
  146052. case "taxesIncluded":
  146053. out.Values[i] = ec._DraftOrder_taxesIncluded(ctx, field, obj)
  146054. if out.Values[i] == graphql.Null {
  146055. invalids++
  146056. }
  146057. case "totalDiscountsSet":
  146058. out.Values[i] = ec._DraftOrder_totalDiscountsSet(ctx, field, obj)
  146059. if out.Values[i] == graphql.Null {
  146060. invalids++
  146061. }
  146062. case "totalLineItemsPriceSet":
  146063. out.Values[i] = ec._DraftOrder_totalLineItemsPriceSet(ctx, field, obj)
  146064. if out.Values[i] == graphql.Null {
  146065. invalids++
  146066. }
  146067. case "totalPrice":
  146068. out.Values[i] = ec._DraftOrder_totalPrice(ctx, field, obj)
  146069. if out.Values[i] == graphql.Null {
  146070. invalids++
  146071. }
  146072. case "totalPriceSet":
  146073. out.Values[i] = ec._DraftOrder_totalPriceSet(ctx, field, obj)
  146074. if out.Values[i] == graphql.Null {
  146075. invalids++
  146076. }
  146077. case "totalShippingPrice":
  146078. out.Values[i] = ec._DraftOrder_totalShippingPrice(ctx, field, obj)
  146079. if out.Values[i] == graphql.Null {
  146080. invalids++
  146081. }
  146082. case "totalShippingPriceSet":
  146083. out.Values[i] = ec._DraftOrder_totalShippingPriceSet(ctx, field, obj)
  146084. if out.Values[i] == graphql.Null {
  146085. invalids++
  146086. }
  146087. case "totalTax":
  146088. out.Values[i] = ec._DraftOrder_totalTax(ctx, field, obj)
  146089. if out.Values[i] == graphql.Null {
  146090. invalids++
  146091. }
  146092. case "totalTaxSet":
  146093. out.Values[i] = ec._DraftOrder_totalTaxSet(ctx, field, obj)
  146094. if out.Values[i] == graphql.Null {
  146095. invalids++
  146096. }
  146097. case "totalWeight":
  146098. out.Values[i] = ec._DraftOrder_totalWeight(ctx, field, obj)
  146099. if out.Values[i] == graphql.Null {
  146100. invalids++
  146101. }
  146102. case "updatedAt":
  146103. out.Values[i] = ec._DraftOrder_updatedAt(ctx, field, obj)
  146104. if out.Values[i] == graphql.Null {
  146105. invalids++
  146106. }
  146107. case "visibleToCustomer":
  146108. out.Values[i] = ec._DraftOrder_visibleToCustomer(ctx, field, obj)
  146109. if out.Values[i] == graphql.Null {
  146110. invalids++
  146111. }
  146112. default:
  146113. panic("unknown field " + strconv.Quote(field.Name))
  146114. }
  146115. }
  146116. out.Dispatch()
  146117. if invalids > 0 {
  146118. return graphql.Null
  146119. }
  146120. return out
  146121. }
  146122. var draftOrderAppliedDiscountImplementors = []string{"DraftOrderAppliedDiscount"}
  146123. func (ec *executionContext) _DraftOrderAppliedDiscount(ctx context.Context, sel ast.SelectionSet, obj *DraftOrderAppliedDiscount) graphql.Marshaler {
  146124. fields := graphql.CollectFields(ec.OperationContext, sel, draftOrderAppliedDiscountImplementors)
  146125. out := graphql.NewFieldSet(fields)
  146126. var invalids uint32
  146127. for i, field := range fields {
  146128. switch field.Name {
  146129. case "__typename":
  146130. out.Values[i] = graphql.MarshalString("DraftOrderAppliedDiscount")
  146131. case "amountSet":
  146132. out.Values[i] = ec._DraftOrderAppliedDiscount_amountSet(ctx, field, obj)
  146133. if out.Values[i] == graphql.Null {
  146134. invalids++
  146135. }
  146136. case "amountV2":
  146137. out.Values[i] = ec._DraftOrderAppliedDiscount_amountV2(ctx, field, obj)
  146138. if out.Values[i] == graphql.Null {
  146139. invalids++
  146140. }
  146141. case "description":
  146142. out.Values[i] = ec._DraftOrderAppliedDiscount_description(ctx, field, obj)
  146143. if out.Values[i] == graphql.Null {
  146144. invalids++
  146145. }
  146146. case "title":
  146147. out.Values[i] = ec._DraftOrderAppliedDiscount_title(ctx, field, obj)
  146148. case "value":
  146149. out.Values[i] = ec._DraftOrderAppliedDiscount_value(ctx, field, obj)
  146150. if out.Values[i] == graphql.Null {
  146151. invalids++
  146152. }
  146153. case "valueType":
  146154. out.Values[i] = ec._DraftOrderAppliedDiscount_valueType(ctx, field, obj)
  146155. if out.Values[i] == graphql.Null {
  146156. invalids++
  146157. }
  146158. default:
  146159. panic("unknown field " + strconv.Quote(field.Name))
  146160. }
  146161. }
  146162. out.Dispatch()
  146163. if invalids > 0 {
  146164. return graphql.Null
  146165. }
  146166. return out
  146167. }
  146168. var draftOrderConnectionImplementors = []string{"DraftOrderConnection"}
  146169. func (ec *executionContext) _DraftOrderConnection(ctx context.Context, sel ast.SelectionSet, obj *DraftOrderConnection) graphql.Marshaler {
  146170. fields := graphql.CollectFields(ec.OperationContext, sel, draftOrderConnectionImplementors)
  146171. out := graphql.NewFieldSet(fields)
  146172. var invalids uint32
  146173. for i, field := range fields {
  146174. switch field.Name {
  146175. case "__typename":
  146176. out.Values[i] = graphql.MarshalString("DraftOrderConnection")
  146177. case "edges":
  146178. out.Values[i] = ec._DraftOrderConnection_edges(ctx, field, obj)
  146179. if out.Values[i] == graphql.Null {
  146180. invalids++
  146181. }
  146182. case "nodes":
  146183. out.Values[i] = ec._DraftOrderConnection_nodes(ctx, field, obj)
  146184. if out.Values[i] == graphql.Null {
  146185. invalids++
  146186. }
  146187. case "pageInfo":
  146188. out.Values[i] = ec._DraftOrderConnection_pageInfo(ctx, field, obj)
  146189. if out.Values[i] == graphql.Null {
  146190. invalids++
  146191. }
  146192. default:
  146193. panic("unknown field " + strconv.Quote(field.Name))
  146194. }
  146195. }
  146196. out.Dispatch()
  146197. if invalids > 0 {
  146198. return graphql.Null
  146199. }
  146200. return out
  146201. }
  146202. var draftOrderEdgeImplementors = []string{"DraftOrderEdge"}
  146203. func (ec *executionContext) _DraftOrderEdge(ctx context.Context, sel ast.SelectionSet, obj *DraftOrderEdge) graphql.Marshaler {
  146204. fields := graphql.CollectFields(ec.OperationContext, sel, draftOrderEdgeImplementors)
  146205. out := graphql.NewFieldSet(fields)
  146206. var invalids uint32
  146207. for i, field := range fields {
  146208. switch field.Name {
  146209. case "__typename":
  146210. out.Values[i] = graphql.MarshalString("DraftOrderEdge")
  146211. case "cursor":
  146212. out.Values[i] = ec._DraftOrderEdge_cursor(ctx, field, obj)
  146213. if out.Values[i] == graphql.Null {
  146214. invalids++
  146215. }
  146216. case "node":
  146217. out.Values[i] = ec._DraftOrderEdge_node(ctx, field, obj)
  146218. if out.Values[i] == graphql.Null {
  146219. invalids++
  146220. }
  146221. default:
  146222. panic("unknown field " + strconv.Quote(field.Name))
  146223. }
  146224. }
  146225. out.Dispatch()
  146226. if invalids > 0 {
  146227. return graphql.Null
  146228. }
  146229. return out
  146230. }
  146231. var draftOrderLineItemImplementors = []string{"DraftOrderLineItem", "Node"}
  146232. func (ec *executionContext) _DraftOrderLineItem(ctx context.Context, sel ast.SelectionSet, obj *DraftOrderLineItem) graphql.Marshaler {
  146233. fields := graphql.CollectFields(ec.OperationContext, sel, draftOrderLineItemImplementors)
  146234. out := graphql.NewFieldSet(fields)
  146235. var invalids uint32
  146236. for i, field := range fields {
  146237. switch field.Name {
  146238. case "__typename":
  146239. out.Values[i] = graphql.MarshalString("DraftOrderLineItem")
  146240. case "appliedDiscount":
  146241. out.Values[i] = ec._DraftOrderLineItem_appliedDiscount(ctx, field, obj)
  146242. case "custom":
  146243. out.Values[i] = ec._DraftOrderLineItem_custom(ctx, field, obj)
  146244. if out.Values[i] == graphql.Null {
  146245. invalids++
  146246. }
  146247. case "customAttributes":
  146248. out.Values[i] = ec._DraftOrderLineItem_customAttributes(ctx, field, obj)
  146249. if out.Values[i] == graphql.Null {
  146250. invalids++
  146251. }
  146252. case "customAttributesV2":
  146253. out.Values[i] = ec._DraftOrderLineItem_customAttributesV2(ctx, field, obj)
  146254. if out.Values[i] == graphql.Null {
  146255. invalids++
  146256. }
  146257. case "discountedTotal":
  146258. out.Values[i] = ec._DraftOrderLineItem_discountedTotal(ctx, field, obj)
  146259. if out.Values[i] == graphql.Null {
  146260. invalids++
  146261. }
  146262. case "discountedTotalSet":
  146263. out.Values[i] = ec._DraftOrderLineItem_discountedTotalSet(ctx, field, obj)
  146264. if out.Values[i] == graphql.Null {
  146265. invalids++
  146266. }
  146267. case "discountedUnitPrice":
  146268. out.Values[i] = ec._DraftOrderLineItem_discountedUnitPrice(ctx, field, obj)
  146269. if out.Values[i] == graphql.Null {
  146270. invalids++
  146271. }
  146272. case "discountedUnitPriceSet":
  146273. out.Values[i] = ec._DraftOrderLineItem_discountedUnitPriceSet(ctx, field, obj)
  146274. if out.Values[i] == graphql.Null {
  146275. invalids++
  146276. }
  146277. case "fulfillmentService":
  146278. out.Values[i] = ec._DraftOrderLineItem_fulfillmentService(ctx, field, obj)
  146279. case "id":
  146280. out.Values[i] = ec._DraftOrderLineItem_id(ctx, field, obj)
  146281. if out.Values[i] == graphql.Null {
  146282. invalids++
  146283. }
  146284. case "image":
  146285. out.Values[i] = ec._DraftOrderLineItem_image(ctx, field, obj)
  146286. case "isGiftCard":
  146287. out.Values[i] = ec._DraftOrderLineItem_isGiftCard(ctx, field, obj)
  146288. if out.Values[i] == graphql.Null {
  146289. invalids++
  146290. }
  146291. case "name":
  146292. out.Values[i] = ec._DraftOrderLineItem_name(ctx, field, obj)
  146293. if out.Values[i] == graphql.Null {
  146294. invalids++
  146295. }
  146296. case "originalTotal":
  146297. out.Values[i] = ec._DraftOrderLineItem_originalTotal(ctx, field, obj)
  146298. if out.Values[i] == graphql.Null {
  146299. invalids++
  146300. }
  146301. case "originalTotalSet":
  146302. out.Values[i] = ec._DraftOrderLineItem_originalTotalSet(ctx, field, obj)
  146303. if out.Values[i] == graphql.Null {
  146304. invalids++
  146305. }
  146306. case "originalUnitPrice":
  146307. out.Values[i] = ec._DraftOrderLineItem_originalUnitPrice(ctx, field, obj)
  146308. if out.Values[i] == graphql.Null {
  146309. invalids++
  146310. }
  146311. case "originalUnitPriceSet":
  146312. out.Values[i] = ec._DraftOrderLineItem_originalUnitPriceSet(ctx, field, obj)
  146313. if out.Values[i] == graphql.Null {
  146314. invalids++
  146315. }
  146316. case "product":
  146317. out.Values[i] = ec._DraftOrderLineItem_product(ctx, field, obj)
  146318. case "quantity":
  146319. out.Values[i] = ec._DraftOrderLineItem_quantity(ctx, field, obj)
  146320. if out.Values[i] == graphql.Null {
  146321. invalids++
  146322. }
  146323. case "requiresShipping":
  146324. out.Values[i] = ec._DraftOrderLineItem_requiresShipping(ctx, field, obj)
  146325. if out.Values[i] == graphql.Null {
  146326. invalids++
  146327. }
  146328. case "sku":
  146329. out.Values[i] = ec._DraftOrderLineItem_sku(ctx, field, obj)
  146330. case "taxLines":
  146331. out.Values[i] = ec._DraftOrderLineItem_taxLines(ctx, field, obj)
  146332. if out.Values[i] == graphql.Null {
  146333. invalids++
  146334. }
  146335. case "taxable":
  146336. out.Values[i] = ec._DraftOrderLineItem_taxable(ctx, field, obj)
  146337. if out.Values[i] == graphql.Null {
  146338. invalids++
  146339. }
  146340. case "title":
  146341. out.Values[i] = ec._DraftOrderLineItem_title(ctx, field, obj)
  146342. if out.Values[i] == graphql.Null {
  146343. invalids++
  146344. }
  146345. case "totalDiscount":
  146346. out.Values[i] = ec._DraftOrderLineItem_totalDiscount(ctx, field, obj)
  146347. if out.Values[i] == graphql.Null {
  146348. invalids++
  146349. }
  146350. case "totalDiscountSet":
  146351. out.Values[i] = ec._DraftOrderLineItem_totalDiscountSet(ctx, field, obj)
  146352. if out.Values[i] == graphql.Null {
  146353. invalids++
  146354. }
  146355. case "variant":
  146356. out.Values[i] = ec._DraftOrderLineItem_variant(ctx, field, obj)
  146357. case "variantTitle":
  146358. out.Values[i] = ec._DraftOrderLineItem_variantTitle(ctx, field, obj)
  146359. case "vendor":
  146360. out.Values[i] = ec._DraftOrderLineItem_vendor(ctx, field, obj)
  146361. case "weight":
  146362. out.Values[i] = ec._DraftOrderLineItem_weight(ctx, field, obj)
  146363. default:
  146364. panic("unknown field " + strconv.Quote(field.Name))
  146365. }
  146366. }
  146367. out.Dispatch()
  146368. if invalids > 0 {
  146369. return graphql.Null
  146370. }
  146371. return out
  146372. }
  146373. var draftOrderLineItemConnectionImplementors = []string{"DraftOrderLineItemConnection"}
  146374. func (ec *executionContext) _DraftOrderLineItemConnection(ctx context.Context, sel ast.SelectionSet, obj *DraftOrderLineItemConnection) graphql.Marshaler {
  146375. fields := graphql.CollectFields(ec.OperationContext, sel, draftOrderLineItemConnectionImplementors)
  146376. out := graphql.NewFieldSet(fields)
  146377. var invalids uint32
  146378. for i, field := range fields {
  146379. switch field.Name {
  146380. case "__typename":
  146381. out.Values[i] = graphql.MarshalString("DraftOrderLineItemConnection")
  146382. case "edges":
  146383. out.Values[i] = ec._DraftOrderLineItemConnection_edges(ctx, field, obj)
  146384. if out.Values[i] == graphql.Null {
  146385. invalids++
  146386. }
  146387. case "nodes":
  146388. out.Values[i] = ec._DraftOrderLineItemConnection_nodes(ctx, field, obj)
  146389. if out.Values[i] == graphql.Null {
  146390. invalids++
  146391. }
  146392. case "pageInfo":
  146393. out.Values[i] = ec._DraftOrderLineItemConnection_pageInfo(ctx, field, obj)
  146394. if out.Values[i] == graphql.Null {
  146395. invalids++
  146396. }
  146397. default:
  146398. panic("unknown field " + strconv.Quote(field.Name))
  146399. }
  146400. }
  146401. out.Dispatch()
  146402. if invalids > 0 {
  146403. return graphql.Null
  146404. }
  146405. return out
  146406. }
  146407. var draftOrderLineItemEdgeImplementors = []string{"DraftOrderLineItemEdge"}
  146408. func (ec *executionContext) _DraftOrderLineItemEdge(ctx context.Context, sel ast.SelectionSet, obj *DraftOrderLineItemEdge) graphql.Marshaler {
  146409. fields := graphql.CollectFields(ec.OperationContext, sel, draftOrderLineItemEdgeImplementors)
  146410. out := graphql.NewFieldSet(fields)
  146411. var invalids uint32
  146412. for i, field := range fields {
  146413. switch field.Name {
  146414. case "__typename":
  146415. out.Values[i] = graphql.MarshalString("DraftOrderLineItemEdge")
  146416. case "cursor":
  146417. out.Values[i] = ec._DraftOrderLineItemEdge_cursor(ctx, field, obj)
  146418. if out.Values[i] == graphql.Null {
  146419. invalids++
  146420. }
  146421. case "node":
  146422. out.Values[i] = ec._DraftOrderLineItemEdge_node(ctx, field, obj)
  146423. if out.Values[i] == graphql.Null {
  146424. invalids++
  146425. }
  146426. default:
  146427. panic("unknown field " + strconv.Quote(field.Name))
  146428. }
  146429. }
  146430. out.Dispatch()
  146431. if invalids > 0 {
  146432. return graphql.Null
  146433. }
  146434. return out
  146435. }
  146436. var dutyImplementors = []string{"Duty", "Node"}
  146437. func (ec *executionContext) _Duty(ctx context.Context, sel ast.SelectionSet, obj *Duty) graphql.Marshaler {
  146438. fields := graphql.CollectFields(ec.OperationContext, sel, dutyImplementors)
  146439. out := graphql.NewFieldSet(fields)
  146440. var invalids uint32
  146441. for i, field := range fields {
  146442. switch field.Name {
  146443. case "__typename":
  146444. out.Values[i] = graphql.MarshalString("Duty")
  146445. case "countryCodeOfOrigin":
  146446. out.Values[i] = ec._Duty_countryCodeOfOrigin(ctx, field, obj)
  146447. case "harmonizedSystemCode":
  146448. out.Values[i] = ec._Duty_harmonizedSystemCode(ctx, field, obj)
  146449. case "id":
  146450. out.Values[i] = ec._Duty_id(ctx, field, obj)
  146451. if out.Values[i] == graphql.Null {
  146452. invalids++
  146453. }
  146454. case "price":
  146455. out.Values[i] = ec._Duty_price(ctx, field, obj)
  146456. if out.Values[i] == graphql.Null {
  146457. invalids++
  146458. }
  146459. case "taxLines":
  146460. out.Values[i] = ec._Duty_taxLines(ctx, field, obj)
  146461. if out.Values[i] == graphql.Null {
  146462. invalids++
  146463. }
  146464. default:
  146465. panic("unknown field " + strconv.Quote(field.Name))
  146466. }
  146467. }
  146468. out.Dispatch()
  146469. if invalids > 0 {
  146470. return graphql.Null
  146471. }
  146472. return out
  146473. }
  146474. var editablePropertyImplementors = []string{"EditableProperty"}
  146475. func (ec *executionContext) _EditableProperty(ctx context.Context, sel ast.SelectionSet, obj *EditableProperty) graphql.Marshaler {
  146476. fields := graphql.CollectFields(ec.OperationContext, sel, editablePropertyImplementors)
  146477. out := graphql.NewFieldSet(fields)
  146478. var invalids uint32
  146479. for i, field := range fields {
  146480. switch field.Name {
  146481. case "__typename":
  146482. out.Values[i] = graphql.MarshalString("EditableProperty")
  146483. case "locked":
  146484. out.Values[i] = ec._EditableProperty_locked(ctx, field, obj)
  146485. if out.Values[i] == graphql.Null {
  146486. invalids++
  146487. }
  146488. case "reason":
  146489. out.Values[i] = ec._EditableProperty_reason(ctx, field, obj)
  146490. default:
  146491. panic("unknown field " + strconv.Quote(field.Name))
  146492. }
  146493. }
  146494. out.Dispatch()
  146495. if invalids > 0 {
  146496. return graphql.Null
  146497. }
  146498. return out
  146499. }
  146500. var entityImplementors = []string{"Entity"}
  146501. func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
  146502. fields := graphql.CollectFields(ec.OperationContext, sel, entityImplementors)
  146503. ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
  146504. Object: "Entity",
  146505. })
  146506. out := graphql.NewFieldSet(fields)
  146507. var invalids uint32
  146508. for i, field := range fields {
  146509. innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{
  146510. Object: field.Name,
  146511. Field: field,
  146512. })
  146513. switch field.Name {
  146514. case "__typename":
  146515. out.Values[i] = graphql.MarshalString("Entity")
  146516. case "findProductByID":
  146517. field := field
  146518. innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  146519. defer func() {
  146520. if r := recover(); r != nil {
  146521. ec.Error(ctx, ec.Recover(ctx, r))
  146522. }
  146523. }()
  146524. res = ec._Entity_findProductByID(ctx, field)
  146525. if res == graphql.Null {
  146526. atomic.AddUint32(&invalids, 1)
  146527. }
  146528. return res
  146529. }
  146530. rrm := func(ctx context.Context) graphql.Marshaler {
  146531. return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
  146532. }
  146533. out.Concurrently(i, func() graphql.Marshaler {
  146534. return rrm(innerCtx)
  146535. })
  146536. default:
  146537. panic("unknown field " + strconv.Quote(field.Name))
  146538. }
  146539. }
  146540. out.Dispatch()
  146541. if invalids > 0 {
  146542. return graphql.Null
  146543. }
  146544. return out
  146545. }
  146546. var eventConnectionImplementors = []string{"EventConnection"}
  146547. func (ec *executionContext) _EventConnection(ctx context.Context, sel ast.SelectionSet, obj *EventConnection) graphql.Marshaler {
  146548. fields := graphql.CollectFields(ec.OperationContext, sel, eventConnectionImplementors)
  146549. out := graphql.NewFieldSet(fields)
  146550. var invalids uint32
  146551. for i, field := range fields {
  146552. switch field.Name {
  146553. case "__typename":
  146554. out.Values[i] = graphql.MarshalString("EventConnection")
  146555. case "edges":
  146556. out.Values[i] = ec._EventConnection_edges(ctx, field, obj)
  146557. if out.Values[i] == graphql.Null {
  146558. invalids++
  146559. }
  146560. case "nodes":
  146561. out.Values[i] = ec._EventConnection_nodes(ctx, field, obj)
  146562. if out.Values[i] == graphql.Null {
  146563. invalids++
  146564. }
  146565. case "pageInfo":
  146566. out.Values[i] = ec._EventConnection_pageInfo(ctx, field, obj)
  146567. if out.Values[i] == graphql.Null {
  146568. invalids++
  146569. }
  146570. default:
  146571. panic("unknown field " + strconv.Quote(field.Name))
  146572. }
  146573. }
  146574. out.Dispatch()
  146575. if invalids > 0 {
  146576. return graphql.Null
  146577. }
  146578. return out
  146579. }
  146580. var eventEdgeImplementors = []string{"EventEdge"}
  146581. func (ec *executionContext) _EventEdge(ctx context.Context, sel ast.SelectionSet, obj *EventEdge) graphql.Marshaler {
  146582. fields := graphql.CollectFields(ec.OperationContext, sel, eventEdgeImplementors)
  146583. out := graphql.NewFieldSet(fields)
  146584. var invalids uint32
  146585. for i, field := range fields {
  146586. switch field.Name {
  146587. case "__typename":
  146588. out.Values[i] = graphql.MarshalString("EventEdge")
  146589. case "cursor":
  146590. out.Values[i] = ec._EventEdge_cursor(ctx, field, obj)
  146591. if out.Values[i] == graphql.Null {
  146592. invalids++
  146593. }
  146594. case "node":
  146595. out.Values[i] = ec._EventEdge_node(ctx, field, obj)
  146596. if out.Values[i] == graphql.Null {
  146597. invalids++
  146598. }
  146599. default:
  146600. panic("unknown field " + strconv.Quote(field.Name))
  146601. }
  146602. }
  146603. out.Dispatch()
  146604. if invalids > 0 {
  146605. return graphql.Null
  146606. }
  146607. return out
  146608. }
  146609. var failedRequirementImplementors = []string{"FailedRequirement"}
  146610. func (ec *executionContext) _FailedRequirement(ctx context.Context, sel ast.SelectionSet, obj *FailedRequirement) graphql.Marshaler {
  146611. fields := graphql.CollectFields(ec.OperationContext, sel, failedRequirementImplementors)
  146612. out := graphql.NewFieldSet(fields)
  146613. var invalids uint32
  146614. for i, field := range fields {
  146615. switch field.Name {
  146616. case "__typename":
  146617. out.Values[i] = graphql.MarshalString("FailedRequirement")
  146618. case "action":
  146619. out.Values[i] = ec._FailedRequirement_action(ctx, field, obj)
  146620. case "message":
  146621. out.Values[i] = ec._FailedRequirement_message(ctx, field, obj)
  146622. if out.Values[i] == graphql.Null {
  146623. invalids++
  146624. }
  146625. default:
  146626. panic("unknown field " + strconv.Quote(field.Name))
  146627. }
  146628. }
  146629. out.Dispatch()
  146630. if invalids > 0 {
  146631. return graphql.Null
  146632. }
  146633. return out
  146634. }
  146635. var fileErrorImplementors = []string{"FileError"}
  146636. func (ec *executionContext) _FileError(ctx context.Context, sel ast.SelectionSet, obj *FileError) graphql.Marshaler {
  146637. fields := graphql.CollectFields(ec.OperationContext, sel, fileErrorImplementors)
  146638. out := graphql.NewFieldSet(fields)
  146639. var invalids uint32
  146640. for i, field := range fields {
  146641. switch field.Name {
  146642. case "__typename":
  146643. out.Values[i] = graphql.MarshalString("FileError")
  146644. case "code":
  146645. out.Values[i] = ec._FileError_code(ctx, field, obj)
  146646. if out.Values[i] == graphql.Null {
  146647. invalids++
  146648. }
  146649. case "details":
  146650. out.Values[i] = ec._FileError_details(ctx, field, obj)
  146651. case "message":
  146652. out.Values[i] = ec._FileError_message(ctx, field, obj)
  146653. if out.Values[i] == graphql.Null {
  146654. invalids++
  146655. }
  146656. default:
  146657. panic("unknown field " + strconv.Quote(field.Name))
  146658. }
  146659. }
  146660. out.Dispatch()
  146661. if invalids > 0 {
  146662. return graphql.Null
  146663. }
  146664. return out
  146665. }
  146666. var filterOptionImplementors = []string{"FilterOption"}
  146667. func (ec *executionContext) _FilterOption(ctx context.Context, sel ast.SelectionSet, obj *FilterOption) graphql.Marshaler {
  146668. fields := graphql.CollectFields(ec.OperationContext, sel, filterOptionImplementors)
  146669. out := graphql.NewFieldSet(fields)
  146670. var invalids uint32
  146671. for i, field := range fields {
  146672. switch field.Name {
  146673. case "__typename":
  146674. out.Values[i] = graphql.MarshalString("FilterOption")
  146675. case "label":
  146676. out.Values[i] = ec._FilterOption_label(ctx, field, obj)
  146677. if out.Values[i] == graphql.Null {
  146678. invalids++
  146679. }
  146680. case "value":
  146681. out.Values[i] = ec._FilterOption_value(ctx, field, obj)
  146682. if out.Values[i] == graphql.Null {
  146683. invalids++
  146684. }
  146685. default:
  146686. panic("unknown field " + strconv.Quote(field.Name))
  146687. }
  146688. }
  146689. out.Dispatch()
  146690. if invalids > 0 {
  146691. return graphql.Null
  146692. }
  146693. return out
  146694. }
  146695. var fulfillmentImplementors = []string{"Fulfillment", "LegacyInteroperability", "Node"}
  146696. func (ec *executionContext) _Fulfillment(ctx context.Context, sel ast.SelectionSet, obj *Fulfillment) graphql.Marshaler {
  146697. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentImplementors)
  146698. out := graphql.NewFieldSet(fields)
  146699. var invalids uint32
  146700. for i, field := range fields {
  146701. switch field.Name {
  146702. case "__typename":
  146703. out.Values[i] = graphql.MarshalString("Fulfillment")
  146704. case "createdAt":
  146705. out.Values[i] = ec._Fulfillment_createdAt(ctx, field, obj)
  146706. if out.Values[i] == graphql.Null {
  146707. invalids++
  146708. }
  146709. case "deliveredAt":
  146710. out.Values[i] = ec._Fulfillment_deliveredAt(ctx, field, obj)
  146711. case "displayStatus":
  146712. out.Values[i] = ec._Fulfillment_displayStatus(ctx, field, obj)
  146713. case "estimatedDeliveryAt":
  146714. out.Values[i] = ec._Fulfillment_estimatedDeliveryAt(ctx, field, obj)
  146715. case "events":
  146716. out.Values[i] = ec._Fulfillment_events(ctx, field, obj)
  146717. if out.Values[i] == graphql.Null {
  146718. invalids++
  146719. }
  146720. case "fulfillmentLineItems":
  146721. out.Values[i] = ec._Fulfillment_fulfillmentLineItems(ctx, field, obj)
  146722. if out.Values[i] == graphql.Null {
  146723. invalids++
  146724. }
  146725. case "fulfillmentOrders":
  146726. out.Values[i] = ec._Fulfillment_fulfillmentOrders(ctx, field, obj)
  146727. if out.Values[i] == graphql.Null {
  146728. invalids++
  146729. }
  146730. case "id":
  146731. out.Values[i] = ec._Fulfillment_id(ctx, field, obj)
  146732. if out.Values[i] == graphql.Null {
  146733. invalids++
  146734. }
  146735. case "inTransitAt":
  146736. out.Values[i] = ec._Fulfillment_inTransitAt(ctx, field, obj)
  146737. case "legacyResourceId":
  146738. out.Values[i] = ec._Fulfillment_legacyResourceId(ctx, field, obj)
  146739. if out.Values[i] == graphql.Null {
  146740. invalids++
  146741. }
  146742. case "location":
  146743. out.Values[i] = ec._Fulfillment_location(ctx, field, obj)
  146744. case "name":
  146745. out.Values[i] = ec._Fulfillment_name(ctx, field, obj)
  146746. if out.Values[i] == graphql.Null {
  146747. invalids++
  146748. }
  146749. case "order":
  146750. out.Values[i] = ec._Fulfillment_order(ctx, field, obj)
  146751. if out.Values[i] == graphql.Null {
  146752. invalids++
  146753. }
  146754. case "originAddress":
  146755. out.Values[i] = ec._Fulfillment_originAddress(ctx, field, obj)
  146756. case "requiresShipping":
  146757. out.Values[i] = ec._Fulfillment_requiresShipping(ctx, field, obj)
  146758. if out.Values[i] == graphql.Null {
  146759. invalids++
  146760. }
  146761. case "service":
  146762. out.Values[i] = ec._Fulfillment_service(ctx, field, obj)
  146763. case "status":
  146764. out.Values[i] = ec._Fulfillment_status(ctx, field, obj)
  146765. if out.Values[i] == graphql.Null {
  146766. invalids++
  146767. }
  146768. case "totalQuantity":
  146769. out.Values[i] = ec._Fulfillment_totalQuantity(ctx, field, obj)
  146770. if out.Values[i] == graphql.Null {
  146771. invalids++
  146772. }
  146773. case "trackingInfo":
  146774. out.Values[i] = ec._Fulfillment_trackingInfo(ctx, field, obj)
  146775. if out.Values[i] == graphql.Null {
  146776. invalids++
  146777. }
  146778. case "updatedAt":
  146779. out.Values[i] = ec._Fulfillment_updatedAt(ctx, field, obj)
  146780. if out.Values[i] == graphql.Null {
  146781. invalids++
  146782. }
  146783. default:
  146784. panic("unknown field " + strconv.Quote(field.Name))
  146785. }
  146786. }
  146787. out.Dispatch()
  146788. if invalids > 0 {
  146789. return graphql.Null
  146790. }
  146791. return out
  146792. }
  146793. var fulfillmentConnectionImplementors = []string{"FulfillmentConnection"}
  146794. func (ec *executionContext) _FulfillmentConnection(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentConnection) graphql.Marshaler {
  146795. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentConnectionImplementors)
  146796. out := graphql.NewFieldSet(fields)
  146797. var invalids uint32
  146798. for i, field := range fields {
  146799. switch field.Name {
  146800. case "__typename":
  146801. out.Values[i] = graphql.MarshalString("FulfillmentConnection")
  146802. case "edges":
  146803. out.Values[i] = ec._FulfillmentConnection_edges(ctx, field, obj)
  146804. if out.Values[i] == graphql.Null {
  146805. invalids++
  146806. }
  146807. case "nodes":
  146808. out.Values[i] = ec._FulfillmentConnection_nodes(ctx, field, obj)
  146809. if out.Values[i] == graphql.Null {
  146810. invalids++
  146811. }
  146812. case "pageInfo":
  146813. out.Values[i] = ec._FulfillmentConnection_pageInfo(ctx, field, obj)
  146814. if out.Values[i] == graphql.Null {
  146815. invalids++
  146816. }
  146817. default:
  146818. panic("unknown field " + strconv.Quote(field.Name))
  146819. }
  146820. }
  146821. out.Dispatch()
  146822. if invalids > 0 {
  146823. return graphql.Null
  146824. }
  146825. return out
  146826. }
  146827. var fulfillmentEdgeImplementors = []string{"FulfillmentEdge"}
  146828. func (ec *executionContext) _FulfillmentEdge(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentEdge) graphql.Marshaler {
  146829. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentEdgeImplementors)
  146830. out := graphql.NewFieldSet(fields)
  146831. var invalids uint32
  146832. for i, field := range fields {
  146833. switch field.Name {
  146834. case "__typename":
  146835. out.Values[i] = graphql.MarshalString("FulfillmentEdge")
  146836. case "cursor":
  146837. out.Values[i] = ec._FulfillmentEdge_cursor(ctx, field, obj)
  146838. if out.Values[i] == graphql.Null {
  146839. invalids++
  146840. }
  146841. case "node":
  146842. out.Values[i] = ec._FulfillmentEdge_node(ctx, field, obj)
  146843. if out.Values[i] == graphql.Null {
  146844. invalids++
  146845. }
  146846. default:
  146847. panic("unknown field " + strconv.Quote(field.Name))
  146848. }
  146849. }
  146850. out.Dispatch()
  146851. if invalids > 0 {
  146852. return graphql.Null
  146853. }
  146854. return out
  146855. }
  146856. var fulfillmentEventImplementors = []string{"FulfillmentEvent", "Node"}
  146857. func (ec *executionContext) _FulfillmentEvent(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentEvent) graphql.Marshaler {
  146858. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentEventImplementors)
  146859. out := graphql.NewFieldSet(fields)
  146860. var invalids uint32
  146861. for i, field := range fields {
  146862. switch field.Name {
  146863. case "__typename":
  146864. out.Values[i] = graphql.MarshalString("FulfillmentEvent")
  146865. case "happenedAt":
  146866. out.Values[i] = ec._FulfillmentEvent_happenedAt(ctx, field, obj)
  146867. if out.Values[i] == graphql.Null {
  146868. invalids++
  146869. }
  146870. case "id":
  146871. out.Values[i] = ec._FulfillmentEvent_id(ctx, field, obj)
  146872. if out.Values[i] == graphql.Null {
  146873. invalids++
  146874. }
  146875. case "status":
  146876. out.Values[i] = ec._FulfillmentEvent_status(ctx, field, obj)
  146877. if out.Values[i] == graphql.Null {
  146878. invalids++
  146879. }
  146880. default:
  146881. panic("unknown field " + strconv.Quote(field.Name))
  146882. }
  146883. }
  146884. out.Dispatch()
  146885. if invalids > 0 {
  146886. return graphql.Null
  146887. }
  146888. return out
  146889. }
  146890. var fulfillmentEventConnectionImplementors = []string{"FulfillmentEventConnection"}
  146891. func (ec *executionContext) _FulfillmentEventConnection(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentEventConnection) graphql.Marshaler {
  146892. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentEventConnectionImplementors)
  146893. out := graphql.NewFieldSet(fields)
  146894. var invalids uint32
  146895. for i, field := range fields {
  146896. switch field.Name {
  146897. case "__typename":
  146898. out.Values[i] = graphql.MarshalString("FulfillmentEventConnection")
  146899. case "edges":
  146900. out.Values[i] = ec._FulfillmentEventConnection_edges(ctx, field, obj)
  146901. if out.Values[i] == graphql.Null {
  146902. invalids++
  146903. }
  146904. case "nodes":
  146905. out.Values[i] = ec._FulfillmentEventConnection_nodes(ctx, field, obj)
  146906. if out.Values[i] == graphql.Null {
  146907. invalids++
  146908. }
  146909. case "pageInfo":
  146910. out.Values[i] = ec._FulfillmentEventConnection_pageInfo(ctx, field, obj)
  146911. if out.Values[i] == graphql.Null {
  146912. invalids++
  146913. }
  146914. default:
  146915. panic("unknown field " + strconv.Quote(field.Name))
  146916. }
  146917. }
  146918. out.Dispatch()
  146919. if invalids > 0 {
  146920. return graphql.Null
  146921. }
  146922. return out
  146923. }
  146924. var fulfillmentEventEdgeImplementors = []string{"FulfillmentEventEdge"}
  146925. func (ec *executionContext) _FulfillmentEventEdge(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentEventEdge) graphql.Marshaler {
  146926. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentEventEdgeImplementors)
  146927. out := graphql.NewFieldSet(fields)
  146928. var invalids uint32
  146929. for i, field := range fields {
  146930. switch field.Name {
  146931. case "__typename":
  146932. out.Values[i] = graphql.MarshalString("FulfillmentEventEdge")
  146933. case "cursor":
  146934. out.Values[i] = ec._FulfillmentEventEdge_cursor(ctx, field, obj)
  146935. if out.Values[i] == graphql.Null {
  146936. invalids++
  146937. }
  146938. case "node":
  146939. out.Values[i] = ec._FulfillmentEventEdge_node(ctx, field, obj)
  146940. if out.Values[i] == graphql.Null {
  146941. invalids++
  146942. }
  146943. default:
  146944. panic("unknown field " + strconv.Quote(field.Name))
  146945. }
  146946. }
  146947. out.Dispatch()
  146948. if invalids > 0 {
  146949. return graphql.Null
  146950. }
  146951. return out
  146952. }
  146953. var fulfillmentHoldImplementors = []string{"FulfillmentHold"}
  146954. func (ec *executionContext) _FulfillmentHold(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentHold) graphql.Marshaler {
  146955. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentHoldImplementors)
  146956. out := graphql.NewFieldSet(fields)
  146957. var invalids uint32
  146958. for i, field := range fields {
  146959. switch field.Name {
  146960. case "__typename":
  146961. out.Values[i] = graphql.MarshalString("FulfillmentHold")
  146962. case "reason":
  146963. out.Values[i] = ec._FulfillmentHold_reason(ctx, field, obj)
  146964. if out.Values[i] == graphql.Null {
  146965. invalids++
  146966. }
  146967. case "reasonNotes":
  146968. out.Values[i] = ec._FulfillmentHold_reasonNotes(ctx, field, obj)
  146969. default:
  146970. panic("unknown field " + strconv.Quote(field.Name))
  146971. }
  146972. }
  146973. out.Dispatch()
  146974. if invalids > 0 {
  146975. return graphql.Null
  146976. }
  146977. return out
  146978. }
  146979. var fulfillmentLineItemImplementors = []string{"FulfillmentLineItem", "Node"}
  146980. func (ec *executionContext) _FulfillmentLineItem(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentLineItem) graphql.Marshaler {
  146981. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentLineItemImplementors)
  146982. out := graphql.NewFieldSet(fields)
  146983. var invalids uint32
  146984. for i, field := range fields {
  146985. switch field.Name {
  146986. case "__typename":
  146987. out.Values[i] = graphql.MarshalString("FulfillmentLineItem")
  146988. case "discountedTotalSet":
  146989. out.Values[i] = ec._FulfillmentLineItem_discountedTotalSet(ctx, field, obj)
  146990. if out.Values[i] == graphql.Null {
  146991. invalids++
  146992. }
  146993. case "id":
  146994. out.Values[i] = ec._FulfillmentLineItem_id(ctx, field, obj)
  146995. if out.Values[i] == graphql.Null {
  146996. invalids++
  146997. }
  146998. case "lineItem":
  146999. out.Values[i] = ec._FulfillmentLineItem_lineItem(ctx, field, obj)
  147000. if out.Values[i] == graphql.Null {
  147001. invalids++
  147002. }
  147003. case "originalTotalSet":
  147004. out.Values[i] = ec._FulfillmentLineItem_originalTotalSet(ctx, field, obj)
  147005. if out.Values[i] == graphql.Null {
  147006. invalids++
  147007. }
  147008. case "quantity":
  147009. out.Values[i] = ec._FulfillmentLineItem_quantity(ctx, field, obj)
  147010. default:
  147011. panic("unknown field " + strconv.Quote(field.Name))
  147012. }
  147013. }
  147014. out.Dispatch()
  147015. if invalids > 0 {
  147016. return graphql.Null
  147017. }
  147018. return out
  147019. }
  147020. var fulfillmentLineItemConnectionImplementors = []string{"FulfillmentLineItemConnection"}
  147021. func (ec *executionContext) _FulfillmentLineItemConnection(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentLineItemConnection) graphql.Marshaler {
  147022. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentLineItemConnectionImplementors)
  147023. out := graphql.NewFieldSet(fields)
  147024. var invalids uint32
  147025. for i, field := range fields {
  147026. switch field.Name {
  147027. case "__typename":
  147028. out.Values[i] = graphql.MarshalString("FulfillmentLineItemConnection")
  147029. case "edges":
  147030. out.Values[i] = ec._FulfillmentLineItemConnection_edges(ctx, field, obj)
  147031. if out.Values[i] == graphql.Null {
  147032. invalids++
  147033. }
  147034. case "nodes":
  147035. out.Values[i] = ec._FulfillmentLineItemConnection_nodes(ctx, field, obj)
  147036. if out.Values[i] == graphql.Null {
  147037. invalids++
  147038. }
  147039. case "pageInfo":
  147040. out.Values[i] = ec._FulfillmentLineItemConnection_pageInfo(ctx, field, obj)
  147041. if out.Values[i] == graphql.Null {
  147042. invalids++
  147043. }
  147044. default:
  147045. panic("unknown field " + strconv.Quote(field.Name))
  147046. }
  147047. }
  147048. out.Dispatch()
  147049. if invalids > 0 {
  147050. return graphql.Null
  147051. }
  147052. return out
  147053. }
  147054. var fulfillmentLineItemEdgeImplementors = []string{"FulfillmentLineItemEdge"}
  147055. func (ec *executionContext) _FulfillmentLineItemEdge(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentLineItemEdge) graphql.Marshaler {
  147056. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentLineItemEdgeImplementors)
  147057. out := graphql.NewFieldSet(fields)
  147058. var invalids uint32
  147059. for i, field := range fields {
  147060. switch field.Name {
  147061. case "__typename":
  147062. out.Values[i] = graphql.MarshalString("FulfillmentLineItemEdge")
  147063. case "cursor":
  147064. out.Values[i] = ec._FulfillmentLineItemEdge_cursor(ctx, field, obj)
  147065. if out.Values[i] == graphql.Null {
  147066. invalids++
  147067. }
  147068. case "node":
  147069. out.Values[i] = ec._FulfillmentLineItemEdge_node(ctx, field, obj)
  147070. if out.Values[i] == graphql.Null {
  147071. invalids++
  147072. }
  147073. default:
  147074. panic("unknown field " + strconv.Quote(field.Name))
  147075. }
  147076. }
  147077. out.Dispatch()
  147078. if invalids > 0 {
  147079. return graphql.Null
  147080. }
  147081. return out
  147082. }
  147083. var fulfillmentOrderImplementors = []string{"FulfillmentOrder", "Node"}
  147084. func (ec *executionContext) _FulfillmentOrder(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentOrder) graphql.Marshaler {
  147085. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentOrderImplementors)
  147086. out := graphql.NewFieldSet(fields)
  147087. var invalids uint32
  147088. for i, field := range fields {
  147089. switch field.Name {
  147090. case "__typename":
  147091. out.Values[i] = graphql.MarshalString("FulfillmentOrder")
  147092. case "assignedLocation":
  147093. out.Values[i] = ec._FulfillmentOrder_assignedLocation(ctx, field, obj)
  147094. if out.Values[i] == graphql.Null {
  147095. invalids++
  147096. }
  147097. case "deliveryMethod":
  147098. out.Values[i] = ec._FulfillmentOrder_deliveryMethod(ctx, field, obj)
  147099. case "destination":
  147100. out.Values[i] = ec._FulfillmentOrder_destination(ctx, field, obj)
  147101. case "fulfillAt":
  147102. out.Values[i] = ec._FulfillmentOrder_fulfillAt(ctx, field, obj)
  147103. case "fulfillBy":
  147104. out.Values[i] = ec._FulfillmentOrder_fulfillBy(ctx, field, obj)
  147105. case "fulfillmentHolds":
  147106. out.Values[i] = ec._FulfillmentOrder_fulfillmentHolds(ctx, field, obj)
  147107. if out.Values[i] == graphql.Null {
  147108. invalids++
  147109. }
  147110. case "fulfillments":
  147111. out.Values[i] = ec._FulfillmentOrder_fulfillments(ctx, field, obj)
  147112. if out.Values[i] == graphql.Null {
  147113. invalids++
  147114. }
  147115. case "id":
  147116. out.Values[i] = ec._FulfillmentOrder_id(ctx, field, obj)
  147117. if out.Values[i] == graphql.Null {
  147118. invalids++
  147119. }
  147120. case "internationalDuties":
  147121. out.Values[i] = ec._FulfillmentOrder_internationalDuties(ctx, field, obj)
  147122. case "lineItems":
  147123. out.Values[i] = ec._FulfillmentOrder_lineItems(ctx, field, obj)
  147124. if out.Values[i] == graphql.Null {
  147125. invalids++
  147126. }
  147127. case "locationsForMove":
  147128. out.Values[i] = ec._FulfillmentOrder_locationsForMove(ctx, field, obj)
  147129. if out.Values[i] == graphql.Null {
  147130. invalids++
  147131. }
  147132. case "merchantRequests":
  147133. out.Values[i] = ec._FulfillmentOrder_merchantRequests(ctx, field, obj)
  147134. if out.Values[i] == graphql.Null {
  147135. invalids++
  147136. }
  147137. case "order":
  147138. out.Values[i] = ec._FulfillmentOrder_order(ctx, field, obj)
  147139. if out.Values[i] == graphql.Null {
  147140. invalids++
  147141. }
  147142. case "requestStatus":
  147143. out.Values[i] = ec._FulfillmentOrder_requestStatus(ctx, field, obj)
  147144. if out.Values[i] == graphql.Null {
  147145. invalids++
  147146. }
  147147. case "status":
  147148. out.Values[i] = ec._FulfillmentOrder_status(ctx, field, obj)
  147149. if out.Values[i] == graphql.Null {
  147150. invalids++
  147151. }
  147152. case "supportedActions":
  147153. out.Values[i] = ec._FulfillmentOrder_supportedActions(ctx, field, obj)
  147154. if out.Values[i] == graphql.Null {
  147155. invalids++
  147156. }
  147157. default:
  147158. panic("unknown field " + strconv.Quote(field.Name))
  147159. }
  147160. }
  147161. out.Dispatch()
  147162. if invalids > 0 {
  147163. return graphql.Null
  147164. }
  147165. return out
  147166. }
  147167. var fulfillmentOrderAssignedLocationImplementors = []string{"FulfillmentOrderAssignedLocation"}
  147168. func (ec *executionContext) _FulfillmentOrderAssignedLocation(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentOrderAssignedLocation) graphql.Marshaler {
  147169. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentOrderAssignedLocationImplementors)
  147170. out := graphql.NewFieldSet(fields)
  147171. var invalids uint32
  147172. for i, field := range fields {
  147173. switch field.Name {
  147174. case "__typename":
  147175. out.Values[i] = graphql.MarshalString("FulfillmentOrderAssignedLocation")
  147176. case "address1":
  147177. out.Values[i] = ec._FulfillmentOrderAssignedLocation_address1(ctx, field, obj)
  147178. case "address2":
  147179. out.Values[i] = ec._FulfillmentOrderAssignedLocation_address2(ctx, field, obj)
  147180. case "city":
  147181. out.Values[i] = ec._FulfillmentOrderAssignedLocation_city(ctx, field, obj)
  147182. case "countryCode":
  147183. out.Values[i] = ec._FulfillmentOrderAssignedLocation_countryCode(ctx, field, obj)
  147184. if out.Values[i] == graphql.Null {
  147185. invalids++
  147186. }
  147187. case "location":
  147188. out.Values[i] = ec._FulfillmentOrderAssignedLocation_location(ctx, field, obj)
  147189. case "name":
  147190. out.Values[i] = ec._FulfillmentOrderAssignedLocation_name(ctx, field, obj)
  147191. if out.Values[i] == graphql.Null {
  147192. invalids++
  147193. }
  147194. case "phone":
  147195. out.Values[i] = ec._FulfillmentOrderAssignedLocation_phone(ctx, field, obj)
  147196. case "province":
  147197. out.Values[i] = ec._FulfillmentOrderAssignedLocation_province(ctx, field, obj)
  147198. case "zip":
  147199. out.Values[i] = ec._FulfillmentOrderAssignedLocation_zip(ctx, field, obj)
  147200. default:
  147201. panic("unknown field " + strconv.Quote(field.Name))
  147202. }
  147203. }
  147204. out.Dispatch()
  147205. if invalids > 0 {
  147206. return graphql.Null
  147207. }
  147208. return out
  147209. }
  147210. var fulfillmentOrderConnectionImplementors = []string{"FulfillmentOrderConnection"}
  147211. func (ec *executionContext) _FulfillmentOrderConnection(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentOrderConnection) graphql.Marshaler {
  147212. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentOrderConnectionImplementors)
  147213. out := graphql.NewFieldSet(fields)
  147214. var invalids uint32
  147215. for i, field := range fields {
  147216. switch field.Name {
  147217. case "__typename":
  147218. out.Values[i] = graphql.MarshalString("FulfillmentOrderConnection")
  147219. case "edges":
  147220. out.Values[i] = ec._FulfillmentOrderConnection_edges(ctx, field, obj)
  147221. if out.Values[i] == graphql.Null {
  147222. invalids++
  147223. }
  147224. case "nodes":
  147225. out.Values[i] = ec._FulfillmentOrderConnection_nodes(ctx, field, obj)
  147226. if out.Values[i] == graphql.Null {
  147227. invalids++
  147228. }
  147229. case "pageInfo":
  147230. out.Values[i] = ec._FulfillmentOrderConnection_pageInfo(ctx, field, obj)
  147231. if out.Values[i] == graphql.Null {
  147232. invalids++
  147233. }
  147234. default:
  147235. panic("unknown field " + strconv.Quote(field.Name))
  147236. }
  147237. }
  147238. out.Dispatch()
  147239. if invalids > 0 {
  147240. return graphql.Null
  147241. }
  147242. return out
  147243. }
  147244. var fulfillmentOrderDestinationImplementors = []string{"FulfillmentOrderDestination", "Node"}
  147245. func (ec *executionContext) _FulfillmentOrderDestination(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentOrderDestination) graphql.Marshaler {
  147246. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentOrderDestinationImplementors)
  147247. out := graphql.NewFieldSet(fields)
  147248. var invalids uint32
  147249. for i, field := range fields {
  147250. switch field.Name {
  147251. case "__typename":
  147252. out.Values[i] = graphql.MarshalString("FulfillmentOrderDestination")
  147253. case "address1":
  147254. out.Values[i] = ec._FulfillmentOrderDestination_address1(ctx, field, obj)
  147255. case "address2":
  147256. out.Values[i] = ec._FulfillmentOrderDestination_address2(ctx, field, obj)
  147257. case "city":
  147258. out.Values[i] = ec._FulfillmentOrderDestination_city(ctx, field, obj)
  147259. case "company":
  147260. out.Values[i] = ec._FulfillmentOrderDestination_company(ctx, field, obj)
  147261. case "countryCode":
  147262. out.Values[i] = ec._FulfillmentOrderDestination_countryCode(ctx, field, obj)
  147263. case "email":
  147264. out.Values[i] = ec._FulfillmentOrderDestination_email(ctx, field, obj)
  147265. case "firstName":
  147266. out.Values[i] = ec._FulfillmentOrderDestination_firstName(ctx, field, obj)
  147267. case "id":
  147268. out.Values[i] = ec._FulfillmentOrderDestination_id(ctx, field, obj)
  147269. if out.Values[i] == graphql.Null {
  147270. invalids++
  147271. }
  147272. case "lastName":
  147273. out.Values[i] = ec._FulfillmentOrderDestination_lastName(ctx, field, obj)
  147274. case "phone":
  147275. out.Values[i] = ec._FulfillmentOrderDestination_phone(ctx, field, obj)
  147276. case "province":
  147277. out.Values[i] = ec._FulfillmentOrderDestination_province(ctx, field, obj)
  147278. case "zip":
  147279. out.Values[i] = ec._FulfillmentOrderDestination_zip(ctx, field, obj)
  147280. default:
  147281. panic("unknown field " + strconv.Quote(field.Name))
  147282. }
  147283. }
  147284. out.Dispatch()
  147285. if invalids > 0 {
  147286. return graphql.Null
  147287. }
  147288. return out
  147289. }
  147290. var fulfillmentOrderEdgeImplementors = []string{"FulfillmentOrderEdge"}
  147291. func (ec *executionContext) _FulfillmentOrderEdge(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentOrderEdge) graphql.Marshaler {
  147292. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentOrderEdgeImplementors)
  147293. out := graphql.NewFieldSet(fields)
  147294. var invalids uint32
  147295. for i, field := range fields {
  147296. switch field.Name {
  147297. case "__typename":
  147298. out.Values[i] = graphql.MarshalString("FulfillmentOrderEdge")
  147299. case "cursor":
  147300. out.Values[i] = ec._FulfillmentOrderEdge_cursor(ctx, field, obj)
  147301. if out.Values[i] == graphql.Null {
  147302. invalids++
  147303. }
  147304. case "node":
  147305. out.Values[i] = ec._FulfillmentOrderEdge_node(ctx, field, obj)
  147306. if out.Values[i] == graphql.Null {
  147307. invalids++
  147308. }
  147309. default:
  147310. panic("unknown field " + strconv.Quote(field.Name))
  147311. }
  147312. }
  147313. out.Dispatch()
  147314. if invalids > 0 {
  147315. return graphql.Null
  147316. }
  147317. return out
  147318. }
  147319. var fulfillmentOrderInternationalDutiesImplementors = []string{"FulfillmentOrderInternationalDuties"}
  147320. func (ec *executionContext) _FulfillmentOrderInternationalDuties(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentOrderInternationalDuties) graphql.Marshaler {
  147321. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentOrderInternationalDutiesImplementors)
  147322. out := graphql.NewFieldSet(fields)
  147323. var invalids uint32
  147324. for i, field := range fields {
  147325. switch field.Name {
  147326. case "__typename":
  147327. out.Values[i] = graphql.MarshalString("FulfillmentOrderInternationalDuties")
  147328. case "incoterm":
  147329. out.Values[i] = ec._FulfillmentOrderInternationalDuties_incoterm(ctx, field, obj)
  147330. if out.Values[i] == graphql.Null {
  147331. invalids++
  147332. }
  147333. default:
  147334. panic("unknown field " + strconv.Quote(field.Name))
  147335. }
  147336. }
  147337. out.Dispatch()
  147338. if invalids > 0 {
  147339. return graphql.Null
  147340. }
  147341. return out
  147342. }
  147343. var fulfillmentOrderLineItemImplementors = []string{"FulfillmentOrderLineItem", "Node"}
  147344. func (ec *executionContext) _FulfillmentOrderLineItem(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentOrderLineItem) graphql.Marshaler {
  147345. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentOrderLineItemImplementors)
  147346. out := graphql.NewFieldSet(fields)
  147347. var invalids uint32
  147348. for i, field := range fields {
  147349. switch field.Name {
  147350. case "__typename":
  147351. out.Values[i] = graphql.MarshalString("FulfillmentOrderLineItem")
  147352. case "id":
  147353. out.Values[i] = ec._FulfillmentOrderLineItem_id(ctx, field, obj)
  147354. if out.Values[i] == graphql.Null {
  147355. invalids++
  147356. }
  147357. case "lineItem":
  147358. out.Values[i] = ec._FulfillmentOrderLineItem_lineItem(ctx, field, obj)
  147359. if out.Values[i] == graphql.Null {
  147360. invalids++
  147361. }
  147362. case "remainingQuantity":
  147363. out.Values[i] = ec._FulfillmentOrderLineItem_remainingQuantity(ctx, field, obj)
  147364. if out.Values[i] == graphql.Null {
  147365. invalids++
  147366. }
  147367. case "totalQuantity":
  147368. out.Values[i] = ec._FulfillmentOrderLineItem_totalQuantity(ctx, field, obj)
  147369. if out.Values[i] == graphql.Null {
  147370. invalids++
  147371. }
  147372. case "warnings":
  147373. out.Values[i] = ec._FulfillmentOrderLineItem_warnings(ctx, field, obj)
  147374. if out.Values[i] == graphql.Null {
  147375. invalids++
  147376. }
  147377. default:
  147378. panic("unknown field " + strconv.Quote(field.Name))
  147379. }
  147380. }
  147381. out.Dispatch()
  147382. if invalids > 0 {
  147383. return graphql.Null
  147384. }
  147385. return out
  147386. }
  147387. var fulfillmentOrderLineItemConnectionImplementors = []string{"FulfillmentOrderLineItemConnection"}
  147388. func (ec *executionContext) _FulfillmentOrderLineItemConnection(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentOrderLineItemConnection) graphql.Marshaler {
  147389. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentOrderLineItemConnectionImplementors)
  147390. out := graphql.NewFieldSet(fields)
  147391. var invalids uint32
  147392. for i, field := range fields {
  147393. switch field.Name {
  147394. case "__typename":
  147395. out.Values[i] = graphql.MarshalString("FulfillmentOrderLineItemConnection")
  147396. case "edges":
  147397. out.Values[i] = ec._FulfillmentOrderLineItemConnection_edges(ctx, field, obj)
  147398. if out.Values[i] == graphql.Null {
  147399. invalids++
  147400. }
  147401. case "nodes":
  147402. out.Values[i] = ec._FulfillmentOrderLineItemConnection_nodes(ctx, field, obj)
  147403. if out.Values[i] == graphql.Null {
  147404. invalids++
  147405. }
  147406. case "pageInfo":
  147407. out.Values[i] = ec._FulfillmentOrderLineItemConnection_pageInfo(ctx, field, obj)
  147408. if out.Values[i] == graphql.Null {
  147409. invalids++
  147410. }
  147411. default:
  147412. panic("unknown field " + strconv.Quote(field.Name))
  147413. }
  147414. }
  147415. out.Dispatch()
  147416. if invalids > 0 {
  147417. return graphql.Null
  147418. }
  147419. return out
  147420. }
  147421. var fulfillmentOrderLineItemEdgeImplementors = []string{"FulfillmentOrderLineItemEdge"}
  147422. func (ec *executionContext) _FulfillmentOrderLineItemEdge(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentOrderLineItemEdge) graphql.Marshaler {
  147423. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentOrderLineItemEdgeImplementors)
  147424. out := graphql.NewFieldSet(fields)
  147425. var invalids uint32
  147426. for i, field := range fields {
  147427. switch field.Name {
  147428. case "__typename":
  147429. out.Values[i] = graphql.MarshalString("FulfillmentOrderLineItemEdge")
  147430. case "cursor":
  147431. out.Values[i] = ec._FulfillmentOrderLineItemEdge_cursor(ctx, field, obj)
  147432. if out.Values[i] == graphql.Null {
  147433. invalids++
  147434. }
  147435. case "node":
  147436. out.Values[i] = ec._FulfillmentOrderLineItemEdge_node(ctx, field, obj)
  147437. if out.Values[i] == graphql.Null {
  147438. invalids++
  147439. }
  147440. default:
  147441. panic("unknown field " + strconv.Quote(field.Name))
  147442. }
  147443. }
  147444. out.Dispatch()
  147445. if invalids > 0 {
  147446. return graphql.Null
  147447. }
  147448. return out
  147449. }
  147450. var fulfillmentOrderLineItemWarningImplementors = []string{"FulfillmentOrderLineItemWarning"}
  147451. func (ec *executionContext) _FulfillmentOrderLineItemWarning(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentOrderLineItemWarning) graphql.Marshaler {
  147452. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentOrderLineItemWarningImplementors)
  147453. out := graphql.NewFieldSet(fields)
  147454. var invalids uint32
  147455. for i, field := range fields {
  147456. switch field.Name {
  147457. case "__typename":
  147458. out.Values[i] = graphql.MarshalString("FulfillmentOrderLineItemWarning")
  147459. case "description":
  147460. out.Values[i] = ec._FulfillmentOrderLineItemWarning_description(ctx, field, obj)
  147461. case "title":
  147462. out.Values[i] = ec._FulfillmentOrderLineItemWarning_title(ctx, field, obj)
  147463. default:
  147464. panic("unknown field " + strconv.Quote(field.Name))
  147465. }
  147466. }
  147467. out.Dispatch()
  147468. if invalids > 0 {
  147469. return graphql.Null
  147470. }
  147471. return out
  147472. }
  147473. var fulfillmentOrderLocationForMoveImplementors = []string{"FulfillmentOrderLocationForMove"}
  147474. func (ec *executionContext) _FulfillmentOrderLocationForMove(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentOrderLocationForMove) graphql.Marshaler {
  147475. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentOrderLocationForMoveImplementors)
  147476. out := graphql.NewFieldSet(fields)
  147477. var invalids uint32
  147478. for i, field := range fields {
  147479. switch field.Name {
  147480. case "__typename":
  147481. out.Values[i] = graphql.MarshalString("FulfillmentOrderLocationForMove")
  147482. case "location":
  147483. out.Values[i] = ec._FulfillmentOrderLocationForMove_location(ctx, field, obj)
  147484. if out.Values[i] == graphql.Null {
  147485. invalids++
  147486. }
  147487. case "message":
  147488. out.Values[i] = ec._FulfillmentOrderLocationForMove_message(ctx, field, obj)
  147489. case "movable":
  147490. out.Values[i] = ec._FulfillmentOrderLocationForMove_movable(ctx, field, obj)
  147491. if out.Values[i] == graphql.Null {
  147492. invalids++
  147493. }
  147494. default:
  147495. panic("unknown field " + strconv.Quote(field.Name))
  147496. }
  147497. }
  147498. out.Dispatch()
  147499. if invalids > 0 {
  147500. return graphql.Null
  147501. }
  147502. return out
  147503. }
  147504. var fulfillmentOrderLocationForMoveConnectionImplementors = []string{"FulfillmentOrderLocationForMoveConnection"}
  147505. func (ec *executionContext) _FulfillmentOrderLocationForMoveConnection(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentOrderLocationForMoveConnection) graphql.Marshaler {
  147506. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentOrderLocationForMoveConnectionImplementors)
  147507. out := graphql.NewFieldSet(fields)
  147508. var invalids uint32
  147509. for i, field := range fields {
  147510. switch field.Name {
  147511. case "__typename":
  147512. out.Values[i] = graphql.MarshalString("FulfillmentOrderLocationForMoveConnection")
  147513. case "edges":
  147514. out.Values[i] = ec._FulfillmentOrderLocationForMoveConnection_edges(ctx, field, obj)
  147515. if out.Values[i] == graphql.Null {
  147516. invalids++
  147517. }
  147518. case "nodes":
  147519. out.Values[i] = ec._FulfillmentOrderLocationForMoveConnection_nodes(ctx, field, obj)
  147520. if out.Values[i] == graphql.Null {
  147521. invalids++
  147522. }
  147523. case "pageInfo":
  147524. out.Values[i] = ec._FulfillmentOrderLocationForMoveConnection_pageInfo(ctx, field, obj)
  147525. if out.Values[i] == graphql.Null {
  147526. invalids++
  147527. }
  147528. default:
  147529. panic("unknown field " + strconv.Quote(field.Name))
  147530. }
  147531. }
  147532. out.Dispatch()
  147533. if invalids > 0 {
  147534. return graphql.Null
  147535. }
  147536. return out
  147537. }
  147538. var fulfillmentOrderLocationForMoveEdgeImplementors = []string{"FulfillmentOrderLocationForMoveEdge"}
  147539. func (ec *executionContext) _FulfillmentOrderLocationForMoveEdge(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentOrderLocationForMoveEdge) graphql.Marshaler {
  147540. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentOrderLocationForMoveEdgeImplementors)
  147541. out := graphql.NewFieldSet(fields)
  147542. var invalids uint32
  147543. for i, field := range fields {
  147544. switch field.Name {
  147545. case "__typename":
  147546. out.Values[i] = graphql.MarshalString("FulfillmentOrderLocationForMoveEdge")
  147547. case "cursor":
  147548. out.Values[i] = ec._FulfillmentOrderLocationForMoveEdge_cursor(ctx, field, obj)
  147549. if out.Values[i] == graphql.Null {
  147550. invalids++
  147551. }
  147552. case "node":
  147553. out.Values[i] = ec._FulfillmentOrderLocationForMoveEdge_node(ctx, field, obj)
  147554. if out.Values[i] == graphql.Null {
  147555. invalids++
  147556. }
  147557. default:
  147558. panic("unknown field " + strconv.Quote(field.Name))
  147559. }
  147560. }
  147561. out.Dispatch()
  147562. if invalids > 0 {
  147563. return graphql.Null
  147564. }
  147565. return out
  147566. }
  147567. var fulfillmentOrderMerchantRequestImplementors = []string{"FulfillmentOrderMerchantRequest", "Node"}
  147568. func (ec *executionContext) _FulfillmentOrderMerchantRequest(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentOrderMerchantRequest) graphql.Marshaler {
  147569. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentOrderMerchantRequestImplementors)
  147570. out := graphql.NewFieldSet(fields)
  147571. var invalids uint32
  147572. for i, field := range fields {
  147573. switch field.Name {
  147574. case "__typename":
  147575. out.Values[i] = graphql.MarshalString("FulfillmentOrderMerchantRequest")
  147576. case "id":
  147577. out.Values[i] = ec._FulfillmentOrderMerchantRequest_id(ctx, field, obj)
  147578. if out.Values[i] == graphql.Null {
  147579. invalids++
  147580. }
  147581. case "kind":
  147582. out.Values[i] = ec._FulfillmentOrderMerchantRequest_kind(ctx, field, obj)
  147583. if out.Values[i] == graphql.Null {
  147584. invalids++
  147585. }
  147586. case "message":
  147587. out.Values[i] = ec._FulfillmentOrderMerchantRequest_message(ctx, field, obj)
  147588. case "requestOptions":
  147589. out.Values[i] = ec._FulfillmentOrderMerchantRequest_requestOptions(ctx, field, obj)
  147590. case "responseData":
  147591. out.Values[i] = ec._FulfillmentOrderMerchantRequest_responseData(ctx, field, obj)
  147592. case "sentAt":
  147593. out.Values[i] = ec._FulfillmentOrderMerchantRequest_sentAt(ctx, field, obj)
  147594. if out.Values[i] == graphql.Null {
  147595. invalids++
  147596. }
  147597. default:
  147598. panic("unknown field " + strconv.Quote(field.Name))
  147599. }
  147600. }
  147601. out.Dispatch()
  147602. if invalids > 0 {
  147603. return graphql.Null
  147604. }
  147605. return out
  147606. }
  147607. var fulfillmentOrderMerchantRequestConnectionImplementors = []string{"FulfillmentOrderMerchantRequestConnection"}
  147608. func (ec *executionContext) _FulfillmentOrderMerchantRequestConnection(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentOrderMerchantRequestConnection) graphql.Marshaler {
  147609. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentOrderMerchantRequestConnectionImplementors)
  147610. out := graphql.NewFieldSet(fields)
  147611. var invalids uint32
  147612. for i, field := range fields {
  147613. switch field.Name {
  147614. case "__typename":
  147615. out.Values[i] = graphql.MarshalString("FulfillmentOrderMerchantRequestConnection")
  147616. case "edges":
  147617. out.Values[i] = ec._FulfillmentOrderMerchantRequestConnection_edges(ctx, field, obj)
  147618. if out.Values[i] == graphql.Null {
  147619. invalids++
  147620. }
  147621. case "nodes":
  147622. out.Values[i] = ec._FulfillmentOrderMerchantRequestConnection_nodes(ctx, field, obj)
  147623. if out.Values[i] == graphql.Null {
  147624. invalids++
  147625. }
  147626. case "pageInfo":
  147627. out.Values[i] = ec._FulfillmentOrderMerchantRequestConnection_pageInfo(ctx, field, obj)
  147628. if out.Values[i] == graphql.Null {
  147629. invalids++
  147630. }
  147631. default:
  147632. panic("unknown field " + strconv.Quote(field.Name))
  147633. }
  147634. }
  147635. out.Dispatch()
  147636. if invalids > 0 {
  147637. return graphql.Null
  147638. }
  147639. return out
  147640. }
  147641. var fulfillmentOrderMerchantRequestEdgeImplementors = []string{"FulfillmentOrderMerchantRequestEdge"}
  147642. func (ec *executionContext) _FulfillmentOrderMerchantRequestEdge(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentOrderMerchantRequestEdge) graphql.Marshaler {
  147643. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentOrderMerchantRequestEdgeImplementors)
  147644. out := graphql.NewFieldSet(fields)
  147645. var invalids uint32
  147646. for i, field := range fields {
  147647. switch field.Name {
  147648. case "__typename":
  147649. out.Values[i] = graphql.MarshalString("FulfillmentOrderMerchantRequestEdge")
  147650. case "cursor":
  147651. out.Values[i] = ec._FulfillmentOrderMerchantRequestEdge_cursor(ctx, field, obj)
  147652. if out.Values[i] == graphql.Null {
  147653. invalids++
  147654. }
  147655. case "node":
  147656. out.Values[i] = ec._FulfillmentOrderMerchantRequestEdge_node(ctx, field, obj)
  147657. if out.Values[i] == graphql.Null {
  147658. invalids++
  147659. }
  147660. default:
  147661. panic("unknown field " + strconv.Quote(field.Name))
  147662. }
  147663. }
  147664. out.Dispatch()
  147665. if invalids > 0 {
  147666. return graphql.Null
  147667. }
  147668. return out
  147669. }
  147670. var fulfillmentOrderSupportedActionImplementors = []string{"FulfillmentOrderSupportedAction"}
  147671. func (ec *executionContext) _FulfillmentOrderSupportedAction(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentOrderSupportedAction) graphql.Marshaler {
  147672. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentOrderSupportedActionImplementors)
  147673. out := graphql.NewFieldSet(fields)
  147674. var invalids uint32
  147675. for i, field := range fields {
  147676. switch field.Name {
  147677. case "__typename":
  147678. out.Values[i] = graphql.MarshalString("FulfillmentOrderSupportedAction")
  147679. case "action":
  147680. out.Values[i] = ec._FulfillmentOrderSupportedAction_action(ctx, field, obj)
  147681. if out.Values[i] == graphql.Null {
  147682. invalids++
  147683. }
  147684. case "externalUrl":
  147685. out.Values[i] = ec._FulfillmentOrderSupportedAction_externalUrl(ctx, field, obj)
  147686. default:
  147687. panic("unknown field " + strconv.Quote(field.Name))
  147688. }
  147689. }
  147690. out.Dispatch()
  147691. if invalids > 0 {
  147692. return graphql.Null
  147693. }
  147694. return out
  147695. }
  147696. var fulfillmentOriginAddressImplementors = []string{"FulfillmentOriginAddress"}
  147697. func (ec *executionContext) _FulfillmentOriginAddress(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentOriginAddress) graphql.Marshaler {
  147698. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentOriginAddressImplementors)
  147699. out := graphql.NewFieldSet(fields)
  147700. var invalids uint32
  147701. for i, field := range fields {
  147702. switch field.Name {
  147703. case "__typename":
  147704. out.Values[i] = graphql.MarshalString("FulfillmentOriginAddress")
  147705. case "address1":
  147706. out.Values[i] = ec._FulfillmentOriginAddress_address1(ctx, field, obj)
  147707. case "address2":
  147708. out.Values[i] = ec._FulfillmentOriginAddress_address2(ctx, field, obj)
  147709. case "city":
  147710. out.Values[i] = ec._FulfillmentOriginAddress_city(ctx, field, obj)
  147711. case "countryCode":
  147712. out.Values[i] = ec._FulfillmentOriginAddress_countryCode(ctx, field, obj)
  147713. if out.Values[i] == graphql.Null {
  147714. invalids++
  147715. }
  147716. case "provinceCode":
  147717. out.Values[i] = ec._FulfillmentOriginAddress_provinceCode(ctx, field, obj)
  147718. case "zip":
  147719. out.Values[i] = ec._FulfillmentOriginAddress_zip(ctx, field, obj)
  147720. default:
  147721. panic("unknown field " + strconv.Quote(field.Name))
  147722. }
  147723. }
  147724. out.Dispatch()
  147725. if invalids > 0 {
  147726. return graphql.Null
  147727. }
  147728. return out
  147729. }
  147730. var fulfillmentServiceImplementors = []string{"FulfillmentService"}
  147731. func (ec *executionContext) _FulfillmentService(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentService) graphql.Marshaler {
  147732. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentServiceImplementors)
  147733. out := graphql.NewFieldSet(fields)
  147734. var invalids uint32
  147735. for i, field := range fields {
  147736. switch field.Name {
  147737. case "__typename":
  147738. out.Values[i] = graphql.MarshalString("FulfillmentService")
  147739. case "callbackUrl":
  147740. out.Values[i] = ec._FulfillmentService_callbackUrl(ctx, field, obj)
  147741. case "fulfillmentOrdersOptIn":
  147742. out.Values[i] = ec._FulfillmentService_fulfillmentOrdersOptIn(ctx, field, obj)
  147743. if out.Values[i] == graphql.Null {
  147744. invalids++
  147745. }
  147746. case "handle":
  147747. out.Values[i] = ec._FulfillmentService_handle(ctx, field, obj)
  147748. if out.Values[i] == graphql.Null {
  147749. invalids++
  147750. }
  147751. case "id":
  147752. out.Values[i] = ec._FulfillmentService_id(ctx, field, obj)
  147753. if out.Values[i] == graphql.Null {
  147754. invalids++
  147755. }
  147756. case "inventoryManagement":
  147757. out.Values[i] = ec._FulfillmentService_inventoryManagement(ctx, field, obj)
  147758. if out.Values[i] == graphql.Null {
  147759. invalids++
  147760. }
  147761. case "location":
  147762. out.Values[i] = ec._FulfillmentService_location(ctx, field, obj)
  147763. case "permitsSkuSharing":
  147764. out.Values[i] = ec._FulfillmentService_permitsSkuSharing(ctx, field, obj)
  147765. if out.Values[i] == graphql.Null {
  147766. invalids++
  147767. }
  147768. case "productBased":
  147769. out.Values[i] = ec._FulfillmentService_productBased(ctx, field, obj)
  147770. if out.Values[i] == graphql.Null {
  147771. invalids++
  147772. }
  147773. case "serviceName":
  147774. out.Values[i] = ec._FulfillmentService_serviceName(ctx, field, obj)
  147775. if out.Values[i] == graphql.Null {
  147776. invalids++
  147777. }
  147778. case "type":
  147779. out.Values[i] = ec._FulfillmentService_type(ctx, field, obj)
  147780. if out.Values[i] == graphql.Null {
  147781. invalids++
  147782. }
  147783. default:
  147784. panic("unknown field " + strconv.Quote(field.Name))
  147785. }
  147786. }
  147787. out.Dispatch()
  147788. if invalids > 0 {
  147789. return graphql.Null
  147790. }
  147791. return out
  147792. }
  147793. var fulfillmentTrackingInfoImplementors = []string{"FulfillmentTrackingInfo"}
  147794. func (ec *executionContext) _FulfillmentTrackingInfo(ctx context.Context, sel ast.SelectionSet, obj *FulfillmentTrackingInfo) graphql.Marshaler {
  147795. fields := graphql.CollectFields(ec.OperationContext, sel, fulfillmentTrackingInfoImplementors)
  147796. out := graphql.NewFieldSet(fields)
  147797. var invalids uint32
  147798. for i, field := range fields {
  147799. switch field.Name {
  147800. case "__typename":
  147801. out.Values[i] = graphql.MarshalString("FulfillmentTrackingInfo")
  147802. case "company":
  147803. out.Values[i] = ec._FulfillmentTrackingInfo_company(ctx, field, obj)
  147804. case "number":
  147805. out.Values[i] = ec._FulfillmentTrackingInfo_number(ctx, field, obj)
  147806. case "url":
  147807. out.Values[i] = ec._FulfillmentTrackingInfo_url(ctx, field, obj)
  147808. default:
  147809. panic("unknown field " + strconv.Quote(field.Name))
  147810. }
  147811. }
  147812. out.Dispatch()
  147813. if invalids > 0 {
  147814. return graphql.Null
  147815. }
  147816. return out
  147817. }
  147818. var genericFileImplementors = []string{"GenericFile", "File", "Node", "MetafieldReference"}
  147819. func (ec *executionContext) _GenericFile(ctx context.Context, sel ast.SelectionSet, obj *GenericFile) graphql.Marshaler {
  147820. fields := graphql.CollectFields(ec.OperationContext, sel, genericFileImplementors)
  147821. out := graphql.NewFieldSet(fields)
  147822. var invalids uint32
  147823. for i, field := range fields {
  147824. switch field.Name {
  147825. case "__typename":
  147826. out.Values[i] = graphql.MarshalString("GenericFile")
  147827. case "alt":
  147828. out.Values[i] = ec._GenericFile_alt(ctx, field, obj)
  147829. case "createdAt":
  147830. out.Values[i] = ec._GenericFile_createdAt(ctx, field, obj)
  147831. if out.Values[i] == graphql.Null {
  147832. invalids++
  147833. }
  147834. case "fileErrors":
  147835. out.Values[i] = ec._GenericFile_fileErrors(ctx, field, obj)
  147836. if out.Values[i] == graphql.Null {
  147837. invalids++
  147838. }
  147839. case "fileStatus":
  147840. out.Values[i] = ec._GenericFile_fileStatus(ctx, field, obj)
  147841. if out.Values[i] == graphql.Null {
  147842. invalids++
  147843. }
  147844. case "id":
  147845. out.Values[i] = ec._GenericFile_id(ctx, field, obj)
  147846. if out.Values[i] == graphql.Null {
  147847. invalids++
  147848. }
  147849. case "mimeType":
  147850. out.Values[i] = ec._GenericFile_mimeType(ctx, field, obj)
  147851. case "originalFileSize":
  147852. out.Values[i] = ec._GenericFile_originalFileSize(ctx, field, obj)
  147853. case "preview":
  147854. out.Values[i] = ec._GenericFile_preview(ctx, field, obj)
  147855. case "url":
  147856. out.Values[i] = ec._GenericFile_url(ctx, field, obj)
  147857. default:
  147858. panic("unknown field " + strconv.Quote(field.Name))
  147859. }
  147860. }
  147861. out.Dispatch()
  147862. if invalids > 0 {
  147863. return graphql.Null
  147864. }
  147865. return out
  147866. }
  147867. var imageImplementors = []string{"Image", "HasMetafields"}
  147868. func (ec *executionContext) _Image(ctx context.Context, sel ast.SelectionSet, obj *Image) graphql.Marshaler {
  147869. fields := graphql.CollectFields(ec.OperationContext, sel, imageImplementors)
  147870. out := graphql.NewFieldSet(fields)
  147871. var invalids uint32
  147872. for i, field := range fields {
  147873. switch field.Name {
  147874. case "__typename":
  147875. out.Values[i] = graphql.MarshalString("Image")
  147876. case "altText":
  147877. out.Values[i] = ec._Image_altText(ctx, field, obj)
  147878. case "height":
  147879. out.Values[i] = ec._Image_height(ctx, field, obj)
  147880. case "id":
  147881. out.Values[i] = ec._Image_id(ctx, field, obj)
  147882. case "metafield":
  147883. out.Values[i] = ec._Image_metafield(ctx, field, obj)
  147884. case "metafields":
  147885. out.Values[i] = ec._Image_metafields(ctx, field, obj)
  147886. if out.Values[i] == graphql.Null {
  147887. invalids++
  147888. }
  147889. case "privateMetafield":
  147890. out.Values[i] = ec._Image_privateMetafield(ctx, field, obj)
  147891. case "privateMetafields":
  147892. out.Values[i] = ec._Image_privateMetafields(ctx, field, obj)
  147893. if out.Values[i] == graphql.Null {
  147894. invalids++
  147895. }
  147896. case "url":
  147897. out.Values[i] = ec._Image_url(ctx, field, obj)
  147898. if out.Values[i] == graphql.Null {
  147899. invalids++
  147900. }
  147901. case "width":
  147902. out.Values[i] = ec._Image_width(ctx, field, obj)
  147903. default:
  147904. panic("unknown field " + strconv.Quote(field.Name))
  147905. }
  147906. }
  147907. out.Dispatch()
  147908. if invalids > 0 {
  147909. return graphql.Null
  147910. }
  147911. return out
  147912. }
  147913. var imageConnectionImplementors = []string{"ImageConnection"}
  147914. func (ec *executionContext) _ImageConnection(ctx context.Context, sel ast.SelectionSet, obj *ImageConnection) graphql.Marshaler {
  147915. fields := graphql.CollectFields(ec.OperationContext, sel, imageConnectionImplementors)
  147916. out := graphql.NewFieldSet(fields)
  147917. var invalids uint32
  147918. for i, field := range fields {
  147919. switch field.Name {
  147920. case "__typename":
  147921. out.Values[i] = graphql.MarshalString("ImageConnection")
  147922. case "edges":
  147923. out.Values[i] = ec._ImageConnection_edges(ctx, field, obj)
  147924. if out.Values[i] == graphql.Null {
  147925. invalids++
  147926. }
  147927. case "nodes":
  147928. out.Values[i] = ec._ImageConnection_nodes(ctx, field, obj)
  147929. if out.Values[i] == graphql.Null {
  147930. invalids++
  147931. }
  147932. case "pageInfo":
  147933. out.Values[i] = ec._ImageConnection_pageInfo(ctx, field, obj)
  147934. if out.Values[i] == graphql.Null {
  147935. invalids++
  147936. }
  147937. default:
  147938. panic("unknown field " + strconv.Quote(field.Name))
  147939. }
  147940. }
  147941. out.Dispatch()
  147942. if invalids > 0 {
  147943. return graphql.Null
  147944. }
  147945. return out
  147946. }
  147947. var imageEdgeImplementors = []string{"ImageEdge"}
  147948. func (ec *executionContext) _ImageEdge(ctx context.Context, sel ast.SelectionSet, obj *ImageEdge) graphql.Marshaler {
  147949. fields := graphql.CollectFields(ec.OperationContext, sel, imageEdgeImplementors)
  147950. out := graphql.NewFieldSet(fields)
  147951. var invalids uint32
  147952. for i, field := range fields {
  147953. switch field.Name {
  147954. case "__typename":
  147955. out.Values[i] = graphql.MarshalString("ImageEdge")
  147956. case "cursor":
  147957. out.Values[i] = ec._ImageEdge_cursor(ctx, field, obj)
  147958. if out.Values[i] == graphql.Null {
  147959. invalids++
  147960. }
  147961. case "node":
  147962. out.Values[i] = ec._ImageEdge_node(ctx, field, obj)
  147963. if out.Values[i] == graphql.Null {
  147964. invalids++
  147965. }
  147966. default:
  147967. panic("unknown field " + strconv.Quote(field.Name))
  147968. }
  147969. }
  147970. out.Dispatch()
  147971. if invalids > 0 {
  147972. return graphql.Null
  147973. }
  147974. return out
  147975. }
  147976. var inventoryItemImplementors = []string{"InventoryItem", "LegacyInteroperability", "Node"}
  147977. func (ec *executionContext) _InventoryItem(ctx context.Context, sel ast.SelectionSet, obj *InventoryItem) graphql.Marshaler {
  147978. fields := graphql.CollectFields(ec.OperationContext, sel, inventoryItemImplementors)
  147979. out := graphql.NewFieldSet(fields)
  147980. var invalids uint32
  147981. for i, field := range fields {
  147982. switch field.Name {
  147983. case "__typename":
  147984. out.Values[i] = graphql.MarshalString("InventoryItem")
  147985. case "countryCodeOfOrigin":
  147986. out.Values[i] = ec._InventoryItem_countryCodeOfOrigin(ctx, field, obj)
  147987. case "countryHarmonizedSystemCodes":
  147988. out.Values[i] = ec._InventoryItem_countryHarmonizedSystemCodes(ctx, field, obj)
  147989. if out.Values[i] == graphql.Null {
  147990. invalids++
  147991. }
  147992. case "createdAt":
  147993. out.Values[i] = ec._InventoryItem_createdAt(ctx, field, obj)
  147994. if out.Values[i] == graphql.Null {
  147995. invalids++
  147996. }
  147997. case "duplicateSkuCount":
  147998. out.Values[i] = ec._InventoryItem_duplicateSkuCount(ctx, field, obj)
  147999. if out.Values[i] == graphql.Null {
  148000. invalids++
  148001. }
  148002. case "harmonizedSystemCode":
  148003. out.Values[i] = ec._InventoryItem_harmonizedSystemCode(ctx, field, obj)
  148004. case "id":
  148005. out.Values[i] = ec._InventoryItem_id(ctx, field, obj)
  148006. if out.Values[i] == graphql.Null {
  148007. invalids++
  148008. }
  148009. case "inventoryHistoryUrl":
  148010. out.Values[i] = ec._InventoryItem_inventoryHistoryUrl(ctx, field, obj)
  148011. case "inventoryLevel":
  148012. out.Values[i] = ec._InventoryItem_inventoryLevel(ctx, field, obj)
  148013. case "inventoryLevels":
  148014. out.Values[i] = ec._InventoryItem_inventoryLevels(ctx, field, obj)
  148015. if out.Values[i] == graphql.Null {
  148016. invalids++
  148017. }
  148018. case "legacyResourceId":
  148019. out.Values[i] = ec._InventoryItem_legacyResourceId(ctx, field, obj)
  148020. if out.Values[i] == graphql.Null {
  148021. invalids++
  148022. }
  148023. case "locationsCount":
  148024. out.Values[i] = ec._InventoryItem_locationsCount(ctx, field, obj)
  148025. if out.Values[i] == graphql.Null {
  148026. invalids++
  148027. }
  148028. case "provinceCodeOfOrigin":
  148029. out.Values[i] = ec._InventoryItem_provinceCodeOfOrigin(ctx, field, obj)
  148030. case "requiresShipping":
  148031. out.Values[i] = ec._InventoryItem_requiresShipping(ctx, field, obj)
  148032. if out.Values[i] == graphql.Null {
  148033. invalids++
  148034. }
  148035. case "sku":
  148036. out.Values[i] = ec._InventoryItem_sku(ctx, field, obj)
  148037. case "tracked":
  148038. out.Values[i] = ec._InventoryItem_tracked(ctx, field, obj)
  148039. if out.Values[i] == graphql.Null {
  148040. invalids++
  148041. }
  148042. case "trackedEditable":
  148043. out.Values[i] = ec._InventoryItem_trackedEditable(ctx, field, obj)
  148044. if out.Values[i] == graphql.Null {
  148045. invalids++
  148046. }
  148047. case "unitCost":
  148048. out.Values[i] = ec._InventoryItem_unitCost(ctx, field, obj)
  148049. case "updatedAt":
  148050. out.Values[i] = ec._InventoryItem_updatedAt(ctx, field, obj)
  148051. if out.Values[i] == graphql.Null {
  148052. invalids++
  148053. }
  148054. case "variant":
  148055. out.Values[i] = ec._InventoryItem_variant(ctx, field, obj)
  148056. if out.Values[i] == graphql.Null {
  148057. invalids++
  148058. }
  148059. default:
  148060. panic("unknown field " + strconv.Quote(field.Name))
  148061. }
  148062. }
  148063. out.Dispatch()
  148064. if invalids > 0 {
  148065. return graphql.Null
  148066. }
  148067. return out
  148068. }
  148069. var inventoryLevelImplementors = []string{"InventoryLevel", "Node"}
  148070. func (ec *executionContext) _InventoryLevel(ctx context.Context, sel ast.SelectionSet, obj *InventoryLevel) graphql.Marshaler {
  148071. fields := graphql.CollectFields(ec.OperationContext, sel, inventoryLevelImplementors)
  148072. out := graphql.NewFieldSet(fields)
  148073. var invalids uint32
  148074. for i, field := range fields {
  148075. switch field.Name {
  148076. case "__typename":
  148077. out.Values[i] = graphql.MarshalString("InventoryLevel")
  148078. case "available":
  148079. out.Values[i] = ec._InventoryLevel_available(ctx, field, obj)
  148080. if out.Values[i] == graphql.Null {
  148081. invalids++
  148082. }
  148083. case "canDeactivate":
  148084. out.Values[i] = ec._InventoryLevel_canDeactivate(ctx, field, obj)
  148085. if out.Values[i] == graphql.Null {
  148086. invalids++
  148087. }
  148088. case "createdAt":
  148089. out.Values[i] = ec._InventoryLevel_createdAt(ctx, field, obj)
  148090. if out.Values[i] == graphql.Null {
  148091. invalids++
  148092. }
  148093. case "deactivationAlert":
  148094. out.Values[i] = ec._InventoryLevel_deactivationAlert(ctx, field, obj)
  148095. case "deactivationAlertHtml":
  148096. out.Values[i] = ec._InventoryLevel_deactivationAlertHtml(ctx, field, obj)
  148097. case "id":
  148098. out.Values[i] = ec._InventoryLevel_id(ctx, field, obj)
  148099. if out.Values[i] == graphql.Null {
  148100. invalids++
  148101. }
  148102. case "incoming":
  148103. out.Values[i] = ec._InventoryLevel_incoming(ctx, field, obj)
  148104. if out.Values[i] == graphql.Null {
  148105. invalids++
  148106. }
  148107. case "item":
  148108. out.Values[i] = ec._InventoryLevel_item(ctx, field, obj)
  148109. if out.Values[i] == graphql.Null {
  148110. invalids++
  148111. }
  148112. case "location":
  148113. out.Values[i] = ec._InventoryLevel_location(ctx, field, obj)
  148114. if out.Values[i] == graphql.Null {
  148115. invalids++
  148116. }
  148117. case "updatedAt":
  148118. out.Values[i] = ec._InventoryLevel_updatedAt(ctx, field, obj)
  148119. if out.Values[i] == graphql.Null {
  148120. invalids++
  148121. }
  148122. default:
  148123. panic("unknown field " + strconv.Quote(field.Name))
  148124. }
  148125. }
  148126. out.Dispatch()
  148127. if invalids > 0 {
  148128. return graphql.Null
  148129. }
  148130. return out
  148131. }
  148132. var inventoryLevelConnectionImplementors = []string{"InventoryLevelConnection"}
  148133. func (ec *executionContext) _InventoryLevelConnection(ctx context.Context, sel ast.SelectionSet, obj *InventoryLevelConnection) graphql.Marshaler {
  148134. fields := graphql.CollectFields(ec.OperationContext, sel, inventoryLevelConnectionImplementors)
  148135. out := graphql.NewFieldSet(fields)
  148136. var invalids uint32
  148137. for i, field := range fields {
  148138. switch field.Name {
  148139. case "__typename":
  148140. out.Values[i] = graphql.MarshalString("InventoryLevelConnection")
  148141. case "edges":
  148142. out.Values[i] = ec._InventoryLevelConnection_edges(ctx, field, obj)
  148143. if out.Values[i] == graphql.Null {
  148144. invalids++
  148145. }
  148146. case "nodes":
  148147. out.Values[i] = ec._InventoryLevelConnection_nodes(ctx, field, obj)
  148148. if out.Values[i] == graphql.Null {
  148149. invalids++
  148150. }
  148151. case "pageInfo":
  148152. out.Values[i] = ec._InventoryLevelConnection_pageInfo(ctx, field, obj)
  148153. if out.Values[i] == graphql.Null {
  148154. invalids++
  148155. }
  148156. default:
  148157. panic("unknown field " + strconv.Quote(field.Name))
  148158. }
  148159. }
  148160. out.Dispatch()
  148161. if invalids > 0 {
  148162. return graphql.Null
  148163. }
  148164. return out
  148165. }
  148166. var inventoryLevelEdgeImplementors = []string{"InventoryLevelEdge"}
  148167. func (ec *executionContext) _InventoryLevelEdge(ctx context.Context, sel ast.SelectionSet, obj *InventoryLevelEdge) graphql.Marshaler {
  148168. fields := graphql.CollectFields(ec.OperationContext, sel, inventoryLevelEdgeImplementors)
  148169. out := graphql.NewFieldSet(fields)
  148170. var invalids uint32
  148171. for i, field := range fields {
  148172. switch field.Name {
  148173. case "__typename":
  148174. out.Values[i] = graphql.MarshalString("InventoryLevelEdge")
  148175. case "cursor":
  148176. out.Values[i] = ec._InventoryLevelEdge_cursor(ctx, field, obj)
  148177. if out.Values[i] == graphql.Null {
  148178. invalids++
  148179. }
  148180. case "node":
  148181. out.Values[i] = ec._InventoryLevelEdge_node(ctx, field, obj)
  148182. if out.Values[i] == graphql.Null {
  148183. invalids++
  148184. }
  148185. default:
  148186. panic("unknown field " + strconv.Quote(field.Name))
  148187. }
  148188. }
  148189. out.Dispatch()
  148190. if invalids > 0 {
  148191. return graphql.Null
  148192. }
  148193. return out
  148194. }
  148195. var jobImplementors = []string{"Job"}
  148196. func (ec *executionContext) _Job(ctx context.Context, sel ast.SelectionSet, obj *Job) graphql.Marshaler {
  148197. fields := graphql.CollectFields(ec.OperationContext, sel, jobImplementors)
  148198. out := graphql.NewFieldSet(fields)
  148199. var invalids uint32
  148200. for i, field := range fields {
  148201. switch field.Name {
  148202. case "__typename":
  148203. out.Values[i] = graphql.MarshalString("Job")
  148204. case "done":
  148205. out.Values[i] = ec._Job_done(ctx, field, obj)
  148206. if out.Values[i] == graphql.Null {
  148207. invalids++
  148208. }
  148209. case "id":
  148210. out.Values[i] = ec._Job_id(ctx, field, obj)
  148211. if out.Values[i] == graphql.Null {
  148212. invalids++
  148213. }
  148214. default:
  148215. panic("unknown field " + strconv.Quote(field.Name))
  148216. }
  148217. }
  148218. out.Dispatch()
  148219. if invalids > 0 {
  148220. return graphql.Null
  148221. }
  148222. return out
  148223. }
  148224. var limitedPendingOrderCountImplementors = []string{"LimitedPendingOrderCount"}
  148225. func (ec *executionContext) _LimitedPendingOrderCount(ctx context.Context, sel ast.SelectionSet, obj *LimitedPendingOrderCount) graphql.Marshaler {
  148226. fields := graphql.CollectFields(ec.OperationContext, sel, limitedPendingOrderCountImplementors)
  148227. out := graphql.NewFieldSet(fields)
  148228. var invalids uint32
  148229. for i, field := range fields {
  148230. switch field.Name {
  148231. case "__typename":
  148232. out.Values[i] = graphql.MarshalString("LimitedPendingOrderCount")
  148233. case "atMax":
  148234. out.Values[i] = ec._LimitedPendingOrderCount_atMax(ctx, field, obj)
  148235. if out.Values[i] == graphql.Null {
  148236. invalids++
  148237. }
  148238. case "count":
  148239. out.Values[i] = ec._LimitedPendingOrderCount_count(ctx, field, obj)
  148240. if out.Values[i] == graphql.Null {
  148241. invalids++
  148242. }
  148243. default:
  148244. panic("unknown field " + strconv.Quote(field.Name))
  148245. }
  148246. }
  148247. out.Dispatch()
  148248. if invalids > 0 {
  148249. return graphql.Null
  148250. }
  148251. return out
  148252. }
  148253. var lineItemImplementors = []string{"LineItem", "Node"}
  148254. func (ec *executionContext) _LineItem(ctx context.Context, sel ast.SelectionSet, obj *LineItem) graphql.Marshaler {
  148255. fields := graphql.CollectFields(ec.OperationContext, sel, lineItemImplementors)
  148256. out := graphql.NewFieldSet(fields)
  148257. var invalids uint32
  148258. for i, field := range fields {
  148259. switch field.Name {
  148260. case "__typename":
  148261. out.Values[i] = graphql.MarshalString("LineItem")
  148262. case "contract":
  148263. out.Values[i] = ec._LineItem_contract(ctx, field, obj)
  148264. case "currentQuantity":
  148265. out.Values[i] = ec._LineItem_currentQuantity(ctx, field, obj)
  148266. if out.Values[i] == graphql.Null {
  148267. invalids++
  148268. }
  148269. case "customAttributes":
  148270. out.Values[i] = ec._LineItem_customAttributes(ctx, field, obj)
  148271. if out.Values[i] == graphql.Null {
  148272. invalids++
  148273. }
  148274. case "discountAllocations":
  148275. out.Values[i] = ec._LineItem_discountAllocations(ctx, field, obj)
  148276. if out.Values[i] == graphql.Null {
  148277. invalids++
  148278. }
  148279. case "discountedTotalSet":
  148280. out.Values[i] = ec._LineItem_discountedTotalSet(ctx, field, obj)
  148281. if out.Values[i] == graphql.Null {
  148282. invalids++
  148283. }
  148284. case "discountedUnitPriceSet":
  148285. out.Values[i] = ec._LineItem_discountedUnitPriceSet(ctx, field, obj)
  148286. if out.Values[i] == graphql.Null {
  148287. invalids++
  148288. }
  148289. case "duties":
  148290. out.Values[i] = ec._LineItem_duties(ctx, field, obj)
  148291. if out.Values[i] == graphql.Null {
  148292. invalids++
  148293. }
  148294. case "id":
  148295. out.Values[i] = ec._LineItem_id(ctx, field, obj)
  148296. if out.Values[i] == graphql.Null {
  148297. invalids++
  148298. }
  148299. case "image":
  148300. out.Values[i] = ec._LineItem_image(ctx, field, obj)
  148301. case "merchantEditable":
  148302. out.Values[i] = ec._LineItem_merchantEditable(ctx, field, obj)
  148303. if out.Values[i] == graphql.Null {
  148304. invalids++
  148305. }
  148306. case "name":
  148307. out.Values[i] = ec._LineItem_name(ctx, field, obj)
  148308. if out.Values[i] == graphql.Null {
  148309. invalids++
  148310. }
  148311. case "nonFulfillableQuantity":
  148312. out.Values[i] = ec._LineItem_nonFulfillableQuantity(ctx, field, obj)
  148313. if out.Values[i] == graphql.Null {
  148314. invalids++
  148315. }
  148316. case "originalTotalSet":
  148317. out.Values[i] = ec._LineItem_originalTotalSet(ctx, field, obj)
  148318. if out.Values[i] == graphql.Null {
  148319. invalids++
  148320. }
  148321. case "originalUnitPriceSet":
  148322. out.Values[i] = ec._LineItem_originalUnitPriceSet(ctx, field, obj)
  148323. if out.Values[i] == graphql.Null {
  148324. invalids++
  148325. }
  148326. case "product":
  148327. out.Values[i] = ec._LineItem_product(ctx, field, obj)
  148328. case "quantity":
  148329. out.Values[i] = ec._LineItem_quantity(ctx, field, obj)
  148330. if out.Values[i] == graphql.Null {
  148331. invalids++
  148332. }
  148333. case "refundableQuantity":
  148334. out.Values[i] = ec._LineItem_refundableQuantity(ctx, field, obj)
  148335. if out.Values[i] == graphql.Null {
  148336. invalids++
  148337. }
  148338. case "requiresShipping":
  148339. out.Values[i] = ec._LineItem_requiresShipping(ctx, field, obj)
  148340. if out.Values[i] == graphql.Null {
  148341. invalids++
  148342. }
  148343. case "restockable":
  148344. out.Values[i] = ec._LineItem_restockable(ctx, field, obj)
  148345. if out.Values[i] == graphql.Null {
  148346. invalids++
  148347. }
  148348. case "sellingPlan":
  148349. out.Values[i] = ec._LineItem_sellingPlan(ctx, field, obj)
  148350. case "sku":
  148351. out.Values[i] = ec._LineItem_sku(ctx, field, obj)
  148352. case "staffMember":
  148353. out.Values[i] = ec._LineItem_staffMember(ctx, field, obj)
  148354. case "taxLines":
  148355. out.Values[i] = ec._LineItem_taxLines(ctx, field, obj)
  148356. if out.Values[i] == graphql.Null {
  148357. invalids++
  148358. }
  148359. case "taxable":
  148360. out.Values[i] = ec._LineItem_taxable(ctx, field, obj)
  148361. if out.Values[i] == graphql.Null {
  148362. invalids++
  148363. }
  148364. case "title":
  148365. out.Values[i] = ec._LineItem_title(ctx, field, obj)
  148366. if out.Values[i] == graphql.Null {
  148367. invalids++
  148368. }
  148369. case "totalDiscountSet":
  148370. out.Values[i] = ec._LineItem_totalDiscountSet(ctx, field, obj)
  148371. if out.Values[i] == graphql.Null {
  148372. invalids++
  148373. }
  148374. case "unfulfilledDiscountedTotalSet":
  148375. out.Values[i] = ec._LineItem_unfulfilledDiscountedTotalSet(ctx, field, obj)
  148376. if out.Values[i] == graphql.Null {
  148377. invalids++
  148378. }
  148379. case "unfulfilledOriginalTotalSet":
  148380. out.Values[i] = ec._LineItem_unfulfilledOriginalTotalSet(ctx, field, obj)
  148381. if out.Values[i] == graphql.Null {
  148382. invalids++
  148383. }
  148384. case "unfulfilledQuantity":
  148385. out.Values[i] = ec._LineItem_unfulfilledQuantity(ctx, field, obj)
  148386. if out.Values[i] == graphql.Null {
  148387. invalids++
  148388. }
  148389. case "variant":
  148390. out.Values[i] = ec._LineItem_variant(ctx, field, obj)
  148391. case "variantTitle":
  148392. out.Values[i] = ec._LineItem_variantTitle(ctx, field, obj)
  148393. case "vendor":
  148394. out.Values[i] = ec._LineItem_vendor(ctx, field, obj)
  148395. default:
  148396. panic("unknown field " + strconv.Quote(field.Name))
  148397. }
  148398. }
  148399. out.Dispatch()
  148400. if invalids > 0 {
  148401. return graphql.Null
  148402. }
  148403. return out
  148404. }
  148405. var lineItemConnectionImplementors = []string{"LineItemConnection"}
  148406. func (ec *executionContext) _LineItemConnection(ctx context.Context, sel ast.SelectionSet, obj *LineItemConnection) graphql.Marshaler {
  148407. fields := graphql.CollectFields(ec.OperationContext, sel, lineItemConnectionImplementors)
  148408. out := graphql.NewFieldSet(fields)
  148409. var invalids uint32
  148410. for i, field := range fields {
  148411. switch field.Name {
  148412. case "__typename":
  148413. out.Values[i] = graphql.MarshalString("LineItemConnection")
  148414. case "edges":
  148415. out.Values[i] = ec._LineItemConnection_edges(ctx, field, obj)
  148416. if out.Values[i] == graphql.Null {
  148417. invalids++
  148418. }
  148419. case "nodes":
  148420. out.Values[i] = ec._LineItemConnection_nodes(ctx, field, obj)
  148421. if out.Values[i] == graphql.Null {
  148422. invalids++
  148423. }
  148424. case "pageInfo":
  148425. out.Values[i] = ec._LineItemConnection_pageInfo(ctx, field, obj)
  148426. if out.Values[i] == graphql.Null {
  148427. invalids++
  148428. }
  148429. default:
  148430. panic("unknown field " + strconv.Quote(field.Name))
  148431. }
  148432. }
  148433. out.Dispatch()
  148434. if invalids > 0 {
  148435. return graphql.Null
  148436. }
  148437. return out
  148438. }
  148439. var lineItemEdgeImplementors = []string{"LineItemEdge"}
  148440. func (ec *executionContext) _LineItemEdge(ctx context.Context, sel ast.SelectionSet, obj *LineItemEdge) graphql.Marshaler {
  148441. fields := graphql.CollectFields(ec.OperationContext, sel, lineItemEdgeImplementors)
  148442. out := graphql.NewFieldSet(fields)
  148443. var invalids uint32
  148444. for i, field := range fields {
  148445. switch field.Name {
  148446. case "__typename":
  148447. out.Values[i] = graphql.MarshalString("LineItemEdge")
  148448. case "cursor":
  148449. out.Values[i] = ec._LineItemEdge_cursor(ctx, field, obj)
  148450. if out.Values[i] == graphql.Null {
  148451. invalids++
  148452. }
  148453. case "node":
  148454. out.Values[i] = ec._LineItemEdge_node(ctx, field, obj)
  148455. if out.Values[i] == graphql.Null {
  148456. invalids++
  148457. }
  148458. default:
  148459. panic("unknown field " + strconv.Quote(field.Name))
  148460. }
  148461. }
  148462. out.Dispatch()
  148463. if invalids > 0 {
  148464. return graphql.Null
  148465. }
  148466. return out
  148467. }
  148468. var lineItemSellingPlanImplementors = []string{"LineItemSellingPlan"}
  148469. func (ec *executionContext) _LineItemSellingPlan(ctx context.Context, sel ast.SelectionSet, obj *LineItemSellingPlan) graphql.Marshaler {
  148470. fields := graphql.CollectFields(ec.OperationContext, sel, lineItemSellingPlanImplementors)
  148471. out := graphql.NewFieldSet(fields)
  148472. var invalids uint32
  148473. for i, field := range fields {
  148474. switch field.Name {
  148475. case "__typename":
  148476. out.Values[i] = graphql.MarshalString("LineItemSellingPlan")
  148477. case "name":
  148478. out.Values[i] = ec._LineItemSellingPlan_name(ctx, field, obj)
  148479. if out.Values[i] == graphql.Null {
  148480. invalids++
  148481. }
  148482. case "sellingPlanId":
  148483. out.Values[i] = ec._LineItemSellingPlan_sellingPlanId(ctx, field, obj)
  148484. default:
  148485. panic("unknown field " + strconv.Quote(field.Name))
  148486. }
  148487. }
  148488. out.Dispatch()
  148489. if invalids > 0 {
  148490. return graphql.Null
  148491. }
  148492. return out
  148493. }
  148494. var linkImplementors = []string{"Link", "HasPublishedTranslations"}
  148495. func (ec *executionContext) _Link(ctx context.Context, sel ast.SelectionSet, obj *Link) graphql.Marshaler {
  148496. fields := graphql.CollectFields(ec.OperationContext, sel, linkImplementors)
  148497. out := graphql.NewFieldSet(fields)
  148498. var invalids uint32
  148499. for i, field := range fields {
  148500. switch field.Name {
  148501. case "__typename":
  148502. out.Values[i] = graphql.MarshalString("Link")
  148503. case "label":
  148504. out.Values[i] = ec._Link_label(ctx, field, obj)
  148505. if out.Values[i] == graphql.Null {
  148506. invalids++
  148507. }
  148508. case "translations":
  148509. out.Values[i] = ec._Link_translations(ctx, field, obj)
  148510. if out.Values[i] == graphql.Null {
  148511. invalids++
  148512. }
  148513. case "url":
  148514. out.Values[i] = ec._Link_url(ctx, field, obj)
  148515. if out.Values[i] == graphql.Null {
  148516. invalids++
  148517. }
  148518. default:
  148519. panic("unknown field " + strconv.Quote(field.Name))
  148520. }
  148521. }
  148522. out.Dispatch()
  148523. if invalids > 0 {
  148524. return graphql.Null
  148525. }
  148526. return out
  148527. }
  148528. var localizationExtensionImplementors = []string{"LocalizationExtension"}
  148529. func (ec *executionContext) _LocalizationExtension(ctx context.Context, sel ast.SelectionSet, obj *LocalizationExtension) graphql.Marshaler {
  148530. fields := graphql.CollectFields(ec.OperationContext, sel, localizationExtensionImplementors)
  148531. out := graphql.NewFieldSet(fields)
  148532. var invalids uint32
  148533. for i, field := range fields {
  148534. switch field.Name {
  148535. case "__typename":
  148536. out.Values[i] = graphql.MarshalString("LocalizationExtension")
  148537. case "countryCode":
  148538. out.Values[i] = ec._LocalizationExtension_countryCode(ctx, field, obj)
  148539. if out.Values[i] == graphql.Null {
  148540. invalids++
  148541. }
  148542. case "key":
  148543. out.Values[i] = ec._LocalizationExtension_key(ctx, field, obj)
  148544. if out.Values[i] == graphql.Null {
  148545. invalids++
  148546. }
  148547. case "purpose":
  148548. out.Values[i] = ec._LocalizationExtension_purpose(ctx, field, obj)
  148549. if out.Values[i] == graphql.Null {
  148550. invalids++
  148551. }
  148552. case "title":
  148553. out.Values[i] = ec._LocalizationExtension_title(ctx, field, obj)
  148554. if out.Values[i] == graphql.Null {
  148555. invalids++
  148556. }
  148557. case "value":
  148558. out.Values[i] = ec._LocalizationExtension_value(ctx, field, obj)
  148559. if out.Values[i] == graphql.Null {
  148560. invalids++
  148561. }
  148562. default:
  148563. panic("unknown field " + strconv.Quote(field.Name))
  148564. }
  148565. }
  148566. out.Dispatch()
  148567. if invalids > 0 {
  148568. return graphql.Null
  148569. }
  148570. return out
  148571. }
  148572. var localizationExtensionConnectionImplementors = []string{"LocalizationExtensionConnection"}
  148573. func (ec *executionContext) _LocalizationExtensionConnection(ctx context.Context, sel ast.SelectionSet, obj *LocalizationExtensionConnection) graphql.Marshaler {
  148574. fields := graphql.CollectFields(ec.OperationContext, sel, localizationExtensionConnectionImplementors)
  148575. out := graphql.NewFieldSet(fields)
  148576. var invalids uint32
  148577. for i, field := range fields {
  148578. switch field.Name {
  148579. case "__typename":
  148580. out.Values[i] = graphql.MarshalString("LocalizationExtensionConnection")
  148581. case "edges":
  148582. out.Values[i] = ec._LocalizationExtensionConnection_edges(ctx, field, obj)
  148583. if out.Values[i] == graphql.Null {
  148584. invalids++
  148585. }
  148586. case "nodes":
  148587. out.Values[i] = ec._LocalizationExtensionConnection_nodes(ctx, field, obj)
  148588. if out.Values[i] == graphql.Null {
  148589. invalids++
  148590. }
  148591. case "pageInfo":
  148592. out.Values[i] = ec._LocalizationExtensionConnection_pageInfo(ctx, field, obj)
  148593. if out.Values[i] == graphql.Null {
  148594. invalids++
  148595. }
  148596. default:
  148597. panic("unknown field " + strconv.Quote(field.Name))
  148598. }
  148599. }
  148600. out.Dispatch()
  148601. if invalids > 0 {
  148602. return graphql.Null
  148603. }
  148604. return out
  148605. }
  148606. var localizationExtensionEdgeImplementors = []string{"LocalizationExtensionEdge"}
  148607. func (ec *executionContext) _LocalizationExtensionEdge(ctx context.Context, sel ast.SelectionSet, obj *LocalizationExtensionEdge) graphql.Marshaler {
  148608. fields := graphql.CollectFields(ec.OperationContext, sel, localizationExtensionEdgeImplementors)
  148609. out := graphql.NewFieldSet(fields)
  148610. var invalids uint32
  148611. for i, field := range fields {
  148612. switch field.Name {
  148613. case "__typename":
  148614. out.Values[i] = graphql.MarshalString("LocalizationExtensionEdge")
  148615. case "cursor":
  148616. out.Values[i] = ec._LocalizationExtensionEdge_cursor(ctx, field, obj)
  148617. if out.Values[i] == graphql.Null {
  148618. invalids++
  148619. }
  148620. case "node":
  148621. out.Values[i] = ec._LocalizationExtensionEdge_node(ctx, field, obj)
  148622. if out.Values[i] == graphql.Null {
  148623. invalids++
  148624. }
  148625. default:
  148626. panic("unknown field " + strconv.Quote(field.Name))
  148627. }
  148628. }
  148629. out.Dispatch()
  148630. if invalids > 0 {
  148631. return graphql.Null
  148632. }
  148633. return out
  148634. }
  148635. var locationImplementors = []string{"Location", "HasMetafieldDefinitions", "HasMetafields", "LegacyInteroperability", "Node"}
  148636. func (ec *executionContext) _Location(ctx context.Context, sel ast.SelectionSet, obj *Location) graphql.Marshaler {
  148637. fields := graphql.CollectFields(ec.OperationContext, sel, locationImplementors)
  148638. out := graphql.NewFieldSet(fields)
  148639. var invalids uint32
  148640. for i, field := range fields {
  148641. switch field.Name {
  148642. case "__typename":
  148643. out.Values[i] = graphql.MarshalString("Location")
  148644. case "activatable":
  148645. out.Values[i] = ec._Location_activatable(ctx, field, obj)
  148646. if out.Values[i] == graphql.Null {
  148647. invalids++
  148648. }
  148649. case "address":
  148650. out.Values[i] = ec._Location_address(ctx, field, obj)
  148651. if out.Values[i] == graphql.Null {
  148652. invalids++
  148653. }
  148654. case "addressVerified":
  148655. out.Values[i] = ec._Location_addressVerified(ctx, field, obj)
  148656. if out.Values[i] == graphql.Null {
  148657. invalids++
  148658. }
  148659. case "deactivatable":
  148660. out.Values[i] = ec._Location_deactivatable(ctx, field, obj)
  148661. if out.Values[i] == graphql.Null {
  148662. invalids++
  148663. }
  148664. case "deactivatedAt":
  148665. out.Values[i] = ec._Location_deactivatedAt(ctx, field, obj)
  148666. case "deletable":
  148667. out.Values[i] = ec._Location_deletable(ctx, field, obj)
  148668. if out.Values[i] == graphql.Null {
  148669. invalids++
  148670. }
  148671. case "fulfillmentService":
  148672. out.Values[i] = ec._Location_fulfillmentService(ctx, field, obj)
  148673. case "fulfillsOnlineOrders":
  148674. out.Values[i] = ec._Location_fulfillsOnlineOrders(ctx, field, obj)
  148675. if out.Values[i] == graphql.Null {
  148676. invalids++
  148677. }
  148678. case "hasActiveInventory":
  148679. out.Values[i] = ec._Location_hasActiveInventory(ctx, field, obj)
  148680. if out.Values[i] == graphql.Null {
  148681. invalids++
  148682. }
  148683. case "hasUnfulfilledOrders":
  148684. out.Values[i] = ec._Location_hasUnfulfilledOrders(ctx, field, obj)
  148685. if out.Values[i] == graphql.Null {
  148686. invalids++
  148687. }
  148688. case "id":
  148689. out.Values[i] = ec._Location_id(ctx, field, obj)
  148690. if out.Values[i] == graphql.Null {
  148691. invalids++
  148692. }
  148693. case "inventoryLevel":
  148694. out.Values[i] = ec._Location_inventoryLevel(ctx, field, obj)
  148695. case "inventoryLevels":
  148696. out.Values[i] = ec._Location_inventoryLevels(ctx, field, obj)
  148697. if out.Values[i] == graphql.Null {
  148698. invalids++
  148699. }
  148700. case "isActive":
  148701. out.Values[i] = ec._Location_isActive(ctx, field, obj)
  148702. if out.Values[i] == graphql.Null {
  148703. invalids++
  148704. }
  148705. case "legacyResourceId":
  148706. out.Values[i] = ec._Location_legacyResourceId(ctx, field, obj)
  148707. if out.Values[i] == graphql.Null {
  148708. invalids++
  148709. }
  148710. case "metafield":
  148711. out.Values[i] = ec._Location_metafield(ctx, field, obj)
  148712. case "metafieldDefinitions":
  148713. out.Values[i] = ec._Location_metafieldDefinitions(ctx, field, obj)
  148714. if out.Values[i] == graphql.Null {
  148715. invalids++
  148716. }
  148717. case "metafields":
  148718. out.Values[i] = ec._Location_metafields(ctx, field, obj)
  148719. if out.Values[i] == graphql.Null {
  148720. invalids++
  148721. }
  148722. case "name":
  148723. out.Values[i] = ec._Location_name(ctx, field, obj)
  148724. if out.Values[i] == graphql.Null {
  148725. invalids++
  148726. }
  148727. case "privateMetafield":
  148728. out.Values[i] = ec._Location_privateMetafield(ctx, field, obj)
  148729. case "privateMetafields":
  148730. out.Values[i] = ec._Location_privateMetafields(ctx, field, obj)
  148731. if out.Values[i] == graphql.Null {
  148732. invalids++
  148733. }
  148734. case "shipsInventory":
  148735. out.Values[i] = ec._Location_shipsInventory(ctx, field, obj)
  148736. if out.Values[i] == graphql.Null {
  148737. invalids++
  148738. }
  148739. case "suggestedAddresses":
  148740. out.Values[i] = ec._Location_suggestedAddresses(ctx, field, obj)
  148741. if out.Values[i] == graphql.Null {
  148742. invalids++
  148743. }
  148744. default:
  148745. panic("unknown field " + strconv.Quote(field.Name))
  148746. }
  148747. }
  148748. out.Dispatch()
  148749. if invalids > 0 {
  148750. return graphql.Null
  148751. }
  148752. return out
  148753. }
  148754. var locationAddressImplementors = []string{"LocationAddress"}
  148755. func (ec *executionContext) _LocationAddress(ctx context.Context, sel ast.SelectionSet, obj *LocationAddress) graphql.Marshaler {
  148756. fields := graphql.CollectFields(ec.OperationContext, sel, locationAddressImplementors)
  148757. out := graphql.NewFieldSet(fields)
  148758. var invalids uint32
  148759. for i, field := range fields {
  148760. switch field.Name {
  148761. case "__typename":
  148762. out.Values[i] = graphql.MarshalString("LocationAddress")
  148763. case "address1":
  148764. out.Values[i] = ec._LocationAddress_address1(ctx, field, obj)
  148765. case "address2":
  148766. out.Values[i] = ec._LocationAddress_address2(ctx, field, obj)
  148767. case "city":
  148768. out.Values[i] = ec._LocationAddress_city(ctx, field, obj)
  148769. case "country":
  148770. out.Values[i] = ec._LocationAddress_country(ctx, field, obj)
  148771. case "countryCode":
  148772. out.Values[i] = ec._LocationAddress_countryCode(ctx, field, obj)
  148773. case "formatted":
  148774. out.Values[i] = ec._LocationAddress_formatted(ctx, field, obj)
  148775. if out.Values[i] == graphql.Null {
  148776. invalids++
  148777. }
  148778. case "latitude":
  148779. out.Values[i] = ec._LocationAddress_latitude(ctx, field, obj)
  148780. case "longitude":
  148781. out.Values[i] = ec._LocationAddress_longitude(ctx, field, obj)
  148782. case "phone":
  148783. out.Values[i] = ec._LocationAddress_phone(ctx, field, obj)
  148784. case "province":
  148785. out.Values[i] = ec._LocationAddress_province(ctx, field, obj)
  148786. case "provinceCode":
  148787. out.Values[i] = ec._LocationAddress_provinceCode(ctx, field, obj)
  148788. case "zip":
  148789. out.Values[i] = ec._LocationAddress_zip(ctx, field, obj)
  148790. default:
  148791. panic("unknown field " + strconv.Quote(field.Name))
  148792. }
  148793. }
  148794. out.Dispatch()
  148795. if invalids > 0 {
  148796. return graphql.Null
  148797. }
  148798. return out
  148799. }
  148800. var locationConnectionImplementors = []string{"LocationConnection"}
  148801. func (ec *executionContext) _LocationConnection(ctx context.Context, sel ast.SelectionSet, obj *LocationConnection) graphql.Marshaler {
  148802. fields := graphql.CollectFields(ec.OperationContext, sel, locationConnectionImplementors)
  148803. out := graphql.NewFieldSet(fields)
  148804. var invalids uint32
  148805. for i, field := range fields {
  148806. switch field.Name {
  148807. case "__typename":
  148808. out.Values[i] = graphql.MarshalString("LocationConnection")
  148809. case "edges":
  148810. out.Values[i] = ec._LocationConnection_edges(ctx, field, obj)
  148811. if out.Values[i] == graphql.Null {
  148812. invalids++
  148813. }
  148814. case "nodes":
  148815. out.Values[i] = ec._LocationConnection_nodes(ctx, field, obj)
  148816. if out.Values[i] == graphql.Null {
  148817. invalids++
  148818. }
  148819. case "pageInfo":
  148820. out.Values[i] = ec._LocationConnection_pageInfo(ctx, field, obj)
  148821. if out.Values[i] == graphql.Null {
  148822. invalids++
  148823. }
  148824. default:
  148825. panic("unknown field " + strconv.Quote(field.Name))
  148826. }
  148827. }
  148828. out.Dispatch()
  148829. if invalids > 0 {
  148830. return graphql.Null
  148831. }
  148832. return out
  148833. }
  148834. var locationEdgeImplementors = []string{"LocationEdge"}
  148835. func (ec *executionContext) _LocationEdge(ctx context.Context, sel ast.SelectionSet, obj *LocationEdge) graphql.Marshaler {
  148836. fields := graphql.CollectFields(ec.OperationContext, sel, locationEdgeImplementors)
  148837. out := graphql.NewFieldSet(fields)
  148838. var invalids uint32
  148839. for i, field := range fields {
  148840. switch field.Name {
  148841. case "__typename":
  148842. out.Values[i] = graphql.MarshalString("LocationEdge")
  148843. case "cursor":
  148844. out.Values[i] = ec._LocationEdge_cursor(ctx, field, obj)
  148845. if out.Values[i] == graphql.Null {
  148846. invalids++
  148847. }
  148848. case "node":
  148849. out.Values[i] = ec._LocationEdge_node(ctx, field, obj)
  148850. if out.Values[i] == graphql.Null {
  148851. invalids++
  148852. }
  148853. default:
  148854. panic("unknown field " + strconv.Quote(field.Name))
  148855. }
  148856. }
  148857. out.Dispatch()
  148858. if invalids > 0 {
  148859. return graphql.Null
  148860. }
  148861. return out
  148862. }
  148863. var locationSuggestedAddressImplementors = []string{"LocationSuggestedAddress"}
  148864. func (ec *executionContext) _LocationSuggestedAddress(ctx context.Context, sel ast.SelectionSet, obj *LocationSuggestedAddress) graphql.Marshaler {
  148865. fields := graphql.CollectFields(ec.OperationContext, sel, locationSuggestedAddressImplementors)
  148866. out := graphql.NewFieldSet(fields)
  148867. var invalids uint32
  148868. for i, field := range fields {
  148869. switch field.Name {
  148870. case "__typename":
  148871. out.Values[i] = graphql.MarshalString("LocationSuggestedAddress")
  148872. case "address1":
  148873. out.Values[i] = ec._LocationSuggestedAddress_address1(ctx, field, obj)
  148874. case "address2":
  148875. out.Values[i] = ec._LocationSuggestedAddress_address2(ctx, field, obj)
  148876. case "city":
  148877. out.Values[i] = ec._LocationSuggestedAddress_city(ctx, field, obj)
  148878. case "country":
  148879. out.Values[i] = ec._LocationSuggestedAddress_country(ctx, field, obj)
  148880. case "countryCode":
  148881. out.Values[i] = ec._LocationSuggestedAddress_countryCode(ctx, field, obj)
  148882. case "formatted":
  148883. out.Values[i] = ec._LocationSuggestedAddress_formatted(ctx, field, obj)
  148884. if out.Values[i] == graphql.Null {
  148885. invalids++
  148886. }
  148887. case "province":
  148888. out.Values[i] = ec._LocationSuggestedAddress_province(ctx, field, obj)
  148889. case "provinceCode":
  148890. out.Values[i] = ec._LocationSuggestedAddress_provinceCode(ctx, field, obj)
  148891. case "zip":
  148892. out.Values[i] = ec._LocationSuggestedAddress_zip(ctx, field, obj)
  148893. default:
  148894. panic("unknown field " + strconv.Quote(field.Name))
  148895. }
  148896. }
  148897. out.Dispatch()
  148898. if invalids > 0 {
  148899. return graphql.Null
  148900. }
  148901. return out
  148902. }
  148903. var mailingAddressImplementors = []string{"MailingAddress", "Node"}
  148904. func (ec *executionContext) _MailingAddress(ctx context.Context, sel ast.SelectionSet, obj *MailingAddress) graphql.Marshaler {
  148905. fields := graphql.CollectFields(ec.OperationContext, sel, mailingAddressImplementors)
  148906. out := graphql.NewFieldSet(fields)
  148907. var invalids uint32
  148908. for i, field := range fields {
  148909. switch field.Name {
  148910. case "__typename":
  148911. out.Values[i] = graphql.MarshalString("MailingAddress")
  148912. case "address1":
  148913. out.Values[i] = ec._MailingAddress_address1(ctx, field, obj)
  148914. case "address2":
  148915. out.Values[i] = ec._MailingAddress_address2(ctx, field, obj)
  148916. case "city":
  148917. out.Values[i] = ec._MailingAddress_city(ctx, field, obj)
  148918. case "company":
  148919. out.Values[i] = ec._MailingAddress_company(ctx, field, obj)
  148920. case "coordinatesValidated":
  148921. out.Values[i] = ec._MailingAddress_coordinatesValidated(ctx, field, obj)
  148922. if out.Values[i] == graphql.Null {
  148923. invalids++
  148924. }
  148925. case "country":
  148926. out.Values[i] = ec._MailingAddress_country(ctx, field, obj)
  148927. case "countryCodeV2":
  148928. out.Values[i] = ec._MailingAddress_countryCodeV2(ctx, field, obj)
  148929. case "firstName":
  148930. out.Values[i] = ec._MailingAddress_firstName(ctx, field, obj)
  148931. case "formattedArea":
  148932. out.Values[i] = ec._MailingAddress_formattedArea(ctx, field, obj)
  148933. case "id":
  148934. out.Values[i] = ec._MailingAddress_id(ctx, field, obj)
  148935. if out.Values[i] == graphql.Null {
  148936. invalids++
  148937. }
  148938. case "lastName":
  148939. out.Values[i] = ec._MailingAddress_lastName(ctx, field, obj)
  148940. case "latitude":
  148941. out.Values[i] = ec._MailingAddress_latitude(ctx, field, obj)
  148942. case "longitude":
  148943. out.Values[i] = ec._MailingAddress_longitude(ctx, field, obj)
  148944. case "name":
  148945. out.Values[i] = ec._MailingAddress_name(ctx, field, obj)
  148946. case "phone":
  148947. out.Values[i] = ec._MailingAddress_phone(ctx, field, obj)
  148948. case "province":
  148949. out.Values[i] = ec._MailingAddress_province(ctx, field, obj)
  148950. case "provinceCode":
  148951. out.Values[i] = ec._MailingAddress_provinceCode(ctx, field, obj)
  148952. case "zip":
  148953. out.Values[i] = ec._MailingAddress_zip(ctx, field, obj)
  148954. default:
  148955. panic("unknown field " + strconv.Quote(field.Name))
  148956. }
  148957. }
  148958. out.Dispatch()
  148959. if invalids > 0 {
  148960. return graphql.Null
  148961. }
  148962. return out
  148963. }
  148964. var manualDiscountApplicationImplementors = []string{"ManualDiscountApplication", "DiscountApplication"}
  148965. func (ec *executionContext) _ManualDiscountApplication(ctx context.Context, sel ast.SelectionSet, obj *ManualDiscountApplication) graphql.Marshaler {
  148966. fields := graphql.CollectFields(ec.OperationContext, sel, manualDiscountApplicationImplementors)
  148967. out := graphql.NewFieldSet(fields)
  148968. var invalids uint32
  148969. for i, field := range fields {
  148970. switch field.Name {
  148971. case "__typename":
  148972. out.Values[i] = graphql.MarshalString("ManualDiscountApplication")
  148973. case "allocationMethod":
  148974. out.Values[i] = ec._ManualDiscountApplication_allocationMethod(ctx, field, obj)
  148975. if out.Values[i] == graphql.Null {
  148976. invalids++
  148977. }
  148978. case "description":
  148979. out.Values[i] = ec._ManualDiscountApplication_description(ctx, field, obj)
  148980. case "index":
  148981. out.Values[i] = ec._ManualDiscountApplication_index(ctx, field, obj)
  148982. if out.Values[i] == graphql.Null {
  148983. invalids++
  148984. }
  148985. case "targetSelection":
  148986. out.Values[i] = ec._ManualDiscountApplication_targetSelection(ctx, field, obj)
  148987. if out.Values[i] == graphql.Null {
  148988. invalids++
  148989. }
  148990. case "targetType":
  148991. out.Values[i] = ec._ManualDiscountApplication_targetType(ctx, field, obj)
  148992. if out.Values[i] == graphql.Null {
  148993. invalids++
  148994. }
  148995. case "title":
  148996. out.Values[i] = ec._ManualDiscountApplication_title(ctx, field, obj)
  148997. if out.Values[i] == graphql.Null {
  148998. invalids++
  148999. }
  149000. case "value":
  149001. out.Values[i] = ec._ManualDiscountApplication_value(ctx, field, obj)
  149002. if out.Values[i] == graphql.Null {
  149003. invalids++
  149004. }
  149005. default:
  149006. panic("unknown field " + strconv.Quote(field.Name))
  149007. }
  149008. }
  149009. out.Dispatch()
  149010. if invalids > 0 {
  149011. return graphql.Null
  149012. }
  149013. return out
  149014. }
  149015. var marketImplementors = []string{"Market", "Node"}
  149016. func (ec *executionContext) _Market(ctx context.Context, sel ast.SelectionSet, obj *Market) graphql.Marshaler {
  149017. fields := graphql.CollectFields(ec.OperationContext, sel, marketImplementors)
  149018. out := graphql.NewFieldSet(fields)
  149019. var invalids uint32
  149020. for i, field := range fields {
  149021. switch field.Name {
  149022. case "__typename":
  149023. out.Values[i] = graphql.MarshalString("Market")
  149024. case "currencySettings":
  149025. out.Values[i] = ec._Market_currencySettings(ctx, field, obj)
  149026. if out.Values[i] == graphql.Null {
  149027. invalids++
  149028. }
  149029. case "enabled":
  149030. out.Values[i] = ec._Market_enabled(ctx, field, obj)
  149031. if out.Values[i] == graphql.Null {
  149032. invalids++
  149033. }
  149034. case "id":
  149035. out.Values[i] = ec._Market_id(ctx, field, obj)
  149036. if out.Values[i] == graphql.Null {
  149037. invalids++
  149038. }
  149039. case "name":
  149040. out.Values[i] = ec._Market_name(ctx, field, obj)
  149041. if out.Values[i] == graphql.Null {
  149042. invalids++
  149043. }
  149044. case "priceList":
  149045. out.Values[i] = ec._Market_priceList(ctx, field, obj)
  149046. case "primary":
  149047. out.Values[i] = ec._Market_primary(ctx, field, obj)
  149048. if out.Values[i] == graphql.Null {
  149049. invalids++
  149050. }
  149051. case "regions":
  149052. out.Values[i] = ec._Market_regions(ctx, field, obj)
  149053. if out.Values[i] == graphql.Null {
  149054. invalids++
  149055. }
  149056. case "webPresence":
  149057. out.Values[i] = ec._Market_webPresence(ctx, field, obj)
  149058. default:
  149059. panic("unknown field " + strconv.Quote(field.Name))
  149060. }
  149061. }
  149062. out.Dispatch()
  149063. if invalids > 0 {
  149064. return graphql.Null
  149065. }
  149066. return out
  149067. }
  149068. var marketCurrencySettingsImplementors = []string{"MarketCurrencySettings"}
  149069. func (ec *executionContext) _MarketCurrencySettings(ctx context.Context, sel ast.SelectionSet, obj *MarketCurrencySettings) graphql.Marshaler {
  149070. fields := graphql.CollectFields(ec.OperationContext, sel, marketCurrencySettingsImplementors)
  149071. out := graphql.NewFieldSet(fields)
  149072. var invalids uint32
  149073. for i, field := range fields {
  149074. switch field.Name {
  149075. case "__typename":
  149076. out.Values[i] = graphql.MarshalString("MarketCurrencySettings")
  149077. case "baseCurrency":
  149078. out.Values[i] = ec._MarketCurrencySettings_baseCurrency(ctx, field, obj)
  149079. if out.Values[i] == graphql.Null {
  149080. invalids++
  149081. }
  149082. case "localCurrencies":
  149083. out.Values[i] = ec._MarketCurrencySettings_localCurrencies(ctx, field, obj)
  149084. if out.Values[i] == graphql.Null {
  149085. invalids++
  149086. }
  149087. default:
  149088. panic("unknown field " + strconv.Quote(field.Name))
  149089. }
  149090. }
  149091. out.Dispatch()
  149092. if invalids > 0 {
  149093. return graphql.Null
  149094. }
  149095. return out
  149096. }
  149097. var marketRegionConnectionImplementors = []string{"MarketRegionConnection"}
  149098. func (ec *executionContext) _MarketRegionConnection(ctx context.Context, sel ast.SelectionSet, obj *MarketRegionConnection) graphql.Marshaler {
  149099. fields := graphql.CollectFields(ec.OperationContext, sel, marketRegionConnectionImplementors)
  149100. out := graphql.NewFieldSet(fields)
  149101. var invalids uint32
  149102. for i, field := range fields {
  149103. switch field.Name {
  149104. case "__typename":
  149105. out.Values[i] = graphql.MarshalString("MarketRegionConnection")
  149106. case "edges":
  149107. out.Values[i] = ec._MarketRegionConnection_edges(ctx, field, obj)
  149108. if out.Values[i] == graphql.Null {
  149109. invalids++
  149110. }
  149111. case "nodes":
  149112. out.Values[i] = ec._MarketRegionConnection_nodes(ctx, field, obj)
  149113. if out.Values[i] == graphql.Null {
  149114. invalids++
  149115. }
  149116. case "pageInfo":
  149117. out.Values[i] = ec._MarketRegionConnection_pageInfo(ctx, field, obj)
  149118. if out.Values[i] == graphql.Null {
  149119. invalids++
  149120. }
  149121. default:
  149122. panic("unknown field " + strconv.Quote(field.Name))
  149123. }
  149124. }
  149125. out.Dispatch()
  149126. if invalids > 0 {
  149127. return graphql.Null
  149128. }
  149129. return out
  149130. }
  149131. var marketRegionEdgeImplementors = []string{"MarketRegionEdge"}
  149132. func (ec *executionContext) _MarketRegionEdge(ctx context.Context, sel ast.SelectionSet, obj *MarketRegionEdge) graphql.Marshaler {
  149133. fields := graphql.CollectFields(ec.OperationContext, sel, marketRegionEdgeImplementors)
  149134. out := graphql.NewFieldSet(fields)
  149135. var invalids uint32
  149136. for i, field := range fields {
  149137. switch field.Name {
  149138. case "__typename":
  149139. out.Values[i] = graphql.MarshalString("MarketRegionEdge")
  149140. case "cursor":
  149141. out.Values[i] = ec._MarketRegionEdge_cursor(ctx, field, obj)
  149142. if out.Values[i] == graphql.Null {
  149143. invalids++
  149144. }
  149145. case "node":
  149146. out.Values[i] = ec._MarketRegionEdge_node(ctx, field, obj)
  149147. if out.Values[i] == graphql.Null {
  149148. invalids++
  149149. }
  149150. default:
  149151. panic("unknown field " + strconv.Quote(field.Name))
  149152. }
  149153. }
  149154. out.Dispatch()
  149155. if invalids > 0 {
  149156. return graphql.Null
  149157. }
  149158. return out
  149159. }
  149160. var marketWebPresenceImplementors = []string{"MarketWebPresence", "Node"}
  149161. func (ec *executionContext) _MarketWebPresence(ctx context.Context, sel ast.SelectionSet, obj *MarketWebPresence) graphql.Marshaler {
  149162. fields := graphql.CollectFields(ec.OperationContext, sel, marketWebPresenceImplementors)
  149163. out := graphql.NewFieldSet(fields)
  149164. var invalids uint32
  149165. for i, field := range fields {
  149166. switch field.Name {
  149167. case "__typename":
  149168. out.Values[i] = graphql.MarshalString("MarketWebPresence")
  149169. case "alternateLocales":
  149170. out.Values[i] = ec._MarketWebPresence_alternateLocales(ctx, field, obj)
  149171. if out.Values[i] == graphql.Null {
  149172. invalids++
  149173. }
  149174. case "defaultLocale":
  149175. out.Values[i] = ec._MarketWebPresence_defaultLocale(ctx, field, obj)
  149176. if out.Values[i] == graphql.Null {
  149177. invalids++
  149178. }
  149179. case "domain":
  149180. out.Values[i] = ec._MarketWebPresence_domain(ctx, field, obj)
  149181. case "id":
  149182. out.Values[i] = ec._MarketWebPresence_id(ctx, field, obj)
  149183. if out.Values[i] == graphql.Null {
  149184. invalids++
  149185. }
  149186. case "market":
  149187. out.Values[i] = ec._MarketWebPresence_market(ctx, field, obj)
  149188. if out.Values[i] == graphql.Null {
  149189. invalids++
  149190. }
  149191. case "rootUrls":
  149192. out.Values[i] = ec._MarketWebPresence_rootUrls(ctx, field, obj)
  149193. if out.Values[i] == graphql.Null {
  149194. invalids++
  149195. }
  149196. case "subfolderSuffix":
  149197. out.Values[i] = ec._MarketWebPresence_subfolderSuffix(ctx, field, obj)
  149198. default:
  149199. panic("unknown field " + strconv.Quote(field.Name))
  149200. }
  149201. }
  149202. out.Dispatch()
  149203. if invalids > 0 {
  149204. return graphql.Null
  149205. }
  149206. return out
  149207. }
  149208. var marketWebPresenceRootUrlImplementors = []string{"MarketWebPresenceRootUrl"}
  149209. func (ec *executionContext) _MarketWebPresenceRootUrl(ctx context.Context, sel ast.SelectionSet, obj *MarketWebPresenceRootURL) graphql.Marshaler {
  149210. fields := graphql.CollectFields(ec.OperationContext, sel, marketWebPresenceRootUrlImplementors)
  149211. out := graphql.NewFieldSet(fields)
  149212. var invalids uint32
  149213. for i, field := range fields {
  149214. switch field.Name {
  149215. case "__typename":
  149216. out.Values[i] = graphql.MarshalString("MarketWebPresenceRootUrl")
  149217. case "locale":
  149218. out.Values[i] = ec._MarketWebPresenceRootUrl_locale(ctx, field, obj)
  149219. if out.Values[i] == graphql.Null {
  149220. invalids++
  149221. }
  149222. case "url":
  149223. out.Values[i] = ec._MarketWebPresenceRootUrl_url(ctx, field, obj)
  149224. if out.Values[i] == graphql.Null {
  149225. invalids++
  149226. }
  149227. default:
  149228. panic("unknown field " + strconv.Quote(field.Name))
  149229. }
  149230. }
  149231. out.Dispatch()
  149232. if invalids > 0 {
  149233. return graphql.Null
  149234. }
  149235. return out
  149236. }
  149237. var marketingEventImplementors = []string{"MarketingEvent", "LegacyInteroperability", "Node"}
  149238. func (ec *executionContext) _MarketingEvent(ctx context.Context, sel ast.SelectionSet, obj *MarketingEvent) graphql.Marshaler {
  149239. fields := graphql.CollectFields(ec.OperationContext, sel, marketingEventImplementors)
  149240. out := graphql.NewFieldSet(fields)
  149241. var invalids uint32
  149242. for i, field := range fields {
  149243. switch field.Name {
  149244. case "__typename":
  149245. out.Values[i] = graphql.MarshalString("MarketingEvent")
  149246. case "app":
  149247. out.Values[i] = ec._MarketingEvent_app(ctx, field, obj)
  149248. if out.Values[i] == graphql.Null {
  149249. invalids++
  149250. }
  149251. case "channel":
  149252. out.Values[i] = ec._MarketingEvent_channel(ctx, field, obj)
  149253. case "description":
  149254. out.Values[i] = ec._MarketingEvent_description(ctx, field, obj)
  149255. case "endedAt":
  149256. out.Values[i] = ec._MarketingEvent_endedAt(ctx, field, obj)
  149257. case "id":
  149258. out.Values[i] = ec._MarketingEvent_id(ctx, field, obj)
  149259. if out.Values[i] == graphql.Null {
  149260. invalids++
  149261. }
  149262. case "legacyResourceId":
  149263. out.Values[i] = ec._MarketingEvent_legacyResourceId(ctx, field, obj)
  149264. if out.Values[i] == graphql.Null {
  149265. invalids++
  149266. }
  149267. case "manageUrl":
  149268. out.Values[i] = ec._MarketingEvent_manageUrl(ctx, field, obj)
  149269. case "previewUrl":
  149270. out.Values[i] = ec._MarketingEvent_previewUrl(ctx, field, obj)
  149271. case "remoteId":
  149272. out.Values[i] = ec._MarketingEvent_remoteId(ctx, field, obj)
  149273. case "scheduledToEndAt":
  149274. out.Values[i] = ec._MarketingEvent_scheduledToEndAt(ctx, field, obj)
  149275. case "sourceAndMedium":
  149276. out.Values[i] = ec._MarketingEvent_sourceAndMedium(ctx, field, obj)
  149277. if out.Values[i] == graphql.Null {
  149278. invalids++
  149279. }
  149280. case "startedAt":
  149281. out.Values[i] = ec._MarketingEvent_startedAt(ctx, field, obj)
  149282. if out.Values[i] == graphql.Null {
  149283. invalids++
  149284. }
  149285. case "type":
  149286. out.Values[i] = ec._MarketingEvent_type(ctx, field, obj)
  149287. if out.Values[i] == graphql.Null {
  149288. invalids++
  149289. }
  149290. case "utmCampaign":
  149291. out.Values[i] = ec._MarketingEvent_utmCampaign(ctx, field, obj)
  149292. case "utmMedium":
  149293. out.Values[i] = ec._MarketingEvent_utmMedium(ctx, field, obj)
  149294. case "utmSource":
  149295. out.Values[i] = ec._MarketingEvent_utmSource(ctx, field, obj)
  149296. default:
  149297. panic("unknown field " + strconv.Quote(field.Name))
  149298. }
  149299. }
  149300. out.Dispatch()
  149301. if invalids > 0 {
  149302. return graphql.Null
  149303. }
  149304. return out
  149305. }
  149306. var mediaConnectionImplementors = []string{"MediaConnection"}
  149307. func (ec *executionContext) _MediaConnection(ctx context.Context, sel ast.SelectionSet, obj *MediaConnection) graphql.Marshaler {
  149308. fields := graphql.CollectFields(ec.OperationContext, sel, mediaConnectionImplementors)
  149309. out := graphql.NewFieldSet(fields)
  149310. var invalids uint32
  149311. for i, field := range fields {
  149312. switch field.Name {
  149313. case "__typename":
  149314. out.Values[i] = graphql.MarshalString("MediaConnection")
  149315. case "edges":
  149316. out.Values[i] = ec._MediaConnection_edges(ctx, field, obj)
  149317. if out.Values[i] == graphql.Null {
  149318. invalids++
  149319. }
  149320. case "nodes":
  149321. out.Values[i] = ec._MediaConnection_nodes(ctx, field, obj)
  149322. if out.Values[i] == graphql.Null {
  149323. invalids++
  149324. }
  149325. case "pageInfo":
  149326. out.Values[i] = ec._MediaConnection_pageInfo(ctx, field, obj)
  149327. if out.Values[i] == graphql.Null {
  149328. invalids++
  149329. }
  149330. default:
  149331. panic("unknown field " + strconv.Quote(field.Name))
  149332. }
  149333. }
  149334. out.Dispatch()
  149335. if invalids > 0 {
  149336. return graphql.Null
  149337. }
  149338. return out
  149339. }
  149340. var mediaEdgeImplementors = []string{"MediaEdge"}
  149341. func (ec *executionContext) _MediaEdge(ctx context.Context, sel ast.SelectionSet, obj *MediaEdge) graphql.Marshaler {
  149342. fields := graphql.CollectFields(ec.OperationContext, sel, mediaEdgeImplementors)
  149343. out := graphql.NewFieldSet(fields)
  149344. var invalids uint32
  149345. for i, field := range fields {
  149346. switch field.Name {
  149347. case "__typename":
  149348. out.Values[i] = graphql.MarshalString("MediaEdge")
  149349. case "cursor":
  149350. out.Values[i] = ec._MediaEdge_cursor(ctx, field, obj)
  149351. if out.Values[i] == graphql.Null {
  149352. invalids++
  149353. }
  149354. case "node":
  149355. out.Values[i] = ec._MediaEdge_node(ctx, field, obj)
  149356. if out.Values[i] == graphql.Null {
  149357. invalids++
  149358. }
  149359. default:
  149360. panic("unknown field " + strconv.Quote(field.Name))
  149361. }
  149362. }
  149363. out.Dispatch()
  149364. if invalids > 0 {
  149365. return graphql.Null
  149366. }
  149367. return out
  149368. }
  149369. var mediaErrorImplementors = []string{"MediaError"}
  149370. func (ec *executionContext) _MediaError(ctx context.Context, sel ast.SelectionSet, obj *MediaError) graphql.Marshaler {
  149371. fields := graphql.CollectFields(ec.OperationContext, sel, mediaErrorImplementors)
  149372. out := graphql.NewFieldSet(fields)
  149373. var invalids uint32
  149374. for i, field := range fields {
  149375. switch field.Name {
  149376. case "__typename":
  149377. out.Values[i] = graphql.MarshalString("MediaError")
  149378. case "code":
  149379. out.Values[i] = ec._MediaError_code(ctx, field, obj)
  149380. if out.Values[i] == graphql.Null {
  149381. invalids++
  149382. }
  149383. case "details":
  149384. out.Values[i] = ec._MediaError_details(ctx, field, obj)
  149385. case "message":
  149386. out.Values[i] = ec._MediaError_message(ctx, field, obj)
  149387. if out.Values[i] == graphql.Null {
  149388. invalids++
  149389. }
  149390. default:
  149391. panic("unknown field " + strconv.Quote(field.Name))
  149392. }
  149393. }
  149394. out.Dispatch()
  149395. if invalids > 0 {
  149396. return graphql.Null
  149397. }
  149398. return out
  149399. }
  149400. var mediaImageImplementors = []string{"MediaImage", "File", "Media", "Node", "MetafieldReference"}
  149401. func (ec *executionContext) _MediaImage(ctx context.Context, sel ast.SelectionSet, obj *MediaImage) graphql.Marshaler {
  149402. fields := graphql.CollectFields(ec.OperationContext, sel, mediaImageImplementors)
  149403. out := graphql.NewFieldSet(fields)
  149404. var invalids uint32
  149405. for i, field := range fields {
  149406. switch field.Name {
  149407. case "__typename":
  149408. out.Values[i] = graphql.MarshalString("MediaImage")
  149409. case "alt":
  149410. out.Values[i] = ec._MediaImage_alt(ctx, field, obj)
  149411. case "createdAt":
  149412. out.Values[i] = ec._MediaImage_createdAt(ctx, field, obj)
  149413. if out.Values[i] == graphql.Null {
  149414. invalids++
  149415. }
  149416. case "fileErrors":
  149417. out.Values[i] = ec._MediaImage_fileErrors(ctx, field, obj)
  149418. if out.Values[i] == graphql.Null {
  149419. invalids++
  149420. }
  149421. case "fileStatus":
  149422. out.Values[i] = ec._MediaImage_fileStatus(ctx, field, obj)
  149423. if out.Values[i] == graphql.Null {
  149424. invalids++
  149425. }
  149426. case "id":
  149427. out.Values[i] = ec._MediaImage_id(ctx, field, obj)
  149428. if out.Values[i] == graphql.Null {
  149429. invalids++
  149430. }
  149431. case "image":
  149432. out.Values[i] = ec._MediaImage_image(ctx, field, obj)
  149433. case "mediaContentType":
  149434. out.Values[i] = ec._MediaImage_mediaContentType(ctx, field, obj)
  149435. if out.Values[i] == graphql.Null {
  149436. invalids++
  149437. }
  149438. case "mediaErrors":
  149439. out.Values[i] = ec._MediaImage_mediaErrors(ctx, field, obj)
  149440. if out.Values[i] == graphql.Null {
  149441. invalids++
  149442. }
  149443. case "mediaWarnings":
  149444. out.Values[i] = ec._MediaImage_mediaWarnings(ctx, field, obj)
  149445. if out.Values[i] == graphql.Null {
  149446. invalids++
  149447. }
  149448. case "mimeType":
  149449. out.Values[i] = ec._MediaImage_mimeType(ctx, field, obj)
  149450. case "originalSource":
  149451. out.Values[i] = ec._MediaImage_originalSource(ctx, field, obj)
  149452. case "preview":
  149453. out.Values[i] = ec._MediaImage_preview(ctx, field, obj)
  149454. case "status":
  149455. out.Values[i] = ec._MediaImage_status(ctx, field, obj)
  149456. if out.Values[i] == graphql.Null {
  149457. invalids++
  149458. }
  149459. default:
  149460. panic("unknown field " + strconv.Quote(field.Name))
  149461. }
  149462. }
  149463. out.Dispatch()
  149464. if invalids > 0 {
  149465. return graphql.Null
  149466. }
  149467. return out
  149468. }
  149469. var mediaImageOriginalSourceImplementors = []string{"MediaImageOriginalSource"}
  149470. func (ec *executionContext) _MediaImageOriginalSource(ctx context.Context, sel ast.SelectionSet, obj *MediaImageOriginalSource) graphql.Marshaler {
  149471. fields := graphql.CollectFields(ec.OperationContext, sel, mediaImageOriginalSourceImplementors)
  149472. out := graphql.NewFieldSet(fields)
  149473. var invalids uint32
  149474. for i, field := range fields {
  149475. switch field.Name {
  149476. case "__typename":
  149477. out.Values[i] = graphql.MarshalString("MediaImageOriginalSource")
  149478. case "fileSize":
  149479. out.Values[i] = ec._MediaImageOriginalSource_fileSize(ctx, field, obj)
  149480. default:
  149481. panic("unknown field " + strconv.Quote(field.Name))
  149482. }
  149483. }
  149484. out.Dispatch()
  149485. if invalids > 0 {
  149486. return graphql.Null
  149487. }
  149488. return out
  149489. }
  149490. var mediaPreviewImageImplementors = []string{"MediaPreviewImage"}
  149491. func (ec *executionContext) _MediaPreviewImage(ctx context.Context, sel ast.SelectionSet, obj *MediaPreviewImage) graphql.Marshaler {
  149492. fields := graphql.CollectFields(ec.OperationContext, sel, mediaPreviewImageImplementors)
  149493. out := graphql.NewFieldSet(fields)
  149494. var invalids uint32
  149495. for i, field := range fields {
  149496. switch field.Name {
  149497. case "__typename":
  149498. out.Values[i] = graphql.MarshalString("MediaPreviewImage")
  149499. case "image":
  149500. out.Values[i] = ec._MediaPreviewImage_image(ctx, field, obj)
  149501. case "status":
  149502. out.Values[i] = ec._MediaPreviewImage_status(ctx, field, obj)
  149503. if out.Values[i] == graphql.Null {
  149504. invalids++
  149505. }
  149506. default:
  149507. panic("unknown field " + strconv.Quote(field.Name))
  149508. }
  149509. }
  149510. out.Dispatch()
  149511. if invalids > 0 {
  149512. return graphql.Null
  149513. }
  149514. return out
  149515. }
  149516. var mediaUserErrorImplementors = []string{"MediaUserError", "DisplayableError"}
  149517. func (ec *executionContext) _MediaUserError(ctx context.Context, sel ast.SelectionSet, obj *MediaUserError) graphql.Marshaler {
  149518. fields := graphql.CollectFields(ec.OperationContext, sel, mediaUserErrorImplementors)
  149519. out := graphql.NewFieldSet(fields)
  149520. var invalids uint32
  149521. for i, field := range fields {
  149522. switch field.Name {
  149523. case "__typename":
  149524. out.Values[i] = graphql.MarshalString("MediaUserError")
  149525. case "code":
  149526. out.Values[i] = ec._MediaUserError_code(ctx, field, obj)
  149527. case "field":
  149528. out.Values[i] = ec._MediaUserError_field(ctx, field, obj)
  149529. case "message":
  149530. out.Values[i] = ec._MediaUserError_message(ctx, field, obj)
  149531. if out.Values[i] == graphql.Null {
  149532. invalids++
  149533. }
  149534. default:
  149535. panic("unknown field " + strconv.Quote(field.Name))
  149536. }
  149537. }
  149538. out.Dispatch()
  149539. if invalids > 0 {
  149540. return graphql.Null
  149541. }
  149542. return out
  149543. }
  149544. var mediaWarningImplementors = []string{"MediaWarning"}
  149545. func (ec *executionContext) _MediaWarning(ctx context.Context, sel ast.SelectionSet, obj *MediaWarning) graphql.Marshaler {
  149546. fields := graphql.CollectFields(ec.OperationContext, sel, mediaWarningImplementors)
  149547. out := graphql.NewFieldSet(fields)
  149548. var invalids uint32
  149549. for i, field := range fields {
  149550. switch field.Name {
  149551. case "__typename":
  149552. out.Values[i] = graphql.MarshalString("MediaWarning")
  149553. case "code":
  149554. out.Values[i] = ec._MediaWarning_code(ctx, field, obj)
  149555. if out.Values[i] == graphql.Null {
  149556. invalids++
  149557. }
  149558. case "message":
  149559. out.Values[i] = ec._MediaWarning_message(ctx, field, obj)
  149560. default:
  149561. panic("unknown field " + strconv.Quote(field.Name))
  149562. }
  149563. }
  149564. out.Dispatch()
  149565. if invalids > 0 {
  149566. return graphql.Null
  149567. }
  149568. return out
  149569. }
  149570. var merchantApprovalSignalsImplementors = []string{"MerchantApprovalSignals"}
  149571. func (ec *executionContext) _MerchantApprovalSignals(ctx context.Context, sel ast.SelectionSet, obj *MerchantApprovalSignals) graphql.Marshaler {
  149572. fields := graphql.CollectFields(ec.OperationContext, sel, merchantApprovalSignalsImplementors)
  149573. out := graphql.NewFieldSet(fields)
  149574. var invalids uint32
  149575. for i, field := range fields {
  149576. switch field.Name {
  149577. case "__typename":
  149578. out.Values[i] = graphql.MarshalString("MerchantApprovalSignals")
  149579. case "identityVerified":
  149580. out.Values[i] = ec._MerchantApprovalSignals_identityVerified(ctx, field, obj)
  149581. if out.Values[i] == graphql.Null {
  149582. invalids++
  149583. }
  149584. case "verifiedByShopify":
  149585. out.Values[i] = ec._MerchantApprovalSignals_verifiedByShopify(ctx, field, obj)
  149586. if out.Values[i] == graphql.Null {
  149587. invalids++
  149588. }
  149589. default:
  149590. panic("unknown field " + strconv.Quote(field.Name))
  149591. }
  149592. }
  149593. out.Dispatch()
  149594. if invalids > 0 {
  149595. return graphql.Null
  149596. }
  149597. return out
  149598. }
  149599. var metafieldImplementors = []string{"Metafield", "LegacyInteroperability", "Node"}
  149600. func (ec *executionContext) _Metafield(ctx context.Context, sel ast.SelectionSet, obj *Metafield) graphql.Marshaler {
  149601. fields := graphql.CollectFields(ec.OperationContext, sel, metafieldImplementors)
  149602. out := graphql.NewFieldSet(fields)
  149603. var invalids uint32
  149604. for i, field := range fields {
  149605. switch field.Name {
  149606. case "__typename":
  149607. out.Values[i] = graphql.MarshalString("Metafield")
  149608. case "createdAt":
  149609. out.Values[i] = ec._Metafield_createdAt(ctx, field, obj)
  149610. if out.Values[i] == graphql.Null {
  149611. invalids++
  149612. }
  149613. case "definition":
  149614. out.Values[i] = ec._Metafield_definition(ctx, field, obj)
  149615. case "description":
  149616. out.Values[i] = ec._Metafield_description(ctx, field, obj)
  149617. case "id":
  149618. out.Values[i] = ec._Metafield_id(ctx, field, obj)
  149619. if out.Values[i] == graphql.Null {
  149620. invalids++
  149621. }
  149622. case "key":
  149623. out.Values[i] = ec._Metafield_key(ctx, field, obj)
  149624. if out.Values[i] == graphql.Null {
  149625. invalids++
  149626. }
  149627. case "legacyResourceId":
  149628. out.Values[i] = ec._Metafield_legacyResourceId(ctx, field, obj)
  149629. if out.Values[i] == graphql.Null {
  149630. invalids++
  149631. }
  149632. case "namespace":
  149633. out.Values[i] = ec._Metafield_namespace(ctx, field, obj)
  149634. if out.Values[i] == graphql.Null {
  149635. invalids++
  149636. }
  149637. case "owner":
  149638. out.Values[i] = ec._Metafield_owner(ctx, field, obj)
  149639. if out.Values[i] == graphql.Null {
  149640. invalids++
  149641. }
  149642. case "ownerType":
  149643. out.Values[i] = ec._Metafield_ownerType(ctx, field, obj)
  149644. if out.Values[i] == graphql.Null {
  149645. invalids++
  149646. }
  149647. case "reference":
  149648. out.Values[i] = ec._Metafield_reference(ctx, field, obj)
  149649. case "references":
  149650. out.Values[i] = ec._Metafield_references(ctx, field, obj)
  149651. case "type":
  149652. out.Values[i] = ec._Metafield_type(ctx, field, obj)
  149653. if out.Values[i] == graphql.Null {
  149654. invalids++
  149655. }
  149656. case "updatedAt":
  149657. out.Values[i] = ec._Metafield_updatedAt(ctx, field, obj)
  149658. if out.Values[i] == graphql.Null {
  149659. invalids++
  149660. }
  149661. case "value":
  149662. out.Values[i] = ec._Metafield_value(ctx, field, obj)
  149663. if out.Values[i] == graphql.Null {
  149664. invalids++
  149665. }
  149666. default:
  149667. panic("unknown field " + strconv.Quote(field.Name))
  149668. }
  149669. }
  149670. out.Dispatch()
  149671. if invalids > 0 {
  149672. return graphql.Null
  149673. }
  149674. return out
  149675. }
  149676. var metafieldConnectionImplementors = []string{"MetafieldConnection"}
  149677. func (ec *executionContext) _MetafieldConnection(ctx context.Context, sel ast.SelectionSet, obj *MetafieldConnection) graphql.Marshaler {
  149678. fields := graphql.CollectFields(ec.OperationContext, sel, metafieldConnectionImplementors)
  149679. out := graphql.NewFieldSet(fields)
  149680. var invalids uint32
  149681. for i, field := range fields {
  149682. switch field.Name {
  149683. case "__typename":
  149684. out.Values[i] = graphql.MarshalString("MetafieldConnection")
  149685. case "edges":
  149686. out.Values[i] = ec._MetafieldConnection_edges(ctx, field, obj)
  149687. if out.Values[i] == graphql.Null {
  149688. invalids++
  149689. }
  149690. case "nodes":
  149691. out.Values[i] = ec._MetafieldConnection_nodes(ctx, field, obj)
  149692. if out.Values[i] == graphql.Null {
  149693. invalids++
  149694. }
  149695. case "pageInfo":
  149696. out.Values[i] = ec._MetafieldConnection_pageInfo(ctx, field, obj)
  149697. if out.Values[i] == graphql.Null {
  149698. invalids++
  149699. }
  149700. default:
  149701. panic("unknown field " + strconv.Quote(field.Name))
  149702. }
  149703. }
  149704. out.Dispatch()
  149705. if invalids > 0 {
  149706. return graphql.Null
  149707. }
  149708. return out
  149709. }
  149710. var metafieldDefinitionImplementors = []string{"MetafieldDefinition", "Node"}
  149711. func (ec *executionContext) _MetafieldDefinition(ctx context.Context, sel ast.SelectionSet, obj *MetafieldDefinition) graphql.Marshaler {
  149712. fields := graphql.CollectFields(ec.OperationContext, sel, metafieldDefinitionImplementors)
  149713. out := graphql.NewFieldSet(fields)
  149714. var invalids uint32
  149715. for i, field := range fields {
  149716. switch field.Name {
  149717. case "__typename":
  149718. out.Values[i] = graphql.MarshalString("MetafieldDefinition")
  149719. case "description":
  149720. out.Values[i] = ec._MetafieldDefinition_description(ctx, field, obj)
  149721. case "id":
  149722. out.Values[i] = ec._MetafieldDefinition_id(ctx, field, obj)
  149723. if out.Values[i] == graphql.Null {
  149724. invalids++
  149725. }
  149726. case "key":
  149727. out.Values[i] = ec._MetafieldDefinition_key(ctx, field, obj)
  149728. if out.Values[i] == graphql.Null {
  149729. invalids++
  149730. }
  149731. case "metafields":
  149732. out.Values[i] = ec._MetafieldDefinition_metafields(ctx, field, obj)
  149733. if out.Values[i] == graphql.Null {
  149734. invalids++
  149735. }
  149736. case "metafieldsCount":
  149737. out.Values[i] = ec._MetafieldDefinition_metafieldsCount(ctx, field, obj)
  149738. if out.Values[i] == graphql.Null {
  149739. invalids++
  149740. }
  149741. case "name":
  149742. out.Values[i] = ec._MetafieldDefinition_name(ctx, field, obj)
  149743. if out.Values[i] == graphql.Null {
  149744. invalids++
  149745. }
  149746. case "namespace":
  149747. out.Values[i] = ec._MetafieldDefinition_namespace(ctx, field, obj)
  149748. if out.Values[i] == graphql.Null {
  149749. invalids++
  149750. }
  149751. case "ownerType":
  149752. out.Values[i] = ec._MetafieldDefinition_ownerType(ctx, field, obj)
  149753. if out.Values[i] == graphql.Null {
  149754. invalids++
  149755. }
  149756. case "pinnedPosition":
  149757. out.Values[i] = ec._MetafieldDefinition_pinnedPosition(ctx, field, obj)
  149758. case "standardTemplate":
  149759. out.Values[i] = ec._MetafieldDefinition_standardTemplate(ctx, field, obj)
  149760. case "type":
  149761. out.Values[i] = ec._MetafieldDefinition_type(ctx, field, obj)
  149762. if out.Values[i] == graphql.Null {
  149763. invalids++
  149764. }
  149765. case "validationStatus":
  149766. out.Values[i] = ec._MetafieldDefinition_validationStatus(ctx, field, obj)
  149767. if out.Values[i] == graphql.Null {
  149768. invalids++
  149769. }
  149770. case "validations":
  149771. out.Values[i] = ec._MetafieldDefinition_validations(ctx, field, obj)
  149772. if out.Values[i] == graphql.Null {
  149773. invalids++
  149774. }
  149775. case "visibleToStorefrontApi":
  149776. out.Values[i] = ec._MetafieldDefinition_visibleToStorefrontApi(ctx, field, obj)
  149777. if out.Values[i] == graphql.Null {
  149778. invalids++
  149779. }
  149780. default:
  149781. panic("unknown field " + strconv.Quote(field.Name))
  149782. }
  149783. }
  149784. out.Dispatch()
  149785. if invalids > 0 {
  149786. return graphql.Null
  149787. }
  149788. return out
  149789. }
  149790. var metafieldDefinitionConnectionImplementors = []string{"MetafieldDefinitionConnection"}
  149791. func (ec *executionContext) _MetafieldDefinitionConnection(ctx context.Context, sel ast.SelectionSet, obj *MetafieldDefinitionConnection) graphql.Marshaler {
  149792. fields := graphql.CollectFields(ec.OperationContext, sel, metafieldDefinitionConnectionImplementors)
  149793. out := graphql.NewFieldSet(fields)
  149794. var invalids uint32
  149795. for i, field := range fields {
  149796. switch field.Name {
  149797. case "__typename":
  149798. out.Values[i] = graphql.MarshalString("MetafieldDefinitionConnection")
  149799. case "edges":
  149800. out.Values[i] = ec._MetafieldDefinitionConnection_edges(ctx, field, obj)
  149801. if out.Values[i] == graphql.Null {
  149802. invalids++
  149803. }
  149804. case "nodes":
  149805. out.Values[i] = ec._MetafieldDefinitionConnection_nodes(ctx, field, obj)
  149806. if out.Values[i] == graphql.Null {
  149807. invalids++
  149808. }
  149809. case "pageInfo":
  149810. out.Values[i] = ec._MetafieldDefinitionConnection_pageInfo(ctx, field, obj)
  149811. if out.Values[i] == graphql.Null {
  149812. invalids++
  149813. }
  149814. default:
  149815. panic("unknown field " + strconv.Quote(field.Name))
  149816. }
  149817. }
  149818. out.Dispatch()
  149819. if invalids > 0 {
  149820. return graphql.Null
  149821. }
  149822. return out
  149823. }
  149824. var metafieldDefinitionEdgeImplementors = []string{"MetafieldDefinitionEdge"}
  149825. func (ec *executionContext) _MetafieldDefinitionEdge(ctx context.Context, sel ast.SelectionSet, obj *MetafieldDefinitionEdge) graphql.Marshaler {
  149826. fields := graphql.CollectFields(ec.OperationContext, sel, metafieldDefinitionEdgeImplementors)
  149827. out := graphql.NewFieldSet(fields)
  149828. var invalids uint32
  149829. for i, field := range fields {
  149830. switch field.Name {
  149831. case "__typename":
  149832. out.Values[i] = graphql.MarshalString("MetafieldDefinitionEdge")
  149833. case "cursor":
  149834. out.Values[i] = ec._MetafieldDefinitionEdge_cursor(ctx, field, obj)
  149835. if out.Values[i] == graphql.Null {
  149836. invalids++
  149837. }
  149838. case "node":
  149839. out.Values[i] = ec._MetafieldDefinitionEdge_node(ctx, field, obj)
  149840. if out.Values[i] == graphql.Null {
  149841. invalids++
  149842. }
  149843. default:
  149844. panic("unknown field " + strconv.Quote(field.Name))
  149845. }
  149846. }
  149847. out.Dispatch()
  149848. if invalids > 0 {
  149849. return graphql.Null
  149850. }
  149851. return out
  149852. }
  149853. var metafieldDefinitionSupportedValidationImplementors = []string{"MetafieldDefinitionSupportedValidation"}
  149854. func (ec *executionContext) _MetafieldDefinitionSupportedValidation(ctx context.Context, sel ast.SelectionSet, obj *MetafieldDefinitionSupportedValidation) graphql.Marshaler {
  149855. fields := graphql.CollectFields(ec.OperationContext, sel, metafieldDefinitionSupportedValidationImplementors)
  149856. out := graphql.NewFieldSet(fields)
  149857. var invalids uint32
  149858. for i, field := range fields {
  149859. switch field.Name {
  149860. case "__typename":
  149861. out.Values[i] = graphql.MarshalString("MetafieldDefinitionSupportedValidation")
  149862. case "name":
  149863. out.Values[i] = ec._MetafieldDefinitionSupportedValidation_name(ctx, field, obj)
  149864. if out.Values[i] == graphql.Null {
  149865. invalids++
  149866. }
  149867. case "type":
  149868. out.Values[i] = ec._MetafieldDefinitionSupportedValidation_type(ctx, field, obj)
  149869. if out.Values[i] == graphql.Null {
  149870. invalids++
  149871. }
  149872. default:
  149873. panic("unknown field " + strconv.Quote(field.Name))
  149874. }
  149875. }
  149876. out.Dispatch()
  149877. if invalids > 0 {
  149878. return graphql.Null
  149879. }
  149880. return out
  149881. }
  149882. var metafieldDefinitionTypeImplementors = []string{"MetafieldDefinitionType"}
  149883. func (ec *executionContext) _MetafieldDefinitionType(ctx context.Context, sel ast.SelectionSet, obj *MetafieldDefinitionType) graphql.Marshaler {
  149884. fields := graphql.CollectFields(ec.OperationContext, sel, metafieldDefinitionTypeImplementors)
  149885. out := graphql.NewFieldSet(fields)
  149886. var invalids uint32
  149887. for i, field := range fields {
  149888. switch field.Name {
  149889. case "__typename":
  149890. out.Values[i] = graphql.MarshalString("MetafieldDefinitionType")
  149891. case "category":
  149892. out.Values[i] = ec._MetafieldDefinitionType_category(ctx, field, obj)
  149893. if out.Values[i] == graphql.Null {
  149894. invalids++
  149895. }
  149896. case "name":
  149897. out.Values[i] = ec._MetafieldDefinitionType_name(ctx, field, obj)
  149898. if out.Values[i] == graphql.Null {
  149899. invalids++
  149900. }
  149901. case "supportedValidations":
  149902. out.Values[i] = ec._MetafieldDefinitionType_supportedValidations(ctx, field, obj)
  149903. if out.Values[i] == graphql.Null {
  149904. invalids++
  149905. }
  149906. case "supportsDefinitionMigrations":
  149907. out.Values[i] = ec._MetafieldDefinitionType_supportsDefinitionMigrations(ctx, field, obj)
  149908. if out.Values[i] == graphql.Null {
  149909. invalids++
  149910. }
  149911. default:
  149912. panic("unknown field " + strconv.Quote(field.Name))
  149913. }
  149914. }
  149915. out.Dispatch()
  149916. if invalids > 0 {
  149917. return graphql.Null
  149918. }
  149919. return out
  149920. }
  149921. var metafieldDefinitionValidationImplementors = []string{"MetafieldDefinitionValidation"}
  149922. func (ec *executionContext) _MetafieldDefinitionValidation(ctx context.Context, sel ast.SelectionSet, obj *MetafieldDefinitionValidation) graphql.Marshaler {
  149923. fields := graphql.CollectFields(ec.OperationContext, sel, metafieldDefinitionValidationImplementors)
  149924. out := graphql.NewFieldSet(fields)
  149925. var invalids uint32
  149926. for i, field := range fields {
  149927. switch field.Name {
  149928. case "__typename":
  149929. out.Values[i] = graphql.MarshalString("MetafieldDefinitionValidation")
  149930. case "name":
  149931. out.Values[i] = ec._MetafieldDefinitionValidation_name(ctx, field, obj)
  149932. if out.Values[i] == graphql.Null {
  149933. invalids++
  149934. }
  149935. case "type":
  149936. out.Values[i] = ec._MetafieldDefinitionValidation_type(ctx, field, obj)
  149937. if out.Values[i] == graphql.Null {
  149938. invalids++
  149939. }
  149940. case "value":
  149941. out.Values[i] = ec._MetafieldDefinitionValidation_value(ctx, field, obj)
  149942. default:
  149943. panic("unknown field " + strconv.Quote(field.Name))
  149944. }
  149945. }
  149946. out.Dispatch()
  149947. if invalids > 0 {
  149948. return graphql.Null
  149949. }
  149950. return out
  149951. }
  149952. var metafieldEdgeImplementors = []string{"MetafieldEdge"}
  149953. func (ec *executionContext) _MetafieldEdge(ctx context.Context, sel ast.SelectionSet, obj *MetafieldEdge) graphql.Marshaler {
  149954. fields := graphql.CollectFields(ec.OperationContext, sel, metafieldEdgeImplementors)
  149955. out := graphql.NewFieldSet(fields)
  149956. var invalids uint32
  149957. for i, field := range fields {
  149958. switch field.Name {
  149959. case "__typename":
  149960. out.Values[i] = graphql.MarshalString("MetafieldEdge")
  149961. case "cursor":
  149962. out.Values[i] = ec._MetafieldEdge_cursor(ctx, field, obj)
  149963. if out.Values[i] == graphql.Null {
  149964. invalids++
  149965. }
  149966. case "node":
  149967. out.Values[i] = ec._MetafieldEdge_node(ctx, field, obj)
  149968. if out.Values[i] == graphql.Null {
  149969. invalids++
  149970. }
  149971. default:
  149972. panic("unknown field " + strconv.Quote(field.Name))
  149973. }
  149974. }
  149975. out.Dispatch()
  149976. if invalids > 0 {
  149977. return graphql.Null
  149978. }
  149979. return out
  149980. }
  149981. var metafieldReferenceConnectionImplementors = []string{"MetafieldReferenceConnection"}
  149982. func (ec *executionContext) _MetafieldReferenceConnection(ctx context.Context, sel ast.SelectionSet, obj *MetafieldReferenceConnection) graphql.Marshaler {
  149983. fields := graphql.CollectFields(ec.OperationContext, sel, metafieldReferenceConnectionImplementors)
  149984. out := graphql.NewFieldSet(fields)
  149985. var invalids uint32
  149986. for i, field := range fields {
  149987. switch field.Name {
  149988. case "__typename":
  149989. out.Values[i] = graphql.MarshalString("MetafieldReferenceConnection")
  149990. case "edges":
  149991. out.Values[i] = ec._MetafieldReferenceConnection_edges(ctx, field, obj)
  149992. if out.Values[i] == graphql.Null {
  149993. invalids++
  149994. }
  149995. case "nodes":
  149996. out.Values[i] = ec._MetafieldReferenceConnection_nodes(ctx, field, obj)
  149997. if out.Values[i] == graphql.Null {
  149998. invalids++
  149999. }
  150000. case "pageInfo":
  150001. out.Values[i] = ec._MetafieldReferenceConnection_pageInfo(ctx, field, obj)
  150002. if out.Values[i] == graphql.Null {
  150003. invalids++
  150004. }
  150005. default:
  150006. panic("unknown field " + strconv.Quote(field.Name))
  150007. }
  150008. }
  150009. out.Dispatch()
  150010. if invalids > 0 {
  150011. return graphql.Null
  150012. }
  150013. return out
  150014. }
  150015. var metafieldReferenceEdgeImplementors = []string{"MetafieldReferenceEdge"}
  150016. func (ec *executionContext) _MetafieldReferenceEdge(ctx context.Context, sel ast.SelectionSet, obj *MetafieldReferenceEdge) graphql.Marshaler {
  150017. fields := graphql.CollectFields(ec.OperationContext, sel, metafieldReferenceEdgeImplementors)
  150018. out := graphql.NewFieldSet(fields)
  150019. var invalids uint32
  150020. for i, field := range fields {
  150021. switch field.Name {
  150022. case "__typename":
  150023. out.Values[i] = graphql.MarshalString("MetafieldReferenceEdge")
  150024. case "cursor":
  150025. out.Values[i] = ec._MetafieldReferenceEdge_cursor(ctx, field, obj)
  150026. if out.Values[i] == graphql.Null {
  150027. invalids++
  150028. }
  150029. case "node":
  150030. out.Values[i] = ec._MetafieldReferenceEdge_node(ctx, field, obj)
  150031. default:
  150032. panic("unknown field " + strconv.Quote(field.Name))
  150033. }
  150034. }
  150035. out.Dispatch()
  150036. if invalids > 0 {
  150037. return graphql.Null
  150038. }
  150039. return out
  150040. }
  150041. var moneyBagImplementors = []string{"MoneyBag"}
  150042. func (ec *executionContext) _MoneyBag(ctx context.Context, sel ast.SelectionSet, obj *MoneyBag) graphql.Marshaler {
  150043. fields := graphql.CollectFields(ec.OperationContext, sel, moneyBagImplementors)
  150044. out := graphql.NewFieldSet(fields)
  150045. var invalids uint32
  150046. for i, field := range fields {
  150047. switch field.Name {
  150048. case "__typename":
  150049. out.Values[i] = graphql.MarshalString("MoneyBag")
  150050. case "presentmentMoney":
  150051. out.Values[i] = ec._MoneyBag_presentmentMoney(ctx, field, obj)
  150052. if out.Values[i] == graphql.Null {
  150053. invalids++
  150054. }
  150055. case "shopMoney":
  150056. out.Values[i] = ec._MoneyBag_shopMoney(ctx, field, obj)
  150057. if out.Values[i] == graphql.Null {
  150058. invalids++
  150059. }
  150060. default:
  150061. panic("unknown field " + strconv.Quote(field.Name))
  150062. }
  150063. }
  150064. out.Dispatch()
  150065. if invalids > 0 {
  150066. return graphql.Null
  150067. }
  150068. return out
  150069. }
  150070. var moneyV2Implementors = []string{"MoneyV2", "PricingValue", "DeliveryConditionCriteria", "SellingPlanCheckoutChargeValue", "SellingPlanPricingPolicyAdjustmentValue"}
  150071. func (ec *executionContext) _MoneyV2(ctx context.Context, sel ast.SelectionSet, obj *MoneyV2) graphql.Marshaler {
  150072. fields := graphql.CollectFields(ec.OperationContext, sel, moneyV2Implementors)
  150073. out := graphql.NewFieldSet(fields)
  150074. var invalids uint32
  150075. for i, field := range fields {
  150076. switch field.Name {
  150077. case "__typename":
  150078. out.Values[i] = graphql.MarshalString("MoneyV2")
  150079. case "amount":
  150080. out.Values[i] = ec._MoneyV2_amount(ctx, field, obj)
  150081. if out.Values[i] == graphql.Null {
  150082. invalids++
  150083. }
  150084. case "currencyCode":
  150085. out.Values[i] = ec._MoneyV2_currencyCode(ctx, field, obj)
  150086. if out.Values[i] == graphql.Null {
  150087. invalids++
  150088. }
  150089. default:
  150090. panic("unknown field " + strconv.Quote(field.Name))
  150091. }
  150092. }
  150093. out.Dispatch()
  150094. if invalids > 0 {
  150095. return graphql.Null
  150096. }
  150097. return out
  150098. }
  150099. var mutationImplementors = []string{"Mutation"}
  150100. func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
  150101. fields := graphql.CollectFields(ec.OperationContext, sel, mutationImplementors)
  150102. ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
  150103. Object: "Mutation",
  150104. })
  150105. out := graphql.NewFieldSet(fields)
  150106. var invalids uint32
  150107. for i, field := range fields {
  150108. innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{
  150109. Object: field.Name,
  150110. Field: field,
  150111. })
  150112. switch field.Name {
  150113. case "__typename":
  150114. out.Values[i] = graphql.MarshalString("Mutation")
  150115. case "customerCreate":
  150116. out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
  150117. return ec._Mutation_customerCreate(ctx, field)
  150118. })
  150119. default:
  150120. panic("unknown field " + strconv.Quote(field.Name))
  150121. }
  150122. }
  150123. out.Dispatch()
  150124. if invalids > 0 {
  150125. return graphql.Null
  150126. }
  150127. return out
  150128. }
  150129. var navigationItemImplementors = []string{"NavigationItem"}
  150130. func (ec *executionContext) _NavigationItem(ctx context.Context, sel ast.SelectionSet, obj *NavigationItem) graphql.Marshaler {
  150131. fields := graphql.CollectFields(ec.OperationContext, sel, navigationItemImplementors)
  150132. out := graphql.NewFieldSet(fields)
  150133. var invalids uint32
  150134. for i, field := range fields {
  150135. switch field.Name {
  150136. case "__typename":
  150137. out.Values[i] = graphql.MarshalString("NavigationItem")
  150138. case "id":
  150139. out.Values[i] = ec._NavigationItem_id(ctx, field, obj)
  150140. if out.Values[i] == graphql.Null {
  150141. invalids++
  150142. }
  150143. case "title":
  150144. out.Values[i] = ec._NavigationItem_title(ctx, field, obj)
  150145. if out.Values[i] == graphql.Null {
  150146. invalids++
  150147. }
  150148. case "url":
  150149. out.Values[i] = ec._NavigationItem_url(ctx, field, obj)
  150150. if out.Values[i] == graphql.Null {
  150151. invalids++
  150152. }
  150153. default:
  150154. panic("unknown field " + strconv.Quote(field.Name))
  150155. }
  150156. }
  150157. out.Dispatch()
  150158. if invalids > 0 {
  150159. return graphql.Null
  150160. }
  150161. return out
  150162. }
  150163. var onlineStorePageImplementors = []string{"OnlineStorePage", "HasPublishedTranslations", "Navigable", "Node", "MetafieldReference"}
  150164. func (ec *executionContext) _OnlineStorePage(ctx context.Context, sel ast.SelectionSet, obj *OnlineStorePage) graphql.Marshaler {
  150165. fields := graphql.CollectFields(ec.OperationContext, sel, onlineStorePageImplementors)
  150166. out := graphql.NewFieldSet(fields)
  150167. var invalids uint32
  150168. for i, field := range fields {
  150169. switch field.Name {
  150170. case "__typename":
  150171. out.Values[i] = graphql.MarshalString("OnlineStorePage")
  150172. case "defaultCursor":
  150173. out.Values[i] = ec._OnlineStorePage_defaultCursor(ctx, field, obj)
  150174. if out.Values[i] == graphql.Null {
  150175. invalids++
  150176. }
  150177. case "id":
  150178. out.Values[i] = ec._OnlineStorePage_id(ctx, field, obj)
  150179. if out.Values[i] == graphql.Null {
  150180. invalids++
  150181. }
  150182. case "translations":
  150183. out.Values[i] = ec._OnlineStorePage_translations(ctx, field, obj)
  150184. if out.Values[i] == graphql.Null {
  150185. invalids++
  150186. }
  150187. default:
  150188. panic("unknown field " + strconv.Quote(field.Name))
  150189. }
  150190. }
  150191. out.Dispatch()
  150192. if invalids > 0 {
  150193. return graphql.Null
  150194. }
  150195. return out
  150196. }
  150197. var orderImplementors = []string{"Order", "CommentEventSubject", "HasEvents", "HasLocalizationExtensions", "HasMetafieldDefinitions", "HasMetafields", "LegacyInteroperability", "Node", "CommentEventEmbed"}
  150198. func (ec *executionContext) _Order(ctx context.Context, sel ast.SelectionSet, obj *Order) graphql.Marshaler {
  150199. fields := graphql.CollectFields(ec.OperationContext, sel, orderImplementors)
  150200. out := graphql.NewFieldSet(fields)
  150201. var invalids uint32
  150202. for i, field := range fields {
  150203. switch field.Name {
  150204. case "__typename":
  150205. out.Values[i] = graphql.MarshalString("Order")
  150206. case "agreements":
  150207. out.Values[i] = ec._Order_agreements(ctx, field, obj)
  150208. if out.Values[i] == graphql.Null {
  150209. invalids++
  150210. }
  150211. case "alerts":
  150212. out.Values[i] = ec._Order_alerts(ctx, field, obj)
  150213. if out.Values[i] == graphql.Null {
  150214. invalids++
  150215. }
  150216. case "app":
  150217. out.Values[i] = ec._Order_app(ctx, field, obj)
  150218. case "billingAddress":
  150219. out.Values[i] = ec._Order_billingAddress(ctx, field, obj)
  150220. case "billingAddressMatchesShippingAddress":
  150221. out.Values[i] = ec._Order_billingAddressMatchesShippingAddress(ctx, field, obj)
  150222. if out.Values[i] == graphql.Null {
  150223. invalids++
  150224. }
  150225. case "canMarkAsPaid":
  150226. out.Values[i] = ec._Order_canMarkAsPaid(ctx, field, obj)
  150227. if out.Values[i] == graphql.Null {
  150228. invalids++
  150229. }
  150230. case "canNotifyCustomer":
  150231. out.Values[i] = ec._Order_canNotifyCustomer(ctx, field, obj)
  150232. if out.Values[i] == graphql.Null {
  150233. invalids++
  150234. }
  150235. case "cancelReason":
  150236. out.Values[i] = ec._Order_cancelReason(ctx, field, obj)
  150237. case "cancelledAt":
  150238. out.Values[i] = ec._Order_cancelledAt(ctx, field, obj)
  150239. case "capturable":
  150240. out.Values[i] = ec._Order_capturable(ctx, field, obj)
  150241. if out.Values[i] == graphql.Null {
  150242. invalids++
  150243. }
  150244. case "cartDiscountAmountSet":
  150245. out.Values[i] = ec._Order_cartDiscountAmountSet(ctx, field, obj)
  150246. case "channelInformation":
  150247. out.Values[i] = ec._Order_channelInformation(ctx, field, obj)
  150248. case "clientIp":
  150249. out.Values[i] = ec._Order_clientIp(ctx, field, obj)
  150250. case "closed":
  150251. out.Values[i] = ec._Order_closed(ctx, field, obj)
  150252. if out.Values[i] == graphql.Null {
  150253. invalids++
  150254. }
  150255. case "closedAt":
  150256. out.Values[i] = ec._Order_closedAt(ctx, field, obj)
  150257. case "confirmed":
  150258. out.Values[i] = ec._Order_confirmed(ctx, field, obj)
  150259. if out.Values[i] == graphql.Null {
  150260. invalids++
  150261. }
  150262. case "createdAt":
  150263. out.Values[i] = ec._Order_createdAt(ctx, field, obj)
  150264. if out.Values[i] == graphql.Null {
  150265. invalids++
  150266. }
  150267. case "currencyCode":
  150268. out.Values[i] = ec._Order_currencyCode(ctx, field, obj)
  150269. if out.Values[i] == graphql.Null {
  150270. invalids++
  150271. }
  150272. case "currentCartDiscountAmountSet":
  150273. out.Values[i] = ec._Order_currentCartDiscountAmountSet(ctx, field, obj)
  150274. if out.Values[i] == graphql.Null {
  150275. invalids++
  150276. }
  150277. case "currentSubtotalLineItemsQuantity":
  150278. out.Values[i] = ec._Order_currentSubtotalLineItemsQuantity(ctx, field, obj)
  150279. if out.Values[i] == graphql.Null {
  150280. invalids++
  150281. }
  150282. case "currentSubtotalPriceSet":
  150283. out.Values[i] = ec._Order_currentSubtotalPriceSet(ctx, field, obj)
  150284. if out.Values[i] == graphql.Null {
  150285. invalids++
  150286. }
  150287. case "currentTaxLines":
  150288. out.Values[i] = ec._Order_currentTaxLines(ctx, field, obj)
  150289. if out.Values[i] == graphql.Null {
  150290. invalids++
  150291. }
  150292. case "currentTotalDiscountsSet":
  150293. out.Values[i] = ec._Order_currentTotalDiscountsSet(ctx, field, obj)
  150294. if out.Values[i] == graphql.Null {
  150295. invalids++
  150296. }
  150297. case "currentTotalDutiesSet":
  150298. out.Values[i] = ec._Order_currentTotalDutiesSet(ctx, field, obj)
  150299. case "currentTotalPriceSet":
  150300. out.Values[i] = ec._Order_currentTotalPriceSet(ctx, field, obj)
  150301. if out.Values[i] == graphql.Null {
  150302. invalids++
  150303. }
  150304. case "currentTotalTaxSet":
  150305. out.Values[i] = ec._Order_currentTotalTaxSet(ctx, field, obj)
  150306. if out.Values[i] == graphql.Null {
  150307. invalids++
  150308. }
  150309. case "currentTotalWeight":
  150310. out.Values[i] = ec._Order_currentTotalWeight(ctx, field, obj)
  150311. if out.Values[i] == graphql.Null {
  150312. invalids++
  150313. }
  150314. case "customAttributes":
  150315. out.Values[i] = ec._Order_customAttributes(ctx, field, obj)
  150316. if out.Values[i] == graphql.Null {
  150317. invalids++
  150318. }
  150319. case "customer":
  150320. out.Values[i] = ec._Order_customer(ctx, field, obj)
  150321. case "customerAcceptsMarketing":
  150322. out.Values[i] = ec._Order_customerAcceptsMarketing(ctx, field, obj)
  150323. if out.Values[i] == graphql.Null {
  150324. invalids++
  150325. }
  150326. case "customerJourneySummary":
  150327. out.Values[i] = ec._Order_customerJourneySummary(ctx, field, obj)
  150328. case "customerLocale":
  150329. out.Values[i] = ec._Order_customerLocale(ctx, field, obj)
  150330. case "discountApplications":
  150331. out.Values[i] = ec._Order_discountApplications(ctx, field, obj)
  150332. if out.Values[i] == graphql.Null {
  150333. invalids++
  150334. }
  150335. case "discountCode":
  150336. out.Values[i] = ec._Order_discountCode(ctx, field, obj)
  150337. case "discountCodes":
  150338. out.Values[i] = ec._Order_discountCodes(ctx, field, obj)
  150339. if out.Values[i] == graphql.Null {
  150340. invalids++
  150341. }
  150342. case "displayAddress":
  150343. out.Values[i] = ec._Order_displayAddress(ctx, field, obj)
  150344. case "displayFinancialStatus":
  150345. out.Values[i] = ec._Order_displayFinancialStatus(ctx, field, obj)
  150346. case "displayFulfillmentStatus":
  150347. out.Values[i] = ec._Order_displayFulfillmentStatus(ctx, field, obj)
  150348. if out.Values[i] == graphql.Null {
  150349. invalids++
  150350. }
  150351. case "disputes":
  150352. out.Values[i] = ec._Order_disputes(ctx, field, obj)
  150353. if out.Values[i] == graphql.Null {
  150354. invalids++
  150355. }
  150356. case "edited":
  150357. out.Values[i] = ec._Order_edited(ctx, field, obj)
  150358. if out.Values[i] == graphql.Null {
  150359. invalids++
  150360. }
  150361. case "email":
  150362. out.Values[i] = ec._Order_email(ctx, field, obj)
  150363. case "estimatedTaxes":
  150364. out.Values[i] = ec._Order_estimatedTaxes(ctx, field, obj)
  150365. if out.Values[i] == graphql.Null {
  150366. invalids++
  150367. }
  150368. case "events":
  150369. out.Values[i] = ec._Order_events(ctx, field, obj)
  150370. if out.Values[i] == graphql.Null {
  150371. invalids++
  150372. }
  150373. case "fulfillable":
  150374. out.Values[i] = ec._Order_fulfillable(ctx, field, obj)
  150375. if out.Values[i] == graphql.Null {
  150376. invalids++
  150377. }
  150378. case "fulfillmentOrders":
  150379. out.Values[i] = ec._Order_fulfillmentOrders(ctx, field, obj)
  150380. if out.Values[i] == graphql.Null {
  150381. invalids++
  150382. }
  150383. case "fulfillments":
  150384. out.Values[i] = ec._Order_fulfillments(ctx, field, obj)
  150385. if out.Values[i] == graphql.Null {
  150386. invalids++
  150387. }
  150388. case "fullyPaid":
  150389. out.Values[i] = ec._Order_fullyPaid(ctx, field, obj)
  150390. if out.Values[i] == graphql.Null {
  150391. invalids++
  150392. }
  150393. case "hasTimelineComment":
  150394. out.Values[i] = ec._Order_hasTimelineComment(ctx, field, obj)
  150395. if out.Values[i] == graphql.Null {
  150396. invalids++
  150397. }
  150398. case "id":
  150399. out.Values[i] = ec._Order_id(ctx, field, obj)
  150400. if out.Values[i] == graphql.Null {
  150401. invalids++
  150402. }
  150403. case "legacyResourceId":
  150404. out.Values[i] = ec._Order_legacyResourceId(ctx, field, obj)
  150405. if out.Values[i] == graphql.Null {
  150406. invalids++
  150407. }
  150408. case "lineItems":
  150409. out.Values[i] = ec._Order_lineItems(ctx, field, obj)
  150410. if out.Values[i] == graphql.Null {
  150411. invalids++
  150412. }
  150413. case "localizationExtensions":
  150414. out.Values[i] = ec._Order_localizationExtensions(ctx, field, obj)
  150415. if out.Values[i] == graphql.Null {
  150416. invalids++
  150417. }
  150418. case "merchantEditable":
  150419. out.Values[i] = ec._Order_merchantEditable(ctx, field, obj)
  150420. if out.Values[i] == graphql.Null {
  150421. invalids++
  150422. }
  150423. case "merchantEditableErrors":
  150424. out.Values[i] = ec._Order_merchantEditableErrors(ctx, field, obj)
  150425. if out.Values[i] == graphql.Null {
  150426. invalids++
  150427. }
  150428. case "merchantOfRecordApp":
  150429. out.Values[i] = ec._Order_merchantOfRecordApp(ctx, field, obj)
  150430. case "metafield":
  150431. out.Values[i] = ec._Order_metafield(ctx, field, obj)
  150432. case "metafieldDefinitions":
  150433. out.Values[i] = ec._Order_metafieldDefinitions(ctx, field, obj)
  150434. if out.Values[i] == graphql.Null {
  150435. invalids++
  150436. }
  150437. case "metafields":
  150438. out.Values[i] = ec._Order_metafields(ctx, field, obj)
  150439. if out.Values[i] == graphql.Null {
  150440. invalids++
  150441. }
  150442. case "name":
  150443. out.Values[i] = ec._Order_name(ctx, field, obj)
  150444. if out.Values[i] == graphql.Null {
  150445. invalids++
  150446. }
  150447. case "netPaymentSet":
  150448. out.Values[i] = ec._Order_netPaymentSet(ctx, field, obj)
  150449. if out.Values[i] == graphql.Null {
  150450. invalids++
  150451. }
  150452. case "nonFulfillableLineItems":
  150453. out.Values[i] = ec._Order_nonFulfillableLineItems(ctx, field, obj)
  150454. if out.Values[i] == graphql.Null {
  150455. invalids++
  150456. }
  150457. case "note":
  150458. out.Values[i] = ec._Order_note(ctx, field, obj)
  150459. case "originalTotalDutiesSet":
  150460. out.Values[i] = ec._Order_originalTotalDutiesSet(ctx, field, obj)
  150461. case "originalTotalPriceSet":
  150462. out.Values[i] = ec._Order_originalTotalPriceSet(ctx, field, obj)
  150463. if out.Values[i] == graphql.Null {
  150464. invalids++
  150465. }
  150466. case "paymentCollectionDetails":
  150467. out.Values[i] = ec._Order_paymentCollectionDetails(ctx, field, obj)
  150468. if out.Values[i] == graphql.Null {
  150469. invalids++
  150470. }
  150471. case "paymentGatewayNames":
  150472. out.Values[i] = ec._Order_paymentGatewayNames(ctx, field, obj)
  150473. if out.Values[i] == graphql.Null {
  150474. invalids++
  150475. }
  150476. case "paymentTerms":
  150477. out.Values[i] = ec._Order_paymentTerms(ctx, field, obj)
  150478. case "phone":
  150479. out.Values[i] = ec._Order_phone(ctx, field, obj)
  150480. case "physicalLocation":
  150481. out.Values[i] = ec._Order_physicalLocation(ctx, field, obj)
  150482. case "presentmentCurrencyCode":
  150483. out.Values[i] = ec._Order_presentmentCurrencyCode(ctx, field, obj)
  150484. if out.Values[i] == graphql.Null {
  150485. invalids++
  150486. }
  150487. case "privateMetafield":
  150488. out.Values[i] = ec._Order_privateMetafield(ctx, field, obj)
  150489. case "privateMetafields":
  150490. out.Values[i] = ec._Order_privateMetafields(ctx, field, obj)
  150491. if out.Values[i] == graphql.Null {
  150492. invalids++
  150493. }
  150494. case "processedAt":
  150495. out.Values[i] = ec._Order_processedAt(ctx, field, obj)
  150496. if out.Values[i] == graphql.Null {
  150497. invalids++
  150498. }
  150499. case "publication":
  150500. out.Values[i] = ec._Order_publication(ctx, field, obj)
  150501. case "purchasingEntity":
  150502. out.Values[i] = ec._Order_purchasingEntity(ctx, field, obj)
  150503. case "refundDiscrepancySet":
  150504. out.Values[i] = ec._Order_refundDiscrepancySet(ctx, field, obj)
  150505. if out.Values[i] == graphql.Null {
  150506. invalids++
  150507. }
  150508. case "refundable":
  150509. out.Values[i] = ec._Order_refundable(ctx, field, obj)
  150510. if out.Values[i] == graphql.Null {
  150511. invalids++
  150512. }
  150513. case "refunds":
  150514. out.Values[i] = ec._Order_refunds(ctx, field, obj)
  150515. if out.Values[i] == graphql.Null {
  150516. invalids++
  150517. }
  150518. case "registeredSourceUrl":
  150519. out.Values[i] = ec._Order_registeredSourceUrl(ctx, field, obj)
  150520. case "requiresShipping":
  150521. out.Values[i] = ec._Order_requiresShipping(ctx, field, obj)
  150522. if out.Values[i] == graphql.Null {
  150523. invalids++
  150524. }
  150525. case "restockable":
  150526. out.Values[i] = ec._Order_restockable(ctx, field, obj)
  150527. if out.Values[i] == graphql.Null {
  150528. invalids++
  150529. }
  150530. case "riskLevel":
  150531. out.Values[i] = ec._Order_riskLevel(ctx, field, obj)
  150532. if out.Values[i] == graphql.Null {
  150533. invalids++
  150534. }
  150535. case "risks":
  150536. out.Values[i] = ec._Order_risks(ctx, field, obj)
  150537. if out.Values[i] == graphql.Null {
  150538. invalids++
  150539. }
  150540. case "shippingAddress":
  150541. out.Values[i] = ec._Order_shippingAddress(ctx, field, obj)
  150542. case "shippingLine":
  150543. out.Values[i] = ec._Order_shippingLine(ctx, field, obj)
  150544. case "shippingLines":
  150545. out.Values[i] = ec._Order_shippingLines(ctx, field, obj)
  150546. if out.Values[i] == graphql.Null {
  150547. invalids++
  150548. }
  150549. case "sourceIdentifier":
  150550. out.Values[i] = ec._Order_sourceIdentifier(ctx, field, obj)
  150551. case "subtotalLineItemsQuantity":
  150552. out.Values[i] = ec._Order_subtotalLineItemsQuantity(ctx, field, obj)
  150553. if out.Values[i] == graphql.Null {
  150554. invalids++
  150555. }
  150556. case "subtotalPriceSet":
  150557. out.Values[i] = ec._Order_subtotalPriceSet(ctx, field, obj)
  150558. case "suggestedRefund":
  150559. out.Values[i] = ec._Order_suggestedRefund(ctx, field, obj)
  150560. case "tags":
  150561. out.Values[i] = ec._Order_tags(ctx, field, obj)
  150562. if out.Values[i] == graphql.Null {
  150563. invalids++
  150564. }
  150565. case "taxLines":
  150566. out.Values[i] = ec._Order_taxLines(ctx, field, obj)
  150567. if out.Values[i] == graphql.Null {
  150568. invalids++
  150569. }
  150570. case "taxesIncluded":
  150571. out.Values[i] = ec._Order_taxesIncluded(ctx, field, obj)
  150572. if out.Values[i] == graphql.Null {
  150573. invalids++
  150574. }
  150575. case "test":
  150576. out.Values[i] = ec._Order_test(ctx, field, obj)
  150577. if out.Values[i] == graphql.Null {
  150578. invalids++
  150579. }
  150580. case "totalCapturableSet":
  150581. out.Values[i] = ec._Order_totalCapturableSet(ctx, field, obj)
  150582. if out.Values[i] == graphql.Null {
  150583. invalids++
  150584. }
  150585. case "totalDiscountsSet":
  150586. out.Values[i] = ec._Order_totalDiscountsSet(ctx, field, obj)
  150587. case "totalOutstandingSet":
  150588. out.Values[i] = ec._Order_totalOutstandingSet(ctx, field, obj)
  150589. if out.Values[i] == graphql.Null {
  150590. invalids++
  150591. }
  150592. case "totalPriceSet":
  150593. out.Values[i] = ec._Order_totalPriceSet(ctx, field, obj)
  150594. if out.Values[i] == graphql.Null {
  150595. invalids++
  150596. }
  150597. case "totalReceivedSet":
  150598. out.Values[i] = ec._Order_totalReceivedSet(ctx, field, obj)
  150599. if out.Values[i] == graphql.Null {
  150600. invalids++
  150601. }
  150602. case "totalRefundedSet":
  150603. out.Values[i] = ec._Order_totalRefundedSet(ctx, field, obj)
  150604. if out.Values[i] == graphql.Null {
  150605. invalids++
  150606. }
  150607. case "totalRefundedShippingSet":
  150608. out.Values[i] = ec._Order_totalRefundedShippingSet(ctx, field, obj)
  150609. if out.Values[i] == graphql.Null {
  150610. invalids++
  150611. }
  150612. case "totalShippingPriceSet":
  150613. out.Values[i] = ec._Order_totalShippingPriceSet(ctx, field, obj)
  150614. if out.Values[i] == graphql.Null {
  150615. invalids++
  150616. }
  150617. case "totalTaxSet":
  150618. out.Values[i] = ec._Order_totalTaxSet(ctx, field, obj)
  150619. case "totalTipReceivedSet":
  150620. out.Values[i] = ec._Order_totalTipReceivedSet(ctx, field, obj)
  150621. if out.Values[i] == graphql.Null {
  150622. invalids++
  150623. }
  150624. case "totalWeight":
  150625. out.Values[i] = ec._Order_totalWeight(ctx, field, obj)
  150626. case "transactions":
  150627. out.Values[i] = ec._Order_transactions(ctx, field, obj)
  150628. if out.Values[i] == graphql.Null {
  150629. invalids++
  150630. }
  150631. case "unpaid":
  150632. out.Values[i] = ec._Order_unpaid(ctx, field, obj)
  150633. if out.Values[i] == graphql.Null {
  150634. invalids++
  150635. }
  150636. case "updatedAt":
  150637. out.Values[i] = ec._Order_updatedAt(ctx, field, obj)
  150638. if out.Values[i] == graphql.Null {
  150639. invalids++
  150640. }
  150641. default:
  150642. panic("unknown field " + strconv.Quote(field.Name))
  150643. }
  150644. }
  150645. out.Dispatch()
  150646. if invalids > 0 {
  150647. return graphql.Null
  150648. }
  150649. return out
  150650. }
  150651. var orderAppImplementors = []string{"OrderApp"}
  150652. func (ec *executionContext) _OrderApp(ctx context.Context, sel ast.SelectionSet, obj *OrderApp) graphql.Marshaler {
  150653. fields := graphql.CollectFields(ec.OperationContext, sel, orderAppImplementors)
  150654. out := graphql.NewFieldSet(fields)
  150655. var invalids uint32
  150656. for i, field := range fields {
  150657. switch field.Name {
  150658. case "__typename":
  150659. out.Values[i] = graphql.MarshalString("OrderApp")
  150660. case "icon":
  150661. out.Values[i] = ec._OrderApp_icon(ctx, field, obj)
  150662. if out.Values[i] == graphql.Null {
  150663. invalids++
  150664. }
  150665. case "id":
  150666. out.Values[i] = ec._OrderApp_id(ctx, field, obj)
  150667. if out.Values[i] == graphql.Null {
  150668. invalids++
  150669. }
  150670. case "name":
  150671. out.Values[i] = ec._OrderApp_name(ctx, field, obj)
  150672. if out.Values[i] == graphql.Null {
  150673. invalids++
  150674. }
  150675. default:
  150676. panic("unknown field " + strconv.Quote(field.Name))
  150677. }
  150678. }
  150679. out.Dispatch()
  150680. if invalids > 0 {
  150681. return graphql.Null
  150682. }
  150683. return out
  150684. }
  150685. var orderConnectionImplementors = []string{"OrderConnection"}
  150686. func (ec *executionContext) _OrderConnection(ctx context.Context, sel ast.SelectionSet, obj *OrderConnection) graphql.Marshaler {
  150687. fields := graphql.CollectFields(ec.OperationContext, sel, orderConnectionImplementors)
  150688. out := graphql.NewFieldSet(fields)
  150689. var invalids uint32
  150690. for i, field := range fields {
  150691. switch field.Name {
  150692. case "__typename":
  150693. out.Values[i] = graphql.MarshalString("OrderConnection")
  150694. case "edges":
  150695. out.Values[i] = ec._OrderConnection_edges(ctx, field, obj)
  150696. if out.Values[i] == graphql.Null {
  150697. invalids++
  150698. }
  150699. case "nodes":
  150700. out.Values[i] = ec._OrderConnection_nodes(ctx, field, obj)
  150701. if out.Values[i] == graphql.Null {
  150702. invalids++
  150703. }
  150704. case "pageInfo":
  150705. out.Values[i] = ec._OrderConnection_pageInfo(ctx, field, obj)
  150706. if out.Values[i] == graphql.Null {
  150707. invalids++
  150708. }
  150709. default:
  150710. panic("unknown field " + strconv.Quote(field.Name))
  150711. }
  150712. }
  150713. out.Dispatch()
  150714. if invalids > 0 {
  150715. return graphql.Null
  150716. }
  150717. return out
  150718. }
  150719. var orderDisputeSummaryImplementors = []string{"OrderDisputeSummary", "Node"}
  150720. func (ec *executionContext) _OrderDisputeSummary(ctx context.Context, sel ast.SelectionSet, obj *OrderDisputeSummary) graphql.Marshaler {
  150721. fields := graphql.CollectFields(ec.OperationContext, sel, orderDisputeSummaryImplementors)
  150722. out := graphql.NewFieldSet(fields)
  150723. var invalids uint32
  150724. for i, field := range fields {
  150725. switch field.Name {
  150726. case "__typename":
  150727. out.Values[i] = graphql.MarshalString("OrderDisputeSummary")
  150728. case "id":
  150729. out.Values[i] = ec._OrderDisputeSummary_id(ctx, field, obj)
  150730. if out.Values[i] == graphql.Null {
  150731. invalids++
  150732. }
  150733. case "initiatedAs":
  150734. out.Values[i] = ec._OrderDisputeSummary_initiatedAs(ctx, field, obj)
  150735. if out.Values[i] == graphql.Null {
  150736. invalids++
  150737. }
  150738. case "status":
  150739. out.Values[i] = ec._OrderDisputeSummary_status(ctx, field, obj)
  150740. if out.Values[i] == graphql.Null {
  150741. invalids++
  150742. }
  150743. default:
  150744. panic("unknown field " + strconv.Quote(field.Name))
  150745. }
  150746. }
  150747. out.Dispatch()
  150748. if invalids > 0 {
  150749. return graphql.Null
  150750. }
  150751. return out
  150752. }
  150753. var orderEdgeImplementors = []string{"OrderEdge"}
  150754. func (ec *executionContext) _OrderEdge(ctx context.Context, sel ast.SelectionSet, obj *OrderEdge) graphql.Marshaler {
  150755. fields := graphql.CollectFields(ec.OperationContext, sel, orderEdgeImplementors)
  150756. out := graphql.NewFieldSet(fields)
  150757. var invalids uint32
  150758. for i, field := range fields {
  150759. switch field.Name {
  150760. case "__typename":
  150761. out.Values[i] = graphql.MarshalString("OrderEdge")
  150762. case "cursor":
  150763. out.Values[i] = ec._OrderEdge_cursor(ctx, field, obj)
  150764. if out.Values[i] == graphql.Null {
  150765. invalids++
  150766. }
  150767. case "node":
  150768. out.Values[i] = ec._OrderEdge_node(ctx, field, obj)
  150769. if out.Values[i] == graphql.Null {
  150770. invalids++
  150771. }
  150772. default:
  150773. panic("unknown field " + strconv.Quote(field.Name))
  150774. }
  150775. }
  150776. out.Dispatch()
  150777. if invalids > 0 {
  150778. return graphql.Null
  150779. }
  150780. return out
  150781. }
  150782. var orderPaymentCollectionDetailsImplementors = []string{"OrderPaymentCollectionDetails"}
  150783. func (ec *executionContext) _OrderPaymentCollectionDetails(ctx context.Context, sel ast.SelectionSet, obj *OrderPaymentCollectionDetails) graphql.Marshaler {
  150784. fields := graphql.CollectFields(ec.OperationContext, sel, orderPaymentCollectionDetailsImplementors)
  150785. out := graphql.NewFieldSet(fields)
  150786. var invalids uint32
  150787. for i, field := range fields {
  150788. switch field.Name {
  150789. case "__typename":
  150790. out.Values[i] = graphql.MarshalString("OrderPaymentCollectionDetails")
  150791. case "additionalPaymentCollectionUrl":
  150792. out.Values[i] = ec._OrderPaymentCollectionDetails_additionalPaymentCollectionUrl(ctx, field, obj)
  150793. case "vaultedPaymentMethods":
  150794. out.Values[i] = ec._OrderPaymentCollectionDetails_vaultedPaymentMethods(ctx, field, obj)
  150795. default:
  150796. panic("unknown field " + strconv.Quote(field.Name))
  150797. }
  150798. }
  150799. out.Dispatch()
  150800. if invalids > 0 {
  150801. return graphql.Null
  150802. }
  150803. return out
  150804. }
  150805. var orderRiskImplementors = []string{"OrderRisk"}
  150806. func (ec *executionContext) _OrderRisk(ctx context.Context, sel ast.SelectionSet, obj *OrderRisk) graphql.Marshaler {
  150807. fields := graphql.CollectFields(ec.OperationContext, sel, orderRiskImplementors)
  150808. out := graphql.NewFieldSet(fields)
  150809. var invalids uint32
  150810. for i, field := range fields {
  150811. switch field.Name {
  150812. case "__typename":
  150813. out.Values[i] = graphql.MarshalString("OrderRisk")
  150814. case "display":
  150815. out.Values[i] = ec._OrderRisk_display(ctx, field, obj)
  150816. if out.Values[i] == graphql.Null {
  150817. invalids++
  150818. }
  150819. case "level":
  150820. out.Values[i] = ec._OrderRisk_level(ctx, field, obj)
  150821. case "message":
  150822. out.Values[i] = ec._OrderRisk_message(ctx, field, obj)
  150823. default:
  150824. panic("unknown field " + strconv.Quote(field.Name))
  150825. }
  150826. }
  150827. out.Dispatch()
  150828. if invalids > 0 {
  150829. return graphql.Null
  150830. }
  150831. return out
  150832. }
  150833. var orderTransactionImplementors = []string{"OrderTransaction", "Node"}
  150834. func (ec *executionContext) _OrderTransaction(ctx context.Context, sel ast.SelectionSet, obj *OrderTransaction) graphql.Marshaler {
  150835. fields := graphql.CollectFields(ec.OperationContext, sel, orderTransactionImplementors)
  150836. out := graphql.NewFieldSet(fields)
  150837. var invalids uint32
  150838. for i, field := range fields {
  150839. switch field.Name {
  150840. case "__typename":
  150841. out.Values[i] = graphql.MarshalString("OrderTransaction")
  150842. case "accountNumber":
  150843. out.Values[i] = ec._OrderTransaction_accountNumber(ctx, field, obj)
  150844. case "amountSet":
  150845. out.Values[i] = ec._OrderTransaction_amountSet(ctx, field, obj)
  150846. if out.Values[i] == graphql.Null {
  150847. invalids++
  150848. }
  150849. case "authorizationCode":
  150850. out.Values[i] = ec._OrderTransaction_authorizationCode(ctx, field, obj)
  150851. case "authorizationExpiresAt":
  150852. out.Values[i] = ec._OrderTransaction_authorizationExpiresAt(ctx, field, obj)
  150853. case "createdAt":
  150854. out.Values[i] = ec._OrderTransaction_createdAt(ctx, field, obj)
  150855. if out.Values[i] == graphql.Null {
  150856. invalids++
  150857. }
  150858. case "errorCode":
  150859. out.Values[i] = ec._OrderTransaction_errorCode(ctx, field, obj)
  150860. case "fees":
  150861. out.Values[i] = ec._OrderTransaction_fees(ctx, field, obj)
  150862. if out.Values[i] == graphql.Null {
  150863. invalids++
  150864. }
  150865. case "formattedGateway":
  150866. out.Values[i] = ec._OrderTransaction_formattedGateway(ctx, field, obj)
  150867. case "gateway":
  150868. out.Values[i] = ec._OrderTransaction_gateway(ctx, field, obj)
  150869. case "id":
  150870. out.Values[i] = ec._OrderTransaction_id(ctx, field, obj)
  150871. if out.Values[i] == graphql.Null {
  150872. invalids++
  150873. }
  150874. case "kind":
  150875. out.Values[i] = ec._OrderTransaction_kind(ctx, field, obj)
  150876. if out.Values[i] == graphql.Null {
  150877. invalids++
  150878. }
  150879. case "manuallyCapturable":
  150880. out.Values[i] = ec._OrderTransaction_manuallyCapturable(ctx, field, obj)
  150881. if out.Values[i] == graphql.Null {
  150882. invalids++
  150883. }
  150884. case "maximumRefundableV2":
  150885. out.Values[i] = ec._OrderTransaction_maximumRefundableV2(ctx, field, obj)
  150886. case "order":
  150887. out.Values[i] = ec._OrderTransaction_order(ctx, field, obj)
  150888. case "parentTransaction":
  150889. out.Values[i] = ec._OrderTransaction_parentTransaction(ctx, field, obj)
  150890. case "paymentIcon":
  150891. out.Values[i] = ec._OrderTransaction_paymentIcon(ctx, field, obj)
  150892. case "processedAt":
  150893. out.Values[i] = ec._OrderTransaction_processedAt(ctx, field, obj)
  150894. case "receiptJson":
  150895. out.Values[i] = ec._OrderTransaction_receiptJson(ctx, field, obj)
  150896. case "settlementCurrency":
  150897. out.Values[i] = ec._OrderTransaction_settlementCurrency(ctx, field, obj)
  150898. case "settlementCurrencyRate":
  150899. out.Values[i] = ec._OrderTransaction_settlementCurrencyRate(ctx, field, obj)
  150900. case "shopifyPaymentsSet":
  150901. out.Values[i] = ec._OrderTransaction_shopifyPaymentsSet(ctx, field, obj)
  150902. case "status":
  150903. out.Values[i] = ec._OrderTransaction_status(ctx, field, obj)
  150904. if out.Values[i] == graphql.Null {
  150905. invalids++
  150906. }
  150907. case "test":
  150908. out.Values[i] = ec._OrderTransaction_test(ctx, field, obj)
  150909. if out.Values[i] == graphql.Null {
  150910. invalids++
  150911. }
  150912. case "totalUnsettledSet":
  150913. out.Values[i] = ec._OrderTransaction_totalUnsettledSet(ctx, field, obj)
  150914. case "user":
  150915. out.Values[i] = ec._OrderTransaction_user(ctx, field, obj)
  150916. default:
  150917. panic("unknown field " + strconv.Quote(field.Name))
  150918. }
  150919. }
  150920. out.Dispatch()
  150921. if invalids > 0 {
  150922. return graphql.Null
  150923. }
  150924. return out
  150925. }
  150926. var orderTransactionConnectionImplementors = []string{"OrderTransactionConnection"}
  150927. func (ec *executionContext) _OrderTransactionConnection(ctx context.Context, sel ast.SelectionSet, obj *OrderTransactionConnection) graphql.Marshaler {
  150928. fields := graphql.CollectFields(ec.OperationContext, sel, orderTransactionConnectionImplementors)
  150929. out := graphql.NewFieldSet(fields)
  150930. var invalids uint32
  150931. for i, field := range fields {
  150932. switch field.Name {
  150933. case "__typename":
  150934. out.Values[i] = graphql.MarshalString("OrderTransactionConnection")
  150935. case "edges":
  150936. out.Values[i] = ec._OrderTransactionConnection_edges(ctx, field, obj)
  150937. if out.Values[i] == graphql.Null {
  150938. invalids++
  150939. }
  150940. case "nodes":
  150941. out.Values[i] = ec._OrderTransactionConnection_nodes(ctx, field, obj)
  150942. if out.Values[i] == graphql.Null {
  150943. invalids++
  150944. }
  150945. case "pageInfo":
  150946. out.Values[i] = ec._OrderTransactionConnection_pageInfo(ctx, field, obj)
  150947. if out.Values[i] == graphql.Null {
  150948. invalids++
  150949. }
  150950. default:
  150951. panic("unknown field " + strconv.Quote(field.Name))
  150952. }
  150953. }
  150954. out.Dispatch()
  150955. if invalids > 0 {
  150956. return graphql.Null
  150957. }
  150958. return out
  150959. }
  150960. var orderTransactionEdgeImplementors = []string{"OrderTransactionEdge"}
  150961. func (ec *executionContext) _OrderTransactionEdge(ctx context.Context, sel ast.SelectionSet, obj *OrderTransactionEdge) graphql.Marshaler {
  150962. fields := graphql.CollectFields(ec.OperationContext, sel, orderTransactionEdgeImplementors)
  150963. out := graphql.NewFieldSet(fields)
  150964. var invalids uint32
  150965. for i, field := range fields {
  150966. switch field.Name {
  150967. case "__typename":
  150968. out.Values[i] = graphql.MarshalString("OrderTransactionEdge")
  150969. case "cursor":
  150970. out.Values[i] = ec._OrderTransactionEdge_cursor(ctx, field, obj)
  150971. if out.Values[i] == graphql.Null {
  150972. invalids++
  150973. }
  150974. case "node":
  150975. out.Values[i] = ec._OrderTransactionEdge_node(ctx, field, obj)
  150976. if out.Values[i] == graphql.Null {
  150977. invalids++
  150978. }
  150979. default:
  150980. panic("unknown field " + strconv.Quote(field.Name))
  150981. }
  150982. }
  150983. out.Dispatch()
  150984. if invalids > 0 {
  150985. return graphql.Null
  150986. }
  150987. return out
  150988. }
  150989. var pageInfoImplementors = []string{"PageInfo"}
  150990. func (ec *executionContext) _PageInfo(ctx context.Context, sel ast.SelectionSet, obj *PageInfo) graphql.Marshaler {
  150991. fields := graphql.CollectFields(ec.OperationContext, sel, pageInfoImplementors)
  150992. out := graphql.NewFieldSet(fields)
  150993. var invalids uint32
  150994. for i, field := range fields {
  150995. switch field.Name {
  150996. case "__typename":
  150997. out.Values[i] = graphql.MarshalString("PageInfo")
  150998. case "endCursor":
  150999. out.Values[i] = ec._PageInfo_endCursor(ctx, field, obj)
  151000. case "hasNextPage":
  151001. out.Values[i] = ec._PageInfo_hasNextPage(ctx, field, obj)
  151002. if out.Values[i] == graphql.Null {
  151003. invalids++
  151004. }
  151005. case "hasPreviousPage":
  151006. out.Values[i] = ec._PageInfo_hasPreviousPage(ctx, field, obj)
  151007. if out.Values[i] == graphql.Null {
  151008. invalids++
  151009. }
  151010. case "startCursor":
  151011. out.Values[i] = ec._PageInfo_startCursor(ctx, field, obj)
  151012. default:
  151013. panic("unknown field " + strconv.Quote(field.Name))
  151014. }
  151015. }
  151016. out.Dispatch()
  151017. if invalids > 0 {
  151018. return graphql.Null
  151019. }
  151020. return out
  151021. }
  151022. var paymentMandateImplementors = []string{"PaymentMandate", "Node"}
  151023. func (ec *executionContext) _PaymentMandate(ctx context.Context, sel ast.SelectionSet, obj *PaymentMandate) graphql.Marshaler {
  151024. fields := graphql.CollectFields(ec.OperationContext, sel, paymentMandateImplementors)
  151025. out := graphql.NewFieldSet(fields)
  151026. var invalids uint32
  151027. for i, field := range fields {
  151028. switch field.Name {
  151029. case "__typename":
  151030. out.Values[i] = graphql.MarshalString("PaymentMandate")
  151031. case "id":
  151032. out.Values[i] = ec._PaymentMandate_id(ctx, field, obj)
  151033. if out.Values[i] == graphql.Null {
  151034. invalids++
  151035. }
  151036. case "paymentInstrument":
  151037. out.Values[i] = ec._PaymentMandate_paymentInstrument(ctx, field, obj)
  151038. if out.Values[i] == graphql.Null {
  151039. invalids++
  151040. }
  151041. default:
  151042. panic("unknown field " + strconv.Quote(field.Name))
  151043. }
  151044. }
  151045. out.Dispatch()
  151046. if invalids > 0 {
  151047. return graphql.Null
  151048. }
  151049. return out
  151050. }
  151051. var paymentScheduleImplementors = []string{"PaymentSchedule", "Node"}
  151052. func (ec *executionContext) _PaymentSchedule(ctx context.Context, sel ast.SelectionSet, obj *PaymentSchedule) graphql.Marshaler {
  151053. fields := graphql.CollectFields(ec.OperationContext, sel, paymentScheduleImplementors)
  151054. out := graphql.NewFieldSet(fields)
  151055. var invalids uint32
  151056. for i, field := range fields {
  151057. switch field.Name {
  151058. case "__typename":
  151059. out.Values[i] = graphql.MarshalString("PaymentSchedule")
  151060. case "amount":
  151061. out.Values[i] = ec._PaymentSchedule_amount(ctx, field, obj)
  151062. if out.Values[i] == graphql.Null {
  151063. invalids++
  151064. }
  151065. case "completedAt":
  151066. out.Values[i] = ec._PaymentSchedule_completedAt(ctx, field, obj)
  151067. case "dueAt":
  151068. out.Values[i] = ec._PaymentSchedule_dueAt(ctx, field, obj)
  151069. case "id":
  151070. out.Values[i] = ec._PaymentSchedule_id(ctx, field, obj)
  151071. if out.Values[i] == graphql.Null {
  151072. invalids++
  151073. }
  151074. case "issuedAt":
  151075. out.Values[i] = ec._PaymentSchedule_issuedAt(ctx, field, obj)
  151076. default:
  151077. panic("unknown field " + strconv.Quote(field.Name))
  151078. }
  151079. }
  151080. out.Dispatch()
  151081. if invalids > 0 {
  151082. return graphql.Null
  151083. }
  151084. return out
  151085. }
  151086. var paymentScheduleConnectionImplementors = []string{"PaymentScheduleConnection"}
  151087. func (ec *executionContext) _PaymentScheduleConnection(ctx context.Context, sel ast.SelectionSet, obj *PaymentScheduleConnection) graphql.Marshaler {
  151088. fields := graphql.CollectFields(ec.OperationContext, sel, paymentScheduleConnectionImplementors)
  151089. out := graphql.NewFieldSet(fields)
  151090. var invalids uint32
  151091. for i, field := range fields {
  151092. switch field.Name {
  151093. case "__typename":
  151094. out.Values[i] = graphql.MarshalString("PaymentScheduleConnection")
  151095. case "edges":
  151096. out.Values[i] = ec._PaymentScheduleConnection_edges(ctx, field, obj)
  151097. if out.Values[i] == graphql.Null {
  151098. invalids++
  151099. }
  151100. case "nodes":
  151101. out.Values[i] = ec._PaymentScheduleConnection_nodes(ctx, field, obj)
  151102. if out.Values[i] == graphql.Null {
  151103. invalids++
  151104. }
  151105. case "pageInfo":
  151106. out.Values[i] = ec._PaymentScheduleConnection_pageInfo(ctx, field, obj)
  151107. if out.Values[i] == graphql.Null {
  151108. invalids++
  151109. }
  151110. default:
  151111. panic("unknown field " + strconv.Quote(field.Name))
  151112. }
  151113. }
  151114. out.Dispatch()
  151115. if invalids > 0 {
  151116. return graphql.Null
  151117. }
  151118. return out
  151119. }
  151120. var paymentScheduleEdgeImplementors = []string{"PaymentScheduleEdge"}
  151121. func (ec *executionContext) _PaymentScheduleEdge(ctx context.Context, sel ast.SelectionSet, obj *PaymentScheduleEdge) graphql.Marshaler {
  151122. fields := graphql.CollectFields(ec.OperationContext, sel, paymentScheduleEdgeImplementors)
  151123. out := graphql.NewFieldSet(fields)
  151124. var invalids uint32
  151125. for i, field := range fields {
  151126. switch field.Name {
  151127. case "__typename":
  151128. out.Values[i] = graphql.MarshalString("PaymentScheduleEdge")
  151129. case "cursor":
  151130. out.Values[i] = ec._PaymentScheduleEdge_cursor(ctx, field, obj)
  151131. if out.Values[i] == graphql.Null {
  151132. invalids++
  151133. }
  151134. case "node":
  151135. out.Values[i] = ec._PaymentScheduleEdge_node(ctx, field, obj)
  151136. if out.Values[i] == graphql.Null {
  151137. invalids++
  151138. }
  151139. default:
  151140. panic("unknown field " + strconv.Quote(field.Name))
  151141. }
  151142. }
  151143. out.Dispatch()
  151144. if invalids > 0 {
  151145. return graphql.Null
  151146. }
  151147. return out
  151148. }
  151149. var paymentSettingsImplementors = []string{"PaymentSettings"}
  151150. func (ec *executionContext) _PaymentSettings(ctx context.Context, sel ast.SelectionSet, obj *PaymentSettings) graphql.Marshaler {
  151151. fields := graphql.CollectFields(ec.OperationContext, sel, paymentSettingsImplementors)
  151152. out := graphql.NewFieldSet(fields)
  151153. var invalids uint32
  151154. for i, field := range fields {
  151155. switch field.Name {
  151156. case "__typename":
  151157. out.Values[i] = graphql.MarshalString("PaymentSettings")
  151158. case "supportedDigitalWallets":
  151159. out.Values[i] = ec._PaymentSettings_supportedDigitalWallets(ctx, field, obj)
  151160. if out.Values[i] == graphql.Null {
  151161. invalids++
  151162. }
  151163. default:
  151164. panic("unknown field " + strconv.Quote(field.Name))
  151165. }
  151166. }
  151167. out.Dispatch()
  151168. if invalids > 0 {
  151169. return graphql.Null
  151170. }
  151171. return out
  151172. }
  151173. var paymentTermsImplementors = []string{"PaymentTerms", "Node"}
  151174. func (ec *executionContext) _PaymentTerms(ctx context.Context, sel ast.SelectionSet, obj *PaymentTerms) graphql.Marshaler {
  151175. fields := graphql.CollectFields(ec.OperationContext, sel, paymentTermsImplementors)
  151176. out := graphql.NewFieldSet(fields)
  151177. var invalids uint32
  151178. for i, field := range fields {
  151179. switch field.Name {
  151180. case "__typename":
  151181. out.Values[i] = graphql.MarshalString("PaymentTerms")
  151182. case "dueInDays":
  151183. out.Values[i] = ec._PaymentTerms_dueInDays(ctx, field, obj)
  151184. case "id":
  151185. out.Values[i] = ec._PaymentTerms_id(ctx, field, obj)
  151186. if out.Values[i] == graphql.Null {
  151187. invalids++
  151188. }
  151189. case "overdue":
  151190. out.Values[i] = ec._PaymentTerms_overdue(ctx, field, obj)
  151191. if out.Values[i] == graphql.Null {
  151192. invalids++
  151193. }
  151194. case "paymentSchedules":
  151195. out.Values[i] = ec._PaymentTerms_paymentSchedules(ctx, field, obj)
  151196. if out.Values[i] == graphql.Null {
  151197. invalids++
  151198. }
  151199. case "paymentTermsName":
  151200. out.Values[i] = ec._PaymentTerms_paymentTermsName(ctx, field, obj)
  151201. if out.Values[i] == graphql.Null {
  151202. invalids++
  151203. }
  151204. case "paymentTermsType":
  151205. out.Values[i] = ec._PaymentTerms_paymentTermsType(ctx, field, obj)
  151206. if out.Values[i] == graphql.Null {
  151207. invalids++
  151208. }
  151209. case "translatedName":
  151210. out.Values[i] = ec._PaymentTerms_translatedName(ctx, field, obj)
  151211. if out.Values[i] == graphql.Null {
  151212. invalids++
  151213. }
  151214. default:
  151215. panic("unknown field " + strconv.Quote(field.Name))
  151216. }
  151217. }
  151218. out.Dispatch()
  151219. if invalids > 0 {
  151220. return graphql.Null
  151221. }
  151222. return out
  151223. }
  151224. var paymentTermsTemplateImplementors = []string{"PaymentTermsTemplate", "Node"}
  151225. func (ec *executionContext) _PaymentTermsTemplate(ctx context.Context, sel ast.SelectionSet, obj *PaymentTermsTemplate) graphql.Marshaler {
  151226. fields := graphql.CollectFields(ec.OperationContext, sel, paymentTermsTemplateImplementors)
  151227. out := graphql.NewFieldSet(fields)
  151228. var invalids uint32
  151229. for i, field := range fields {
  151230. switch field.Name {
  151231. case "__typename":
  151232. out.Values[i] = graphql.MarshalString("PaymentTermsTemplate")
  151233. case "description":
  151234. out.Values[i] = ec._PaymentTermsTemplate_description(ctx, field, obj)
  151235. if out.Values[i] == graphql.Null {
  151236. invalids++
  151237. }
  151238. case "dueInDays":
  151239. out.Values[i] = ec._PaymentTermsTemplate_dueInDays(ctx, field, obj)
  151240. case "id":
  151241. out.Values[i] = ec._PaymentTermsTemplate_id(ctx, field, obj)
  151242. if out.Values[i] == graphql.Null {
  151243. invalids++
  151244. }
  151245. case "name":
  151246. out.Values[i] = ec._PaymentTermsTemplate_name(ctx, field, obj)
  151247. if out.Values[i] == graphql.Null {
  151248. invalids++
  151249. }
  151250. case "paymentTermsType":
  151251. out.Values[i] = ec._PaymentTermsTemplate_paymentTermsType(ctx, field, obj)
  151252. if out.Values[i] == graphql.Null {
  151253. invalids++
  151254. }
  151255. case "translatedName":
  151256. out.Values[i] = ec._PaymentTermsTemplate_translatedName(ctx, field, obj)
  151257. if out.Values[i] == graphql.Null {
  151258. invalids++
  151259. }
  151260. default:
  151261. panic("unknown field " + strconv.Quote(field.Name))
  151262. }
  151263. }
  151264. out.Dispatch()
  151265. if invalids > 0 {
  151266. return graphql.Null
  151267. }
  151268. return out
  151269. }
  151270. var priceListImplementors = []string{"PriceList", "Node"}
  151271. func (ec *executionContext) _PriceList(ctx context.Context, sel ast.SelectionSet, obj *PriceList) graphql.Marshaler {
  151272. fields := graphql.CollectFields(ec.OperationContext, sel, priceListImplementors)
  151273. out := graphql.NewFieldSet(fields)
  151274. var invalids uint32
  151275. for i, field := range fields {
  151276. switch field.Name {
  151277. case "__typename":
  151278. out.Values[i] = graphql.MarshalString("PriceList")
  151279. case "contextRule":
  151280. out.Values[i] = ec._PriceList_contextRule(ctx, field, obj)
  151281. case "currency":
  151282. out.Values[i] = ec._PriceList_currency(ctx, field, obj)
  151283. if out.Values[i] == graphql.Null {
  151284. invalids++
  151285. }
  151286. case "id":
  151287. out.Values[i] = ec._PriceList_id(ctx, field, obj)
  151288. if out.Values[i] == graphql.Null {
  151289. invalids++
  151290. }
  151291. case "name":
  151292. out.Values[i] = ec._PriceList_name(ctx, field, obj)
  151293. if out.Values[i] == graphql.Null {
  151294. invalids++
  151295. }
  151296. case "parent":
  151297. out.Values[i] = ec._PriceList_parent(ctx, field, obj)
  151298. case "prices":
  151299. out.Values[i] = ec._PriceList_prices(ctx, field, obj)
  151300. if out.Values[i] == graphql.Null {
  151301. invalids++
  151302. }
  151303. default:
  151304. panic("unknown field " + strconv.Quote(field.Name))
  151305. }
  151306. }
  151307. out.Dispatch()
  151308. if invalids > 0 {
  151309. return graphql.Null
  151310. }
  151311. return out
  151312. }
  151313. var priceListAdjustmentImplementors = []string{"PriceListAdjustment"}
  151314. func (ec *executionContext) _PriceListAdjustment(ctx context.Context, sel ast.SelectionSet, obj *PriceListAdjustment) graphql.Marshaler {
  151315. fields := graphql.CollectFields(ec.OperationContext, sel, priceListAdjustmentImplementors)
  151316. out := graphql.NewFieldSet(fields)
  151317. var invalids uint32
  151318. for i, field := range fields {
  151319. switch field.Name {
  151320. case "__typename":
  151321. out.Values[i] = graphql.MarshalString("PriceListAdjustment")
  151322. case "type":
  151323. out.Values[i] = ec._PriceListAdjustment_type(ctx, field, obj)
  151324. if out.Values[i] == graphql.Null {
  151325. invalids++
  151326. }
  151327. case "value":
  151328. out.Values[i] = ec._PriceListAdjustment_value(ctx, field, obj)
  151329. if out.Values[i] == graphql.Null {
  151330. invalids++
  151331. }
  151332. default:
  151333. panic("unknown field " + strconv.Quote(field.Name))
  151334. }
  151335. }
  151336. out.Dispatch()
  151337. if invalids > 0 {
  151338. return graphql.Null
  151339. }
  151340. return out
  151341. }
  151342. var priceListContextRuleImplementors = []string{"PriceListContextRule"}
  151343. func (ec *executionContext) _PriceListContextRule(ctx context.Context, sel ast.SelectionSet, obj *PriceListContextRule) graphql.Marshaler {
  151344. fields := graphql.CollectFields(ec.OperationContext, sel, priceListContextRuleImplementors)
  151345. out := graphql.NewFieldSet(fields)
  151346. var invalids uint32
  151347. for i, field := range fields {
  151348. switch field.Name {
  151349. case "__typename":
  151350. out.Values[i] = graphql.MarshalString("PriceListContextRule")
  151351. case "countries":
  151352. out.Values[i] = ec._PriceListContextRule_countries(ctx, field, obj)
  151353. if out.Values[i] == graphql.Null {
  151354. invalids++
  151355. }
  151356. case "market":
  151357. out.Values[i] = ec._PriceListContextRule_market(ctx, field, obj)
  151358. default:
  151359. panic("unknown field " + strconv.Quote(field.Name))
  151360. }
  151361. }
  151362. out.Dispatch()
  151363. if invalids > 0 {
  151364. return graphql.Null
  151365. }
  151366. return out
  151367. }
  151368. var priceListParentImplementors = []string{"PriceListParent"}
  151369. func (ec *executionContext) _PriceListParent(ctx context.Context, sel ast.SelectionSet, obj *PriceListParent) graphql.Marshaler {
  151370. fields := graphql.CollectFields(ec.OperationContext, sel, priceListParentImplementors)
  151371. out := graphql.NewFieldSet(fields)
  151372. var invalids uint32
  151373. for i, field := range fields {
  151374. switch field.Name {
  151375. case "__typename":
  151376. out.Values[i] = graphql.MarshalString("PriceListParent")
  151377. case "adjustment":
  151378. out.Values[i] = ec._PriceListParent_adjustment(ctx, field, obj)
  151379. if out.Values[i] == graphql.Null {
  151380. invalids++
  151381. }
  151382. default:
  151383. panic("unknown field " + strconv.Quote(field.Name))
  151384. }
  151385. }
  151386. out.Dispatch()
  151387. if invalids > 0 {
  151388. return graphql.Null
  151389. }
  151390. return out
  151391. }
  151392. var priceListPriceImplementors = []string{"PriceListPrice"}
  151393. func (ec *executionContext) _PriceListPrice(ctx context.Context, sel ast.SelectionSet, obj *PriceListPrice) graphql.Marshaler {
  151394. fields := graphql.CollectFields(ec.OperationContext, sel, priceListPriceImplementors)
  151395. out := graphql.NewFieldSet(fields)
  151396. var invalids uint32
  151397. for i, field := range fields {
  151398. switch field.Name {
  151399. case "__typename":
  151400. out.Values[i] = graphql.MarshalString("PriceListPrice")
  151401. case "compareAtPrice":
  151402. out.Values[i] = ec._PriceListPrice_compareAtPrice(ctx, field, obj)
  151403. case "originType":
  151404. out.Values[i] = ec._PriceListPrice_originType(ctx, field, obj)
  151405. if out.Values[i] == graphql.Null {
  151406. invalids++
  151407. }
  151408. case "price":
  151409. out.Values[i] = ec._PriceListPrice_price(ctx, field, obj)
  151410. if out.Values[i] == graphql.Null {
  151411. invalids++
  151412. }
  151413. case "variant":
  151414. out.Values[i] = ec._PriceListPrice_variant(ctx, field, obj)
  151415. if out.Values[i] == graphql.Null {
  151416. invalids++
  151417. }
  151418. default:
  151419. panic("unknown field " + strconv.Quote(field.Name))
  151420. }
  151421. }
  151422. out.Dispatch()
  151423. if invalids > 0 {
  151424. return graphql.Null
  151425. }
  151426. return out
  151427. }
  151428. var priceListPriceConnectionImplementors = []string{"PriceListPriceConnection"}
  151429. func (ec *executionContext) _PriceListPriceConnection(ctx context.Context, sel ast.SelectionSet, obj *PriceListPriceConnection) graphql.Marshaler {
  151430. fields := graphql.CollectFields(ec.OperationContext, sel, priceListPriceConnectionImplementors)
  151431. out := graphql.NewFieldSet(fields)
  151432. var invalids uint32
  151433. for i, field := range fields {
  151434. switch field.Name {
  151435. case "__typename":
  151436. out.Values[i] = graphql.MarshalString("PriceListPriceConnection")
  151437. case "edges":
  151438. out.Values[i] = ec._PriceListPriceConnection_edges(ctx, field, obj)
  151439. if out.Values[i] == graphql.Null {
  151440. invalids++
  151441. }
  151442. case "nodes":
  151443. out.Values[i] = ec._PriceListPriceConnection_nodes(ctx, field, obj)
  151444. if out.Values[i] == graphql.Null {
  151445. invalids++
  151446. }
  151447. case "pageInfo":
  151448. out.Values[i] = ec._PriceListPriceConnection_pageInfo(ctx, field, obj)
  151449. if out.Values[i] == graphql.Null {
  151450. invalids++
  151451. }
  151452. default:
  151453. panic("unknown field " + strconv.Quote(field.Name))
  151454. }
  151455. }
  151456. out.Dispatch()
  151457. if invalids > 0 {
  151458. return graphql.Null
  151459. }
  151460. return out
  151461. }
  151462. var priceListPriceEdgeImplementors = []string{"PriceListPriceEdge"}
  151463. func (ec *executionContext) _PriceListPriceEdge(ctx context.Context, sel ast.SelectionSet, obj *PriceListPriceEdge) graphql.Marshaler {
  151464. fields := graphql.CollectFields(ec.OperationContext, sel, priceListPriceEdgeImplementors)
  151465. out := graphql.NewFieldSet(fields)
  151466. var invalids uint32
  151467. for i, field := range fields {
  151468. switch field.Name {
  151469. case "__typename":
  151470. out.Values[i] = graphql.MarshalString("PriceListPriceEdge")
  151471. case "cursor":
  151472. out.Values[i] = ec._PriceListPriceEdge_cursor(ctx, field, obj)
  151473. if out.Values[i] == graphql.Null {
  151474. invalids++
  151475. }
  151476. case "node":
  151477. out.Values[i] = ec._PriceListPriceEdge_node(ctx, field, obj)
  151478. if out.Values[i] == graphql.Null {
  151479. invalids++
  151480. }
  151481. default:
  151482. panic("unknown field " + strconv.Quote(field.Name))
  151483. }
  151484. }
  151485. out.Dispatch()
  151486. if invalids > 0 {
  151487. return graphql.Null
  151488. }
  151489. return out
  151490. }
  151491. var pricingPercentageValueImplementors = []string{"PricingPercentageValue", "PricingValue"}
  151492. func (ec *executionContext) _PricingPercentageValue(ctx context.Context, sel ast.SelectionSet, obj *PricingPercentageValue) graphql.Marshaler {
  151493. fields := graphql.CollectFields(ec.OperationContext, sel, pricingPercentageValueImplementors)
  151494. out := graphql.NewFieldSet(fields)
  151495. var invalids uint32
  151496. for i, field := range fields {
  151497. switch field.Name {
  151498. case "__typename":
  151499. out.Values[i] = graphql.MarshalString("PricingPercentageValue")
  151500. case "percentage":
  151501. out.Values[i] = ec._PricingPercentageValue_percentage(ctx, field, obj)
  151502. if out.Values[i] == graphql.Null {
  151503. invalids++
  151504. }
  151505. default:
  151506. panic("unknown field " + strconv.Quote(field.Name))
  151507. }
  151508. }
  151509. out.Dispatch()
  151510. if invalids > 0 {
  151511. return graphql.Null
  151512. }
  151513. return out
  151514. }
  151515. var privateMetafieldImplementors = []string{"PrivateMetafield", "Node"}
  151516. func (ec *executionContext) _PrivateMetafield(ctx context.Context, sel ast.SelectionSet, obj *PrivateMetafield) graphql.Marshaler {
  151517. fields := graphql.CollectFields(ec.OperationContext, sel, privateMetafieldImplementors)
  151518. out := graphql.NewFieldSet(fields)
  151519. var invalids uint32
  151520. for i, field := range fields {
  151521. switch field.Name {
  151522. case "__typename":
  151523. out.Values[i] = graphql.MarshalString("PrivateMetafield")
  151524. case "createdAt":
  151525. out.Values[i] = ec._PrivateMetafield_createdAt(ctx, field, obj)
  151526. if out.Values[i] == graphql.Null {
  151527. invalids++
  151528. }
  151529. case "id":
  151530. out.Values[i] = ec._PrivateMetafield_id(ctx, field, obj)
  151531. if out.Values[i] == graphql.Null {
  151532. invalids++
  151533. }
  151534. case "key":
  151535. out.Values[i] = ec._PrivateMetafield_key(ctx, field, obj)
  151536. if out.Values[i] == graphql.Null {
  151537. invalids++
  151538. }
  151539. case "namespace":
  151540. out.Values[i] = ec._PrivateMetafield_namespace(ctx, field, obj)
  151541. if out.Values[i] == graphql.Null {
  151542. invalids++
  151543. }
  151544. case "updatedAt":
  151545. out.Values[i] = ec._PrivateMetafield_updatedAt(ctx, field, obj)
  151546. if out.Values[i] == graphql.Null {
  151547. invalids++
  151548. }
  151549. case "value":
  151550. out.Values[i] = ec._PrivateMetafield_value(ctx, field, obj)
  151551. if out.Values[i] == graphql.Null {
  151552. invalids++
  151553. }
  151554. case "valueType":
  151555. out.Values[i] = ec._PrivateMetafield_valueType(ctx, field, obj)
  151556. if out.Values[i] == graphql.Null {
  151557. invalids++
  151558. }
  151559. default:
  151560. panic("unknown field " + strconv.Quote(field.Name))
  151561. }
  151562. }
  151563. out.Dispatch()
  151564. if invalids > 0 {
  151565. return graphql.Null
  151566. }
  151567. return out
  151568. }
  151569. var privateMetafieldConnectionImplementors = []string{"PrivateMetafieldConnection"}
  151570. func (ec *executionContext) _PrivateMetafieldConnection(ctx context.Context, sel ast.SelectionSet, obj *PrivateMetafieldConnection) graphql.Marshaler {
  151571. fields := graphql.CollectFields(ec.OperationContext, sel, privateMetafieldConnectionImplementors)
  151572. out := graphql.NewFieldSet(fields)
  151573. var invalids uint32
  151574. for i, field := range fields {
  151575. switch field.Name {
  151576. case "__typename":
  151577. out.Values[i] = graphql.MarshalString("PrivateMetafieldConnection")
  151578. case "edges":
  151579. out.Values[i] = ec._PrivateMetafieldConnection_edges(ctx, field, obj)
  151580. if out.Values[i] == graphql.Null {
  151581. invalids++
  151582. }
  151583. case "nodes":
  151584. out.Values[i] = ec._PrivateMetafieldConnection_nodes(ctx, field, obj)
  151585. if out.Values[i] == graphql.Null {
  151586. invalids++
  151587. }
  151588. case "pageInfo":
  151589. out.Values[i] = ec._PrivateMetafieldConnection_pageInfo(ctx, field, obj)
  151590. if out.Values[i] == graphql.Null {
  151591. invalids++
  151592. }
  151593. default:
  151594. panic("unknown field " + strconv.Quote(field.Name))
  151595. }
  151596. }
  151597. out.Dispatch()
  151598. if invalids > 0 {
  151599. return graphql.Null
  151600. }
  151601. return out
  151602. }
  151603. var privateMetafieldEdgeImplementors = []string{"PrivateMetafieldEdge"}
  151604. func (ec *executionContext) _PrivateMetafieldEdge(ctx context.Context, sel ast.SelectionSet, obj *PrivateMetafieldEdge) graphql.Marshaler {
  151605. fields := graphql.CollectFields(ec.OperationContext, sel, privateMetafieldEdgeImplementors)
  151606. out := graphql.NewFieldSet(fields)
  151607. var invalids uint32
  151608. for i, field := range fields {
  151609. switch field.Name {
  151610. case "__typename":
  151611. out.Values[i] = graphql.MarshalString("PrivateMetafieldEdge")
  151612. case "cursor":
  151613. out.Values[i] = ec._PrivateMetafieldEdge_cursor(ctx, field, obj)
  151614. if out.Values[i] == graphql.Null {
  151615. invalids++
  151616. }
  151617. case "node":
  151618. out.Values[i] = ec._PrivateMetafieldEdge_node(ctx, field, obj)
  151619. if out.Values[i] == graphql.Null {
  151620. invalids++
  151621. }
  151622. default:
  151623. panic("unknown field " + strconv.Quote(field.Name))
  151624. }
  151625. }
  151626. out.Dispatch()
  151627. if invalids > 0 {
  151628. return graphql.Null
  151629. }
  151630. return out
  151631. }
  151632. var productImplementors = []string{"Product", "HasMetafieldDefinitions", "HasMetafields", "HasPublishedTranslations", "LegacyInteroperability", "Navigable", "Node", "OnlineStorePreviewable", "Publishable", "CommentEventEmbed", "MetafieldReference", "_Entity"}
  151633. func (ec *executionContext) _Product(ctx context.Context, sel ast.SelectionSet, obj *Product) graphql.Marshaler {
  151634. fields := graphql.CollectFields(ec.OperationContext, sel, productImplementors)
  151635. out := graphql.NewFieldSet(fields)
  151636. var invalids uint32
  151637. for i, field := range fields {
  151638. switch field.Name {
  151639. case "__typename":
  151640. out.Values[i] = graphql.MarshalString("Product")
  151641. case "availablePublicationCount":
  151642. out.Values[i] = ec._Product_availablePublicationCount(ctx, field, obj)
  151643. if out.Values[i] == graphql.Null {
  151644. invalids++
  151645. }
  151646. case "collections":
  151647. out.Values[i] = ec._Product_collections(ctx, field, obj)
  151648. if out.Values[i] == graphql.Null {
  151649. invalids++
  151650. }
  151651. case "contextualPricing":
  151652. out.Values[i] = ec._Product_contextualPricing(ctx, field, obj)
  151653. if out.Values[i] == graphql.Null {
  151654. invalids++
  151655. }
  151656. case "createdAt":
  151657. out.Values[i] = ec._Product_createdAt(ctx, field, obj)
  151658. if out.Values[i] == graphql.Null {
  151659. invalids++
  151660. }
  151661. case "defaultCursor":
  151662. out.Values[i] = ec._Product_defaultCursor(ctx, field, obj)
  151663. if out.Values[i] == graphql.Null {
  151664. invalids++
  151665. }
  151666. case "description":
  151667. out.Values[i] = ec._Product_description(ctx, field, obj)
  151668. if out.Values[i] == graphql.Null {
  151669. invalids++
  151670. }
  151671. case "descriptionHtml":
  151672. out.Values[i] = ec._Product_descriptionHtml(ctx, field, obj)
  151673. if out.Values[i] == graphql.Null {
  151674. invalids++
  151675. }
  151676. case "featuredImage":
  151677. out.Values[i] = ec._Product_featuredImage(ctx, field, obj)
  151678. case "featuredMedia":
  151679. out.Values[i] = ec._Product_featuredMedia(ctx, field, obj)
  151680. case "feedback":
  151681. out.Values[i] = ec._Product_feedback(ctx, field, obj)
  151682. case "giftCardTemplateSuffix":
  151683. out.Values[i] = ec._Product_giftCardTemplateSuffix(ctx, field, obj)
  151684. case "handle":
  151685. out.Values[i] = ec._Product_handle(ctx, field, obj)
  151686. if out.Values[i] == graphql.Null {
  151687. invalids++
  151688. }
  151689. case "hasOnlyDefaultVariant":
  151690. out.Values[i] = ec._Product_hasOnlyDefaultVariant(ctx, field, obj)
  151691. if out.Values[i] == graphql.Null {
  151692. invalids++
  151693. }
  151694. case "hasOutOfStockVariants":
  151695. out.Values[i] = ec._Product_hasOutOfStockVariants(ctx, field, obj)
  151696. if out.Values[i] == graphql.Null {
  151697. invalids++
  151698. }
  151699. case "id":
  151700. out.Values[i] = ec._Product_id(ctx, field, obj)
  151701. if out.Values[i] == graphql.Null {
  151702. invalids++
  151703. }
  151704. case "images":
  151705. out.Values[i] = ec._Product_images(ctx, field, obj)
  151706. if out.Values[i] == graphql.Null {
  151707. invalids++
  151708. }
  151709. case "inCollection":
  151710. out.Values[i] = ec._Product_inCollection(ctx, field, obj)
  151711. if out.Values[i] == graphql.Null {
  151712. invalids++
  151713. }
  151714. case "isGiftCard":
  151715. out.Values[i] = ec._Product_isGiftCard(ctx, field, obj)
  151716. if out.Values[i] == graphql.Null {
  151717. invalids++
  151718. }
  151719. case "legacyResourceId":
  151720. out.Values[i] = ec._Product_legacyResourceId(ctx, field, obj)
  151721. if out.Values[i] == graphql.Null {
  151722. invalids++
  151723. }
  151724. case "media":
  151725. out.Values[i] = ec._Product_media(ctx, field, obj)
  151726. if out.Values[i] == graphql.Null {
  151727. invalids++
  151728. }
  151729. case "mediaCount":
  151730. out.Values[i] = ec._Product_mediaCount(ctx, field, obj)
  151731. if out.Values[i] == graphql.Null {
  151732. invalids++
  151733. }
  151734. case "metafield":
  151735. out.Values[i] = ec._Product_metafield(ctx, field, obj)
  151736. case "metafieldDefinitions":
  151737. out.Values[i] = ec._Product_metafieldDefinitions(ctx, field, obj)
  151738. if out.Values[i] == graphql.Null {
  151739. invalids++
  151740. }
  151741. case "metafields":
  151742. out.Values[i] = ec._Product_metafields(ctx, field, obj)
  151743. if out.Values[i] == graphql.Null {
  151744. invalids++
  151745. }
  151746. case "onlineStorePreviewUrl":
  151747. out.Values[i] = ec._Product_onlineStorePreviewUrl(ctx, field, obj)
  151748. case "onlineStoreUrl":
  151749. out.Values[i] = ec._Product_onlineStoreUrl(ctx, field, obj)
  151750. case "options":
  151751. out.Values[i] = ec._Product_options(ctx, field, obj)
  151752. if out.Values[i] == graphql.Null {
  151753. invalids++
  151754. }
  151755. case "priceRangeV2":
  151756. out.Values[i] = ec._Product_priceRangeV2(ctx, field, obj)
  151757. if out.Values[i] == graphql.Null {
  151758. invalids++
  151759. }
  151760. case "privateMetafield":
  151761. out.Values[i] = ec._Product_privateMetafield(ctx, field, obj)
  151762. case "privateMetafields":
  151763. out.Values[i] = ec._Product_privateMetafields(ctx, field, obj)
  151764. if out.Values[i] == graphql.Null {
  151765. invalids++
  151766. }
  151767. case "productCategory":
  151768. out.Values[i] = ec._Product_productCategory(ctx, field, obj)
  151769. case "productType":
  151770. out.Values[i] = ec._Product_productType(ctx, field, obj)
  151771. if out.Values[i] == graphql.Null {
  151772. invalids++
  151773. }
  151774. case "publicationCount":
  151775. out.Values[i] = ec._Product_publicationCount(ctx, field, obj)
  151776. if out.Values[i] == graphql.Null {
  151777. invalids++
  151778. }
  151779. case "publishedAt":
  151780. out.Values[i] = ec._Product_publishedAt(ctx, field, obj)
  151781. case "publishedOnCurrentPublication":
  151782. out.Values[i] = ec._Product_publishedOnCurrentPublication(ctx, field, obj)
  151783. if out.Values[i] == graphql.Null {
  151784. invalids++
  151785. }
  151786. case "publishedOnPublication":
  151787. out.Values[i] = ec._Product_publishedOnPublication(ctx, field, obj)
  151788. if out.Values[i] == graphql.Null {
  151789. invalids++
  151790. }
  151791. case "requiresSellingPlan":
  151792. out.Values[i] = ec._Product_requiresSellingPlan(ctx, field, obj)
  151793. if out.Values[i] == graphql.Null {
  151794. invalids++
  151795. }
  151796. case "resourcePublicationOnCurrentPublication":
  151797. out.Values[i] = ec._Product_resourcePublicationOnCurrentPublication(ctx, field, obj)
  151798. case "resourcePublications":
  151799. out.Values[i] = ec._Product_resourcePublications(ctx, field, obj)
  151800. if out.Values[i] == graphql.Null {
  151801. invalids++
  151802. }
  151803. case "resourcePublicationsV2":
  151804. out.Values[i] = ec._Product_resourcePublicationsV2(ctx, field, obj)
  151805. if out.Values[i] == graphql.Null {
  151806. invalids++
  151807. }
  151808. case "sellingPlanGroupCount":
  151809. out.Values[i] = ec._Product_sellingPlanGroupCount(ctx, field, obj)
  151810. if out.Values[i] == graphql.Null {
  151811. invalids++
  151812. }
  151813. case "sellingPlanGroups":
  151814. out.Values[i] = ec._Product_sellingPlanGroups(ctx, field, obj)
  151815. if out.Values[i] == graphql.Null {
  151816. invalids++
  151817. }
  151818. case "seo":
  151819. out.Values[i] = ec._Product_seo(ctx, field, obj)
  151820. if out.Values[i] == graphql.Null {
  151821. invalids++
  151822. }
  151823. case "status":
  151824. out.Values[i] = ec._Product_status(ctx, field, obj)
  151825. if out.Values[i] == graphql.Null {
  151826. invalids++
  151827. }
  151828. case "tags":
  151829. out.Values[i] = ec._Product_tags(ctx, field, obj)
  151830. if out.Values[i] == graphql.Null {
  151831. invalids++
  151832. }
  151833. case "templateSuffix":
  151834. out.Values[i] = ec._Product_templateSuffix(ctx, field, obj)
  151835. case "title":
  151836. out.Values[i] = ec._Product_title(ctx, field, obj)
  151837. if out.Values[i] == graphql.Null {
  151838. invalids++
  151839. }
  151840. case "totalInventory":
  151841. out.Values[i] = ec._Product_totalInventory(ctx, field, obj)
  151842. if out.Values[i] == graphql.Null {
  151843. invalids++
  151844. }
  151845. case "totalVariants":
  151846. out.Values[i] = ec._Product_totalVariants(ctx, field, obj)
  151847. if out.Values[i] == graphql.Null {
  151848. invalids++
  151849. }
  151850. case "tracksInventory":
  151851. out.Values[i] = ec._Product_tracksInventory(ctx, field, obj)
  151852. if out.Values[i] == graphql.Null {
  151853. invalids++
  151854. }
  151855. case "translations":
  151856. out.Values[i] = ec._Product_translations(ctx, field, obj)
  151857. if out.Values[i] == graphql.Null {
  151858. invalids++
  151859. }
  151860. case "unpublishedPublications":
  151861. out.Values[i] = ec._Product_unpublishedPublications(ctx, field, obj)
  151862. if out.Values[i] == graphql.Null {
  151863. invalids++
  151864. }
  151865. case "updatedAt":
  151866. out.Values[i] = ec._Product_updatedAt(ctx, field, obj)
  151867. if out.Values[i] == graphql.Null {
  151868. invalids++
  151869. }
  151870. case "variants":
  151871. out.Values[i] = ec._Product_variants(ctx, field, obj)
  151872. if out.Values[i] == graphql.Null {
  151873. invalids++
  151874. }
  151875. case "vendor":
  151876. out.Values[i] = ec._Product_vendor(ctx, field, obj)
  151877. if out.Values[i] == graphql.Null {
  151878. invalids++
  151879. }
  151880. default:
  151881. panic("unknown field " + strconv.Quote(field.Name))
  151882. }
  151883. }
  151884. out.Dispatch()
  151885. if invalids > 0 {
  151886. return graphql.Null
  151887. }
  151888. return out
  151889. }
  151890. var productCategoryImplementors = []string{"ProductCategory"}
  151891. func (ec *executionContext) _ProductCategory(ctx context.Context, sel ast.SelectionSet, obj *ProductCategory) graphql.Marshaler {
  151892. fields := graphql.CollectFields(ec.OperationContext, sel, productCategoryImplementors)
  151893. out := graphql.NewFieldSet(fields)
  151894. var invalids uint32
  151895. for i, field := range fields {
  151896. switch field.Name {
  151897. case "__typename":
  151898. out.Values[i] = graphql.MarshalString("ProductCategory")
  151899. case "productTaxonomyNode":
  151900. out.Values[i] = ec._ProductCategory_productTaxonomyNode(ctx, field, obj)
  151901. default:
  151902. panic("unknown field " + strconv.Quote(field.Name))
  151903. }
  151904. }
  151905. out.Dispatch()
  151906. if invalids > 0 {
  151907. return graphql.Null
  151908. }
  151909. return out
  151910. }
  151911. var productChangeStatusUserErrorImplementors = []string{"ProductChangeStatusUserError", "DisplayableError"}
  151912. func (ec *executionContext) _ProductChangeStatusUserError(ctx context.Context, sel ast.SelectionSet, obj *ProductChangeStatusUserError) graphql.Marshaler {
  151913. fields := graphql.CollectFields(ec.OperationContext, sel, productChangeStatusUserErrorImplementors)
  151914. out := graphql.NewFieldSet(fields)
  151915. var invalids uint32
  151916. for i, field := range fields {
  151917. switch field.Name {
  151918. case "__typename":
  151919. out.Values[i] = graphql.MarshalString("ProductChangeStatusUserError")
  151920. case "code":
  151921. out.Values[i] = ec._ProductChangeStatusUserError_code(ctx, field, obj)
  151922. case "field":
  151923. out.Values[i] = ec._ProductChangeStatusUserError_field(ctx, field, obj)
  151924. case "message":
  151925. out.Values[i] = ec._ProductChangeStatusUserError_message(ctx, field, obj)
  151926. if out.Values[i] == graphql.Null {
  151927. invalids++
  151928. }
  151929. default:
  151930. panic("unknown field " + strconv.Quote(field.Name))
  151931. }
  151932. }
  151933. out.Dispatch()
  151934. if invalids > 0 {
  151935. return graphql.Null
  151936. }
  151937. return out
  151938. }
  151939. var productConnectionImplementors = []string{"ProductConnection"}
  151940. func (ec *executionContext) _ProductConnection(ctx context.Context, sel ast.SelectionSet, obj *ProductConnection) graphql.Marshaler {
  151941. fields := graphql.CollectFields(ec.OperationContext, sel, productConnectionImplementors)
  151942. out := graphql.NewFieldSet(fields)
  151943. var invalids uint32
  151944. for i, field := range fields {
  151945. switch field.Name {
  151946. case "__typename":
  151947. out.Values[i] = graphql.MarshalString("ProductConnection")
  151948. case "edges":
  151949. out.Values[i] = ec._ProductConnection_edges(ctx, field, obj)
  151950. if out.Values[i] == graphql.Null {
  151951. invalids++
  151952. }
  151953. case "nodes":
  151954. out.Values[i] = ec._ProductConnection_nodes(ctx, field, obj)
  151955. if out.Values[i] == graphql.Null {
  151956. invalids++
  151957. }
  151958. case "pageInfo":
  151959. out.Values[i] = ec._ProductConnection_pageInfo(ctx, field, obj)
  151960. if out.Values[i] == graphql.Null {
  151961. invalids++
  151962. }
  151963. default:
  151964. panic("unknown field " + strconv.Quote(field.Name))
  151965. }
  151966. }
  151967. out.Dispatch()
  151968. if invalids > 0 {
  151969. return graphql.Null
  151970. }
  151971. return out
  151972. }
  151973. var productContextualPricingImplementors = []string{"ProductContextualPricing"}
  151974. func (ec *executionContext) _ProductContextualPricing(ctx context.Context, sel ast.SelectionSet, obj *ProductContextualPricing) graphql.Marshaler {
  151975. fields := graphql.CollectFields(ec.OperationContext, sel, productContextualPricingImplementors)
  151976. out := graphql.NewFieldSet(fields)
  151977. var invalids uint32
  151978. for i, field := range fields {
  151979. switch field.Name {
  151980. case "__typename":
  151981. out.Values[i] = graphql.MarshalString("ProductContextualPricing")
  151982. case "maxVariantPricing":
  151983. out.Values[i] = ec._ProductContextualPricing_maxVariantPricing(ctx, field, obj)
  151984. case "minVariantPricing":
  151985. out.Values[i] = ec._ProductContextualPricing_minVariantPricing(ctx, field, obj)
  151986. case "priceRange":
  151987. out.Values[i] = ec._ProductContextualPricing_priceRange(ctx, field, obj)
  151988. if out.Values[i] == graphql.Null {
  151989. invalids++
  151990. }
  151991. default:
  151992. panic("unknown field " + strconv.Quote(field.Name))
  151993. }
  151994. }
  151995. out.Dispatch()
  151996. if invalids > 0 {
  151997. return graphql.Null
  151998. }
  151999. return out
  152000. }
  152001. var productEdgeImplementors = []string{"ProductEdge"}
  152002. func (ec *executionContext) _ProductEdge(ctx context.Context, sel ast.SelectionSet, obj *ProductEdge) graphql.Marshaler {
  152003. fields := graphql.CollectFields(ec.OperationContext, sel, productEdgeImplementors)
  152004. out := graphql.NewFieldSet(fields)
  152005. var invalids uint32
  152006. for i, field := range fields {
  152007. switch field.Name {
  152008. case "__typename":
  152009. out.Values[i] = graphql.MarshalString("ProductEdge")
  152010. case "cursor":
  152011. out.Values[i] = ec._ProductEdge_cursor(ctx, field, obj)
  152012. if out.Values[i] == graphql.Null {
  152013. invalids++
  152014. }
  152015. case "node":
  152016. out.Values[i] = ec._ProductEdge_node(ctx, field, obj)
  152017. if out.Values[i] == graphql.Null {
  152018. invalids++
  152019. }
  152020. default:
  152021. panic("unknown field " + strconv.Quote(field.Name))
  152022. }
  152023. }
  152024. out.Dispatch()
  152025. if invalids > 0 {
  152026. return graphql.Null
  152027. }
  152028. return out
  152029. }
  152030. var productOptionImplementors = []string{"ProductOption", "HasPublishedTranslations", "Node"}
  152031. func (ec *executionContext) _ProductOption(ctx context.Context, sel ast.SelectionSet, obj *ProductOption) graphql.Marshaler {
  152032. fields := graphql.CollectFields(ec.OperationContext, sel, productOptionImplementors)
  152033. out := graphql.NewFieldSet(fields)
  152034. var invalids uint32
  152035. for i, field := range fields {
  152036. switch field.Name {
  152037. case "__typename":
  152038. out.Values[i] = graphql.MarshalString("ProductOption")
  152039. case "id":
  152040. out.Values[i] = ec._ProductOption_id(ctx, field, obj)
  152041. if out.Values[i] == graphql.Null {
  152042. invalids++
  152043. }
  152044. case "name":
  152045. out.Values[i] = ec._ProductOption_name(ctx, field, obj)
  152046. if out.Values[i] == graphql.Null {
  152047. invalids++
  152048. }
  152049. case "position":
  152050. out.Values[i] = ec._ProductOption_position(ctx, field, obj)
  152051. if out.Values[i] == graphql.Null {
  152052. invalids++
  152053. }
  152054. case "translations":
  152055. out.Values[i] = ec._ProductOption_translations(ctx, field, obj)
  152056. if out.Values[i] == graphql.Null {
  152057. invalids++
  152058. }
  152059. case "values":
  152060. out.Values[i] = ec._ProductOption_values(ctx, field, obj)
  152061. if out.Values[i] == graphql.Null {
  152062. invalids++
  152063. }
  152064. default:
  152065. panic("unknown field " + strconv.Quote(field.Name))
  152066. }
  152067. }
  152068. out.Dispatch()
  152069. if invalids > 0 {
  152070. return graphql.Null
  152071. }
  152072. return out
  152073. }
  152074. var productPriceRangeV2Implementors = []string{"ProductPriceRangeV2"}
  152075. func (ec *executionContext) _ProductPriceRangeV2(ctx context.Context, sel ast.SelectionSet, obj *ProductPriceRangeV2) graphql.Marshaler {
  152076. fields := graphql.CollectFields(ec.OperationContext, sel, productPriceRangeV2Implementors)
  152077. out := graphql.NewFieldSet(fields)
  152078. var invalids uint32
  152079. for i, field := range fields {
  152080. switch field.Name {
  152081. case "__typename":
  152082. out.Values[i] = graphql.MarshalString("ProductPriceRangeV2")
  152083. case "maxVariantPrice":
  152084. out.Values[i] = ec._ProductPriceRangeV2_maxVariantPrice(ctx, field, obj)
  152085. if out.Values[i] == graphql.Null {
  152086. invalids++
  152087. }
  152088. case "minVariantPrice":
  152089. out.Values[i] = ec._ProductPriceRangeV2_minVariantPrice(ctx, field, obj)
  152090. if out.Values[i] == graphql.Null {
  152091. invalids++
  152092. }
  152093. default:
  152094. panic("unknown field " + strconv.Quote(field.Name))
  152095. }
  152096. }
  152097. out.Dispatch()
  152098. if invalids > 0 {
  152099. return graphql.Null
  152100. }
  152101. return out
  152102. }
  152103. var productTaxonomyNodeImplementors = []string{"ProductTaxonomyNode", "Node"}
  152104. func (ec *executionContext) _ProductTaxonomyNode(ctx context.Context, sel ast.SelectionSet, obj *ProductTaxonomyNode) graphql.Marshaler {
  152105. fields := graphql.CollectFields(ec.OperationContext, sel, productTaxonomyNodeImplementors)
  152106. out := graphql.NewFieldSet(fields)
  152107. var invalids uint32
  152108. for i, field := range fields {
  152109. switch field.Name {
  152110. case "__typename":
  152111. out.Values[i] = graphql.MarshalString("ProductTaxonomyNode")
  152112. case "fullName":
  152113. out.Values[i] = ec._ProductTaxonomyNode_fullName(ctx, field, obj)
  152114. if out.Values[i] == graphql.Null {
  152115. invalids++
  152116. }
  152117. case "id":
  152118. out.Values[i] = ec._ProductTaxonomyNode_id(ctx, field, obj)
  152119. if out.Values[i] == graphql.Null {
  152120. invalids++
  152121. }
  152122. case "isLeaf":
  152123. out.Values[i] = ec._ProductTaxonomyNode_isLeaf(ctx, field, obj)
  152124. if out.Values[i] == graphql.Null {
  152125. invalids++
  152126. }
  152127. case "isRoot":
  152128. out.Values[i] = ec._ProductTaxonomyNode_isRoot(ctx, field, obj)
  152129. if out.Values[i] == graphql.Null {
  152130. invalids++
  152131. }
  152132. case "name":
  152133. out.Values[i] = ec._ProductTaxonomyNode_name(ctx, field, obj)
  152134. if out.Values[i] == graphql.Null {
  152135. invalids++
  152136. }
  152137. default:
  152138. panic("unknown field " + strconv.Quote(field.Name))
  152139. }
  152140. }
  152141. out.Dispatch()
  152142. if invalids > 0 {
  152143. return graphql.Null
  152144. }
  152145. return out
  152146. }
  152147. var productVariantImplementors = []string{"ProductVariant", "HasMetafieldDefinitions", "HasMetafields", "HasPublishedTranslations", "LegacyInteroperability", "Navigable", "Node", "CommentEventEmbed", "MetafieldReference"}
  152148. func (ec *executionContext) _ProductVariant(ctx context.Context, sel ast.SelectionSet, obj *ProductVariant) graphql.Marshaler {
  152149. fields := graphql.CollectFields(ec.OperationContext, sel, productVariantImplementors)
  152150. out := graphql.NewFieldSet(fields)
  152151. var invalids uint32
  152152. for i, field := range fields {
  152153. switch field.Name {
  152154. case "__typename":
  152155. out.Values[i] = graphql.MarshalString("ProductVariant")
  152156. case "availableForSale":
  152157. out.Values[i] = ec._ProductVariant_availableForSale(ctx, field, obj)
  152158. if out.Values[i] == graphql.Null {
  152159. invalids++
  152160. }
  152161. case "barcode":
  152162. out.Values[i] = ec._ProductVariant_barcode(ctx, field, obj)
  152163. case "compareAtPrice":
  152164. out.Values[i] = ec._ProductVariant_compareAtPrice(ctx, field, obj)
  152165. case "contextualPricing":
  152166. out.Values[i] = ec._ProductVariant_contextualPricing(ctx, field, obj)
  152167. if out.Values[i] == graphql.Null {
  152168. invalids++
  152169. }
  152170. case "createdAt":
  152171. out.Values[i] = ec._ProductVariant_createdAt(ctx, field, obj)
  152172. if out.Values[i] == graphql.Null {
  152173. invalids++
  152174. }
  152175. case "defaultCursor":
  152176. out.Values[i] = ec._ProductVariant_defaultCursor(ctx, field, obj)
  152177. if out.Values[i] == graphql.Null {
  152178. invalids++
  152179. }
  152180. case "deliveryProfile":
  152181. out.Values[i] = ec._ProductVariant_deliveryProfile(ctx, field, obj)
  152182. case "displayName":
  152183. out.Values[i] = ec._ProductVariant_displayName(ctx, field, obj)
  152184. if out.Values[i] == graphql.Null {
  152185. invalids++
  152186. }
  152187. case "fulfillmentServiceEditable":
  152188. out.Values[i] = ec._ProductVariant_fulfillmentServiceEditable(ctx, field, obj)
  152189. if out.Values[i] == graphql.Null {
  152190. invalids++
  152191. }
  152192. case "id":
  152193. out.Values[i] = ec._ProductVariant_id(ctx, field, obj)
  152194. if out.Values[i] == graphql.Null {
  152195. invalids++
  152196. }
  152197. case "image":
  152198. out.Values[i] = ec._ProductVariant_image(ctx, field, obj)
  152199. case "inventoryItem":
  152200. out.Values[i] = ec._ProductVariant_inventoryItem(ctx, field, obj)
  152201. if out.Values[i] == graphql.Null {
  152202. invalids++
  152203. }
  152204. case "inventoryPolicy":
  152205. out.Values[i] = ec._ProductVariant_inventoryPolicy(ctx, field, obj)
  152206. if out.Values[i] == graphql.Null {
  152207. invalids++
  152208. }
  152209. case "inventoryQuantity":
  152210. out.Values[i] = ec._ProductVariant_inventoryQuantity(ctx, field, obj)
  152211. case "legacyResourceId":
  152212. out.Values[i] = ec._ProductVariant_legacyResourceId(ctx, field, obj)
  152213. if out.Values[i] == graphql.Null {
  152214. invalids++
  152215. }
  152216. case "media":
  152217. out.Values[i] = ec._ProductVariant_media(ctx, field, obj)
  152218. if out.Values[i] == graphql.Null {
  152219. invalids++
  152220. }
  152221. case "metafield":
  152222. out.Values[i] = ec._ProductVariant_metafield(ctx, field, obj)
  152223. case "metafieldDefinitions":
  152224. out.Values[i] = ec._ProductVariant_metafieldDefinitions(ctx, field, obj)
  152225. if out.Values[i] == graphql.Null {
  152226. invalids++
  152227. }
  152228. case "metafields":
  152229. out.Values[i] = ec._ProductVariant_metafields(ctx, field, obj)
  152230. if out.Values[i] == graphql.Null {
  152231. invalids++
  152232. }
  152233. case "position":
  152234. out.Values[i] = ec._ProductVariant_position(ctx, field, obj)
  152235. if out.Values[i] == graphql.Null {
  152236. invalids++
  152237. }
  152238. case "price":
  152239. out.Values[i] = ec._ProductVariant_price(ctx, field, obj)
  152240. if out.Values[i] == graphql.Null {
  152241. invalids++
  152242. }
  152243. case "privateMetafield":
  152244. out.Values[i] = ec._ProductVariant_privateMetafield(ctx, field, obj)
  152245. case "privateMetafields":
  152246. out.Values[i] = ec._ProductVariant_privateMetafields(ctx, field, obj)
  152247. if out.Values[i] == graphql.Null {
  152248. invalids++
  152249. }
  152250. case "product":
  152251. out.Values[i] = ec._ProductVariant_product(ctx, field, obj)
  152252. if out.Values[i] == graphql.Null {
  152253. invalids++
  152254. }
  152255. case "selectedOptions":
  152256. out.Values[i] = ec._ProductVariant_selectedOptions(ctx, field, obj)
  152257. if out.Values[i] == graphql.Null {
  152258. invalids++
  152259. }
  152260. case "sellableOnlineQuantity":
  152261. out.Values[i] = ec._ProductVariant_sellableOnlineQuantity(ctx, field, obj)
  152262. if out.Values[i] == graphql.Null {
  152263. invalids++
  152264. }
  152265. case "sellingPlanGroupCount":
  152266. out.Values[i] = ec._ProductVariant_sellingPlanGroupCount(ctx, field, obj)
  152267. if out.Values[i] == graphql.Null {
  152268. invalids++
  152269. }
  152270. case "sellingPlanGroups":
  152271. out.Values[i] = ec._ProductVariant_sellingPlanGroups(ctx, field, obj)
  152272. if out.Values[i] == graphql.Null {
  152273. invalids++
  152274. }
  152275. case "sku":
  152276. out.Values[i] = ec._ProductVariant_sku(ctx, field, obj)
  152277. case "taxCode":
  152278. out.Values[i] = ec._ProductVariant_taxCode(ctx, field, obj)
  152279. case "taxable":
  152280. out.Values[i] = ec._ProductVariant_taxable(ctx, field, obj)
  152281. if out.Values[i] == graphql.Null {
  152282. invalids++
  152283. }
  152284. case "title":
  152285. out.Values[i] = ec._ProductVariant_title(ctx, field, obj)
  152286. if out.Values[i] == graphql.Null {
  152287. invalids++
  152288. }
  152289. case "translations":
  152290. out.Values[i] = ec._ProductVariant_translations(ctx, field, obj)
  152291. if out.Values[i] == graphql.Null {
  152292. invalids++
  152293. }
  152294. case "updatedAt":
  152295. out.Values[i] = ec._ProductVariant_updatedAt(ctx, field, obj)
  152296. if out.Values[i] == graphql.Null {
  152297. invalids++
  152298. }
  152299. case "weight":
  152300. out.Values[i] = ec._ProductVariant_weight(ctx, field, obj)
  152301. case "weightUnit":
  152302. out.Values[i] = ec._ProductVariant_weightUnit(ctx, field, obj)
  152303. if out.Values[i] == graphql.Null {
  152304. invalids++
  152305. }
  152306. default:
  152307. panic("unknown field " + strconv.Quote(field.Name))
  152308. }
  152309. }
  152310. out.Dispatch()
  152311. if invalids > 0 {
  152312. return graphql.Null
  152313. }
  152314. return out
  152315. }
  152316. var productVariantConnectionImplementors = []string{"ProductVariantConnection"}
  152317. func (ec *executionContext) _ProductVariantConnection(ctx context.Context, sel ast.SelectionSet, obj *ProductVariantConnection) graphql.Marshaler {
  152318. fields := graphql.CollectFields(ec.OperationContext, sel, productVariantConnectionImplementors)
  152319. out := graphql.NewFieldSet(fields)
  152320. var invalids uint32
  152321. for i, field := range fields {
  152322. switch field.Name {
  152323. case "__typename":
  152324. out.Values[i] = graphql.MarshalString("ProductVariantConnection")
  152325. case "edges":
  152326. out.Values[i] = ec._ProductVariantConnection_edges(ctx, field, obj)
  152327. if out.Values[i] == graphql.Null {
  152328. invalids++
  152329. }
  152330. case "nodes":
  152331. out.Values[i] = ec._ProductVariantConnection_nodes(ctx, field, obj)
  152332. if out.Values[i] == graphql.Null {
  152333. invalids++
  152334. }
  152335. case "pageInfo":
  152336. out.Values[i] = ec._ProductVariantConnection_pageInfo(ctx, field, obj)
  152337. if out.Values[i] == graphql.Null {
  152338. invalids++
  152339. }
  152340. default:
  152341. panic("unknown field " + strconv.Quote(field.Name))
  152342. }
  152343. }
  152344. out.Dispatch()
  152345. if invalids > 0 {
  152346. return graphql.Null
  152347. }
  152348. return out
  152349. }
  152350. var productVariantContextualPricingImplementors = []string{"ProductVariantContextualPricing"}
  152351. func (ec *executionContext) _ProductVariantContextualPricing(ctx context.Context, sel ast.SelectionSet, obj *ProductVariantContextualPricing) graphql.Marshaler {
  152352. fields := graphql.CollectFields(ec.OperationContext, sel, productVariantContextualPricingImplementors)
  152353. out := graphql.NewFieldSet(fields)
  152354. var invalids uint32
  152355. for i, field := range fields {
  152356. switch field.Name {
  152357. case "__typename":
  152358. out.Values[i] = graphql.MarshalString("ProductVariantContextualPricing")
  152359. case "compareAtPrice":
  152360. out.Values[i] = ec._ProductVariantContextualPricing_compareAtPrice(ctx, field, obj)
  152361. case "price":
  152362. out.Values[i] = ec._ProductVariantContextualPricing_price(ctx, field, obj)
  152363. if out.Values[i] == graphql.Null {
  152364. invalids++
  152365. }
  152366. default:
  152367. panic("unknown field " + strconv.Quote(field.Name))
  152368. }
  152369. }
  152370. out.Dispatch()
  152371. if invalids > 0 {
  152372. return graphql.Null
  152373. }
  152374. return out
  152375. }
  152376. var productVariantEdgeImplementors = []string{"ProductVariantEdge"}
  152377. func (ec *executionContext) _ProductVariantEdge(ctx context.Context, sel ast.SelectionSet, obj *ProductVariantEdge) graphql.Marshaler {
  152378. fields := graphql.CollectFields(ec.OperationContext, sel, productVariantEdgeImplementors)
  152379. out := graphql.NewFieldSet(fields)
  152380. var invalids uint32
  152381. for i, field := range fields {
  152382. switch field.Name {
  152383. case "__typename":
  152384. out.Values[i] = graphql.MarshalString("ProductVariantEdge")
  152385. case "cursor":
  152386. out.Values[i] = ec._ProductVariantEdge_cursor(ctx, field, obj)
  152387. if out.Values[i] == graphql.Null {
  152388. invalids++
  152389. }
  152390. case "node":
  152391. out.Values[i] = ec._ProductVariantEdge_node(ctx, field, obj)
  152392. if out.Values[i] == graphql.Null {
  152393. invalids++
  152394. }
  152395. default:
  152396. panic("unknown field " + strconv.Quote(field.Name))
  152397. }
  152398. }
  152399. out.Dispatch()
  152400. if invalids > 0 {
  152401. return graphql.Null
  152402. }
  152403. return out
  152404. }
  152405. var productVariantsBulkCreateUserErrorImplementors = []string{"ProductVariantsBulkCreateUserError", "DisplayableError"}
  152406. func (ec *executionContext) _ProductVariantsBulkCreateUserError(ctx context.Context, sel ast.SelectionSet, obj *ProductVariantsBulkCreateUserError) graphql.Marshaler {
  152407. fields := graphql.CollectFields(ec.OperationContext, sel, productVariantsBulkCreateUserErrorImplementors)
  152408. out := graphql.NewFieldSet(fields)
  152409. var invalids uint32
  152410. for i, field := range fields {
  152411. switch field.Name {
  152412. case "__typename":
  152413. out.Values[i] = graphql.MarshalString("ProductVariantsBulkCreateUserError")
  152414. case "code":
  152415. out.Values[i] = ec._ProductVariantsBulkCreateUserError_code(ctx, field, obj)
  152416. case "field":
  152417. out.Values[i] = ec._ProductVariantsBulkCreateUserError_field(ctx, field, obj)
  152418. case "message":
  152419. out.Values[i] = ec._ProductVariantsBulkCreateUserError_message(ctx, field, obj)
  152420. if out.Values[i] == graphql.Null {
  152421. invalids++
  152422. }
  152423. default:
  152424. panic("unknown field " + strconv.Quote(field.Name))
  152425. }
  152426. }
  152427. out.Dispatch()
  152428. if invalids > 0 {
  152429. return graphql.Null
  152430. }
  152431. return out
  152432. }
  152433. var productVariantsBulkDeleteUserErrorImplementors = []string{"ProductVariantsBulkDeleteUserError", "DisplayableError"}
  152434. func (ec *executionContext) _ProductVariantsBulkDeleteUserError(ctx context.Context, sel ast.SelectionSet, obj *ProductVariantsBulkDeleteUserError) graphql.Marshaler {
  152435. fields := graphql.CollectFields(ec.OperationContext, sel, productVariantsBulkDeleteUserErrorImplementors)
  152436. out := graphql.NewFieldSet(fields)
  152437. var invalids uint32
  152438. for i, field := range fields {
  152439. switch field.Name {
  152440. case "__typename":
  152441. out.Values[i] = graphql.MarshalString("ProductVariantsBulkDeleteUserError")
  152442. case "code":
  152443. out.Values[i] = ec._ProductVariantsBulkDeleteUserError_code(ctx, field, obj)
  152444. case "field":
  152445. out.Values[i] = ec._ProductVariantsBulkDeleteUserError_field(ctx, field, obj)
  152446. case "message":
  152447. out.Values[i] = ec._ProductVariantsBulkDeleteUserError_message(ctx, field, obj)
  152448. if out.Values[i] == graphql.Null {
  152449. invalids++
  152450. }
  152451. default:
  152452. panic("unknown field " + strconv.Quote(field.Name))
  152453. }
  152454. }
  152455. out.Dispatch()
  152456. if invalids > 0 {
  152457. return graphql.Null
  152458. }
  152459. return out
  152460. }
  152461. var productVariantsBulkReorderUserErrorImplementors = []string{"ProductVariantsBulkReorderUserError", "DisplayableError"}
  152462. func (ec *executionContext) _ProductVariantsBulkReorderUserError(ctx context.Context, sel ast.SelectionSet, obj *ProductVariantsBulkReorderUserError) graphql.Marshaler {
  152463. fields := graphql.CollectFields(ec.OperationContext, sel, productVariantsBulkReorderUserErrorImplementors)
  152464. out := graphql.NewFieldSet(fields)
  152465. var invalids uint32
  152466. for i, field := range fields {
  152467. switch field.Name {
  152468. case "__typename":
  152469. out.Values[i] = graphql.MarshalString("ProductVariantsBulkReorderUserError")
  152470. case "code":
  152471. out.Values[i] = ec._ProductVariantsBulkReorderUserError_code(ctx, field, obj)
  152472. case "field":
  152473. out.Values[i] = ec._ProductVariantsBulkReorderUserError_field(ctx, field, obj)
  152474. case "message":
  152475. out.Values[i] = ec._ProductVariantsBulkReorderUserError_message(ctx, field, obj)
  152476. if out.Values[i] == graphql.Null {
  152477. invalids++
  152478. }
  152479. default:
  152480. panic("unknown field " + strconv.Quote(field.Name))
  152481. }
  152482. }
  152483. out.Dispatch()
  152484. if invalids > 0 {
  152485. return graphql.Null
  152486. }
  152487. return out
  152488. }
  152489. var productVariantsBulkUpdateUserErrorImplementors = []string{"ProductVariantsBulkUpdateUserError", "DisplayableError"}
  152490. func (ec *executionContext) _ProductVariantsBulkUpdateUserError(ctx context.Context, sel ast.SelectionSet, obj *ProductVariantsBulkUpdateUserError) graphql.Marshaler {
  152491. fields := graphql.CollectFields(ec.OperationContext, sel, productVariantsBulkUpdateUserErrorImplementors)
  152492. out := graphql.NewFieldSet(fields)
  152493. var invalids uint32
  152494. for i, field := range fields {
  152495. switch field.Name {
  152496. case "__typename":
  152497. out.Values[i] = graphql.MarshalString("ProductVariantsBulkUpdateUserError")
  152498. case "code":
  152499. out.Values[i] = ec._ProductVariantsBulkUpdateUserError_code(ctx, field, obj)
  152500. case "field":
  152501. out.Values[i] = ec._ProductVariantsBulkUpdateUserError_field(ctx, field, obj)
  152502. case "message":
  152503. out.Values[i] = ec._ProductVariantsBulkUpdateUserError_message(ctx, field, obj)
  152504. if out.Values[i] == graphql.Null {
  152505. invalids++
  152506. }
  152507. default:
  152508. panic("unknown field " + strconv.Quote(field.Name))
  152509. }
  152510. }
  152511. out.Dispatch()
  152512. if invalids > 0 {
  152513. return graphql.Null
  152514. }
  152515. return out
  152516. }
  152517. var publicationImplementors = []string{"Publication", "Node"}
  152518. func (ec *executionContext) _Publication(ctx context.Context, sel ast.SelectionSet, obj *Publication) graphql.Marshaler {
  152519. fields := graphql.CollectFields(ec.OperationContext, sel, publicationImplementors)
  152520. out := graphql.NewFieldSet(fields)
  152521. var invalids uint32
  152522. for i, field := range fields {
  152523. switch field.Name {
  152524. case "__typename":
  152525. out.Values[i] = graphql.MarshalString("Publication")
  152526. case "app":
  152527. out.Values[i] = ec._Publication_app(ctx, field, obj)
  152528. if out.Values[i] == graphql.Null {
  152529. invalids++
  152530. }
  152531. case "collectionPublicationsV3":
  152532. out.Values[i] = ec._Publication_collectionPublicationsV3(ctx, field, obj)
  152533. if out.Values[i] == graphql.Null {
  152534. invalids++
  152535. }
  152536. case "collections":
  152537. out.Values[i] = ec._Publication_collections(ctx, field, obj)
  152538. if out.Values[i] == graphql.Null {
  152539. invalids++
  152540. }
  152541. case "hasCollection":
  152542. out.Values[i] = ec._Publication_hasCollection(ctx, field, obj)
  152543. if out.Values[i] == graphql.Null {
  152544. invalids++
  152545. }
  152546. case "id":
  152547. out.Values[i] = ec._Publication_id(ctx, field, obj)
  152548. if out.Values[i] == graphql.Null {
  152549. invalids++
  152550. }
  152551. case "name":
  152552. out.Values[i] = ec._Publication_name(ctx, field, obj)
  152553. if out.Values[i] == graphql.Null {
  152554. invalids++
  152555. }
  152556. case "productPublicationsV3":
  152557. out.Values[i] = ec._Publication_productPublicationsV3(ctx, field, obj)
  152558. if out.Values[i] == graphql.Null {
  152559. invalids++
  152560. }
  152561. case "products":
  152562. out.Values[i] = ec._Publication_products(ctx, field, obj)
  152563. if out.Values[i] == graphql.Null {
  152564. invalids++
  152565. }
  152566. case "supportsFuturePublishing":
  152567. out.Values[i] = ec._Publication_supportsFuturePublishing(ctx, field, obj)
  152568. if out.Values[i] == graphql.Null {
  152569. invalids++
  152570. }
  152571. default:
  152572. panic("unknown field " + strconv.Quote(field.Name))
  152573. }
  152574. }
  152575. out.Dispatch()
  152576. if invalids > 0 {
  152577. return graphql.Null
  152578. }
  152579. return out
  152580. }
  152581. var publicationConnectionImplementors = []string{"PublicationConnection"}
  152582. func (ec *executionContext) _PublicationConnection(ctx context.Context, sel ast.SelectionSet, obj *PublicationConnection) graphql.Marshaler {
  152583. fields := graphql.CollectFields(ec.OperationContext, sel, publicationConnectionImplementors)
  152584. out := graphql.NewFieldSet(fields)
  152585. var invalids uint32
  152586. for i, field := range fields {
  152587. switch field.Name {
  152588. case "__typename":
  152589. out.Values[i] = graphql.MarshalString("PublicationConnection")
  152590. case "edges":
  152591. out.Values[i] = ec._PublicationConnection_edges(ctx, field, obj)
  152592. if out.Values[i] == graphql.Null {
  152593. invalids++
  152594. }
  152595. case "nodes":
  152596. out.Values[i] = ec._PublicationConnection_nodes(ctx, field, obj)
  152597. if out.Values[i] == graphql.Null {
  152598. invalids++
  152599. }
  152600. case "pageInfo":
  152601. out.Values[i] = ec._PublicationConnection_pageInfo(ctx, field, obj)
  152602. if out.Values[i] == graphql.Null {
  152603. invalids++
  152604. }
  152605. default:
  152606. panic("unknown field " + strconv.Quote(field.Name))
  152607. }
  152608. }
  152609. out.Dispatch()
  152610. if invalids > 0 {
  152611. return graphql.Null
  152612. }
  152613. return out
  152614. }
  152615. var publicationEdgeImplementors = []string{"PublicationEdge"}
  152616. func (ec *executionContext) _PublicationEdge(ctx context.Context, sel ast.SelectionSet, obj *PublicationEdge) graphql.Marshaler {
  152617. fields := graphql.CollectFields(ec.OperationContext, sel, publicationEdgeImplementors)
  152618. out := graphql.NewFieldSet(fields)
  152619. var invalids uint32
  152620. for i, field := range fields {
  152621. switch field.Name {
  152622. case "__typename":
  152623. out.Values[i] = graphql.MarshalString("PublicationEdge")
  152624. case "cursor":
  152625. out.Values[i] = ec._PublicationEdge_cursor(ctx, field, obj)
  152626. if out.Values[i] == graphql.Null {
  152627. invalids++
  152628. }
  152629. case "node":
  152630. out.Values[i] = ec._PublicationEdge_node(ctx, field, obj)
  152631. if out.Values[i] == graphql.Null {
  152632. invalids++
  152633. }
  152634. default:
  152635. panic("unknown field " + strconv.Quote(field.Name))
  152636. }
  152637. }
  152638. out.Dispatch()
  152639. if invalids > 0 {
  152640. return graphql.Null
  152641. }
  152642. return out
  152643. }
  152644. var publishedTranslationImplementors = []string{"PublishedTranslation"}
  152645. func (ec *executionContext) _PublishedTranslation(ctx context.Context, sel ast.SelectionSet, obj *PublishedTranslation) graphql.Marshaler {
  152646. fields := graphql.CollectFields(ec.OperationContext, sel, publishedTranslationImplementors)
  152647. out := graphql.NewFieldSet(fields)
  152648. var invalids uint32
  152649. for i, field := range fields {
  152650. switch field.Name {
  152651. case "__typename":
  152652. out.Values[i] = graphql.MarshalString("PublishedTranslation")
  152653. case "key":
  152654. out.Values[i] = ec._PublishedTranslation_key(ctx, field, obj)
  152655. if out.Values[i] == graphql.Null {
  152656. invalids++
  152657. }
  152658. case "locale":
  152659. out.Values[i] = ec._PublishedTranslation_locale(ctx, field, obj)
  152660. if out.Values[i] == graphql.Null {
  152661. invalids++
  152662. }
  152663. case "marketId":
  152664. out.Values[i] = ec._PublishedTranslation_marketId(ctx, field, obj)
  152665. case "value":
  152666. out.Values[i] = ec._PublishedTranslation_value(ctx, field, obj)
  152667. default:
  152668. panic("unknown field " + strconv.Quote(field.Name))
  152669. }
  152670. }
  152671. out.Dispatch()
  152672. if invalids > 0 {
  152673. return graphql.Null
  152674. }
  152675. return out
  152676. }
  152677. var purchasingCompanyImplementors = []string{"PurchasingCompany", "PurchasingEntity"}
  152678. func (ec *executionContext) _PurchasingCompany(ctx context.Context, sel ast.SelectionSet, obj *PurchasingCompany) graphql.Marshaler {
  152679. fields := graphql.CollectFields(ec.OperationContext, sel, purchasingCompanyImplementors)
  152680. out := graphql.NewFieldSet(fields)
  152681. var invalids uint32
  152682. for i, field := range fields {
  152683. switch field.Name {
  152684. case "__typename":
  152685. out.Values[i] = graphql.MarshalString("PurchasingCompany")
  152686. case "company":
  152687. out.Values[i] = ec._PurchasingCompany_company(ctx, field, obj)
  152688. if out.Values[i] == graphql.Null {
  152689. invalids++
  152690. }
  152691. case "contact":
  152692. out.Values[i] = ec._PurchasingCompany_contact(ctx, field, obj)
  152693. case "location":
  152694. out.Values[i] = ec._PurchasingCompany_location(ctx, field, obj)
  152695. if out.Values[i] == graphql.Null {
  152696. invalids++
  152697. }
  152698. default:
  152699. panic("unknown field " + strconv.Quote(field.Name))
  152700. }
  152701. }
  152702. out.Dispatch()
  152703. if invalids > 0 {
  152704. return graphql.Null
  152705. }
  152706. return out
  152707. }
  152708. var queryImplementors = []string{"Query"}
  152709. func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
  152710. fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors)
  152711. ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
  152712. Object: "Query",
  152713. })
  152714. out := graphql.NewFieldSet(fields)
  152715. var invalids uint32
  152716. for i, field := range fields {
  152717. innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{
  152718. Object: field.Name,
  152719. Field: field,
  152720. })
  152721. switch field.Name {
  152722. case "__typename":
  152723. out.Values[i] = graphql.MarshalString("Query")
  152724. case "customer":
  152725. field := field
  152726. innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  152727. defer func() {
  152728. if r := recover(); r != nil {
  152729. ec.Error(ctx, ec.Recover(ctx, r))
  152730. }
  152731. }()
  152732. res = ec._Query_customer(ctx, field)
  152733. return res
  152734. }
  152735. rrm := func(ctx context.Context) graphql.Marshaler {
  152736. return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
  152737. }
  152738. out.Concurrently(i, func() graphql.Marshaler {
  152739. return rrm(innerCtx)
  152740. })
  152741. case "_entities":
  152742. field := field
  152743. innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  152744. defer func() {
  152745. if r := recover(); r != nil {
  152746. ec.Error(ctx, ec.Recover(ctx, r))
  152747. }
  152748. }()
  152749. res = ec._Query__entities(ctx, field)
  152750. if res == graphql.Null {
  152751. atomic.AddUint32(&invalids, 1)
  152752. }
  152753. return res
  152754. }
  152755. rrm := func(ctx context.Context) graphql.Marshaler {
  152756. return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
  152757. }
  152758. out.Concurrently(i, func() graphql.Marshaler {
  152759. return rrm(innerCtx)
  152760. })
  152761. case "_service":
  152762. field := field
  152763. innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
  152764. defer func() {
  152765. if r := recover(); r != nil {
  152766. ec.Error(ctx, ec.Recover(ctx, r))
  152767. }
  152768. }()
  152769. res = ec._Query__service(ctx, field)
  152770. if res == graphql.Null {
  152771. atomic.AddUint32(&invalids, 1)
  152772. }
  152773. return res
  152774. }
  152775. rrm := func(ctx context.Context) graphql.Marshaler {
  152776. return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
  152777. }
  152778. out.Concurrently(i, func() graphql.Marshaler {
  152779. return rrm(innerCtx)
  152780. })
  152781. case "__type":
  152782. out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
  152783. return ec._Query___type(ctx, field)
  152784. })
  152785. case "__schema":
  152786. out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
  152787. return ec._Query___schema(ctx, field)
  152788. })
  152789. default:
  152790. panic("unknown field " + strconv.Quote(field.Name))
  152791. }
  152792. }
  152793. out.Dispatch()
  152794. if invalids > 0 {
  152795. return graphql.Null
  152796. }
  152797. return out
  152798. }
  152799. var refundImplementors = []string{"Refund", "LegacyInteroperability", "Node"}
  152800. func (ec *executionContext) _Refund(ctx context.Context, sel ast.SelectionSet, obj *Refund) graphql.Marshaler {
  152801. fields := graphql.CollectFields(ec.OperationContext, sel, refundImplementors)
  152802. out := graphql.NewFieldSet(fields)
  152803. var invalids uint32
  152804. for i, field := range fields {
  152805. switch field.Name {
  152806. case "__typename":
  152807. out.Values[i] = graphql.MarshalString("Refund")
  152808. case "createdAt":
  152809. out.Values[i] = ec._Refund_createdAt(ctx, field, obj)
  152810. case "duties":
  152811. out.Values[i] = ec._Refund_duties(ctx, field, obj)
  152812. case "id":
  152813. out.Values[i] = ec._Refund_id(ctx, field, obj)
  152814. if out.Values[i] == graphql.Null {
  152815. invalids++
  152816. }
  152817. case "legacyResourceId":
  152818. out.Values[i] = ec._Refund_legacyResourceId(ctx, field, obj)
  152819. if out.Values[i] == graphql.Null {
  152820. invalids++
  152821. }
  152822. case "note":
  152823. out.Values[i] = ec._Refund_note(ctx, field, obj)
  152824. case "order":
  152825. out.Values[i] = ec._Refund_order(ctx, field, obj)
  152826. if out.Values[i] == graphql.Null {
  152827. invalids++
  152828. }
  152829. case "refundLineItems":
  152830. out.Values[i] = ec._Refund_refundLineItems(ctx, field, obj)
  152831. if out.Values[i] == graphql.Null {
  152832. invalids++
  152833. }
  152834. case "staffMember":
  152835. out.Values[i] = ec._Refund_staffMember(ctx, field, obj)
  152836. case "totalRefundedSet":
  152837. out.Values[i] = ec._Refund_totalRefundedSet(ctx, field, obj)
  152838. if out.Values[i] == graphql.Null {
  152839. invalids++
  152840. }
  152841. case "transactions":
  152842. out.Values[i] = ec._Refund_transactions(ctx, field, obj)
  152843. if out.Values[i] == graphql.Null {
  152844. invalids++
  152845. }
  152846. case "updatedAt":
  152847. out.Values[i] = ec._Refund_updatedAt(ctx, field, obj)
  152848. if out.Values[i] == graphql.Null {
  152849. invalids++
  152850. }
  152851. default:
  152852. panic("unknown field " + strconv.Quote(field.Name))
  152853. }
  152854. }
  152855. out.Dispatch()
  152856. if invalids > 0 {
  152857. return graphql.Null
  152858. }
  152859. return out
  152860. }
  152861. var refundDutyImplementors = []string{"RefundDuty"}
  152862. func (ec *executionContext) _RefundDuty(ctx context.Context, sel ast.SelectionSet, obj *RefundDuty) graphql.Marshaler {
  152863. fields := graphql.CollectFields(ec.OperationContext, sel, refundDutyImplementors)
  152864. out := graphql.NewFieldSet(fields)
  152865. var invalids uint32
  152866. for i, field := range fields {
  152867. switch field.Name {
  152868. case "__typename":
  152869. out.Values[i] = graphql.MarshalString("RefundDuty")
  152870. case "amountSet":
  152871. out.Values[i] = ec._RefundDuty_amountSet(ctx, field, obj)
  152872. if out.Values[i] == graphql.Null {
  152873. invalids++
  152874. }
  152875. case "originalDuty":
  152876. out.Values[i] = ec._RefundDuty_originalDuty(ctx, field, obj)
  152877. default:
  152878. panic("unknown field " + strconv.Quote(field.Name))
  152879. }
  152880. }
  152881. out.Dispatch()
  152882. if invalids > 0 {
  152883. return graphql.Null
  152884. }
  152885. return out
  152886. }
  152887. var refundLineItemImplementors = []string{"RefundLineItem"}
  152888. func (ec *executionContext) _RefundLineItem(ctx context.Context, sel ast.SelectionSet, obj *RefundLineItem) graphql.Marshaler {
  152889. fields := graphql.CollectFields(ec.OperationContext, sel, refundLineItemImplementors)
  152890. out := graphql.NewFieldSet(fields)
  152891. var invalids uint32
  152892. for i, field := range fields {
  152893. switch field.Name {
  152894. case "__typename":
  152895. out.Values[i] = graphql.MarshalString("RefundLineItem")
  152896. case "lineItem":
  152897. out.Values[i] = ec._RefundLineItem_lineItem(ctx, field, obj)
  152898. if out.Values[i] == graphql.Null {
  152899. invalids++
  152900. }
  152901. case "location":
  152902. out.Values[i] = ec._RefundLineItem_location(ctx, field, obj)
  152903. case "priceSet":
  152904. out.Values[i] = ec._RefundLineItem_priceSet(ctx, field, obj)
  152905. if out.Values[i] == graphql.Null {
  152906. invalids++
  152907. }
  152908. case "quantity":
  152909. out.Values[i] = ec._RefundLineItem_quantity(ctx, field, obj)
  152910. if out.Values[i] == graphql.Null {
  152911. invalids++
  152912. }
  152913. case "restockType":
  152914. out.Values[i] = ec._RefundLineItem_restockType(ctx, field, obj)
  152915. if out.Values[i] == graphql.Null {
  152916. invalids++
  152917. }
  152918. case "restocked":
  152919. out.Values[i] = ec._RefundLineItem_restocked(ctx, field, obj)
  152920. if out.Values[i] == graphql.Null {
  152921. invalids++
  152922. }
  152923. case "subtotalSet":
  152924. out.Values[i] = ec._RefundLineItem_subtotalSet(ctx, field, obj)
  152925. if out.Values[i] == graphql.Null {
  152926. invalids++
  152927. }
  152928. case "totalTaxSet":
  152929. out.Values[i] = ec._RefundLineItem_totalTaxSet(ctx, field, obj)
  152930. if out.Values[i] == graphql.Null {
  152931. invalids++
  152932. }
  152933. default:
  152934. panic("unknown field " + strconv.Quote(field.Name))
  152935. }
  152936. }
  152937. out.Dispatch()
  152938. if invalids > 0 {
  152939. return graphql.Null
  152940. }
  152941. return out
  152942. }
  152943. var refundLineItemConnectionImplementors = []string{"RefundLineItemConnection"}
  152944. func (ec *executionContext) _RefundLineItemConnection(ctx context.Context, sel ast.SelectionSet, obj *RefundLineItemConnection) graphql.Marshaler {
  152945. fields := graphql.CollectFields(ec.OperationContext, sel, refundLineItemConnectionImplementors)
  152946. out := graphql.NewFieldSet(fields)
  152947. var invalids uint32
  152948. for i, field := range fields {
  152949. switch field.Name {
  152950. case "__typename":
  152951. out.Values[i] = graphql.MarshalString("RefundLineItemConnection")
  152952. case "edges":
  152953. out.Values[i] = ec._RefundLineItemConnection_edges(ctx, field, obj)
  152954. if out.Values[i] == graphql.Null {
  152955. invalids++
  152956. }
  152957. case "nodes":
  152958. out.Values[i] = ec._RefundLineItemConnection_nodes(ctx, field, obj)
  152959. if out.Values[i] == graphql.Null {
  152960. invalids++
  152961. }
  152962. case "pageInfo":
  152963. out.Values[i] = ec._RefundLineItemConnection_pageInfo(ctx, field, obj)
  152964. if out.Values[i] == graphql.Null {
  152965. invalids++
  152966. }
  152967. default:
  152968. panic("unknown field " + strconv.Quote(field.Name))
  152969. }
  152970. }
  152971. out.Dispatch()
  152972. if invalids > 0 {
  152973. return graphql.Null
  152974. }
  152975. return out
  152976. }
  152977. var refundLineItemEdgeImplementors = []string{"RefundLineItemEdge"}
  152978. func (ec *executionContext) _RefundLineItemEdge(ctx context.Context, sel ast.SelectionSet, obj *RefundLineItemEdge) graphql.Marshaler {
  152979. fields := graphql.CollectFields(ec.OperationContext, sel, refundLineItemEdgeImplementors)
  152980. out := graphql.NewFieldSet(fields)
  152981. var invalids uint32
  152982. for i, field := range fields {
  152983. switch field.Name {
  152984. case "__typename":
  152985. out.Values[i] = graphql.MarshalString("RefundLineItemEdge")
  152986. case "cursor":
  152987. out.Values[i] = ec._RefundLineItemEdge_cursor(ctx, field, obj)
  152988. if out.Values[i] == graphql.Null {
  152989. invalids++
  152990. }
  152991. case "node":
  152992. out.Values[i] = ec._RefundLineItemEdge_node(ctx, field, obj)
  152993. if out.Values[i] == graphql.Null {
  152994. invalids++
  152995. }
  152996. default:
  152997. panic("unknown field " + strconv.Quote(field.Name))
  152998. }
  152999. }
  153000. out.Dispatch()
  153001. if invalids > 0 {
  153002. return graphql.Null
  153003. }
  153004. return out
  153005. }
  153006. var resourceAlertImplementors = []string{"ResourceAlert"}
  153007. func (ec *executionContext) _ResourceAlert(ctx context.Context, sel ast.SelectionSet, obj *ResourceAlert) graphql.Marshaler {
  153008. fields := graphql.CollectFields(ec.OperationContext, sel, resourceAlertImplementors)
  153009. out := graphql.NewFieldSet(fields)
  153010. var invalids uint32
  153011. for i, field := range fields {
  153012. switch field.Name {
  153013. case "__typename":
  153014. out.Values[i] = graphql.MarshalString("ResourceAlert")
  153015. case "actions":
  153016. out.Values[i] = ec._ResourceAlert_actions(ctx, field, obj)
  153017. if out.Values[i] == graphql.Null {
  153018. invalids++
  153019. }
  153020. case "content":
  153021. out.Values[i] = ec._ResourceAlert_content(ctx, field, obj)
  153022. if out.Values[i] == graphql.Null {
  153023. invalids++
  153024. }
  153025. case "dismissibleHandle":
  153026. out.Values[i] = ec._ResourceAlert_dismissibleHandle(ctx, field, obj)
  153027. case "icon":
  153028. out.Values[i] = ec._ResourceAlert_icon(ctx, field, obj)
  153029. case "severity":
  153030. out.Values[i] = ec._ResourceAlert_severity(ctx, field, obj)
  153031. if out.Values[i] == graphql.Null {
  153032. invalids++
  153033. }
  153034. case "title":
  153035. out.Values[i] = ec._ResourceAlert_title(ctx, field, obj)
  153036. if out.Values[i] == graphql.Null {
  153037. invalids++
  153038. }
  153039. default:
  153040. panic("unknown field " + strconv.Quote(field.Name))
  153041. }
  153042. }
  153043. out.Dispatch()
  153044. if invalids > 0 {
  153045. return graphql.Null
  153046. }
  153047. return out
  153048. }
  153049. var resourceAlertActionImplementors = []string{"ResourceAlertAction"}
  153050. func (ec *executionContext) _ResourceAlertAction(ctx context.Context, sel ast.SelectionSet, obj *ResourceAlertAction) graphql.Marshaler {
  153051. fields := graphql.CollectFields(ec.OperationContext, sel, resourceAlertActionImplementors)
  153052. out := graphql.NewFieldSet(fields)
  153053. var invalids uint32
  153054. for i, field := range fields {
  153055. switch field.Name {
  153056. case "__typename":
  153057. out.Values[i] = graphql.MarshalString("ResourceAlertAction")
  153058. case "primary":
  153059. out.Values[i] = ec._ResourceAlertAction_primary(ctx, field, obj)
  153060. if out.Values[i] == graphql.Null {
  153061. invalids++
  153062. }
  153063. case "show":
  153064. out.Values[i] = ec._ResourceAlertAction_show(ctx, field, obj)
  153065. case "title":
  153066. out.Values[i] = ec._ResourceAlertAction_title(ctx, field, obj)
  153067. if out.Values[i] == graphql.Null {
  153068. invalids++
  153069. }
  153070. case "url":
  153071. out.Values[i] = ec._ResourceAlertAction_url(ctx, field, obj)
  153072. if out.Values[i] == graphql.Null {
  153073. invalids++
  153074. }
  153075. default:
  153076. panic("unknown field " + strconv.Quote(field.Name))
  153077. }
  153078. }
  153079. out.Dispatch()
  153080. if invalids > 0 {
  153081. return graphql.Null
  153082. }
  153083. return out
  153084. }
  153085. var resourceFeedbackImplementors = []string{"ResourceFeedback"}
  153086. func (ec *executionContext) _ResourceFeedback(ctx context.Context, sel ast.SelectionSet, obj *ResourceFeedback) graphql.Marshaler {
  153087. fields := graphql.CollectFields(ec.OperationContext, sel, resourceFeedbackImplementors)
  153088. out := graphql.NewFieldSet(fields)
  153089. var invalids uint32
  153090. for i, field := range fields {
  153091. switch field.Name {
  153092. case "__typename":
  153093. out.Values[i] = graphql.MarshalString("ResourceFeedback")
  153094. case "details":
  153095. out.Values[i] = ec._ResourceFeedback_details(ctx, field, obj)
  153096. if out.Values[i] == graphql.Null {
  153097. invalids++
  153098. }
  153099. case "summary":
  153100. out.Values[i] = ec._ResourceFeedback_summary(ctx, field, obj)
  153101. if out.Values[i] == graphql.Null {
  153102. invalids++
  153103. }
  153104. default:
  153105. panic("unknown field " + strconv.Quote(field.Name))
  153106. }
  153107. }
  153108. out.Dispatch()
  153109. if invalids > 0 {
  153110. return graphql.Null
  153111. }
  153112. return out
  153113. }
  153114. var resourceLimitImplementors = []string{"ResourceLimit"}
  153115. func (ec *executionContext) _ResourceLimit(ctx context.Context, sel ast.SelectionSet, obj *ResourceLimit) graphql.Marshaler {
  153116. fields := graphql.CollectFields(ec.OperationContext, sel, resourceLimitImplementors)
  153117. out := graphql.NewFieldSet(fields)
  153118. var invalids uint32
  153119. for i, field := range fields {
  153120. switch field.Name {
  153121. case "__typename":
  153122. out.Values[i] = graphql.MarshalString("ResourceLimit")
  153123. case "available":
  153124. out.Values[i] = ec._ResourceLimit_available(ctx, field, obj)
  153125. if out.Values[i] == graphql.Null {
  153126. invalids++
  153127. }
  153128. case "quantityAvailable":
  153129. out.Values[i] = ec._ResourceLimit_quantityAvailable(ctx, field, obj)
  153130. case "quantityLimit":
  153131. out.Values[i] = ec._ResourceLimit_quantityLimit(ctx, field, obj)
  153132. case "quantityUsed":
  153133. out.Values[i] = ec._ResourceLimit_quantityUsed(ctx, field, obj)
  153134. default:
  153135. panic("unknown field " + strconv.Quote(field.Name))
  153136. }
  153137. }
  153138. out.Dispatch()
  153139. if invalids > 0 {
  153140. return graphql.Null
  153141. }
  153142. return out
  153143. }
  153144. var resourcePublicationImplementors = []string{"ResourcePublication"}
  153145. func (ec *executionContext) _ResourcePublication(ctx context.Context, sel ast.SelectionSet, obj *ResourcePublication) graphql.Marshaler {
  153146. fields := graphql.CollectFields(ec.OperationContext, sel, resourcePublicationImplementors)
  153147. out := graphql.NewFieldSet(fields)
  153148. var invalids uint32
  153149. for i, field := range fields {
  153150. switch field.Name {
  153151. case "__typename":
  153152. out.Values[i] = graphql.MarshalString("ResourcePublication")
  153153. case "isPublished":
  153154. out.Values[i] = ec._ResourcePublication_isPublished(ctx, field, obj)
  153155. if out.Values[i] == graphql.Null {
  153156. invalids++
  153157. }
  153158. case "publication":
  153159. out.Values[i] = ec._ResourcePublication_publication(ctx, field, obj)
  153160. if out.Values[i] == graphql.Null {
  153161. invalids++
  153162. }
  153163. case "publishDate":
  153164. out.Values[i] = ec._ResourcePublication_publishDate(ctx, field, obj)
  153165. if out.Values[i] == graphql.Null {
  153166. invalids++
  153167. }
  153168. case "publishable":
  153169. out.Values[i] = ec._ResourcePublication_publishable(ctx, field, obj)
  153170. if out.Values[i] == graphql.Null {
  153171. invalids++
  153172. }
  153173. default:
  153174. panic("unknown field " + strconv.Quote(field.Name))
  153175. }
  153176. }
  153177. out.Dispatch()
  153178. if invalids > 0 {
  153179. return graphql.Null
  153180. }
  153181. return out
  153182. }
  153183. var resourcePublicationConnectionImplementors = []string{"ResourcePublicationConnection"}
  153184. func (ec *executionContext) _ResourcePublicationConnection(ctx context.Context, sel ast.SelectionSet, obj *ResourcePublicationConnection) graphql.Marshaler {
  153185. fields := graphql.CollectFields(ec.OperationContext, sel, resourcePublicationConnectionImplementors)
  153186. out := graphql.NewFieldSet(fields)
  153187. var invalids uint32
  153188. for i, field := range fields {
  153189. switch field.Name {
  153190. case "__typename":
  153191. out.Values[i] = graphql.MarshalString("ResourcePublicationConnection")
  153192. case "edges":
  153193. out.Values[i] = ec._ResourcePublicationConnection_edges(ctx, field, obj)
  153194. if out.Values[i] == graphql.Null {
  153195. invalids++
  153196. }
  153197. case "nodes":
  153198. out.Values[i] = ec._ResourcePublicationConnection_nodes(ctx, field, obj)
  153199. if out.Values[i] == graphql.Null {
  153200. invalids++
  153201. }
  153202. case "pageInfo":
  153203. out.Values[i] = ec._ResourcePublicationConnection_pageInfo(ctx, field, obj)
  153204. if out.Values[i] == graphql.Null {
  153205. invalids++
  153206. }
  153207. default:
  153208. panic("unknown field " + strconv.Quote(field.Name))
  153209. }
  153210. }
  153211. out.Dispatch()
  153212. if invalids > 0 {
  153213. return graphql.Null
  153214. }
  153215. return out
  153216. }
  153217. var resourcePublicationEdgeImplementors = []string{"ResourcePublicationEdge"}
  153218. func (ec *executionContext) _ResourcePublicationEdge(ctx context.Context, sel ast.SelectionSet, obj *ResourcePublicationEdge) graphql.Marshaler {
  153219. fields := graphql.CollectFields(ec.OperationContext, sel, resourcePublicationEdgeImplementors)
  153220. out := graphql.NewFieldSet(fields)
  153221. var invalids uint32
  153222. for i, field := range fields {
  153223. switch field.Name {
  153224. case "__typename":
  153225. out.Values[i] = graphql.MarshalString("ResourcePublicationEdge")
  153226. case "cursor":
  153227. out.Values[i] = ec._ResourcePublicationEdge_cursor(ctx, field, obj)
  153228. if out.Values[i] == graphql.Null {
  153229. invalids++
  153230. }
  153231. case "node":
  153232. out.Values[i] = ec._ResourcePublicationEdge_node(ctx, field, obj)
  153233. if out.Values[i] == graphql.Null {
  153234. invalids++
  153235. }
  153236. default:
  153237. panic("unknown field " + strconv.Quote(field.Name))
  153238. }
  153239. }
  153240. out.Dispatch()
  153241. if invalids > 0 {
  153242. return graphql.Null
  153243. }
  153244. return out
  153245. }
  153246. var resourcePublicationV2Implementors = []string{"ResourcePublicationV2"}
  153247. func (ec *executionContext) _ResourcePublicationV2(ctx context.Context, sel ast.SelectionSet, obj *ResourcePublicationV2) graphql.Marshaler {
  153248. fields := graphql.CollectFields(ec.OperationContext, sel, resourcePublicationV2Implementors)
  153249. out := graphql.NewFieldSet(fields)
  153250. var invalids uint32
  153251. for i, field := range fields {
  153252. switch field.Name {
  153253. case "__typename":
  153254. out.Values[i] = graphql.MarshalString("ResourcePublicationV2")
  153255. case "isPublished":
  153256. out.Values[i] = ec._ResourcePublicationV2_isPublished(ctx, field, obj)
  153257. if out.Values[i] == graphql.Null {
  153258. invalids++
  153259. }
  153260. case "publication":
  153261. out.Values[i] = ec._ResourcePublicationV2_publication(ctx, field, obj)
  153262. if out.Values[i] == graphql.Null {
  153263. invalids++
  153264. }
  153265. case "publishDate":
  153266. out.Values[i] = ec._ResourcePublicationV2_publishDate(ctx, field, obj)
  153267. case "publishable":
  153268. out.Values[i] = ec._ResourcePublicationV2_publishable(ctx, field, obj)
  153269. if out.Values[i] == graphql.Null {
  153270. invalids++
  153271. }
  153272. default:
  153273. panic("unknown field " + strconv.Quote(field.Name))
  153274. }
  153275. }
  153276. out.Dispatch()
  153277. if invalids > 0 {
  153278. return graphql.Null
  153279. }
  153280. return out
  153281. }
  153282. var resourcePublicationV2ConnectionImplementors = []string{"ResourcePublicationV2Connection"}
  153283. func (ec *executionContext) _ResourcePublicationV2Connection(ctx context.Context, sel ast.SelectionSet, obj *ResourcePublicationV2Connection) graphql.Marshaler {
  153284. fields := graphql.CollectFields(ec.OperationContext, sel, resourcePublicationV2ConnectionImplementors)
  153285. out := graphql.NewFieldSet(fields)
  153286. var invalids uint32
  153287. for i, field := range fields {
  153288. switch field.Name {
  153289. case "__typename":
  153290. out.Values[i] = graphql.MarshalString("ResourcePublicationV2Connection")
  153291. case "edges":
  153292. out.Values[i] = ec._ResourcePublicationV2Connection_edges(ctx, field, obj)
  153293. if out.Values[i] == graphql.Null {
  153294. invalids++
  153295. }
  153296. case "nodes":
  153297. out.Values[i] = ec._ResourcePublicationV2Connection_nodes(ctx, field, obj)
  153298. if out.Values[i] == graphql.Null {
  153299. invalids++
  153300. }
  153301. case "pageInfo":
  153302. out.Values[i] = ec._ResourcePublicationV2Connection_pageInfo(ctx, field, obj)
  153303. if out.Values[i] == graphql.Null {
  153304. invalids++
  153305. }
  153306. default:
  153307. panic("unknown field " + strconv.Quote(field.Name))
  153308. }
  153309. }
  153310. out.Dispatch()
  153311. if invalids > 0 {
  153312. return graphql.Null
  153313. }
  153314. return out
  153315. }
  153316. var resourcePublicationV2EdgeImplementors = []string{"ResourcePublicationV2Edge"}
  153317. func (ec *executionContext) _ResourcePublicationV2Edge(ctx context.Context, sel ast.SelectionSet, obj *ResourcePublicationV2Edge) graphql.Marshaler {
  153318. fields := graphql.CollectFields(ec.OperationContext, sel, resourcePublicationV2EdgeImplementors)
  153319. out := graphql.NewFieldSet(fields)
  153320. var invalids uint32
  153321. for i, field := range fields {
  153322. switch field.Name {
  153323. case "__typename":
  153324. out.Values[i] = graphql.MarshalString("ResourcePublicationV2Edge")
  153325. case "cursor":
  153326. out.Values[i] = ec._ResourcePublicationV2Edge_cursor(ctx, field, obj)
  153327. if out.Values[i] == graphql.Null {
  153328. invalids++
  153329. }
  153330. case "node":
  153331. out.Values[i] = ec._ResourcePublicationV2Edge_node(ctx, field, obj)
  153332. if out.Values[i] == graphql.Null {
  153333. invalids++
  153334. }
  153335. default:
  153336. panic("unknown field " + strconv.Quote(field.Name))
  153337. }
  153338. }
  153339. out.Dispatch()
  153340. if invalids > 0 {
  153341. return graphql.Null
  153342. }
  153343. return out
  153344. }
  153345. var sEOImplementors = []string{"SEO"}
  153346. func (ec *executionContext) _SEO(ctx context.Context, sel ast.SelectionSet, obj *Seo) graphql.Marshaler {
  153347. fields := graphql.CollectFields(ec.OperationContext, sel, sEOImplementors)
  153348. out := graphql.NewFieldSet(fields)
  153349. var invalids uint32
  153350. for i, field := range fields {
  153351. switch field.Name {
  153352. case "__typename":
  153353. out.Values[i] = graphql.MarshalString("SEO")
  153354. case "description":
  153355. out.Values[i] = ec._SEO_description(ctx, field, obj)
  153356. case "title":
  153357. out.Values[i] = ec._SEO_title(ctx, field, obj)
  153358. default:
  153359. panic("unknown field " + strconv.Quote(field.Name))
  153360. }
  153361. }
  153362. out.Dispatch()
  153363. if invalids > 0 {
  153364. return graphql.Null
  153365. }
  153366. return out
  153367. }
  153368. var saleConnectionImplementors = []string{"SaleConnection"}
  153369. func (ec *executionContext) _SaleConnection(ctx context.Context, sel ast.SelectionSet, obj *SaleConnection) graphql.Marshaler {
  153370. fields := graphql.CollectFields(ec.OperationContext, sel, saleConnectionImplementors)
  153371. out := graphql.NewFieldSet(fields)
  153372. var invalids uint32
  153373. for i, field := range fields {
  153374. switch field.Name {
  153375. case "__typename":
  153376. out.Values[i] = graphql.MarshalString("SaleConnection")
  153377. case "edges":
  153378. out.Values[i] = ec._SaleConnection_edges(ctx, field, obj)
  153379. if out.Values[i] == graphql.Null {
  153380. invalids++
  153381. }
  153382. case "nodes":
  153383. out.Values[i] = ec._SaleConnection_nodes(ctx, field, obj)
  153384. if out.Values[i] == graphql.Null {
  153385. invalids++
  153386. }
  153387. case "pageInfo":
  153388. out.Values[i] = ec._SaleConnection_pageInfo(ctx, field, obj)
  153389. if out.Values[i] == graphql.Null {
  153390. invalids++
  153391. }
  153392. default:
  153393. panic("unknown field " + strconv.Quote(field.Name))
  153394. }
  153395. }
  153396. out.Dispatch()
  153397. if invalids > 0 {
  153398. return graphql.Null
  153399. }
  153400. return out
  153401. }
  153402. var saleEdgeImplementors = []string{"SaleEdge"}
  153403. func (ec *executionContext) _SaleEdge(ctx context.Context, sel ast.SelectionSet, obj *SaleEdge) graphql.Marshaler {
  153404. fields := graphql.CollectFields(ec.OperationContext, sel, saleEdgeImplementors)
  153405. out := graphql.NewFieldSet(fields)
  153406. var invalids uint32
  153407. for i, field := range fields {
  153408. switch field.Name {
  153409. case "__typename":
  153410. out.Values[i] = graphql.MarshalString("SaleEdge")
  153411. case "cursor":
  153412. out.Values[i] = ec._SaleEdge_cursor(ctx, field, obj)
  153413. if out.Values[i] == graphql.Null {
  153414. invalids++
  153415. }
  153416. case "node":
  153417. out.Values[i] = ec._SaleEdge_node(ctx, field, obj)
  153418. if out.Values[i] == graphql.Null {
  153419. invalids++
  153420. }
  153421. default:
  153422. panic("unknown field " + strconv.Quote(field.Name))
  153423. }
  153424. }
  153425. out.Dispatch()
  153426. if invalids > 0 {
  153427. return graphql.Null
  153428. }
  153429. return out
  153430. }
  153431. var saleTaxImplementors = []string{"SaleTax"}
  153432. func (ec *executionContext) _SaleTax(ctx context.Context, sel ast.SelectionSet, obj *SaleTax) graphql.Marshaler {
  153433. fields := graphql.CollectFields(ec.OperationContext, sel, saleTaxImplementors)
  153434. out := graphql.NewFieldSet(fields)
  153435. var invalids uint32
  153436. for i, field := range fields {
  153437. switch field.Name {
  153438. case "__typename":
  153439. out.Values[i] = graphql.MarshalString("SaleTax")
  153440. case "amount":
  153441. out.Values[i] = ec._SaleTax_amount(ctx, field, obj)
  153442. if out.Values[i] == graphql.Null {
  153443. invalids++
  153444. }
  153445. case "id":
  153446. out.Values[i] = ec._SaleTax_id(ctx, field, obj)
  153447. if out.Values[i] == graphql.Null {
  153448. invalids++
  153449. }
  153450. case "taxLine":
  153451. out.Values[i] = ec._SaleTax_taxLine(ctx, field, obj)
  153452. if out.Values[i] == graphql.Null {
  153453. invalids++
  153454. }
  153455. default:
  153456. panic("unknown field " + strconv.Quote(field.Name))
  153457. }
  153458. }
  153459. out.Dispatch()
  153460. if invalids > 0 {
  153461. return graphql.Null
  153462. }
  153463. return out
  153464. }
  153465. var salesAgreementConnectionImplementors = []string{"SalesAgreementConnection"}
  153466. func (ec *executionContext) _SalesAgreementConnection(ctx context.Context, sel ast.SelectionSet, obj *SalesAgreementConnection) graphql.Marshaler {
  153467. fields := graphql.CollectFields(ec.OperationContext, sel, salesAgreementConnectionImplementors)
  153468. out := graphql.NewFieldSet(fields)
  153469. var invalids uint32
  153470. for i, field := range fields {
  153471. switch field.Name {
  153472. case "__typename":
  153473. out.Values[i] = graphql.MarshalString("SalesAgreementConnection")
  153474. case "edges":
  153475. out.Values[i] = ec._SalesAgreementConnection_edges(ctx, field, obj)
  153476. if out.Values[i] == graphql.Null {
  153477. invalids++
  153478. }
  153479. case "nodes":
  153480. out.Values[i] = ec._SalesAgreementConnection_nodes(ctx, field, obj)
  153481. if out.Values[i] == graphql.Null {
  153482. invalids++
  153483. }
  153484. case "pageInfo":
  153485. out.Values[i] = ec._SalesAgreementConnection_pageInfo(ctx, field, obj)
  153486. if out.Values[i] == graphql.Null {
  153487. invalids++
  153488. }
  153489. default:
  153490. panic("unknown field " + strconv.Quote(field.Name))
  153491. }
  153492. }
  153493. out.Dispatch()
  153494. if invalids > 0 {
  153495. return graphql.Null
  153496. }
  153497. return out
  153498. }
  153499. var salesAgreementEdgeImplementors = []string{"SalesAgreementEdge"}
  153500. func (ec *executionContext) _SalesAgreementEdge(ctx context.Context, sel ast.SelectionSet, obj *SalesAgreementEdge) graphql.Marshaler {
  153501. fields := graphql.CollectFields(ec.OperationContext, sel, salesAgreementEdgeImplementors)
  153502. out := graphql.NewFieldSet(fields)
  153503. var invalids uint32
  153504. for i, field := range fields {
  153505. switch field.Name {
  153506. case "__typename":
  153507. out.Values[i] = graphql.MarshalString("SalesAgreementEdge")
  153508. case "cursor":
  153509. out.Values[i] = ec._SalesAgreementEdge_cursor(ctx, field, obj)
  153510. if out.Values[i] == graphql.Null {
  153511. invalids++
  153512. }
  153513. case "node":
  153514. out.Values[i] = ec._SalesAgreementEdge_node(ctx, field, obj)
  153515. if out.Values[i] == graphql.Null {
  153516. invalids++
  153517. }
  153518. default:
  153519. panic("unknown field " + strconv.Quote(field.Name))
  153520. }
  153521. }
  153522. out.Dispatch()
  153523. if invalids > 0 {
  153524. return graphql.Null
  153525. }
  153526. return out
  153527. }
  153528. var savedSearchImplementors = []string{"SavedSearch", "LegacyInteroperability", "Node"}
  153529. func (ec *executionContext) _SavedSearch(ctx context.Context, sel ast.SelectionSet, obj *SavedSearch) graphql.Marshaler {
  153530. fields := graphql.CollectFields(ec.OperationContext, sel, savedSearchImplementors)
  153531. out := graphql.NewFieldSet(fields)
  153532. var invalids uint32
  153533. for i, field := range fields {
  153534. switch field.Name {
  153535. case "__typename":
  153536. out.Values[i] = graphql.MarshalString("SavedSearch")
  153537. case "filters":
  153538. out.Values[i] = ec._SavedSearch_filters(ctx, field, obj)
  153539. if out.Values[i] == graphql.Null {
  153540. invalids++
  153541. }
  153542. case "id":
  153543. out.Values[i] = ec._SavedSearch_id(ctx, field, obj)
  153544. if out.Values[i] == graphql.Null {
  153545. invalids++
  153546. }
  153547. case "legacyResourceId":
  153548. out.Values[i] = ec._SavedSearch_legacyResourceId(ctx, field, obj)
  153549. if out.Values[i] == graphql.Null {
  153550. invalids++
  153551. }
  153552. case "name":
  153553. out.Values[i] = ec._SavedSearch_name(ctx, field, obj)
  153554. if out.Values[i] == graphql.Null {
  153555. invalids++
  153556. }
  153557. case "query":
  153558. out.Values[i] = ec._SavedSearch_query(ctx, field, obj)
  153559. if out.Values[i] == graphql.Null {
  153560. invalids++
  153561. }
  153562. case "resourceType":
  153563. out.Values[i] = ec._SavedSearch_resourceType(ctx, field, obj)
  153564. if out.Values[i] == graphql.Null {
  153565. invalids++
  153566. }
  153567. case "searchTerms":
  153568. out.Values[i] = ec._SavedSearch_searchTerms(ctx, field, obj)
  153569. if out.Values[i] == graphql.Null {
  153570. invalids++
  153571. }
  153572. default:
  153573. panic("unknown field " + strconv.Quote(field.Name))
  153574. }
  153575. }
  153576. out.Dispatch()
  153577. if invalids > 0 {
  153578. return graphql.Null
  153579. }
  153580. return out
  153581. }
  153582. var savedSearchConnectionImplementors = []string{"SavedSearchConnection"}
  153583. func (ec *executionContext) _SavedSearchConnection(ctx context.Context, sel ast.SelectionSet, obj *SavedSearchConnection) graphql.Marshaler {
  153584. fields := graphql.CollectFields(ec.OperationContext, sel, savedSearchConnectionImplementors)
  153585. out := graphql.NewFieldSet(fields)
  153586. var invalids uint32
  153587. for i, field := range fields {
  153588. switch field.Name {
  153589. case "__typename":
  153590. out.Values[i] = graphql.MarshalString("SavedSearchConnection")
  153591. case "edges":
  153592. out.Values[i] = ec._SavedSearchConnection_edges(ctx, field, obj)
  153593. if out.Values[i] == graphql.Null {
  153594. invalids++
  153595. }
  153596. case "nodes":
  153597. out.Values[i] = ec._SavedSearchConnection_nodes(ctx, field, obj)
  153598. if out.Values[i] == graphql.Null {
  153599. invalids++
  153600. }
  153601. case "pageInfo":
  153602. out.Values[i] = ec._SavedSearchConnection_pageInfo(ctx, field, obj)
  153603. if out.Values[i] == graphql.Null {
  153604. invalids++
  153605. }
  153606. default:
  153607. panic("unknown field " + strconv.Quote(field.Name))
  153608. }
  153609. }
  153610. out.Dispatch()
  153611. if invalids > 0 {
  153612. return graphql.Null
  153613. }
  153614. return out
  153615. }
  153616. var savedSearchEdgeImplementors = []string{"SavedSearchEdge"}
  153617. func (ec *executionContext) _SavedSearchEdge(ctx context.Context, sel ast.SelectionSet, obj *SavedSearchEdge) graphql.Marshaler {
  153618. fields := graphql.CollectFields(ec.OperationContext, sel, savedSearchEdgeImplementors)
  153619. out := graphql.NewFieldSet(fields)
  153620. var invalids uint32
  153621. for i, field := range fields {
  153622. switch field.Name {
  153623. case "__typename":
  153624. out.Values[i] = graphql.MarshalString("SavedSearchEdge")
  153625. case "cursor":
  153626. out.Values[i] = ec._SavedSearchEdge_cursor(ctx, field, obj)
  153627. if out.Values[i] == graphql.Null {
  153628. invalids++
  153629. }
  153630. case "node":
  153631. out.Values[i] = ec._SavedSearchEdge_node(ctx, field, obj)
  153632. if out.Values[i] == graphql.Null {
  153633. invalids++
  153634. }
  153635. default:
  153636. panic("unknown field " + strconv.Quote(field.Name))
  153637. }
  153638. }
  153639. out.Dispatch()
  153640. if invalids > 0 {
  153641. return graphql.Null
  153642. }
  153643. return out
  153644. }
  153645. var scriptDiscountApplicationImplementors = []string{"ScriptDiscountApplication", "DiscountApplication"}
  153646. func (ec *executionContext) _ScriptDiscountApplication(ctx context.Context, sel ast.SelectionSet, obj *ScriptDiscountApplication) graphql.Marshaler {
  153647. fields := graphql.CollectFields(ec.OperationContext, sel, scriptDiscountApplicationImplementors)
  153648. out := graphql.NewFieldSet(fields)
  153649. var invalids uint32
  153650. for i, field := range fields {
  153651. switch field.Name {
  153652. case "__typename":
  153653. out.Values[i] = graphql.MarshalString("ScriptDiscountApplication")
  153654. case "allocationMethod":
  153655. out.Values[i] = ec._ScriptDiscountApplication_allocationMethod(ctx, field, obj)
  153656. if out.Values[i] == graphql.Null {
  153657. invalids++
  153658. }
  153659. case "index":
  153660. out.Values[i] = ec._ScriptDiscountApplication_index(ctx, field, obj)
  153661. if out.Values[i] == graphql.Null {
  153662. invalids++
  153663. }
  153664. case "targetSelection":
  153665. out.Values[i] = ec._ScriptDiscountApplication_targetSelection(ctx, field, obj)
  153666. if out.Values[i] == graphql.Null {
  153667. invalids++
  153668. }
  153669. case "targetType":
  153670. out.Values[i] = ec._ScriptDiscountApplication_targetType(ctx, field, obj)
  153671. if out.Values[i] == graphql.Null {
  153672. invalids++
  153673. }
  153674. case "title":
  153675. out.Values[i] = ec._ScriptDiscountApplication_title(ctx, field, obj)
  153676. if out.Values[i] == graphql.Null {
  153677. invalids++
  153678. }
  153679. case "value":
  153680. out.Values[i] = ec._ScriptDiscountApplication_value(ctx, field, obj)
  153681. if out.Values[i] == graphql.Null {
  153682. invalids++
  153683. }
  153684. default:
  153685. panic("unknown field " + strconv.Quote(field.Name))
  153686. }
  153687. }
  153688. out.Dispatch()
  153689. if invalids > 0 {
  153690. return graphql.Null
  153691. }
  153692. return out
  153693. }
  153694. var searchFilterImplementors = []string{"SearchFilter"}
  153695. func (ec *executionContext) _SearchFilter(ctx context.Context, sel ast.SelectionSet, obj *SearchFilter) graphql.Marshaler {
  153696. fields := graphql.CollectFields(ec.OperationContext, sel, searchFilterImplementors)
  153697. out := graphql.NewFieldSet(fields)
  153698. var invalids uint32
  153699. for i, field := range fields {
  153700. switch field.Name {
  153701. case "__typename":
  153702. out.Values[i] = graphql.MarshalString("SearchFilter")
  153703. case "key":
  153704. out.Values[i] = ec._SearchFilter_key(ctx, field, obj)
  153705. if out.Values[i] == graphql.Null {
  153706. invalids++
  153707. }
  153708. case "value":
  153709. out.Values[i] = ec._SearchFilter_value(ctx, field, obj)
  153710. if out.Values[i] == graphql.Null {
  153711. invalids++
  153712. }
  153713. default:
  153714. panic("unknown field " + strconv.Quote(field.Name))
  153715. }
  153716. }
  153717. out.Dispatch()
  153718. if invalids > 0 {
  153719. return graphql.Null
  153720. }
  153721. return out
  153722. }
  153723. var searchFilterOptionsImplementors = []string{"SearchFilterOptions"}
  153724. func (ec *executionContext) _SearchFilterOptions(ctx context.Context, sel ast.SelectionSet, obj *SearchFilterOptions) graphql.Marshaler {
  153725. fields := graphql.CollectFields(ec.OperationContext, sel, searchFilterOptionsImplementors)
  153726. out := graphql.NewFieldSet(fields)
  153727. var invalids uint32
  153728. for i, field := range fields {
  153729. switch field.Name {
  153730. case "__typename":
  153731. out.Values[i] = graphql.MarshalString("SearchFilterOptions")
  153732. case "productAvailability":
  153733. out.Values[i] = ec._SearchFilterOptions_productAvailability(ctx, field, obj)
  153734. if out.Values[i] == graphql.Null {
  153735. invalids++
  153736. }
  153737. default:
  153738. panic("unknown field " + strconv.Quote(field.Name))
  153739. }
  153740. }
  153741. out.Dispatch()
  153742. if invalids > 0 {
  153743. return graphql.Null
  153744. }
  153745. return out
  153746. }
  153747. var searchResultImplementors = []string{"SearchResult"}
  153748. func (ec *executionContext) _SearchResult(ctx context.Context, sel ast.SelectionSet, obj *SearchResult) graphql.Marshaler {
  153749. fields := graphql.CollectFields(ec.OperationContext, sel, searchResultImplementors)
  153750. out := graphql.NewFieldSet(fields)
  153751. var invalids uint32
  153752. for i, field := range fields {
  153753. switch field.Name {
  153754. case "__typename":
  153755. out.Values[i] = graphql.MarshalString("SearchResult")
  153756. case "description":
  153757. out.Values[i] = ec._SearchResult_description(ctx, field, obj)
  153758. case "image":
  153759. out.Values[i] = ec._SearchResult_image(ctx, field, obj)
  153760. case "reference":
  153761. out.Values[i] = ec._SearchResult_reference(ctx, field, obj)
  153762. if out.Values[i] == graphql.Null {
  153763. invalids++
  153764. }
  153765. case "title":
  153766. out.Values[i] = ec._SearchResult_title(ctx, field, obj)
  153767. if out.Values[i] == graphql.Null {
  153768. invalids++
  153769. }
  153770. case "url":
  153771. out.Values[i] = ec._SearchResult_url(ctx, field, obj)
  153772. if out.Values[i] == graphql.Null {
  153773. invalids++
  153774. }
  153775. default:
  153776. panic("unknown field " + strconv.Quote(field.Name))
  153777. }
  153778. }
  153779. out.Dispatch()
  153780. if invalids > 0 {
  153781. return graphql.Null
  153782. }
  153783. return out
  153784. }
  153785. var searchResultConnectionImplementors = []string{"SearchResultConnection"}
  153786. func (ec *executionContext) _SearchResultConnection(ctx context.Context, sel ast.SelectionSet, obj *SearchResultConnection) graphql.Marshaler {
  153787. fields := graphql.CollectFields(ec.OperationContext, sel, searchResultConnectionImplementors)
  153788. out := graphql.NewFieldSet(fields)
  153789. var invalids uint32
  153790. for i, field := range fields {
  153791. switch field.Name {
  153792. case "__typename":
  153793. out.Values[i] = graphql.MarshalString("SearchResultConnection")
  153794. case "edges":
  153795. out.Values[i] = ec._SearchResultConnection_edges(ctx, field, obj)
  153796. if out.Values[i] == graphql.Null {
  153797. invalids++
  153798. }
  153799. case "pageInfo":
  153800. out.Values[i] = ec._SearchResultConnection_pageInfo(ctx, field, obj)
  153801. if out.Values[i] == graphql.Null {
  153802. invalids++
  153803. }
  153804. default:
  153805. panic("unknown field " + strconv.Quote(field.Name))
  153806. }
  153807. }
  153808. out.Dispatch()
  153809. if invalids > 0 {
  153810. return graphql.Null
  153811. }
  153812. return out
  153813. }
  153814. var searchResultEdgeImplementors = []string{"SearchResultEdge"}
  153815. func (ec *executionContext) _SearchResultEdge(ctx context.Context, sel ast.SelectionSet, obj *SearchResultEdge) graphql.Marshaler {
  153816. fields := graphql.CollectFields(ec.OperationContext, sel, searchResultEdgeImplementors)
  153817. out := graphql.NewFieldSet(fields)
  153818. var invalids uint32
  153819. for i, field := range fields {
  153820. switch field.Name {
  153821. case "__typename":
  153822. out.Values[i] = graphql.MarshalString("SearchResultEdge")
  153823. case "cursor":
  153824. out.Values[i] = ec._SearchResultEdge_cursor(ctx, field, obj)
  153825. if out.Values[i] == graphql.Null {
  153826. invalids++
  153827. }
  153828. case "node":
  153829. out.Values[i] = ec._SearchResultEdge_node(ctx, field, obj)
  153830. if out.Values[i] == graphql.Null {
  153831. invalids++
  153832. }
  153833. default:
  153834. panic("unknown field " + strconv.Quote(field.Name))
  153835. }
  153836. }
  153837. out.Dispatch()
  153838. if invalids > 0 {
  153839. return graphql.Null
  153840. }
  153841. return out
  153842. }
  153843. var selectedOptionImplementors = []string{"SelectedOption"}
  153844. func (ec *executionContext) _SelectedOption(ctx context.Context, sel ast.SelectionSet, obj *SelectedOption) graphql.Marshaler {
  153845. fields := graphql.CollectFields(ec.OperationContext, sel, selectedOptionImplementors)
  153846. out := graphql.NewFieldSet(fields)
  153847. var invalids uint32
  153848. for i, field := range fields {
  153849. switch field.Name {
  153850. case "__typename":
  153851. out.Values[i] = graphql.MarshalString("SelectedOption")
  153852. case "name":
  153853. out.Values[i] = ec._SelectedOption_name(ctx, field, obj)
  153854. if out.Values[i] == graphql.Null {
  153855. invalids++
  153856. }
  153857. case "value":
  153858. out.Values[i] = ec._SelectedOption_value(ctx, field, obj)
  153859. if out.Values[i] == graphql.Null {
  153860. invalids++
  153861. }
  153862. default:
  153863. panic("unknown field " + strconv.Quote(field.Name))
  153864. }
  153865. }
  153866. out.Dispatch()
  153867. if invalids > 0 {
  153868. return graphql.Null
  153869. }
  153870. return out
  153871. }
  153872. var sellingPlanImplementors = []string{"SellingPlan", "Node"}
  153873. func (ec *executionContext) _SellingPlan(ctx context.Context, sel ast.SelectionSet, obj *SellingPlan) graphql.Marshaler {
  153874. fields := graphql.CollectFields(ec.OperationContext, sel, sellingPlanImplementors)
  153875. out := graphql.NewFieldSet(fields)
  153876. var invalids uint32
  153877. for i, field := range fields {
  153878. switch field.Name {
  153879. case "__typename":
  153880. out.Values[i] = graphql.MarshalString("SellingPlan")
  153881. case "billingPolicy":
  153882. out.Values[i] = ec._SellingPlan_billingPolicy(ctx, field, obj)
  153883. if out.Values[i] == graphql.Null {
  153884. invalids++
  153885. }
  153886. case "category":
  153887. out.Values[i] = ec._SellingPlan_category(ctx, field, obj)
  153888. case "createdAt":
  153889. out.Values[i] = ec._SellingPlan_createdAt(ctx, field, obj)
  153890. if out.Values[i] == graphql.Null {
  153891. invalids++
  153892. }
  153893. case "deliveryPolicy":
  153894. out.Values[i] = ec._SellingPlan_deliveryPolicy(ctx, field, obj)
  153895. if out.Values[i] == graphql.Null {
  153896. invalids++
  153897. }
  153898. case "description":
  153899. out.Values[i] = ec._SellingPlan_description(ctx, field, obj)
  153900. case "id":
  153901. out.Values[i] = ec._SellingPlan_id(ctx, field, obj)
  153902. if out.Values[i] == graphql.Null {
  153903. invalids++
  153904. }
  153905. case "inventoryPolicy":
  153906. out.Values[i] = ec._SellingPlan_inventoryPolicy(ctx, field, obj)
  153907. case "name":
  153908. out.Values[i] = ec._SellingPlan_name(ctx, field, obj)
  153909. if out.Values[i] == graphql.Null {
  153910. invalids++
  153911. }
  153912. case "options":
  153913. out.Values[i] = ec._SellingPlan_options(ctx, field, obj)
  153914. if out.Values[i] == graphql.Null {
  153915. invalids++
  153916. }
  153917. case "position":
  153918. out.Values[i] = ec._SellingPlan_position(ctx, field, obj)
  153919. case "pricingPolicies":
  153920. out.Values[i] = ec._SellingPlan_pricingPolicies(ctx, field, obj)
  153921. if out.Values[i] == graphql.Null {
  153922. invalids++
  153923. }
  153924. default:
  153925. panic("unknown field " + strconv.Quote(field.Name))
  153926. }
  153927. }
  153928. out.Dispatch()
  153929. if invalids > 0 {
  153930. return graphql.Null
  153931. }
  153932. return out
  153933. }
  153934. var sellingPlanAnchorImplementors = []string{"SellingPlanAnchor"}
  153935. func (ec *executionContext) _SellingPlanAnchor(ctx context.Context, sel ast.SelectionSet, obj *SellingPlanAnchor) graphql.Marshaler {
  153936. fields := graphql.CollectFields(ec.OperationContext, sel, sellingPlanAnchorImplementors)
  153937. out := graphql.NewFieldSet(fields)
  153938. var invalids uint32
  153939. for i, field := range fields {
  153940. switch field.Name {
  153941. case "__typename":
  153942. out.Values[i] = graphql.MarshalString("SellingPlanAnchor")
  153943. case "cutoffDay":
  153944. out.Values[i] = ec._SellingPlanAnchor_cutoffDay(ctx, field, obj)
  153945. case "day":
  153946. out.Values[i] = ec._SellingPlanAnchor_day(ctx, field, obj)
  153947. if out.Values[i] == graphql.Null {
  153948. invalids++
  153949. }
  153950. case "month":
  153951. out.Values[i] = ec._SellingPlanAnchor_month(ctx, field, obj)
  153952. case "type":
  153953. out.Values[i] = ec._SellingPlanAnchor_type(ctx, field, obj)
  153954. if out.Values[i] == graphql.Null {
  153955. invalids++
  153956. }
  153957. default:
  153958. panic("unknown field " + strconv.Quote(field.Name))
  153959. }
  153960. }
  153961. out.Dispatch()
  153962. if invalids > 0 {
  153963. return graphql.Null
  153964. }
  153965. return out
  153966. }
  153967. var sellingPlanCheckoutChargeImplementors = []string{"SellingPlanCheckoutCharge"}
  153968. func (ec *executionContext) _SellingPlanCheckoutCharge(ctx context.Context, sel ast.SelectionSet, obj *SellingPlanCheckoutCharge) graphql.Marshaler {
  153969. fields := graphql.CollectFields(ec.OperationContext, sel, sellingPlanCheckoutChargeImplementors)
  153970. out := graphql.NewFieldSet(fields)
  153971. var invalids uint32
  153972. for i, field := range fields {
  153973. switch field.Name {
  153974. case "__typename":
  153975. out.Values[i] = graphql.MarshalString("SellingPlanCheckoutCharge")
  153976. case "type":
  153977. out.Values[i] = ec._SellingPlanCheckoutCharge_type(ctx, field, obj)
  153978. if out.Values[i] == graphql.Null {
  153979. invalids++
  153980. }
  153981. case "value":
  153982. out.Values[i] = ec._SellingPlanCheckoutCharge_value(ctx, field, obj)
  153983. if out.Values[i] == graphql.Null {
  153984. invalids++
  153985. }
  153986. default:
  153987. panic("unknown field " + strconv.Quote(field.Name))
  153988. }
  153989. }
  153990. out.Dispatch()
  153991. if invalids > 0 {
  153992. return graphql.Null
  153993. }
  153994. return out
  153995. }
  153996. var sellingPlanCheckoutChargePercentageValueImplementors = []string{"SellingPlanCheckoutChargePercentageValue", "SellingPlanCheckoutChargeValue"}
  153997. func (ec *executionContext) _SellingPlanCheckoutChargePercentageValue(ctx context.Context, sel ast.SelectionSet, obj *SellingPlanCheckoutChargePercentageValue) graphql.Marshaler {
  153998. fields := graphql.CollectFields(ec.OperationContext, sel, sellingPlanCheckoutChargePercentageValueImplementors)
  153999. out := graphql.NewFieldSet(fields)
  154000. var invalids uint32
  154001. for i, field := range fields {
  154002. switch field.Name {
  154003. case "__typename":
  154004. out.Values[i] = graphql.MarshalString("SellingPlanCheckoutChargePercentageValue")
  154005. case "percentage":
  154006. out.Values[i] = ec._SellingPlanCheckoutChargePercentageValue_percentage(ctx, field, obj)
  154007. if out.Values[i] == graphql.Null {
  154008. invalids++
  154009. }
  154010. default:
  154011. panic("unknown field " + strconv.Quote(field.Name))
  154012. }
  154013. }
  154014. out.Dispatch()
  154015. if invalids > 0 {
  154016. return graphql.Null
  154017. }
  154018. return out
  154019. }
  154020. var sellingPlanConnectionImplementors = []string{"SellingPlanConnection"}
  154021. func (ec *executionContext) _SellingPlanConnection(ctx context.Context, sel ast.SelectionSet, obj *SellingPlanConnection) graphql.Marshaler {
  154022. fields := graphql.CollectFields(ec.OperationContext, sel, sellingPlanConnectionImplementors)
  154023. out := graphql.NewFieldSet(fields)
  154024. var invalids uint32
  154025. for i, field := range fields {
  154026. switch field.Name {
  154027. case "__typename":
  154028. out.Values[i] = graphql.MarshalString("SellingPlanConnection")
  154029. case "edges":
  154030. out.Values[i] = ec._SellingPlanConnection_edges(ctx, field, obj)
  154031. if out.Values[i] == graphql.Null {
  154032. invalids++
  154033. }
  154034. case "nodes":
  154035. out.Values[i] = ec._SellingPlanConnection_nodes(ctx, field, obj)
  154036. if out.Values[i] == graphql.Null {
  154037. invalids++
  154038. }
  154039. case "pageInfo":
  154040. out.Values[i] = ec._SellingPlanConnection_pageInfo(ctx, field, obj)
  154041. if out.Values[i] == graphql.Null {
  154042. invalids++
  154043. }
  154044. default:
  154045. panic("unknown field " + strconv.Quote(field.Name))
  154046. }
  154047. }
  154048. out.Dispatch()
  154049. if invalids > 0 {
  154050. return graphql.Null
  154051. }
  154052. return out
  154053. }
  154054. var sellingPlanEdgeImplementors = []string{"SellingPlanEdge"}
  154055. func (ec *executionContext) _SellingPlanEdge(ctx context.Context, sel ast.SelectionSet, obj *SellingPlanEdge) graphql.Marshaler {
  154056. fields := graphql.CollectFields(ec.OperationContext, sel, sellingPlanEdgeImplementors)
  154057. out := graphql.NewFieldSet(fields)
  154058. var invalids uint32
  154059. for i, field := range fields {
  154060. switch field.Name {
  154061. case "__typename":
  154062. out.Values[i] = graphql.MarshalString("SellingPlanEdge")
  154063. case "cursor":
  154064. out.Values[i] = ec._SellingPlanEdge_cursor(ctx, field, obj)
  154065. if out.Values[i] == graphql.Null {
  154066. invalids++
  154067. }
  154068. case "node":
  154069. out.Values[i] = ec._SellingPlanEdge_node(ctx, field, obj)
  154070. if out.Values[i] == graphql.Null {
  154071. invalids++
  154072. }
  154073. default:
  154074. panic("unknown field " + strconv.Quote(field.Name))
  154075. }
  154076. }
  154077. out.Dispatch()
  154078. if invalids > 0 {
  154079. return graphql.Null
  154080. }
  154081. return out
  154082. }
  154083. var sellingPlanFixedBillingPolicyImplementors = []string{"SellingPlanFixedBillingPolicy", "SellingPlanBillingPolicy"}
  154084. func (ec *executionContext) _SellingPlanFixedBillingPolicy(ctx context.Context, sel ast.SelectionSet, obj *SellingPlanFixedBillingPolicy) graphql.Marshaler {
  154085. fields := graphql.CollectFields(ec.OperationContext, sel, sellingPlanFixedBillingPolicyImplementors)
  154086. out := graphql.NewFieldSet(fields)
  154087. var invalids uint32
  154088. for i, field := range fields {
  154089. switch field.Name {
  154090. case "__typename":
  154091. out.Values[i] = graphql.MarshalString("SellingPlanFixedBillingPolicy")
  154092. case "checkoutCharge":
  154093. out.Values[i] = ec._SellingPlanFixedBillingPolicy_checkoutCharge(ctx, field, obj)
  154094. if out.Values[i] == graphql.Null {
  154095. invalids++
  154096. }
  154097. case "remainingBalanceChargeExactTime":
  154098. out.Values[i] = ec._SellingPlanFixedBillingPolicy_remainingBalanceChargeExactTime(ctx, field, obj)
  154099. case "remainingBalanceChargeTimeAfterCheckout":
  154100. out.Values[i] = ec._SellingPlanFixedBillingPolicy_remainingBalanceChargeTimeAfterCheckout(ctx, field, obj)
  154101. case "remainingBalanceChargeTrigger":
  154102. out.Values[i] = ec._SellingPlanFixedBillingPolicy_remainingBalanceChargeTrigger(ctx, field, obj)
  154103. if out.Values[i] == graphql.Null {
  154104. invalids++
  154105. }
  154106. default:
  154107. panic("unknown field " + strconv.Quote(field.Name))
  154108. }
  154109. }
  154110. out.Dispatch()
  154111. if invalids > 0 {
  154112. return graphql.Null
  154113. }
  154114. return out
  154115. }
  154116. var sellingPlanFixedDeliveryPolicyImplementors = []string{"SellingPlanFixedDeliveryPolicy", "SellingPlanDeliveryPolicy"}
  154117. func (ec *executionContext) _SellingPlanFixedDeliveryPolicy(ctx context.Context, sel ast.SelectionSet, obj *SellingPlanFixedDeliveryPolicy) graphql.Marshaler {
  154118. fields := graphql.CollectFields(ec.OperationContext, sel, sellingPlanFixedDeliveryPolicyImplementors)
  154119. out := graphql.NewFieldSet(fields)
  154120. var invalids uint32
  154121. for i, field := range fields {
  154122. switch field.Name {
  154123. case "__typename":
  154124. out.Values[i] = graphql.MarshalString("SellingPlanFixedDeliveryPolicy")
  154125. case "anchors":
  154126. out.Values[i] = ec._SellingPlanFixedDeliveryPolicy_anchors(ctx, field, obj)
  154127. if out.Values[i] == graphql.Null {
  154128. invalids++
  154129. }
  154130. case "cutoff":
  154131. out.Values[i] = ec._SellingPlanFixedDeliveryPolicy_cutoff(ctx, field, obj)
  154132. case "fulfillmentExactTime":
  154133. out.Values[i] = ec._SellingPlanFixedDeliveryPolicy_fulfillmentExactTime(ctx, field, obj)
  154134. case "fulfillmentTrigger":
  154135. out.Values[i] = ec._SellingPlanFixedDeliveryPolicy_fulfillmentTrigger(ctx, field, obj)
  154136. if out.Values[i] == graphql.Null {
  154137. invalids++
  154138. }
  154139. case "intent":
  154140. out.Values[i] = ec._SellingPlanFixedDeliveryPolicy_intent(ctx, field, obj)
  154141. if out.Values[i] == graphql.Null {
  154142. invalids++
  154143. }
  154144. case "preAnchorBehavior":
  154145. out.Values[i] = ec._SellingPlanFixedDeliveryPolicy_preAnchorBehavior(ctx, field, obj)
  154146. if out.Values[i] == graphql.Null {
  154147. invalids++
  154148. }
  154149. default:
  154150. panic("unknown field " + strconv.Quote(field.Name))
  154151. }
  154152. }
  154153. out.Dispatch()
  154154. if invalids > 0 {
  154155. return graphql.Null
  154156. }
  154157. return out
  154158. }
  154159. var sellingPlanFixedPricingPolicyImplementors = []string{"SellingPlanFixedPricingPolicy", "SellingPlanPricingPolicyBase", "SellingPlanPricingPolicy"}
  154160. func (ec *executionContext) _SellingPlanFixedPricingPolicy(ctx context.Context, sel ast.SelectionSet, obj *SellingPlanFixedPricingPolicy) graphql.Marshaler {
  154161. fields := graphql.CollectFields(ec.OperationContext, sel, sellingPlanFixedPricingPolicyImplementors)
  154162. out := graphql.NewFieldSet(fields)
  154163. var invalids uint32
  154164. for i, field := range fields {
  154165. switch field.Name {
  154166. case "__typename":
  154167. out.Values[i] = graphql.MarshalString("SellingPlanFixedPricingPolicy")
  154168. case "adjustmentType":
  154169. out.Values[i] = ec._SellingPlanFixedPricingPolicy_adjustmentType(ctx, field, obj)
  154170. if out.Values[i] == graphql.Null {
  154171. invalids++
  154172. }
  154173. case "adjustmentValue":
  154174. out.Values[i] = ec._SellingPlanFixedPricingPolicy_adjustmentValue(ctx, field, obj)
  154175. if out.Values[i] == graphql.Null {
  154176. invalids++
  154177. }
  154178. case "createdAt":
  154179. out.Values[i] = ec._SellingPlanFixedPricingPolicy_createdAt(ctx, field, obj)
  154180. if out.Values[i] == graphql.Null {
  154181. invalids++
  154182. }
  154183. default:
  154184. panic("unknown field " + strconv.Quote(field.Name))
  154185. }
  154186. }
  154187. out.Dispatch()
  154188. if invalids > 0 {
  154189. return graphql.Null
  154190. }
  154191. return out
  154192. }
  154193. var sellingPlanGroupImplementors = []string{"SellingPlanGroup", "Node"}
  154194. func (ec *executionContext) _SellingPlanGroup(ctx context.Context, sel ast.SelectionSet, obj *SellingPlanGroup) graphql.Marshaler {
  154195. fields := graphql.CollectFields(ec.OperationContext, sel, sellingPlanGroupImplementors)
  154196. out := graphql.NewFieldSet(fields)
  154197. var invalids uint32
  154198. for i, field := range fields {
  154199. switch field.Name {
  154200. case "__typename":
  154201. out.Values[i] = graphql.MarshalString("SellingPlanGroup")
  154202. case "appId":
  154203. out.Values[i] = ec._SellingPlanGroup_appId(ctx, field, obj)
  154204. case "appliesToProduct":
  154205. out.Values[i] = ec._SellingPlanGroup_appliesToProduct(ctx, field, obj)
  154206. if out.Values[i] == graphql.Null {
  154207. invalids++
  154208. }
  154209. case "appliesToProductVariant":
  154210. out.Values[i] = ec._SellingPlanGroup_appliesToProductVariant(ctx, field, obj)
  154211. if out.Values[i] == graphql.Null {
  154212. invalids++
  154213. }
  154214. case "appliesToProductVariants":
  154215. out.Values[i] = ec._SellingPlanGroup_appliesToProductVariants(ctx, field, obj)
  154216. if out.Values[i] == graphql.Null {
  154217. invalids++
  154218. }
  154219. case "createdAt":
  154220. out.Values[i] = ec._SellingPlanGroup_createdAt(ctx, field, obj)
  154221. if out.Values[i] == graphql.Null {
  154222. invalids++
  154223. }
  154224. case "description":
  154225. out.Values[i] = ec._SellingPlanGroup_description(ctx, field, obj)
  154226. case "id":
  154227. out.Values[i] = ec._SellingPlanGroup_id(ctx, field, obj)
  154228. if out.Values[i] == graphql.Null {
  154229. invalids++
  154230. }
  154231. case "merchantCode":
  154232. out.Values[i] = ec._SellingPlanGroup_merchantCode(ctx, field, obj)
  154233. if out.Values[i] == graphql.Null {
  154234. invalids++
  154235. }
  154236. case "name":
  154237. out.Values[i] = ec._SellingPlanGroup_name(ctx, field, obj)
  154238. if out.Values[i] == graphql.Null {
  154239. invalids++
  154240. }
  154241. case "options":
  154242. out.Values[i] = ec._SellingPlanGroup_options(ctx, field, obj)
  154243. if out.Values[i] == graphql.Null {
  154244. invalids++
  154245. }
  154246. case "position":
  154247. out.Values[i] = ec._SellingPlanGroup_position(ctx, field, obj)
  154248. case "productCount":
  154249. out.Values[i] = ec._SellingPlanGroup_productCount(ctx, field, obj)
  154250. if out.Values[i] == graphql.Null {
  154251. invalids++
  154252. }
  154253. case "productVariantCount":
  154254. out.Values[i] = ec._SellingPlanGroup_productVariantCount(ctx, field, obj)
  154255. if out.Values[i] == graphql.Null {
  154256. invalids++
  154257. }
  154258. case "productVariants":
  154259. out.Values[i] = ec._SellingPlanGroup_productVariants(ctx, field, obj)
  154260. if out.Values[i] == graphql.Null {
  154261. invalids++
  154262. }
  154263. case "products":
  154264. out.Values[i] = ec._SellingPlanGroup_products(ctx, field, obj)
  154265. if out.Values[i] == graphql.Null {
  154266. invalids++
  154267. }
  154268. case "sellingPlans":
  154269. out.Values[i] = ec._SellingPlanGroup_sellingPlans(ctx, field, obj)
  154270. if out.Values[i] == graphql.Null {
  154271. invalids++
  154272. }
  154273. case "summary":
  154274. out.Values[i] = ec._SellingPlanGroup_summary(ctx, field, obj)
  154275. default:
  154276. panic("unknown field " + strconv.Quote(field.Name))
  154277. }
  154278. }
  154279. out.Dispatch()
  154280. if invalids > 0 {
  154281. return graphql.Null
  154282. }
  154283. return out
  154284. }
  154285. var sellingPlanGroupConnectionImplementors = []string{"SellingPlanGroupConnection"}
  154286. func (ec *executionContext) _SellingPlanGroupConnection(ctx context.Context, sel ast.SelectionSet, obj *SellingPlanGroupConnection) graphql.Marshaler {
  154287. fields := graphql.CollectFields(ec.OperationContext, sel, sellingPlanGroupConnectionImplementors)
  154288. out := graphql.NewFieldSet(fields)
  154289. var invalids uint32
  154290. for i, field := range fields {
  154291. switch field.Name {
  154292. case "__typename":
  154293. out.Values[i] = graphql.MarshalString("SellingPlanGroupConnection")
  154294. case "edges":
  154295. out.Values[i] = ec._SellingPlanGroupConnection_edges(ctx, field, obj)
  154296. if out.Values[i] == graphql.Null {
  154297. invalids++
  154298. }
  154299. case "nodes":
  154300. out.Values[i] = ec._SellingPlanGroupConnection_nodes(ctx, field, obj)
  154301. if out.Values[i] == graphql.Null {
  154302. invalids++
  154303. }
  154304. case "pageInfo":
  154305. out.Values[i] = ec._SellingPlanGroupConnection_pageInfo(ctx, field, obj)
  154306. if out.Values[i] == graphql.Null {
  154307. invalids++
  154308. }
  154309. default:
  154310. panic("unknown field " + strconv.Quote(field.Name))
  154311. }
  154312. }
  154313. out.Dispatch()
  154314. if invalids > 0 {
  154315. return graphql.Null
  154316. }
  154317. return out
  154318. }
  154319. var sellingPlanGroupEdgeImplementors = []string{"SellingPlanGroupEdge"}
  154320. func (ec *executionContext) _SellingPlanGroupEdge(ctx context.Context, sel ast.SelectionSet, obj *SellingPlanGroupEdge) graphql.Marshaler {
  154321. fields := graphql.CollectFields(ec.OperationContext, sel, sellingPlanGroupEdgeImplementors)
  154322. out := graphql.NewFieldSet(fields)
  154323. var invalids uint32
  154324. for i, field := range fields {
  154325. switch field.Name {
  154326. case "__typename":
  154327. out.Values[i] = graphql.MarshalString("SellingPlanGroupEdge")
  154328. case "cursor":
  154329. out.Values[i] = ec._SellingPlanGroupEdge_cursor(ctx, field, obj)
  154330. if out.Values[i] == graphql.Null {
  154331. invalids++
  154332. }
  154333. case "node":
  154334. out.Values[i] = ec._SellingPlanGroupEdge_node(ctx, field, obj)
  154335. if out.Values[i] == graphql.Null {
  154336. invalids++
  154337. }
  154338. default:
  154339. panic("unknown field " + strconv.Quote(field.Name))
  154340. }
  154341. }
  154342. out.Dispatch()
  154343. if invalids > 0 {
  154344. return graphql.Null
  154345. }
  154346. return out
  154347. }
  154348. var sellingPlanGroupUserErrorImplementors = []string{"SellingPlanGroupUserError", "DisplayableError"}
  154349. func (ec *executionContext) _SellingPlanGroupUserError(ctx context.Context, sel ast.SelectionSet, obj *SellingPlanGroupUserError) graphql.Marshaler {
  154350. fields := graphql.CollectFields(ec.OperationContext, sel, sellingPlanGroupUserErrorImplementors)
  154351. out := graphql.NewFieldSet(fields)
  154352. var invalids uint32
  154353. for i, field := range fields {
  154354. switch field.Name {
  154355. case "__typename":
  154356. out.Values[i] = graphql.MarshalString("SellingPlanGroupUserError")
  154357. case "code":
  154358. out.Values[i] = ec._SellingPlanGroupUserError_code(ctx, field, obj)
  154359. case "field":
  154360. out.Values[i] = ec._SellingPlanGroupUserError_field(ctx, field, obj)
  154361. case "message":
  154362. out.Values[i] = ec._SellingPlanGroupUserError_message(ctx, field, obj)
  154363. if out.Values[i] == graphql.Null {
  154364. invalids++
  154365. }
  154366. default:
  154367. panic("unknown field " + strconv.Quote(field.Name))
  154368. }
  154369. }
  154370. out.Dispatch()
  154371. if invalids > 0 {
  154372. return graphql.Null
  154373. }
  154374. return out
  154375. }
  154376. var sellingPlanInventoryPolicyImplementors = []string{"SellingPlanInventoryPolicy"}
  154377. func (ec *executionContext) _SellingPlanInventoryPolicy(ctx context.Context, sel ast.SelectionSet, obj *SellingPlanInventoryPolicy) graphql.Marshaler {
  154378. fields := graphql.CollectFields(ec.OperationContext, sel, sellingPlanInventoryPolicyImplementors)
  154379. out := graphql.NewFieldSet(fields)
  154380. var invalids uint32
  154381. for i, field := range fields {
  154382. switch field.Name {
  154383. case "__typename":
  154384. out.Values[i] = graphql.MarshalString("SellingPlanInventoryPolicy")
  154385. case "reserve":
  154386. out.Values[i] = ec._SellingPlanInventoryPolicy_reserve(ctx, field, obj)
  154387. if out.Values[i] == graphql.Null {
  154388. invalids++
  154389. }
  154390. default:
  154391. panic("unknown field " + strconv.Quote(field.Name))
  154392. }
  154393. }
  154394. out.Dispatch()
  154395. if invalids > 0 {
  154396. return graphql.Null
  154397. }
  154398. return out
  154399. }
  154400. var sellingPlanPricingPolicyPercentageValueImplementors = []string{"SellingPlanPricingPolicyPercentageValue", "SellingPlanPricingPolicyAdjustmentValue"}
  154401. func (ec *executionContext) _SellingPlanPricingPolicyPercentageValue(ctx context.Context, sel ast.SelectionSet, obj *SellingPlanPricingPolicyPercentageValue) graphql.Marshaler {
  154402. fields := graphql.CollectFields(ec.OperationContext, sel, sellingPlanPricingPolicyPercentageValueImplementors)
  154403. out := graphql.NewFieldSet(fields)
  154404. var invalids uint32
  154405. for i, field := range fields {
  154406. switch field.Name {
  154407. case "__typename":
  154408. out.Values[i] = graphql.MarshalString("SellingPlanPricingPolicyPercentageValue")
  154409. case "percentage":
  154410. out.Values[i] = ec._SellingPlanPricingPolicyPercentageValue_percentage(ctx, field, obj)
  154411. if out.Values[i] == graphql.Null {
  154412. invalids++
  154413. }
  154414. default:
  154415. panic("unknown field " + strconv.Quote(field.Name))
  154416. }
  154417. }
  154418. out.Dispatch()
  154419. if invalids > 0 {
  154420. return graphql.Null
  154421. }
  154422. return out
  154423. }
  154424. var sellingPlanRecurringBillingPolicyImplementors = []string{"SellingPlanRecurringBillingPolicy", "SellingPlanBillingPolicy"}
  154425. func (ec *executionContext) _SellingPlanRecurringBillingPolicy(ctx context.Context, sel ast.SelectionSet, obj *SellingPlanRecurringBillingPolicy) graphql.Marshaler {
  154426. fields := graphql.CollectFields(ec.OperationContext, sel, sellingPlanRecurringBillingPolicyImplementors)
  154427. out := graphql.NewFieldSet(fields)
  154428. var invalids uint32
  154429. for i, field := range fields {
  154430. switch field.Name {
  154431. case "__typename":
  154432. out.Values[i] = graphql.MarshalString("SellingPlanRecurringBillingPolicy")
  154433. case "anchors":
  154434. out.Values[i] = ec._SellingPlanRecurringBillingPolicy_anchors(ctx, field, obj)
  154435. if out.Values[i] == graphql.Null {
  154436. invalids++
  154437. }
  154438. case "createdAt":
  154439. out.Values[i] = ec._SellingPlanRecurringBillingPolicy_createdAt(ctx, field, obj)
  154440. if out.Values[i] == graphql.Null {
  154441. invalids++
  154442. }
  154443. case "interval":
  154444. out.Values[i] = ec._SellingPlanRecurringBillingPolicy_interval(ctx, field, obj)
  154445. if out.Values[i] == graphql.Null {
  154446. invalids++
  154447. }
  154448. case "intervalCount":
  154449. out.Values[i] = ec._SellingPlanRecurringBillingPolicy_intervalCount(ctx, field, obj)
  154450. if out.Values[i] == graphql.Null {
  154451. invalids++
  154452. }
  154453. case "maxCycles":
  154454. out.Values[i] = ec._SellingPlanRecurringBillingPolicy_maxCycles(ctx, field, obj)
  154455. case "minCycles":
  154456. out.Values[i] = ec._SellingPlanRecurringBillingPolicy_minCycles(ctx, field, obj)
  154457. default:
  154458. panic("unknown field " + strconv.Quote(field.Name))
  154459. }
  154460. }
  154461. out.Dispatch()
  154462. if invalids > 0 {
  154463. return graphql.Null
  154464. }
  154465. return out
  154466. }
  154467. var sellingPlanRecurringDeliveryPolicyImplementors = []string{"SellingPlanRecurringDeliveryPolicy", "SellingPlanDeliveryPolicy"}
  154468. func (ec *executionContext) _SellingPlanRecurringDeliveryPolicy(ctx context.Context, sel ast.SelectionSet, obj *SellingPlanRecurringDeliveryPolicy) graphql.Marshaler {
  154469. fields := graphql.CollectFields(ec.OperationContext, sel, sellingPlanRecurringDeliveryPolicyImplementors)
  154470. out := graphql.NewFieldSet(fields)
  154471. var invalids uint32
  154472. for i, field := range fields {
  154473. switch field.Name {
  154474. case "__typename":
  154475. out.Values[i] = graphql.MarshalString("SellingPlanRecurringDeliveryPolicy")
  154476. case "anchors":
  154477. out.Values[i] = ec._SellingPlanRecurringDeliveryPolicy_anchors(ctx, field, obj)
  154478. if out.Values[i] == graphql.Null {
  154479. invalids++
  154480. }
  154481. case "createdAt":
  154482. out.Values[i] = ec._SellingPlanRecurringDeliveryPolicy_createdAt(ctx, field, obj)
  154483. if out.Values[i] == graphql.Null {
  154484. invalids++
  154485. }
  154486. case "cutoff":
  154487. out.Values[i] = ec._SellingPlanRecurringDeliveryPolicy_cutoff(ctx, field, obj)
  154488. case "intent":
  154489. out.Values[i] = ec._SellingPlanRecurringDeliveryPolicy_intent(ctx, field, obj)
  154490. if out.Values[i] == graphql.Null {
  154491. invalids++
  154492. }
  154493. case "interval":
  154494. out.Values[i] = ec._SellingPlanRecurringDeliveryPolicy_interval(ctx, field, obj)
  154495. if out.Values[i] == graphql.Null {
  154496. invalids++
  154497. }
  154498. case "intervalCount":
  154499. out.Values[i] = ec._SellingPlanRecurringDeliveryPolicy_intervalCount(ctx, field, obj)
  154500. if out.Values[i] == graphql.Null {
  154501. invalids++
  154502. }
  154503. case "preAnchorBehavior":
  154504. out.Values[i] = ec._SellingPlanRecurringDeliveryPolicy_preAnchorBehavior(ctx, field, obj)
  154505. if out.Values[i] == graphql.Null {
  154506. invalids++
  154507. }
  154508. default:
  154509. panic("unknown field " + strconv.Quote(field.Name))
  154510. }
  154511. }
  154512. out.Dispatch()
  154513. if invalids > 0 {
  154514. return graphql.Null
  154515. }
  154516. return out
  154517. }
  154518. var sellingPlanRecurringPricingPolicyImplementors = []string{"SellingPlanRecurringPricingPolicy", "SellingPlanPricingPolicyBase", "SellingPlanPricingPolicy"}
  154519. func (ec *executionContext) _SellingPlanRecurringPricingPolicy(ctx context.Context, sel ast.SelectionSet, obj *SellingPlanRecurringPricingPolicy) graphql.Marshaler {
  154520. fields := graphql.CollectFields(ec.OperationContext, sel, sellingPlanRecurringPricingPolicyImplementors)
  154521. out := graphql.NewFieldSet(fields)
  154522. var invalids uint32
  154523. for i, field := range fields {
  154524. switch field.Name {
  154525. case "__typename":
  154526. out.Values[i] = graphql.MarshalString("SellingPlanRecurringPricingPolicy")
  154527. case "adjustmentType":
  154528. out.Values[i] = ec._SellingPlanRecurringPricingPolicy_adjustmentType(ctx, field, obj)
  154529. if out.Values[i] == graphql.Null {
  154530. invalids++
  154531. }
  154532. case "adjustmentValue":
  154533. out.Values[i] = ec._SellingPlanRecurringPricingPolicy_adjustmentValue(ctx, field, obj)
  154534. if out.Values[i] == graphql.Null {
  154535. invalids++
  154536. }
  154537. case "afterCycle":
  154538. out.Values[i] = ec._SellingPlanRecurringPricingPolicy_afterCycle(ctx, field, obj)
  154539. case "createdAt":
  154540. out.Values[i] = ec._SellingPlanRecurringPricingPolicy_createdAt(ctx, field, obj)
  154541. if out.Values[i] == graphql.Null {
  154542. invalids++
  154543. }
  154544. default:
  154545. panic("unknown field " + strconv.Quote(field.Name))
  154546. }
  154547. }
  154548. out.Dispatch()
  154549. if invalids > 0 {
  154550. return graphql.Null
  154551. }
  154552. return out
  154553. }
  154554. var shippingLineImplementors = []string{"ShippingLine"}
  154555. func (ec *executionContext) _ShippingLine(ctx context.Context, sel ast.SelectionSet, obj *ShippingLine) graphql.Marshaler {
  154556. fields := graphql.CollectFields(ec.OperationContext, sel, shippingLineImplementors)
  154557. out := graphql.NewFieldSet(fields)
  154558. var invalids uint32
  154559. for i, field := range fields {
  154560. switch field.Name {
  154561. case "__typename":
  154562. out.Values[i] = graphql.MarshalString("ShippingLine")
  154563. case "carrierIdentifier":
  154564. out.Values[i] = ec._ShippingLine_carrierIdentifier(ctx, field, obj)
  154565. case "code":
  154566. out.Values[i] = ec._ShippingLine_code(ctx, field, obj)
  154567. case "custom":
  154568. out.Values[i] = ec._ShippingLine_custom(ctx, field, obj)
  154569. if out.Values[i] == graphql.Null {
  154570. invalids++
  154571. }
  154572. case "deliveryCategory":
  154573. out.Values[i] = ec._ShippingLine_deliveryCategory(ctx, field, obj)
  154574. case "discountAllocations":
  154575. out.Values[i] = ec._ShippingLine_discountAllocations(ctx, field, obj)
  154576. if out.Values[i] == graphql.Null {
  154577. invalids++
  154578. }
  154579. case "discountedPriceSet":
  154580. out.Values[i] = ec._ShippingLine_discountedPriceSet(ctx, field, obj)
  154581. if out.Values[i] == graphql.Null {
  154582. invalids++
  154583. }
  154584. case "id":
  154585. out.Values[i] = ec._ShippingLine_id(ctx, field, obj)
  154586. case "originalPriceSet":
  154587. out.Values[i] = ec._ShippingLine_originalPriceSet(ctx, field, obj)
  154588. if out.Values[i] == graphql.Null {
  154589. invalids++
  154590. }
  154591. case "phone":
  154592. out.Values[i] = ec._ShippingLine_phone(ctx, field, obj)
  154593. case "requestedFulfillmentService":
  154594. out.Values[i] = ec._ShippingLine_requestedFulfillmentService(ctx, field, obj)
  154595. case "shippingRateHandle":
  154596. out.Values[i] = ec._ShippingLine_shippingRateHandle(ctx, field, obj)
  154597. case "source":
  154598. out.Values[i] = ec._ShippingLine_source(ctx, field, obj)
  154599. case "taxLines":
  154600. out.Values[i] = ec._ShippingLine_taxLines(ctx, field, obj)
  154601. if out.Values[i] == graphql.Null {
  154602. invalids++
  154603. }
  154604. case "title":
  154605. out.Values[i] = ec._ShippingLine_title(ctx, field, obj)
  154606. if out.Values[i] == graphql.Null {
  154607. invalids++
  154608. }
  154609. default:
  154610. panic("unknown field " + strconv.Quote(field.Name))
  154611. }
  154612. }
  154613. out.Dispatch()
  154614. if invalids > 0 {
  154615. return graphql.Null
  154616. }
  154617. return out
  154618. }
  154619. var shippingLineConnectionImplementors = []string{"ShippingLineConnection"}
  154620. func (ec *executionContext) _ShippingLineConnection(ctx context.Context, sel ast.SelectionSet, obj *ShippingLineConnection) graphql.Marshaler {
  154621. fields := graphql.CollectFields(ec.OperationContext, sel, shippingLineConnectionImplementors)
  154622. out := graphql.NewFieldSet(fields)
  154623. var invalids uint32
  154624. for i, field := range fields {
  154625. switch field.Name {
  154626. case "__typename":
  154627. out.Values[i] = graphql.MarshalString("ShippingLineConnection")
  154628. case "edges":
  154629. out.Values[i] = ec._ShippingLineConnection_edges(ctx, field, obj)
  154630. if out.Values[i] == graphql.Null {
  154631. invalids++
  154632. }
  154633. case "nodes":
  154634. out.Values[i] = ec._ShippingLineConnection_nodes(ctx, field, obj)
  154635. if out.Values[i] == graphql.Null {
  154636. invalids++
  154637. }
  154638. case "pageInfo":
  154639. out.Values[i] = ec._ShippingLineConnection_pageInfo(ctx, field, obj)
  154640. if out.Values[i] == graphql.Null {
  154641. invalids++
  154642. }
  154643. default:
  154644. panic("unknown field " + strconv.Quote(field.Name))
  154645. }
  154646. }
  154647. out.Dispatch()
  154648. if invalids > 0 {
  154649. return graphql.Null
  154650. }
  154651. return out
  154652. }
  154653. var shippingLineEdgeImplementors = []string{"ShippingLineEdge"}
  154654. func (ec *executionContext) _ShippingLineEdge(ctx context.Context, sel ast.SelectionSet, obj *ShippingLineEdge) graphql.Marshaler {
  154655. fields := graphql.CollectFields(ec.OperationContext, sel, shippingLineEdgeImplementors)
  154656. out := graphql.NewFieldSet(fields)
  154657. var invalids uint32
  154658. for i, field := range fields {
  154659. switch field.Name {
  154660. case "__typename":
  154661. out.Values[i] = graphql.MarshalString("ShippingLineEdge")
  154662. case "cursor":
  154663. out.Values[i] = ec._ShippingLineEdge_cursor(ctx, field, obj)
  154664. if out.Values[i] == graphql.Null {
  154665. invalids++
  154666. }
  154667. case "node":
  154668. out.Values[i] = ec._ShippingLineEdge_node(ctx, field, obj)
  154669. if out.Values[i] == graphql.Null {
  154670. invalids++
  154671. }
  154672. default:
  154673. panic("unknown field " + strconv.Quote(field.Name))
  154674. }
  154675. }
  154676. out.Dispatch()
  154677. if invalids > 0 {
  154678. return graphql.Null
  154679. }
  154680. return out
  154681. }
  154682. var shippingRefundImplementors = []string{"ShippingRefund"}
  154683. func (ec *executionContext) _ShippingRefund(ctx context.Context, sel ast.SelectionSet, obj *ShippingRefund) graphql.Marshaler {
  154684. fields := graphql.CollectFields(ec.OperationContext, sel, shippingRefundImplementors)
  154685. out := graphql.NewFieldSet(fields)
  154686. var invalids uint32
  154687. for i, field := range fields {
  154688. switch field.Name {
  154689. case "__typename":
  154690. out.Values[i] = graphql.MarshalString("ShippingRefund")
  154691. case "amountSet":
  154692. out.Values[i] = ec._ShippingRefund_amountSet(ctx, field, obj)
  154693. if out.Values[i] == graphql.Null {
  154694. invalids++
  154695. }
  154696. case "maximumRefundableSet":
  154697. out.Values[i] = ec._ShippingRefund_maximumRefundableSet(ctx, field, obj)
  154698. if out.Values[i] == graphql.Null {
  154699. invalids++
  154700. }
  154701. case "taxSet":
  154702. out.Values[i] = ec._ShippingRefund_taxSet(ctx, field, obj)
  154703. if out.Values[i] == graphql.Null {
  154704. invalids++
  154705. }
  154706. default:
  154707. panic("unknown field " + strconv.Quote(field.Name))
  154708. }
  154709. }
  154710. out.Dispatch()
  154711. if invalids > 0 {
  154712. return graphql.Null
  154713. }
  154714. return out
  154715. }
  154716. var shopImplementors = []string{"Shop", "HasMetafields", "HasPublishedTranslations", "Node"}
  154717. func (ec *executionContext) _Shop(ctx context.Context, sel ast.SelectionSet, obj *Shop) graphql.Marshaler {
  154718. fields := graphql.CollectFields(ec.OperationContext, sel, shopImplementors)
  154719. out := graphql.NewFieldSet(fields)
  154720. var invalids uint32
  154721. for i, field := range fields {
  154722. switch field.Name {
  154723. case "__typename":
  154724. out.Values[i] = graphql.MarshalString("Shop")
  154725. case "alerts":
  154726. out.Values[i] = ec._Shop_alerts(ctx, field, obj)
  154727. if out.Values[i] == graphql.Null {
  154728. invalids++
  154729. }
  154730. case "allProductCategories":
  154731. out.Values[i] = ec._Shop_allProductCategories(ctx, field, obj)
  154732. if out.Values[i] == graphql.Null {
  154733. invalids++
  154734. }
  154735. case "assignedFulfillmentOrders":
  154736. out.Values[i] = ec._Shop_assignedFulfillmentOrders(ctx, field, obj)
  154737. if out.Values[i] == graphql.Null {
  154738. invalids++
  154739. }
  154740. case "availableChannelApps":
  154741. out.Values[i] = ec._Shop_availableChannelApps(ctx, field, obj)
  154742. if out.Values[i] == graphql.Null {
  154743. invalids++
  154744. }
  154745. case "billingAddress":
  154746. out.Values[i] = ec._Shop_billingAddress(ctx, field, obj)
  154747. if out.Values[i] == graphql.Null {
  154748. invalids++
  154749. }
  154750. case "channelDefinitionsForInstalledChannels":
  154751. out.Values[i] = ec._Shop_channelDefinitionsForInstalledChannels(ctx, field, obj)
  154752. if out.Values[i] == graphql.Null {
  154753. invalids++
  154754. }
  154755. case "checkoutApiSupported":
  154756. out.Values[i] = ec._Shop_checkoutApiSupported(ctx, field, obj)
  154757. if out.Values[i] == graphql.Null {
  154758. invalids++
  154759. }
  154760. case "contactEmail":
  154761. out.Values[i] = ec._Shop_contactEmail(ctx, field, obj)
  154762. if out.Values[i] == graphql.Null {
  154763. invalids++
  154764. }
  154765. case "countriesInShippingZones":
  154766. out.Values[i] = ec._Shop_countriesInShippingZones(ctx, field, obj)
  154767. if out.Values[i] == graphql.Null {
  154768. invalids++
  154769. }
  154770. case "currencyCode":
  154771. out.Values[i] = ec._Shop_currencyCode(ctx, field, obj)
  154772. if out.Values[i] == graphql.Null {
  154773. invalids++
  154774. }
  154775. case "currencyFormats":
  154776. out.Values[i] = ec._Shop_currencyFormats(ctx, field, obj)
  154777. if out.Values[i] == graphql.Null {
  154778. invalids++
  154779. }
  154780. case "currencySettings":
  154781. out.Values[i] = ec._Shop_currencySettings(ctx, field, obj)
  154782. if out.Values[i] == graphql.Null {
  154783. invalids++
  154784. }
  154785. case "customerAccounts":
  154786. out.Values[i] = ec._Shop_customerAccounts(ctx, field, obj)
  154787. if out.Values[i] == graphql.Null {
  154788. invalids++
  154789. }
  154790. case "customerTags":
  154791. out.Values[i] = ec._Shop_customerTags(ctx, field, obj)
  154792. if out.Values[i] == graphql.Null {
  154793. invalids++
  154794. }
  154795. case "description":
  154796. out.Values[i] = ec._Shop_description(ctx, field, obj)
  154797. case "draftOrderTags":
  154798. out.Values[i] = ec._Shop_draftOrderTags(ctx, field, obj)
  154799. if out.Values[i] == graphql.Null {
  154800. invalids++
  154801. }
  154802. case "email":
  154803. out.Values[i] = ec._Shop_email(ctx, field, obj)
  154804. if out.Values[i] == graphql.Null {
  154805. invalids++
  154806. }
  154807. case "enabledPresentmentCurrencies":
  154808. out.Values[i] = ec._Shop_enabledPresentmentCurrencies(ctx, field, obj)
  154809. if out.Values[i] == graphql.Null {
  154810. invalids++
  154811. }
  154812. case "features":
  154813. out.Values[i] = ec._Shop_features(ctx, field, obj)
  154814. if out.Values[i] == graphql.Null {
  154815. invalids++
  154816. }
  154817. case "fulfillmentServices":
  154818. out.Values[i] = ec._Shop_fulfillmentServices(ctx, field, obj)
  154819. if out.Values[i] == graphql.Null {
  154820. invalids++
  154821. }
  154822. case "ianaTimezone":
  154823. out.Values[i] = ec._Shop_ianaTimezone(ctx, field, obj)
  154824. if out.Values[i] == graphql.Null {
  154825. invalids++
  154826. }
  154827. case "id":
  154828. out.Values[i] = ec._Shop_id(ctx, field, obj)
  154829. if out.Values[i] == graphql.Null {
  154830. invalids++
  154831. }
  154832. case "limitedPendingOrderCount":
  154833. out.Values[i] = ec._Shop_limitedPendingOrderCount(ctx, field, obj)
  154834. if out.Values[i] == graphql.Null {
  154835. invalids++
  154836. }
  154837. case "merchantApprovalSignals":
  154838. out.Values[i] = ec._Shop_merchantApprovalSignals(ctx, field, obj)
  154839. case "metafield":
  154840. out.Values[i] = ec._Shop_metafield(ctx, field, obj)
  154841. case "metafields":
  154842. out.Values[i] = ec._Shop_metafields(ctx, field, obj)
  154843. if out.Values[i] == graphql.Null {
  154844. invalids++
  154845. }
  154846. case "myshopifyDomain":
  154847. out.Values[i] = ec._Shop_myshopifyDomain(ctx, field, obj)
  154848. if out.Values[i] == graphql.Null {
  154849. invalids++
  154850. }
  154851. case "name":
  154852. out.Values[i] = ec._Shop_name(ctx, field, obj)
  154853. if out.Values[i] == graphql.Null {
  154854. invalids++
  154855. }
  154856. case "navigationSettings":
  154857. out.Values[i] = ec._Shop_navigationSettings(ctx, field, obj)
  154858. if out.Values[i] == graphql.Null {
  154859. invalids++
  154860. }
  154861. case "orderNumberFormatPrefix":
  154862. out.Values[i] = ec._Shop_orderNumberFormatPrefix(ctx, field, obj)
  154863. if out.Values[i] == graphql.Null {
  154864. invalids++
  154865. }
  154866. case "orderNumberFormatSuffix":
  154867. out.Values[i] = ec._Shop_orderNumberFormatSuffix(ctx, field, obj)
  154868. if out.Values[i] == graphql.Null {
  154869. invalids++
  154870. }
  154871. case "orderTags":
  154872. out.Values[i] = ec._Shop_orderTags(ctx, field, obj)
  154873. if out.Values[i] == graphql.Null {
  154874. invalids++
  154875. }
  154876. case "paymentSettings":
  154877. out.Values[i] = ec._Shop_paymentSettings(ctx, field, obj)
  154878. if out.Values[i] == graphql.Null {
  154879. invalids++
  154880. }
  154881. case "plan":
  154882. out.Values[i] = ec._Shop_plan(ctx, field, obj)
  154883. if out.Values[i] == graphql.Null {
  154884. invalids++
  154885. }
  154886. case "primaryDomain":
  154887. out.Values[i] = ec._Shop_primaryDomain(ctx, field, obj)
  154888. if out.Values[i] == graphql.Null {
  154889. invalids++
  154890. }
  154891. case "privateMetafield":
  154892. out.Values[i] = ec._Shop_privateMetafield(ctx, field, obj)
  154893. case "privateMetafields":
  154894. out.Values[i] = ec._Shop_privateMetafields(ctx, field, obj)
  154895. if out.Values[i] == graphql.Null {
  154896. invalids++
  154897. }
  154898. case "productImages":
  154899. out.Values[i] = ec._Shop_productImages(ctx, field, obj)
  154900. if out.Values[i] == graphql.Null {
  154901. invalids++
  154902. }
  154903. case "productTags":
  154904. out.Values[i] = ec._Shop_productTags(ctx, field, obj)
  154905. if out.Values[i] == graphql.Null {
  154906. invalids++
  154907. }
  154908. case "productTypes":
  154909. out.Values[i] = ec._Shop_productTypes(ctx, field, obj)
  154910. if out.Values[i] == graphql.Null {
  154911. invalids++
  154912. }
  154913. case "productVendors":
  154914. out.Values[i] = ec._Shop_productVendors(ctx, field, obj)
  154915. if out.Values[i] == graphql.Null {
  154916. invalids++
  154917. }
  154918. case "publicationCount":
  154919. out.Values[i] = ec._Shop_publicationCount(ctx, field, obj)
  154920. if out.Values[i] == graphql.Null {
  154921. invalids++
  154922. }
  154923. case "resourceLimits":
  154924. out.Values[i] = ec._Shop_resourceLimits(ctx, field, obj)
  154925. if out.Values[i] == graphql.Null {
  154926. invalids++
  154927. }
  154928. case "richTextEditorUrl":
  154929. out.Values[i] = ec._Shop_richTextEditorUrl(ctx, field, obj)
  154930. if out.Values[i] == graphql.Null {
  154931. invalids++
  154932. }
  154933. case "search":
  154934. out.Values[i] = ec._Shop_search(ctx, field, obj)
  154935. if out.Values[i] == graphql.Null {
  154936. invalids++
  154937. }
  154938. case "searchFilters":
  154939. out.Values[i] = ec._Shop_searchFilters(ctx, field, obj)
  154940. if out.Values[i] == graphql.Null {
  154941. invalids++
  154942. }
  154943. case "setupRequired":
  154944. out.Values[i] = ec._Shop_setupRequired(ctx, field, obj)
  154945. if out.Values[i] == graphql.Null {
  154946. invalids++
  154947. }
  154948. case "shipsToCountries":
  154949. out.Values[i] = ec._Shop_shipsToCountries(ctx, field, obj)
  154950. if out.Values[i] == graphql.Null {
  154951. invalids++
  154952. }
  154953. case "shopPolicies":
  154954. out.Values[i] = ec._Shop_shopPolicies(ctx, field, obj)
  154955. if out.Values[i] == graphql.Null {
  154956. invalids++
  154957. }
  154958. case "staffMembers":
  154959. out.Values[i] = ec._Shop_staffMembers(ctx, field, obj)
  154960. if out.Values[i] == graphql.Null {
  154961. invalids++
  154962. }
  154963. case "storefrontAccessTokens":
  154964. out.Values[i] = ec._Shop_storefrontAccessTokens(ctx, field, obj)
  154965. if out.Values[i] == graphql.Null {
  154966. invalids++
  154967. }
  154968. case "taxShipping":
  154969. out.Values[i] = ec._Shop_taxShipping(ctx, field, obj)
  154970. if out.Values[i] == graphql.Null {
  154971. invalids++
  154972. }
  154973. case "taxesIncluded":
  154974. out.Values[i] = ec._Shop_taxesIncluded(ctx, field, obj)
  154975. if out.Values[i] == graphql.Null {
  154976. invalids++
  154977. }
  154978. case "timezoneAbbreviation":
  154979. out.Values[i] = ec._Shop_timezoneAbbreviation(ctx, field, obj)
  154980. if out.Values[i] == graphql.Null {
  154981. invalids++
  154982. }
  154983. case "timezoneOffset":
  154984. out.Values[i] = ec._Shop_timezoneOffset(ctx, field, obj)
  154985. if out.Values[i] == graphql.Null {
  154986. invalids++
  154987. }
  154988. case "timezoneOffsetMinutes":
  154989. out.Values[i] = ec._Shop_timezoneOffsetMinutes(ctx, field, obj)
  154990. if out.Values[i] == graphql.Null {
  154991. invalids++
  154992. }
  154993. case "transactionalSmsDisabled":
  154994. out.Values[i] = ec._Shop_transactionalSmsDisabled(ctx, field, obj)
  154995. if out.Values[i] == graphql.Null {
  154996. invalids++
  154997. }
  154998. case "translations":
  154999. out.Values[i] = ec._Shop_translations(ctx, field, obj)
  155000. if out.Values[i] == graphql.Null {
  155001. invalids++
  155002. }
  155003. case "unitSystem":
  155004. out.Values[i] = ec._Shop_unitSystem(ctx, field, obj)
  155005. if out.Values[i] == graphql.Null {
  155006. invalids++
  155007. }
  155008. case "uploadedImagesByIds":
  155009. out.Values[i] = ec._Shop_uploadedImagesByIds(ctx, field, obj)
  155010. if out.Values[i] == graphql.Null {
  155011. invalids++
  155012. }
  155013. case "url":
  155014. out.Values[i] = ec._Shop_url(ctx, field, obj)
  155015. if out.Values[i] == graphql.Null {
  155016. invalids++
  155017. }
  155018. case "weightUnit":
  155019. out.Values[i] = ec._Shop_weightUnit(ctx, field, obj)
  155020. if out.Values[i] == graphql.Null {
  155021. invalids++
  155022. }
  155023. default:
  155024. panic("unknown field " + strconv.Quote(field.Name))
  155025. }
  155026. }
  155027. out.Dispatch()
  155028. if invalids > 0 {
  155029. return graphql.Null
  155030. }
  155031. return out
  155032. }
  155033. var shopAlertImplementors = []string{"ShopAlert"}
  155034. func (ec *executionContext) _ShopAlert(ctx context.Context, sel ast.SelectionSet, obj *ShopAlert) graphql.Marshaler {
  155035. fields := graphql.CollectFields(ec.OperationContext, sel, shopAlertImplementors)
  155036. out := graphql.NewFieldSet(fields)
  155037. var invalids uint32
  155038. for i, field := range fields {
  155039. switch field.Name {
  155040. case "__typename":
  155041. out.Values[i] = graphql.MarshalString("ShopAlert")
  155042. case "action":
  155043. out.Values[i] = ec._ShopAlert_action(ctx, field, obj)
  155044. if out.Values[i] == graphql.Null {
  155045. invalids++
  155046. }
  155047. case "description":
  155048. out.Values[i] = ec._ShopAlert_description(ctx, field, obj)
  155049. if out.Values[i] == graphql.Null {
  155050. invalids++
  155051. }
  155052. default:
  155053. panic("unknown field " + strconv.Quote(field.Name))
  155054. }
  155055. }
  155056. out.Dispatch()
  155057. if invalids > 0 {
  155058. return graphql.Null
  155059. }
  155060. return out
  155061. }
  155062. var shopAlertActionImplementors = []string{"ShopAlertAction"}
  155063. func (ec *executionContext) _ShopAlertAction(ctx context.Context, sel ast.SelectionSet, obj *ShopAlertAction) graphql.Marshaler {
  155064. fields := graphql.CollectFields(ec.OperationContext, sel, shopAlertActionImplementors)
  155065. out := graphql.NewFieldSet(fields)
  155066. var invalids uint32
  155067. for i, field := range fields {
  155068. switch field.Name {
  155069. case "__typename":
  155070. out.Values[i] = graphql.MarshalString("ShopAlertAction")
  155071. case "title":
  155072. out.Values[i] = ec._ShopAlertAction_title(ctx, field, obj)
  155073. if out.Values[i] == graphql.Null {
  155074. invalids++
  155075. }
  155076. case "url":
  155077. out.Values[i] = ec._ShopAlertAction_url(ctx, field, obj)
  155078. if out.Values[i] == graphql.Null {
  155079. invalids++
  155080. }
  155081. default:
  155082. panic("unknown field " + strconv.Quote(field.Name))
  155083. }
  155084. }
  155085. out.Dispatch()
  155086. if invalids > 0 {
  155087. return graphql.Null
  155088. }
  155089. return out
  155090. }
  155091. var shopFeaturesImplementors = []string{"ShopFeatures"}
  155092. func (ec *executionContext) _ShopFeatures(ctx context.Context, sel ast.SelectionSet, obj *ShopFeatures) graphql.Marshaler {
  155093. fields := graphql.CollectFields(ec.OperationContext, sel, shopFeaturesImplementors)
  155094. out := graphql.NewFieldSet(fields)
  155095. var invalids uint32
  155096. for i, field := range fields {
  155097. switch field.Name {
  155098. case "__typename":
  155099. out.Values[i] = graphql.MarshalString("ShopFeatures")
  155100. case "avalaraAvatax":
  155101. out.Values[i] = ec._ShopFeatures_avalaraAvatax(ctx, field, obj)
  155102. if out.Values[i] == graphql.Null {
  155103. invalids++
  155104. }
  155105. case "branding":
  155106. out.Values[i] = ec._ShopFeatures_branding(ctx, field, obj)
  155107. if out.Values[i] == graphql.Null {
  155108. invalids++
  155109. }
  155110. case "captcha":
  155111. out.Values[i] = ec._ShopFeatures_captcha(ctx, field, obj)
  155112. if out.Values[i] == graphql.Null {
  155113. invalids++
  155114. }
  155115. case "captchaExternalDomains":
  155116. out.Values[i] = ec._ShopFeatures_captchaExternalDomains(ctx, field, obj)
  155117. if out.Values[i] == graphql.Null {
  155118. invalids++
  155119. }
  155120. case "dynamicRemarketing":
  155121. out.Values[i] = ec._ShopFeatures_dynamicRemarketing(ctx, field, obj)
  155122. if out.Values[i] == graphql.Null {
  155123. invalids++
  155124. }
  155125. case "eligibleForSubscriptionMigration":
  155126. out.Values[i] = ec._ShopFeatures_eligibleForSubscriptionMigration(ctx, field, obj)
  155127. if out.Values[i] == graphql.Null {
  155128. invalids++
  155129. }
  155130. case "eligibleForSubscriptions":
  155131. out.Values[i] = ec._ShopFeatures_eligibleForSubscriptions(ctx, field, obj)
  155132. if out.Values[i] == graphql.Null {
  155133. invalids++
  155134. }
  155135. case "giftCards":
  155136. out.Values[i] = ec._ShopFeatures_giftCards(ctx, field, obj)
  155137. if out.Values[i] == graphql.Null {
  155138. invalids++
  155139. }
  155140. case "harmonizedSystemCode":
  155141. out.Values[i] = ec._ShopFeatures_harmonizedSystemCode(ctx, field, obj)
  155142. if out.Values[i] == graphql.Null {
  155143. invalids++
  155144. }
  155145. case "internationalDomains":
  155146. out.Values[i] = ec._ShopFeatures_internationalDomains(ctx, field, obj)
  155147. if out.Values[i] == graphql.Null {
  155148. invalids++
  155149. }
  155150. case "internationalPriceOverrides":
  155151. out.Values[i] = ec._ShopFeatures_internationalPriceOverrides(ctx, field, obj)
  155152. if out.Values[i] == graphql.Null {
  155153. invalids++
  155154. }
  155155. case "internationalPriceRules":
  155156. out.Values[i] = ec._ShopFeatures_internationalPriceRules(ctx, field, obj)
  155157. if out.Values[i] == graphql.Null {
  155158. invalids++
  155159. }
  155160. case "legacySubscriptionGatewayEnabled":
  155161. out.Values[i] = ec._ShopFeatures_legacySubscriptionGatewayEnabled(ctx, field, obj)
  155162. if out.Values[i] == graphql.Null {
  155163. invalids++
  155164. }
  155165. case "liveView":
  155166. out.Values[i] = ec._ShopFeatures_liveView(ctx, field, obj)
  155167. if out.Values[i] == graphql.Null {
  155168. invalids++
  155169. }
  155170. case "onboardingVisual":
  155171. out.Values[i] = ec._ShopFeatures_onboardingVisual(ctx, field, obj)
  155172. if out.Values[i] == graphql.Null {
  155173. invalids++
  155174. }
  155175. case "paypalExpressSubscriptionGatewayStatus":
  155176. out.Values[i] = ec._ShopFeatures_paypalExpressSubscriptionGatewayStatus(ctx, field, obj)
  155177. if out.Values[i] == graphql.Null {
  155178. invalids++
  155179. }
  155180. case "reports":
  155181. out.Values[i] = ec._ShopFeatures_reports(ctx, field, obj)
  155182. if out.Values[i] == graphql.Null {
  155183. invalids++
  155184. }
  155185. case "sellsSubscriptions":
  155186. out.Values[i] = ec._ShopFeatures_sellsSubscriptions(ctx, field, obj)
  155187. if out.Values[i] == graphql.Null {
  155188. invalids++
  155189. }
  155190. case "showMetrics":
  155191. out.Values[i] = ec._ShopFeatures_showMetrics(ctx, field, obj)
  155192. if out.Values[i] == graphql.Null {
  155193. invalids++
  155194. }
  155195. case "storefront":
  155196. out.Values[i] = ec._ShopFeatures_storefront(ctx, field, obj)
  155197. if out.Values[i] == graphql.Null {
  155198. invalids++
  155199. }
  155200. case "usingShopifyBalance":
  155201. out.Values[i] = ec._ShopFeatures_usingShopifyBalance(ctx, field, obj)
  155202. if out.Values[i] == graphql.Null {
  155203. invalids++
  155204. }
  155205. default:
  155206. panic("unknown field " + strconv.Quote(field.Name))
  155207. }
  155208. }
  155209. out.Dispatch()
  155210. if invalids > 0 {
  155211. return graphql.Null
  155212. }
  155213. return out
  155214. }
  155215. var shopPlanImplementors = []string{"ShopPlan"}
  155216. func (ec *executionContext) _ShopPlan(ctx context.Context, sel ast.SelectionSet, obj *ShopPlan) graphql.Marshaler {
  155217. fields := graphql.CollectFields(ec.OperationContext, sel, shopPlanImplementors)
  155218. out := graphql.NewFieldSet(fields)
  155219. var invalids uint32
  155220. for i, field := range fields {
  155221. switch field.Name {
  155222. case "__typename":
  155223. out.Values[i] = graphql.MarshalString("ShopPlan")
  155224. case "displayName":
  155225. out.Values[i] = ec._ShopPlan_displayName(ctx, field, obj)
  155226. if out.Values[i] == graphql.Null {
  155227. invalids++
  155228. }
  155229. case "partnerDevelopment":
  155230. out.Values[i] = ec._ShopPlan_partnerDevelopment(ctx, field, obj)
  155231. if out.Values[i] == graphql.Null {
  155232. invalids++
  155233. }
  155234. case "shopifyPlus":
  155235. out.Values[i] = ec._ShopPlan_shopifyPlus(ctx, field, obj)
  155236. if out.Values[i] == graphql.Null {
  155237. invalids++
  155238. }
  155239. default:
  155240. panic("unknown field " + strconv.Quote(field.Name))
  155241. }
  155242. }
  155243. out.Dispatch()
  155244. if invalids > 0 {
  155245. return graphql.Null
  155246. }
  155247. return out
  155248. }
  155249. var shopPolicyImplementors = []string{"ShopPolicy", "HasPublishedTranslations", "Node"}
  155250. func (ec *executionContext) _ShopPolicy(ctx context.Context, sel ast.SelectionSet, obj *ShopPolicy) graphql.Marshaler {
  155251. fields := graphql.CollectFields(ec.OperationContext, sel, shopPolicyImplementors)
  155252. out := graphql.NewFieldSet(fields)
  155253. var invalids uint32
  155254. for i, field := range fields {
  155255. switch field.Name {
  155256. case "__typename":
  155257. out.Values[i] = graphql.MarshalString("ShopPolicy")
  155258. case "body":
  155259. out.Values[i] = ec._ShopPolicy_body(ctx, field, obj)
  155260. if out.Values[i] == graphql.Null {
  155261. invalids++
  155262. }
  155263. case "id":
  155264. out.Values[i] = ec._ShopPolicy_id(ctx, field, obj)
  155265. if out.Values[i] == graphql.Null {
  155266. invalids++
  155267. }
  155268. case "translations":
  155269. out.Values[i] = ec._ShopPolicy_translations(ctx, field, obj)
  155270. if out.Values[i] == graphql.Null {
  155271. invalids++
  155272. }
  155273. case "type":
  155274. out.Values[i] = ec._ShopPolicy_type(ctx, field, obj)
  155275. if out.Values[i] == graphql.Null {
  155276. invalids++
  155277. }
  155278. case "url":
  155279. out.Values[i] = ec._ShopPolicy_url(ctx, field, obj)
  155280. if out.Values[i] == graphql.Null {
  155281. invalids++
  155282. }
  155283. default:
  155284. panic("unknown field " + strconv.Quote(field.Name))
  155285. }
  155286. }
  155287. out.Dispatch()
  155288. if invalids > 0 {
  155289. return graphql.Null
  155290. }
  155291. return out
  155292. }
  155293. var shopResourceLimitsImplementors = []string{"ShopResourceLimits"}
  155294. func (ec *executionContext) _ShopResourceLimits(ctx context.Context, sel ast.SelectionSet, obj *ShopResourceLimits) graphql.Marshaler {
  155295. fields := graphql.CollectFields(ec.OperationContext, sel, shopResourceLimitsImplementors)
  155296. out := graphql.NewFieldSet(fields)
  155297. var invalids uint32
  155298. for i, field := range fields {
  155299. switch field.Name {
  155300. case "__typename":
  155301. out.Values[i] = graphql.MarshalString("ShopResourceLimits")
  155302. case "locationLimit":
  155303. out.Values[i] = ec._ShopResourceLimits_locationLimit(ctx, field, obj)
  155304. if out.Values[i] == graphql.Null {
  155305. invalids++
  155306. }
  155307. case "maxProductOptions":
  155308. out.Values[i] = ec._ShopResourceLimits_maxProductOptions(ctx, field, obj)
  155309. if out.Values[i] == graphql.Null {
  155310. invalids++
  155311. }
  155312. case "maxProductVariants":
  155313. out.Values[i] = ec._ShopResourceLimits_maxProductVariants(ctx, field, obj)
  155314. if out.Values[i] == graphql.Null {
  155315. invalids++
  155316. }
  155317. case "redirectLimitReached":
  155318. out.Values[i] = ec._ShopResourceLimits_redirectLimitReached(ctx, field, obj)
  155319. if out.Values[i] == graphql.Null {
  155320. invalids++
  155321. }
  155322. case "skuResourceLimits":
  155323. out.Values[i] = ec._ShopResourceLimits_skuResourceLimits(ctx, field, obj)
  155324. if out.Values[i] == graphql.Null {
  155325. invalids++
  155326. }
  155327. default:
  155328. panic("unknown field " + strconv.Quote(field.Name))
  155329. }
  155330. }
  155331. out.Dispatch()
  155332. if invalids > 0 {
  155333. return graphql.Null
  155334. }
  155335. return out
  155336. }
  155337. var shopifyPaymentsExtendedAuthorizationImplementors = []string{"ShopifyPaymentsExtendedAuthorization"}
  155338. func (ec *executionContext) _ShopifyPaymentsExtendedAuthorization(ctx context.Context, sel ast.SelectionSet, obj *ShopifyPaymentsExtendedAuthorization) graphql.Marshaler {
  155339. fields := graphql.CollectFields(ec.OperationContext, sel, shopifyPaymentsExtendedAuthorizationImplementors)
  155340. out := graphql.NewFieldSet(fields)
  155341. var invalids uint32
  155342. for i, field := range fields {
  155343. switch field.Name {
  155344. case "__typename":
  155345. out.Values[i] = graphql.MarshalString("ShopifyPaymentsExtendedAuthorization")
  155346. case "extendedAuthorizationExpiresAt":
  155347. out.Values[i] = ec._ShopifyPaymentsExtendedAuthorization_extendedAuthorizationExpiresAt(ctx, field, obj)
  155348. if out.Values[i] == graphql.Null {
  155349. invalids++
  155350. }
  155351. case "standardAuthorizationExpiresAt":
  155352. out.Values[i] = ec._ShopifyPaymentsExtendedAuthorization_standardAuthorizationExpiresAt(ctx, field, obj)
  155353. if out.Values[i] == graphql.Null {
  155354. invalids++
  155355. }
  155356. default:
  155357. panic("unknown field " + strconv.Quote(field.Name))
  155358. }
  155359. }
  155360. out.Dispatch()
  155361. if invalids > 0 {
  155362. return graphql.Null
  155363. }
  155364. return out
  155365. }
  155366. var shopifyPaymentsRefundSetImplementors = []string{"ShopifyPaymentsRefundSet"}
  155367. func (ec *executionContext) _ShopifyPaymentsRefundSet(ctx context.Context, sel ast.SelectionSet, obj *ShopifyPaymentsRefundSet) graphql.Marshaler {
  155368. fields := graphql.CollectFields(ec.OperationContext, sel, shopifyPaymentsRefundSetImplementors)
  155369. out := graphql.NewFieldSet(fields)
  155370. var invalids uint32
  155371. for i, field := range fields {
  155372. switch field.Name {
  155373. case "__typename":
  155374. out.Values[i] = graphql.MarshalString("ShopifyPaymentsRefundSet")
  155375. case "acquirerReferenceNumber":
  155376. out.Values[i] = ec._ShopifyPaymentsRefundSet_acquirerReferenceNumber(ctx, field, obj)
  155377. default:
  155378. panic("unknown field " + strconv.Quote(field.Name))
  155379. }
  155380. }
  155381. out.Dispatch()
  155382. if invalids > 0 {
  155383. return graphql.Null
  155384. }
  155385. return out
  155386. }
  155387. var shopifyPaymentsTransactionSetImplementors = []string{"ShopifyPaymentsTransactionSet"}
  155388. func (ec *executionContext) _ShopifyPaymentsTransactionSet(ctx context.Context, sel ast.SelectionSet, obj *ShopifyPaymentsTransactionSet) graphql.Marshaler {
  155389. fields := graphql.CollectFields(ec.OperationContext, sel, shopifyPaymentsTransactionSetImplementors)
  155390. out := graphql.NewFieldSet(fields)
  155391. var invalids uint32
  155392. for i, field := range fields {
  155393. switch field.Name {
  155394. case "__typename":
  155395. out.Values[i] = graphql.MarshalString("ShopifyPaymentsTransactionSet")
  155396. case "extendedAuthorizationSet":
  155397. out.Values[i] = ec._ShopifyPaymentsTransactionSet_extendedAuthorizationSet(ctx, field, obj)
  155398. case "refundSet":
  155399. out.Values[i] = ec._ShopifyPaymentsTransactionSet_refundSet(ctx, field, obj)
  155400. default:
  155401. panic("unknown field " + strconv.Quote(field.Name))
  155402. }
  155403. }
  155404. out.Dispatch()
  155405. if invalids > 0 {
  155406. return graphql.Null
  155407. }
  155408. return out
  155409. }
  155410. var staffMemberImplementors = []string{"StaffMember", "Node"}
  155411. func (ec *executionContext) _StaffMember(ctx context.Context, sel ast.SelectionSet, obj *StaffMember) graphql.Marshaler {
  155412. fields := graphql.CollectFields(ec.OperationContext, sel, staffMemberImplementors)
  155413. out := graphql.NewFieldSet(fields)
  155414. var invalids uint32
  155415. for i, field := range fields {
  155416. switch field.Name {
  155417. case "__typename":
  155418. out.Values[i] = graphql.MarshalString("StaffMember")
  155419. case "active":
  155420. out.Values[i] = ec._StaffMember_active(ctx, field, obj)
  155421. if out.Values[i] == graphql.Null {
  155422. invalids++
  155423. }
  155424. case "avatar":
  155425. out.Values[i] = ec._StaffMember_avatar(ctx, field, obj)
  155426. if out.Values[i] == graphql.Null {
  155427. invalids++
  155428. }
  155429. case "email":
  155430. out.Values[i] = ec._StaffMember_email(ctx, field, obj)
  155431. if out.Values[i] == graphql.Null {
  155432. invalids++
  155433. }
  155434. case "exists":
  155435. out.Values[i] = ec._StaffMember_exists(ctx, field, obj)
  155436. if out.Values[i] == graphql.Null {
  155437. invalids++
  155438. }
  155439. case "firstName":
  155440. out.Values[i] = ec._StaffMember_firstName(ctx, field, obj)
  155441. case "id":
  155442. out.Values[i] = ec._StaffMember_id(ctx, field, obj)
  155443. if out.Values[i] == graphql.Null {
  155444. invalids++
  155445. }
  155446. case "initials":
  155447. out.Values[i] = ec._StaffMember_initials(ctx, field, obj)
  155448. case "isShopOwner":
  155449. out.Values[i] = ec._StaffMember_isShopOwner(ctx, field, obj)
  155450. if out.Values[i] == graphql.Null {
  155451. invalids++
  155452. }
  155453. case "lastName":
  155454. out.Values[i] = ec._StaffMember_lastName(ctx, field, obj)
  155455. case "locale":
  155456. out.Values[i] = ec._StaffMember_locale(ctx, field, obj)
  155457. if out.Values[i] == graphql.Null {
  155458. invalids++
  155459. }
  155460. case "name":
  155461. out.Values[i] = ec._StaffMember_name(ctx, field, obj)
  155462. if out.Values[i] == graphql.Null {
  155463. invalids++
  155464. }
  155465. case "phone":
  155466. out.Values[i] = ec._StaffMember_phone(ctx, field, obj)
  155467. case "privateData":
  155468. out.Values[i] = ec._StaffMember_privateData(ctx, field, obj)
  155469. if out.Values[i] == graphql.Null {
  155470. invalids++
  155471. }
  155472. default:
  155473. panic("unknown field " + strconv.Quote(field.Name))
  155474. }
  155475. }
  155476. out.Dispatch()
  155477. if invalids > 0 {
  155478. return graphql.Null
  155479. }
  155480. return out
  155481. }
  155482. var staffMemberConnectionImplementors = []string{"StaffMemberConnection"}
  155483. func (ec *executionContext) _StaffMemberConnection(ctx context.Context, sel ast.SelectionSet, obj *StaffMemberConnection) graphql.Marshaler {
  155484. fields := graphql.CollectFields(ec.OperationContext, sel, staffMemberConnectionImplementors)
  155485. out := graphql.NewFieldSet(fields)
  155486. var invalids uint32
  155487. for i, field := range fields {
  155488. switch field.Name {
  155489. case "__typename":
  155490. out.Values[i] = graphql.MarshalString("StaffMemberConnection")
  155491. case "edges":
  155492. out.Values[i] = ec._StaffMemberConnection_edges(ctx, field, obj)
  155493. if out.Values[i] == graphql.Null {
  155494. invalids++
  155495. }
  155496. case "nodes":
  155497. out.Values[i] = ec._StaffMemberConnection_nodes(ctx, field, obj)
  155498. if out.Values[i] == graphql.Null {
  155499. invalids++
  155500. }
  155501. case "pageInfo":
  155502. out.Values[i] = ec._StaffMemberConnection_pageInfo(ctx, field, obj)
  155503. if out.Values[i] == graphql.Null {
  155504. invalids++
  155505. }
  155506. default:
  155507. panic("unknown field " + strconv.Quote(field.Name))
  155508. }
  155509. }
  155510. out.Dispatch()
  155511. if invalids > 0 {
  155512. return graphql.Null
  155513. }
  155514. return out
  155515. }
  155516. var staffMemberEdgeImplementors = []string{"StaffMemberEdge"}
  155517. func (ec *executionContext) _StaffMemberEdge(ctx context.Context, sel ast.SelectionSet, obj *StaffMemberEdge) graphql.Marshaler {
  155518. fields := graphql.CollectFields(ec.OperationContext, sel, staffMemberEdgeImplementors)
  155519. out := graphql.NewFieldSet(fields)
  155520. var invalids uint32
  155521. for i, field := range fields {
  155522. switch field.Name {
  155523. case "__typename":
  155524. out.Values[i] = graphql.MarshalString("StaffMemberEdge")
  155525. case "cursor":
  155526. out.Values[i] = ec._StaffMemberEdge_cursor(ctx, field, obj)
  155527. if out.Values[i] == graphql.Null {
  155528. invalids++
  155529. }
  155530. case "node":
  155531. out.Values[i] = ec._StaffMemberEdge_node(ctx, field, obj)
  155532. if out.Values[i] == graphql.Null {
  155533. invalids++
  155534. }
  155535. default:
  155536. panic("unknown field " + strconv.Quote(field.Name))
  155537. }
  155538. }
  155539. out.Dispatch()
  155540. if invalids > 0 {
  155541. return graphql.Null
  155542. }
  155543. return out
  155544. }
  155545. var staffMemberPrivateDataImplementors = []string{"StaffMemberPrivateData"}
  155546. func (ec *executionContext) _StaffMemberPrivateData(ctx context.Context, sel ast.SelectionSet, obj *StaffMemberPrivateData) graphql.Marshaler {
  155547. fields := graphql.CollectFields(ec.OperationContext, sel, staffMemberPrivateDataImplementors)
  155548. out := graphql.NewFieldSet(fields)
  155549. var invalids uint32
  155550. for i, field := range fields {
  155551. switch field.Name {
  155552. case "__typename":
  155553. out.Values[i] = graphql.MarshalString("StaffMemberPrivateData")
  155554. case "accountSettingsUrl":
  155555. out.Values[i] = ec._StaffMemberPrivateData_accountSettingsUrl(ctx, field, obj)
  155556. if out.Values[i] == graphql.Null {
  155557. invalids++
  155558. }
  155559. case "createdAt":
  155560. out.Values[i] = ec._StaffMemberPrivateData_createdAt(ctx, field, obj)
  155561. if out.Values[i] == graphql.Null {
  155562. invalids++
  155563. }
  155564. default:
  155565. panic("unknown field " + strconv.Quote(field.Name))
  155566. }
  155567. }
  155568. out.Dispatch()
  155569. if invalids > 0 {
  155570. return graphql.Null
  155571. }
  155572. return out
  155573. }
  155574. var standardMetafieldDefinitionTemplateImplementors = []string{"StandardMetafieldDefinitionTemplate", "Node"}
  155575. func (ec *executionContext) _StandardMetafieldDefinitionTemplate(ctx context.Context, sel ast.SelectionSet, obj *StandardMetafieldDefinitionTemplate) graphql.Marshaler {
  155576. fields := graphql.CollectFields(ec.OperationContext, sel, standardMetafieldDefinitionTemplateImplementors)
  155577. out := graphql.NewFieldSet(fields)
  155578. var invalids uint32
  155579. for i, field := range fields {
  155580. switch field.Name {
  155581. case "__typename":
  155582. out.Values[i] = graphql.MarshalString("StandardMetafieldDefinitionTemplate")
  155583. case "description":
  155584. out.Values[i] = ec._StandardMetafieldDefinitionTemplate_description(ctx, field, obj)
  155585. case "id":
  155586. out.Values[i] = ec._StandardMetafieldDefinitionTemplate_id(ctx, field, obj)
  155587. if out.Values[i] == graphql.Null {
  155588. invalids++
  155589. }
  155590. case "key":
  155591. out.Values[i] = ec._StandardMetafieldDefinitionTemplate_key(ctx, field, obj)
  155592. if out.Values[i] == graphql.Null {
  155593. invalids++
  155594. }
  155595. case "name":
  155596. out.Values[i] = ec._StandardMetafieldDefinitionTemplate_name(ctx, field, obj)
  155597. if out.Values[i] == graphql.Null {
  155598. invalids++
  155599. }
  155600. case "namespace":
  155601. out.Values[i] = ec._StandardMetafieldDefinitionTemplate_namespace(ctx, field, obj)
  155602. if out.Values[i] == graphql.Null {
  155603. invalids++
  155604. }
  155605. case "ownerTypes":
  155606. out.Values[i] = ec._StandardMetafieldDefinitionTemplate_ownerTypes(ctx, field, obj)
  155607. if out.Values[i] == graphql.Null {
  155608. invalids++
  155609. }
  155610. case "type":
  155611. out.Values[i] = ec._StandardMetafieldDefinitionTemplate_type(ctx, field, obj)
  155612. if out.Values[i] == graphql.Null {
  155613. invalids++
  155614. }
  155615. case "validations":
  155616. out.Values[i] = ec._StandardMetafieldDefinitionTemplate_validations(ctx, field, obj)
  155617. if out.Values[i] == graphql.Null {
  155618. invalids++
  155619. }
  155620. case "visibleToStorefrontApi":
  155621. out.Values[i] = ec._StandardMetafieldDefinitionTemplate_visibleToStorefrontApi(ctx, field, obj)
  155622. if out.Values[i] == graphql.Null {
  155623. invalids++
  155624. }
  155625. default:
  155626. panic("unknown field " + strconv.Quote(field.Name))
  155627. }
  155628. }
  155629. out.Dispatch()
  155630. if invalids > 0 {
  155631. return graphql.Null
  155632. }
  155633. return out
  155634. }
  155635. var storefrontAccessTokenImplementors = []string{"StorefrontAccessToken", "Node"}
  155636. func (ec *executionContext) _StorefrontAccessToken(ctx context.Context, sel ast.SelectionSet, obj *StorefrontAccessToken) graphql.Marshaler {
  155637. fields := graphql.CollectFields(ec.OperationContext, sel, storefrontAccessTokenImplementors)
  155638. out := graphql.NewFieldSet(fields)
  155639. var invalids uint32
  155640. for i, field := range fields {
  155641. switch field.Name {
  155642. case "__typename":
  155643. out.Values[i] = graphql.MarshalString("StorefrontAccessToken")
  155644. case "accessScopes":
  155645. out.Values[i] = ec._StorefrontAccessToken_accessScopes(ctx, field, obj)
  155646. if out.Values[i] == graphql.Null {
  155647. invalids++
  155648. }
  155649. case "accessToken":
  155650. out.Values[i] = ec._StorefrontAccessToken_accessToken(ctx, field, obj)
  155651. if out.Values[i] == graphql.Null {
  155652. invalids++
  155653. }
  155654. case "createdAt":
  155655. out.Values[i] = ec._StorefrontAccessToken_createdAt(ctx, field, obj)
  155656. if out.Values[i] == graphql.Null {
  155657. invalids++
  155658. }
  155659. case "id":
  155660. out.Values[i] = ec._StorefrontAccessToken_id(ctx, field, obj)
  155661. if out.Values[i] == graphql.Null {
  155662. invalids++
  155663. }
  155664. case "title":
  155665. out.Values[i] = ec._StorefrontAccessToken_title(ctx, field, obj)
  155666. if out.Values[i] == graphql.Null {
  155667. invalids++
  155668. }
  155669. case "updatedAt":
  155670. out.Values[i] = ec._StorefrontAccessToken_updatedAt(ctx, field, obj)
  155671. if out.Values[i] == graphql.Null {
  155672. invalids++
  155673. }
  155674. default:
  155675. panic("unknown field " + strconv.Quote(field.Name))
  155676. }
  155677. }
  155678. out.Dispatch()
  155679. if invalids > 0 {
  155680. return graphql.Null
  155681. }
  155682. return out
  155683. }
  155684. var storefrontAccessTokenConnectionImplementors = []string{"StorefrontAccessTokenConnection"}
  155685. func (ec *executionContext) _StorefrontAccessTokenConnection(ctx context.Context, sel ast.SelectionSet, obj *StorefrontAccessTokenConnection) graphql.Marshaler {
  155686. fields := graphql.CollectFields(ec.OperationContext, sel, storefrontAccessTokenConnectionImplementors)
  155687. out := graphql.NewFieldSet(fields)
  155688. var invalids uint32
  155689. for i, field := range fields {
  155690. switch field.Name {
  155691. case "__typename":
  155692. out.Values[i] = graphql.MarshalString("StorefrontAccessTokenConnection")
  155693. case "edges":
  155694. out.Values[i] = ec._StorefrontAccessTokenConnection_edges(ctx, field, obj)
  155695. if out.Values[i] == graphql.Null {
  155696. invalids++
  155697. }
  155698. case "nodes":
  155699. out.Values[i] = ec._StorefrontAccessTokenConnection_nodes(ctx, field, obj)
  155700. if out.Values[i] == graphql.Null {
  155701. invalids++
  155702. }
  155703. case "pageInfo":
  155704. out.Values[i] = ec._StorefrontAccessTokenConnection_pageInfo(ctx, field, obj)
  155705. if out.Values[i] == graphql.Null {
  155706. invalids++
  155707. }
  155708. default:
  155709. panic("unknown field " + strconv.Quote(field.Name))
  155710. }
  155711. }
  155712. out.Dispatch()
  155713. if invalids > 0 {
  155714. return graphql.Null
  155715. }
  155716. return out
  155717. }
  155718. var storefrontAccessTokenEdgeImplementors = []string{"StorefrontAccessTokenEdge"}
  155719. func (ec *executionContext) _StorefrontAccessTokenEdge(ctx context.Context, sel ast.SelectionSet, obj *StorefrontAccessTokenEdge) graphql.Marshaler {
  155720. fields := graphql.CollectFields(ec.OperationContext, sel, storefrontAccessTokenEdgeImplementors)
  155721. out := graphql.NewFieldSet(fields)
  155722. var invalids uint32
  155723. for i, field := range fields {
  155724. switch field.Name {
  155725. case "__typename":
  155726. out.Values[i] = graphql.MarshalString("StorefrontAccessTokenEdge")
  155727. case "cursor":
  155728. out.Values[i] = ec._StorefrontAccessTokenEdge_cursor(ctx, field, obj)
  155729. if out.Values[i] == graphql.Null {
  155730. invalids++
  155731. }
  155732. case "node":
  155733. out.Values[i] = ec._StorefrontAccessTokenEdge_node(ctx, field, obj)
  155734. if out.Values[i] == graphql.Null {
  155735. invalids++
  155736. }
  155737. default:
  155738. panic("unknown field " + strconv.Quote(field.Name))
  155739. }
  155740. }
  155741. out.Dispatch()
  155742. if invalids > 0 {
  155743. return graphql.Null
  155744. }
  155745. return out
  155746. }
  155747. var stringConnectionImplementors = []string{"StringConnection"}
  155748. func (ec *executionContext) _StringConnection(ctx context.Context, sel ast.SelectionSet, obj *StringConnection) graphql.Marshaler {
  155749. fields := graphql.CollectFields(ec.OperationContext, sel, stringConnectionImplementors)
  155750. out := graphql.NewFieldSet(fields)
  155751. var invalids uint32
  155752. for i, field := range fields {
  155753. switch field.Name {
  155754. case "__typename":
  155755. out.Values[i] = graphql.MarshalString("StringConnection")
  155756. case "edges":
  155757. out.Values[i] = ec._StringConnection_edges(ctx, field, obj)
  155758. if out.Values[i] == graphql.Null {
  155759. invalids++
  155760. }
  155761. case "pageInfo":
  155762. out.Values[i] = ec._StringConnection_pageInfo(ctx, field, obj)
  155763. if out.Values[i] == graphql.Null {
  155764. invalids++
  155765. }
  155766. default:
  155767. panic("unknown field " + strconv.Quote(field.Name))
  155768. }
  155769. }
  155770. out.Dispatch()
  155771. if invalids > 0 {
  155772. return graphql.Null
  155773. }
  155774. return out
  155775. }
  155776. var stringEdgeImplementors = []string{"StringEdge"}
  155777. func (ec *executionContext) _StringEdge(ctx context.Context, sel ast.SelectionSet, obj *StringEdge) graphql.Marshaler {
  155778. fields := graphql.CollectFields(ec.OperationContext, sel, stringEdgeImplementors)
  155779. out := graphql.NewFieldSet(fields)
  155780. var invalids uint32
  155781. for i, field := range fields {
  155782. switch field.Name {
  155783. case "__typename":
  155784. out.Values[i] = graphql.MarshalString("StringEdge")
  155785. case "cursor":
  155786. out.Values[i] = ec._StringEdge_cursor(ctx, field, obj)
  155787. if out.Values[i] == graphql.Null {
  155788. invalids++
  155789. }
  155790. case "node":
  155791. out.Values[i] = ec._StringEdge_node(ctx, field, obj)
  155792. if out.Values[i] == graphql.Null {
  155793. invalids++
  155794. }
  155795. default:
  155796. panic("unknown field " + strconv.Quote(field.Name))
  155797. }
  155798. }
  155799. out.Dispatch()
  155800. if invalids > 0 {
  155801. return graphql.Null
  155802. }
  155803. return out
  155804. }
  155805. var subscriptionAppliedCodeDiscountImplementors = []string{"SubscriptionAppliedCodeDiscount", "SubscriptionDiscount"}
  155806. func (ec *executionContext) _SubscriptionAppliedCodeDiscount(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionAppliedCodeDiscount) graphql.Marshaler {
  155807. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionAppliedCodeDiscountImplementors)
  155808. out := graphql.NewFieldSet(fields)
  155809. var invalids uint32
  155810. for i, field := range fields {
  155811. switch field.Name {
  155812. case "__typename":
  155813. out.Values[i] = graphql.MarshalString("SubscriptionAppliedCodeDiscount")
  155814. case "id":
  155815. out.Values[i] = ec._SubscriptionAppliedCodeDiscount_id(ctx, field, obj)
  155816. if out.Values[i] == graphql.Null {
  155817. invalids++
  155818. }
  155819. case "redeemCode":
  155820. out.Values[i] = ec._SubscriptionAppliedCodeDiscount_redeemCode(ctx, field, obj)
  155821. if out.Values[i] == graphql.Null {
  155822. invalids++
  155823. }
  155824. case "rejectionReason":
  155825. out.Values[i] = ec._SubscriptionAppliedCodeDiscount_rejectionReason(ctx, field, obj)
  155826. default:
  155827. panic("unknown field " + strconv.Quote(field.Name))
  155828. }
  155829. }
  155830. out.Dispatch()
  155831. if invalids > 0 {
  155832. return graphql.Null
  155833. }
  155834. return out
  155835. }
  155836. var subscriptionBillingAttemptImplementors = []string{"SubscriptionBillingAttempt", "Node"}
  155837. func (ec *executionContext) _SubscriptionBillingAttempt(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionBillingAttempt) graphql.Marshaler {
  155838. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionBillingAttemptImplementors)
  155839. out := graphql.NewFieldSet(fields)
  155840. var invalids uint32
  155841. for i, field := range fields {
  155842. switch field.Name {
  155843. case "__typename":
  155844. out.Values[i] = graphql.MarshalString("SubscriptionBillingAttempt")
  155845. case "completedAt":
  155846. out.Values[i] = ec._SubscriptionBillingAttempt_completedAt(ctx, field, obj)
  155847. case "createdAt":
  155848. out.Values[i] = ec._SubscriptionBillingAttempt_createdAt(ctx, field, obj)
  155849. if out.Values[i] == graphql.Null {
  155850. invalids++
  155851. }
  155852. case "errorCode":
  155853. out.Values[i] = ec._SubscriptionBillingAttempt_errorCode(ctx, field, obj)
  155854. case "errorMessage":
  155855. out.Values[i] = ec._SubscriptionBillingAttempt_errorMessage(ctx, field, obj)
  155856. case "id":
  155857. out.Values[i] = ec._SubscriptionBillingAttempt_id(ctx, field, obj)
  155858. if out.Values[i] == graphql.Null {
  155859. invalids++
  155860. }
  155861. case "idempotencyKey":
  155862. out.Values[i] = ec._SubscriptionBillingAttempt_idempotencyKey(ctx, field, obj)
  155863. if out.Values[i] == graphql.Null {
  155864. invalids++
  155865. }
  155866. case "nextActionUrl":
  155867. out.Values[i] = ec._SubscriptionBillingAttempt_nextActionUrl(ctx, field, obj)
  155868. case "order":
  155869. out.Values[i] = ec._SubscriptionBillingAttempt_order(ctx, field, obj)
  155870. case "originTime":
  155871. out.Values[i] = ec._SubscriptionBillingAttempt_originTime(ctx, field, obj)
  155872. case "ready":
  155873. out.Values[i] = ec._SubscriptionBillingAttempt_ready(ctx, field, obj)
  155874. if out.Values[i] == graphql.Null {
  155875. invalids++
  155876. }
  155877. case "subscriptionContract":
  155878. out.Values[i] = ec._SubscriptionBillingAttempt_subscriptionContract(ctx, field, obj)
  155879. if out.Values[i] == graphql.Null {
  155880. invalids++
  155881. }
  155882. default:
  155883. panic("unknown field " + strconv.Quote(field.Name))
  155884. }
  155885. }
  155886. out.Dispatch()
  155887. if invalids > 0 {
  155888. return graphql.Null
  155889. }
  155890. return out
  155891. }
  155892. var subscriptionBillingAttemptConnectionImplementors = []string{"SubscriptionBillingAttemptConnection"}
  155893. func (ec *executionContext) _SubscriptionBillingAttemptConnection(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionBillingAttemptConnection) graphql.Marshaler {
  155894. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionBillingAttemptConnectionImplementors)
  155895. out := graphql.NewFieldSet(fields)
  155896. var invalids uint32
  155897. for i, field := range fields {
  155898. switch field.Name {
  155899. case "__typename":
  155900. out.Values[i] = graphql.MarshalString("SubscriptionBillingAttemptConnection")
  155901. case "edges":
  155902. out.Values[i] = ec._SubscriptionBillingAttemptConnection_edges(ctx, field, obj)
  155903. if out.Values[i] == graphql.Null {
  155904. invalids++
  155905. }
  155906. case "nodes":
  155907. out.Values[i] = ec._SubscriptionBillingAttemptConnection_nodes(ctx, field, obj)
  155908. if out.Values[i] == graphql.Null {
  155909. invalids++
  155910. }
  155911. case "pageInfo":
  155912. out.Values[i] = ec._SubscriptionBillingAttemptConnection_pageInfo(ctx, field, obj)
  155913. if out.Values[i] == graphql.Null {
  155914. invalids++
  155915. }
  155916. default:
  155917. panic("unknown field " + strconv.Quote(field.Name))
  155918. }
  155919. }
  155920. out.Dispatch()
  155921. if invalids > 0 {
  155922. return graphql.Null
  155923. }
  155924. return out
  155925. }
  155926. var subscriptionBillingAttemptEdgeImplementors = []string{"SubscriptionBillingAttemptEdge"}
  155927. func (ec *executionContext) _SubscriptionBillingAttemptEdge(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionBillingAttemptEdge) graphql.Marshaler {
  155928. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionBillingAttemptEdgeImplementors)
  155929. out := graphql.NewFieldSet(fields)
  155930. var invalids uint32
  155931. for i, field := range fields {
  155932. switch field.Name {
  155933. case "__typename":
  155934. out.Values[i] = graphql.MarshalString("SubscriptionBillingAttemptEdge")
  155935. case "cursor":
  155936. out.Values[i] = ec._SubscriptionBillingAttemptEdge_cursor(ctx, field, obj)
  155937. if out.Values[i] == graphql.Null {
  155938. invalids++
  155939. }
  155940. case "node":
  155941. out.Values[i] = ec._SubscriptionBillingAttemptEdge_node(ctx, field, obj)
  155942. if out.Values[i] == graphql.Null {
  155943. invalids++
  155944. }
  155945. default:
  155946. panic("unknown field " + strconv.Quote(field.Name))
  155947. }
  155948. }
  155949. out.Dispatch()
  155950. if invalids > 0 {
  155951. return graphql.Null
  155952. }
  155953. return out
  155954. }
  155955. var subscriptionBillingPolicyImplementors = []string{"SubscriptionBillingPolicy"}
  155956. func (ec *executionContext) _SubscriptionBillingPolicy(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionBillingPolicy) graphql.Marshaler {
  155957. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionBillingPolicyImplementors)
  155958. out := graphql.NewFieldSet(fields)
  155959. var invalids uint32
  155960. for i, field := range fields {
  155961. switch field.Name {
  155962. case "__typename":
  155963. out.Values[i] = graphql.MarshalString("SubscriptionBillingPolicy")
  155964. case "anchors":
  155965. out.Values[i] = ec._SubscriptionBillingPolicy_anchors(ctx, field, obj)
  155966. if out.Values[i] == graphql.Null {
  155967. invalids++
  155968. }
  155969. case "interval":
  155970. out.Values[i] = ec._SubscriptionBillingPolicy_interval(ctx, field, obj)
  155971. if out.Values[i] == graphql.Null {
  155972. invalids++
  155973. }
  155974. case "intervalCount":
  155975. out.Values[i] = ec._SubscriptionBillingPolicy_intervalCount(ctx, field, obj)
  155976. if out.Values[i] == graphql.Null {
  155977. invalids++
  155978. }
  155979. case "maxCycles":
  155980. out.Values[i] = ec._SubscriptionBillingPolicy_maxCycles(ctx, field, obj)
  155981. case "minCycles":
  155982. out.Values[i] = ec._SubscriptionBillingPolicy_minCycles(ctx, field, obj)
  155983. default:
  155984. panic("unknown field " + strconv.Quote(field.Name))
  155985. }
  155986. }
  155987. out.Dispatch()
  155988. if invalids > 0 {
  155989. return graphql.Null
  155990. }
  155991. return out
  155992. }
  155993. var subscriptionContractImplementors = []string{"SubscriptionContract", "Node", "SubscriptionContractBase"}
  155994. func (ec *executionContext) _SubscriptionContract(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionContract) graphql.Marshaler {
  155995. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionContractImplementors)
  155996. out := graphql.NewFieldSet(fields)
  155997. var invalids uint32
  155998. for i, field := range fields {
  155999. switch field.Name {
  156000. case "__typename":
  156001. out.Values[i] = graphql.MarshalString("SubscriptionContract")
  156002. case "app":
  156003. out.Values[i] = ec._SubscriptionContract_app(ctx, field, obj)
  156004. case "appAdminUrl":
  156005. out.Values[i] = ec._SubscriptionContract_appAdminUrl(ctx, field, obj)
  156006. case "billingAttempts":
  156007. out.Values[i] = ec._SubscriptionContract_billingAttempts(ctx, field, obj)
  156008. if out.Values[i] == graphql.Null {
  156009. invalids++
  156010. }
  156011. case "billingPolicy":
  156012. out.Values[i] = ec._SubscriptionContract_billingPolicy(ctx, field, obj)
  156013. if out.Values[i] == graphql.Null {
  156014. invalids++
  156015. }
  156016. case "createdAt":
  156017. out.Values[i] = ec._SubscriptionContract_createdAt(ctx, field, obj)
  156018. if out.Values[i] == graphql.Null {
  156019. invalids++
  156020. }
  156021. case "currencyCode":
  156022. out.Values[i] = ec._SubscriptionContract_currencyCode(ctx, field, obj)
  156023. if out.Values[i] == graphql.Null {
  156024. invalids++
  156025. }
  156026. case "customAttributes":
  156027. out.Values[i] = ec._SubscriptionContract_customAttributes(ctx, field, obj)
  156028. if out.Values[i] == graphql.Null {
  156029. invalids++
  156030. }
  156031. case "customer":
  156032. out.Values[i] = ec._SubscriptionContract_customer(ctx, field, obj)
  156033. case "customerPaymentMethod":
  156034. out.Values[i] = ec._SubscriptionContract_customerPaymentMethod(ctx, field, obj)
  156035. case "deliveryMethod":
  156036. out.Values[i] = ec._SubscriptionContract_deliveryMethod(ctx, field, obj)
  156037. case "deliveryPolicy":
  156038. out.Values[i] = ec._SubscriptionContract_deliveryPolicy(ctx, field, obj)
  156039. if out.Values[i] == graphql.Null {
  156040. invalids++
  156041. }
  156042. case "deliveryPrice":
  156043. out.Values[i] = ec._SubscriptionContract_deliveryPrice(ctx, field, obj)
  156044. if out.Values[i] == graphql.Null {
  156045. invalids++
  156046. }
  156047. case "discounts":
  156048. out.Values[i] = ec._SubscriptionContract_discounts(ctx, field, obj)
  156049. if out.Values[i] == graphql.Null {
  156050. invalids++
  156051. }
  156052. case "id":
  156053. out.Values[i] = ec._SubscriptionContract_id(ctx, field, obj)
  156054. if out.Values[i] == graphql.Null {
  156055. invalids++
  156056. }
  156057. case "lastPaymentStatus":
  156058. out.Values[i] = ec._SubscriptionContract_lastPaymentStatus(ctx, field, obj)
  156059. case "lineCount":
  156060. out.Values[i] = ec._SubscriptionContract_lineCount(ctx, field, obj)
  156061. if out.Values[i] == graphql.Null {
  156062. invalids++
  156063. }
  156064. case "lines":
  156065. out.Values[i] = ec._SubscriptionContract_lines(ctx, field, obj)
  156066. if out.Values[i] == graphql.Null {
  156067. invalids++
  156068. }
  156069. case "nextBillingDate":
  156070. out.Values[i] = ec._SubscriptionContract_nextBillingDate(ctx, field, obj)
  156071. case "note":
  156072. out.Values[i] = ec._SubscriptionContract_note(ctx, field, obj)
  156073. case "orders":
  156074. out.Values[i] = ec._SubscriptionContract_orders(ctx, field, obj)
  156075. if out.Values[i] == graphql.Null {
  156076. invalids++
  156077. }
  156078. case "originOrder":
  156079. out.Values[i] = ec._SubscriptionContract_originOrder(ctx, field, obj)
  156080. case "status":
  156081. out.Values[i] = ec._SubscriptionContract_status(ctx, field, obj)
  156082. if out.Values[i] == graphql.Null {
  156083. invalids++
  156084. }
  156085. case "updatedAt":
  156086. out.Values[i] = ec._SubscriptionContract_updatedAt(ctx, field, obj)
  156087. if out.Values[i] == graphql.Null {
  156088. invalids++
  156089. }
  156090. default:
  156091. panic("unknown field " + strconv.Quote(field.Name))
  156092. }
  156093. }
  156094. out.Dispatch()
  156095. if invalids > 0 {
  156096. return graphql.Null
  156097. }
  156098. return out
  156099. }
  156100. var subscriptionContractConnectionImplementors = []string{"SubscriptionContractConnection"}
  156101. func (ec *executionContext) _SubscriptionContractConnection(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionContractConnection) graphql.Marshaler {
  156102. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionContractConnectionImplementors)
  156103. out := graphql.NewFieldSet(fields)
  156104. var invalids uint32
  156105. for i, field := range fields {
  156106. switch field.Name {
  156107. case "__typename":
  156108. out.Values[i] = graphql.MarshalString("SubscriptionContractConnection")
  156109. case "edges":
  156110. out.Values[i] = ec._SubscriptionContractConnection_edges(ctx, field, obj)
  156111. if out.Values[i] == graphql.Null {
  156112. invalids++
  156113. }
  156114. case "nodes":
  156115. out.Values[i] = ec._SubscriptionContractConnection_nodes(ctx, field, obj)
  156116. if out.Values[i] == graphql.Null {
  156117. invalids++
  156118. }
  156119. case "pageInfo":
  156120. out.Values[i] = ec._SubscriptionContractConnection_pageInfo(ctx, field, obj)
  156121. if out.Values[i] == graphql.Null {
  156122. invalids++
  156123. }
  156124. default:
  156125. panic("unknown field " + strconv.Quote(field.Name))
  156126. }
  156127. }
  156128. out.Dispatch()
  156129. if invalids > 0 {
  156130. return graphql.Null
  156131. }
  156132. return out
  156133. }
  156134. var subscriptionContractEdgeImplementors = []string{"SubscriptionContractEdge"}
  156135. func (ec *executionContext) _SubscriptionContractEdge(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionContractEdge) graphql.Marshaler {
  156136. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionContractEdgeImplementors)
  156137. out := graphql.NewFieldSet(fields)
  156138. var invalids uint32
  156139. for i, field := range fields {
  156140. switch field.Name {
  156141. case "__typename":
  156142. out.Values[i] = graphql.MarshalString("SubscriptionContractEdge")
  156143. case "cursor":
  156144. out.Values[i] = ec._SubscriptionContractEdge_cursor(ctx, field, obj)
  156145. if out.Values[i] == graphql.Null {
  156146. invalids++
  156147. }
  156148. case "node":
  156149. out.Values[i] = ec._SubscriptionContractEdge_node(ctx, field, obj)
  156150. if out.Values[i] == graphql.Null {
  156151. invalids++
  156152. }
  156153. default:
  156154. panic("unknown field " + strconv.Quote(field.Name))
  156155. }
  156156. }
  156157. out.Dispatch()
  156158. if invalids > 0 {
  156159. return graphql.Null
  156160. }
  156161. return out
  156162. }
  156163. var subscriptionCyclePriceAdjustmentImplementors = []string{"SubscriptionCyclePriceAdjustment"}
  156164. func (ec *executionContext) _SubscriptionCyclePriceAdjustment(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionCyclePriceAdjustment) graphql.Marshaler {
  156165. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionCyclePriceAdjustmentImplementors)
  156166. out := graphql.NewFieldSet(fields)
  156167. var invalids uint32
  156168. for i, field := range fields {
  156169. switch field.Name {
  156170. case "__typename":
  156171. out.Values[i] = graphql.MarshalString("SubscriptionCyclePriceAdjustment")
  156172. case "adjustmentType":
  156173. out.Values[i] = ec._SubscriptionCyclePriceAdjustment_adjustmentType(ctx, field, obj)
  156174. if out.Values[i] == graphql.Null {
  156175. invalids++
  156176. }
  156177. case "adjustmentValue":
  156178. out.Values[i] = ec._SubscriptionCyclePriceAdjustment_adjustmentValue(ctx, field, obj)
  156179. if out.Values[i] == graphql.Null {
  156180. invalids++
  156181. }
  156182. case "afterCycle":
  156183. out.Values[i] = ec._SubscriptionCyclePriceAdjustment_afterCycle(ctx, field, obj)
  156184. if out.Values[i] == graphql.Null {
  156185. invalids++
  156186. }
  156187. case "computedPrice":
  156188. out.Values[i] = ec._SubscriptionCyclePriceAdjustment_computedPrice(ctx, field, obj)
  156189. if out.Values[i] == graphql.Null {
  156190. invalids++
  156191. }
  156192. default:
  156193. panic("unknown field " + strconv.Quote(field.Name))
  156194. }
  156195. }
  156196. out.Dispatch()
  156197. if invalids > 0 {
  156198. return graphql.Null
  156199. }
  156200. return out
  156201. }
  156202. var subscriptionDeliveryMethodLocalDeliveryImplementors = []string{"SubscriptionDeliveryMethodLocalDelivery", "SubscriptionDeliveryMethod"}
  156203. func (ec *executionContext) _SubscriptionDeliveryMethodLocalDelivery(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionDeliveryMethodLocalDelivery) graphql.Marshaler {
  156204. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionDeliveryMethodLocalDeliveryImplementors)
  156205. out := graphql.NewFieldSet(fields)
  156206. var invalids uint32
  156207. for i, field := range fields {
  156208. switch field.Name {
  156209. case "__typename":
  156210. out.Values[i] = graphql.MarshalString("SubscriptionDeliveryMethodLocalDelivery")
  156211. case "address":
  156212. out.Values[i] = ec._SubscriptionDeliveryMethodLocalDelivery_address(ctx, field, obj)
  156213. if out.Values[i] == graphql.Null {
  156214. invalids++
  156215. }
  156216. case "localDeliveryOption":
  156217. out.Values[i] = ec._SubscriptionDeliveryMethodLocalDelivery_localDeliveryOption(ctx, field, obj)
  156218. if out.Values[i] == graphql.Null {
  156219. invalids++
  156220. }
  156221. default:
  156222. panic("unknown field " + strconv.Quote(field.Name))
  156223. }
  156224. }
  156225. out.Dispatch()
  156226. if invalids > 0 {
  156227. return graphql.Null
  156228. }
  156229. return out
  156230. }
  156231. var subscriptionDeliveryMethodLocalDeliveryOptionImplementors = []string{"SubscriptionDeliveryMethodLocalDeliveryOption"}
  156232. func (ec *executionContext) _SubscriptionDeliveryMethodLocalDeliveryOption(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionDeliveryMethodLocalDeliveryOption) graphql.Marshaler {
  156233. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionDeliveryMethodLocalDeliveryOptionImplementors)
  156234. out := graphql.NewFieldSet(fields)
  156235. var invalids uint32
  156236. for i, field := range fields {
  156237. switch field.Name {
  156238. case "__typename":
  156239. out.Values[i] = graphql.MarshalString("SubscriptionDeliveryMethodLocalDeliveryOption")
  156240. case "code":
  156241. out.Values[i] = ec._SubscriptionDeliveryMethodLocalDeliveryOption_code(ctx, field, obj)
  156242. case "description":
  156243. out.Values[i] = ec._SubscriptionDeliveryMethodLocalDeliveryOption_description(ctx, field, obj)
  156244. case "instructions":
  156245. out.Values[i] = ec._SubscriptionDeliveryMethodLocalDeliveryOption_instructions(ctx, field, obj)
  156246. case "phone":
  156247. out.Values[i] = ec._SubscriptionDeliveryMethodLocalDeliveryOption_phone(ctx, field, obj)
  156248. if out.Values[i] == graphql.Null {
  156249. invalids++
  156250. }
  156251. case "presentmentTitle":
  156252. out.Values[i] = ec._SubscriptionDeliveryMethodLocalDeliveryOption_presentmentTitle(ctx, field, obj)
  156253. case "title":
  156254. out.Values[i] = ec._SubscriptionDeliveryMethodLocalDeliveryOption_title(ctx, field, obj)
  156255. default:
  156256. panic("unknown field " + strconv.Quote(field.Name))
  156257. }
  156258. }
  156259. out.Dispatch()
  156260. if invalids > 0 {
  156261. return graphql.Null
  156262. }
  156263. return out
  156264. }
  156265. var subscriptionDeliveryMethodPickupImplementors = []string{"SubscriptionDeliveryMethodPickup", "SubscriptionDeliveryMethod"}
  156266. func (ec *executionContext) _SubscriptionDeliveryMethodPickup(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionDeliveryMethodPickup) graphql.Marshaler {
  156267. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionDeliveryMethodPickupImplementors)
  156268. out := graphql.NewFieldSet(fields)
  156269. var invalids uint32
  156270. for i, field := range fields {
  156271. switch field.Name {
  156272. case "__typename":
  156273. out.Values[i] = graphql.MarshalString("SubscriptionDeliveryMethodPickup")
  156274. case "pickupOption":
  156275. out.Values[i] = ec._SubscriptionDeliveryMethodPickup_pickupOption(ctx, field, obj)
  156276. if out.Values[i] == graphql.Null {
  156277. invalids++
  156278. }
  156279. default:
  156280. panic("unknown field " + strconv.Quote(field.Name))
  156281. }
  156282. }
  156283. out.Dispatch()
  156284. if invalids > 0 {
  156285. return graphql.Null
  156286. }
  156287. return out
  156288. }
  156289. var subscriptionDeliveryMethodPickupOptionImplementors = []string{"SubscriptionDeliveryMethodPickupOption"}
  156290. func (ec *executionContext) _SubscriptionDeliveryMethodPickupOption(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionDeliveryMethodPickupOption) graphql.Marshaler {
  156291. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionDeliveryMethodPickupOptionImplementors)
  156292. out := graphql.NewFieldSet(fields)
  156293. var invalids uint32
  156294. for i, field := range fields {
  156295. switch field.Name {
  156296. case "__typename":
  156297. out.Values[i] = graphql.MarshalString("SubscriptionDeliveryMethodPickupOption")
  156298. case "code":
  156299. out.Values[i] = ec._SubscriptionDeliveryMethodPickupOption_code(ctx, field, obj)
  156300. case "description":
  156301. out.Values[i] = ec._SubscriptionDeliveryMethodPickupOption_description(ctx, field, obj)
  156302. case "location":
  156303. out.Values[i] = ec._SubscriptionDeliveryMethodPickupOption_location(ctx, field, obj)
  156304. if out.Values[i] == graphql.Null {
  156305. invalids++
  156306. }
  156307. case "presentmentTitle":
  156308. out.Values[i] = ec._SubscriptionDeliveryMethodPickupOption_presentmentTitle(ctx, field, obj)
  156309. case "title":
  156310. out.Values[i] = ec._SubscriptionDeliveryMethodPickupOption_title(ctx, field, obj)
  156311. default:
  156312. panic("unknown field " + strconv.Quote(field.Name))
  156313. }
  156314. }
  156315. out.Dispatch()
  156316. if invalids > 0 {
  156317. return graphql.Null
  156318. }
  156319. return out
  156320. }
  156321. var subscriptionDeliveryMethodShippingImplementors = []string{"SubscriptionDeliveryMethodShipping", "SubscriptionDeliveryMethod"}
  156322. func (ec *executionContext) _SubscriptionDeliveryMethodShipping(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionDeliveryMethodShipping) graphql.Marshaler {
  156323. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionDeliveryMethodShippingImplementors)
  156324. out := graphql.NewFieldSet(fields)
  156325. var invalids uint32
  156326. for i, field := range fields {
  156327. switch field.Name {
  156328. case "__typename":
  156329. out.Values[i] = graphql.MarshalString("SubscriptionDeliveryMethodShipping")
  156330. case "address":
  156331. out.Values[i] = ec._SubscriptionDeliveryMethodShipping_address(ctx, field, obj)
  156332. if out.Values[i] == graphql.Null {
  156333. invalids++
  156334. }
  156335. case "shippingOption":
  156336. out.Values[i] = ec._SubscriptionDeliveryMethodShipping_shippingOption(ctx, field, obj)
  156337. if out.Values[i] == graphql.Null {
  156338. invalids++
  156339. }
  156340. default:
  156341. panic("unknown field " + strconv.Quote(field.Name))
  156342. }
  156343. }
  156344. out.Dispatch()
  156345. if invalids > 0 {
  156346. return graphql.Null
  156347. }
  156348. return out
  156349. }
  156350. var subscriptionDeliveryMethodShippingOptionImplementors = []string{"SubscriptionDeliveryMethodShippingOption"}
  156351. func (ec *executionContext) _SubscriptionDeliveryMethodShippingOption(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionDeliveryMethodShippingOption) graphql.Marshaler {
  156352. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionDeliveryMethodShippingOptionImplementors)
  156353. out := graphql.NewFieldSet(fields)
  156354. var invalids uint32
  156355. for i, field := range fields {
  156356. switch field.Name {
  156357. case "__typename":
  156358. out.Values[i] = graphql.MarshalString("SubscriptionDeliveryMethodShippingOption")
  156359. case "carrierService":
  156360. out.Values[i] = ec._SubscriptionDeliveryMethodShippingOption_carrierService(ctx, field, obj)
  156361. case "code":
  156362. out.Values[i] = ec._SubscriptionDeliveryMethodShippingOption_code(ctx, field, obj)
  156363. case "description":
  156364. out.Values[i] = ec._SubscriptionDeliveryMethodShippingOption_description(ctx, field, obj)
  156365. case "presentmentTitle":
  156366. out.Values[i] = ec._SubscriptionDeliveryMethodShippingOption_presentmentTitle(ctx, field, obj)
  156367. case "title":
  156368. out.Values[i] = ec._SubscriptionDeliveryMethodShippingOption_title(ctx, field, obj)
  156369. default:
  156370. panic("unknown field " + strconv.Quote(field.Name))
  156371. }
  156372. }
  156373. out.Dispatch()
  156374. if invalids > 0 {
  156375. return graphql.Null
  156376. }
  156377. return out
  156378. }
  156379. var subscriptionDeliveryPolicyImplementors = []string{"SubscriptionDeliveryPolicy"}
  156380. func (ec *executionContext) _SubscriptionDeliveryPolicy(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionDeliveryPolicy) graphql.Marshaler {
  156381. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionDeliveryPolicyImplementors)
  156382. out := graphql.NewFieldSet(fields)
  156383. var invalids uint32
  156384. for i, field := range fields {
  156385. switch field.Name {
  156386. case "__typename":
  156387. out.Values[i] = graphql.MarshalString("SubscriptionDeliveryPolicy")
  156388. case "anchors":
  156389. out.Values[i] = ec._SubscriptionDeliveryPolicy_anchors(ctx, field, obj)
  156390. if out.Values[i] == graphql.Null {
  156391. invalids++
  156392. }
  156393. case "interval":
  156394. out.Values[i] = ec._SubscriptionDeliveryPolicy_interval(ctx, field, obj)
  156395. if out.Values[i] == graphql.Null {
  156396. invalids++
  156397. }
  156398. case "intervalCount":
  156399. out.Values[i] = ec._SubscriptionDeliveryPolicy_intervalCount(ctx, field, obj)
  156400. if out.Values[i] == graphql.Null {
  156401. invalids++
  156402. }
  156403. default:
  156404. panic("unknown field " + strconv.Quote(field.Name))
  156405. }
  156406. }
  156407. out.Dispatch()
  156408. if invalids > 0 {
  156409. return graphql.Null
  156410. }
  156411. return out
  156412. }
  156413. var subscriptionDiscountAllocationImplementors = []string{"SubscriptionDiscountAllocation"}
  156414. func (ec *executionContext) _SubscriptionDiscountAllocation(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionDiscountAllocation) graphql.Marshaler {
  156415. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionDiscountAllocationImplementors)
  156416. out := graphql.NewFieldSet(fields)
  156417. var invalids uint32
  156418. for i, field := range fields {
  156419. switch field.Name {
  156420. case "__typename":
  156421. out.Values[i] = graphql.MarshalString("SubscriptionDiscountAllocation")
  156422. case "amount":
  156423. out.Values[i] = ec._SubscriptionDiscountAllocation_amount(ctx, field, obj)
  156424. if out.Values[i] == graphql.Null {
  156425. invalids++
  156426. }
  156427. case "discount":
  156428. out.Values[i] = ec._SubscriptionDiscountAllocation_discount(ctx, field, obj)
  156429. if out.Values[i] == graphql.Null {
  156430. invalids++
  156431. }
  156432. default:
  156433. panic("unknown field " + strconv.Quote(field.Name))
  156434. }
  156435. }
  156436. out.Dispatch()
  156437. if invalids > 0 {
  156438. return graphql.Null
  156439. }
  156440. return out
  156441. }
  156442. var subscriptionDiscountEntitledLinesImplementors = []string{"SubscriptionDiscountEntitledLines"}
  156443. func (ec *executionContext) _SubscriptionDiscountEntitledLines(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionDiscountEntitledLines) graphql.Marshaler {
  156444. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionDiscountEntitledLinesImplementors)
  156445. out := graphql.NewFieldSet(fields)
  156446. var invalids uint32
  156447. for i, field := range fields {
  156448. switch field.Name {
  156449. case "__typename":
  156450. out.Values[i] = graphql.MarshalString("SubscriptionDiscountEntitledLines")
  156451. case "all":
  156452. out.Values[i] = ec._SubscriptionDiscountEntitledLines_all(ctx, field, obj)
  156453. if out.Values[i] == graphql.Null {
  156454. invalids++
  156455. }
  156456. case "lines":
  156457. out.Values[i] = ec._SubscriptionDiscountEntitledLines_lines(ctx, field, obj)
  156458. if out.Values[i] == graphql.Null {
  156459. invalids++
  156460. }
  156461. default:
  156462. panic("unknown field " + strconv.Quote(field.Name))
  156463. }
  156464. }
  156465. out.Dispatch()
  156466. if invalids > 0 {
  156467. return graphql.Null
  156468. }
  156469. return out
  156470. }
  156471. var subscriptionDiscountFixedAmountValueImplementors = []string{"SubscriptionDiscountFixedAmountValue", "SubscriptionDiscountValue"}
  156472. func (ec *executionContext) _SubscriptionDiscountFixedAmountValue(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionDiscountFixedAmountValue) graphql.Marshaler {
  156473. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionDiscountFixedAmountValueImplementors)
  156474. out := graphql.NewFieldSet(fields)
  156475. var invalids uint32
  156476. for i, field := range fields {
  156477. switch field.Name {
  156478. case "__typename":
  156479. out.Values[i] = graphql.MarshalString("SubscriptionDiscountFixedAmountValue")
  156480. case "amount":
  156481. out.Values[i] = ec._SubscriptionDiscountFixedAmountValue_amount(ctx, field, obj)
  156482. if out.Values[i] == graphql.Null {
  156483. invalids++
  156484. }
  156485. case "appliesOnEachItem":
  156486. out.Values[i] = ec._SubscriptionDiscountFixedAmountValue_appliesOnEachItem(ctx, field, obj)
  156487. if out.Values[i] == graphql.Null {
  156488. invalids++
  156489. }
  156490. default:
  156491. panic("unknown field " + strconv.Quote(field.Name))
  156492. }
  156493. }
  156494. out.Dispatch()
  156495. if invalids > 0 {
  156496. return graphql.Null
  156497. }
  156498. return out
  156499. }
  156500. var subscriptionDiscountPercentageValueImplementors = []string{"SubscriptionDiscountPercentageValue", "SubscriptionDiscountValue"}
  156501. func (ec *executionContext) _SubscriptionDiscountPercentageValue(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionDiscountPercentageValue) graphql.Marshaler {
  156502. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionDiscountPercentageValueImplementors)
  156503. out := graphql.NewFieldSet(fields)
  156504. var invalids uint32
  156505. for i, field := range fields {
  156506. switch field.Name {
  156507. case "__typename":
  156508. out.Values[i] = graphql.MarshalString("SubscriptionDiscountPercentageValue")
  156509. case "percentage":
  156510. out.Values[i] = ec._SubscriptionDiscountPercentageValue_percentage(ctx, field, obj)
  156511. if out.Values[i] == graphql.Null {
  156512. invalids++
  156513. }
  156514. default:
  156515. panic("unknown field " + strconv.Quote(field.Name))
  156516. }
  156517. }
  156518. out.Dispatch()
  156519. if invalids > 0 {
  156520. return graphql.Null
  156521. }
  156522. return out
  156523. }
  156524. var subscriptionLineImplementors = []string{"SubscriptionLine"}
  156525. func (ec *executionContext) _SubscriptionLine(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionLine) graphql.Marshaler {
  156526. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionLineImplementors)
  156527. out := graphql.NewFieldSet(fields)
  156528. var invalids uint32
  156529. for i, field := range fields {
  156530. switch field.Name {
  156531. case "__typename":
  156532. out.Values[i] = graphql.MarshalString("SubscriptionLine")
  156533. case "currentPrice":
  156534. out.Values[i] = ec._SubscriptionLine_currentPrice(ctx, field, obj)
  156535. if out.Values[i] == graphql.Null {
  156536. invalids++
  156537. }
  156538. case "customAttributes":
  156539. out.Values[i] = ec._SubscriptionLine_customAttributes(ctx, field, obj)
  156540. if out.Values[i] == graphql.Null {
  156541. invalids++
  156542. }
  156543. case "discountAllocations":
  156544. out.Values[i] = ec._SubscriptionLine_discountAllocations(ctx, field, obj)
  156545. if out.Values[i] == graphql.Null {
  156546. invalids++
  156547. }
  156548. case "id":
  156549. out.Values[i] = ec._SubscriptionLine_id(ctx, field, obj)
  156550. if out.Values[i] == graphql.Null {
  156551. invalids++
  156552. }
  156553. case "lineDiscountedPrice":
  156554. out.Values[i] = ec._SubscriptionLine_lineDiscountedPrice(ctx, field, obj)
  156555. if out.Values[i] == graphql.Null {
  156556. invalids++
  156557. }
  156558. case "pricingPolicy":
  156559. out.Values[i] = ec._SubscriptionLine_pricingPolicy(ctx, field, obj)
  156560. case "productId":
  156561. out.Values[i] = ec._SubscriptionLine_productId(ctx, field, obj)
  156562. case "quantity":
  156563. out.Values[i] = ec._SubscriptionLine_quantity(ctx, field, obj)
  156564. if out.Values[i] == graphql.Null {
  156565. invalids++
  156566. }
  156567. case "requiresShipping":
  156568. out.Values[i] = ec._SubscriptionLine_requiresShipping(ctx, field, obj)
  156569. if out.Values[i] == graphql.Null {
  156570. invalids++
  156571. }
  156572. case "sellingPlanId":
  156573. out.Values[i] = ec._SubscriptionLine_sellingPlanId(ctx, field, obj)
  156574. case "sellingPlanName":
  156575. out.Values[i] = ec._SubscriptionLine_sellingPlanName(ctx, field, obj)
  156576. case "sku":
  156577. out.Values[i] = ec._SubscriptionLine_sku(ctx, field, obj)
  156578. case "taxable":
  156579. out.Values[i] = ec._SubscriptionLine_taxable(ctx, field, obj)
  156580. if out.Values[i] == graphql.Null {
  156581. invalids++
  156582. }
  156583. case "title":
  156584. out.Values[i] = ec._SubscriptionLine_title(ctx, field, obj)
  156585. if out.Values[i] == graphql.Null {
  156586. invalids++
  156587. }
  156588. case "variantId":
  156589. out.Values[i] = ec._SubscriptionLine_variantId(ctx, field, obj)
  156590. case "variantImage":
  156591. out.Values[i] = ec._SubscriptionLine_variantImage(ctx, field, obj)
  156592. case "variantTitle":
  156593. out.Values[i] = ec._SubscriptionLine_variantTitle(ctx, field, obj)
  156594. default:
  156595. panic("unknown field " + strconv.Quote(field.Name))
  156596. }
  156597. }
  156598. out.Dispatch()
  156599. if invalids > 0 {
  156600. return graphql.Null
  156601. }
  156602. return out
  156603. }
  156604. var subscriptionLineConnectionImplementors = []string{"SubscriptionLineConnection"}
  156605. func (ec *executionContext) _SubscriptionLineConnection(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionLineConnection) graphql.Marshaler {
  156606. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionLineConnectionImplementors)
  156607. out := graphql.NewFieldSet(fields)
  156608. var invalids uint32
  156609. for i, field := range fields {
  156610. switch field.Name {
  156611. case "__typename":
  156612. out.Values[i] = graphql.MarshalString("SubscriptionLineConnection")
  156613. case "edges":
  156614. out.Values[i] = ec._SubscriptionLineConnection_edges(ctx, field, obj)
  156615. if out.Values[i] == graphql.Null {
  156616. invalids++
  156617. }
  156618. case "nodes":
  156619. out.Values[i] = ec._SubscriptionLineConnection_nodes(ctx, field, obj)
  156620. if out.Values[i] == graphql.Null {
  156621. invalids++
  156622. }
  156623. case "pageInfo":
  156624. out.Values[i] = ec._SubscriptionLineConnection_pageInfo(ctx, field, obj)
  156625. if out.Values[i] == graphql.Null {
  156626. invalids++
  156627. }
  156628. default:
  156629. panic("unknown field " + strconv.Quote(field.Name))
  156630. }
  156631. }
  156632. out.Dispatch()
  156633. if invalids > 0 {
  156634. return graphql.Null
  156635. }
  156636. return out
  156637. }
  156638. var subscriptionLineEdgeImplementors = []string{"SubscriptionLineEdge"}
  156639. func (ec *executionContext) _SubscriptionLineEdge(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionLineEdge) graphql.Marshaler {
  156640. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionLineEdgeImplementors)
  156641. out := graphql.NewFieldSet(fields)
  156642. var invalids uint32
  156643. for i, field := range fields {
  156644. switch field.Name {
  156645. case "__typename":
  156646. out.Values[i] = graphql.MarshalString("SubscriptionLineEdge")
  156647. case "cursor":
  156648. out.Values[i] = ec._SubscriptionLineEdge_cursor(ctx, field, obj)
  156649. if out.Values[i] == graphql.Null {
  156650. invalids++
  156651. }
  156652. case "node":
  156653. out.Values[i] = ec._SubscriptionLineEdge_node(ctx, field, obj)
  156654. if out.Values[i] == graphql.Null {
  156655. invalids++
  156656. }
  156657. default:
  156658. panic("unknown field " + strconv.Quote(field.Name))
  156659. }
  156660. }
  156661. out.Dispatch()
  156662. if invalids > 0 {
  156663. return graphql.Null
  156664. }
  156665. return out
  156666. }
  156667. var subscriptionMailingAddressImplementors = []string{"SubscriptionMailingAddress"}
  156668. func (ec *executionContext) _SubscriptionMailingAddress(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionMailingAddress) graphql.Marshaler {
  156669. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionMailingAddressImplementors)
  156670. out := graphql.NewFieldSet(fields)
  156671. var invalids uint32
  156672. for i, field := range fields {
  156673. switch field.Name {
  156674. case "__typename":
  156675. out.Values[i] = graphql.MarshalString("SubscriptionMailingAddress")
  156676. case "address1":
  156677. out.Values[i] = ec._SubscriptionMailingAddress_address1(ctx, field, obj)
  156678. case "address2":
  156679. out.Values[i] = ec._SubscriptionMailingAddress_address2(ctx, field, obj)
  156680. case "city":
  156681. out.Values[i] = ec._SubscriptionMailingAddress_city(ctx, field, obj)
  156682. case "company":
  156683. out.Values[i] = ec._SubscriptionMailingAddress_company(ctx, field, obj)
  156684. case "country":
  156685. out.Values[i] = ec._SubscriptionMailingAddress_country(ctx, field, obj)
  156686. case "countryCode":
  156687. out.Values[i] = ec._SubscriptionMailingAddress_countryCode(ctx, field, obj)
  156688. case "firstName":
  156689. out.Values[i] = ec._SubscriptionMailingAddress_firstName(ctx, field, obj)
  156690. case "lastName":
  156691. out.Values[i] = ec._SubscriptionMailingAddress_lastName(ctx, field, obj)
  156692. case "name":
  156693. out.Values[i] = ec._SubscriptionMailingAddress_name(ctx, field, obj)
  156694. case "phone":
  156695. out.Values[i] = ec._SubscriptionMailingAddress_phone(ctx, field, obj)
  156696. case "province":
  156697. out.Values[i] = ec._SubscriptionMailingAddress_province(ctx, field, obj)
  156698. case "provinceCode":
  156699. out.Values[i] = ec._SubscriptionMailingAddress_provinceCode(ctx, field, obj)
  156700. case "zip":
  156701. out.Values[i] = ec._SubscriptionMailingAddress_zip(ctx, field, obj)
  156702. default:
  156703. panic("unknown field " + strconv.Quote(field.Name))
  156704. }
  156705. }
  156706. out.Dispatch()
  156707. if invalids > 0 {
  156708. return graphql.Null
  156709. }
  156710. return out
  156711. }
  156712. var subscriptionManualDiscountImplementors = []string{"SubscriptionManualDiscount", "SubscriptionDiscount"}
  156713. func (ec *executionContext) _SubscriptionManualDiscount(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionManualDiscount) graphql.Marshaler {
  156714. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionManualDiscountImplementors)
  156715. out := graphql.NewFieldSet(fields)
  156716. var invalids uint32
  156717. for i, field := range fields {
  156718. switch field.Name {
  156719. case "__typename":
  156720. out.Values[i] = graphql.MarshalString("SubscriptionManualDiscount")
  156721. case "entitledLines":
  156722. out.Values[i] = ec._SubscriptionManualDiscount_entitledLines(ctx, field, obj)
  156723. if out.Values[i] == graphql.Null {
  156724. invalids++
  156725. }
  156726. case "id":
  156727. out.Values[i] = ec._SubscriptionManualDiscount_id(ctx, field, obj)
  156728. if out.Values[i] == graphql.Null {
  156729. invalids++
  156730. }
  156731. case "recurringCycleLimit":
  156732. out.Values[i] = ec._SubscriptionManualDiscount_recurringCycleLimit(ctx, field, obj)
  156733. case "rejectionReason":
  156734. out.Values[i] = ec._SubscriptionManualDiscount_rejectionReason(ctx, field, obj)
  156735. case "targetType":
  156736. out.Values[i] = ec._SubscriptionManualDiscount_targetType(ctx, field, obj)
  156737. if out.Values[i] == graphql.Null {
  156738. invalids++
  156739. }
  156740. case "title":
  156741. out.Values[i] = ec._SubscriptionManualDiscount_title(ctx, field, obj)
  156742. case "type":
  156743. out.Values[i] = ec._SubscriptionManualDiscount_type(ctx, field, obj)
  156744. if out.Values[i] == graphql.Null {
  156745. invalids++
  156746. }
  156747. case "usageCount":
  156748. out.Values[i] = ec._SubscriptionManualDiscount_usageCount(ctx, field, obj)
  156749. if out.Values[i] == graphql.Null {
  156750. invalids++
  156751. }
  156752. case "value":
  156753. out.Values[i] = ec._SubscriptionManualDiscount_value(ctx, field, obj)
  156754. if out.Values[i] == graphql.Null {
  156755. invalids++
  156756. }
  156757. default:
  156758. panic("unknown field " + strconv.Quote(field.Name))
  156759. }
  156760. }
  156761. out.Dispatch()
  156762. if invalids > 0 {
  156763. return graphql.Null
  156764. }
  156765. return out
  156766. }
  156767. var subscriptionManualDiscountConnectionImplementors = []string{"SubscriptionManualDiscountConnection"}
  156768. func (ec *executionContext) _SubscriptionManualDiscountConnection(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionManualDiscountConnection) graphql.Marshaler {
  156769. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionManualDiscountConnectionImplementors)
  156770. out := graphql.NewFieldSet(fields)
  156771. var invalids uint32
  156772. for i, field := range fields {
  156773. switch field.Name {
  156774. case "__typename":
  156775. out.Values[i] = graphql.MarshalString("SubscriptionManualDiscountConnection")
  156776. case "edges":
  156777. out.Values[i] = ec._SubscriptionManualDiscountConnection_edges(ctx, field, obj)
  156778. if out.Values[i] == graphql.Null {
  156779. invalids++
  156780. }
  156781. case "nodes":
  156782. out.Values[i] = ec._SubscriptionManualDiscountConnection_nodes(ctx, field, obj)
  156783. if out.Values[i] == graphql.Null {
  156784. invalids++
  156785. }
  156786. case "pageInfo":
  156787. out.Values[i] = ec._SubscriptionManualDiscountConnection_pageInfo(ctx, field, obj)
  156788. if out.Values[i] == graphql.Null {
  156789. invalids++
  156790. }
  156791. default:
  156792. panic("unknown field " + strconv.Quote(field.Name))
  156793. }
  156794. }
  156795. out.Dispatch()
  156796. if invalids > 0 {
  156797. return graphql.Null
  156798. }
  156799. return out
  156800. }
  156801. var subscriptionManualDiscountEdgeImplementors = []string{"SubscriptionManualDiscountEdge"}
  156802. func (ec *executionContext) _SubscriptionManualDiscountEdge(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionManualDiscountEdge) graphql.Marshaler {
  156803. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionManualDiscountEdgeImplementors)
  156804. out := graphql.NewFieldSet(fields)
  156805. var invalids uint32
  156806. for i, field := range fields {
  156807. switch field.Name {
  156808. case "__typename":
  156809. out.Values[i] = graphql.MarshalString("SubscriptionManualDiscountEdge")
  156810. case "cursor":
  156811. out.Values[i] = ec._SubscriptionManualDiscountEdge_cursor(ctx, field, obj)
  156812. if out.Values[i] == graphql.Null {
  156813. invalids++
  156814. }
  156815. case "node":
  156816. out.Values[i] = ec._SubscriptionManualDiscountEdge_node(ctx, field, obj)
  156817. if out.Values[i] == graphql.Null {
  156818. invalids++
  156819. }
  156820. default:
  156821. panic("unknown field " + strconv.Quote(field.Name))
  156822. }
  156823. }
  156824. out.Dispatch()
  156825. if invalids > 0 {
  156826. return graphql.Null
  156827. }
  156828. return out
  156829. }
  156830. var subscriptionPricingPolicyImplementors = []string{"SubscriptionPricingPolicy"}
  156831. func (ec *executionContext) _SubscriptionPricingPolicy(ctx context.Context, sel ast.SelectionSet, obj *SubscriptionPricingPolicy) graphql.Marshaler {
  156832. fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionPricingPolicyImplementors)
  156833. out := graphql.NewFieldSet(fields)
  156834. var invalids uint32
  156835. for i, field := range fields {
  156836. switch field.Name {
  156837. case "__typename":
  156838. out.Values[i] = graphql.MarshalString("SubscriptionPricingPolicy")
  156839. case "basePrice":
  156840. out.Values[i] = ec._SubscriptionPricingPolicy_basePrice(ctx, field, obj)
  156841. if out.Values[i] == graphql.Null {
  156842. invalids++
  156843. }
  156844. case "cycleDiscounts":
  156845. out.Values[i] = ec._SubscriptionPricingPolicy_cycleDiscounts(ctx, field, obj)
  156846. if out.Values[i] == graphql.Null {
  156847. invalids++
  156848. }
  156849. default:
  156850. panic("unknown field " + strconv.Quote(field.Name))
  156851. }
  156852. }
  156853. out.Dispatch()
  156854. if invalids > 0 {
  156855. return graphql.Null
  156856. }
  156857. return out
  156858. }
  156859. var suggestedOrderTransactionImplementors = []string{"SuggestedOrderTransaction"}
  156860. func (ec *executionContext) _SuggestedOrderTransaction(ctx context.Context, sel ast.SelectionSet, obj *SuggestedOrderTransaction) graphql.Marshaler {
  156861. fields := graphql.CollectFields(ec.OperationContext, sel, suggestedOrderTransactionImplementors)
  156862. out := graphql.NewFieldSet(fields)
  156863. var invalids uint32
  156864. for i, field := range fields {
  156865. switch field.Name {
  156866. case "__typename":
  156867. out.Values[i] = graphql.MarshalString("SuggestedOrderTransaction")
  156868. case "accountNumber":
  156869. out.Values[i] = ec._SuggestedOrderTransaction_accountNumber(ctx, field, obj)
  156870. case "amountSet":
  156871. out.Values[i] = ec._SuggestedOrderTransaction_amountSet(ctx, field, obj)
  156872. if out.Values[i] == graphql.Null {
  156873. invalids++
  156874. }
  156875. case "formattedGateway":
  156876. out.Values[i] = ec._SuggestedOrderTransaction_formattedGateway(ctx, field, obj)
  156877. case "gateway":
  156878. out.Values[i] = ec._SuggestedOrderTransaction_gateway(ctx, field, obj)
  156879. case "kind":
  156880. out.Values[i] = ec._SuggestedOrderTransaction_kind(ctx, field, obj)
  156881. if out.Values[i] == graphql.Null {
  156882. invalids++
  156883. }
  156884. case "maximumRefundableSet":
  156885. out.Values[i] = ec._SuggestedOrderTransaction_maximumRefundableSet(ctx, field, obj)
  156886. case "parentTransaction":
  156887. out.Values[i] = ec._SuggestedOrderTransaction_parentTransaction(ctx, field, obj)
  156888. default:
  156889. panic("unknown field " + strconv.Quote(field.Name))
  156890. }
  156891. }
  156892. out.Dispatch()
  156893. if invalids > 0 {
  156894. return graphql.Null
  156895. }
  156896. return out
  156897. }
  156898. var suggestedRefundImplementors = []string{"SuggestedRefund"}
  156899. func (ec *executionContext) _SuggestedRefund(ctx context.Context, sel ast.SelectionSet, obj *SuggestedRefund) graphql.Marshaler {
  156900. fields := graphql.CollectFields(ec.OperationContext, sel, suggestedRefundImplementors)
  156901. out := graphql.NewFieldSet(fields)
  156902. var invalids uint32
  156903. for i, field := range fields {
  156904. switch field.Name {
  156905. case "__typename":
  156906. out.Values[i] = graphql.MarshalString("SuggestedRefund")
  156907. case "amountSet":
  156908. out.Values[i] = ec._SuggestedRefund_amountSet(ctx, field, obj)
  156909. if out.Values[i] == graphql.Null {
  156910. invalids++
  156911. }
  156912. case "discountedSubtotalSet":
  156913. out.Values[i] = ec._SuggestedRefund_discountedSubtotalSet(ctx, field, obj)
  156914. if out.Values[i] == graphql.Null {
  156915. invalids++
  156916. }
  156917. case "maximumRefundableSet":
  156918. out.Values[i] = ec._SuggestedRefund_maximumRefundableSet(ctx, field, obj)
  156919. if out.Values[i] == graphql.Null {
  156920. invalids++
  156921. }
  156922. case "refundDuties":
  156923. out.Values[i] = ec._SuggestedRefund_refundDuties(ctx, field, obj)
  156924. if out.Values[i] == graphql.Null {
  156925. invalids++
  156926. }
  156927. case "refundLineItems":
  156928. out.Values[i] = ec._SuggestedRefund_refundLineItems(ctx, field, obj)
  156929. if out.Values[i] == graphql.Null {
  156930. invalids++
  156931. }
  156932. case "shipping":
  156933. out.Values[i] = ec._SuggestedRefund_shipping(ctx, field, obj)
  156934. if out.Values[i] == graphql.Null {
  156935. invalids++
  156936. }
  156937. case "subtotalSet":
  156938. out.Values[i] = ec._SuggestedRefund_subtotalSet(ctx, field, obj)
  156939. if out.Values[i] == graphql.Null {
  156940. invalids++
  156941. }
  156942. case "suggestedTransactions":
  156943. out.Values[i] = ec._SuggestedRefund_suggestedTransactions(ctx, field, obj)
  156944. if out.Values[i] == graphql.Null {
  156945. invalids++
  156946. }
  156947. case "totalCartDiscountAmountSet":
  156948. out.Values[i] = ec._SuggestedRefund_totalCartDiscountAmountSet(ctx, field, obj)
  156949. if out.Values[i] == graphql.Null {
  156950. invalids++
  156951. }
  156952. case "totalDutiesSet":
  156953. out.Values[i] = ec._SuggestedRefund_totalDutiesSet(ctx, field, obj)
  156954. if out.Values[i] == graphql.Null {
  156955. invalids++
  156956. }
  156957. case "totalTaxSet":
  156958. out.Values[i] = ec._SuggestedRefund_totalTaxSet(ctx, field, obj)
  156959. if out.Values[i] == graphql.Null {
  156960. invalids++
  156961. }
  156962. default:
  156963. panic("unknown field " + strconv.Quote(field.Name))
  156964. }
  156965. }
  156966. out.Dispatch()
  156967. if invalids > 0 {
  156968. return graphql.Null
  156969. }
  156970. return out
  156971. }
  156972. var taxLineImplementors = []string{"TaxLine"}
  156973. func (ec *executionContext) _TaxLine(ctx context.Context, sel ast.SelectionSet, obj *TaxLine) graphql.Marshaler {
  156974. fields := graphql.CollectFields(ec.OperationContext, sel, taxLineImplementors)
  156975. out := graphql.NewFieldSet(fields)
  156976. var invalids uint32
  156977. for i, field := range fields {
  156978. switch field.Name {
  156979. case "__typename":
  156980. out.Values[i] = graphql.MarshalString("TaxLine")
  156981. case "channelLiable":
  156982. out.Values[i] = ec._TaxLine_channelLiable(ctx, field, obj)
  156983. case "priceSet":
  156984. out.Values[i] = ec._TaxLine_priceSet(ctx, field, obj)
  156985. if out.Values[i] == graphql.Null {
  156986. invalids++
  156987. }
  156988. case "rate":
  156989. out.Values[i] = ec._TaxLine_rate(ctx, field, obj)
  156990. case "ratePercentage":
  156991. out.Values[i] = ec._TaxLine_ratePercentage(ctx, field, obj)
  156992. case "title":
  156993. out.Values[i] = ec._TaxLine_title(ctx, field, obj)
  156994. if out.Values[i] == graphql.Null {
  156995. invalids++
  156996. }
  156997. default:
  156998. panic("unknown field " + strconv.Quote(field.Name))
  156999. }
  157000. }
  157001. out.Dispatch()
  157002. if invalids > 0 {
  157003. return graphql.Null
  157004. }
  157005. return out
  157006. }
  157007. var transactionFeeImplementors = []string{"TransactionFee", "Node"}
  157008. func (ec *executionContext) _TransactionFee(ctx context.Context, sel ast.SelectionSet, obj *TransactionFee) graphql.Marshaler {
  157009. fields := graphql.CollectFields(ec.OperationContext, sel, transactionFeeImplementors)
  157010. out := graphql.NewFieldSet(fields)
  157011. var invalids uint32
  157012. for i, field := range fields {
  157013. switch field.Name {
  157014. case "__typename":
  157015. out.Values[i] = graphql.MarshalString("TransactionFee")
  157016. case "amount":
  157017. out.Values[i] = ec._TransactionFee_amount(ctx, field, obj)
  157018. if out.Values[i] == graphql.Null {
  157019. invalids++
  157020. }
  157021. case "flatFee":
  157022. out.Values[i] = ec._TransactionFee_flatFee(ctx, field, obj)
  157023. if out.Values[i] == graphql.Null {
  157024. invalids++
  157025. }
  157026. case "flatFeeName":
  157027. out.Values[i] = ec._TransactionFee_flatFeeName(ctx, field, obj)
  157028. case "id":
  157029. out.Values[i] = ec._TransactionFee_id(ctx, field, obj)
  157030. if out.Values[i] == graphql.Null {
  157031. invalids++
  157032. }
  157033. case "rate":
  157034. out.Values[i] = ec._TransactionFee_rate(ctx, field, obj)
  157035. if out.Values[i] == graphql.Null {
  157036. invalids++
  157037. }
  157038. case "rateName":
  157039. out.Values[i] = ec._TransactionFee_rateName(ctx, field, obj)
  157040. case "taxAmount":
  157041. out.Values[i] = ec._TransactionFee_taxAmount(ctx, field, obj)
  157042. if out.Values[i] == graphql.Null {
  157043. invalids++
  157044. }
  157045. case "type":
  157046. out.Values[i] = ec._TransactionFee_type(ctx, field, obj)
  157047. if out.Values[i] == graphql.Null {
  157048. invalids++
  157049. }
  157050. default:
  157051. panic("unknown field " + strconv.Quote(field.Name))
  157052. }
  157053. }
  157054. out.Dispatch()
  157055. if invalids > 0 {
  157056. return graphql.Null
  157057. }
  157058. return out
  157059. }
  157060. var typedAttributeImplementors = []string{"TypedAttribute"}
  157061. func (ec *executionContext) _TypedAttribute(ctx context.Context, sel ast.SelectionSet, obj *TypedAttribute) graphql.Marshaler {
  157062. fields := graphql.CollectFields(ec.OperationContext, sel, typedAttributeImplementors)
  157063. out := graphql.NewFieldSet(fields)
  157064. var invalids uint32
  157065. for i, field := range fields {
  157066. switch field.Name {
  157067. case "__typename":
  157068. out.Values[i] = graphql.MarshalString("TypedAttribute")
  157069. case "key":
  157070. out.Values[i] = ec._TypedAttribute_key(ctx, field, obj)
  157071. if out.Values[i] == graphql.Null {
  157072. invalids++
  157073. }
  157074. case "value":
  157075. out.Values[i] = ec._TypedAttribute_value(ctx, field, obj)
  157076. if out.Values[i] == graphql.Null {
  157077. invalids++
  157078. }
  157079. default:
  157080. panic("unknown field " + strconv.Quote(field.Name))
  157081. }
  157082. }
  157083. out.Dispatch()
  157084. if invalids > 0 {
  157085. return graphql.Null
  157086. }
  157087. return out
  157088. }
  157089. var uTMParametersImplementors = []string{"UTMParameters"}
  157090. func (ec *executionContext) _UTMParameters(ctx context.Context, sel ast.SelectionSet, obj *UTMParameters) graphql.Marshaler {
  157091. fields := graphql.CollectFields(ec.OperationContext, sel, uTMParametersImplementors)
  157092. out := graphql.NewFieldSet(fields)
  157093. var invalids uint32
  157094. for i, field := range fields {
  157095. switch field.Name {
  157096. case "__typename":
  157097. out.Values[i] = graphql.MarshalString("UTMParameters")
  157098. case "campaign":
  157099. out.Values[i] = ec._UTMParameters_campaign(ctx, field, obj)
  157100. case "content":
  157101. out.Values[i] = ec._UTMParameters_content(ctx, field, obj)
  157102. case "medium":
  157103. out.Values[i] = ec._UTMParameters_medium(ctx, field, obj)
  157104. case "source":
  157105. out.Values[i] = ec._UTMParameters_source(ctx, field, obj)
  157106. case "term":
  157107. out.Values[i] = ec._UTMParameters_term(ctx, field, obj)
  157108. default:
  157109. panic("unknown field " + strconv.Quote(field.Name))
  157110. }
  157111. }
  157112. out.Dispatch()
  157113. if invalids > 0 {
  157114. return graphql.Null
  157115. }
  157116. return out
  157117. }
  157118. var userErrorImplementors = []string{"UserError", "DisplayableError"}
  157119. func (ec *executionContext) _UserError(ctx context.Context, sel ast.SelectionSet, obj *UserError) graphql.Marshaler {
  157120. fields := graphql.CollectFields(ec.OperationContext, sel, userErrorImplementors)
  157121. out := graphql.NewFieldSet(fields)
  157122. var invalids uint32
  157123. for i, field := range fields {
  157124. switch field.Name {
  157125. case "__typename":
  157126. out.Values[i] = graphql.MarshalString("UserError")
  157127. case "field":
  157128. out.Values[i] = ec._UserError_field(ctx, field, obj)
  157129. case "message":
  157130. out.Values[i] = ec._UserError_message(ctx, field, obj)
  157131. if out.Values[i] == graphql.Null {
  157132. invalids++
  157133. }
  157134. default:
  157135. panic("unknown field " + strconv.Quote(field.Name))
  157136. }
  157137. }
  157138. out.Dispatch()
  157139. if invalids > 0 {
  157140. return graphql.Null
  157141. }
  157142. return out
  157143. }
  157144. var vaultCreditCardImplementors = []string{"VaultCreditCard", "PaymentInstrument"}
  157145. func (ec *executionContext) _VaultCreditCard(ctx context.Context, sel ast.SelectionSet, obj *VaultCreditCard) graphql.Marshaler {
  157146. fields := graphql.CollectFields(ec.OperationContext, sel, vaultCreditCardImplementors)
  157147. out := graphql.NewFieldSet(fields)
  157148. var invalids uint32
  157149. for i, field := range fields {
  157150. switch field.Name {
  157151. case "__typename":
  157152. out.Values[i] = graphql.MarshalString("VaultCreditCard")
  157153. case "billingAddress":
  157154. out.Values[i] = ec._VaultCreditCard_billingAddress(ctx, field, obj)
  157155. case "brand":
  157156. out.Values[i] = ec._VaultCreditCard_brand(ctx, field, obj)
  157157. if out.Values[i] == graphql.Null {
  157158. invalids++
  157159. }
  157160. case "expired":
  157161. out.Values[i] = ec._VaultCreditCard_expired(ctx, field, obj)
  157162. if out.Values[i] == graphql.Null {
  157163. invalids++
  157164. }
  157165. case "expiryMonth":
  157166. out.Values[i] = ec._VaultCreditCard_expiryMonth(ctx, field, obj)
  157167. if out.Values[i] == graphql.Null {
  157168. invalids++
  157169. }
  157170. case "expiryYear":
  157171. out.Values[i] = ec._VaultCreditCard_expiryYear(ctx, field, obj)
  157172. if out.Values[i] == graphql.Null {
  157173. invalids++
  157174. }
  157175. case "lastDigits":
  157176. out.Values[i] = ec._VaultCreditCard_lastDigits(ctx, field, obj)
  157177. if out.Values[i] == graphql.Null {
  157178. invalids++
  157179. }
  157180. case "name":
  157181. out.Values[i] = ec._VaultCreditCard_name(ctx, field, obj)
  157182. if out.Values[i] == graphql.Null {
  157183. invalids++
  157184. }
  157185. default:
  157186. panic("unknown field " + strconv.Quote(field.Name))
  157187. }
  157188. }
  157189. out.Dispatch()
  157190. if invalids > 0 {
  157191. return graphql.Null
  157192. }
  157193. return out
  157194. }
  157195. var vaultPaypalBillingAgreementImplementors = []string{"VaultPaypalBillingAgreement", "PaymentInstrument"}
  157196. func (ec *executionContext) _VaultPaypalBillingAgreement(ctx context.Context, sel ast.SelectionSet, obj *VaultPaypalBillingAgreement) graphql.Marshaler {
  157197. fields := graphql.CollectFields(ec.OperationContext, sel, vaultPaypalBillingAgreementImplementors)
  157198. out := graphql.NewFieldSet(fields)
  157199. var invalids uint32
  157200. for i, field := range fields {
  157201. switch field.Name {
  157202. case "__typename":
  157203. out.Values[i] = graphql.MarshalString("VaultPaypalBillingAgreement")
  157204. case "inactive":
  157205. out.Values[i] = ec._VaultPaypalBillingAgreement_inactive(ctx, field, obj)
  157206. if out.Values[i] == graphql.Null {
  157207. invalids++
  157208. }
  157209. case "name":
  157210. out.Values[i] = ec._VaultPaypalBillingAgreement_name(ctx, field, obj)
  157211. if out.Values[i] == graphql.Null {
  157212. invalids++
  157213. }
  157214. case "paypalAccountEmail":
  157215. out.Values[i] = ec._VaultPaypalBillingAgreement_paypalAccountEmail(ctx, field, obj)
  157216. if out.Values[i] == graphql.Null {
  157217. invalids++
  157218. }
  157219. default:
  157220. panic("unknown field " + strconv.Quote(field.Name))
  157221. }
  157222. }
  157223. out.Dispatch()
  157224. if invalids > 0 {
  157225. return graphql.Null
  157226. }
  157227. return out
  157228. }
  157229. var videoImplementors = []string{"Video", "File", "Media", "Node", "MetafieldReference"}
  157230. func (ec *executionContext) _Video(ctx context.Context, sel ast.SelectionSet, obj *Video) graphql.Marshaler {
  157231. fields := graphql.CollectFields(ec.OperationContext, sel, videoImplementors)
  157232. out := graphql.NewFieldSet(fields)
  157233. var invalids uint32
  157234. for i, field := range fields {
  157235. switch field.Name {
  157236. case "__typename":
  157237. out.Values[i] = graphql.MarshalString("Video")
  157238. case "alt":
  157239. out.Values[i] = ec._Video_alt(ctx, field, obj)
  157240. case "createdAt":
  157241. out.Values[i] = ec._Video_createdAt(ctx, field, obj)
  157242. if out.Values[i] == graphql.Null {
  157243. invalids++
  157244. }
  157245. case "duration":
  157246. out.Values[i] = ec._Video_duration(ctx, field, obj)
  157247. case "fileErrors":
  157248. out.Values[i] = ec._Video_fileErrors(ctx, field, obj)
  157249. if out.Values[i] == graphql.Null {
  157250. invalids++
  157251. }
  157252. case "fileStatus":
  157253. out.Values[i] = ec._Video_fileStatus(ctx, field, obj)
  157254. if out.Values[i] == graphql.Null {
  157255. invalids++
  157256. }
  157257. case "filename":
  157258. out.Values[i] = ec._Video_filename(ctx, field, obj)
  157259. if out.Values[i] == graphql.Null {
  157260. invalids++
  157261. }
  157262. case "id":
  157263. out.Values[i] = ec._Video_id(ctx, field, obj)
  157264. if out.Values[i] == graphql.Null {
  157265. invalids++
  157266. }
  157267. case "mediaContentType":
  157268. out.Values[i] = ec._Video_mediaContentType(ctx, field, obj)
  157269. if out.Values[i] == graphql.Null {
  157270. invalids++
  157271. }
  157272. case "mediaErrors":
  157273. out.Values[i] = ec._Video_mediaErrors(ctx, field, obj)
  157274. if out.Values[i] == graphql.Null {
  157275. invalids++
  157276. }
  157277. case "mediaWarnings":
  157278. out.Values[i] = ec._Video_mediaWarnings(ctx, field, obj)
  157279. if out.Values[i] == graphql.Null {
  157280. invalids++
  157281. }
  157282. case "originalSource":
  157283. out.Values[i] = ec._Video_originalSource(ctx, field, obj)
  157284. case "preview":
  157285. out.Values[i] = ec._Video_preview(ctx, field, obj)
  157286. case "sources":
  157287. out.Values[i] = ec._Video_sources(ctx, field, obj)
  157288. if out.Values[i] == graphql.Null {
  157289. invalids++
  157290. }
  157291. case "status":
  157292. out.Values[i] = ec._Video_status(ctx, field, obj)
  157293. if out.Values[i] == graphql.Null {
  157294. invalids++
  157295. }
  157296. default:
  157297. panic("unknown field " + strconv.Quote(field.Name))
  157298. }
  157299. }
  157300. out.Dispatch()
  157301. if invalids > 0 {
  157302. return graphql.Null
  157303. }
  157304. return out
  157305. }
  157306. var videoSourceImplementors = []string{"VideoSource"}
  157307. func (ec *executionContext) _VideoSource(ctx context.Context, sel ast.SelectionSet, obj *VideoSource) graphql.Marshaler {
  157308. fields := graphql.CollectFields(ec.OperationContext, sel, videoSourceImplementors)
  157309. out := graphql.NewFieldSet(fields)
  157310. var invalids uint32
  157311. for i, field := range fields {
  157312. switch field.Name {
  157313. case "__typename":
  157314. out.Values[i] = graphql.MarshalString("VideoSource")
  157315. case "fileSize":
  157316. out.Values[i] = ec._VideoSource_fileSize(ctx, field, obj)
  157317. case "format":
  157318. out.Values[i] = ec._VideoSource_format(ctx, field, obj)
  157319. if out.Values[i] == graphql.Null {
  157320. invalids++
  157321. }
  157322. case "height":
  157323. out.Values[i] = ec._VideoSource_height(ctx, field, obj)
  157324. if out.Values[i] == graphql.Null {
  157325. invalids++
  157326. }
  157327. case "mimeType":
  157328. out.Values[i] = ec._VideoSource_mimeType(ctx, field, obj)
  157329. if out.Values[i] == graphql.Null {
  157330. invalids++
  157331. }
  157332. case "url":
  157333. out.Values[i] = ec._VideoSource_url(ctx, field, obj)
  157334. if out.Values[i] == graphql.Null {
  157335. invalids++
  157336. }
  157337. case "width":
  157338. out.Values[i] = ec._VideoSource_width(ctx, field, obj)
  157339. if out.Values[i] == graphql.Null {
  157340. invalids++
  157341. }
  157342. default:
  157343. panic("unknown field " + strconv.Quote(field.Name))
  157344. }
  157345. }
  157346. out.Dispatch()
  157347. if invalids > 0 {
  157348. return graphql.Null
  157349. }
  157350. return out
  157351. }
  157352. var weightImplementors = []string{"Weight", "DeliveryConditionCriteria"}
  157353. func (ec *executionContext) _Weight(ctx context.Context, sel ast.SelectionSet, obj *Weight) graphql.Marshaler {
  157354. fields := graphql.CollectFields(ec.OperationContext, sel, weightImplementors)
  157355. out := graphql.NewFieldSet(fields)
  157356. var invalids uint32
  157357. for i, field := range fields {
  157358. switch field.Name {
  157359. case "__typename":
  157360. out.Values[i] = graphql.MarshalString("Weight")
  157361. case "unit":
  157362. out.Values[i] = ec._Weight_unit(ctx, field, obj)
  157363. if out.Values[i] == graphql.Null {
  157364. invalids++
  157365. }
  157366. case "value":
  157367. out.Values[i] = ec._Weight_value(ctx, field, obj)
  157368. if out.Values[i] == graphql.Null {
  157369. invalids++
  157370. }
  157371. default:
  157372. panic("unknown field " + strconv.Quote(field.Name))
  157373. }
  157374. }
  157375. out.Dispatch()
  157376. if invalids > 0 {
  157377. return graphql.Null
  157378. }
  157379. return out
  157380. }
  157381. var _ServiceImplementors = []string{"_Service"}
  157382. func (ec *executionContext) __Service(ctx context.Context, sel ast.SelectionSet, obj *fedruntime.Service) graphql.Marshaler {
  157383. fields := graphql.CollectFields(ec.OperationContext, sel, _ServiceImplementors)
  157384. out := graphql.NewFieldSet(fields)
  157385. var invalids uint32
  157386. for i, field := range fields {
  157387. switch field.Name {
  157388. case "__typename":
  157389. out.Values[i] = graphql.MarshalString("_Service")
  157390. case "sdl":
  157391. out.Values[i] = ec.__Service_sdl(ctx, field, obj)
  157392. default:
  157393. panic("unknown field " + strconv.Quote(field.Name))
  157394. }
  157395. }
  157396. out.Dispatch()
  157397. if invalids > 0 {
  157398. return graphql.Null
  157399. }
  157400. return out
  157401. }
  157402. var __DirectiveImplementors = []string{"__Directive"}
  157403. func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler {
  157404. fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors)
  157405. out := graphql.NewFieldSet(fields)
  157406. var invalids uint32
  157407. for i, field := range fields {
  157408. switch field.Name {
  157409. case "__typename":
  157410. out.Values[i] = graphql.MarshalString("__Directive")
  157411. case "name":
  157412. out.Values[i] = ec.___Directive_name(ctx, field, obj)
  157413. if out.Values[i] == graphql.Null {
  157414. invalids++
  157415. }
  157416. case "description":
  157417. out.Values[i] = ec.___Directive_description(ctx, field, obj)
  157418. case "locations":
  157419. out.Values[i] = ec.___Directive_locations(ctx, field, obj)
  157420. if out.Values[i] == graphql.Null {
  157421. invalids++
  157422. }
  157423. case "args":
  157424. out.Values[i] = ec.___Directive_args(ctx, field, obj)
  157425. if out.Values[i] == graphql.Null {
  157426. invalids++
  157427. }
  157428. case "isRepeatable":
  157429. out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj)
  157430. if out.Values[i] == graphql.Null {
  157431. invalids++
  157432. }
  157433. default:
  157434. panic("unknown field " + strconv.Quote(field.Name))
  157435. }
  157436. }
  157437. out.Dispatch()
  157438. if invalids > 0 {
  157439. return graphql.Null
  157440. }
  157441. return out
  157442. }
  157443. var __EnumValueImplementors = []string{"__EnumValue"}
  157444. func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler {
  157445. fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors)
  157446. out := graphql.NewFieldSet(fields)
  157447. var invalids uint32
  157448. for i, field := range fields {
  157449. switch field.Name {
  157450. case "__typename":
  157451. out.Values[i] = graphql.MarshalString("__EnumValue")
  157452. case "name":
  157453. out.Values[i] = ec.___EnumValue_name(ctx, field, obj)
  157454. if out.Values[i] == graphql.Null {
  157455. invalids++
  157456. }
  157457. case "description":
  157458. out.Values[i] = ec.___EnumValue_description(ctx, field, obj)
  157459. case "isDeprecated":
  157460. out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj)
  157461. if out.Values[i] == graphql.Null {
  157462. invalids++
  157463. }
  157464. case "deprecationReason":
  157465. out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj)
  157466. default:
  157467. panic("unknown field " + strconv.Quote(field.Name))
  157468. }
  157469. }
  157470. out.Dispatch()
  157471. if invalids > 0 {
  157472. return graphql.Null
  157473. }
  157474. return out
  157475. }
  157476. var __FieldImplementors = []string{"__Field"}
  157477. func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler {
  157478. fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors)
  157479. out := graphql.NewFieldSet(fields)
  157480. var invalids uint32
  157481. for i, field := range fields {
  157482. switch field.Name {
  157483. case "__typename":
  157484. out.Values[i] = graphql.MarshalString("__Field")
  157485. case "name":
  157486. out.Values[i] = ec.___Field_name(ctx, field, obj)
  157487. if out.Values[i] == graphql.Null {
  157488. invalids++
  157489. }
  157490. case "description":
  157491. out.Values[i] = ec.___Field_description(ctx, field, obj)
  157492. case "args":
  157493. out.Values[i] = ec.___Field_args(ctx, field, obj)
  157494. if out.Values[i] == graphql.Null {
  157495. invalids++
  157496. }
  157497. case "type":
  157498. out.Values[i] = ec.___Field_type(ctx, field, obj)
  157499. if out.Values[i] == graphql.Null {
  157500. invalids++
  157501. }
  157502. case "isDeprecated":
  157503. out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj)
  157504. if out.Values[i] == graphql.Null {
  157505. invalids++
  157506. }
  157507. case "deprecationReason":
  157508. out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj)
  157509. default:
  157510. panic("unknown field " + strconv.Quote(field.Name))
  157511. }
  157512. }
  157513. out.Dispatch()
  157514. if invalids > 0 {
  157515. return graphql.Null
  157516. }
  157517. return out
  157518. }
  157519. var __InputValueImplementors = []string{"__InputValue"}
  157520. func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler {
  157521. fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors)
  157522. out := graphql.NewFieldSet(fields)
  157523. var invalids uint32
  157524. for i, field := range fields {
  157525. switch field.Name {
  157526. case "__typename":
  157527. out.Values[i] = graphql.MarshalString("__InputValue")
  157528. case "name":
  157529. out.Values[i] = ec.___InputValue_name(ctx, field, obj)
  157530. if out.Values[i] == graphql.Null {
  157531. invalids++
  157532. }
  157533. case "description":
  157534. out.Values[i] = ec.___InputValue_description(ctx, field, obj)
  157535. case "type":
  157536. out.Values[i] = ec.___InputValue_type(ctx, field, obj)
  157537. if out.Values[i] == graphql.Null {
  157538. invalids++
  157539. }
  157540. case "defaultValue":
  157541. out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj)
  157542. default:
  157543. panic("unknown field " + strconv.Quote(field.Name))
  157544. }
  157545. }
  157546. out.Dispatch()
  157547. if invalids > 0 {
  157548. return graphql.Null
  157549. }
  157550. return out
  157551. }
  157552. var __SchemaImplementors = []string{"__Schema"}
  157553. func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler {
  157554. fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors)
  157555. out := graphql.NewFieldSet(fields)
  157556. var invalids uint32
  157557. for i, field := range fields {
  157558. switch field.Name {
  157559. case "__typename":
  157560. out.Values[i] = graphql.MarshalString("__Schema")
  157561. case "description":
  157562. out.Values[i] = ec.___Schema_description(ctx, field, obj)
  157563. case "types":
  157564. out.Values[i] = ec.___Schema_types(ctx, field, obj)
  157565. if out.Values[i] == graphql.Null {
  157566. invalids++
  157567. }
  157568. case "queryType":
  157569. out.Values[i] = ec.___Schema_queryType(ctx, field, obj)
  157570. if out.Values[i] == graphql.Null {
  157571. invalids++
  157572. }
  157573. case "mutationType":
  157574. out.Values[i] = ec.___Schema_mutationType(ctx, field, obj)
  157575. case "subscriptionType":
  157576. out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj)
  157577. case "directives":
  157578. out.Values[i] = ec.___Schema_directives(ctx, field, obj)
  157579. if out.Values[i] == graphql.Null {
  157580. invalids++
  157581. }
  157582. default:
  157583. panic("unknown field " + strconv.Quote(field.Name))
  157584. }
  157585. }
  157586. out.Dispatch()
  157587. if invalids > 0 {
  157588. return graphql.Null
  157589. }
  157590. return out
  157591. }
  157592. var __TypeImplementors = []string{"__Type"}
  157593. func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler {
  157594. fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors)
  157595. out := graphql.NewFieldSet(fields)
  157596. var invalids uint32
  157597. for i, field := range fields {
  157598. switch field.Name {
  157599. case "__typename":
  157600. out.Values[i] = graphql.MarshalString("__Type")
  157601. case "kind":
  157602. out.Values[i] = ec.___Type_kind(ctx, field, obj)
  157603. if out.Values[i] == graphql.Null {
  157604. invalids++
  157605. }
  157606. case "name":
  157607. out.Values[i] = ec.___Type_name(ctx, field, obj)
  157608. case "description":
  157609. out.Values[i] = ec.___Type_description(ctx, field, obj)
  157610. case "fields":
  157611. out.Values[i] = ec.___Type_fields(ctx, field, obj)
  157612. case "interfaces":
  157613. out.Values[i] = ec.___Type_interfaces(ctx, field, obj)
  157614. case "possibleTypes":
  157615. out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj)
  157616. case "enumValues":
  157617. out.Values[i] = ec.___Type_enumValues(ctx, field, obj)
  157618. case "inputFields":
  157619. out.Values[i] = ec.___Type_inputFields(ctx, field, obj)
  157620. case "ofType":
  157621. out.Values[i] = ec.___Type_ofType(ctx, field, obj)
  157622. case "specifiedByURL":
  157623. out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj)
  157624. default:
  157625. panic("unknown field " + strconv.Quote(field.Name))
  157626. }
  157627. }
  157628. out.Dispatch()
  157629. if invalids > 0 {
  157630. return graphql.Null
  157631. }
  157632. return out
  157633. }
  157634. // endregion **************************** object.gotpl ****************************
  157635. // region ***************************** type.gotpl *****************************
  157636. func (ec *executionContext) marshalNAccessScope2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAccessScopeᚄ(ctx context.Context, sel ast.SelectionSet, v []*AccessScope) graphql.Marshaler {
  157637. ret := make(graphql.Array, len(v))
  157638. var wg sync.WaitGroup
  157639. isLen1 := len(v) == 1
  157640. if !isLen1 {
  157641. wg.Add(len(v))
  157642. }
  157643. for i := range v {
  157644. i := i
  157645. fc := &graphql.FieldContext{
  157646. Index: &i,
  157647. Result: &v[i],
  157648. }
  157649. ctx := graphql.WithFieldContext(ctx, fc)
  157650. f := func(i int) {
  157651. defer func() {
  157652. if r := recover(); r != nil {
  157653. ec.Error(ctx, ec.Recover(ctx, r))
  157654. ret = nil
  157655. }
  157656. }()
  157657. if !isLen1 {
  157658. defer wg.Done()
  157659. }
  157660. ret[i] = ec.marshalNAccessScope2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAccessScope(ctx, sel, v[i])
  157661. }
  157662. if isLen1 {
  157663. f(i)
  157664. } else {
  157665. go f(i)
  157666. }
  157667. }
  157668. wg.Wait()
  157669. for _, e := range ret {
  157670. if e == graphql.Null {
  157671. return graphql.Null
  157672. }
  157673. }
  157674. return ret
  157675. }
  157676. func (ec *executionContext) marshalNAccessScope2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAccessScope(ctx context.Context, sel ast.SelectionSet, v *AccessScope) graphql.Marshaler {
  157677. if v == nil {
  157678. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  157679. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  157680. }
  157681. return graphql.Null
  157682. }
  157683. return ec._AccessScope(ctx, sel, v)
  157684. }
  157685. func (ec *executionContext) marshalNApp2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppᚄ(ctx context.Context, sel ast.SelectionSet, v []*App) graphql.Marshaler {
  157686. ret := make(graphql.Array, len(v))
  157687. var wg sync.WaitGroup
  157688. isLen1 := len(v) == 1
  157689. if !isLen1 {
  157690. wg.Add(len(v))
  157691. }
  157692. for i := range v {
  157693. i := i
  157694. fc := &graphql.FieldContext{
  157695. Index: &i,
  157696. Result: &v[i],
  157697. }
  157698. ctx := graphql.WithFieldContext(ctx, fc)
  157699. f := func(i int) {
  157700. defer func() {
  157701. if r := recover(); r != nil {
  157702. ec.Error(ctx, ec.Recover(ctx, r))
  157703. ret = nil
  157704. }
  157705. }()
  157706. if !isLen1 {
  157707. defer wg.Done()
  157708. }
  157709. ret[i] = ec.marshalNApp2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐApp(ctx, sel, v[i])
  157710. }
  157711. if isLen1 {
  157712. f(i)
  157713. } else {
  157714. go f(i)
  157715. }
  157716. }
  157717. wg.Wait()
  157718. for _, e := range ret {
  157719. if e == graphql.Null {
  157720. return graphql.Null
  157721. }
  157722. }
  157723. return ret
  157724. }
  157725. func (ec *executionContext) marshalNApp2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐApp(ctx context.Context, sel ast.SelectionSet, v *App) graphql.Marshaler {
  157726. if v == nil {
  157727. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  157728. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  157729. }
  157730. return graphql.Null
  157731. }
  157732. return ec._App(ctx, sel, v)
  157733. }
  157734. func (ec *executionContext) marshalNAppConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppConnection(ctx context.Context, sel ast.SelectionSet, v *AppConnection) graphql.Marshaler {
  157735. if v == nil {
  157736. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  157737. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  157738. }
  157739. return graphql.Null
  157740. }
  157741. return ec._AppConnection(ctx, sel, v)
  157742. }
  157743. func (ec *executionContext) marshalNAppCredit2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppCreditᚄ(ctx context.Context, sel ast.SelectionSet, v []*AppCredit) graphql.Marshaler {
  157744. ret := make(graphql.Array, len(v))
  157745. var wg sync.WaitGroup
  157746. isLen1 := len(v) == 1
  157747. if !isLen1 {
  157748. wg.Add(len(v))
  157749. }
  157750. for i := range v {
  157751. i := i
  157752. fc := &graphql.FieldContext{
  157753. Index: &i,
  157754. Result: &v[i],
  157755. }
  157756. ctx := graphql.WithFieldContext(ctx, fc)
  157757. f := func(i int) {
  157758. defer func() {
  157759. if r := recover(); r != nil {
  157760. ec.Error(ctx, ec.Recover(ctx, r))
  157761. ret = nil
  157762. }
  157763. }()
  157764. if !isLen1 {
  157765. defer wg.Done()
  157766. }
  157767. ret[i] = ec.marshalNAppCredit2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppCredit(ctx, sel, v[i])
  157768. }
  157769. if isLen1 {
  157770. f(i)
  157771. } else {
  157772. go f(i)
  157773. }
  157774. }
  157775. wg.Wait()
  157776. for _, e := range ret {
  157777. if e == graphql.Null {
  157778. return graphql.Null
  157779. }
  157780. }
  157781. return ret
  157782. }
  157783. func (ec *executionContext) marshalNAppCredit2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppCredit(ctx context.Context, sel ast.SelectionSet, v *AppCredit) graphql.Marshaler {
  157784. if v == nil {
  157785. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  157786. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  157787. }
  157788. return graphql.Null
  157789. }
  157790. return ec._AppCredit(ctx, sel, v)
  157791. }
  157792. func (ec *executionContext) marshalNAppCreditConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppCreditConnection(ctx context.Context, sel ast.SelectionSet, v *AppCreditConnection) graphql.Marshaler {
  157793. if v == nil {
  157794. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  157795. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  157796. }
  157797. return graphql.Null
  157798. }
  157799. return ec._AppCreditConnection(ctx, sel, v)
  157800. }
  157801. func (ec *executionContext) marshalNAppCreditEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppCreditEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*AppCreditEdge) graphql.Marshaler {
  157802. ret := make(graphql.Array, len(v))
  157803. var wg sync.WaitGroup
  157804. isLen1 := len(v) == 1
  157805. if !isLen1 {
  157806. wg.Add(len(v))
  157807. }
  157808. for i := range v {
  157809. i := i
  157810. fc := &graphql.FieldContext{
  157811. Index: &i,
  157812. Result: &v[i],
  157813. }
  157814. ctx := graphql.WithFieldContext(ctx, fc)
  157815. f := func(i int) {
  157816. defer func() {
  157817. if r := recover(); r != nil {
  157818. ec.Error(ctx, ec.Recover(ctx, r))
  157819. ret = nil
  157820. }
  157821. }()
  157822. if !isLen1 {
  157823. defer wg.Done()
  157824. }
  157825. ret[i] = ec.marshalNAppCreditEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppCreditEdge(ctx, sel, v[i])
  157826. }
  157827. if isLen1 {
  157828. f(i)
  157829. } else {
  157830. go f(i)
  157831. }
  157832. }
  157833. wg.Wait()
  157834. for _, e := range ret {
  157835. if e == graphql.Null {
  157836. return graphql.Null
  157837. }
  157838. }
  157839. return ret
  157840. }
  157841. func (ec *executionContext) marshalNAppCreditEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppCreditEdge(ctx context.Context, sel ast.SelectionSet, v *AppCreditEdge) graphql.Marshaler {
  157842. if v == nil {
  157843. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  157844. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  157845. }
  157846. return graphql.Null
  157847. }
  157848. return ec._AppCreditEdge(ctx, sel, v)
  157849. }
  157850. func (ec *executionContext) unmarshalNAppDeveloperType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppDeveloperType(ctx context.Context, v interface{}) (AppDeveloperType, error) {
  157851. var res AppDeveloperType
  157852. err := res.UnmarshalGQL(v)
  157853. return res, graphql.ErrorOnPath(ctx, err)
  157854. }
  157855. func (ec *executionContext) marshalNAppDeveloperType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppDeveloperType(ctx context.Context, sel ast.SelectionSet, v AppDeveloperType) graphql.Marshaler {
  157856. return v
  157857. }
  157858. func (ec *executionContext) marshalNAppEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*AppEdge) graphql.Marshaler {
  157859. ret := make(graphql.Array, len(v))
  157860. var wg sync.WaitGroup
  157861. isLen1 := len(v) == 1
  157862. if !isLen1 {
  157863. wg.Add(len(v))
  157864. }
  157865. for i := range v {
  157866. i := i
  157867. fc := &graphql.FieldContext{
  157868. Index: &i,
  157869. Result: &v[i],
  157870. }
  157871. ctx := graphql.WithFieldContext(ctx, fc)
  157872. f := func(i int) {
  157873. defer func() {
  157874. if r := recover(); r != nil {
  157875. ec.Error(ctx, ec.Recover(ctx, r))
  157876. ret = nil
  157877. }
  157878. }()
  157879. if !isLen1 {
  157880. defer wg.Done()
  157881. }
  157882. ret[i] = ec.marshalNAppEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppEdge(ctx, sel, v[i])
  157883. }
  157884. if isLen1 {
  157885. f(i)
  157886. } else {
  157887. go f(i)
  157888. }
  157889. }
  157890. wg.Wait()
  157891. for _, e := range ret {
  157892. if e == graphql.Null {
  157893. return graphql.Null
  157894. }
  157895. }
  157896. return ret
  157897. }
  157898. func (ec *executionContext) marshalNAppEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppEdge(ctx context.Context, sel ast.SelectionSet, v *AppEdge) graphql.Marshaler {
  157899. if v == nil {
  157900. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  157901. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  157902. }
  157903. return graphql.Null
  157904. }
  157905. return ec._AppEdge(ctx, sel, v)
  157906. }
  157907. func (ec *executionContext) marshalNAppFeedback2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppFeedbackᚄ(ctx context.Context, sel ast.SelectionSet, v []*AppFeedback) graphql.Marshaler {
  157908. ret := make(graphql.Array, len(v))
  157909. var wg sync.WaitGroup
  157910. isLen1 := len(v) == 1
  157911. if !isLen1 {
  157912. wg.Add(len(v))
  157913. }
  157914. for i := range v {
  157915. i := i
  157916. fc := &graphql.FieldContext{
  157917. Index: &i,
  157918. Result: &v[i],
  157919. }
  157920. ctx := graphql.WithFieldContext(ctx, fc)
  157921. f := func(i int) {
  157922. defer func() {
  157923. if r := recover(); r != nil {
  157924. ec.Error(ctx, ec.Recover(ctx, r))
  157925. ret = nil
  157926. }
  157927. }()
  157928. if !isLen1 {
  157929. defer wg.Done()
  157930. }
  157931. ret[i] = ec.marshalNAppFeedback2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppFeedback(ctx, sel, v[i])
  157932. }
  157933. if isLen1 {
  157934. f(i)
  157935. } else {
  157936. go f(i)
  157937. }
  157938. }
  157939. wg.Wait()
  157940. for _, e := range ret {
  157941. if e == graphql.Null {
  157942. return graphql.Null
  157943. }
  157944. }
  157945. return ret
  157946. }
  157947. func (ec *executionContext) marshalNAppFeedback2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppFeedback(ctx context.Context, sel ast.SelectionSet, v *AppFeedback) graphql.Marshaler {
  157948. if v == nil {
  157949. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  157950. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  157951. }
  157952. return graphql.Null
  157953. }
  157954. return ec._AppFeedback(ctx, sel, v)
  157955. }
  157956. func (ec *executionContext) marshalNAppPlanV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppPlanV2(ctx context.Context, sel ast.SelectionSet, v *AppPlanV2) graphql.Marshaler {
  157957. if v == nil {
  157958. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  157959. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  157960. }
  157961. return graphql.Null
  157962. }
  157963. return ec._AppPlanV2(ctx, sel, v)
  157964. }
  157965. func (ec *executionContext) marshalNAppPricingDetails2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppPricingDetails(ctx context.Context, sel ast.SelectionSet, v AppPricingDetails) graphql.Marshaler {
  157966. if v == nil {
  157967. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  157968. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  157969. }
  157970. return graphql.Null
  157971. }
  157972. return ec._AppPricingDetails(ctx, sel, v)
  157973. }
  157974. func (ec *executionContext) unmarshalNAppPricingInterval2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppPricingInterval(ctx context.Context, v interface{}) (AppPricingInterval, error) {
  157975. var res AppPricingInterval
  157976. err := res.UnmarshalGQL(v)
  157977. return res, graphql.ErrorOnPath(ctx, err)
  157978. }
  157979. func (ec *executionContext) marshalNAppPricingInterval2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppPricingInterval(ctx context.Context, sel ast.SelectionSet, v AppPricingInterval) graphql.Marshaler {
  157980. return v
  157981. }
  157982. func (ec *executionContext) unmarshalNAppPublicCategory2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppPublicCategory(ctx context.Context, v interface{}) (AppPublicCategory, error) {
  157983. var res AppPublicCategory
  157984. err := res.UnmarshalGQL(v)
  157985. return res, graphql.ErrorOnPath(ctx, err)
  157986. }
  157987. func (ec *executionContext) marshalNAppPublicCategory2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppPublicCategory(ctx context.Context, sel ast.SelectionSet, v AppPublicCategory) graphql.Marshaler {
  157988. return v
  157989. }
  157990. func (ec *executionContext) marshalNAppPurchaseOneTime2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppPurchaseOneTimeᚄ(ctx context.Context, sel ast.SelectionSet, v []*AppPurchaseOneTime) graphql.Marshaler {
  157991. ret := make(graphql.Array, len(v))
  157992. var wg sync.WaitGroup
  157993. isLen1 := len(v) == 1
  157994. if !isLen1 {
  157995. wg.Add(len(v))
  157996. }
  157997. for i := range v {
  157998. i := i
  157999. fc := &graphql.FieldContext{
  158000. Index: &i,
  158001. Result: &v[i],
  158002. }
  158003. ctx := graphql.WithFieldContext(ctx, fc)
  158004. f := func(i int) {
  158005. defer func() {
  158006. if r := recover(); r != nil {
  158007. ec.Error(ctx, ec.Recover(ctx, r))
  158008. ret = nil
  158009. }
  158010. }()
  158011. if !isLen1 {
  158012. defer wg.Done()
  158013. }
  158014. ret[i] = ec.marshalNAppPurchaseOneTime2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppPurchaseOneTime(ctx, sel, v[i])
  158015. }
  158016. if isLen1 {
  158017. f(i)
  158018. } else {
  158019. go f(i)
  158020. }
  158021. }
  158022. wg.Wait()
  158023. for _, e := range ret {
  158024. if e == graphql.Null {
  158025. return graphql.Null
  158026. }
  158027. }
  158028. return ret
  158029. }
  158030. func (ec *executionContext) marshalNAppPurchaseOneTime2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppPurchaseOneTime(ctx context.Context, sel ast.SelectionSet, v *AppPurchaseOneTime) graphql.Marshaler {
  158031. if v == nil {
  158032. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158033. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158034. }
  158035. return graphql.Null
  158036. }
  158037. return ec._AppPurchaseOneTime(ctx, sel, v)
  158038. }
  158039. func (ec *executionContext) marshalNAppPurchaseOneTimeConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppPurchaseOneTimeConnection(ctx context.Context, sel ast.SelectionSet, v *AppPurchaseOneTimeConnection) graphql.Marshaler {
  158040. if v == nil {
  158041. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158042. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158043. }
  158044. return graphql.Null
  158045. }
  158046. return ec._AppPurchaseOneTimeConnection(ctx, sel, v)
  158047. }
  158048. func (ec *executionContext) marshalNAppPurchaseOneTimeEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppPurchaseOneTimeEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*AppPurchaseOneTimeEdge) graphql.Marshaler {
  158049. ret := make(graphql.Array, len(v))
  158050. var wg sync.WaitGroup
  158051. isLen1 := len(v) == 1
  158052. if !isLen1 {
  158053. wg.Add(len(v))
  158054. }
  158055. for i := range v {
  158056. i := i
  158057. fc := &graphql.FieldContext{
  158058. Index: &i,
  158059. Result: &v[i],
  158060. }
  158061. ctx := graphql.WithFieldContext(ctx, fc)
  158062. f := func(i int) {
  158063. defer func() {
  158064. if r := recover(); r != nil {
  158065. ec.Error(ctx, ec.Recover(ctx, r))
  158066. ret = nil
  158067. }
  158068. }()
  158069. if !isLen1 {
  158070. defer wg.Done()
  158071. }
  158072. ret[i] = ec.marshalNAppPurchaseOneTimeEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppPurchaseOneTimeEdge(ctx, sel, v[i])
  158073. }
  158074. if isLen1 {
  158075. f(i)
  158076. } else {
  158077. go f(i)
  158078. }
  158079. }
  158080. wg.Wait()
  158081. for _, e := range ret {
  158082. if e == graphql.Null {
  158083. return graphql.Null
  158084. }
  158085. }
  158086. return ret
  158087. }
  158088. func (ec *executionContext) marshalNAppPurchaseOneTimeEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppPurchaseOneTimeEdge(ctx context.Context, sel ast.SelectionSet, v *AppPurchaseOneTimeEdge) graphql.Marshaler {
  158089. if v == nil {
  158090. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158091. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158092. }
  158093. return graphql.Null
  158094. }
  158095. return ec._AppPurchaseOneTimeEdge(ctx, sel, v)
  158096. }
  158097. func (ec *executionContext) unmarshalNAppPurchaseStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppPurchaseStatus(ctx context.Context, v interface{}) (AppPurchaseStatus, error) {
  158098. var res AppPurchaseStatus
  158099. err := res.UnmarshalGQL(v)
  158100. return res, graphql.ErrorOnPath(ctx, err)
  158101. }
  158102. func (ec *executionContext) marshalNAppPurchaseStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppPurchaseStatus(ctx context.Context, sel ast.SelectionSet, v AppPurchaseStatus) graphql.Marshaler {
  158103. return v
  158104. }
  158105. func (ec *executionContext) marshalNAppRevenueAttributionRecord2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppRevenueAttributionRecordᚄ(ctx context.Context, sel ast.SelectionSet, v []*AppRevenueAttributionRecord) graphql.Marshaler {
  158106. ret := make(graphql.Array, len(v))
  158107. var wg sync.WaitGroup
  158108. isLen1 := len(v) == 1
  158109. if !isLen1 {
  158110. wg.Add(len(v))
  158111. }
  158112. for i := range v {
  158113. i := i
  158114. fc := &graphql.FieldContext{
  158115. Index: &i,
  158116. Result: &v[i],
  158117. }
  158118. ctx := graphql.WithFieldContext(ctx, fc)
  158119. f := func(i int) {
  158120. defer func() {
  158121. if r := recover(); r != nil {
  158122. ec.Error(ctx, ec.Recover(ctx, r))
  158123. ret = nil
  158124. }
  158125. }()
  158126. if !isLen1 {
  158127. defer wg.Done()
  158128. }
  158129. ret[i] = ec.marshalNAppRevenueAttributionRecord2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppRevenueAttributionRecord(ctx, sel, v[i])
  158130. }
  158131. if isLen1 {
  158132. f(i)
  158133. } else {
  158134. go f(i)
  158135. }
  158136. }
  158137. wg.Wait()
  158138. for _, e := range ret {
  158139. if e == graphql.Null {
  158140. return graphql.Null
  158141. }
  158142. }
  158143. return ret
  158144. }
  158145. func (ec *executionContext) marshalNAppRevenueAttributionRecord2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppRevenueAttributionRecord(ctx context.Context, sel ast.SelectionSet, v *AppRevenueAttributionRecord) graphql.Marshaler {
  158146. if v == nil {
  158147. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158148. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158149. }
  158150. return graphql.Null
  158151. }
  158152. return ec._AppRevenueAttributionRecord(ctx, sel, v)
  158153. }
  158154. func (ec *executionContext) marshalNAppRevenueAttributionRecordConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppRevenueAttributionRecordConnection(ctx context.Context, sel ast.SelectionSet, v *AppRevenueAttributionRecordConnection) graphql.Marshaler {
  158155. if v == nil {
  158156. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158157. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158158. }
  158159. return graphql.Null
  158160. }
  158161. return ec._AppRevenueAttributionRecordConnection(ctx, sel, v)
  158162. }
  158163. func (ec *executionContext) marshalNAppRevenueAttributionRecordEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppRevenueAttributionRecordEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*AppRevenueAttributionRecordEdge) graphql.Marshaler {
  158164. ret := make(graphql.Array, len(v))
  158165. var wg sync.WaitGroup
  158166. isLen1 := len(v) == 1
  158167. if !isLen1 {
  158168. wg.Add(len(v))
  158169. }
  158170. for i := range v {
  158171. i := i
  158172. fc := &graphql.FieldContext{
  158173. Index: &i,
  158174. Result: &v[i],
  158175. }
  158176. ctx := graphql.WithFieldContext(ctx, fc)
  158177. f := func(i int) {
  158178. defer func() {
  158179. if r := recover(); r != nil {
  158180. ec.Error(ctx, ec.Recover(ctx, r))
  158181. ret = nil
  158182. }
  158183. }()
  158184. if !isLen1 {
  158185. defer wg.Done()
  158186. }
  158187. ret[i] = ec.marshalNAppRevenueAttributionRecordEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppRevenueAttributionRecordEdge(ctx, sel, v[i])
  158188. }
  158189. if isLen1 {
  158190. f(i)
  158191. } else {
  158192. go f(i)
  158193. }
  158194. }
  158195. wg.Wait()
  158196. for _, e := range ret {
  158197. if e == graphql.Null {
  158198. return graphql.Null
  158199. }
  158200. }
  158201. return ret
  158202. }
  158203. func (ec *executionContext) marshalNAppRevenueAttributionRecordEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppRevenueAttributionRecordEdge(ctx context.Context, sel ast.SelectionSet, v *AppRevenueAttributionRecordEdge) graphql.Marshaler {
  158204. if v == nil {
  158205. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158206. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158207. }
  158208. return graphql.Null
  158209. }
  158210. return ec._AppRevenueAttributionRecordEdge(ctx, sel, v)
  158211. }
  158212. func (ec *executionContext) unmarshalNAppRevenueAttributionType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppRevenueAttributionType(ctx context.Context, v interface{}) (AppRevenueAttributionType, error) {
  158213. var res AppRevenueAttributionType
  158214. err := res.UnmarshalGQL(v)
  158215. return res, graphql.ErrorOnPath(ctx, err)
  158216. }
  158217. func (ec *executionContext) marshalNAppRevenueAttributionType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppRevenueAttributionType(ctx context.Context, sel ast.SelectionSet, v AppRevenueAttributionType) graphql.Marshaler {
  158218. return v
  158219. }
  158220. func (ec *executionContext) marshalNAppSubscription2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppSubscriptionᚄ(ctx context.Context, sel ast.SelectionSet, v []*AppSubscription) graphql.Marshaler {
  158221. ret := make(graphql.Array, len(v))
  158222. var wg sync.WaitGroup
  158223. isLen1 := len(v) == 1
  158224. if !isLen1 {
  158225. wg.Add(len(v))
  158226. }
  158227. for i := range v {
  158228. i := i
  158229. fc := &graphql.FieldContext{
  158230. Index: &i,
  158231. Result: &v[i],
  158232. }
  158233. ctx := graphql.WithFieldContext(ctx, fc)
  158234. f := func(i int) {
  158235. defer func() {
  158236. if r := recover(); r != nil {
  158237. ec.Error(ctx, ec.Recover(ctx, r))
  158238. ret = nil
  158239. }
  158240. }()
  158241. if !isLen1 {
  158242. defer wg.Done()
  158243. }
  158244. ret[i] = ec.marshalNAppSubscription2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppSubscription(ctx, sel, v[i])
  158245. }
  158246. if isLen1 {
  158247. f(i)
  158248. } else {
  158249. go f(i)
  158250. }
  158251. }
  158252. wg.Wait()
  158253. for _, e := range ret {
  158254. if e == graphql.Null {
  158255. return graphql.Null
  158256. }
  158257. }
  158258. return ret
  158259. }
  158260. func (ec *executionContext) marshalNAppSubscription2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppSubscription(ctx context.Context, sel ast.SelectionSet, v *AppSubscription) graphql.Marshaler {
  158261. if v == nil {
  158262. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158263. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158264. }
  158265. return graphql.Null
  158266. }
  158267. return ec._AppSubscription(ctx, sel, v)
  158268. }
  158269. func (ec *executionContext) marshalNAppSubscriptionConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppSubscriptionConnection(ctx context.Context, sel ast.SelectionSet, v *AppSubscriptionConnection) graphql.Marshaler {
  158270. if v == nil {
  158271. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158272. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158273. }
  158274. return graphql.Null
  158275. }
  158276. return ec._AppSubscriptionConnection(ctx, sel, v)
  158277. }
  158278. func (ec *executionContext) marshalNAppSubscriptionDiscountValue2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppSubscriptionDiscountValue(ctx context.Context, sel ast.SelectionSet, v AppSubscriptionDiscountValue) graphql.Marshaler {
  158279. if v == nil {
  158280. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158281. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158282. }
  158283. return graphql.Null
  158284. }
  158285. return ec._AppSubscriptionDiscountValue(ctx, sel, v)
  158286. }
  158287. func (ec *executionContext) marshalNAppSubscriptionEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppSubscriptionEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*AppSubscriptionEdge) graphql.Marshaler {
  158288. ret := make(graphql.Array, len(v))
  158289. var wg sync.WaitGroup
  158290. isLen1 := len(v) == 1
  158291. if !isLen1 {
  158292. wg.Add(len(v))
  158293. }
  158294. for i := range v {
  158295. i := i
  158296. fc := &graphql.FieldContext{
  158297. Index: &i,
  158298. Result: &v[i],
  158299. }
  158300. ctx := graphql.WithFieldContext(ctx, fc)
  158301. f := func(i int) {
  158302. defer func() {
  158303. if r := recover(); r != nil {
  158304. ec.Error(ctx, ec.Recover(ctx, r))
  158305. ret = nil
  158306. }
  158307. }()
  158308. if !isLen1 {
  158309. defer wg.Done()
  158310. }
  158311. ret[i] = ec.marshalNAppSubscriptionEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppSubscriptionEdge(ctx, sel, v[i])
  158312. }
  158313. if isLen1 {
  158314. f(i)
  158315. } else {
  158316. go f(i)
  158317. }
  158318. }
  158319. wg.Wait()
  158320. for _, e := range ret {
  158321. if e == graphql.Null {
  158322. return graphql.Null
  158323. }
  158324. }
  158325. return ret
  158326. }
  158327. func (ec *executionContext) marshalNAppSubscriptionEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppSubscriptionEdge(ctx context.Context, sel ast.SelectionSet, v *AppSubscriptionEdge) graphql.Marshaler {
  158328. if v == nil {
  158329. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158330. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158331. }
  158332. return graphql.Null
  158333. }
  158334. return ec._AppSubscriptionEdge(ctx, sel, v)
  158335. }
  158336. func (ec *executionContext) marshalNAppSubscriptionLineItem2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppSubscriptionLineItemᚄ(ctx context.Context, sel ast.SelectionSet, v []*AppSubscriptionLineItem) graphql.Marshaler {
  158337. ret := make(graphql.Array, len(v))
  158338. var wg sync.WaitGroup
  158339. isLen1 := len(v) == 1
  158340. if !isLen1 {
  158341. wg.Add(len(v))
  158342. }
  158343. for i := range v {
  158344. i := i
  158345. fc := &graphql.FieldContext{
  158346. Index: &i,
  158347. Result: &v[i],
  158348. }
  158349. ctx := graphql.WithFieldContext(ctx, fc)
  158350. f := func(i int) {
  158351. defer func() {
  158352. if r := recover(); r != nil {
  158353. ec.Error(ctx, ec.Recover(ctx, r))
  158354. ret = nil
  158355. }
  158356. }()
  158357. if !isLen1 {
  158358. defer wg.Done()
  158359. }
  158360. ret[i] = ec.marshalNAppSubscriptionLineItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppSubscriptionLineItem(ctx, sel, v[i])
  158361. }
  158362. if isLen1 {
  158363. f(i)
  158364. } else {
  158365. go f(i)
  158366. }
  158367. }
  158368. wg.Wait()
  158369. for _, e := range ret {
  158370. if e == graphql.Null {
  158371. return graphql.Null
  158372. }
  158373. }
  158374. return ret
  158375. }
  158376. func (ec *executionContext) marshalNAppSubscriptionLineItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppSubscriptionLineItem(ctx context.Context, sel ast.SelectionSet, v *AppSubscriptionLineItem) graphql.Marshaler {
  158377. if v == nil {
  158378. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158379. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158380. }
  158381. return graphql.Null
  158382. }
  158383. return ec._AppSubscriptionLineItem(ctx, sel, v)
  158384. }
  158385. func (ec *executionContext) unmarshalNAppSubscriptionStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppSubscriptionStatus(ctx context.Context, v interface{}) (AppSubscriptionStatus, error) {
  158386. var res AppSubscriptionStatus
  158387. err := res.UnmarshalGQL(v)
  158388. return res, graphql.ErrorOnPath(ctx, err)
  158389. }
  158390. func (ec *executionContext) marshalNAppSubscriptionStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppSubscriptionStatus(ctx context.Context, sel ast.SelectionSet, v AppSubscriptionStatus) graphql.Marshaler {
  158391. return v
  158392. }
  158393. func (ec *executionContext) marshalNAppUsageRecord2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppUsageRecordᚄ(ctx context.Context, sel ast.SelectionSet, v []*AppUsageRecord) graphql.Marshaler {
  158394. ret := make(graphql.Array, len(v))
  158395. var wg sync.WaitGroup
  158396. isLen1 := len(v) == 1
  158397. if !isLen1 {
  158398. wg.Add(len(v))
  158399. }
  158400. for i := range v {
  158401. i := i
  158402. fc := &graphql.FieldContext{
  158403. Index: &i,
  158404. Result: &v[i],
  158405. }
  158406. ctx := graphql.WithFieldContext(ctx, fc)
  158407. f := func(i int) {
  158408. defer func() {
  158409. if r := recover(); r != nil {
  158410. ec.Error(ctx, ec.Recover(ctx, r))
  158411. ret = nil
  158412. }
  158413. }()
  158414. if !isLen1 {
  158415. defer wg.Done()
  158416. }
  158417. ret[i] = ec.marshalNAppUsageRecord2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppUsageRecord(ctx, sel, v[i])
  158418. }
  158419. if isLen1 {
  158420. f(i)
  158421. } else {
  158422. go f(i)
  158423. }
  158424. }
  158425. wg.Wait()
  158426. for _, e := range ret {
  158427. if e == graphql.Null {
  158428. return graphql.Null
  158429. }
  158430. }
  158431. return ret
  158432. }
  158433. func (ec *executionContext) marshalNAppUsageRecord2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppUsageRecord(ctx context.Context, sel ast.SelectionSet, v *AppUsageRecord) graphql.Marshaler {
  158434. if v == nil {
  158435. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158436. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158437. }
  158438. return graphql.Null
  158439. }
  158440. return ec._AppUsageRecord(ctx, sel, v)
  158441. }
  158442. func (ec *executionContext) marshalNAppUsageRecordConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppUsageRecordConnection(ctx context.Context, sel ast.SelectionSet, v *AppUsageRecordConnection) graphql.Marshaler {
  158443. if v == nil {
  158444. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158445. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158446. }
  158447. return graphql.Null
  158448. }
  158449. return ec._AppUsageRecordConnection(ctx, sel, v)
  158450. }
  158451. func (ec *executionContext) marshalNAppUsageRecordEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppUsageRecordEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*AppUsageRecordEdge) graphql.Marshaler {
  158452. ret := make(graphql.Array, len(v))
  158453. var wg sync.WaitGroup
  158454. isLen1 := len(v) == 1
  158455. if !isLen1 {
  158456. wg.Add(len(v))
  158457. }
  158458. for i := range v {
  158459. i := i
  158460. fc := &graphql.FieldContext{
  158461. Index: &i,
  158462. Result: &v[i],
  158463. }
  158464. ctx := graphql.WithFieldContext(ctx, fc)
  158465. f := func(i int) {
  158466. defer func() {
  158467. if r := recover(); r != nil {
  158468. ec.Error(ctx, ec.Recover(ctx, r))
  158469. ret = nil
  158470. }
  158471. }()
  158472. if !isLen1 {
  158473. defer wg.Done()
  158474. }
  158475. ret[i] = ec.marshalNAppUsageRecordEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppUsageRecordEdge(ctx, sel, v[i])
  158476. }
  158477. if isLen1 {
  158478. f(i)
  158479. } else {
  158480. go f(i)
  158481. }
  158482. }
  158483. wg.Wait()
  158484. for _, e := range ret {
  158485. if e == graphql.Null {
  158486. return graphql.Null
  158487. }
  158488. }
  158489. return ret
  158490. }
  158491. func (ec *executionContext) marshalNAppUsageRecordEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppUsageRecordEdge(ctx context.Context, sel ast.SelectionSet, v *AppUsageRecordEdge) graphql.Marshaler {
  158492. if v == nil {
  158493. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158494. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158495. }
  158496. return graphql.Null
  158497. }
  158498. return ec._AppUsageRecordEdge(ctx, sel, v)
  158499. }
  158500. func (ec *executionContext) marshalNAttribute2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAttributeᚄ(ctx context.Context, sel ast.SelectionSet, v []*Attribute) graphql.Marshaler {
  158501. ret := make(graphql.Array, len(v))
  158502. var wg sync.WaitGroup
  158503. isLen1 := len(v) == 1
  158504. if !isLen1 {
  158505. wg.Add(len(v))
  158506. }
  158507. for i := range v {
  158508. i := i
  158509. fc := &graphql.FieldContext{
  158510. Index: &i,
  158511. Result: &v[i],
  158512. }
  158513. ctx := graphql.WithFieldContext(ctx, fc)
  158514. f := func(i int) {
  158515. defer func() {
  158516. if r := recover(); r != nil {
  158517. ec.Error(ctx, ec.Recover(ctx, r))
  158518. ret = nil
  158519. }
  158520. }()
  158521. if !isLen1 {
  158522. defer wg.Done()
  158523. }
  158524. ret[i] = ec.marshalNAttribute2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAttribute(ctx, sel, v[i])
  158525. }
  158526. if isLen1 {
  158527. f(i)
  158528. } else {
  158529. go f(i)
  158530. }
  158531. }
  158532. wg.Wait()
  158533. for _, e := range ret {
  158534. if e == graphql.Null {
  158535. return graphql.Null
  158536. }
  158537. }
  158538. return ret
  158539. }
  158540. func (ec *executionContext) marshalNAttribute2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAttribute(ctx context.Context, sel ast.SelectionSet, v *Attribute) graphql.Marshaler {
  158541. if v == nil {
  158542. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158543. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158544. }
  158545. return graphql.Null
  158546. }
  158547. return ec._Attribute(ctx, sel, v)
  158548. }
  158549. func (ec *executionContext) marshalNAvailableChannelDefinitionsByChannel2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAvailableChannelDefinitionsByChannelᚄ(ctx context.Context, sel ast.SelectionSet, v []*AvailableChannelDefinitionsByChannel) graphql.Marshaler {
  158550. ret := make(graphql.Array, len(v))
  158551. var wg sync.WaitGroup
  158552. isLen1 := len(v) == 1
  158553. if !isLen1 {
  158554. wg.Add(len(v))
  158555. }
  158556. for i := range v {
  158557. i := i
  158558. fc := &graphql.FieldContext{
  158559. Index: &i,
  158560. Result: &v[i],
  158561. }
  158562. ctx := graphql.WithFieldContext(ctx, fc)
  158563. f := func(i int) {
  158564. defer func() {
  158565. if r := recover(); r != nil {
  158566. ec.Error(ctx, ec.Recover(ctx, r))
  158567. ret = nil
  158568. }
  158569. }()
  158570. if !isLen1 {
  158571. defer wg.Done()
  158572. }
  158573. ret[i] = ec.marshalNAvailableChannelDefinitionsByChannel2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAvailableChannelDefinitionsByChannel(ctx, sel, v[i])
  158574. }
  158575. if isLen1 {
  158576. f(i)
  158577. } else {
  158578. go f(i)
  158579. }
  158580. }
  158581. wg.Wait()
  158582. for _, e := range ret {
  158583. if e == graphql.Null {
  158584. return graphql.Null
  158585. }
  158586. }
  158587. return ret
  158588. }
  158589. func (ec *executionContext) marshalNAvailableChannelDefinitionsByChannel2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAvailableChannelDefinitionsByChannel(ctx context.Context, sel ast.SelectionSet, v *AvailableChannelDefinitionsByChannel) graphql.Marshaler {
  158590. if v == nil {
  158591. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158592. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158593. }
  158594. return graphql.Null
  158595. }
  158596. return ec._AvailableChannelDefinitionsByChannel(ctx, sel, v)
  158597. }
  158598. func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) {
  158599. res, err := graphql.UnmarshalBoolean(v)
  158600. return res, graphql.ErrorOnPath(ctx, err)
  158601. }
  158602. func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
  158603. res := graphql.MarshalBoolean(v)
  158604. if res == graphql.Null {
  158605. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158606. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158607. }
  158608. }
  158609. return res
  158610. }
  158611. func (ec *executionContext) marshalNChannelDefinition2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐChannelDefinitionᚄ(ctx context.Context, sel ast.SelectionSet, v []*ChannelDefinition) graphql.Marshaler {
  158612. ret := make(graphql.Array, len(v))
  158613. var wg sync.WaitGroup
  158614. isLen1 := len(v) == 1
  158615. if !isLen1 {
  158616. wg.Add(len(v))
  158617. }
  158618. for i := range v {
  158619. i := i
  158620. fc := &graphql.FieldContext{
  158621. Index: &i,
  158622. Result: &v[i],
  158623. }
  158624. ctx := graphql.WithFieldContext(ctx, fc)
  158625. f := func(i int) {
  158626. defer func() {
  158627. if r := recover(); r != nil {
  158628. ec.Error(ctx, ec.Recover(ctx, r))
  158629. ret = nil
  158630. }
  158631. }()
  158632. if !isLen1 {
  158633. defer wg.Done()
  158634. }
  158635. ret[i] = ec.marshalNChannelDefinition2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐChannelDefinition(ctx, sel, v[i])
  158636. }
  158637. if isLen1 {
  158638. f(i)
  158639. } else {
  158640. go f(i)
  158641. }
  158642. }
  158643. wg.Wait()
  158644. for _, e := range ret {
  158645. if e == graphql.Null {
  158646. return graphql.Null
  158647. }
  158648. }
  158649. return ret
  158650. }
  158651. func (ec *executionContext) marshalNChannelDefinition2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐChannelDefinition(ctx context.Context, sel ast.SelectionSet, v *ChannelDefinition) graphql.Marshaler {
  158652. if v == nil {
  158653. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158654. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158655. }
  158656. return graphql.Null
  158657. }
  158658. return ec._ChannelDefinition(ctx, sel, v)
  158659. }
  158660. func (ec *executionContext) marshalNCollection2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCollectionᚄ(ctx context.Context, sel ast.SelectionSet, v []*Collection) graphql.Marshaler {
  158661. ret := make(graphql.Array, len(v))
  158662. var wg sync.WaitGroup
  158663. isLen1 := len(v) == 1
  158664. if !isLen1 {
  158665. wg.Add(len(v))
  158666. }
  158667. for i := range v {
  158668. i := i
  158669. fc := &graphql.FieldContext{
  158670. Index: &i,
  158671. Result: &v[i],
  158672. }
  158673. ctx := graphql.WithFieldContext(ctx, fc)
  158674. f := func(i int) {
  158675. defer func() {
  158676. if r := recover(); r != nil {
  158677. ec.Error(ctx, ec.Recover(ctx, r))
  158678. ret = nil
  158679. }
  158680. }()
  158681. if !isLen1 {
  158682. defer wg.Done()
  158683. }
  158684. ret[i] = ec.marshalNCollection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCollection(ctx, sel, v[i])
  158685. }
  158686. if isLen1 {
  158687. f(i)
  158688. } else {
  158689. go f(i)
  158690. }
  158691. }
  158692. wg.Wait()
  158693. for _, e := range ret {
  158694. if e == graphql.Null {
  158695. return graphql.Null
  158696. }
  158697. }
  158698. return ret
  158699. }
  158700. func (ec *executionContext) marshalNCollection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCollection(ctx context.Context, sel ast.SelectionSet, v *Collection) graphql.Marshaler {
  158701. if v == nil {
  158702. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158703. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158704. }
  158705. return graphql.Null
  158706. }
  158707. return ec._Collection(ctx, sel, v)
  158708. }
  158709. func (ec *executionContext) marshalNCollectionConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCollectionConnection(ctx context.Context, sel ast.SelectionSet, v *CollectionConnection) graphql.Marshaler {
  158710. if v == nil {
  158711. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158712. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158713. }
  158714. return graphql.Null
  158715. }
  158716. return ec._CollectionConnection(ctx, sel, v)
  158717. }
  158718. func (ec *executionContext) marshalNCollectionEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCollectionEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*CollectionEdge) graphql.Marshaler {
  158719. ret := make(graphql.Array, len(v))
  158720. var wg sync.WaitGroup
  158721. isLen1 := len(v) == 1
  158722. if !isLen1 {
  158723. wg.Add(len(v))
  158724. }
  158725. for i := range v {
  158726. i := i
  158727. fc := &graphql.FieldContext{
  158728. Index: &i,
  158729. Result: &v[i],
  158730. }
  158731. ctx := graphql.WithFieldContext(ctx, fc)
  158732. f := func(i int) {
  158733. defer func() {
  158734. if r := recover(); r != nil {
  158735. ec.Error(ctx, ec.Recover(ctx, r))
  158736. ret = nil
  158737. }
  158738. }()
  158739. if !isLen1 {
  158740. defer wg.Done()
  158741. }
  158742. ret[i] = ec.marshalNCollectionEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCollectionEdge(ctx, sel, v[i])
  158743. }
  158744. if isLen1 {
  158745. f(i)
  158746. } else {
  158747. go f(i)
  158748. }
  158749. }
  158750. wg.Wait()
  158751. for _, e := range ret {
  158752. if e == graphql.Null {
  158753. return graphql.Null
  158754. }
  158755. }
  158756. return ret
  158757. }
  158758. func (ec *executionContext) marshalNCollectionEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCollectionEdge(ctx context.Context, sel ast.SelectionSet, v *CollectionEdge) graphql.Marshaler {
  158759. if v == nil {
  158760. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158761. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158762. }
  158763. return graphql.Null
  158764. }
  158765. return ec._CollectionEdge(ctx, sel, v)
  158766. }
  158767. func (ec *executionContext) marshalNCollectionRule2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCollectionRuleᚄ(ctx context.Context, sel ast.SelectionSet, v []*CollectionRule) graphql.Marshaler {
  158768. ret := make(graphql.Array, len(v))
  158769. var wg sync.WaitGroup
  158770. isLen1 := len(v) == 1
  158771. if !isLen1 {
  158772. wg.Add(len(v))
  158773. }
  158774. for i := range v {
  158775. i := i
  158776. fc := &graphql.FieldContext{
  158777. Index: &i,
  158778. Result: &v[i],
  158779. }
  158780. ctx := graphql.WithFieldContext(ctx, fc)
  158781. f := func(i int) {
  158782. defer func() {
  158783. if r := recover(); r != nil {
  158784. ec.Error(ctx, ec.Recover(ctx, r))
  158785. ret = nil
  158786. }
  158787. }()
  158788. if !isLen1 {
  158789. defer wg.Done()
  158790. }
  158791. ret[i] = ec.marshalNCollectionRule2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCollectionRule(ctx, sel, v[i])
  158792. }
  158793. if isLen1 {
  158794. f(i)
  158795. } else {
  158796. go f(i)
  158797. }
  158798. }
  158799. wg.Wait()
  158800. for _, e := range ret {
  158801. if e == graphql.Null {
  158802. return graphql.Null
  158803. }
  158804. }
  158805. return ret
  158806. }
  158807. func (ec *executionContext) marshalNCollectionRule2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCollectionRule(ctx context.Context, sel ast.SelectionSet, v *CollectionRule) graphql.Marshaler {
  158808. if v == nil {
  158809. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158810. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158811. }
  158812. return graphql.Null
  158813. }
  158814. return ec._CollectionRule(ctx, sel, v)
  158815. }
  158816. func (ec *executionContext) unmarshalNCollectionSortOrder2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCollectionSortOrder(ctx context.Context, v interface{}) (CollectionSortOrder, error) {
  158817. var res CollectionSortOrder
  158818. err := res.UnmarshalGQL(v)
  158819. return res, graphql.ErrorOnPath(ctx, err)
  158820. }
  158821. func (ec *executionContext) marshalNCollectionSortOrder2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCollectionSortOrder(ctx context.Context, sel ast.SelectionSet, v CollectionSortOrder) graphql.Marshaler {
  158822. return v
  158823. }
  158824. func (ec *executionContext) marshalNCommentEventAttachment2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCommentEventAttachmentᚄ(ctx context.Context, sel ast.SelectionSet, v []*CommentEventAttachment) graphql.Marshaler {
  158825. ret := make(graphql.Array, len(v))
  158826. var wg sync.WaitGroup
  158827. isLen1 := len(v) == 1
  158828. if !isLen1 {
  158829. wg.Add(len(v))
  158830. }
  158831. for i := range v {
  158832. i := i
  158833. fc := &graphql.FieldContext{
  158834. Index: &i,
  158835. Result: &v[i],
  158836. }
  158837. ctx := graphql.WithFieldContext(ctx, fc)
  158838. f := func(i int) {
  158839. defer func() {
  158840. if r := recover(); r != nil {
  158841. ec.Error(ctx, ec.Recover(ctx, r))
  158842. ret = nil
  158843. }
  158844. }()
  158845. if !isLen1 {
  158846. defer wg.Done()
  158847. }
  158848. ret[i] = ec.marshalNCommentEventAttachment2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCommentEventAttachment(ctx, sel, v[i])
  158849. }
  158850. if isLen1 {
  158851. f(i)
  158852. } else {
  158853. go f(i)
  158854. }
  158855. }
  158856. wg.Wait()
  158857. for _, e := range ret {
  158858. if e == graphql.Null {
  158859. return graphql.Null
  158860. }
  158861. }
  158862. return ret
  158863. }
  158864. func (ec *executionContext) marshalNCommentEventAttachment2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCommentEventAttachment(ctx context.Context, sel ast.SelectionSet, v *CommentEventAttachment) graphql.Marshaler {
  158865. if v == nil {
  158866. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158867. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158868. }
  158869. return graphql.Null
  158870. }
  158871. return ec._CommentEventAttachment(ctx, sel, v)
  158872. }
  158873. func (ec *executionContext) marshalNCommentEventSubject2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCommentEventSubject(ctx context.Context, sel ast.SelectionSet, v CommentEventSubject) graphql.Marshaler {
  158874. if v == nil {
  158875. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158876. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158877. }
  158878. return graphql.Null
  158879. }
  158880. return ec._CommentEventSubject(ctx, sel, v)
  158881. }
  158882. func (ec *executionContext) marshalNCompany2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompany(ctx context.Context, sel ast.SelectionSet, v *Company) graphql.Marshaler {
  158883. if v == nil {
  158884. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158885. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158886. }
  158887. return graphql.Null
  158888. }
  158889. return ec._Company(ctx, sel, v)
  158890. }
  158891. func (ec *executionContext) marshalNCompanyContact2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactᚄ(ctx context.Context, sel ast.SelectionSet, v []*CompanyContact) graphql.Marshaler {
  158892. ret := make(graphql.Array, len(v))
  158893. var wg sync.WaitGroup
  158894. isLen1 := len(v) == 1
  158895. if !isLen1 {
  158896. wg.Add(len(v))
  158897. }
  158898. for i := range v {
  158899. i := i
  158900. fc := &graphql.FieldContext{
  158901. Index: &i,
  158902. Result: &v[i],
  158903. }
  158904. ctx := graphql.WithFieldContext(ctx, fc)
  158905. f := func(i int) {
  158906. defer func() {
  158907. if r := recover(); r != nil {
  158908. ec.Error(ctx, ec.Recover(ctx, r))
  158909. ret = nil
  158910. }
  158911. }()
  158912. if !isLen1 {
  158913. defer wg.Done()
  158914. }
  158915. ret[i] = ec.marshalNCompanyContact2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContact(ctx, sel, v[i])
  158916. }
  158917. if isLen1 {
  158918. f(i)
  158919. } else {
  158920. go f(i)
  158921. }
  158922. }
  158923. wg.Wait()
  158924. for _, e := range ret {
  158925. if e == graphql.Null {
  158926. return graphql.Null
  158927. }
  158928. }
  158929. return ret
  158930. }
  158931. func (ec *executionContext) marshalNCompanyContact2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContact(ctx context.Context, sel ast.SelectionSet, v *CompanyContact) graphql.Marshaler {
  158932. if v == nil {
  158933. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158934. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158935. }
  158936. return graphql.Null
  158937. }
  158938. return ec._CompanyContact(ctx, sel, v)
  158939. }
  158940. func (ec *executionContext) marshalNCompanyContactConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactConnection(ctx context.Context, sel ast.SelectionSet, v *CompanyContactConnection) graphql.Marshaler {
  158941. if v == nil {
  158942. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158943. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158944. }
  158945. return graphql.Null
  158946. }
  158947. return ec._CompanyContactConnection(ctx, sel, v)
  158948. }
  158949. func (ec *executionContext) marshalNCompanyContactEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*CompanyContactEdge) graphql.Marshaler {
  158950. ret := make(graphql.Array, len(v))
  158951. var wg sync.WaitGroup
  158952. isLen1 := len(v) == 1
  158953. if !isLen1 {
  158954. wg.Add(len(v))
  158955. }
  158956. for i := range v {
  158957. i := i
  158958. fc := &graphql.FieldContext{
  158959. Index: &i,
  158960. Result: &v[i],
  158961. }
  158962. ctx := graphql.WithFieldContext(ctx, fc)
  158963. f := func(i int) {
  158964. defer func() {
  158965. if r := recover(); r != nil {
  158966. ec.Error(ctx, ec.Recover(ctx, r))
  158967. ret = nil
  158968. }
  158969. }()
  158970. if !isLen1 {
  158971. defer wg.Done()
  158972. }
  158973. ret[i] = ec.marshalNCompanyContactEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactEdge(ctx, sel, v[i])
  158974. }
  158975. if isLen1 {
  158976. f(i)
  158977. } else {
  158978. go f(i)
  158979. }
  158980. }
  158981. wg.Wait()
  158982. for _, e := range ret {
  158983. if e == graphql.Null {
  158984. return graphql.Null
  158985. }
  158986. }
  158987. return ret
  158988. }
  158989. func (ec *executionContext) marshalNCompanyContactEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactEdge(ctx context.Context, sel ast.SelectionSet, v *CompanyContactEdge) graphql.Marshaler {
  158990. if v == nil {
  158991. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  158992. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  158993. }
  158994. return graphql.Null
  158995. }
  158996. return ec._CompanyContactEdge(ctx, sel, v)
  158997. }
  158998. func (ec *executionContext) marshalNCompanyContactRole2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRoleᚄ(ctx context.Context, sel ast.SelectionSet, v []*CompanyContactRole) graphql.Marshaler {
  158999. ret := make(graphql.Array, len(v))
  159000. var wg sync.WaitGroup
  159001. isLen1 := len(v) == 1
  159002. if !isLen1 {
  159003. wg.Add(len(v))
  159004. }
  159005. for i := range v {
  159006. i := i
  159007. fc := &graphql.FieldContext{
  159008. Index: &i,
  159009. Result: &v[i],
  159010. }
  159011. ctx := graphql.WithFieldContext(ctx, fc)
  159012. f := func(i int) {
  159013. defer func() {
  159014. if r := recover(); r != nil {
  159015. ec.Error(ctx, ec.Recover(ctx, r))
  159016. ret = nil
  159017. }
  159018. }()
  159019. if !isLen1 {
  159020. defer wg.Done()
  159021. }
  159022. ret[i] = ec.marshalNCompanyContactRole2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRole(ctx, sel, v[i])
  159023. }
  159024. if isLen1 {
  159025. f(i)
  159026. } else {
  159027. go f(i)
  159028. }
  159029. }
  159030. wg.Wait()
  159031. for _, e := range ret {
  159032. if e == graphql.Null {
  159033. return graphql.Null
  159034. }
  159035. }
  159036. return ret
  159037. }
  159038. func (ec *executionContext) marshalNCompanyContactRole2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRole(ctx context.Context, sel ast.SelectionSet, v *CompanyContactRole) graphql.Marshaler {
  159039. if v == nil {
  159040. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  159041. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  159042. }
  159043. return graphql.Null
  159044. }
  159045. return ec._CompanyContactRole(ctx, sel, v)
  159046. }
  159047. func (ec *executionContext) marshalNCompanyContactRoleAssignment2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRoleAssignmentᚄ(ctx context.Context, sel ast.SelectionSet, v []*CompanyContactRoleAssignment) graphql.Marshaler {
  159048. ret := make(graphql.Array, len(v))
  159049. var wg sync.WaitGroup
  159050. isLen1 := len(v) == 1
  159051. if !isLen1 {
  159052. wg.Add(len(v))
  159053. }
  159054. for i := range v {
  159055. i := i
  159056. fc := &graphql.FieldContext{
  159057. Index: &i,
  159058. Result: &v[i],
  159059. }
  159060. ctx := graphql.WithFieldContext(ctx, fc)
  159061. f := func(i int) {
  159062. defer func() {
  159063. if r := recover(); r != nil {
  159064. ec.Error(ctx, ec.Recover(ctx, r))
  159065. ret = nil
  159066. }
  159067. }()
  159068. if !isLen1 {
  159069. defer wg.Done()
  159070. }
  159071. ret[i] = ec.marshalNCompanyContactRoleAssignment2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRoleAssignment(ctx, sel, v[i])
  159072. }
  159073. if isLen1 {
  159074. f(i)
  159075. } else {
  159076. go f(i)
  159077. }
  159078. }
  159079. wg.Wait()
  159080. for _, e := range ret {
  159081. if e == graphql.Null {
  159082. return graphql.Null
  159083. }
  159084. }
  159085. return ret
  159086. }
  159087. func (ec *executionContext) marshalNCompanyContactRoleAssignment2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRoleAssignment(ctx context.Context, sel ast.SelectionSet, v *CompanyContactRoleAssignment) graphql.Marshaler {
  159088. if v == nil {
  159089. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  159090. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  159091. }
  159092. return graphql.Null
  159093. }
  159094. return ec._CompanyContactRoleAssignment(ctx, sel, v)
  159095. }
  159096. func (ec *executionContext) marshalNCompanyContactRoleAssignmentConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRoleAssignmentConnection(ctx context.Context, sel ast.SelectionSet, v *CompanyContactRoleAssignmentConnection) graphql.Marshaler {
  159097. if v == nil {
  159098. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  159099. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  159100. }
  159101. return graphql.Null
  159102. }
  159103. return ec._CompanyContactRoleAssignmentConnection(ctx, sel, v)
  159104. }
  159105. func (ec *executionContext) marshalNCompanyContactRoleAssignmentEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRoleAssignmentEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*CompanyContactRoleAssignmentEdge) graphql.Marshaler {
  159106. ret := make(graphql.Array, len(v))
  159107. var wg sync.WaitGroup
  159108. isLen1 := len(v) == 1
  159109. if !isLen1 {
  159110. wg.Add(len(v))
  159111. }
  159112. for i := range v {
  159113. i := i
  159114. fc := &graphql.FieldContext{
  159115. Index: &i,
  159116. Result: &v[i],
  159117. }
  159118. ctx := graphql.WithFieldContext(ctx, fc)
  159119. f := func(i int) {
  159120. defer func() {
  159121. if r := recover(); r != nil {
  159122. ec.Error(ctx, ec.Recover(ctx, r))
  159123. ret = nil
  159124. }
  159125. }()
  159126. if !isLen1 {
  159127. defer wg.Done()
  159128. }
  159129. ret[i] = ec.marshalNCompanyContactRoleAssignmentEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRoleAssignmentEdge(ctx, sel, v[i])
  159130. }
  159131. if isLen1 {
  159132. f(i)
  159133. } else {
  159134. go f(i)
  159135. }
  159136. }
  159137. wg.Wait()
  159138. for _, e := range ret {
  159139. if e == graphql.Null {
  159140. return graphql.Null
  159141. }
  159142. }
  159143. return ret
  159144. }
  159145. func (ec *executionContext) marshalNCompanyContactRoleAssignmentEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRoleAssignmentEdge(ctx context.Context, sel ast.SelectionSet, v *CompanyContactRoleAssignmentEdge) graphql.Marshaler {
  159146. if v == nil {
  159147. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  159148. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  159149. }
  159150. return graphql.Null
  159151. }
  159152. return ec._CompanyContactRoleAssignmentEdge(ctx, sel, v)
  159153. }
  159154. func (ec *executionContext) marshalNCompanyContactRoleConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRoleConnection(ctx context.Context, sel ast.SelectionSet, v *CompanyContactRoleConnection) graphql.Marshaler {
  159155. if v == nil {
  159156. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  159157. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  159158. }
  159159. return graphql.Null
  159160. }
  159161. return ec._CompanyContactRoleConnection(ctx, sel, v)
  159162. }
  159163. func (ec *executionContext) marshalNCompanyContactRoleEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRoleEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*CompanyContactRoleEdge) graphql.Marshaler {
  159164. ret := make(graphql.Array, len(v))
  159165. var wg sync.WaitGroup
  159166. isLen1 := len(v) == 1
  159167. if !isLen1 {
  159168. wg.Add(len(v))
  159169. }
  159170. for i := range v {
  159171. i := i
  159172. fc := &graphql.FieldContext{
  159173. Index: &i,
  159174. Result: &v[i],
  159175. }
  159176. ctx := graphql.WithFieldContext(ctx, fc)
  159177. f := func(i int) {
  159178. defer func() {
  159179. if r := recover(); r != nil {
  159180. ec.Error(ctx, ec.Recover(ctx, r))
  159181. ret = nil
  159182. }
  159183. }()
  159184. if !isLen1 {
  159185. defer wg.Done()
  159186. }
  159187. ret[i] = ec.marshalNCompanyContactRoleEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRoleEdge(ctx, sel, v[i])
  159188. }
  159189. if isLen1 {
  159190. f(i)
  159191. } else {
  159192. go f(i)
  159193. }
  159194. }
  159195. wg.Wait()
  159196. for _, e := range ret {
  159197. if e == graphql.Null {
  159198. return graphql.Null
  159199. }
  159200. }
  159201. return ret
  159202. }
  159203. func (ec *executionContext) marshalNCompanyContactRoleEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRoleEdge(ctx context.Context, sel ast.SelectionSet, v *CompanyContactRoleEdge) graphql.Marshaler {
  159204. if v == nil {
  159205. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  159206. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  159207. }
  159208. return graphql.Null
  159209. }
  159210. return ec._CompanyContactRoleEdge(ctx, sel, v)
  159211. }
  159212. func (ec *executionContext) marshalNCompanyLocation2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyLocationᚄ(ctx context.Context, sel ast.SelectionSet, v []*CompanyLocation) graphql.Marshaler {
  159213. ret := make(graphql.Array, len(v))
  159214. var wg sync.WaitGroup
  159215. isLen1 := len(v) == 1
  159216. if !isLen1 {
  159217. wg.Add(len(v))
  159218. }
  159219. for i := range v {
  159220. i := i
  159221. fc := &graphql.FieldContext{
  159222. Index: &i,
  159223. Result: &v[i],
  159224. }
  159225. ctx := graphql.WithFieldContext(ctx, fc)
  159226. f := func(i int) {
  159227. defer func() {
  159228. if r := recover(); r != nil {
  159229. ec.Error(ctx, ec.Recover(ctx, r))
  159230. ret = nil
  159231. }
  159232. }()
  159233. if !isLen1 {
  159234. defer wg.Done()
  159235. }
  159236. ret[i] = ec.marshalNCompanyLocation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyLocation(ctx, sel, v[i])
  159237. }
  159238. if isLen1 {
  159239. f(i)
  159240. } else {
  159241. go f(i)
  159242. }
  159243. }
  159244. wg.Wait()
  159245. for _, e := range ret {
  159246. if e == graphql.Null {
  159247. return graphql.Null
  159248. }
  159249. }
  159250. return ret
  159251. }
  159252. func (ec *executionContext) marshalNCompanyLocation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyLocation(ctx context.Context, sel ast.SelectionSet, v *CompanyLocation) graphql.Marshaler {
  159253. if v == nil {
  159254. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  159255. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  159256. }
  159257. return graphql.Null
  159258. }
  159259. return ec._CompanyLocation(ctx, sel, v)
  159260. }
  159261. func (ec *executionContext) marshalNCompanyLocationConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyLocationConnection(ctx context.Context, sel ast.SelectionSet, v *CompanyLocationConnection) graphql.Marshaler {
  159262. if v == nil {
  159263. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  159264. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  159265. }
  159266. return graphql.Null
  159267. }
  159268. return ec._CompanyLocationConnection(ctx, sel, v)
  159269. }
  159270. func (ec *executionContext) marshalNCompanyLocationEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyLocationEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*CompanyLocationEdge) graphql.Marshaler {
  159271. ret := make(graphql.Array, len(v))
  159272. var wg sync.WaitGroup
  159273. isLen1 := len(v) == 1
  159274. if !isLen1 {
  159275. wg.Add(len(v))
  159276. }
  159277. for i := range v {
  159278. i := i
  159279. fc := &graphql.FieldContext{
  159280. Index: &i,
  159281. Result: &v[i],
  159282. }
  159283. ctx := graphql.WithFieldContext(ctx, fc)
  159284. f := func(i int) {
  159285. defer func() {
  159286. if r := recover(); r != nil {
  159287. ec.Error(ctx, ec.Recover(ctx, r))
  159288. ret = nil
  159289. }
  159290. }()
  159291. if !isLen1 {
  159292. defer wg.Done()
  159293. }
  159294. ret[i] = ec.marshalNCompanyLocationEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyLocationEdge(ctx, sel, v[i])
  159295. }
  159296. if isLen1 {
  159297. f(i)
  159298. } else {
  159299. go f(i)
  159300. }
  159301. }
  159302. wg.Wait()
  159303. for _, e := range ret {
  159304. if e == graphql.Null {
  159305. return graphql.Null
  159306. }
  159307. }
  159308. return ret
  159309. }
  159310. func (ec *executionContext) marshalNCompanyLocationEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyLocationEdge(ctx context.Context, sel ast.SelectionSet, v *CompanyLocationEdge) graphql.Marshaler {
  159311. if v == nil {
  159312. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  159313. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  159314. }
  159315. return graphql.Null
  159316. }
  159317. return ec._CompanyLocationEdge(ctx, sel, v)
  159318. }
  159319. func (ec *executionContext) unmarshalNContextualPricingContext2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐContextualPricingContext(ctx context.Context, v interface{}) (ContextualPricingContext, error) {
  159320. res, err := ec.unmarshalInputContextualPricingContext(ctx, v)
  159321. return res, graphql.ErrorOnPath(ctx, err)
  159322. }
  159323. func (ec *executionContext) marshalNCountriesInShippingZones2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountriesInShippingZones(ctx context.Context, sel ast.SelectionSet, v *CountriesInShippingZones) graphql.Marshaler {
  159324. if v == nil {
  159325. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  159326. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  159327. }
  159328. return graphql.Null
  159329. }
  159330. return ec._CountriesInShippingZones(ctx, sel, v)
  159331. }
  159332. func (ec *executionContext) unmarshalNCountryCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCode(ctx context.Context, v interface{}) (CountryCode, error) {
  159333. var res CountryCode
  159334. err := res.UnmarshalGQL(v)
  159335. return res, graphql.ErrorOnPath(ctx, err)
  159336. }
  159337. func (ec *executionContext) marshalNCountryCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCode(ctx context.Context, sel ast.SelectionSet, v CountryCode) graphql.Marshaler {
  159338. return v
  159339. }
  159340. func (ec *executionContext) unmarshalNCountryCode2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCodeᚄ(ctx context.Context, v interface{}) ([]CountryCode, error) {
  159341. var vSlice []interface{}
  159342. if v != nil {
  159343. vSlice = graphql.CoerceList(v)
  159344. }
  159345. var err error
  159346. res := make([]CountryCode, len(vSlice))
  159347. for i := range vSlice {
  159348. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  159349. res[i], err = ec.unmarshalNCountryCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCode(ctx, vSlice[i])
  159350. if err != nil {
  159351. return nil, err
  159352. }
  159353. }
  159354. return res, nil
  159355. }
  159356. func (ec *executionContext) marshalNCountryCode2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCodeᚄ(ctx context.Context, sel ast.SelectionSet, v []CountryCode) graphql.Marshaler {
  159357. ret := make(graphql.Array, len(v))
  159358. var wg sync.WaitGroup
  159359. isLen1 := len(v) == 1
  159360. if !isLen1 {
  159361. wg.Add(len(v))
  159362. }
  159363. for i := range v {
  159364. i := i
  159365. fc := &graphql.FieldContext{
  159366. Index: &i,
  159367. Result: &v[i],
  159368. }
  159369. ctx := graphql.WithFieldContext(ctx, fc)
  159370. f := func(i int) {
  159371. defer func() {
  159372. if r := recover(); r != nil {
  159373. ec.Error(ctx, ec.Recover(ctx, r))
  159374. ret = nil
  159375. }
  159376. }()
  159377. if !isLen1 {
  159378. defer wg.Done()
  159379. }
  159380. ret[i] = ec.marshalNCountryCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCode(ctx, sel, v[i])
  159381. }
  159382. if isLen1 {
  159383. f(i)
  159384. } else {
  159385. go f(i)
  159386. }
  159387. }
  159388. wg.Wait()
  159389. for _, e := range ret {
  159390. if e == graphql.Null {
  159391. return graphql.Null
  159392. }
  159393. }
  159394. return ret
  159395. }
  159396. func (ec *executionContext) marshalNCountryHarmonizedSystemCode2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryHarmonizedSystemCodeᚄ(ctx context.Context, sel ast.SelectionSet, v []*CountryHarmonizedSystemCode) graphql.Marshaler {
  159397. ret := make(graphql.Array, len(v))
  159398. var wg sync.WaitGroup
  159399. isLen1 := len(v) == 1
  159400. if !isLen1 {
  159401. wg.Add(len(v))
  159402. }
  159403. for i := range v {
  159404. i := i
  159405. fc := &graphql.FieldContext{
  159406. Index: &i,
  159407. Result: &v[i],
  159408. }
  159409. ctx := graphql.WithFieldContext(ctx, fc)
  159410. f := func(i int) {
  159411. defer func() {
  159412. if r := recover(); r != nil {
  159413. ec.Error(ctx, ec.Recover(ctx, r))
  159414. ret = nil
  159415. }
  159416. }()
  159417. if !isLen1 {
  159418. defer wg.Done()
  159419. }
  159420. ret[i] = ec.marshalNCountryHarmonizedSystemCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryHarmonizedSystemCode(ctx, sel, v[i])
  159421. }
  159422. if isLen1 {
  159423. f(i)
  159424. } else {
  159425. go f(i)
  159426. }
  159427. }
  159428. wg.Wait()
  159429. for _, e := range ret {
  159430. if e == graphql.Null {
  159431. return graphql.Null
  159432. }
  159433. }
  159434. return ret
  159435. }
  159436. func (ec *executionContext) marshalNCountryHarmonizedSystemCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryHarmonizedSystemCode(ctx context.Context, sel ast.SelectionSet, v *CountryHarmonizedSystemCode) graphql.Marshaler {
  159437. if v == nil {
  159438. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  159439. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  159440. }
  159441. return graphql.Null
  159442. }
  159443. return ec._CountryHarmonizedSystemCode(ctx, sel, v)
  159444. }
  159445. func (ec *executionContext) marshalNCountryHarmonizedSystemCodeConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryHarmonizedSystemCodeConnection(ctx context.Context, sel ast.SelectionSet, v *CountryHarmonizedSystemCodeConnection) graphql.Marshaler {
  159446. if v == nil {
  159447. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  159448. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  159449. }
  159450. return graphql.Null
  159451. }
  159452. return ec._CountryHarmonizedSystemCodeConnection(ctx, sel, v)
  159453. }
  159454. func (ec *executionContext) marshalNCountryHarmonizedSystemCodeEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryHarmonizedSystemCodeEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*CountryHarmonizedSystemCodeEdge) graphql.Marshaler {
  159455. ret := make(graphql.Array, len(v))
  159456. var wg sync.WaitGroup
  159457. isLen1 := len(v) == 1
  159458. if !isLen1 {
  159459. wg.Add(len(v))
  159460. }
  159461. for i := range v {
  159462. i := i
  159463. fc := &graphql.FieldContext{
  159464. Index: &i,
  159465. Result: &v[i],
  159466. }
  159467. ctx := graphql.WithFieldContext(ctx, fc)
  159468. f := func(i int) {
  159469. defer func() {
  159470. if r := recover(); r != nil {
  159471. ec.Error(ctx, ec.Recover(ctx, r))
  159472. ret = nil
  159473. }
  159474. }()
  159475. if !isLen1 {
  159476. defer wg.Done()
  159477. }
  159478. ret[i] = ec.marshalNCountryHarmonizedSystemCodeEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryHarmonizedSystemCodeEdge(ctx, sel, v[i])
  159479. }
  159480. if isLen1 {
  159481. f(i)
  159482. } else {
  159483. go f(i)
  159484. }
  159485. }
  159486. wg.Wait()
  159487. for _, e := range ret {
  159488. if e == graphql.Null {
  159489. return graphql.Null
  159490. }
  159491. }
  159492. return ret
  159493. }
  159494. func (ec *executionContext) marshalNCountryHarmonizedSystemCodeEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryHarmonizedSystemCodeEdge(ctx context.Context, sel ast.SelectionSet, v *CountryHarmonizedSystemCodeEdge) graphql.Marshaler {
  159495. if v == nil {
  159496. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  159497. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  159498. }
  159499. return graphql.Null
  159500. }
  159501. return ec._CountryHarmonizedSystemCodeEdge(ctx, sel, v)
  159502. }
  159503. func (ec *executionContext) unmarshalNCurrencyCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencyCode(ctx context.Context, v interface{}) (CurrencyCode, error) {
  159504. var res CurrencyCode
  159505. err := res.UnmarshalGQL(v)
  159506. return res, graphql.ErrorOnPath(ctx, err)
  159507. }
  159508. func (ec *executionContext) marshalNCurrencyCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencyCode(ctx context.Context, sel ast.SelectionSet, v CurrencyCode) graphql.Marshaler {
  159509. return v
  159510. }
  159511. func (ec *executionContext) unmarshalNCurrencyCode2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencyCodeᚄ(ctx context.Context, v interface{}) ([]CurrencyCode, error) {
  159512. var vSlice []interface{}
  159513. if v != nil {
  159514. vSlice = graphql.CoerceList(v)
  159515. }
  159516. var err error
  159517. res := make([]CurrencyCode, len(vSlice))
  159518. for i := range vSlice {
  159519. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  159520. res[i], err = ec.unmarshalNCurrencyCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencyCode(ctx, vSlice[i])
  159521. if err != nil {
  159522. return nil, err
  159523. }
  159524. }
  159525. return res, nil
  159526. }
  159527. func (ec *executionContext) marshalNCurrencyCode2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencyCodeᚄ(ctx context.Context, sel ast.SelectionSet, v []CurrencyCode) graphql.Marshaler {
  159528. ret := make(graphql.Array, len(v))
  159529. var wg sync.WaitGroup
  159530. isLen1 := len(v) == 1
  159531. if !isLen1 {
  159532. wg.Add(len(v))
  159533. }
  159534. for i := range v {
  159535. i := i
  159536. fc := &graphql.FieldContext{
  159537. Index: &i,
  159538. Result: &v[i],
  159539. }
  159540. ctx := graphql.WithFieldContext(ctx, fc)
  159541. f := func(i int) {
  159542. defer func() {
  159543. if r := recover(); r != nil {
  159544. ec.Error(ctx, ec.Recover(ctx, r))
  159545. ret = nil
  159546. }
  159547. }()
  159548. if !isLen1 {
  159549. defer wg.Done()
  159550. }
  159551. ret[i] = ec.marshalNCurrencyCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencyCode(ctx, sel, v[i])
  159552. }
  159553. if isLen1 {
  159554. f(i)
  159555. } else {
  159556. go f(i)
  159557. }
  159558. }
  159559. wg.Wait()
  159560. for _, e := range ret {
  159561. if e == graphql.Null {
  159562. return graphql.Null
  159563. }
  159564. }
  159565. return ret
  159566. }
  159567. func (ec *executionContext) marshalNCurrencyFormats2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencyFormats(ctx context.Context, sel ast.SelectionSet, v *CurrencyFormats) graphql.Marshaler {
  159568. if v == nil {
  159569. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  159570. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  159571. }
  159572. return graphql.Null
  159573. }
  159574. return ec._CurrencyFormats(ctx, sel, v)
  159575. }
  159576. func (ec *executionContext) marshalNCurrencySetting2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencySettingᚄ(ctx context.Context, sel ast.SelectionSet, v []*CurrencySetting) graphql.Marshaler {
  159577. ret := make(graphql.Array, len(v))
  159578. var wg sync.WaitGroup
  159579. isLen1 := len(v) == 1
  159580. if !isLen1 {
  159581. wg.Add(len(v))
  159582. }
  159583. for i := range v {
  159584. i := i
  159585. fc := &graphql.FieldContext{
  159586. Index: &i,
  159587. Result: &v[i],
  159588. }
  159589. ctx := graphql.WithFieldContext(ctx, fc)
  159590. f := func(i int) {
  159591. defer func() {
  159592. if r := recover(); r != nil {
  159593. ec.Error(ctx, ec.Recover(ctx, r))
  159594. ret = nil
  159595. }
  159596. }()
  159597. if !isLen1 {
  159598. defer wg.Done()
  159599. }
  159600. ret[i] = ec.marshalNCurrencySetting2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencySetting(ctx, sel, v[i])
  159601. }
  159602. if isLen1 {
  159603. f(i)
  159604. } else {
  159605. go f(i)
  159606. }
  159607. }
  159608. wg.Wait()
  159609. for _, e := range ret {
  159610. if e == graphql.Null {
  159611. return graphql.Null
  159612. }
  159613. }
  159614. return ret
  159615. }
  159616. func (ec *executionContext) marshalNCurrencySetting2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencySetting(ctx context.Context, sel ast.SelectionSet, v *CurrencySetting) graphql.Marshaler {
  159617. if v == nil {
  159618. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  159619. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  159620. }
  159621. return graphql.Null
  159622. }
  159623. return ec._CurrencySetting(ctx, sel, v)
  159624. }
  159625. func (ec *executionContext) marshalNCurrencySettingConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencySettingConnection(ctx context.Context, sel ast.SelectionSet, v *CurrencySettingConnection) graphql.Marshaler {
  159626. if v == nil {
  159627. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  159628. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  159629. }
  159630. return graphql.Null
  159631. }
  159632. return ec._CurrencySettingConnection(ctx, sel, v)
  159633. }
  159634. func (ec *executionContext) marshalNCurrencySettingEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencySettingEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*CurrencySettingEdge) graphql.Marshaler {
  159635. ret := make(graphql.Array, len(v))
  159636. var wg sync.WaitGroup
  159637. isLen1 := len(v) == 1
  159638. if !isLen1 {
  159639. wg.Add(len(v))
  159640. }
  159641. for i := range v {
  159642. i := i
  159643. fc := &graphql.FieldContext{
  159644. Index: &i,
  159645. Result: &v[i],
  159646. }
  159647. ctx := graphql.WithFieldContext(ctx, fc)
  159648. f := func(i int) {
  159649. defer func() {
  159650. if r := recover(); r != nil {
  159651. ec.Error(ctx, ec.Recover(ctx, r))
  159652. ret = nil
  159653. }
  159654. }()
  159655. if !isLen1 {
  159656. defer wg.Done()
  159657. }
  159658. ret[i] = ec.marshalNCurrencySettingEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencySettingEdge(ctx, sel, v[i])
  159659. }
  159660. if isLen1 {
  159661. f(i)
  159662. } else {
  159663. go f(i)
  159664. }
  159665. }
  159666. wg.Wait()
  159667. for _, e := range ret {
  159668. if e == graphql.Null {
  159669. return graphql.Null
  159670. }
  159671. }
  159672. return ret
  159673. }
  159674. func (ec *executionContext) marshalNCurrencySettingEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencySettingEdge(ctx context.Context, sel ast.SelectionSet, v *CurrencySettingEdge) graphql.Marshaler {
  159675. if v == nil {
  159676. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  159677. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  159678. }
  159679. return graphql.Null
  159680. }
  159681. return ec._CurrencySettingEdge(ctx, sel, v)
  159682. }
  159683. func (ec *executionContext) marshalNCustomer2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomer(ctx context.Context, sel ast.SelectionSet, v *Customer) graphql.Marshaler {
  159684. if v == nil {
  159685. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  159686. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  159687. }
  159688. return graphql.Null
  159689. }
  159690. return ec._Customer(ctx, sel, v)
  159691. }
  159692. func (ec *executionContext) unmarshalNCustomerEmailMarketingState2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerEmailMarketingState(ctx context.Context, v interface{}) (CustomerEmailMarketingState, error) {
  159693. var res CustomerEmailMarketingState
  159694. err := res.UnmarshalGQL(v)
  159695. return res, graphql.ErrorOnPath(ctx, err)
  159696. }
  159697. func (ec *executionContext) marshalNCustomerEmailMarketingState2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerEmailMarketingState(ctx context.Context, sel ast.SelectionSet, v CustomerEmailMarketingState) graphql.Marshaler {
  159698. return v
  159699. }
  159700. func (ec *executionContext) unmarshalNCustomerInput2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerInput(ctx context.Context, v interface{}) (CustomerInput, error) {
  159701. res, err := ec.unmarshalInputCustomerInput(ctx, v)
  159702. return res, graphql.ErrorOnPath(ctx, err)
  159703. }
  159704. func (ec *executionContext) unmarshalNCustomerMarketingOptInLevel2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerMarketingOptInLevel(ctx context.Context, v interface{}) (CustomerMarketingOptInLevel, error) {
  159705. var res CustomerMarketingOptInLevel
  159706. err := res.UnmarshalGQL(v)
  159707. return res, graphql.ErrorOnPath(ctx, err)
  159708. }
  159709. func (ec *executionContext) marshalNCustomerMarketingOptInLevel2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerMarketingOptInLevel(ctx context.Context, sel ast.SelectionSet, v CustomerMarketingOptInLevel) graphql.Marshaler {
  159710. return v
  159711. }
  159712. func (ec *executionContext) marshalNCustomerMoment2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerMoment(ctx context.Context, sel ast.SelectionSet, v CustomerMoment) graphql.Marshaler {
  159713. if v == nil {
  159714. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  159715. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  159716. }
  159717. return graphql.Null
  159718. }
  159719. return ec._CustomerMoment(ctx, sel, v)
  159720. }
  159721. func (ec *executionContext) marshalNCustomerMoment2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerMomentᚄ(ctx context.Context, sel ast.SelectionSet, v []CustomerMoment) graphql.Marshaler {
  159722. ret := make(graphql.Array, len(v))
  159723. var wg sync.WaitGroup
  159724. isLen1 := len(v) == 1
  159725. if !isLen1 {
  159726. wg.Add(len(v))
  159727. }
  159728. for i := range v {
  159729. i := i
  159730. fc := &graphql.FieldContext{
  159731. Index: &i,
  159732. Result: &v[i],
  159733. }
  159734. ctx := graphql.WithFieldContext(ctx, fc)
  159735. f := func(i int) {
  159736. defer func() {
  159737. if r := recover(); r != nil {
  159738. ec.Error(ctx, ec.Recover(ctx, r))
  159739. ret = nil
  159740. }
  159741. }()
  159742. if !isLen1 {
  159743. defer wg.Done()
  159744. }
  159745. ret[i] = ec.marshalNCustomerMoment2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerMoment(ctx, sel, v[i])
  159746. }
  159747. if isLen1 {
  159748. f(i)
  159749. } else {
  159750. go f(i)
  159751. }
  159752. }
  159753. wg.Wait()
  159754. for _, e := range ret {
  159755. if e == graphql.Null {
  159756. return graphql.Null
  159757. }
  159758. }
  159759. return ret
  159760. }
  159761. func (ec *executionContext) marshalNCustomerMomentEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerMomentEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*CustomerMomentEdge) graphql.Marshaler {
  159762. ret := make(graphql.Array, len(v))
  159763. var wg sync.WaitGroup
  159764. isLen1 := len(v) == 1
  159765. if !isLen1 {
  159766. wg.Add(len(v))
  159767. }
  159768. for i := range v {
  159769. i := i
  159770. fc := &graphql.FieldContext{
  159771. Index: &i,
  159772. Result: &v[i],
  159773. }
  159774. ctx := graphql.WithFieldContext(ctx, fc)
  159775. f := func(i int) {
  159776. defer func() {
  159777. if r := recover(); r != nil {
  159778. ec.Error(ctx, ec.Recover(ctx, r))
  159779. ret = nil
  159780. }
  159781. }()
  159782. if !isLen1 {
  159783. defer wg.Done()
  159784. }
  159785. ret[i] = ec.marshalNCustomerMomentEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerMomentEdge(ctx, sel, v[i])
  159786. }
  159787. if isLen1 {
  159788. f(i)
  159789. } else {
  159790. go f(i)
  159791. }
  159792. }
  159793. wg.Wait()
  159794. for _, e := range ret {
  159795. if e == graphql.Null {
  159796. return graphql.Null
  159797. }
  159798. }
  159799. return ret
  159800. }
  159801. func (ec *executionContext) marshalNCustomerMomentEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerMomentEdge(ctx context.Context, sel ast.SelectionSet, v *CustomerMomentEdge) graphql.Marshaler {
  159802. if v == nil {
  159803. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  159804. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  159805. }
  159806. return graphql.Null
  159807. }
  159808. return ec._CustomerMomentEdge(ctx, sel, v)
  159809. }
  159810. func (ec *executionContext) marshalNCustomerPaymentMethod2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerPaymentMethodᚄ(ctx context.Context, sel ast.SelectionSet, v []*CustomerPaymentMethod) graphql.Marshaler {
  159811. ret := make(graphql.Array, len(v))
  159812. var wg sync.WaitGroup
  159813. isLen1 := len(v) == 1
  159814. if !isLen1 {
  159815. wg.Add(len(v))
  159816. }
  159817. for i := range v {
  159818. i := i
  159819. fc := &graphql.FieldContext{
  159820. Index: &i,
  159821. Result: &v[i],
  159822. }
  159823. ctx := graphql.WithFieldContext(ctx, fc)
  159824. f := func(i int) {
  159825. defer func() {
  159826. if r := recover(); r != nil {
  159827. ec.Error(ctx, ec.Recover(ctx, r))
  159828. ret = nil
  159829. }
  159830. }()
  159831. if !isLen1 {
  159832. defer wg.Done()
  159833. }
  159834. ret[i] = ec.marshalNCustomerPaymentMethod2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerPaymentMethod(ctx, sel, v[i])
  159835. }
  159836. if isLen1 {
  159837. f(i)
  159838. } else {
  159839. go f(i)
  159840. }
  159841. }
  159842. wg.Wait()
  159843. for _, e := range ret {
  159844. if e == graphql.Null {
  159845. return graphql.Null
  159846. }
  159847. }
  159848. return ret
  159849. }
  159850. func (ec *executionContext) marshalNCustomerPaymentMethod2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerPaymentMethod(ctx context.Context, sel ast.SelectionSet, v *CustomerPaymentMethod) graphql.Marshaler {
  159851. if v == nil {
  159852. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  159853. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  159854. }
  159855. return graphql.Null
  159856. }
  159857. return ec._CustomerPaymentMethod(ctx, sel, v)
  159858. }
  159859. func (ec *executionContext) marshalNCustomerPaymentMethodConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerPaymentMethodConnection(ctx context.Context, sel ast.SelectionSet, v *CustomerPaymentMethodConnection) graphql.Marshaler {
  159860. if v == nil {
  159861. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  159862. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  159863. }
  159864. return graphql.Null
  159865. }
  159866. return ec._CustomerPaymentMethodConnection(ctx, sel, v)
  159867. }
  159868. func (ec *executionContext) marshalNCustomerPaymentMethodEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerPaymentMethodEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*CustomerPaymentMethodEdge) graphql.Marshaler {
  159869. ret := make(graphql.Array, len(v))
  159870. var wg sync.WaitGroup
  159871. isLen1 := len(v) == 1
  159872. if !isLen1 {
  159873. wg.Add(len(v))
  159874. }
  159875. for i := range v {
  159876. i := i
  159877. fc := &graphql.FieldContext{
  159878. Index: &i,
  159879. Result: &v[i],
  159880. }
  159881. ctx := graphql.WithFieldContext(ctx, fc)
  159882. f := func(i int) {
  159883. defer func() {
  159884. if r := recover(); r != nil {
  159885. ec.Error(ctx, ec.Recover(ctx, r))
  159886. ret = nil
  159887. }
  159888. }()
  159889. if !isLen1 {
  159890. defer wg.Done()
  159891. }
  159892. ret[i] = ec.marshalNCustomerPaymentMethodEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerPaymentMethodEdge(ctx, sel, v[i])
  159893. }
  159894. if isLen1 {
  159895. f(i)
  159896. } else {
  159897. go f(i)
  159898. }
  159899. }
  159900. wg.Wait()
  159901. for _, e := range ret {
  159902. if e == graphql.Null {
  159903. return graphql.Null
  159904. }
  159905. }
  159906. return ret
  159907. }
  159908. func (ec *executionContext) marshalNCustomerPaymentMethodEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerPaymentMethodEdge(ctx context.Context, sel ast.SelectionSet, v *CustomerPaymentMethodEdge) graphql.Marshaler {
  159909. if v == nil {
  159910. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  159911. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  159912. }
  159913. return graphql.Null
  159914. }
  159915. return ec._CustomerPaymentMethodEdge(ctx, sel, v)
  159916. }
  159917. func (ec *executionContext) unmarshalNCustomerProductSubscriberStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerProductSubscriberStatus(ctx context.Context, v interface{}) (CustomerProductSubscriberStatus, error) {
  159918. var res CustomerProductSubscriberStatus
  159919. err := res.UnmarshalGQL(v)
  159920. return res, graphql.ErrorOnPath(ctx, err)
  159921. }
  159922. func (ec *executionContext) marshalNCustomerProductSubscriberStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerProductSubscriberStatus(ctx context.Context, sel ast.SelectionSet, v CustomerProductSubscriberStatus) graphql.Marshaler {
  159923. return v
  159924. }
  159925. func (ec *executionContext) unmarshalNCustomerSmsMarketingState2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerSmsMarketingState(ctx context.Context, v interface{}) (CustomerSmsMarketingState, error) {
  159926. var res CustomerSmsMarketingState
  159927. err := res.UnmarshalGQL(v)
  159928. return res, graphql.ErrorOnPath(ctx, err)
  159929. }
  159930. func (ec *executionContext) marshalNCustomerSmsMarketingState2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerSmsMarketingState(ctx context.Context, sel ast.SelectionSet, v CustomerSmsMarketingState) graphql.Marshaler {
  159931. return v
  159932. }
  159933. func (ec *executionContext) unmarshalNCustomerState2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerState(ctx context.Context, v interface{}) (CustomerState, error) {
  159934. var res CustomerState
  159935. err := res.UnmarshalGQL(v)
  159936. return res, graphql.ErrorOnPath(ctx, err)
  159937. }
  159938. func (ec *executionContext) marshalNCustomerState2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerState(ctx context.Context, sel ast.SelectionSet, v CustomerState) graphql.Marshaler {
  159939. return v
  159940. }
  159941. func (ec *executionContext) marshalNCustomerStatistics2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerStatistics(ctx context.Context, sel ast.SelectionSet, v *CustomerStatistics) graphql.Marshaler {
  159942. if v == nil {
  159943. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  159944. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  159945. }
  159946. return graphql.Null
  159947. }
  159948. return ec._CustomerStatistics(ctx, sel, v)
  159949. }
  159950. func (ec *executionContext) unmarshalNDateTime2string(ctx context.Context, v interface{}) (string, error) {
  159951. res, err := graphql.UnmarshalString(v)
  159952. return res, graphql.ErrorOnPath(ctx, err)
  159953. }
  159954. func (ec *executionContext) marshalNDateTime2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  159955. res := graphql.MarshalString(v)
  159956. if res == graphql.Null {
  159957. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  159958. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  159959. }
  159960. }
  159961. return res
  159962. }
  159963. func (ec *executionContext) unmarshalNDecimal2string(ctx context.Context, v interface{}) (string, error) {
  159964. res, err := graphql.UnmarshalString(v)
  159965. return res, graphql.ErrorOnPath(ctx, err)
  159966. }
  159967. func (ec *executionContext) marshalNDecimal2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  159968. res := graphql.MarshalString(v)
  159969. if res == graphql.Null {
  159970. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  159971. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  159972. }
  159973. }
  159974. return res
  159975. }
  159976. func (ec *executionContext) marshalNDeliveryAvailableService2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryAvailableServiceᚄ(ctx context.Context, sel ast.SelectionSet, v []*DeliveryAvailableService) graphql.Marshaler {
  159977. ret := make(graphql.Array, len(v))
  159978. var wg sync.WaitGroup
  159979. isLen1 := len(v) == 1
  159980. if !isLen1 {
  159981. wg.Add(len(v))
  159982. }
  159983. for i := range v {
  159984. i := i
  159985. fc := &graphql.FieldContext{
  159986. Index: &i,
  159987. Result: &v[i],
  159988. }
  159989. ctx := graphql.WithFieldContext(ctx, fc)
  159990. f := func(i int) {
  159991. defer func() {
  159992. if r := recover(); r != nil {
  159993. ec.Error(ctx, ec.Recover(ctx, r))
  159994. ret = nil
  159995. }
  159996. }()
  159997. if !isLen1 {
  159998. defer wg.Done()
  159999. }
  160000. ret[i] = ec.marshalNDeliveryAvailableService2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryAvailableService(ctx, sel, v[i])
  160001. }
  160002. if isLen1 {
  160003. f(i)
  160004. } else {
  160005. go f(i)
  160006. }
  160007. }
  160008. wg.Wait()
  160009. for _, e := range ret {
  160010. if e == graphql.Null {
  160011. return graphql.Null
  160012. }
  160013. }
  160014. return ret
  160015. }
  160016. func (ec *executionContext) marshalNDeliveryAvailableService2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryAvailableService(ctx context.Context, sel ast.SelectionSet, v *DeliveryAvailableService) graphql.Marshaler {
  160017. if v == nil {
  160018. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160019. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160020. }
  160021. return graphql.Null
  160022. }
  160023. return ec._DeliveryAvailableService(ctx, sel, v)
  160024. }
  160025. func (ec *executionContext) marshalNDeliveryCarrierService2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryCarrierService(ctx context.Context, sel ast.SelectionSet, v *DeliveryCarrierService) graphql.Marshaler {
  160026. if v == nil {
  160027. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160028. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160029. }
  160030. return graphql.Null
  160031. }
  160032. return ec._DeliveryCarrierService(ctx, sel, v)
  160033. }
  160034. func (ec *executionContext) marshalNDeliveryCondition2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryConditionᚄ(ctx context.Context, sel ast.SelectionSet, v []*DeliveryCondition) graphql.Marshaler {
  160035. ret := make(graphql.Array, len(v))
  160036. var wg sync.WaitGroup
  160037. isLen1 := len(v) == 1
  160038. if !isLen1 {
  160039. wg.Add(len(v))
  160040. }
  160041. for i := range v {
  160042. i := i
  160043. fc := &graphql.FieldContext{
  160044. Index: &i,
  160045. Result: &v[i],
  160046. }
  160047. ctx := graphql.WithFieldContext(ctx, fc)
  160048. f := func(i int) {
  160049. defer func() {
  160050. if r := recover(); r != nil {
  160051. ec.Error(ctx, ec.Recover(ctx, r))
  160052. ret = nil
  160053. }
  160054. }()
  160055. if !isLen1 {
  160056. defer wg.Done()
  160057. }
  160058. ret[i] = ec.marshalNDeliveryCondition2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryCondition(ctx, sel, v[i])
  160059. }
  160060. if isLen1 {
  160061. f(i)
  160062. } else {
  160063. go f(i)
  160064. }
  160065. }
  160066. wg.Wait()
  160067. for _, e := range ret {
  160068. if e == graphql.Null {
  160069. return graphql.Null
  160070. }
  160071. }
  160072. return ret
  160073. }
  160074. func (ec *executionContext) marshalNDeliveryCondition2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryCondition(ctx context.Context, sel ast.SelectionSet, v *DeliveryCondition) graphql.Marshaler {
  160075. if v == nil {
  160076. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160077. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160078. }
  160079. return graphql.Null
  160080. }
  160081. return ec._DeliveryCondition(ctx, sel, v)
  160082. }
  160083. func (ec *executionContext) marshalNDeliveryConditionCriteria2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryConditionCriteria(ctx context.Context, sel ast.SelectionSet, v DeliveryConditionCriteria) graphql.Marshaler {
  160084. if v == nil {
  160085. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160086. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160087. }
  160088. return graphql.Null
  160089. }
  160090. return ec._DeliveryConditionCriteria(ctx, sel, v)
  160091. }
  160092. func (ec *executionContext) unmarshalNDeliveryConditionField2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryConditionField(ctx context.Context, v interface{}) (DeliveryConditionField, error) {
  160093. var res DeliveryConditionField
  160094. err := res.UnmarshalGQL(v)
  160095. return res, graphql.ErrorOnPath(ctx, err)
  160096. }
  160097. func (ec *executionContext) marshalNDeliveryConditionField2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryConditionField(ctx context.Context, sel ast.SelectionSet, v DeliveryConditionField) graphql.Marshaler {
  160098. return v
  160099. }
  160100. func (ec *executionContext) unmarshalNDeliveryConditionOperator2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryConditionOperator(ctx context.Context, v interface{}) (DeliveryConditionOperator, error) {
  160101. var res DeliveryConditionOperator
  160102. err := res.UnmarshalGQL(v)
  160103. return res, graphql.ErrorOnPath(ctx, err)
  160104. }
  160105. func (ec *executionContext) marshalNDeliveryConditionOperator2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryConditionOperator(ctx context.Context, sel ast.SelectionSet, v DeliveryConditionOperator) graphql.Marshaler {
  160106. return v
  160107. }
  160108. func (ec *executionContext) marshalNDeliveryCountry2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryCountryᚄ(ctx context.Context, sel ast.SelectionSet, v []*DeliveryCountry) graphql.Marshaler {
  160109. ret := make(graphql.Array, len(v))
  160110. var wg sync.WaitGroup
  160111. isLen1 := len(v) == 1
  160112. if !isLen1 {
  160113. wg.Add(len(v))
  160114. }
  160115. for i := range v {
  160116. i := i
  160117. fc := &graphql.FieldContext{
  160118. Index: &i,
  160119. Result: &v[i],
  160120. }
  160121. ctx := graphql.WithFieldContext(ctx, fc)
  160122. f := func(i int) {
  160123. defer func() {
  160124. if r := recover(); r != nil {
  160125. ec.Error(ctx, ec.Recover(ctx, r))
  160126. ret = nil
  160127. }
  160128. }()
  160129. if !isLen1 {
  160130. defer wg.Done()
  160131. }
  160132. ret[i] = ec.marshalNDeliveryCountry2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryCountry(ctx, sel, v[i])
  160133. }
  160134. if isLen1 {
  160135. f(i)
  160136. } else {
  160137. go f(i)
  160138. }
  160139. }
  160140. wg.Wait()
  160141. for _, e := range ret {
  160142. if e == graphql.Null {
  160143. return graphql.Null
  160144. }
  160145. }
  160146. return ret
  160147. }
  160148. func (ec *executionContext) marshalNDeliveryCountry2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryCountry(ctx context.Context, sel ast.SelectionSet, v *DeliveryCountry) graphql.Marshaler {
  160149. if v == nil {
  160150. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160151. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160152. }
  160153. return graphql.Null
  160154. }
  160155. return ec._DeliveryCountry(ctx, sel, v)
  160156. }
  160157. func (ec *executionContext) marshalNDeliveryCountryAndZone2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryCountryAndZoneᚄ(ctx context.Context, sel ast.SelectionSet, v []*DeliveryCountryAndZone) graphql.Marshaler {
  160158. ret := make(graphql.Array, len(v))
  160159. var wg sync.WaitGroup
  160160. isLen1 := len(v) == 1
  160161. if !isLen1 {
  160162. wg.Add(len(v))
  160163. }
  160164. for i := range v {
  160165. i := i
  160166. fc := &graphql.FieldContext{
  160167. Index: &i,
  160168. Result: &v[i],
  160169. }
  160170. ctx := graphql.WithFieldContext(ctx, fc)
  160171. f := func(i int) {
  160172. defer func() {
  160173. if r := recover(); r != nil {
  160174. ec.Error(ctx, ec.Recover(ctx, r))
  160175. ret = nil
  160176. }
  160177. }()
  160178. if !isLen1 {
  160179. defer wg.Done()
  160180. }
  160181. ret[i] = ec.marshalNDeliveryCountryAndZone2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryCountryAndZone(ctx, sel, v[i])
  160182. }
  160183. if isLen1 {
  160184. f(i)
  160185. } else {
  160186. go f(i)
  160187. }
  160188. }
  160189. wg.Wait()
  160190. for _, e := range ret {
  160191. if e == graphql.Null {
  160192. return graphql.Null
  160193. }
  160194. }
  160195. return ret
  160196. }
  160197. func (ec *executionContext) marshalNDeliveryCountryAndZone2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryCountryAndZone(ctx context.Context, sel ast.SelectionSet, v *DeliveryCountryAndZone) graphql.Marshaler {
  160198. if v == nil {
  160199. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160200. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160201. }
  160202. return graphql.Null
  160203. }
  160204. return ec._DeliveryCountryAndZone(ctx, sel, v)
  160205. }
  160206. func (ec *executionContext) marshalNDeliveryCountryCodeOrRestOfWorld2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryCountryCodeOrRestOfWorld(ctx context.Context, sel ast.SelectionSet, v *DeliveryCountryCodeOrRestOfWorld) graphql.Marshaler {
  160207. if v == nil {
  160208. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160209. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160210. }
  160211. return graphql.Null
  160212. }
  160213. return ec._DeliveryCountryCodeOrRestOfWorld(ctx, sel, v)
  160214. }
  160215. func (ec *executionContext) marshalNDeliveryCountryCodesOrRestOfWorld2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryCountryCodesOrRestOfWorld(ctx context.Context, sel ast.SelectionSet, v *DeliveryCountryCodesOrRestOfWorld) graphql.Marshaler {
  160216. if v == nil {
  160217. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160218. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160219. }
  160220. return graphql.Null
  160221. }
  160222. return ec._DeliveryCountryCodesOrRestOfWorld(ctx, sel, v)
  160223. }
  160224. func (ec *executionContext) marshalNDeliveryLocationGroup2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryLocationGroup(ctx context.Context, sel ast.SelectionSet, v *DeliveryLocationGroup) graphql.Marshaler {
  160225. if v == nil {
  160226. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160227. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160228. }
  160229. return graphql.Null
  160230. }
  160231. return ec._DeliveryLocationGroup(ctx, sel, v)
  160232. }
  160233. func (ec *executionContext) marshalNDeliveryLocationGroupZone2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryLocationGroupZoneᚄ(ctx context.Context, sel ast.SelectionSet, v []*DeliveryLocationGroupZone) graphql.Marshaler {
  160234. ret := make(graphql.Array, len(v))
  160235. var wg sync.WaitGroup
  160236. isLen1 := len(v) == 1
  160237. if !isLen1 {
  160238. wg.Add(len(v))
  160239. }
  160240. for i := range v {
  160241. i := i
  160242. fc := &graphql.FieldContext{
  160243. Index: &i,
  160244. Result: &v[i],
  160245. }
  160246. ctx := graphql.WithFieldContext(ctx, fc)
  160247. f := func(i int) {
  160248. defer func() {
  160249. if r := recover(); r != nil {
  160250. ec.Error(ctx, ec.Recover(ctx, r))
  160251. ret = nil
  160252. }
  160253. }()
  160254. if !isLen1 {
  160255. defer wg.Done()
  160256. }
  160257. ret[i] = ec.marshalNDeliveryLocationGroupZone2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryLocationGroupZone(ctx, sel, v[i])
  160258. }
  160259. if isLen1 {
  160260. f(i)
  160261. } else {
  160262. go f(i)
  160263. }
  160264. }
  160265. wg.Wait()
  160266. for _, e := range ret {
  160267. if e == graphql.Null {
  160268. return graphql.Null
  160269. }
  160270. }
  160271. return ret
  160272. }
  160273. func (ec *executionContext) marshalNDeliveryLocationGroupZone2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryLocationGroupZone(ctx context.Context, sel ast.SelectionSet, v *DeliveryLocationGroupZone) graphql.Marshaler {
  160274. if v == nil {
  160275. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160276. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160277. }
  160278. return graphql.Null
  160279. }
  160280. return ec._DeliveryLocationGroupZone(ctx, sel, v)
  160281. }
  160282. func (ec *executionContext) marshalNDeliveryLocationGroupZoneConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryLocationGroupZoneConnection(ctx context.Context, sel ast.SelectionSet, v *DeliveryLocationGroupZoneConnection) graphql.Marshaler {
  160283. if v == nil {
  160284. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160285. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160286. }
  160287. return graphql.Null
  160288. }
  160289. return ec._DeliveryLocationGroupZoneConnection(ctx, sel, v)
  160290. }
  160291. func (ec *executionContext) marshalNDeliveryLocationGroupZoneEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryLocationGroupZoneEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*DeliveryLocationGroupZoneEdge) graphql.Marshaler {
  160292. ret := make(graphql.Array, len(v))
  160293. var wg sync.WaitGroup
  160294. isLen1 := len(v) == 1
  160295. if !isLen1 {
  160296. wg.Add(len(v))
  160297. }
  160298. for i := range v {
  160299. i := i
  160300. fc := &graphql.FieldContext{
  160301. Index: &i,
  160302. Result: &v[i],
  160303. }
  160304. ctx := graphql.WithFieldContext(ctx, fc)
  160305. f := func(i int) {
  160306. defer func() {
  160307. if r := recover(); r != nil {
  160308. ec.Error(ctx, ec.Recover(ctx, r))
  160309. ret = nil
  160310. }
  160311. }()
  160312. if !isLen1 {
  160313. defer wg.Done()
  160314. }
  160315. ret[i] = ec.marshalNDeliveryLocationGroupZoneEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryLocationGroupZoneEdge(ctx, sel, v[i])
  160316. }
  160317. if isLen1 {
  160318. f(i)
  160319. } else {
  160320. go f(i)
  160321. }
  160322. }
  160323. wg.Wait()
  160324. for _, e := range ret {
  160325. if e == graphql.Null {
  160326. return graphql.Null
  160327. }
  160328. }
  160329. return ret
  160330. }
  160331. func (ec *executionContext) marshalNDeliveryLocationGroupZoneEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryLocationGroupZoneEdge(ctx context.Context, sel ast.SelectionSet, v *DeliveryLocationGroupZoneEdge) graphql.Marshaler {
  160332. if v == nil {
  160333. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160334. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160335. }
  160336. return graphql.Null
  160337. }
  160338. return ec._DeliveryLocationGroupZoneEdge(ctx, sel, v)
  160339. }
  160340. func (ec *executionContext) marshalNDeliveryMethodDefinition2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryMethodDefinitionᚄ(ctx context.Context, sel ast.SelectionSet, v []*DeliveryMethodDefinition) graphql.Marshaler {
  160341. ret := make(graphql.Array, len(v))
  160342. var wg sync.WaitGroup
  160343. isLen1 := len(v) == 1
  160344. if !isLen1 {
  160345. wg.Add(len(v))
  160346. }
  160347. for i := range v {
  160348. i := i
  160349. fc := &graphql.FieldContext{
  160350. Index: &i,
  160351. Result: &v[i],
  160352. }
  160353. ctx := graphql.WithFieldContext(ctx, fc)
  160354. f := func(i int) {
  160355. defer func() {
  160356. if r := recover(); r != nil {
  160357. ec.Error(ctx, ec.Recover(ctx, r))
  160358. ret = nil
  160359. }
  160360. }()
  160361. if !isLen1 {
  160362. defer wg.Done()
  160363. }
  160364. ret[i] = ec.marshalNDeliveryMethodDefinition2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryMethodDefinition(ctx, sel, v[i])
  160365. }
  160366. if isLen1 {
  160367. f(i)
  160368. } else {
  160369. go f(i)
  160370. }
  160371. }
  160372. wg.Wait()
  160373. for _, e := range ret {
  160374. if e == graphql.Null {
  160375. return graphql.Null
  160376. }
  160377. }
  160378. return ret
  160379. }
  160380. func (ec *executionContext) marshalNDeliveryMethodDefinition2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryMethodDefinition(ctx context.Context, sel ast.SelectionSet, v *DeliveryMethodDefinition) graphql.Marshaler {
  160381. if v == nil {
  160382. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160383. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160384. }
  160385. return graphql.Null
  160386. }
  160387. return ec._DeliveryMethodDefinition(ctx, sel, v)
  160388. }
  160389. func (ec *executionContext) marshalNDeliveryMethodDefinitionConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryMethodDefinitionConnection(ctx context.Context, sel ast.SelectionSet, v *DeliveryMethodDefinitionConnection) graphql.Marshaler {
  160390. if v == nil {
  160391. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160392. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160393. }
  160394. return graphql.Null
  160395. }
  160396. return ec._DeliveryMethodDefinitionConnection(ctx, sel, v)
  160397. }
  160398. func (ec *executionContext) marshalNDeliveryMethodDefinitionCounts2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryMethodDefinitionCounts(ctx context.Context, sel ast.SelectionSet, v *DeliveryMethodDefinitionCounts) graphql.Marshaler {
  160399. if v == nil {
  160400. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160401. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160402. }
  160403. return graphql.Null
  160404. }
  160405. return ec._DeliveryMethodDefinitionCounts(ctx, sel, v)
  160406. }
  160407. func (ec *executionContext) marshalNDeliveryMethodDefinitionEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryMethodDefinitionEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*DeliveryMethodDefinitionEdge) graphql.Marshaler {
  160408. ret := make(graphql.Array, len(v))
  160409. var wg sync.WaitGroup
  160410. isLen1 := len(v) == 1
  160411. if !isLen1 {
  160412. wg.Add(len(v))
  160413. }
  160414. for i := range v {
  160415. i := i
  160416. fc := &graphql.FieldContext{
  160417. Index: &i,
  160418. Result: &v[i],
  160419. }
  160420. ctx := graphql.WithFieldContext(ctx, fc)
  160421. f := func(i int) {
  160422. defer func() {
  160423. if r := recover(); r != nil {
  160424. ec.Error(ctx, ec.Recover(ctx, r))
  160425. ret = nil
  160426. }
  160427. }()
  160428. if !isLen1 {
  160429. defer wg.Done()
  160430. }
  160431. ret[i] = ec.marshalNDeliveryMethodDefinitionEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryMethodDefinitionEdge(ctx, sel, v[i])
  160432. }
  160433. if isLen1 {
  160434. f(i)
  160435. } else {
  160436. go f(i)
  160437. }
  160438. }
  160439. wg.Wait()
  160440. for _, e := range ret {
  160441. if e == graphql.Null {
  160442. return graphql.Null
  160443. }
  160444. }
  160445. return ret
  160446. }
  160447. func (ec *executionContext) marshalNDeliveryMethodDefinitionEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryMethodDefinitionEdge(ctx context.Context, sel ast.SelectionSet, v *DeliveryMethodDefinitionEdge) graphql.Marshaler {
  160448. if v == nil {
  160449. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160450. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160451. }
  160452. return graphql.Null
  160453. }
  160454. return ec._DeliveryMethodDefinitionEdge(ctx, sel, v)
  160455. }
  160456. func (ec *executionContext) unmarshalNDeliveryMethodType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryMethodType(ctx context.Context, v interface{}) (DeliveryMethodType, error) {
  160457. var res DeliveryMethodType
  160458. err := res.UnmarshalGQL(v)
  160459. return res, graphql.ErrorOnPath(ctx, err)
  160460. }
  160461. func (ec *executionContext) marshalNDeliveryMethodType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryMethodType(ctx context.Context, sel ast.SelectionSet, v DeliveryMethodType) graphql.Marshaler {
  160462. return v
  160463. }
  160464. func (ec *executionContext) marshalNDeliveryParticipantService2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryParticipantServiceᚄ(ctx context.Context, sel ast.SelectionSet, v []*DeliveryParticipantService) graphql.Marshaler {
  160465. ret := make(graphql.Array, len(v))
  160466. var wg sync.WaitGroup
  160467. isLen1 := len(v) == 1
  160468. if !isLen1 {
  160469. wg.Add(len(v))
  160470. }
  160471. for i := range v {
  160472. i := i
  160473. fc := &graphql.FieldContext{
  160474. Index: &i,
  160475. Result: &v[i],
  160476. }
  160477. ctx := graphql.WithFieldContext(ctx, fc)
  160478. f := func(i int) {
  160479. defer func() {
  160480. if r := recover(); r != nil {
  160481. ec.Error(ctx, ec.Recover(ctx, r))
  160482. ret = nil
  160483. }
  160484. }()
  160485. if !isLen1 {
  160486. defer wg.Done()
  160487. }
  160488. ret[i] = ec.marshalNDeliveryParticipantService2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryParticipantService(ctx, sel, v[i])
  160489. }
  160490. if isLen1 {
  160491. f(i)
  160492. } else {
  160493. go f(i)
  160494. }
  160495. }
  160496. wg.Wait()
  160497. for _, e := range ret {
  160498. if e == graphql.Null {
  160499. return graphql.Null
  160500. }
  160501. }
  160502. return ret
  160503. }
  160504. func (ec *executionContext) marshalNDeliveryParticipantService2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryParticipantService(ctx context.Context, sel ast.SelectionSet, v *DeliveryParticipantService) graphql.Marshaler {
  160505. if v == nil {
  160506. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160507. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160508. }
  160509. return graphql.Null
  160510. }
  160511. return ec._DeliveryParticipantService(ctx, sel, v)
  160512. }
  160513. func (ec *executionContext) marshalNDeliveryProductVariantsCount2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryProductVariantsCount(ctx context.Context, sel ast.SelectionSet, v *DeliveryProductVariantsCount) graphql.Marshaler {
  160514. if v == nil {
  160515. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160516. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160517. }
  160518. return graphql.Null
  160519. }
  160520. return ec._DeliveryProductVariantsCount(ctx, sel, v)
  160521. }
  160522. func (ec *executionContext) marshalNDeliveryProfileItem2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryProfileItemᚄ(ctx context.Context, sel ast.SelectionSet, v []*DeliveryProfileItem) graphql.Marshaler {
  160523. ret := make(graphql.Array, len(v))
  160524. var wg sync.WaitGroup
  160525. isLen1 := len(v) == 1
  160526. if !isLen1 {
  160527. wg.Add(len(v))
  160528. }
  160529. for i := range v {
  160530. i := i
  160531. fc := &graphql.FieldContext{
  160532. Index: &i,
  160533. Result: &v[i],
  160534. }
  160535. ctx := graphql.WithFieldContext(ctx, fc)
  160536. f := func(i int) {
  160537. defer func() {
  160538. if r := recover(); r != nil {
  160539. ec.Error(ctx, ec.Recover(ctx, r))
  160540. ret = nil
  160541. }
  160542. }()
  160543. if !isLen1 {
  160544. defer wg.Done()
  160545. }
  160546. ret[i] = ec.marshalNDeliveryProfileItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryProfileItem(ctx, sel, v[i])
  160547. }
  160548. if isLen1 {
  160549. f(i)
  160550. } else {
  160551. go f(i)
  160552. }
  160553. }
  160554. wg.Wait()
  160555. for _, e := range ret {
  160556. if e == graphql.Null {
  160557. return graphql.Null
  160558. }
  160559. }
  160560. return ret
  160561. }
  160562. func (ec *executionContext) marshalNDeliveryProfileItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryProfileItem(ctx context.Context, sel ast.SelectionSet, v *DeliveryProfileItem) graphql.Marshaler {
  160563. if v == nil {
  160564. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160565. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160566. }
  160567. return graphql.Null
  160568. }
  160569. return ec._DeliveryProfileItem(ctx, sel, v)
  160570. }
  160571. func (ec *executionContext) marshalNDeliveryProfileItemConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryProfileItemConnection(ctx context.Context, sel ast.SelectionSet, v *DeliveryProfileItemConnection) graphql.Marshaler {
  160572. if v == nil {
  160573. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160574. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160575. }
  160576. return graphql.Null
  160577. }
  160578. return ec._DeliveryProfileItemConnection(ctx, sel, v)
  160579. }
  160580. func (ec *executionContext) marshalNDeliveryProfileItemEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryProfileItemEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*DeliveryProfileItemEdge) graphql.Marshaler {
  160581. ret := make(graphql.Array, len(v))
  160582. var wg sync.WaitGroup
  160583. isLen1 := len(v) == 1
  160584. if !isLen1 {
  160585. wg.Add(len(v))
  160586. }
  160587. for i := range v {
  160588. i := i
  160589. fc := &graphql.FieldContext{
  160590. Index: &i,
  160591. Result: &v[i],
  160592. }
  160593. ctx := graphql.WithFieldContext(ctx, fc)
  160594. f := func(i int) {
  160595. defer func() {
  160596. if r := recover(); r != nil {
  160597. ec.Error(ctx, ec.Recover(ctx, r))
  160598. ret = nil
  160599. }
  160600. }()
  160601. if !isLen1 {
  160602. defer wg.Done()
  160603. }
  160604. ret[i] = ec.marshalNDeliveryProfileItemEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryProfileItemEdge(ctx, sel, v[i])
  160605. }
  160606. if isLen1 {
  160607. f(i)
  160608. } else {
  160609. go f(i)
  160610. }
  160611. }
  160612. wg.Wait()
  160613. for _, e := range ret {
  160614. if e == graphql.Null {
  160615. return graphql.Null
  160616. }
  160617. }
  160618. return ret
  160619. }
  160620. func (ec *executionContext) marshalNDeliveryProfileItemEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryProfileItemEdge(ctx context.Context, sel ast.SelectionSet, v *DeliveryProfileItemEdge) graphql.Marshaler {
  160621. if v == nil {
  160622. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160623. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160624. }
  160625. return graphql.Null
  160626. }
  160627. return ec._DeliveryProfileItemEdge(ctx, sel, v)
  160628. }
  160629. func (ec *executionContext) marshalNDeliveryProfileLocationGroup2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryProfileLocationGroupᚄ(ctx context.Context, sel ast.SelectionSet, v []*DeliveryProfileLocationGroup) graphql.Marshaler {
  160630. ret := make(graphql.Array, len(v))
  160631. var wg sync.WaitGroup
  160632. isLen1 := len(v) == 1
  160633. if !isLen1 {
  160634. wg.Add(len(v))
  160635. }
  160636. for i := range v {
  160637. i := i
  160638. fc := &graphql.FieldContext{
  160639. Index: &i,
  160640. Result: &v[i],
  160641. }
  160642. ctx := graphql.WithFieldContext(ctx, fc)
  160643. f := func(i int) {
  160644. defer func() {
  160645. if r := recover(); r != nil {
  160646. ec.Error(ctx, ec.Recover(ctx, r))
  160647. ret = nil
  160648. }
  160649. }()
  160650. if !isLen1 {
  160651. defer wg.Done()
  160652. }
  160653. ret[i] = ec.marshalNDeliveryProfileLocationGroup2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryProfileLocationGroup(ctx, sel, v[i])
  160654. }
  160655. if isLen1 {
  160656. f(i)
  160657. } else {
  160658. go f(i)
  160659. }
  160660. }
  160661. wg.Wait()
  160662. for _, e := range ret {
  160663. if e == graphql.Null {
  160664. return graphql.Null
  160665. }
  160666. }
  160667. return ret
  160668. }
  160669. func (ec *executionContext) marshalNDeliveryProfileLocationGroup2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryProfileLocationGroup(ctx context.Context, sel ast.SelectionSet, v *DeliveryProfileLocationGroup) graphql.Marshaler {
  160670. if v == nil {
  160671. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160672. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160673. }
  160674. return graphql.Null
  160675. }
  160676. return ec._DeliveryProfileLocationGroup(ctx, sel, v)
  160677. }
  160678. func (ec *executionContext) marshalNDeliveryProvince2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryProvinceᚄ(ctx context.Context, sel ast.SelectionSet, v []*DeliveryProvince) graphql.Marshaler {
  160679. ret := make(graphql.Array, len(v))
  160680. var wg sync.WaitGroup
  160681. isLen1 := len(v) == 1
  160682. if !isLen1 {
  160683. wg.Add(len(v))
  160684. }
  160685. for i := range v {
  160686. i := i
  160687. fc := &graphql.FieldContext{
  160688. Index: &i,
  160689. Result: &v[i],
  160690. }
  160691. ctx := graphql.WithFieldContext(ctx, fc)
  160692. f := func(i int) {
  160693. defer func() {
  160694. if r := recover(); r != nil {
  160695. ec.Error(ctx, ec.Recover(ctx, r))
  160696. ret = nil
  160697. }
  160698. }()
  160699. if !isLen1 {
  160700. defer wg.Done()
  160701. }
  160702. ret[i] = ec.marshalNDeliveryProvince2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryProvince(ctx, sel, v[i])
  160703. }
  160704. if isLen1 {
  160705. f(i)
  160706. } else {
  160707. go f(i)
  160708. }
  160709. }
  160710. wg.Wait()
  160711. for _, e := range ret {
  160712. if e == graphql.Null {
  160713. return graphql.Null
  160714. }
  160715. }
  160716. return ret
  160717. }
  160718. func (ec *executionContext) marshalNDeliveryProvince2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryProvince(ctx context.Context, sel ast.SelectionSet, v *DeliveryProvince) graphql.Marshaler {
  160719. if v == nil {
  160720. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160721. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160722. }
  160723. return graphql.Null
  160724. }
  160725. return ec._DeliveryProvince(ctx, sel, v)
  160726. }
  160727. func (ec *executionContext) marshalNDeliveryRateProvider2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryRateProvider(ctx context.Context, sel ast.SelectionSet, v DeliveryRateProvider) graphql.Marshaler {
  160728. if v == nil {
  160729. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160730. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160731. }
  160732. return graphql.Null
  160733. }
  160734. return ec._DeliveryRateProvider(ctx, sel, v)
  160735. }
  160736. func (ec *executionContext) marshalNDeliveryZone2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryZone(ctx context.Context, sel ast.SelectionSet, v *DeliveryZone) graphql.Marshaler {
  160737. if v == nil {
  160738. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160739. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160740. }
  160741. return graphql.Null
  160742. }
  160743. return ec._DeliveryZone(ctx, sel, v)
  160744. }
  160745. func (ec *executionContext) unmarshalNDigitalWallet2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDigitalWallet(ctx context.Context, v interface{}) (DigitalWallet, error) {
  160746. var res DigitalWallet
  160747. err := res.UnmarshalGQL(v)
  160748. return res, graphql.ErrorOnPath(ctx, err)
  160749. }
  160750. func (ec *executionContext) marshalNDigitalWallet2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDigitalWallet(ctx context.Context, sel ast.SelectionSet, v DigitalWallet) graphql.Marshaler {
  160751. return v
  160752. }
  160753. func (ec *executionContext) unmarshalNDigitalWallet2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDigitalWalletᚄ(ctx context.Context, v interface{}) ([]DigitalWallet, error) {
  160754. var vSlice []interface{}
  160755. if v != nil {
  160756. vSlice = graphql.CoerceList(v)
  160757. }
  160758. var err error
  160759. res := make([]DigitalWallet, len(vSlice))
  160760. for i := range vSlice {
  160761. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  160762. res[i], err = ec.unmarshalNDigitalWallet2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDigitalWallet(ctx, vSlice[i])
  160763. if err != nil {
  160764. return nil, err
  160765. }
  160766. }
  160767. return res, nil
  160768. }
  160769. func (ec *executionContext) marshalNDigitalWallet2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDigitalWalletᚄ(ctx context.Context, sel ast.SelectionSet, v []DigitalWallet) graphql.Marshaler {
  160770. ret := make(graphql.Array, len(v))
  160771. var wg sync.WaitGroup
  160772. isLen1 := len(v) == 1
  160773. if !isLen1 {
  160774. wg.Add(len(v))
  160775. }
  160776. for i := range v {
  160777. i := i
  160778. fc := &graphql.FieldContext{
  160779. Index: &i,
  160780. Result: &v[i],
  160781. }
  160782. ctx := graphql.WithFieldContext(ctx, fc)
  160783. f := func(i int) {
  160784. defer func() {
  160785. if r := recover(); r != nil {
  160786. ec.Error(ctx, ec.Recover(ctx, r))
  160787. ret = nil
  160788. }
  160789. }()
  160790. if !isLen1 {
  160791. defer wg.Done()
  160792. }
  160793. ret[i] = ec.marshalNDigitalWallet2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDigitalWallet(ctx, sel, v[i])
  160794. }
  160795. if isLen1 {
  160796. f(i)
  160797. } else {
  160798. go f(i)
  160799. }
  160800. }
  160801. wg.Wait()
  160802. for _, e := range ret {
  160803. if e == graphql.Null {
  160804. return graphql.Null
  160805. }
  160806. }
  160807. return ret
  160808. }
  160809. func (ec *executionContext) marshalNDiscountAllocation2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountAllocationᚄ(ctx context.Context, sel ast.SelectionSet, v []*DiscountAllocation) graphql.Marshaler {
  160810. ret := make(graphql.Array, len(v))
  160811. var wg sync.WaitGroup
  160812. isLen1 := len(v) == 1
  160813. if !isLen1 {
  160814. wg.Add(len(v))
  160815. }
  160816. for i := range v {
  160817. i := i
  160818. fc := &graphql.FieldContext{
  160819. Index: &i,
  160820. Result: &v[i],
  160821. }
  160822. ctx := graphql.WithFieldContext(ctx, fc)
  160823. f := func(i int) {
  160824. defer func() {
  160825. if r := recover(); r != nil {
  160826. ec.Error(ctx, ec.Recover(ctx, r))
  160827. ret = nil
  160828. }
  160829. }()
  160830. if !isLen1 {
  160831. defer wg.Done()
  160832. }
  160833. ret[i] = ec.marshalNDiscountAllocation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountAllocation(ctx, sel, v[i])
  160834. }
  160835. if isLen1 {
  160836. f(i)
  160837. } else {
  160838. go f(i)
  160839. }
  160840. }
  160841. wg.Wait()
  160842. for _, e := range ret {
  160843. if e == graphql.Null {
  160844. return graphql.Null
  160845. }
  160846. }
  160847. return ret
  160848. }
  160849. func (ec *executionContext) marshalNDiscountAllocation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountAllocation(ctx context.Context, sel ast.SelectionSet, v *DiscountAllocation) graphql.Marshaler {
  160850. if v == nil {
  160851. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160852. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160853. }
  160854. return graphql.Null
  160855. }
  160856. return ec._DiscountAllocation(ctx, sel, v)
  160857. }
  160858. func (ec *executionContext) marshalNDiscountApplication2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplication(ctx context.Context, sel ast.SelectionSet, v DiscountApplication) graphql.Marshaler {
  160859. if v == nil {
  160860. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160861. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160862. }
  160863. return graphql.Null
  160864. }
  160865. return ec._DiscountApplication(ctx, sel, v)
  160866. }
  160867. func (ec *executionContext) marshalNDiscountApplication2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplicationᚄ(ctx context.Context, sel ast.SelectionSet, v []DiscountApplication) graphql.Marshaler {
  160868. ret := make(graphql.Array, len(v))
  160869. var wg sync.WaitGroup
  160870. isLen1 := len(v) == 1
  160871. if !isLen1 {
  160872. wg.Add(len(v))
  160873. }
  160874. for i := range v {
  160875. i := i
  160876. fc := &graphql.FieldContext{
  160877. Index: &i,
  160878. Result: &v[i],
  160879. }
  160880. ctx := graphql.WithFieldContext(ctx, fc)
  160881. f := func(i int) {
  160882. defer func() {
  160883. if r := recover(); r != nil {
  160884. ec.Error(ctx, ec.Recover(ctx, r))
  160885. ret = nil
  160886. }
  160887. }()
  160888. if !isLen1 {
  160889. defer wg.Done()
  160890. }
  160891. ret[i] = ec.marshalNDiscountApplication2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplication(ctx, sel, v[i])
  160892. }
  160893. if isLen1 {
  160894. f(i)
  160895. } else {
  160896. go f(i)
  160897. }
  160898. }
  160899. wg.Wait()
  160900. for _, e := range ret {
  160901. if e == graphql.Null {
  160902. return graphql.Null
  160903. }
  160904. }
  160905. return ret
  160906. }
  160907. func (ec *executionContext) unmarshalNDiscountApplicationAllocationMethod2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplicationAllocationMethod(ctx context.Context, v interface{}) (DiscountApplicationAllocationMethod, error) {
  160908. var res DiscountApplicationAllocationMethod
  160909. err := res.UnmarshalGQL(v)
  160910. return res, graphql.ErrorOnPath(ctx, err)
  160911. }
  160912. func (ec *executionContext) marshalNDiscountApplicationAllocationMethod2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplicationAllocationMethod(ctx context.Context, sel ast.SelectionSet, v DiscountApplicationAllocationMethod) graphql.Marshaler {
  160913. return v
  160914. }
  160915. func (ec *executionContext) marshalNDiscountApplicationConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplicationConnection(ctx context.Context, sel ast.SelectionSet, v *DiscountApplicationConnection) graphql.Marshaler {
  160916. if v == nil {
  160917. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160918. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160919. }
  160920. return graphql.Null
  160921. }
  160922. return ec._DiscountApplicationConnection(ctx, sel, v)
  160923. }
  160924. func (ec *executionContext) marshalNDiscountApplicationEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplicationEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*DiscountApplicationEdge) graphql.Marshaler {
  160925. ret := make(graphql.Array, len(v))
  160926. var wg sync.WaitGroup
  160927. isLen1 := len(v) == 1
  160928. if !isLen1 {
  160929. wg.Add(len(v))
  160930. }
  160931. for i := range v {
  160932. i := i
  160933. fc := &graphql.FieldContext{
  160934. Index: &i,
  160935. Result: &v[i],
  160936. }
  160937. ctx := graphql.WithFieldContext(ctx, fc)
  160938. f := func(i int) {
  160939. defer func() {
  160940. if r := recover(); r != nil {
  160941. ec.Error(ctx, ec.Recover(ctx, r))
  160942. ret = nil
  160943. }
  160944. }()
  160945. if !isLen1 {
  160946. defer wg.Done()
  160947. }
  160948. ret[i] = ec.marshalNDiscountApplicationEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplicationEdge(ctx, sel, v[i])
  160949. }
  160950. if isLen1 {
  160951. f(i)
  160952. } else {
  160953. go f(i)
  160954. }
  160955. }
  160956. wg.Wait()
  160957. for _, e := range ret {
  160958. if e == graphql.Null {
  160959. return graphql.Null
  160960. }
  160961. }
  160962. return ret
  160963. }
  160964. func (ec *executionContext) marshalNDiscountApplicationEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplicationEdge(ctx context.Context, sel ast.SelectionSet, v *DiscountApplicationEdge) graphql.Marshaler {
  160965. if v == nil {
  160966. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  160967. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  160968. }
  160969. return graphql.Null
  160970. }
  160971. return ec._DiscountApplicationEdge(ctx, sel, v)
  160972. }
  160973. func (ec *executionContext) unmarshalNDiscountApplicationTargetSelection2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplicationTargetSelection(ctx context.Context, v interface{}) (DiscountApplicationTargetSelection, error) {
  160974. var res DiscountApplicationTargetSelection
  160975. err := res.UnmarshalGQL(v)
  160976. return res, graphql.ErrorOnPath(ctx, err)
  160977. }
  160978. func (ec *executionContext) marshalNDiscountApplicationTargetSelection2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplicationTargetSelection(ctx context.Context, sel ast.SelectionSet, v DiscountApplicationTargetSelection) graphql.Marshaler {
  160979. return v
  160980. }
  160981. func (ec *executionContext) unmarshalNDiscountApplicationTargetType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplicationTargetType(ctx context.Context, v interface{}) (DiscountApplicationTargetType, error) {
  160982. var res DiscountApplicationTargetType
  160983. err := res.UnmarshalGQL(v)
  160984. return res, graphql.ErrorOnPath(ctx, err)
  160985. }
  160986. func (ec *executionContext) marshalNDiscountApplicationTargetType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountApplicationTargetType(ctx context.Context, sel ast.SelectionSet, v DiscountApplicationTargetType) graphql.Marshaler {
  160987. return v
  160988. }
  160989. func (ec *executionContext) unmarshalNDiscountTargetType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountTargetType(ctx context.Context, v interface{}) (DiscountTargetType, error) {
  160990. var res DiscountTargetType
  160991. err := res.UnmarshalGQL(v)
  160992. return res, graphql.ErrorOnPath(ctx, err)
  160993. }
  160994. func (ec *executionContext) marshalNDiscountTargetType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountTargetType(ctx context.Context, sel ast.SelectionSet, v DiscountTargetType) graphql.Marshaler {
  160995. return v
  160996. }
  160997. func (ec *executionContext) unmarshalNDiscountType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountType(ctx context.Context, v interface{}) (DiscountType, error) {
  160998. var res DiscountType
  160999. err := res.UnmarshalGQL(v)
  161000. return res, graphql.ErrorOnPath(ctx, err)
  161001. }
  161002. func (ec *executionContext) marshalNDiscountType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDiscountType(ctx context.Context, sel ast.SelectionSet, v DiscountType) graphql.Marshaler {
  161003. return v
  161004. }
  161005. func (ec *executionContext) unmarshalNDisputeStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDisputeStatus(ctx context.Context, v interface{}) (DisputeStatus, error) {
  161006. var res DisputeStatus
  161007. err := res.UnmarshalGQL(v)
  161008. return res, graphql.ErrorOnPath(ctx, err)
  161009. }
  161010. func (ec *executionContext) marshalNDisputeStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDisputeStatus(ctx context.Context, sel ast.SelectionSet, v DisputeStatus) graphql.Marshaler {
  161011. return v
  161012. }
  161013. func (ec *executionContext) unmarshalNDisputeType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDisputeType(ctx context.Context, v interface{}) (DisputeType, error) {
  161014. var res DisputeType
  161015. err := res.UnmarshalGQL(v)
  161016. return res, graphql.ErrorOnPath(ctx, err)
  161017. }
  161018. func (ec *executionContext) marshalNDisputeType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDisputeType(ctx context.Context, sel ast.SelectionSet, v DisputeType) graphql.Marshaler {
  161019. return v
  161020. }
  161021. func (ec *executionContext) marshalNDomain2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDomain(ctx context.Context, sel ast.SelectionSet, v *Domain) graphql.Marshaler {
  161022. if v == nil {
  161023. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  161024. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  161025. }
  161026. return graphql.Null
  161027. }
  161028. return ec._Domain(ctx, sel, v)
  161029. }
  161030. func (ec *executionContext) marshalNDraftOrder2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderᚄ(ctx context.Context, sel ast.SelectionSet, v []*DraftOrder) graphql.Marshaler {
  161031. ret := make(graphql.Array, len(v))
  161032. var wg sync.WaitGroup
  161033. isLen1 := len(v) == 1
  161034. if !isLen1 {
  161035. wg.Add(len(v))
  161036. }
  161037. for i := range v {
  161038. i := i
  161039. fc := &graphql.FieldContext{
  161040. Index: &i,
  161041. Result: &v[i],
  161042. }
  161043. ctx := graphql.WithFieldContext(ctx, fc)
  161044. f := func(i int) {
  161045. defer func() {
  161046. if r := recover(); r != nil {
  161047. ec.Error(ctx, ec.Recover(ctx, r))
  161048. ret = nil
  161049. }
  161050. }()
  161051. if !isLen1 {
  161052. defer wg.Done()
  161053. }
  161054. ret[i] = ec.marshalNDraftOrder2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrder(ctx, sel, v[i])
  161055. }
  161056. if isLen1 {
  161057. f(i)
  161058. } else {
  161059. go f(i)
  161060. }
  161061. }
  161062. wg.Wait()
  161063. for _, e := range ret {
  161064. if e == graphql.Null {
  161065. return graphql.Null
  161066. }
  161067. }
  161068. return ret
  161069. }
  161070. func (ec *executionContext) marshalNDraftOrder2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrder(ctx context.Context, sel ast.SelectionSet, v *DraftOrder) graphql.Marshaler {
  161071. if v == nil {
  161072. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  161073. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  161074. }
  161075. return graphql.Null
  161076. }
  161077. return ec._DraftOrder(ctx, sel, v)
  161078. }
  161079. func (ec *executionContext) unmarshalNDraftOrderAppliedDiscountType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderAppliedDiscountType(ctx context.Context, v interface{}) (DraftOrderAppliedDiscountType, error) {
  161080. var res DraftOrderAppliedDiscountType
  161081. err := res.UnmarshalGQL(v)
  161082. return res, graphql.ErrorOnPath(ctx, err)
  161083. }
  161084. func (ec *executionContext) marshalNDraftOrderAppliedDiscountType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderAppliedDiscountType(ctx context.Context, sel ast.SelectionSet, v DraftOrderAppliedDiscountType) graphql.Marshaler {
  161085. return v
  161086. }
  161087. func (ec *executionContext) marshalNDraftOrderConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderConnection(ctx context.Context, sel ast.SelectionSet, v *DraftOrderConnection) graphql.Marshaler {
  161088. if v == nil {
  161089. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  161090. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  161091. }
  161092. return graphql.Null
  161093. }
  161094. return ec._DraftOrderConnection(ctx, sel, v)
  161095. }
  161096. func (ec *executionContext) marshalNDraftOrderEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*DraftOrderEdge) graphql.Marshaler {
  161097. ret := make(graphql.Array, len(v))
  161098. var wg sync.WaitGroup
  161099. isLen1 := len(v) == 1
  161100. if !isLen1 {
  161101. wg.Add(len(v))
  161102. }
  161103. for i := range v {
  161104. i := i
  161105. fc := &graphql.FieldContext{
  161106. Index: &i,
  161107. Result: &v[i],
  161108. }
  161109. ctx := graphql.WithFieldContext(ctx, fc)
  161110. f := func(i int) {
  161111. defer func() {
  161112. if r := recover(); r != nil {
  161113. ec.Error(ctx, ec.Recover(ctx, r))
  161114. ret = nil
  161115. }
  161116. }()
  161117. if !isLen1 {
  161118. defer wg.Done()
  161119. }
  161120. ret[i] = ec.marshalNDraftOrderEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderEdge(ctx, sel, v[i])
  161121. }
  161122. if isLen1 {
  161123. f(i)
  161124. } else {
  161125. go f(i)
  161126. }
  161127. }
  161128. wg.Wait()
  161129. for _, e := range ret {
  161130. if e == graphql.Null {
  161131. return graphql.Null
  161132. }
  161133. }
  161134. return ret
  161135. }
  161136. func (ec *executionContext) marshalNDraftOrderEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderEdge(ctx context.Context, sel ast.SelectionSet, v *DraftOrderEdge) graphql.Marshaler {
  161137. if v == nil {
  161138. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  161139. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  161140. }
  161141. return graphql.Null
  161142. }
  161143. return ec._DraftOrderEdge(ctx, sel, v)
  161144. }
  161145. func (ec *executionContext) marshalNDraftOrderLineItem2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderLineItemᚄ(ctx context.Context, sel ast.SelectionSet, v []*DraftOrderLineItem) graphql.Marshaler {
  161146. ret := make(graphql.Array, len(v))
  161147. var wg sync.WaitGroup
  161148. isLen1 := len(v) == 1
  161149. if !isLen1 {
  161150. wg.Add(len(v))
  161151. }
  161152. for i := range v {
  161153. i := i
  161154. fc := &graphql.FieldContext{
  161155. Index: &i,
  161156. Result: &v[i],
  161157. }
  161158. ctx := graphql.WithFieldContext(ctx, fc)
  161159. f := func(i int) {
  161160. defer func() {
  161161. if r := recover(); r != nil {
  161162. ec.Error(ctx, ec.Recover(ctx, r))
  161163. ret = nil
  161164. }
  161165. }()
  161166. if !isLen1 {
  161167. defer wg.Done()
  161168. }
  161169. ret[i] = ec.marshalNDraftOrderLineItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderLineItem(ctx, sel, v[i])
  161170. }
  161171. if isLen1 {
  161172. f(i)
  161173. } else {
  161174. go f(i)
  161175. }
  161176. }
  161177. wg.Wait()
  161178. for _, e := range ret {
  161179. if e == graphql.Null {
  161180. return graphql.Null
  161181. }
  161182. }
  161183. return ret
  161184. }
  161185. func (ec *executionContext) marshalNDraftOrderLineItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderLineItem(ctx context.Context, sel ast.SelectionSet, v *DraftOrderLineItem) graphql.Marshaler {
  161186. if v == nil {
  161187. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  161188. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  161189. }
  161190. return graphql.Null
  161191. }
  161192. return ec._DraftOrderLineItem(ctx, sel, v)
  161193. }
  161194. func (ec *executionContext) marshalNDraftOrderLineItemConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderLineItemConnection(ctx context.Context, sel ast.SelectionSet, v *DraftOrderLineItemConnection) graphql.Marshaler {
  161195. if v == nil {
  161196. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  161197. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  161198. }
  161199. return graphql.Null
  161200. }
  161201. return ec._DraftOrderLineItemConnection(ctx, sel, v)
  161202. }
  161203. func (ec *executionContext) marshalNDraftOrderLineItemEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderLineItemEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*DraftOrderLineItemEdge) graphql.Marshaler {
  161204. ret := make(graphql.Array, len(v))
  161205. var wg sync.WaitGroup
  161206. isLen1 := len(v) == 1
  161207. if !isLen1 {
  161208. wg.Add(len(v))
  161209. }
  161210. for i := range v {
  161211. i := i
  161212. fc := &graphql.FieldContext{
  161213. Index: &i,
  161214. Result: &v[i],
  161215. }
  161216. ctx := graphql.WithFieldContext(ctx, fc)
  161217. f := func(i int) {
  161218. defer func() {
  161219. if r := recover(); r != nil {
  161220. ec.Error(ctx, ec.Recover(ctx, r))
  161221. ret = nil
  161222. }
  161223. }()
  161224. if !isLen1 {
  161225. defer wg.Done()
  161226. }
  161227. ret[i] = ec.marshalNDraftOrderLineItemEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderLineItemEdge(ctx, sel, v[i])
  161228. }
  161229. if isLen1 {
  161230. f(i)
  161231. } else {
  161232. go f(i)
  161233. }
  161234. }
  161235. wg.Wait()
  161236. for _, e := range ret {
  161237. if e == graphql.Null {
  161238. return graphql.Null
  161239. }
  161240. }
  161241. return ret
  161242. }
  161243. func (ec *executionContext) marshalNDraftOrderLineItemEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderLineItemEdge(ctx context.Context, sel ast.SelectionSet, v *DraftOrderLineItemEdge) graphql.Marshaler {
  161244. if v == nil {
  161245. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  161246. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  161247. }
  161248. return graphql.Null
  161249. }
  161250. return ec._DraftOrderLineItemEdge(ctx, sel, v)
  161251. }
  161252. func (ec *executionContext) unmarshalNDraftOrderStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderStatus(ctx context.Context, v interface{}) (DraftOrderStatus, error) {
  161253. var res DraftOrderStatus
  161254. err := res.UnmarshalGQL(v)
  161255. return res, graphql.ErrorOnPath(ctx, err)
  161256. }
  161257. func (ec *executionContext) marshalNDraftOrderStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderStatus(ctx context.Context, sel ast.SelectionSet, v DraftOrderStatus) graphql.Marshaler {
  161258. return v
  161259. }
  161260. func (ec *executionContext) marshalNDuty2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDutyᚄ(ctx context.Context, sel ast.SelectionSet, v []*Duty) graphql.Marshaler {
  161261. ret := make(graphql.Array, len(v))
  161262. var wg sync.WaitGroup
  161263. isLen1 := len(v) == 1
  161264. if !isLen1 {
  161265. wg.Add(len(v))
  161266. }
  161267. for i := range v {
  161268. i := i
  161269. fc := &graphql.FieldContext{
  161270. Index: &i,
  161271. Result: &v[i],
  161272. }
  161273. ctx := graphql.WithFieldContext(ctx, fc)
  161274. f := func(i int) {
  161275. defer func() {
  161276. if r := recover(); r != nil {
  161277. ec.Error(ctx, ec.Recover(ctx, r))
  161278. ret = nil
  161279. }
  161280. }()
  161281. if !isLen1 {
  161282. defer wg.Done()
  161283. }
  161284. ret[i] = ec.marshalNDuty2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDuty(ctx, sel, v[i])
  161285. }
  161286. if isLen1 {
  161287. f(i)
  161288. } else {
  161289. go f(i)
  161290. }
  161291. }
  161292. wg.Wait()
  161293. for _, e := range ret {
  161294. if e == graphql.Null {
  161295. return graphql.Null
  161296. }
  161297. }
  161298. return ret
  161299. }
  161300. func (ec *executionContext) marshalNDuty2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDuty(ctx context.Context, sel ast.SelectionSet, v *Duty) graphql.Marshaler {
  161301. if v == nil {
  161302. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  161303. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  161304. }
  161305. return graphql.Null
  161306. }
  161307. return ec._Duty(ctx, sel, v)
  161308. }
  161309. func (ec *executionContext) marshalNEditableProperty2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐEditableProperty(ctx context.Context, sel ast.SelectionSet, v *EditableProperty) graphql.Marshaler {
  161310. if v == nil {
  161311. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  161312. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  161313. }
  161314. return graphql.Null
  161315. }
  161316. return ec._EditableProperty(ctx, sel, v)
  161317. }
  161318. func (ec *executionContext) marshalNEvent2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐEvent(ctx context.Context, sel ast.SelectionSet, v Event) graphql.Marshaler {
  161319. if v == nil {
  161320. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  161321. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  161322. }
  161323. return graphql.Null
  161324. }
  161325. return ec._Event(ctx, sel, v)
  161326. }
  161327. func (ec *executionContext) marshalNEvent2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐEventᚄ(ctx context.Context, sel ast.SelectionSet, v []Event) graphql.Marshaler {
  161328. ret := make(graphql.Array, len(v))
  161329. var wg sync.WaitGroup
  161330. isLen1 := len(v) == 1
  161331. if !isLen1 {
  161332. wg.Add(len(v))
  161333. }
  161334. for i := range v {
  161335. i := i
  161336. fc := &graphql.FieldContext{
  161337. Index: &i,
  161338. Result: &v[i],
  161339. }
  161340. ctx := graphql.WithFieldContext(ctx, fc)
  161341. f := func(i int) {
  161342. defer func() {
  161343. if r := recover(); r != nil {
  161344. ec.Error(ctx, ec.Recover(ctx, r))
  161345. ret = nil
  161346. }
  161347. }()
  161348. if !isLen1 {
  161349. defer wg.Done()
  161350. }
  161351. ret[i] = ec.marshalNEvent2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐEvent(ctx, sel, v[i])
  161352. }
  161353. if isLen1 {
  161354. f(i)
  161355. } else {
  161356. go f(i)
  161357. }
  161358. }
  161359. wg.Wait()
  161360. for _, e := range ret {
  161361. if e == graphql.Null {
  161362. return graphql.Null
  161363. }
  161364. }
  161365. return ret
  161366. }
  161367. func (ec *executionContext) marshalNEventConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐEventConnection(ctx context.Context, sel ast.SelectionSet, v *EventConnection) graphql.Marshaler {
  161368. if v == nil {
  161369. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  161370. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  161371. }
  161372. return graphql.Null
  161373. }
  161374. return ec._EventConnection(ctx, sel, v)
  161375. }
  161376. func (ec *executionContext) marshalNEventEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐEventEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*EventEdge) graphql.Marshaler {
  161377. ret := make(graphql.Array, len(v))
  161378. var wg sync.WaitGroup
  161379. isLen1 := len(v) == 1
  161380. if !isLen1 {
  161381. wg.Add(len(v))
  161382. }
  161383. for i := range v {
  161384. i := i
  161385. fc := &graphql.FieldContext{
  161386. Index: &i,
  161387. Result: &v[i],
  161388. }
  161389. ctx := graphql.WithFieldContext(ctx, fc)
  161390. f := func(i int) {
  161391. defer func() {
  161392. if r := recover(); r != nil {
  161393. ec.Error(ctx, ec.Recover(ctx, r))
  161394. ret = nil
  161395. }
  161396. }()
  161397. if !isLen1 {
  161398. defer wg.Done()
  161399. }
  161400. ret[i] = ec.marshalNEventEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐEventEdge(ctx, sel, v[i])
  161401. }
  161402. if isLen1 {
  161403. f(i)
  161404. } else {
  161405. go f(i)
  161406. }
  161407. }
  161408. wg.Wait()
  161409. for _, e := range ret {
  161410. if e == graphql.Null {
  161411. return graphql.Null
  161412. }
  161413. }
  161414. return ret
  161415. }
  161416. func (ec *executionContext) marshalNEventEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐEventEdge(ctx context.Context, sel ast.SelectionSet, v *EventEdge) graphql.Marshaler {
  161417. if v == nil {
  161418. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  161419. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  161420. }
  161421. return graphql.Null
  161422. }
  161423. return ec._EventEdge(ctx, sel, v)
  161424. }
  161425. func (ec *executionContext) marshalNFailedRequirement2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFailedRequirementᚄ(ctx context.Context, sel ast.SelectionSet, v []*FailedRequirement) graphql.Marshaler {
  161426. ret := make(graphql.Array, len(v))
  161427. var wg sync.WaitGroup
  161428. isLen1 := len(v) == 1
  161429. if !isLen1 {
  161430. wg.Add(len(v))
  161431. }
  161432. for i := range v {
  161433. i := i
  161434. fc := &graphql.FieldContext{
  161435. Index: &i,
  161436. Result: &v[i],
  161437. }
  161438. ctx := graphql.WithFieldContext(ctx, fc)
  161439. f := func(i int) {
  161440. defer func() {
  161441. if r := recover(); r != nil {
  161442. ec.Error(ctx, ec.Recover(ctx, r))
  161443. ret = nil
  161444. }
  161445. }()
  161446. if !isLen1 {
  161447. defer wg.Done()
  161448. }
  161449. ret[i] = ec.marshalNFailedRequirement2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFailedRequirement(ctx, sel, v[i])
  161450. }
  161451. if isLen1 {
  161452. f(i)
  161453. } else {
  161454. go f(i)
  161455. }
  161456. }
  161457. wg.Wait()
  161458. for _, e := range ret {
  161459. if e == graphql.Null {
  161460. return graphql.Null
  161461. }
  161462. }
  161463. return ret
  161464. }
  161465. func (ec *executionContext) marshalNFailedRequirement2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFailedRequirement(ctx context.Context, sel ast.SelectionSet, v *FailedRequirement) graphql.Marshaler {
  161466. if v == nil {
  161467. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  161468. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  161469. }
  161470. return graphql.Null
  161471. }
  161472. return ec._FailedRequirement(ctx, sel, v)
  161473. }
  161474. func (ec *executionContext) marshalNFileError2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFileErrorᚄ(ctx context.Context, sel ast.SelectionSet, v []*FileError) graphql.Marshaler {
  161475. ret := make(graphql.Array, len(v))
  161476. var wg sync.WaitGroup
  161477. isLen1 := len(v) == 1
  161478. if !isLen1 {
  161479. wg.Add(len(v))
  161480. }
  161481. for i := range v {
  161482. i := i
  161483. fc := &graphql.FieldContext{
  161484. Index: &i,
  161485. Result: &v[i],
  161486. }
  161487. ctx := graphql.WithFieldContext(ctx, fc)
  161488. f := func(i int) {
  161489. defer func() {
  161490. if r := recover(); r != nil {
  161491. ec.Error(ctx, ec.Recover(ctx, r))
  161492. ret = nil
  161493. }
  161494. }()
  161495. if !isLen1 {
  161496. defer wg.Done()
  161497. }
  161498. ret[i] = ec.marshalNFileError2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFileError(ctx, sel, v[i])
  161499. }
  161500. if isLen1 {
  161501. f(i)
  161502. } else {
  161503. go f(i)
  161504. }
  161505. }
  161506. wg.Wait()
  161507. for _, e := range ret {
  161508. if e == graphql.Null {
  161509. return graphql.Null
  161510. }
  161511. }
  161512. return ret
  161513. }
  161514. func (ec *executionContext) marshalNFileError2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFileError(ctx context.Context, sel ast.SelectionSet, v *FileError) graphql.Marshaler {
  161515. if v == nil {
  161516. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  161517. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  161518. }
  161519. return graphql.Null
  161520. }
  161521. return ec._FileError(ctx, sel, v)
  161522. }
  161523. func (ec *executionContext) unmarshalNFileErrorCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFileErrorCode(ctx context.Context, v interface{}) (FileErrorCode, error) {
  161524. var res FileErrorCode
  161525. err := res.UnmarshalGQL(v)
  161526. return res, graphql.ErrorOnPath(ctx, err)
  161527. }
  161528. func (ec *executionContext) marshalNFileErrorCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFileErrorCode(ctx context.Context, sel ast.SelectionSet, v FileErrorCode) graphql.Marshaler {
  161529. return v
  161530. }
  161531. func (ec *executionContext) unmarshalNFileStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFileStatus(ctx context.Context, v interface{}) (FileStatus, error) {
  161532. var res FileStatus
  161533. err := res.UnmarshalGQL(v)
  161534. return res, graphql.ErrorOnPath(ctx, err)
  161535. }
  161536. func (ec *executionContext) marshalNFileStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFileStatus(ctx context.Context, sel ast.SelectionSet, v FileStatus) graphql.Marshaler {
  161537. return v
  161538. }
  161539. func (ec *executionContext) marshalNFilterOption2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFilterOptionᚄ(ctx context.Context, sel ast.SelectionSet, v []*FilterOption) graphql.Marshaler {
  161540. ret := make(graphql.Array, len(v))
  161541. var wg sync.WaitGroup
  161542. isLen1 := len(v) == 1
  161543. if !isLen1 {
  161544. wg.Add(len(v))
  161545. }
  161546. for i := range v {
  161547. i := i
  161548. fc := &graphql.FieldContext{
  161549. Index: &i,
  161550. Result: &v[i],
  161551. }
  161552. ctx := graphql.WithFieldContext(ctx, fc)
  161553. f := func(i int) {
  161554. defer func() {
  161555. if r := recover(); r != nil {
  161556. ec.Error(ctx, ec.Recover(ctx, r))
  161557. ret = nil
  161558. }
  161559. }()
  161560. if !isLen1 {
  161561. defer wg.Done()
  161562. }
  161563. ret[i] = ec.marshalNFilterOption2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFilterOption(ctx, sel, v[i])
  161564. }
  161565. if isLen1 {
  161566. f(i)
  161567. } else {
  161568. go f(i)
  161569. }
  161570. }
  161571. wg.Wait()
  161572. for _, e := range ret {
  161573. if e == graphql.Null {
  161574. return graphql.Null
  161575. }
  161576. }
  161577. return ret
  161578. }
  161579. func (ec *executionContext) marshalNFilterOption2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFilterOption(ctx context.Context, sel ast.SelectionSet, v *FilterOption) graphql.Marshaler {
  161580. if v == nil {
  161581. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  161582. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  161583. }
  161584. return graphql.Null
  161585. }
  161586. return ec._FilterOption(ctx, sel, v)
  161587. }
  161588. func (ec *executionContext) unmarshalNFloat2float64(ctx context.Context, v interface{}) (float64, error) {
  161589. res, err := graphql.UnmarshalFloatContext(ctx, v)
  161590. return res, graphql.ErrorOnPath(ctx, err)
  161591. }
  161592. func (ec *executionContext) marshalNFloat2float64(ctx context.Context, sel ast.SelectionSet, v float64) graphql.Marshaler {
  161593. res := graphql.MarshalFloatContext(v)
  161594. if res == graphql.Null {
  161595. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  161596. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  161597. }
  161598. }
  161599. return graphql.WrapContextMarshaler(ctx, res)
  161600. }
  161601. func (ec *executionContext) unmarshalNFormattedString2string(ctx context.Context, v interface{}) (string, error) {
  161602. res, err := graphql.UnmarshalString(v)
  161603. return res, graphql.ErrorOnPath(ctx, err)
  161604. }
  161605. func (ec *executionContext) marshalNFormattedString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  161606. res := graphql.MarshalString(v)
  161607. if res == graphql.Null {
  161608. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  161609. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  161610. }
  161611. }
  161612. return res
  161613. }
  161614. func (ec *executionContext) marshalNFulfillment2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentᚄ(ctx context.Context, sel ast.SelectionSet, v []*Fulfillment) graphql.Marshaler {
  161615. ret := make(graphql.Array, len(v))
  161616. var wg sync.WaitGroup
  161617. isLen1 := len(v) == 1
  161618. if !isLen1 {
  161619. wg.Add(len(v))
  161620. }
  161621. for i := range v {
  161622. i := i
  161623. fc := &graphql.FieldContext{
  161624. Index: &i,
  161625. Result: &v[i],
  161626. }
  161627. ctx := graphql.WithFieldContext(ctx, fc)
  161628. f := func(i int) {
  161629. defer func() {
  161630. if r := recover(); r != nil {
  161631. ec.Error(ctx, ec.Recover(ctx, r))
  161632. ret = nil
  161633. }
  161634. }()
  161635. if !isLen1 {
  161636. defer wg.Done()
  161637. }
  161638. ret[i] = ec.marshalNFulfillment2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillment(ctx, sel, v[i])
  161639. }
  161640. if isLen1 {
  161641. f(i)
  161642. } else {
  161643. go f(i)
  161644. }
  161645. }
  161646. wg.Wait()
  161647. for _, e := range ret {
  161648. if e == graphql.Null {
  161649. return graphql.Null
  161650. }
  161651. }
  161652. return ret
  161653. }
  161654. func (ec *executionContext) marshalNFulfillment2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillment(ctx context.Context, sel ast.SelectionSet, v *Fulfillment) graphql.Marshaler {
  161655. if v == nil {
  161656. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  161657. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  161658. }
  161659. return graphql.Null
  161660. }
  161661. return ec._Fulfillment(ctx, sel, v)
  161662. }
  161663. func (ec *executionContext) marshalNFulfillmentConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentConnection(ctx context.Context, sel ast.SelectionSet, v *FulfillmentConnection) graphql.Marshaler {
  161664. if v == nil {
  161665. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  161666. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  161667. }
  161668. return graphql.Null
  161669. }
  161670. return ec._FulfillmentConnection(ctx, sel, v)
  161671. }
  161672. func (ec *executionContext) marshalNFulfillmentEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*FulfillmentEdge) graphql.Marshaler {
  161673. ret := make(graphql.Array, len(v))
  161674. var wg sync.WaitGroup
  161675. isLen1 := len(v) == 1
  161676. if !isLen1 {
  161677. wg.Add(len(v))
  161678. }
  161679. for i := range v {
  161680. i := i
  161681. fc := &graphql.FieldContext{
  161682. Index: &i,
  161683. Result: &v[i],
  161684. }
  161685. ctx := graphql.WithFieldContext(ctx, fc)
  161686. f := func(i int) {
  161687. defer func() {
  161688. if r := recover(); r != nil {
  161689. ec.Error(ctx, ec.Recover(ctx, r))
  161690. ret = nil
  161691. }
  161692. }()
  161693. if !isLen1 {
  161694. defer wg.Done()
  161695. }
  161696. ret[i] = ec.marshalNFulfillmentEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentEdge(ctx, sel, v[i])
  161697. }
  161698. if isLen1 {
  161699. f(i)
  161700. } else {
  161701. go f(i)
  161702. }
  161703. }
  161704. wg.Wait()
  161705. for _, e := range ret {
  161706. if e == graphql.Null {
  161707. return graphql.Null
  161708. }
  161709. }
  161710. return ret
  161711. }
  161712. func (ec *executionContext) marshalNFulfillmentEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentEdge(ctx context.Context, sel ast.SelectionSet, v *FulfillmentEdge) graphql.Marshaler {
  161713. if v == nil {
  161714. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  161715. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  161716. }
  161717. return graphql.Null
  161718. }
  161719. return ec._FulfillmentEdge(ctx, sel, v)
  161720. }
  161721. func (ec *executionContext) marshalNFulfillmentEvent2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentEventᚄ(ctx context.Context, sel ast.SelectionSet, v []*FulfillmentEvent) graphql.Marshaler {
  161722. ret := make(graphql.Array, len(v))
  161723. var wg sync.WaitGroup
  161724. isLen1 := len(v) == 1
  161725. if !isLen1 {
  161726. wg.Add(len(v))
  161727. }
  161728. for i := range v {
  161729. i := i
  161730. fc := &graphql.FieldContext{
  161731. Index: &i,
  161732. Result: &v[i],
  161733. }
  161734. ctx := graphql.WithFieldContext(ctx, fc)
  161735. f := func(i int) {
  161736. defer func() {
  161737. if r := recover(); r != nil {
  161738. ec.Error(ctx, ec.Recover(ctx, r))
  161739. ret = nil
  161740. }
  161741. }()
  161742. if !isLen1 {
  161743. defer wg.Done()
  161744. }
  161745. ret[i] = ec.marshalNFulfillmentEvent2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentEvent(ctx, sel, v[i])
  161746. }
  161747. if isLen1 {
  161748. f(i)
  161749. } else {
  161750. go f(i)
  161751. }
  161752. }
  161753. wg.Wait()
  161754. for _, e := range ret {
  161755. if e == graphql.Null {
  161756. return graphql.Null
  161757. }
  161758. }
  161759. return ret
  161760. }
  161761. func (ec *executionContext) marshalNFulfillmentEvent2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentEvent(ctx context.Context, sel ast.SelectionSet, v *FulfillmentEvent) graphql.Marshaler {
  161762. if v == nil {
  161763. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  161764. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  161765. }
  161766. return graphql.Null
  161767. }
  161768. return ec._FulfillmentEvent(ctx, sel, v)
  161769. }
  161770. func (ec *executionContext) marshalNFulfillmentEventConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentEventConnection(ctx context.Context, sel ast.SelectionSet, v *FulfillmentEventConnection) graphql.Marshaler {
  161771. if v == nil {
  161772. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  161773. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  161774. }
  161775. return graphql.Null
  161776. }
  161777. return ec._FulfillmentEventConnection(ctx, sel, v)
  161778. }
  161779. func (ec *executionContext) marshalNFulfillmentEventEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentEventEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*FulfillmentEventEdge) graphql.Marshaler {
  161780. ret := make(graphql.Array, len(v))
  161781. var wg sync.WaitGroup
  161782. isLen1 := len(v) == 1
  161783. if !isLen1 {
  161784. wg.Add(len(v))
  161785. }
  161786. for i := range v {
  161787. i := i
  161788. fc := &graphql.FieldContext{
  161789. Index: &i,
  161790. Result: &v[i],
  161791. }
  161792. ctx := graphql.WithFieldContext(ctx, fc)
  161793. f := func(i int) {
  161794. defer func() {
  161795. if r := recover(); r != nil {
  161796. ec.Error(ctx, ec.Recover(ctx, r))
  161797. ret = nil
  161798. }
  161799. }()
  161800. if !isLen1 {
  161801. defer wg.Done()
  161802. }
  161803. ret[i] = ec.marshalNFulfillmentEventEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentEventEdge(ctx, sel, v[i])
  161804. }
  161805. if isLen1 {
  161806. f(i)
  161807. } else {
  161808. go f(i)
  161809. }
  161810. }
  161811. wg.Wait()
  161812. for _, e := range ret {
  161813. if e == graphql.Null {
  161814. return graphql.Null
  161815. }
  161816. }
  161817. return ret
  161818. }
  161819. func (ec *executionContext) marshalNFulfillmentEventEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentEventEdge(ctx context.Context, sel ast.SelectionSet, v *FulfillmentEventEdge) graphql.Marshaler {
  161820. if v == nil {
  161821. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  161822. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  161823. }
  161824. return graphql.Null
  161825. }
  161826. return ec._FulfillmentEventEdge(ctx, sel, v)
  161827. }
  161828. func (ec *executionContext) unmarshalNFulfillmentEventStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentEventStatus(ctx context.Context, v interface{}) (FulfillmentEventStatus, error) {
  161829. var res FulfillmentEventStatus
  161830. err := res.UnmarshalGQL(v)
  161831. return res, graphql.ErrorOnPath(ctx, err)
  161832. }
  161833. func (ec *executionContext) marshalNFulfillmentEventStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentEventStatus(ctx context.Context, sel ast.SelectionSet, v FulfillmentEventStatus) graphql.Marshaler {
  161834. return v
  161835. }
  161836. func (ec *executionContext) marshalNFulfillmentHold2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentHoldᚄ(ctx context.Context, sel ast.SelectionSet, v []*FulfillmentHold) graphql.Marshaler {
  161837. ret := make(graphql.Array, len(v))
  161838. var wg sync.WaitGroup
  161839. isLen1 := len(v) == 1
  161840. if !isLen1 {
  161841. wg.Add(len(v))
  161842. }
  161843. for i := range v {
  161844. i := i
  161845. fc := &graphql.FieldContext{
  161846. Index: &i,
  161847. Result: &v[i],
  161848. }
  161849. ctx := graphql.WithFieldContext(ctx, fc)
  161850. f := func(i int) {
  161851. defer func() {
  161852. if r := recover(); r != nil {
  161853. ec.Error(ctx, ec.Recover(ctx, r))
  161854. ret = nil
  161855. }
  161856. }()
  161857. if !isLen1 {
  161858. defer wg.Done()
  161859. }
  161860. ret[i] = ec.marshalNFulfillmentHold2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentHold(ctx, sel, v[i])
  161861. }
  161862. if isLen1 {
  161863. f(i)
  161864. } else {
  161865. go f(i)
  161866. }
  161867. }
  161868. wg.Wait()
  161869. for _, e := range ret {
  161870. if e == graphql.Null {
  161871. return graphql.Null
  161872. }
  161873. }
  161874. return ret
  161875. }
  161876. func (ec *executionContext) marshalNFulfillmentHold2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentHold(ctx context.Context, sel ast.SelectionSet, v *FulfillmentHold) graphql.Marshaler {
  161877. if v == nil {
  161878. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  161879. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  161880. }
  161881. return graphql.Null
  161882. }
  161883. return ec._FulfillmentHold(ctx, sel, v)
  161884. }
  161885. func (ec *executionContext) unmarshalNFulfillmentHoldReason2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentHoldReason(ctx context.Context, v interface{}) (FulfillmentHoldReason, error) {
  161886. var res FulfillmentHoldReason
  161887. err := res.UnmarshalGQL(v)
  161888. return res, graphql.ErrorOnPath(ctx, err)
  161889. }
  161890. func (ec *executionContext) marshalNFulfillmentHoldReason2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentHoldReason(ctx context.Context, sel ast.SelectionSet, v FulfillmentHoldReason) graphql.Marshaler {
  161891. return v
  161892. }
  161893. func (ec *executionContext) marshalNFulfillmentLineItem2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentLineItemᚄ(ctx context.Context, sel ast.SelectionSet, v []*FulfillmentLineItem) graphql.Marshaler {
  161894. ret := make(graphql.Array, len(v))
  161895. var wg sync.WaitGroup
  161896. isLen1 := len(v) == 1
  161897. if !isLen1 {
  161898. wg.Add(len(v))
  161899. }
  161900. for i := range v {
  161901. i := i
  161902. fc := &graphql.FieldContext{
  161903. Index: &i,
  161904. Result: &v[i],
  161905. }
  161906. ctx := graphql.WithFieldContext(ctx, fc)
  161907. f := func(i int) {
  161908. defer func() {
  161909. if r := recover(); r != nil {
  161910. ec.Error(ctx, ec.Recover(ctx, r))
  161911. ret = nil
  161912. }
  161913. }()
  161914. if !isLen1 {
  161915. defer wg.Done()
  161916. }
  161917. ret[i] = ec.marshalNFulfillmentLineItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentLineItem(ctx, sel, v[i])
  161918. }
  161919. if isLen1 {
  161920. f(i)
  161921. } else {
  161922. go f(i)
  161923. }
  161924. }
  161925. wg.Wait()
  161926. for _, e := range ret {
  161927. if e == graphql.Null {
  161928. return graphql.Null
  161929. }
  161930. }
  161931. return ret
  161932. }
  161933. func (ec *executionContext) marshalNFulfillmentLineItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentLineItem(ctx context.Context, sel ast.SelectionSet, v *FulfillmentLineItem) graphql.Marshaler {
  161934. if v == nil {
  161935. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  161936. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  161937. }
  161938. return graphql.Null
  161939. }
  161940. return ec._FulfillmentLineItem(ctx, sel, v)
  161941. }
  161942. func (ec *executionContext) marshalNFulfillmentLineItemConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentLineItemConnection(ctx context.Context, sel ast.SelectionSet, v *FulfillmentLineItemConnection) graphql.Marshaler {
  161943. if v == nil {
  161944. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  161945. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  161946. }
  161947. return graphql.Null
  161948. }
  161949. return ec._FulfillmentLineItemConnection(ctx, sel, v)
  161950. }
  161951. func (ec *executionContext) marshalNFulfillmentLineItemEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentLineItemEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*FulfillmentLineItemEdge) graphql.Marshaler {
  161952. ret := make(graphql.Array, len(v))
  161953. var wg sync.WaitGroup
  161954. isLen1 := len(v) == 1
  161955. if !isLen1 {
  161956. wg.Add(len(v))
  161957. }
  161958. for i := range v {
  161959. i := i
  161960. fc := &graphql.FieldContext{
  161961. Index: &i,
  161962. Result: &v[i],
  161963. }
  161964. ctx := graphql.WithFieldContext(ctx, fc)
  161965. f := func(i int) {
  161966. defer func() {
  161967. if r := recover(); r != nil {
  161968. ec.Error(ctx, ec.Recover(ctx, r))
  161969. ret = nil
  161970. }
  161971. }()
  161972. if !isLen1 {
  161973. defer wg.Done()
  161974. }
  161975. ret[i] = ec.marshalNFulfillmentLineItemEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentLineItemEdge(ctx, sel, v[i])
  161976. }
  161977. if isLen1 {
  161978. f(i)
  161979. } else {
  161980. go f(i)
  161981. }
  161982. }
  161983. wg.Wait()
  161984. for _, e := range ret {
  161985. if e == graphql.Null {
  161986. return graphql.Null
  161987. }
  161988. }
  161989. return ret
  161990. }
  161991. func (ec *executionContext) marshalNFulfillmentLineItemEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentLineItemEdge(ctx context.Context, sel ast.SelectionSet, v *FulfillmentLineItemEdge) graphql.Marshaler {
  161992. if v == nil {
  161993. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  161994. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  161995. }
  161996. return graphql.Null
  161997. }
  161998. return ec._FulfillmentLineItemEdge(ctx, sel, v)
  161999. }
  162000. func (ec *executionContext) marshalNFulfillmentOrder2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderᚄ(ctx context.Context, sel ast.SelectionSet, v []*FulfillmentOrder) graphql.Marshaler {
  162001. ret := make(graphql.Array, len(v))
  162002. var wg sync.WaitGroup
  162003. isLen1 := len(v) == 1
  162004. if !isLen1 {
  162005. wg.Add(len(v))
  162006. }
  162007. for i := range v {
  162008. i := i
  162009. fc := &graphql.FieldContext{
  162010. Index: &i,
  162011. Result: &v[i],
  162012. }
  162013. ctx := graphql.WithFieldContext(ctx, fc)
  162014. f := func(i int) {
  162015. defer func() {
  162016. if r := recover(); r != nil {
  162017. ec.Error(ctx, ec.Recover(ctx, r))
  162018. ret = nil
  162019. }
  162020. }()
  162021. if !isLen1 {
  162022. defer wg.Done()
  162023. }
  162024. ret[i] = ec.marshalNFulfillmentOrder2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrder(ctx, sel, v[i])
  162025. }
  162026. if isLen1 {
  162027. f(i)
  162028. } else {
  162029. go f(i)
  162030. }
  162031. }
  162032. wg.Wait()
  162033. for _, e := range ret {
  162034. if e == graphql.Null {
  162035. return graphql.Null
  162036. }
  162037. }
  162038. return ret
  162039. }
  162040. func (ec *executionContext) marshalNFulfillmentOrder2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrder(ctx context.Context, sel ast.SelectionSet, v *FulfillmentOrder) graphql.Marshaler {
  162041. if v == nil {
  162042. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162043. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162044. }
  162045. return graphql.Null
  162046. }
  162047. return ec._FulfillmentOrder(ctx, sel, v)
  162048. }
  162049. func (ec *executionContext) unmarshalNFulfillmentOrderAction2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderAction(ctx context.Context, v interface{}) (FulfillmentOrderAction, error) {
  162050. var res FulfillmentOrderAction
  162051. err := res.UnmarshalGQL(v)
  162052. return res, graphql.ErrorOnPath(ctx, err)
  162053. }
  162054. func (ec *executionContext) marshalNFulfillmentOrderAction2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderAction(ctx context.Context, sel ast.SelectionSet, v FulfillmentOrderAction) graphql.Marshaler {
  162055. return v
  162056. }
  162057. func (ec *executionContext) marshalNFulfillmentOrderAssignedLocation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderAssignedLocation(ctx context.Context, sel ast.SelectionSet, v *FulfillmentOrderAssignedLocation) graphql.Marshaler {
  162058. if v == nil {
  162059. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162060. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162061. }
  162062. return graphql.Null
  162063. }
  162064. return ec._FulfillmentOrderAssignedLocation(ctx, sel, v)
  162065. }
  162066. func (ec *executionContext) marshalNFulfillmentOrderConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderConnection(ctx context.Context, sel ast.SelectionSet, v *FulfillmentOrderConnection) graphql.Marshaler {
  162067. if v == nil {
  162068. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162069. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162070. }
  162071. return graphql.Null
  162072. }
  162073. return ec._FulfillmentOrderConnection(ctx, sel, v)
  162074. }
  162075. func (ec *executionContext) marshalNFulfillmentOrderEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*FulfillmentOrderEdge) graphql.Marshaler {
  162076. ret := make(graphql.Array, len(v))
  162077. var wg sync.WaitGroup
  162078. isLen1 := len(v) == 1
  162079. if !isLen1 {
  162080. wg.Add(len(v))
  162081. }
  162082. for i := range v {
  162083. i := i
  162084. fc := &graphql.FieldContext{
  162085. Index: &i,
  162086. Result: &v[i],
  162087. }
  162088. ctx := graphql.WithFieldContext(ctx, fc)
  162089. f := func(i int) {
  162090. defer func() {
  162091. if r := recover(); r != nil {
  162092. ec.Error(ctx, ec.Recover(ctx, r))
  162093. ret = nil
  162094. }
  162095. }()
  162096. if !isLen1 {
  162097. defer wg.Done()
  162098. }
  162099. ret[i] = ec.marshalNFulfillmentOrderEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderEdge(ctx, sel, v[i])
  162100. }
  162101. if isLen1 {
  162102. f(i)
  162103. } else {
  162104. go f(i)
  162105. }
  162106. }
  162107. wg.Wait()
  162108. for _, e := range ret {
  162109. if e == graphql.Null {
  162110. return graphql.Null
  162111. }
  162112. }
  162113. return ret
  162114. }
  162115. func (ec *executionContext) marshalNFulfillmentOrderEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderEdge(ctx context.Context, sel ast.SelectionSet, v *FulfillmentOrderEdge) graphql.Marshaler {
  162116. if v == nil {
  162117. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162118. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162119. }
  162120. return graphql.Null
  162121. }
  162122. return ec._FulfillmentOrderEdge(ctx, sel, v)
  162123. }
  162124. func (ec *executionContext) marshalNFulfillmentOrderLineItem2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderLineItemᚄ(ctx context.Context, sel ast.SelectionSet, v []*FulfillmentOrderLineItem) graphql.Marshaler {
  162125. ret := make(graphql.Array, len(v))
  162126. var wg sync.WaitGroup
  162127. isLen1 := len(v) == 1
  162128. if !isLen1 {
  162129. wg.Add(len(v))
  162130. }
  162131. for i := range v {
  162132. i := i
  162133. fc := &graphql.FieldContext{
  162134. Index: &i,
  162135. Result: &v[i],
  162136. }
  162137. ctx := graphql.WithFieldContext(ctx, fc)
  162138. f := func(i int) {
  162139. defer func() {
  162140. if r := recover(); r != nil {
  162141. ec.Error(ctx, ec.Recover(ctx, r))
  162142. ret = nil
  162143. }
  162144. }()
  162145. if !isLen1 {
  162146. defer wg.Done()
  162147. }
  162148. ret[i] = ec.marshalNFulfillmentOrderLineItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderLineItem(ctx, sel, v[i])
  162149. }
  162150. if isLen1 {
  162151. f(i)
  162152. } else {
  162153. go f(i)
  162154. }
  162155. }
  162156. wg.Wait()
  162157. for _, e := range ret {
  162158. if e == graphql.Null {
  162159. return graphql.Null
  162160. }
  162161. }
  162162. return ret
  162163. }
  162164. func (ec *executionContext) marshalNFulfillmentOrderLineItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderLineItem(ctx context.Context, sel ast.SelectionSet, v *FulfillmentOrderLineItem) graphql.Marshaler {
  162165. if v == nil {
  162166. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162167. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162168. }
  162169. return graphql.Null
  162170. }
  162171. return ec._FulfillmentOrderLineItem(ctx, sel, v)
  162172. }
  162173. func (ec *executionContext) marshalNFulfillmentOrderLineItemConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderLineItemConnection(ctx context.Context, sel ast.SelectionSet, v *FulfillmentOrderLineItemConnection) graphql.Marshaler {
  162174. if v == nil {
  162175. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162176. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162177. }
  162178. return graphql.Null
  162179. }
  162180. return ec._FulfillmentOrderLineItemConnection(ctx, sel, v)
  162181. }
  162182. func (ec *executionContext) marshalNFulfillmentOrderLineItemEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderLineItemEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*FulfillmentOrderLineItemEdge) graphql.Marshaler {
  162183. ret := make(graphql.Array, len(v))
  162184. var wg sync.WaitGroup
  162185. isLen1 := len(v) == 1
  162186. if !isLen1 {
  162187. wg.Add(len(v))
  162188. }
  162189. for i := range v {
  162190. i := i
  162191. fc := &graphql.FieldContext{
  162192. Index: &i,
  162193. Result: &v[i],
  162194. }
  162195. ctx := graphql.WithFieldContext(ctx, fc)
  162196. f := func(i int) {
  162197. defer func() {
  162198. if r := recover(); r != nil {
  162199. ec.Error(ctx, ec.Recover(ctx, r))
  162200. ret = nil
  162201. }
  162202. }()
  162203. if !isLen1 {
  162204. defer wg.Done()
  162205. }
  162206. ret[i] = ec.marshalNFulfillmentOrderLineItemEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderLineItemEdge(ctx, sel, v[i])
  162207. }
  162208. if isLen1 {
  162209. f(i)
  162210. } else {
  162211. go f(i)
  162212. }
  162213. }
  162214. wg.Wait()
  162215. for _, e := range ret {
  162216. if e == graphql.Null {
  162217. return graphql.Null
  162218. }
  162219. }
  162220. return ret
  162221. }
  162222. func (ec *executionContext) marshalNFulfillmentOrderLineItemEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderLineItemEdge(ctx context.Context, sel ast.SelectionSet, v *FulfillmentOrderLineItemEdge) graphql.Marshaler {
  162223. if v == nil {
  162224. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162225. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162226. }
  162227. return graphql.Null
  162228. }
  162229. return ec._FulfillmentOrderLineItemEdge(ctx, sel, v)
  162230. }
  162231. func (ec *executionContext) marshalNFulfillmentOrderLineItemWarning2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderLineItemWarningᚄ(ctx context.Context, sel ast.SelectionSet, v []*FulfillmentOrderLineItemWarning) graphql.Marshaler {
  162232. ret := make(graphql.Array, len(v))
  162233. var wg sync.WaitGroup
  162234. isLen1 := len(v) == 1
  162235. if !isLen1 {
  162236. wg.Add(len(v))
  162237. }
  162238. for i := range v {
  162239. i := i
  162240. fc := &graphql.FieldContext{
  162241. Index: &i,
  162242. Result: &v[i],
  162243. }
  162244. ctx := graphql.WithFieldContext(ctx, fc)
  162245. f := func(i int) {
  162246. defer func() {
  162247. if r := recover(); r != nil {
  162248. ec.Error(ctx, ec.Recover(ctx, r))
  162249. ret = nil
  162250. }
  162251. }()
  162252. if !isLen1 {
  162253. defer wg.Done()
  162254. }
  162255. ret[i] = ec.marshalNFulfillmentOrderLineItemWarning2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderLineItemWarning(ctx, sel, v[i])
  162256. }
  162257. if isLen1 {
  162258. f(i)
  162259. } else {
  162260. go f(i)
  162261. }
  162262. }
  162263. wg.Wait()
  162264. for _, e := range ret {
  162265. if e == graphql.Null {
  162266. return graphql.Null
  162267. }
  162268. }
  162269. return ret
  162270. }
  162271. func (ec *executionContext) marshalNFulfillmentOrderLineItemWarning2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderLineItemWarning(ctx context.Context, sel ast.SelectionSet, v *FulfillmentOrderLineItemWarning) graphql.Marshaler {
  162272. if v == nil {
  162273. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162274. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162275. }
  162276. return graphql.Null
  162277. }
  162278. return ec._FulfillmentOrderLineItemWarning(ctx, sel, v)
  162279. }
  162280. func (ec *executionContext) marshalNFulfillmentOrderLocationForMove2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderLocationForMoveᚄ(ctx context.Context, sel ast.SelectionSet, v []*FulfillmentOrderLocationForMove) graphql.Marshaler {
  162281. ret := make(graphql.Array, len(v))
  162282. var wg sync.WaitGroup
  162283. isLen1 := len(v) == 1
  162284. if !isLen1 {
  162285. wg.Add(len(v))
  162286. }
  162287. for i := range v {
  162288. i := i
  162289. fc := &graphql.FieldContext{
  162290. Index: &i,
  162291. Result: &v[i],
  162292. }
  162293. ctx := graphql.WithFieldContext(ctx, fc)
  162294. f := func(i int) {
  162295. defer func() {
  162296. if r := recover(); r != nil {
  162297. ec.Error(ctx, ec.Recover(ctx, r))
  162298. ret = nil
  162299. }
  162300. }()
  162301. if !isLen1 {
  162302. defer wg.Done()
  162303. }
  162304. ret[i] = ec.marshalNFulfillmentOrderLocationForMove2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderLocationForMove(ctx, sel, v[i])
  162305. }
  162306. if isLen1 {
  162307. f(i)
  162308. } else {
  162309. go f(i)
  162310. }
  162311. }
  162312. wg.Wait()
  162313. for _, e := range ret {
  162314. if e == graphql.Null {
  162315. return graphql.Null
  162316. }
  162317. }
  162318. return ret
  162319. }
  162320. func (ec *executionContext) marshalNFulfillmentOrderLocationForMove2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderLocationForMove(ctx context.Context, sel ast.SelectionSet, v *FulfillmentOrderLocationForMove) graphql.Marshaler {
  162321. if v == nil {
  162322. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162323. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162324. }
  162325. return graphql.Null
  162326. }
  162327. return ec._FulfillmentOrderLocationForMove(ctx, sel, v)
  162328. }
  162329. func (ec *executionContext) marshalNFulfillmentOrderLocationForMoveConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderLocationForMoveConnection(ctx context.Context, sel ast.SelectionSet, v *FulfillmentOrderLocationForMoveConnection) graphql.Marshaler {
  162330. if v == nil {
  162331. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162332. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162333. }
  162334. return graphql.Null
  162335. }
  162336. return ec._FulfillmentOrderLocationForMoveConnection(ctx, sel, v)
  162337. }
  162338. func (ec *executionContext) marshalNFulfillmentOrderLocationForMoveEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderLocationForMoveEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*FulfillmentOrderLocationForMoveEdge) graphql.Marshaler {
  162339. ret := make(graphql.Array, len(v))
  162340. var wg sync.WaitGroup
  162341. isLen1 := len(v) == 1
  162342. if !isLen1 {
  162343. wg.Add(len(v))
  162344. }
  162345. for i := range v {
  162346. i := i
  162347. fc := &graphql.FieldContext{
  162348. Index: &i,
  162349. Result: &v[i],
  162350. }
  162351. ctx := graphql.WithFieldContext(ctx, fc)
  162352. f := func(i int) {
  162353. defer func() {
  162354. if r := recover(); r != nil {
  162355. ec.Error(ctx, ec.Recover(ctx, r))
  162356. ret = nil
  162357. }
  162358. }()
  162359. if !isLen1 {
  162360. defer wg.Done()
  162361. }
  162362. ret[i] = ec.marshalNFulfillmentOrderLocationForMoveEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderLocationForMoveEdge(ctx, sel, v[i])
  162363. }
  162364. if isLen1 {
  162365. f(i)
  162366. } else {
  162367. go f(i)
  162368. }
  162369. }
  162370. wg.Wait()
  162371. for _, e := range ret {
  162372. if e == graphql.Null {
  162373. return graphql.Null
  162374. }
  162375. }
  162376. return ret
  162377. }
  162378. func (ec *executionContext) marshalNFulfillmentOrderLocationForMoveEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderLocationForMoveEdge(ctx context.Context, sel ast.SelectionSet, v *FulfillmentOrderLocationForMoveEdge) graphql.Marshaler {
  162379. if v == nil {
  162380. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162381. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162382. }
  162383. return graphql.Null
  162384. }
  162385. return ec._FulfillmentOrderLocationForMoveEdge(ctx, sel, v)
  162386. }
  162387. func (ec *executionContext) marshalNFulfillmentOrderMerchantRequest2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderMerchantRequestᚄ(ctx context.Context, sel ast.SelectionSet, v []*FulfillmentOrderMerchantRequest) graphql.Marshaler {
  162388. ret := make(graphql.Array, len(v))
  162389. var wg sync.WaitGroup
  162390. isLen1 := len(v) == 1
  162391. if !isLen1 {
  162392. wg.Add(len(v))
  162393. }
  162394. for i := range v {
  162395. i := i
  162396. fc := &graphql.FieldContext{
  162397. Index: &i,
  162398. Result: &v[i],
  162399. }
  162400. ctx := graphql.WithFieldContext(ctx, fc)
  162401. f := func(i int) {
  162402. defer func() {
  162403. if r := recover(); r != nil {
  162404. ec.Error(ctx, ec.Recover(ctx, r))
  162405. ret = nil
  162406. }
  162407. }()
  162408. if !isLen1 {
  162409. defer wg.Done()
  162410. }
  162411. ret[i] = ec.marshalNFulfillmentOrderMerchantRequest2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderMerchantRequest(ctx, sel, v[i])
  162412. }
  162413. if isLen1 {
  162414. f(i)
  162415. } else {
  162416. go f(i)
  162417. }
  162418. }
  162419. wg.Wait()
  162420. for _, e := range ret {
  162421. if e == graphql.Null {
  162422. return graphql.Null
  162423. }
  162424. }
  162425. return ret
  162426. }
  162427. func (ec *executionContext) marshalNFulfillmentOrderMerchantRequest2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderMerchantRequest(ctx context.Context, sel ast.SelectionSet, v *FulfillmentOrderMerchantRequest) graphql.Marshaler {
  162428. if v == nil {
  162429. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162430. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162431. }
  162432. return graphql.Null
  162433. }
  162434. return ec._FulfillmentOrderMerchantRequest(ctx, sel, v)
  162435. }
  162436. func (ec *executionContext) marshalNFulfillmentOrderMerchantRequestConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderMerchantRequestConnection(ctx context.Context, sel ast.SelectionSet, v *FulfillmentOrderMerchantRequestConnection) graphql.Marshaler {
  162437. if v == nil {
  162438. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162439. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162440. }
  162441. return graphql.Null
  162442. }
  162443. return ec._FulfillmentOrderMerchantRequestConnection(ctx, sel, v)
  162444. }
  162445. func (ec *executionContext) marshalNFulfillmentOrderMerchantRequestEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderMerchantRequestEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*FulfillmentOrderMerchantRequestEdge) graphql.Marshaler {
  162446. ret := make(graphql.Array, len(v))
  162447. var wg sync.WaitGroup
  162448. isLen1 := len(v) == 1
  162449. if !isLen1 {
  162450. wg.Add(len(v))
  162451. }
  162452. for i := range v {
  162453. i := i
  162454. fc := &graphql.FieldContext{
  162455. Index: &i,
  162456. Result: &v[i],
  162457. }
  162458. ctx := graphql.WithFieldContext(ctx, fc)
  162459. f := func(i int) {
  162460. defer func() {
  162461. if r := recover(); r != nil {
  162462. ec.Error(ctx, ec.Recover(ctx, r))
  162463. ret = nil
  162464. }
  162465. }()
  162466. if !isLen1 {
  162467. defer wg.Done()
  162468. }
  162469. ret[i] = ec.marshalNFulfillmentOrderMerchantRequestEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderMerchantRequestEdge(ctx, sel, v[i])
  162470. }
  162471. if isLen1 {
  162472. f(i)
  162473. } else {
  162474. go f(i)
  162475. }
  162476. }
  162477. wg.Wait()
  162478. for _, e := range ret {
  162479. if e == graphql.Null {
  162480. return graphql.Null
  162481. }
  162482. }
  162483. return ret
  162484. }
  162485. func (ec *executionContext) marshalNFulfillmentOrderMerchantRequestEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderMerchantRequestEdge(ctx context.Context, sel ast.SelectionSet, v *FulfillmentOrderMerchantRequestEdge) graphql.Marshaler {
  162486. if v == nil {
  162487. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162488. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162489. }
  162490. return graphql.Null
  162491. }
  162492. return ec._FulfillmentOrderMerchantRequestEdge(ctx, sel, v)
  162493. }
  162494. func (ec *executionContext) unmarshalNFulfillmentOrderMerchantRequestKind2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderMerchantRequestKind(ctx context.Context, v interface{}) (FulfillmentOrderMerchantRequestKind, error) {
  162495. var res FulfillmentOrderMerchantRequestKind
  162496. err := res.UnmarshalGQL(v)
  162497. return res, graphql.ErrorOnPath(ctx, err)
  162498. }
  162499. func (ec *executionContext) marshalNFulfillmentOrderMerchantRequestKind2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderMerchantRequestKind(ctx context.Context, sel ast.SelectionSet, v FulfillmentOrderMerchantRequestKind) graphql.Marshaler {
  162500. return v
  162501. }
  162502. func (ec *executionContext) unmarshalNFulfillmentOrderRequestStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderRequestStatus(ctx context.Context, v interface{}) (FulfillmentOrderRequestStatus, error) {
  162503. var res FulfillmentOrderRequestStatus
  162504. err := res.UnmarshalGQL(v)
  162505. return res, graphql.ErrorOnPath(ctx, err)
  162506. }
  162507. func (ec *executionContext) marshalNFulfillmentOrderRequestStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderRequestStatus(ctx context.Context, sel ast.SelectionSet, v FulfillmentOrderRequestStatus) graphql.Marshaler {
  162508. return v
  162509. }
  162510. func (ec *executionContext) unmarshalNFulfillmentOrderStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderStatus(ctx context.Context, v interface{}) (FulfillmentOrderStatus, error) {
  162511. var res FulfillmentOrderStatus
  162512. err := res.UnmarshalGQL(v)
  162513. return res, graphql.ErrorOnPath(ctx, err)
  162514. }
  162515. func (ec *executionContext) marshalNFulfillmentOrderStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderStatus(ctx context.Context, sel ast.SelectionSet, v FulfillmentOrderStatus) graphql.Marshaler {
  162516. return v
  162517. }
  162518. func (ec *executionContext) marshalNFulfillmentOrderSupportedAction2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderSupportedActionᚄ(ctx context.Context, sel ast.SelectionSet, v []*FulfillmentOrderSupportedAction) graphql.Marshaler {
  162519. ret := make(graphql.Array, len(v))
  162520. var wg sync.WaitGroup
  162521. isLen1 := len(v) == 1
  162522. if !isLen1 {
  162523. wg.Add(len(v))
  162524. }
  162525. for i := range v {
  162526. i := i
  162527. fc := &graphql.FieldContext{
  162528. Index: &i,
  162529. Result: &v[i],
  162530. }
  162531. ctx := graphql.WithFieldContext(ctx, fc)
  162532. f := func(i int) {
  162533. defer func() {
  162534. if r := recover(); r != nil {
  162535. ec.Error(ctx, ec.Recover(ctx, r))
  162536. ret = nil
  162537. }
  162538. }()
  162539. if !isLen1 {
  162540. defer wg.Done()
  162541. }
  162542. ret[i] = ec.marshalNFulfillmentOrderSupportedAction2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderSupportedAction(ctx, sel, v[i])
  162543. }
  162544. if isLen1 {
  162545. f(i)
  162546. } else {
  162547. go f(i)
  162548. }
  162549. }
  162550. wg.Wait()
  162551. for _, e := range ret {
  162552. if e == graphql.Null {
  162553. return graphql.Null
  162554. }
  162555. }
  162556. return ret
  162557. }
  162558. func (ec *executionContext) marshalNFulfillmentOrderSupportedAction2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderSupportedAction(ctx context.Context, sel ast.SelectionSet, v *FulfillmentOrderSupportedAction) graphql.Marshaler {
  162559. if v == nil {
  162560. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162561. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162562. }
  162563. return graphql.Null
  162564. }
  162565. return ec._FulfillmentOrderSupportedAction(ctx, sel, v)
  162566. }
  162567. func (ec *executionContext) marshalNFulfillmentService2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentServiceᚄ(ctx context.Context, sel ast.SelectionSet, v []*FulfillmentService) graphql.Marshaler {
  162568. ret := make(graphql.Array, len(v))
  162569. var wg sync.WaitGroup
  162570. isLen1 := len(v) == 1
  162571. if !isLen1 {
  162572. wg.Add(len(v))
  162573. }
  162574. for i := range v {
  162575. i := i
  162576. fc := &graphql.FieldContext{
  162577. Index: &i,
  162578. Result: &v[i],
  162579. }
  162580. ctx := graphql.WithFieldContext(ctx, fc)
  162581. f := func(i int) {
  162582. defer func() {
  162583. if r := recover(); r != nil {
  162584. ec.Error(ctx, ec.Recover(ctx, r))
  162585. ret = nil
  162586. }
  162587. }()
  162588. if !isLen1 {
  162589. defer wg.Done()
  162590. }
  162591. ret[i] = ec.marshalNFulfillmentService2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentService(ctx, sel, v[i])
  162592. }
  162593. if isLen1 {
  162594. f(i)
  162595. } else {
  162596. go f(i)
  162597. }
  162598. }
  162599. wg.Wait()
  162600. for _, e := range ret {
  162601. if e == graphql.Null {
  162602. return graphql.Null
  162603. }
  162604. }
  162605. return ret
  162606. }
  162607. func (ec *executionContext) marshalNFulfillmentService2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentService(ctx context.Context, sel ast.SelectionSet, v *FulfillmentService) graphql.Marshaler {
  162608. if v == nil {
  162609. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162610. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162611. }
  162612. return graphql.Null
  162613. }
  162614. return ec._FulfillmentService(ctx, sel, v)
  162615. }
  162616. func (ec *executionContext) unmarshalNFulfillmentServiceType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentServiceType(ctx context.Context, v interface{}) (FulfillmentServiceType, error) {
  162617. var res FulfillmentServiceType
  162618. err := res.UnmarshalGQL(v)
  162619. return res, graphql.ErrorOnPath(ctx, err)
  162620. }
  162621. func (ec *executionContext) marshalNFulfillmentServiceType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentServiceType(ctx context.Context, sel ast.SelectionSet, v FulfillmentServiceType) graphql.Marshaler {
  162622. return v
  162623. }
  162624. func (ec *executionContext) unmarshalNFulfillmentStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentStatus(ctx context.Context, v interface{}) (FulfillmentStatus, error) {
  162625. var res FulfillmentStatus
  162626. err := res.UnmarshalGQL(v)
  162627. return res, graphql.ErrorOnPath(ctx, err)
  162628. }
  162629. func (ec *executionContext) marshalNFulfillmentStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentStatus(ctx context.Context, sel ast.SelectionSet, v FulfillmentStatus) graphql.Marshaler {
  162630. return v
  162631. }
  162632. func (ec *executionContext) marshalNFulfillmentTrackingInfo2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentTrackingInfoᚄ(ctx context.Context, sel ast.SelectionSet, v []*FulfillmentTrackingInfo) graphql.Marshaler {
  162633. ret := make(graphql.Array, len(v))
  162634. var wg sync.WaitGroup
  162635. isLen1 := len(v) == 1
  162636. if !isLen1 {
  162637. wg.Add(len(v))
  162638. }
  162639. for i := range v {
  162640. i := i
  162641. fc := &graphql.FieldContext{
  162642. Index: &i,
  162643. Result: &v[i],
  162644. }
  162645. ctx := graphql.WithFieldContext(ctx, fc)
  162646. f := func(i int) {
  162647. defer func() {
  162648. if r := recover(); r != nil {
  162649. ec.Error(ctx, ec.Recover(ctx, r))
  162650. ret = nil
  162651. }
  162652. }()
  162653. if !isLen1 {
  162654. defer wg.Done()
  162655. }
  162656. ret[i] = ec.marshalNFulfillmentTrackingInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentTrackingInfo(ctx, sel, v[i])
  162657. }
  162658. if isLen1 {
  162659. f(i)
  162660. } else {
  162661. go f(i)
  162662. }
  162663. }
  162664. wg.Wait()
  162665. for _, e := range ret {
  162666. if e == graphql.Null {
  162667. return graphql.Null
  162668. }
  162669. }
  162670. return ret
  162671. }
  162672. func (ec *executionContext) marshalNFulfillmentTrackingInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentTrackingInfo(ctx context.Context, sel ast.SelectionSet, v *FulfillmentTrackingInfo) graphql.Marshaler {
  162673. if v == nil {
  162674. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162675. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162676. }
  162677. return graphql.Null
  162678. }
  162679. return ec._FulfillmentTrackingInfo(ctx, sel, v)
  162680. }
  162681. func (ec *executionContext) unmarshalNHTML2string(ctx context.Context, v interface{}) (string, error) {
  162682. res, err := graphql.UnmarshalString(v)
  162683. return res, graphql.ErrorOnPath(ctx, err)
  162684. }
  162685. func (ec *executionContext) marshalNHTML2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  162686. res := graphql.MarshalString(v)
  162687. if res == graphql.Null {
  162688. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162689. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162690. }
  162691. }
  162692. return res
  162693. }
  162694. func (ec *executionContext) marshalNHasMetafields2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐHasMetafields(ctx context.Context, sel ast.SelectionSet, v HasMetafields) graphql.Marshaler {
  162695. if v == nil {
  162696. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162697. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162698. }
  162699. return graphql.Null
  162700. }
  162701. return ec._HasMetafields(ctx, sel, v)
  162702. }
  162703. func (ec *executionContext) unmarshalNID2string(ctx context.Context, v interface{}) (string, error) {
  162704. res, err := graphql.UnmarshalID(v)
  162705. return res, graphql.ErrorOnPath(ctx, err)
  162706. }
  162707. func (ec *executionContext) marshalNID2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  162708. res := graphql.MarshalID(v)
  162709. if res == graphql.Null {
  162710. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162711. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162712. }
  162713. }
  162714. return res
  162715. }
  162716. func (ec *executionContext) unmarshalNID2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
  162717. var vSlice []interface{}
  162718. if v != nil {
  162719. vSlice = graphql.CoerceList(v)
  162720. }
  162721. var err error
  162722. res := make([]string, len(vSlice))
  162723. for i := range vSlice {
  162724. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  162725. res[i], err = ec.unmarshalNID2string(ctx, vSlice[i])
  162726. if err != nil {
  162727. return nil, err
  162728. }
  162729. }
  162730. return res, nil
  162731. }
  162732. func (ec *executionContext) marshalNID2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
  162733. ret := make(graphql.Array, len(v))
  162734. for i := range v {
  162735. ret[i] = ec.marshalNID2string(ctx, sel, v[i])
  162736. }
  162737. for _, e := range ret {
  162738. if e == graphql.Null {
  162739. return graphql.Null
  162740. }
  162741. }
  162742. return ret
  162743. }
  162744. func (ec *executionContext) marshalNImage2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImageᚄ(ctx context.Context, sel ast.SelectionSet, v []*Image) graphql.Marshaler {
  162745. ret := make(graphql.Array, len(v))
  162746. var wg sync.WaitGroup
  162747. isLen1 := len(v) == 1
  162748. if !isLen1 {
  162749. wg.Add(len(v))
  162750. }
  162751. for i := range v {
  162752. i := i
  162753. fc := &graphql.FieldContext{
  162754. Index: &i,
  162755. Result: &v[i],
  162756. }
  162757. ctx := graphql.WithFieldContext(ctx, fc)
  162758. f := func(i int) {
  162759. defer func() {
  162760. if r := recover(); r != nil {
  162761. ec.Error(ctx, ec.Recover(ctx, r))
  162762. ret = nil
  162763. }
  162764. }()
  162765. if !isLen1 {
  162766. defer wg.Done()
  162767. }
  162768. ret[i] = ec.marshalNImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImage(ctx, sel, v[i])
  162769. }
  162770. if isLen1 {
  162771. f(i)
  162772. } else {
  162773. go f(i)
  162774. }
  162775. }
  162776. wg.Wait()
  162777. for _, e := range ret {
  162778. if e == graphql.Null {
  162779. return graphql.Null
  162780. }
  162781. }
  162782. return ret
  162783. }
  162784. func (ec *executionContext) marshalNImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImage(ctx context.Context, sel ast.SelectionSet, v *Image) graphql.Marshaler {
  162785. if v == nil {
  162786. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162787. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162788. }
  162789. return graphql.Null
  162790. }
  162791. return ec._Image(ctx, sel, v)
  162792. }
  162793. func (ec *executionContext) marshalNImageConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImageConnection(ctx context.Context, sel ast.SelectionSet, v *ImageConnection) graphql.Marshaler {
  162794. if v == nil {
  162795. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162796. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162797. }
  162798. return graphql.Null
  162799. }
  162800. return ec._ImageConnection(ctx, sel, v)
  162801. }
  162802. func (ec *executionContext) marshalNImageEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImageEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*ImageEdge) graphql.Marshaler {
  162803. ret := make(graphql.Array, len(v))
  162804. var wg sync.WaitGroup
  162805. isLen1 := len(v) == 1
  162806. if !isLen1 {
  162807. wg.Add(len(v))
  162808. }
  162809. for i := range v {
  162810. i := i
  162811. fc := &graphql.FieldContext{
  162812. Index: &i,
  162813. Result: &v[i],
  162814. }
  162815. ctx := graphql.WithFieldContext(ctx, fc)
  162816. f := func(i int) {
  162817. defer func() {
  162818. if r := recover(); r != nil {
  162819. ec.Error(ctx, ec.Recover(ctx, r))
  162820. ret = nil
  162821. }
  162822. }()
  162823. if !isLen1 {
  162824. defer wg.Done()
  162825. }
  162826. ret[i] = ec.marshalNImageEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImageEdge(ctx, sel, v[i])
  162827. }
  162828. if isLen1 {
  162829. f(i)
  162830. } else {
  162831. go f(i)
  162832. }
  162833. }
  162834. wg.Wait()
  162835. for _, e := range ret {
  162836. if e == graphql.Null {
  162837. return graphql.Null
  162838. }
  162839. }
  162840. return ret
  162841. }
  162842. func (ec *executionContext) marshalNImageEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImageEdge(ctx context.Context, sel ast.SelectionSet, v *ImageEdge) graphql.Marshaler {
  162843. if v == nil {
  162844. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162845. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162846. }
  162847. return graphql.Null
  162848. }
  162849. return ec._ImageEdge(ctx, sel, v)
  162850. }
  162851. func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) {
  162852. res, err := graphql.UnmarshalInt(v)
  162853. return res, graphql.ErrorOnPath(ctx, err)
  162854. }
  162855. func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler {
  162856. res := graphql.MarshalInt(v)
  162857. if res == graphql.Null {
  162858. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162859. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162860. }
  162861. }
  162862. return res
  162863. }
  162864. func (ec *executionContext) marshalNInventoryItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐInventoryItem(ctx context.Context, sel ast.SelectionSet, v *InventoryItem) graphql.Marshaler {
  162865. if v == nil {
  162866. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162867. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162868. }
  162869. return graphql.Null
  162870. }
  162871. return ec._InventoryItem(ctx, sel, v)
  162872. }
  162873. func (ec *executionContext) marshalNInventoryLevel2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐInventoryLevelᚄ(ctx context.Context, sel ast.SelectionSet, v []*InventoryLevel) graphql.Marshaler {
  162874. ret := make(graphql.Array, len(v))
  162875. var wg sync.WaitGroup
  162876. isLen1 := len(v) == 1
  162877. if !isLen1 {
  162878. wg.Add(len(v))
  162879. }
  162880. for i := range v {
  162881. i := i
  162882. fc := &graphql.FieldContext{
  162883. Index: &i,
  162884. Result: &v[i],
  162885. }
  162886. ctx := graphql.WithFieldContext(ctx, fc)
  162887. f := func(i int) {
  162888. defer func() {
  162889. if r := recover(); r != nil {
  162890. ec.Error(ctx, ec.Recover(ctx, r))
  162891. ret = nil
  162892. }
  162893. }()
  162894. if !isLen1 {
  162895. defer wg.Done()
  162896. }
  162897. ret[i] = ec.marshalNInventoryLevel2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐInventoryLevel(ctx, sel, v[i])
  162898. }
  162899. if isLen1 {
  162900. f(i)
  162901. } else {
  162902. go f(i)
  162903. }
  162904. }
  162905. wg.Wait()
  162906. for _, e := range ret {
  162907. if e == graphql.Null {
  162908. return graphql.Null
  162909. }
  162910. }
  162911. return ret
  162912. }
  162913. func (ec *executionContext) marshalNInventoryLevel2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐInventoryLevel(ctx context.Context, sel ast.SelectionSet, v *InventoryLevel) graphql.Marshaler {
  162914. if v == nil {
  162915. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162916. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162917. }
  162918. return graphql.Null
  162919. }
  162920. return ec._InventoryLevel(ctx, sel, v)
  162921. }
  162922. func (ec *executionContext) marshalNInventoryLevelConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐInventoryLevelConnection(ctx context.Context, sel ast.SelectionSet, v *InventoryLevelConnection) graphql.Marshaler {
  162923. if v == nil {
  162924. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162925. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162926. }
  162927. return graphql.Null
  162928. }
  162929. return ec._InventoryLevelConnection(ctx, sel, v)
  162930. }
  162931. func (ec *executionContext) marshalNInventoryLevelEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐInventoryLevelEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*InventoryLevelEdge) graphql.Marshaler {
  162932. ret := make(graphql.Array, len(v))
  162933. var wg sync.WaitGroup
  162934. isLen1 := len(v) == 1
  162935. if !isLen1 {
  162936. wg.Add(len(v))
  162937. }
  162938. for i := range v {
  162939. i := i
  162940. fc := &graphql.FieldContext{
  162941. Index: &i,
  162942. Result: &v[i],
  162943. }
  162944. ctx := graphql.WithFieldContext(ctx, fc)
  162945. f := func(i int) {
  162946. defer func() {
  162947. if r := recover(); r != nil {
  162948. ec.Error(ctx, ec.Recover(ctx, r))
  162949. ret = nil
  162950. }
  162951. }()
  162952. if !isLen1 {
  162953. defer wg.Done()
  162954. }
  162955. ret[i] = ec.marshalNInventoryLevelEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐInventoryLevelEdge(ctx, sel, v[i])
  162956. }
  162957. if isLen1 {
  162958. f(i)
  162959. } else {
  162960. go f(i)
  162961. }
  162962. }
  162963. wg.Wait()
  162964. for _, e := range ret {
  162965. if e == graphql.Null {
  162966. return graphql.Null
  162967. }
  162968. }
  162969. return ret
  162970. }
  162971. func (ec *executionContext) marshalNInventoryLevelEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐInventoryLevelEdge(ctx context.Context, sel ast.SelectionSet, v *InventoryLevelEdge) graphql.Marshaler {
  162972. if v == nil {
  162973. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162974. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162975. }
  162976. return graphql.Null
  162977. }
  162978. return ec._InventoryLevelEdge(ctx, sel, v)
  162979. }
  162980. func (ec *executionContext) marshalNLimitedPendingOrderCount2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLimitedPendingOrderCount(ctx context.Context, sel ast.SelectionSet, v *LimitedPendingOrderCount) graphql.Marshaler {
  162981. if v == nil {
  162982. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  162983. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  162984. }
  162985. return graphql.Null
  162986. }
  162987. return ec._LimitedPendingOrderCount(ctx, sel, v)
  162988. }
  162989. func (ec *executionContext) marshalNLineItem2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLineItemᚄ(ctx context.Context, sel ast.SelectionSet, v []*LineItem) graphql.Marshaler {
  162990. ret := make(graphql.Array, len(v))
  162991. var wg sync.WaitGroup
  162992. isLen1 := len(v) == 1
  162993. if !isLen1 {
  162994. wg.Add(len(v))
  162995. }
  162996. for i := range v {
  162997. i := i
  162998. fc := &graphql.FieldContext{
  162999. Index: &i,
  163000. Result: &v[i],
  163001. }
  163002. ctx := graphql.WithFieldContext(ctx, fc)
  163003. f := func(i int) {
  163004. defer func() {
  163005. if r := recover(); r != nil {
  163006. ec.Error(ctx, ec.Recover(ctx, r))
  163007. ret = nil
  163008. }
  163009. }()
  163010. if !isLen1 {
  163011. defer wg.Done()
  163012. }
  163013. ret[i] = ec.marshalNLineItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLineItem(ctx, sel, v[i])
  163014. }
  163015. if isLen1 {
  163016. f(i)
  163017. } else {
  163018. go f(i)
  163019. }
  163020. }
  163021. wg.Wait()
  163022. for _, e := range ret {
  163023. if e == graphql.Null {
  163024. return graphql.Null
  163025. }
  163026. }
  163027. return ret
  163028. }
  163029. func (ec *executionContext) marshalNLineItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLineItem(ctx context.Context, sel ast.SelectionSet, v *LineItem) graphql.Marshaler {
  163030. if v == nil {
  163031. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  163032. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  163033. }
  163034. return graphql.Null
  163035. }
  163036. return ec._LineItem(ctx, sel, v)
  163037. }
  163038. func (ec *executionContext) marshalNLineItemConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLineItemConnection(ctx context.Context, sel ast.SelectionSet, v *LineItemConnection) graphql.Marshaler {
  163039. if v == nil {
  163040. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  163041. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  163042. }
  163043. return graphql.Null
  163044. }
  163045. return ec._LineItemConnection(ctx, sel, v)
  163046. }
  163047. func (ec *executionContext) marshalNLineItemEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLineItemEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*LineItemEdge) graphql.Marshaler {
  163048. ret := make(graphql.Array, len(v))
  163049. var wg sync.WaitGroup
  163050. isLen1 := len(v) == 1
  163051. if !isLen1 {
  163052. wg.Add(len(v))
  163053. }
  163054. for i := range v {
  163055. i := i
  163056. fc := &graphql.FieldContext{
  163057. Index: &i,
  163058. Result: &v[i],
  163059. }
  163060. ctx := graphql.WithFieldContext(ctx, fc)
  163061. f := func(i int) {
  163062. defer func() {
  163063. if r := recover(); r != nil {
  163064. ec.Error(ctx, ec.Recover(ctx, r))
  163065. ret = nil
  163066. }
  163067. }()
  163068. if !isLen1 {
  163069. defer wg.Done()
  163070. }
  163071. ret[i] = ec.marshalNLineItemEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLineItemEdge(ctx, sel, v[i])
  163072. }
  163073. if isLen1 {
  163074. f(i)
  163075. } else {
  163076. go f(i)
  163077. }
  163078. }
  163079. wg.Wait()
  163080. for _, e := range ret {
  163081. if e == graphql.Null {
  163082. return graphql.Null
  163083. }
  163084. }
  163085. return ret
  163086. }
  163087. func (ec *executionContext) marshalNLineItemEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLineItemEdge(ctx context.Context, sel ast.SelectionSet, v *LineItemEdge) graphql.Marshaler {
  163088. if v == nil {
  163089. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  163090. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  163091. }
  163092. return graphql.Null
  163093. }
  163094. return ec._LineItemEdge(ctx, sel, v)
  163095. }
  163096. func (ec *executionContext) marshalNLocalizationExtension2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocalizationExtensionᚄ(ctx context.Context, sel ast.SelectionSet, v []*LocalizationExtension) graphql.Marshaler {
  163097. ret := make(graphql.Array, len(v))
  163098. var wg sync.WaitGroup
  163099. isLen1 := len(v) == 1
  163100. if !isLen1 {
  163101. wg.Add(len(v))
  163102. }
  163103. for i := range v {
  163104. i := i
  163105. fc := &graphql.FieldContext{
  163106. Index: &i,
  163107. Result: &v[i],
  163108. }
  163109. ctx := graphql.WithFieldContext(ctx, fc)
  163110. f := func(i int) {
  163111. defer func() {
  163112. if r := recover(); r != nil {
  163113. ec.Error(ctx, ec.Recover(ctx, r))
  163114. ret = nil
  163115. }
  163116. }()
  163117. if !isLen1 {
  163118. defer wg.Done()
  163119. }
  163120. ret[i] = ec.marshalNLocalizationExtension2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocalizationExtension(ctx, sel, v[i])
  163121. }
  163122. if isLen1 {
  163123. f(i)
  163124. } else {
  163125. go f(i)
  163126. }
  163127. }
  163128. wg.Wait()
  163129. for _, e := range ret {
  163130. if e == graphql.Null {
  163131. return graphql.Null
  163132. }
  163133. }
  163134. return ret
  163135. }
  163136. func (ec *executionContext) marshalNLocalizationExtension2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocalizationExtension(ctx context.Context, sel ast.SelectionSet, v *LocalizationExtension) graphql.Marshaler {
  163137. if v == nil {
  163138. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  163139. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  163140. }
  163141. return graphql.Null
  163142. }
  163143. return ec._LocalizationExtension(ctx, sel, v)
  163144. }
  163145. func (ec *executionContext) marshalNLocalizationExtensionConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocalizationExtensionConnection(ctx context.Context, sel ast.SelectionSet, v *LocalizationExtensionConnection) graphql.Marshaler {
  163146. if v == nil {
  163147. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  163148. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  163149. }
  163150. return graphql.Null
  163151. }
  163152. return ec._LocalizationExtensionConnection(ctx, sel, v)
  163153. }
  163154. func (ec *executionContext) marshalNLocalizationExtensionEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocalizationExtensionEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*LocalizationExtensionEdge) graphql.Marshaler {
  163155. ret := make(graphql.Array, len(v))
  163156. var wg sync.WaitGroup
  163157. isLen1 := len(v) == 1
  163158. if !isLen1 {
  163159. wg.Add(len(v))
  163160. }
  163161. for i := range v {
  163162. i := i
  163163. fc := &graphql.FieldContext{
  163164. Index: &i,
  163165. Result: &v[i],
  163166. }
  163167. ctx := graphql.WithFieldContext(ctx, fc)
  163168. f := func(i int) {
  163169. defer func() {
  163170. if r := recover(); r != nil {
  163171. ec.Error(ctx, ec.Recover(ctx, r))
  163172. ret = nil
  163173. }
  163174. }()
  163175. if !isLen1 {
  163176. defer wg.Done()
  163177. }
  163178. ret[i] = ec.marshalNLocalizationExtensionEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocalizationExtensionEdge(ctx, sel, v[i])
  163179. }
  163180. if isLen1 {
  163181. f(i)
  163182. } else {
  163183. go f(i)
  163184. }
  163185. }
  163186. wg.Wait()
  163187. for _, e := range ret {
  163188. if e == graphql.Null {
  163189. return graphql.Null
  163190. }
  163191. }
  163192. return ret
  163193. }
  163194. func (ec *executionContext) marshalNLocalizationExtensionEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocalizationExtensionEdge(ctx context.Context, sel ast.SelectionSet, v *LocalizationExtensionEdge) graphql.Marshaler {
  163195. if v == nil {
  163196. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  163197. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  163198. }
  163199. return graphql.Null
  163200. }
  163201. return ec._LocalizationExtensionEdge(ctx, sel, v)
  163202. }
  163203. func (ec *executionContext) unmarshalNLocalizationExtensionKey2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocalizationExtensionKey(ctx context.Context, v interface{}) (LocalizationExtensionKey, error) {
  163204. var res LocalizationExtensionKey
  163205. err := res.UnmarshalGQL(v)
  163206. return res, graphql.ErrorOnPath(ctx, err)
  163207. }
  163208. func (ec *executionContext) marshalNLocalizationExtensionKey2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocalizationExtensionKey(ctx context.Context, sel ast.SelectionSet, v LocalizationExtensionKey) graphql.Marshaler {
  163209. return v
  163210. }
  163211. func (ec *executionContext) unmarshalNLocalizationExtensionPurpose2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocalizationExtensionPurpose(ctx context.Context, v interface{}) (LocalizationExtensionPurpose, error) {
  163212. var res LocalizationExtensionPurpose
  163213. err := res.UnmarshalGQL(v)
  163214. return res, graphql.ErrorOnPath(ctx, err)
  163215. }
  163216. func (ec *executionContext) marshalNLocalizationExtensionPurpose2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocalizationExtensionPurpose(ctx context.Context, sel ast.SelectionSet, v LocalizationExtensionPurpose) graphql.Marshaler {
  163217. return v
  163218. }
  163219. func (ec *executionContext) marshalNLocation2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocationᚄ(ctx context.Context, sel ast.SelectionSet, v []*Location) graphql.Marshaler {
  163220. ret := make(graphql.Array, len(v))
  163221. var wg sync.WaitGroup
  163222. isLen1 := len(v) == 1
  163223. if !isLen1 {
  163224. wg.Add(len(v))
  163225. }
  163226. for i := range v {
  163227. i := i
  163228. fc := &graphql.FieldContext{
  163229. Index: &i,
  163230. Result: &v[i],
  163231. }
  163232. ctx := graphql.WithFieldContext(ctx, fc)
  163233. f := func(i int) {
  163234. defer func() {
  163235. if r := recover(); r != nil {
  163236. ec.Error(ctx, ec.Recover(ctx, r))
  163237. ret = nil
  163238. }
  163239. }()
  163240. if !isLen1 {
  163241. defer wg.Done()
  163242. }
  163243. ret[i] = ec.marshalNLocation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocation(ctx, sel, v[i])
  163244. }
  163245. if isLen1 {
  163246. f(i)
  163247. } else {
  163248. go f(i)
  163249. }
  163250. }
  163251. wg.Wait()
  163252. for _, e := range ret {
  163253. if e == graphql.Null {
  163254. return graphql.Null
  163255. }
  163256. }
  163257. return ret
  163258. }
  163259. func (ec *executionContext) marshalNLocation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocation(ctx context.Context, sel ast.SelectionSet, v *Location) graphql.Marshaler {
  163260. if v == nil {
  163261. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  163262. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  163263. }
  163264. return graphql.Null
  163265. }
  163266. return ec._Location(ctx, sel, v)
  163267. }
  163268. func (ec *executionContext) marshalNLocationAddress2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocationAddress(ctx context.Context, sel ast.SelectionSet, v *LocationAddress) graphql.Marshaler {
  163269. if v == nil {
  163270. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  163271. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  163272. }
  163273. return graphql.Null
  163274. }
  163275. return ec._LocationAddress(ctx, sel, v)
  163276. }
  163277. func (ec *executionContext) marshalNLocationConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocationConnection(ctx context.Context, sel ast.SelectionSet, v *LocationConnection) graphql.Marshaler {
  163278. if v == nil {
  163279. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  163280. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  163281. }
  163282. return graphql.Null
  163283. }
  163284. return ec._LocationConnection(ctx, sel, v)
  163285. }
  163286. func (ec *executionContext) marshalNLocationEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocationEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*LocationEdge) graphql.Marshaler {
  163287. ret := make(graphql.Array, len(v))
  163288. var wg sync.WaitGroup
  163289. isLen1 := len(v) == 1
  163290. if !isLen1 {
  163291. wg.Add(len(v))
  163292. }
  163293. for i := range v {
  163294. i := i
  163295. fc := &graphql.FieldContext{
  163296. Index: &i,
  163297. Result: &v[i],
  163298. }
  163299. ctx := graphql.WithFieldContext(ctx, fc)
  163300. f := func(i int) {
  163301. defer func() {
  163302. if r := recover(); r != nil {
  163303. ec.Error(ctx, ec.Recover(ctx, r))
  163304. ret = nil
  163305. }
  163306. }()
  163307. if !isLen1 {
  163308. defer wg.Done()
  163309. }
  163310. ret[i] = ec.marshalNLocationEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocationEdge(ctx, sel, v[i])
  163311. }
  163312. if isLen1 {
  163313. f(i)
  163314. } else {
  163315. go f(i)
  163316. }
  163317. }
  163318. wg.Wait()
  163319. for _, e := range ret {
  163320. if e == graphql.Null {
  163321. return graphql.Null
  163322. }
  163323. }
  163324. return ret
  163325. }
  163326. func (ec *executionContext) marshalNLocationEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocationEdge(ctx context.Context, sel ast.SelectionSet, v *LocationEdge) graphql.Marshaler {
  163327. if v == nil {
  163328. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  163329. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  163330. }
  163331. return graphql.Null
  163332. }
  163333. return ec._LocationEdge(ctx, sel, v)
  163334. }
  163335. func (ec *executionContext) marshalNLocationSuggestedAddress2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocationSuggestedAddressᚄ(ctx context.Context, sel ast.SelectionSet, v []*LocationSuggestedAddress) graphql.Marshaler {
  163336. ret := make(graphql.Array, len(v))
  163337. var wg sync.WaitGroup
  163338. isLen1 := len(v) == 1
  163339. if !isLen1 {
  163340. wg.Add(len(v))
  163341. }
  163342. for i := range v {
  163343. i := i
  163344. fc := &graphql.FieldContext{
  163345. Index: &i,
  163346. Result: &v[i],
  163347. }
  163348. ctx := graphql.WithFieldContext(ctx, fc)
  163349. f := func(i int) {
  163350. defer func() {
  163351. if r := recover(); r != nil {
  163352. ec.Error(ctx, ec.Recover(ctx, r))
  163353. ret = nil
  163354. }
  163355. }()
  163356. if !isLen1 {
  163357. defer wg.Done()
  163358. }
  163359. ret[i] = ec.marshalNLocationSuggestedAddress2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocationSuggestedAddress(ctx, sel, v[i])
  163360. }
  163361. if isLen1 {
  163362. f(i)
  163363. } else {
  163364. go f(i)
  163365. }
  163366. }
  163367. wg.Wait()
  163368. for _, e := range ret {
  163369. if e == graphql.Null {
  163370. return graphql.Null
  163371. }
  163372. }
  163373. return ret
  163374. }
  163375. func (ec *executionContext) marshalNLocationSuggestedAddress2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocationSuggestedAddress(ctx context.Context, sel ast.SelectionSet, v *LocationSuggestedAddress) graphql.Marshaler {
  163376. if v == nil {
  163377. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  163378. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  163379. }
  163380. return graphql.Null
  163381. }
  163382. return ec._LocationSuggestedAddress(ctx, sel, v)
  163383. }
  163384. func (ec *executionContext) marshalNMailingAddress2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMailingAddressᚄ(ctx context.Context, sel ast.SelectionSet, v []*MailingAddress) graphql.Marshaler {
  163385. ret := make(graphql.Array, len(v))
  163386. var wg sync.WaitGroup
  163387. isLen1 := len(v) == 1
  163388. if !isLen1 {
  163389. wg.Add(len(v))
  163390. }
  163391. for i := range v {
  163392. i := i
  163393. fc := &graphql.FieldContext{
  163394. Index: &i,
  163395. Result: &v[i],
  163396. }
  163397. ctx := graphql.WithFieldContext(ctx, fc)
  163398. f := func(i int) {
  163399. defer func() {
  163400. if r := recover(); r != nil {
  163401. ec.Error(ctx, ec.Recover(ctx, r))
  163402. ret = nil
  163403. }
  163404. }()
  163405. if !isLen1 {
  163406. defer wg.Done()
  163407. }
  163408. ret[i] = ec.marshalNMailingAddress2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMailingAddress(ctx, sel, v[i])
  163409. }
  163410. if isLen1 {
  163411. f(i)
  163412. } else {
  163413. go f(i)
  163414. }
  163415. }
  163416. wg.Wait()
  163417. for _, e := range ret {
  163418. if e == graphql.Null {
  163419. return graphql.Null
  163420. }
  163421. }
  163422. return ret
  163423. }
  163424. func (ec *executionContext) marshalNMailingAddress2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMailingAddress(ctx context.Context, sel ast.SelectionSet, v *MailingAddress) graphql.Marshaler {
  163425. if v == nil {
  163426. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  163427. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  163428. }
  163429. return graphql.Null
  163430. }
  163431. return ec._MailingAddress(ctx, sel, v)
  163432. }
  163433. func (ec *executionContext) unmarshalNMailingAddressInput2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMailingAddressInput(ctx context.Context, v interface{}) (*MailingAddressInput, error) {
  163434. res, err := ec.unmarshalInputMailingAddressInput(ctx, v)
  163435. return &res, graphql.ErrorOnPath(ctx, err)
  163436. }
  163437. func (ec *executionContext) marshalNMarket2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarket(ctx context.Context, sel ast.SelectionSet, v *Market) graphql.Marshaler {
  163438. if v == nil {
  163439. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  163440. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  163441. }
  163442. return graphql.Null
  163443. }
  163444. return ec._Market(ctx, sel, v)
  163445. }
  163446. func (ec *executionContext) marshalNMarketCurrencySettings2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketCurrencySettings(ctx context.Context, sel ast.SelectionSet, v *MarketCurrencySettings) graphql.Marshaler {
  163447. if v == nil {
  163448. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  163449. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  163450. }
  163451. return graphql.Null
  163452. }
  163453. return ec._MarketCurrencySettings(ctx, sel, v)
  163454. }
  163455. func (ec *executionContext) marshalNMarketRegion2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketRegion(ctx context.Context, sel ast.SelectionSet, v MarketRegion) graphql.Marshaler {
  163456. if v == nil {
  163457. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  163458. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  163459. }
  163460. return graphql.Null
  163461. }
  163462. return ec._MarketRegion(ctx, sel, v)
  163463. }
  163464. func (ec *executionContext) marshalNMarketRegion2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketRegionᚄ(ctx context.Context, sel ast.SelectionSet, v []MarketRegion) graphql.Marshaler {
  163465. ret := make(graphql.Array, len(v))
  163466. var wg sync.WaitGroup
  163467. isLen1 := len(v) == 1
  163468. if !isLen1 {
  163469. wg.Add(len(v))
  163470. }
  163471. for i := range v {
  163472. i := i
  163473. fc := &graphql.FieldContext{
  163474. Index: &i,
  163475. Result: &v[i],
  163476. }
  163477. ctx := graphql.WithFieldContext(ctx, fc)
  163478. f := func(i int) {
  163479. defer func() {
  163480. if r := recover(); r != nil {
  163481. ec.Error(ctx, ec.Recover(ctx, r))
  163482. ret = nil
  163483. }
  163484. }()
  163485. if !isLen1 {
  163486. defer wg.Done()
  163487. }
  163488. ret[i] = ec.marshalNMarketRegion2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketRegion(ctx, sel, v[i])
  163489. }
  163490. if isLen1 {
  163491. f(i)
  163492. } else {
  163493. go f(i)
  163494. }
  163495. }
  163496. wg.Wait()
  163497. for _, e := range ret {
  163498. if e == graphql.Null {
  163499. return graphql.Null
  163500. }
  163501. }
  163502. return ret
  163503. }
  163504. func (ec *executionContext) marshalNMarketRegionConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketRegionConnection(ctx context.Context, sel ast.SelectionSet, v *MarketRegionConnection) graphql.Marshaler {
  163505. if v == nil {
  163506. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  163507. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  163508. }
  163509. return graphql.Null
  163510. }
  163511. return ec._MarketRegionConnection(ctx, sel, v)
  163512. }
  163513. func (ec *executionContext) marshalNMarketRegionEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketRegionEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*MarketRegionEdge) graphql.Marshaler {
  163514. ret := make(graphql.Array, len(v))
  163515. var wg sync.WaitGroup
  163516. isLen1 := len(v) == 1
  163517. if !isLen1 {
  163518. wg.Add(len(v))
  163519. }
  163520. for i := range v {
  163521. i := i
  163522. fc := &graphql.FieldContext{
  163523. Index: &i,
  163524. Result: &v[i],
  163525. }
  163526. ctx := graphql.WithFieldContext(ctx, fc)
  163527. f := func(i int) {
  163528. defer func() {
  163529. if r := recover(); r != nil {
  163530. ec.Error(ctx, ec.Recover(ctx, r))
  163531. ret = nil
  163532. }
  163533. }()
  163534. if !isLen1 {
  163535. defer wg.Done()
  163536. }
  163537. ret[i] = ec.marshalNMarketRegionEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketRegionEdge(ctx, sel, v[i])
  163538. }
  163539. if isLen1 {
  163540. f(i)
  163541. } else {
  163542. go f(i)
  163543. }
  163544. }
  163545. wg.Wait()
  163546. for _, e := range ret {
  163547. if e == graphql.Null {
  163548. return graphql.Null
  163549. }
  163550. }
  163551. return ret
  163552. }
  163553. func (ec *executionContext) marshalNMarketRegionEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketRegionEdge(ctx context.Context, sel ast.SelectionSet, v *MarketRegionEdge) graphql.Marshaler {
  163554. if v == nil {
  163555. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  163556. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  163557. }
  163558. return graphql.Null
  163559. }
  163560. return ec._MarketRegionEdge(ctx, sel, v)
  163561. }
  163562. func (ec *executionContext) marshalNMarketWebPresenceRootUrl2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketWebPresenceRootURLᚄ(ctx context.Context, sel ast.SelectionSet, v []*MarketWebPresenceRootURL) graphql.Marshaler {
  163563. ret := make(graphql.Array, len(v))
  163564. var wg sync.WaitGroup
  163565. isLen1 := len(v) == 1
  163566. if !isLen1 {
  163567. wg.Add(len(v))
  163568. }
  163569. for i := range v {
  163570. i := i
  163571. fc := &graphql.FieldContext{
  163572. Index: &i,
  163573. Result: &v[i],
  163574. }
  163575. ctx := graphql.WithFieldContext(ctx, fc)
  163576. f := func(i int) {
  163577. defer func() {
  163578. if r := recover(); r != nil {
  163579. ec.Error(ctx, ec.Recover(ctx, r))
  163580. ret = nil
  163581. }
  163582. }()
  163583. if !isLen1 {
  163584. defer wg.Done()
  163585. }
  163586. ret[i] = ec.marshalNMarketWebPresenceRootUrl2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketWebPresenceRootURL(ctx, sel, v[i])
  163587. }
  163588. if isLen1 {
  163589. f(i)
  163590. } else {
  163591. go f(i)
  163592. }
  163593. }
  163594. wg.Wait()
  163595. for _, e := range ret {
  163596. if e == graphql.Null {
  163597. return graphql.Null
  163598. }
  163599. }
  163600. return ret
  163601. }
  163602. func (ec *executionContext) marshalNMarketWebPresenceRootUrl2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketWebPresenceRootURL(ctx context.Context, sel ast.SelectionSet, v *MarketWebPresenceRootURL) graphql.Marshaler {
  163603. if v == nil {
  163604. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  163605. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  163606. }
  163607. return graphql.Null
  163608. }
  163609. return ec._MarketWebPresenceRootUrl(ctx, sel, v)
  163610. }
  163611. func (ec *executionContext) unmarshalNMarketingTactic2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketingTactic(ctx context.Context, v interface{}) (MarketingTactic, error) {
  163612. var res MarketingTactic
  163613. err := res.UnmarshalGQL(v)
  163614. return res, graphql.ErrorOnPath(ctx, err)
  163615. }
  163616. func (ec *executionContext) marshalNMarketingTactic2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketingTactic(ctx context.Context, sel ast.SelectionSet, v MarketingTactic) graphql.Marshaler {
  163617. return v
  163618. }
  163619. func (ec *executionContext) marshalNMedia2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMedia(ctx context.Context, sel ast.SelectionSet, v Media) graphql.Marshaler {
  163620. if v == nil {
  163621. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  163622. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  163623. }
  163624. return graphql.Null
  163625. }
  163626. return ec._Media(ctx, sel, v)
  163627. }
  163628. func (ec *executionContext) marshalNMedia2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaᚄ(ctx context.Context, sel ast.SelectionSet, v []Media) graphql.Marshaler {
  163629. ret := make(graphql.Array, len(v))
  163630. var wg sync.WaitGroup
  163631. isLen1 := len(v) == 1
  163632. if !isLen1 {
  163633. wg.Add(len(v))
  163634. }
  163635. for i := range v {
  163636. i := i
  163637. fc := &graphql.FieldContext{
  163638. Index: &i,
  163639. Result: &v[i],
  163640. }
  163641. ctx := graphql.WithFieldContext(ctx, fc)
  163642. f := func(i int) {
  163643. defer func() {
  163644. if r := recover(); r != nil {
  163645. ec.Error(ctx, ec.Recover(ctx, r))
  163646. ret = nil
  163647. }
  163648. }()
  163649. if !isLen1 {
  163650. defer wg.Done()
  163651. }
  163652. ret[i] = ec.marshalNMedia2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMedia(ctx, sel, v[i])
  163653. }
  163654. if isLen1 {
  163655. f(i)
  163656. } else {
  163657. go f(i)
  163658. }
  163659. }
  163660. wg.Wait()
  163661. for _, e := range ret {
  163662. if e == graphql.Null {
  163663. return graphql.Null
  163664. }
  163665. }
  163666. return ret
  163667. }
  163668. func (ec *executionContext) marshalNMediaConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaConnection(ctx context.Context, sel ast.SelectionSet, v *MediaConnection) graphql.Marshaler {
  163669. if v == nil {
  163670. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  163671. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  163672. }
  163673. return graphql.Null
  163674. }
  163675. return ec._MediaConnection(ctx, sel, v)
  163676. }
  163677. func (ec *executionContext) unmarshalNMediaContentType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaContentType(ctx context.Context, v interface{}) (MediaContentType, error) {
  163678. var res MediaContentType
  163679. err := res.UnmarshalGQL(v)
  163680. return res, graphql.ErrorOnPath(ctx, err)
  163681. }
  163682. func (ec *executionContext) marshalNMediaContentType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaContentType(ctx context.Context, sel ast.SelectionSet, v MediaContentType) graphql.Marshaler {
  163683. return v
  163684. }
  163685. func (ec *executionContext) marshalNMediaEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*MediaEdge) graphql.Marshaler {
  163686. ret := make(graphql.Array, len(v))
  163687. var wg sync.WaitGroup
  163688. isLen1 := len(v) == 1
  163689. if !isLen1 {
  163690. wg.Add(len(v))
  163691. }
  163692. for i := range v {
  163693. i := i
  163694. fc := &graphql.FieldContext{
  163695. Index: &i,
  163696. Result: &v[i],
  163697. }
  163698. ctx := graphql.WithFieldContext(ctx, fc)
  163699. f := func(i int) {
  163700. defer func() {
  163701. if r := recover(); r != nil {
  163702. ec.Error(ctx, ec.Recover(ctx, r))
  163703. ret = nil
  163704. }
  163705. }()
  163706. if !isLen1 {
  163707. defer wg.Done()
  163708. }
  163709. ret[i] = ec.marshalNMediaEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaEdge(ctx, sel, v[i])
  163710. }
  163711. if isLen1 {
  163712. f(i)
  163713. } else {
  163714. go f(i)
  163715. }
  163716. }
  163717. wg.Wait()
  163718. for _, e := range ret {
  163719. if e == graphql.Null {
  163720. return graphql.Null
  163721. }
  163722. }
  163723. return ret
  163724. }
  163725. func (ec *executionContext) marshalNMediaEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaEdge(ctx context.Context, sel ast.SelectionSet, v *MediaEdge) graphql.Marshaler {
  163726. if v == nil {
  163727. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  163728. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  163729. }
  163730. return graphql.Null
  163731. }
  163732. return ec._MediaEdge(ctx, sel, v)
  163733. }
  163734. func (ec *executionContext) marshalNMediaError2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaErrorᚄ(ctx context.Context, sel ast.SelectionSet, v []*MediaError) graphql.Marshaler {
  163735. ret := make(graphql.Array, len(v))
  163736. var wg sync.WaitGroup
  163737. isLen1 := len(v) == 1
  163738. if !isLen1 {
  163739. wg.Add(len(v))
  163740. }
  163741. for i := range v {
  163742. i := i
  163743. fc := &graphql.FieldContext{
  163744. Index: &i,
  163745. Result: &v[i],
  163746. }
  163747. ctx := graphql.WithFieldContext(ctx, fc)
  163748. f := func(i int) {
  163749. defer func() {
  163750. if r := recover(); r != nil {
  163751. ec.Error(ctx, ec.Recover(ctx, r))
  163752. ret = nil
  163753. }
  163754. }()
  163755. if !isLen1 {
  163756. defer wg.Done()
  163757. }
  163758. ret[i] = ec.marshalNMediaError2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaError(ctx, sel, v[i])
  163759. }
  163760. if isLen1 {
  163761. f(i)
  163762. } else {
  163763. go f(i)
  163764. }
  163765. }
  163766. wg.Wait()
  163767. for _, e := range ret {
  163768. if e == graphql.Null {
  163769. return graphql.Null
  163770. }
  163771. }
  163772. return ret
  163773. }
  163774. func (ec *executionContext) marshalNMediaError2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaError(ctx context.Context, sel ast.SelectionSet, v *MediaError) graphql.Marshaler {
  163775. if v == nil {
  163776. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  163777. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  163778. }
  163779. return graphql.Null
  163780. }
  163781. return ec._MediaError(ctx, sel, v)
  163782. }
  163783. func (ec *executionContext) unmarshalNMediaErrorCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaErrorCode(ctx context.Context, v interface{}) (MediaErrorCode, error) {
  163784. var res MediaErrorCode
  163785. err := res.UnmarshalGQL(v)
  163786. return res, graphql.ErrorOnPath(ctx, err)
  163787. }
  163788. func (ec *executionContext) marshalNMediaErrorCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaErrorCode(ctx context.Context, sel ast.SelectionSet, v MediaErrorCode) graphql.Marshaler {
  163789. return v
  163790. }
  163791. func (ec *executionContext) unmarshalNMediaPreviewImageStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaPreviewImageStatus(ctx context.Context, v interface{}) (MediaPreviewImageStatus, error) {
  163792. var res MediaPreviewImageStatus
  163793. err := res.UnmarshalGQL(v)
  163794. return res, graphql.ErrorOnPath(ctx, err)
  163795. }
  163796. func (ec *executionContext) marshalNMediaPreviewImageStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaPreviewImageStatus(ctx context.Context, sel ast.SelectionSet, v MediaPreviewImageStatus) graphql.Marshaler {
  163797. return v
  163798. }
  163799. func (ec *executionContext) unmarshalNMediaStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaStatus(ctx context.Context, v interface{}) (MediaStatus, error) {
  163800. var res MediaStatus
  163801. err := res.UnmarshalGQL(v)
  163802. return res, graphql.ErrorOnPath(ctx, err)
  163803. }
  163804. func (ec *executionContext) marshalNMediaStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaStatus(ctx context.Context, sel ast.SelectionSet, v MediaStatus) graphql.Marshaler {
  163805. return v
  163806. }
  163807. func (ec *executionContext) marshalNMediaWarning2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaWarningᚄ(ctx context.Context, sel ast.SelectionSet, v []*MediaWarning) graphql.Marshaler {
  163808. ret := make(graphql.Array, len(v))
  163809. var wg sync.WaitGroup
  163810. isLen1 := len(v) == 1
  163811. if !isLen1 {
  163812. wg.Add(len(v))
  163813. }
  163814. for i := range v {
  163815. i := i
  163816. fc := &graphql.FieldContext{
  163817. Index: &i,
  163818. Result: &v[i],
  163819. }
  163820. ctx := graphql.WithFieldContext(ctx, fc)
  163821. f := func(i int) {
  163822. defer func() {
  163823. if r := recover(); r != nil {
  163824. ec.Error(ctx, ec.Recover(ctx, r))
  163825. ret = nil
  163826. }
  163827. }()
  163828. if !isLen1 {
  163829. defer wg.Done()
  163830. }
  163831. ret[i] = ec.marshalNMediaWarning2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaWarning(ctx, sel, v[i])
  163832. }
  163833. if isLen1 {
  163834. f(i)
  163835. } else {
  163836. go f(i)
  163837. }
  163838. }
  163839. wg.Wait()
  163840. for _, e := range ret {
  163841. if e == graphql.Null {
  163842. return graphql.Null
  163843. }
  163844. }
  163845. return ret
  163846. }
  163847. func (ec *executionContext) marshalNMediaWarning2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaWarning(ctx context.Context, sel ast.SelectionSet, v *MediaWarning) graphql.Marshaler {
  163848. if v == nil {
  163849. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  163850. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  163851. }
  163852. return graphql.Null
  163853. }
  163854. return ec._MediaWarning(ctx, sel, v)
  163855. }
  163856. func (ec *executionContext) unmarshalNMediaWarningCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaWarningCode(ctx context.Context, v interface{}) (MediaWarningCode, error) {
  163857. var res MediaWarningCode
  163858. err := res.UnmarshalGQL(v)
  163859. return res, graphql.ErrorOnPath(ctx, err)
  163860. }
  163861. func (ec *executionContext) marshalNMediaWarningCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaWarningCode(ctx context.Context, sel ast.SelectionSet, v MediaWarningCode) graphql.Marshaler {
  163862. return v
  163863. }
  163864. func (ec *executionContext) marshalNMetafield2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldᚄ(ctx context.Context, sel ast.SelectionSet, v []*Metafield) graphql.Marshaler {
  163865. ret := make(graphql.Array, len(v))
  163866. var wg sync.WaitGroup
  163867. isLen1 := len(v) == 1
  163868. if !isLen1 {
  163869. wg.Add(len(v))
  163870. }
  163871. for i := range v {
  163872. i := i
  163873. fc := &graphql.FieldContext{
  163874. Index: &i,
  163875. Result: &v[i],
  163876. }
  163877. ctx := graphql.WithFieldContext(ctx, fc)
  163878. f := func(i int) {
  163879. defer func() {
  163880. if r := recover(); r != nil {
  163881. ec.Error(ctx, ec.Recover(ctx, r))
  163882. ret = nil
  163883. }
  163884. }()
  163885. if !isLen1 {
  163886. defer wg.Done()
  163887. }
  163888. ret[i] = ec.marshalNMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafield(ctx, sel, v[i])
  163889. }
  163890. if isLen1 {
  163891. f(i)
  163892. } else {
  163893. go f(i)
  163894. }
  163895. }
  163896. wg.Wait()
  163897. for _, e := range ret {
  163898. if e == graphql.Null {
  163899. return graphql.Null
  163900. }
  163901. }
  163902. return ret
  163903. }
  163904. func (ec *executionContext) marshalNMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafield(ctx context.Context, sel ast.SelectionSet, v *Metafield) graphql.Marshaler {
  163905. if v == nil {
  163906. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  163907. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  163908. }
  163909. return graphql.Null
  163910. }
  163911. return ec._Metafield(ctx, sel, v)
  163912. }
  163913. func (ec *executionContext) marshalNMetafieldConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldConnection(ctx context.Context, sel ast.SelectionSet, v *MetafieldConnection) graphql.Marshaler {
  163914. if v == nil {
  163915. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  163916. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  163917. }
  163918. return graphql.Null
  163919. }
  163920. return ec._MetafieldConnection(ctx, sel, v)
  163921. }
  163922. func (ec *executionContext) marshalNMetafieldDefinition2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionᚄ(ctx context.Context, sel ast.SelectionSet, v []*MetafieldDefinition) graphql.Marshaler {
  163923. ret := make(graphql.Array, len(v))
  163924. var wg sync.WaitGroup
  163925. isLen1 := len(v) == 1
  163926. if !isLen1 {
  163927. wg.Add(len(v))
  163928. }
  163929. for i := range v {
  163930. i := i
  163931. fc := &graphql.FieldContext{
  163932. Index: &i,
  163933. Result: &v[i],
  163934. }
  163935. ctx := graphql.WithFieldContext(ctx, fc)
  163936. f := func(i int) {
  163937. defer func() {
  163938. if r := recover(); r != nil {
  163939. ec.Error(ctx, ec.Recover(ctx, r))
  163940. ret = nil
  163941. }
  163942. }()
  163943. if !isLen1 {
  163944. defer wg.Done()
  163945. }
  163946. ret[i] = ec.marshalNMetafieldDefinition2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinition(ctx, sel, v[i])
  163947. }
  163948. if isLen1 {
  163949. f(i)
  163950. } else {
  163951. go f(i)
  163952. }
  163953. }
  163954. wg.Wait()
  163955. for _, e := range ret {
  163956. if e == graphql.Null {
  163957. return graphql.Null
  163958. }
  163959. }
  163960. return ret
  163961. }
  163962. func (ec *executionContext) marshalNMetafieldDefinition2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinition(ctx context.Context, sel ast.SelectionSet, v *MetafieldDefinition) graphql.Marshaler {
  163963. if v == nil {
  163964. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  163965. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  163966. }
  163967. return graphql.Null
  163968. }
  163969. return ec._MetafieldDefinition(ctx, sel, v)
  163970. }
  163971. func (ec *executionContext) marshalNMetafieldDefinitionConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionConnection(ctx context.Context, sel ast.SelectionSet, v *MetafieldDefinitionConnection) graphql.Marshaler {
  163972. if v == nil {
  163973. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  163974. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  163975. }
  163976. return graphql.Null
  163977. }
  163978. return ec._MetafieldDefinitionConnection(ctx, sel, v)
  163979. }
  163980. func (ec *executionContext) marshalNMetafieldDefinitionEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*MetafieldDefinitionEdge) graphql.Marshaler {
  163981. ret := make(graphql.Array, len(v))
  163982. var wg sync.WaitGroup
  163983. isLen1 := len(v) == 1
  163984. if !isLen1 {
  163985. wg.Add(len(v))
  163986. }
  163987. for i := range v {
  163988. i := i
  163989. fc := &graphql.FieldContext{
  163990. Index: &i,
  163991. Result: &v[i],
  163992. }
  163993. ctx := graphql.WithFieldContext(ctx, fc)
  163994. f := func(i int) {
  163995. defer func() {
  163996. if r := recover(); r != nil {
  163997. ec.Error(ctx, ec.Recover(ctx, r))
  163998. ret = nil
  163999. }
  164000. }()
  164001. if !isLen1 {
  164002. defer wg.Done()
  164003. }
  164004. ret[i] = ec.marshalNMetafieldDefinitionEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionEdge(ctx, sel, v[i])
  164005. }
  164006. if isLen1 {
  164007. f(i)
  164008. } else {
  164009. go f(i)
  164010. }
  164011. }
  164012. wg.Wait()
  164013. for _, e := range ret {
  164014. if e == graphql.Null {
  164015. return graphql.Null
  164016. }
  164017. }
  164018. return ret
  164019. }
  164020. func (ec *executionContext) marshalNMetafieldDefinitionEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionEdge(ctx context.Context, sel ast.SelectionSet, v *MetafieldDefinitionEdge) graphql.Marshaler {
  164021. if v == nil {
  164022. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164023. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164024. }
  164025. return graphql.Null
  164026. }
  164027. return ec._MetafieldDefinitionEdge(ctx, sel, v)
  164028. }
  164029. func (ec *executionContext) marshalNMetafieldDefinitionSupportedValidation2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionSupportedValidationᚄ(ctx context.Context, sel ast.SelectionSet, v []*MetafieldDefinitionSupportedValidation) graphql.Marshaler {
  164030. ret := make(graphql.Array, len(v))
  164031. var wg sync.WaitGroup
  164032. isLen1 := len(v) == 1
  164033. if !isLen1 {
  164034. wg.Add(len(v))
  164035. }
  164036. for i := range v {
  164037. i := i
  164038. fc := &graphql.FieldContext{
  164039. Index: &i,
  164040. Result: &v[i],
  164041. }
  164042. ctx := graphql.WithFieldContext(ctx, fc)
  164043. f := func(i int) {
  164044. defer func() {
  164045. if r := recover(); r != nil {
  164046. ec.Error(ctx, ec.Recover(ctx, r))
  164047. ret = nil
  164048. }
  164049. }()
  164050. if !isLen1 {
  164051. defer wg.Done()
  164052. }
  164053. ret[i] = ec.marshalNMetafieldDefinitionSupportedValidation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionSupportedValidation(ctx, sel, v[i])
  164054. }
  164055. if isLen1 {
  164056. f(i)
  164057. } else {
  164058. go f(i)
  164059. }
  164060. }
  164061. wg.Wait()
  164062. for _, e := range ret {
  164063. if e == graphql.Null {
  164064. return graphql.Null
  164065. }
  164066. }
  164067. return ret
  164068. }
  164069. func (ec *executionContext) marshalNMetafieldDefinitionSupportedValidation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionSupportedValidation(ctx context.Context, sel ast.SelectionSet, v *MetafieldDefinitionSupportedValidation) graphql.Marshaler {
  164070. if v == nil {
  164071. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164072. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164073. }
  164074. return graphql.Null
  164075. }
  164076. return ec._MetafieldDefinitionSupportedValidation(ctx, sel, v)
  164077. }
  164078. func (ec *executionContext) marshalNMetafieldDefinitionType2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionType(ctx context.Context, sel ast.SelectionSet, v *MetafieldDefinitionType) graphql.Marshaler {
  164079. if v == nil {
  164080. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164081. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164082. }
  164083. return graphql.Null
  164084. }
  164085. return ec._MetafieldDefinitionType(ctx, sel, v)
  164086. }
  164087. func (ec *executionContext) marshalNMetafieldDefinitionValidation2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionValidationᚄ(ctx context.Context, sel ast.SelectionSet, v []*MetafieldDefinitionValidation) graphql.Marshaler {
  164088. ret := make(graphql.Array, len(v))
  164089. var wg sync.WaitGroup
  164090. isLen1 := len(v) == 1
  164091. if !isLen1 {
  164092. wg.Add(len(v))
  164093. }
  164094. for i := range v {
  164095. i := i
  164096. fc := &graphql.FieldContext{
  164097. Index: &i,
  164098. Result: &v[i],
  164099. }
  164100. ctx := graphql.WithFieldContext(ctx, fc)
  164101. f := func(i int) {
  164102. defer func() {
  164103. if r := recover(); r != nil {
  164104. ec.Error(ctx, ec.Recover(ctx, r))
  164105. ret = nil
  164106. }
  164107. }()
  164108. if !isLen1 {
  164109. defer wg.Done()
  164110. }
  164111. ret[i] = ec.marshalNMetafieldDefinitionValidation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionValidation(ctx, sel, v[i])
  164112. }
  164113. if isLen1 {
  164114. f(i)
  164115. } else {
  164116. go f(i)
  164117. }
  164118. }
  164119. wg.Wait()
  164120. for _, e := range ret {
  164121. if e == graphql.Null {
  164122. return graphql.Null
  164123. }
  164124. }
  164125. return ret
  164126. }
  164127. func (ec *executionContext) marshalNMetafieldDefinitionValidation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionValidation(ctx context.Context, sel ast.SelectionSet, v *MetafieldDefinitionValidation) graphql.Marshaler {
  164128. if v == nil {
  164129. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164130. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164131. }
  164132. return graphql.Null
  164133. }
  164134. return ec._MetafieldDefinitionValidation(ctx, sel, v)
  164135. }
  164136. func (ec *executionContext) unmarshalNMetafieldDefinitionValidationStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionValidationStatus(ctx context.Context, v interface{}) (MetafieldDefinitionValidationStatus, error) {
  164137. var res MetafieldDefinitionValidationStatus
  164138. err := res.UnmarshalGQL(v)
  164139. return res, graphql.ErrorOnPath(ctx, err)
  164140. }
  164141. func (ec *executionContext) marshalNMetafieldDefinitionValidationStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionValidationStatus(ctx context.Context, sel ast.SelectionSet, v MetafieldDefinitionValidationStatus) graphql.Marshaler {
  164142. return v
  164143. }
  164144. func (ec *executionContext) marshalNMetafieldEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*MetafieldEdge) graphql.Marshaler {
  164145. ret := make(graphql.Array, len(v))
  164146. var wg sync.WaitGroup
  164147. isLen1 := len(v) == 1
  164148. if !isLen1 {
  164149. wg.Add(len(v))
  164150. }
  164151. for i := range v {
  164152. i := i
  164153. fc := &graphql.FieldContext{
  164154. Index: &i,
  164155. Result: &v[i],
  164156. }
  164157. ctx := graphql.WithFieldContext(ctx, fc)
  164158. f := func(i int) {
  164159. defer func() {
  164160. if r := recover(); r != nil {
  164161. ec.Error(ctx, ec.Recover(ctx, r))
  164162. ret = nil
  164163. }
  164164. }()
  164165. if !isLen1 {
  164166. defer wg.Done()
  164167. }
  164168. ret[i] = ec.marshalNMetafieldEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldEdge(ctx, sel, v[i])
  164169. }
  164170. if isLen1 {
  164171. f(i)
  164172. } else {
  164173. go f(i)
  164174. }
  164175. }
  164176. wg.Wait()
  164177. for _, e := range ret {
  164178. if e == graphql.Null {
  164179. return graphql.Null
  164180. }
  164181. }
  164182. return ret
  164183. }
  164184. func (ec *executionContext) marshalNMetafieldEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldEdge(ctx context.Context, sel ast.SelectionSet, v *MetafieldEdge) graphql.Marshaler {
  164185. if v == nil {
  164186. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164187. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164188. }
  164189. return graphql.Null
  164190. }
  164191. return ec._MetafieldEdge(ctx, sel, v)
  164192. }
  164193. func (ec *executionContext) unmarshalNMetafieldInput2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldInput(ctx context.Context, v interface{}) (*MetafieldInput, error) {
  164194. res, err := ec.unmarshalInputMetafieldInput(ctx, v)
  164195. return &res, graphql.ErrorOnPath(ctx, err)
  164196. }
  164197. func (ec *executionContext) unmarshalNMetafieldOwnerType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldOwnerType(ctx context.Context, v interface{}) (MetafieldOwnerType, error) {
  164198. var res MetafieldOwnerType
  164199. err := res.UnmarshalGQL(v)
  164200. return res, graphql.ErrorOnPath(ctx, err)
  164201. }
  164202. func (ec *executionContext) marshalNMetafieldOwnerType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldOwnerType(ctx context.Context, sel ast.SelectionSet, v MetafieldOwnerType) graphql.Marshaler {
  164203. return v
  164204. }
  164205. func (ec *executionContext) unmarshalNMetafieldOwnerType2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldOwnerTypeᚄ(ctx context.Context, v interface{}) ([]MetafieldOwnerType, error) {
  164206. var vSlice []interface{}
  164207. if v != nil {
  164208. vSlice = graphql.CoerceList(v)
  164209. }
  164210. var err error
  164211. res := make([]MetafieldOwnerType, len(vSlice))
  164212. for i := range vSlice {
  164213. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  164214. res[i], err = ec.unmarshalNMetafieldOwnerType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldOwnerType(ctx, vSlice[i])
  164215. if err != nil {
  164216. return nil, err
  164217. }
  164218. }
  164219. return res, nil
  164220. }
  164221. func (ec *executionContext) marshalNMetafieldOwnerType2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldOwnerTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []MetafieldOwnerType) graphql.Marshaler {
  164222. ret := make(graphql.Array, len(v))
  164223. var wg sync.WaitGroup
  164224. isLen1 := len(v) == 1
  164225. if !isLen1 {
  164226. wg.Add(len(v))
  164227. }
  164228. for i := range v {
  164229. i := i
  164230. fc := &graphql.FieldContext{
  164231. Index: &i,
  164232. Result: &v[i],
  164233. }
  164234. ctx := graphql.WithFieldContext(ctx, fc)
  164235. f := func(i int) {
  164236. defer func() {
  164237. if r := recover(); r != nil {
  164238. ec.Error(ctx, ec.Recover(ctx, r))
  164239. ret = nil
  164240. }
  164241. }()
  164242. if !isLen1 {
  164243. defer wg.Done()
  164244. }
  164245. ret[i] = ec.marshalNMetafieldOwnerType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldOwnerType(ctx, sel, v[i])
  164246. }
  164247. if isLen1 {
  164248. f(i)
  164249. } else {
  164250. go f(i)
  164251. }
  164252. }
  164253. wg.Wait()
  164254. for _, e := range ret {
  164255. if e == graphql.Null {
  164256. return graphql.Null
  164257. }
  164258. }
  164259. return ret
  164260. }
  164261. func (ec *executionContext) marshalNMetafieldReference2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldReference(ctx context.Context, sel ast.SelectionSet, v []MetafieldReference) graphql.Marshaler {
  164262. ret := make(graphql.Array, len(v))
  164263. var wg sync.WaitGroup
  164264. isLen1 := len(v) == 1
  164265. if !isLen1 {
  164266. wg.Add(len(v))
  164267. }
  164268. for i := range v {
  164269. i := i
  164270. fc := &graphql.FieldContext{
  164271. Index: &i,
  164272. Result: &v[i],
  164273. }
  164274. ctx := graphql.WithFieldContext(ctx, fc)
  164275. f := func(i int) {
  164276. defer func() {
  164277. if r := recover(); r != nil {
  164278. ec.Error(ctx, ec.Recover(ctx, r))
  164279. ret = nil
  164280. }
  164281. }()
  164282. if !isLen1 {
  164283. defer wg.Done()
  164284. }
  164285. ret[i] = ec.marshalOMetafieldReference2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldReference(ctx, sel, v[i])
  164286. }
  164287. if isLen1 {
  164288. f(i)
  164289. } else {
  164290. go f(i)
  164291. }
  164292. }
  164293. wg.Wait()
  164294. return ret
  164295. }
  164296. func (ec *executionContext) marshalNMetafieldReferenceEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldReferenceEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*MetafieldReferenceEdge) graphql.Marshaler {
  164297. ret := make(graphql.Array, len(v))
  164298. var wg sync.WaitGroup
  164299. isLen1 := len(v) == 1
  164300. if !isLen1 {
  164301. wg.Add(len(v))
  164302. }
  164303. for i := range v {
  164304. i := i
  164305. fc := &graphql.FieldContext{
  164306. Index: &i,
  164307. Result: &v[i],
  164308. }
  164309. ctx := graphql.WithFieldContext(ctx, fc)
  164310. f := func(i int) {
  164311. defer func() {
  164312. if r := recover(); r != nil {
  164313. ec.Error(ctx, ec.Recover(ctx, r))
  164314. ret = nil
  164315. }
  164316. }()
  164317. if !isLen1 {
  164318. defer wg.Done()
  164319. }
  164320. ret[i] = ec.marshalNMetafieldReferenceEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldReferenceEdge(ctx, sel, v[i])
  164321. }
  164322. if isLen1 {
  164323. f(i)
  164324. } else {
  164325. go f(i)
  164326. }
  164327. }
  164328. wg.Wait()
  164329. for _, e := range ret {
  164330. if e == graphql.Null {
  164331. return graphql.Null
  164332. }
  164333. }
  164334. return ret
  164335. }
  164336. func (ec *executionContext) marshalNMetafieldReferenceEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldReferenceEdge(ctx context.Context, sel ast.SelectionSet, v *MetafieldReferenceEdge) graphql.Marshaler {
  164337. if v == nil {
  164338. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164339. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164340. }
  164341. return graphql.Null
  164342. }
  164343. return ec._MetafieldReferenceEdge(ctx, sel, v)
  164344. }
  164345. func (ec *executionContext) unmarshalNMoney2string(ctx context.Context, v interface{}) (string, error) {
  164346. res, err := graphql.UnmarshalString(v)
  164347. return res, graphql.ErrorOnPath(ctx, err)
  164348. }
  164349. func (ec *executionContext) marshalNMoney2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  164350. res := graphql.MarshalString(v)
  164351. if res == graphql.Null {
  164352. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164353. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164354. }
  164355. }
  164356. return res
  164357. }
  164358. func (ec *executionContext) marshalNMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx context.Context, sel ast.SelectionSet, v *MoneyBag) graphql.Marshaler {
  164359. if v == nil {
  164360. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164361. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164362. }
  164363. return graphql.Null
  164364. }
  164365. return ec._MoneyBag(ctx, sel, v)
  164366. }
  164367. func (ec *executionContext) marshalNMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx context.Context, sel ast.SelectionSet, v *MoneyV2) graphql.Marshaler {
  164368. if v == nil {
  164369. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164370. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164371. }
  164372. return graphql.Null
  164373. }
  164374. return ec._MoneyV2(ctx, sel, v)
  164375. }
  164376. func (ec *executionContext) marshalNNavigationItem2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐNavigationItemᚄ(ctx context.Context, sel ast.SelectionSet, v []*NavigationItem) graphql.Marshaler {
  164377. ret := make(graphql.Array, len(v))
  164378. var wg sync.WaitGroup
  164379. isLen1 := len(v) == 1
  164380. if !isLen1 {
  164381. wg.Add(len(v))
  164382. }
  164383. for i := range v {
  164384. i := i
  164385. fc := &graphql.FieldContext{
  164386. Index: &i,
  164387. Result: &v[i],
  164388. }
  164389. ctx := graphql.WithFieldContext(ctx, fc)
  164390. f := func(i int) {
  164391. defer func() {
  164392. if r := recover(); r != nil {
  164393. ec.Error(ctx, ec.Recover(ctx, r))
  164394. ret = nil
  164395. }
  164396. }()
  164397. if !isLen1 {
  164398. defer wg.Done()
  164399. }
  164400. ret[i] = ec.marshalNNavigationItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐNavigationItem(ctx, sel, v[i])
  164401. }
  164402. if isLen1 {
  164403. f(i)
  164404. } else {
  164405. go f(i)
  164406. }
  164407. }
  164408. wg.Wait()
  164409. for _, e := range ret {
  164410. if e == graphql.Null {
  164411. return graphql.Null
  164412. }
  164413. }
  164414. return ret
  164415. }
  164416. func (ec *executionContext) marshalNNavigationItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐNavigationItem(ctx context.Context, sel ast.SelectionSet, v *NavigationItem) graphql.Marshaler {
  164417. if v == nil {
  164418. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164419. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164420. }
  164421. return graphql.Null
  164422. }
  164423. return ec._NavigationItem(ctx, sel, v)
  164424. }
  164425. func (ec *executionContext) marshalNNode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐNode(ctx context.Context, sel ast.SelectionSet, v Node) graphql.Marshaler {
  164426. if v == nil {
  164427. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164428. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164429. }
  164430. return graphql.Null
  164431. }
  164432. return ec._Node(ctx, sel, v)
  164433. }
  164434. func (ec *executionContext) marshalNOrder2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderᚄ(ctx context.Context, sel ast.SelectionSet, v []*Order) graphql.Marshaler {
  164435. ret := make(graphql.Array, len(v))
  164436. var wg sync.WaitGroup
  164437. isLen1 := len(v) == 1
  164438. if !isLen1 {
  164439. wg.Add(len(v))
  164440. }
  164441. for i := range v {
  164442. i := i
  164443. fc := &graphql.FieldContext{
  164444. Index: &i,
  164445. Result: &v[i],
  164446. }
  164447. ctx := graphql.WithFieldContext(ctx, fc)
  164448. f := func(i int) {
  164449. defer func() {
  164450. if r := recover(); r != nil {
  164451. ec.Error(ctx, ec.Recover(ctx, r))
  164452. ret = nil
  164453. }
  164454. }()
  164455. if !isLen1 {
  164456. defer wg.Done()
  164457. }
  164458. ret[i] = ec.marshalNOrder2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrder(ctx, sel, v[i])
  164459. }
  164460. if isLen1 {
  164461. f(i)
  164462. } else {
  164463. go f(i)
  164464. }
  164465. }
  164466. wg.Wait()
  164467. for _, e := range ret {
  164468. if e == graphql.Null {
  164469. return graphql.Null
  164470. }
  164471. }
  164472. return ret
  164473. }
  164474. func (ec *executionContext) marshalNOrder2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrder(ctx context.Context, sel ast.SelectionSet, v *Order) graphql.Marshaler {
  164475. if v == nil {
  164476. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164477. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164478. }
  164479. return graphql.Null
  164480. }
  164481. return ec._Order(ctx, sel, v)
  164482. }
  164483. func (ec *executionContext) marshalNOrderConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderConnection(ctx context.Context, sel ast.SelectionSet, v *OrderConnection) graphql.Marshaler {
  164484. if v == nil {
  164485. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164486. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164487. }
  164488. return graphql.Null
  164489. }
  164490. return ec._OrderConnection(ctx, sel, v)
  164491. }
  164492. func (ec *executionContext) unmarshalNOrderDisplayFulfillmentStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderDisplayFulfillmentStatus(ctx context.Context, v interface{}) (OrderDisplayFulfillmentStatus, error) {
  164493. var res OrderDisplayFulfillmentStatus
  164494. err := res.UnmarshalGQL(v)
  164495. return res, graphql.ErrorOnPath(ctx, err)
  164496. }
  164497. func (ec *executionContext) marshalNOrderDisplayFulfillmentStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderDisplayFulfillmentStatus(ctx context.Context, sel ast.SelectionSet, v OrderDisplayFulfillmentStatus) graphql.Marshaler {
  164498. return v
  164499. }
  164500. func (ec *executionContext) marshalNOrderDisputeSummary2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderDisputeSummaryᚄ(ctx context.Context, sel ast.SelectionSet, v []*OrderDisputeSummary) graphql.Marshaler {
  164501. ret := make(graphql.Array, len(v))
  164502. var wg sync.WaitGroup
  164503. isLen1 := len(v) == 1
  164504. if !isLen1 {
  164505. wg.Add(len(v))
  164506. }
  164507. for i := range v {
  164508. i := i
  164509. fc := &graphql.FieldContext{
  164510. Index: &i,
  164511. Result: &v[i],
  164512. }
  164513. ctx := graphql.WithFieldContext(ctx, fc)
  164514. f := func(i int) {
  164515. defer func() {
  164516. if r := recover(); r != nil {
  164517. ec.Error(ctx, ec.Recover(ctx, r))
  164518. ret = nil
  164519. }
  164520. }()
  164521. if !isLen1 {
  164522. defer wg.Done()
  164523. }
  164524. ret[i] = ec.marshalNOrderDisputeSummary2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderDisputeSummary(ctx, sel, v[i])
  164525. }
  164526. if isLen1 {
  164527. f(i)
  164528. } else {
  164529. go f(i)
  164530. }
  164531. }
  164532. wg.Wait()
  164533. for _, e := range ret {
  164534. if e == graphql.Null {
  164535. return graphql.Null
  164536. }
  164537. }
  164538. return ret
  164539. }
  164540. func (ec *executionContext) marshalNOrderDisputeSummary2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderDisputeSummary(ctx context.Context, sel ast.SelectionSet, v *OrderDisputeSummary) graphql.Marshaler {
  164541. if v == nil {
  164542. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164543. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164544. }
  164545. return graphql.Null
  164546. }
  164547. return ec._OrderDisputeSummary(ctx, sel, v)
  164548. }
  164549. func (ec *executionContext) marshalNOrderEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*OrderEdge) graphql.Marshaler {
  164550. ret := make(graphql.Array, len(v))
  164551. var wg sync.WaitGroup
  164552. isLen1 := len(v) == 1
  164553. if !isLen1 {
  164554. wg.Add(len(v))
  164555. }
  164556. for i := range v {
  164557. i := i
  164558. fc := &graphql.FieldContext{
  164559. Index: &i,
  164560. Result: &v[i],
  164561. }
  164562. ctx := graphql.WithFieldContext(ctx, fc)
  164563. f := func(i int) {
  164564. defer func() {
  164565. if r := recover(); r != nil {
  164566. ec.Error(ctx, ec.Recover(ctx, r))
  164567. ret = nil
  164568. }
  164569. }()
  164570. if !isLen1 {
  164571. defer wg.Done()
  164572. }
  164573. ret[i] = ec.marshalNOrderEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderEdge(ctx, sel, v[i])
  164574. }
  164575. if isLen1 {
  164576. f(i)
  164577. } else {
  164578. go f(i)
  164579. }
  164580. }
  164581. wg.Wait()
  164582. for _, e := range ret {
  164583. if e == graphql.Null {
  164584. return graphql.Null
  164585. }
  164586. }
  164587. return ret
  164588. }
  164589. func (ec *executionContext) marshalNOrderEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderEdge(ctx context.Context, sel ast.SelectionSet, v *OrderEdge) graphql.Marshaler {
  164590. if v == nil {
  164591. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164592. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164593. }
  164594. return graphql.Null
  164595. }
  164596. return ec._OrderEdge(ctx, sel, v)
  164597. }
  164598. func (ec *executionContext) marshalNOrderPaymentCollectionDetails2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderPaymentCollectionDetails(ctx context.Context, sel ast.SelectionSet, v *OrderPaymentCollectionDetails) graphql.Marshaler {
  164599. if v == nil {
  164600. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164601. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164602. }
  164603. return graphql.Null
  164604. }
  164605. return ec._OrderPaymentCollectionDetails(ctx, sel, v)
  164606. }
  164607. func (ec *executionContext) marshalNOrderRisk2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderRiskᚄ(ctx context.Context, sel ast.SelectionSet, v []*OrderRisk) graphql.Marshaler {
  164608. ret := make(graphql.Array, len(v))
  164609. var wg sync.WaitGroup
  164610. isLen1 := len(v) == 1
  164611. if !isLen1 {
  164612. wg.Add(len(v))
  164613. }
  164614. for i := range v {
  164615. i := i
  164616. fc := &graphql.FieldContext{
  164617. Index: &i,
  164618. Result: &v[i],
  164619. }
  164620. ctx := graphql.WithFieldContext(ctx, fc)
  164621. f := func(i int) {
  164622. defer func() {
  164623. if r := recover(); r != nil {
  164624. ec.Error(ctx, ec.Recover(ctx, r))
  164625. ret = nil
  164626. }
  164627. }()
  164628. if !isLen1 {
  164629. defer wg.Done()
  164630. }
  164631. ret[i] = ec.marshalNOrderRisk2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderRisk(ctx, sel, v[i])
  164632. }
  164633. if isLen1 {
  164634. f(i)
  164635. } else {
  164636. go f(i)
  164637. }
  164638. }
  164639. wg.Wait()
  164640. for _, e := range ret {
  164641. if e == graphql.Null {
  164642. return graphql.Null
  164643. }
  164644. }
  164645. return ret
  164646. }
  164647. func (ec *executionContext) marshalNOrderRisk2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderRisk(ctx context.Context, sel ast.SelectionSet, v *OrderRisk) graphql.Marshaler {
  164648. if v == nil {
  164649. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164650. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164651. }
  164652. return graphql.Null
  164653. }
  164654. return ec._OrderRisk(ctx, sel, v)
  164655. }
  164656. func (ec *executionContext) unmarshalNOrderRiskLevel2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderRiskLevel(ctx context.Context, v interface{}) (OrderRiskLevel, error) {
  164657. var res OrderRiskLevel
  164658. err := res.UnmarshalGQL(v)
  164659. return res, graphql.ErrorOnPath(ctx, err)
  164660. }
  164661. func (ec *executionContext) marshalNOrderRiskLevel2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderRiskLevel(ctx context.Context, sel ast.SelectionSet, v OrderRiskLevel) graphql.Marshaler {
  164662. return v
  164663. }
  164664. func (ec *executionContext) marshalNOrderTransaction2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderTransactionᚄ(ctx context.Context, sel ast.SelectionSet, v []*OrderTransaction) graphql.Marshaler {
  164665. ret := make(graphql.Array, len(v))
  164666. var wg sync.WaitGroup
  164667. isLen1 := len(v) == 1
  164668. if !isLen1 {
  164669. wg.Add(len(v))
  164670. }
  164671. for i := range v {
  164672. i := i
  164673. fc := &graphql.FieldContext{
  164674. Index: &i,
  164675. Result: &v[i],
  164676. }
  164677. ctx := graphql.WithFieldContext(ctx, fc)
  164678. f := func(i int) {
  164679. defer func() {
  164680. if r := recover(); r != nil {
  164681. ec.Error(ctx, ec.Recover(ctx, r))
  164682. ret = nil
  164683. }
  164684. }()
  164685. if !isLen1 {
  164686. defer wg.Done()
  164687. }
  164688. ret[i] = ec.marshalNOrderTransaction2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderTransaction(ctx, sel, v[i])
  164689. }
  164690. if isLen1 {
  164691. f(i)
  164692. } else {
  164693. go f(i)
  164694. }
  164695. }
  164696. wg.Wait()
  164697. for _, e := range ret {
  164698. if e == graphql.Null {
  164699. return graphql.Null
  164700. }
  164701. }
  164702. return ret
  164703. }
  164704. func (ec *executionContext) marshalNOrderTransaction2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderTransaction(ctx context.Context, sel ast.SelectionSet, v *OrderTransaction) graphql.Marshaler {
  164705. if v == nil {
  164706. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164707. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164708. }
  164709. return graphql.Null
  164710. }
  164711. return ec._OrderTransaction(ctx, sel, v)
  164712. }
  164713. func (ec *executionContext) marshalNOrderTransactionConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderTransactionConnection(ctx context.Context, sel ast.SelectionSet, v *OrderTransactionConnection) graphql.Marshaler {
  164714. if v == nil {
  164715. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164716. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164717. }
  164718. return graphql.Null
  164719. }
  164720. return ec._OrderTransactionConnection(ctx, sel, v)
  164721. }
  164722. func (ec *executionContext) marshalNOrderTransactionEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderTransactionEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*OrderTransactionEdge) graphql.Marshaler {
  164723. ret := make(graphql.Array, len(v))
  164724. var wg sync.WaitGroup
  164725. isLen1 := len(v) == 1
  164726. if !isLen1 {
  164727. wg.Add(len(v))
  164728. }
  164729. for i := range v {
  164730. i := i
  164731. fc := &graphql.FieldContext{
  164732. Index: &i,
  164733. Result: &v[i],
  164734. }
  164735. ctx := graphql.WithFieldContext(ctx, fc)
  164736. f := func(i int) {
  164737. defer func() {
  164738. if r := recover(); r != nil {
  164739. ec.Error(ctx, ec.Recover(ctx, r))
  164740. ret = nil
  164741. }
  164742. }()
  164743. if !isLen1 {
  164744. defer wg.Done()
  164745. }
  164746. ret[i] = ec.marshalNOrderTransactionEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderTransactionEdge(ctx, sel, v[i])
  164747. }
  164748. if isLen1 {
  164749. f(i)
  164750. } else {
  164751. go f(i)
  164752. }
  164753. }
  164754. wg.Wait()
  164755. for _, e := range ret {
  164756. if e == graphql.Null {
  164757. return graphql.Null
  164758. }
  164759. }
  164760. return ret
  164761. }
  164762. func (ec *executionContext) marshalNOrderTransactionEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderTransactionEdge(ctx context.Context, sel ast.SelectionSet, v *OrderTransactionEdge) graphql.Marshaler {
  164763. if v == nil {
  164764. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164765. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164766. }
  164767. return graphql.Null
  164768. }
  164769. return ec._OrderTransactionEdge(ctx, sel, v)
  164770. }
  164771. func (ec *executionContext) unmarshalNOrderTransactionKind2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderTransactionKind(ctx context.Context, v interface{}) (OrderTransactionKind, error) {
  164772. var res OrderTransactionKind
  164773. err := res.UnmarshalGQL(v)
  164774. return res, graphql.ErrorOnPath(ctx, err)
  164775. }
  164776. func (ec *executionContext) marshalNOrderTransactionKind2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderTransactionKind(ctx context.Context, sel ast.SelectionSet, v OrderTransactionKind) graphql.Marshaler {
  164777. return v
  164778. }
  164779. func (ec *executionContext) unmarshalNOrderTransactionStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderTransactionStatus(ctx context.Context, v interface{}) (OrderTransactionStatus, error) {
  164780. var res OrderTransactionStatus
  164781. err := res.UnmarshalGQL(v)
  164782. return res, graphql.ErrorOnPath(ctx, err)
  164783. }
  164784. func (ec *executionContext) marshalNOrderTransactionStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderTransactionStatus(ctx context.Context, sel ast.SelectionSet, v OrderTransactionStatus) graphql.Marshaler {
  164785. return v
  164786. }
  164787. func (ec *executionContext) marshalNPageInfo2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPageInfo(ctx context.Context, sel ast.SelectionSet, v *PageInfo) graphql.Marshaler {
  164788. if v == nil {
  164789. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164790. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164791. }
  164792. return graphql.Null
  164793. }
  164794. return ec._PageInfo(ctx, sel, v)
  164795. }
  164796. func (ec *executionContext) marshalNPaymentInstrument2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentInstrument(ctx context.Context, sel ast.SelectionSet, v PaymentInstrument) graphql.Marshaler {
  164797. if v == nil {
  164798. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164799. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164800. }
  164801. return graphql.Null
  164802. }
  164803. return ec._PaymentInstrument(ctx, sel, v)
  164804. }
  164805. func (ec *executionContext) marshalNPaymentMandate2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentMandate(ctx context.Context, sel ast.SelectionSet, v *PaymentMandate) graphql.Marshaler {
  164806. if v == nil {
  164807. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164808. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164809. }
  164810. return graphql.Null
  164811. }
  164812. return ec._PaymentMandate(ctx, sel, v)
  164813. }
  164814. func (ec *executionContext) marshalNPaymentSchedule2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentScheduleᚄ(ctx context.Context, sel ast.SelectionSet, v []*PaymentSchedule) graphql.Marshaler {
  164815. ret := make(graphql.Array, len(v))
  164816. var wg sync.WaitGroup
  164817. isLen1 := len(v) == 1
  164818. if !isLen1 {
  164819. wg.Add(len(v))
  164820. }
  164821. for i := range v {
  164822. i := i
  164823. fc := &graphql.FieldContext{
  164824. Index: &i,
  164825. Result: &v[i],
  164826. }
  164827. ctx := graphql.WithFieldContext(ctx, fc)
  164828. f := func(i int) {
  164829. defer func() {
  164830. if r := recover(); r != nil {
  164831. ec.Error(ctx, ec.Recover(ctx, r))
  164832. ret = nil
  164833. }
  164834. }()
  164835. if !isLen1 {
  164836. defer wg.Done()
  164837. }
  164838. ret[i] = ec.marshalNPaymentSchedule2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentSchedule(ctx, sel, v[i])
  164839. }
  164840. if isLen1 {
  164841. f(i)
  164842. } else {
  164843. go f(i)
  164844. }
  164845. }
  164846. wg.Wait()
  164847. for _, e := range ret {
  164848. if e == graphql.Null {
  164849. return graphql.Null
  164850. }
  164851. }
  164852. return ret
  164853. }
  164854. func (ec *executionContext) marshalNPaymentSchedule2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentSchedule(ctx context.Context, sel ast.SelectionSet, v *PaymentSchedule) graphql.Marshaler {
  164855. if v == nil {
  164856. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164857. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164858. }
  164859. return graphql.Null
  164860. }
  164861. return ec._PaymentSchedule(ctx, sel, v)
  164862. }
  164863. func (ec *executionContext) marshalNPaymentScheduleConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentScheduleConnection(ctx context.Context, sel ast.SelectionSet, v *PaymentScheduleConnection) graphql.Marshaler {
  164864. if v == nil {
  164865. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164866. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164867. }
  164868. return graphql.Null
  164869. }
  164870. return ec._PaymentScheduleConnection(ctx, sel, v)
  164871. }
  164872. func (ec *executionContext) marshalNPaymentScheduleEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentScheduleEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*PaymentScheduleEdge) graphql.Marshaler {
  164873. ret := make(graphql.Array, len(v))
  164874. var wg sync.WaitGroup
  164875. isLen1 := len(v) == 1
  164876. if !isLen1 {
  164877. wg.Add(len(v))
  164878. }
  164879. for i := range v {
  164880. i := i
  164881. fc := &graphql.FieldContext{
  164882. Index: &i,
  164883. Result: &v[i],
  164884. }
  164885. ctx := graphql.WithFieldContext(ctx, fc)
  164886. f := func(i int) {
  164887. defer func() {
  164888. if r := recover(); r != nil {
  164889. ec.Error(ctx, ec.Recover(ctx, r))
  164890. ret = nil
  164891. }
  164892. }()
  164893. if !isLen1 {
  164894. defer wg.Done()
  164895. }
  164896. ret[i] = ec.marshalNPaymentScheduleEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentScheduleEdge(ctx, sel, v[i])
  164897. }
  164898. if isLen1 {
  164899. f(i)
  164900. } else {
  164901. go f(i)
  164902. }
  164903. }
  164904. wg.Wait()
  164905. for _, e := range ret {
  164906. if e == graphql.Null {
  164907. return graphql.Null
  164908. }
  164909. }
  164910. return ret
  164911. }
  164912. func (ec *executionContext) marshalNPaymentScheduleEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentScheduleEdge(ctx context.Context, sel ast.SelectionSet, v *PaymentScheduleEdge) graphql.Marshaler {
  164913. if v == nil {
  164914. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164915. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164916. }
  164917. return graphql.Null
  164918. }
  164919. return ec._PaymentScheduleEdge(ctx, sel, v)
  164920. }
  164921. func (ec *executionContext) marshalNPaymentSettings2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentSettings(ctx context.Context, sel ast.SelectionSet, v *PaymentSettings) graphql.Marshaler {
  164922. if v == nil {
  164923. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164924. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164925. }
  164926. return graphql.Null
  164927. }
  164928. return ec._PaymentSettings(ctx, sel, v)
  164929. }
  164930. func (ec *executionContext) unmarshalNPaymentTermsType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentTermsType(ctx context.Context, v interface{}) (PaymentTermsType, error) {
  164931. var res PaymentTermsType
  164932. err := res.UnmarshalGQL(v)
  164933. return res, graphql.ErrorOnPath(ctx, err)
  164934. }
  164935. func (ec *executionContext) marshalNPaymentTermsType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentTermsType(ctx context.Context, sel ast.SelectionSet, v PaymentTermsType) graphql.Marshaler {
  164936. return v
  164937. }
  164938. func (ec *executionContext) unmarshalNPaypalExpressSubscriptionsGatewayStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaypalExpressSubscriptionsGatewayStatus(ctx context.Context, v interface{}) (PaypalExpressSubscriptionsGatewayStatus, error) {
  164939. var res PaypalExpressSubscriptionsGatewayStatus
  164940. err := res.UnmarshalGQL(v)
  164941. return res, graphql.ErrorOnPath(ctx, err)
  164942. }
  164943. func (ec *executionContext) marshalNPaypalExpressSubscriptionsGatewayStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaypalExpressSubscriptionsGatewayStatus(ctx context.Context, sel ast.SelectionSet, v PaypalExpressSubscriptionsGatewayStatus) graphql.Marshaler {
  164944. return v
  164945. }
  164946. func (ec *executionContext) marshalNPriceListAdjustment2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceListAdjustment(ctx context.Context, sel ast.SelectionSet, v *PriceListAdjustment) graphql.Marshaler {
  164947. if v == nil {
  164948. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  164949. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  164950. }
  164951. return graphql.Null
  164952. }
  164953. return ec._PriceListAdjustment(ctx, sel, v)
  164954. }
  164955. func (ec *executionContext) unmarshalNPriceListAdjustmentType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceListAdjustmentType(ctx context.Context, v interface{}) (PriceListAdjustmentType, error) {
  164956. var res PriceListAdjustmentType
  164957. err := res.UnmarshalGQL(v)
  164958. return res, graphql.ErrorOnPath(ctx, err)
  164959. }
  164960. func (ec *executionContext) marshalNPriceListAdjustmentType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceListAdjustmentType(ctx context.Context, sel ast.SelectionSet, v PriceListAdjustmentType) graphql.Marshaler {
  164961. return v
  164962. }
  164963. func (ec *executionContext) marshalNPriceListPrice2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceListPriceᚄ(ctx context.Context, sel ast.SelectionSet, v []*PriceListPrice) graphql.Marshaler {
  164964. ret := make(graphql.Array, len(v))
  164965. var wg sync.WaitGroup
  164966. isLen1 := len(v) == 1
  164967. if !isLen1 {
  164968. wg.Add(len(v))
  164969. }
  164970. for i := range v {
  164971. i := i
  164972. fc := &graphql.FieldContext{
  164973. Index: &i,
  164974. Result: &v[i],
  164975. }
  164976. ctx := graphql.WithFieldContext(ctx, fc)
  164977. f := func(i int) {
  164978. defer func() {
  164979. if r := recover(); r != nil {
  164980. ec.Error(ctx, ec.Recover(ctx, r))
  164981. ret = nil
  164982. }
  164983. }()
  164984. if !isLen1 {
  164985. defer wg.Done()
  164986. }
  164987. ret[i] = ec.marshalNPriceListPrice2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceListPrice(ctx, sel, v[i])
  164988. }
  164989. if isLen1 {
  164990. f(i)
  164991. } else {
  164992. go f(i)
  164993. }
  164994. }
  164995. wg.Wait()
  164996. for _, e := range ret {
  164997. if e == graphql.Null {
  164998. return graphql.Null
  164999. }
  165000. }
  165001. return ret
  165002. }
  165003. func (ec *executionContext) marshalNPriceListPrice2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceListPrice(ctx context.Context, sel ast.SelectionSet, v *PriceListPrice) graphql.Marshaler {
  165004. if v == nil {
  165005. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165006. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165007. }
  165008. return graphql.Null
  165009. }
  165010. return ec._PriceListPrice(ctx, sel, v)
  165011. }
  165012. func (ec *executionContext) marshalNPriceListPriceConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceListPriceConnection(ctx context.Context, sel ast.SelectionSet, v *PriceListPriceConnection) graphql.Marshaler {
  165013. if v == nil {
  165014. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165015. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165016. }
  165017. return graphql.Null
  165018. }
  165019. return ec._PriceListPriceConnection(ctx, sel, v)
  165020. }
  165021. func (ec *executionContext) marshalNPriceListPriceEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceListPriceEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*PriceListPriceEdge) graphql.Marshaler {
  165022. ret := make(graphql.Array, len(v))
  165023. var wg sync.WaitGroup
  165024. isLen1 := len(v) == 1
  165025. if !isLen1 {
  165026. wg.Add(len(v))
  165027. }
  165028. for i := range v {
  165029. i := i
  165030. fc := &graphql.FieldContext{
  165031. Index: &i,
  165032. Result: &v[i],
  165033. }
  165034. ctx := graphql.WithFieldContext(ctx, fc)
  165035. f := func(i int) {
  165036. defer func() {
  165037. if r := recover(); r != nil {
  165038. ec.Error(ctx, ec.Recover(ctx, r))
  165039. ret = nil
  165040. }
  165041. }()
  165042. if !isLen1 {
  165043. defer wg.Done()
  165044. }
  165045. ret[i] = ec.marshalNPriceListPriceEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceListPriceEdge(ctx, sel, v[i])
  165046. }
  165047. if isLen1 {
  165048. f(i)
  165049. } else {
  165050. go f(i)
  165051. }
  165052. }
  165053. wg.Wait()
  165054. for _, e := range ret {
  165055. if e == graphql.Null {
  165056. return graphql.Null
  165057. }
  165058. }
  165059. return ret
  165060. }
  165061. func (ec *executionContext) marshalNPriceListPriceEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceListPriceEdge(ctx context.Context, sel ast.SelectionSet, v *PriceListPriceEdge) graphql.Marshaler {
  165062. if v == nil {
  165063. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165064. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165065. }
  165066. return graphql.Null
  165067. }
  165068. return ec._PriceListPriceEdge(ctx, sel, v)
  165069. }
  165070. func (ec *executionContext) unmarshalNPriceListPriceOriginType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceListPriceOriginType(ctx context.Context, v interface{}) (PriceListPriceOriginType, error) {
  165071. var res PriceListPriceOriginType
  165072. err := res.UnmarshalGQL(v)
  165073. return res, graphql.ErrorOnPath(ctx, err)
  165074. }
  165075. func (ec *executionContext) marshalNPriceListPriceOriginType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceListPriceOriginType(ctx context.Context, sel ast.SelectionSet, v PriceListPriceOriginType) graphql.Marshaler {
  165076. return v
  165077. }
  165078. func (ec *executionContext) marshalNPricingValue2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPricingValue(ctx context.Context, sel ast.SelectionSet, v PricingValue) graphql.Marshaler {
  165079. if v == nil {
  165080. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165081. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165082. }
  165083. return graphql.Null
  165084. }
  165085. return ec._PricingValue(ctx, sel, v)
  165086. }
  165087. func (ec *executionContext) marshalNPrivateMetafield2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafieldᚄ(ctx context.Context, sel ast.SelectionSet, v []*PrivateMetafield) graphql.Marshaler {
  165088. ret := make(graphql.Array, len(v))
  165089. var wg sync.WaitGroup
  165090. isLen1 := len(v) == 1
  165091. if !isLen1 {
  165092. wg.Add(len(v))
  165093. }
  165094. for i := range v {
  165095. i := i
  165096. fc := &graphql.FieldContext{
  165097. Index: &i,
  165098. Result: &v[i],
  165099. }
  165100. ctx := graphql.WithFieldContext(ctx, fc)
  165101. f := func(i int) {
  165102. defer func() {
  165103. if r := recover(); r != nil {
  165104. ec.Error(ctx, ec.Recover(ctx, r))
  165105. ret = nil
  165106. }
  165107. }()
  165108. if !isLen1 {
  165109. defer wg.Done()
  165110. }
  165111. ret[i] = ec.marshalNPrivateMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafield(ctx, sel, v[i])
  165112. }
  165113. if isLen1 {
  165114. f(i)
  165115. } else {
  165116. go f(i)
  165117. }
  165118. }
  165119. wg.Wait()
  165120. for _, e := range ret {
  165121. if e == graphql.Null {
  165122. return graphql.Null
  165123. }
  165124. }
  165125. return ret
  165126. }
  165127. func (ec *executionContext) marshalNPrivateMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafield(ctx context.Context, sel ast.SelectionSet, v *PrivateMetafield) graphql.Marshaler {
  165128. if v == nil {
  165129. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165130. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165131. }
  165132. return graphql.Null
  165133. }
  165134. return ec._PrivateMetafield(ctx, sel, v)
  165135. }
  165136. func (ec *executionContext) marshalNPrivateMetafieldConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafieldConnection(ctx context.Context, sel ast.SelectionSet, v *PrivateMetafieldConnection) graphql.Marshaler {
  165137. if v == nil {
  165138. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165139. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165140. }
  165141. return graphql.Null
  165142. }
  165143. return ec._PrivateMetafieldConnection(ctx, sel, v)
  165144. }
  165145. func (ec *executionContext) marshalNPrivateMetafieldEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafieldEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*PrivateMetafieldEdge) graphql.Marshaler {
  165146. ret := make(graphql.Array, len(v))
  165147. var wg sync.WaitGroup
  165148. isLen1 := len(v) == 1
  165149. if !isLen1 {
  165150. wg.Add(len(v))
  165151. }
  165152. for i := range v {
  165153. i := i
  165154. fc := &graphql.FieldContext{
  165155. Index: &i,
  165156. Result: &v[i],
  165157. }
  165158. ctx := graphql.WithFieldContext(ctx, fc)
  165159. f := func(i int) {
  165160. defer func() {
  165161. if r := recover(); r != nil {
  165162. ec.Error(ctx, ec.Recover(ctx, r))
  165163. ret = nil
  165164. }
  165165. }()
  165166. if !isLen1 {
  165167. defer wg.Done()
  165168. }
  165169. ret[i] = ec.marshalNPrivateMetafieldEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafieldEdge(ctx, sel, v[i])
  165170. }
  165171. if isLen1 {
  165172. f(i)
  165173. } else {
  165174. go f(i)
  165175. }
  165176. }
  165177. wg.Wait()
  165178. for _, e := range ret {
  165179. if e == graphql.Null {
  165180. return graphql.Null
  165181. }
  165182. }
  165183. return ret
  165184. }
  165185. func (ec *executionContext) marshalNPrivateMetafieldEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafieldEdge(ctx context.Context, sel ast.SelectionSet, v *PrivateMetafieldEdge) graphql.Marshaler {
  165186. if v == nil {
  165187. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165188. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165189. }
  165190. return graphql.Null
  165191. }
  165192. return ec._PrivateMetafieldEdge(ctx, sel, v)
  165193. }
  165194. func (ec *executionContext) unmarshalNPrivateMetafieldInput2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafieldInput(ctx context.Context, v interface{}) (*PrivateMetafieldInput, error) {
  165195. res, err := ec.unmarshalInputPrivateMetafieldInput(ctx, v)
  165196. return &res, graphql.ErrorOnPath(ctx, err)
  165197. }
  165198. func (ec *executionContext) unmarshalNPrivateMetafieldValueInput2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafieldValueInput(ctx context.Context, v interface{}) (*PrivateMetafieldValueInput, error) {
  165199. res, err := ec.unmarshalInputPrivateMetafieldValueInput(ctx, v)
  165200. return &res, graphql.ErrorOnPath(ctx, err)
  165201. }
  165202. func (ec *executionContext) unmarshalNPrivateMetafieldValueType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafieldValueType(ctx context.Context, v interface{}) (PrivateMetafieldValueType, error) {
  165203. var res PrivateMetafieldValueType
  165204. err := res.UnmarshalGQL(v)
  165205. return res, graphql.ErrorOnPath(ctx, err)
  165206. }
  165207. func (ec *executionContext) marshalNPrivateMetafieldValueType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafieldValueType(ctx context.Context, sel ast.SelectionSet, v PrivateMetafieldValueType) graphql.Marshaler {
  165208. return v
  165209. }
  165210. func (ec *executionContext) marshalNProduct2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProduct(ctx context.Context, sel ast.SelectionSet, v Product) graphql.Marshaler {
  165211. return ec._Product(ctx, sel, &v)
  165212. }
  165213. func (ec *executionContext) marshalNProduct2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductᚄ(ctx context.Context, sel ast.SelectionSet, v []*Product) graphql.Marshaler {
  165214. ret := make(graphql.Array, len(v))
  165215. var wg sync.WaitGroup
  165216. isLen1 := len(v) == 1
  165217. if !isLen1 {
  165218. wg.Add(len(v))
  165219. }
  165220. for i := range v {
  165221. i := i
  165222. fc := &graphql.FieldContext{
  165223. Index: &i,
  165224. Result: &v[i],
  165225. }
  165226. ctx := graphql.WithFieldContext(ctx, fc)
  165227. f := func(i int) {
  165228. defer func() {
  165229. if r := recover(); r != nil {
  165230. ec.Error(ctx, ec.Recover(ctx, r))
  165231. ret = nil
  165232. }
  165233. }()
  165234. if !isLen1 {
  165235. defer wg.Done()
  165236. }
  165237. ret[i] = ec.marshalNProduct2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProduct(ctx, sel, v[i])
  165238. }
  165239. if isLen1 {
  165240. f(i)
  165241. } else {
  165242. go f(i)
  165243. }
  165244. }
  165245. wg.Wait()
  165246. for _, e := range ret {
  165247. if e == graphql.Null {
  165248. return graphql.Null
  165249. }
  165250. }
  165251. return ret
  165252. }
  165253. func (ec *executionContext) marshalNProduct2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProduct(ctx context.Context, sel ast.SelectionSet, v *Product) graphql.Marshaler {
  165254. if v == nil {
  165255. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165256. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165257. }
  165258. return graphql.Null
  165259. }
  165260. return ec._Product(ctx, sel, v)
  165261. }
  165262. func (ec *executionContext) marshalNProductCategory2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductCategoryᚄ(ctx context.Context, sel ast.SelectionSet, v []*ProductCategory) graphql.Marshaler {
  165263. ret := make(graphql.Array, len(v))
  165264. var wg sync.WaitGroup
  165265. isLen1 := len(v) == 1
  165266. if !isLen1 {
  165267. wg.Add(len(v))
  165268. }
  165269. for i := range v {
  165270. i := i
  165271. fc := &graphql.FieldContext{
  165272. Index: &i,
  165273. Result: &v[i],
  165274. }
  165275. ctx := graphql.WithFieldContext(ctx, fc)
  165276. f := func(i int) {
  165277. defer func() {
  165278. if r := recover(); r != nil {
  165279. ec.Error(ctx, ec.Recover(ctx, r))
  165280. ret = nil
  165281. }
  165282. }()
  165283. if !isLen1 {
  165284. defer wg.Done()
  165285. }
  165286. ret[i] = ec.marshalNProductCategory2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductCategory(ctx, sel, v[i])
  165287. }
  165288. if isLen1 {
  165289. f(i)
  165290. } else {
  165291. go f(i)
  165292. }
  165293. }
  165294. wg.Wait()
  165295. for _, e := range ret {
  165296. if e == graphql.Null {
  165297. return graphql.Null
  165298. }
  165299. }
  165300. return ret
  165301. }
  165302. func (ec *executionContext) marshalNProductCategory2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductCategory(ctx context.Context, sel ast.SelectionSet, v *ProductCategory) graphql.Marshaler {
  165303. if v == nil {
  165304. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165305. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165306. }
  165307. return graphql.Null
  165308. }
  165309. return ec._ProductCategory(ctx, sel, v)
  165310. }
  165311. func (ec *executionContext) marshalNProductConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductConnection(ctx context.Context, sel ast.SelectionSet, v *ProductConnection) graphql.Marshaler {
  165312. if v == nil {
  165313. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165314. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165315. }
  165316. return graphql.Null
  165317. }
  165318. return ec._ProductConnection(ctx, sel, v)
  165319. }
  165320. func (ec *executionContext) marshalNProductContextualPricing2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductContextualPricing(ctx context.Context, sel ast.SelectionSet, v *ProductContextualPricing) graphql.Marshaler {
  165321. if v == nil {
  165322. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165323. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165324. }
  165325. return graphql.Null
  165326. }
  165327. return ec._ProductContextualPricing(ctx, sel, v)
  165328. }
  165329. func (ec *executionContext) marshalNProductEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*ProductEdge) graphql.Marshaler {
  165330. ret := make(graphql.Array, len(v))
  165331. var wg sync.WaitGroup
  165332. isLen1 := len(v) == 1
  165333. if !isLen1 {
  165334. wg.Add(len(v))
  165335. }
  165336. for i := range v {
  165337. i := i
  165338. fc := &graphql.FieldContext{
  165339. Index: &i,
  165340. Result: &v[i],
  165341. }
  165342. ctx := graphql.WithFieldContext(ctx, fc)
  165343. f := func(i int) {
  165344. defer func() {
  165345. if r := recover(); r != nil {
  165346. ec.Error(ctx, ec.Recover(ctx, r))
  165347. ret = nil
  165348. }
  165349. }()
  165350. if !isLen1 {
  165351. defer wg.Done()
  165352. }
  165353. ret[i] = ec.marshalNProductEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductEdge(ctx, sel, v[i])
  165354. }
  165355. if isLen1 {
  165356. f(i)
  165357. } else {
  165358. go f(i)
  165359. }
  165360. }
  165361. wg.Wait()
  165362. for _, e := range ret {
  165363. if e == graphql.Null {
  165364. return graphql.Null
  165365. }
  165366. }
  165367. return ret
  165368. }
  165369. func (ec *executionContext) marshalNProductEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductEdge(ctx context.Context, sel ast.SelectionSet, v *ProductEdge) graphql.Marshaler {
  165370. if v == nil {
  165371. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165372. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165373. }
  165374. return graphql.Null
  165375. }
  165376. return ec._ProductEdge(ctx, sel, v)
  165377. }
  165378. func (ec *executionContext) marshalNProductOption2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductOptionᚄ(ctx context.Context, sel ast.SelectionSet, v []*ProductOption) graphql.Marshaler {
  165379. ret := make(graphql.Array, len(v))
  165380. var wg sync.WaitGroup
  165381. isLen1 := len(v) == 1
  165382. if !isLen1 {
  165383. wg.Add(len(v))
  165384. }
  165385. for i := range v {
  165386. i := i
  165387. fc := &graphql.FieldContext{
  165388. Index: &i,
  165389. Result: &v[i],
  165390. }
  165391. ctx := graphql.WithFieldContext(ctx, fc)
  165392. f := func(i int) {
  165393. defer func() {
  165394. if r := recover(); r != nil {
  165395. ec.Error(ctx, ec.Recover(ctx, r))
  165396. ret = nil
  165397. }
  165398. }()
  165399. if !isLen1 {
  165400. defer wg.Done()
  165401. }
  165402. ret[i] = ec.marshalNProductOption2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductOption(ctx, sel, v[i])
  165403. }
  165404. if isLen1 {
  165405. f(i)
  165406. } else {
  165407. go f(i)
  165408. }
  165409. }
  165410. wg.Wait()
  165411. for _, e := range ret {
  165412. if e == graphql.Null {
  165413. return graphql.Null
  165414. }
  165415. }
  165416. return ret
  165417. }
  165418. func (ec *executionContext) marshalNProductOption2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductOption(ctx context.Context, sel ast.SelectionSet, v *ProductOption) graphql.Marshaler {
  165419. if v == nil {
  165420. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165421. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165422. }
  165423. return graphql.Null
  165424. }
  165425. return ec._ProductOption(ctx, sel, v)
  165426. }
  165427. func (ec *executionContext) marshalNProductPriceRangeV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductPriceRangeV2(ctx context.Context, sel ast.SelectionSet, v *ProductPriceRangeV2) graphql.Marshaler {
  165428. if v == nil {
  165429. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165430. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165431. }
  165432. return graphql.Null
  165433. }
  165434. return ec._ProductPriceRangeV2(ctx, sel, v)
  165435. }
  165436. func (ec *executionContext) unmarshalNProductStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductStatus(ctx context.Context, v interface{}) (ProductStatus, error) {
  165437. var res ProductStatus
  165438. err := res.UnmarshalGQL(v)
  165439. return res, graphql.ErrorOnPath(ctx, err)
  165440. }
  165441. func (ec *executionContext) marshalNProductStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductStatus(ctx context.Context, sel ast.SelectionSet, v ProductStatus) graphql.Marshaler {
  165442. return v
  165443. }
  165444. func (ec *executionContext) marshalNProductVariant2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantᚄ(ctx context.Context, sel ast.SelectionSet, v []*ProductVariant) graphql.Marshaler {
  165445. ret := make(graphql.Array, len(v))
  165446. var wg sync.WaitGroup
  165447. isLen1 := len(v) == 1
  165448. if !isLen1 {
  165449. wg.Add(len(v))
  165450. }
  165451. for i := range v {
  165452. i := i
  165453. fc := &graphql.FieldContext{
  165454. Index: &i,
  165455. Result: &v[i],
  165456. }
  165457. ctx := graphql.WithFieldContext(ctx, fc)
  165458. f := func(i int) {
  165459. defer func() {
  165460. if r := recover(); r != nil {
  165461. ec.Error(ctx, ec.Recover(ctx, r))
  165462. ret = nil
  165463. }
  165464. }()
  165465. if !isLen1 {
  165466. defer wg.Done()
  165467. }
  165468. ret[i] = ec.marshalNProductVariant2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariant(ctx, sel, v[i])
  165469. }
  165470. if isLen1 {
  165471. f(i)
  165472. } else {
  165473. go f(i)
  165474. }
  165475. }
  165476. wg.Wait()
  165477. for _, e := range ret {
  165478. if e == graphql.Null {
  165479. return graphql.Null
  165480. }
  165481. }
  165482. return ret
  165483. }
  165484. func (ec *executionContext) marshalNProductVariant2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariant(ctx context.Context, sel ast.SelectionSet, v *ProductVariant) graphql.Marshaler {
  165485. if v == nil {
  165486. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165487. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165488. }
  165489. return graphql.Null
  165490. }
  165491. return ec._ProductVariant(ctx, sel, v)
  165492. }
  165493. func (ec *executionContext) marshalNProductVariantConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantConnection(ctx context.Context, sel ast.SelectionSet, v *ProductVariantConnection) graphql.Marshaler {
  165494. if v == nil {
  165495. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165496. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165497. }
  165498. return graphql.Null
  165499. }
  165500. return ec._ProductVariantConnection(ctx, sel, v)
  165501. }
  165502. func (ec *executionContext) marshalNProductVariantContextualPricing2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantContextualPricing(ctx context.Context, sel ast.SelectionSet, v *ProductVariantContextualPricing) graphql.Marshaler {
  165503. if v == nil {
  165504. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165505. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165506. }
  165507. return graphql.Null
  165508. }
  165509. return ec._ProductVariantContextualPricing(ctx, sel, v)
  165510. }
  165511. func (ec *executionContext) marshalNProductVariantEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*ProductVariantEdge) graphql.Marshaler {
  165512. ret := make(graphql.Array, len(v))
  165513. var wg sync.WaitGroup
  165514. isLen1 := len(v) == 1
  165515. if !isLen1 {
  165516. wg.Add(len(v))
  165517. }
  165518. for i := range v {
  165519. i := i
  165520. fc := &graphql.FieldContext{
  165521. Index: &i,
  165522. Result: &v[i],
  165523. }
  165524. ctx := graphql.WithFieldContext(ctx, fc)
  165525. f := func(i int) {
  165526. defer func() {
  165527. if r := recover(); r != nil {
  165528. ec.Error(ctx, ec.Recover(ctx, r))
  165529. ret = nil
  165530. }
  165531. }()
  165532. if !isLen1 {
  165533. defer wg.Done()
  165534. }
  165535. ret[i] = ec.marshalNProductVariantEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantEdge(ctx, sel, v[i])
  165536. }
  165537. if isLen1 {
  165538. f(i)
  165539. } else {
  165540. go f(i)
  165541. }
  165542. }
  165543. wg.Wait()
  165544. for _, e := range ret {
  165545. if e == graphql.Null {
  165546. return graphql.Null
  165547. }
  165548. }
  165549. return ret
  165550. }
  165551. func (ec *executionContext) marshalNProductVariantEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantEdge(ctx context.Context, sel ast.SelectionSet, v *ProductVariantEdge) graphql.Marshaler {
  165552. if v == nil {
  165553. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165554. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165555. }
  165556. return graphql.Null
  165557. }
  165558. return ec._ProductVariantEdge(ctx, sel, v)
  165559. }
  165560. func (ec *executionContext) unmarshalNProductVariantInventoryPolicy2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantInventoryPolicy(ctx context.Context, v interface{}) (ProductVariantInventoryPolicy, error) {
  165561. var res ProductVariantInventoryPolicy
  165562. err := res.UnmarshalGQL(v)
  165563. return res, graphql.ErrorOnPath(ctx, err)
  165564. }
  165565. func (ec *executionContext) marshalNProductVariantInventoryPolicy2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantInventoryPolicy(ctx context.Context, sel ast.SelectionSet, v ProductVariantInventoryPolicy) graphql.Marshaler {
  165566. return v
  165567. }
  165568. func (ec *executionContext) marshalNPublication2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublicationᚄ(ctx context.Context, sel ast.SelectionSet, v []*Publication) graphql.Marshaler {
  165569. ret := make(graphql.Array, len(v))
  165570. var wg sync.WaitGroup
  165571. isLen1 := len(v) == 1
  165572. if !isLen1 {
  165573. wg.Add(len(v))
  165574. }
  165575. for i := range v {
  165576. i := i
  165577. fc := &graphql.FieldContext{
  165578. Index: &i,
  165579. Result: &v[i],
  165580. }
  165581. ctx := graphql.WithFieldContext(ctx, fc)
  165582. f := func(i int) {
  165583. defer func() {
  165584. if r := recover(); r != nil {
  165585. ec.Error(ctx, ec.Recover(ctx, r))
  165586. ret = nil
  165587. }
  165588. }()
  165589. if !isLen1 {
  165590. defer wg.Done()
  165591. }
  165592. ret[i] = ec.marshalNPublication2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublication(ctx, sel, v[i])
  165593. }
  165594. if isLen1 {
  165595. f(i)
  165596. } else {
  165597. go f(i)
  165598. }
  165599. }
  165600. wg.Wait()
  165601. for _, e := range ret {
  165602. if e == graphql.Null {
  165603. return graphql.Null
  165604. }
  165605. }
  165606. return ret
  165607. }
  165608. func (ec *executionContext) marshalNPublication2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublication(ctx context.Context, sel ast.SelectionSet, v *Publication) graphql.Marshaler {
  165609. if v == nil {
  165610. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165611. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165612. }
  165613. return graphql.Null
  165614. }
  165615. return ec._Publication(ctx, sel, v)
  165616. }
  165617. func (ec *executionContext) marshalNPublicationConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublicationConnection(ctx context.Context, sel ast.SelectionSet, v *PublicationConnection) graphql.Marshaler {
  165618. if v == nil {
  165619. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165620. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165621. }
  165622. return graphql.Null
  165623. }
  165624. return ec._PublicationConnection(ctx, sel, v)
  165625. }
  165626. func (ec *executionContext) marshalNPublicationEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublicationEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*PublicationEdge) graphql.Marshaler {
  165627. ret := make(graphql.Array, len(v))
  165628. var wg sync.WaitGroup
  165629. isLen1 := len(v) == 1
  165630. if !isLen1 {
  165631. wg.Add(len(v))
  165632. }
  165633. for i := range v {
  165634. i := i
  165635. fc := &graphql.FieldContext{
  165636. Index: &i,
  165637. Result: &v[i],
  165638. }
  165639. ctx := graphql.WithFieldContext(ctx, fc)
  165640. f := func(i int) {
  165641. defer func() {
  165642. if r := recover(); r != nil {
  165643. ec.Error(ctx, ec.Recover(ctx, r))
  165644. ret = nil
  165645. }
  165646. }()
  165647. if !isLen1 {
  165648. defer wg.Done()
  165649. }
  165650. ret[i] = ec.marshalNPublicationEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublicationEdge(ctx, sel, v[i])
  165651. }
  165652. if isLen1 {
  165653. f(i)
  165654. } else {
  165655. go f(i)
  165656. }
  165657. }
  165658. wg.Wait()
  165659. for _, e := range ret {
  165660. if e == graphql.Null {
  165661. return graphql.Null
  165662. }
  165663. }
  165664. return ret
  165665. }
  165666. func (ec *executionContext) marshalNPublicationEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublicationEdge(ctx context.Context, sel ast.SelectionSet, v *PublicationEdge) graphql.Marshaler {
  165667. if v == nil {
  165668. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165669. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165670. }
  165671. return graphql.Null
  165672. }
  165673. return ec._PublicationEdge(ctx, sel, v)
  165674. }
  165675. func (ec *executionContext) marshalNPublishable2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublishable(ctx context.Context, sel ast.SelectionSet, v Publishable) graphql.Marshaler {
  165676. if v == nil {
  165677. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165678. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165679. }
  165680. return graphql.Null
  165681. }
  165682. return ec._Publishable(ctx, sel, v)
  165683. }
  165684. func (ec *executionContext) marshalNPublishedTranslation2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublishedTranslationᚄ(ctx context.Context, sel ast.SelectionSet, v []*PublishedTranslation) graphql.Marshaler {
  165685. ret := make(graphql.Array, len(v))
  165686. var wg sync.WaitGroup
  165687. isLen1 := len(v) == 1
  165688. if !isLen1 {
  165689. wg.Add(len(v))
  165690. }
  165691. for i := range v {
  165692. i := i
  165693. fc := &graphql.FieldContext{
  165694. Index: &i,
  165695. Result: &v[i],
  165696. }
  165697. ctx := graphql.WithFieldContext(ctx, fc)
  165698. f := func(i int) {
  165699. defer func() {
  165700. if r := recover(); r != nil {
  165701. ec.Error(ctx, ec.Recover(ctx, r))
  165702. ret = nil
  165703. }
  165704. }()
  165705. if !isLen1 {
  165706. defer wg.Done()
  165707. }
  165708. ret[i] = ec.marshalNPublishedTranslation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublishedTranslation(ctx, sel, v[i])
  165709. }
  165710. if isLen1 {
  165711. f(i)
  165712. } else {
  165713. go f(i)
  165714. }
  165715. }
  165716. wg.Wait()
  165717. for _, e := range ret {
  165718. if e == graphql.Null {
  165719. return graphql.Null
  165720. }
  165721. }
  165722. return ret
  165723. }
  165724. func (ec *executionContext) marshalNPublishedTranslation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublishedTranslation(ctx context.Context, sel ast.SelectionSet, v *PublishedTranslation) graphql.Marshaler {
  165725. if v == nil {
  165726. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165727. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165728. }
  165729. return graphql.Null
  165730. }
  165731. return ec._PublishedTranslation(ctx, sel, v)
  165732. }
  165733. func (ec *executionContext) marshalNRefund2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundᚄ(ctx context.Context, sel ast.SelectionSet, v []*Refund) graphql.Marshaler {
  165734. ret := make(graphql.Array, len(v))
  165735. var wg sync.WaitGroup
  165736. isLen1 := len(v) == 1
  165737. if !isLen1 {
  165738. wg.Add(len(v))
  165739. }
  165740. for i := range v {
  165741. i := i
  165742. fc := &graphql.FieldContext{
  165743. Index: &i,
  165744. Result: &v[i],
  165745. }
  165746. ctx := graphql.WithFieldContext(ctx, fc)
  165747. f := func(i int) {
  165748. defer func() {
  165749. if r := recover(); r != nil {
  165750. ec.Error(ctx, ec.Recover(ctx, r))
  165751. ret = nil
  165752. }
  165753. }()
  165754. if !isLen1 {
  165755. defer wg.Done()
  165756. }
  165757. ret[i] = ec.marshalNRefund2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefund(ctx, sel, v[i])
  165758. }
  165759. if isLen1 {
  165760. f(i)
  165761. } else {
  165762. go f(i)
  165763. }
  165764. }
  165765. wg.Wait()
  165766. for _, e := range ret {
  165767. if e == graphql.Null {
  165768. return graphql.Null
  165769. }
  165770. }
  165771. return ret
  165772. }
  165773. func (ec *executionContext) marshalNRefund2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefund(ctx context.Context, sel ast.SelectionSet, v *Refund) graphql.Marshaler {
  165774. if v == nil {
  165775. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165776. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165777. }
  165778. return graphql.Null
  165779. }
  165780. return ec._Refund(ctx, sel, v)
  165781. }
  165782. func (ec *executionContext) marshalNRefundDuty2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundDutyᚄ(ctx context.Context, sel ast.SelectionSet, v []*RefundDuty) graphql.Marshaler {
  165783. ret := make(graphql.Array, len(v))
  165784. var wg sync.WaitGroup
  165785. isLen1 := len(v) == 1
  165786. if !isLen1 {
  165787. wg.Add(len(v))
  165788. }
  165789. for i := range v {
  165790. i := i
  165791. fc := &graphql.FieldContext{
  165792. Index: &i,
  165793. Result: &v[i],
  165794. }
  165795. ctx := graphql.WithFieldContext(ctx, fc)
  165796. f := func(i int) {
  165797. defer func() {
  165798. if r := recover(); r != nil {
  165799. ec.Error(ctx, ec.Recover(ctx, r))
  165800. ret = nil
  165801. }
  165802. }()
  165803. if !isLen1 {
  165804. defer wg.Done()
  165805. }
  165806. ret[i] = ec.marshalNRefundDuty2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundDuty(ctx, sel, v[i])
  165807. }
  165808. if isLen1 {
  165809. f(i)
  165810. } else {
  165811. go f(i)
  165812. }
  165813. }
  165814. wg.Wait()
  165815. for _, e := range ret {
  165816. if e == graphql.Null {
  165817. return graphql.Null
  165818. }
  165819. }
  165820. return ret
  165821. }
  165822. func (ec *executionContext) marshalNRefundDuty2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundDuty(ctx context.Context, sel ast.SelectionSet, v *RefundDuty) graphql.Marshaler {
  165823. if v == nil {
  165824. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165825. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165826. }
  165827. return graphql.Null
  165828. }
  165829. return ec._RefundDuty(ctx, sel, v)
  165830. }
  165831. func (ec *executionContext) unmarshalNRefundDutyInput2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundDutyInput(ctx context.Context, v interface{}) (*RefundDutyInput, error) {
  165832. res, err := ec.unmarshalInputRefundDutyInput(ctx, v)
  165833. return &res, graphql.ErrorOnPath(ctx, err)
  165834. }
  165835. func (ec *executionContext) marshalNRefundLineItem2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundLineItemᚄ(ctx context.Context, sel ast.SelectionSet, v []*RefundLineItem) graphql.Marshaler {
  165836. ret := make(graphql.Array, len(v))
  165837. var wg sync.WaitGroup
  165838. isLen1 := len(v) == 1
  165839. if !isLen1 {
  165840. wg.Add(len(v))
  165841. }
  165842. for i := range v {
  165843. i := i
  165844. fc := &graphql.FieldContext{
  165845. Index: &i,
  165846. Result: &v[i],
  165847. }
  165848. ctx := graphql.WithFieldContext(ctx, fc)
  165849. f := func(i int) {
  165850. defer func() {
  165851. if r := recover(); r != nil {
  165852. ec.Error(ctx, ec.Recover(ctx, r))
  165853. ret = nil
  165854. }
  165855. }()
  165856. if !isLen1 {
  165857. defer wg.Done()
  165858. }
  165859. ret[i] = ec.marshalNRefundLineItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundLineItem(ctx, sel, v[i])
  165860. }
  165861. if isLen1 {
  165862. f(i)
  165863. } else {
  165864. go f(i)
  165865. }
  165866. }
  165867. wg.Wait()
  165868. for _, e := range ret {
  165869. if e == graphql.Null {
  165870. return graphql.Null
  165871. }
  165872. }
  165873. return ret
  165874. }
  165875. func (ec *executionContext) marshalNRefundLineItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundLineItem(ctx context.Context, sel ast.SelectionSet, v *RefundLineItem) graphql.Marshaler {
  165876. if v == nil {
  165877. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165878. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165879. }
  165880. return graphql.Null
  165881. }
  165882. return ec._RefundLineItem(ctx, sel, v)
  165883. }
  165884. func (ec *executionContext) marshalNRefundLineItemConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundLineItemConnection(ctx context.Context, sel ast.SelectionSet, v *RefundLineItemConnection) graphql.Marshaler {
  165885. if v == nil {
  165886. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165887. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165888. }
  165889. return graphql.Null
  165890. }
  165891. return ec._RefundLineItemConnection(ctx, sel, v)
  165892. }
  165893. func (ec *executionContext) marshalNRefundLineItemEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundLineItemEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*RefundLineItemEdge) graphql.Marshaler {
  165894. ret := make(graphql.Array, len(v))
  165895. var wg sync.WaitGroup
  165896. isLen1 := len(v) == 1
  165897. if !isLen1 {
  165898. wg.Add(len(v))
  165899. }
  165900. for i := range v {
  165901. i := i
  165902. fc := &graphql.FieldContext{
  165903. Index: &i,
  165904. Result: &v[i],
  165905. }
  165906. ctx := graphql.WithFieldContext(ctx, fc)
  165907. f := func(i int) {
  165908. defer func() {
  165909. if r := recover(); r != nil {
  165910. ec.Error(ctx, ec.Recover(ctx, r))
  165911. ret = nil
  165912. }
  165913. }()
  165914. if !isLen1 {
  165915. defer wg.Done()
  165916. }
  165917. ret[i] = ec.marshalNRefundLineItemEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundLineItemEdge(ctx, sel, v[i])
  165918. }
  165919. if isLen1 {
  165920. f(i)
  165921. } else {
  165922. go f(i)
  165923. }
  165924. }
  165925. wg.Wait()
  165926. for _, e := range ret {
  165927. if e == graphql.Null {
  165928. return graphql.Null
  165929. }
  165930. }
  165931. return ret
  165932. }
  165933. func (ec *executionContext) marshalNRefundLineItemEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundLineItemEdge(ctx context.Context, sel ast.SelectionSet, v *RefundLineItemEdge) graphql.Marshaler {
  165934. if v == nil {
  165935. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165936. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165937. }
  165938. return graphql.Null
  165939. }
  165940. return ec._RefundLineItemEdge(ctx, sel, v)
  165941. }
  165942. func (ec *executionContext) unmarshalNRefundLineItemInput2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundLineItemInput(ctx context.Context, v interface{}) (*RefundLineItemInput, error) {
  165943. res, err := ec.unmarshalInputRefundLineItemInput(ctx, v)
  165944. return &res, graphql.ErrorOnPath(ctx, err)
  165945. }
  165946. func (ec *executionContext) unmarshalNRefundLineItemRestockType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundLineItemRestockType(ctx context.Context, v interface{}) (RefundLineItemRestockType, error) {
  165947. var res RefundLineItemRestockType
  165948. err := res.UnmarshalGQL(v)
  165949. return res, graphql.ErrorOnPath(ctx, err)
  165950. }
  165951. func (ec *executionContext) marshalNRefundLineItemRestockType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundLineItemRestockType(ctx context.Context, sel ast.SelectionSet, v RefundLineItemRestockType) graphql.Marshaler {
  165952. return v
  165953. }
  165954. func (ec *executionContext) marshalNResourceAlert2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourceAlertᚄ(ctx context.Context, sel ast.SelectionSet, v []*ResourceAlert) graphql.Marshaler {
  165955. ret := make(graphql.Array, len(v))
  165956. var wg sync.WaitGroup
  165957. isLen1 := len(v) == 1
  165958. if !isLen1 {
  165959. wg.Add(len(v))
  165960. }
  165961. for i := range v {
  165962. i := i
  165963. fc := &graphql.FieldContext{
  165964. Index: &i,
  165965. Result: &v[i],
  165966. }
  165967. ctx := graphql.WithFieldContext(ctx, fc)
  165968. f := func(i int) {
  165969. defer func() {
  165970. if r := recover(); r != nil {
  165971. ec.Error(ctx, ec.Recover(ctx, r))
  165972. ret = nil
  165973. }
  165974. }()
  165975. if !isLen1 {
  165976. defer wg.Done()
  165977. }
  165978. ret[i] = ec.marshalNResourceAlert2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourceAlert(ctx, sel, v[i])
  165979. }
  165980. if isLen1 {
  165981. f(i)
  165982. } else {
  165983. go f(i)
  165984. }
  165985. }
  165986. wg.Wait()
  165987. for _, e := range ret {
  165988. if e == graphql.Null {
  165989. return graphql.Null
  165990. }
  165991. }
  165992. return ret
  165993. }
  165994. func (ec *executionContext) marshalNResourceAlert2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourceAlert(ctx context.Context, sel ast.SelectionSet, v *ResourceAlert) graphql.Marshaler {
  165995. if v == nil {
  165996. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  165997. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  165998. }
  165999. return graphql.Null
  166000. }
  166001. return ec._ResourceAlert(ctx, sel, v)
  166002. }
  166003. func (ec *executionContext) marshalNResourceAlertAction2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourceAlertActionᚄ(ctx context.Context, sel ast.SelectionSet, v []*ResourceAlertAction) graphql.Marshaler {
  166004. ret := make(graphql.Array, len(v))
  166005. var wg sync.WaitGroup
  166006. isLen1 := len(v) == 1
  166007. if !isLen1 {
  166008. wg.Add(len(v))
  166009. }
  166010. for i := range v {
  166011. i := i
  166012. fc := &graphql.FieldContext{
  166013. Index: &i,
  166014. Result: &v[i],
  166015. }
  166016. ctx := graphql.WithFieldContext(ctx, fc)
  166017. f := func(i int) {
  166018. defer func() {
  166019. if r := recover(); r != nil {
  166020. ec.Error(ctx, ec.Recover(ctx, r))
  166021. ret = nil
  166022. }
  166023. }()
  166024. if !isLen1 {
  166025. defer wg.Done()
  166026. }
  166027. ret[i] = ec.marshalNResourceAlertAction2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourceAlertAction(ctx, sel, v[i])
  166028. }
  166029. if isLen1 {
  166030. f(i)
  166031. } else {
  166032. go f(i)
  166033. }
  166034. }
  166035. wg.Wait()
  166036. for _, e := range ret {
  166037. if e == graphql.Null {
  166038. return graphql.Null
  166039. }
  166040. }
  166041. return ret
  166042. }
  166043. func (ec *executionContext) marshalNResourceAlertAction2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourceAlertAction(ctx context.Context, sel ast.SelectionSet, v *ResourceAlertAction) graphql.Marshaler {
  166044. if v == nil {
  166045. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166046. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166047. }
  166048. return graphql.Null
  166049. }
  166050. return ec._ResourceAlertAction(ctx, sel, v)
  166051. }
  166052. func (ec *executionContext) unmarshalNResourceAlertSeverity2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourceAlertSeverity(ctx context.Context, v interface{}) (ResourceAlertSeverity, error) {
  166053. var res ResourceAlertSeverity
  166054. err := res.UnmarshalGQL(v)
  166055. return res, graphql.ErrorOnPath(ctx, err)
  166056. }
  166057. func (ec *executionContext) marshalNResourceAlertSeverity2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourceAlertSeverity(ctx context.Context, sel ast.SelectionSet, v ResourceAlertSeverity) graphql.Marshaler {
  166058. return v
  166059. }
  166060. func (ec *executionContext) marshalNResourceLimit2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourceLimit(ctx context.Context, sel ast.SelectionSet, v *ResourceLimit) graphql.Marshaler {
  166061. if v == nil {
  166062. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166063. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166064. }
  166065. return graphql.Null
  166066. }
  166067. return ec._ResourceLimit(ctx, sel, v)
  166068. }
  166069. func (ec *executionContext) marshalNResourcePublication2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublicationᚄ(ctx context.Context, sel ast.SelectionSet, v []*ResourcePublication) graphql.Marshaler {
  166070. ret := make(graphql.Array, len(v))
  166071. var wg sync.WaitGroup
  166072. isLen1 := len(v) == 1
  166073. if !isLen1 {
  166074. wg.Add(len(v))
  166075. }
  166076. for i := range v {
  166077. i := i
  166078. fc := &graphql.FieldContext{
  166079. Index: &i,
  166080. Result: &v[i],
  166081. }
  166082. ctx := graphql.WithFieldContext(ctx, fc)
  166083. f := func(i int) {
  166084. defer func() {
  166085. if r := recover(); r != nil {
  166086. ec.Error(ctx, ec.Recover(ctx, r))
  166087. ret = nil
  166088. }
  166089. }()
  166090. if !isLen1 {
  166091. defer wg.Done()
  166092. }
  166093. ret[i] = ec.marshalNResourcePublication2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublication(ctx, sel, v[i])
  166094. }
  166095. if isLen1 {
  166096. f(i)
  166097. } else {
  166098. go f(i)
  166099. }
  166100. }
  166101. wg.Wait()
  166102. for _, e := range ret {
  166103. if e == graphql.Null {
  166104. return graphql.Null
  166105. }
  166106. }
  166107. return ret
  166108. }
  166109. func (ec *executionContext) marshalNResourcePublication2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublication(ctx context.Context, sel ast.SelectionSet, v *ResourcePublication) graphql.Marshaler {
  166110. if v == nil {
  166111. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166112. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166113. }
  166114. return graphql.Null
  166115. }
  166116. return ec._ResourcePublication(ctx, sel, v)
  166117. }
  166118. func (ec *executionContext) marshalNResourcePublicationConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublicationConnection(ctx context.Context, sel ast.SelectionSet, v *ResourcePublicationConnection) graphql.Marshaler {
  166119. if v == nil {
  166120. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166121. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166122. }
  166123. return graphql.Null
  166124. }
  166125. return ec._ResourcePublicationConnection(ctx, sel, v)
  166126. }
  166127. func (ec *executionContext) marshalNResourcePublicationEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublicationEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*ResourcePublicationEdge) graphql.Marshaler {
  166128. ret := make(graphql.Array, len(v))
  166129. var wg sync.WaitGroup
  166130. isLen1 := len(v) == 1
  166131. if !isLen1 {
  166132. wg.Add(len(v))
  166133. }
  166134. for i := range v {
  166135. i := i
  166136. fc := &graphql.FieldContext{
  166137. Index: &i,
  166138. Result: &v[i],
  166139. }
  166140. ctx := graphql.WithFieldContext(ctx, fc)
  166141. f := func(i int) {
  166142. defer func() {
  166143. if r := recover(); r != nil {
  166144. ec.Error(ctx, ec.Recover(ctx, r))
  166145. ret = nil
  166146. }
  166147. }()
  166148. if !isLen1 {
  166149. defer wg.Done()
  166150. }
  166151. ret[i] = ec.marshalNResourcePublicationEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublicationEdge(ctx, sel, v[i])
  166152. }
  166153. if isLen1 {
  166154. f(i)
  166155. } else {
  166156. go f(i)
  166157. }
  166158. }
  166159. wg.Wait()
  166160. for _, e := range ret {
  166161. if e == graphql.Null {
  166162. return graphql.Null
  166163. }
  166164. }
  166165. return ret
  166166. }
  166167. func (ec *executionContext) marshalNResourcePublicationEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublicationEdge(ctx context.Context, sel ast.SelectionSet, v *ResourcePublicationEdge) graphql.Marshaler {
  166168. if v == nil {
  166169. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166170. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166171. }
  166172. return graphql.Null
  166173. }
  166174. return ec._ResourcePublicationEdge(ctx, sel, v)
  166175. }
  166176. func (ec *executionContext) marshalNResourcePublicationV22ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublicationV2ᚄ(ctx context.Context, sel ast.SelectionSet, v []*ResourcePublicationV2) graphql.Marshaler {
  166177. ret := make(graphql.Array, len(v))
  166178. var wg sync.WaitGroup
  166179. isLen1 := len(v) == 1
  166180. if !isLen1 {
  166181. wg.Add(len(v))
  166182. }
  166183. for i := range v {
  166184. i := i
  166185. fc := &graphql.FieldContext{
  166186. Index: &i,
  166187. Result: &v[i],
  166188. }
  166189. ctx := graphql.WithFieldContext(ctx, fc)
  166190. f := func(i int) {
  166191. defer func() {
  166192. if r := recover(); r != nil {
  166193. ec.Error(ctx, ec.Recover(ctx, r))
  166194. ret = nil
  166195. }
  166196. }()
  166197. if !isLen1 {
  166198. defer wg.Done()
  166199. }
  166200. ret[i] = ec.marshalNResourcePublicationV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublicationV2(ctx, sel, v[i])
  166201. }
  166202. if isLen1 {
  166203. f(i)
  166204. } else {
  166205. go f(i)
  166206. }
  166207. }
  166208. wg.Wait()
  166209. for _, e := range ret {
  166210. if e == graphql.Null {
  166211. return graphql.Null
  166212. }
  166213. }
  166214. return ret
  166215. }
  166216. func (ec *executionContext) marshalNResourcePublicationV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublicationV2(ctx context.Context, sel ast.SelectionSet, v *ResourcePublicationV2) graphql.Marshaler {
  166217. if v == nil {
  166218. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166219. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166220. }
  166221. return graphql.Null
  166222. }
  166223. return ec._ResourcePublicationV2(ctx, sel, v)
  166224. }
  166225. func (ec *executionContext) marshalNResourcePublicationV2Connection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublicationV2Connection(ctx context.Context, sel ast.SelectionSet, v *ResourcePublicationV2Connection) graphql.Marshaler {
  166226. if v == nil {
  166227. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166228. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166229. }
  166230. return graphql.Null
  166231. }
  166232. return ec._ResourcePublicationV2Connection(ctx, sel, v)
  166233. }
  166234. func (ec *executionContext) marshalNResourcePublicationV2Edge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublicationV2Edgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*ResourcePublicationV2Edge) graphql.Marshaler {
  166235. ret := make(graphql.Array, len(v))
  166236. var wg sync.WaitGroup
  166237. isLen1 := len(v) == 1
  166238. if !isLen1 {
  166239. wg.Add(len(v))
  166240. }
  166241. for i := range v {
  166242. i := i
  166243. fc := &graphql.FieldContext{
  166244. Index: &i,
  166245. Result: &v[i],
  166246. }
  166247. ctx := graphql.WithFieldContext(ctx, fc)
  166248. f := func(i int) {
  166249. defer func() {
  166250. if r := recover(); r != nil {
  166251. ec.Error(ctx, ec.Recover(ctx, r))
  166252. ret = nil
  166253. }
  166254. }()
  166255. if !isLen1 {
  166256. defer wg.Done()
  166257. }
  166258. ret[i] = ec.marshalNResourcePublicationV2Edge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublicationV2Edge(ctx, sel, v[i])
  166259. }
  166260. if isLen1 {
  166261. f(i)
  166262. } else {
  166263. go f(i)
  166264. }
  166265. }
  166266. wg.Wait()
  166267. for _, e := range ret {
  166268. if e == graphql.Null {
  166269. return graphql.Null
  166270. }
  166271. }
  166272. return ret
  166273. }
  166274. func (ec *executionContext) marshalNResourcePublicationV2Edge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublicationV2Edge(ctx context.Context, sel ast.SelectionSet, v *ResourcePublicationV2Edge) graphql.Marshaler {
  166275. if v == nil {
  166276. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166277. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166278. }
  166279. return graphql.Null
  166280. }
  166281. return ec._ResourcePublicationV2Edge(ctx, sel, v)
  166282. }
  166283. func (ec *executionContext) marshalNSEO2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSeo(ctx context.Context, sel ast.SelectionSet, v *Seo) graphql.Marshaler {
  166284. if v == nil {
  166285. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166286. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166287. }
  166288. return graphql.Null
  166289. }
  166290. return ec._SEO(ctx, sel, v)
  166291. }
  166292. func (ec *executionContext) marshalNSale2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSale(ctx context.Context, sel ast.SelectionSet, v Sale) graphql.Marshaler {
  166293. if v == nil {
  166294. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166295. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166296. }
  166297. return graphql.Null
  166298. }
  166299. return ec._Sale(ctx, sel, v)
  166300. }
  166301. func (ec *executionContext) marshalNSale2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSaleᚄ(ctx context.Context, sel ast.SelectionSet, v []Sale) graphql.Marshaler {
  166302. ret := make(graphql.Array, len(v))
  166303. var wg sync.WaitGroup
  166304. isLen1 := len(v) == 1
  166305. if !isLen1 {
  166306. wg.Add(len(v))
  166307. }
  166308. for i := range v {
  166309. i := i
  166310. fc := &graphql.FieldContext{
  166311. Index: &i,
  166312. Result: &v[i],
  166313. }
  166314. ctx := graphql.WithFieldContext(ctx, fc)
  166315. f := func(i int) {
  166316. defer func() {
  166317. if r := recover(); r != nil {
  166318. ec.Error(ctx, ec.Recover(ctx, r))
  166319. ret = nil
  166320. }
  166321. }()
  166322. if !isLen1 {
  166323. defer wg.Done()
  166324. }
  166325. ret[i] = ec.marshalNSale2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSale(ctx, sel, v[i])
  166326. }
  166327. if isLen1 {
  166328. f(i)
  166329. } else {
  166330. go f(i)
  166331. }
  166332. }
  166333. wg.Wait()
  166334. for _, e := range ret {
  166335. if e == graphql.Null {
  166336. return graphql.Null
  166337. }
  166338. }
  166339. return ret
  166340. }
  166341. func (ec *executionContext) marshalNSaleEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSaleEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*SaleEdge) graphql.Marshaler {
  166342. ret := make(graphql.Array, len(v))
  166343. var wg sync.WaitGroup
  166344. isLen1 := len(v) == 1
  166345. if !isLen1 {
  166346. wg.Add(len(v))
  166347. }
  166348. for i := range v {
  166349. i := i
  166350. fc := &graphql.FieldContext{
  166351. Index: &i,
  166352. Result: &v[i],
  166353. }
  166354. ctx := graphql.WithFieldContext(ctx, fc)
  166355. f := func(i int) {
  166356. defer func() {
  166357. if r := recover(); r != nil {
  166358. ec.Error(ctx, ec.Recover(ctx, r))
  166359. ret = nil
  166360. }
  166361. }()
  166362. if !isLen1 {
  166363. defer wg.Done()
  166364. }
  166365. ret[i] = ec.marshalNSaleEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSaleEdge(ctx, sel, v[i])
  166366. }
  166367. if isLen1 {
  166368. f(i)
  166369. } else {
  166370. go f(i)
  166371. }
  166372. }
  166373. wg.Wait()
  166374. for _, e := range ret {
  166375. if e == graphql.Null {
  166376. return graphql.Null
  166377. }
  166378. }
  166379. return ret
  166380. }
  166381. func (ec *executionContext) marshalNSaleEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSaleEdge(ctx context.Context, sel ast.SelectionSet, v *SaleEdge) graphql.Marshaler {
  166382. if v == nil {
  166383. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166384. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166385. }
  166386. return graphql.Null
  166387. }
  166388. return ec._SaleEdge(ctx, sel, v)
  166389. }
  166390. func (ec *executionContext) marshalNSalesAgreement2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSalesAgreement(ctx context.Context, sel ast.SelectionSet, v SalesAgreement) graphql.Marshaler {
  166391. if v == nil {
  166392. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166393. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166394. }
  166395. return graphql.Null
  166396. }
  166397. return ec._SalesAgreement(ctx, sel, v)
  166398. }
  166399. func (ec *executionContext) marshalNSalesAgreement2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSalesAgreementᚄ(ctx context.Context, sel ast.SelectionSet, v []SalesAgreement) graphql.Marshaler {
  166400. ret := make(graphql.Array, len(v))
  166401. var wg sync.WaitGroup
  166402. isLen1 := len(v) == 1
  166403. if !isLen1 {
  166404. wg.Add(len(v))
  166405. }
  166406. for i := range v {
  166407. i := i
  166408. fc := &graphql.FieldContext{
  166409. Index: &i,
  166410. Result: &v[i],
  166411. }
  166412. ctx := graphql.WithFieldContext(ctx, fc)
  166413. f := func(i int) {
  166414. defer func() {
  166415. if r := recover(); r != nil {
  166416. ec.Error(ctx, ec.Recover(ctx, r))
  166417. ret = nil
  166418. }
  166419. }()
  166420. if !isLen1 {
  166421. defer wg.Done()
  166422. }
  166423. ret[i] = ec.marshalNSalesAgreement2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSalesAgreement(ctx, sel, v[i])
  166424. }
  166425. if isLen1 {
  166426. f(i)
  166427. } else {
  166428. go f(i)
  166429. }
  166430. }
  166431. wg.Wait()
  166432. for _, e := range ret {
  166433. if e == graphql.Null {
  166434. return graphql.Null
  166435. }
  166436. }
  166437. return ret
  166438. }
  166439. func (ec *executionContext) marshalNSalesAgreementConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSalesAgreementConnection(ctx context.Context, sel ast.SelectionSet, v *SalesAgreementConnection) graphql.Marshaler {
  166440. if v == nil {
  166441. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166442. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166443. }
  166444. return graphql.Null
  166445. }
  166446. return ec._SalesAgreementConnection(ctx, sel, v)
  166447. }
  166448. func (ec *executionContext) marshalNSalesAgreementEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSalesAgreementEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*SalesAgreementEdge) graphql.Marshaler {
  166449. ret := make(graphql.Array, len(v))
  166450. var wg sync.WaitGroup
  166451. isLen1 := len(v) == 1
  166452. if !isLen1 {
  166453. wg.Add(len(v))
  166454. }
  166455. for i := range v {
  166456. i := i
  166457. fc := &graphql.FieldContext{
  166458. Index: &i,
  166459. Result: &v[i],
  166460. }
  166461. ctx := graphql.WithFieldContext(ctx, fc)
  166462. f := func(i int) {
  166463. defer func() {
  166464. if r := recover(); r != nil {
  166465. ec.Error(ctx, ec.Recover(ctx, r))
  166466. ret = nil
  166467. }
  166468. }()
  166469. if !isLen1 {
  166470. defer wg.Done()
  166471. }
  166472. ret[i] = ec.marshalNSalesAgreementEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSalesAgreementEdge(ctx, sel, v[i])
  166473. }
  166474. if isLen1 {
  166475. f(i)
  166476. } else {
  166477. go f(i)
  166478. }
  166479. }
  166480. wg.Wait()
  166481. for _, e := range ret {
  166482. if e == graphql.Null {
  166483. return graphql.Null
  166484. }
  166485. }
  166486. return ret
  166487. }
  166488. func (ec *executionContext) marshalNSalesAgreementEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSalesAgreementEdge(ctx context.Context, sel ast.SelectionSet, v *SalesAgreementEdge) graphql.Marshaler {
  166489. if v == nil {
  166490. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166491. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166492. }
  166493. return graphql.Null
  166494. }
  166495. return ec._SalesAgreementEdge(ctx, sel, v)
  166496. }
  166497. func (ec *executionContext) marshalNSavedSearch2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSavedSearchᚄ(ctx context.Context, sel ast.SelectionSet, v []*SavedSearch) graphql.Marshaler {
  166498. ret := make(graphql.Array, len(v))
  166499. var wg sync.WaitGroup
  166500. isLen1 := len(v) == 1
  166501. if !isLen1 {
  166502. wg.Add(len(v))
  166503. }
  166504. for i := range v {
  166505. i := i
  166506. fc := &graphql.FieldContext{
  166507. Index: &i,
  166508. Result: &v[i],
  166509. }
  166510. ctx := graphql.WithFieldContext(ctx, fc)
  166511. f := func(i int) {
  166512. defer func() {
  166513. if r := recover(); r != nil {
  166514. ec.Error(ctx, ec.Recover(ctx, r))
  166515. ret = nil
  166516. }
  166517. }()
  166518. if !isLen1 {
  166519. defer wg.Done()
  166520. }
  166521. ret[i] = ec.marshalNSavedSearch2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSavedSearch(ctx, sel, v[i])
  166522. }
  166523. if isLen1 {
  166524. f(i)
  166525. } else {
  166526. go f(i)
  166527. }
  166528. }
  166529. wg.Wait()
  166530. for _, e := range ret {
  166531. if e == graphql.Null {
  166532. return graphql.Null
  166533. }
  166534. }
  166535. return ret
  166536. }
  166537. func (ec *executionContext) marshalNSavedSearch2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSavedSearch(ctx context.Context, sel ast.SelectionSet, v *SavedSearch) graphql.Marshaler {
  166538. if v == nil {
  166539. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166540. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166541. }
  166542. return graphql.Null
  166543. }
  166544. return ec._SavedSearch(ctx, sel, v)
  166545. }
  166546. func (ec *executionContext) marshalNSavedSearchEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSavedSearchEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*SavedSearchEdge) graphql.Marshaler {
  166547. ret := make(graphql.Array, len(v))
  166548. var wg sync.WaitGroup
  166549. isLen1 := len(v) == 1
  166550. if !isLen1 {
  166551. wg.Add(len(v))
  166552. }
  166553. for i := range v {
  166554. i := i
  166555. fc := &graphql.FieldContext{
  166556. Index: &i,
  166557. Result: &v[i],
  166558. }
  166559. ctx := graphql.WithFieldContext(ctx, fc)
  166560. f := func(i int) {
  166561. defer func() {
  166562. if r := recover(); r != nil {
  166563. ec.Error(ctx, ec.Recover(ctx, r))
  166564. ret = nil
  166565. }
  166566. }()
  166567. if !isLen1 {
  166568. defer wg.Done()
  166569. }
  166570. ret[i] = ec.marshalNSavedSearchEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSavedSearchEdge(ctx, sel, v[i])
  166571. }
  166572. if isLen1 {
  166573. f(i)
  166574. } else {
  166575. go f(i)
  166576. }
  166577. }
  166578. wg.Wait()
  166579. for _, e := range ret {
  166580. if e == graphql.Null {
  166581. return graphql.Null
  166582. }
  166583. }
  166584. return ret
  166585. }
  166586. func (ec *executionContext) marshalNSavedSearchEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSavedSearchEdge(ctx context.Context, sel ast.SelectionSet, v *SavedSearchEdge) graphql.Marshaler {
  166587. if v == nil {
  166588. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166589. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166590. }
  166591. return graphql.Null
  166592. }
  166593. return ec._SavedSearchEdge(ctx, sel, v)
  166594. }
  166595. func (ec *executionContext) marshalNSearchFilter2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSearchFilterᚄ(ctx context.Context, sel ast.SelectionSet, v []*SearchFilter) graphql.Marshaler {
  166596. ret := make(graphql.Array, len(v))
  166597. var wg sync.WaitGroup
  166598. isLen1 := len(v) == 1
  166599. if !isLen1 {
  166600. wg.Add(len(v))
  166601. }
  166602. for i := range v {
  166603. i := i
  166604. fc := &graphql.FieldContext{
  166605. Index: &i,
  166606. Result: &v[i],
  166607. }
  166608. ctx := graphql.WithFieldContext(ctx, fc)
  166609. f := func(i int) {
  166610. defer func() {
  166611. if r := recover(); r != nil {
  166612. ec.Error(ctx, ec.Recover(ctx, r))
  166613. ret = nil
  166614. }
  166615. }()
  166616. if !isLen1 {
  166617. defer wg.Done()
  166618. }
  166619. ret[i] = ec.marshalNSearchFilter2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSearchFilter(ctx, sel, v[i])
  166620. }
  166621. if isLen1 {
  166622. f(i)
  166623. } else {
  166624. go f(i)
  166625. }
  166626. }
  166627. wg.Wait()
  166628. for _, e := range ret {
  166629. if e == graphql.Null {
  166630. return graphql.Null
  166631. }
  166632. }
  166633. return ret
  166634. }
  166635. func (ec *executionContext) marshalNSearchFilter2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSearchFilter(ctx context.Context, sel ast.SelectionSet, v *SearchFilter) graphql.Marshaler {
  166636. if v == nil {
  166637. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166638. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166639. }
  166640. return graphql.Null
  166641. }
  166642. return ec._SearchFilter(ctx, sel, v)
  166643. }
  166644. func (ec *executionContext) marshalNSearchFilterOptions2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSearchFilterOptions(ctx context.Context, sel ast.SelectionSet, v *SearchFilterOptions) graphql.Marshaler {
  166645. if v == nil {
  166646. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166647. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166648. }
  166649. return graphql.Null
  166650. }
  166651. return ec._SearchFilterOptions(ctx, sel, v)
  166652. }
  166653. func (ec *executionContext) marshalNSearchResult2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSearchResult(ctx context.Context, sel ast.SelectionSet, v *SearchResult) graphql.Marshaler {
  166654. if v == nil {
  166655. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166656. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166657. }
  166658. return graphql.Null
  166659. }
  166660. return ec._SearchResult(ctx, sel, v)
  166661. }
  166662. func (ec *executionContext) marshalNSearchResultConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSearchResultConnection(ctx context.Context, sel ast.SelectionSet, v *SearchResultConnection) graphql.Marshaler {
  166663. if v == nil {
  166664. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166665. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166666. }
  166667. return graphql.Null
  166668. }
  166669. return ec._SearchResultConnection(ctx, sel, v)
  166670. }
  166671. func (ec *executionContext) marshalNSearchResultEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSearchResultEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*SearchResultEdge) graphql.Marshaler {
  166672. ret := make(graphql.Array, len(v))
  166673. var wg sync.WaitGroup
  166674. isLen1 := len(v) == 1
  166675. if !isLen1 {
  166676. wg.Add(len(v))
  166677. }
  166678. for i := range v {
  166679. i := i
  166680. fc := &graphql.FieldContext{
  166681. Index: &i,
  166682. Result: &v[i],
  166683. }
  166684. ctx := graphql.WithFieldContext(ctx, fc)
  166685. f := func(i int) {
  166686. defer func() {
  166687. if r := recover(); r != nil {
  166688. ec.Error(ctx, ec.Recover(ctx, r))
  166689. ret = nil
  166690. }
  166691. }()
  166692. if !isLen1 {
  166693. defer wg.Done()
  166694. }
  166695. ret[i] = ec.marshalNSearchResultEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSearchResultEdge(ctx, sel, v[i])
  166696. }
  166697. if isLen1 {
  166698. f(i)
  166699. } else {
  166700. go f(i)
  166701. }
  166702. }
  166703. wg.Wait()
  166704. for _, e := range ret {
  166705. if e == graphql.Null {
  166706. return graphql.Null
  166707. }
  166708. }
  166709. return ret
  166710. }
  166711. func (ec *executionContext) marshalNSearchResultEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSearchResultEdge(ctx context.Context, sel ast.SelectionSet, v *SearchResultEdge) graphql.Marshaler {
  166712. if v == nil {
  166713. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166714. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166715. }
  166716. return graphql.Null
  166717. }
  166718. return ec._SearchResultEdge(ctx, sel, v)
  166719. }
  166720. func (ec *executionContext) unmarshalNSearchResultType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSearchResultType(ctx context.Context, v interface{}) (SearchResultType, error) {
  166721. var res SearchResultType
  166722. err := res.UnmarshalGQL(v)
  166723. return res, graphql.ErrorOnPath(ctx, err)
  166724. }
  166725. func (ec *executionContext) marshalNSearchResultType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSearchResultType(ctx context.Context, sel ast.SelectionSet, v SearchResultType) graphql.Marshaler {
  166726. return v
  166727. }
  166728. func (ec *executionContext) marshalNSelectedOption2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSelectedOptionᚄ(ctx context.Context, sel ast.SelectionSet, v []*SelectedOption) graphql.Marshaler {
  166729. ret := make(graphql.Array, len(v))
  166730. var wg sync.WaitGroup
  166731. isLen1 := len(v) == 1
  166732. if !isLen1 {
  166733. wg.Add(len(v))
  166734. }
  166735. for i := range v {
  166736. i := i
  166737. fc := &graphql.FieldContext{
  166738. Index: &i,
  166739. Result: &v[i],
  166740. }
  166741. ctx := graphql.WithFieldContext(ctx, fc)
  166742. f := func(i int) {
  166743. defer func() {
  166744. if r := recover(); r != nil {
  166745. ec.Error(ctx, ec.Recover(ctx, r))
  166746. ret = nil
  166747. }
  166748. }()
  166749. if !isLen1 {
  166750. defer wg.Done()
  166751. }
  166752. ret[i] = ec.marshalNSelectedOption2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSelectedOption(ctx, sel, v[i])
  166753. }
  166754. if isLen1 {
  166755. f(i)
  166756. } else {
  166757. go f(i)
  166758. }
  166759. }
  166760. wg.Wait()
  166761. for _, e := range ret {
  166762. if e == graphql.Null {
  166763. return graphql.Null
  166764. }
  166765. }
  166766. return ret
  166767. }
  166768. func (ec *executionContext) marshalNSelectedOption2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSelectedOption(ctx context.Context, sel ast.SelectionSet, v *SelectedOption) graphql.Marshaler {
  166769. if v == nil {
  166770. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166771. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166772. }
  166773. return graphql.Null
  166774. }
  166775. return ec._SelectedOption(ctx, sel, v)
  166776. }
  166777. func (ec *executionContext) marshalNSellingPlan2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanᚄ(ctx context.Context, sel ast.SelectionSet, v []*SellingPlan) graphql.Marshaler {
  166778. ret := make(graphql.Array, len(v))
  166779. var wg sync.WaitGroup
  166780. isLen1 := len(v) == 1
  166781. if !isLen1 {
  166782. wg.Add(len(v))
  166783. }
  166784. for i := range v {
  166785. i := i
  166786. fc := &graphql.FieldContext{
  166787. Index: &i,
  166788. Result: &v[i],
  166789. }
  166790. ctx := graphql.WithFieldContext(ctx, fc)
  166791. f := func(i int) {
  166792. defer func() {
  166793. if r := recover(); r != nil {
  166794. ec.Error(ctx, ec.Recover(ctx, r))
  166795. ret = nil
  166796. }
  166797. }()
  166798. if !isLen1 {
  166799. defer wg.Done()
  166800. }
  166801. ret[i] = ec.marshalNSellingPlan2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlan(ctx, sel, v[i])
  166802. }
  166803. if isLen1 {
  166804. f(i)
  166805. } else {
  166806. go f(i)
  166807. }
  166808. }
  166809. wg.Wait()
  166810. for _, e := range ret {
  166811. if e == graphql.Null {
  166812. return graphql.Null
  166813. }
  166814. }
  166815. return ret
  166816. }
  166817. func (ec *executionContext) marshalNSellingPlan2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlan(ctx context.Context, sel ast.SelectionSet, v *SellingPlan) graphql.Marshaler {
  166818. if v == nil {
  166819. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166820. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166821. }
  166822. return graphql.Null
  166823. }
  166824. return ec._SellingPlan(ctx, sel, v)
  166825. }
  166826. func (ec *executionContext) marshalNSellingPlanAnchor2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanAnchorᚄ(ctx context.Context, sel ast.SelectionSet, v []*SellingPlanAnchor) graphql.Marshaler {
  166827. ret := make(graphql.Array, len(v))
  166828. var wg sync.WaitGroup
  166829. isLen1 := len(v) == 1
  166830. if !isLen1 {
  166831. wg.Add(len(v))
  166832. }
  166833. for i := range v {
  166834. i := i
  166835. fc := &graphql.FieldContext{
  166836. Index: &i,
  166837. Result: &v[i],
  166838. }
  166839. ctx := graphql.WithFieldContext(ctx, fc)
  166840. f := func(i int) {
  166841. defer func() {
  166842. if r := recover(); r != nil {
  166843. ec.Error(ctx, ec.Recover(ctx, r))
  166844. ret = nil
  166845. }
  166846. }()
  166847. if !isLen1 {
  166848. defer wg.Done()
  166849. }
  166850. ret[i] = ec.marshalNSellingPlanAnchor2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanAnchor(ctx, sel, v[i])
  166851. }
  166852. if isLen1 {
  166853. f(i)
  166854. } else {
  166855. go f(i)
  166856. }
  166857. }
  166858. wg.Wait()
  166859. for _, e := range ret {
  166860. if e == graphql.Null {
  166861. return graphql.Null
  166862. }
  166863. }
  166864. return ret
  166865. }
  166866. func (ec *executionContext) marshalNSellingPlanAnchor2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanAnchor(ctx context.Context, sel ast.SelectionSet, v *SellingPlanAnchor) graphql.Marshaler {
  166867. if v == nil {
  166868. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166869. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166870. }
  166871. return graphql.Null
  166872. }
  166873. return ec._SellingPlanAnchor(ctx, sel, v)
  166874. }
  166875. func (ec *executionContext) unmarshalNSellingPlanAnchorType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanAnchorType(ctx context.Context, v interface{}) (SellingPlanAnchorType, error) {
  166876. var res SellingPlanAnchorType
  166877. err := res.UnmarshalGQL(v)
  166878. return res, graphql.ErrorOnPath(ctx, err)
  166879. }
  166880. func (ec *executionContext) marshalNSellingPlanAnchorType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanAnchorType(ctx context.Context, sel ast.SelectionSet, v SellingPlanAnchorType) graphql.Marshaler {
  166881. return v
  166882. }
  166883. func (ec *executionContext) marshalNSellingPlanBillingPolicy2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanBillingPolicy(ctx context.Context, sel ast.SelectionSet, v SellingPlanBillingPolicy) graphql.Marshaler {
  166884. if v == nil {
  166885. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166886. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166887. }
  166888. return graphql.Null
  166889. }
  166890. return ec._SellingPlanBillingPolicy(ctx, sel, v)
  166891. }
  166892. func (ec *executionContext) marshalNSellingPlanCheckoutCharge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanCheckoutCharge(ctx context.Context, sel ast.SelectionSet, v *SellingPlanCheckoutCharge) graphql.Marshaler {
  166893. if v == nil {
  166894. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166895. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166896. }
  166897. return graphql.Null
  166898. }
  166899. return ec._SellingPlanCheckoutCharge(ctx, sel, v)
  166900. }
  166901. func (ec *executionContext) unmarshalNSellingPlanCheckoutChargeType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanCheckoutChargeType(ctx context.Context, v interface{}) (SellingPlanCheckoutChargeType, error) {
  166902. var res SellingPlanCheckoutChargeType
  166903. err := res.UnmarshalGQL(v)
  166904. return res, graphql.ErrorOnPath(ctx, err)
  166905. }
  166906. func (ec *executionContext) marshalNSellingPlanCheckoutChargeType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanCheckoutChargeType(ctx context.Context, sel ast.SelectionSet, v SellingPlanCheckoutChargeType) graphql.Marshaler {
  166907. return v
  166908. }
  166909. func (ec *executionContext) marshalNSellingPlanCheckoutChargeValue2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanCheckoutChargeValue(ctx context.Context, sel ast.SelectionSet, v SellingPlanCheckoutChargeValue) graphql.Marshaler {
  166910. if v == nil {
  166911. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166912. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166913. }
  166914. return graphql.Null
  166915. }
  166916. return ec._SellingPlanCheckoutChargeValue(ctx, sel, v)
  166917. }
  166918. func (ec *executionContext) marshalNSellingPlanConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanConnection(ctx context.Context, sel ast.SelectionSet, v *SellingPlanConnection) graphql.Marshaler {
  166919. if v == nil {
  166920. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166921. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166922. }
  166923. return graphql.Null
  166924. }
  166925. return ec._SellingPlanConnection(ctx, sel, v)
  166926. }
  166927. func (ec *executionContext) marshalNSellingPlanDeliveryPolicy2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanDeliveryPolicy(ctx context.Context, sel ast.SelectionSet, v SellingPlanDeliveryPolicy) graphql.Marshaler {
  166928. if v == nil {
  166929. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166930. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166931. }
  166932. return graphql.Null
  166933. }
  166934. return ec._SellingPlanDeliveryPolicy(ctx, sel, v)
  166935. }
  166936. func (ec *executionContext) marshalNSellingPlanEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*SellingPlanEdge) graphql.Marshaler {
  166937. ret := make(graphql.Array, len(v))
  166938. var wg sync.WaitGroup
  166939. isLen1 := len(v) == 1
  166940. if !isLen1 {
  166941. wg.Add(len(v))
  166942. }
  166943. for i := range v {
  166944. i := i
  166945. fc := &graphql.FieldContext{
  166946. Index: &i,
  166947. Result: &v[i],
  166948. }
  166949. ctx := graphql.WithFieldContext(ctx, fc)
  166950. f := func(i int) {
  166951. defer func() {
  166952. if r := recover(); r != nil {
  166953. ec.Error(ctx, ec.Recover(ctx, r))
  166954. ret = nil
  166955. }
  166956. }()
  166957. if !isLen1 {
  166958. defer wg.Done()
  166959. }
  166960. ret[i] = ec.marshalNSellingPlanEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanEdge(ctx, sel, v[i])
  166961. }
  166962. if isLen1 {
  166963. f(i)
  166964. } else {
  166965. go f(i)
  166966. }
  166967. }
  166968. wg.Wait()
  166969. for _, e := range ret {
  166970. if e == graphql.Null {
  166971. return graphql.Null
  166972. }
  166973. }
  166974. return ret
  166975. }
  166976. func (ec *executionContext) marshalNSellingPlanEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanEdge(ctx context.Context, sel ast.SelectionSet, v *SellingPlanEdge) graphql.Marshaler {
  166977. if v == nil {
  166978. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  166979. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  166980. }
  166981. return graphql.Null
  166982. }
  166983. return ec._SellingPlanEdge(ctx, sel, v)
  166984. }
  166985. func (ec *executionContext) unmarshalNSellingPlanFixedDeliveryPolicyIntent2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanFixedDeliveryPolicyIntent(ctx context.Context, v interface{}) (SellingPlanFixedDeliveryPolicyIntent, error) {
  166986. var res SellingPlanFixedDeliveryPolicyIntent
  166987. err := res.UnmarshalGQL(v)
  166988. return res, graphql.ErrorOnPath(ctx, err)
  166989. }
  166990. func (ec *executionContext) marshalNSellingPlanFixedDeliveryPolicyIntent2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanFixedDeliveryPolicyIntent(ctx context.Context, sel ast.SelectionSet, v SellingPlanFixedDeliveryPolicyIntent) graphql.Marshaler {
  166991. return v
  166992. }
  166993. func (ec *executionContext) unmarshalNSellingPlanFixedDeliveryPolicyPreAnchorBehavior2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanFixedDeliveryPolicyPreAnchorBehavior(ctx context.Context, v interface{}) (SellingPlanFixedDeliveryPolicyPreAnchorBehavior, error) {
  166994. var res SellingPlanFixedDeliveryPolicyPreAnchorBehavior
  166995. err := res.UnmarshalGQL(v)
  166996. return res, graphql.ErrorOnPath(ctx, err)
  166997. }
  166998. func (ec *executionContext) marshalNSellingPlanFixedDeliveryPolicyPreAnchorBehavior2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanFixedDeliveryPolicyPreAnchorBehavior(ctx context.Context, sel ast.SelectionSet, v SellingPlanFixedDeliveryPolicyPreAnchorBehavior) graphql.Marshaler {
  166999. return v
  167000. }
  167001. func (ec *executionContext) unmarshalNSellingPlanFulfillmentTrigger2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanFulfillmentTrigger(ctx context.Context, v interface{}) (SellingPlanFulfillmentTrigger, error) {
  167002. var res SellingPlanFulfillmentTrigger
  167003. err := res.UnmarshalGQL(v)
  167004. return res, graphql.ErrorOnPath(ctx, err)
  167005. }
  167006. func (ec *executionContext) marshalNSellingPlanFulfillmentTrigger2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanFulfillmentTrigger(ctx context.Context, sel ast.SelectionSet, v SellingPlanFulfillmentTrigger) graphql.Marshaler {
  167007. return v
  167008. }
  167009. func (ec *executionContext) marshalNSellingPlanGroup2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanGroupᚄ(ctx context.Context, sel ast.SelectionSet, v []*SellingPlanGroup) graphql.Marshaler {
  167010. ret := make(graphql.Array, len(v))
  167011. var wg sync.WaitGroup
  167012. isLen1 := len(v) == 1
  167013. if !isLen1 {
  167014. wg.Add(len(v))
  167015. }
  167016. for i := range v {
  167017. i := i
  167018. fc := &graphql.FieldContext{
  167019. Index: &i,
  167020. Result: &v[i],
  167021. }
  167022. ctx := graphql.WithFieldContext(ctx, fc)
  167023. f := func(i int) {
  167024. defer func() {
  167025. if r := recover(); r != nil {
  167026. ec.Error(ctx, ec.Recover(ctx, r))
  167027. ret = nil
  167028. }
  167029. }()
  167030. if !isLen1 {
  167031. defer wg.Done()
  167032. }
  167033. ret[i] = ec.marshalNSellingPlanGroup2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanGroup(ctx, sel, v[i])
  167034. }
  167035. if isLen1 {
  167036. f(i)
  167037. } else {
  167038. go f(i)
  167039. }
  167040. }
  167041. wg.Wait()
  167042. for _, e := range ret {
  167043. if e == graphql.Null {
  167044. return graphql.Null
  167045. }
  167046. }
  167047. return ret
  167048. }
  167049. func (ec *executionContext) marshalNSellingPlanGroup2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanGroup(ctx context.Context, sel ast.SelectionSet, v *SellingPlanGroup) graphql.Marshaler {
  167050. if v == nil {
  167051. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167052. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167053. }
  167054. return graphql.Null
  167055. }
  167056. return ec._SellingPlanGroup(ctx, sel, v)
  167057. }
  167058. func (ec *executionContext) marshalNSellingPlanGroupConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanGroupConnection(ctx context.Context, sel ast.SelectionSet, v *SellingPlanGroupConnection) graphql.Marshaler {
  167059. if v == nil {
  167060. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167061. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167062. }
  167063. return graphql.Null
  167064. }
  167065. return ec._SellingPlanGroupConnection(ctx, sel, v)
  167066. }
  167067. func (ec *executionContext) marshalNSellingPlanGroupEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanGroupEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*SellingPlanGroupEdge) graphql.Marshaler {
  167068. ret := make(graphql.Array, len(v))
  167069. var wg sync.WaitGroup
  167070. isLen1 := len(v) == 1
  167071. if !isLen1 {
  167072. wg.Add(len(v))
  167073. }
  167074. for i := range v {
  167075. i := i
  167076. fc := &graphql.FieldContext{
  167077. Index: &i,
  167078. Result: &v[i],
  167079. }
  167080. ctx := graphql.WithFieldContext(ctx, fc)
  167081. f := func(i int) {
  167082. defer func() {
  167083. if r := recover(); r != nil {
  167084. ec.Error(ctx, ec.Recover(ctx, r))
  167085. ret = nil
  167086. }
  167087. }()
  167088. if !isLen1 {
  167089. defer wg.Done()
  167090. }
  167091. ret[i] = ec.marshalNSellingPlanGroupEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanGroupEdge(ctx, sel, v[i])
  167092. }
  167093. if isLen1 {
  167094. f(i)
  167095. } else {
  167096. go f(i)
  167097. }
  167098. }
  167099. wg.Wait()
  167100. for _, e := range ret {
  167101. if e == graphql.Null {
  167102. return graphql.Null
  167103. }
  167104. }
  167105. return ret
  167106. }
  167107. func (ec *executionContext) marshalNSellingPlanGroupEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanGroupEdge(ctx context.Context, sel ast.SelectionSet, v *SellingPlanGroupEdge) graphql.Marshaler {
  167108. if v == nil {
  167109. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167110. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167111. }
  167112. return graphql.Null
  167113. }
  167114. return ec._SellingPlanGroupEdge(ctx, sel, v)
  167115. }
  167116. func (ec *executionContext) unmarshalNSellingPlanInterval2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanInterval(ctx context.Context, v interface{}) (SellingPlanInterval, error) {
  167117. var res SellingPlanInterval
  167118. err := res.UnmarshalGQL(v)
  167119. return res, graphql.ErrorOnPath(ctx, err)
  167120. }
  167121. func (ec *executionContext) marshalNSellingPlanInterval2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanInterval(ctx context.Context, sel ast.SelectionSet, v SellingPlanInterval) graphql.Marshaler {
  167122. return v
  167123. }
  167124. func (ec *executionContext) marshalNSellingPlanPricingPolicy2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanPricingPolicy(ctx context.Context, sel ast.SelectionSet, v SellingPlanPricingPolicy) graphql.Marshaler {
  167125. if v == nil {
  167126. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167127. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167128. }
  167129. return graphql.Null
  167130. }
  167131. return ec._SellingPlanPricingPolicy(ctx, sel, v)
  167132. }
  167133. func (ec *executionContext) marshalNSellingPlanPricingPolicy2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanPricingPolicyᚄ(ctx context.Context, sel ast.SelectionSet, v []SellingPlanPricingPolicy) graphql.Marshaler {
  167134. ret := make(graphql.Array, len(v))
  167135. var wg sync.WaitGroup
  167136. isLen1 := len(v) == 1
  167137. if !isLen1 {
  167138. wg.Add(len(v))
  167139. }
  167140. for i := range v {
  167141. i := i
  167142. fc := &graphql.FieldContext{
  167143. Index: &i,
  167144. Result: &v[i],
  167145. }
  167146. ctx := graphql.WithFieldContext(ctx, fc)
  167147. f := func(i int) {
  167148. defer func() {
  167149. if r := recover(); r != nil {
  167150. ec.Error(ctx, ec.Recover(ctx, r))
  167151. ret = nil
  167152. }
  167153. }()
  167154. if !isLen1 {
  167155. defer wg.Done()
  167156. }
  167157. ret[i] = ec.marshalNSellingPlanPricingPolicy2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanPricingPolicy(ctx, sel, v[i])
  167158. }
  167159. if isLen1 {
  167160. f(i)
  167161. } else {
  167162. go f(i)
  167163. }
  167164. }
  167165. wg.Wait()
  167166. for _, e := range ret {
  167167. if e == graphql.Null {
  167168. return graphql.Null
  167169. }
  167170. }
  167171. return ret
  167172. }
  167173. func (ec *executionContext) unmarshalNSellingPlanPricingPolicyAdjustmentType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanPricingPolicyAdjustmentType(ctx context.Context, v interface{}) (SellingPlanPricingPolicyAdjustmentType, error) {
  167174. var res SellingPlanPricingPolicyAdjustmentType
  167175. err := res.UnmarshalGQL(v)
  167176. return res, graphql.ErrorOnPath(ctx, err)
  167177. }
  167178. func (ec *executionContext) marshalNSellingPlanPricingPolicyAdjustmentType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanPricingPolicyAdjustmentType(ctx context.Context, sel ast.SelectionSet, v SellingPlanPricingPolicyAdjustmentType) graphql.Marshaler {
  167179. return v
  167180. }
  167181. func (ec *executionContext) marshalNSellingPlanPricingPolicyAdjustmentValue2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanPricingPolicyAdjustmentValue(ctx context.Context, sel ast.SelectionSet, v SellingPlanPricingPolicyAdjustmentValue) graphql.Marshaler {
  167182. if v == nil {
  167183. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167184. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167185. }
  167186. return graphql.Null
  167187. }
  167188. return ec._SellingPlanPricingPolicyAdjustmentValue(ctx, sel, v)
  167189. }
  167190. func (ec *executionContext) unmarshalNSellingPlanRecurringDeliveryPolicyIntent2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanRecurringDeliveryPolicyIntent(ctx context.Context, v interface{}) (SellingPlanRecurringDeliveryPolicyIntent, error) {
  167191. var res SellingPlanRecurringDeliveryPolicyIntent
  167192. err := res.UnmarshalGQL(v)
  167193. return res, graphql.ErrorOnPath(ctx, err)
  167194. }
  167195. func (ec *executionContext) marshalNSellingPlanRecurringDeliveryPolicyIntent2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanRecurringDeliveryPolicyIntent(ctx context.Context, sel ast.SelectionSet, v SellingPlanRecurringDeliveryPolicyIntent) graphql.Marshaler {
  167196. return v
  167197. }
  167198. func (ec *executionContext) unmarshalNSellingPlanRecurringDeliveryPolicyPreAnchorBehavior2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanRecurringDeliveryPolicyPreAnchorBehavior(ctx context.Context, v interface{}) (SellingPlanRecurringDeliveryPolicyPreAnchorBehavior, error) {
  167199. var res SellingPlanRecurringDeliveryPolicyPreAnchorBehavior
  167200. err := res.UnmarshalGQL(v)
  167201. return res, graphql.ErrorOnPath(ctx, err)
  167202. }
  167203. func (ec *executionContext) marshalNSellingPlanRecurringDeliveryPolicyPreAnchorBehavior2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanRecurringDeliveryPolicyPreAnchorBehavior(ctx context.Context, sel ast.SelectionSet, v SellingPlanRecurringDeliveryPolicyPreAnchorBehavior) graphql.Marshaler {
  167204. return v
  167205. }
  167206. func (ec *executionContext) unmarshalNSellingPlanRemainingBalanceChargeTrigger2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanRemainingBalanceChargeTrigger(ctx context.Context, v interface{}) (SellingPlanRemainingBalanceChargeTrigger, error) {
  167207. var res SellingPlanRemainingBalanceChargeTrigger
  167208. err := res.UnmarshalGQL(v)
  167209. return res, graphql.ErrorOnPath(ctx, err)
  167210. }
  167211. func (ec *executionContext) marshalNSellingPlanRemainingBalanceChargeTrigger2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanRemainingBalanceChargeTrigger(ctx context.Context, sel ast.SelectionSet, v SellingPlanRemainingBalanceChargeTrigger) graphql.Marshaler {
  167212. return v
  167213. }
  167214. func (ec *executionContext) unmarshalNSellingPlanReserve2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanReserve(ctx context.Context, v interface{}) (SellingPlanReserve, error) {
  167215. var res SellingPlanReserve
  167216. err := res.UnmarshalGQL(v)
  167217. return res, graphql.ErrorOnPath(ctx, err)
  167218. }
  167219. func (ec *executionContext) marshalNSellingPlanReserve2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanReserve(ctx context.Context, sel ast.SelectionSet, v SellingPlanReserve) graphql.Marshaler {
  167220. return v
  167221. }
  167222. func (ec *executionContext) marshalNShippingLine2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShippingLineᚄ(ctx context.Context, sel ast.SelectionSet, v []*ShippingLine) graphql.Marshaler {
  167223. ret := make(graphql.Array, len(v))
  167224. var wg sync.WaitGroup
  167225. isLen1 := len(v) == 1
  167226. if !isLen1 {
  167227. wg.Add(len(v))
  167228. }
  167229. for i := range v {
  167230. i := i
  167231. fc := &graphql.FieldContext{
  167232. Index: &i,
  167233. Result: &v[i],
  167234. }
  167235. ctx := graphql.WithFieldContext(ctx, fc)
  167236. f := func(i int) {
  167237. defer func() {
  167238. if r := recover(); r != nil {
  167239. ec.Error(ctx, ec.Recover(ctx, r))
  167240. ret = nil
  167241. }
  167242. }()
  167243. if !isLen1 {
  167244. defer wg.Done()
  167245. }
  167246. ret[i] = ec.marshalNShippingLine2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShippingLine(ctx, sel, v[i])
  167247. }
  167248. if isLen1 {
  167249. f(i)
  167250. } else {
  167251. go f(i)
  167252. }
  167253. }
  167254. wg.Wait()
  167255. for _, e := range ret {
  167256. if e == graphql.Null {
  167257. return graphql.Null
  167258. }
  167259. }
  167260. return ret
  167261. }
  167262. func (ec *executionContext) marshalNShippingLine2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShippingLine(ctx context.Context, sel ast.SelectionSet, v *ShippingLine) graphql.Marshaler {
  167263. if v == nil {
  167264. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167265. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167266. }
  167267. return graphql.Null
  167268. }
  167269. return ec._ShippingLine(ctx, sel, v)
  167270. }
  167271. func (ec *executionContext) marshalNShippingLineConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShippingLineConnection(ctx context.Context, sel ast.SelectionSet, v *ShippingLineConnection) graphql.Marshaler {
  167272. if v == nil {
  167273. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167274. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167275. }
  167276. return graphql.Null
  167277. }
  167278. return ec._ShippingLineConnection(ctx, sel, v)
  167279. }
  167280. func (ec *executionContext) marshalNShippingLineEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShippingLineEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*ShippingLineEdge) graphql.Marshaler {
  167281. ret := make(graphql.Array, len(v))
  167282. var wg sync.WaitGroup
  167283. isLen1 := len(v) == 1
  167284. if !isLen1 {
  167285. wg.Add(len(v))
  167286. }
  167287. for i := range v {
  167288. i := i
  167289. fc := &graphql.FieldContext{
  167290. Index: &i,
  167291. Result: &v[i],
  167292. }
  167293. ctx := graphql.WithFieldContext(ctx, fc)
  167294. f := func(i int) {
  167295. defer func() {
  167296. if r := recover(); r != nil {
  167297. ec.Error(ctx, ec.Recover(ctx, r))
  167298. ret = nil
  167299. }
  167300. }()
  167301. if !isLen1 {
  167302. defer wg.Done()
  167303. }
  167304. ret[i] = ec.marshalNShippingLineEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShippingLineEdge(ctx, sel, v[i])
  167305. }
  167306. if isLen1 {
  167307. f(i)
  167308. } else {
  167309. go f(i)
  167310. }
  167311. }
  167312. wg.Wait()
  167313. for _, e := range ret {
  167314. if e == graphql.Null {
  167315. return graphql.Null
  167316. }
  167317. }
  167318. return ret
  167319. }
  167320. func (ec *executionContext) marshalNShippingLineEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShippingLineEdge(ctx context.Context, sel ast.SelectionSet, v *ShippingLineEdge) graphql.Marshaler {
  167321. if v == nil {
  167322. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167323. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167324. }
  167325. return graphql.Null
  167326. }
  167327. return ec._ShippingLineEdge(ctx, sel, v)
  167328. }
  167329. func (ec *executionContext) marshalNShippingRefund2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShippingRefund(ctx context.Context, sel ast.SelectionSet, v *ShippingRefund) graphql.Marshaler {
  167330. if v == nil {
  167331. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167332. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167333. }
  167334. return graphql.Null
  167335. }
  167336. return ec._ShippingRefund(ctx, sel, v)
  167337. }
  167338. func (ec *executionContext) marshalNShopAlert2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopAlertᚄ(ctx context.Context, sel ast.SelectionSet, v []*ShopAlert) graphql.Marshaler {
  167339. ret := make(graphql.Array, len(v))
  167340. var wg sync.WaitGroup
  167341. isLen1 := len(v) == 1
  167342. if !isLen1 {
  167343. wg.Add(len(v))
  167344. }
  167345. for i := range v {
  167346. i := i
  167347. fc := &graphql.FieldContext{
  167348. Index: &i,
  167349. Result: &v[i],
  167350. }
  167351. ctx := graphql.WithFieldContext(ctx, fc)
  167352. f := func(i int) {
  167353. defer func() {
  167354. if r := recover(); r != nil {
  167355. ec.Error(ctx, ec.Recover(ctx, r))
  167356. ret = nil
  167357. }
  167358. }()
  167359. if !isLen1 {
  167360. defer wg.Done()
  167361. }
  167362. ret[i] = ec.marshalNShopAlert2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopAlert(ctx, sel, v[i])
  167363. }
  167364. if isLen1 {
  167365. f(i)
  167366. } else {
  167367. go f(i)
  167368. }
  167369. }
  167370. wg.Wait()
  167371. for _, e := range ret {
  167372. if e == graphql.Null {
  167373. return graphql.Null
  167374. }
  167375. }
  167376. return ret
  167377. }
  167378. func (ec *executionContext) marshalNShopAlert2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopAlert(ctx context.Context, sel ast.SelectionSet, v *ShopAlert) graphql.Marshaler {
  167379. if v == nil {
  167380. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167381. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167382. }
  167383. return graphql.Null
  167384. }
  167385. return ec._ShopAlert(ctx, sel, v)
  167386. }
  167387. func (ec *executionContext) marshalNShopAlertAction2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopAlertAction(ctx context.Context, sel ast.SelectionSet, v *ShopAlertAction) graphql.Marshaler {
  167388. if v == nil {
  167389. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167390. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167391. }
  167392. return graphql.Null
  167393. }
  167394. return ec._ShopAlertAction(ctx, sel, v)
  167395. }
  167396. func (ec *executionContext) unmarshalNShopBranding2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopBranding(ctx context.Context, v interface{}) (ShopBranding, error) {
  167397. var res ShopBranding
  167398. err := res.UnmarshalGQL(v)
  167399. return res, graphql.ErrorOnPath(ctx, err)
  167400. }
  167401. func (ec *executionContext) marshalNShopBranding2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopBranding(ctx context.Context, sel ast.SelectionSet, v ShopBranding) graphql.Marshaler {
  167402. return v
  167403. }
  167404. func (ec *executionContext) unmarshalNShopCustomerAccountsSetting2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopCustomerAccountsSetting(ctx context.Context, v interface{}) (ShopCustomerAccountsSetting, error) {
  167405. var res ShopCustomerAccountsSetting
  167406. err := res.UnmarshalGQL(v)
  167407. return res, graphql.ErrorOnPath(ctx, err)
  167408. }
  167409. func (ec *executionContext) marshalNShopCustomerAccountsSetting2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopCustomerAccountsSetting(ctx context.Context, sel ast.SelectionSet, v ShopCustomerAccountsSetting) graphql.Marshaler {
  167410. return v
  167411. }
  167412. func (ec *executionContext) marshalNShopFeatures2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopFeatures(ctx context.Context, sel ast.SelectionSet, v *ShopFeatures) graphql.Marshaler {
  167413. if v == nil {
  167414. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167415. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167416. }
  167417. return graphql.Null
  167418. }
  167419. return ec._ShopFeatures(ctx, sel, v)
  167420. }
  167421. func (ec *executionContext) marshalNShopPlan2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopPlan(ctx context.Context, sel ast.SelectionSet, v *ShopPlan) graphql.Marshaler {
  167422. if v == nil {
  167423. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167424. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167425. }
  167426. return graphql.Null
  167427. }
  167428. return ec._ShopPlan(ctx, sel, v)
  167429. }
  167430. func (ec *executionContext) marshalNShopPolicy2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopPolicyᚄ(ctx context.Context, sel ast.SelectionSet, v []*ShopPolicy) graphql.Marshaler {
  167431. ret := make(graphql.Array, len(v))
  167432. var wg sync.WaitGroup
  167433. isLen1 := len(v) == 1
  167434. if !isLen1 {
  167435. wg.Add(len(v))
  167436. }
  167437. for i := range v {
  167438. i := i
  167439. fc := &graphql.FieldContext{
  167440. Index: &i,
  167441. Result: &v[i],
  167442. }
  167443. ctx := graphql.WithFieldContext(ctx, fc)
  167444. f := func(i int) {
  167445. defer func() {
  167446. if r := recover(); r != nil {
  167447. ec.Error(ctx, ec.Recover(ctx, r))
  167448. ret = nil
  167449. }
  167450. }()
  167451. if !isLen1 {
  167452. defer wg.Done()
  167453. }
  167454. ret[i] = ec.marshalNShopPolicy2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopPolicy(ctx, sel, v[i])
  167455. }
  167456. if isLen1 {
  167457. f(i)
  167458. } else {
  167459. go f(i)
  167460. }
  167461. }
  167462. wg.Wait()
  167463. for _, e := range ret {
  167464. if e == graphql.Null {
  167465. return graphql.Null
  167466. }
  167467. }
  167468. return ret
  167469. }
  167470. func (ec *executionContext) marshalNShopPolicy2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopPolicy(ctx context.Context, sel ast.SelectionSet, v *ShopPolicy) graphql.Marshaler {
  167471. if v == nil {
  167472. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167473. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167474. }
  167475. return graphql.Null
  167476. }
  167477. return ec._ShopPolicy(ctx, sel, v)
  167478. }
  167479. func (ec *executionContext) unmarshalNShopPolicyType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopPolicyType(ctx context.Context, v interface{}) (ShopPolicyType, error) {
  167480. var res ShopPolicyType
  167481. err := res.UnmarshalGQL(v)
  167482. return res, graphql.ErrorOnPath(ctx, err)
  167483. }
  167484. func (ec *executionContext) marshalNShopPolicyType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopPolicyType(ctx context.Context, sel ast.SelectionSet, v ShopPolicyType) graphql.Marshaler {
  167485. return v
  167486. }
  167487. func (ec *executionContext) marshalNShopResourceLimits2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopResourceLimits(ctx context.Context, sel ast.SelectionSet, v *ShopResourceLimits) graphql.Marshaler {
  167488. if v == nil {
  167489. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167490. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167491. }
  167492. return graphql.Null
  167493. }
  167494. return ec._ShopResourceLimits(ctx, sel, v)
  167495. }
  167496. func (ec *executionContext) marshalNStaffMember2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStaffMemberᚄ(ctx context.Context, sel ast.SelectionSet, v []*StaffMember) graphql.Marshaler {
  167497. ret := make(graphql.Array, len(v))
  167498. var wg sync.WaitGroup
  167499. isLen1 := len(v) == 1
  167500. if !isLen1 {
  167501. wg.Add(len(v))
  167502. }
  167503. for i := range v {
  167504. i := i
  167505. fc := &graphql.FieldContext{
  167506. Index: &i,
  167507. Result: &v[i],
  167508. }
  167509. ctx := graphql.WithFieldContext(ctx, fc)
  167510. f := func(i int) {
  167511. defer func() {
  167512. if r := recover(); r != nil {
  167513. ec.Error(ctx, ec.Recover(ctx, r))
  167514. ret = nil
  167515. }
  167516. }()
  167517. if !isLen1 {
  167518. defer wg.Done()
  167519. }
  167520. ret[i] = ec.marshalNStaffMember2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStaffMember(ctx, sel, v[i])
  167521. }
  167522. if isLen1 {
  167523. f(i)
  167524. } else {
  167525. go f(i)
  167526. }
  167527. }
  167528. wg.Wait()
  167529. for _, e := range ret {
  167530. if e == graphql.Null {
  167531. return graphql.Null
  167532. }
  167533. }
  167534. return ret
  167535. }
  167536. func (ec *executionContext) marshalNStaffMember2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStaffMember(ctx context.Context, sel ast.SelectionSet, v *StaffMember) graphql.Marshaler {
  167537. if v == nil {
  167538. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167539. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167540. }
  167541. return graphql.Null
  167542. }
  167543. return ec._StaffMember(ctx, sel, v)
  167544. }
  167545. func (ec *executionContext) marshalNStaffMemberConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStaffMemberConnection(ctx context.Context, sel ast.SelectionSet, v *StaffMemberConnection) graphql.Marshaler {
  167546. if v == nil {
  167547. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167548. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167549. }
  167550. return graphql.Null
  167551. }
  167552. return ec._StaffMemberConnection(ctx, sel, v)
  167553. }
  167554. func (ec *executionContext) marshalNStaffMemberEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStaffMemberEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*StaffMemberEdge) graphql.Marshaler {
  167555. ret := make(graphql.Array, len(v))
  167556. var wg sync.WaitGroup
  167557. isLen1 := len(v) == 1
  167558. if !isLen1 {
  167559. wg.Add(len(v))
  167560. }
  167561. for i := range v {
  167562. i := i
  167563. fc := &graphql.FieldContext{
  167564. Index: &i,
  167565. Result: &v[i],
  167566. }
  167567. ctx := graphql.WithFieldContext(ctx, fc)
  167568. f := func(i int) {
  167569. defer func() {
  167570. if r := recover(); r != nil {
  167571. ec.Error(ctx, ec.Recover(ctx, r))
  167572. ret = nil
  167573. }
  167574. }()
  167575. if !isLen1 {
  167576. defer wg.Done()
  167577. }
  167578. ret[i] = ec.marshalNStaffMemberEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStaffMemberEdge(ctx, sel, v[i])
  167579. }
  167580. if isLen1 {
  167581. f(i)
  167582. } else {
  167583. go f(i)
  167584. }
  167585. }
  167586. wg.Wait()
  167587. for _, e := range ret {
  167588. if e == graphql.Null {
  167589. return graphql.Null
  167590. }
  167591. }
  167592. return ret
  167593. }
  167594. func (ec *executionContext) marshalNStaffMemberEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStaffMemberEdge(ctx context.Context, sel ast.SelectionSet, v *StaffMemberEdge) graphql.Marshaler {
  167595. if v == nil {
  167596. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167597. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167598. }
  167599. return graphql.Null
  167600. }
  167601. return ec._StaffMemberEdge(ctx, sel, v)
  167602. }
  167603. func (ec *executionContext) marshalNStaffMemberPrivateData2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStaffMemberPrivateData(ctx context.Context, sel ast.SelectionSet, v *StaffMemberPrivateData) graphql.Marshaler {
  167604. if v == nil {
  167605. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167606. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167607. }
  167608. return graphql.Null
  167609. }
  167610. return ec._StaffMemberPrivateData(ctx, sel, v)
  167611. }
  167612. func (ec *executionContext) marshalNStorefrontAccessToken2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStorefrontAccessTokenᚄ(ctx context.Context, sel ast.SelectionSet, v []*StorefrontAccessToken) graphql.Marshaler {
  167613. ret := make(graphql.Array, len(v))
  167614. var wg sync.WaitGroup
  167615. isLen1 := len(v) == 1
  167616. if !isLen1 {
  167617. wg.Add(len(v))
  167618. }
  167619. for i := range v {
  167620. i := i
  167621. fc := &graphql.FieldContext{
  167622. Index: &i,
  167623. Result: &v[i],
  167624. }
  167625. ctx := graphql.WithFieldContext(ctx, fc)
  167626. f := func(i int) {
  167627. defer func() {
  167628. if r := recover(); r != nil {
  167629. ec.Error(ctx, ec.Recover(ctx, r))
  167630. ret = nil
  167631. }
  167632. }()
  167633. if !isLen1 {
  167634. defer wg.Done()
  167635. }
  167636. ret[i] = ec.marshalNStorefrontAccessToken2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStorefrontAccessToken(ctx, sel, v[i])
  167637. }
  167638. if isLen1 {
  167639. f(i)
  167640. } else {
  167641. go f(i)
  167642. }
  167643. }
  167644. wg.Wait()
  167645. for _, e := range ret {
  167646. if e == graphql.Null {
  167647. return graphql.Null
  167648. }
  167649. }
  167650. return ret
  167651. }
  167652. func (ec *executionContext) marshalNStorefrontAccessToken2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStorefrontAccessToken(ctx context.Context, sel ast.SelectionSet, v *StorefrontAccessToken) graphql.Marshaler {
  167653. if v == nil {
  167654. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167655. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167656. }
  167657. return graphql.Null
  167658. }
  167659. return ec._StorefrontAccessToken(ctx, sel, v)
  167660. }
  167661. func (ec *executionContext) marshalNStorefrontAccessTokenConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStorefrontAccessTokenConnection(ctx context.Context, sel ast.SelectionSet, v *StorefrontAccessTokenConnection) graphql.Marshaler {
  167662. if v == nil {
  167663. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167664. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167665. }
  167666. return graphql.Null
  167667. }
  167668. return ec._StorefrontAccessTokenConnection(ctx, sel, v)
  167669. }
  167670. func (ec *executionContext) marshalNStorefrontAccessTokenEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStorefrontAccessTokenEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*StorefrontAccessTokenEdge) graphql.Marshaler {
  167671. ret := make(graphql.Array, len(v))
  167672. var wg sync.WaitGroup
  167673. isLen1 := len(v) == 1
  167674. if !isLen1 {
  167675. wg.Add(len(v))
  167676. }
  167677. for i := range v {
  167678. i := i
  167679. fc := &graphql.FieldContext{
  167680. Index: &i,
  167681. Result: &v[i],
  167682. }
  167683. ctx := graphql.WithFieldContext(ctx, fc)
  167684. f := func(i int) {
  167685. defer func() {
  167686. if r := recover(); r != nil {
  167687. ec.Error(ctx, ec.Recover(ctx, r))
  167688. ret = nil
  167689. }
  167690. }()
  167691. if !isLen1 {
  167692. defer wg.Done()
  167693. }
  167694. ret[i] = ec.marshalNStorefrontAccessTokenEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStorefrontAccessTokenEdge(ctx, sel, v[i])
  167695. }
  167696. if isLen1 {
  167697. f(i)
  167698. } else {
  167699. go f(i)
  167700. }
  167701. }
  167702. wg.Wait()
  167703. for _, e := range ret {
  167704. if e == graphql.Null {
  167705. return graphql.Null
  167706. }
  167707. }
  167708. return ret
  167709. }
  167710. func (ec *executionContext) marshalNStorefrontAccessTokenEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStorefrontAccessTokenEdge(ctx context.Context, sel ast.SelectionSet, v *StorefrontAccessTokenEdge) graphql.Marshaler {
  167711. if v == nil {
  167712. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167713. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167714. }
  167715. return graphql.Null
  167716. }
  167717. return ec._StorefrontAccessTokenEdge(ctx, sel, v)
  167718. }
  167719. func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) {
  167720. res, err := graphql.UnmarshalString(v)
  167721. return res, graphql.ErrorOnPath(ctx, err)
  167722. }
  167723. func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  167724. res := graphql.MarshalString(v)
  167725. if res == graphql.Null {
  167726. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167727. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167728. }
  167729. }
  167730. return res
  167731. }
  167732. func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
  167733. var vSlice []interface{}
  167734. if v != nil {
  167735. vSlice = graphql.CoerceList(v)
  167736. }
  167737. var err error
  167738. res := make([]string, len(vSlice))
  167739. for i := range vSlice {
  167740. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  167741. res[i], err = ec.unmarshalNString2string(ctx, vSlice[i])
  167742. if err != nil {
  167743. return nil, err
  167744. }
  167745. }
  167746. return res, nil
  167747. }
  167748. func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
  167749. ret := make(graphql.Array, len(v))
  167750. for i := range v {
  167751. ret[i] = ec.marshalNString2string(ctx, sel, v[i])
  167752. }
  167753. for _, e := range ret {
  167754. if e == graphql.Null {
  167755. return graphql.Null
  167756. }
  167757. }
  167758. return ret
  167759. }
  167760. func (ec *executionContext) marshalNStringConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStringConnection(ctx context.Context, sel ast.SelectionSet, v *StringConnection) graphql.Marshaler {
  167761. if v == nil {
  167762. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167763. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167764. }
  167765. return graphql.Null
  167766. }
  167767. return ec._StringConnection(ctx, sel, v)
  167768. }
  167769. func (ec *executionContext) marshalNStringEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStringEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*StringEdge) graphql.Marshaler {
  167770. ret := make(graphql.Array, len(v))
  167771. var wg sync.WaitGroup
  167772. isLen1 := len(v) == 1
  167773. if !isLen1 {
  167774. wg.Add(len(v))
  167775. }
  167776. for i := range v {
  167777. i := i
  167778. fc := &graphql.FieldContext{
  167779. Index: &i,
  167780. Result: &v[i],
  167781. }
  167782. ctx := graphql.WithFieldContext(ctx, fc)
  167783. f := func(i int) {
  167784. defer func() {
  167785. if r := recover(); r != nil {
  167786. ec.Error(ctx, ec.Recover(ctx, r))
  167787. ret = nil
  167788. }
  167789. }()
  167790. if !isLen1 {
  167791. defer wg.Done()
  167792. }
  167793. ret[i] = ec.marshalNStringEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStringEdge(ctx, sel, v[i])
  167794. }
  167795. if isLen1 {
  167796. f(i)
  167797. } else {
  167798. go f(i)
  167799. }
  167800. }
  167801. wg.Wait()
  167802. for _, e := range ret {
  167803. if e == graphql.Null {
  167804. return graphql.Null
  167805. }
  167806. }
  167807. return ret
  167808. }
  167809. func (ec *executionContext) marshalNStringEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStringEdge(ctx context.Context, sel ast.SelectionSet, v *StringEdge) graphql.Marshaler {
  167810. if v == nil {
  167811. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167812. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167813. }
  167814. return graphql.Null
  167815. }
  167816. return ec._StringEdge(ctx, sel, v)
  167817. }
  167818. func (ec *executionContext) marshalNSubscriptionBillingAttempt2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionBillingAttemptᚄ(ctx context.Context, sel ast.SelectionSet, v []*SubscriptionBillingAttempt) graphql.Marshaler {
  167819. ret := make(graphql.Array, len(v))
  167820. var wg sync.WaitGroup
  167821. isLen1 := len(v) == 1
  167822. if !isLen1 {
  167823. wg.Add(len(v))
  167824. }
  167825. for i := range v {
  167826. i := i
  167827. fc := &graphql.FieldContext{
  167828. Index: &i,
  167829. Result: &v[i],
  167830. }
  167831. ctx := graphql.WithFieldContext(ctx, fc)
  167832. f := func(i int) {
  167833. defer func() {
  167834. if r := recover(); r != nil {
  167835. ec.Error(ctx, ec.Recover(ctx, r))
  167836. ret = nil
  167837. }
  167838. }()
  167839. if !isLen1 {
  167840. defer wg.Done()
  167841. }
  167842. ret[i] = ec.marshalNSubscriptionBillingAttempt2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionBillingAttempt(ctx, sel, v[i])
  167843. }
  167844. if isLen1 {
  167845. f(i)
  167846. } else {
  167847. go f(i)
  167848. }
  167849. }
  167850. wg.Wait()
  167851. for _, e := range ret {
  167852. if e == graphql.Null {
  167853. return graphql.Null
  167854. }
  167855. }
  167856. return ret
  167857. }
  167858. func (ec *executionContext) marshalNSubscriptionBillingAttempt2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionBillingAttempt(ctx context.Context, sel ast.SelectionSet, v *SubscriptionBillingAttempt) graphql.Marshaler {
  167859. if v == nil {
  167860. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167861. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167862. }
  167863. return graphql.Null
  167864. }
  167865. return ec._SubscriptionBillingAttempt(ctx, sel, v)
  167866. }
  167867. func (ec *executionContext) marshalNSubscriptionBillingAttemptConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionBillingAttemptConnection(ctx context.Context, sel ast.SelectionSet, v *SubscriptionBillingAttemptConnection) graphql.Marshaler {
  167868. if v == nil {
  167869. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167870. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167871. }
  167872. return graphql.Null
  167873. }
  167874. return ec._SubscriptionBillingAttemptConnection(ctx, sel, v)
  167875. }
  167876. func (ec *executionContext) marshalNSubscriptionBillingAttemptEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionBillingAttemptEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*SubscriptionBillingAttemptEdge) graphql.Marshaler {
  167877. ret := make(graphql.Array, len(v))
  167878. var wg sync.WaitGroup
  167879. isLen1 := len(v) == 1
  167880. if !isLen1 {
  167881. wg.Add(len(v))
  167882. }
  167883. for i := range v {
  167884. i := i
  167885. fc := &graphql.FieldContext{
  167886. Index: &i,
  167887. Result: &v[i],
  167888. }
  167889. ctx := graphql.WithFieldContext(ctx, fc)
  167890. f := func(i int) {
  167891. defer func() {
  167892. if r := recover(); r != nil {
  167893. ec.Error(ctx, ec.Recover(ctx, r))
  167894. ret = nil
  167895. }
  167896. }()
  167897. if !isLen1 {
  167898. defer wg.Done()
  167899. }
  167900. ret[i] = ec.marshalNSubscriptionBillingAttemptEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionBillingAttemptEdge(ctx, sel, v[i])
  167901. }
  167902. if isLen1 {
  167903. f(i)
  167904. } else {
  167905. go f(i)
  167906. }
  167907. }
  167908. wg.Wait()
  167909. for _, e := range ret {
  167910. if e == graphql.Null {
  167911. return graphql.Null
  167912. }
  167913. }
  167914. return ret
  167915. }
  167916. func (ec *executionContext) marshalNSubscriptionBillingAttemptEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionBillingAttemptEdge(ctx context.Context, sel ast.SelectionSet, v *SubscriptionBillingAttemptEdge) graphql.Marshaler {
  167917. if v == nil {
  167918. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167919. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167920. }
  167921. return graphql.Null
  167922. }
  167923. return ec._SubscriptionBillingAttemptEdge(ctx, sel, v)
  167924. }
  167925. func (ec *executionContext) marshalNSubscriptionBillingPolicy2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionBillingPolicy(ctx context.Context, sel ast.SelectionSet, v *SubscriptionBillingPolicy) graphql.Marshaler {
  167926. if v == nil {
  167927. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167928. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167929. }
  167930. return graphql.Null
  167931. }
  167932. return ec._SubscriptionBillingPolicy(ctx, sel, v)
  167933. }
  167934. func (ec *executionContext) marshalNSubscriptionContract2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionContractᚄ(ctx context.Context, sel ast.SelectionSet, v []*SubscriptionContract) graphql.Marshaler {
  167935. ret := make(graphql.Array, len(v))
  167936. var wg sync.WaitGroup
  167937. isLen1 := len(v) == 1
  167938. if !isLen1 {
  167939. wg.Add(len(v))
  167940. }
  167941. for i := range v {
  167942. i := i
  167943. fc := &graphql.FieldContext{
  167944. Index: &i,
  167945. Result: &v[i],
  167946. }
  167947. ctx := graphql.WithFieldContext(ctx, fc)
  167948. f := func(i int) {
  167949. defer func() {
  167950. if r := recover(); r != nil {
  167951. ec.Error(ctx, ec.Recover(ctx, r))
  167952. ret = nil
  167953. }
  167954. }()
  167955. if !isLen1 {
  167956. defer wg.Done()
  167957. }
  167958. ret[i] = ec.marshalNSubscriptionContract2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionContract(ctx, sel, v[i])
  167959. }
  167960. if isLen1 {
  167961. f(i)
  167962. } else {
  167963. go f(i)
  167964. }
  167965. }
  167966. wg.Wait()
  167967. for _, e := range ret {
  167968. if e == graphql.Null {
  167969. return graphql.Null
  167970. }
  167971. }
  167972. return ret
  167973. }
  167974. func (ec *executionContext) marshalNSubscriptionContract2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionContract(ctx context.Context, sel ast.SelectionSet, v *SubscriptionContract) graphql.Marshaler {
  167975. if v == nil {
  167976. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167977. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167978. }
  167979. return graphql.Null
  167980. }
  167981. return ec._SubscriptionContract(ctx, sel, v)
  167982. }
  167983. func (ec *executionContext) marshalNSubscriptionContractConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionContractConnection(ctx context.Context, sel ast.SelectionSet, v *SubscriptionContractConnection) graphql.Marshaler {
  167984. if v == nil {
  167985. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  167986. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  167987. }
  167988. return graphql.Null
  167989. }
  167990. return ec._SubscriptionContractConnection(ctx, sel, v)
  167991. }
  167992. func (ec *executionContext) marshalNSubscriptionContractEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionContractEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*SubscriptionContractEdge) graphql.Marshaler {
  167993. ret := make(graphql.Array, len(v))
  167994. var wg sync.WaitGroup
  167995. isLen1 := len(v) == 1
  167996. if !isLen1 {
  167997. wg.Add(len(v))
  167998. }
  167999. for i := range v {
  168000. i := i
  168001. fc := &graphql.FieldContext{
  168002. Index: &i,
  168003. Result: &v[i],
  168004. }
  168005. ctx := graphql.WithFieldContext(ctx, fc)
  168006. f := func(i int) {
  168007. defer func() {
  168008. if r := recover(); r != nil {
  168009. ec.Error(ctx, ec.Recover(ctx, r))
  168010. ret = nil
  168011. }
  168012. }()
  168013. if !isLen1 {
  168014. defer wg.Done()
  168015. }
  168016. ret[i] = ec.marshalNSubscriptionContractEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionContractEdge(ctx, sel, v[i])
  168017. }
  168018. if isLen1 {
  168019. f(i)
  168020. } else {
  168021. go f(i)
  168022. }
  168023. }
  168024. wg.Wait()
  168025. for _, e := range ret {
  168026. if e == graphql.Null {
  168027. return graphql.Null
  168028. }
  168029. }
  168030. return ret
  168031. }
  168032. func (ec *executionContext) marshalNSubscriptionContractEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionContractEdge(ctx context.Context, sel ast.SelectionSet, v *SubscriptionContractEdge) graphql.Marshaler {
  168033. if v == nil {
  168034. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168035. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168036. }
  168037. return graphql.Null
  168038. }
  168039. return ec._SubscriptionContractEdge(ctx, sel, v)
  168040. }
  168041. func (ec *executionContext) unmarshalNSubscriptionContractSubscriptionStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionContractSubscriptionStatus(ctx context.Context, v interface{}) (SubscriptionContractSubscriptionStatus, error) {
  168042. var res SubscriptionContractSubscriptionStatus
  168043. err := res.UnmarshalGQL(v)
  168044. return res, graphql.ErrorOnPath(ctx, err)
  168045. }
  168046. func (ec *executionContext) marshalNSubscriptionContractSubscriptionStatus2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionContractSubscriptionStatus(ctx context.Context, sel ast.SelectionSet, v SubscriptionContractSubscriptionStatus) graphql.Marshaler {
  168047. return v
  168048. }
  168049. func (ec *executionContext) marshalNSubscriptionCyclePriceAdjustment2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionCyclePriceAdjustmentᚄ(ctx context.Context, sel ast.SelectionSet, v []*SubscriptionCyclePriceAdjustment) graphql.Marshaler {
  168050. ret := make(graphql.Array, len(v))
  168051. var wg sync.WaitGroup
  168052. isLen1 := len(v) == 1
  168053. if !isLen1 {
  168054. wg.Add(len(v))
  168055. }
  168056. for i := range v {
  168057. i := i
  168058. fc := &graphql.FieldContext{
  168059. Index: &i,
  168060. Result: &v[i],
  168061. }
  168062. ctx := graphql.WithFieldContext(ctx, fc)
  168063. f := func(i int) {
  168064. defer func() {
  168065. if r := recover(); r != nil {
  168066. ec.Error(ctx, ec.Recover(ctx, r))
  168067. ret = nil
  168068. }
  168069. }()
  168070. if !isLen1 {
  168071. defer wg.Done()
  168072. }
  168073. ret[i] = ec.marshalNSubscriptionCyclePriceAdjustment2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionCyclePriceAdjustment(ctx, sel, v[i])
  168074. }
  168075. if isLen1 {
  168076. f(i)
  168077. } else {
  168078. go f(i)
  168079. }
  168080. }
  168081. wg.Wait()
  168082. for _, e := range ret {
  168083. if e == graphql.Null {
  168084. return graphql.Null
  168085. }
  168086. }
  168087. return ret
  168088. }
  168089. func (ec *executionContext) marshalNSubscriptionCyclePriceAdjustment2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionCyclePriceAdjustment(ctx context.Context, sel ast.SelectionSet, v *SubscriptionCyclePriceAdjustment) graphql.Marshaler {
  168090. if v == nil {
  168091. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168092. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168093. }
  168094. return graphql.Null
  168095. }
  168096. return ec._SubscriptionCyclePriceAdjustment(ctx, sel, v)
  168097. }
  168098. func (ec *executionContext) marshalNSubscriptionDeliveryMethodLocalDeliveryOption2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionDeliveryMethodLocalDeliveryOption(ctx context.Context, sel ast.SelectionSet, v *SubscriptionDeliveryMethodLocalDeliveryOption) graphql.Marshaler {
  168099. if v == nil {
  168100. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168101. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168102. }
  168103. return graphql.Null
  168104. }
  168105. return ec._SubscriptionDeliveryMethodLocalDeliveryOption(ctx, sel, v)
  168106. }
  168107. func (ec *executionContext) marshalNSubscriptionDeliveryMethodPickupOption2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionDeliveryMethodPickupOption(ctx context.Context, sel ast.SelectionSet, v *SubscriptionDeliveryMethodPickupOption) graphql.Marshaler {
  168108. if v == nil {
  168109. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168110. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168111. }
  168112. return graphql.Null
  168113. }
  168114. return ec._SubscriptionDeliveryMethodPickupOption(ctx, sel, v)
  168115. }
  168116. func (ec *executionContext) marshalNSubscriptionDeliveryMethodShippingOption2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionDeliveryMethodShippingOption(ctx context.Context, sel ast.SelectionSet, v *SubscriptionDeliveryMethodShippingOption) graphql.Marshaler {
  168117. if v == nil {
  168118. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168119. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168120. }
  168121. return graphql.Null
  168122. }
  168123. return ec._SubscriptionDeliveryMethodShippingOption(ctx, sel, v)
  168124. }
  168125. func (ec *executionContext) marshalNSubscriptionDeliveryPolicy2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionDeliveryPolicy(ctx context.Context, sel ast.SelectionSet, v *SubscriptionDeliveryPolicy) graphql.Marshaler {
  168126. if v == nil {
  168127. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168128. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168129. }
  168130. return graphql.Null
  168131. }
  168132. return ec._SubscriptionDeliveryPolicy(ctx, sel, v)
  168133. }
  168134. func (ec *executionContext) marshalNSubscriptionDiscount2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionDiscount(ctx context.Context, sel ast.SelectionSet, v SubscriptionDiscount) graphql.Marshaler {
  168135. if v == nil {
  168136. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168137. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168138. }
  168139. return graphql.Null
  168140. }
  168141. return ec._SubscriptionDiscount(ctx, sel, v)
  168142. }
  168143. func (ec *executionContext) marshalNSubscriptionDiscountAllocation2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionDiscountAllocationᚄ(ctx context.Context, sel ast.SelectionSet, v []*SubscriptionDiscountAllocation) graphql.Marshaler {
  168144. ret := make(graphql.Array, len(v))
  168145. var wg sync.WaitGroup
  168146. isLen1 := len(v) == 1
  168147. if !isLen1 {
  168148. wg.Add(len(v))
  168149. }
  168150. for i := range v {
  168151. i := i
  168152. fc := &graphql.FieldContext{
  168153. Index: &i,
  168154. Result: &v[i],
  168155. }
  168156. ctx := graphql.WithFieldContext(ctx, fc)
  168157. f := func(i int) {
  168158. defer func() {
  168159. if r := recover(); r != nil {
  168160. ec.Error(ctx, ec.Recover(ctx, r))
  168161. ret = nil
  168162. }
  168163. }()
  168164. if !isLen1 {
  168165. defer wg.Done()
  168166. }
  168167. ret[i] = ec.marshalNSubscriptionDiscountAllocation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionDiscountAllocation(ctx, sel, v[i])
  168168. }
  168169. if isLen1 {
  168170. f(i)
  168171. } else {
  168172. go f(i)
  168173. }
  168174. }
  168175. wg.Wait()
  168176. for _, e := range ret {
  168177. if e == graphql.Null {
  168178. return graphql.Null
  168179. }
  168180. }
  168181. return ret
  168182. }
  168183. func (ec *executionContext) marshalNSubscriptionDiscountAllocation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionDiscountAllocation(ctx context.Context, sel ast.SelectionSet, v *SubscriptionDiscountAllocation) graphql.Marshaler {
  168184. if v == nil {
  168185. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168186. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168187. }
  168188. return graphql.Null
  168189. }
  168190. return ec._SubscriptionDiscountAllocation(ctx, sel, v)
  168191. }
  168192. func (ec *executionContext) marshalNSubscriptionDiscountEntitledLines2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionDiscountEntitledLines(ctx context.Context, sel ast.SelectionSet, v *SubscriptionDiscountEntitledLines) graphql.Marshaler {
  168193. if v == nil {
  168194. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168195. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168196. }
  168197. return graphql.Null
  168198. }
  168199. return ec._SubscriptionDiscountEntitledLines(ctx, sel, v)
  168200. }
  168201. func (ec *executionContext) marshalNSubscriptionDiscountValue2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionDiscountValue(ctx context.Context, sel ast.SelectionSet, v SubscriptionDiscountValue) graphql.Marshaler {
  168202. if v == nil {
  168203. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168204. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168205. }
  168206. return graphql.Null
  168207. }
  168208. return ec._SubscriptionDiscountValue(ctx, sel, v)
  168209. }
  168210. func (ec *executionContext) marshalNSubscriptionLine2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionLineᚄ(ctx context.Context, sel ast.SelectionSet, v []*SubscriptionLine) graphql.Marshaler {
  168211. ret := make(graphql.Array, len(v))
  168212. var wg sync.WaitGroup
  168213. isLen1 := len(v) == 1
  168214. if !isLen1 {
  168215. wg.Add(len(v))
  168216. }
  168217. for i := range v {
  168218. i := i
  168219. fc := &graphql.FieldContext{
  168220. Index: &i,
  168221. Result: &v[i],
  168222. }
  168223. ctx := graphql.WithFieldContext(ctx, fc)
  168224. f := func(i int) {
  168225. defer func() {
  168226. if r := recover(); r != nil {
  168227. ec.Error(ctx, ec.Recover(ctx, r))
  168228. ret = nil
  168229. }
  168230. }()
  168231. if !isLen1 {
  168232. defer wg.Done()
  168233. }
  168234. ret[i] = ec.marshalNSubscriptionLine2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionLine(ctx, sel, v[i])
  168235. }
  168236. if isLen1 {
  168237. f(i)
  168238. } else {
  168239. go f(i)
  168240. }
  168241. }
  168242. wg.Wait()
  168243. for _, e := range ret {
  168244. if e == graphql.Null {
  168245. return graphql.Null
  168246. }
  168247. }
  168248. return ret
  168249. }
  168250. func (ec *executionContext) marshalNSubscriptionLine2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionLine(ctx context.Context, sel ast.SelectionSet, v *SubscriptionLine) graphql.Marshaler {
  168251. if v == nil {
  168252. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168253. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168254. }
  168255. return graphql.Null
  168256. }
  168257. return ec._SubscriptionLine(ctx, sel, v)
  168258. }
  168259. func (ec *executionContext) marshalNSubscriptionLineConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionLineConnection(ctx context.Context, sel ast.SelectionSet, v *SubscriptionLineConnection) graphql.Marshaler {
  168260. if v == nil {
  168261. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168262. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168263. }
  168264. return graphql.Null
  168265. }
  168266. return ec._SubscriptionLineConnection(ctx, sel, v)
  168267. }
  168268. func (ec *executionContext) marshalNSubscriptionLineEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionLineEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*SubscriptionLineEdge) graphql.Marshaler {
  168269. ret := make(graphql.Array, len(v))
  168270. var wg sync.WaitGroup
  168271. isLen1 := len(v) == 1
  168272. if !isLen1 {
  168273. wg.Add(len(v))
  168274. }
  168275. for i := range v {
  168276. i := i
  168277. fc := &graphql.FieldContext{
  168278. Index: &i,
  168279. Result: &v[i],
  168280. }
  168281. ctx := graphql.WithFieldContext(ctx, fc)
  168282. f := func(i int) {
  168283. defer func() {
  168284. if r := recover(); r != nil {
  168285. ec.Error(ctx, ec.Recover(ctx, r))
  168286. ret = nil
  168287. }
  168288. }()
  168289. if !isLen1 {
  168290. defer wg.Done()
  168291. }
  168292. ret[i] = ec.marshalNSubscriptionLineEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionLineEdge(ctx, sel, v[i])
  168293. }
  168294. if isLen1 {
  168295. f(i)
  168296. } else {
  168297. go f(i)
  168298. }
  168299. }
  168300. wg.Wait()
  168301. for _, e := range ret {
  168302. if e == graphql.Null {
  168303. return graphql.Null
  168304. }
  168305. }
  168306. return ret
  168307. }
  168308. func (ec *executionContext) marshalNSubscriptionLineEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionLineEdge(ctx context.Context, sel ast.SelectionSet, v *SubscriptionLineEdge) graphql.Marshaler {
  168309. if v == nil {
  168310. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168311. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168312. }
  168313. return graphql.Null
  168314. }
  168315. return ec._SubscriptionLineEdge(ctx, sel, v)
  168316. }
  168317. func (ec *executionContext) marshalNSubscriptionMailingAddress2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionMailingAddress(ctx context.Context, sel ast.SelectionSet, v *SubscriptionMailingAddress) graphql.Marshaler {
  168318. if v == nil {
  168319. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168320. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168321. }
  168322. return graphql.Null
  168323. }
  168324. return ec._SubscriptionMailingAddress(ctx, sel, v)
  168325. }
  168326. func (ec *executionContext) marshalNSubscriptionManualDiscount2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionManualDiscountᚄ(ctx context.Context, sel ast.SelectionSet, v []*SubscriptionManualDiscount) graphql.Marshaler {
  168327. ret := make(graphql.Array, len(v))
  168328. var wg sync.WaitGroup
  168329. isLen1 := len(v) == 1
  168330. if !isLen1 {
  168331. wg.Add(len(v))
  168332. }
  168333. for i := range v {
  168334. i := i
  168335. fc := &graphql.FieldContext{
  168336. Index: &i,
  168337. Result: &v[i],
  168338. }
  168339. ctx := graphql.WithFieldContext(ctx, fc)
  168340. f := func(i int) {
  168341. defer func() {
  168342. if r := recover(); r != nil {
  168343. ec.Error(ctx, ec.Recover(ctx, r))
  168344. ret = nil
  168345. }
  168346. }()
  168347. if !isLen1 {
  168348. defer wg.Done()
  168349. }
  168350. ret[i] = ec.marshalNSubscriptionManualDiscount2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionManualDiscount(ctx, sel, v[i])
  168351. }
  168352. if isLen1 {
  168353. f(i)
  168354. } else {
  168355. go f(i)
  168356. }
  168357. }
  168358. wg.Wait()
  168359. for _, e := range ret {
  168360. if e == graphql.Null {
  168361. return graphql.Null
  168362. }
  168363. }
  168364. return ret
  168365. }
  168366. func (ec *executionContext) marshalNSubscriptionManualDiscount2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionManualDiscount(ctx context.Context, sel ast.SelectionSet, v *SubscriptionManualDiscount) graphql.Marshaler {
  168367. if v == nil {
  168368. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168369. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168370. }
  168371. return graphql.Null
  168372. }
  168373. return ec._SubscriptionManualDiscount(ctx, sel, v)
  168374. }
  168375. func (ec *executionContext) marshalNSubscriptionManualDiscountConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionManualDiscountConnection(ctx context.Context, sel ast.SelectionSet, v *SubscriptionManualDiscountConnection) graphql.Marshaler {
  168376. if v == nil {
  168377. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168378. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168379. }
  168380. return graphql.Null
  168381. }
  168382. return ec._SubscriptionManualDiscountConnection(ctx, sel, v)
  168383. }
  168384. func (ec *executionContext) marshalNSubscriptionManualDiscountEdge2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionManualDiscountEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*SubscriptionManualDiscountEdge) graphql.Marshaler {
  168385. ret := make(graphql.Array, len(v))
  168386. var wg sync.WaitGroup
  168387. isLen1 := len(v) == 1
  168388. if !isLen1 {
  168389. wg.Add(len(v))
  168390. }
  168391. for i := range v {
  168392. i := i
  168393. fc := &graphql.FieldContext{
  168394. Index: &i,
  168395. Result: &v[i],
  168396. }
  168397. ctx := graphql.WithFieldContext(ctx, fc)
  168398. f := func(i int) {
  168399. defer func() {
  168400. if r := recover(); r != nil {
  168401. ec.Error(ctx, ec.Recover(ctx, r))
  168402. ret = nil
  168403. }
  168404. }()
  168405. if !isLen1 {
  168406. defer wg.Done()
  168407. }
  168408. ret[i] = ec.marshalNSubscriptionManualDiscountEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionManualDiscountEdge(ctx, sel, v[i])
  168409. }
  168410. if isLen1 {
  168411. f(i)
  168412. } else {
  168413. go f(i)
  168414. }
  168415. }
  168416. wg.Wait()
  168417. for _, e := range ret {
  168418. if e == graphql.Null {
  168419. return graphql.Null
  168420. }
  168421. }
  168422. return ret
  168423. }
  168424. func (ec *executionContext) marshalNSubscriptionManualDiscountEdge2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionManualDiscountEdge(ctx context.Context, sel ast.SelectionSet, v *SubscriptionManualDiscountEdge) graphql.Marshaler {
  168425. if v == nil {
  168426. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168427. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168428. }
  168429. return graphql.Null
  168430. }
  168431. return ec._SubscriptionManualDiscountEdge(ctx, sel, v)
  168432. }
  168433. func (ec *executionContext) marshalNSuggestedOrderTransaction2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSuggestedOrderTransactionᚄ(ctx context.Context, sel ast.SelectionSet, v []*SuggestedOrderTransaction) graphql.Marshaler {
  168434. ret := make(graphql.Array, len(v))
  168435. var wg sync.WaitGroup
  168436. isLen1 := len(v) == 1
  168437. if !isLen1 {
  168438. wg.Add(len(v))
  168439. }
  168440. for i := range v {
  168441. i := i
  168442. fc := &graphql.FieldContext{
  168443. Index: &i,
  168444. Result: &v[i],
  168445. }
  168446. ctx := graphql.WithFieldContext(ctx, fc)
  168447. f := func(i int) {
  168448. defer func() {
  168449. if r := recover(); r != nil {
  168450. ec.Error(ctx, ec.Recover(ctx, r))
  168451. ret = nil
  168452. }
  168453. }()
  168454. if !isLen1 {
  168455. defer wg.Done()
  168456. }
  168457. ret[i] = ec.marshalNSuggestedOrderTransaction2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSuggestedOrderTransaction(ctx, sel, v[i])
  168458. }
  168459. if isLen1 {
  168460. f(i)
  168461. } else {
  168462. go f(i)
  168463. }
  168464. }
  168465. wg.Wait()
  168466. for _, e := range ret {
  168467. if e == graphql.Null {
  168468. return graphql.Null
  168469. }
  168470. }
  168471. return ret
  168472. }
  168473. func (ec *executionContext) marshalNSuggestedOrderTransaction2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSuggestedOrderTransaction(ctx context.Context, sel ast.SelectionSet, v *SuggestedOrderTransaction) graphql.Marshaler {
  168474. if v == nil {
  168475. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168476. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168477. }
  168478. return graphql.Null
  168479. }
  168480. return ec._SuggestedOrderTransaction(ctx, sel, v)
  168481. }
  168482. func (ec *executionContext) unmarshalNSuggestedOrderTransactionKind2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSuggestedOrderTransactionKind(ctx context.Context, v interface{}) (SuggestedOrderTransactionKind, error) {
  168483. var res SuggestedOrderTransactionKind
  168484. err := res.UnmarshalGQL(v)
  168485. return res, graphql.ErrorOnPath(ctx, err)
  168486. }
  168487. func (ec *executionContext) marshalNSuggestedOrderTransactionKind2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSuggestedOrderTransactionKind(ctx context.Context, sel ast.SelectionSet, v SuggestedOrderTransactionKind) graphql.Marshaler {
  168488. return v
  168489. }
  168490. func (ec *executionContext) unmarshalNTaxExemption2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐTaxExemption(ctx context.Context, v interface{}) (TaxExemption, error) {
  168491. var res TaxExemption
  168492. err := res.UnmarshalGQL(v)
  168493. return res, graphql.ErrorOnPath(ctx, err)
  168494. }
  168495. func (ec *executionContext) marshalNTaxExemption2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐTaxExemption(ctx context.Context, sel ast.SelectionSet, v TaxExemption) graphql.Marshaler {
  168496. return v
  168497. }
  168498. func (ec *executionContext) unmarshalNTaxExemption2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐTaxExemptionᚄ(ctx context.Context, v interface{}) ([]TaxExemption, error) {
  168499. var vSlice []interface{}
  168500. if v != nil {
  168501. vSlice = graphql.CoerceList(v)
  168502. }
  168503. var err error
  168504. res := make([]TaxExemption, len(vSlice))
  168505. for i := range vSlice {
  168506. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  168507. res[i], err = ec.unmarshalNTaxExemption2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐTaxExemption(ctx, vSlice[i])
  168508. if err != nil {
  168509. return nil, err
  168510. }
  168511. }
  168512. return res, nil
  168513. }
  168514. func (ec *executionContext) marshalNTaxExemption2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐTaxExemptionᚄ(ctx context.Context, sel ast.SelectionSet, v []TaxExemption) graphql.Marshaler {
  168515. ret := make(graphql.Array, len(v))
  168516. var wg sync.WaitGroup
  168517. isLen1 := len(v) == 1
  168518. if !isLen1 {
  168519. wg.Add(len(v))
  168520. }
  168521. for i := range v {
  168522. i := i
  168523. fc := &graphql.FieldContext{
  168524. Index: &i,
  168525. Result: &v[i],
  168526. }
  168527. ctx := graphql.WithFieldContext(ctx, fc)
  168528. f := func(i int) {
  168529. defer func() {
  168530. if r := recover(); r != nil {
  168531. ec.Error(ctx, ec.Recover(ctx, r))
  168532. ret = nil
  168533. }
  168534. }()
  168535. if !isLen1 {
  168536. defer wg.Done()
  168537. }
  168538. ret[i] = ec.marshalNTaxExemption2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐTaxExemption(ctx, sel, v[i])
  168539. }
  168540. if isLen1 {
  168541. f(i)
  168542. } else {
  168543. go f(i)
  168544. }
  168545. }
  168546. wg.Wait()
  168547. for _, e := range ret {
  168548. if e == graphql.Null {
  168549. return graphql.Null
  168550. }
  168551. }
  168552. return ret
  168553. }
  168554. func (ec *executionContext) marshalNTaxLine2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐTaxLineᚄ(ctx context.Context, sel ast.SelectionSet, v []*TaxLine) graphql.Marshaler {
  168555. ret := make(graphql.Array, len(v))
  168556. var wg sync.WaitGroup
  168557. isLen1 := len(v) == 1
  168558. if !isLen1 {
  168559. wg.Add(len(v))
  168560. }
  168561. for i := range v {
  168562. i := i
  168563. fc := &graphql.FieldContext{
  168564. Index: &i,
  168565. Result: &v[i],
  168566. }
  168567. ctx := graphql.WithFieldContext(ctx, fc)
  168568. f := func(i int) {
  168569. defer func() {
  168570. if r := recover(); r != nil {
  168571. ec.Error(ctx, ec.Recover(ctx, r))
  168572. ret = nil
  168573. }
  168574. }()
  168575. if !isLen1 {
  168576. defer wg.Done()
  168577. }
  168578. ret[i] = ec.marshalNTaxLine2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐTaxLine(ctx, sel, v[i])
  168579. }
  168580. if isLen1 {
  168581. f(i)
  168582. } else {
  168583. go f(i)
  168584. }
  168585. }
  168586. wg.Wait()
  168587. for _, e := range ret {
  168588. if e == graphql.Null {
  168589. return graphql.Null
  168590. }
  168591. }
  168592. return ret
  168593. }
  168594. func (ec *executionContext) marshalNTaxLine2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐTaxLine(ctx context.Context, sel ast.SelectionSet, v *TaxLine) graphql.Marshaler {
  168595. if v == nil {
  168596. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168597. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168598. }
  168599. return graphql.Null
  168600. }
  168601. return ec._TaxLine(ctx, sel, v)
  168602. }
  168603. func (ec *executionContext) marshalNTransactionFee2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐTransactionFeeᚄ(ctx context.Context, sel ast.SelectionSet, v []*TransactionFee) graphql.Marshaler {
  168604. ret := make(graphql.Array, len(v))
  168605. var wg sync.WaitGroup
  168606. isLen1 := len(v) == 1
  168607. if !isLen1 {
  168608. wg.Add(len(v))
  168609. }
  168610. for i := range v {
  168611. i := i
  168612. fc := &graphql.FieldContext{
  168613. Index: &i,
  168614. Result: &v[i],
  168615. }
  168616. ctx := graphql.WithFieldContext(ctx, fc)
  168617. f := func(i int) {
  168618. defer func() {
  168619. if r := recover(); r != nil {
  168620. ec.Error(ctx, ec.Recover(ctx, r))
  168621. ret = nil
  168622. }
  168623. }()
  168624. if !isLen1 {
  168625. defer wg.Done()
  168626. }
  168627. ret[i] = ec.marshalNTransactionFee2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐTransactionFee(ctx, sel, v[i])
  168628. }
  168629. if isLen1 {
  168630. f(i)
  168631. } else {
  168632. go f(i)
  168633. }
  168634. }
  168635. wg.Wait()
  168636. for _, e := range ret {
  168637. if e == graphql.Null {
  168638. return graphql.Null
  168639. }
  168640. }
  168641. return ret
  168642. }
  168643. func (ec *executionContext) marshalNTransactionFee2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐTransactionFee(ctx context.Context, sel ast.SelectionSet, v *TransactionFee) graphql.Marshaler {
  168644. if v == nil {
  168645. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168646. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168647. }
  168648. return graphql.Null
  168649. }
  168650. return ec._TransactionFee(ctx, sel, v)
  168651. }
  168652. func (ec *executionContext) marshalNTypedAttribute2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐTypedAttributeᚄ(ctx context.Context, sel ast.SelectionSet, v []*TypedAttribute) graphql.Marshaler {
  168653. ret := make(graphql.Array, len(v))
  168654. var wg sync.WaitGroup
  168655. isLen1 := len(v) == 1
  168656. if !isLen1 {
  168657. wg.Add(len(v))
  168658. }
  168659. for i := range v {
  168660. i := i
  168661. fc := &graphql.FieldContext{
  168662. Index: &i,
  168663. Result: &v[i],
  168664. }
  168665. ctx := graphql.WithFieldContext(ctx, fc)
  168666. f := func(i int) {
  168667. defer func() {
  168668. if r := recover(); r != nil {
  168669. ec.Error(ctx, ec.Recover(ctx, r))
  168670. ret = nil
  168671. }
  168672. }()
  168673. if !isLen1 {
  168674. defer wg.Done()
  168675. }
  168676. ret[i] = ec.marshalNTypedAttribute2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐTypedAttribute(ctx, sel, v[i])
  168677. }
  168678. if isLen1 {
  168679. f(i)
  168680. } else {
  168681. go f(i)
  168682. }
  168683. }
  168684. wg.Wait()
  168685. for _, e := range ret {
  168686. if e == graphql.Null {
  168687. return graphql.Null
  168688. }
  168689. }
  168690. return ret
  168691. }
  168692. func (ec *executionContext) marshalNTypedAttribute2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐTypedAttribute(ctx context.Context, sel ast.SelectionSet, v *TypedAttribute) graphql.Marshaler {
  168693. if v == nil {
  168694. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168695. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168696. }
  168697. return graphql.Null
  168698. }
  168699. return ec._TypedAttribute(ctx, sel, v)
  168700. }
  168701. func (ec *executionContext) unmarshalNURL2string(ctx context.Context, v interface{}) (string, error) {
  168702. res, err := graphql.UnmarshalString(v)
  168703. return res, graphql.ErrorOnPath(ctx, err)
  168704. }
  168705. func (ec *executionContext) marshalNURL2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  168706. res := graphql.MarshalString(v)
  168707. if res == graphql.Null {
  168708. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168709. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168710. }
  168711. }
  168712. return res
  168713. }
  168714. func (ec *executionContext) unmarshalNUnitSystem2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐUnitSystem(ctx context.Context, v interface{}) (UnitSystem, error) {
  168715. var res UnitSystem
  168716. err := res.UnmarshalGQL(v)
  168717. return res, graphql.ErrorOnPath(ctx, err)
  168718. }
  168719. func (ec *executionContext) marshalNUnitSystem2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐUnitSystem(ctx context.Context, sel ast.SelectionSet, v UnitSystem) graphql.Marshaler {
  168720. return v
  168721. }
  168722. func (ec *executionContext) unmarshalNUnsignedInt642string(ctx context.Context, v interface{}) (string, error) {
  168723. res, err := graphql.UnmarshalString(v)
  168724. return res, graphql.ErrorOnPath(ctx, err)
  168725. }
  168726. func (ec *executionContext) marshalNUnsignedInt642string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  168727. res := graphql.MarshalString(v)
  168728. if res == graphql.Null {
  168729. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168730. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168731. }
  168732. }
  168733. return res
  168734. }
  168735. func (ec *executionContext) marshalNUserError2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐUserErrorᚄ(ctx context.Context, sel ast.SelectionSet, v []*UserError) graphql.Marshaler {
  168736. ret := make(graphql.Array, len(v))
  168737. var wg sync.WaitGroup
  168738. isLen1 := len(v) == 1
  168739. if !isLen1 {
  168740. wg.Add(len(v))
  168741. }
  168742. for i := range v {
  168743. i := i
  168744. fc := &graphql.FieldContext{
  168745. Index: &i,
  168746. Result: &v[i],
  168747. }
  168748. ctx := graphql.WithFieldContext(ctx, fc)
  168749. f := func(i int) {
  168750. defer func() {
  168751. if r := recover(); r != nil {
  168752. ec.Error(ctx, ec.Recover(ctx, r))
  168753. ret = nil
  168754. }
  168755. }()
  168756. if !isLen1 {
  168757. defer wg.Done()
  168758. }
  168759. ret[i] = ec.marshalNUserError2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐUserError(ctx, sel, v[i])
  168760. }
  168761. if isLen1 {
  168762. f(i)
  168763. } else {
  168764. go f(i)
  168765. }
  168766. }
  168767. wg.Wait()
  168768. for _, e := range ret {
  168769. if e == graphql.Null {
  168770. return graphql.Null
  168771. }
  168772. }
  168773. return ret
  168774. }
  168775. func (ec *executionContext) marshalNUserError2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐUserError(ctx context.Context, sel ast.SelectionSet, v *UserError) graphql.Marshaler {
  168776. if v == nil {
  168777. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168778. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168779. }
  168780. return graphql.Null
  168781. }
  168782. return ec._UserError(ctx, sel, v)
  168783. }
  168784. func (ec *executionContext) marshalNVideoSource2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐVideoSourceᚄ(ctx context.Context, sel ast.SelectionSet, v []*VideoSource) graphql.Marshaler {
  168785. ret := make(graphql.Array, len(v))
  168786. var wg sync.WaitGroup
  168787. isLen1 := len(v) == 1
  168788. if !isLen1 {
  168789. wg.Add(len(v))
  168790. }
  168791. for i := range v {
  168792. i := i
  168793. fc := &graphql.FieldContext{
  168794. Index: &i,
  168795. Result: &v[i],
  168796. }
  168797. ctx := graphql.WithFieldContext(ctx, fc)
  168798. f := func(i int) {
  168799. defer func() {
  168800. if r := recover(); r != nil {
  168801. ec.Error(ctx, ec.Recover(ctx, r))
  168802. ret = nil
  168803. }
  168804. }()
  168805. if !isLen1 {
  168806. defer wg.Done()
  168807. }
  168808. ret[i] = ec.marshalNVideoSource2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐVideoSource(ctx, sel, v[i])
  168809. }
  168810. if isLen1 {
  168811. f(i)
  168812. } else {
  168813. go f(i)
  168814. }
  168815. }
  168816. wg.Wait()
  168817. for _, e := range ret {
  168818. if e == graphql.Null {
  168819. return graphql.Null
  168820. }
  168821. }
  168822. return ret
  168823. }
  168824. func (ec *executionContext) marshalNVideoSource2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐVideoSource(ctx context.Context, sel ast.SelectionSet, v *VideoSource) graphql.Marshaler {
  168825. if v == nil {
  168826. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168827. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168828. }
  168829. return graphql.Null
  168830. }
  168831. return ec._VideoSource(ctx, sel, v)
  168832. }
  168833. func (ec *executionContext) unmarshalNWeightUnit2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐWeightUnit(ctx context.Context, v interface{}) (WeightUnit, error) {
  168834. var res WeightUnit
  168835. err := res.UnmarshalGQL(v)
  168836. return res, graphql.ErrorOnPath(ctx, err)
  168837. }
  168838. func (ec *executionContext) marshalNWeightUnit2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐWeightUnit(ctx context.Context, sel ast.SelectionSet, v WeightUnit) graphql.Marshaler {
  168839. return v
  168840. }
  168841. func (ec *executionContext) unmarshalN_Any2map(ctx context.Context, v interface{}) (map[string]interface{}, error) {
  168842. res, err := graphql.UnmarshalMap(v)
  168843. return res, graphql.ErrorOnPath(ctx, err)
  168844. }
  168845. func (ec *executionContext) marshalN_Any2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler {
  168846. if v == nil {
  168847. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168848. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168849. }
  168850. return graphql.Null
  168851. }
  168852. res := graphql.MarshalMap(v)
  168853. if res == graphql.Null {
  168854. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168855. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168856. }
  168857. }
  168858. return res
  168859. }
  168860. func (ec *executionContext) unmarshalN_Any2ᚕmapᚄ(ctx context.Context, v interface{}) ([]map[string]interface{}, error) {
  168861. var vSlice []interface{}
  168862. if v != nil {
  168863. vSlice = graphql.CoerceList(v)
  168864. }
  168865. var err error
  168866. res := make([]map[string]interface{}, len(vSlice))
  168867. for i := range vSlice {
  168868. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  168869. res[i], err = ec.unmarshalN_Any2map(ctx, vSlice[i])
  168870. if err != nil {
  168871. return nil, err
  168872. }
  168873. }
  168874. return res, nil
  168875. }
  168876. func (ec *executionContext) marshalN_Any2ᚕmapᚄ(ctx context.Context, sel ast.SelectionSet, v []map[string]interface{}) graphql.Marshaler {
  168877. ret := make(graphql.Array, len(v))
  168878. for i := range v {
  168879. ret[i] = ec.marshalN_Any2map(ctx, sel, v[i])
  168880. }
  168881. for _, e := range ret {
  168882. if e == graphql.Null {
  168883. return graphql.Null
  168884. }
  168885. }
  168886. return ret
  168887. }
  168888. func (ec *executionContext) marshalN_Entity2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋfedruntimeᚐEntity(ctx context.Context, sel ast.SelectionSet, v []fedruntime.Entity) graphql.Marshaler {
  168889. ret := make(graphql.Array, len(v))
  168890. var wg sync.WaitGroup
  168891. isLen1 := len(v) == 1
  168892. if !isLen1 {
  168893. wg.Add(len(v))
  168894. }
  168895. for i := range v {
  168896. i := i
  168897. fc := &graphql.FieldContext{
  168898. Index: &i,
  168899. Result: &v[i],
  168900. }
  168901. ctx := graphql.WithFieldContext(ctx, fc)
  168902. f := func(i int) {
  168903. defer func() {
  168904. if r := recover(); r != nil {
  168905. ec.Error(ctx, ec.Recover(ctx, r))
  168906. ret = nil
  168907. }
  168908. }()
  168909. if !isLen1 {
  168910. defer wg.Done()
  168911. }
  168912. ret[i] = ec.marshalO_Entity2githubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋfedruntimeᚐEntity(ctx, sel, v[i])
  168913. }
  168914. if isLen1 {
  168915. f(i)
  168916. } else {
  168917. go f(i)
  168918. }
  168919. }
  168920. wg.Wait()
  168921. return ret
  168922. }
  168923. func (ec *executionContext) unmarshalN_FieldSet2string(ctx context.Context, v interface{}) (string, error) {
  168924. res, err := graphql.UnmarshalString(v)
  168925. return res, graphql.ErrorOnPath(ctx, err)
  168926. }
  168927. func (ec *executionContext) marshalN_FieldSet2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  168928. res := graphql.MarshalString(v)
  168929. if res == graphql.Null {
  168930. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168931. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168932. }
  168933. }
  168934. return res
  168935. }
  168936. func (ec *executionContext) marshalN_Service2githubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋfedruntimeᚐService(ctx context.Context, sel ast.SelectionSet, v fedruntime.Service) graphql.Marshaler {
  168937. return ec.__Service(ctx, sel, &v)
  168938. }
  168939. func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler {
  168940. return ec.___Directive(ctx, sel, &v)
  168941. }
  168942. func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler {
  168943. ret := make(graphql.Array, len(v))
  168944. var wg sync.WaitGroup
  168945. isLen1 := len(v) == 1
  168946. if !isLen1 {
  168947. wg.Add(len(v))
  168948. }
  168949. for i := range v {
  168950. i := i
  168951. fc := &graphql.FieldContext{
  168952. Index: &i,
  168953. Result: &v[i],
  168954. }
  168955. ctx := graphql.WithFieldContext(ctx, fc)
  168956. f := func(i int) {
  168957. defer func() {
  168958. if r := recover(); r != nil {
  168959. ec.Error(ctx, ec.Recover(ctx, r))
  168960. ret = nil
  168961. }
  168962. }()
  168963. if !isLen1 {
  168964. defer wg.Done()
  168965. }
  168966. ret[i] = ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i])
  168967. }
  168968. if isLen1 {
  168969. f(i)
  168970. } else {
  168971. go f(i)
  168972. }
  168973. }
  168974. wg.Wait()
  168975. for _, e := range ret {
  168976. if e == graphql.Null {
  168977. return graphql.Null
  168978. }
  168979. }
  168980. return ret
  168981. }
  168982. func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) {
  168983. res, err := graphql.UnmarshalString(v)
  168984. return res, graphql.ErrorOnPath(ctx, err)
  168985. }
  168986. func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  168987. res := graphql.MarshalString(v)
  168988. if res == graphql.Null {
  168989. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  168990. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  168991. }
  168992. }
  168993. return res
  168994. }
  168995. func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
  168996. var vSlice []interface{}
  168997. if v != nil {
  168998. vSlice = graphql.CoerceList(v)
  168999. }
  169000. var err error
  169001. res := make([]string, len(vSlice))
  169002. for i := range vSlice {
  169003. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  169004. res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i])
  169005. if err != nil {
  169006. return nil, err
  169007. }
  169008. }
  169009. return res, nil
  169010. }
  169011. func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
  169012. ret := make(graphql.Array, len(v))
  169013. var wg sync.WaitGroup
  169014. isLen1 := len(v) == 1
  169015. if !isLen1 {
  169016. wg.Add(len(v))
  169017. }
  169018. for i := range v {
  169019. i := i
  169020. fc := &graphql.FieldContext{
  169021. Index: &i,
  169022. Result: &v[i],
  169023. }
  169024. ctx := graphql.WithFieldContext(ctx, fc)
  169025. f := func(i int) {
  169026. defer func() {
  169027. if r := recover(); r != nil {
  169028. ec.Error(ctx, ec.Recover(ctx, r))
  169029. ret = nil
  169030. }
  169031. }()
  169032. if !isLen1 {
  169033. defer wg.Done()
  169034. }
  169035. ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i])
  169036. }
  169037. if isLen1 {
  169038. f(i)
  169039. } else {
  169040. go f(i)
  169041. }
  169042. }
  169043. wg.Wait()
  169044. for _, e := range ret {
  169045. if e == graphql.Null {
  169046. return graphql.Null
  169047. }
  169048. }
  169049. return ret
  169050. }
  169051. func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler {
  169052. return ec.___EnumValue(ctx, sel, &v)
  169053. }
  169054. func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler {
  169055. return ec.___Field(ctx, sel, &v)
  169056. }
  169057. func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler {
  169058. return ec.___InputValue(ctx, sel, &v)
  169059. }
  169060. func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
  169061. ret := make(graphql.Array, len(v))
  169062. var wg sync.WaitGroup
  169063. isLen1 := len(v) == 1
  169064. if !isLen1 {
  169065. wg.Add(len(v))
  169066. }
  169067. for i := range v {
  169068. i := i
  169069. fc := &graphql.FieldContext{
  169070. Index: &i,
  169071. Result: &v[i],
  169072. }
  169073. ctx := graphql.WithFieldContext(ctx, fc)
  169074. f := func(i int) {
  169075. defer func() {
  169076. if r := recover(); r != nil {
  169077. ec.Error(ctx, ec.Recover(ctx, r))
  169078. ret = nil
  169079. }
  169080. }()
  169081. if !isLen1 {
  169082. defer wg.Done()
  169083. }
  169084. ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
  169085. }
  169086. if isLen1 {
  169087. f(i)
  169088. } else {
  169089. go f(i)
  169090. }
  169091. }
  169092. wg.Wait()
  169093. for _, e := range ret {
  169094. if e == graphql.Null {
  169095. return graphql.Null
  169096. }
  169097. }
  169098. return ret
  169099. }
  169100. func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler {
  169101. return ec.___Type(ctx, sel, &v)
  169102. }
  169103. func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
  169104. ret := make(graphql.Array, len(v))
  169105. var wg sync.WaitGroup
  169106. isLen1 := len(v) == 1
  169107. if !isLen1 {
  169108. wg.Add(len(v))
  169109. }
  169110. for i := range v {
  169111. i := i
  169112. fc := &graphql.FieldContext{
  169113. Index: &i,
  169114. Result: &v[i],
  169115. }
  169116. ctx := graphql.WithFieldContext(ctx, fc)
  169117. f := func(i int) {
  169118. defer func() {
  169119. if r := recover(); r != nil {
  169120. ec.Error(ctx, ec.Recover(ctx, r))
  169121. ret = nil
  169122. }
  169123. }()
  169124. if !isLen1 {
  169125. defer wg.Done()
  169126. }
  169127. ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
  169128. }
  169129. if isLen1 {
  169130. f(i)
  169131. } else {
  169132. go f(i)
  169133. }
  169134. }
  169135. wg.Wait()
  169136. for _, e := range ret {
  169137. if e == graphql.Null {
  169138. return graphql.Null
  169139. }
  169140. }
  169141. return ret
  169142. }
  169143. func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
  169144. if v == nil {
  169145. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  169146. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  169147. }
  169148. return graphql.Null
  169149. }
  169150. return ec.___Type(ctx, sel, v)
  169151. }
  169152. func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) {
  169153. res, err := graphql.UnmarshalString(v)
  169154. return res, graphql.ErrorOnPath(ctx, err)
  169155. }
  169156. func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  169157. res := graphql.MarshalString(v)
  169158. if res == graphql.Null {
  169159. if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
  169160. ec.Errorf(ctx, "the requested element is null which the schema does not allow")
  169161. }
  169162. }
  169163. return res
  169164. }
  169165. func (ec *executionContext) marshalOApp2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐApp(ctx context.Context, sel ast.SelectionSet, v *App) graphql.Marshaler {
  169166. if v == nil {
  169167. return graphql.Null
  169168. }
  169169. return ec._App(ctx, sel, v)
  169170. }
  169171. func (ec *executionContext) marshalOAppFeedback2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppFeedback(ctx context.Context, sel ast.SelectionSet, v *AppFeedback) graphql.Marshaler {
  169172. if v == nil {
  169173. return graphql.Null
  169174. }
  169175. return ec._AppFeedback(ctx, sel, v)
  169176. }
  169177. func (ec *executionContext) marshalOAppInstallation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppInstallation(ctx context.Context, sel ast.SelectionSet, v *AppInstallation) graphql.Marshaler {
  169178. if v == nil {
  169179. return graphql.Null
  169180. }
  169181. return ec._AppInstallation(ctx, sel, v)
  169182. }
  169183. func (ec *executionContext) unmarshalOAppRevenueAttributionRecordSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppRevenueAttributionRecordSortKeys(ctx context.Context, v interface{}) (*AppRevenueAttributionRecordSortKeys, error) {
  169184. if v == nil {
  169185. return nil, nil
  169186. }
  169187. var res = new(AppRevenueAttributionRecordSortKeys)
  169188. err := res.UnmarshalGQL(v)
  169189. return res, graphql.ErrorOnPath(ctx, err)
  169190. }
  169191. func (ec *executionContext) marshalOAppRevenueAttributionRecordSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppRevenueAttributionRecordSortKeys(ctx context.Context, sel ast.SelectionSet, v *AppRevenueAttributionRecordSortKeys) graphql.Marshaler {
  169192. if v == nil {
  169193. return graphql.Null
  169194. }
  169195. return v
  169196. }
  169197. func (ec *executionContext) marshalOAppSubscriptionDiscount2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppSubscriptionDiscount(ctx context.Context, sel ast.SelectionSet, v *AppSubscriptionDiscount) graphql.Marshaler {
  169198. if v == nil {
  169199. return graphql.Null
  169200. }
  169201. return ec._AppSubscriptionDiscount(ctx, sel, v)
  169202. }
  169203. func (ec *executionContext) unmarshalOAppSubscriptionSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppSubscriptionSortKeys(ctx context.Context, v interface{}) (*AppSubscriptionSortKeys, error) {
  169204. if v == nil {
  169205. return nil, nil
  169206. }
  169207. var res = new(AppSubscriptionSortKeys)
  169208. err := res.UnmarshalGQL(v)
  169209. return res, graphql.ErrorOnPath(ctx, err)
  169210. }
  169211. func (ec *executionContext) marshalOAppSubscriptionSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppSubscriptionSortKeys(ctx context.Context, sel ast.SelectionSet, v *AppSubscriptionSortKeys) graphql.Marshaler {
  169212. if v == nil {
  169213. return graphql.Null
  169214. }
  169215. return v
  169216. }
  169217. func (ec *executionContext) unmarshalOAppTransactionSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppTransactionSortKeys(ctx context.Context, v interface{}) (*AppTransactionSortKeys, error) {
  169218. if v == nil {
  169219. return nil, nil
  169220. }
  169221. var res = new(AppTransactionSortKeys)
  169222. err := res.UnmarshalGQL(v)
  169223. return res, graphql.ErrorOnPath(ctx, err)
  169224. }
  169225. func (ec *executionContext) marshalOAppTransactionSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppTransactionSortKeys(ctx context.Context, sel ast.SelectionSet, v *AppTransactionSortKeys) graphql.Marshaler {
  169226. if v == nil {
  169227. return graphql.Null
  169228. }
  169229. return v
  169230. }
  169231. func (ec *executionContext) unmarshalOAppUsageRecordSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppUsageRecordSortKeys(ctx context.Context, v interface{}) (*AppUsageRecordSortKeys, error) {
  169232. if v == nil {
  169233. return nil, nil
  169234. }
  169235. var res = new(AppUsageRecordSortKeys)
  169236. err := res.UnmarshalGQL(v)
  169237. return res, graphql.ErrorOnPath(ctx, err)
  169238. }
  169239. func (ec *executionContext) marshalOAppUsageRecordSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐAppUsageRecordSortKeys(ctx context.Context, sel ast.SelectionSet, v *AppUsageRecordSortKeys) graphql.Marshaler {
  169240. if v == nil {
  169241. return graphql.Null
  169242. }
  169243. return v
  169244. }
  169245. func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) {
  169246. res, err := graphql.UnmarshalBoolean(v)
  169247. return res, graphql.ErrorOnPath(ctx, err)
  169248. }
  169249. func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
  169250. res := graphql.MarshalBoolean(v)
  169251. return res
  169252. }
  169253. func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) {
  169254. if v == nil {
  169255. return nil, nil
  169256. }
  169257. res, err := graphql.UnmarshalBoolean(v)
  169258. return &res, graphql.ErrorOnPath(ctx, err)
  169259. }
  169260. func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler {
  169261. if v == nil {
  169262. return graphql.Null
  169263. }
  169264. res := graphql.MarshalBoolean(*v)
  169265. return res
  169266. }
  169267. func (ec *executionContext) marshalOBuyerExperienceConfiguration2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐBuyerExperienceConfiguration(ctx context.Context, sel ast.SelectionSet, v *BuyerExperienceConfiguration) graphql.Marshaler {
  169268. if v == nil {
  169269. return graphql.Null
  169270. }
  169271. return ec._BuyerExperienceConfiguration(ctx, sel, v)
  169272. }
  169273. func (ec *executionContext) marshalOChannelDefinition2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐChannelDefinition(ctx context.Context, sel ast.SelectionSet, v *ChannelDefinition) graphql.Marshaler {
  169274. if v == nil {
  169275. return graphql.Null
  169276. }
  169277. return ec._ChannelDefinition(ctx, sel, v)
  169278. }
  169279. func (ec *executionContext) marshalOChannelInformation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐChannelInformation(ctx context.Context, sel ast.SelectionSet, v *ChannelInformation) graphql.Marshaler {
  169280. if v == nil {
  169281. return graphql.Null
  169282. }
  169283. return ec._ChannelInformation(ctx, sel, v)
  169284. }
  169285. func (ec *executionContext) marshalOCollectionRuleSet2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCollectionRuleSet(ctx context.Context, sel ast.SelectionSet, v *CollectionRuleSet) graphql.Marshaler {
  169286. if v == nil {
  169287. return graphql.Null
  169288. }
  169289. return ec._CollectionRuleSet(ctx, sel, v)
  169290. }
  169291. func (ec *executionContext) unmarshalOCollectionSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCollectionSortKeys(ctx context.Context, v interface{}) (*CollectionSortKeys, error) {
  169292. if v == nil {
  169293. return nil, nil
  169294. }
  169295. var res = new(CollectionSortKeys)
  169296. err := res.UnmarshalGQL(v)
  169297. return res, graphql.ErrorOnPath(ctx, err)
  169298. }
  169299. func (ec *executionContext) marshalOCollectionSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCollectionSortKeys(ctx context.Context, sel ast.SelectionSet, v *CollectionSortKeys) graphql.Marshaler {
  169300. if v == nil {
  169301. return graphql.Null
  169302. }
  169303. return v
  169304. }
  169305. func (ec *executionContext) marshalOCommentEventEmbed2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCommentEventEmbed(ctx context.Context, sel ast.SelectionSet, v CommentEventEmbed) graphql.Marshaler {
  169306. if v == nil {
  169307. return graphql.Null
  169308. }
  169309. return ec._CommentEventEmbed(ctx, sel, v)
  169310. }
  169311. func (ec *executionContext) marshalOCompanyAddress2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyAddress(ctx context.Context, sel ast.SelectionSet, v *CompanyAddress) graphql.Marshaler {
  169312. if v == nil {
  169313. return graphql.Null
  169314. }
  169315. return ec._CompanyAddress(ctx, sel, v)
  169316. }
  169317. func (ec *executionContext) marshalOCompanyContact2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContact(ctx context.Context, sel ast.SelectionSet, v *CompanyContact) graphql.Marshaler {
  169318. if v == nil {
  169319. return graphql.Null
  169320. }
  169321. return ec._CompanyContact(ctx, sel, v)
  169322. }
  169323. func (ec *executionContext) marshalOCompanyContactRole2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRole(ctx context.Context, sel ast.SelectionSet, v *CompanyContactRole) graphql.Marshaler {
  169324. if v == nil {
  169325. return graphql.Null
  169326. }
  169327. return ec._CompanyContactRole(ctx, sel, v)
  169328. }
  169329. func (ec *executionContext) unmarshalOCompanyContactRoleAssignmentSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRoleAssignmentSortKeys(ctx context.Context, v interface{}) (*CompanyContactRoleAssignmentSortKeys, error) {
  169330. if v == nil {
  169331. return nil, nil
  169332. }
  169333. var res = new(CompanyContactRoleAssignmentSortKeys)
  169334. err := res.UnmarshalGQL(v)
  169335. return res, graphql.ErrorOnPath(ctx, err)
  169336. }
  169337. func (ec *executionContext) marshalOCompanyContactRoleAssignmentSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRoleAssignmentSortKeys(ctx context.Context, sel ast.SelectionSet, v *CompanyContactRoleAssignmentSortKeys) graphql.Marshaler {
  169338. if v == nil {
  169339. return graphql.Null
  169340. }
  169341. return v
  169342. }
  169343. func (ec *executionContext) unmarshalOCompanyContactRoleSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRoleSortKeys(ctx context.Context, v interface{}) (*CompanyContactRoleSortKeys, error) {
  169344. if v == nil {
  169345. return nil, nil
  169346. }
  169347. var res = new(CompanyContactRoleSortKeys)
  169348. err := res.UnmarshalGQL(v)
  169349. return res, graphql.ErrorOnPath(ctx, err)
  169350. }
  169351. func (ec *executionContext) marshalOCompanyContactRoleSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactRoleSortKeys(ctx context.Context, sel ast.SelectionSet, v *CompanyContactRoleSortKeys) graphql.Marshaler {
  169352. if v == nil {
  169353. return graphql.Null
  169354. }
  169355. return v
  169356. }
  169357. func (ec *executionContext) unmarshalOCompanyContactSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactSortKeys(ctx context.Context, v interface{}) (*CompanyContactSortKeys, error) {
  169358. if v == nil {
  169359. return nil, nil
  169360. }
  169361. var res = new(CompanyContactSortKeys)
  169362. err := res.UnmarshalGQL(v)
  169363. return res, graphql.ErrorOnPath(ctx, err)
  169364. }
  169365. func (ec *executionContext) marshalOCompanyContactSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyContactSortKeys(ctx context.Context, sel ast.SelectionSet, v *CompanyContactSortKeys) graphql.Marshaler {
  169366. if v == nil {
  169367. return graphql.Null
  169368. }
  169369. return v
  169370. }
  169371. func (ec *executionContext) unmarshalOCompanyLocationSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyLocationSortKeys(ctx context.Context, v interface{}) (*CompanyLocationSortKeys, error) {
  169372. if v == nil {
  169373. return nil, nil
  169374. }
  169375. var res = new(CompanyLocationSortKeys)
  169376. err := res.UnmarshalGQL(v)
  169377. return res, graphql.ErrorOnPath(ctx, err)
  169378. }
  169379. func (ec *executionContext) marshalOCompanyLocationSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCompanyLocationSortKeys(ctx context.Context, sel ast.SelectionSet, v *CompanyLocationSortKeys) graphql.Marshaler {
  169380. if v == nil {
  169381. return graphql.Null
  169382. }
  169383. return v
  169384. }
  169385. func (ec *executionContext) unmarshalOCountryCode2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCodeᚄ(ctx context.Context, v interface{}) ([]CountryCode, error) {
  169386. if v == nil {
  169387. return nil, nil
  169388. }
  169389. var vSlice []interface{}
  169390. if v != nil {
  169391. vSlice = graphql.CoerceList(v)
  169392. }
  169393. var err error
  169394. res := make([]CountryCode, len(vSlice))
  169395. for i := range vSlice {
  169396. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  169397. res[i], err = ec.unmarshalNCountryCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCode(ctx, vSlice[i])
  169398. if err != nil {
  169399. return nil, err
  169400. }
  169401. }
  169402. return res, nil
  169403. }
  169404. func (ec *executionContext) marshalOCountryCode2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCodeᚄ(ctx context.Context, sel ast.SelectionSet, v []CountryCode) graphql.Marshaler {
  169405. if v == nil {
  169406. return graphql.Null
  169407. }
  169408. ret := make(graphql.Array, len(v))
  169409. var wg sync.WaitGroup
  169410. isLen1 := len(v) == 1
  169411. if !isLen1 {
  169412. wg.Add(len(v))
  169413. }
  169414. for i := range v {
  169415. i := i
  169416. fc := &graphql.FieldContext{
  169417. Index: &i,
  169418. Result: &v[i],
  169419. }
  169420. ctx := graphql.WithFieldContext(ctx, fc)
  169421. f := func(i int) {
  169422. defer func() {
  169423. if r := recover(); r != nil {
  169424. ec.Error(ctx, ec.Recover(ctx, r))
  169425. ret = nil
  169426. }
  169427. }()
  169428. if !isLen1 {
  169429. defer wg.Done()
  169430. }
  169431. ret[i] = ec.marshalNCountryCode2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCode(ctx, sel, v[i])
  169432. }
  169433. if isLen1 {
  169434. f(i)
  169435. } else {
  169436. go f(i)
  169437. }
  169438. }
  169439. wg.Wait()
  169440. for _, e := range ret {
  169441. if e == graphql.Null {
  169442. return graphql.Null
  169443. }
  169444. }
  169445. return ret
  169446. }
  169447. func (ec *executionContext) unmarshalOCountryCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCode(ctx context.Context, v interface{}) (*CountryCode, error) {
  169448. if v == nil {
  169449. return nil, nil
  169450. }
  169451. var res = new(CountryCode)
  169452. err := res.UnmarshalGQL(v)
  169453. return res, graphql.ErrorOnPath(ctx, err)
  169454. }
  169455. func (ec *executionContext) marshalOCountryCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCountryCode(ctx context.Context, sel ast.SelectionSet, v *CountryCode) graphql.Marshaler {
  169456. if v == nil {
  169457. return graphql.Null
  169458. }
  169459. return v
  169460. }
  169461. func (ec *executionContext) unmarshalOCropRegion2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCropRegion(ctx context.Context, v interface{}) (*CropRegion, error) {
  169462. if v == nil {
  169463. return nil, nil
  169464. }
  169465. var res = new(CropRegion)
  169466. err := res.UnmarshalGQL(v)
  169467. return res, graphql.ErrorOnPath(ctx, err)
  169468. }
  169469. func (ec *executionContext) marshalOCropRegion2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCropRegion(ctx context.Context, sel ast.SelectionSet, v *CropRegion) graphql.Marshaler {
  169470. if v == nil {
  169471. return graphql.Null
  169472. }
  169473. return v
  169474. }
  169475. func (ec *executionContext) unmarshalOCurrencyCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencyCode(ctx context.Context, v interface{}) (*CurrencyCode, error) {
  169476. if v == nil {
  169477. return nil, nil
  169478. }
  169479. var res = new(CurrencyCode)
  169480. err := res.UnmarshalGQL(v)
  169481. return res, graphql.ErrorOnPath(ctx, err)
  169482. }
  169483. func (ec *executionContext) marshalOCurrencyCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCurrencyCode(ctx context.Context, sel ast.SelectionSet, v *CurrencyCode) graphql.Marshaler {
  169484. if v == nil {
  169485. return graphql.Null
  169486. }
  169487. return v
  169488. }
  169489. func (ec *executionContext) marshalOCustomer2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomer(ctx context.Context, sel ast.SelectionSet, v *Customer) graphql.Marshaler {
  169490. if v == nil {
  169491. return graphql.Null
  169492. }
  169493. return ec._Customer(ctx, sel, v)
  169494. }
  169495. func (ec *executionContext) unmarshalOCustomerConsentCollectedFrom2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerConsentCollectedFrom(ctx context.Context, v interface{}) (*CustomerConsentCollectedFrom, error) {
  169496. if v == nil {
  169497. return nil, nil
  169498. }
  169499. var res = new(CustomerConsentCollectedFrom)
  169500. err := res.UnmarshalGQL(v)
  169501. return res, graphql.ErrorOnPath(ctx, err)
  169502. }
  169503. func (ec *executionContext) marshalOCustomerConsentCollectedFrom2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerConsentCollectedFrom(ctx context.Context, sel ast.SelectionSet, v *CustomerConsentCollectedFrom) graphql.Marshaler {
  169504. if v == nil {
  169505. return graphql.Null
  169506. }
  169507. return v
  169508. }
  169509. func (ec *executionContext) marshalOCustomerCreatePayload2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerCreatePayload(ctx context.Context, sel ast.SelectionSet, v *CustomerCreatePayload) graphql.Marshaler {
  169510. if v == nil {
  169511. return graphql.Null
  169512. }
  169513. return ec._CustomerCreatePayload(ctx, sel, v)
  169514. }
  169515. func (ec *executionContext) marshalOCustomerCreditCardBillingAddress2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerCreditCardBillingAddress(ctx context.Context, sel ast.SelectionSet, v *CustomerCreditCardBillingAddress) graphql.Marshaler {
  169516. if v == nil {
  169517. return graphql.Null
  169518. }
  169519. return ec._CustomerCreditCardBillingAddress(ctx, sel, v)
  169520. }
  169521. func (ec *executionContext) marshalOCustomerEmailMarketingConsentState2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerEmailMarketingConsentState(ctx context.Context, sel ast.SelectionSet, v *CustomerEmailMarketingConsentState) graphql.Marshaler {
  169522. if v == nil {
  169523. return graphql.Null
  169524. }
  169525. return ec._CustomerEmailMarketingConsentState(ctx, sel, v)
  169526. }
  169527. func (ec *executionContext) marshalOCustomerJourneySummary2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerJourneySummary(ctx context.Context, sel ast.SelectionSet, v *CustomerJourneySummary) graphql.Marshaler {
  169528. if v == nil {
  169529. return graphql.Null
  169530. }
  169531. return ec._CustomerJourneySummary(ctx, sel, v)
  169532. }
  169533. func (ec *executionContext) unmarshalOCustomerMarketingOptInLevel2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerMarketingOptInLevel(ctx context.Context, v interface{}) (*CustomerMarketingOptInLevel, error) {
  169534. if v == nil {
  169535. return nil, nil
  169536. }
  169537. var res = new(CustomerMarketingOptInLevel)
  169538. err := res.UnmarshalGQL(v)
  169539. return res, graphql.ErrorOnPath(ctx, err)
  169540. }
  169541. func (ec *executionContext) marshalOCustomerMarketingOptInLevel2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerMarketingOptInLevel(ctx context.Context, sel ast.SelectionSet, v *CustomerMarketingOptInLevel) graphql.Marshaler {
  169542. if v == nil {
  169543. return graphql.Null
  169544. }
  169545. return v
  169546. }
  169547. func (ec *executionContext) marshalOCustomerMomentConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerMomentConnection(ctx context.Context, sel ast.SelectionSet, v *CustomerMomentConnection) graphql.Marshaler {
  169548. if v == nil {
  169549. return graphql.Null
  169550. }
  169551. return ec._CustomerMomentConnection(ctx, sel, v)
  169552. }
  169553. func (ec *executionContext) marshalOCustomerPaymentInstrument2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerPaymentInstrument(ctx context.Context, sel ast.SelectionSet, v CustomerPaymentInstrument) graphql.Marshaler {
  169554. if v == nil {
  169555. return graphql.Null
  169556. }
  169557. return ec._CustomerPaymentInstrument(ctx, sel, v)
  169558. }
  169559. func (ec *executionContext) marshalOCustomerPaymentInstrumentBillingAddress2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerPaymentInstrumentBillingAddress(ctx context.Context, sel ast.SelectionSet, v *CustomerPaymentInstrumentBillingAddress) graphql.Marshaler {
  169560. if v == nil {
  169561. return graphql.Null
  169562. }
  169563. return ec._CustomerPaymentInstrumentBillingAddress(ctx, sel, v)
  169564. }
  169565. func (ec *executionContext) marshalOCustomerPaymentMethod2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerPaymentMethod(ctx context.Context, sel ast.SelectionSet, v *CustomerPaymentMethod) graphql.Marshaler {
  169566. if v == nil {
  169567. return graphql.Null
  169568. }
  169569. return ec._CustomerPaymentMethod(ctx, sel, v)
  169570. }
  169571. func (ec *executionContext) unmarshalOCustomerPaymentMethodRevocationReason2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerPaymentMethodRevocationReason(ctx context.Context, v interface{}) (*CustomerPaymentMethodRevocationReason, error) {
  169572. if v == nil {
  169573. return nil, nil
  169574. }
  169575. var res = new(CustomerPaymentMethodRevocationReason)
  169576. err := res.UnmarshalGQL(v)
  169577. return res, graphql.ErrorOnPath(ctx, err)
  169578. }
  169579. func (ec *executionContext) marshalOCustomerPaymentMethodRevocationReason2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerPaymentMethodRevocationReason(ctx context.Context, sel ast.SelectionSet, v *CustomerPaymentMethodRevocationReason) graphql.Marshaler {
  169580. if v == nil {
  169581. return graphql.Null
  169582. }
  169583. return v
  169584. }
  169585. func (ec *executionContext) unmarshalOCustomerPredictedSpendTier2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerPredictedSpendTier(ctx context.Context, v interface{}) (*CustomerPredictedSpendTier, error) {
  169586. if v == nil {
  169587. return nil, nil
  169588. }
  169589. var res = new(CustomerPredictedSpendTier)
  169590. err := res.UnmarshalGQL(v)
  169591. return res, graphql.ErrorOnPath(ctx, err)
  169592. }
  169593. func (ec *executionContext) marshalOCustomerPredictedSpendTier2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerPredictedSpendTier(ctx context.Context, sel ast.SelectionSet, v *CustomerPredictedSpendTier) graphql.Marshaler {
  169594. if v == nil {
  169595. return graphql.Null
  169596. }
  169597. return v
  169598. }
  169599. func (ec *executionContext) marshalOCustomerSmsMarketingConsentState2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerSmsMarketingConsentState(ctx context.Context, sel ast.SelectionSet, v *CustomerSmsMarketingConsentState) graphql.Marshaler {
  169600. if v == nil {
  169601. return graphql.Null
  169602. }
  169603. return ec._CustomerSmsMarketingConsentState(ctx, sel, v)
  169604. }
  169605. func (ec *executionContext) marshalOCustomerVisit2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐCustomerVisit(ctx context.Context, sel ast.SelectionSet, v *CustomerVisit) graphql.Marshaler {
  169606. if v == nil {
  169607. return graphql.Null
  169608. }
  169609. return ec._CustomerVisit(ctx, sel, v)
  169610. }
  169611. func (ec *executionContext) unmarshalODateTime2ᚖstring(ctx context.Context, v interface{}) (*string, error) {
  169612. if v == nil {
  169613. return nil, nil
  169614. }
  169615. res, err := graphql.UnmarshalString(v)
  169616. return &res, graphql.ErrorOnPath(ctx, err)
  169617. }
  169618. func (ec *executionContext) marshalODateTime2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
  169619. if v == nil {
  169620. return graphql.Null
  169621. }
  169622. res := graphql.MarshalString(*v)
  169623. return res
  169624. }
  169625. func (ec *executionContext) unmarshalODecimal2ᚖstring(ctx context.Context, v interface{}) (*string, error) {
  169626. if v == nil {
  169627. return nil, nil
  169628. }
  169629. res, err := graphql.UnmarshalString(v)
  169630. return &res, graphql.ErrorOnPath(ctx, err)
  169631. }
  169632. func (ec *executionContext) marshalODecimal2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
  169633. if v == nil {
  169634. return graphql.Null
  169635. }
  169636. res := graphql.MarshalString(*v)
  169637. return res
  169638. }
  169639. func (ec *executionContext) marshalODeliveryCarrierService2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryCarrierService(ctx context.Context, sel ast.SelectionSet, v *DeliveryCarrierService) graphql.Marshaler {
  169640. if v == nil {
  169641. return graphql.Null
  169642. }
  169643. return ec._DeliveryCarrierService(ctx, sel, v)
  169644. }
  169645. func (ec *executionContext) marshalODeliveryMethod2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryMethod(ctx context.Context, sel ast.SelectionSet, v *DeliveryMethod) graphql.Marshaler {
  169646. if v == nil {
  169647. return graphql.Null
  169648. }
  169649. return ec._DeliveryMethod(ctx, sel, v)
  169650. }
  169651. func (ec *executionContext) unmarshalODeliveryMethodDefinitionType2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryMethodDefinitionType(ctx context.Context, v interface{}) (*DeliveryMethodDefinitionType, error) {
  169652. if v == nil {
  169653. return nil, nil
  169654. }
  169655. var res = new(DeliveryMethodDefinitionType)
  169656. err := res.UnmarshalGQL(v)
  169657. return res, graphql.ErrorOnPath(ctx, err)
  169658. }
  169659. func (ec *executionContext) marshalODeliveryMethodDefinitionType2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryMethodDefinitionType(ctx context.Context, sel ast.SelectionSet, v *DeliveryMethodDefinitionType) graphql.Marshaler {
  169660. if v == nil {
  169661. return graphql.Null
  169662. }
  169663. return v
  169664. }
  169665. func (ec *executionContext) marshalODeliveryProfile2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDeliveryProfile(ctx context.Context, sel ast.SelectionSet, v *DeliveryProfile) graphql.Marshaler {
  169666. if v == nil {
  169667. return graphql.Null
  169668. }
  169669. return ec._DeliveryProfile(ctx, sel, v)
  169670. }
  169671. func (ec *executionContext) marshalODomain2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDomain(ctx context.Context, sel ast.SelectionSet, v *Domain) graphql.Marshaler {
  169672. if v == nil {
  169673. return graphql.Null
  169674. }
  169675. return ec._Domain(ctx, sel, v)
  169676. }
  169677. func (ec *executionContext) marshalODomainLocalization2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDomainLocalization(ctx context.Context, sel ast.SelectionSet, v *DomainLocalization) graphql.Marshaler {
  169678. if v == nil {
  169679. return graphql.Null
  169680. }
  169681. return ec._DomainLocalization(ctx, sel, v)
  169682. }
  169683. func (ec *executionContext) marshalODraftOrderAppliedDiscount2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderAppliedDiscount(ctx context.Context, sel ast.SelectionSet, v *DraftOrderAppliedDiscount) graphql.Marshaler {
  169684. if v == nil {
  169685. return graphql.Null
  169686. }
  169687. return ec._DraftOrderAppliedDiscount(ctx, sel, v)
  169688. }
  169689. func (ec *executionContext) unmarshalODraftOrderSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderSortKeys(ctx context.Context, v interface{}) (*DraftOrderSortKeys, error) {
  169690. if v == nil {
  169691. return nil, nil
  169692. }
  169693. var res = new(DraftOrderSortKeys)
  169694. err := res.UnmarshalGQL(v)
  169695. return res, graphql.ErrorOnPath(ctx, err)
  169696. }
  169697. func (ec *executionContext) marshalODraftOrderSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDraftOrderSortKeys(ctx context.Context, sel ast.SelectionSet, v *DraftOrderSortKeys) graphql.Marshaler {
  169698. if v == nil {
  169699. return graphql.Null
  169700. }
  169701. return v
  169702. }
  169703. func (ec *executionContext) marshalODuty2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐDuty(ctx context.Context, sel ast.SelectionSet, v *Duty) graphql.Marshaler {
  169704. if v == nil {
  169705. return graphql.Null
  169706. }
  169707. return ec._Duty(ctx, sel, v)
  169708. }
  169709. func (ec *executionContext) unmarshalOEventSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐEventSortKeys(ctx context.Context, v interface{}) (*EventSortKeys, error) {
  169710. if v == nil {
  169711. return nil, nil
  169712. }
  169713. var res = new(EventSortKeys)
  169714. err := res.UnmarshalGQL(v)
  169715. return res, graphql.ErrorOnPath(ctx, err)
  169716. }
  169717. func (ec *executionContext) marshalOEventSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐEventSortKeys(ctx context.Context, sel ast.SelectionSet, v *EventSortKeys) graphql.Marshaler {
  169718. if v == nil {
  169719. return graphql.Null
  169720. }
  169721. return v
  169722. }
  169723. func (ec *executionContext) unmarshalOFloat2ᚖfloat64(ctx context.Context, v interface{}) (*float64, error) {
  169724. if v == nil {
  169725. return nil, nil
  169726. }
  169727. res, err := graphql.UnmarshalFloatContext(ctx, v)
  169728. return &res, graphql.ErrorOnPath(ctx, err)
  169729. }
  169730. func (ec *executionContext) marshalOFloat2ᚖfloat64(ctx context.Context, sel ast.SelectionSet, v *float64) graphql.Marshaler {
  169731. if v == nil {
  169732. return graphql.Null
  169733. }
  169734. res := graphql.MarshalFloatContext(*v)
  169735. return graphql.WrapContextMarshaler(ctx, res)
  169736. }
  169737. func (ec *executionContext) unmarshalOFormattedString2ᚖstring(ctx context.Context, v interface{}) (*string, error) {
  169738. if v == nil {
  169739. return nil, nil
  169740. }
  169741. res, err := graphql.UnmarshalString(v)
  169742. return &res, graphql.ErrorOnPath(ctx, err)
  169743. }
  169744. func (ec *executionContext) marshalOFormattedString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
  169745. if v == nil {
  169746. return graphql.Null
  169747. }
  169748. res := graphql.MarshalString(*v)
  169749. return res
  169750. }
  169751. func (ec *executionContext) unmarshalOFulfillmentDisplayStatus2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentDisplayStatus(ctx context.Context, v interface{}) (*FulfillmentDisplayStatus, error) {
  169752. if v == nil {
  169753. return nil, nil
  169754. }
  169755. var res = new(FulfillmentDisplayStatus)
  169756. err := res.UnmarshalGQL(v)
  169757. return res, graphql.ErrorOnPath(ctx, err)
  169758. }
  169759. func (ec *executionContext) marshalOFulfillmentDisplayStatus2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentDisplayStatus(ctx context.Context, sel ast.SelectionSet, v *FulfillmentDisplayStatus) graphql.Marshaler {
  169760. if v == nil {
  169761. return graphql.Null
  169762. }
  169763. return v
  169764. }
  169765. func (ec *executionContext) unmarshalOFulfillmentEventSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentEventSortKeys(ctx context.Context, v interface{}) (*FulfillmentEventSortKeys, error) {
  169766. if v == nil {
  169767. return nil, nil
  169768. }
  169769. var res = new(FulfillmentEventSortKeys)
  169770. err := res.UnmarshalGQL(v)
  169771. return res, graphql.ErrorOnPath(ctx, err)
  169772. }
  169773. func (ec *executionContext) marshalOFulfillmentEventSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentEventSortKeys(ctx context.Context, sel ast.SelectionSet, v *FulfillmentEventSortKeys) graphql.Marshaler {
  169774. if v == nil {
  169775. return graphql.Null
  169776. }
  169777. return v
  169778. }
  169779. func (ec *executionContext) unmarshalOFulfillmentOrderAssignmentStatus2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderAssignmentStatus(ctx context.Context, v interface{}) (*FulfillmentOrderAssignmentStatus, error) {
  169780. if v == nil {
  169781. return nil, nil
  169782. }
  169783. var res = new(FulfillmentOrderAssignmentStatus)
  169784. err := res.UnmarshalGQL(v)
  169785. return res, graphql.ErrorOnPath(ctx, err)
  169786. }
  169787. func (ec *executionContext) marshalOFulfillmentOrderAssignmentStatus2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderAssignmentStatus(ctx context.Context, sel ast.SelectionSet, v *FulfillmentOrderAssignmentStatus) graphql.Marshaler {
  169788. if v == nil {
  169789. return graphql.Null
  169790. }
  169791. return v
  169792. }
  169793. func (ec *executionContext) marshalOFulfillmentOrderDestination2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderDestination(ctx context.Context, sel ast.SelectionSet, v *FulfillmentOrderDestination) graphql.Marshaler {
  169794. if v == nil {
  169795. return graphql.Null
  169796. }
  169797. return ec._FulfillmentOrderDestination(ctx, sel, v)
  169798. }
  169799. func (ec *executionContext) marshalOFulfillmentOrderInternationalDuties2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderInternationalDuties(ctx context.Context, sel ast.SelectionSet, v *FulfillmentOrderInternationalDuties) graphql.Marshaler {
  169800. if v == nil {
  169801. return graphql.Null
  169802. }
  169803. return ec._FulfillmentOrderInternationalDuties(ctx, sel, v)
  169804. }
  169805. func (ec *executionContext) unmarshalOFulfillmentOrderMerchantRequestKind2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderMerchantRequestKind(ctx context.Context, v interface{}) (*FulfillmentOrderMerchantRequestKind, error) {
  169806. if v == nil {
  169807. return nil, nil
  169808. }
  169809. var res = new(FulfillmentOrderMerchantRequestKind)
  169810. err := res.UnmarshalGQL(v)
  169811. return res, graphql.ErrorOnPath(ctx, err)
  169812. }
  169813. func (ec *executionContext) marshalOFulfillmentOrderMerchantRequestKind2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderMerchantRequestKind(ctx context.Context, sel ast.SelectionSet, v *FulfillmentOrderMerchantRequestKind) graphql.Marshaler {
  169814. if v == nil {
  169815. return graphql.Null
  169816. }
  169817. return v
  169818. }
  169819. func (ec *executionContext) unmarshalOFulfillmentOrderSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderSortKeys(ctx context.Context, v interface{}) (*FulfillmentOrderSortKeys, error) {
  169820. if v == nil {
  169821. return nil, nil
  169822. }
  169823. var res = new(FulfillmentOrderSortKeys)
  169824. err := res.UnmarshalGQL(v)
  169825. return res, graphql.ErrorOnPath(ctx, err)
  169826. }
  169827. func (ec *executionContext) marshalOFulfillmentOrderSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOrderSortKeys(ctx context.Context, sel ast.SelectionSet, v *FulfillmentOrderSortKeys) graphql.Marshaler {
  169828. if v == nil {
  169829. return graphql.Null
  169830. }
  169831. return v
  169832. }
  169833. func (ec *executionContext) marshalOFulfillmentOriginAddress2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentOriginAddress(ctx context.Context, sel ast.SelectionSet, v *FulfillmentOriginAddress) graphql.Marshaler {
  169834. if v == nil {
  169835. return graphql.Null
  169836. }
  169837. return ec._FulfillmentOriginAddress(ctx, sel, v)
  169838. }
  169839. func (ec *executionContext) marshalOFulfillmentService2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐFulfillmentService(ctx context.Context, sel ast.SelectionSet, v *FulfillmentService) graphql.Marshaler {
  169840. if v == nil {
  169841. return graphql.Null
  169842. }
  169843. return ec._FulfillmentService(ctx, sel, v)
  169844. }
  169845. func (ec *executionContext) unmarshalOHTML2ᚖstring(ctx context.Context, v interface{}) (*string, error) {
  169846. if v == nil {
  169847. return nil, nil
  169848. }
  169849. res, err := graphql.UnmarshalString(v)
  169850. return &res, graphql.ErrorOnPath(ctx, err)
  169851. }
  169852. func (ec *executionContext) marshalOHTML2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
  169853. if v == nil {
  169854. return graphql.Null
  169855. }
  169856. res := graphql.MarshalString(*v)
  169857. return res
  169858. }
  169859. func (ec *executionContext) unmarshalOID2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
  169860. if v == nil {
  169861. return nil, nil
  169862. }
  169863. var vSlice []interface{}
  169864. if v != nil {
  169865. vSlice = graphql.CoerceList(v)
  169866. }
  169867. var err error
  169868. res := make([]string, len(vSlice))
  169869. for i := range vSlice {
  169870. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  169871. res[i], err = ec.unmarshalNID2string(ctx, vSlice[i])
  169872. if err != nil {
  169873. return nil, err
  169874. }
  169875. }
  169876. return res, nil
  169877. }
  169878. func (ec *executionContext) marshalOID2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
  169879. if v == nil {
  169880. return graphql.Null
  169881. }
  169882. ret := make(graphql.Array, len(v))
  169883. for i := range v {
  169884. ret[i] = ec.marshalNID2string(ctx, sel, v[i])
  169885. }
  169886. for _, e := range ret {
  169887. if e == graphql.Null {
  169888. return graphql.Null
  169889. }
  169890. }
  169891. return ret
  169892. }
  169893. func (ec *executionContext) unmarshalOID2ᚖstring(ctx context.Context, v interface{}) (*string, error) {
  169894. if v == nil {
  169895. return nil, nil
  169896. }
  169897. res, err := graphql.UnmarshalID(v)
  169898. return &res, graphql.ErrorOnPath(ctx, err)
  169899. }
  169900. func (ec *executionContext) marshalOID2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
  169901. if v == nil {
  169902. return graphql.Null
  169903. }
  169904. res := graphql.MarshalID(*v)
  169905. return res
  169906. }
  169907. func (ec *executionContext) marshalOImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImage(ctx context.Context, sel ast.SelectionSet, v *Image) graphql.Marshaler {
  169908. if v == nil {
  169909. return graphql.Null
  169910. }
  169911. return ec._Image(ctx, sel, v)
  169912. }
  169913. func (ec *executionContext) unmarshalOImageContentType2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImageContentType(ctx context.Context, v interface{}) (*ImageContentType, error) {
  169914. if v == nil {
  169915. return nil, nil
  169916. }
  169917. var res = new(ImageContentType)
  169918. err := res.UnmarshalGQL(v)
  169919. return res, graphql.ErrorOnPath(ctx, err)
  169920. }
  169921. func (ec *executionContext) marshalOImageContentType2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImageContentType(ctx context.Context, sel ast.SelectionSet, v *ImageContentType) graphql.Marshaler {
  169922. if v == nil {
  169923. return graphql.Null
  169924. }
  169925. return v
  169926. }
  169927. func (ec *executionContext) unmarshalOImageTransformInput2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐImageTransformInput(ctx context.Context, v interface{}) (*ImageTransformInput, error) {
  169928. if v == nil {
  169929. return nil, nil
  169930. }
  169931. res, err := ec.unmarshalInputImageTransformInput(ctx, v)
  169932. return &res, graphql.ErrorOnPath(ctx, err)
  169933. }
  169934. func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) {
  169935. if v == nil {
  169936. return nil, nil
  169937. }
  169938. res, err := graphql.UnmarshalInt(v)
  169939. return &res, graphql.ErrorOnPath(ctx, err)
  169940. }
  169941. func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.SelectionSet, v *int) graphql.Marshaler {
  169942. if v == nil {
  169943. return graphql.Null
  169944. }
  169945. res := graphql.MarshalInt(*v)
  169946. return res
  169947. }
  169948. func (ec *executionContext) marshalOInventoryLevel2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐInventoryLevel(ctx context.Context, sel ast.SelectionSet, v *InventoryLevel) graphql.Marshaler {
  169949. if v == nil {
  169950. return graphql.Null
  169951. }
  169952. return ec._InventoryLevel(ctx, sel, v)
  169953. }
  169954. func (ec *executionContext) unmarshalOJSON2ᚖstring(ctx context.Context, v interface{}) (*string, error) {
  169955. if v == nil {
  169956. return nil, nil
  169957. }
  169958. res, err := graphql.UnmarshalString(v)
  169959. return &res, graphql.ErrorOnPath(ctx, err)
  169960. }
  169961. func (ec *executionContext) marshalOJSON2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
  169962. if v == nil {
  169963. return graphql.Null
  169964. }
  169965. res := graphql.MarshalString(*v)
  169966. return res
  169967. }
  169968. func (ec *executionContext) unmarshalOLanguageCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLanguageCode(ctx context.Context, v interface{}) (*LanguageCode, error) {
  169969. if v == nil {
  169970. return nil, nil
  169971. }
  169972. var res = new(LanguageCode)
  169973. err := res.UnmarshalGQL(v)
  169974. return res, graphql.ErrorOnPath(ctx, err)
  169975. }
  169976. func (ec *executionContext) marshalOLanguageCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLanguageCode(ctx context.Context, sel ast.SelectionSet, v *LanguageCode) graphql.Marshaler {
  169977. if v == nil {
  169978. return graphql.Null
  169979. }
  169980. return v
  169981. }
  169982. func (ec *executionContext) marshalOLineItemSellingPlan2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLineItemSellingPlan(ctx context.Context, sel ast.SelectionSet, v *LineItemSellingPlan) graphql.Marshaler {
  169983. if v == nil {
  169984. return graphql.Null
  169985. }
  169986. return ec._LineItemSellingPlan(ctx, sel, v)
  169987. }
  169988. func (ec *executionContext) marshalOLink2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLink(ctx context.Context, sel ast.SelectionSet, v *Link) graphql.Marshaler {
  169989. if v == nil {
  169990. return graphql.Null
  169991. }
  169992. return ec._Link(ctx, sel, v)
  169993. }
  169994. func (ec *executionContext) unmarshalOLocalizationExtensionPurpose2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocalizationExtensionPurposeᚄ(ctx context.Context, v interface{}) ([]LocalizationExtensionPurpose, error) {
  169995. if v == nil {
  169996. return nil, nil
  169997. }
  169998. var vSlice []interface{}
  169999. if v != nil {
  170000. vSlice = graphql.CoerceList(v)
  170001. }
  170002. var err error
  170003. res := make([]LocalizationExtensionPurpose, len(vSlice))
  170004. for i := range vSlice {
  170005. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  170006. res[i], err = ec.unmarshalNLocalizationExtensionPurpose2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocalizationExtensionPurpose(ctx, vSlice[i])
  170007. if err != nil {
  170008. return nil, err
  170009. }
  170010. }
  170011. return res, nil
  170012. }
  170013. func (ec *executionContext) marshalOLocalizationExtensionPurpose2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocalizationExtensionPurposeᚄ(ctx context.Context, sel ast.SelectionSet, v []LocalizationExtensionPurpose) graphql.Marshaler {
  170014. if v == nil {
  170015. return graphql.Null
  170016. }
  170017. ret := make(graphql.Array, len(v))
  170018. var wg sync.WaitGroup
  170019. isLen1 := len(v) == 1
  170020. if !isLen1 {
  170021. wg.Add(len(v))
  170022. }
  170023. for i := range v {
  170024. i := i
  170025. fc := &graphql.FieldContext{
  170026. Index: &i,
  170027. Result: &v[i],
  170028. }
  170029. ctx := graphql.WithFieldContext(ctx, fc)
  170030. f := func(i int) {
  170031. defer func() {
  170032. if r := recover(); r != nil {
  170033. ec.Error(ctx, ec.Recover(ctx, r))
  170034. ret = nil
  170035. }
  170036. }()
  170037. if !isLen1 {
  170038. defer wg.Done()
  170039. }
  170040. ret[i] = ec.marshalNLocalizationExtensionPurpose2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocalizationExtensionPurpose(ctx, sel, v[i])
  170041. }
  170042. if isLen1 {
  170043. f(i)
  170044. } else {
  170045. go f(i)
  170046. }
  170047. }
  170048. wg.Wait()
  170049. for _, e := range ret {
  170050. if e == graphql.Null {
  170051. return graphql.Null
  170052. }
  170053. }
  170054. return ret
  170055. }
  170056. func (ec *executionContext) marshalOLocation2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocation(ctx context.Context, sel ast.SelectionSet, v *Location) graphql.Marshaler {
  170057. if v == nil {
  170058. return graphql.Null
  170059. }
  170060. return ec._Location(ctx, sel, v)
  170061. }
  170062. func (ec *executionContext) unmarshalOLocationSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocationSortKeys(ctx context.Context, v interface{}) (*LocationSortKeys, error) {
  170063. if v == nil {
  170064. return nil, nil
  170065. }
  170066. var res = new(LocationSortKeys)
  170067. err := res.UnmarshalGQL(v)
  170068. return res, graphql.ErrorOnPath(ctx, err)
  170069. }
  170070. func (ec *executionContext) marshalOLocationSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐLocationSortKeys(ctx context.Context, sel ast.SelectionSet, v *LocationSortKeys) graphql.Marshaler {
  170071. if v == nil {
  170072. return graphql.Null
  170073. }
  170074. return v
  170075. }
  170076. func (ec *executionContext) marshalOMailingAddress2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMailingAddress(ctx context.Context, sel ast.SelectionSet, v *MailingAddress) graphql.Marshaler {
  170077. if v == nil {
  170078. return graphql.Null
  170079. }
  170080. return ec._MailingAddress(ctx, sel, v)
  170081. }
  170082. func (ec *executionContext) unmarshalOMailingAddressInput2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMailingAddressInputᚄ(ctx context.Context, v interface{}) ([]*MailingAddressInput, error) {
  170083. if v == nil {
  170084. return nil, nil
  170085. }
  170086. var vSlice []interface{}
  170087. if v != nil {
  170088. vSlice = graphql.CoerceList(v)
  170089. }
  170090. var err error
  170091. res := make([]*MailingAddressInput, len(vSlice))
  170092. for i := range vSlice {
  170093. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  170094. res[i], err = ec.unmarshalNMailingAddressInput2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMailingAddressInput(ctx, vSlice[i])
  170095. if err != nil {
  170096. return nil, err
  170097. }
  170098. }
  170099. return res, nil
  170100. }
  170101. func (ec *executionContext) marshalOMarket2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarket(ctx context.Context, sel ast.SelectionSet, v *Market) graphql.Marshaler {
  170102. if v == nil {
  170103. return graphql.Null
  170104. }
  170105. return ec._Market(ctx, sel, v)
  170106. }
  170107. func (ec *executionContext) marshalOMarketWebPresence2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketWebPresence(ctx context.Context, sel ast.SelectionSet, v *MarketWebPresence) graphql.Marshaler {
  170108. if v == nil {
  170109. return graphql.Null
  170110. }
  170111. return ec._MarketWebPresence(ctx, sel, v)
  170112. }
  170113. func (ec *executionContext) unmarshalOMarketingChannel2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketingChannel(ctx context.Context, v interface{}) (*MarketingChannel, error) {
  170114. if v == nil {
  170115. return nil, nil
  170116. }
  170117. var res = new(MarketingChannel)
  170118. err := res.UnmarshalGQL(v)
  170119. return res, graphql.ErrorOnPath(ctx, err)
  170120. }
  170121. func (ec *executionContext) marshalOMarketingChannel2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketingChannel(ctx context.Context, sel ast.SelectionSet, v *MarketingChannel) graphql.Marshaler {
  170122. if v == nil {
  170123. return graphql.Null
  170124. }
  170125. return v
  170126. }
  170127. func (ec *executionContext) marshalOMarketingEvent2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketingEvent(ctx context.Context, sel ast.SelectionSet, v *MarketingEvent) graphql.Marshaler {
  170128. if v == nil {
  170129. return graphql.Null
  170130. }
  170131. return ec._MarketingEvent(ctx, sel, v)
  170132. }
  170133. func (ec *executionContext) unmarshalOMarketingTactic2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketingTactic(ctx context.Context, v interface{}) (*MarketingTactic, error) {
  170134. if v == nil {
  170135. return nil, nil
  170136. }
  170137. var res = new(MarketingTactic)
  170138. err := res.UnmarshalGQL(v)
  170139. return res, graphql.ErrorOnPath(ctx, err)
  170140. }
  170141. func (ec *executionContext) marshalOMarketingTactic2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMarketingTactic(ctx context.Context, sel ast.SelectionSet, v *MarketingTactic) graphql.Marshaler {
  170142. if v == nil {
  170143. return graphql.Null
  170144. }
  170145. return v
  170146. }
  170147. func (ec *executionContext) marshalOMedia2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMedia(ctx context.Context, sel ast.SelectionSet, v Media) graphql.Marshaler {
  170148. if v == nil {
  170149. return graphql.Null
  170150. }
  170151. return ec._Media(ctx, sel, v)
  170152. }
  170153. func (ec *executionContext) marshalOMediaImageOriginalSource2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaImageOriginalSource(ctx context.Context, sel ast.SelectionSet, v *MediaImageOriginalSource) graphql.Marshaler {
  170154. if v == nil {
  170155. return graphql.Null
  170156. }
  170157. return ec._MediaImageOriginalSource(ctx, sel, v)
  170158. }
  170159. func (ec *executionContext) marshalOMediaPreviewImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaPreviewImage(ctx context.Context, sel ast.SelectionSet, v *MediaPreviewImage) graphql.Marshaler {
  170160. if v == nil {
  170161. return graphql.Null
  170162. }
  170163. return ec._MediaPreviewImage(ctx, sel, v)
  170164. }
  170165. func (ec *executionContext) unmarshalOMediaUserErrorCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaUserErrorCode(ctx context.Context, v interface{}) (*MediaUserErrorCode, error) {
  170166. if v == nil {
  170167. return nil, nil
  170168. }
  170169. var res = new(MediaUserErrorCode)
  170170. err := res.UnmarshalGQL(v)
  170171. return res, graphql.ErrorOnPath(ctx, err)
  170172. }
  170173. func (ec *executionContext) marshalOMediaUserErrorCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMediaUserErrorCode(ctx context.Context, sel ast.SelectionSet, v *MediaUserErrorCode) graphql.Marshaler {
  170174. if v == nil {
  170175. return graphql.Null
  170176. }
  170177. return v
  170178. }
  170179. func (ec *executionContext) marshalOMerchantApprovalSignals2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMerchantApprovalSignals(ctx context.Context, sel ast.SelectionSet, v *MerchantApprovalSignals) graphql.Marshaler {
  170180. if v == nil {
  170181. return graphql.Null
  170182. }
  170183. return ec._MerchantApprovalSignals(ctx, sel, v)
  170184. }
  170185. func (ec *executionContext) marshalOMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafield(ctx context.Context, sel ast.SelectionSet, v *Metafield) graphql.Marshaler {
  170186. if v == nil {
  170187. return graphql.Null
  170188. }
  170189. return ec._Metafield(ctx, sel, v)
  170190. }
  170191. func (ec *executionContext) marshalOMetafieldDefinition2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinition(ctx context.Context, sel ast.SelectionSet, v *MetafieldDefinition) graphql.Marshaler {
  170192. if v == nil {
  170193. return graphql.Null
  170194. }
  170195. return ec._MetafieldDefinition(ctx, sel, v)
  170196. }
  170197. func (ec *executionContext) unmarshalOMetafieldDefinitionPinnedStatus2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionPinnedStatus(ctx context.Context, v interface{}) (*MetafieldDefinitionPinnedStatus, error) {
  170198. if v == nil {
  170199. return nil, nil
  170200. }
  170201. var res = new(MetafieldDefinitionPinnedStatus)
  170202. err := res.UnmarshalGQL(v)
  170203. return res, graphql.ErrorOnPath(ctx, err)
  170204. }
  170205. func (ec *executionContext) marshalOMetafieldDefinitionPinnedStatus2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionPinnedStatus(ctx context.Context, sel ast.SelectionSet, v *MetafieldDefinitionPinnedStatus) graphql.Marshaler {
  170206. if v == nil {
  170207. return graphql.Null
  170208. }
  170209. return v
  170210. }
  170211. func (ec *executionContext) unmarshalOMetafieldDefinitionSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionSortKeys(ctx context.Context, v interface{}) (*MetafieldDefinitionSortKeys, error) {
  170212. if v == nil {
  170213. return nil, nil
  170214. }
  170215. var res = new(MetafieldDefinitionSortKeys)
  170216. err := res.UnmarshalGQL(v)
  170217. return res, graphql.ErrorOnPath(ctx, err)
  170218. }
  170219. func (ec *executionContext) marshalOMetafieldDefinitionSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldDefinitionSortKeys(ctx context.Context, sel ast.SelectionSet, v *MetafieldDefinitionSortKeys) graphql.Marshaler {
  170220. if v == nil {
  170221. return graphql.Null
  170222. }
  170223. return v
  170224. }
  170225. func (ec *executionContext) unmarshalOMetafieldInput2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldInputᚄ(ctx context.Context, v interface{}) ([]*MetafieldInput, error) {
  170226. if v == nil {
  170227. return nil, nil
  170228. }
  170229. var vSlice []interface{}
  170230. if v != nil {
  170231. vSlice = graphql.CoerceList(v)
  170232. }
  170233. var err error
  170234. res := make([]*MetafieldInput, len(vSlice))
  170235. for i := range vSlice {
  170236. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  170237. res[i], err = ec.unmarshalNMetafieldInput2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldInput(ctx, vSlice[i])
  170238. if err != nil {
  170239. return nil, err
  170240. }
  170241. }
  170242. return res, nil
  170243. }
  170244. func (ec *executionContext) marshalOMetafieldReference2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldReference(ctx context.Context, sel ast.SelectionSet, v MetafieldReference) graphql.Marshaler {
  170245. if v == nil {
  170246. return graphql.Null
  170247. }
  170248. return ec._MetafieldReference(ctx, sel, v)
  170249. }
  170250. func (ec *executionContext) marshalOMetafieldReferenceConnection2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldReferenceConnection(ctx context.Context, sel ast.SelectionSet, v *MetafieldReferenceConnection) graphql.Marshaler {
  170251. if v == nil {
  170252. return graphql.Null
  170253. }
  170254. return ec._MetafieldReferenceConnection(ctx, sel, v)
  170255. }
  170256. func (ec *executionContext) unmarshalOMetafieldValidationStatus2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldValidationStatus(ctx context.Context, v interface{}) (*MetafieldValidationStatus, error) {
  170257. if v == nil {
  170258. return nil, nil
  170259. }
  170260. var res = new(MetafieldValidationStatus)
  170261. err := res.UnmarshalGQL(v)
  170262. return res, graphql.ErrorOnPath(ctx, err)
  170263. }
  170264. func (ec *executionContext) marshalOMetafieldValidationStatus2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMetafieldValidationStatus(ctx context.Context, sel ast.SelectionSet, v *MetafieldValidationStatus) graphql.Marshaler {
  170265. if v == nil {
  170266. return graphql.Null
  170267. }
  170268. return v
  170269. }
  170270. func (ec *executionContext) unmarshalOMethodDefinitionSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMethodDefinitionSortKeys(ctx context.Context, v interface{}) (*MethodDefinitionSortKeys, error) {
  170271. if v == nil {
  170272. return nil, nil
  170273. }
  170274. var res = new(MethodDefinitionSortKeys)
  170275. err := res.UnmarshalGQL(v)
  170276. return res, graphql.ErrorOnPath(ctx, err)
  170277. }
  170278. func (ec *executionContext) marshalOMethodDefinitionSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMethodDefinitionSortKeys(ctx context.Context, sel ast.SelectionSet, v *MethodDefinitionSortKeys) graphql.Marshaler {
  170279. if v == nil {
  170280. return graphql.Null
  170281. }
  170282. return v
  170283. }
  170284. func (ec *executionContext) unmarshalOMoney2ᚖstring(ctx context.Context, v interface{}) (*string, error) {
  170285. if v == nil {
  170286. return nil, nil
  170287. }
  170288. res, err := graphql.UnmarshalString(v)
  170289. return &res, graphql.ErrorOnPath(ctx, err)
  170290. }
  170291. func (ec *executionContext) marshalOMoney2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
  170292. if v == nil {
  170293. return graphql.Null
  170294. }
  170295. res := graphql.MarshalString(*v)
  170296. return res
  170297. }
  170298. func (ec *executionContext) marshalOMoneyBag2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyBag(ctx context.Context, sel ast.SelectionSet, v *MoneyBag) graphql.Marshaler {
  170299. if v == nil {
  170300. return graphql.Null
  170301. }
  170302. return ec._MoneyBag(ctx, sel, v)
  170303. }
  170304. func (ec *executionContext) marshalOMoneyV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐMoneyV2(ctx context.Context, sel ast.SelectionSet, v *MoneyV2) graphql.Marshaler {
  170305. if v == nil {
  170306. return graphql.Null
  170307. }
  170308. return ec._MoneyV2(ctx, sel, v)
  170309. }
  170310. func (ec *executionContext) marshalONavigationItem2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐNavigationItem(ctx context.Context, sel ast.SelectionSet, v *NavigationItem) graphql.Marshaler {
  170311. if v == nil {
  170312. return graphql.Null
  170313. }
  170314. return ec._NavigationItem(ctx, sel, v)
  170315. }
  170316. func (ec *executionContext) marshalOOrder2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrder(ctx context.Context, sel ast.SelectionSet, v *Order) graphql.Marshaler {
  170317. if v == nil {
  170318. return graphql.Null
  170319. }
  170320. return ec._Order(ctx, sel, v)
  170321. }
  170322. func (ec *executionContext) marshalOOrderApp2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderApp(ctx context.Context, sel ast.SelectionSet, v *OrderApp) graphql.Marshaler {
  170323. if v == nil {
  170324. return graphql.Null
  170325. }
  170326. return ec._OrderApp(ctx, sel, v)
  170327. }
  170328. func (ec *executionContext) unmarshalOOrderCancelReason2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderCancelReason(ctx context.Context, v interface{}) (*OrderCancelReason, error) {
  170329. if v == nil {
  170330. return nil, nil
  170331. }
  170332. var res = new(OrderCancelReason)
  170333. err := res.UnmarshalGQL(v)
  170334. return res, graphql.ErrorOnPath(ctx, err)
  170335. }
  170336. func (ec *executionContext) marshalOOrderCancelReason2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderCancelReason(ctx context.Context, sel ast.SelectionSet, v *OrderCancelReason) graphql.Marshaler {
  170337. if v == nil {
  170338. return graphql.Null
  170339. }
  170340. return v
  170341. }
  170342. func (ec *executionContext) unmarshalOOrderDisplayFinancialStatus2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderDisplayFinancialStatus(ctx context.Context, v interface{}) (*OrderDisplayFinancialStatus, error) {
  170343. if v == nil {
  170344. return nil, nil
  170345. }
  170346. var res = new(OrderDisplayFinancialStatus)
  170347. err := res.UnmarshalGQL(v)
  170348. return res, graphql.ErrorOnPath(ctx, err)
  170349. }
  170350. func (ec *executionContext) marshalOOrderDisplayFinancialStatus2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderDisplayFinancialStatus(ctx context.Context, sel ast.SelectionSet, v *OrderDisplayFinancialStatus) graphql.Marshaler {
  170351. if v == nil {
  170352. return graphql.Null
  170353. }
  170354. return v
  170355. }
  170356. func (ec *executionContext) unmarshalOOrderRiskLevel2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderRiskLevel(ctx context.Context, v interface{}) (*OrderRiskLevel, error) {
  170357. if v == nil {
  170358. return nil, nil
  170359. }
  170360. var res = new(OrderRiskLevel)
  170361. err := res.UnmarshalGQL(v)
  170362. return res, graphql.ErrorOnPath(ctx, err)
  170363. }
  170364. func (ec *executionContext) marshalOOrderRiskLevel2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderRiskLevel(ctx context.Context, sel ast.SelectionSet, v *OrderRiskLevel) graphql.Marshaler {
  170365. if v == nil {
  170366. return graphql.Null
  170367. }
  170368. return v
  170369. }
  170370. func (ec *executionContext) unmarshalOOrderSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderSortKeys(ctx context.Context, v interface{}) (*OrderSortKeys, error) {
  170371. if v == nil {
  170372. return nil, nil
  170373. }
  170374. var res = new(OrderSortKeys)
  170375. err := res.UnmarshalGQL(v)
  170376. return res, graphql.ErrorOnPath(ctx, err)
  170377. }
  170378. func (ec *executionContext) marshalOOrderSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderSortKeys(ctx context.Context, sel ast.SelectionSet, v *OrderSortKeys) graphql.Marshaler {
  170379. if v == nil {
  170380. return graphql.Null
  170381. }
  170382. return v
  170383. }
  170384. func (ec *executionContext) marshalOOrderTransaction2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderTransaction(ctx context.Context, sel ast.SelectionSet, v *OrderTransaction) graphql.Marshaler {
  170385. if v == nil {
  170386. return graphql.Null
  170387. }
  170388. return ec._OrderTransaction(ctx, sel, v)
  170389. }
  170390. func (ec *executionContext) unmarshalOOrderTransactionErrorCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderTransactionErrorCode(ctx context.Context, v interface{}) (*OrderTransactionErrorCode, error) {
  170391. if v == nil {
  170392. return nil, nil
  170393. }
  170394. var res = new(OrderTransactionErrorCode)
  170395. err := res.UnmarshalGQL(v)
  170396. return res, graphql.ErrorOnPath(ctx, err)
  170397. }
  170398. func (ec *executionContext) marshalOOrderTransactionErrorCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐOrderTransactionErrorCode(ctx context.Context, sel ast.SelectionSet, v *OrderTransactionErrorCode) graphql.Marshaler {
  170399. if v == nil {
  170400. return graphql.Null
  170401. }
  170402. return v
  170403. }
  170404. func (ec *executionContext) marshalOPaymentMandate2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentMandateᚄ(ctx context.Context, sel ast.SelectionSet, v []*PaymentMandate) graphql.Marshaler {
  170405. if v == nil {
  170406. return graphql.Null
  170407. }
  170408. ret := make(graphql.Array, len(v))
  170409. var wg sync.WaitGroup
  170410. isLen1 := len(v) == 1
  170411. if !isLen1 {
  170412. wg.Add(len(v))
  170413. }
  170414. for i := range v {
  170415. i := i
  170416. fc := &graphql.FieldContext{
  170417. Index: &i,
  170418. Result: &v[i],
  170419. }
  170420. ctx := graphql.WithFieldContext(ctx, fc)
  170421. f := func(i int) {
  170422. defer func() {
  170423. if r := recover(); r != nil {
  170424. ec.Error(ctx, ec.Recover(ctx, r))
  170425. ret = nil
  170426. }
  170427. }()
  170428. if !isLen1 {
  170429. defer wg.Done()
  170430. }
  170431. ret[i] = ec.marshalNPaymentMandate2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentMandate(ctx, sel, v[i])
  170432. }
  170433. if isLen1 {
  170434. f(i)
  170435. } else {
  170436. go f(i)
  170437. }
  170438. }
  170439. wg.Wait()
  170440. for _, e := range ret {
  170441. if e == graphql.Null {
  170442. return graphql.Null
  170443. }
  170444. }
  170445. return ret
  170446. }
  170447. func (ec *executionContext) marshalOPaymentTerms2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentTerms(ctx context.Context, sel ast.SelectionSet, v *PaymentTerms) graphql.Marshaler {
  170448. if v == nil {
  170449. return graphql.Null
  170450. }
  170451. return ec._PaymentTerms(ctx, sel, v)
  170452. }
  170453. func (ec *executionContext) marshalOPaymentTermsTemplate2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPaymentTermsTemplate(ctx context.Context, sel ast.SelectionSet, v *PaymentTermsTemplate) graphql.Marshaler {
  170454. if v == nil {
  170455. return graphql.Null
  170456. }
  170457. return ec._PaymentTermsTemplate(ctx, sel, v)
  170458. }
  170459. func (ec *executionContext) marshalOPriceList2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceList(ctx context.Context, sel ast.SelectionSet, v *PriceList) graphql.Marshaler {
  170460. if v == nil {
  170461. return graphql.Null
  170462. }
  170463. return ec._PriceList(ctx, sel, v)
  170464. }
  170465. func (ec *executionContext) marshalOPriceListContextRule2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceListContextRule(ctx context.Context, sel ast.SelectionSet, v *PriceListContextRule) graphql.Marshaler {
  170466. if v == nil {
  170467. return graphql.Null
  170468. }
  170469. return ec._PriceListContextRule(ctx, sel, v)
  170470. }
  170471. func (ec *executionContext) marshalOPriceListParent2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceListParent(ctx context.Context, sel ast.SelectionSet, v *PriceListParent) graphql.Marshaler {
  170472. if v == nil {
  170473. return graphql.Null
  170474. }
  170475. return ec._PriceListParent(ctx, sel, v)
  170476. }
  170477. func (ec *executionContext) unmarshalOPriceListPriceOriginType2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceListPriceOriginType(ctx context.Context, v interface{}) (*PriceListPriceOriginType, error) {
  170478. if v == nil {
  170479. return nil, nil
  170480. }
  170481. var res = new(PriceListPriceOriginType)
  170482. err := res.UnmarshalGQL(v)
  170483. return res, graphql.ErrorOnPath(ctx, err)
  170484. }
  170485. func (ec *executionContext) marshalOPriceListPriceOriginType2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPriceListPriceOriginType(ctx context.Context, sel ast.SelectionSet, v *PriceListPriceOriginType) graphql.Marshaler {
  170486. if v == nil {
  170487. return graphql.Null
  170488. }
  170489. return v
  170490. }
  170491. func (ec *executionContext) marshalOPrivateMetafield2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafield(ctx context.Context, sel ast.SelectionSet, v *PrivateMetafield) graphql.Marshaler {
  170492. if v == nil {
  170493. return graphql.Null
  170494. }
  170495. return ec._PrivateMetafield(ctx, sel, v)
  170496. }
  170497. func (ec *executionContext) unmarshalOPrivateMetafieldInput2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafieldInputᚄ(ctx context.Context, v interface{}) ([]*PrivateMetafieldInput, error) {
  170498. if v == nil {
  170499. return nil, nil
  170500. }
  170501. var vSlice []interface{}
  170502. if v != nil {
  170503. vSlice = graphql.CoerceList(v)
  170504. }
  170505. var err error
  170506. res := make([]*PrivateMetafieldInput, len(vSlice))
  170507. for i := range vSlice {
  170508. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  170509. res[i], err = ec.unmarshalNPrivateMetafieldInput2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPrivateMetafieldInput(ctx, vSlice[i])
  170510. if err != nil {
  170511. return nil, err
  170512. }
  170513. }
  170514. return res, nil
  170515. }
  170516. func (ec *executionContext) marshalOProduct2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProduct(ctx context.Context, sel ast.SelectionSet, v *Product) graphql.Marshaler {
  170517. if v == nil {
  170518. return graphql.Null
  170519. }
  170520. return ec._Product(ctx, sel, v)
  170521. }
  170522. func (ec *executionContext) marshalOProductCategory2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductCategory(ctx context.Context, sel ast.SelectionSet, v *ProductCategory) graphql.Marshaler {
  170523. if v == nil {
  170524. return graphql.Null
  170525. }
  170526. return ec._ProductCategory(ctx, sel, v)
  170527. }
  170528. func (ec *executionContext) unmarshalOProductChangeStatusUserErrorCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductChangeStatusUserErrorCode(ctx context.Context, v interface{}) (*ProductChangeStatusUserErrorCode, error) {
  170529. if v == nil {
  170530. return nil, nil
  170531. }
  170532. var res = new(ProductChangeStatusUserErrorCode)
  170533. err := res.UnmarshalGQL(v)
  170534. return res, graphql.ErrorOnPath(ctx, err)
  170535. }
  170536. func (ec *executionContext) marshalOProductChangeStatusUserErrorCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductChangeStatusUserErrorCode(ctx context.Context, sel ast.SelectionSet, v *ProductChangeStatusUserErrorCode) graphql.Marshaler {
  170537. if v == nil {
  170538. return graphql.Null
  170539. }
  170540. return v
  170541. }
  170542. func (ec *executionContext) unmarshalOProductCollectionSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductCollectionSortKeys(ctx context.Context, v interface{}) (*ProductCollectionSortKeys, error) {
  170543. if v == nil {
  170544. return nil, nil
  170545. }
  170546. var res = new(ProductCollectionSortKeys)
  170547. err := res.UnmarshalGQL(v)
  170548. return res, graphql.ErrorOnPath(ctx, err)
  170549. }
  170550. func (ec *executionContext) marshalOProductCollectionSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductCollectionSortKeys(ctx context.Context, sel ast.SelectionSet, v *ProductCollectionSortKeys) graphql.Marshaler {
  170551. if v == nil {
  170552. return graphql.Null
  170553. }
  170554. return v
  170555. }
  170556. func (ec *executionContext) unmarshalOProductImageSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductImageSortKeys(ctx context.Context, v interface{}) (*ProductImageSortKeys, error) {
  170557. if v == nil {
  170558. return nil, nil
  170559. }
  170560. var res = new(ProductImageSortKeys)
  170561. err := res.UnmarshalGQL(v)
  170562. return res, graphql.ErrorOnPath(ctx, err)
  170563. }
  170564. func (ec *executionContext) marshalOProductImageSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductImageSortKeys(ctx context.Context, sel ast.SelectionSet, v *ProductImageSortKeys) graphql.Marshaler {
  170565. if v == nil {
  170566. return graphql.Null
  170567. }
  170568. return v
  170569. }
  170570. func (ec *executionContext) unmarshalOProductMediaSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductMediaSortKeys(ctx context.Context, v interface{}) (*ProductMediaSortKeys, error) {
  170571. if v == nil {
  170572. return nil, nil
  170573. }
  170574. var res = new(ProductMediaSortKeys)
  170575. err := res.UnmarshalGQL(v)
  170576. return res, graphql.ErrorOnPath(ctx, err)
  170577. }
  170578. func (ec *executionContext) marshalOProductMediaSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductMediaSortKeys(ctx context.Context, sel ast.SelectionSet, v *ProductMediaSortKeys) graphql.Marshaler {
  170579. if v == nil {
  170580. return graphql.Null
  170581. }
  170582. return v
  170583. }
  170584. func (ec *executionContext) marshalOProductTaxonomyNode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductTaxonomyNode(ctx context.Context, sel ast.SelectionSet, v *ProductTaxonomyNode) graphql.Marshaler {
  170585. if v == nil {
  170586. return graphql.Null
  170587. }
  170588. return ec._ProductTaxonomyNode(ctx, sel, v)
  170589. }
  170590. func (ec *executionContext) marshalOProductVariant2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariant(ctx context.Context, sel ast.SelectionSet, v *ProductVariant) graphql.Marshaler {
  170591. if v == nil {
  170592. return graphql.Null
  170593. }
  170594. return ec._ProductVariant(ctx, sel, v)
  170595. }
  170596. func (ec *executionContext) marshalOProductVariantContextualPricing2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantContextualPricing(ctx context.Context, sel ast.SelectionSet, v *ProductVariantContextualPricing) graphql.Marshaler {
  170597. if v == nil {
  170598. return graphql.Null
  170599. }
  170600. return ec._ProductVariantContextualPricing(ctx, sel, v)
  170601. }
  170602. func (ec *executionContext) unmarshalOProductVariantSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantSortKeys(ctx context.Context, v interface{}) (*ProductVariantSortKeys, error) {
  170603. if v == nil {
  170604. return nil, nil
  170605. }
  170606. var res = new(ProductVariantSortKeys)
  170607. err := res.UnmarshalGQL(v)
  170608. return res, graphql.ErrorOnPath(ctx, err)
  170609. }
  170610. func (ec *executionContext) marshalOProductVariantSortKeys2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantSortKeys(ctx context.Context, sel ast.SelectionSet, v *ProductVariantSortKeys) graphql.Marshaler {
  170611. if v == nil {
  170612. return graphql.Null
  170613. }
  170614. return v
  170615. }
  170616. func (ec *executionContext) unmarshalOProductVariantsBulkCreateUserErrorCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantsBulkCreateUserErrorCode(ctx context.Context, v interface{}) (*ProductVariantsBulkCreateUserErrorCode, error) {
  170617. if v == nil {
  170618. return nil, nil
  170619. }
  170620. var res = new(ProductVariantsBulkCreateUserErrorCode)
  170621. err := res.UnmarshalGQL(v)
  170622. return res, graphql.ErrorOnPath(ctx, err)
  170623. }
  170624. func (ec *executionContext) marshalOProductVariantsBulkCreateUserErrorCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantsBulkCreateUserErrorCode(ctx context.Context, sel ast.SelectionSet, v *ProductVariantsBulkCreateUserErrorCode) graphql.Marshaler {
  170625. if v == nil {
  170626. return graphql.Null
  170627. }
  170628. return v
  170629. }
  170630. func (ec *executionContext) unmarshalOProductVariantsBulkDeleteUserErrorCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantsBulkDeleteUserErrorCode(ctx context.Context, v interface{}) (*ProductVariantsBulkDeleteUserErrorCode, error) {
  170631. if v == nil {
  170632. return nil, nil
  170633. }
  170634. var res = new(ProductVariantsBulkDeleteUserErrorCode)
  170635. err := res.UnmarshalGQL(v)
  170636. return res, graphql.ErrorOnPath(ctx, err)
  170637. }
  170638. func (ec *executionContext) marshalOProductVariantsBulkDeleteUserErrorCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantsBulkDeleteUserErrorCode(ctx context.Context, sel ast.SelectionSet, v *ProductVariantsBulkDeleteUserErrorCode) graphql.Marshaler {
  170639. if v == nil {
  170640. return graphql.Null
  170641. }
  170642. return v
  170643. }
  170644. func (ec *executionContext) unmarshalOProductVariantsBulkReorderUserErrorCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantsBulkReorderUserErrorCode(ctx context.Context, v interface{}) (*ProductVariantsBulkReorderUserErrorCode, error) {
  170645. if v == nil {
  170646. return nil, nil
  170647. }
  170648. var res = new(ProductVariantsBulkReorderUserErrorCode)
  170649. err := res.UnmarshalGQL(v)
  170650. return res, graphql.ErrorOnPath(ctx, err)
  170651. }
  170652. func (ec *executionContext) marshalOProductVariantsBulkReorderUserErrorCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantsBulkReorderUserErrorCode(ctx context.Context, sel ast.SelectionSet, v *ProductVariantsBulkReorderUserErrorCode) graphql.Marshaler {
  170653. if v == nil {
  170654. return graphql.Null
  170655. }
  170656. return v
  170657. }
  170658. func (ec *executionContext) unmarshalOProductVariantsBulkUpdateUserErrorCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantsBulkUpdateUserErrorCode(ctx context.Context, v interface{}) (*ProductVariantsBulkUpdateUserErrorCode, error) {
  170659. if v == nil {
  170660. return nil, nil
  170661. }
  170662. var res = new(ProductVariantsBulkUpdateUserErrorCode)
  170663. err := res.UnmarshalGQL(v)
  170664. return res, graphql.ErrorOnPath(ctx, err)
  170665. }
  170666. func (ec *executionContext) marshalOProductVariantsBulkUpdateUserErrorCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐProductVariantsBulkUpdateUserErrorCode(ctx context.Context, sel ast.SelectionSet, v *ProductVariantsBulkUpdateUserErrorCode) graphql.Marshaler {
  170667. if v == nil {
  170668. return graphql.Null
  170669. }
  170670. return v
  170671. }
  170672. func (ec *executionContext) marshalOPublication2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPublication(ctx context.Context, sel ast.SelectionSet, v *Publication) graphql.Marshaler {
  170673. if v == nil {
  170674. return graphql.Null
  170675. }
  170676. return ec._Publication(ctx, sel, v)
  170677. }
  170678. func (ec *executionContext) marshalOPurchasingEntity2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐPurchasingEntity(ctx context.Context, sel ast.SelectionSet, v PurchasingEntity) graphql.Marshaler {
  170679. if v == nil {
  170680. return graphql.Null
  170681. }
  170682. return ec._PurchasingEntity(ctx, sel, v)
  170683. }
  170684. func (ec *executionContext) marshalORefundDuty2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundDutyᚄ(ctx context.Context, sel ast.SelectionSet, v []*RefundDuty) graphql.Marshaler {
  170685. if v == nil {
  170686. return graphql.Null
  170687. }
  170688. ret := make(graphql.Array, len(v))
  170689. var wg sync.WaitGroup
  170690. isLen1 := len(v) == 1
  170691. if !isLen1 {
  170692. wg.Add(len(v))
  170693. }
  170694. for i := range v {
  170695. i := i
  170696. fc := &graphql.FieldContext{
  170697. Index: &i,
  170698. Result: &v[i],
  170699. }
  170700. ctx := graphql.WithFieldContext(ctx, fc)
  170701. f := func(i int) {
  170702. defer func() {
  170703. if r := recover(); r != nil {
  170704. ec.Error(ctx, ec.Recover(ctx, r))
  170705. ret = nil
  170706. }
  170707. }()
  170708. if !isLen1 {
  170709. defer wg.Done()
  170710. }
  170711. ret[i] = ec.marshalNRefundDuty2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundDuty(ctx, sel, v[i])
  170712. }
  170713. if isLen1 {
  170714. f(i)
  170715. } else {
  170716. go f(i)
  170717. }
  170718. }
  170719. wg.Wait()
  170720. for _, e := range ret {
  170721. if e == graphql.Null {
  170722. return graphql.Null
  170723. }
  170724. }
  170725. return ret
  170726. }
  170727. func (ec *executionContext) unmarshalORefundDutyInput2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundDutyInputᚄ(ctx context.Context, v interface{}) ([]*RefundDutyInput, error) {
  170728. if v == nil {
  170729. return nil, nil
  170730. }
  170731. var vSlice []interface{}
  170732. if v != nil {
  170733. vSlice = graphql.CoerceList(v)
  170734. }
  170735. var err error
  170736. res := make([]*RefundDutyInput, len(vSlice))
  170737. for i := range vSlice {
  170738. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  170739. res[i], err = ec.unmarshalNRefundDutyInput2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundDutyInput(ctx, vSlice[i])
  170740. if err != nil {
  170741. return nil, err
  170742. }
  170743. }
  170744. return res, nil
  170745. }
  170746. func (ec *executionContext) unmarshalORefundDutyRefundType2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundDutyRefundType(ctx context.Context, v interface{}) (*RefundDutyRefundType, error) {
  170747. if v == nil {
  170748. return nil, nil
  170749. }
  170750. var res = new(RefundDutyRefundType)
  170751. err := res.UnmarshalGQL(v)
  170752. return res, graphql.ErrorOnPath(ctx, err)
  170753. }
  170754. func (ec *executionContext) marshalORefundDutyRefundType2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundDutyRefundType(ctx context.Context, sel ast.SelectionSet, v *RefundDutyRefundType) graphql.Marshaler {
  170755. if v == nil {
  170756. return graphql.Null
  170757. }
  170758. return v
  170759. }
  170760. func (ec *executionContext) unmarshalORefundLineItemInput2ᚕᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundLineItemInputᚄ(ctx context.Context, v interface{}) ([]*RefundLineItemInput, error) {
  170761. if v == nil {
  170762. return nil, nil
  170763. }
  170764. var vSlice []interface{}
  170765. if v != nil {
  170766. vSlice = graphql.CoerceList(v)
  170767. }
  170768. var err error
  170769. res := make([]*RefundLineItemInput, len(vSlice))
  170770. for i := range vSlice {
  170771. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  170772. res[i], err = ec.unmarshalNRefundLineItemInput2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundLineItemInput(ctx, vSlice[i])
  170773. if err != nil {
  170774. return nil, err
  170775. }
  170776. }
  170777. return res, nil
  170778. }
  170779. func (ec *executionContext) unmarshalORefundLineItemRestockType2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundLineItemRestockType(ctx context.Context, v interface{}) (*RefundLineItemRestockType, error) {
  170780. if v == nil {
  170781. return nil, nil
  170782. }
  170783. var res = new(RefundLineItemRestockType)
  170784. err := res.UnmarshalGQL(v)
  170785. return res, graphql.ErrorOnPath(ctx, err)
  170786. }
  170787. func (ec *executionContext) marshalORefundLineItemRestockType2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐRefundLineItemRestockType(ctx context.Context, sel ast.SelectionSet, v *RefundLineItemRestockType) graphql.Marshaler {
  170788. if v == nil {
  170789. return graphql.Null
  170790. }
  170791. return v
  170792. }
  170793. func (ec *executionContext) unmarshalOResourceAlertIcon2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourceAlertIcon(ctx context.Context, v interface{}) (*ResourceAlertIcon, error) {
  170794. if v == nil {
  170795. return nil, nil
  170796. }
  170797. var res = new(ResourceAlertIcon)
  170798. err := res.UnmarshalGQL(v)
  170799. return res, graphql.ErrorOnPath(ctx, err)
  170800. }
  170801. func (ec *executionContext) marshalOResourceAlertIcon2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourceAlertIcon(ctx context.Context, sel ast.SelectionSet, v *ResourceAlertIcon) graphql.Marshaler {
  170802. if v == nil {
  170803. return graphql.Null
  170804. }
  170805. return v
  170806. }
  170807. func (ec *executionContext) marshalOResourceFeedback2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourceFeedback(ctx context.Context, sel ast.SelectionSet, v *ResourceFeedback) graphql.Marshaler {
  170808. if v == nil {
  170809. return graphql.Null
  170810. }
  170811. return ec._ResourceFeedback(ctx, sel, v)
  170812. }
  170813. func (ec *executionContext) marshalOResourcePublicationV22ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐResourcePublicationV2(ctx context.Context, sel ast.SelectionSet, v *ResourcePublicationV2) graphql.Marshaler {
  170814. if v == nil {
  170815. return graphql.Null
  170816. }
  170817. return ec._ResourcePublicationV2(ctx, sel, v)
  170818. }
  170819. func (ec *executionContext) unmarshalOSearchResultType2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSearchResultTypeᚄ(ctx context.Context, v interface{}) ([]SearchResultType, error) {
  170820. if v == nil {
  170821. return nil, nil
  170822. }
  170823. var vSlice []interface{}
  170824. if v != nil {
  170825. vSlice = graphql.CoerceList(v)
  170826. }
  170827. var err error
  170828. res := make([]SearchResultType, len(vSlice))
  170829. for i := range vSlice {
  170830. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  170831. res[i], err = ec.unmarshalNSearchResultType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSearchResultType(ctx, vSlice[i])
  170832. if err != nil {
  170833. return nil, err
  170834. }
  170835. }
  170836. return res, nil
  170837. }
  170838. func (ec *executionContext) marshalOSearchResultType2ᚕgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSearchResultTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []SearchResultType) graphql.Marshaler {
  170839. if v == nil {
  170840. return graphql.Null
  170841. }
  170842. ret := make(graphql.Array, len(v))
  170843. var wg sync.WaitGroup
  170844. isLen1 := len(v) == 1
  170845. if !isLen1 {
  170846. wg.Add(len(v))
  170847. }
  170848. for i := range v {
  170849. i := i
  170850. fc := &graphql.FieldContext{
  170851. Index: &i,
  170852. Result: &v[i],
  170853. }
  170854. ctx := graphql.WithFieldContext(ctx, fc)
  170855. f := func(i int) {
  170856. defer func() {
  170857. if r := recover(); r != nil {
  170858. ec.Error(ctx, ec.Recover(ctx, r))
  170859. ret = nil
  170860. }
  170861. }()
  170862. if !isLen1 {
  170863. defer wg.Done()
  170864. }
  170865. ret[i] = ec.marshalNSearchResultType2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSearchResultType(ctx, sel, v[i])
  170866. }
  170867. if isLen1 {
  170868. f(i)
  170869. } else {
  170870. go f(i)
  170871. }
  170872. }
  170873. wg.Wait()
  170874. for _, e := range ret {
  170875. if e == graphql.Null {
  170876. return graphql.Null
  170877. }
  170878. }
  170879. return ret
  170880. }
  170881. func (ec *executionContext) unmarshalOSellingPlanCategory2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanCategory(ctx context.Context, v interface{}) (*SellingPlanCategory, error) {
  170882. if v == nil {
  170883. return nil, nil
  170884. }
  170885. var res = new(SellingPlanCategory)
  170886. err := res.UnmarshalGQL(v)
  170887. return res, graphql.ErrorOnPath(ctx, err)
  170888. }
  170889. func (ec *executionContext) marshalOSellingPlanCategory2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanCategory(ctx context.Context, sel ast.SelectionSet, v *SellingPlanCategory) graphql.Marshaler {
  170890. if v == nil {
  170891. return graphql.Null
  170892. }
  170893. return v
  170894. }
  170895. func (ec *executionContext) unmarshalOSellingPlanGroupUserErrorCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanGroupUserErrorCode(ctx context.Context, v interface{}) (*SellingPlanGroupUserErrorCode, error) {
  170896. if v == nil {
  170897. return nil, nil
  170898. }
  170899. var res = new(SellingPlanGroupUserErrorCode)
  170900. err := res.UnmarshalGQL(v)
  170901. return res, graphql.ErrorOnPath(ctx, err)
  170902. }
  170903. func (ec *executionContext) marshalOSellingPlanGroupUserErrorCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanGroupUserErrorCode(ctx context.Context, sel ast.SelectionSet, v *SellingPlanGroupUserErrorCode) graphql.Marshaler {
  170904. if v == nil {
  170905. return graphql.Null
  170906. }
  170907. return v
  170908. }
  170909. func (ec *executionContext) marshalOSellingPlanInventoryPolicy2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSellingPlanInventoryPolicy(ctx context.Context, sel ast.SelectionSet, v *SellingPlanInventoryPolicy) graphql.Marshaler {
  170910. if v == nil {
  170911. return graphql.Null
  170912. }
  170913. return ec._SellingPlanInventoryPolicy(ctx, sel, v)
  170914. }
  170915. func (ec *executionContext) marshalOShippingLine2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShippingLine(ctx context.Context, sel ast.SelectionSet, v *ShippingLine) graphql.Marshaler {
  170916. if v == nil {
  170917. return graphql.Null
  170918. }
  170919. return ec._ShippingLine(ctx, sel, v)
  170920. }
  170921. func (ec *executionContext) unmarshalOShopTagSort2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopTagSort(ctx context.Context, v interface{}) (*ShopTagSort, error) {
  170922. if v == nil {
  170923. return nil, nil
  170924. }
  170925. var res = new(ShopTagSort)
  170926. err := res.UnmarshalGQL(v)
  170927. return res, graphql.ErrorOnPath(ctx, err)
  170928. }
  170929. func (ec *executionContext) marshalOShopTagSort2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopTagSort(ctx context.Context, sel ast.SelectionSet, v *ShopTagSort) graphql.Marshaler {
  170930. if v == nil {
  170931. return graphql.Null
  170932. }
  170933. return v
  170934. }
  170935. func (ec *executionContext) marshalOShopifyPaymentsExtendedAuthorization2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopifyPaymentsExtendedAuthorization(ctx context.Context, sel ast.SelectionSet, v *ShopifyPaymentsExtendedAuthorization) graphql.Marshaler {
  170936. if v == nil {
  170937. return graphql.Null
  170938. }
  170939. return ec._ShopifyPaymentsExtendedAuthorization(ctx, sel, v)
  170940. }
  170941. func (ec *executionContext) marshalOShopifyPaymentsRefundSet2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopifyPaymentsRefundSet(ctx context.Context, sel ast.SelectionSet, v *ShopifyPaymentsRefundSet) graphql.Marshaler {
  170942. if v == nil {
  170943. return graphql.Null
  170944. }
  170945. return ec._ShopifyPaymentsRefundSet(ctx, sel, v)
  170946. }
  170947. func (ec *executionContext) marshalOShopifyPaymentsTransactionSet2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐShopifyPaymentsTransactionSet(ctx context.Context, sel ast.SelectionSet, v *ShopifyPaymentsTransactionSet) graphql.Marshaler {
  170948. if v == nil {
  170949. return graphql.Null
  170950. }
  170951. return ec._ShopifyPaymentsTransactionSet(ctx, sel, v)
  170952. }
  170953. func (ec *executionContext) marshalOStaffMember2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStaffMember(ctx context.Context, sel ast.SelectionSet, v *StaffMember) graphql.Marshaler {
  170954. if v == nil {
  170955. return graphql.Null
  170956. }
  170957. return ec._StaffMember(ctx, sel, v)
  170958. }
  170959. func (ec *executionContext) unmarshalOStaffMemberDefaultImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStaffMemberDefaultImage(ctx context.Context, v interface{}) (*StaffMemberDefaultImage, error) {
  170960. if v == nil {
  170961. return nil, nil
  170962. }
  170963. var res = new(StaffMemberDefaultImage)
  170964. err := res.UnmarshalGQL(v)
  170965. return res, graphql.ErrorOnPath(ctx, err)
  170966. }
  170967. func (ec *executionContext) marshalOStaffMemberDefaultImage2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStaffMemberDefaultImage(ctx context.Context, sel ast.SelectionSet, v *StaffMemberDefaultImage) graphql.Marshaler {
  170968. if v == nil {
  170969. return graphql.Null
  170970. }
  170971. return v
  170972. }
  170973. func (ec *executionContext) marshalOStandardMetafieldDefinitionTemplate2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐStandardMetafieldDefinitionTemplate(ctx context.Context, sel ast.SelectionSet, v *StandardMetafieldDefinitionTemplate) graphql.Marshaler {
  170974. if v == nil {
  170975. return graphql.Null
  170976. }
  170977. return ec._StandardMetafieldDefinitionTemplate(ctx, sel, v)
  170978. }
  170979. func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) {
  170980. res, err := graphql.UnmarshalString(v)
  170981. return res, graphql.ErrorOnPath(ctx, err)
  170982. }
  170983. func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
  170984. res := graphql.MarshalString(v)
  170985. return res
  170986. }
  170987. func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
  170988. if v == nil {
  170989. return nil, nil
  170990. }
  170991. var vSlice []interface{}
  170992. if v != nil {
  170993. vSlice = graphql.CoerceList(v)
  170994. }
  170995. var err error
  170996. res := make([]string, len(vSlice))
  170997. for i := range vSlice {
  170998. ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
  170999. res[i], err = ec.unmarshalNString2string(ctx, vSlice[i])
  171000. if err != nil {
  171001. return nil, err
  171002. }
  171003. }
  171004. return res, nil
  171005. }
  171006. func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
  171007. if v == nil {
  171008. return graphql.Null
  171009. }
  171010. ret := make(graphql.Array, len(v))
  171011. for i := range v {
  171012. ret[i] = ec.marshalNString2string(ctx, sel, v[i])
  171013. }
  171014. for _, e := range ret {
  171015. if e == graphql.Null {
  171016. return graphql.Null
  171017. }
  171018. }
  171019. return ret
  171020. }
  171021. func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) {
  171022. if v == nil {
  171023. return nil, nil
  171024. }
  171025. res, err := graphql.UnmarshalString(v)
  171026. return &res, graphql.ErrorOnPath(ctx, err)
  171027. }
  171028. func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
  171029. if v == nil {
  171030. return graphql.Null
  171031. }
  171032. res := graphql.MarshalString(*v)
  171033. return res
  171034. }
  171035. func (ec *executionContext) unmarshalOSubscriptionBillingAttemptErrorCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionBillingAttemptErrorCode(ctx context.Context, v interface{}) (*SubscriptionBillingAttemptErrorCode, error) {
  171036. if v == nil {
  171037. return nil, nil
  171038. }
  171039. var res = new(SubscriptionBillingAttemptErrorCode)
  171040. err := res.UnmarshalGQL(v)
  171041. return res, graphql.ErrorOnPath(ctx, err)
  171042. }
  171043. func (ec *executionContext) marshalOSubscriptionBillingAttemptErrorCode2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionBillingAttemptErrorCode(ctx context.Context, sel ast.SelectionSet, v *SubscriptionBillingAttemptErrorCode) graphql.Marshaler {
  171044. if v == nil {
  171045. return graphql.Null
  171046. }
  171047. return v
  171048. }
  171049. func (ec *executionContext) marshalOSubscriptionContract2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionContract(ctx context.Context, sel ast.SelectionSet, v *SubscriptionContract) graphql.Marshaler {
  171050. if v == nil {
  171051. return graphql.Null
  171052. }
  171053. return ec._SubscriptionContract(ctx, sel, v)
  171054. }
  171055. func (ec *executionContext) unmarshalOSubscriptionContractLastPaymentStatus2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionContractLastPaymentStatus(ctx context.Context, v interface{}) (*SubscriptionContractLastPaymentStatus, error) {
  171056. if v == nil {
  171057. return nil, nil
  171058. }
  171059. var res = new(SubscriptionContractLastPaymentStatus)
  171060. err := res.UnmarshalGQL(v)
  171061. return res, graphql.ErrorOnPath(ctx, err)
  171062. }
  171063. func (ec *executionContext) marshalOSubscriptionContractLastPaymentStatus2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionContractLastPaymentStatus(ctx context.Context, sel ast.SelectionSet, v *SubscriptionContractLastPaymentStatus) graphql.Marshaler {
  171064. if v == nil {
  171065. return graphql.Null
  171066. }
  171067. return v
  171068. }
  171069. func (ec *executionContext) marshalOSubscriptionDeliveryMethod2gshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionDeliveryMethod(ctx context.Context, sel ast.SelectionSet, v SubscriptionDeliveryMethod) graphql.Marshaler {
  171070. if v == nil {
  171071. return graphql.Null
  171072. }
  171073. return ec._SubscriptionDeliveryMethod(ctx, sel, v)
  171074. }
  171075. func (ec *executionContext) unmarshalOSubscriptionDiscountRejectionReason2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionDiscountRejectionReason(ctx context.Context, v interface{}) (*SubscriptionDiscountRejectionReason, error) {
  171076. if v == nil {
  171077. return nil, nil
  171078. }
  171079. var res = new(SubscriptionDiscountRejectionReason)
  171080. err := res.UnmarshalGQL(v)
  171081. return res, graphql.ErrorOnPath(ctx, err)
  171082. }
  171083. func (ec *executionContext) marshalOSubscriptionDiscountRejectionReason2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionDiscountRejectionReason(ctx context.Context, sel ast.SelectionSet, v *SubscriptionDiscountRejectionReason) graphql.Marshaler {
  171084. if v == nil {
  171085. return graphql.Null
  171086. }
  171087. return v
  171088. }
  171089. func (ec *executionContext) marshalOSubscriptionPricingPolicy2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSubscriptionPricingPolicy(ctx context.Context, sel ast.SelectionSet, v *SubscriptionPricingPolicy) graphql.Marshaler {
  171090. if v == nil {
  171091. return graphql.Null
  171092. }
  171093. return ec._SubscriptionPricingPolicy(ctx, sel, v)
  171094. }
  171095. func (ec *executionContext) marshalOSuggestedRefund2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐSuggestedRefund(ctx context.Context, sel ast.SelectionSet, v *SuggestedRefund) graphql.Marshaler {
  171096. if v == nil {
  171097. return graphql.Null
  171098. }
  171099. return ec._SuggestedRefund(ctx, sel, v)
  171100. }
  171101. func (ec *executionContext) unmarshalOURL2ᚖstring(ctx context.Context, v interface{}) (*string, error) {
  171102. if v == nil {
  171103. return nil, nil
  171104. }
  171105. res, err := graphql.UnmarshalString(v)
  171106. return &res, graphql.ErrorOnPath(ctx, err)
  171107. }
  171108. func (ec *executionContext) marshalOURL2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
  171109. if v == nil {
  171110. return graphql.Null
  171111. }
  171112. res := graphql.MarshalString(*v)
  171113. return res
  171114. }
  171115. func (ec *executionContext) marshalOUTMParameters2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐUTMParameters(ctx context.Context, sel ast.SelectionSet, v *UTMParameters) graphql.Marshaler {
  171116. if v == nil {
  171117. return graphql.Null
  171118. }
  171119. return ec._UTMParameters(ctx, sel, v)
  171120. }
  171121. func (ec *executionContext) unmarshalOUnsignedInt642ᚖstring(ctx context.Context, v interface{}) (*string, error) {
  171122. if v == nil {
  171123. return nil, nil
  171124. }
  171125. res, err := graphql.UnmarshalString(v)
  171126. return &res, graphql.ErrorOnPath(ctx, err)
  171127. }
  171128. func (ec *executionContext) marshalOUnsignedInt642ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
  171129. if v == nil {
  171130. return graphql.Null
  171131. }
  171132. res := graphql.MarshalString(*v)
  171133. return res
  171134. }
  171135. func (ec *executionContext) marshalOVideoSource2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐVideoSource(ctx context.Context, sel ast.SelectionSet, v *VideoSource) graphql.Marshaler {
  171136. if v == nil {
  171137. return graphql.Null
  171138. }
  171139. return ec._VideoSource(ctx, sel, v)
  171140. }
  171141. func (ec *executionContext) marshalOWeight2ᚖgshopperᚗcomᚋgshopifyᚋadminᚑapiᚋgraphᚋcustomerᚋgeneratedᚐWeight(ctx context.Context, sel ast.SelectionSet, v *Weight) graphql.Marshaler {
  171142. if v == nil {
  171143. return graphql.Null
  171144. }
  171145. return ec._Weight(ctx, sel, v)
  171146. }
  171147. func (ec *executionContext) marshalO_Entity2githubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋfedruntimeᚐEntity(ctx context.Context, sel ast.SelectionSet, v fedruntime.Entity) graphql.Marshaler {
  171148. if v == nil {
  171149. return graphql.Null
  171150. }
  171151. return ec.__Entity(ctx, sel, v)
  171152. }
  171153. func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler {
  171154. if v == nil {
  171155. return graphql.Null
  171156. }
  171157. ret := make(graphql.Array, len(v))
  171158. var wg sync.WaitGroup
  171159. isLen1 := len(v) == 1
  171160. if !isLen1 {
  171161. wg.Add(len(v))
  171162. }
  171163. for i := range v {
  171164. i := i
  171165. fc := &graphql.FieldContext{
  171166. Index: &i,
  171167. Result: &v[i],
  171168. }
  171169. ctx := graphql.WithFieldContext(ctx, fc)
  171170. f := func(i int) {
  171171. defer func() {
  171172. if r := recover(); r != nil {
  171173. ec.Error(ctx, ec.Recover(ctx, r))
  171174. ret = nil
  171175. }
  171176. }()
  171177. if !isLen1 {
  171178. defer wg.Done()
  171179. }
  171180. ret[i] = ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i])
  171181. }
  171182. if isLen1 {
  171183. f(i)
  171184. } else {
  171185. go f(i)
  171186. }
  171187. }
  171188. wg.Wait()
  171189. for _, e := range ret {
  171190. if e == graphql.Null {
  171191. return graphql.Null
  171192. }
  171193. }
  171194. return ret
  171195. }
  171196. func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler {
  171197. if v == nil {
  171198. return graphql.Null
  171199. }
  171200. ret := make(graphql.Array, len(v))
  171201. var wg sync.WaitGroup
  171202. isLen1 := len(v) == 1
  171203. if !isLen1 {
  171204. wg.Add(len(v))
  171205. }
  171206. for i := range v {
  171207. i := i
  171208. fc := &graphql.FieldContext{
  171209. Index: &i,
  171210. Result: &v[i],
  171211. }
  171212. ctx := graphql.WithFieldContext(ctx, fc)
  171213. f := func(i int) {
  171214. defer func() {
  171215. if r := recover(); r != nil {
  171216. ec.Error(ctx, ec.Recover(ctx, r))
  171217. ret = nil
  171218. }
  171219. }()
  171220. if !isLen1 {
  171221. defer wg.Done()
  171222. }
  171223. ret[i] = ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i])
  171224. }
  171225. if isLen1 {
  171226. f(i)
  171227. } else {
  171228. go f(i)
  171229. }
  171230. }
  171231. wg.Wait()
  171232. for _, e := range ret {
  171233. if e == graphql.Null {
  171234. return graphql.Null
  171235. }
  171236. }
  171237. return ret
  171238. }
  171239. func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
  171240. if v == nil {
  171241. return graphql.Null
  171242. }
  171243. ret := make(graphql.Array, len(v))
  171244. var wg sync.WaitGroup
  171245. isLen1 := len(v) == 1
  171246. if !isLen1 {
  171247. wg.Add(len(v))
  171248. }
  171249. for i := range v {
  171250. i := i
  171251. fc := &graphql.FieldContext{
  171252. Index: &i,
  171253. Result: &v[i],
  171254. }
  171255. ctx := graphql.WithFieldContext(ctx, fc)
  171256. f := func(i int) {
  171257. defer func() {
  171258. if r := recover(); r != nil {
  171259. ec.Error(ctx, ec.Recover(ctx, r))
  171260. ret = nil
  171261. }
  171262. }()
  171263. if !isLen1 {
  171264. defer wg.Done()
  171265. }
  171266. ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
  171267. }
  171268. if isLen1 {
  171269. f(i)
  171270. } else {
  171271. go f(i)
  171272. }
  171273. }
  171274. wg.Wait()
  171275. for _, e := range ret {
  171276. if e == graphql.Null {
  171277. return graphql.Null
  171278. }
  171279. }
  171280. return ret
  171281. }
  171282. func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler {
  171283. if v == nil {
  171284. return graphql.Null
  171285. }
  171286. return ec.___Schema(ctx, sel, v)
  171287. }
  171288. func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
  171289. if v == nil {
  171290. return graphql.Null
  171291. }
  171292. ret := make(graphql.Array, len(v))
  171293. var wg sync.WaitGroup
  171294. isLen1 := len(v) == 1
  171295. if !isLen1 {
  171296. wg.Add(len(v))
  171297. }
  171298. for i := range v {
  171299. i := i
  171300. fc := &graphql.FieldContext{
  171301. Index: &i,
  171302. Result: &v[i],
  171303. }
  171304. ctx := graphql.WithFieldContext(ctx, fc)
  171305. f := func(i int) {
  171306. defer func() {
  171307. if r := recover(); r != nil {
  171308. ec.Error(ctx, ec.Recover(ctx, r))
  171309. ret = nil
  171310. }
  171311. }()
  171312. if !isLen1 {
  171313. defer wg.Done()
  171314. }
  171315. ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
  171316. }
  171317. if isLen1 {
  171318. f(i)
  171319. } else {
  171320. go f(i)
  171321. }
  171322. }
  171323. wg.Wait()
  171324. for _, e := range ret {
  171325. if e == graphql.Null {
  171326. return graphql.Null
  171327. }
  171328. }
  171329. return ret
  171330. }
  171331. func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
  171332. if v == nil {
  171333. return graphql.Null
  171334. }
  171335. return ec.___Type(ctx, sel, v)
  171336. }
  171337. // endregion ***************************** type.gotpl *****************************